@lovrabet/lovrabet-cli 2.3.10-beta.1 → 2.3.10-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) 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 +5 -1
  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 +6 -1
  140. package/lib/generated/official-routing.js +1 -1
  141. package/lib/generated/routing-contract.d.ts +3 -3
  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/references/lovrabet-config-commands.md +17 -33
  192. package/skills/lovrabet/references/lovrabet-config.md +11 -3
  193. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  194. package/skills/lovrabet/references/lovrabet-kb-workflow.md +4 -4
  195. 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(_0x2c1c8c,_0x2d9371){const _0x292452=a139_0xffa7,_0x2ce256=_0x2c1c8c();while(!![]){try{const _0xd3c642=-parseInt(_0x292452(0xce))/0x1+parseInt(_0x292452(0xd9))/0x2+parseInt(_0x292452(0xd1))/0x3*(parseInt(_0x292452(0xe9))/0x4)+parseInt(_0x292452(0xe8))/0x5+-parseInt(_0x292452(0xd2))/0x6+-parseInt(_0x292452(0xdb))/0x7+parseInt(_0x292452(0xca))/0x8*(parseInt(_0x292452(0xe4))/0x9);if(_0xd3c642===_0x2d9371)break;else _0x2ce256['push'](_0x2ce256['shift']());}catch(_0x386c2e){_0x2ce256['push'](_0x2ce256['shift']());}}}(a139_0x4192,0x8eecc));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';function a139_0x4192(){const _0x52d8f7=['riskLevel','7529382SGwEGs','aborted','risk','presentation','result','message','data','rawFlags','args','1098cnDxcA','Lovrabet\x20invocation\x20aborted.','high-risk-write','definition','4834605NzDAsz','135220wFxRKw','present','dry-run','confirmation','1936zVrelu','signal','dryRun','reason','443555plpNym','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','confirm','72lXzBRu','2961810dbmZFB','command','execute','stringify','AbortError','format','write','1580942tBPivH'];a139_0x4192=function(){return _0x52d8f7;};return a139_0x4192();}import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x18cc0c,command:_0x2eeab5,risk:_0x51cf97,dryRun:_0x1707df}){const _0x3127b6=a139_0xffa7;return JSON[_0x3127b6(0xd5)]({'ok':_0x18cc0c['ok'],'command':_0x2eeab5,'risk':_0x51cf97,..._0x1707df?{'dryRun':!![]}:{},..._0x18cc0c[_0x3127b6(0xe1)]!==undefined?{'data':_0x18cc0c[_0x3127b6(0xe1)]}:{},..._0x18cc0c[_0x3127b6(0xe0)]?{'message':_0x18cc0c['message']}:{}});}};export async function invokeLovrabet(_0x541492,_0x3cf378){const _0x41af4e=a139_0xffa7;throwIfAborted(_0x3cf378[_0x41af4e(0xcb)]);const _0x113503=await resolveLovrabetInvocation(_0x541492),_0x2dc363=canonicalLovrabetOperation(_0x113503[_0x41af4e(0xe7)]);return await confirmWriteBeforeQueue(_0x113503['definition'],_0x113503[_0x41af4e(0xe2)],_0x2dc363,_0x3cf378),runSerialized(async()=>{const _0x5b0c08=_0x41af4e;throwIfAborted(_0x3cf378[_0x5b0c08(0xcb)]);const _0x81a285={},_0x1e80e9=buildConfigFromFlags(_0x113503[_0x5b0c08(0xe2)]);await initGlobalEnvironment(_0x1e80e9);const _0x21475d=createPipelineEnv(_0x1e80e9,{..._0x113503[_0x5b0c08(0xe2)],'yes':_0x113503[_0x5b0c08(0xe7)][_0x5b0c08(0xdd)]==='high-risk-write'?!![]:_0x113503[_0x5b0c08(0xe2)]['yes'],'nonInteractive':!![]});_0x21475d[_0x5b0c08(0xe3)]=_0x113503[_0x5b0c08(0xe3)],_0x21475d['isNonInteractive']=!![],_0x21475d[_0x5b0c08(0xda)]=_0x5b0c08(0xe6);const _0x1401e5=withAbortSignal(_0x113503[_0x5b0c08(0xe7)],_0x3cf378['signal']),_0x22a186=createLovrabetRunnerAdapter({'formatOutput'(_0x2896be,_0x5c011d){const _0x596fe7=_0x5b0c08;_0x81a285[_0x596fe7(0xdf)]=_0x2896be,_0x81a285[_0x596fe7(0xd3)]=_0x5c011d[_0x596fe7(0xd3)],_0x81a285[_0x596fe7(0xdd)]=_0x5c011d[_0x596fe7(0xdd)],_0x81a285['format']=_0x5c011d['format'],_0x81a285[_0x596fe7(0xcc)]=_0x5c011d[_0x596fe7(0xcc)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x1401e5,_0x21475d,_0x22a186);if(!_0x81a285[_0x5b0c08(0xdf)]||!_0x81a285[_0x5b0c08(0xd3)]||!_0x81a285[_0x5b0c08(0xdd)]||!_0x81a285[_0x5b0c08(0xd7)])throw new Error(_0x5b0c08(0xcf));const _0x1a4902=_0x3cf378[_0x5b0c08(0xde)]??defaultPresentation,_0x3b22f7=_0x81a285['dryRun']===!![],_0x3bc18e={'result':_0x81a285[_0x5b0c08(0xdf)],'command':_0x81a285['command'],'operation':_0x2dc363,'risk':_0x81a285['risk'],'format':_0x81a285[_0x5b0c08(0xd7)],'dryRun':_0x3b22f7},_0x326bdf=createLovrabetWriteMetadata(_0x113503[_0x5b0c08(0xe7)],_0x2dc363,_0x81a285[_0x5b0c08(0xdf)],_0x3b22f7);let _0x2ccbe6;try{_0x2ccbe6=await _0x1a4902[_0x5b0c08(0xea)](_0x3bc18e);}catch(_0x30c023){if(!_0x326bdf||_0x1a4902===defaultPresentation)throw _0x30c023;_0x2ccbe6=await defaultPresentation[_0x5b0c08(0xea)](_0x3bc18e);}return{'operation':_0x2dc363,'risk':_0x81a285[_0x5b0c08(0xdd)],'mode':_0x3b22f7?_0x5b0c08(0xeb):'execute','result':_0x81a285[_0x5b0c08(0xdf)],'output':_0x2ccbe6,..._0x326bdf?{'metadata':_0x326bdf}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x38a004,_0x4dc915,_0x148660,_0x2b1be1){const _0x260caa=a139_0xffa7;if(_0x4dc915[_0x260caa(0xcc)]===!![]||_0x38a004[_0x260caa(0xdd)]!==_0x260caa(0xd8)&&_0x38a004[_0x260caa(0xdd)]!==_0x260caa(0xe6))return;await _0x2b1be1[_0x260caa(0xc9)][_0x260caa(0xd0)](buildLovrabetConfirmationRequest(_0x38a004,_0x148660,_0x2b1be1['signal']));}function withAbortSignal(_0x314849,_0x53ad7b){return{..._0x314849,async 'execute'(_0x37ca44){const _0x3899dd=a139_0xffa7;return throwIfAborted(_0x53ad7b),_0x314849[_0x3899dd(0xd4)]({..._0x37ca44,'signal':_0x53ad7b});}};}function a139_0xffa7(_0x5cac9f,_0x39fad3){_0x5cac9f=_0x5cac9f-0xc9;const _0x4192b1=a139_0x4192();let _0xffa778=_0x4192b1[_0x5cac9f];return _0xffa778;}function throwIfAborted(_0x39a04e){const _0x5783d6=a139_0xffa7;if(_0x39a04e?.[_0x5783d6(0xdc)])throw _0x39a04e[_0x5783d6(0xcd)]instanceof Error?_0x39a04e[_0x5783d6(0xcd)]:new DOMException(_0x5783d6(0xe5),_0x5783d6(0xd6));}
