@lovrabet/lovrabet-cli 2.3.10-beta.1 → 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 (191) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.d.ts +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/issue/context.js +1 -1
  38. package/lib/commands/issue/index.js +1 -1
  39. package/lib/commands/issue/report.js +1 -1
  40. package/lib/commands/kb/index.js +1 -1
  41. package/lib/commands/logs/index.js +1 -1
  42. package/lib/commands/notification/config-list.js +1 -1
  43. package/lib/commands/notification/index.js +1 -1
  44. package/lib/commands/notification/shared.js +1 -1
  45. package/lib/commands/ocr/index.js +1 -1
  46. package/lib/commands/permit/dataset-get.js +1 -1
  47. package/lib/commands/permit/dataset-set.js +1 -1
  48. package/lib/commands/permit/index.js +1 -1
  49. package/lib/commands/permit/page-get.js +1 -1
  50. package/lib/commands/permit/page-set.js +1 -1
  51. package/lib/commands/permit/role-menus-set.js +1 -1
  52. package/lib/commands/permit/role-menus.js +1 -1
  53. package/lib/commands/permit/shared.js +1 -1
  54. package/lib/commands/personal-bff/index.js +1 -1
  55. package/lib/commands/registry.js +1 -1
  56. package/lib/commands/role/create.js +1 -1
  57. package/lib/commands/role/delete.js +1 -1
  58. package/lib/commands/role/detail.js +1 -1
  59. package/lib/commands/role/index.js +1 -1
  60. package/lib/commands/role/list.js +1 -1
  61. package/lib/commands/role/shared.js +1 -1
  62. package/lib/commands/role/update.js +1 -1
  63. package/lib/commands/role/user-add.js +1 -1
  64. package/lib/commands/role/user-remove.js +1 -1
  65. package/lib/commands/schedule/index.js +1 -1
  66. package/lib/commands/schema.js +1 -1
  67. package/lib/commands/service/dynamic.js +1 -1
  68. package/lib/commands/service/function-name-adapter.js +1 -1
  69. package/lib/commands/service/index.js +1 -1
  70. package/lib/commands/service/registry.js +1 -1
  71. package/lib/commands/skill/commands/create.js +1 -1
  72. package/lib/commands/skill/commands/diagram.js +1 -1
  73. package/lib/commands/skill/commands/install.js +1 -1
  74. package/lib/commands/skill/commands/list.js +1 -1
  75. package/lib/commands/skill/commands/push.js +1 -1
  76. package/lib/commands/skill/commands/validate.js +1 -1
  77. package/lib/commands/skill/diagram.js +1 -1
  78. package/lib/commands/skill/flags.js +1 -1
  79. package/lib/commands/skill/index.js +1 -1
  80. package/lib/commands/skill/manifest-helpers.js +1 -1
  81. package/lib/commands/skill/push-execute.js +1 -1
  82. package/lib/commands/skill/push-flow-helpers.js +1 -1
  83. package/lib/commands/skill/push-retarget.js +1 -1
  84. package/lib/commands/skill/scopes.js +1 -1
  85. package/lib/commands/skill/summary.js +1 -1
  86. package/lib/commands/skill/templates.js +1 -1
  87. package/lib/commands/skill/validate.js +1 -1
  88. package/lib/commands/sql/detail.js +1 -1
  89. package/lib/commands/sql/exec.js +1 -1
  90. package/lib/commands/sql/index.js +1 -1
  91. package/lib/commands/update.js +1 -1
  92. package/lib/commands/user-account/bind.js +1 -1
  93. package/lib/commands/user-account/index.js +1 -1
  94. package/lib/commands/workspace/index.js +1 -1
  95. package/lib/config/domain-config.d.ts +1 -1
  96. package/lib/config/domain-config.js +1 -1
  97. package/lib/config/schema.d.ts +1 -1
  98. package/lib/config/schema.js +1 -1
  99. package/lib/constant/app.js +1 -1
  100. package/lib/constant/auth-mode.js +1 -1
  101. package/lib/constant/cli.js +1 -1
  102. package/lib/constant/defaults.js +1 -1
  103. package/lib/constant/distribution.js +1 -1
  104. package/lib/constant/domain.d.ts +6 -0
  105. package/lib/constant/domain.js +1 -1
  106. package/lib/constant/env.js +1 -1
  107. package/lib/constant/output.js +1 -1
  108. package/lib/constant/product.js +1 -1
  109. package/lib/constant/region.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/constant/url.js +1 -1
  112. package/lib/context.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/kb-management-client.js +1 -1
  116. package/lib/core/kb-sdk-errors.js +1 -1
  117. package/lib/core/kb-search-client.js +1 -1
  118. package/lib/core/sdk-client.js +1 -1
  119. package/lib/errors.js +1 -1
  120. package/lib/framework/access-error.js +1 -1
  121. package/lib/framework/build-all-flags.js +1 -1
  122. package/lib/framework/dryrun.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/preparse.js +1 -1
  128. package/lib/framework/rate-limit.js +1 -1
  129. package/lib/framework/raw-flags.js +1 -1
  130. package/lib/framework/response.js +1 -1
  131. package/lib/framework/runner-confirmation.js +1 -1
  132. package/lib/framework/runner-error.js +1 -1
  133. package/lib/framework/runner.js +1 -1
  134. package/lib/framework/schema-export.js +1 -1
  135. package/lib/framework/service-order.js +1 -1
  136. package/lib/framework/types.js +1 -1
  137. package/lib/generated/build-info.d.ts +4 -4
  138. package/lib/generated/build-info.js +1 -1
  139. package/lib/generated/official-routing.d.ts +3 -1
  140. package/lib/generated/official-routing.js +1 -1
  141. package/lib/generated/routing-contract.d.ts +2 -2
  142. package/lib/generated/routing-contract.js +1 -1
  143. package/lib/help.js +1 -1
  144. package/lib/postinstall.js +1 -1
  145. package/lib/runtime/confirmation.js +1 -1
  146. package/lib/runtime/event.js +1 -1
  147. package/lib/runtime/index.js +1 -1
  148. package/lib/runtime/queue.js +1 -1
  149. package/lib/runtime/resolve.js +1 -1
  150. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  151. package/lib/services/dataset-import/excel-reader.js +1 -1
  152. package/lib/services/dataset-import/image-bytes.js +1 -1
  153. package/lib/services/dataset-import/image-ooxml.js +1 -1
  154. package/lib/services/dataset-import/image-runner.js +1 -1
  155. package/lib/services/dataset-import/metadata.js +1 -1
  156. package/lib/services/dataset-import/preview.js +1 -1
  157. package/lib/services/dataset-import/runner.js +1 -1
  158. package/lib/skills/builtin-skill.js +1 -1
  159. package/lib/skills/npx-skills-add.js +1 -1
  160. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  161. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  162. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  163. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  164. package/lib/skills/runtime-skill-sync/links.js +1 -1
  165. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  166. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  167. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  168. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  169. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  170. package/lib/skills/runtime-skill-sync/push.js +1 -1
  171. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  173. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  174. package/lib/skills/runtime-skill-sync.js +1 -1
  175. package/lib/skills/skill-presence.js +1 -1
  176. package/lib/utils/access-key-redaction.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/logger.js +1 -1
  181. package/lib/utils/lossless-json.js +1 -1
  182. package/lib/utils/params.js +1 -1
  183. package/lib/utils/positive-safe-integer.js +1 -1
  184. package/lib/utils/redaction.js +1 -1
  185. package/lib/utils/runtime-user-id.js +1 -1
  186. package/lib/utils/update-notice.js +1 -1
  187. package/lib/utils/version.js +1 -1
  188. package/lib/utils/write-cli-side-channel.js +1 -1
  189. package/package.json +1 -1
  190. package/skills/lovrabet/SKILL.md +1 -1
  191. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0xd3e391,_0x4338c8){const _0x18577c=a139_0x4f4c,_0x11654b=_0xd3e391();while(!![]){try{const _0x4d4d58=-parseInt(_0x18577c(0x10b))/0x1*(-parseInt(_0x18577c(0x113))/0x2)+-parseInt(_0x18577c(0x115))/0x3+-parseInt(_0x18577c(0x109))/0x4+-parseInt(_0x18577c(0xfe))/0x5+parseInt(_0x18577c(0x11f))/0x6*(-parseInt(_0x18577c(0x101))/0x7)+parseInt(_0x18577c(0x111))/0x8+-parseInt(_0x18577c(0x11a))/0x9*(-parseInt(_0x18577c(0x11c))/0xa);if(_0x4d4d58===_0x4338c8)break;else _0x11654b['push'](_0x11654b['shift']());}catch(_0x326a58){_0x11654b['push'](_0x11654b['shift']());}}}(a139_0x1560,0xe33ce));function a139_0x1560(){const _0x410e50=['riskLevel','506200vZAAkZ','format','1762422uIyCvO','stringify','3052608UoLgqK','definition','reason','signal','aborted','3819582rRWoEJ','dry-run','80uQCelP','message','isNonInteractive','630vUoOfy','4540490tjhLDv','result','risk','1477chPJsI','execute','Lovrabet\x20invocation\x20aborted.','present','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','args','data','rawFlags','5844460eZgFJx','yes','1dGzDDM','dryRun','high-risk-write','command','write'];a139_0x1560=function(){return _0x410e50;};return a139_0x1560();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a139_0x4f4c(_0x2f3218,_0x12d89c){_0x2f3218=_0x2f3218-0xfe;const _0x1560d5=a139_0x1560();let _0x4f4c45=_0x1560d5[_0x2f3218];return _0x4f4c45;}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:_0x298885,command:_0x53e6ca,risk:_0x137bde,dryRun:_0x56dfeb}){const _0x3eb231=a139_0x4f4c;return JSON[_0x3eb231(0x114)]({'ok':_0x298885['ok'],'command':_0x53e6ca,'risk':_0x137bde,..._0x56dfeb?{'dryRun':!![]}:{},..._0x298885[_0x3eb231(0x107)]!==undefined?{'data':_0x298885['data']}:{},..._0x298885[_0x3eb231(0x11d)]?{'message':_0x298885['message']}:{}});}};export async function invokeLovrabet(_0x33c7e1,_0x234869){const _0x88e958=a139_0x4f4c;throwIfAborted(_0x234869[_0x88e958(0x118)]);const _0x3497a5=await resolveLovrabetInvocation(_0x33c7e1),_0x35805b=canonicalLovrabetOperation(_0x3497a5[_0x88e958(0x116)]);return await confirmWriteBeforeQueue(_0x3497a5[_0x88e958(0x116)],_0x3497a5[_0x88e958(0x108)],_0x35805b,_0x234869),runSerialized(async()=>{const _0x4a08b6=_0x88e958;throwIfAborted(_0x234869[_0x4a08b6(0x118)]);const _0xebc4d2={},_0x479acc=buildConfigFromFlags(_0x3497a5[_0x4a08b6(0x108)]);await initGlobalEnvironment(_0x479acc);const _0x49a3a9=createPipelineEnv(_0x479acc,{..._0x3497a5[_0x4a08b6(0x108)],'yes':_0x3497a5[_0x4a08b6(0x116)][_0x4a08b6(0x100)]==='high-risk-write'?!![]:_0x3497a5[_0x4a08b6(0x108)][_0x4a08b6(0x10a)],'nonInteractive':!![]});_0x49a3a9['args']=_0x3497a5[_0x4a08b6(0x106)],_0x49a3a9[_0x4a08b6(0x11e)]=!![],_0x49a3a9[_0x4a08b6(0x110)]=_0x4a08b6(0x10d);const _0x5bda19=withAbortSignal(_0x3497a5[_0x4a08b6(0x116)],_0x234869[_0x4a08b6(0x118)]),_0x5d98ae=createLovrabetRunnerAdapter({'formatOutput'(_0x1f16ac,_0x2773c7){const _0x580d25=_0x4a08b6;_0xebc4d2[_0x580d25(0xff)]=_0x1f16ac,_0xebc4d2[_0x580d25(0x10e)]=_0x2773c7[_0x580d25(0x10e)],_0xebc4d2[_0x580d25(0x100)]=_0x2773c7['risk'],_0xebc4d2[_0x580d25(0x112)]=_0x2773c7['format'],_0xebc4d2[_0x580d25(0x10c)]=_0x2773c7[_0x580d25(0x10c)]===!![];},async 'confirmHighRisk'(){const _0x15b46f=_0x4a08b6;throw new Error(_0x15b46f(0x105));}});try{await runCommand(_0x5bda19,_0x49a3a9,_0x5d98ae);if(!_0xebc4d2[_0x4a08b6(0xff)]||!_0xebc4d2[_0x4a08b6(0x10e)]||!_0xebc4d2[_0x4a08b6(0x100)]||!_0xebc4d2[_0x4a08b6(0x112)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x4f3cda=_0x234869['presentation']??defaultPresentation,_0x7c7450=_0xebc4d2[_0x4a08b6(0x10c)]===!![],_0x4b6f08={'result':_0xebc4d2[_0x4a08b6(0xff)],'command':_0xebc4d2[_0x4a08b6(0x10e)],'operation':_0x35805b,'risk':_0xebc4d2[_0x4a08b6(0x100)],'format':_0xebc4d2['format'],'dryRun':_0x7c7450},_0x59e683=createLovrabetWriteMetadata(_0x3497a5[_0x4a08b6(0x116)],_0x35805b,_0xebc4d2['result'],_0x7c7450);let _0x3b1d4e;try{_0x3b1d4e=await _0x4f3cda[_0x4a08b6(0x104)](_0x4b6f08);}catch(_0x50adec){if(!_0x59e683||_0x4f3cda===defaultPresentation)throw _0x50adec;_0x3b1d4e=await defaultPresentation[_0x4a08b6(0x104)](_0x4b6f08);}return{'operation':_0x35805b,'risk':_0xebc4d2['risk'],'mode':_0x7c7450?_0x4a08b6(0x11b):_0x4a08b6(0x102),'result':_0xebc4d2[_0x4a08b6(0xff)],'output':_0x3b1d4e,..._0x59e683?{'metadata':_0x59e683}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1fc833,_0x1128e5,_0x5064fe,_0x4d6c49){const _0x27c3fd=a139_0x4f4c;if(_0x1128e5[_0x27c3fd(0x10c)]===!![]||_0x1fc833['risk']!==_0x27c3fd(0x10f)&&_0x1fc833[_0x27c3fd(0x100)]!==_0x27c3fd(0x10d))return;await _0x4d6c49['confirmation']['confirm'](buildLovrabetConfirmationRequest(_0x1fc833,_0x5064fe,_0x4d6c49['signal']));}function withAbortSignal(_0x4dcd20,_0x46a889){return{..._0x4dcd20,async 'execute'(_0x2ba1cf){const _0xaa4a4e=a139_0x4f4c;return throwIfAborted(_0x46a889),_0x4dcd20[_0xaa4a4e(0x102)]({..._0x2ba1cf,'signal':_0x46a889});}};}function throwIfAborted(_0x43f656){const _0x1dd9fc=a139_0x4f4c;if(_0x43f656?.[_0x1dd9fc(0x119)])throw _0x43f656[_0x1dd9fc(0x117)]instanceof Error?_0x43f656['reason']:new DOMException(_0x1dd9fc(0x103),'AbortError');}
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_0x2062bf=a140_0x26e6;(function(_0x3d60e9,_0x393202){const _0x291381=a140_0x26e6,_0x334a8c=_0x3d60e9();while(!![]){try{const _0x13d86b=parseInt(_0x291381(0x164))/0x1+-parseInt(_0x291381(0x166))/0x2+parseInt(_0x291381(0x168))/0x3+-parseInt(_0x291381(0x169))/0x4+-parseInt(_0x291381(0x161))/0x5+parseInt(_0x291381(0x163))/0x6+parseInt(_0x291381(0x165))/0x7*(parseInt(_0x291381(0x162))/0x8);if(_0x13d86b===_0x393202)break;else _0x334a8c['push'](_0x334a8c['shift']());}catch(_0x1d0234){_0x334a8c['push'](_0x334a8c['shift']());}}}(a140_0x2813,0x29222));function a140_0x2813(){const _0x181978=['830919xlGkYJ','334536oUyzZJ','1642380sAEGpX','104TChfIU','964356CRtxMH','16684PAMozl','210931VHqYWX','531040OVajhi','resolve'];a140_0x2813=function(){return _0x181978;};return a140_0x2813();}let tail=Promise[a140_0x2062bf(0x167)]();function a140_0x26e6(_0x58e808,_0x49ad40){_0x58e808=_0x58e808-0x161;const _0x281358=a140_0x2813();let _0x26e6d0=_0x281358[_0x58e808];return _0x26e6d0;}export async function runSerialized(_0x7fd3d4){const _0x407038=tail;let _0x1b7651;tail=new Promise(_0x17f29a=>{_0x1b7651=_0x17f29a;}),await _0x407038['catch'](()=>undefined);try{return await _0x7fd3d4();}finally{_0x1b7651();}}
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(_0x456d2,_0x18aef7){const _0x2eaf22=a141_0x3409,_0x1d43fe=_0x456d2();while(!![]){try{const _0x2b6bee=parseInt(_0x2eaf22(0xd6))/0x1*(parseInt(_0x2eaf22(0xea))/0x2)+parseInt(_0x2eaf22(0xe0))/0x3+-parseInt(_0x2eaf22(0xe4))/0x4*(-parseInt(_0x2eaf22(0xd9))/0x5)+-parseInt(_0x2eaf22(0xec))/0x6*(parseInt(_0x2eaf22(0xd7))/0x7)+parseInt(_0x2eaf22(0xe8))/0x8+parseInt(_0x2eaf22(0xda))/0x9*(-parseInt(_0x2eaf22(0xe6))/0xa)+-parseInt(_0x2eaf22(0xe7))/0xb;if(_0x2b6bee===_0x18aef7)break;else _0x1d43fe['push'](_0x1d43fe['shift']());}catch(_0x31f97d){_0x1d43fe['push'](_0x1d43fe['shift']());}}}(a141_0x53d7,0x5ef6d));function a141_0x53d7(){const _0x3812ef=['117vkPqUy','message','args','validation','../framework/preparse.js','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','2134203kkMOUa','../commands/registry.js','join','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','700072BlGyJx','flatMap','497010NUJUhh','5629272WVZWjZ','4311368zfAsXt','flags','124gtWBKL','defaultCommand','12pJLfbq','unknownCommand','input','5991DAEKlz','2099930pJXBjE','hint','15rUXqKL'];a141_0x53d7=function(){return _0x3812ef;};return a141_0x53d7();}import a141_0x1b9da8 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a141_0x3409(_0x2c1deb,_0x86d9f3){_0x2c1deb=_0x2c1deb-0xd4;const _0x53d708=a141_0x53d7();let _0x340936=_0x53d708[_0x2c1deb];return _0x340936;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x5728f3){const _0x34a08d=a141_0x3409,_0x535734=a141_0x1b9da8('',{'importMeta':import.meta,'argv':_0x5728f3,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4f4c03=[..._0x535734[_0x34a08d(0xd5)]],_0x4b3561=_0x535734[_0x34a08d(0xe9)];await correctFlags(_0x4b3561);const _0x225e9f=_0x4f4c03[0x0];if(!_0x225e9f)throw CliErrors[_0x34a08d(0xdd)](_0x34a08d(0xdf));const _0x28212c=resolveRemovedCommand(_0x225e9f,_0x4f4c03[0x1]);if(_0x28212c)throw CliErrors['validation'](_0x28212c[_0x34a08d(0xdb)],_0x28212c[_0x34a08d(0xd8)]);if(!isKnownService(_0x225e9f)){const _0x4ce6da=resolveDynamicServiceCommand(_0x4f4c03,_0x4b3561);if(!_0x4ce6da)throw CliErrors[_0x34a08d(0xd4)](_0x4f4c03[_0x34a08d(0xe2)]('\x20'));return Object['assign'](_0x4b3561,_0x4ce6da['flags']),{'definition':_0x4ce6da['definition'],'rawFlags':_0x4b3561,'args':_0x4ce6da[_0x34a08d(0xdc)]};}const _0x938731=getServiceEntry(_0x225e9f),_0x5417b7=_0x4f4c03[0x1]||_0x938731[_0x34a08d(0xeb)];if(!_0x5417b7)throw CliErrors[_0x34a08d(0xdd)](_0x34a08d(0xe3)+_0x225e9f+'\x22.');const _0x4279ab=findDefinition(_0x225e9f,_0x5417b7);if(!_0x4279ab)throw CliErrors['unknownCommand'](_0x225e9f+'\x20'+_0x5417b7);return{'definition':_0x4279ab,'rawFlags':_0x4b3561,'args':_0x4f4c03['slice'](0x2)};}async function correctFlags(_0x4922f1){const _0x510aa9=a141_0x3409;try{const {correctFlags:_0x140e91}=await import(_0x510aa9(0xde)),{getAllDefinitions:_0x48f2e9}=await import(_0x510aa9(0xe1)),_0x1368b5=_0x48f2e9()[_0x510aa9(0xe5)](_0x3662c9=>_0x3662c9[_0x510aa9(0xe9)]??[]),_0xa32d37=_0x140e91(_0x4922f1,_0x1368b5);Object['assign'](_0x4922f1,_0xa32d37[_0x510aa9(0xe9)]);}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_0x1ad0(_0x4b30ce,_0x400872){_0x4b30ce=_0x4b30ce-0x1f1;const _0x2e279b=a143_0x2e27();let _0x1ad049=_0x2e279b[_0x4b30ce];return _0x1ad049;}(function(_0x417ce5,_0x196fba){const _0x14d111=a143_0x1ad0,_0x414232=_0x417ce5();while(!![]){try{const _0x2649bf=-parseInt(_0x14d111(0x1fc))/0x1*(parseInt(_0x14d111(0x239))/0x2)+-parseInt(_0x14d111(0x20f))/0x3+parseInt(_0x14d111(0x223))/0x4*(-parseInt(_0x14d111(0x231))/0x5)+parseInt(_0x14d111(0x203))/0x6*(parseInt(_0x14d111(0x22d))/0x7)+-parseInt(_0x14d111(0x1fe))/0x8*(parseInt(_0x14d111(0x245))/0x9)+-parseInt(_0x14d111(0x202))/0xa*(-parseInt(_0x14d111(0x22b))/0xb)+-parseInt(_0x14d111(0x227))/0xc*(-parseInt(_0x14d111(0x1f6))/0xd);if(_0x2649bf===_0x196fba)break;else _0x414232['push'](_0x414232['shift']());}catch(_0x107301){_0x414232['push'](_0x414232['shift']());}}}(a143_0x2e27,0xf2d1d));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=_0x376d2f=>typeof _0x376d2f==='number'&&Number['isSafeInteger'](_0x376d2f)&&_0x376d2f>0x0;export async function runAutoIdExcelImport(_0x3eeb63){const _0x2e380a=a143_0x1ad0,_0x2ee169={..._0x3eeb63,'checkpoint':await resolveImportOutputPath(_0x3eeb63[_0x2e380a(0x22e)]),'report':await resolveImportOutputPath(_0x3eeb63[_0x2e380a(0x24e)])},{manifest:_0x981f6c,contract:_0xd787f,api:_0x342d8c}=_0x2ee169;assertImportContract(_0xd787f,_0x2ee169[_0x2e380a(0x252)],_0x2ee169['datasetCode']);if(_0xd787f[_0x2e380a(0x21b)]!==0x2||!_0x342d8c[_0x2e380a(0x1f5)])throw Error(_0x2e380a(0x209));if(_0x981f6c[_0x2e380a(0x240)][_0x2e380a(0x234)])throw Error(_0x2e380a(0x243));if(!_0x981f6c['rows'][_0x2e380a(0x234)])throw Error(_0x2e380a(0x1ff));if(!Number[_0x2e380a(0x200)](_0x2ee169['batchSize'])||_0x2ee169[_0x2e380a(0x20e)]<0x1||_0x2ee169['batchSize']>_0xd787f[_0x2e380a(0x238)])throw Error(_0x2e380a(0x247));assertImportPaths(_0x2ee169[_0x2e380a(0x22e)],_0x2ee169[_0x2e380a(0x24e)]);if(_0x981f6c[_0x2e380a(0x23f)][_0x2e380a(0x222)](_0x2ad5ed=>Object['hasOwn'](_0x2ad5ed['values'],'id')))throw Error(_0x2e380a(0x205));const _0xea5c8f=(_0x4a69cd,_0x40009f)=>Buffer[_0x2e380a(0x233)](JSON[_0x2e380a(0x1f1)]({'schemaFingerprint':_0xd787f[_0x2e380a(0x229)],'taskId':_0x40009f,'items':_0x4a69cd['map'](_0x38f92d=>_0x981f6c[_0x2e380a(0x23f)][_0x38f92d][_0x2e380a(0x213)])}),'utf8'),_0x3469fc=[];let _0x19e269=[];for(let _0x3e492e=0x0;_0x3e492e<_0x981f6c[_0x2e380a(0x23f)]['length'];_0x3e492e++){if(_0xea5c8f([_0x3e492e],0x2**0x34)>_0xd787f[_0x2e380a(0x1f3)])throw Error(_0x2e380a(0x206)+_0x981f6c['rows'][_0x3e492e][_0x2e380a(0x20c)]+_0x2e380a(0x253));_0x19e269[_0x2e380a(0x234)]&&(_0x19e269[_0x2e380a(0x234)]===_0x2ee169['batchSize']||_0xea5c8f([..._0x19e269,_0x3e492e],0x2**0x34)>_0xd787f[_0x2e380a(0x1f3)])&&(_0x3469fc['push'](_0x19e269),_0x19e269=[]),_0x19e269[_0x2e380a(0x221)](_0x3e492e);}if(_0x19e269['length'])_0x3469fc[_0x2e380a(0x221)](_0x19e269);const _0x45c0d8={'appCode':_0x2ee169[_0x2e380a(0x252)],'datasetCode':_0x2ee169[_0x2e380a(0x248)],'runtimeDomain':_0x2ee169[_0x2e380a(0x20a)],'actorId':_0xd787f[_0x2e380a(0x251)],'fileHash':_0x981f6c[_0x2e380a(0x211)],'mappingHash':_0x981f6c[_0x2e380a(0x218)],'schemaHash':_0x981f6c[_0x2e380a(0x201)],'remoteSchemaHash':_0xd787f[_0x2e380a(0x229)],'batchSize':_0x2ee169[_0x2e380a(0x20e)],'maxBatchBytes':_0xd787f[_0x2e380a(0x1f3)],'sheet':_0x981f6c['sheet'],'strategy':_0xd787f[_0x2e380a(0x1fa)]},_0xf00e83=await acquireLock(_0x2ee169[_0x2e380a(0x22e)]);let _0x4fe360;const _0x19fa45=Date[_0x2e380a(0x24a)]();let _0x3c70b3=0x0;const _0x15fe05=[],_0x12c551=_0x17150c=>_0x4fe360?.['batches'][_0x2e380a(0x1f2)](_0x3357d2=>_0x3357d2[_0x2e380a(0x210)]===_0x17150c)[_0x2e380a(0x249)]((_0x158f18,_0x520fef)=>_0x158f18+_0x520fef[_0x2e380a(0x24c)]['length'],0x0)??0x0,_0x5159f4=()=>({'importId':_0x4fe360?.[_0x2e380a(0x254)],'sourceRows':_0x981f6c['rows'][_0x2e380a(0x234)],'emptyRows':_0x981f6c['emptyRows'][_0x2e380a(0x234)],'succeeded':_0x12c551('succeeded'),'unknown':_0x12c551(_0x2e380a(0x225)),'conflicts':_0x12c551(_0x2e380a(0x250)),'notAttempted':_0x12c551('unsent'),'batches':_0x3c70b3,'batchResults':_0x15fe05,'elapsedMs':Date[_0x2e380a(0x24a)]()-_0x19fa45,'checkpoint':_0x2ee169[_0x2e380a(0x22e)],'report':_0x2ee169[_0x2e380a(0x24e)],'warnings':_0x981f6c[_0x2e380a(0x237)]});try{if(_0x2ee169[_0x2e380a(0x23e)]){try{_0x4fe360=JSON[_0x2e380a(0x214)](await readFile(_0x2ee169[_0x2e380a(0x22e)],_0x2e380a(0x246)));}catch{throw Error('Cannot\x20read\x20the\x20import\x20checkpoint.');}if(!_0x4fe360||_0x4fe360[_0x2e380a(0x21f)]!==0x2||typeof _0x4fe360[_0x2e380a(0x254)]!=='string'||!_0x4fe360[_0x2e380a(0x254)]||canonical(_0x4fe360[_0x2e380a(0x207)])!==canonical(_0x45c0d8)||!Array['isArray'](_0x4fe360[_0x2e380a(0x208)])||_0x4fe360['batches']['length']!==_0x3469fc[_0x2e380a(0x234)]||new Set(_0x4fe360[_0x2e380a(0x208)][_0x2e380a(0x20b)](_0xa1873d=>_0xa1873d['taskId']))[_0x2e380a(0x1fb)]!==_0x3469fc[_0x2e380a(0x234)]||_0x4fe360[_0x2e380a(0x208)]['some']((_0xb24937,_0x3153d6)=>!validId(_0xb24937[_0x2e380a(0x22c)])||_0xb24937['taskId']>0x2**0x34||canonical(_0xb24937[_0x2e380a(0x24c)])!==canonical(_0x3469fc[_0x3153d6])||![_0x2e380a(0x21a),_0x2e380a(0x225),_0x2e380a(0x244),'conflict'][_0x2e380a(0x236)](_0xb24937[_0x2e380a(0x210)])||!Array[_0x2e380a(0x24f)](_0xb24937['ids'])||_0xb24937[_0x2e380a(0x21e)]['some'](_0x284310=>!validId(_0x284310))||new Set(_0xb24937[_0x2e380a(0x21e)])[_0x2e380a(0x1fb)]!==_0xb24937[_0x2e380a(0x21e)][_0x2e380a(0x234)]||_0xb24937[_0x2e380a(0x21e)][_0x2e380a(0x234)]!==0x0&&_0xb24937[_0x2e380a(0x21e)][_0x2e380a(0x234)]!==_0xb24937['rowIndexes'][_0x2e380a(0x234)]||_0xb24937[_0x2e380a(0x210)]===_0x2e380a(0x244)&&_0xb24937['ids'][_0x2e380a(0x234)]!==_0xb24937[_0x2e380a(0x24c)]['length']||_0xb24937[_0x2e380a(0x210)]===_0x2e380a(0x21a)&&_0xb24937['ids'][_0x2e380a(0x234)]!==0x0))throw Error(_0x2e380a(0x23c));const _0x4808f8=_0x4fe360['batches'][_0x2e380a(0x220)](_0xd5ca8e=>_0xd5ca8e[_0x2e380a(0x21e)]);if(new Set(_0x4808f8)[_0x2e380a(0x1fb)]!==_0x4808f8[_0x2e380a(0x234)])throw Error(_0x2e380a(0x23b));}else{try{await lstat(_0x2ee169[_0x2e380a(0x22e)]);throw Error(_0x2e380a(0x22a));}catch(_0x3d4392){if(_0x3d4392[_0x2e380a(0x23d)]!=='ENOENT')throw _0x3d4392;}const _0x321a8e=new Set();_0x4fe360={'version':0x2,'importId':randomUUID(),'binding':_0x45c0d8,'batches':_0x3469fc[_0x2e380a(0x20b)](_0x503ff0=>{const _0xf532d4=_0x2e380a;let _0x2912d9;do{_0x2912d9=Number(BigInt('0x'+randomBytes(0x7)[_0xf532d4(0x242)](_0xf532d4(0x232)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x321a8e['has'](_0x2912d9));return _0x321a8e[_0xf532d4(0x1f7)](_0x2912d9),{'taskId':_0x2912d9,'rowIndexes':_0x503ff0,'ids':[],'status':_0xf532d4(0x21a)};})},await saveImportJson(_0x2ee169[_0x2e380a(0x22e)],_0x4fe360);}await _0x2ee169[_0x2e380a(0x20d)]?.();const _0x3ca79f=_0x4fe360,_0x49e5e9=async(_0x4d7cb3,_0x5db31d)=>{const _0xc197eb=_0x2e380a;_0x4d7cb3[_0xc197eb(0x210)]=_0xc197eb(0x250),await saveImportJson(_0x2ee169['checkpoint'],_0x3ca79f);throw Error(_0x5db31d);},_0x2172db=async _0x4fa11c=>{const _0x53de7f=_0x2e380a;let _0x590d12=await _0x342d8c[_0x53de7f(0x1f5)](_0x4fa11c[_0x53de7f(0x22c)]);if(!Array[_0x53de7f(0x24f)](_0x590d12))throw Error(_0x53de7f(0x1f4));if(_0x4fa11c[_0x53de7f(0x210)]===_0x53de7f(0x21a)&&_0x590d12[_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,_0x53de7f(0x1f9));if(!_0x590d12['length']){if(_0x4fa11c[_0x53de7f(0x210)]===_0x53de7f(0x244)||_0x4fa11c[_0x53de7f(0x21e)][_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x590d12[_0x53de7f(0x234)]!==_0x4fa11c[_0x53de7f(0x24c)][_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,_0x53de7f(0x228));const _0x2bb996=_0x590d12[_0x53de7f(0x20b)](_0x391c0e=>_0x391c0e?.['id']);if(_0x2bb996[_0x53de7f(0x222)](_0x37263a=>!validId(_0x37263a)))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x215));if(new Set(_0x2bb996)[_0x53de7f(0x1fb)]!==_0x2bb996[_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,'Import\x20generated\x20ID\x20conflict.');const _0x269e9a=new Map(_0x590d12[_0x53de7f(0x20b)](_0x4f8b66=>[_0x4f8b66['id'],_0x4f8b66])),_0x173116=_0x4fa11c['ids']['length']?[..._0x4fa11c['ids']]:[..._0x2bb996][_0x53de7f(0x24d)]((_0x3c98f3,_0x220cd2)=>_0x3c98f3-_0x220cd2);if(_0x173116[_0x53de7f(0x222)](_0x448eec=>!validId(_0x448eec))||_0x173116[_0x53de7f(0x222)]((_0x288a7e,_0x4993c7)=>_0x4993c7>0x0&&_0x288a7e<=_0x173116[_0x4993c7-0x1])||_0x173116[_0x53de7f(0x222)](_0x55b7f7=>!_0x269e9a[_0x53de7f(0x1fd)](_0x55b7f7)))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x215));_0x590d12=_0x173116['map'](_0x501486=>_0x269e9a[_0x53de7f(0x1f8)](_0x501486));const _0x38ffa4=new Set(_0x3ca79f[_0x53de7f(0x208)][_0x53de7f(0x1f2)](_0x433fe9=>_0x433fe9!==_0x4fa11c)[_0x53de7f(0x220)](_0x3ad23e=>_0x3ad23e['ids']));if(_0x173116['some'](_0x5ef926=>_0x38ffa4[_0x53de7f(0x1fd)](_0x5ef926)))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x224));for(let _0x2e50f7=0x0;_0x2e50f7<_0x590d12[_0x53de7f(0x234)];_0x2e50f7++){const _0x32d814=_0x981f6c[_0x53de7f(0x23f)][_0x4fa11c['rowIndexes'][_0x2e50f7]]['values'];if(Object[_0x53de7f(0x22f)](_0x32d814)['some'](_0x5f4ea2=>!sameImportValue(_0x32d814[_0x5f4ea2],_0x590d12[_0x2e50f7][_0x5f4ea2],_0x981f6c[_0x53de7f(0x212)]?.['includes'](_0x5f4ea2)&&!_0x981f6c['uploadFields']?.[_0x53de7f(0x236)](_0x5f4ea2))))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x216)+_0x981f6c['rows'][_0x4fa11c[_0x53de7f(0x24c)][_0x2e50f7]][_0x53de7f(0x20c)]+'.');}return _0x4fa11c[_0x53de7f(0x21e)]=_0x173116,_0x4fa11c[_0x53de7f(0x210)]='succeeded',await saveImportJson(_0x2ee169[_0x53de7f(0x22e)],_0x3ca79f),!![];};if(_0x3ca79f[_0x2e380a(0x208)][_0x2e380a(0x222)](_0x480052=>_0x480052[_0x2e380a(0x210)]===_0x2e380a(0x250)&&!(_0x2ee169[_0x2e380a(0x23e)]&&_0x2ee169[_0x2e380a(0x21c)]&&_0x981f6c['imageFields']?.[_0x2e380a(0x234)]&&_0x480052[_0x2e380a(0x21e)][_0x2e380a(0x234)]===_0x480052[_0x2e380a(0x24c)][_0x2e380a(0x234)])))throw Error(_0x2e380a(0x241));if(_0x2ee169['resume']){for(const _0x34d296 of _0x3ca79f[_0x2e380a(0x208)])await _0x2172db(_0x34d296);}for(const _0x44de2b of _0x3ca79f[_0x2e380a(0x208)]){if(_0x44de2b[_0x2e380a(0x210)]===_0x2e380a(0x244))continue;if(!_0x2ee169['resume'])await _0x2172db(_0x44de2b);_0x44de2b[_0x2e380a(0x210)]='pending',await saveImportJson(_0x2ee169[_0x2e380a(0x22e)],_0x3ca79f),_0x3c70b3++;const _0x500fb7=_0x44de2b['rowIndexes'][_0x2e380a(0x20b)](_0x302ab9=>_0x981f6c['rows'][_0x302ab9]['values']),_0xb56f8c=Date['now'](),_0x2bc912={'batch':_0x3c70b3,'rowStart':_0x981f6c['rows'][_0x44de2b[_0x2e380a(0x24c)][0x0]][_0x2e380a(0x20c)],'rowEnd':_0x981f6c[_0x2e380a(0x23f)][_0x44de2b['rowIndexes']['at'](-0x1)]['rowNumber'],'count':_0x500fb7[_0x2e380a(0x234)],'bytes':_0xea5c8f(_0x44de2b[_0x2e380a(0x24c)],_0x44de2b[_0x2e380a(0x22c)]),'elapsedMs':0x0,'status':_0x2e380a(0x204)};_0x15fe05[_0x2e380a(0x221)](_0x2bc912);try{const _0x826f4d=await _0x342d8c[_0x2e380a(0x219)](_0x500fb7,_0x44de2b['taskId']);if(!_0x826f4d||_0x826f4d[_0x2e380a(0x217)]!==_0x500fb7['length']||!Array[_0x2e380a(0x24f)](_0x826f4d[_0x2e380a(0x21e)])||_0x826f4d[_0x2e380a(0x21e)][_0x2e380a(0x234)]!==_0x500fb7['length']||_0x826f4d['ids']['some'](_0xa6294e=>!validId(_0xa6294e))||new Set(_0x826f4d[_0x2e380a(0x21e)])[_0x2e380a(0x1fb)]!==_0x826f4d[_0x2e380a(0x21e)][_0x2e380a(0x234)])throw Error('Invalid\x20write\x20result.');_0x44de2b[_0x2e380a(0x21e)]=_0x826f4d[_0x2e380a(0x21e)],await saveImportJson(_0x2ee169[_0x2e380a(0x22e)],_0x3ca79f);if(!await _0x2172db(_0x44de2b))throw Error(_0x2e380a(0x23a));}catch(_0x517583){if(_0x44de2b[_0x2e380a(0x210)]===_0x2e380a(0x250))throw _0x517583;try{await _0x2172db(_0x44de2b);}catch(_0x497535){if(_0x44de2b[_0x2e380a(0x210)]===_0x2e380a(0x250))throw _0x497535;}if(_0x44de2b[_0x2e380a(0x210)]!==_0x2e380a(0x244))throw Error(_0x2e380a(0x235));}finally{_0x2bc912[_0x2e380a(0x230)]=Date[_0x2e380a(0x24a)]()-_0xb56f8c,_0x2bc912[_0x2e380a(0x210)]=_0x44de2b[_0x2e380a(0x210)]==='succeeded'?'succeeded':_0x44de2b['status']===_0x2e380a(0x250)?'conflict':_0x2e380a(0x204);}}const _0x5c0259={'status':_0x2e380a(0x21d),..._0x5159f4()};return await saveImportJson(_0x2ee169[_0x2e380a(0x24e)],_0x5c0259),_0x5c0259;}catch(_0x52b02e){if(_0x4fe360)await saveImportJson(_0x2ee169[_0x2e380a(0x24e)],{'status':_0x2e380a(0x226),..._0x5159f4(),'message':_0x52b02e[_0x2e380a(0x24b)]});throw _0x52b02e;}finally{await _0xf00e83();}}function a143_0x2e27(){const _0x5c2d10=['Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','Excel\x20row\x20','binding','batches','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','runtimeDomain','map','rowNumber','onCheckpointReady','batchSize','3315978HSfQwS','status','fileHash','imageFields','values','parse','Import\x20generated\x20ID\x20conflict.','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','count','mappingHash','write','unsent','schemaVersion','reconcileImageConflicts','completed','ids','version','flatMap','push','some','381484nQnXJx','Import\x20generated\x20ID\x20collision.','pending','incomplete','600432HMCfuA','Partial\x20import\x20task\x20readback\x20conflict.','schemaFingerprint','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','8746727MsHeVT','taskId','21eFliOu','checkpoint','keys','elapsedMs','5TrCsRK','hex','byteLength','length','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','includes','warnings','maxBatchSize','4hmzRAr','Incomplete\x20readback.','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','code','resume','rows','errors','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','toString','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','succeeded','114489zuzIYL','utf8','Invalid\x20import\x20batch\x20size.','datasetCode','reduce','now','message','rowIndexes','sort','report','isArray','conflict','actorId','appCode','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','importId','stringify','filter','maxBatchBytes','Invalid\x20import\x20task\x20readback\x20response.','readTask','403NgQYAu','add','get','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','strategy','size','664031NoHesV','has','424kdkFKA','Excel\x20contains\x20no\x20valid\x20data\x20rows.','isInteger','schemaHash','10zpLEBN','3702576NauAcW','unknown'];a143_0x2e27=function(){return _0x5c2d10;};return a143_0x2e27();}
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
- const a144_0x3b9e81=a144_0x476f;(function(_0x187776,_0x49057b){const _0x1f4655=a144_0x476f,_0x426a5c=_0x187776();while(!![]){try{const _0x24a65a=-parseInt(_0x1f4655(0x130))/0x1+-parseInt(_0x1f4655(0x18a))/0x2+parseInt(_0x1f4655(0xf9))/0x3+parseInt(_0x1f4655(0x1a7))/0x4+-parseInt(_0x1f4655(0x19d))/0x5+parseInt(_0x1f4655(0x125))/0x6*(-parseInt(_0x1f4655(0xe2))/0x7)+parseInt(_0x1f4655(0x1b5))/0x8*(parseInt(_0x1f4655(0x183))/0x9);if(_0x24a65a===_0x49057b)break;else _0x426a5c['push'](_0x426a5c['shift']());}catch(_0x1bcc83){_0x426a5c['push'](_0x426a5c['shift']());}}}(a144_0x1be9,0xd6d81));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x38ec43 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x5b605a from'exceljs';import a144_0x33cc42 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_0x3b9e81(0x1a4),a144_0x3b9e81(0xfb),'datasetId',a144_0x3b9e81(0x187),'creatorName',a144_0x3b9e81(0x1a2),a144_0x3b9e81(0x110),a144_0x3b9e81(0x1bb),a144_0x3b9e81(0x13d),a144_0x3b9e81(0x123)]),TYPES=new Set(['string',a144_0x3b9e81(0xf3),a144_0x3b9e81(0xcd),a144_0x3b9e81(0x16a),a144_0x3b9e81(0x136),'integer',a144_0x3b9e81(0x10a),a144_0x3b9e81(0xd0),'datetime',a144_0x3b9e81(0x195),'upload']),isImageContainer=_0x419aaf=>[a144_0x3b9e81(0x195),'upload'][a144_0x3b9e81(0xe0)](_0x419aaf['toLowerCase']()),hash=_0x248b64=>createHash(a144_0x3b9e81(0x161))['update'](_0x248b64)[a144_0x3b9e81(0x18f)](a144_0x3b9e81(0xd7)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x3b9e81(0x121)),nameCoordinates=require(a144_0x3b9e81(0x15c)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve']('exceljs')),zipRequire=createRequire(excelRequire[a144_0x3b9e81(0x1b7)](a144_0x3b9e81(0x138))),ZipEntry=zipRequire(a144_0x3b9e81(0x19a)),zipReader=zipRequire(a144_0x3b9e81(0x172)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a144_0x3b9e81(0x14c));function centralDirectoryEnd(_0x473d78,_0x1c6083){const _0x400860=a144_0x3b9e81,_0x1fbeaf=()=>new Error(_0x400860(0x177)),_0x531b28=_0x473d78['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x531b28<0x0||_0x531b28+0x16>_0x473d78[_0x400860(0x197)]||_0x531b28+0x16+_0x473d78['readUInt16LE'](_0x531b28+0x14)!==_0x473d78[_0x400860(0x197)])throw _0x1fbeaf();let _0x2fa3f5=_0x473d78['readUInt16LE'](_0x531b28+0xa),_0x2f67b6=_0x473d78['readUInt32LE'](_0x531b28+0xc),_0xab45b4=_0x473d78[_0x400860(0x103)](_0x531b28+0x10),_0x33035a=_0x531b28;const _0x4d81b4=_0x531b28-0x14,_0x53a021=_0x4d81b4>=0x0&&_0x473d78[_0x400860(0x103)](_0x4d81b4)===0x7064b50,_0x350b85=[0x4,0x6,0x8,0xa]['some'](_0x3ab640=>_0x473d78[_0x400860(0x1b3)](_0x531b28+_0x3ab640)===0xffff)||_0x2f67b6===0xffffffff||_0xab45b4===0xffffffff;if(_0x53a021!==_0x350b85)throw _0x1fbeaf();if(_0x53a021){if(_0x473d78[_0x400860(0x17f)](Buffer[_0x400860(0x154)]([0x50,0x4b,0x6,0x7]))!==_0x4d81b4)throw _0x1fbeaf();const _0x1d8d69=_0x9ab0d=>{const _0x43872b=_0x400860,_0x7af5a7=Number(_0x473d78['readBigUInt64LE'](_0x9ab0d));if(!Number[_0x43872b(0x17a)](_0x7af5a7))throw _0x1fbeaf();return _0x7af5a7;};_0x33035a=_0x1d8d69(_0x4d81b4+0x8);if(_0x473d78['readUInt32LE'](_0x4d81b4+0x4)!==0x0||_0x473d78[_0x400860(0x103)](_0x4d81b4+0x10)!==0x1||_0x33035a>_0x4d81b4-0x38||_0x473d78[_0x400860(0x103)](_0x33035a)!==0x6064b50||_0x1d8d69(_0x33035a+0x4)!==0x2c||_0x33035a+0x38!==_0x4d81b4||_0x473d78[_0x400860(0x103)](_0x33035a+0x10)!==0x0||_0x473d78['readUInt32LE'](_0x33035a+0x14)!==0x0)throw _0x1fbeaf();_0x2fa3f5=_0x1d8d69(_0x33035a+0x20),_0x2f67b6=_0x1d8d69(_0x33035a+0x28),_0xab45b4=_0x1d8d69(_0x33035a+0x30);if(_0x1d8d69(_0x33035a+0x18)!==_0x2fa3f5)throw _0x1fbeaf();}else{if(_0x473d78[_0x400860(0x1b3)](_0x531b28+0x4)!==0x0||_0x473d78[_0x400860(0x1b3)](_0x531b28+0x6)!==0x0||_0x473d78[_0x400860(0x1b3)](_0x531b28+0x8)!==_0x2fa3f5)throw _0x1fbeaf();}const _0x4003bb=_0x1c6083[_0x400860(0x124)];if(_0xab45b4!==_0x4003bb||_0x2fa3f5!==_0x1c6083[_0x400860(0xe4)]||_0xab45b4+_0x2f67b6!==_0x33035a)throw _0x1fbeaf();return _0x33035a;}function a144_0x1be9(){const _0x53fed5=['creatorId','errors','byteLength','2935548VMdUSQ','Unsupported\x20field\x20type:\x20','extraFields','emptyRows','isArray','digest','message','min','jpg','upload','batchSize','image','Invalid\x20worksheet\x20coordinate.','length','parseInt','Duplicate\x20workbook\x20ZIP\x20entry.','./zipEntry','utf8decode','fileNameRaw','116550qUdtZA','dataValidations','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','_xlnm.Print_Titles','row','modifierId','map','tenantCode','definedName','parseOpen','5264180LTsidm','materialized','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','startsWith','generated','Invalid\x20defined\x20name\x20coordinate.','Worksheet\x20exceeds\x20','Worksheet\x20column\x20objects\x20exceed\x20100000.','bitFlag','File\x20is\x20not\x20an\x20XLSX\x20workbook.','slice','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','readUInt16LE','filter','440NvVdTe','size','resolve','Invalid\x20worksheet\x20XML.','original','getRow','createTime','Invalid\x20worksheet\x20XML:\x20','Unknown\x20or\x20generated\x20mapping\x20field:\x20','getCell','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','end','serial_number','textarea','autoIncrement','readEntry','date','hiddenRow','push','Expected\x20a\x20text\x20cell.','compressedSize','pop','XLSX\x20file\x20exceeds\x2020\x20MB.','hex','dataset-import/','dir','xl/workbook.xml','code','localeCompare','Invalid\x20worksheet\x20merge\x20reference.','required','split','includes','entries','2324084ypRGfY','XML\x20DTD/entities\x20are\x20not\x20supported.','entryCount','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Only\x20.xlsx\x20files\x20are\x20supported.','Invalid\x20worksheet\x20hyperlink\x20reference.','Invalid\x20worksheet\x20nested\x20cell.','Invalid\x20worksheet\x20nested\x20row.','ranges','Missing\x20image\x20media:\x20','fileNameStr','openReadStream','readExtraFields','Dataset\x20field\x20metadata\x20is\x20missing.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Image\x20XML\x20node\x20budget\x20exceeded.','Duplicate\x20header:\x20','text','isBuffer','Workbook','string','mergeCell','model','5180952mQWIcd','write','appCode','doctype','bottom','find','unixPermissions','integer','Invalid\x20worksheet\x20column\x20range.','Cell\x20exceeds\x2064\x20KB.','readUInt32LE','parseClose','isInteger','versionMadeBy','file','error','.xlsx','boolean','Invalid\x20XLSX\x20entry.','name','isFinite','abs','dataset','modifierName','Invalid\x20XLSX\x20archive.','dataType','value','contentHash','has','media','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','Worksheet\x20exceeds\x2016384\x20columns.','utf8','nativeCell','test','warnings','extname','Duplicate\x20dataset\x20field\x20codes.','concat','exceljs/lib/xlsx/xform/book/defined-name-xform.js','Formula\x20has\x20no\x20cached\x20result.','deleted','readEntryCursor','6QlPdOC','set','isFile','fileCommentRaw','doType','object','fileComment','extraFieldsLength','toLowerCase','_xlnm.Print_Area','ref','1709047rIzXFN','create','opentag','trim','fields','address','decimal','Worksheet\x20coordinate\x20exceeds\x20','jszip','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','xlsx','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','updateTime','hyperlink','sort','imageCells','getTime','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','get','[Content_Types].xml','imageFields','eachCell','rowCount','formula','Expected\x20a\x20boolean\x20cell.','load','Expected\x20an\x20Excel\x20date\x20cell.','./utils','columnCount','uncompressedSize','close','attributes','worksheets','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','subarray','from','left','decodeEx','uploadFields','result','max','directory','generalPurposeBitFlag','exceljs/lib/utils/col-cache.js','externalFileAttributes','headerRow','Requested\x20worksheet\x20does\x20not\x20exist.','col','sha256','every','Non-canonical\x20worksheet\x20ZIP\x20entry.','sheet','parserVersion','Invalid\x20ZIP\x20local\x20file\x20header.','datetime','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','source','number','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','add','parseText','mapping','reference','charCodeAt','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','./reader/readerFor','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','sourceType','closetag','handleUTF8','Invalid\x20ZIP\x20central\x20directory\x20layout.','rows','extraFieldRaw','isSafeInteger','destroy','stringify','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','right','lastIndexOf','some','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','type','224037Ltwhme','exec','data','top'];a144_0x1be9=function(){return _0x53fed5;};return a144_0x1be9();}function a144_0x476f(_0x2b3d05,_0x15ac68){_0x2b3d05=_0x2b3d05-0xc8;const _0x1be907=a144_0x1be9();let _0x476f44=_0x1be907[_0x2b3d05];return _0x476f44;}function consumerEntryName(_0x3ab3b4,_0x271ab5){const _0x163dee=a144_0x3b9e81;if(_0x271ab5[_0x163dee(0x18c)][_0x163dee(0x1b4)](_0x469227=>_0x469227['id']===0x1)[_0x163dee(0x197)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x4faa9c=_0x271ab5,_0x45635c=_0x271ab5['relativeOffsetOfLocalHeader'];if(!Buffer[_0x163dee(0xf4)](_0x4faa9c[_0x163dee(0x19c)])||!Buffer[_0x163dee(0xf4)](_0x4faa9c['extraFieldRaw'])||!Buffer[_0x163dee(0xf4)](_0x4faa9c['fileCommentRaw'])||!Number['isSafeInteger'](_0x45635c)||_0x45635c<0x0||_0x45635c>_0x3ab3b4[_0x163dee(0x197)]-0x1e||_0x3ab3b4['readUInt32LE'](_0x45635c)!==0x4034b50)throw new Error(_0x163dee(0x166));const _0xf3fcc8=_0x45635c+0x1e+_0x3ab3b4[_0x163dee(0x1b3)](_0x45635c+0x1a),_0x187296=_0xf3fcc8+_0x3ab3b4[_0x163dee(0x1b3)](_0x45635c+0x1c)+_0x271ab5[_0x163dee(0xd4)];if(!Number['isSafeInteger'](_0x187296)||_0x187296>_0x3ab3b4[_0x163dee(0x197)])throw new Error(_0x163dee(0x166));if(_0xf3fcc8>_0x3ab3b4[_0x163dee(0x197)]||!_0x3ab3b4[_0x163dee(0x153)](_0x45635c+0x1e,_0xf3fcc8)['equals'](_0x4faa9c[_0x163dee(0x19c)]))throw new Error(_0x163dee(0x1b2));const _0x44d6ec=new ZipEntry({},{'decodeFileName':zipUtf8[_0x163dee(0x19b)]});_0x44d6ec[_0x163dee(0x1af)]=_0x271ab5[_0x163dee(0x15b)],_0x44d6ec['fileName']=_0x4faa9c['fileNameRaw'],_0x44d6ec[_0x163dee(0x12b)]=_0x4faa9c[_0x163dee(0x128)],_0x44d6ec[_0x163dee(0x12c)]=_0x4faa9c['extraFieldRaw'][_0x163dee(0x197)],_0x44d6ec[_0x163dee(0xee)](zipReader(_0x4faa9c[_0x163dee(0x179)])),_0x44d6ec[_0x163dee(0x176)](),_0x44d6ec['versionMadeBy']=_0x271ab5[_0x163dee(0x106)],_0x44d6ec['externalFileAttributes']=_0x271ab5[_0x163dee(0x15d)],_0x44d6ec['processAttributes']();const _0x1b3cdb=_0x44d6ec[_0x163dee(0xd9)]||Boolean((_0x44d6ec[_0x163dee(0xff)]??0x0)&0x4000),_0x645b87=zipPaths[_0x163dee(0x1b7)](_0x44d6ec[_0x163dee(0xec)]),_0x54d395=_0x645b87[_0x163dee(0x1aa)]('/')?_0x645b87[_0x163dee(0x1b1)](0x1):_0x645b87;return{'name':_0x54d395,'original':_0x44d6ec[_0x163dee(0xec)],'directory':_0x1b3cdb};}export function normalizeImportFields(_0x455f39){const _0x72b686=a144_0x3b9e81;if(!_0x455f39||(_0x455f39[_0x72b686(0x169)]??_0x455f39[_0x72b686(0x10f)]?.[_0x72b686(0x174)])!=='METADATA')throw new Error(_0x72b686(0x1a9));const _0x5d45f1=Array[_0x72b686(0x18e)](_0x455f39[_0x72b686(0x134)]),_0x3ece28=_0x5d45f1?_0x455f39['fields']:_0x455f39['properties'];if(!Array[_0x72b686(0x18e)](_0x3ece28)||_0x3ece28['length']===0x0)throw new Error(_0x72b686(0xef));const _0x44b6f8=[],_0x7d6de7=new Set();for(const _0x4f069e of _0x3ece28){if(_0x4f069e['deleted']===!![])continue;let _0x2296d0=_0x4f069e['extend']??{};if(!_0x5d45f1&&typeof _0x2296d0===_0x72b686(0xf6)){try{_0x2296d0=JSON['parse'](_0x2296d0);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x2296d0||typeof _0x2296d0!==_0x72b686(0x12a)||Array[_0x72b686(0x18e)](_0x2296d0))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x12161a=_0x5d45f1?_0x4f069e[_0x72b686(0x10c)]:_0x4f069e[_0x72b686(0xdb)],_0x53f19d=_0x5d45f1?_0x4f069e[_0x72b686(0x129)]:_0x4f069e[_0x72b686(0x182)]??_0x4f069e[_0x72b686(0x112)];if(typeof _0x12161a!==_0x72b686(0xf6)||!_0x12161a||typeof _0x53f19d!==_0x72b686(0xf6)||_0x7d6de7[_0x72b686(0x115)](_0x12161a))throw new Error(_0x72b686(0x171));if(_0x53f19d[_0x72b686(0x12d)]()===_0x72b686(0xcc))throw new Error(_0x72b686(0x142));_0x7d6de7[_0x72b686(0x16c)](_0x12161a);const _0x20317d=_0x5d45f1?_0x4f069e:_0x2296d0,_0x4b7921={'code':_0x12161a,'type':_0x53f19d,'required':_0x20317d[_0x72b686(0xde)]===!![]};if(RESERVED[_0x72b686(0x115)](_0x12161a)||_0x20317d[_0x72b686(0x1ab)]===!![]||_0x20317d[_0x72b686(0xce)]===!![])_0x4b7921['generated']=!![];_0x44b6f8[_0x72b686(0xd2)](_0x4b7921);}return _0x44b6f8;}async function checkArchive(_0x57e831,_0xb78830){await new Promise((_0x1a69e0,_0x103439)=>{a144_0x33cc42['fromBuffer'](_0x57e831,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x1a2fd0,_0x5c18d9)=>{const _0x4a11d4=a144_0x476f;if(_0x1a2fd0||!_0x5c18d9){_0x103439(_0x1a2fd0??new Error(_0x4a11d4(0x111)));return;}let _0x4ed417;try{_0x4ed417=centralDirectoryEnd(_0x57e831,_0x5c18d9);}catch(_0x294384){_0x5c18d9['close'](),_0x103439(_0x294384);return;}let _0x9afb1a=0x0,_0x3b76b8=0x0,_0x1403ea=0x0,_0x1e2254=0x0,_0x44c344=0x0,_0x2cd051=0x0,_0x2afec4=0x0,_0x1c71d2=0x0,_0x37585b=0x0,_0x170987=![],_0x379d7a;const _0x5b36e1=new Set(),_0x129f77=_0x22d855=>{const _0x464c31=_0x4a11d4;if(_0x170987)return;_0x170987=!![],_0x379d7a?.['destroy'](),_0x5c18d9[_0x464c31(0x14f)](),_0x103439(_0x22d855);},_0x59a558=(_0x39c47a,_0x21b59b)=>{const _0x4b2619=_0x4a11d4;if(!_0x39c47a||!/^\d+$/[_0x4b2619(0x11c)](_0x39c47a))throw new Error(_0x4b2619(0x196));const _0x3c6afb=Number(_0x39c47a);if(!Number[_0x4b2619(0x17a)](_0x3c6afb)||_0x3c6afb<0x1||_0x3c6afb>_0x21b59b)throw new Error(_0x4b2619(0x137)+_0x21b59b+'.');return _0x3c6afb;},_0x18005d=(_0x2d0750,_0x1a4677=MAX_XML_COLUMNS)=>{const _0x392a6c=_0x4a11d4,_0xd9e26=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x392a6c(0x184)](_0x2d0750);if(!_0xd9e26)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0xc80ccb=0x0;for(const _0xec9736 of _0xd9e26[0x1])_0xc80ccb=_0xc80ccb*0x1a+_0xec9736[_0x392a6c(0x170)](0x0)-0x40;if(_0xc80ccb>_0x1a4677)throw new Error(_0x392a6c(0x1ad)+_0x1a4677+'\x20columns.');return{'row':_0x59a558(_0xd9e26[0x2],MAX_XML_ROWS),'col':_0xc80ccb};},_0x4d5815=_0x39b5ff=>{const _0x59c4ab=_0x4a11d4;if(_0x39b5ff[_0x59c4ab(0x10c)]===_0x59c4ab(0x12e)||_0x39b5ff[_0x59c4ab(0x10c)]===_0x59c4ab(0x1a0))return;for(const _0x5d574c of _0x39b5ff[_0x59c4ab(0xea)]){if(!ABSOLUTE_NAME_RANGE[_0x59c4ab(0x11c)](_0x5d574c[_0x59c4ab(0xdf)]('!')[_0x59c4ab(0xd5)]()||''))continue;const _0x4cdd9e=nameCoordinates[_0x59c4ab(0x156)](_0x5d574c),_0x30f81f=_0x59c4ab(0x186)in _0x4cdd9e,_0x3e397c=_0x30f81f?[_0x4cdd9e[_0x59c4ab(0x186)],_0x4cdd9e[_0x59c4ab(0xfd)]]:[_0x4cdd9e[_0x59c4ab(0x1a1)]],_0x4dfd8a=_0x30f81f?[_0x4cdd9e[_0x59c4ab(0x155)],_0x4cdd9e['right']]:[_0x4cdd9e[_0x59c4ab(0x160)]],_0x20e628=(_0x3a32df,_0x452fa9)=>Number[_0x59c4ab(0x17a)](_0x3a32df)&&_0x3a32df>=0x1&&_0x3a32df<=_0x452fa9;if(!_0x3e397c[_0x59c4ab(0x162)](_0x1c1dad=>_0x20e628(_0x1c1dad,MAX_XML_ROWS))||!_0x4dfd8a[_0x59c4ab(0x162)](_0x41c581=>_0x20e628(_0x41c581,MAX_XML_COLUMNS)))throw new Error(_0x59c4ab(0x1ac));_0x2afec4+=_0x30f81f?(_0x4cdd9e[_0x59c4ab(0xfd)]-_0x4cdd9e[_0x59c4ab(0x186)]+0x1)*(_0x4cdd9e[_0x59c4ab(0x17e)]-_0x4cdd9e[_0x59c4ab(0x155)]+0x1):0x1;if(_0x2afec4>MAX_ROWS)throw new Error(_0x59c4ab(0xe5));}};_0x5c18d9['on'](_0x4a11d4(0x108),_0x129f77),_0x5c18d9['on']('entry',_0x5fbc5c=>{const _0x348343=_0x4a11d4;if(_0x170987)return;if(++_0x1403ea>0x2710||(_0x9afb1a+=_0x5fbc5c[_0x348343(0x14e)])>MAX_EXPANDED){_0x129f77(new Error(_0x348343(0x19f)));return;}let _0x10663a;try{_0x10663a=consumerEntryName(_0x57e831,_0x5fbc5c);}catch(_0x49b218){_0x129f77(_0x49b218);return;}if(_0x10663a[_0x348343(0x15a)]){_0x5c18d9['readEntry']();return;}const _0x5dd4b2=_0x10663a[_0x348343(0x10c)];if(_0xb78830&&(_0x5dd4b2!==_0x10663a[_0x348343(0x1b9)]||_0x5b36e1['has'](_0x5dd4b2)||_0x5dd4b2['startsWith']('/')||_0x5dd4b2['includes']('\x5c'))){_0x129f77(new Error(_0x348343(0x152)));return;}if(_0x5dd4b2!==_0x10663a[_0x348343(0x1b9)]&&(_0x5dd4b2===_0x348343(0xda)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x348343(0x11c)](_0x5dd4b2))){_0x129f77(new Error(_0x348343(0xca)));return;}const _0x155f9e=_0x5dd4b2===_0x348343(0xda);if(_0x155f9e&&_0x5b36e1[_0x348343(0x115)](_0x5dd4b2)){_0x129f77(new Error(_0x348343(0x199)));return;}_0x5b36e1[_0x348343(0x16c)](_0x5dd4b2);const _0x5064fe=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x348343(0x11c)](_0x5dd4b2);if(_0x5064fe&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x348343(0x11c)](_0x5dd4b2)){_0x129f77(new Error(_0x348343(0x163)));return;}_0x5c18d9[_0x348343(0xed)](_0x5fbc5c,(_0x1d41e3,_0x5e3215)=>{const _0x274540=_0x348343;if(_0x170987){_0x5e3215?.[_0x274540(0x17b)]();return;}if(_0x1d41e3||!_0x5e3215){_0x129f77(_0x1d41e3??new Error(_0x274540(0x10b)));return;}_0x379d7a=_0x5e3215;const _0x24040f=_0xb78830?[]:undefined,_0x2bfd2b=_0xb78830&&/[.](xml|rels)$/['test'](_0x5dd4b2)?new StringDecoder(_0x274540(0x11a)):undefined,_0x4f50d4=_0x2bfd2b?new SaxesParser({'xmlns':![]}):undefined,_0x51e8df=()=>{if(++_0x37585b>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x4f50d4?.['on'](_0x274540(0xfc),()=>{const _0x38f469=_0x274540;throw Error(_0x38f469(0xe3));}),_0x4f50d4?.['on'](_0x274540(0x132),()=>{const _0x270326=_0x274540;_0x51e8df();if(++_0x1c71d2>0x7a120)throw Error(_0x270326(0xf1));}),_0x4f50d4?.['on']('text',_0x51e8df),_0x4f50d4?.['on'](_0x274540(0x175),_0x51e8df),_0x4f50d4?.['on'](_0x274540(0x108),_0x1e2a97=>{throw _0x1e2a97;});const _0x22563d=_0x5064fe||_0x155f9e?new StringDecoder(_0x274540(0x11a)):undefined,_0x32d00f=_0x5064fe||_0x155f9e?new SaxesParser({'xmlns':![]}):undefined;let _0x1a415d,_0x20ba74=0x0,_0x5944f2=0x0,_0x579b75,_0x115909,_0x3a1961=![],_0x4c2e8f=![],_0x3542f9,_0x20a6a0,_0x22da3a,_0x4edb1f=![];const _0x23394c=[],_0x417cd4=new Set();let _0x2296b2;const _0x21cffb=(_0x5d0ef8,_0x4638bc=0x0)=>{const _0x3d9cb7=_0x274540;_0x44c344+=_0x4638bc+Math[_0x3d9cb7(0x159)](0x0,_0x5d0ef8-_0x5944f2),_0x5944f2=Math[_0x3d9cb7(0x159)](_0x5944f2,_0x5d0ef8);if(_0x44c344>MAX_ROWS)throw new Error(_0x3d9cb7(0x1ae));};_0x32d00f?.['on'](_0x274540(0x132),_0x48f951=>{const _0x3d84ad=_0x274540;if(_0x155f9e){if(!_0x1a415d&&_0x48f951['name']===_0x3d84ad(0x1a5))_0x1a415d=new DefinedNameXform();_0x1a415d?.[_0x3d84ad(0x1a6)](_0x48f951);return;}if(_0x48f951['name']===_0x3d84ad(0x1a1)){if(_0x4c2e8f)throw new Error(_0x3d84ad(0xe9));_0x59a558(_0x48f951[_0x3d84ad(0x150)]['r'],MAX_XML_ROWS),_0x579b75=undefined,_0x22da3a=undefined,_0x4edb1f=![];}else{if(_0x48f951['name']==='c'){if(_0x4c2e8f)throw new Error(_0x3d84ad(0xe8));_0x4c2e8f=!![],_0x3a1961=Boolean(Number[_0x3d84ad(0x198)](_0x48f951[_0x3d84ad(0x150)]['s']??'',0xa)),_0x2296b2=undefined,_0x3542f9=_0x48f951[_0x3d84ad(0x150)]['r']||undefined,_0x20a6a0=_0x3542f9?_0x18005d(_0x3542f9):undefined;if(_0x20a6a0)_0x115909=_0x20a6a0;else _0x115909=_0x579b75?{'row':_0x579b75[_0x3d84ad(0x1a1)],'col':_0x579b75[_0x3d84ad(0x160)]+0x1}:undefined;}else{if(_0x4c2e8f&&['f','v','t']['includes'](_0x48f951[_0x3d84ad(0x10c)])){_0x2296b2=_0x48f951[_0x3d84ad(0x10c)];if(_0x48f951[_0x3d84ad(0x10c)]==='f'&&_0x48f951[_0x3d84ad(0x150)]['t'])_0x3a1961=!![];}else{if(_0x4c2e8f&&_0x48f951[_0x3d84ad(0x10c)]==='r')_0x3a1961=!![];else{if(_0x48f951[_0x3d84ad(0x10c)]===_0x3d84ad(0x13e)){const _0x34549b=_0x48f951[_0x3d84ad(0x150)][_0x3d84ad(0x12f)];if(!_0x34549b)throw new Error(_0x3d84ad(0xe7));const _0x34de07=_0x34549b[_0x3d84ad(0xdf)](':');if(_0x34de07['length']>0x2)throw new Error(_0x3d84ad(0xe7));const _0x561200=_0x18005d(_0x34de07[0x0]),_0x47187c=_0x18005d(_0x34de07[0x1]??_0x34de07[0x0]);_0x417cd4[_0x3d84ad(0x16c)](_0x34549b),_0x21cffb(Math[_0x3d84ad(0x159)](_0x561200[_0x3d84ad(0x160)],_0x47187c[_0x3d84ad(0x160)]),0x1);}else{if(_0x48f951[_0x3d84ad(0x10c)]===_0x3d84ad(0x160)){const _0x474058=_0x59a558(_0x48f951['attributes'][_0x3d84ad(0x191)],0x4000),_0x39fcaa=_0x59a558(_0x48f951['attributes'][_0x3d84ad(0x159)],0x4000);if(_0x474058>_0x39fcaa)throw new Error(_0x3d84ad(0x101));_0x21cffb(_0x39fcaa,0x1);}else{if(_0x48f951[_0x3d84ad(0x10c)]===_0x3d84ad(0xf7)){const _0x2499a9=_0x48f951['attributes'][_0x3d84ad(0x12f)];if(!_0x2499a9)throw new Error(_0x3d84ad(0xdd));const _0xc1ee38=_0x2499a9[_0x3d84ad(0xdf)](':');if(_0xc1ee38[_0x3d84ad(0x197)]>0x2)throw new Error(_0x3d84ad(0xdd));const _0x3f5bad=_0x18005d(_0xc1ee38[0x0]),_0x3b7a99=_0x18005d(_0xc1ee38[0x1]??_0xc1ee38[0x0]);_0x21cffb(Math[_0x3d84ad(0x159)](_0x3f5bad[_0x3d84ad(0x160)],_0x3b7a99[_0x3d84ad(0x160)]));const _0x41f2c2=(Math[_0x3d84ad(0x10e)](_0x3b7a99[_0x3d84ad(0x1a1)]-_0x3f5bad['row'])+0x1)*(Math[_0x3d84ad(0x10e)](_0x3b7a99['col']-_0x3f5bad[_0x3d84ad(0x160)])+0x1);_0x1e2254+=_0x41f2c2+_0x20ba74++;if(_0x1e2254>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x32d00f?.['on']('text',_0x164706=>{const _0x2ea5cc=_0x274540;if(_0x155f9e){_0x1a415d?.[_0x2ea5cc(0x16d)](_0x164706);return;}if(_0x4c2e8f&&_0x2296b2&&_0x164706)_0x3a1961=!![];}),_0x32d00f?.['on'](_0x274540(0x175),_0x2ab511=>{const _0x3f22b3=_0x274540;if(_0x155f9e){_0x1a415d&&!_0x1a415d[_0x3f22b3(0x104)]()&&(_0x4d5815(_0x1a415d[_0x3f22b3(0xf8)]),_0x1a415d=undefined);return;}if(_0x2ab511[_0x3f22b3(0x10c)]==='c'){!_0x3a1961&&_0x3542f9&&!_0x22da3a&&(_0x22da3a={'before':_0x579b75,'cells':[]});if(_0x22da3a){if(++_0x2cd051>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0x22da3a['cells'][_0x3f22b3(0xd2)]({'reference':_0x3542f9,'address':_0x20a6a0,'materialized':_0x3a1961});if(!_0x3542f9&&_0x3a1961)_0x4edb1f=!![];}if(_0x3a1961){if(!_0x22da3a||_0x3542f9){if(!_0x115909)throw new Error(_0x3f22b3(0x168));if(_0x115909[_0x3f22b3(0x160)]>MAX_XML_COLUMNS)throw new Error(_0x3f22b3(0x119));_0x21cffb(_0x115909[_0x3f22b3(0x160)]);}_0x579b75=_0x115909;}_0x4c2e8f=![],_0x115909=undefined,_0x3542f9=undefined,_0x20a6a0=undefined,_0x2296b2=undefined;}else{if(_0x2ab511[_0x3f22b3(0x10c)]==='row'){if(_0x22da3a&&_0x4edb1f)_0x23394c[_0x3f22b3(0xd2)](_0x22da3a);_0x22da3a=undefined,_0x4edb1f=![];}else{if(_0x2ab511[_0x3f22b3(0x10c)]===_0x2296b2)_0x2296b2=undefined;}}}),_0x32d00f?.['on']('error',_0x118ceb=>{const _0x28250f=_0x274540;throw new Error(_0x28250f(0x1bc)+_0x118ceb['message']);}),_0x5e3215['on']('error',_0x129f77),_0x5e3215['on'](_0x274540(0x185),_0x371106=>{const _0x4216ba=_0x274540;if(_0x170987)return;_0x3b76b8+=_0x371106['length'],_0x24040f?.[_0x4216ba(0xd2)](_0x371106);if(_0x3b76b8>MAX_EXPANDED){_0x129f77(new Error(_0x4216ba(0x19f)));return;}try{if(_0x4f50d4&&_0x2bfd2b)_0x4f50d4[_0x4216ba(0xfa)](_0x2bfd2b[_0x4216ba(0xfa)](_0x371106));if(_0x32d00f&&_0x22563d)_0x32d00f[_0x4216ba(0xfa)](_0x22563d[_0x4216ba(0xfa)](_0x371106));}catch(_0x49ccb6){_0x129f77(_0x49ccb6 instanceof Error?_0x49ccb6:new Error(_0x4216ba(0x1b8)));}}),_0x5e3215['on'](_0x274540(0xcb),()=>{const _0x48f0db=_0x274540;if(_0x170987)return;try{if(_0x4f50d4&&_0x2bfd2b)_0x4f50d4[_0x48f0db(0xfa)](_0x2bfd2b['end']())['close']();if(_0x32d00f&&_0x22563d)_0x32d00f[_0x48f0db(0xfa)](_0x22563d[_0x48f0db(0xcb)]())[_0x48f0db(0x14f)]();for(const _0x371cd9 of _0x23394c){let _0x4efcb5=_0x371cd9['before'];for(const _0x197087 of _0x371cd9['cells']){if(!_0x197087[_0x48f0db(0x1a8)]&&!(_0x197087[_0x48f0db(0x16f)]&&_0x417cd4[_0x48f0db(0x115)](_0x197087[_0x48f0db(0x16f)])))continue;const _0x47faf8=_0x197087['address']??(_0x4efcb5?{'row':_0x4efcb5[_0x48f0db(0x1a1)],'col':_0x4efcb5[_0x48f0db(0x160)]+0x1}:undefined);if(!_0x47faf8)throw new Error(_0x48f0db(0x168));if(_0x47faf8[_0x48f0db(0x160)]>MAX_XML_COLUMNS)throw new Error(_0x48f0db(0x119));_0x21cffb(_0x47faf8[_0x48f0db(0x160)]),_0x4efcb5=_0x47faf8;}}_0x23394c['length']=0x0,_0x417cd4['clear']();}catch(_0x19a539){_0x129f77(_0x19a539 instanceof Error?_0x19a539:new Error(_0x48f0db(0x1b8)));return;}if(_0x24040f)_0xb78830['set'](_0x5dd4b2,Buffer[_0x48f0db(0x120)](_0x24040f));_0x379d7a=undefined,_0x5c18d9[_0x48f0db(0xcf)]();});});}),_0x5c18d9['on']('end',()=>{const _0x3c4354=_0x4a11d4;if(_0x170987)return;if(_0x5c18d9[_0x3c4354(0x124)]!==_0x4ed417){_0x103439(new Error(_0x3c4354(0x181)));return;}if(!_0x5b36e1[_0x3c4354(0x115)](_0x3c4354(0x144))||!_0x5b36e1[_0x3c4354(0x115)](_0x3c4354(0xda)))_0x103439(new Error(_0x3c4354(0x1b0)));else _0x1a69e0();}),_0x5c18d9[_0x4a11d4(0xcf)]();});});}function valueOf(_0x5de7f6){const _0x28c2ef=a144_0x3b9e81,_0x2055f4=_0x5de7f6[_0x28c2ef(0x113)];if(_0x2055f4&&typeof _0x2055f4===_0x28c2ef(0x12a)&&(_0x28c2ef(0x148)in _0x2055f4||'sharedFormula'in _0x2055f4)){if(!('result'in _0x2055f4)||_0x2055f4[_0x28c2ef(0x158)]===undefined)throw new Error(_0x28c2ef(0x122));return _0x2055f4[_0x28c2ef(0x158)];}return _0x2055f4;}function convert(_0x50fccd,_0x5ba50c){const _0x3e2eb1=a144_0x3b9e81;if(_0x50fccd===null||_0x50fccd===undefined||_0x50fccd===''){if(_0x5ba50c[_0x3e2eb1(0xde)]&&!_0x5ba50c[_0x3e2eb1(0x1ab)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x50fccd==='string'&&Buffer['byteLength'](_0x50fccd,_0x3e2eb1(0x11a))>MAX_CELL)throw new Error(_0x3e2eb1(0x102));switch(_0x5ba50c[_0x3e2eb1(0x182)][_0x3e2eb1(0x12d)]()){case _0x3e2eb1(0xf6):case'text':case'textarea':if(typeof _0x50fccd!==_0x3e2eb1(0xf6))throw new Error(_0x3e2eb1(0xd3));return _0x50fccd;case'number':case _0x3e2eb1(0x136):case _0x3e2eb1(0x100):if(typeof _0x50fccd!==_0x3e2eb1(0x16a)||!Number[_0x3e2eb1(0x10d)](_0x50fccd)||Math['abs'](_0x50fccd)>Number['MAX_SAFE_INTEGER']||_0x5ba50c[_0x3e2eb1(0x182)]['toLowerCase']()===_0x3e2eb1(0x100)&&!Number[_0x3e2eb1(0x105)](_0x50fccd))throw new Error(_0x3e2eb1(0x118));return _0x50fccd;case _0x3e2eb1(0x10a):if(typeof _0x50fccd!==_0x3e2eb1(0x10a))throw new Error(_0x3e2eb1(0x149));return _0x50fccd;case _0x3e2eb1(0xd0):case _0x3e2eb1(0x167):if(!(_0x50fccd instanceof Date)||!Number[_0x3e2eb1(0x10d)](_0x50fccd['getTime']()))throw new Error(_0x3e2eb1(0x14b));return _0x50fccd[_0x3e2eb1(0x141)]();default:throw new Error(_0x3e2eb1(0x18b)+_0x5ba50c['type']+'.');}}export async function buildExcelManifest(_0x38c081){const _0x16bc1a=a144_0x3b9e81,_0xfc4c13=_0x38c081[_0x16bc1a(0x15e)]??0x1;if(!Number[_0x16bc1a(0x105)](_0xfc4c13)||_0xfc4c13<0x1||_0xfc4c13>MAX_ROWS)throw new Error(_0x16bc1a(0x139));if(_0x38c081[_0x16bc1a(0x194)]!==undefined&&(!Number[_0x16bc1a(0x105)](_0x38c081[_0x16bc1a(0x194)])||_0x38c081['batchSize']<0x1||_0x38c081[_0x16bc1a(0x194)]>0x3e8))throw new Error(_0x16bc1a(0x13a));if(a144_0x38ec43[_0x16bc1a(0x11e)](_0x38c081[_0x16bc1a(0x107)])[_0x16bc1a(0x12d)]()!==_0x16bc1a(0x109))throw new Error(_0x16bc1a(0xe6));const _0x2f0e01=await stat(_0x38c081[_0x16bc1a(0x107)]);if(!_0x2f0e01[_0x16bc1a(0x127)]()||_0x2f0e01[_0x16bc1a(0x1b6)]>MAX_FILE)throw new Error('XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.');const _0x3f027b=await readFile(_0x38c081[_0x16bc1a(0x107)]);if(_0x3f027b[_0x16bc1a(0x197)]>MAX_FILE)throw new Error(_0x16bc1a(0xd6));const _0x2deca7=_0x38c081['fields']['some'](_0xdc5b4b=>isImageContainer(_0xdc5b4b[_0x16bc1a(0x182)])&&Object['values'](_0x38c081[_0x16bc1a(0x16e)])[_0x16bc1a(0xe0)](_0xdc5b4b['code']))?new Map():undefined;await checkArchive(_0x3f027b,_0x2deca7);const _0x1ac04c=new a144_0x5b605a[(_0x16bc1a(0xf5))]();await _0x1ac04c[_0x16bc1a(0x13b)][_0x16bc1a(0x14a)](_0x3f027b,{'ignoreNodes':[_0x16bc1a(0x19e)]});const _0x4cb39c=_0x38c081[_0x16bc1a(0x164)];let _0x1f52a0;if(_0x4cb39c===undefined)_0x1f52a0=_0x1ac04c['worksheets'][0x0];else{if(typeof _0x4cb39c===_0x16bc1a(0xf6)&&_0x1ac04c[_0x16bc1a(0x151)]['some'](_0x548066=>_0x548066[_0x16bc1a(0x10c)]===_0x4cb39c))_0x1f52a0=_0x1ac04c[_0x16bc1a(0x151)][_0x16bc1a(0xfe)](_0x52caa1=>_0x52caa1['name']===_0x4cb39c);else{if(typeof _0x4cb39c==='number'||/^\d+$/[_0x16bc1a(0x11c)](_0x4cb39c)){const _0x2bbb9f=Number(_0x4cb39c);if(!Number[_0x16bc1a(0x105)](_0x2bbb9f)||_0x2bbb9f<0x1)throw new Error(_0x16bc1a(0xf0));_0x1f52a0=_0x1ac04c['worksheets'][_0x2bbb9f-0x1];}else _0x1f52a0=_0x1ac04c['worksheets'][_0x16bc1a(0xfe)](_0x1a1fd2=>_0x1a1fd2[_0x16bc1a(0x10c)]===_0x4cb39c);}}if(!_0x1f52a0)throw new Error(_0x16bc1a(0x15f));if(_0x1f52a0[_0x16bc1a(0x147)]>MAX_ROWS||_0x1f52a0[_0x16bc1a(0x14d)]>MAX_COLUMNS)throw new Error(_0x16bc1a(0x117));if((_0x1f52a0[_0x16bc1a(0xf8)]['merges']??[])['length'])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x38d032=new Map();_0x1f52a0[_0x16bc1a(0x1ba)](_0xfc4c13)[_0x16bc1a(0x146)]((_0x12b481,_0x13a21d)=>{const _0x2a86f2=_0x16bc1a,_0x261e90=valueOf(_0x12b481);if(typeof _0x261e90!==_0x2a86f2(0xf6)||!_0x261e90[_0x2a86f2(0x133)]()||Buffer[_0x2a86f2(0x189)](_0x261e90)>MAX_CELL)throw new Error(_0x2a86f2(0x16b));if(_0x38d032['has'](_0x261e90))throw new Error(_0x2a86f2(0xf2)+_0x261e90+'.');_0x38d032[_0x2a86f2(0x126)](_0x261e90,_0x13a21d);});const _0x47f6f0=Object[_0x16bc1a(0xe1)](_0x38c081[_0x16bc1a(0x16e)]);if(!_0x47f6f0[_0x16bc1a(0x197)])throw new Error(_0x16bc1a(0x13c));const _0x58ec7a=new Map(_0x38c081[_0x16bc1a(0x134)][_0x16bc1a(0x1a3)](_0x4f8857=>[_0x4f8857['code'],_0x4f8857]));if(_0x58ec7a[_0x16bc1a(0x1b6)]!==_0x38c081[_0x16bc1a(0x134)]['length'])throw new Error(_0x16bc1a(0x11f));if(_0x38c081[_0x16bc1a(0x134)]['some'](_0x554dd6=>_0x554dd6[_0x16bc1a(0x182)]['toLowerCase']()==='serial_number'))throw new Error(_0x16bc1a(0x142));const _0x1971d5=new Set();for(const [_0x92d019,_0x4747d5]of _0x47f6f0){const _0x2516f5=_0x58ec7a['get'](_0x4747d5);if(!_0x38d032['has'](_0x92d019))throw new Error('Unknown\x20Excel\x20header:\x20'+_0x92d019+'.');if(!_0x2516f5||RESERVED[_0x16bc1a(0x115)](_0x4747d5)||_0x2516f5[_0x16bc1a(0x1ab)])throw new Error(_0x16bc1a(0xc8)+_0x4747d5+'.');if(_0x1971d5[_0x16bc1a(0x115)](_0x4747d5))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x4747d5+'.');if(!TYPES[_0x16bc1a(0x115)](_0x2516f5[_0x16bc1a(0x182)][_0x16bc1a(0x12d)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x2516f5[_0x16bc1a(0x182)]+'.');_0x1971d5[_0x16bc1a(0x16c)](_0x4747d5);}for(const _0x3d95a1 of _0x38c081['fields']){if(_0x3d95a1['required']&&!_0x3d95a1[_0x16bc1a(0x1ab)]&&!RESERVED[_0x16bc1a(0x115)](_0x3d95a1[_0x16bc1a(0xdb)])&&!_0x1971d5[_0x16bc1a(0x115)](_0x3d95a1['code']))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x3d95a1[_0x16bc1a(0xdb)]+'.');}const _0x8e1420={'fileHash':hash(_0x3f027b),'mappingHash':hash(JSON[_0x16bc1a(0x17c)]([..._0x47f6f0]['sort'](([_0x3ea98e],[_0x42510e])=>_0x3ea98e[_0x16bc1a(0xdc)](_0x42510e)))),'schemaHash':hash(JSON[_0x16bc1a(0x17c)]([..._0x38c081[_0x16bc1a(0x134)]][_0x16bc1a(0x13f)]((_0x5d4e82,_0x248884)=>_0x5d4e82['code']['localeCompare'](_0x248884[_0x16bc1a(0xdb)])))),'sheet':_0x1f52a0['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x5c30e3=_0x47f6f0['filter'](([,_0x2391c3])=>isImageContainer(_0x58ec7a[_0x16bc1a(0x143)](_0x2391c3)[_0x16bc1a(0x182)])),_0x2d9669=_0x5c30e3['filter'](([,_0x502fe3])=>_0x58ec7a['get'](_0x502fe3)[_0x16bc1a(0x182)][_0x16bc1a(0x12d)]()===_0x16bc1a(0x193))['map'](([,_0x20220e])=>_0x20220e);if(_0x2d9669[_0x16bc1a(0x197)])_0x8e1420[_0x16bc1a(0x157)]=_0x2d9669;const _0x295f97=_0x2deca7?resolveWorksheetImages(_0x2deca7,_0x1f52a0[_0x16bc1a(0x10c)],new Set(_0x5c30e3['map'](([_0x475d18])=>_0x38d032[_0x16bc1a(0x143)](_0x475d18)))):[],_0x597414=new Map();for(const _0x4254da of _0x295f97){const _0x2b8bef=_0x4254da[_0x16bc1a(0x1a1)]+':'+_0x4254da['col'],_0x37f424=_0x597414[_0x16bc1a(0x143)](_0x2b8bef)??[];_0x37f424[_0x16bc1a(0xd2)](_0x4254da),_0x597414['set'](_0x2b8bef,_0x37f424);}const _0x350528=new Map();let _0x576e02=0x0;_0x5c30e3[_0x16bc1a(0x197)]&&(_0x8e1420[_0x16bc1a(0x145)]=_0x5c30e3[_0x16bc1a(0x1a3)](([,_0x208fa5])=>_0x208fa5),_0x8e1420[_0x16bc1a(0x140)]=[],_0x8e1420[_0x16bc1a(0x165)]=0x1,_0x8e1420['media']=[]);const _0x58bf52=Math['max'](0x0,..._0x295f97[_0x16bc1a(0x1a3)](_0x203b64=>_0x203b64['row']));let _0x15bdd1=0x0;const _0x2e4068=new Set(_0x47f6f0[_0x16bc1a(0x1a3)](([_0x2f8547])=>_0x38d032[_0x16bc1a(0x143)](_0x2f8547)));for(let _0x495e6e=_0xfc4c13+0x1;_0x495e6e<=Math[_0x16bc1a(0x159)](_0x1f52a0['rowCount'],_0x58bf52);_0x495e6e++){const _0x25f5f7=_0x1f52a0[_0x16bc1a(0x1ba)](_0x495e6e);if(_0x25f5f7['hidden']||_0x295f97[_0x16bc1a(0x180)](_0x75e11e=>_0x75e11e[_0x16bc1a(0x1a1)]===_0x495e6e&&_0x75e11e[_0x16bc1a(0xd1)]))_0x15bdd1++;let _0x4b62e0=_0x295f97[_0x16bc1a(0x180)](_0x2212a7=>_0x2212a7['row']===_0x495e6e);_0x25f5f7[_0x16bc1a(0x146)](_0x3e3f64=>{const _0x5c12e0=_0x16bc1a;if(_0x3e3f64[_0x5c12e0(0x113)]!==null&&_0x3e3f64[_0x5c12e0(0x113)]!==undefined&&_0x3e3f64[_0x5c12e0(0x113)]!=='')_0x4b62e0=!![];});if(!_0x4b62e0){_0x8e1420[_0x16bc1a(0x18d)][_0x16bc1a(0xd2)](_0x495e6e);continue;}const _0x1c4522=Object[_0x16bc1a(0x131)](null);_0x25f5f7['eachCell']((_0x54846b,_0xbe963a)=>{const _0x1dfc26=_0x16bc1a;if(_0x2e4068['has'](_0xbe963a))return;try{const _0xcb7981=valueOf(_0x54846b);if(typeof _0xcb7981===_0x1dfc26(0xf6)&&Buffer[_0x1dfc26(0x189)](_0xcb7981,_0x1dfc26(0x11a))>MAX_CELL)throw new Error(_0x1dfc26(0x102));}catch(_0x56954b){_0x8e1420[_0x1dfc26(0x188)]['push']({'rowNumber':_0x495e6e,'field':_0x54846b[_0x1dfc26(0x135)],'message':_0x56954b[_0x1dfc26(0x190)]});}});for(const [_0x71f993,_0xe2e3ef]of _0x47f6f0){try{const _0x48c135=_0x25f5f7[_0x16bc1a(0xc9)](_0x38d032['get'](_0x71f993)),_0x204f7c=_0x58ec7a[_0x16bc1a(0x143)](_0xe2e3ef);if(!isImageContainer(_0x204f7c['type'])){_0x1c4522[_0xe2e3ef]=convert(valueOf(_0x48c135),_0x204f7c);continue;}const _0x4e3de0=_0x597414['get'](_0x495e6e+':'+_0x38d032[_0x16bc1a(0x143)](_0x71f993))??[];if(_0x4e3de0[_0x16bc1a(0x180)](_0xc4a393=>_0xc4a393[_0x16bc1a(0x108)]))throw Error(_0x4e3de0['find'](_0x26a645=>_0x26a645[_0x16bc1a(0x108)])[_0x16bc1a(0x108)]);if(_0x48c135['value']!=null&&_0x48c135[_0x16bc1a(0x113)]!==''&&!_0x4e3de0[_0x16bc1a(0x180)](_0x27b6a2=>_0x27b6a2[_0x16bc1a(0x11b)]))throw Error(_0x16bc1a(0x173));const _0x477eb8=[];for(const _0x51ac48 of _0x4e3de0)for(const _0x52c785 of _0x51ac48['media']){const _0x4d16a6=_0x2deca7['get'](_0x52c785);if(!_0x4d16a6)throw Error(_0x16bc1a(0xeb)+_0x52c785+'.');const _0x3b9712=hash(_0x4d16a6),_0xc69448=_0x350528['get'](_0x3b9712)??validateImageBytes(_0x4d16a6);if(!_0x350528[_0x16bc1a(0x115)](_0xc69448['contentHash'])){_0x576e02+=_0xc69448[_0x16bc1a(0x1b6)];if(_0x576e02>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x350528[_0x16bc1a(0x126)](_0xc69448[_0x16bc1a(0x114)],_0xc69448);}_0x477eb8[_0x16bc1a(0xd2)](_0xc69448['contentHash']);}if(!_0x477eb8[_0x16bc1a(0x197)]&&_0x204f7c[_0x16bc1a(0xde)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x477eb8['length'])_0x8e1420[_0x16bc1a(0x140)]['push']({'rowNumber':_0x495e6e,'field':_0xe2e3ef,'hashes':_0x477eb8});_0x1c4522[_0xe2e3ef]=_0x477eb8[_0x16bc1a(0x1a3)](_0x4910f7=>{const _0xd0f39e=_0x16bc1a,_0x24e257=_0x350528['get'](_0x4910f7),_0x1a0ed7=_0x24e257['type']==='image/jpeg'?_0xd0f39e(0x192):_0x24e257[_0xd0f39e(0x182)][_0xd0f39e(0x1b1)](0x6),_0x1ddf11=_0x4910f7+'.'+_0x1a0ed7,_0x909620=_0xd0f39e(0xd8)+'0'['repeat'](0x40)+'/'+_0x1ddf11;return _0x204f7c[_0xd0f39e(0x182)]['toLowerCase']()===_0xd0f39e(0x193)?{'fileName':_0x1ddf11,'filePath':_0x909620}:{'key':_0x909620,'name':_0x1ddf11,'type':_0x24e257[_0xd0f39e(0x182)],'size':_0x24e257[_0xd0f39e(0x1b6)]};});}catch(_0x4690b3){_0x8e1420[_0x16bc1a(0x188)][_0x16bc1a(0xd2)]({'rowNumber':_0x495e6e,'field':_0xe2e3ef,'message':_0x4690b3[_0x16bc1a(0x190)]});}}_0x8e1420[_0x16bc1a(0x178)][_0x16bc1a(0xd2)]({'rowNumber':_0x495e6e,'values':_0x1c4522});}if(_0x8e1420['media'])_0x8e1420[_0x16bc1a(0x116)]=[..._0x350528['values']()];if(_0x15bdd1)_0x8e1420[_0x16bc1a(0x11d)][_0x16bc1a(0xd2)](_0x15bdd1+_0x16bc1a(0x17d));return _0x8e1420;}
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(_0x3ab5e1,_0x5504b6){const _0x860f0e=a145_0x4098,_0x29a126=_0x3ab5e1();while(!![]){try{const _0x2b83d4=parseInt(_0x860f0e(0x187))/0x1+-parseInt(_0x860f0e(0x177))/0x2+-parseInt(_0x860f0e(0x188))/0x3+-parseInt(_0x860f0e(0x18c))/0x4*(parseInt(_0x860f0e(0x162))/0x5)+parseInt(_0x860f0e(0x171))/0x6+parseInt(_0x860f0e(0x16b))/0x7+parseInt(_0x860f0e(0x195))/0x8;if(_0x2b83d4===_0x5504b6)break;else _0x29a126['push'](_0x29a126['shift']());}catch(_0xac7fcb){_0x29a126['push'](_0x29a126['shift']());}}}(a145_0xdee5,0xe68b2));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a145_0xdee5(){const _0x2564b5=['max','5unRuXU','Invalid\x20PNG\x20color/depth/interlace.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Truncated\x20PNG\x20data.','concat','Invalid\x20GIF\x20trailer.','omggif','readUInt16LE','isSafeInteger','12299399fyxMFR','sha256','includes','length','Invalid\x20PNG\x20decoded\x20scanline\x20size.','digest','6232056dHLVwR','Animated\x20PNG\x20is\x20not\x20supported.','push','hex','Missing\x20PNG\x20data/end.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','2697904CuamDE','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','Missing\x20GIF\x20trailer.','GIF87a','Truncated\x20GIF\x20data.','decode','Invalid\x20GIF\x20LZW\x20code\x20size.','image/jpeg','frameInfo','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','width','Truncated\x20JPEG.','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','message','Truncated\x20GIF.','acTL','279158qKvAKQ','237909NIVars','pngjs','GIF\x20frame\x20exceeds\x20canvas.','IDAT','6764524vfldBA','equals','Invalid\x20GIF\x20LZW\x20pixel\x20data.','GIF89a','Invalid\x20GIF\x20block.','ceil','ascii','toString','subarray','7910408ZRJwmD','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Truncated\x20PNG\x20chunk.','readUInt32BE','Invalid\x20PNG\x20header.','from','IHDR','height','GIF\x20image\x20has\x20no\x20palette.'];a145_0xdee5=function(){return _0x2564b5;};return a145_0xdee5();}function a145_0x4098(_0x346844,_0x2bce9a){_0x346844=_0x346844-0x15a;const _0xdee50e=a145_0xdee5();let _0x40981f=_0xdee50e[_0x346844];return _0x40981f;}function dimensions(_0x416f9e,_0x2707d){const _0x4c328e=a145_0x4098;if(!Number[_0x4c328e(0x16a)](_0x416f9e)||!Number[_0x4c328e(0x16a)](_0x2707d)||_0x416f9e<0x1||_0x2707d<0x1||_0x416f9e*_0x2707d>MAX_PIXELS)throw Error(_0x4c328e(0x178));}function validateGif(_0x9da5ec){const _0x593c27=a145_0x4098;let _0x453280=0xd,_0x18d041=0x0,_0x2007b5=0x0;const _0x3a30cb=_0x9da5ec[_0x593c27(0x169)](0x6),_0x525ce6=_0x9da5ec['readUInt16LE'](0x8),_0x147a3f=_0x9da5ec[0xa]&0x80?0x1<<(_0x9da5ec[0xa]&0x7)+0x1:0x0,_0x5d29e4=_0x37407a=>{const _0x1355ce=_0x593c27;if(_0x453280+_0x37407a>_0x9da5ec[_0x1355ce(0x16e)])throw Error(_0x1355ce(0x17b));};_0x453280+=_0x147a3f*0x3,_0x5d29e4(0x0);const _0x588f18=()=>{const _0x1fe8c5=_0x593c27,_0xa06e0f=[];while(!![]){_0x5d29e4(0x1);const _0x233866=_0x9da5ec[_0x453280++];if(!_0x233866)break;_0x5d29e4(_0x233866),_0xa06e0f[_0x1fe8c5(0x173)](_0x9da5ec['subarray'](_0x453280,_0x453280+_0x233866)),_0x453280+=_0x233866;}return Buffer[_0x1fe8c5(0x166)](_0xa06e0f);};while(_0x453280<_0x9da5ec[_0x593c27(0x16e)]){const _0x570288=_0x9da5ec[_0x453280++];if(_0x570288===0x3b){if(!_0x18d041||_0x453280!==_0x9da5ec[_0x593c27(0x16e)])throw Error(_0x593c27(0x167));return;}if(_0x570288===0x21){_0x5d29e4(0x1),_0x453280++,_0x588f18();continue;}if(_0x570288!==0x2c)throw Error(_0x593c27(0x190));_0x5d29e4(0x9);const _0x2f83f7=_0x9da5ec['readUInt16LE'](_0x453280),_0x506308=_0x9da5ec['readUInt16LE'](_0x453280+0x2),_0x16c2fa=_0x9da5ec[_0x593c27(0x169)](_0x453280+0x4),_0x433bdc=_0x9da5ec[_0x593c27(0x169)](_0x453280+0x6),_0x578d07=_0x9da5ec[_0x453280+0x8];_0x453280+=0x9,dimensions(_0x16c2fa,_0x433bdc);if(_0x2f83f7+_0x16c2fa>_0x3a30cb||_0x506308+_0x433bdc>_0x525ce6||++_0x18d041>0x2710||(_0x2007b5+=_0x3a30cb*_0x525ce6)>MAX_PIXELS)throw Error(_0x593c27(0x196));const _0x48f7e0=_0x578d07&0x80?0x1<<(_0x578d07&0x7)+0x1:_0x147a3f;if(!_0x48f7e0)throw Error(_0x593c27(0x160));_0x578d07&0x80&&(_0x5d29e4(_0x48f7e0*0x3),_0x453280+=_0x48f7e0*0x3);_0x5d29e4(0x1);const _0x4b3cc6=_0x9da5ec[_0x453280++];if(_0x4b3cc6<0x2||_0x4b3cc6>0x8)throw Error(_0x593c27(0x17d));const _0x539de0=_0x588f18(),_0x406946=0x1<<_0x4b3cc6,_0x253dcf=_0x406946+0x1;let _0x259cad=_0x4b3cc6+0x1,_0x25cbfe=_0x253dcf+0x1,_0x23e19d=0x0,_0x42b148=-0x1,_0x3c420c=0x0,_0x40e1ee=![];const _0x1fbd6f=new Uint32Array(0x1000),_0x44170b=new Uint16Array(0x1000);for(let _0x1b42ce=0x0;_0x1b42ce<_0x406946;_0x1b42ce++){_0x1fbd6f[_0x1b42ce]=0x1,_0x44170b[_0x1b42ce]=_0x1b42ce;}while(_0x23e19d+_0x259cad<=_0x539de0[_0x593c27(0x16e)]*0x8){let _0x110beb=0x0;for(let _0x1f8016=0x0;_0x1f8016<_0x259cad;_0x1f8016++,_0x23e19d++)_0x110beb|=(_0x539de0[_0x23e19d>>0x3]>>(_0x23e19d&0x7)&0x1)<<_0x1f8016;if(_0x110beb===_0x406946){_0x259cad=_0x4b3cc6+0x1,_0x25cbfe=_0x253dcf+0x1,_0x42b148=-0x1;continue;}if(_0x110beb===_0x253dcf){_0x40e1ee=!![];break;}if(_0x110beb>_0x25cbfe||_0x110beb===_0x25cbfe&&_0x42b148<0x0||_0x42b148<0x0&&_0x110beb>=_0x406946)throw Error(_0x593c27(0x180));const _0xa8726b=_0x110beb===_0x25cbfe?_0x1fbd6f[_0x42b148]+0x1:_0x1fbd6f[_0x110beb],_0x4b9569=_0x110beb===_0x25cbfe?_0x44170b[_0x42b148]:_0x44170b[_0x110beb];if(!_0xa8726b||_0x4b9569>=_0x48f7e0||(_0x3c420c+=_0xa8726b)>_0x16c2fa*_0x433bdc)throw Error(_0x593c27(0x18e));if(_0x42b148>=0x0&&_0x25cbfe<0x1000){_0x1fbd6f[_0x25cbfe]=_0x1fbd6f[_0x42b148]+0x1,_0x44170b[_0x25cbfe]=Math[_0x593c27(0x161)](_0x44170b[_0x42b148],_0x4b9569),_0x25cbfe++;if(_0x25cbfe===0x1<<_0x259cad&&_0x259cad<0xc)_0x259cad++;}_0x42b148=_0x110beb;}if(!_0x40e1ee||_0x3c420c!==_0x16c2fa*_0x433bdc)throw Error(_0x593c27(0x176));}throw Error(_0x593c27(0x179));}export function validateImageBytes(_0x44eac8){const _0x28f786=a145_0x4098;if(!_0x44eac8[_0x28f786(0x16e)]||_0x44eac8['length']>0xa*0x400*0x400)throw Error(_0x28f786(0x164));let _0x564252;try{if(_0x44eac8[_0x28f786(0x194)](0x0,0x8)[_0x28f786(0x18d)](Buffer[_0x28f786(0x15d)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x44eac8[_0x28f786(0x16e)]<0x21||_0x44eac8[_0x28f786(0x193)](_0x28f786(0x192),0xc,0x10)!==_0x28f786(0x15e))throw Error(_0x28f786(0x15c));dimensions(_0x44eac8['readUInt32BE'](0x10),_0x44eac8[_0x28f786(0x15b)](0x14));const _0x19d7ee=_0x44eac8[_0x28f786(0x15b)](0x10),_0x536c45=_0x44eac8[_0x28f786(0x15b)](0x14),_0x329118=_0x44eac8[0x18],_0x507a4e=_0x44eac8[0x19],_0x5d566d=_0x44eac8[0x1c],_0x5bb7a1={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x507a4e];if(!_0x5bb7a1||![0x1,0x2,0x4,0x8,0x10][_0x28f786(0x16d)](_0x329118)||_0x5d566d>0x1)throw Error(_0x28f786(0x163));const _0x3367e1=_0x5ccd5a=>Math[_0x28f786(0x191)](_0x5ccd5a*_0x5bb7a1*_0x329118/0x8)+0x1;let _0x4f812e=_0x3367e1(_0x19d7ee)*_0x536c45;if(_0x5d566d){_0x4f812e=0x0;for(const [_0x1ad632,_0x1a9116,_0x3e11e4,_0x74eeef]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 _0x42b13d=Math[_0x28f786(0x161)](0x0,Math[_0x28f786(0x191)]((_0x19d7ee-_0x1ad632)/_0x3e11e4)),_0xe1b3f8=Math['max'](0x0,Math[_0x28f786(0x191)]((_0x536c45-_0x1a9116)/_0x74eeef));if(_0x42b13d&&_0xe1b3f8)_0x4f812e+=_0x3367e1(_0x42b13d)*_0xe1b3f8;}}let _0xe7dd67=0x8,_0xb100ea=![];const _0x47a11d=[];while(_0xe7dd67<_0x44eac8[_0x28f786(0x16e)]){if(_0xe7dd67+0xc>_0x44eac8['length'])throw Error(_0x28f786(0x15a));const _0x376b92=_0x44eac8[_0x28f786(0x15b)](_0xe7dd67),_0x3f4b99=_0x44eac8['toString'](_0x28f786(0x192),_0xe7dd67+0x4,_0xe7dd67+0x8);if(_0x3f4b99===_0x28f786(0x186))throw Error(_0x28f786(0x172));if(_0xe7dd67+_0x376b92+0xc>_0x44eac8[_0x28f786(0x16e)])throw Error(_0x28f786(0x165));if(_0x3f4b99===_0x28f786(0x18b))_0x47a11d[_0x28f786(0x173)](_0x44eac8[_0x28f786(0x194)](_0xe7dd67+0x8,_0xe7dd67+0x8+_0x376b92));_0xe7dd67+=_0x376b92+0xc;if(_0x3f4b99==='IEND'){if(_0x376b92||_0xe7dd67!==_0x44eac8[_0x28f786(0x16e)])throw Error('Invalid\x20PNG\x20end.');_0xb100ea=!![];break;}}if(!_0xb100ea||!_0x47a11d[_0x28f786(0x16e)])throw Error(_0x28f786(0x175));if(inflateSync(Buffer[_0x28f786(0x166)](_0x47a11d),{'maxOutputLength':_0x4f812e+0x1})['length']!==_0x4f812e)throw Error(_0x28f786(0x16f));const {PNG:_0xdf58a8}=require(_0x28f786(0x189)),_0x2b3457=_0xdf58a8['sync']['read'](_0x44eac8,{'checkCRC':!![]});dimensions(_0x2b3457['width'],_0x2b3457[_0x28f786(0x15f)]),_0x564252='image/png';}else{if(_0x44eac8[0x0]===0xff&&_0x44eac8[0x1]===0xd8){if(_0x44eac8['at'](-0x2)!==0xff||_0x44eac8['at'](-0x1)!==0xd9)throw Error(_0x28f786(0x182));const _0x752c5=require('jpeg-js'),_0x17ffb8=_0x752c5[_0x28f786(0x17c)](_0x44eac8,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x17ffb8['width'],_0x17ffb8[_0x28f786(0x15f)]),_0x564252=_0x28f786(0x17e);}else{if([_0x28f786(0x17a),_0x28f786(0x18f)][_0x28f786(0x16d)](_0x44eac8[_0x28f786(0x193)](_0x28f786(0x192),0x0,0x6))){if(_0x44eac8[_0x28f786(0x16e)]<0xe||_0x44eac8['at'](-0x1)!==0x3b)throw Error(_0x28f786(0x185));dimensions(_0x44eac8['readUInt16LE'](0x6),_0x44eac8[_0x28f786(0x169)](0x8)),validateGif(_0x44eac8);const {GifReader:_0x44df65}=require(_0x28f786(0x168)),_0x2a77a1=new _0x44df65(_0x44eac8);dimensions(_0x2a77a1[_0x28f786(0x181)],_0x2a77a1[_0x28f786(0x15f)]);const _0x3ed046=_0x2a77a1['numFrames']();if(!_0x3ed046||_0x3ed046>0x2710||_0x3ed046*_0x2a77a1[_0x28f786(0x181)]*_0x2a77a1[_0x28f786(0x15f)]>MAX_PIXELS)throw Error(_0x28f786(0x196));const _0x4926bd=new Uint8Array(_0x2a77a1[_0x28f786(0x181)]*_0x2a77a1[_0x28f786(0x15f)]*0x4);for(let _0x3875e9=0x0;_0x3875e9<_0x3ed046;_0x3875e9++){const _0x2ead1c=_0x2a77a1[_0x28f786(0x17f)](_0x3875e9);if(_0x2ead1c['x']+_0x2ead1c[_0x28f786(0x181)]>_0x2a77a1[_0x28f786(0x181)]||_0x2ead1c['y']+_0x2ead1c[_0x28f786(0x15f)]>_0x2a77a1[_0x28f786(0x15f)])throw Error(_0x28f786(0x18a));_0x2a77a1['decodeAndBlitFrameRGBA'](_0x3875e9,_0x4926bd);}_0x564252='image/gif';}else throw Error(_0x28f786(0x183));}}}catch(_0x5192b1){throw Error('Invalid\x20image:\x20'+_0x5192b1[_0x28f786(0x184)]);}return{'contentHash':createHash(_0x28f786(0x16c))['update'](_0x44eac8)[_0x28f786(0x170)](_0x28f786(0x174)),'type':_0x564252,'size':_0x44eac8[_0x28f786(0x16e)],'bytes':_0x44eac8};}
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
- function a146_0x3c65(_0x155170,_0x2988ab){_0x155170=_0x155170-0xe5;const _0x2a6cf0=a146_0x2a6c();let _0x3c6519=_0x2a6cf0[_0x155170];return _0x3c6519;}const a146_0x3599f0=a146_0x3c65;function a146_0x2a6c(){const _0x268b36=['round','rich\x20image\x20relationship\x20index','rowOff','colOff','richValueRel','rvStructures','r:embed','hidden','has','Unsupported\x20rich\x20value\x20namespace.','attrs','http://purl.oclc.org/ooxml/drawingml/main','Missing\x20XLSX\x20part:\x20','cellImage','anchor\x20start','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','future\x20metadata\x20index','r:id','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','closetag','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','/xl/cellimages.xml','sheetData','XLRICHVALUE','replace','19629EJNczw','Internal','isFinite','Relationship\x20target\x20escapes\x20workbook:\x20','type','anchor\x20end','slice','Duplicate\x20mapped\x20image\x20cell.','cellImages','exec','row','wsDr','image\x20row\x20height\x20coordinate','from','anchor\x20row','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','anchor\x20end\x20offset','absoluteAnchor','nvPicPr','filter','blip','Missing\x20or\x20ambiguous\x20','XML\x20DTD/entities\x20are\x20not\x20supported.','1991178voHdPO','rich\x20value\x20binding','http://www.wps.cn/officeDocument/2017/etCustomData','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','isSafeInteger','_localImage','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','posix','pop','col','valueMetadata','http://schemas.openxmlformats.org/drawingml/2006/main','rdRichValue','ext','startsWith','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','name','Shared\x20image\x20formulas\x20are\x20not\x20supported.','rvData','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','worksheet','anchor\x20start\x20offset','Unsupported\x20WPS\x20cell\x20image\x20namespace.','1194BCChSj','rich\x20metadata\x20record','http://schemas.openxmlformats.org/package/2006/relationships','Unsupported\x20worksheet\x20namespace.','Image\x20XML\x20event\x20budget\x20exceeded.','cNvPr','opentag','12081363CDyIdT','sheetFormatPr','workbook','text','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','WPS\x20image\x20blip','value','rich\x20future\x20metadata','pic','rich\x20structure\x20index','External\x20image\x20links\x20are\x20not\x20supported.','length','extLst','some','http://schemas.openxmlformats.org/officeDocument/2006/relationships','rel','xl/','metadata','get','sheets','metadata\x20type\x20index','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','twoCellAnchor','children','r:link','Unsupported\x20relationship\x20namespace\x20in\x20','WPS\x20image\x20name','error','3861753MDAMyP','drawing','add','MAX_SAFE_INTEGER','Relationships','Invalid\x20','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','anchor\x20column','rich\x20value\x20index','value\x20metadata\x20index','reduce','sheet','rvb','Missing\x20future\x20metadata\x20block.','toLowerCase','http://purl.oclc.org/ooxml/officeDocument/relationships','push','sheetMetadata','normalize','map','uri','includes','values','Missing\x20value\x20metadata\x20block.','close','Missing\x20local\x20image\x20identifier\x20value.','\x20relationship\x20in\x20','image','richValueRels','metadata\x20types','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','test','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Unsupported\x20rich\x20image\x20relation\x20namespace.','665631IgOEuV','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','local','set','http://purl.oclc.org/ooxml/spreadsheetml/main','image\x20formula','16048WGneKj','join','blipFill','flatMap','Unsupported\x20mapped\x20cell\x20metadata\x20type.','metadataType','Unsupported\x20rich\x20structure\x20namespace.','xl/workbook.xml','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','44090pqJsqo','1889016FnVtvW','futureMetadata','Missing\x20WPS\x20image\x20ID:\x20','rdRichValueStructure','Unsupported\x20drawing\x20namespace.','.rels','metadataTypes','http://www.wps.cn/officeDocument/2017/relationships/'];a146_0x2a6c=function(){return _0x268b36;};return a146_0x2a6c();}(function(_0x57b7dd,_0x380230){const _0x3cb337=a146_0x3c65,_0x3008c5=_0x57b7dd();while(!![]){try{const _0x4e25c0=-parseInt(_0x3cb337(0x14e))/0x1+-parseInt(_0x3cb337(0xf2))/0x2+-parseInt(_0x3cb337(0x12c))/0x3+-parseInt(_0x3cb337(0x15e))/0x4+parseInt(_0x3cb337(0x15d))/0x5*(parseInt(_0x3cb337(0x109))/0x6)+-parseInt(_0x3cb337(0x110))/0x7+parseInt(_0x3cb337(0x154))/0x8*(parseInt(_0x3cb337(0x17f))/0x9);if(_0x4e25c0===_0x380230)break;else _0x3008c5['push'](_0x3008c5['shift']());}catch(_0x49952e){_0x3008c5['push'](_0x3008c5['shift']());}}}(a146_0x2a6c,0xf00c2));import a146_0x382453 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x3599f0(0x14c),a146_0x3599f0(0x152)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x3599f0(0x17a)],DRAWING_MAIN=[a146_0x3599f0(0xfd),a146_0x3599f0(0x171)],OFFICE_RELS=[a146_0x3599f0(0x11e),a146_0x3599f0(0x13b)],PACKAGE=[a146_0x3599f0(0x10b)],RICH=[a146_0x3599f0(0x178)],RICH_RELS=[a146_0x3599f0(0x125)],WPS=[a146_0x3599f0(0xf4)],DEFAULT_NS=Object['fromEntries']([...[a146_0x3599f0(0x112),a146_0x3599f0(0x123),a146_0x3599f0(0x137),a146_0x3599f0(0x106),'sheetData',a146_0x3599f0(0xe5),'c','f','v',a146_0x3599f0(0x111),a146_0x3599f0(0x12d),a146_0x3599f0(0x121),a146_0x3599f0(0x164),a146_0x3599f0(0x159),a146_0x3599f0(0x15f),a146_0x3599f0(0xfc),'bk','rc',a146_0x3599f0(0x11c)][a146_0x3599f0(0x13f)](_0x461509=>[_0x461509,SHEET]),...[a146_0x3599f0(0xe6),'oneCellAnchor',a146_0x3599f0(0x126),a146_0x3599f0(0xec),a146_0x3599f0(0xe8),'to',a146_0x3599f0(0xfb),a146_0x3599f0(0x169),a146_0x3599f0(0x168),a146_0x3599f0(0xff),a146_0x3599f0(0x118),a146_0x3599f0(0xed),'cNvPr',a146_0x3599f0(0x156)][a146_0x3599f0(0x13f)](_0x13dc3d=>[_0x13dc3d,DRAWING]),...['rvb',a146_0x3599f0(0x104),'rv','rvStructures','s','k'][a146_0x3599f0(0x13f)](_0x54db30=>[_0x54db30,RICH]),[a146_0x3599f0(0xef),DRAWING_MAIN],[a146_0x3599f0(0x148),RICH_RELS],[a146_0x3599f0(0x11f),RICH_RELS],[a146_0x3599f0(0x130),PACKAGE],['Relationship',PACKAGE],[a146_0x3599f0(0x187),WPS],['cellImage',WPS]]),matches=(_0x373dc5,_0x811433,_0x16c899=DEFAULT_NS[_0x811433]??[])=>_0x373dc5[a146_0x3599f0(0x102)]===_0x811433&&_0x16c899[a146_0x3599f0(0x141)](_0x373dc5[a146_0x3599f0(0x140)]),children=(_0x5049d8,_0x3e60ef,_0x1e9155=DEFAULT_NS[_0x3e60ef])=>_0x5049d8[a146_0x3599f0(0x127)][a146_0x3599f0(0xee)](_0x43823e=>matches(_0x43823e,_0x3e60ef,_0x1e9155)),chain=(_0x494cec,..._0x324ff1)=>_0x324ff1[a146_0x3599f0(0x136)]((_0x58c2e1,_0x2eca53)=>_0x58c2e1['flatMap'](_0x4ab8a6=>children(_0x4ab8a6,_0x2eca53)),[_0x494cec]),relationshipTypes=_0x3f089f=>{const _0x19b305=a146_0x3599f0;if([_0x19b305(0xfe),_0x19b305(0x161)][_0x19b305(0x141)](_0x3f089f))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x3f089f];if(_0x3f089f===_0x19b305(0x16a))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x3f089f===_0x19b305(0x173)||_0x3f089f==='cellImages')return[_0x19b305(0x165)+_0x3f089f];return OFFICE_RELS[_0x19b305(0x13f)](_0x127bde=>_0x127bde+'/'+_0x3f089f);};function one(_0x39dc7c,_0x28f29f){const _0x1faada=a146_0x3599f0;if(_0x39dc7c[_0x1faada(0x11b)]!==0x1)throw Error(_0x1faada(0xf0)+_0x28f29f+'.');return _0x39dc7c[0x0];}function integer(_0x1191bb,_0x18ebfe,_0x1fc6d7=0x186a0){const _0x112cae=a146_0x3599f0;if(!_0x1191bb||!/^\d+$/[_0x112cae(0x14b)](_0x1191bb)||!Number[_0x112cae(0xf6)](Number(_0x1191bb))||Number(_0x1191bb)>_0x1fc6d7)throw Error(_0x112cae(0x131)+_0x18ebfe+'.');return Number(_0x1191bb);}export function resolveWorksheetImages(_0xf85a12,_0x2a3fdd,_0x2a6e6e){const _0x3c11f3=a146_0x3599f0;let _0x2034f2=0x0,_0x3afde5=0x0,_0x209d7b=0x0;const _0x469457=new Map(),_0x198aef=_0x5dd7b4=>{const _0x278466=a146_0x3c65;if(_0x469457[_0x278466(0x16e)](_0x5dd7b4))return _0x469457[_0x278466(0x122)](_0x5dd7b4);const _0x196294=_0xf85a12[_0x278466(0x122)](_0x5dd7b4);if(!_0x196294)throw Error(_0x278466(0x172)+_0x5dd7b4+'.');const _0x248bbf={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x569708=[_0x248bbf],_0x6ff36c=new SaxesParser({'xmlns':!![]}),_0x331dba=()=>{const _0x36d0d8=_0x278466;if(++_0x3afde5>0x1e8480)throw Error(_0x36d0d8(0x10d));};_0x6ff36c['on']('doctype',()=>{const _0x4360a9=_0x278466;throw Error(_0x4360a9(0xf1));}),_0x6ff36c['on'](_0x278466(0x10f),_0x24847c=>{const _0x1ef09e=_0x278466;_0x331dba();if(++_0x2034f2>0x7a120||_0x569708[_0x1ef09e(0x11b)]>0x40)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');const _0x42a354={};for(const _0x56e1e4 of Object[_0x1ef09e(0x142)](_0x24847c['attributes'])){const _0x15570c=OFFICE_RELS['includes'](_0x56e1e4[_0x1ef09e(0x140)])?'r:'+_0x56e1e4[_0x1ef09e(0x150)]:_0x56e1e4[_0x1ef09e(0x140)]?'{'+_0x56e1e4[_0x1ef09e(0x140)]+'}'+_0x56e1e4[_0x1ef09e(0x150)]:_0x56e1e4[_0x1ef09e(0x150)];if(_0x15570c in _0x42a354)throw Error('Ambiguous\x20XML\x20attribute.');_0x42a354[_0x15570c]=_0x56e1e4[_0x1ef09e(0x116)];}const _0x4939fa={'name':_0x24847c[_0x1ef09e(0x150)],'uri':_0x24847c['uri'],'attrs':_0x42a354,'children':[],'text':''};_0x569708['at'](-0x1)[_0x1ef09e(0x127)]['push'](_0x4939fa),_0x569708['push'](_0x4939fa);}),_0x6ff36c['on'](_0x278466(0x113),_0x6c2a4c=>{const _0x30f09c=_0x278466;_0x331dba();const _0xbb00ee=_0x569708['at'](-0x1);_0xbb00ee[_0x30f09c(0x113)]+=_0x6c2a4c;if(_0xbb00ee['text'][_0x30f09c(0x11b)]>0x10000)throw Error(_0x30f09c(0x14a));}),_0x6ff36c['on'](_0x278466(0x179),()=>{const _0x2a4738=_0x278466;_0x331dba(),_0x569708[_0x2a4738(0xfa)]();}),_0x6ff36c['on'](_0x278466(0x12b),_0x4c27b6=>{throw _0x4c27b6;}),_0x6ff36c['write'](_0x196294['toString']('utf8'))[_0x278466(0x144)]();const _0x11b024=one(_0x248bbf[_0x278466(0x127)],_0x5dd7b4);return _0x469457[_0x278466(0x151)](_0x5dd7b4,_0x11b024),_0x11b024;},_0x7ae292=new Map(),_0x51e9b9=_0x477c47=>{const _0x15937a=a146_0x3c65;if(_0x7ae292[_0x15937a(0x16e)](_0x477c47))return _0x7ae292[_0x15937a(0x122)](_0x477c47);const _0x225d09=a146_0x382453[_0x15937a(0xf9)][_0x15937a(0x155)](a146_0x382453[_0x15937a(0xf9)]['dirname'](_0x477c47),'_rels',a146_0x382453[_0x15937a(0xf9)]['basename'](_0x477c47)+_0x15937a(0x163));if(!_0xf85a12[_0x15937a(0x16e)](_0x225d09))return[];const _0x57d00d=new Set(),_0x5ea4f2=_0x198aef(_0x225d09);if(!matches(_0x5ea4f2,_0x15937a(0x130)))throw Error(_0x15937a(0x129)+_0x225d09+'.');const _0x14331e=children(_0x5ea4f2,'Relationship')[_0x15937a(0x13f)](_0x387445=>{const {Id:_0x4d310e,Type:_0x4b4920,Target:_0x931786,TargetMode:_0x33b1f9}=_0x387445['attrs'];if(!_0x4d310e||_0x57d00d['has'](_0x4d310e)||!_0x4b4920)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x225d09+'.');return _0x57d00d['add'](_0x4d310e),{'id':_0x4d310e,'type':_0x4b4920,'target':_0x931786??'','mode':_0x33b1f9};});return _0x7ae292[_0x15937a(0x151)](_0x477c47,_0x14331e),_0x14331e;},_0x5780a6=(_0x222661,_0x2a7b26)=>{const _0xcc90bd=a146_0x3c65,{target:_0x29f768,mode:_0x1be6c8}=_0x2a7b26;if(_0x1be6c8&&_0x1be6c8!==_0xcc90bd(0x180))throw Error(_0xcc90bd(0x105)+_0x222661+'.');if(!_0x29f768||_0x29f768['includes']('\x5c')||/[?#%\x00-\x20]/[_0xcc90bd(0x14b)](_0x29f768)||/^[a-z][a-z0-9+.-]*:/i[_0xcc90bd(0x14b)](_0x29f768)||_0x29f768[_0xcc90bd(0x100)]('//'))throw Error('Invalid\x20relationship\x20target:\x20'+_0x222661+'.');const _0x239aa5=_0x29f768[_0xcc90bd(0x100)]('/')?_0x29f768[_0xcc90bd(0x185)](0x1):a146_0x382453[_0xcc90bd(0xf9)][_0xcc90bd(0x13e)](a146_0x382453[_0xcc90bd(0xf9)]['join'](a146_0x382453[_0xcc90bd(0xf9)]['dirname'](_0x222661),_0x29f768));if(_0x239aa5[_0xcc90bd(0x100)]('../')||_0x239aa5==='..'||!_0x239aa5[_0xcc90bd(0x100)](_0xcc90bd(0x120)))throw Error(_0xcc90bd(0x182)+_0x222661+'.');return _0x239aa5;},_0x2605ae=(_0x395943,_0x34b89a,_0x1d465a)=>{const _0x456e61=a146_0x3c65,_0x40e391=_0x51e9b9(_0x395943)[_0x456e61(0xee)](_0x40dd54=>_0x40dd54['id']===_0x34b89a&&relationshipTypes(_0x1d465a)[_0x456e61(0x141)](_0x40dd54[_0x456e61(0x183)]));if(_0x40e391[_0x456e61(0x11b)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x1d465a+_0x456e61(0x146)+_0x395943+'.');return _0x5780a6(_0x395943,_0x40e391[0x0]);},_0x8563db=(_0x3e8c59,_0x3f0e02)=>{const _0x3e627b=a146_0x3c65,_0x5975de=_0x51e9b9(_0x3e8c59)['filter'](_0x5a16f9=>relationshipTypes(_0x3f0e02)[_0x3e627b(0x141)](_0x5a16f9['type']));if(_0x5975de['length']!==0x1)throw Error(_0x3e627b(0xf0)+_0x3f0e02+_0x3e627b(0x146)+_0x3e8c59+'.');return _0x5780a6(_0x3e8c59,_0x5975de[0x0]);},_0x460c3d=_0x3c11f3(0x15b),_0x28c749=_0x198aef(_0x460c3d);if(!matches(_0x28c749,_0x3c11f3(0x112)))throw Error('Unsupported\x20workbook\x20namespace.');const _0x575b09=one(chain(_0x28c749,_0x3c11f3(0x123),'sheet')[_0x3c11f3(0xee)](_0x221644=>_0x221644[_0x3c11f3(0x170)]['name']===_0x2a3fdd),_0x3c11f3(0x106)),_0x18c853=_0x2605ae(_0x460c3d,_0x575b09[_0x3c11f3(0x170)][_0x3c11f3(0x177)],'worksheet'),_0x115c4b=_0x198aef(_0x18c853);if(!matches(_0x115c4b,'worksheet'))throw Error(_0x3c11f3(0x10c));const _0x2b12e5=chain(_0x115c4b,_0x3c11f3(0x17c),'row'),_0x2f4160=new Map(),_0x54b4a3=new Set(_0x2b12e5[_0x3c11f3(0xee)](_0x5834fa=>_0x5834fa[_0x3c11f3(0x170)][_0x3c11f3(0x16d)]==='1'||_0x5834fa[_0x3c11f3(0x170)][_0x3c11f3(0x16d)]==='true')[_0x3c11f3(0x13f)](_0x47d8d9=>integer(_0x47d8d9[_0x3c11f3(0x170)]['r'],'hidden\x20image\x20row'))),_0x5effe6=_0x5de4b2=>{const _0x4bdd09=_0x3c11f3,_0x5b0602=_0x5de4b2===undefined?0xf:Number(_0x5de4b2);if(!Number[_0x4bdd09(0x181)](_0x5b0602)||_0x5b0602<=0x0||_0x5b0602>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x4bdd09(0x166)](_0x5b0602*0x319c);},_0x386333=_0x5effe6(children(_0x115c4b,'sheetFormatPr')[0x0]?.[_0x3c11f3(0x170)]['defaultRowHeight']);for(const _0x163a21 of _0x2b12e5)if(_0x163a21[_0x3c11f3(0x170)]['ht']!==undefined)_0x2f4160[_0x3c11f3(0x151)](integer(_0x163a21['attrs']['r'],_0x3c11f3(0xe7)),_0x5effe6(_0x163a21[_0x3c11f3(0x170)]['ht']));const _0x4afa50=[],_0x160484=_0x117f3b=>{const _0x2d0849=_0x3c11f3;if(!_0x2a6e6e[_0x2d0849(0x16e)](_0x117f3b['col']))return;if(++_0x209d7b>0x2710)throw Error('Workbook\x20exceeds\x2010000\x20image\x20occurrences.');_0x4afa50[_0x2d0849(0x13c)](_0x54b4a3['has'](_0x117f3b[_0x2d0849(0xe5)])?{..._0x117f3b,'hiddenRow':!![]}:_0x117f3b);},_0x3bcf71=_0x4d0513=>({'row':integer(one(children(_0x4d0513,'row',DRAWING),_0x3c11f3(0xe9))[_0x3c11f3(0x113)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x4d0513,_0x3c11f3(0xfb)),_0x3c11f3(0x133))[_0x3c11f3(0x113)],_0x3c11f3(0x133),0xff)+0x1});for(const _0x1b0e60 of children(_0x115c4b,'drawing')){const _0x3b7233=_0x2605ae(_0x18c853,_0x1b0e60[_0x3c11f3(0x170)][_0x3c11f3(0x177)],'drawing'),_0xd2844f=_0x198aef(_0x3b7233);if(!matches(_0xd2844f,_0x3c11f3(0xe6)))throw Error(_0x3c11f3(0x162));for(const _0x144d70 of _0xd2844f['children']){if(!['oneCellAnchor',_0x3c11f3(0x126),_0x3c11f3(0xec)][_0x3c11f3(0x11d)](_0x240f9b=>matches(_0x144d70,_0x240f9b)))continue;if(_0x144d70[_0x3c11f3(0x102)]===_0x3c11f3(0xec))throw Error(_0x3c11f3(0x14f)+_0x2a3fdd+'.');const _0x297037=_0x3bcf71(one(children(_0x144d70,_0x3c11f3(0xe8)),_0x3c11f3(0x174)));if(!_0x2a6e6e[_0x3c11f3(0x16e)](_0x297037[_0x3c11f3(0xfb)]))continue;let _0x283acf;const _0x305b38=one(children(_0x144d70,'from'),_0x3c11f3(0x174)),_0x28f7b8=integer(one(children(_0x305b38,'rowOff'),_0x3c11f3(0x107))[_0x3c11f3(0x113)],_0x3c11f3(0x107),Number[_0x3c11f3(0x12f)]),_0x15ec2f=_0x2f4160[_0x3c11f3(0x122)](_0x297037[_0x3c11f3(0xe5)])??_0x386333;if(_0x28f7b8>=_0x15ec2f)throw Error(_0x3c11f3(0x114)+_0x297037[_0x3c11f3(0xe5)]+'.');if(_0x144d70[_0x3c11f3(0x102)]==='oneCellAnchor'){const _0x353cd3=one(children(_0x144d70,_0x3c11f3(0xff)),'image\x20extent'),_0x5d659b=integer(_0x353cd3[_0x3c11f3(0x170)]['cy'],'image\x20height',Number[_0x3c11f3(0x12f)]);if(!_0x5d659b||_0x28f7b8+_0x5d659b>_0x15ec2f)_0x283acf=_0x3c11f3(0x15c);}if(_0x144d70[_0x3c11f3(0x102)]===_0x3c11f3(0x126)){const _0xbfe5ca=one(children(_0x144d70,'to'),_0x3c11f3(0x184)),_0x441347=_0x3bcf71(_0xbfe5ca),_0x3def58=integer(one(children(_0xbfe5ca,_0x3c11f3(0x168)),'anchor\x20end\x20offset')[_0x3c11f3(0x113)],_0x3c11f3(0xeb),Number[_0x3c11f3(0x12f)]),_0x4d2ba7=_0x2f4160['get'](_0x441347['row'])??_0x386333;if(_0x3def58>_0x4d2ba7||_0x441347[_0x3c11f3(0xe5)]===_0x297037['row']&&_0x3def58<=_0x28f7b8)_0x283acf='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x441347['row']<_0x297037[_0x3c11f3(0xe5)]||_0x441347[_0x3c11f3(0xe5)]>_0x297037['row']+0x1||_0x441347[_0x3c11f3(0xe5)]===_0x297037['row']+0x1&&_0x3def58!==0x0)_0x283acf=_0x3c11f3(0x15c);}const _0x13275f=chain(_0x144d70,_0x3c11f3(0x118),'blipFill',_0x3c11f3(0xef));for(const _0x1a28e5 of _0x13275f){if(_0x1a28e5[_0x3c11f3(0x170)][_0x3c11f3(0x128)])throw Error(_0x3c11f3(0x11a));_0x160484({..._0x297037,'media':[_0x2605ae(_0x3b7233,_0x1a28e5[_0x3c11f3(0x170)][_0x3c11f3(0x16c)],_0x3c11f3(0x147))],..._0x283acf?{'error':_0x283acf}:{}});}if(!_0x13275f['length'])_0x160484({..._0x297037,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x3026ec=_0xf88245=>{const _0x20bced=_0x3c11f3,_0x2f92c6=_0x198aef(_0x8563db(_0x460c3d,_0x20bced(0x13d)));if(!matches(_0x2f92c6,_0x20bced(0x121)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x1cff64=integer(_0xf88245[_0x20bced(0x170)]['vm'],_0x20bced(0x135));if(!_0x1cff64)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x38c4d8=children(one(children(_0x2f92c6,'valueMetadata'),'valueMetadata'),'bk')[_0x1cff64-0x1];if(!_0x38c4d8)throw Error(_0x20bced(0x143));const _0xc20784=one(children(_0x38c4d8,'rc'),_0x20bced(0x10a)),_0x18aa70=integer(_0xc20784[_0x20bced(0x170)]['t'],_0x20bced(0x124)),_0x13e752=children(one(children(_0x2f92c6,_0x20bced(0x164)),_0x20bced(0x149)),_0x20bced(0x159))[_0x18aa70-0x1];if(!_0x18aa70||_0x13e752?.[_0x20bced(0x170)][_0x20bced(0x102)]!==_0x20bced(0x17d))throw Error(_0x20bced(0x158));const _0x16e1e8=one(children(_0x2f92c6,_0x20bced(0x15f))['filter'](_0x4b6da3=>_0x4b6da3[_0x20bced(0x170)]['name']===_0x20bced(0x17d)),_0x20bced(0x117)),_0x422c79=children(_0x16e1e8,'bk')[integer(_0xc20784[_0x20bced(0x170)]['v'],_0x20bced(0x176))];if(!_0x422c79)throw Error(_0x20bced(0x139));const _0x47c0f6=chain(_0x422c79,_0x20bced(0x11c))[_0x20bced(0x157)](_0x35e442=>children(_0x35e442,_0x20bced(0xff),SHEET))[_0x20bced(0xee)](_0xbca723=>_0xbca723[_0x20bced(0x170)]['uri']?.[_0x20bced(0x13a)]()===_0x20bced(0xf5)),_0x55e841=integer(one(_0x47c0f6[_0x20bced(0x157)](_0x2eea6f=>children(_0x2eea6f,_0x20bced(0x138))),_0x20bced(0xf3))[_0x20bced(0x170)]['i'],_0x20bced(0x134)),_0xf045c3=_0x198aef(_0x8563db(_0x460c3d,_0x20bced(0xfe)));if(!matches(_0xf045c3,'rvData'))throw Error(_0x20bced(0x16f));const _0x58ccb7=children(_0xf045c3,'rv')[_0x55e841];if(!_0x58ccb7)throw Error('Missing\x20rich\x20value.');const _0x4798cc=_0x198aef(_0x8563db(_0x460c3d,_0x20bced(0x161)));if(!matches(_0x4798cc,_0x20bced(0x16b)))throw Error(_0x20bced(0x15a));const _0xe92738=children(_0x4798cc,'s')[integer(_0x58ccb7[_0x20bced(0x170)]['s'],_0x20bced(0x119))];if(!_0xe92738||_0xe92738[_0x20bced(0x170)]['t']!==_0x20bced(0xf7))throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x3c10e4=children(_0xe92738,'k'),_0x4b2046=_0x3c10e4[_0x20bced(0x13f)]((_0x4e49e6,_0x54f688)=>_0x4e49e6[_0x20bced(0x170)]['n']==='_rvRel:LocalImageIdentifier'?_0x54f688:-0x1)[_0x20bced(0xee)](_0x57f804=>_0x57f804>=0x0);if(_0x4b2046[_0x20bced(0x11b)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x40fbe8=children(_0x58ccb7,'v',RICH)[_0x4b2046[0x0]];if(!_0x40fbe8)throw Error(_0x20bced(0x145));const _0x112f86=_0x8563db(_0x460c3d,'richValueRel'),_0x1079ce=_0x198aef(_0x112f86);if(!matches(_0x1079ce,'richValueRels'))throw Error(_0x20bced(0x14d));const _0x37b6c4=children(_0x1079ce,'rel')[integer(_0x40fbe8['text'],_0x20bced(0x167))];if(!_0x37b6c4)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x2605ae(_0x112f86,_0x37b6c4['attrs']['r:id'],_0x20bced(0x147));};let _0x22b863;const _0x40d777=_0x213d52=>{const _0x4f21cf=_0x3c11f3;if(!_0x22b863){_0x22b863=new Map();const _0xf9b75b=_0x51e9b9(_0x460c3d)[_0x4f21cf(0xee)](_0x3d7995=>[...relationshipTypes(_0x4f21cf(0x173)),...relationshipTypes(_0x4f21cf(0x187))][_0x4f21cf(0x141)](_0x3d7995[_0x4f21cf(0x183)]));if(!_0xf9b75b[_0x4f21cf(0x11b)]&&_0xf85a12[_0x4f21cf(0x16e)]('xl/cellimages.xml'))_0xf9b75b[_0x4f21cf(0x13c)]({'id':'','type':'','target':_0x4f21cf(0x17b)});if(_0xf9b75b['length']!==0x1)throw Error(_0x4f21cf(0xea));const _0x4c9853=_0x5780a6(_0x460c3d,_0xf9b75b[0x0]),_0x5a9101=_0x198aef(_0x4c9853);if(!matches(_0x5a9101,_0x4f21cf(0x187)))throw Error(_0x4f21cf(0x108));for(const _0x4a0c21 of children(_0x5a9101,'cellImage')){const _0x12c7fc=one(chain(_0x4a0c21,'pic',_0x4f21cf(0xed),_0x4f21cf(0x10e)),_0x4f21cf(0x12a))['attrs'][_0x4f21cf(0x102)];if(!_0x12c7fc||_0x22b863[_0x4f21cf(0x16e)](_0x12c7fc))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x25b115=one(chain(_0x4a0c21,_0x4f21cf(0x118),'blipFill',_0x4f21cf(0xef)),_0x4f21cf(0x115));if(_0x25b115[_0x4f21cf(0x170)]['r:link'])throw Error(_0x4f21cf(0x132));_0x22b863[_0x4f21cf(0x151)](_0x12c7fc,_0x2605ae(_0x4c9853,_0x25b115[_0x4f21cf(0x170)][_0x4f21cf(0x16c)],'image'));}}const _0x52e528=_0x22b863[_0x4f21cf(0x122)](_0x213d52);if(!_0x52e528)throw Error(_0x4f21cf(0x160)+_0x213d52+'.');return _0x52e528;},_0x181b3c=new Set();for(const _0x27574d of _0x2b12e5[_0x3c11f3(0x157)](_0xb8cedf=>children(_0xb8cedf,'c'))){const _0x1acdc1=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x27574d[_0x3c11f3(0x170)]['r']??'');if(!_0x1acdc1)continue;let _0x2a3bb3=0x0;for(const _0x1b5eaa of _0x1acdc1[0x1])_0x2a3bb3=_0x2a3bb3*0x1a+_0x1b5eaa['charCodeAt'](0x0)-0x40;if(!_0x2a6e6e[_0x3c11f3(0x16e)](_0x2a3bb3))continue;const _0x3670c0=integer(_0x1acdc1[0x2],'image\x20cell\x20row');if(_0x181b3c[_0x3c11f3(0x16e)](_0x27574d['attrs']['r']))throw Error(_0x3c11f3(0x186));_0x181b3c[_0x3c11f3(0x12e)](_0x27574d['attrs']['r']);const _0x4117f3=children(_0x27574d,'f');if(!_0x27574d[_0x3c11f3(0x170)]['vm']&&!_0x4117f3[_0x3c11f3(0x11b)])continue;try{if(_0x3670c0<0x1||_0x2a3bb3>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0xbc3fe2;if(_0x27574d[_0x3c11f3(0x170)]['vm']){if(_0x4117f3['length'])throw Error(_0x3c11f3(0xf8));if(_0x27574d[_0x3c11f3(0x170)]['t']!=='e'||children(_0x27574d,'v')[_0x3c11f3(0x11b)]!==0x1||children(_0x27574d,'v')[0x0]['text']!=='#VALUE!')throw Error(_0x3c11f3(0x101));_0xbc3fe2=_0x3026ec(_0x27574d);}else{const _0x39cb76=one(_0x4117f3,_0x3c11f3(0x153));if(_0x39cb76[_0x3c11f3(0x170)]['t']==='shared'||_0x39cb76['attrs']['si'])throw Error(_0x3c11f3(0x103));const _0xd8688e=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x3c11f3(0x188)](_0x39cb76[_0x3c11f3(0x113)]);if(!_0xd8688e)throw Error(_0x3c11f3(0x175));_0xbc3fe2=_0x40d777(_0xd8688e[0x1][_0x3c11f3(0x17e)](/""/g,'\x22'));}_0x160484({'row':_0x3670c0,'col':_0x2a3bb3,'media':[_0xbc3fe2],'nativeCell':!![]});}catch(_0xf8ad1d){_0x160484({'row':_0x3670c0,'col':_0x2a3bb3,'media':[],'nativeCell':!![],'error':_0xf8ad1d['message']});}}return _0x4afa50;}
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();}