@@ -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_0x3f8fec=a140_0x2a29;(function(_0x266872,_0x23a46d){const _0x56d4d9=a140_0x2a29,_0x5b66f4=_0x266872();while(!![]){try{const _0x539a5d=-parseInt(_0x56d4d9(0x156))/0x1*(-parseInt(_0x56d4d9(0x15a))/0x2)+parseInt(_0x56d4d9(0x153))/0x3*(-parseInt(_0x56d4d9(0x152))/0x4)+parseInt(_0x56d4d9(0x157))/0x5*(-parseInt(_0x56d4d9(0x15b))/0x6)+parseInt(_0x56d4d9(0x155))/0x7+parseInt(_0x56d4d9(0x159))/0x8*(parseInt(_0x56d4d9(0x151))/0x9)+parseInt(_0x56d4d9(0x15d))/0xa+-parseInt(_0x56d4d9(0x150))/0xb*(parseInt(_0x56d4d9(0x15c))/0xc);if(_0x539a5d===_0x23a46d)break;else _0x5b66f4['push'](_0x5b66f4['shift']());}catch(_0x17a9cd){_0x5b66f4['push'](_0x5b66f4['shift']());}}}(a140_0x1f27,0xeab88));function a140_0x2a29(_0x4ca715,_0x1d60d5){_0x4ca715=_0x4ca715-0x150;const _0x1f2796=a140_0x1f27();let _0x2a2982=_0x1f2796[_0x4ca715];return _0x2a2982;}let tail=Promise[a140_0x3f8fec(0x154)]();export async function runSerialized(_0x403457){const _0x2fb3b0=a140_0x3f8fec,_0x10a68e=tail;let _0x443d7c;tail=new Promise(_0x5b6149=>{_0x443d7c=_0x5b6149;}),await _0x10a68e[_0x2fb3b0(0x158)](()=>undefined);try{return await _0x403457();}finally{_0x443d7c();}}function a140_0x1f27(){const _0x42a11e=['6595660OZFewX','22rcPNws','16789491PDjGKm','84WpmaSA','115557ljNfvY','resolve','12203436EbzlrA','589053QmNsIW','21595KTeoPF','catch','8DvLxIu','2ulGYZN','114scVZAS','18030540iMSMhb'];a140_0x1f27=function(){return _0x42a11e;};return a140_0x1f27();}
@@ -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 a141_0x217b(_0x2bbbfa,_0x16cfc2){_0x2bbbfa=_0x2bbbfa-0x13f;const _0x14b104=a141_0x14b1();let _0x217b03=_0x14b104[_0x2bbbfa];return _0x217b03;}function a141_0x14b1(){const _0x443736=['2CxjMPt','hint','8045790vNgSlK','80RBzvEk','flags','36IoTrMF','1300149klfeOF','24933EyODcx','989912kwMxwN','defaultCommand','601944XpNpJR','message','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','1086235AxkgIC','assign','args','607758bIwDKU','492Ctglmy','definition','unknownCommand','slice','validation','input','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','50vJUDfl'];a141_0x14b1=function(){return _0x443736;};return a141_0x14b1();}(function(_0x3bcc84,_0x329e14){const _0x2fef99=a141_0x217b,_0x342705=_0x3bcc84();while(!![]){try{const _0x502378=-parseInt(_0x2fef99(0x156))/0x1*(-parseInt(_0x2fef99(0x146))/0x2)+-parseInt(_0x2fef99(0x14d))/0x3*(parseInt(_0x2fef99(0x157))/0x4)+-parseInt(_0x2fef99(0x153))/0x5+parseInt(_0x2fef99(0x148))/0x6+parseInt(_0x2fef99(0x150))/0x7*(-parseInt(_0x2fef99(0x149))/0x8)+parseInt(_0x2fef99(0x14c))/0x9*(parseInt(_0x2fef99(0x145))/0xa)+parseInt(_0x2fef99(0x14e))/0xb*(parseInt(_0x2fef99(0x14b))/0xc);if(_0x502378===_0x329e14)break;else _0x342705['push'](_0x342705['shift']());}catch(_0x53fceb){_0x342705['push'](_0x342705['shift']());}}}(a141_0x14b1,0xcd770));import a141_0x4766c4 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x2e8a7e){const _0x56a738=a141_0x217b,_0x30302c=a141_0x4766c4('',{'importMeta':import.meta,'argv':_0x2e8a7e,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x474a76=[..._0x30302c[_0x56a738(0x143)]],_0x2ec3f1=_0x30302c[_0x56a738(0x14a)];await correctFlags(_0x2ec3f1);const _0x269948=_0x474a76[0x0];if(!_0x269948)throw CliErrors['validation'](_0x56a738(0x144));const _0x122f14=resolveRemovedCommand(_0x269948,_0x474a76[0x1]);if(_0x122f14)throw CliErrors[_0x56a738(0x142)](_0x122f14[_0x56a738(0x151)],_0x122f14[_0x56a738(0x147)]);if(!isKnownService(_0x269948)){const _0x515cc1=resolveDynamicServiceCommand(_0x474a76,_0x2ec3f1);if(!_0x515cc1)throw CliErrors[_0x56a738(0x140)](_0x474a76['join']('\x20'));return Object[_0x56a738(0x154)](_0x2ec3f1,_0x515cc1[_0x56a738(0x14a)]),{'definition':_0x515cc1[_0x56a738(0x13f)],'rawFlags':_0x2ec3f1,'args':_0x515cc1[_0x56a738(0x155)]};}const _0x15db31=getServiceEntry(_0x269948),_0xae26fe=_0x474a76[0x1]||_0x15db31[_0x56a738(0x14f)];if(!_0xae26fe)throw CliErrors[_0x56a738(0x142)](_0x56a738(0x152)+_0x269948+'\x22.');const _0x355284=findDefinition(_0x269948,_0xae26fe);if(!_0x355284)throw CliErrors[_0x56a738(0x140)](_0x269948+'\x20'+_0xae26fe);return{'definition':_0x355284,'rawFlags':_0x2ec3f1,'args':_0x474a76[_0x56a738(0x141)](0x2)};}async function correctFlags(_0x5057e1){const _0x4e4202=a141_0x217b;try{const {correctFlags:_0x259f43}=await import('../framework/preparse.js'),{getAllDefinitions:_0x67faf7}=await import('../commands/registry.js'),_0x3694ca=_0x67faf7()['flatMap'](_0x4aff2a=>_0x4aff2a[_0x4e4202(0x14a)]??[]),_0x1d6480=_0x259f43(_0x5057e1,_0x3694ca);Object[_0x4e4202(0x154)](_0x5057e1,_0x1d6480[_0x4e4202(0x14a)]);}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
+ (function(_0x4338f0,_0x3309ef){const _0x4ee42e=a143_0x254a,_0x3dfc67=_0x4338f0();while(!![]){try{const _0x392aa8=parseInt(_0x4ee42e(0x189))/0x1*(parseInt(_0x4ee42e(0x1a5))/0x2)+-parseInt(_0x4ee42e(0x1bf))/0x3*(parseInt(_0x4ee42e(0x1cc))/0x4)+-parseInt(_0x4ee42e(0x1d1))/0x5+parseInt(_0x4ee42e(0x1d0))/0x6+parseInt(_0x4ee42e(0x195))/0x7*(parseInt(_0x4ee42e(0x197))/0x8)+parseInt(_0x4ee42e(0x1c3))/0x9+-parseInt(_0x4ee42e(0x1b5))/0xa;if(_0x392aa8===_0x3309ef)break;else _0x3dfc67['push'](_0x3dfc67['shift']());}catch(_0x29aef5){_0x3dfc67['push'](_0x3dfc67['shift']());}}}(a143_0x2dfc,0xa1a24));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';function a143_0x254a(_0x5984eb,_0x5ddeec){_0x5984eb=_0x5984eb-0x189;const _0x2dfc5e=a143_0x2dfc();let _0x254a2f=_0x2dfc5e[_0x5984eb];return _0x254a2f;}const validId=_0x45e4f2=>typeof _0x45e4f2==='number'&&Number['isSafeInteger'](_0x45e4f2)&&_0x45e4f2>0x0;export async function runAutoIdExcelImport(_0x4d699d){const _0x133fc0=a143_0x254a,_0x395ee7={..._0x4d699d,'checkpoint':await resolveImportOutputPath(_0x4d699d[_0x133fc0(0x1ca)]),'report':await resolveImportOutputPath(_0x4d699d[_0x133fc0(0x18a)])},{manifest:_0x27267d,contract:_0x4a8ed7,api:_0x383ec6}=_0x395ee7;assertImportContract(_0x4a8ed7,_0x395ee7[_0x133fc0(0x1cd)],_0x395ee7[_0x133fc0(0x19f)]);if(_0x4a8ed7[_0x133fc0(0x1bd)]!==0x2||!_0x383ec6['readTask'])throw Error(_0x133fc0(0x196));if(_0x27267d[_0x133fc0(0x18f)][_0x133fc0(0x1c1)])throw Error('Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.');if(!_0x27267d[_0x133fc0(0x1c5)][_0x133fc0(0x1c1)])throw Error(_0x133fc0(0x1cf));if(!Number[_0x133fc0(0x1ae)](_0x395ee7[_0x133fc0(0x191)])||_0x395ee7[_0x133fc0(0x191)]<0x1||_0x395ee7['batchSize']>_0x4a8ed7['maxBatchSize'])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x395ee7[_0x133fc0(0x1ca)],_0x395ee7[_0x133fc0(0x18a)]);if(_0x27267d[_0x133fc0(0x1c5)][_0x133fc0(0x1ab)](_0x4d2444=>Object[_0x133fc0(0x1d9)](_0x4d2444[_0x133fc0(0x18c)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x110919=(_0x405c17,_0x124e1a)=>Buffer['byteLength'](JSON[_0x133fc0(0x1b3)]({'schemaFingerprint':_0x4a8ed7[_0x133fc0(0x1d6)],'taskId':_0x124e1a,'items':_0x405c17[_0x133fc0(0x1d5)](_0x38590e=>_0x27267d['rows'][_0x38590e][_0x133fc0(0x18c)])}),_0x133fc0(0x19e)),_0x5973c4=[];let _0x3060fe=[];for(let _0x5baed7=0x0;_0x5baed7<_0x27267d[_0x133fc0(0x1c5)][_0x133fc0(0x1c1)];_0x5baed7++){if(_0x110919([_0x5baed7],0x2**0x34)>_0x4a8ed7[_0x133fc0(0x193)])throw Error('Excel\x20row\x20'+_0x27267d['rows'][_0x5baed7][_0x133fc0(0x1b7)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x3060fe[_0x133fc0(0x1c1)]&&(_0x3060fe['length']===_0x395ee7[_0x133fc0(0x191)]||_0x110919([..._0x3060fe,_0x5baed7],0x2**0x34)>_0x4a8ed7[_0x133fc0(0x193)])&&(_0x5973c4[_0x133fc0(0x1cb)](_0x3060fe),_0x3060fe=[]),_0x3060fe[_0x133fc0(0x1cb)](_0x5baed7);}if(_0x3060fe['length'])_0x5973c4[_0x133fc0(0x1cb)](_0x3060fe);const _0x19f858={'appCode':_0x395ee7[_0x133fc0(0x1cd)],'datasetCode':_0x395ee7[_0x133fc0(0x19f)],'runtimeDomain':_0x395ee7[_0x133fc0(0x190)],'actorId':_0x4a8ed7[_0x133fc0(0x1d4)],'fileHash':_0x27267d[_0x133fc0(0x1d7)],'mappingHash':_0x27267d[_0x133fc0(0x1a8)],'schemaHash':_0x27267d[_0x133fc0(0x1a1)],'remoteSchemaHash':_0x4a8ed7[_0x133fc0(0x1d6)],'batchSize':_0x395ee7['batchSize'],'maxBatchBytes':_0x4a8ed7['maxBatchBytes'],'sheet':_0x27267d[_0x133fc0(0x19d)],'strategy':_0x4a8ed7[_0x133fc0(0x1c0)]},_0xf20241=await acquireLock(_0x395ee7[_0x133fc0(0x1ca)]);let _0x3f97e8;const _0x199bc0=Date[_0x133fc0(0x1b6)]();let _0x512a9a=0x0;const _0xa4ecc9=[],_0xf5df27=_0x3f1c68=>_0x3f97e8?.[_0x133fc0(0x1af)]['filter'](_0x41f8a8=>_0x41f8a8[_0x133fc0(0x1b2)]===_0x3f1c68)[_0x133fc0(0x1ba)]((_0x170418,_0x9295e6)=>_0x170418+_0x9295e6[_0x133fc0(0x1be)][_0x133fc0(0x1c1)],0x0)??0x0,_0x54dcd4=()=>({'importId':_0x3f97e8?.['importId'],'sourceRows':_0x27267d['rows']['length'],'emptyRows':_0x27267d[_0x133fc0(0x1c8)][_0x133fc0(0x1c1)],'succeeded':_0xf5df27(_0x133fc0(0x1b8)),'unknown':_0xf5df27('pending'),'conflicts':_0xf5df27(_0x133fc0(0x18e)),'notAttempted':_0xf5df27(_0x133fc0(0x1ce)),'batches':_0x512a9a,'batchResults':_0xa4ecc9,'elapsedMs':Date[_0x133fc0(0x1b6)]()-_0x199bc0,'checkpoint':_0x395ee7[_0x133fc0(0x1ca)],'report':_0x395ee7[_0x133fc0(0x18a)],'warnings':_0x27267d[_0x133fc0(0x1d8)]});try{if(_0x395ee7[_0x133fc0(0x1c9)]){try{_0x3f97e8=JSON[_0x133fc0(0x1aa)](await readFile(_0x395ee7['checkpoint'],_0x133fc0(0x19e)));}catch{throw Error(_0x133fc0(0x1db));}if(!_0x3f97e8||_0x3f97e8['version']!==0x2||typeof _0x3f97e8[_0x133fc0(0x1c6)]!==_0x133fc0(0x1ad)||!_0x3f97e8[_0x133fc0(0x1c6)]||canonical(_0x3f97e8[_0x133fc0(0x1c7)])!==canonical(_0x19f858)||!Array['isArray'](_0x3f97e8[_0x133fc0(0x1af)])||_0x3f97e8[_0x133fc0(0x1af)]['length']!==_0x5973c4['length']||new Set(_0x3f97e8[_0x133fc0(0x1af)][_0x133fc0(0x1d5)](_0x3793cd=>_0x3793cd[_0x133fc0(0x1a2)]))['size']!==_0x5973c4[_0x133fc0(0x1c1)]||_0x3f97e8['batches'][_0x133fc0(0x1ab)]((_0xd68e3b,_0x1129f8)=>!validId(_0xd68e3b['taskId'])||_0xd68e3b[_0x133fc0(0x1a2)]>0x2**0x34||canonical(_0xd68e3b['rowIndexes'])!==canonical(_0x5973c4[_0x1129f8])||![_0x133fc0(0x1ce),_0x133fc0(0x18d),_0x133fc0(0x1b8),_0x133fc0(0x18e)][_0x133fc0(0x199)](_0xd68e3b[_0x133fc0(0x1b2)])||!Array[_0x133fc0(0x1a7)](_0xd68e3b['ids'])||_0xd68e3b[_0x133fc0(0x1c4)][_0x133fc0(0x1ab)](_0x2e2e90=>!validId(_0x2e2e90))||new Set(_0xd68e3b[_0x133fc0(0x1c4)])[_0x133fc0(0x1b1)]!==_0xd68e3b[_0x133fc0(0x1c4)][_0x133fc0(0x1c1)]||_0xd68e3b[_0x133fc0(0x1c4)][_0x133fc0(0x1c1)]!==0x0&&_0xd68e3b[_0x133fc0(0x1c4)]['length']!==_0xd68e3b[_0x133fc0(0x1be)][_0x133fc0(0x1c1)]||_0xd68e3b['status']===_0x133fc0(0x1b8)&&_0xd68e3b['ids'][_0x133fc0(0x1c1)]!==_0xd68e3b[_0x133fc0(0x1be)][_0x133fc0(0x1c1)]||_0xd68e3b[_0x133fc0(0x1b2)]===_0x133fc0(0x1ce)&&_0xd68e3b['ids'][_0x133fc0(0x1c1)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x19c2ca=_0x3f97e8[_0x133fc0(0x1af)][_0x133fc0(0x194)](_0x1a1c21=>_0x1a1c21['ids']);if(new Set(_0x19c2ca)[_0x133fc0(0x1b1)]!==_0x19c2ca[_0x133fc0(0x1c1)])throw Error('Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.');}else{try{await lstat(_0x395ee7[_0x133fc0(0x1ca)]);throw Error(_0x133fc0(0x1c2));}catch(_0x4744a3){if(_0x4744a3['code']!=='ENOENT')throw _0x4744a3;}const _0x1f502d=new Set();_0x3f97e8={'version':0x2,'importId':randomUUID(),'binding':_0x19f858,'batches':_0x5973c4[_0x133fc0(0x1d5)](_0x143584=>{const _0x36d524=_0x133fc0;let _0x383efc;do{_0x383efc=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x36d524(0x1d3)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x1f502d['has'](_0x383efc));return _0x1f502d['add'](_0x383efc),{'taskId':_0x383efc,'rowIndexes':_0x143584,'ids':[],'status':_0x36d524(0x1ce)};})},await saveImportJson(_0x395ee7['checkpoint'],_0x3f97e8);}await _0x395ee7[_0x133fc0(0x1b9)]?.();const _0x426ca4=_0x3f97e8,_0x2acd3e=async(_0x55d40b,_0x17fe2d)=>{const _0x4feaa0=_0x133fc0;_0x55d40b['status']='conflict',await saveImportJson(_0x395ee7[_0x4feaa0(0x1ca)],_0x426ca4);throw Error(_0x17fe2d);},_0x45402b=async _0x14cdbe=>{const _0x3fa352=_0x133fc0;let _0x590aed=await _0x383ec6[_0x3fa352(0x1da)](_0x14cdbe[_0x3fa352(0x1a2)]);if(!Array[_0x3fa352(0x1a7)](_0x590aed))throw Error(_0x3fa352(0x1ac));if(_0x14cdbe[_0x3fa352(0x1b2)]===_0x3fa352(0x1ce)&&_0x590aed[_0x3fa352(0x1c1)])return _0x2acd3e(_0x14cdbe,_0x3fa352(0x1d2));if(!_0x590aed[_0x3fa352(0x1c1)]){if(_0x14cdbe[_0x3fa352(0x1b2)]===_0x3fa352(0x1b8)||_0x14cdbe['ids'][_0x3fa352(0x1c1)])return _0x2acd3e(_0x14cdbe,_0x3fa352(0x1a6));return![];}if(_0x590aed[_0x3fa352(0x1c1)]!==_0x14cdbe['rowIndexes'][_0x3fa352(0x1c1)])return _0x2acd3e(_0x14cdbe,'Partial\x20import\x20task\x20readback\x20conflict.');const _0x5a6f4a=_0x590aed[_0x3fa352(0x1d5)](_0x99ca68=>_0x99ca68?.['id']);if(_0x5a6f4a['some'](_0x24025f=>!validId(_0x24025f)))return _0x2acd3e(_0x14cdbe,_0x3fa352(0x1bb));if(new Set(_0x5a6f4a)[_0x3fa352(0x1b1)]!==_0x5a6f4a[_0x3fa352(0x1c1)])return _0x2acd3e(_0x14cdbe,_0x3fa352(0x1bb));const _0x3f72ab=new Map(_0x590aed[_0x3fa352(0x1d5)](_0x9dad8a=>[_0x9dad8a['id'],_0x9dad8a])),_0x346d7d=_0x14cdbe[_0x3fa352(0x1c4)][_0x3fa352(0x1c1)]?[..._0x14cdbe['ids']]:[..._0x5a6f4a][_0x3fa352(0x1b4)]((_0x14ba8a,_0x8fdf91)=>_0x14ba8a-_0x8fdf91);if(_0x346d7d[_0x3fa352(0x1ab)](_0x20e528=>!validId(_0x20e528))||_0x346d7d[_0x3fa352(0x1ab)]((_0x9c4561,_0x2d12ee)=>_0x2d12ee>0x0&&_0x9c4561<=_0x346d7d[_0x2d12ee-0x1])||_0x346d7d[_0x3fa352(0x1ab)](_0x1502e5=>!_0x3f72ab[_0x3fa352(0x1a3)](_0x1502e5)))return _0x2acd3e(_0x14cdbe,_0x3fa352(0x1bb));_0x590aed=_0x346d7d['map'](_0x532757=>_0x3f72ab['get'](_0x532757));const _0x52cde6=new Set(_0x426ca4[_0x3fa352(0x1af)]['filter'](_0xe05ab5=>_0xe05ab5!==_0x14cdbe)['flatMap'](_0x13aeff=>_0x13aeff[_0x3fa352(0x1c4)]));if(_0x346d7d['some'](_0x359afd=>_0x52cde6[_0x3fa352(0x1a3)](_0x359afd)))return _0x2acd3e(_0x14cdbe,_0x3fa352(0x1a0));for(let _0x4d949b=0x0;_0x4d949b<_0x590aed[_0x3fa352(0x1c1)];_0x4d949b++){const _0x4be89d=_0x27267d[_0x3fa352(0x1c5)][_0x14cdbe['rowIndexes'][_0x4d949b]][_0x3fa352(0x18c)];if(Object[_0x3fa352(0x18b)](_0x4be89d)[_0x3fa352(0x1ab)](_0x358135=>!sameImportValue(_0x4be89d[_0x358135],_0x590aed[_0x4d949b][_0x358135],_0x27267d['imageFields']?.[_0x3fa352(0x199)](_0x358135)&&!_0x27267d['uploadFields']?.['includes'](_0x358135))))return _0x2acd3e(_0x14cdbe,_0x3fa352(0x198)+_0x27267d[_0x3fa352(0x1c5)][_0x14cdbe['rowIndexes'][_0x4d949b]][_0x3fa352(0x1b7)]+'.');}return _0x14cdbe[_0x3fa352(0x1c4)]=_0x346d7d,_0x14cdbe[_0x3fa352(0x1b2)]=_0x3fa352(0x1b8),await saveImportJson(_0x395ee7[_0x3fa352(0x1ca)],_0x426ca4),!![];};if(_0x426ca4[_0x133fc0(0x1af)][_0x133fc0(0x1ab)](_0x22fc05=>_0x22fc05[_0x133fc0(0x1b2)]===_0x133fc0(0x18e)&&!(_0x395ee7[_0x133fc0(0x1c9)]&&_0x395ee7[_0x133fc0(0x1b0)]&&_0x27267d[_0x133fc0(0x1a4)]?.[_0x133fc0(0x1c1)]&&_0x22fc05[_0x133fc0(0x1c4)][_0x133fc0(0x1c1)]===_0x22fc05[_0x133fc0(0x1be)][_0x133fc0(0x1c1)])))throw Error(_0x133fc0(0x1a9));if(_0x395ee7[_0x133fc0(0x1c9)]){for(const _0x11b4c7 of _0x426ca4[_0x133fc0(0x1af)])await _0x45402b(_0x11b4c7);}for(const _0x1e914c of _0x426ca4[_0x133fc0(0x1af)]){if(_0x1e914c[_0x133fc0(0x1b2)]===_0x133fc0(0x1b8))continue;if(!_0x395ee7[_0x133fc0(0x1c9)])await _0x45402b(_0x1e914c);_0x1e914c[_0x133fc0(0x1b2)]=_0x133fc0(0x18d),await saveImportJson(_0x395ee7[_0x133fc0(0x1ca)],_0x426ca4),_0x512a9a++;const _0x5248e3=_0x1e914c[_0x133fc0(0x1be)]['map'](_0x1c07d5=>_0x27267d[_0x133fc0(0x1c5)][_0x1c07d5][_0x133fc0(0x18c)]),_0x443e5b=Date['now'](),_0x5cc9c6={'batch':_0x512a9a,'rowStart':_0x27267d[_0x133fc0(0x1c5)][_0x1e914c['rowIndexes'][0x0]][_0x133fc0(0x1b7)],'rowEnd':_0x27267d[_0x133fc0(0x1c5)][_0x1e914c[_0x133fc0(0x1be)]['at'](-0x1)][_0x133fc0(0x1b7)],'count':_0x5248e3[_0x133fc0(0x1c1)],'bytes':_0x110919(_0x1e914c[_0x133fc0(0x1be)],_0x1e914c[_0x133fc0(0x1a2)]),'elapsedMs':0x0,'status':_0x133fc0(0x1bc)};_0xa4ecc9['push'](_0x5cc9c6);try{const _0x14cce4=await _0x383ec6[_0x133fc0(0x192)](_0x5248e3,_0x1e914c['taskId']);if(!_0x14cce4||_0x14cce4['count']!==_0x5248e3[_0x133fc0(0x1c1)]||!Array['isArray'](_0x14cce4[_0x133fc0(0x1c4)])||_0x14cce4[_0x133fc0(0x1c4)][_0x133fc0(0x1c1)]!==_0x5248e3[_0x133fc0(0x1c1)]||_0x14cce4[_0x133fc0(0x1c4)]['some'](_0x2e6d44=>!validId(_0x2e6d44))||new Set(_0x14cce4[_0x133fc0(0x1c4)])['size']!==_0x14cce4[_0x133fc0(0x1c4)][_0x133fc0(0x1c1)])throw Error('Invalid\x20write\x20result.');_0x1e914c[_0x133fc0(0x1c4)]=_0x14cce4[_0x133fc0(0x1c4)],await saveImportJson(_0x395ee7['checkpoint'],_0x426ca4);if(!await _0x45402b(_0x1e914c))throw Error(_0x133fc0(0x19b));}catch(_0x148757){if(_0x1e914c[_0x133fc0(0x1b2)]==='conflict')throw _0x148757;try{await _0x45402b(_0x1e914c);}catch(_0x2793ab){if(_0x1e914c[_0x133fc0(0x1b2)]===_0x133fc0(0x18e))throw _0x2793ab;}if(_0x1e914c[_0x133fc0(0x1b2)]!==_0x133fc0(0x1b8))throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x5cc9c6['elapsedMs']=Date[_0x133fc0(0x1b6)]()-_0x443e5b,_0x5cc9c6[_0x133fc0(0x1b2)]=_0x1e914c[_0x133fc0(0x1b2)]===_0x133fc0(0x1b8)?_0x133fc0(0x1b8):_0x1e914c['status']===_0x133fc0(0x18e)?_0x133fc0(0x18e):'unknown';}}const _0xe6b6ae={'status':_0x133fc0(0x19a),..._0x54dcd4()};return await saveImportJson(_0x395ee7[_0x133fc0(0x18a)],_0xe6b6ae),_0xe6b6ae;}catch(_0x17b924){if(_0x3f97e8)await saveImportJson(_0x395ee7[_0x133fc0(0x18a)],{'status':_0x133fc0(0x19c),..._0x54dcd4(),'message':_0x17b924['message']});throw _0x17b924;}finally{await _0xf20241();}}function a143_0x2dfc(){const _0x4ef0f4=['Invalid\x20import\x20task\x20readback\x20response.','string','isInteger','batches','reconcileImageConflicts','size','status','stringify','sort','25365030QbxVnf','now','rowNumber','succeeded','onCheckpointReady','reduce','Import\x20generated\x20ID\x20conflict.','unknown','schemaVersion','rowIndexes','3ZuXnnN','strategy','length','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','10037880EtEOHr','ids','rows','importId','binding','emptyRows','resume','checkpoint','push','2622148GtDcEO','appCode','unsent','Excel\x20contains\x20no\x20valid\x20data\x20rows.','6175032CYfShY','2386650yhSYUw','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','hex','actorId','map','schemaFingerprint','fileHash','warnings','hasOwn','readTask','Cannot\x20read\x20the\x20import\x20checkpoint.','1HCIPZg','report','keys','values','pending','conflict','errors','runtimeDomain','batchSize','write','maxBatchBytes','flatMap','789866OOtoJe','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','88ELkGXk','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','includes','completed','Incomplete\x20readback.','incomplete','sheet','utf8','datasetCode','Import\x20generated\x20ID\x20collision.','schemaHash','taskId','has','imageFields','1891424ZAImYD','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','isArray','mappingHash','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','parse','some'];a143_0x2dfc=function(){return _0x4ef0f4;};return a143_0x2dfc();}
@@ -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_0xfeba39=a144_0x4a06;(function(_0x104bdb,_0x3f7fb2){const _0x3c5cc7=a144_0x4a06,_0x4506e4=_0x104bdb();while(!![]){try{const _0x5a14f4=-parseInt(_0x3c5cc7(0x1bb))/0x1*(parseInt(_0x3c5cc7(0x188))/0x2)+-parseInt(_0x3c5cc7(0x1e5))/0x3+-parseInt(_0x3c5cc7(0x21c))/0x4*(-parseInt(_0x3c5cc7(0x1b3))/0x5)+-parseInt(_0x3c5cc7(0x1ba))/0x6*(parseInt(_0x3c5cc7(0x200))/0x7)+parseInt(_0x3c5cc7(0x222))/0x8*(parseInt(_0x3c5cc7(0x197))/0x9)+parseInt(_0x3c5cc7(0x206))/0xa+-parseInt(_0x3c5cc7(0x249))/0xb*(-parseInt(_0x3c5cc7(0x22c))/0xc);if(_0x5a14f4===_0x3f7fb2)break;else _0x4506e4['push'](_0x4506e4['shift']());}catch(_0x1ab76d){_0x4506e4['push'](_0x4506e4['shift']());}}}(a144_0x1cae,0x38b52));import{readFile,stat}from'node:fs/promises';function a144_0x1cae(){const _0x89d2f2=['mapping','pop','filter','Worksheet\x20column\x20objects\x20exceed\x20100000.','XML\x20DTD/entities\x20are\x20not\x20supported.','Invalid\x20worksheet\x20nested\x20row.','parseInt','load','Invalid\x20dataset\x20field\x20extension\x20metadata.','test','Duplicate\x20header:\x20','repeat','definedName','properties','9018Jesjzl','Duplicate\x20dataset\x20field\x20codes.','find','extraFieldsLength','isFinite','Expected\x20an\x20Excel\x20date\x20cell.','date','concat','\x20columns.','fileNameStr','image','col','datetime','sharedFormula','hyperlink','isArray','fromBuffer','Dataset\x20field\x20metadata\x20is\x20missing.','headerRow','ranges','compressedSize','parseText','destroy','Invalid\x20worksheet\x20XML:\x20','add','every','appCode','updateTime','5165alKCmK','name','uploadFields','Invalid\x20worksheet\x20merge\x20reference.','Duplicate\x20workbook\x20ZIP\x20entry.','utf8','object','1002olOmLQ','8klkmZt','clear','exceljs/lib/utils/col-cache.js','file','parse','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','fileNameRaw','imageCells','model','right','readBigUInt64LE','Expected\x20a\x20boolean\x20cell.','sheet','lastIndexOf','emptyRows','data','dataType','deleted','address','slice','autoIncrement','modifierName','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','datasetId','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','message','MAX_SAFE_INTEGER','eachCell','./zipEntry','getRow','serial_number','sha256','ref','readEntryCursor','stringify','Invalid\x20worksheet\x20column\x20range.','byteLength','abs','Required\x20value\x20is\x20missing.','resolve','extname','opentag','945894xaDIpW','Invalid\x20worksheet\x20XML.','Worksheet\x20coordinate\x20exceeds\x20','readEntry','creatorName','dataset','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','startsWith','Invalid\x20worksheet\x20hyperlink\x20reference.','localeCompare','text','exceljs/lib/xlsx/xform/book/defined-name-xform.js','Worksheet\x20exceeds\x20','update','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','rows','jszip','Invalid\x20XLSX\x20archive.','extend','string','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','required','File\x20is\x20not\x20an\x20XLSX\x20workbook.','doctype','original','18529BXZjhX','entryCount','sort','materialized','extraFields','.xlsx','2437580OSnQbw','map','Unknown\x20or\x20generated\x20mapping\x20field:\x20','set','parseClose','parseOpen','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','bitFlag','getTime','contentHash','integer','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','create','[Content_Types].xml','max','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','generalPurposeBitFlag','some','worksheets','exec','isInteger','reference','1204rLIJOw','modifierId','Invalid\x20XLSX\x20entry.','imageFields','createTime','number','464EjmwdN','_xlnm.Print_Area','processAttributes','length','left','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','Formula\x20has\x20no\x20cached\x20result.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','sourceType','type','42204WyLnwW','push','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Non-canonical\x20worksheet\x20ZIP\x20entry.','Unknown\x20Excel\x20header:\x20','value','from','size','has','generated','Image\x20XML\x20node\x20budget\x20exceeded.','fileName','Invalid\x20defined\x20name\x20coordinate.','split','textarea','top','upload','closetag','batchSize','Merged\x20cells\x20are\x20not\x20supported.','fileCommentRaw','code','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','versionMadeBy','unixPermissions','Workbook','write','close','dir','2178oKsfIv','Required\x20field\x20is\x20not\x20mapped:\x20','readUInt16LE','dataset-import/','row','Invalid\x20ZIP\x20central\x20directory\x20layout.','xlsx','equals','Worksheet\x20exceeds\x2016384\x20columns.','Duplicate\x20mapping\x20target:\x20','result','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','relativeOffsetOfLocalHeader','externalFileAttributes','xl/workbook.xml','decodeEx','end','includes','extraFieldRaw','handleUTF8','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','entry','Image\x20XML\x20event\x20budget\x20exceeded.','error','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','readUInt32LE','decimal','hex','formula','fields','bottom','Unsupported\x20field\x20type:\x20','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','XLSX\x20file\x20exceeds\x2020\x20MB.','Required\x20image\x20value\x20is\x20missing.','_xlnm.Print_Titles','get','media','attributes','toLowerCase','isSafeInteger','Only\x20.xlsx\x20files\x20are\x20supported.','mergeCell','nativeCell','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','directory','min','warnings','exceljs','Worksheet\x20merge\x20work\x20exceeds\x20100000.','errors','merges','./utils','rowCount','Invalid\x20worksheet\x20nested\x20cell.','cells','Requested\x20worksheet\x20does\x20not\x20exist.','isBuffer','Invalid\x20worksheet\x20coordinate.','79888JDvFfs'];a144_0x1cae=function(){return _0x89d2f2;};return a144_0x1cae();}import{createHash}from'node:crypto';import a144_0x352360 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x472d1a from'exceljs';import a144_0x9761c7 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id','tenantCode',a144_0xfeba39(0x1b1),a144_0xfeba39(0x1d2),'creatorId',a144_0xfeba39(0x1e9),a144_0xfeba39(0x21d),a144_0xfeba39(0x1d0),a144_0xfeba39(0x220),a144_0xfeba39(0x1b2),a144_0xfeba39(0x1cc)]),TYPES=new Set([a144_0xfeba39(0x1f9),'text',a144_0xfeba39(0x23a),a144_0xfeba39(0x221),a144_0xfeba39(0x167),'integer','boolean',a144_0xfeba39(0x19d),a144_0xfeba39(0x1a3),'image',a144_0xfeba39(0x23c)]),isImageContainer=_0x43cf5c=>[a144_0xfeba39(0x1a1),'upload'][a144_0xfeba39(0x25a)](_0x43cf5c[a144_0xfeba39(0x174)]()),hash=_0x337af2=>createHash(a144_0xfeba39(0x1da))[a144_0xfeba39(0x1f3)](_0x337af2)['digest'](a144_0xfeba39(0x168)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0xfeba39(0x1f1)),nameCoordinates=require(a144_0xfeba39(0x1bd)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve'](a144_0xfeba39(0x17d))),zipRequire=createRequire(excelRequire['resolve'](a144_0xfeba39(0x1f6))),ZipEntry=zipRequire(a144_0xfeba39(0x1d7)),zipReader=zipRequire('./reader/readerFor'),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a144_0xfeba39(0x181));function centralDirectoryEnd(_0x32630f,_0x19b3a0){const _0x10b749=a144_0xfeba39,_0x5bfed9=()=>new Error(_0x10b749(0x24e)),_0x56dc2e=_0x32630f[_0x10b749(0x1c8)](Buffer[_0x10b749(0x232)]([0x50,0x4b,0x5,0x6]));if(_0x56dc2e<0x0||_0x56dc2e+0x16>_0x32630f['length']||_0x56dc2e+0x16+_0x32630f[_0x10b749(0x24b)](_0x56dc2e+0x14)!==_0x32630f[_0x10b749(0x225)])throw _0x5bfed9();let _0x42eb9c=_0x32630f['readUInt16LE'](_0x56dc2e+0xa),_0x1775e5=_0x32630f['readUInt32LE'](_0x56dc2e+0xc),_0x280120=_0x32630f[_0x10b749(0x166)](_0x56dc2e+0x10),_0x1cd188=_0x56dc2e;const _0x1069ab=_0x56dc2e-0x14,_0x545be3=_0x1069ab>=0x0&&_0x32630f[_0x10b749(0x166)](_0x1069ab)===0x7064b50,_0x482956=[0x4,0x6,0x8,0xa]['some'](_0x596d4a=>_0x32630f[_0x10b749(0x24b)](_0x56dc2e+_0x596d4a)===0xffff)||_0x1775e5===0xffffffff||_0x280120===0xffffffff;if(_0x545be3!==_0x482956)throw _0x5bfed9();if(_0x545be3){if(_0x32630f['lastIndexOf'](Buffer[_0x10b749(0x232)]([0x50,0x4b,0x6,0x7]))!==_0x1069ab)throw _0x5bfed9();const _0x232776=_0x103766=>{const _0x1567da=_0x10b749,_0x1ff560=Number(_0x32630f[_0x1567da(0x1c5)](_0x103766));if(!Number['isSafeInteger'](_0x1ff560))throw _0x5bfed9();return _0x1ff560;};_0x1cd188=_0x232776(_0x1069ab+0x8);if(_0x32630f[_0x10b749(0x166)](_0x1069ab+0x4)!==0x0||_0x32630f['readUInt32LE'](_0x1069ab+0x10)!==0x1||_0x1cd188>_0x1069ab-0x38||_0x32630f[_0x10b749(0x166)](_0x1cd188)!==0x6064b50||_0x232776(_0x1cd188+0x4)!==0x2c||_0x1cd188+0x38!==_0x1069ab||_0x32630f['readUInt32LE'](_0x1cd188+0x10)!==0x0||_0x32630f[_0x10b749(0x166)](_0x1cd188+0x14)!==0x0)throw _0x5bfed9();_0x42eb9c=_0x232776(_0x1cd188+0x20),_0x1775e5=_0x232776(_0x1cd188+0x28),_0x280120=_0x232776(_0x1cd188+0x30);if(_0x232776(_0x1cd188+0x18)!==_0x42eb9c)throw _0x5bfed9();}else{if(_0x32630f['readUInt16LE'](_0x56dc2e+0x4)!==0x0||_0x32630f[_0x10b749(0x24b)](_0x56dc2e+0x6)!==0x0||_0x32630f[_0x10b749(0x24b)](_0x56dc2e+0x8)!==_0x42eb9c)throw _0x5bfed9();}const _0x418440=_0x19b3a0[_0x10b749(0x1dc)];if(_0x280120!==_0x418440||_0x42eb9c!==_0x19b3a0[_0x10b749(0x201)]||_0x280120+_0x1775e5!==_0x1cd188)throw _0x5bfed9();return _0x1cd188;}function consumerEntryName(_0x134dd3,_0x190735){const _0x3e601f=a144_0xfeba39;if(_0x190735[_0x3e601f(0x204)][_0x3e601f(0x18b)](_0x4528c7=>_0x4528c7['id']===0x1)['length']>0x1)throw new Error(_0x3e601f(0x1ec));const _0x5310fb=_0x190735,_0x595b25=_0x190735[_0x3e601f(0x255)];if(!Buffer[_0x3e601f(0x186)](_0x5310fb['fileNameRaw'])||!Buffer[_0x3e601f(0x186)](_0x5310fb[_0x3e601f(0x25b)])||!Buffer[_0x3e601f(0x186)](_0x5310fb[_0x3e601f(0x240)])||!Number[_0x3e601f(0x175)](_0x595b25)||_0x595b25<0x0||_0x595b25>_0x134dd3[_0x3e601f(0x225)]-0x1e||_0x134dd3[_0x3e601f(0x166)](_0x595b25)!==0x4034b50)throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');const _0x3a16e2=_0x595b25+0x1e+_0x134dd3[_0x3e601f(0x24b)](_0x595b25+0x1a),_0x28f2af=_0x3a16e2+_0x134dd3[_0x3e601f(0x24b)](_0x595b25+0x1c)+_0x190735[_0x3e601f(0x1ab)];if(!Number[_0x3e601f(0x175)](_0x28f2af)||_0x28f2af>_0x134dd3[_0x3e601f(0x225)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x3a16e2>_0x134dd3[_0x3e601f(0x225)]||!_0x134dd3['subarray'](_0x595b25+0x1e,_0x3a16e2)[_0x3e601f(0x250)](_0x5310fb[_0x3e601f(0x1c1)]))throw new Error(_0x3e601f(0x179));const _0x4e0025=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x4e0025[_0x3e601f(0x20d)]=_0x190735[_0x3e601f(0x216)],_0x4e0025[_0x3e601f(0x237)]=_0x5310fb['fileNameRaw'],_0x4e0025['fileComment']=_0x5310fb['fileCommentRaw'],_0x4e0025[_0x3e601f(0x19a)]=_0x5310fb[_0x3e601f(0x25b)][_0x3e601f(0x225)],_0x4e0025['readExtraFields'](zipReader(_0x5310fb[_0x3e601f(0x25b)])),_0x4e0025[_0x3e601f(0x25c)](),_0x4e0025[_0x3e601f(0x243)]=_0x190735[_0x3e601f(0x243)],_0x4e0025[_0x3e601f(0x256)]=_0x190735[_0x3e601f(0x256)],_0x4e0025[_0x3e601f(0x224)]();const _0x2177b9=_0x4e0025[_0x3e601f(0x248)]||Boolean((_0x4e0025[_0x3e601f(0x244)]??0x0)&0x4000),_0x8d2acb=zipPaths[_0x3e601f(0x1e2)](_0x4e0025[_0x3e601f(0x1a0)]),_0x380c10=_0x8d2acb[_0x3e601f(0x1ed)]('/')?_0x8d2acb[_0x3e601f(0x1ce)](0x1):_0x8d2acb;return{'name':_0x380c10,'original':_0x4e0025['fileNameStr'],'directory':_0x2177b9};}export function normalizeImportFields(_0x238bd6){const _0x3c6e49=a144_0xfeba39;if(!_0x238bd6||(_0x238bd6['source']??_0x238bd6[_0x3c6e49(0x1ea)]?.[_0x3c6e49(0x22a)])!=='METADATA')throw new Error(_0x3c6e49(0x229));const _0x3b601c=Array[_0x3c6e49(0x1a6)](_0x238bd6[_0x3c6e49(0x16a)]),_0x17bdd3=_0x3b601c?_0x238bd6[_0x3c6e49(0x16a)]:_0x238bd6[_0x3c6e49(0x196)];if(!Array[_0x3c6e49(0x1a6)](_0x17bdd3)||_0x17bdd3[_0x3c6e49(0x225)]===0x0)throw new Error(_0x3c6e49(0x1a8));const _0x3d2990=[],_0x4f7fc6=new Set();for(const _0x49eb14 of _0x17bdd3){if(_0x49eb14['deleted']===!![])continue;let _0x36299e=_0x49eb14[_0x3c6e49(0x1f8)]??{};if(!_0x3b601c&&typeof _0x36299e===_0x3c6e49(0x1f9)){try{_0x36299e=JSON[_0x3c6e49(0x1bf)](_0x36299e);}catch{throw new Error(_0x3c6e49(0x191));}if(!_0x36299e||typeof _0x36299e!==_0x3c6e49(0x1b9)||Array[_0x3c6e49(0x1a6)](_0x36299e))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x3a1fdb=_0x3b601c?_0x49eb14[_0x3c6e49(0x1b4)]:_0x49eb14[_0x3c6e49(0x241)],_0x1065bb=_0x3b601c?_0x49eb14['doType']:_0x49eb14[_0x3c6e49(0x22b)]??_0x49eb14[_0x3c6e49(0x1cb)];if(typeof _0x3a1fdb!=='string'||!_0x3a1fdb||typeof _0x1065bb!==_0x3c6e49(0x1f9)||_0x4f7fc6[_0x3c6e49(0x234)](_0x3a1fdb))throw new Error(_0x3c6e49(0x20c));if(_0x1065bb[_0x3c6e49(0x174)]()===_0x3c6e49(0x1d9))throw new Error(_0x3c6e49(0x161));_0x4f7fc6[_0x3c6e49(0x1af)](_0x3a1fdb);const _0x317e5c=_0x3b601c?_0x49eb14:_0x36299e,_0x46294b={'code':_0x3a1fdb,'type':_0x1065bb,'required':_0x317e5c['required']===!![]};if(RESERVED[_0x3c6e49(0x234)](_0x3a1fdb)||_0x317e5c[_0x3c6e49(0x235)]===!![]||_0x317e5c[_0x3c6e49(0x1cf)]===!![])_0x46294b[_0x3c6e49(0x235)]=!![];_0x3d2990[_0x3c6e49(0x22d)](_0x46294b);}return _0x3d2990;}async function checkArchive(_0x59dcfb,_0x2e4d5a){await new Promise((_0x5b3df0,_0x4e4af7)=>{const _0x994554=a144_0x4a06;a144_0x9761c7[_0x994554(0x1a7)](_0x59dcfb,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x590834,_0x9520)=>{const _0x48b0fc=_0x994554;if(_0x590834||!_0x9520){_0x4e4af7(_0x590834??new Error(_0x48b0fc(0x1f7)));return;}let _0x485242;try{_0x485242=centralDirectoryEnd(_0x59dcfb,_0x9520);}catch(_0x524673){_0x9520[_0x48b0fc(0x247)](),_0x4e4af7(_0x524673);return;}let _0x182c18=0x0,_0x41009d=0x0,_0x29aced=0x0,_0x12ee47=0x0,_0x5524eb=0x0,_0x3dfa72=0x0,_0x38a847=0x0,_0x3cc3e0=0x0,_0x320a14=0x0,_0x184a2e=![],_0x24c7e0;const _0x223f5b=new Set(),_0x4fabd1=_0x37c49b=>{const _0x523902=_0x48b0fc;if(_0x184a2e)return;_0x184a2e=!![],_0x24c7e0?.['destroy'](),_0x9520[_0x523902(0x247)](),_0x4e4af7(_0x37c49b);},_0x40efea=(_0x602f44,_0x55459e)=>{const _0x1d1657=_0x48b0fc;if(!_0x602f44||!/^\d+$/['test'](_0x602f44))throw new Error(_0x1d1657(0x187));const _0x206ceb=Number(_0x602f44);if(!Number[_0x1d1657(0x175)](_0x206ceb)||_0x206ceb<0x1||_0x206ceb>_0x55459e)throw new Error(_0x1d1657(0x1e7)+_0x55459e+'.');return _0x206ceb;},_0x43edd1=(_0x14169d,_0x1336c5=MAX_XML_COLUMNS)=>{const _0x37e287=_0x48b0fc,_0x2add91=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x37e287(0x219)](_0x14169d);if(!_0x2add91)throw new Error(_0x37e287(0x1d3));let _0x148c85=0x0;for(const _0x2a7ed7 of _0x2add91[0x1])_0x148c85=_0x148c85*0x1a+_0x2a7ed7['charCodeAt'](0x0)-0x40;if(_0x148c85>_0x1336c5)throw new Error(_0x37e287(0x1f2)+_0x1336c5+_0x37e287(0x19f));return{'row':_0x40efea(_0x2add91[0x2],MAX_XML_ROWS),'col':_0x148c85};},_0x3d8a8e=_0x1567cd=>{const _0x5009dc=_0x48b0fc;if(_0x1567cd['name']===_0x5009dc(0x223)||_0x1567cd[_0x5009dc(0x1b4)]===_0x5009dc(0x170))return;for(const _0x2363f9 of _0x1567cd[_0x5009dc(0x1aa)]){if(!ABSOLUTE_NAME_RANGE[_0x5009dc(0x192)](_0x2363f9[_0x5009dc(0x239)]('!')[_0x5009dc(0x18a)]()||''))continue;const _0x4fd891=nameCoordinates[_0x5009dc(0x258)](_0x2363f9),_0x2799f0=_0x5009dc(0x23b)in _0x4fd891,_0x180b15=_0x2799f0?[_0x4fd891[_0x5009dc(0x23b)],_0x4fd891[_0x5009dc(0x16b)]]:[_0x4fd891['row']],_0x190183=_0x2799f0?[_0x4fd891['left'],_0x4fd891[_0x5009dc(0x1c4)]]:[_0x4fd891[_0x5009dc(0x1a2)]],_0x50bcad=(_0x23caf4,_0x59bfd1)=>Number[_0x5009dc(0x175)](_0x23caf4)&&_0x23caf4>=0x1&&_0x23caf4<=_0x59bfd1;if(!_0x180b15[_0x5009dc(0x1b0)](_0x143c14=>_0x50bcad(_0x143c14,MAX_XML_ROWS))||!_0x190183[_0x5009dc(0x1b0)](_0x16061a=>_0x50bcad(_0x16061a,MAX_XML_COLUMNS)))throw new Error(_0x5009dc(0x238));_0x38a847+=_0x2799f0?(_0x4fd891[_0x5009dc(0x16b)]-_0x4fd891[_0x5009dc(0x23b)]+0x1)*(_0x4fd891[_0x5009dc(0x1c4)]-_0x4fd891[_0x5009dc(0x226)]+0x1):0x1;if(_0x38a847>MAX_ROWS)throw new Error(_0x5009dc(0x1eb));}};_0x9520['on']('error',_0x4fabd1),_0x9520['on'](_0x48b0fc(0x162),_0xb4dd84=>{const _0xbedfb7=_0x48b0fc;if(_0x184a2e)return;if(++_0x29aced>0x2710||(_0x182c18+=_0xb4dd84['uncompressedSize'])>MAX_EXPANDED){_0x4fabd1(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x31fe80;try{_0x31fe80=consumerEntryName(_0x59dcfb,_0xb4dd84);}catch(_0x29d35a){_0x4fabd1(_0x29d35a);return;}if(_0x31fe80[_0xbedfb7(0x17a)]){_0x9520['readEntry']();return;}const _0x3f5ffb=_0x31fe80['name'];if(_0x2e4d5a&&(_0x3f5ffb!==_0x31fe80['original']||_0x223f5b['has'](_0x3f5ffb)||_0x3f5ffb[_0xbedfb7(0x1ed)]('/')||_0x3f5ffb[_0xbedfb7(0x25a)]('\x5c'))){_0x4fabd1(new Error(_0xbedfb7(0x1f4)));return;}if(_0x3f5ffb!==_0x31fe80[_0xbedfb7(0x1ff)]&&(_0x3f5ffb===_0xbedfb7(0x257)||/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x3f5ffb))){_0x4fabd1(new Error(_0xbedfb7(0x1d1)));return;}const _0x450364=_0x3f5ffb===_0xbedfb7(0x257);if(_0x450364&&_0x223f5b[_0xbedfb7(0x234)](_0x3f5ffb)){_0x4fabd1(new Error(_0xbedfb7(0x1b7)));return;}_0x223f5b[_0xbedfb7(0x1af)](_0x3f5ffb);const _0x2c7984=/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x3f5ffb);if(_0x2c7984&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0xbedfb7(0x192)](_0x3f5ffb)){_0x4fabd1(new Error(_0xbedfb7(0x22f)));return;}_0x9520['openReadStream'](_0xb4dd84,(_0x390139,_0x312854)=>{const _0x414e93=_0xbedfb7;if(_0x184a2e){_0x312854?.[_0x414e93(0x1ad)]();return;}if(_0x390139||!_0x312854){_0x4fabd1(_0x390139??new Error(_0x414e93(0x21e)));return;}_0x24c7e0=_0x312854;const _0x4914e0=_0x2e4d5a?[]:undefined,_0x52552c=_0x2e4d5a&&/[.](xml|rels)$/[_0x414e93(0x192)](_0x3f5ffb)?new StringDecoder(_0x414e93(0x1b8)):undefined,_0x5954ae=_0x52552c?new SaxesParser({'xmlns':![]}):undefined,_0x375377=()=>{const _0x2d56c1=_0x414e93;if(++_0x320a14>0x1e8480)throw Error(_0x2d56c1(0x163));};_0x5954ae?.['on'](_0x414e93(0x1fe),()=>{const _0x14b1d5=_0x414e93;throw Error(_0x14b1d5(0x18d));}),_0x5954ae?.['on'](_0x414e93(0x1e4),()=>{const _0x39894c=_0x414e93;_0x375377();if(++_0x3cc3e0>0x7a120)throw Error(_0x39894c(0x236));}),_0x5954ae?.['on']('text',_0x375377),_0x5954ae?.['on'](_0x414e93(0x23d),_0x375377),_0x5954ae?.['on'](_0x414e93(0x164),_0x9b1f6=>{throw _0x9b1f6;});const _0x39c3d8=_0x2c7984||_0x450364?new StringDecoder(_0x414e93(0x1b8)):undefined,_0x595b62=_0x2c7984||_0x450364?new SaxesParser({'xmlns':![]}):undefined;let _0x1e461c,_0x513a4b=0x0,_0xdc19d6=0x0,_0x415e77,_0xb18e32,_0x57c27f=![],_0x3cb84b=![],_0x3b4a12,_0x5724be,_0x574ec3,_0x2f3408=![];const _0x123845=[],_0x51c6ae=new Set();let _0x3104fb;const _0x225a80=(_0x286733,_0x552fd0=0x0)=>{const _0x1138d5=_0x414e93;_0x5524eb+=_0x552fd0+Math[_0x1138d5(0x214)](0x0,_0x286733-_0xdc19d6),_0xdc19d6=Math[_0x1138d5(0x214)](_0xdc19d6,_0x286733);if(_0x5524eb>MAX_ROWS)throw new Error(_0x1138d5(0x18c));};_0x595b62?.['on'](_0x414e93(0x1e4),_0x4d5004=>{const _0x90f00e=_0x414e93;if(_0x450364){if(!_0x1e461c&&_0x4d5004['name']===_0x90f00e(0x195))_0x1e461c=new DefinedNameXform();_0x1e461c?.[_0x90f00e(0x20b)](_0x4d5004);return;}if(_0x4d5004['name']===_0x90f00e(0x24d)){if(_0x3cb84b)throw new Error(_0x90f00e(0x18e));_0x40efea(_0x4d5004[_0x90f00e(0x173)]['r'],MAX_XML_ROWS),_0x415e77=undefined,_0x574ec3=undefined,_0x2f3408=![];}else{if(_0x4d5004['name']==='c'){if(_0x3cb84b)throw new Error(_0x90f00e(0x183));_0x3cb84b=!![],_0x57c27f=Boolean(Number[_0x90f00e(0x18f)](_0x4d5004[_0x90f00e(0x173)]['s']??'',0xa)),_0x3104fb=undefined,_0x3b4a12=_0x4d5004['attributes']['r']||undefined,_0x5724be=_0x3b4a12?_0x43edd1(_0x3b4a12):undefined;if(_0x5724be)_0xb18e32=_0x5724be;else _0xb18e32=_0x415e77?{'row':_0x415e77[_0x90f00e(0x24d)],'col':_0x415e77[_0x90f00e(0x1a2)]+0x1}:undefined;}else{if(_0x3cb84b&&['f','v','t']['includes'](_0x4d5004[_0x90f00e(0x1b4)])){_0x3104fb=_0x4d5004['name'];if(_0x4d5004[_0x90f00e(0x1b4)]==='f'&&_0x4d5004[_0x90f00e(0x173)]['t'])_0x57c27f=!![];}else{if(_0x3cb84b&&_0x4d5004[_0x90f00e(0x1b4)]==='r')_0x57c27f=!![];else{if(_0x4d5004[_0x90f00e(0x1b4)]===_0x90f00e(0x1a5)){const _0x437a64=_0x4d5004[_0x90f00e(0x173)]['ref'];if(!_0x437a64)throw new Error(_0x90f00e(0x1ee));const _0x32a440=_0x437a64[_0x90f00e(0x239)](':');if(_0x32a440[_0x90f00e(0x225)]>0x2)throw new Error(_0x90f00e(0x1ee));const _0x2d538d=_0x43edd1(_0x32a440[0x0]),_0x1e0ac9=_0x43edd1(_0x32a440[0x1]??_0x32a440[0x0]);_0x51c6ae['add'](_0x437a64),_0x225a80(Math['max'](_0x2d538d[_0x90f00e(0x1a2)],_0x1e0ac9['col']),0x1);}else{if(_0x4d5004[_0x90f00e(0x1b4)]==='col'){const _0x58c059=_0x40efea(_0x4d5004[_0x90f00e(0x173)][_0x90f00e(0x17b)],0x4000),_0x19bdfa=_0x40efea(_0x4d5004[_0x90f00e(0x173)][_0x90f00e(0x214)],0x4000);if(_0x58c059>_0x19bdfa)throw new Error(_0x90f00e(0x1de));_0x225a80(_0x19bdfa,0x1);}else{if(_0x4d5004[_0x90f00e(0x1b4)]===_0x90f00e(0x177)){const _0x551c08=_0x4d5004[_0x90f00e(0x173)][_0x90f00e(0x1db)];if(!_0x551c08)throw new Error(_0x90f00e(0x1b6));const _0x3633d6=_0x551c08[_0x90f00e(0x239)](':');if(_0x3633d6[_0x90f00e(0x225)]>0x2)throw new Error(_0x90f00e(0x1b6));const _0x5df882=_0x43edd1(_0x3633d6[0x0]),_0x2c8c78=_0x43edd1(_0x3633d6[0x1]??_0x3633d6[0x0]);_0x225a80(Math[_0x90f00e(0x214)](_0x5df882[_0x90f00e(0x1a2)],_0x2c8c78['col']));const _0x3a094c=(Math['abs'](_0x2c8c78[_0x90f00e(0x24d)]-_0x5df882['row'])+0x1)*(Math[_0x90f00e(0x1e0)](_0x2c8c78[_0x90f00e(0x1a2)]-_0x5df882['col'])+0x1);_0x12ee47+=_0x3a094c+_0x513a4b++;if(_0x12ee47>MAX_ROWS)throw new Error(_0x90f00e(0x17e));}}}}}}}}),_0x595b62?.['on']('text',_0x1850de=>{const _0x168fab=_0x414e93;if(_0x450364){_0x1e461c?.[_0x168fab(0x1ac)](_0x1850de);return;}if(_0x3cb84b&&_0x3104fb&&_0x1850de)_0x57c27f=!![];}),_0x595b62?.['on']('closetag',_0x4403ea=>{const _0x523269=_0x414e93;if(_0x450364){_0x1e461c&&!_0x1e461c[_0x523269(0x20a)]()&&(_0x3d8a8e(_0x1e461c[_0x523269(0x1c3)]),_0x1e461c=undefined);return;}if(_0x4403ea[_0x523269(0x1b4)]==='c'){!_0x57c27f&&_0x3b4a12&&!_0x574ec3&&(_0x574ec3={'before':_0x415e77,'cells':[]});if(_0x574ec3){if(++_0x3dfa72>0xf4240)throw new Error(_0x523269(0x254));_0x574ec3['cells']['push']({'reference':_0x3b4a12,'address':_0x5724be,'materialized':_0x57c27f});if(!_0x3b4a12&&_0x57c27f)_0x2f3408=!![];}if(_0x57c27f){if(!_0x574ec3||_0x3b4a12){if(!_0xb18e32)throw new Error(_0x523269(0x211));if(_0xb18e32[_0x523269(0x1a2)]>MAX_XML_COLUMNS)throw new Error(_0x523269(0x251));_0x225a80(_0xb18e32[_0x523269(0x1a2)]);}_0x415e77=_0xb18e32;}_0x3cb84b=![],_0xb18e32=undefined,_0x3b4a12=undefined,_0x5724be=undefined,_0x3104fb=undefined;}else{if(_0x4403ea[_0x523269(0x1b4)]===_0x523269(0x24d)){if(_0x574ec3&&_0x2f3408)_0x123845[_0x523269(0x22d)](_0x574ec3);_0x574ec3=undefined,_0x2f3408=![];}else{if(_0x4403ea[_0x523269(0x1b4)]===_0x3104fb)_0x3104fb=undefined;}}}),_0x595b62?.['on'](_0x414e93(0x164),_0x4b74df=>{const _0x20fe43=_0x414e93;throw new Error(_0x20fe43(0x1ae)+_0x4b74df[_0x20fe43(0x1d4)]);}),_0x312854['on']('error',_0x4fabd1),_0x312854['on'](_0x414e93(0x1ca),_0xd28f1b=>{const _0x211933=_0x414e93;if(_0x184a2e)return;_0x41009d+=_0xd28f1b[_0x211933(0x225)],_0x4914e0?.[_0x211933(0x22d)](_0xd28f1b);if(_0x41009d>MAX_EXPANDED){_0x4fabd1(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x5954ae&&_0x52552c)_0x5954ae[_0x211933(0x246)](_0x52552c[_0x211933(0x246)](_0xd28f1b));if(_0x595b62&&_0x39c3d8)_0x595b62[_0x211933(0x246)](_0x39c3d8[_0x211933(0x246)](_0xd28f1b));}catch(_0x1e7e9a){_0x4fabd1(_0x1e7e9a instanceof Error?_0x1e7e9a:new Error(_0x211933(0x1e6)));}}),_0x312854['on'](_0x414e93(0x259),()=>{const _0x200ada=_0x414e93;if(_0x184a2e)return;try{if(_0x5954ae&&_0x52552c)_0x5954ae[_0x200ada(0x246)](_0x52552c[_0x200ada(0x259)]())[_0x200ada(0x247)]();if(_0x595b62&&_0x39c3d8)_0x595b62['write'](_0x39c3d8[_0x200ada(0x259)]())['close']();for(const _0xf67114 of _0x123845){let _0x3e4a06=_0xf67114['before'];for(const _0x5b2a40 of _0xf67114[_0x200ada(0x184)]){if(!_0x5b2a40[_0x200ada(0x203)]&&!(_0x5b2a40['reference']&&_0x51c6ae[_0x200ada(0x234)](_0x5b2a40[_0x200ada(0x21b)])))continue;const _0x16252c=_0x5b2a40[_0x200ada(0x1cd)]??(_0x3e4a06?{'row':_0x3e4a06[_0x200ada(0x24d)],'col':_0x3e4a06[_0x200ada(0x1a2)]+0x1}:undefined);if(!_0x16252c)throw new Error(_0x200ada(0x211));if(_0x16252c[_0x200ada(0x1a2)]>MAX_XML_COLUMNS)throw new Error(_0x200ada(0x251));_0x225a80(_0x16252c[_0x200ada(0x1a2)]),_0x3e4a06=_0x16252c;}}_0x123845[_0x200ada(0x225)]=0x0,_0x51c6ae[_0x200ada(0x1bc)]();}catch(_0x220e09){_0x4fabd1(_0x220e09 instanceof Error?_0x220e09:new Error(_0x200ada(0x1e6)));return;}if(_0x4914e0)_0x2e4d5a[_0x200ada(0x209)](_0x3f5ffb,Buffer[_0x200ada(0x19e)](_0x4914e0));_0x24c7e0=undefined,_0x9520[_0x200ada(0x1e8)]();});});}),_0x9520['on'](_0x48b0fc(0x259),()=>{const _0x205787=_0x48b0fc;if(_0x184a2e)return;if(_0x9520[_0x205787(0x1dc)]!==_0x485242){_0x4e4af7(new Error(_0x205787(0x227)));return;}if(!_0x223f5b[_0x205787(0x234)](_0x205787(0x213))||!_0x223f5b[_0x205787(0x234)](_0x205787(0x257)))_0x4e4af7(new Error(_0x205787(0x1fd)));else _0x5b3df0();}),_0x9520[_0x48b0fc(0x1e8)]();});});}function a144_0x4a06(_0x110ce1,_0x27c510){_0x110ce1=_0x110ce1-0x161;const _0x1caec7=a144_0x1cae();let _0x4a06c1=_0x1caec7[_0x110ce1];return _0x4a06c1;}function valueOf(_0x22bdce){const _0x24ff5e=a144_0xfeba39,_0x32cb34=_0x22bdce['value'];if(_0x32cb34&&typeof _0x32cb34==='object'&&(_0x24ff5e(0x169)in _0x32cb34||_0x24ff5e(0x1a4)in _0x32cb34)){if(!(_0x24ff5e(0x253)in _0x32cb34)||_0x32cb34[_0x24ff5e(0x253)]===undefined)throw new Error(_0x24ff5e(0x228));return _0x32cb34[_0x24ff5e(0x253)];}return _0x32cb34;}function convert(_0x4c14fe,_0xe9823c){const _0x10a31f=a144_0xfeba39;if(_0x4c14fe===null||_0x4c14fe===undefined||_0x4c14fe===''){if(_0xe9823c['required']&&!_0xe9823c[_0x10a31f(0x235)])throw new Error(_0x10a31f(0x1e1));return null;}if(typeof _0x4c14fe===_0x10a31f(0x1f9)&&Buffer[_0x10a31f(0x1df)](_0x4c14fe,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0xe9823c['type'][_0x10a31f(0x174)]()){case _0x10a31f(0x1f9):case _0x10a31f(0x1f0):case _0x10a31f(0x23a):if(typeof _0x4c14fe!=='string')throw new Error('Expected\x20a\x20text\x20cell.');return _0x4c14fe;case _0x10a31f(0x221):case _0x10a31f(0x167):case'integer':if(typeof _0x4c14fe!==_0x10a31f(0x221)||!Number[_0x10a31f(0x19b)](_0x4c14fe)||Math[_0x10a31f(0x1e0)](_0x4c14fe)>Number[_0x10a31f(0x1d5)]||_0xe9823c[_0x10a31f(0x22b)][_0x10a31f(0x174)]()===_0x10a31f(0x210)&&!Number[_0x10a31f(0x21a)](_0x4c14fe))throw new Error(_0x10a31f(0x215));return _0x4c14fe;case'boolean':if(typeof _0x4c14fe!=='boolean')throw new Error(_0x10a31f(0x1c6));return _0x4c14fe;case'date':case'datetime':if(!(_0x4c14fe instanceof Date)||!Number['isFinite'](_0x4c14fe[_0x10a31f(0x20e)]()))throw new Error(_0x10a31f(0x19c));return _0x4c14fe['getTime']();default:throw new Error(_0x10a31f(0x16c)+_0xe9823c[_0x10a31f(0x22b)]+'.');}}export async function buildExcelManifest(_0x4e7257){const _0x236f78=a144_0xfeba39,_0x3d7299=_0x4e7257[_0x236f78(0x1a9)]??0x1;if(!Number[_0x236f78(0x21a)](_0x3d7299)||_0x3d7299<0x1||_0x3d7299>MAX_ROWS)throw new Error(_0x236f78(0x1fb));if(_0x4e7257[_0x236f78(0x23e)]!==undefined&&(!Number[_0x236f78(0x21a)](_0x4e7257[_0x236f78(0x23e)])||_0x4e7257[_0x236f78(0x23e)]<0x1||_0x4e7257[_0x236f78(0x23e)]>0x3e8))throw new Error(_0x236f78(0x165));if(a144_0x352360[_0x236f78(0x1e3)](_0x4e7257[_0x236f78(0x1be)])[_0x236f78(0x174)]()!==_0x236f78(0x205))throw new Error(_0x236f78(0x176));const _0x44ab2c=await stat(_0x4e7257['file']);if(!_0x44ab2c['isFile']()||_0x44ab2c[_0x236f78(0x233)]>MAX_FILE)throw new Error(_0x236f78(0x242));const _0x3b559c=await readFile(_0x4e7257[_0x236f78(0x1be)]);if(_0x3b559c['length']>MAX_FILE)throw new Error(_0x236f78(0x16e));const _0x295fe5=_0x4e7257[_0x236f78(0x16a)][_0x236f78(0x217)](_0x4d2a51=>isImageContainer(_0x4d2a51[_0x236f78(0x22b)])&&Object['values'](_0x4e7257[_0x236f78(0x189)])[_0x236f78(0x25a)](_0x4d2a51[_0x236f78(0x241)]))?new Map():undefined;await checkArchive(_0x3b559c,_0x295fe5);const _0x1208e6=new a144_0x472d1a[(_0x236f78(0x245))]();await _0x1208e6[_0x236f78(0x24f)][_0x236f78(0x190)](_0x3b559c,{'ignoreNodes':['dataValidations']});const _0x211cfb=_0x4e7257[_0x236f78(0x1c7)];let _0x804f0f;if(_0x211cfb===undefined)_0x804f0f=_0x1208e6['worksheets'][0x0];else{if(typeof _0x211cfb===_0x236f78(0x1f9)&&_0x1208e6[_0x236f78(0x218)][_0x236f78(0x217)](_0x42a195=>_0x42a195[_0x236f78(0x1b4)]===_0x211cfb))_0x804f0f=_0x1208e6[_0x236f78(0x218)][_0x236f78(0x199)](_0x19a3a1=>_0x19a3a1[_0x236f78(0x1b4)]===_0x211cfb);else{if(typeof _0x211cfb===_0x236f78(0x221)||/^\d+$/[_0x236f78(0x192)](_0x211cfb)){const _0x4dbd56=Number(_0x211cfb);if(!Number[_0x236f78(0x21a)](_0x4dbd56)||_0x4dbd56<0x1)throw new Error('Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.');_0x804f0f=_0x1208e6[_0x236f78(0x218)][_0x4dbd56-0x1];}else _0x804f0f=_0x1208e6[_0x236f78(0x218)][_0x236f78(0x199)](_0x758161=>_0x758161[_0x236f78(0x1b4)]===_0x211cfb);}}if(!_0x804f0f)throw new Error(_0x236f78(0x185));if(_0x804f0f['rowCount']>MAX_ROWS||_0x804f0f['columnCount']>MAX_COLUMNS)throw new Error(_0x236f78(0x22e));if((_0x804f0f[_0x236f78(0x1c3)][_0x236f78(0x180)]??[])[_0x236f78(0x225)])throw new Error(_0x236f78(0x23f));const _0x1fba44=new Map();_0x804f0f['getRow'](_0x3d7299)[_0x236f78(0x1d6)]((_0x17a743,_0x144f55)=>{const _0x164ae3=_0x236f78,_0x365816=valueOf(_0x17a743);if(typeof _0x365816!==_0x164ae3(0x1f9)||!_0x365816['trim']()||Buffer[_0x164ae3(0x1df)](_0x365816)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x1fba44[_0x164ae3(0x234)](_0x365816))throw new Error(_0x164ae3(0x193)+_0x365816+'.');_0x1fba44[_0x164ae3(0x209)](_0x365816,_0x144f55);});const _0x41ff75=Object['entries'](_0x4e7257[_0x236f78(0x189)]);if(!_0x41ff75[_0x236f78(0x225)])throw new Error(_0x236f78(0x16d));const _0x2d63cf=new Map(_0x4e7257[_0x236f78(0x16a)]['map'](_0x3a7271=>[_0x3a7271['code'],_0x3a7271]));if(_0x2d63cf[_0x236f78(0x233)]!==_0x4e7257[_0x236f78(0x16a)][_0x236f78(0x225)])throw new Error(_0x236f78(0x198));if(_0x4e7257[_0x236f78(0x16a)]['some'](_0x48f1fc=>_0x48f1fc[_0x236f78(0x22b)][_0x236f78(0x174)]()===_0x236f78(0x1d9)))throw new Error(_0x236f78(0x161));const _0x51e14b=new Set();for(const [_0x438bbe,_0x42809b]of _0x41ff75){const _0x63bd26=_0x2d63cf[_0x236f78(0x171)](_0x42809b);if(!_0x1fba44[_0x236f78(0x234)](_0x438bbe))throw new Error(_0x236f78(0x230)+_0x438bbe+'.');if(!_0x63bd26||RESERVED[_0x236f78(0x234)](_0x42809b)||_0x63bd26[_0x236f78(0x235)])throw new Error(_0x236f78(0x208)+_0x42809b+'.');if(_0x51e14b[_0x236f78(0x234)](_0x42809b))throw new Error(_0x236f78(0x252)+_0x42809b+'.');if(!TYPES[_0x236f78(0x234)](_0x63bd26[_0x236f78(0x22b)][_0x236f78(0x174)]()))throw new Error(_0x236f78(0x16c)+_0x63bd26[_0x236f78(0x22b)]+'.');_0x51e14b[_0x236f78(0x1af)](_0x42809b);}for(const _0x1e99e1 of _0x4e7257[_0x236f78(0x16a)]){if(_0x1e99e1[_0x236f78(0x1fc)]&&!_0x1e99e1['generated']&&!RESERVED[_0x236f78(0x234)](_0x1e99e1[_0x236f78(0x241)])&&!_0x51e14b[_0x236f78(0x234)](_0x1e99e1[_0x236f78(0x241)]))throw new Error(_0x236f78(0x24a)+_0x1e99e1['code']+'.');}const _0x561055={'fileHash':hash(_0x3b559c),'mappingHash':hash(JSON[_0x236f78(0x1dd)]([..._0x41ff75][_0x236f78(0x202)](([_0x193e1c],[_0x114524])=>_0x193e1c[_0x236f78(0x1ef)](_0x114524)))),'schemaHash':hash(JSON[_0x236f78(0x1dd)]([..._0x4e7257[_0x236f78(0x16a)]][_0x236f78(0x202)]((_0x2b5843,_0x93a19)=>_0x2b5843[_0x236f78(0x241)][_0x236f78(0x1ef)](_0x93a19['code'])))),'sheet':_0x804f0f[_0x236f78(0x1b4)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x4cd96d=_0x41ff75[_0x236f78(0x18b)](([,_0x2a7fc3])=>isImageContainer(_0x2d63cf[_0x236f78(0x171)](_0x2a7fc3)['type'])),_0x5a0010=_0x4cd96d[_0x236f78(0x18b)](([,_0x255aa3])=>_0x2d63cf['get'](_0x255aa3)['type']['toLowerCase']()===_0x236f78(0x23c))['map'](([,_0x4a9b9e])=>_0x4a9b9e);if(_0x5a0010[_0x236f78(0x225)])_0x561055[_0x236f78(0x1b5)]=_0x5a0010;const _0x467702=_0x295fe5?resolveWorksheetImages(_0x295fe5,_0x804f0f[_0x236f78(0x1b4)],new Set(_0x4cd96d[_0x236f78(0x207)](([_0x59e1c5])=>_0x1fba44[_0x236f78(0x171)](_0x59e1c5)))):[],_0x3ea49a=new Map();for(const _0xed7683 of _0x467702){const _0x1eb2ee=_0xed7683[_0x236f78(0x24d)]+':'+_0xed7683[_0x236f78(0x1a2)],_0x4fb18f=_0x3ea49a[_0x236f78(0x171)](_0x1eb2ee)??[];_0x4fb18f[_0x236f78(0x22d)](_0xed7683),_0x3ea49a['set'](_0x1eb2ee,_0x4fb18f);}const _0x3d3bc8=new Map();let _0x583687=0x0;_0x4cd96d['length']&&(_0x561055[_0x236f78(0x21f)]=_0x4cd96d[_0x236f78(0x207)](([,_0x3c5468])=>_0x3c5468),_0x561055['imageCells']=[],_0x561055['parserVersion']=0x1,_0x561055[_0x236f78(0x172)]=[]);const _0x115ab5=Math[_0x236f78(0x214)](0x0,..._0x467702[_0x236f78(0x207)](_0x26162e=>_0x26162e['row']));let _0x144c22=0x0;const _0x141c47=new Set(_0x41ff75[_0x236f78(0x207)](([_0x1096c1])=>_0x1fba44[_0x236f78(0x171)](_0x1096c1)));for(let _0x53401e=_0x3d7299+0x1;_0x53401e<=Math[_0x236f78(0x214)](_0x804f0f[_0x236f78(0x182)],_0x115ab5);_0x53401e++){const _0x7c026b=_0x804f0f[_0x236f78(0x1d8)](_0x53401e);if(_0x7c026b['hidden']||_0x467702[_0x236f78(0x217)](_0x5bece1=>_0x5bece1[_0x236f78(0x24d)]===_0x53401e&&_0x5bece1['hiddenRow']))_0x144c22++;let _0x224dcb=_0x467702[_0x236f78(0x217)](_0x230dff=>_0x230dff[_0x236f78(0x24d)]===_0x53401e);_0x7c026b['eachCell'](_0x3a9eaa=>{const _0x2a5382=_0x236f78;if(_0x3a9eaa['value']!==null&&_0x3a9eaa['value']!==undefined&&_0x3a9eaa[_0x2a5382(0x231)]!=='')_0x224dcb=!![];});if(!_0x224dcb){_0x561055[_0x236f78(0x1c9)][_0x236f78(0x22d)](_0x53401e);continue;}const _0x32cf9a=Object[_0x236f78(0x212)](null);_0x7c026b[_0x236f78(0x1d6)]((_0x1f1ceb,_0x4bba95)=>{const _0x1c79f9=_0x236f78;if(_0x141c47['has'](_0x4bba95))return;try{const _0x2abb0d=valueOf(_0x1f1ceb);if(typeof _0x2abb0d===_0x1c79f9(0x1f9)&&Buffer[_0x1c79f9(0x1df)](_0x2abb0d,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x1f4419){_0x561055[_0x1c79f9(0x17f)][_0x1c79f9(0x22d)]({'rowNumber':_0x53401e,'field':_0x1f1ceb[_0x1c79f9(0x1cd)],'message':_0x1f4419['message']});}});for(const [_0x33e7a5,_0x5ba304]of _0x41ff75){try{const _0x2fc192=_0x7c026b['getCell'](_0x1fba44['get'](_0x33e7a5)),_0x281940=_0x2d63cf[_0x236f78(0x171)](_0x5ba304);if(!isImageContainer(_0x281940[_0x236f78(0x22b)])){_0x32cf9a[_0x5ba304]=convert(valueOf(_0x2fc192),_0x281940);continue;}const _0x4f049e=_0x3ea49a['get'](_0x53401e+':'+_0x1fba44['get'](_0x33e7a5))??[];if(_0x4f049e[_0x236f78(0x217)](_0x1919b5=>_0x1919b5[_0x236f78(0x164)]))throw Error(_0x4f049e[_0x236f78(0x199)](_0x51d9c4=>_0x51d9c4[_0x236f78(0x164)])['error']);if(_0x2fc192['value']!=null&&_0x2fc192[_0x236f78(0x231)]!==''&&!_0x4f049e[_0x236f78(0x217)](_0x3d72dc=>_0x3d72dc[_0x236f78(0x178)]))throw Error(_0x236f78(0x1fa));const _0x2cf2b0=[];for(const _0x54b2fb of _0x4f049e)for(const _0x232fc4 of _0x54b2fb[_0x236f78(0x172)]){const _0x1b49ab=_0x295fe5[_0x236f78(0x171)](_0x232fc4);if(!_0x1b49ab)throw Error('Missing\x20image\x20media:\x20'+_0x232fc4+'.');const _0x5de085=hash(_0x1b49ab),_0x29ff96=_0x3d3bc8['get'](_0x5de085)??validateImageBytes(_0x1b49ab);if(!_0x3d3bc8[_0x236f78(0x234)](_0x29ff96[_0x236f78(0x20f)])){_0x583687+=_0x29ff96[_0x236f78(0x233)];if(_0x583687>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x3d3bc8['set'](_0x29ff96['contentHash'],_0x29ff96);}_0x2cf2b0[_0x236f78(0x22d)](_0x29ff96['contentHash']);}if(!_0x2cf2b0[_0x236f78(0x225)]&&_0x281940['required'])throw Error(_0x236f78(0x16f));if(_0x2cf2b0['length'])_0x561055[_0x236f78(0x1c2)][_0x236f78(0x22d)]({'rowNumber':_0x53401e,'field':_0x5ba304,'hashes':_0x2cf2b0});_0x32cf9a[_0x5ba304]=_0x2cf2b0[_0x236f78(0x207)](_0x5ac8cc=>{const _0x4558cb=_0x236f78,_0x39d624=_0x3d3bc8[_0x4558cb(0x171)](_0x5ac8cc),_0x357046=_0x39d624[_0x4558cb(0x22b)]==='image/jpeg'?'jpg':_0x39d624[_0x4558cb(0x22b)]['slice'](0x6),_0x4902c0=_0x5ac8cc+'.'+_0x357046,_0x302022=_0x4558cb(0x24c)+'0'[_0x4558cb(0x194)](0x40)+'/'+_0x4902c0;return _0x281940[_0x4558cb(0x22b)][_0x4558cb(0x174)]()==='upload'?{'fileName':_0x4902c0,'filePath':_0x302022}:{'key':_0x302022,'name':_0x4902c0,'type':_0x39d624[_0x4558cb(0x22b)],'size':_0x39d624[_0x4558cb(0x233)]};});}catch(_0x4f4616){_0x561055[_0x236f78(0x17f)]['push']({'rowNumber':_0x53401e,'field':_0x5ba304,'message':_0x4f4616['message']});}}_0x561055[_0x236f78(0x1f5)][_0x236f78(0x22d)]({'rowNumber':_0x53401e,'values':_0x32cf9a});}if(_0x561055[_0x236f78(0x172)])_0x561055[_0x236f78(0x172)]=[..._0x3d3bc8['values']()];if(_0x144c22)_0x561055[_0x236f78(0x17c)]['push'](_0x144c22+_0x236f78(0x1c0));return _0x561055;}
@@ -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(_0x22a23b,_0x111a1c){const _0x1d6fe3=a145_0x20b4,_0xd8b88=_0x22a23b();while(!![]){try{const _0x1dc751=-parseInt(_0x1d6fe3(0xd2))/0x1+-parseInt(_0x1d6fe3(0xe6))/0x2*(parseInt(_0x1d6fe3(0xde))/0x3)+-parseInt(_0x1d6fe3(0xda))/0x4+-parseInt(_0x1d6fe3(0xcd))/0x5*(parseInt(_0x1d6fe3(0xdf))/0x6)+-parseInt(_0x1d6fe3(0xe7))/0x7*(parseInt(_0x1d6fe3(0xe0))/0x8)+parseInt(_0x1d6fe3(0xd9))/0x9+parseInt(_0x1d6fe3(0xdd))/0xa;if(_0x1dc751===_0x111a1c)break;else _0xd8b88['push'](_0xd8b88['shift']());}catch(_0xce2fae){_0xd8b88['push'](_0xd8b88['shift']());}}}(a145_0x183b,0x924b4));function a145_0x183b(){const _0x3ebd48=['decode','Invalid\x20GIF\x20block.','message','Truncated\x20JPEG.','max','omggif','1690731wUgNlY','379616WzalLX','from','IDAT','33280980zxZWnC','215121OofbJE','2689410BBJlsI','6816104CgTcFL','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','ceil','image/gif','Invalid\x20PNG\x20header.','subarray','10chlEpA','7pRXDkE','Invalid\x20PNG\x20decoded\x20scanline\x20size.','Truncated\x20PNG\x20chunk.','toString','readUInt32BE','image/png','sync','length','width','push','read','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','GIF\x20frame\x20exceeds\x20canvas.','isSafeInteger','height','acTL','hex','GIF\x20image\x20has\x20no\x20palette.','Missing\x20PNG\x20data/end.','sha256','readUInt16LE','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','decodeAndBlitFrameRGBA','Invalid\x20GIF\x20LZW\x20code\x20size.','ascii','Missing\x20GIF\x20trailer.','concat','includes','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Animated\x20PNG\x20is\x20not\x20supported.','5NPIKcr','Invalid\x20GIF\x20trailer.','equals','Invalid\x20GIF\x20LZW\x20pixel\x20data.','Truncated\x20PNG\x20data.','1163050xJJSSb'];a145_0x183b=function(){return _0x3ebd48;};return a145_0x183b();}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x4f1140,_0x53978f){const _0x346c36=a145_0x20b4;if(!Number[_0x346c36(0xbc)](_0x4f1140)||!Number[_0x346c36(0xbc)](_0x53978f)||_0x4f1140<0x1||_0x53978f<0x1||_0x4f1140*_0x53978f>MAX_PIXELS)throw Error(_0x346c36(0xc4));}function validateGif(_0x3cd9d3){const _0x4fb059=a145_0x20b4;let _0x2e3652=0xd,_0x454d1a=0x0,_0x5a6ffa=0x0;const _0x32f133=_0x3cd9d3[_0x4fb059(0xc3)](0x6),_0x6df2d5=_0x3cd9d3[_0x4fb059(0xc3)](0x8),_0x4113a9=_0x3cd9d3[0xa]&0x80?0x1<<(_0x3cd9d3[0xa]&0x7)+0x1:0x0,_0x5204a3=_0xabb601=>{if(_0x2e3652+_0xabb601>_0x3cd9d3['length'])throw Error('Truncated\x20GIF\x20data.');};_0x2e3652+=_0x4113a9*0x3,_0x5204a3(0x0);const _0x16114b=()=>{const _0x4abee5=_0x4fb059,_0x1760d3=[];while(!![]){_0x5204a3(0x1);const _0x22321a=_0x3cd9d3[_0x2e3652++];if(!_0x22321a)break;_0x5204a3(_0x22321a),_0x1760d3[_0x4abee5(0xb8)](_0x3cd9d3['subarray'](_0x2e3652,_0x2e3652+_0x22321a)),_0x2e3652+=_0x22321a;}return Buffer[_0x4abee5(0xc9)](_0x1760d3);};while(_0x2e3652<_0x3cd9d3['length']){const _0x1e5d27=_0x3cd9d3[_0x2e3652++];if(_0x1e5d27===0x3b){if(!_0x454d1a||_0x2e3652!==_0x3cd9d3[_0x4fb059(0xb6)])throw Error(_0x4fb059(0xce));return;}if(_0x1e5d27===0x21){_0x5204a3(0x1),_0x2e3652++,_0x16114b();continue;}if(_0x1e5d27!==0x2c)throw Error(_0x4fb059(0xd4));_0x5204a3(0x9);const _0x44d00e=_0x3cd9d3[_0x4fb059(0xc3)](_0x2e3652),_0x2d48b6=_0x3cd9d3[_0x4fb059(0xc3)](_0x2e3652+0x2),_0x36fe3b=_0x3cd9d3[_0x4fb059(0xc3)](_0x2e3652+0x4),_0x108e77=_0x3cd9d3['readUInt16LE'](_0x2e3652+0x6),_0x131d77=_0x3cd9d3[_0x2e3652+0x8];_0x2e3652+=0x9,dimensions(_0x36fe3b,_0x108e77);if(_0x44d00e+_0x36fe3b>_0x32f133||_0x2d48b6+_0x108e77>_0x6df2d5||++_0x454d1a>0x2710||(_0x5a6ffa+=_0x32f133*_0x6df2d5)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x50d6ff=_0x131d77&0x80?0x1<<(_0x131d77&0x7)+0x1:_0x4113a9;if(!_0x50d6ff)throw Error(_0x4fb059(0xc0));_0x131d77&0x80&&(_0x5204a3(_0x50d6ff*0x3),_0x2e3652+=_0x50d6ff*0x3);_0x5204a3(0x1);const _0x4ae1cd=_0x3cd9d3[_0x2e3652++];if(_0x4ae1cd<0x2||_0x4ae1cd>0x8)throw Error(_0x4fb059(0xc6));const _0x573282=_0x16114b(),_0x3b6ebd=0x1<<_0x4ae1cd,_0x2eec9e=_0x3b6ebd+0x1;let _0x323012=_0x4ae1cd+0x1,_0x54fb95=_0x2eec9e+0x1,_0x58ef0a=0x0,_0x41e186=-0x1,_0x879a49=0x0,_0x803fb=![];const _0x31e6fb=new Uint32Array(0x1000),_0x54ca15=new Uint16Array(0x1000);for(let _0x5e3e27=0x0;_0x5e3e27<_0x3b6ebd;_0x5e3e27++){_0x31e6fb[_0x5e3e27]=0x1,_0x54ca15[_0x5e3e27]=_0x5e3e27;}while(_0x58ef0a+_0x323012<=_0x573282[_0x4fb059(0xb6)]*0x8){let _0x24c984=0x0;for(let _0x42bd3e=0x0;_0x42bd3e<_0x323012;_0x42bd3e++,_0x58ef0a++)_0x24c984|=(_0x573282[_0x58ef0a>>0x3]>>(_0x58ef0a&0x7)&0x1)<<_0x42bd3e;if(_0x24c984===_0x3b6ebd){_0x323012=_0x4ae1cd+0x1,_0x54fb95=_0x2eec9e+0x1,_0x41e186=-0x1;continue;}if(_0x24c984===_0x2eec9e){_0x803fb=!![];break;}if(_0x24c984>_0x54fb95||_0x24c984===_0x54fb95&&_0x41e186<0x0||_0x41e186<0x0&&_0x24c984>=_0x3b6ebd)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x363489=_0x24c984===_0x54fb95?_0x31e6fb[_0x41e186]+0x1:_0x31e6fb[_0x24c984],_0x19fa74=_0x24c984===_0x54fb95?_0x54ca15[_0x41e186]:_0x54ca15[_0x24c984];if(!_0x363489||_0x19fa74>=_0x50d6ff||(_0x879a49+=_0x363489)>_0x36fe3b*_0x108e77)throw Error(_0x4fb059(0xd0));if(_0x41e186>=0x0&&_0x54fb95<0x1000){_0x31e6fb[_0x54fb95]=_0x31e6fb[_0x41e186]+0x1,_0x54ca15[_0x54fb95]=Math['max'](_0x54ca15[_0x41e186],_0x19fa74),_0x54fb95++;if(_0x54fb95===0x1<<_0x323012&&_0x323012<0xc)_0x323012++;}_0x41e186=_0x24c984;}if(!_0x803fb||_0x879a49!==_0x36fe3b*_0x108e77)throw Error(_0x4fb059(0xba));}throw Error(_0x4fb059(0xc8));}function a145_0x20b4(_0x3738c8,_0x46fde7){_0x3738c8=_0x3738c8-0xb5;const _0x183b4c=a145_0x183b();let _0x20b447=_0x183b4c[_0x3738c8];return _0x20b447;}export function validateImageBytes(_0x11ae31){const _0x17d61c=a145_0x20b4;if(!_0x11ae31[_0x17d61c(0xb6)]||_0x11ae31[_0x17d61c(0xb6)]>0xa*0x400*0x400)throw Error(_0x17d61c(0xe1));let _0x46240e;try{if(_0x11ae31['subarray'](0x0,0x8)[_0x17d61c(0xcf)](Buffer[_0x17d61c(0xdb)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x11ae31[_0x17d61c(0xb6)]<0x21||_0x11ae31['toString'](_0x17d61c(0xc7),0xc,0x10)!=='IHDR')throw Error(_0x17d61c(0xe4));dimensions(_0x11ae31[_0x17d61c(0xeb)](0x10),_0x11ae31[_0x17d61c(0xeb)](0x14));const _0x234752=_0x11ae31[_0x17d61c(0xeb)](0x10),_0x3cf992=_0x11ae31[_0x17d61c(0xeb)](0x14),_0x5446b7=_0x11ae31[0x18],_0x4fb431=_0x11ae31[0x19],_0x30c038=_0x11ae31[0x1c],_0x241230={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x4fb431];if(!_0x241230||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x5446b7)||_0x30c038>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x44560d=_0x2af70e=>Math[_0x17d61c(0xe2)](_0x2af70e*_0x241230*_0x5446b7/0x8)+0x1;let _0x12baa7=_0x44560d(_0x234752)*_0x3cf992;if(_0x30c038){_0x12baa7=0x0;for(const [_0xdaf359,_0x55742f,_0x16cff8,_0x1ebe4d]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 _0x68fe3c=Math[_0x17d61c(0xd7)](0x0,Math['ceil']((_0x234752-_0xdaf359)/_0x16cff8)),_0x2f8400=Math[_0x17d61c(0xd7)](0x0,Math[_0x17d61c(0xe2)]((_0x3cf992-_0x55742f)/_0x1ebe4d));if(_0x68fe3c&&_0x2f8400)_0x12baa7+=_0x44560d(_0x68fe3c)*_0x2f8400;}}let _0x386db3=0x8,_0x2dfe89=![];const _0x32f3af=[];while(_0x386db3<_0x11ae31[_0x17d61c(0xb6)]){if(_0x386db3+0xc>_0x11ae31[_0x17d61c(0xb6)])throw Error(_0x17d61c(0xe9));const _0x51fce1=_0x11ae31[_0x17d61c(0xeb)](_0x386db3),_0x59845e=_0x11ae31[_0x17d61c(0xea)](_0x17d61c(0xc7),_0x386db3+0x4,_0x386db3+0x8);if(_0x59845e===_0x17d61c(0xbe))throw Error(_0x17d61c(0xcc));if(_0x386db3+_0x51fce1+0xc>_0x11ae31['length'])throw Error(_0x17d61c(0xd1));if(_0x59845e===_0x17d61c(0xdc))_0x32f3af['push'](_0x11ae31[_0x17d61c(0xe5)](_0x386db3+0x8,_0x386db3+0x8+_0x51fce1));_0x386db3+=_0x51fce1+0xc;if(_0x59845e==='IEND'){if(_0x51fce1||_0x386db3!==_0x11ae31['length'])throw Error('Invalid\x20PNG\x20end.');_0x2dfe89=!![];break;}}if(!_0x2dfe89||!_0x32f3af[_0x17d61c(0xb6)])throw Error(_0x17d61c(0xc1));if(inflateSync(Buffer['concat'](_0x32f3af),{'maxOutputLength':_0x12baa7+0x1})[_0x17d61c(0xb6)]!==_0x12baa7)throw Error(_0x17d61c(0xe8));const {PNG:_0x25bd36}=require('pngjs'),_0x74ae21=_0x25bd36[_0x17d61c(0xb5)][_0x17d61c(0xb9)](_0x11ae31,{'checkCRC':!![]});dimensions(_0x74ae21[_0x17d61c(0xb7)],_0x74ae21[_0x17d61c(0xbd)]),_0x46240e=_0x17d61c(0xec);}else{if(_0x11ae31[0x0]===0xff&&_0x11ae31[0x1]===0xd8){if(_0x11ae31['at'](-0x2)!==0xff||_0x11ae31['at'](-0x1)!==0xd9)throw Error(_0x17d61c(0xd6));const _0x2c3b4a=require('jpeg-js'),_0x599862=_0x2c3b4a[_0x17d61c(0xd3)](_0x11ae31,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x599862[_0x17d61c(0xb7)],_0x599862[_0x17d61c(0xbd)]),_0x46240e='image/jpeg';}else{if(['GIF87a','GIF89a'][_0x17d61c(0xca)](_0x11ae31[_0x17d61c(0xea)](_0x17d61c(0xc7),0x0,0x6))){if(_0x11ae31[_0x17d61c(0xb6)]<0xe||_0x11ae31['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x11ae31['readUInt16LE'](0x6),_0x11ae31[_0x17d61c(0xc3)](0x8)),validateGif(_0x11ae31);const {GifReader:_0x82bf78}=require(_0x17d61c(0xd8)),_0x46c589=new _0x82bf78(_0x11ae31);dimensions(_0x46c589[_0x17d61c(0xb7)],_0x46c589[_0x17d61c(0xbd)]);const _0x394d25=_0x46c589['numFrames']();if(!_0x394d25||_0x394d25>0x2710||_0x394d25*_0x46c589[_0x17d61c(0xb7)]*_0x46c589[_0x17d61c(0xbd)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x589607=new Uint8Array(_0x46c589['width']*_0x46c589[_0x17d61c(0xbd)]*0x4);for(let _0x18cb30=0x0;_0x18cb30<_0x394d25;_0x18cb30++){const _0x2a7c28=_0x46c589['frameInfo'](_0x18cb30);if(_0x2a7c28['x']+_0x2a7c28[_0x17d61c(0xb7)]>_0x46c589['width']||_0x2a7c28['y']+_0x2a7c28[_0x17d61c(0xbd)]>_0x46c589[_0x17d61c(0xbd)])throw Error(_0x17d61c(0xbb));_0x46c589[_0x17d61c(0xc5)](_0x18cb30,_0x589607);}_0x46240e=_0x17d61c(0xe3);}else throw Error(_0x17d61c(0xcb));}}}catch(_0x1b4fe2){throw Error('Invalid\x20image:\x20'+_0x1b4fe2[_0x17d61c(0xd5)]);}return{'contentHash':createHash(_0x17d61c(0xc2))['update'](_0x11ae31)['digest'](_0x17d61c(0xbf)),'type':_0x46240e,'size':_0x11ae31[_0x17d61c(0xb6)],'bytes':_0x11ae31};}
@@ -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
+ const a146_0x208e54=a146_0xcd4d;(function(_0xe3798d,_0x57c521){const _0x5614dd=a146_0xcd4d,_0x2afee0=_0xe3798d();while(!![]){try{const _0x1c1030=parseInt(_0x5614dd(0xf4))/0x1*(parseInt(_0x5614dd(0x11b))/0x2)+-parseInt(_0x5614dd(0x124))/0x3*(-parseInt(_0x5614dd(0xb8))/0x4)+parseInt(_0x5614dd(0x11a))/0x5+-parseInt(_0x5614dd(0xca))/0x6+parseInt(_0x5614dd(0xdd))/0x7*(-parseInt(_0x5614dd(0x11e))/0x8)+parseInt(_0x5614dd(0xd0))/0x9+-parseInt(_0x5614dd(0xb2))/0xa;if(_0x1c1030===_0x57c521)break;else _0x2afee0['push'](_0x2afee0['shift']());}catch(_0x549631){_0x2afee0['push'](_0x2afee0['shift']());}}}(a146_0x35d5,0x570ba));import a146_0x5b11d3 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x208e54(0xa1),'http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x208e54(0x139)],DRAWING_MAIN=[a146_0x208e54(0xe3),a146_0x208e54(0x136)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a146_0x208e54(0x103)],RICH=[a146_0x208e54(0xe2)],RICH_RELS=[a146_0x208e54(0x10c)],WPS=[a146_0x208e54(0x108)],DEFAULT_NS=Object[a146_0x208e54(0xda)]([...[a146_0x208e54(0xd8),a146_0x208e54(0x14e),a146_0x208e54(0x11c),a146_0x208e54(0xeb),a146_0x208e54(0x10e),a146_0x208e54(0x9f),'c','f','v','sheetFormatPr','drawing',a146_0x208e54(0xba),a146_0x208e54(0x117),'metadataType','futureMetadata',a146_0x208e54(0x11f),'bk','rc',a146_0x208e54(0xac)]['map'](_0x1555ec=>[_0x1555ec,SHEET]),...['wsDr',a146_0x208e54(0xcb),a146_0x208e54(0xcf),a146_0x208e54(0xbd),'from','to',a146_0x208e54(0xc6),a146_0x208e54(0xdc),a146_0x208e54(0x10f),a146_0x208e54(0x13d),a146_0x208e54(0xec),'nvPicPr',a146_0x208e54(0x12a),a146_0x208e54(0xf7)][a146_0x208e54(0x121)](_0x56d0a8=>[_0x56d0a8,DRAWING]),...[a146_0x208e54(0xbf),a146_0x208e54(0x153),'rv',a146_0x208e54(0xb5),'s','k'][a146_0x208e54(0x121)](_0x510d1a=>[_0x510d1a,RICH]),[a146_0x208e54(0xbc),DRAWING_MAIN],[a146_0x208e54(0x109),RICH_RELS],[a146_0x208e54(0x119),RICH_RELS],[a146_0x208e54(0x151),PACKAGE],['Relationship',PACKAGE],['cellImages',WPS],['cellImage',WPS]]),matches=(_0x12ed0a,_0x164ec9,_0x74ebc4=DEFAULT_NS[_0x164ec9]??[])=>_0x12ed0a[a146_0x208e54(0x12f)]===_0x164ec9&&_0x74ebc4[a146_0x208e54(0xc7)](_0x12ed0a[a146_0x208e54(0xe9)]),children=(_0x4b1583,_0x3a163f,_0x192d3e=DEFAULT_NS[_0x3a163f])=>_0x4b1583[a146_0x208e54(0xf0)][a146_0x208e54(0xb9)](_0x1d90eb=>matches(_0x1d90eb,_0x3a163f,_0x192d3e)),chain=(_0x1579ba,..._0x4d87bb)=>_0x4d87bb['reduce']((_0x3ebc2d,_0x4e8d03)=>_0x3ebc2d['flatMap'](_0x597e41=>children(_0x597e41,_0x4e8d03)),[_0x1579ba]),relationshipTypes=_0xe2d43e=>{const _0x495f52=a146_0x208e54;if([_0x495f52(0xa0),_0x495f52(0x101)][_0x495f52(0xc7)](_0xe2d43e))return[_0x495f52(0x14f)+_0xe2d43e];if(_0xe2d43e===_0x495f52(0xcc))return[_0x495f52(0x106)];if(_0xe2d43e===_0x495f52(0x149)||_0xe2d43e===_0x495f52(0xd4))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0xe2d43e];return OFFICE_RELS['map'](_0x7f6791=>_0x7f6791+'/'+_0xe2d43e);};function one(_0x50fffa,_0x22b5f0){const _0x50fdee=a146_0x208e54;if(_0x50fffa['length']!==0x1)throw Error(_0x50fdee(0x127)+_0x22b5f0+'.');return _0x50fffa[0x0];}function a146_0xcd4d(_0x403905,_0x6d7c2a){_0x403905=_0x403905-0x9d;const _0x35d56c=a146_0x35d5();let _0xcd4d41=_0x35d56c[_0x403905];return _0xcd4d41;}function integer(_0x59197d,_0x519e67,_0x2fe9c9=0x186a0){const _0x23fd34=a146_0x208e54;if(!_0x59197d||!/^\d+$/['test'](_0x59197d)||!Number[_0x23fd34(0xa2)](Number(_0x59197d))||Number(_0x59197d)>_0x2fe9c9)throw Error(_0x23fd34(0xe6)+_0x519e67+'.');return Number(_0x59197d);}export function resolveWorksheetImages(_0x3071eb,_0x1c0f20,_0x1c8dac){const _0x4e974e=a146_0x208e54;let _0x1c250b=0x0,_0x3b2d89=0x0,_0x22e5ad=0x0;const _0x5e6ff4=new Map(),_0x4d7301=_0xd50480=>{const _0x5c4dd0=a146_0xcd4d;if(_0x5e6ff4[_0x5c4dd0(0xc9)](_0xd50480))return _0x5e6ff4[_0x5c4dd0(0xa5)](_0xd50480);const _0x52515e=_0x3071eb[_0x5c4dd0(0xa5)](_0xd50480);if(!_0x52515e)throw Error(_0x5c4dd0(0x140)+_0xd50480+'.');const _0x33e98f={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x20e071=[_0x33e98f],_0x48468c=new SaxesParser({'xmlns':!![]}),_0x76728b=()=>{const _0x393298=_0x5c4dd0;if(++_0x3b2d89>0x1e8480)throw Error(_0x393298(0xc0));};_0x48468c['on'](_0x5c4dd0(0x154),()=>{const _0x374f58=_0x5c4dd0;throw Error(_0x374f58(0xb4));}),_0x48468c['on'](_0x5c4dd0(0xee),_0x5d4c1b=>{const _0x491859=_0x5c4dd0;_0x76728b();if(++_0x1c250b>0x7a120||_0x20e071[_0x491859(0x150)]>0x40)throw Error(_0x491859(0x144));const _0xe9f3ce={};for(const _0x4a0a51 of Object['values'](_0x5d4c1b['attributes'])){const _0x2adc24=OFFICE_RELS[_0x491859(0xc7)](_0x4a0a51['uri'])?'r:'+_0x4a0a51[_0x491859(0xb3)]:_0x4a0a51[_0x491859(0xe9)]?'{'+_0x4a0a51[_0x491859(0xe9)]+'}'+_0x4a0a51[_0x491859(0xb3)]:_0x4a0a51[_0x491859(0xb3)];if(_0x2adc24 in _0xe9f3ce)throw Error(_0x491859(0xe5));_0xe9f3ce[_0x2adc24]=_0x4a0a51[_0x491859(0xa8)];}const _0x230e6a={'name':_0x5d4c1b[_0x491859(0xb3)],'uri':_0x5d4c1b[_0x491859(0xe9)],'attrs':_0xe9f3ce,'children':[],'text':''};_0x20e071['at'](-0x1)['children'][_0x491859(0x10a)](_0x230e6a),_0x20e071[_0x491859(0x10a)](_0x230e6a);}),_0x48468c['on'](_0x5c4dd0(0x12e),_0x3f759f=>{const _0x3d86d2=_0x5c4dd0;_0x76728b();const _0x41b2a2=_0x20e071['at'](-0x1);_0x41b2a2[_0x3d86d2(0x12e)]+=_0x3f759f;if(_0x41b2a2[_0x3d86d2(0x12e)][_0x3d86d2(0x150)]>0x10000)throw Error(_0x3d86d2(0xf9));}),_0x48468c['on'](_0x5c4dd0(0x115),()=>{_0x76728b(),_0x20e071['pop']();}),_0x48468c['on'](_0x5c4dd0(0xd7),_0x195aac=>{throw _0x195aac;}),_0x48468c[_0x5c4dd0(0x112)](_0x52515e[_0x5c4dd0(0xd6)]('utf8'))[_0x5c4dd0(0xde)]();const _0x47ce11=one(_0x33e98f[_0x5c4dd0(0xf0)],_0xd50480);return _0x5e6ff4['set'](_0xd50480,_0x47ce11),_0x47ce11;},_0x5aa776=new Map(),_0x558eb6=_0x5ab770=>{const _0x341dd4=a146_0xcd4d;if(_0x5aa776[_0x341dd4(0xc9)](_0x5ab770))return _0x5aa776['get'](_0x5ab770);const _0x1e8cc0=a146_0x5b11d3[_0x341dd4(0xbb)]['join'](a146_0x5b11d3['posix'][_0x341dd4(0xf2)](_0x5ab770),_0x341dd4(0x156),a146_0x5b11d3[_0x341dd4(0xbb)][_0x341dd4(0xdf)](_0x5ab770)+_0x341dd4(0xf3));if(!_0x3071eb[_0x341dd4(0xc9)](_0x1e8cc0))return[];const _0x37cb80=new Set(),_0x1b096e=_0x4d7301(_0x1e8cc0);if(!matches(_0x1b096e,_0x341dd4(0x151)))throw Error(_0x341dd4(0x152)+_0x1e8cc0+'.');const _0x2faa02=children(_0x1b096e,_0x341dd4(0xa6))[_0x341dd4(0x121)](_0x4ac82b=>{const _0x481706=_0x341dd4,{Id:_0x124d35,Type:_0xaec9b3,Target:_0x561988,TargetMode:_0x581022}=_0x4ac82b[_0x481706(0x10b)];if(!_0x124d35||_0x37cb80[_0x481706(0xc9)](_0x124d35)||!_0xaec9b3)throw Error(_0x481706(0xc4)+_0x1e8cc0+'.');return _0x37cb80[_0x481706(0x133)](_0x124d35),{'id':_0x124d35,'type':_0xaec9b3,'target':_0x561988??'','mode':_0x581022};});return _0x5aa776[_0x341dd4(0xe7)](_0x5ab770,_0x2faa02),_0x2faa02;},_0x52df3e=(_0x11bc89,_0x39b55d)=>{const _0x301911=a146_0xcd4d,{target:_0x1b74a5,mode:_0x2f263c}=_0x39b55d;if(_0x2f263c&&_0x2f263c!==_0x301911(0xae))throw Error(_0x301911(0x123)+_0x11bc89+'.');if(!_0x1b74a5||_0x1b74a5[_0x301911(0xc7)]('\x5c')||/[?#%\x00-\x20]/['test'](_0x1b74a5)||/^[a-z][a-z0-9+.-]*:/i[_0x301911(0x12b)](_0x1b74a5)||_0x1b74a5[_0x301911(0xc1)]('//'))throw Error(_0x301911(0xf8)+_0x11bc89+'.');const _0x2b72ad=_0x1b74a5[_0x301911(0xc1)]('/')?_0x1b74a5[_0x301911(0x14a)](0x1):a146_0x5b11d3[_0x301911(0xbb)][_0x301911(0xc5)](a146_0x5b11d3[_0x301911(0xbb)][_0x301911(0x145)](a146_0x5b11d3['posix'][_0x301911(0xf2)](_0x11bc89),_0x1b74a5));if(_0x2b72ad['startsWith'](_0x301911(0xdb))||_0x2b72ad==='..'||!_0x2b72ad[_0x301911(0xc1)]('xl/'))throw Error(_0x301911(0xef)+_0x11bc89+'.');return _0x2b72ad;},_0xd3198=(_0x1d7df3,_0x1a0c73,_0x50922e)=>{const _0x348c48=a146_0xcd4d,_0x51d69e=_0x558eb6(_0x1d7df3)['filter'](_0x449cc2=>_0x449cc2['id']===_0x1a0c73&&relationshipTypes(_0x50922e)[_0x348c48(0xc7)](_0x449cc2['type']));if(_0x51d69e[_0x348c48(0x150)]!==0x1)throw Error(_0x348c48(0x127)+_0x50922e+_0x348c48(0xc8)+_0x1d7df3+'.');return _0x52df3e(_0x1d7df3,_0x51d69e[0x0]);},_0x43e904=(_0x1e0e67,_0x30f97b)=>{const _0x2216e9=a146_0xcd4d,_0x225119=_0x558eb6(_0x1e0e67)[_0x2216e9(0xb9)](_0x8bf87f=>relationshipTypes(_0x30f97b)['includes'](_0x8bf87f[_0x2216e9(0x114)]));if(_0x225119[_0x2216e9(0x150)]!==0x1)throw Error(_0x2216e9(0x127)+_0x30f97b+'\x20relationship\x20in\x20'+_0x1e0e67+'.');return _0x52df3e(_0x1e0e67,_0x225119[0x0]);},_0x299704=_0x4e974e(0xf6),_0x2097be=_0x4d7301(_0x299704);if(!matches(_0x2097be,_0x4e974e(0xd8)))throw Error(_0x4e974e(0x13b));const _0x44eaaa=one(chain(_0x2097be,_0x4e974e(0x14e),_0x4e974e(0x11c))[_0x4e974e(0xb9)](_0x17666b=>_0x17666b[_0x4e974e(0x10b)][_0x4e974e(0x12f)]===_0x1c0f20),_0x4e974e(0xeb)),_0x305592=_0xd3198(_0x299704,_0x44eaaa[_0x4e974e(0x10b)]['r:id'],_0x4e974e(0xeb)),_0x4ab6d0=_0x4d7301(_0x305592);if(!matches(_0x4ab6d0,_0x4e974e(0xeb)))throw Error(_0x4e974e(0xfd));const _0x38a1ee=chain(_0x4ab6d0,_0x4e974e(0x10e),_0x4e974e(0x9f)),_0x4827dd=new Map(),_0x5cdeda=new Set(_0x38a1ee['filter'](_0x5d4267=>_0x5d4267[_0x4e974e(0x10b)]['hidden']==='1'||_0x5d4267[_0x4e974e(0x10b)][_0x4e974e(0xa7)]===_0x4e974e(0x110))[_0x4e974e(0x121)](_0x525f1b=>integer(_0x525f1b['attrs']['r'],_0x4e974e(0xea)))),_0x536654=_0x49e7f0=>{const _0x29fc60=_0x4e974e,_0x5ca2a0=_0x49e7f0===undefined?0xf:Number(_0x49e7f0);if(!Number[_0x29fc60(0xad)](_0x5ca2a0)||_0x5ca2a0<=0x0||_0x5ca2a0>409.5)throw Error(_0x29fc60(0xce));return Math[_0x29fc60(0xd3)](_0x5ca2a0*0x319c);},_0x3e2b87=_0x536654(children(_0x4ab6d0,_0x4e974e(0xf5))[0x0]?.['attrs'][_0x4e974e(0x122)]);for(const _0x2139e1 of _0x38a1ee)if(_0x2139e1[_0x4e974e(0x10b)]['ht']!==undefined)_0x4827dd[_0x4e974e(0xe7)](integer(_0x2139e1['attrs']['r'],_0x4e974e(0xa9)),_0x536654(_0x2139e1['attrs']['ht']));const _0xef89e9=[],_0x5351f1=_0xb4bdad=>{const _0x1b9329=_0x4e974e;if(!_0x1c8dac['has'](_0xb4bdad[_0x1b9329(0xc6)]))return;if(++_0x22e5ad>0x2710)throw Error(_0x1b9329(0x141));_0xef89e9['push'](_0x5cdeda[_0x1b9329(0xc9)](_0xb4bdad[_0x1b9329(0x9f)])?{..._0xb4bdad,'hiddenRow':!![]}:_0xb4bdad);},_0x50b8ef=_0x3c77a7=>({'row':integer(one(children(_0x3c77a7,_0x4e974e(0x9f),DRAWING),'anchor\x20row')[_0x4e974e(0x12e)],_0x4e974e(0xfb),0x1869f)+0x1,'col':integer(one(children(_0x3c77a7,'col'),_0x4e974e(0xab))[_0x4e974e(0x12e)],_0x4e974e(0xab),0xff)+0x1});for(const _0x2d6f37 of children(_0x4ab6d0,_0x4e974e(0x105))){const _0x355203=_0xd3198(_0x305592,_0x2d6f37['attrs'][_0x4e974e(0xe0)],_0x4e974e(0x105)),_0xee1df7=_0x4d7301(_0x355203);if(!matches(_0xee1df7,_0x4e974e(0x147)))throw Error(_0x4e974e(0x129));for(const _0x133f57 of _0xee1df7[_0x4e974e(0xf0)]){if(!['oneCellAnchor',_0x4e974e(0xcf),_0x4e974e(0xbd)][_0x4e974e(0x14c)](_0x306424=>matches(_0x133f57,_0x306424)))continue;if(_0x133f57[_0x4e974e(0x12f)]==='absoluteAnchor')throw Error(_0x4e974e(0xd1)+_0x1c0f20+'.');const _0x3e8b95=_0x50b8ef(one(children(_0x133f57,'from'),_0x4e974e(0x148)));if(!_0x1c8dac[_0x4e974e(0xc9)](_0x3e8b95[_0x4e974e(0xc6)]))continue;let _0x2d7817;const _0x11e220=one(children(_0x133f57,_0x4e974e(0x137)),_0x4e974e(0x148)),_0xa7f4ca=integer(one(children(_0x11e220,_0x4e974e(0x10f)),'anchor\x20start\x20offset')[_0x4e974e(0x12e)],_0x4e974e(0xb0),Number[_0x4e974e(0x134)]),_0x33eccb=_0x4827dd[_0x4e974e(0xa5)](_0x3e8b95[_0x4e974e(0x9f)])??_0x3e2b87;if(_0xa7f4ca>=_0x33eccb)throw Error(_0x4e974e(0xb7)+_0x3e8b95[_0x4e974e(0x9f)]+'.');if(_0x133f57[_0x4e974e(0x12f)]===_0x4e974e(0xcb)){const _0x58e867=one(children(_0x133f57,_0x4e974e(0x13d)),'image\x20extent'),_0x202334=integer(_0x58e867['attrs']['cy'],_0x4e974e(0xaf),Number[_0x4e974e(0x134)]);if(!_0x202334||_0xa7f4ca+_0x202334>_0x33eccb)_0x2d7817=_0x4e974e(0xc3);}if(_0x133f57[_0x4e974e(0x12f)]==='twoCellAnchor'){const _0xd865c9=one(children(_0x133f57,'to'),_0x4e974e(0x142)),_0x816a5b=_0x50b8ef(_0xd865c9),_0x582f64=integer(one(children(_0xd865c9,_0x4e974e(0x10f)),_0x4e974e(0x13a))[_0x4e974e(0x12e)],'anchor\x20end\x20offset',Number[_0x4e974e(0x134)]),_0x417086=_0x4827dd[_0x4e974e(0xa5)](_0x816a5b[_0x4e974e(0x9f)])??_0x3e2b87;if(_0x582f64>_0x417086||_0x816a5b[_0x4e974e(0x9f)]===_0x3e8b95[_0x4e974e(0x9f)]&&_0x582f64<=_0xa7f4ca)_0x2d7817='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x816a5b['row']<_0x3e8b95[_0x4e974e(0x9f)]||_0x816a5b[_0x4e974e(0x9f)]>_0x3e8b95[_0x4e974e(0x9f)]+0x1||_0x816a5b[_0x4e974e(0x9f)]===_0x3e8b95[_0x4e974e(0x9f)]+0x1&&_0x582f64!==0x0)_0x2d7817='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x501596=chain(_0x133f57,_0x4e974e(0xec),_0x4e974e(0xf7),'blip');for(const _0x4969b3 of _0x501596){if(_0x4969b3[_0x4e974e(0x10b)]['r:link'])throw Error(_0x4e974e(0x102));_0x5351f1({..._0x3e8b95,'media':[_0xd3198(_0x355203,_0x4969b3[_0x4e974e(0x10b)][_0x4e974e(0x9e)],_0x4e974e(0x126))],..._0x2d7817?{'error':_0x2d7817}:{}});}if(!_0x501596[_0x4e974e(0x150)])_0x5351f1({..._0x3e8b95,'media':[],'error':_0x4e974e(0x11d)});}}const _0x3ba734=_0x223d5d=>{const _0x2ec95f=_0x4e974e,_0x34ce93=_0x4d7301(_0x43e904(_0x299704,_0x2ec95f(0x155)));if(!matches(_0x34ce93,_0x2ec95f(0xba)))throw Error(_0x2ec95f(0xa4));const _0x2ce288=integer(_0x223d5d[_0x2ec95f(0x10b)]['vm'],_0x2ec95f(0x107));if(!_0x2ce288)throw Error(_0x2ec95f(0xf1));const _0x22a210=children(one(children(_0x34ce93,_0x2ec95f(0x11f)),_0x2ec95f(0x11f)),'bk')[_0x2ce288-0x1];if(!_0x22a210)throw Error(_0x2ec95f(0xb1));const _0x1cee62=one(children(_0x22a210,'rc'),_0x2ec95f(0xfc)),_0x461d6f=integer(_0x1cee62['attrs']['t'],_0x2ec95f(0x130)),_0x54e87a=children(one(children(_0x34ce93,_0x2ec95f(0x117)),'metadata\x20types'),_0x2ec95f(0x100))[_0x461d6f-0x1];if(!_0x461d6f||_0x54e87a?.[_0x2ec95f(0x10b)][_0x2ec95f(0x12f)]!==_0x2ec95f(0xd2))throw Error(_0x2ec95f(0x12d));const _0x4d1ea2=one(children(_0x34ce93,_0x2ec95f(0x10d))['filter'](_0x25cf3c=>_0x25cf3c[_0x2ec95f(0x10b)][_0x2ec95f(0x12f)]===_0x2ec95f(0xd2)),'rich\x20future\x20metadata'),_0x5d8d7e=children(_0x4d1ea2,'bk')[integer(_0x1cee62[_0x2ec95f(0x10b)]['v'],_0x2ec95f(0x146))];if(!_0x5d8d7e)throw Error(_0x2ec95f(0xfe));const _0x5e917f=chain(_0x5d8d7e,_0x2ec95f(0xac))['flatMap'](_0x17c1ef=>children(_0x17c1ef,_0x2ec95f(0x13d),SHEET))['filter'](_0x2b0633=>_0x2b0633[_0x2ec95f(0x10b)][_0x2ec95f(0xe9)]?.[_0x2ec95f(0xa3)]()===_0x2ec95f(0xff)),_0xaf6542=integer(one(_0x5e917f[_0x2ec95f(0x120)](_0x361f45=>children(_0x361f45,'rvb')),_0x2ec95f(0xc2))[_0x2ec95f(0x10b)]['i'],_0x2ec95f(0x135)),_0x3b8831=_0x4d7301(_0x43e904(_0x299704,_0x2ec95f(0xa0)));if(!matches(_0x3b8831,_0x2ec95f(0x153)))throw Error(_0x2ec95f(0xe1));const _0x278ec7=children(_0x3b8831,'rv')[_0xaf6542];if(!_0x278ec7)throw Error(_0x2ec95f(0x128));const _0x3147ca=_0x4d7301(_0x43e904(_0x299704,_0x2ec95f(0x101)));if(!matches(_0x3147ca,_0x2ec95f(0xb5)))throw Error(_0x2ec95f(0xfa));const _0x51c5ac=children(_0x3147ca,'s')[integer(_0x278ec7[_0x2ec95f(0x10b)]['s'],_0x2ec95f(0x14b))];if(!_0x51c5ac||_0x51c5ac[_0x2ec95f(0x10b)]['t']!==_0x2ec95f(0x111))throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x468246=children(_0x51c5ac,'k'),_0x30f429=_0x468246[_0x2ec95f(0x121)]((_0x1cb992,_0x6c82de)=>_0x1cb992[_0x2ec95f(0x10b)]['n']===_0x2ec95f(0x13c)?_0x6c82de:-0x1)['filter'](_0x502c7=>_0x502c7>=0x0);if(_0x30f429[_0x2ec95f(0x150)]!==0x1)throw Error(_0x2ec95f(0xbe));const _0x39f8a2=children(_0x278ec7,'v',RICH)[_0x30f429[0x0]];if(!_0x39f8a2)throw Error('Missing\x20local\x20image\x20identifier\x20value.');const _0x25d7df=_0x43e904(_0x299704,_0x2ec95f(0xcc)),_0x23ad5c=_0x4d7301(_0x25d7df);if(!matches(_0x23ad5c,_0x2ec95f(0x109)))throw Error(_0x2ec95f(0x104));const _0x7239f2=children(_0x23ad5c,_0x2ec95f(0x119))[integer(_0x39f8a2[_0x2ec95f(0x12e)],_0x2ec95f(0x13f))];if(!_0x7239f2)throw Error(_0x2ec95f(0x143));return _0xd3198(_0x25d7df,_0x7239f2[_0x2ec95f(0x10b)][_0x2ec95f(0xe0)],'image');};let _0xb0d3af;const _0x53c668=_0x3e8032=>{const _0x3aa40a=_0x4e974e;if(!_0xb0d3af){_0xb0d3af=new Map();const _0x120456=_0x558eb6(_0x299704)[_0x3aa40a(0xb9)](_0x13b6b4=>[...relationshipTypes('cellImage'),...relationshipTypes(_0x3aa40a(0xd4))][_0x3aa40a(0xc7)](_0x13b6b4[_0x3aa40a(0x114)]));if(!_0x120456[_0x3aa40a(0x150)]&&_0x3071eb[_0x3aa40a(0xc9)](_0x3aa40a(0x113)))_0x120456[_0x3aa40a(0x10a)]({'id':'','type':'','target':_0x3aa40a(0xb6)});if(_0x120456['length']!==0x1)throw Error(_0x3aa40a(0xd9));const _0x171a1a=_0x52df3e(_0x299704,_0x120456[0x0]),_0x4fc3b8=_0x4d7301(_0x171a1a);if(!matches(_0x4fc3b8,'cellImages'))throw Error(_0x3aa40a(0x118));for(const _0x70db66 of children(_0x4fc3b8,'cellImage')){const _0x2bd47b=one(chain(_0x70db66,_0x3aa40a(0xec),_0x3aa40a(0xe4),_0x3aa40a(0x12a)),_0x3aa40a(0x125))[_0x3aa40a(0x10b)][_0x3aa40a(0x12f)];if(!_0x2bd47b||_0xb0d3af[_0x3aa40a(0xc9)](_0x2bd47b))throw Error(_0x3aa40a(0x131));const _0x514a9f=one(chain(_0x70db66,'pic',_0x3aa40a(0xf7),'blip'),'WPS\x20image\x20blip');if(_0x514a9f[_0x3aa40a(0x10b)][_0x3aa40a(0x132)])throw Error(_0x3aa40a(0xed));_0xb0d3af['set'](_0x2bd47b,_0xd3198(_0x171a1a,_0x514a9f[_0x3aa40a(0x10b)][_0x3aa40a(0x9e)],_0x3aa40a(0x126)));}}const _0xee4496=_0xb0d3af['get'](_0x3e8032);if(!_0xee4496)throw Error(_0x3aa40a(0x12c)+_0x3e8032+'.');return _0xee4496;},_0x434bcc=new Set();for(const _0x1d1076 of _0x38a1ee[_0x4e974e(0x120)](_0x5d800=>children(_0x5d800,'c'))){const _0x4a0f5f=/^([A-Z]+)([1-9]\d*)$/[_0x4e974e(0x9d)](_0x1d1076[_0x4e974e(0x10b)]['r']??'');if(!_0x4a0f5f)continue;let _0x2f71ac=0x0;for(const _0x28da58 of _0x4a0f5f[0x1])_0x2f71ac=_0x2f71ac*0x1a+_0x28da58[_0x4e974e(0x14d)](0x0)-0x40;if(!_0x1c8dac[_0x4e974e(0xc9)](_0x2f71ac))continue;const _0x15002f=integer(_0x4a0f5f[0x2],'image\x20cell\x20row');if(_0x434bcc[_0x4e974e(0xc9)](_0x1d1076[_0x4e974e(0x10b)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x434bcc[_0x4e974e(0x133)](_0x1d1076[_0x4e974e(0x10b)]['r']);const _0x2b87c1=children(_0x1d1076,'f');if(!_0x1d1076[_0x4e974e(0x10b)]['vm']&&!_0x2b87c1[_0x4e974e(0x150)])continue;try{if(_0x15002f<0x1||_0x2f71ac>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0x286e4c;if(_0x1d1076[_0x4e974e(0x10b)]['vm']){if(_0x2b87c1[_0x4e974e(0x150)])throw Error(_0x4e974e(0x116));if(_0x1d1076[_0x4e974e(0x10b)]['t']!=='e'||children(_0x1d1076,'v')['length']!==0x1||children(_0x1d1076,'v')[0x0][_0x4e974e(0x12e)]!==_0x4e974e(0xcd))throw Error(_0x4e974e(0x138));_0x286e4c=_0x3ba734(_0x1d1076);}else{const _0x37ad9b=one(_0x2b87c1,'image\x20formula');if(_0x37ad9b['attrs']['t']===_0x4e974e(0xd5)||_0x37ad9b[_0x4e974e(0x10b)]['si'])throw Error(_0x4e974e(0xe8));const _0x53efd4=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x4e974e(0x9d)](_0x37ad9b[_0x4e974e(0x12e)]);if(!_0x53efd4)throw Error(_0x4e974e(0xaa));_0x286e4c=_0x53c668(_0x53efd4[0x1]['replace'](/""/g,'\x22'));}_0x5351f1({'row':_0x15002f,'col':_0x2f71ac,'media':[_0x286e4c],'nativeCell':!![]});}catch(_0x5e96f6){_0x5351f1({'row':_0x15002f,'col':_0x2f71ac,'media':[],'nativeCell':!![],'error':_0x5e96f6[_0x4e974e(0x13e)]});}}return _0xef89e9;}function a146_0x35d5(){const _0x2bbfbf=['Missing\x20value\x20metadata\x20block.','946750MXCzya','local','XML\x20DTD/entities\x20are\x20not\x20supported.','rvStructures','/xl/cellimages.xml','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','2642212lYFVDh','filter','metadata','posix','blip','absoluteAnchor','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','rvb','Image\x20XML\x20event\x20budget\x20exceeded.','startsWith','rich\x20value\x20binding','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','normalize','col','includes','\x20relationship\x20in\x20','has','1465188YkzvTd','oneCellAnchor','richValueRel','#VALUE!','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','twoCellAnchor','3496455nSBVlk','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','XLRICHVALUE','round','cellImages','shared','toString','error','workbook','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','fromEntries','../','colOff','4194001TWvQiz','close','basename','r:id','Unsupported\x20rich\x20value\x20namespace.','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','http://schemas.openxmlformats.org/drawingml/2006/main','nvPicPr','Ambiguous\x20XML\x20attribute.','Invalid\x20','set','Shared\x20image\x20formulas\x20are\x20not\x20supported.','uri','hidden\x20image\x20row','worksheet','pic','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','opentag','Relationship\x20target\x20escapes\x20workbook:\x20','children','Value\x20metadata\x20index\x20must\x20be\x20one-based.','dirname','.rels','101LRAZQE','sheetFormatPr','xl/workbook.xml','blipFill','Invalid\x20relationship\x20target:\x20','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','Unsupported\x20rich\x20structure\x20namespace.','anchor\x20row','rich\x20metadata\x20record','Unsupported\x20worksheet\x20namespace.','Missing\x20future\x20metadata\x20block.','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','metadataType','rdRichValueStructure','External\x20image\x20links\x20are\x20not\x20supported.','http://schemas.openxmlformats.org/package/2006/relationships','Unsupported\x20rich\x20image\x20relation\x20namespace.','drawing','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','value\x20metadata\x20index','http://www.wps.cn/officeDocument/2017/etCustomData','richValueRels','push','attrs','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','futureMetadata','sheetData','rowOff','true','_localImage','write','xl/cellimages.xml','type','closetag','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','metadataTypes','Unsupported\x20WPS\x20cell\x20image\x20namespace.','rel','1070980EKfImR','620trajdh','sheet','Unsupported\x20drawing\x20image.','8LAvpZz','valueMetadata','flatMap','map','defaultRowHeight','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','3QWlllQ','WPS\x20image\x20name','image','Missing\x20or\x20ambiguous\x20','Missing\x20rich\x20value.','Unsupported\x20drawing\x20namespace.','cNvPr','test','Missing\x20WPS\x20image\x20ID:\x20','Unsupported\x20mapped\x20cell\x20metadata\x20type.','text','name','metadata\x20type\x20index','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','r:link','add','MAX_SAFE_INTEGER','rich\x20value\x20index','http://purl.oclc.org/ooxml/drawingml/main','from','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','anchor\x20end\x20offset','Unsupported\x20workbook\x20namespace.','_rvRel:LocalImageIdentifier','ext','message','rich\x20image\x20relationship\x20index','Missing\x20XLSX\x20part:\x20','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','anchor\x20end','Missing\x20rich\x20image\x20relationship.','Image\x20XML\x20node\x20budget\x20exceeded.','join','future\x20metadata\x20index','wsDr','anchor\x20start','cellImage','slice','rich\x20structure\x20index','some','charCodeAt','sheets','http://schemas.microsoft.com/office/2017/06/relationships/','length','Relationships','Unsupported\x20relationship\x20namespace\x20in\x20','rvData','doctype','sheetMetadata','_rels','exec','r:embed','row','rdRichValue','http://schemas.openxmlformats.org/spreadsheetml/2006/main','isSafeInteger','toLowerCase','Unsupported\x20metadata\x20namespace.','get','Relationship','hidden','value','image\x20row\x20height\x20coordinate','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','anchor\x20column','extLst','isFinite','Internal','image\x20height','anchor\x20start\x20offset'];a146_0x35d5=function(){return _0x2bbfbf;};return a146_0x35d5();}