@lovrabet/lovrabet-cli 2.3.8-beta.4 → 2.3.8-beta.5

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 (190) hide show
  1. package/README.md +12 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/issue/context.d.ts +3 -0
  38. package/lib/commands/issue/context.js +1 -0
  39. package/lib/commands/issue/index.d.ts +2 -0
  40. package/lib/commands/issue/index.js +1 -0
  41. package/lib/commands/issue/report.d.ts +2 -0
  42. package/lib/commands/issue/report.js +1 -0
  43. package/lib/commands/kb/index.js +1 -1
  44. package/lib/commands/logs/index.js +1 -1
  45. package/lib/commands/notification/config-list.js +1 -1
  46. package/lib/commands/notification/index.js +1 -1
  47. package/lib/commands/notification/shared.js +1 -1
  48. package/lib/commands/ocr/index.js +1 -1
  49. package/lib/commands/permit/dataset-get.js +1 -1
  50. package/lib/commands/permit/dataset-set.js +1 -1
  51. package/lib/commands/permit/index.js +1 -1
  52. package/lib/commands/permit/page-get.js +1 -1
  53. package/lib/commands/permit/page-set.js +1 -1
  54. package/lib/commands/permit/role-menus-set.js +1 -1
  55. package/lib/commands/permit/role-menus.js +1 -1
  56. package/lib/commands/permit/shared.js +1 -1
  57. package/lib/commands/personal-bff/index.js +1 -1
  58. package/lib/commands/registry.js +1 -1
  59. package/lib/commands/role/create.js +1 -1
  60. package/lib/commands/role/delete.js +1 -1
  61. package/lib/commands/role/detail.js +1 -1
  62. package/lib/commands/role/index.js +1 -1
  63. package/lib/commands/role/list.js +1 -1
  64. package/lib/commands/role/shared.js +1 -1
  65. package/lib/commands/role/update.js +1 -1
  66. package/lib/commands/role/user-add.js +1 -1
  67. package/lib/commands/role/user-remove.js +1 -1
  68. package/lib/commands/schedule/index.js +1 -1
  69. package/lib/commands/schema.js +1 -1
  70. package/lib/commands/service/dynamic.js +1 -1
  71. package/lib/commands/service/function-name-adapter.js +1 -1
  72. package/lib/commands/service/index.js +1 -1
  73. package/lib/commands/service/registry.js +1 -1
  74. package/lib/commands/skill/commands/create.js +1 -1
  75. package/lib/commands/skill/commands/diagram.js +1 -1
  76. package/lib/commands/skill/commands/install.js +1 -1
  77. package/lib/commands/skill/commands/list.js +1 -1
  78. package/lib/commands/skill/commands/push.js +1 -1
  79. package/lib/commands/skill/commands/validate.js +1 -1
  80. package/lib/commands/skill/diagram.js +1 -1
  81. package/lib/commands/skill/flags.js +1 -1
  82. package/lib/commands/skill/index.js +1 -1
  83. package/lib/commands/skill/manifest-helpers.js +1 -1
  84. package/lib/commands/skill/push-execute.js +1 -1
  85. package/lib/commands/skill/push-flow-helpers.js +1 -1
  86. package/lib/commands/skill/push-retarget.js +1 -1
  87. package/lib/commands/skill/scopes.js +1 -1
  88. package/lib/commands/skill/summary.js +1 -1
  89. package/lib/commands/skill/templates.js +1 -1
  90. package/lib/commands/skill/validate.js +1 -1
  91. package/lib/commands/sql/detail.js +1 -1
  92. package/lib/commands/sql/exec.js +1 -1
  93. package/lib/commands/sql/index.js +1 -1
  94. package/lib/commands/update.js +1 -1
  95. package/lib/commands/user-account/bind.js +1 -1
  96. package/lib/commands/user-account/index.js +1 -1
  97. package/lib/commands/workspace/index.js +1 -1
  98. package/lib/config/domain-config.js +1 -1
  99. package/lib/config/schema.js +1 -1
  100. package/lib/constant/app.js +1 -1
  101. package/lib/constant/auth-mode.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/defaults.js +1 -1
  104. package/lib/constant/distribution.js +1 -1
  105. package/lib/constant/domain.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.js +1 -1
  140. package/lib/generated/routing-contract.js +1 -1
  141. package/lib/help.js +1 -1
  142. package/lib/postinstall.js +1 -1
  143. package/lib/runtime/confirmation.js +1 -1
  144. package/lib/runtime/event.js +1 -1
  145. package/lib/runtime/index.js +1 -1
  146. package/lib/runtime/queue.js +1 -1
  147. package/lib/runtime/resolve.js +1 -1
  148. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  149. package/lib/services/dataset-import/excel-reader.js +1 -1
  150. package/lib/services/dataset-import/image-bytes.js +1 -1
  151. package/lib/services/dataset-import/image-ooxml.js +1 -1
  152. package/lib/services/dataset-import/image-runner.js +1 -1
  153. package/lib/services/dataset-import/metadata.js +1 -1
  154. package/lib/services/dataset-import/preview.js +1 -1
  155. package/lib/services/dataset-import/runner.js +1 -1
  156. package/lib/skills/builtin-skill.js +1 -1
  157. package/lib/skills/npx-skills-add.js +1 -1
  158. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  159. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  160. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  161. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  162. package/lib/skills/runtime-skill-sync/links.js +1 -1
  163. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  164. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  165. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  166. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  167. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  168. package/lib/skills/runtime-skill-sync/push.js +1 -1
  169. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  170. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  171. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  172. package/lib/skills/runtime-skill-sync.js +1 -1
  173. package/lib/skills/skill-presence.js +1 -1
  174. package/lib/utils/access-key-redaction.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cli-version-check.js +1 -1
  177. package/lib/utils/cli-version-policy.js +1 -1
  178. package/lib/utils/logger.js +1 -1
  179. package/lib/utils/lossless-json.js +1 -1
  180. package/lib/utils/params.js +1 -1
  181. package/lib/utils/positive-safe-integer.js +1 -1
  182. package/lib/utils/redaction.js +1 -1
  183. package/lib/utils/runtime-user-id.js +1 -1
  184. package/lib/utils/update-notice.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/write-cli-side-channel.js +1 -1
  187. package/package.json +2 -2
  188. package/skills/lovrabet/SKILL.md +3 -1
  189. package/skills/lovrabet/references/lovrabet-issue-report.md +24 -0
  190. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- function a141_0x1188(){const _0x5aea6b=['original','jszip','stringify','Invalid\x20worksheet\x20column\x20range.','date','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','unixPermissions','string','File\x20is\x20not\x20an\x20XLSX\x20workbook.','add','before','Dataset\x20field\x20metadata\x20is\x20missing.','hex','readUInt16LE','ranges','write','Invalid\x20worksheet\x20coordinate.','Worksheet\x20exceeds\x2016384\x20columns.','Image\x20XML\x20node\x20budget\x20exceeded.','entries','merges','exceljs/lib/utils/col-cache.js','Expected\x20a\x20text\x20cell.','includes','address','left','processAttributes','cells','dataValidations','generated','object','charCodeAt','trim','localeCompare','Only\x20.xlsx\x20files\x20are\x20supported.','dataset','Workbook','end','396108UGzMaW','set','entry','formula','Unsupported\x20field\x20type:\x20','getCell','errors','datetime','error','integer','uploadFields','Invalid\x20XLSX\x20entry.','./zipEntry','update','exceljs/lib/xlsx/xform/book/defined-name-xform.js','4InLaXL','close','fields','1367730VAVfQO','fileComment','27128jVIzAn','Duplicate\x20mapping\x20target:\x20','text','destroy','Required\x20field\x20is\x20not\x20mapped:\x20','XML\x20DTD/entities\x20are\x20not\x20supported.','jpg','autoIncrement','split','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','fileNameRaw','parseText','code','./reader/readerFor','size','getRow','upload','bitFlag','Invalid\x20ZIP\x20central\x20directory\x20layout.','media','545KAzwHE','MAX_SAFE_INTEGER','message','push','slice','modifierName','isSafeInteger','Worksheet\x20exceeds\x20','image','rowCount','exceljs','bottom','concat','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','Invalid\x20defined\x20name\x20coordinate.','result','reference','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Cell\x20exceeds\x2064\x20KB.','decodeEx','byteLength','readUInt32LE','eachCell','emptyRows','value','extend','parserVersion','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Required\x20image\x20value\x20is\x20missing.','file','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','readBigUInt64LE','isInteger','Duplicate\x20header:\x20','contentHash','Invalid\x20worksheet\x20merge\x20reference.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','abs','Worksheet\x20coordinate\x20exceeds\x20','rows','imageCells','top','xlsx','Invalid\x20worksheet\x20hyperlink\x20reference.','deleted','equals','Invalid\x20XLSX\x20archive.','readEntry','filter','extraFieldRaw','clear','./utf8','extname','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','creatorId','[Content_Types].xml','every','values','Invalid\x20worksheet\x20XML:\x20','isArray','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','fileName','model','right','attributes','utf8decode','dir','parse','Duplicate\x20workbook\x20ZIP\x20entry.','lastIndexOf','Invalid\x20dataset\x20field\x20extension\x20metadata.','versionMadeBy','mergeCell','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','fileNameStr','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','worksheets','name','parseInt','mapping','max','from','startsWith','directory','createTime','10156yKttXs','required','isBuffer','Invalid\x20worksheet\x20XML.','datasetId','hidden','map','Unknown\x20Excel\x20header:\x20','sourceType','imageFields','data','batchSize','resolve','doctype','subarray','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','closetag','externalFileAttributes','get','22140fVzVdL','modifierId','fileCommentRaw','tenantCode','find','length','hiddenRow','row','getTime','sha256','image/jpeg','compressedSize','opentag','_xlnm.Print_Area','287OxQJDc','sort','Invalid\x20ZIP\x20local\x20file\x20header.','_xlnm.Print_Titles','sheet','handleUTF8','materialized','isFinite','decimal','dataset-import/','test','Duplicate\x20dataset\x20field\x20codes.','has','23666bvEQMN','number','headerRow','extraFields','toLowerCase','parseClose','Image\x20XML\x20event\x20budget\x20exceeded.','dataType','creatorName','Required\x20value\x20is\x20missing.','updateTime','generalPurposeBitFlag','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','create','load','readEntryCursor','extraFieldsLength','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','type','hyperlink','warnings','METADATA','textarea','isFile','entryCount','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Non-canonical\x20worksheet\x20ZIP\x20entry.','repeat','col','doType','some','2061250lVOCkP','serial_number','boolean','sharedFormula','columnCount'];a141_0x1188=function(){return _0x5aea6b;};return a141_0x1188();}const a141_0x925568=a141_0x42bf;(function(_0x5286ed,_0x343665){const _0x518a38=a141_0x42bf,_0x116d35=_0x5286ed();while(!![]){try{const _0x436d2a=-parseInt(_0x518a38(0x20e))/0x1*(parseInt(_0x518a38(0x267))/0x2)+parseInt(_0x518a38(0x258))/0x3+-parseInt(_0x518a38(0x2db))/0x4*(-parseInt(_0x518a38(0x280))/0x5)+parseInt(_0x518a38(0x1f3))/0x6+parseInt(_0x518a38(0x201))/0x7*(-parseInt(_0x518a38(0x26c))/0x8)+parseInt(_0x518a38(0x26a))/0x9+-parseInt(_0x518a38(0x22d))/0xa;if(_0x436d2a===_0x343665)break;else _0x116d35['push'](_0x116d35['shift']());}catch(_0x4575c1){_0x116d35['push'](_0x116d35['shift']());}}}(a141_0x1188,0x29fb7));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a141_0x4a9a16 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a141_0x1ddc8b from'exceljs';import a141_0x46d9de from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';function a141_0x42bf(_0x78a8d2,_0xd7c05a){_0x78a8d2=_0x78a8d2-0x1e4;const _0x11881d=a141_0x1188();let _0x42bf70=_0x11881d[_0x78a8d2];return _0x42bf70;}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',a141_0x925568(0x1f6),'appCode',a141_0x925568(0x1e4),a141_0x925568(0x2b8),a141_0x925568(0x216),a141_0x925568(0x1f4),a141_0x925568(0x285),a141_0x925568(0x2da),a141_0x925568(0x218),a141_0x925568(0x2ae)]),TYPES=new Set(['string',a141_0x925568(0x26e),a141_0x925568(0x224),a141_0x925568(0x20f),a141_0x925568(0x209),a141_0x925568(0x261),'boolean',a141_0x925568(0x236),a141_0x925568(0x25f),a141_0x925568(0x288),a141_0x925568(0x27c)]),isImageContainer=_0x1b04d1=>[a141_0x925568(0x288),a141_0x925568(0x27c)][a141_0x925568(0x249)](_0x1b04d1[a141_0x925568(0x212)]()),hash=_0x1a9b43=>createHash(a141_0x925568(0x1fc))[a141_0x925568(0x265)](_0x1a9b43)['digest'](a141_0x925568(0x23e)),require=createRequire(import.meta.url),DefinedNameXform=require(a141_0x925568(0x266)),nameCoordinates=require(a141_0x925568(0x247)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a141_0x925568(0x1ec)](a141_0x925568(0x28a))),zipRequire=createRequire(excelRequire[a141_0x925568(0x1ec)](a141_0x925568(0x233))),ZipEntry=zipRequire(a141_0x925568(0x264)),zipReader=zipRequire(a141_0x925568(0x279)),zipUtf8=zipRequire(a141_0x925568(0x2b5)),zipPaths=zipRequire('./utils');function centralDirectoryEnd(_0x13698d,_0x2de87e){const _0x4768ab=a141_0x925568,_0x1c210e=()=>new Error(_0x4768ab(0x27e)),_0x1eb581=_0x13698d[_0x4768ab(0x2c8)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x1eb581<0x0||_0x1eb581+0x16>_0x13698d[_0x4768ab(0x1f8)]||_0x1eb581+0x16+_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0x14)!==_0x13698d[_0x4768ab(0x1f8)])throw _0x1c210e();let _0x38970e=_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0xa),_0x4c67e3=_0x13698d['readUInt32LE'](_0x1eb581+0xc),_0x7a8c33=_0x13698d[_0x4768ab(0x295)](_0x1eb581+0x10),_0x21f1d1=_0x1eb581;const _0x52bbdf=_0x1eb581-0x14,_0x14f4a1=_0x52bbdf>=0x0&&_0x13698d[_0x4768ab(0x295)](_0x52bbdf)===0x7064b50,_0xa4fe6a=[0x4,0x6,0x8,0xa][_0x4768ab(0x22c)](_0x337a6b=>_0x13698d[_0x4768ab(0x23f)](_0x1eb581+_0x337a6b)===0xffff)||_0x4c67e3===0xffffffff||_0x7a8c33===0xffffffff;if(_0x14f4a1!==_0xa4fe6a)throw _0x1c210e();if(_0x14f4a1){if(_0x13698d['lastIndexOf'](Buffer[_0x4768ab(0x2d7)]([0x50,0x4b,0x6,0x7]))!==_0x52bbdf)throw _0x1c210e();const _0x5f4d14=_0x16fade=>{const _0xaf891b=_0x4768ab,_0x5d0e07=Number(_0x13698d[_0xaf891b(0x2a0)](_0x16fade));if(!Number[_0xaf891b(0x286)](_0x5d0e07))throw _0x1c210e();return _0x5d0e07;};_0x21f1d1=_0x5f4d14(_0x52bbdf+0x8);if(_0x13698d[_0x4768ab(0x295)](_0x52bbdf+0x4)!==0x0||_0x13698d[_0x4768ab(0x295)](_0x52bbdf+0x10)!==0x1||_0x21f1d1>_0x52bbdf-0x38||_0x13698d[_0x4768ab(0x295)](_0x21f1d1)!==0x6064b50||_0x5f4d14(_0x21f1d1+0x4)!==0x2c||_0x21f1d1+0x38!==_0x52bbdf||_0x13698d[_0x4768ab(0x295)](_0x21f1d1+0x10)!==0x0||_0x13698d[_0x4768ab(0x295)](_0x21f1d1+0x14)!==0x0)throw _0x1c210e();_0x38970e=_0x5f4d14(_0x21f1d1+0x20),_0x4c67e3=_0x5f4d14(_0x21f1d1+0x28),_0x7a8c33=_0x5f4d14(_0x21f1d1+0x30);if(_0x5f4d14(_0x21f1d1+0x18)!==_0x38970e)throw _0x1c210e();}else{if(_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0x4)!==0x0||_0x13698d['readUInt16LE'](_0x1eb581+0x6)!==0x0||_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0x8)!==_0x38970e)throw _0x1c210e();}const _0x5d5799=_0x2de87e[_0x4768ab(0x21d)];if(_0x7a8c33!==_0x5d5799||_0x38970e!==_0x2de87e[_0x4768ab(0x226)]||_0x7a8c33+_0x4c67e3!==_0x21f1d1)throw _0x1c210e();return _0x21f1d1;}function consumerEntryName(_0x2bb4f2,_0xd65877){const _0x2ae1d9=a141_0x925568;if(_0xd65877[_0x2ae1d9(0x211)][_0x2ae1d9(0x2b2)](_0x246283=>_0x246283['id']===0x1)['length']>0x1)throw new Error(_0x2ae1d9(0x275));const _0x5c34a1=_0xd65877,_0x250438=_0xd65877['relativeOffsetOfLocalHeader'];if(!Buffer['isBuffer'](_0x5c34a1[_0x2ae1d9(0x276)])||!Buffer[_0x2ae1d9(0x2dd)](_0x5c34a1[_0x2ae1d9(0x2b3)])||!Buffer[_0x2ae1d9(0x2dd)](_0x5c34a1[_0x2ae1d9(0x1f5)])||!Number[_0x2ae1d9(0x286)](_0x250438)||_0x250438<0x0||_0x250438>_0x2bb4f2[_0x2ae1d9(0x1f8)]-0x1e||_0x2bb4f2[_0x2ae1d9(0x295)](_0x250438)!==0x4034b50)throw new Error(_0x2ae1d9(0x203));const _0x2a8eb1=_0x250438+0x1e+_0x2bb4f2[_0x2ae1d9(0x23f)](_0x250438+0x1a),_0x2c41b9=_0x2a8eb1+_0x2bb4f2[_0x2ae1d9(0x23f)](_0x250438+0x1c)+_0xd65877[_0x2ae1d9(0x1fe)];if(!Number[_0x2ae1d9(0x286)](_0x2c41b9)||_0x2c41b9>_0x2bb4f2[_0x2ae1d9(0x1f8)])throw new Error(_0x2ae1d9(0x203));if(_0x2a8eb1>_0x2bb4f2[_0x2ae1d9(0x1f8)]||!_0x2bb4f2[_0x2ae1d9(0x1ee)](_0x250438+0x1e,_0x2a8eb1)[_0x2ae1d9(0x2af)](_0x5c34a1['fileNameRaw']))throw new Error(_0x2ae1d9(0x2ce));const _0x5a5262=new ZipEntry({},{'decodeFileName':zipUtf8[_0x2ae1d9(0x2c4)]});_0x5a5262[_0x2ae1d9(0x27d)]=_0xd65877[_0x2ae1d9(0x219)],_0x5a5262[_0x2ae1d9(0x2c0)]=_0x5c34a1[_0x2ae1d9(0x276)],_0x5a5262[_0x2ae1d9(0x26b)]=_0x5c34a1[_0x2ae1d9(0x1f5)],_0x5a5262[_0x2ae1d9(0x21e)]=_0x5c34a1[_0x2ae1d9(0x2b3)][_0x2ae1d9(0x1f8)],_0x5a5262['readExtraFields'](zipReader(_0x5c34a1[_0x2ae1d9(0x2b3)])),_0x5a5262[_0x2ae1d9(0x206)](),_0x5a5262[_0x2ae1d9(0x2ca)]=_0xd65877['versionMadeBy'],_0x5a5262['externalFileAttributes']=_0xd65877[_0x2ae1d9(0x1f1)],_0x5a5262[_0x2ae1d9(0x24c)]();const _0x4f697b=_0x5a5262[_0x2ae1d9(0x2c5)]||Boolean((_0x5a5262[_0x2ae1d9(0x238)]??0x0)&0x4000),_0x19f72c=zipPaths[_0x2ae1d9(0x1ec)](_0x5a5262[_0x2ae1d9(0x2cf)]),_0x8c538a=_0x19f72c[_0x2ae1d9(0x2d8)]('/')?_0x19f72c[_0x2ae1d9(0x284)](0x1):_0x19f72c;return{'name':_0x8c538a,'original':_0x5a5262[_0x2ae1d9(0x2cf)],'directory':_0x4f697b};}export function normalizeImportFields(_0x94c00e){const _0xd76b62=a141_0x925568;if(!_0x94c00e||(_0x94c00e['source']??_0x94c00e[_0xd76b62(0x255)]?.[_0xd76b62(0x1e8)])!==_0xd76b62(0x223))throw new Error(_0xd76b62(0x1ef));const _0x2193b0=Array['isArray'](_0x94c00e['fields']),_0x40624d=_0x2193b0?_0x94c00e[_0xd76b62(0x269)]:_0x94c00e['properties'];if(!Array[_0xd76b62(0x2bd)](_0x40624d)||_0x40624d[_0xd76b62(0x1f8)]===0x0)throw new Error(_0xd76b62(0x23d));const _0x41a649=[],_0x183e34=new Set();for(const _0x4ec0fe of _0x40624d){if(_0x4ec0fe[_0xd76b62(0x2ae)]===!![])continue;let _0x270069=_0x4ec0fe[_0xd76b62(0x299)]??{};if(!_0x2193b0&&typeof _0x270069==='string'){try{_0x270069=JSON[_0xd76b62(0x2c6)](_0x270069);}catch{throw new Error(_0xd76b62(0x2c9));}if(!_0x270069||typeof _0x270069!==_0xd76b62(0x250)||Array[_0xd76b62(0x2bd)](_0x270069))throw new Error(_0xd76b62(0x2c9));}const _0xf6e3b6=_0x2193b0?_0x4ec0fe[_0xd76b62(0x2d3)]:_0x4ec0fe[_0xd76b62(0x278)],_0x3986a8=_0x2193b0?_0x4ec0fe[_0xd76b62(0x22b)]:_0x4ec0fe['type']??_0x4ec0fe[_0xd76b62(0x215)];if(typeof _0xf6e3b6!=='string'||!_0xf6e3b6||typeof _0x3986a8!==_0xd76b62(0x239)||_0x183e34[_0xd76b62(0x20d)](_0xf6e3b6))throw new Error(_0xd76b62(0x2be));if(_0x3986a8[_0xd76b62(0x212)]()===_0xd76b62(0x22e))throw new Error(_0xd76b62(0x29b));_0x183e34[_0xd76b62(0x23b)](_0xf6e3b6);const _0x1f9fcc=_0x2193b0?_0x4ec0fe:_0x270069,_0x4eca51={'code':_0xf6e3b6,'type':_0x3986a8,'required':_0x1f9fcc['required']===!![]};if(RESERVED['has'](_0xf6e3b6)||_0x1f9fcc[_0xd76b62(0x24f)]===!![]||_0x1f9fcc[_0xd76b62(0x273)]===!![])_0x4eca51['generated']=!![];_0x41a649['push'](_0x4eca51);}return _0x41a649;}async function checkArchive(_0x4fd783,_0x436c84){await new Promise((_0x4574b3,_0x32d46)=>{a141_0x46d9de['fromBuffer'](_0x4fd783,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x32d424,_0x5f4d06)=>{const _0x5005dc=a141_0x42bf;if(_0x32d424||!_0x5f4d06){_0x32d46(_0x32d424??new Error(_0x5005dc(0x2b0)));return;}let _0x268250;try{_0x268250=centralDirectoryEnd(_0x4fd783,_0x5f4d06);}catch(_0x2fe621){_0x5f4d06[_0x5005dc(0x268)](),_0x32d46(_0x2fe621);return;}let _0x85f579=0x0,_0x5172fa=0x0,_0x2cfeb8=0x0,_0x53961a=0x0,_0x2a4d2d=0x0,_0x46f71d=0x0,_0xc9e65=0x0,_0x3894e2=0x0,_0x148759=0x0,_0x2a59d2=![],_0x5f3d3e;const _0x555d93=new Set(),_0x46c28f=_0x5d2b76=>{if(_0x2a59d2)return;_0x2a59d2=!![],_0x5f3d3e?.['destroy'](),_0x5f4d06['close'](),_0x32d46(_0x5d2b76);},_0x49c10f=(_0x4b6d6a,_0x12e204)=>{const _0x28546f=_0x5005dc;if(!_0x4b6d6a||!/^\d+$/[_0x28546f(0x20b)](_0x4b6d6a))throw new Error(_0x28546f(0x242));const _0x39aa51=Number(_0x4b6d6a);if(!Number[_0x28546f(0x286)](_0x39aa51)||_0x39aa51<0x1||_0x39aa51>_0x12e204)throw new Error(_0x28546f(0x2a8)+_0x12e204+'.');return _0x39aa51;},_0x349bdb=(_0x497c19,_0x314a12=MAX_XML_COLUMNS)=>{const _0x2705b8=_0x5005dc,_0x266df8=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x497c19);if(!_0x266df8)throw new Error(_0x2705b8(0x237));let _0x44182d=0x0;for(const _0x105c2c of _0x266df8[0x1])_0x44182d=_0x44182d*0x1a+_0x105c2c[_0x2705b8(0x251)](0x0)-0x40;if(_0x44182d>_0x314a12)throw new Error(_0x2705b8(0x287)+_0x314a12+'\x20columns.');return{'row':_0x49c10f(_0x266df8[0x2],MAX_XML_ROWS),'col':_0x44182d};},_0x5e2071=_0x5c49bf=>{const _0x5b0be6=_0x5005dc;if(_0x5c49bf[_0x5b0be6(0x2d3)]===_0x5b0be6(0x200)||_0x5c49bf[_0x5b0be6(0x2d3)]===_0x5b0be6(0x204))return;for(const _0x42e64c of _0x5c49bf[_0x5b0be6(0x240)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x42e64c[_0x5b0be6(0x274)]('!')['pop']()||''))continue;const _0x11ceff=nameCoordinates[_0x5b0be6(0x293)](_0x42e64c),_0x2c62ab=_0x5b0be6(0x2ab)in _0x11ceff,_0x1f0343=_0x2c62ab?[_0x11ceff[_0x5b0be6(0x2ab)],_0x11ceff[_0x5b0be6(0x28b)]]:[_0x11ceff[_0x5b0be6(0x1fa)]],_0xe9a0db=_0x2c62ab?[_0x11ceff[_0x5b0be6(0x24b)],_0x11ceff[_0x5b0be6(0x2c2)]]:[_0x11ceff[_0x5b0be6(0x22a)]],_0x1a92f6=(_0xc99f80,_0x3aa20a)=>Number[_0x5b0be6(0x286)](_0xc99f80)&&_0xc99f80>=0x1&&_0xc99f80<=_0x3aa20a;if(!_0x1f0343['every'](_0x2a4e05=>_0x1a92f6(_0x2a4e05,MAX_XML_ROWS))||!_0xe9a0db[_0x5b0be6(0x2ba)](_0x249c5c=>_0x1a92f6(_0x249c5c,MAX_XML_COLUMNS)))throw new Error(_0x5b0be6(0x28e));_0xc9e65+=_0x2c62ab?(_0x11ceff['bottom']-_0x11ceff['top']+0x1)*(_0x11ceff[_0x5b0be6(0x2c2)]-_0x11ceff[_0x5b0be6(0x24b)]+0x1):0x1;if(_0xc9e65>MAX_ROWS)throw new Error(_0x5b0be6(0x29f));}};_0x5f4d06['on']('error',_0x46c28f),_0x5f4d06['on'](_0x5005dc(0x25a),_0x342644=>{const _0xa22ec6=_0x5005dc;if(_0x2a59d2)return;if(++_0x2cfeb8>0x2710||(_0x85f579+=_0x342644['uncompressedSize'])>MAX_EXPANDED){_0x46c28f(new Error(_0xa22ec6(0x21f)));return;}let _0x1f5993;try{_0x1f5993=consumerEntryName(_0x4fd783,_0x342644);}catch(_0xdba623){_0x46c28f(_0xdba623);return;}if(_0x1f5993[_0xa22ec6(0x2d9)]){_0x5f4d06[_0xa22ec6(0x2b1)]();return;}const _0x118d5e=_0x1f5993['name'];if(_0x436c84&&(_0x118d5e!==_0x1f5993[_0xa22ec6(0x232)]||_0x555d93[_0xa22ec6(0x20d)](_0x118d5e)||_0x118d5e[_0xa22ec6(0x2d8)]('/')||_0x118d5e[_0xa22ec6(0x249)]('\x5c'))){_0x46c28f(new Error(_0xa22ec6(0x2a6)));return;}if(_0x118d5e!==_0x1f5993[_0xa22ec6(0x232)]&&(_0x118d5e==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0xa22ec6(0x20b)](_0x118d5e))){_0x46c28f(new Error(_0xa22ec6(0x28d)));return;}const _0x54ab99=_0x118d5e==='xl/workbook.xml';if(_0x54ab99&&_0x555d93[_0xa22ec6(0x20d)](_0x118d5e)){_0x46c28f(new Error(_0xa22ec6(0x2c7)));return;}_0x555d93[_0xa22ec6(0x23b)](_0x118d5e);const _0x4907b0=/xl\/worksheets\/sheet(\d+)[.]xml/[_0xa22ec6(0x20b)](_0x118d5e);if(_0x4907b0&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0xa22ec6(0x20b)](_0x118d5e)){_0x46c28f(new Error(_0xa22ec6(0x228)));return;}_0x5f4d06['openReadStream'](_0x342644,(_0x289f24,_0xad7790)=>{const _0x4396a7=_0xa22ec6;if(_0x2a59d2){_0xad7790?.[_0x4396a7(0x26f)]();return;}if(_0x289f24||!_0xad7790){_0x46c28f(_0x289f24??new Error(_0x4396a7(0x263)));return;}_0x5f3d3e=_0xad7790;const _0xb23393=_0x436c84?[]:undefined,_0x1b3fe2=_0x436c84&&/[.](xml|rels)$/[_0x4396a7(0x20b)](_0x118d5e)?new StringDecoder('utf8'):undefined,_0x22cb57=_0x1b3fe2?new SaxesParser({'xmlns':![]}):undefined,_0x275e21=()=>{const _0x296d7c=_0x4396a7;if(++_0x148759>0x1e8480)throw Error(_0x296d7c(0x214));};_0x22cb57?.['on'](_0x4396a7(0x1ed),()=>{const _0x202cc5=_0x4396a7;throw Error(_0x202cc5(0x271));}),_0x22cb57?.['on'](_0x4396a7(0x1ff),()=>{const _0x35bf49=_0x4396a7;_0x275e21();if(++_0x3894e2>0x7a120)throw Error(_0x35bf49(0x244));}),_0x22cb57?.['on']('text',_0x275e21),_0x22cb57?.['on'](_0x4396a7(0x1f0),_0x275e21),_0x22cb57?.['on'](_0x4396a7(0x260),_0x2cd26c=>{throw _0x2cd26c;});const _0xecb906=_0x4907b0||_0x54ab99?new StringDecoder('utf8'):undefined,_0x187c3a=_0x4907b0||_0x54ab99?new SaxesParser({'xmlns':![]}):undefined;let _0x549e08,_0x371226=0x0,_0x26f665=0x0,_0x5e1a22,_0x409810,_0x1a7bfc=![],_0x41c280=![],_0x540c8a,_0x16ef54,_0x78170,_0x50d7d4=![];const _0x4c439c=[],_0x1bad3f=new Set();let _0x2d88b1;const _0x3e9e82=(_0x12ebb2,_0x36ac96=0x0)=>{const _0x5bf5f9=_0x4396a7;_0x2a4d2d+=_0x36ac96+Math[_0x5bf5f9(0x2d6)](0x0,_0x12ebb2-_0x26f665),_0x26f665=Math['max'](_0x26f665,_0x12ebb2);if(_0x2a4d2d>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x187c3a?.['on'](_0x4396a7(0x1ff),_0x45f225=>{const _0x4edbf5=_0x4396a7;if(_0x54ab99){if(!_0x549e08&&_0x45f225['name']==='definedName')_0x549e08=new DefinedNameXform();_0x549e08?.['parseOpen'](_0x45f225);return;}if(_0x45f225[_0x4edbf5(0x2d3)]==='row'){if(_0x41c280)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x49c10f(_0x45f225[_0x4edbf5(0x2c3)]['r'],MAX_XML_ROWS),_0x5e1a22=undefined,_0x78170=undefined,_0x50d7d4=![];}else{if(_0x45f225[_0x4edbf5(0x2d3)]==='c'){if(_0x41c280)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x41c280=!![],_0x1a7bfc=Boolean(Number[_0x4edbf5(0x2d4)](_0x45f225[_0x4edbf5(0x2c3)]['s']??'',0xa)),_0x2d88b1=undefined,_0x540c8a=_0x45f225[_0x4edbf5(0x2c3)]['r']||undefined,_0x16ef54=_0x540c8a?_0x349bdb(_0x540c8a):undefined;if(_0x16ef54)_0x409810=_0x16ef54;else _0x409810=_0x5e1a22?{'row':_0x5e1a22[_0x4edbf5(0x1fa)],'col':_0x5e1a22[_0x4edbf5(0x22a)]+0x1}:undefined;}else{if(_0x41c280&&['f','v','t'][_0x4edbf5(0x249)](_0x45f225[_0x4edbf5(0x2d3)])){_0x2d88b1=_0x45f225['name'];if(_0x45f225[_0x4edbf5(0x2d3)]==='f'&&_0x45f225[_0x4edbf5(0x2c3)]['t'])_0x1a7bfc=!![];}else{if(_0x41c280&&_0x45f225['name']==='r')_0x1a7bfc=!![];else{if(_0x45f225[_0x4edbf5(0x2d3)]===_0x4edbf5(0x221)){const _0x332918=_0x45f225[_0x4edbf5(0x2c3)]['ref'];if(!_0x332918)throw new Error(_0x4edbf5(0x2ad));const _0x24f0c2=_0x332918['split'](':');if(_0x24f0c2[_0x4edbf5(0x1f8)]>0x2)throw new Error(_0x4edbf5(0x2ad));const _0x4f1c61=_0x349bdb(_0x24f0c2[0x0]),_0x345099=_0x349bdb(_0x24f0c2[0x1]??_0x24f0c2[0x0]);_0x1bad3f[_0x4edbf5(0x23b)](_0x332918),_0x3e9e82(Math[_0x4edbf5(0x2d6)](_0x4f1c61['col'],_0x345099[_0x4edbf5(0x22a)]),0x1);}else{if(_0x45f225['name']===_0x4edbf5(0x22a)){const _0x9a9968=_0x49c10f(_0x45f225[_0x4edbf5(0x2c3)]['min'],0x4000),_0x232f52=_0x49c10f(_0x45f225[_0x4edbf5(0x2c3)][_0x4edbf5(0x2d6)],0x4000);if(_0x9a9968>_0x232f52)throw new Error(_0x4edbf5(0x235));_0x3e9e82(_0x232f52,0x1);}else{if(_0x45f225[_0x4edbf5(0x2d3)]===_0x4edbf5(0x2cb)){const _0xe8045b=_0x45f225['attributes']['ref'];if(!_0xe8045b)throw new Error(_0x4edbf5(0x2a4));const _0x5b835a=_0xe8045b[_0x4edbf5(0x274)](':');if(_0x5b835a[_0x4edbf5(0x1f8)]>0x2)throw new Error(_0x4edbf5(0x2a4));const _0x5b82be=_0x349bdb(_0x5b835a[0x0]),_0x137002=_0x349bdb(_0x5b835a[0x1]??_0x5b835a[0x0]);_0x3e9e82(Math[_0x4edbf5(0x2d6)](_0x5b82be['col'],_0x137002[_0x4edbf5(0x22a)]));const _0x702428=(Math[_0x4edbf5(0x2a7)](_0x137002[_0x4edbf5(0x1fa)]-_0x5b82be[_0x4edbf5(0x1fa)])+0x1)*(Math[_0x4edbf5(0x2a7)](_0x137002[_0x4edbf5(0x22a)]-_0x5b82be[_0x4edbf5(0x22a)])+0x1);_0x53961a+=_0x702428+_0x371226++;if(_0x53961a>MAX_ROWS)throw new Error(_0x4edbf5(0x2d0));}}}}}}}}),_0x187c3a?.['on'](_0x4396a7(0x26e),_0x27d8ff=>{const _0x3370ad=_0x4396a7;if(_0x54ab99){_0x549e08?.[_0x3370ad(0x277)](_0x27d8ff);return;}if(_0x41c280&&_0x2d88b1&&_0x27d8ff)_0x1a7bfc=!![];}),_0x187c3a?.['on'](_0x4396a7(0x1f0),_0x287447=>{const _0x30bc2f=_0x4396a7;if(_0x54ab99){_0x549e08&&!_0x549e08[_0x30bc2f(0x213)]()&&(_0x5e2071(_0x549e08[_0x30bc2f(0x2c1)]),_0x549e08=undefined);return;}if(_0x287447[_0x30bc2f(0x2d3)]==='c'){!_0x1a7bfc&&_0x540c8a&&!_0x78170&&(_0x78170={'before':_0x5e1a22,'cells':[]});if(_0x78170){if(++_0x46f71d>0xf4240)throw new Error(_0x30bc2f(0x227));_0x78170[_0x30bc2f(0x24d)][_0x30bc2f(0x283)]({'reference':_0x540c8a,'address':_0x16ef54,'materialized':_0x1a7bfc});if(!_0x540c8a&&_0x1a7bfc)_0x50d7d4=!![];}if(_0x1a7bfc){if(!_0x78170||_0x540c8a){if(!_0x409810)throw new Error(_0x30bc2f(0x2a5));if(_0x409810[_0x30bc2f(0x22a)]>MAX_XML_COLUMNS)throw new Error(_0x30bc2f(0x243));_0x3e9e82(_0x409810[_0x30bc2f(0x22a)]);}_0x5e1a22=_0x409810;}_0x41c280=![],_0x409810=undefined,_0x540c8a=undefined,_0x16ef54=undefined,_0x2d88b1=undefined;}else{if(_0x287447[_0x30bc2f(0x2d3)]==='row'){if(_0x78170&&_0x50d7d4)_0x4c439c['push'](_0x78170);_0x78170=undefined,_0x50d7d4=![];}else{if(_0x287447[_0x30bc2f(0x2d3)]===_0x2d88b1)_0x2d88b1=undefined;}}}),_0x187c3a?.['on'](_0x4396a7(0x260),_0x81b28e=>{const _0x4b2f68=_0x4396a7;throw new Error(_0x4b2f68(0x2bc)+_0x81b28e[_0x4b2f68(0x282)]);}),_0xad7790['on'](_0x4396a7(0x260),_0x46c28f),_0xad7790['on'](_0x4396a7(0x1ea),_0x451c7e=>{const _0x113b6b=_0x4396a7;if(_0x2a59d2)return;_0x5172fa+=_0x451c7e['length'],_0xb23393?.['push'](_0x451c7e);if(_0x5172fa>MAX_EXPANDED){_0x46c28f(new Error(_0x113b6b(0x21f)));return;}try{if(_0x22cb57&&_0x1b3fe2)_0x22cb57[_0x113b6b(0x241)](_0x1b3fe2['write'](_0x451c7e));if(_0x187c3a&&_0xecb906)_0x187c3a[_0x113b6b(0x241)](_0xecb906[_0x113b6b(0x241)](_0x451c7e));}catch(_0x4f5214){_0x46c28f(_0x4f5214 instanceof Error?_0x4f5214:new Error('Invalid\x20worksheet\x20XML.'));}}),_0xad7790['on']('end',()=>{const _0x505d29=_0x4396a7;if(_0x2a59d2)return;try{if(_0x22cb57&&_0x1b3fe2)_0x22cb57['write'](_0x1b3fe2[_0x505d29(0x257)]())['close']();if(_0x187c3a&&_0xecb906)_0x187c3a['write'](_0xecb906['end']())[_0x505d29(0x268)]();for(const _0x34ff36 of _0x4c439c){let _0x118938=_0x34ff36[_0x505d29(0x23c)];for(const _0x11915c of _0x34ff36[_0x505d29(0x24d)]){if(!_0x11915c[_0x505d29(0x207)]&&!(_0x11915c[_0x505d29(0x290)]&&_0x1bad3f[_0x505d29(0x20d)](_0x11915c[_0x505d29(0x290)])))continue;const _0x459a17=_0x11915c[_0x505d29(0x24a)]??(_0x118938?{'row':_0x118938[_0x505d29(0x1fa)],'col':_0x118938[_0x505d29(0x22a)]+0x1}:undefined);if(!_0x459a17)throw new Error(_0x505d29(0x2a5));if(_0x459a17[_0x505d29(0x22a)]>MAX_XML_COLUMNS)throw new Error(_0x505d29(0x243));_0x3e9e82(_0x459a17['col']),_0x118938=_0x459a17;}}_0x4c439c['length']=0x0,_0x1bad3f[_0x505d29(0x2b4)]();}catch(_0x3bb8fe){_0x46c28f(_0x3bb8fe instanceof Error?_0x3bb8fe:new Error(_0x505d29(0x2de)));return;}if(_0xb23393)_0x436c84['set'](_0x118d5e,Buffer[_0x505d29(0x28c)](_0xb23393));_0x5f3d3e=undefined,_0x5f4d06[_0x505d29(0x2b1)]();});});}),_0x5f4d06['on'](_0x5005dc(0x257),()=>{const _0x1b33f6=_0x5005dc;if(_0x2a59d2)return;if(_0x5f4d06[_0x1b33f6(0x21d)]!==_0x268250){_0x32d46(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x555d93[_0x1b33f6(0x20d)](_0x1b33f6(0x2b9))||!_0x555d93[_0x1b33f6(0x20d)]('xl/workbook.xml'))_0x32d46(new Error(_0x1b33f6(0x23a)));else _0x4574b3();}),_0x5f4d06['readEntry']();});});}function valueOf(_0x55eba3){const _0x57a9cb=a141_0x925568,_0x1cde10=_0x55eba3[_0x57a9cb(0x298)];if(_0x1cde10&&typeof _0x1cde10===_0x57a9cb(0x250)&&(_0x57a9cb(0x25b)in _0x1cde10||_0x57a9cb(0x230)in _0x1cde10)){if(!(_0x57a9cb(0x28f)in _0x1cde10)||_0x1cde10[_0x57a9cb(0x28f)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x1cde10[_0x57a9cb(0x28f)];}return _0x1cde10;}function convert(_0x36a0fa,_0x49b8a2){const _0x4302f1=a141_0x925568;if(_0x36a0fa===null||_0x36a0fa===undefined||_0x36a0fa===''){if(_0x49b8a2[_0x4302f1(0x2dc)]&&!_0x49b8a2[_0x4302f1(0x24f)])throw new Error(_0x4302f1(0x217));return null;}if(typeof _0x36a0fa==='string'&&Buffer[_0x4302f1(0x294)](_0x36a0fa,'utf8')>MAX_CELL)throw new Error(_0x4302f1(0x292));switch(_0x49b8a2[_0x4302f1(0x220)][_0x4302f1(0x212)]()){case _0x4302f1(0x239):case _0x4302f1(0x26e):case _0x4302f1(0x224):if(typeof _0x36a0fa!=='string')throw new Error(_0x4302f1(0x248));return _0x36a0fa;case _0x4302f1(0x20f):case _0x4302f1(0x209):case'integer':if(typeof _0x36a0fa!=='number'||!Number[_0x4302f1(0x208)](_0x36a0fa)||Math['abs'](_0x36a0fa)>Number[_0x4302f1(0x281)]||_0x49b8a2['type'][_0x4302f1(0x212)]()===_0x4302f1(0x261)&&!Number[_0x4302f1(0x2a1)](_0x36a0fa))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x36a0fa;case _0x4302f1(0x22f):if(typeof _0x36a0fa!==_0x4302f1(0x22f))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x36a0fa;case _0x4302f1(0x236):case _0x4302f1(0x25f):if(!(_0x36a0fa instanceof Date)||!Number[_0x4302f1(0x208)](_0x36a0fa[_0x4302f1(0x1fb)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x36a0fa[_0x4302f1(0x1fb)]();default:throw new Error(_0x4302f1(0x25c)+_0x49b8a2['type']+'.');}}export async function buildExcelManifest(_0x4d7ae0){const _0x2ebc3f=a141_0x925568,_0xf9c08=_0x4d7ae0[_0x2ebc3f(0x210)]??0x1;if(!Number['isInteger'](_0xf9c08)||_0xf9c08<0x1||_0xf9c08>MAX_ROWS)throw new Error('headerRow\x20must\x20be\x20between\x201\x20and\x20100000.');if(_0x4d7ae0[_0x2ebc3f(0x1eb)]!==undefined&&(!Number[_0x2ebc3f(0x2a1)](_0x4d7ae0['batchSize'])||_0x4d7ae0['batchSize']<0x1||_0x4d7ae0['batchSize']>0x3e8))throw new Error(_0x2ebc3f(0x2cc));if(a141_0x4a9a16[_0x2ebc3f(0x2b6)](_0x4d7ae0[_0x2ebc3f(0x29d)])['toLowerCase']()!=='.xlsx')throw new Error(_0x2ebc3f(0x254));const _0xe0b0bb=await stat(_0x4d7ae0[_0x2ebc3f(0x29d)]);if(!_0xe0b0bb[_0x2ebc3f(0x225)]()||_0xe0b0bb[_0x2ebc3f(0x27a)]>MAX_FILE)throw new Error(_0x2ebc3f(0x291));const _0x424d5a=await readFile(_0x4d7ae0['file']);if(_0x424d5a[_0x2ebc3f(0x1f8)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x3639ab=_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x22c)](_0x2ede79=>isImageContainer(_0x2ede79[_0x2ebc3f(0x220)])&&Object[_0x2ebc3f(0x2bb)](_0x4d7ae0['mapping'])['includes'](_0x2ede79[_0x2ebc3f(0x278)]))?new Map():undefined;await checkArchive(_0x424d5a,_0x3639ab);const _0x343691=new a141_0x1ddc8b[(_0x2ebc3f(0x256))]();await _0x343691[_0x2ebc3f(0x2ac)][_0x2ebc3f(0x21c)](_0x424d5a,{'ignoreNodes':[_0x2ebc3f(0x24e)]});const _0x429169=_0x4d7ae0[_0x2ebc3f(0x205)];let _0x4e68ca;if(_0x429169===undefined)_0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][0x0];else{if(typeof _0x429169===_0x2ebc3f(0x239)&&_0x343691[_0x2ebc3f(0x2d2)]['some'](_0x2f1d1=>_0x2f1d1[_0x2ebc3f(0x2d3)]===_0x429169))_0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][_0x2ebc3f(0x1f7)](_0x570cc7=>_0x570cc7[_0x2ebc3f(0x2d3)]===_0x429169);else{if(typeof _0x429169===_0x2ebc3f(0x20f)||/^\d+$/[_0x2ebc3f(0x20b)](_0x429169)){const _0x516270=Number(_0x429169);if(!Number[_0x2ebc3f(0x2a1)](_0x516270)||_0x516270<0x1)throw new Error(_0x2ebc3f(0x29e));_0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][_0x516270-0x1];}else _0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][_0x2ebc3f(0x1f7)](_0x8ede70=>_0x8ede70[_0x2ebc3f(0x2d3)]===_0x429169);}}if(!_0x4e68ca)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x4e68ca[_0x2ebc3f(0x289)]>MAX_ROWS||_0x4e68ca[_0x2ebc3f(0x231)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x4e68ca[_0x2ebc3f(0x2c1)][_0x2ebc3f(0x246)]??[])[_0x2ebc3f(0x1f8)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x4ddd39=new Map();_0x4e68ca[_0x2ebc3f(0x27b)](_0xf9c08)['eachCell']((_0x1cf6cb,_0xcfbf8a)=>{const _0x136827=_0x2ebc3f,_0x34def9=valueOf(_0x1cf6cb);if(typeof _0x34def9!==_0x136827(0x239)||!_0x34def9[_0x136827(0x252)]()||Buffer['byteLength'](_0x34def9)>MAX_CELL)throw new Error(_0x136827(0x2b7));if(_0x4ddd39['has'](_0x34def9))throw new Error(_0x136827(0x2a2)+_0x34def9+'.');_0x4ddd39[_0x136827(0x259)](_0x34def9,_0xcfbf8a);});const _0x59c053=Object[_0x2ebc3f(0x245)](_0x4d7ae0[_0x2ebc3f(0x2d5)]);if(!_0x59c053[_0x2ebc3f(0x1f8)])throw new Error(_0x2ebc3f(0x21a));const _0x5a2aaf=new Map(_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x1e6)](_0x4476e2=>[_0x4476e2[_0x2ebc3f(0x278)],_0x4476e2]));if(_0x5a2aaf[_0x2ebc3f(0x27a)]!==_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x1f8)])throw new Error(_0x2ebc3f(0x20c));if(_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x22c)](_0x5cc587=>_0x5cc587[_0x2ebc3f(0x220)][_0x2ebc3f(0x212)]()===_0x2ebc3f(0x22e)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x31789c=new Set();for(const [_0x2330ba,_0x5cf69b]of _0x59c053){const _0x971ddb=_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x5cf69b);if(!_0x4ddd39[_0x2ebc3f(0x20d)](_0x2330ba))throw new Error(_0x2ebc3f(0x1e7)+_0x2330ba+'.');if(!_0x971ddb||RESERVED['has'](_0x5cf69b)||_0x971ddb[_0x2ebc3f(0x24f)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x5cf69b+'.');if(_0x31789c['has'](_0x5cf69b))throw new Error(_0x2ebc3f(0x26d)+_0x5cf69b+'.');if(!TYPES[_0x2ebc3f(0x20d)](_0x971ddb[_0x2ebc3f(0x220)][_0x2ebc3f(0x212)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x971ddb['type']+'.');_0x31789c[_0x2ebc3f(0x23b)](_0x5cf69b);}for(const _0x300290 of _0x4d7ae0[_0x2ebc3f(0x269)]){if(_0x300290[_0x2ebc3f(0x2dc)]&&!_0x300290[_0x2ebc3f(0x24f)]&&!RESERVED[_0x2ebc3f(0x20d)](_0x300290['code'])&&!_0x31789c[_0x2ebc3f(0x20d)](_0x300290[_0x2ebc3f(0x278)]))throw new Error(_0x2ebc3f(0x270)+_0x300290[_0x2ebc3f(0x278)]+'.');}const _0x27efa2={'fileHash':hash(_0x424d5a),'mappingHash':hash(JSON['stringify']([..._0x59c053][_0x2ebc3f(0x202)](([_0x300dbf],[_0x284284])=>_0x300dbf[_0x2ebc3f(0x253)](_0x284284)))),'schemaHash':hash(JSON[_0x2ebc3f(0x234)]([..._0x4d7ae0[_0x2ebc3f(0x269)]][_0x2ebc3f(0x202)]((_0x4d40d8,_0x42acaa)=>_0x4d40d8[_0x2ebc3f(0x278)][_0x2ebc3f(0x253)](_0x42acaa[_0x2ebc3f(0x278)])))),'sheet':_0x4e68ca[_0x2ebc3f(0x2d3)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3558ce=_0x59c053[_0x2ebc3f(0x2b2)](([,_0x435c8e])=>isImageContainer(_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x435c8e)[_0x2ebc3f(0x220)])),_0x42f99b=_0x3558ce['filter'](([,_0x455b5c])=>_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x455b5c)[_0x2ebc3f(0x220)][_0x2ebc3f(0x212)]()===_0x2ebc3f(0x27c))[_0x2ebc3f(0x1e6)](([,_0x236db1])=>_0x236db1);if(_0x42f99b['length'])_0x27efa2[_0x2ebc3f(0x262)]=_0x42f99b;const _0x2ef08c=_0x3639ab?resolveWorksheetImages(_0x3639ab,_0x4e68ca['name'],new Set(_0x3558ce[_0x2ebc3f(0x1e6)](([_0x57b335])=>_0x4ddd39[_0x2ebc3f(0x1f2)](_0x57b335)))):[],_0x4d6259=new Map();for(const _0x16d57b of _0x2ef08c){const _0x36c0fe=_0x16d57b[_0x2ebc3f(0x1fa)]+':'+_0x16d57b['col'],_0x268d6f=_0x4d6259[_0x2ebc3f(0x1f2)](_0x36c0fe)??[];_0x268d6f[_0x2ebc3f(0x283)](_0x16d57b),_0x4d6259[_0x2ebc3f(0x259)](_0x36c0fe,_0x268d6f);}const _0x1b573c=new Map();let _0x5b27ba=0x0;_0x3558ce[_0x2ebc3f(0x1f8)]&&(_0x27efa2[_0x2ebc3f(0x1e9)]=_0x3558ce[_0x2ebc3f(0x1e6)](([,_0x330514])=>_0x330514),_0x27efa2[_0x2ebc3f(0x2aa)]=[],_0x27efa2[_0x2ebc3f(0x29a)]=0x1,_0x27efa2[_0x2ebc3f(0x27f)]=[]);const _0x1119ad=Math[_0x2ebc3f(0x2d6)](0x0,..._0x2ef08c[_0x2ebc3f(0x1e6)](_0x16ab55=>_0x16ab55[_0x2ebc3f(0x1fa)]));let _0x360b22=0x0;const _0x107466=new Set(_0x59c053['map'](([_0x52d02d])=>_0x4ddd39[_0x2ebc3f(0x1f2)](_0x52d02d)));for(let _0x281e5c=_0xf9c08+0x1;_0x281e5c<=Math['max'](_0x4e68ca[_0x2ebc3f(0x289)],_0x1119ad);_0x281e5c++){const _0x3ea7dd=_0x4e68ca[_0x2ebc3f(0x27b)](_0x281e5c);if(_0x3ea7dd[_0x2ebc3f(0x1e5)]||_0x2ef08c[_0x2ebc3f(0x22c)](_0x11a651=>_0x11a651[_0x2ebc3f(0x1fa)]===_0x281e5c&&_0x11a651[_0x2ebc3f(0x1f9)]))_0x360b22++;let _0x5df93a=_0x2ef08c['some'](_0x30b964=>_0x30b964['row']===_0x281e5c);_0x3ea7dd[_0x2ebc3f(0x296)](_0x57fabb=>{const _0x1eb64f=_0x2ebc3f;if(_0x57fabb['value']!==null&&_0x57fabb[_0x1eb64f(0x298)]!==undefined&&_0x57fabb['value']!=='')_0x5df93a=!![];});if(!_0x5df93a){_0x27efa2[_0x2ebc3f(0x297)][_0x2ebc3f(0x283)](_0x281e5c);continue;}const _0x4bc930=Object[_0x2ebc3f(0x21b)](null);_0x3ea7dd['eachCell']((_0x385592,_0x48aea7)=>{const _0x1584f1=_0x2ebc3f;if(_0x107466[_0x1584f1(0x20d)](_0x48aea7))return;try{const _0x104676=valueOf(_0x385592);if(typeof _0x104676===_0x1584f1(0x239)&&Buffer[_0x1584f1(0x294)](_0x104676,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x2f5007){_0x27efa2[_0x1584f1(0x25e)][_0x1584f1(0x283)]({'rowNumber':_0x281e5c,'field':_0x385592[_0x1584f1(0x24a)],'message':_0x2f5007[_0x1584f1(0x282)]});}});for(const [_0x36ffbd,_0x455a25]of _0x59c053){try{const _0x512bdd=_0x3ea7dd[_0x2ebc3f(0x25d)](_0x4ddd39['get'](_0x36ffbd)),_0x590090=_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x455a25);if(!isImageContainer(_0x590090['type'])){_0x4bc930[_0x455a25]=convert(valueOf(_0x512bdd),_0x590090);continue;}const _0x1d4f75=_0x4d6259[_0x2ebc3f(0x1f2)](_0x281e5c+':'+_0x4ddd39[_0x2ebc3f(0x1f2)](_0x36ffbd))??[];if(_0x1d4f75[_0x2ebc3f(0x22c)](_0x5c6741=>_0x5c6741[_0x2ebc3f(0x260)]))throw Error(_0x1d4f75['find'](_0x24f42f=>_0x24f42f['error'])[_0x2ebc3f(0x260)]);if(_0x512bdd[_0x2ebc3f(0x298)]!=null&&_0x512bdd[_0x2ebc3f(0x298)]!==''&&!_0x1d4f75[_0x2ebc3f(0x22c)](_0x5b6705=>_0x5b6705['nativeCell']))throw Error(_0x2ebc3f(0x2d1));const _0x20d2f7=[];for(const _0x44e03b of _0x1d4f75)for(const _0x301409 of _0x44e03b[_0x2ebc3f(0x27f)]){const _0x37b573=_0x3639ab[_0x2ebc3f(0x1f2)](_0x301409);if(!_0x37b573)throw Error('Missing\x20image\x20media:\x20'+_0x301409+'.');const _0x2af2aa=hash(_0x37b573),_0x285b12=_0x1b573c[_0x2ebc3f(0x1f2)](_0x2af2aa)??validateImageBytes(_0x37b573);if(!_0x1b573c[_0x2ebc3f(0x20d)](_0x285b12['contentHash'])){_0x5b27ba+=_0x285b12['size'];if(_0x5b27ba>0x32*0x400*0x400)throw Error(_0x2ebc3f(0x2bf));_0x1b573c[_0x2ebc3f(0x259)](_0x285b12[_0x2ebc3f(0x2a3)],_0x285b12);}_0x20d2f7[_0x2ebc3f(0x283)](_0x285b12[_0x2ebc3f(0x2a3)]);}if(!_0x20d2f7[_0x2ebc3f(0x1f8)]&&_0x590090[_0x2ebc3f(0x2dc)])throw Error(_0x2ebc3f(0x29c));if(_0x20d2f7[_0x2ebc3f(0x1f8)])_0x27efa2['imageCells'][_0x2ebc3f(0x283)]({'rowNumber':_0x281e5c,'field':_0x455a25,'hashes':_0x20d2f7});_0x4bc930[_0x455a25]=_0x20d2f7['map'](_0x326c62=>{const _0x14e450=_0x2ebc3f,_0x6ad74d=_0x1b573c[_0x14e450(0x1f2)](_0x326c62),_0x5d923a=_0x6ad74d[_0x14e450(0x220)]===_0x14e450(0x1fd)?_0x14e450(0x272):_0x6ad74d[_0x14e450(0x220)][_0x14e450(0x284)](0x6),_0x440bcc=_0x326c62+'.'+_0x5d923a,_0xeaa770=_0x14e450(0x20a)+'0'[_0x14e450(0x229)](0x40)+'/'+_0x440bcc;return _0x590090[_0x14e450(0x220)][_0x14e450(0x212)]()===_0x14e450(0x27c)?{'fileName':_0x440bcc,'filePath':_0xeaa770}:{'key':_0xeaa770,'name':_0x440bcc,'type':_0x6ad74d['type'],'size':_0x6ad74d[_0x14e450(0x27a)]};});}catch(_0xeeb780){_0x27efa2[_0x2ebc3f(0x25e)][_0x2ebc3f(0x283)]({'rowNumber':_0x281e5c,'field':_0x455a25,'message':_0xeeb780['message']});}}_0x27efa2[_0x2ebc3f(0x2a9)][_0x2ebc3f(0x283)]({'rowNumber':_0x281e5c,'values':_0x4bc930});}if(_0x27efa2['media'])_0x27efa2[_0x2ebc3f(0x27f)]=[..._0x1b573c[_0x2ebc3f(0x2bb)]()];if(_0x360b22)_0x27efa2[_0x2ebc3f(0x222)][_0x2ebc3f(0x283)](_0x360b22+_0x2ebc3f(0x2cd));return _0x27efa2;}
1
+ const a144_0x38cfed=a144_0x2270;(function(_0x3c727d,_0x2dd03b){const _0x53f523=a144_0x2270,_0x2e406e=_0x3c727d();while(!![]){try{const _0x5527c8=parseInt(_0x53f523(0x1b5))/0x1+-parseInt(_0x53f523(0x1bc))/0x2*(parseInt(_0x53f523(0x1a9))/0x3)+parseInt(_0x53f523(0x198))/0x4+-parseInt(_0x53f523(0x115))/0x5+-parseInt(_0x53f523(0x180))/0x6+-parseInt(_0x53f523(0xfa))/0x7*(-parseInt(_0x53f523(0x1dc))/0x8)+parseInt(_0x53f523(0x18b))/0x9;if(_0x5527c8===_0x2dd03b)break;else _0x2e406e['push'](_0x2e406e['shift']());}catch(_0x32dbb4){_0x2e406e['push'](_0x2e406e['shift']());}}}(a144_0x2378,0xaedbe));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x3ef6fe from'node:path';import{StringDecoder}from'node:string_decoder';function a144_0x2270(_0x184720,_0xf43be6){_0x184720=_0x184720-0xf9;const _0x2378a2=a144_0x2378();let _0x227047=_0x2378a2[_0x184720];return _0x227047;}import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x1fd31e from'exceljs';import a144_0x5d7d6d 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_0x38cfed(0x1a2),a144_0x38cfed(0x12f),'datasetId','creatorId',a144_0x38cfed(0x1a1),a144_0x38cfed(0x10f),'modifierName',a144_0x38cfed(0x1cb),a144_0x38cfed(0x16b),'deleted']),TYPES=new Set([a144_0x38cfed(0x1da),a144_0x38cfed(0x1a3),a144_0x38cfed(0x1de),a144_0x38cfed(0x18e),a144_0x38cfed(0x12e),a144_0x38cfed(0x177),a144_0x38cfed(0x186),a144_0x38cfed(0x1e5),a144_0x38cfed(0x159),'image','upload']),isImageContainer=_0x2eea41=>['image',a144_0x38cfed(0x13d)]['includes'](_0x2eea41[a144_0x38cfed(0x19d)]()),hash=_0x24b8d1=>createHash(a144_0x38cfed(0x1d4))['update'](_0x24b8d1)['digest'](a144_0x38cfed(0x151)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x38cfed(0x1a7)),nameCoordinates=require(a144_0x38cfed(0x116)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x38cfed(0x113)](a144_0x38cfed(0x143))),zipRequire=createRequire(excelRequire[a144_0x38cfed(0x113)](a144_0x38cfed(0x134))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x38cfed(0x1cd)),zipUtf8=zipRequire(a144_0x38cfed(0x1a5)),zipPaths=zipRequire(a144_0x38cfed(0x141));function centralDirectoryEnd(_0x21379b,_0x412fe6){const _0x5d72d7=a144_0x38cfed,_0x3d8b89=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x34f84d=_0x21379b[_0x5d72d7(0x142)](Buffer[_0x5d72d7(0x16f)]([0x50,0x4b,0x5,0x6]));if(_0x34f84d<0x0||_0x34f84d+0x16>_0x21379b[_0x5d72d7(0x14e)]||_0x34f84d+0x16+_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x14)!==_0x21379b[_0x5d72d7(0x14e)])throw _0x3d8b89();let _0x14b7f3=_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0xa),_0x48c2c2=_0x21379b[_0x5d72d7(0x1ae)](_0x34f84d+0xc),_0x2f1ecc=_0x21379b[_0x5d72d7(0x1ae)](_0x34f84d+0x10),_0x114da4=_0x34f84d;const _0x260a59=_0x34f84d-0x14,_0x42aab6=_0x260a59>=0x0&&_0x21379b[_0x5d72d7(0x1ae)](_0x260a59)===0x7064b50,_0x235fcb=[0x4,0x6,0x8,0xa][_0x5d72d7(0x1bf)](_0x2e5275=>_0x21379b[_0x5d72d7(0x104)](_0x34f84d+_0x2e5275)===0xffff)||_0x48c2c2===0xffffffff||_0x2f1ecc===0xffffffff;if(_0x42aab6!==_0x235fcb)throw _0x3d8b89();if(_0x42aab6){if(_0x21379b[_0x5d72d7(0x142)](Buffer[_0x5d72d7(0x16f)]([0x50,0x4b,0x6,0x7]))!==_0x260a59)throw _0x3d8b89();const _0x36d806=_0x40359f=>{const _0x543606=_0x5d72d7,_0x516323=Number(_0x21379b[_0x543606(0x136)](_0x40359f));if(!Number[_0x543606(0x1df)](_0x516323))throw _0x3d8b89();return _0x516323;};_0x114da4=_0x36d806(_0x260a59+0x8);if(_0x21379b['readUInt32LE'](_0x260a59+0x4)!==0x0||_0x21379b[_0x5d72d7(0x1ae)](_0x260a59+0x10)!==0x1||_0x114da4>_0x260a59-0x38||_0x21379b[_0x5d72d7(0x1ae)](_0x114da4)!==0x6064b50||_0x36d806(_0x114da4+0x4)!==0x2c||_0x114da4+0x38!==_0x260a59||_0x21379b[_0x5d72d7(0x1ae)](_0x114da4+0x10)!==0x0||_0x21379b['readUInt32LE'](_0x114da4+0x14)!==0x0)throw _0x3d8b89();_0x14b7f3=_0x36d806(_0x114da4+0x20),_0x48c2c2=_0x36d806(_0x114da4+0x28),_0x2f1ecc=_0x36d806(_0x114da4+0x30);if(_0x36d806(_0x114da4+0x18)!==_0x14b7f3)throw _0x3d8b89();}else{if(_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x4)!==0x0||_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x6)!==0x0||_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x8)!==_0x14b7f3)throw _0x3d8b89();}const _0x23124f=_0x412fe6[_0x5d72d7(0x160)];if(_0x2f1ecc!==_0x23124f||_0x14b7f3!==_0x412fe6[_0x5d72d7(0x14f)]||_0x2f1ecc+_0x48c2c2!==_0x114da4)throw _0x3d8b89();return _0x114da4;}function consumerEntryName(_0xc9566c,_0x39adef){const _0xabe2b5=a144_0x38cfed;if(_0x39adef[_0xabe2b5(0x1c2)][_0xabe2b5(0x129)](_0x34030c=>_0x34030c['id']===0x1)[_0xabe2b5(0x14e)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x5c0c37=_0x39adef,_0x4559be=_0x39adef[_0xabe2b5(0x10a)];if(!Buffer[_0xabe2b5(0x111)](_0x5c0c37[_0xabe2b5(0x149)])||!Buffer[_0xabe2b5(0x111)](_0x5c0c37[_0xabe2b5(0x176)])||!Buffer[_0xabe2b5(0x111)](_0x5c0c37[_0xabe2b5(0x1dd)])||!Number[_0xabe2b5(0x1df)](_0x4559be)||_0x4559be<0x0||_0x4559be>_0xc9566c[_0xabe2b5(0x14e)]-0x1e||_0xc9566c['readUInt32LE'](_0x4559be)!==0x4034b50)throw new Error(_0xabe2b5(0x188));const _0x42126c=_0x4559be+0x1e+_0xc9566c['readUInt16LE'](_0x4559be+0x1a),_0x217542=_0x42126c+_0xc9566c[_0xabe2b5(0x104)](_0x4559be+0x1c)+_0x39adef[_0xabe2b5(0x199)];if(!Number['isSafeInteger'](_0x217542)||_0x217542>_0xc9566c[_0xabe2b5(0x14e)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x42126c>_0xc9566c['length']||!_0xc9566c[_0xabe2b5(0x13f)](_0x4559be+0x1e,_0x42126c)[_0xabe2b5(0x19a)](_0x5c0c37[_0xabe2b5(0x149)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x19cb48=new ZipEntry({},{'decodeFileName':zipUtf8[_0xabe2b5(0x1be)]});_0x19cb48[_0xabe2b5(0x1b2)]=_0x39adef[_0xabe2b5(0x133)],_0x19cb48[_0xabe2b5(0x178)]=_0x5c0c37[_0xabe2b5(0x149)],_0x19cb48[_0xabe2b5(0x158)]=_0x5c0c37[_0xabe2b5(0x1dd)],_0x19cb48[_0xabe2b5(0x13b)]=_0x5c0c37[_0xabe2b5(0x176)]['length'],_0x19cb48[_0xabe2b5(0x124)](zipReader(_0x5c0c37[_0xabe2b5(0x176)])),_0x19cb48[_0xabe2b5(0x114)](),_0x19cb48['versionMadeBy']=_0x39adef['versionMadeBy'],_0x19cb48[_0xabe2b5(0x1e4)]=_0x39adef[_0xabe2b5(0x1e4)],_0x19cb48[_0xabe2b5(0x174)]();const _0x3a197e=_0x19cb48[_0xabe2b5(0xf9)]||Boolean((_0x19cb48[_0xabe2b5(0x107)]??0x0)&0x4000),_0x5db95e=zipPaths[_0xabe2b5(0x113)](_0x19cb48[_0xabe2b5(0x135)]),_0x41a4e4=_0x5db95e['startsWith']('/')?_0x5db95e[_0xabe2b5(0x175)](0x1):_0x5db95e;return{'name':_0x41a4e4,'original':_0x19cb48['fileNameStr'],'directory':_0x3a197e};}export function normalizeImportFields(_0x195758){const _0x4f6dc0=a144_0x38cfed;if(!_0x195758||(_0x195758[_0x4f6dc0(0x1c3)]??_0x195758[_0x4f6dc0(0x11b)]?.[_0x4f6dc0(0x119)])!=='METADATA')throw new Error(_0x4f6dc0(0x18c));const _0x4e4b73=Array[_0x4f6dc0(0x15c)](_0x195758[_0x4f6dc0(0x1d7)]),_0x3eb2e2=_0x4e4b73?_0x195758[_0x4f6dc0(0x1d7)]:_0x195758[_0x4f6dc0(0x126)];if(!Array[_0x4f6dc0(0x15c)](_0x3eb2e2)||_0x3eb2e2['length']===0x0)throw new Error(_0x4f6dc0(0x195));const _0x214e2c=[],_0x517217=new Set();for(const _0x30a35a of _0x3eb2e2){if(_0x30a35a[_0x4f6dc0(0x1e3)]===!![])continue;let _0x11f409=_0x30a35a[_0x4f6dc0(0x1b6)]??{};if(!_0x4e4b73&&typeof _0x11f409===_0x4f6dc0(0x1da)){try{_0x11f409=JSON[_0x4f6dc0(0x156)](_0x11f409);}catch{throw new Error(_0x4f6dc0(0x168));}if(!_0x11f409||typeof _0x11f409!==_0x4f6dc0(0x19c)||Array[_0x4f6dc0(0x15c)](_0x11f409))throw new Error(_0x4f6dc0(0x168));}const _0x1202bc=_0x4e4b73?_0x30a35a[_0x4f6dc0(0x1c1)]:_0x30a35a['code'],_0x209016=_0x4e4b73?_0x30a35a['doType']:_0x30a35a[_0x4f6dc0(0x137)]??_0x30a35a['dataType'];if(typeof _0x1202bc!==_0x4f6dc0(0x1da)||!_0x1202bc||typeof _0x209016!=='string'||_0x517217[_0x4f6dc0(0x19b)](_0x1202bc))throw new Error(_0x4f6dc0(0x194));if(_0x209016['toLowerCase']()==='serial_number')throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x517217[_0x4f6dc0(0x169)](_0x1202bc);const _0xe0659e=_0x4e4b73?_0x30a35a:_0x11f409,_0x47e95d={'code':_0x1202bc,'type':_0x209016,'required':_0xe0659e[_0x4f6dc0(0x1a8)]===!![]};if(RESERVED[_0x4f6dc0(0x19b)](_0x1202bc)||_0xe0659e[_0x4f6dc0(0x145)]===!![]||_0xe0659e[_0x4f6dc0(0x1b4)]===!![])_0x47e95d[_0x4f6dc0(0x145)]=!![];_0x214e2c[_0x4f6dc0(0x164)](_0x47e95d);}return _0x214e2c;}async function checkArchive(_0x235842,_0x4f6b1b){await new Promise((_0x5ad37c,_0x5568bd)=>{const _0x8b363f=a144_0x2270;a144_0x5d7d6d[_0x8b363f(0x14c)](_0x235842,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x7662,_0x43df6a)=>{const _0x4519bb=_0x8b363f;if(_0x7662||!_0x43df6a){_0x5568bd(_0x7662??new Error('Invalid\x20XLSX\x20archive.'));return;}let _0x328168;try{_0x328168=centralDirectoryEnd(_0x235842,_0x43df6a);}catch(_0x2b10bd){_0x43df6a[_0x4519bb(0x108)](),_0x5568bd(_0x2b10bd);return;}let _0x2bde1e=0x0,_0x2ab852=0x0,_0x1a099c=0x0,_0x562747=0x0,_0x4b9237=0x0,_0x5824cf=0x0,_0x29ba43=0x0,_0x3f237e=0x0,_0x2c477c=0x0,_0x278baf=![],_0x1907ba;const _0x2538f8=new Set(),_0x3e4159=_0xce15b6=>{if(_0x278baf)return;_0x278baf=!![],_0x1907ba?.['destroy'](),_0x43df6a['close'](),_0x5568bd(_0xce15b6);},_0x276d0b=(_0x2cc6dc,_0x2b544c)=>{const _0x41858c=_0x4519bb;if(!_0x2cc6dc||!/^\d+$/[_0x41858c(0x132)](_0x2cc6dc))throw new Error(_0x41858c(0x1ac));const _0x369148=Number(_0x2cc6dc);if(!Number[_0x41858c(0x1df)](_0x369148)||_0x369148<0x1||_0x369148>_0x2b544c)throw new Error(_0x41858c(0x17a)+_0x2b544c+'.');return _0x369148;},_0x527f53=(_0x1d3546,_0x233dfe=MAX_XML_COLUMNS)=>{const _0x2382f7=_0x4519bb,_0x4d5fe6=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2382f7(0x17f)](_0x1d3546);if(!_0x4d5fe6)throw new Error(_0x2382f7(0x1aa));let _0x191eae=0x0;for(const _0x575a53 of _0x4d5fe6[0x1])_0x191eae=_0x191eae*0x1a+_0x575a53[_0x2382f7(0x163)](0x0)-0x40;if(_0x191eae>_0x233dfe)throw new Error(_0x2382f7(0x1d9)+_0x233dfe+_0x2382f7(0x16a));return{'row':_0x276d0b(_0x4d5fe6[0x2],MAX_XML_ROWS),'col':_0x191eae};},_0x30a03c=_0x19802c=>{const _0x363903=_0x4519bb;if(_0x19802c[_0x363903(0x1c1)]===_0x363903(0x153)||_0x19802c[_0x363903(0x1c1)]==='_xlnm.Print_Titles')return;for(const _0x714db8 of _0x19802c['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x363903(0x132)](_0x714db8[_0x363903(0x102)]('!')[_0x363903(0x138)]()||''))continue;const _0x55ce40=nameCoordinates[_0x363903(0x1e6)](_0x714db8),_0x39d55b=_0x363903(0x10c)in _0x55ce40,_0x3a7f82=_0x39d55b?[_0x55ce40['top'],_0x55ce40[_0x363903(0x196)]]:[_0x55ce40['row']],_0x2defdf=_0x39d55b?[_0x55ce40[_0x363903(0x1e7)],_0x55ce40['right']]:[_0x55ce40[_0x363903(0x146)]],_0x395dac=(_0x55598c,_0x5451a9)=>Number[_0x363903(0x1df)](_0x55598c)&&_0x55598c>=0x1&&_0x55598c<=_0x5451a9;if(!_0x3a7f82[_0x363903(0x181)](_0x58224a=>_0x395dac(_0x58224a,MAX_XML_ROWS))||!_0x2defdf[_0x363903(0x181)](_0x1f834f=>_0x395dac(_0x1f834f,MAX_XML_COLUMNS)))throw new Error(_0x363903(0x16e));_0x29ba43+=_0x39d55b?(_0x55ce40[_0x363903(0x196)]-_0x55ce40[_0x363903(0x10c)]+0x1)*(_0x55ce40[_0x363903(0x10b)]-_0x55ce40[_0x363903(0x1e7)]+0x1):0x1;if(_0x29ba43>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x43df6a['on']('error',_0x3e4159),_0x43df6a['on']('entry',_0xe7cb60=>{const _0x4d0d1f=_0x4519bb;if(_0x278baf)return;if(++_0x1a099c>0x2710||(_0x2bde1e+=_0xe7cb60[_0x4d0d1f(0x1c7)])>MAX_EXPANDED){_0x3e4159(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x436052;try{_0x436052=consumerEntryName(_0x235842,_0xe7cb60);}catch(_0x20af69){_0x3e4159(_0x20af69);return;}if(_0x436052['directory']){_0x43df6a[_0x4d0d1f(0x187)]();return;}const _0x31beb8=_0x436052[_0x4d0d1f(0x1c1)];if(_0x4f6b1b&&(_0x31beb8!==_0x436052[_0x4d0d1f(0xfd)]||_0x2538f8[_0x4d0d1f(0x19b)](_0x31beb8)||_0x31beb8[_0x4d0d1f(0xff)]('/')||_0x31beb8[_0x4d0d1f(0x13a)]('\x5c'))){_0x3e4159(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x31beb8!==_0x436052[_0x4d0d1f(0xfd)]&&(_0x31beb8===_0x4d0d1f(0x147)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x4d0d1f(0x132)](_0x31beb8))){_0x3e4159(new Error(_0x4d0d1f(0x1a0)));return;}const _0x57aa4a=_0x31beb8===_0x4d0d1f(0x147);if(_0x57aa4a&&_0x2538f8[_0x4d0d1f(0x19b)](_0x31beb8)){_0x3e4159(new Error(_0x4d0d1f(0x105)));return;}_0x2538f8[_0x4d0d1f(0x169)](_0x31beb8);const _0x23b560=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x4d0d1f(0x132)](_0x31beb8);if(_0x23b560&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x31beb8)){_0x3e4159(new Error(_0x4d0d1f(0x15e)));return;}_0x43df6a[_0x4d0d1f(0x150)](_0xe7cb60,(_0x21766d,_0x359fa1)=>{const _0x5b31d2=_0x4d0d1f;if(_0x278baf){_0x359fa1?.[_0x5b31d2(0x1c0)]();return;}if(_0x21766d||!_0x359fa1){_0x3e4159(_0x21766d??new Error(_0x5b31d2(0x154)));return;}_0x1907ba=_0x359fa1;const _0x45ca72=_0x4f6b1b?[]:undefined,_0x416971=_0x4f6b1b&&/[.](xml|rels)$/[_0x5b31d2(0x132)](_0x31beb8)?new StringDecoder('utf8'):undefined,_0x29ac55=_0x416971?new SaxesParser({'xmlns':![]}):undefined,_0x52d4fc=()=>{const _0x10e401=_0x5b31d2;if(++_0x2c477c>0x1e8480)throw Error(_0x10e401(0x14b));};_0x29ac55?.['on']('doctype',()=>{const _0x95cb97=_0x5b31d2;throw Error(_0x95cb97(0x123));}),_0x29ac55?.['on'](_0x5b31d2(0x16c),()=>{const _0x40346a=_0x5b31d2;_0x52d4fc();if(++_0x3f237e>0x7a120)throw Error(_0x40346a(0x14d));}),_0x29ac55?.['on']('text',_0x52d4fc),_0x29ac55?.['on']('closetag',_0x52d4fc),_0x29ac55?.['on'](_0x5b31d2(0x1ca),_0x1e9671=>{throw _0x1e9671;});const _0x5c6d60=_0x23b560||_0x57aa4a?new StringDecoder(_0x5b31d2(0x157)):undefined,_0x5471b2=_0x23b560||_0x57aa4a?new SaxesParser({'xmlns':![]}):undefined;let _0x5f4536,_0xa064ed=0x0,_0x29b3a8=0x0,_0x928e99,_0x503900,_0x439c0d=![],_0x55e067=![],_0x4b189a,_0x56ebc2,_0x38ab19,_0x16ff64=![];const _0x1769fb=[],_0x4078d1=new Set();let _0x3ccb04;const _0x27d559=(_0x42b62d,_0x3f564e=0x0)=>{const _0x13021e=_0x5b31d2;_0x4b9237+=_0x3f564e+Math[_0x13021e(0x100)](0x0,_0x42b62d-_0x29b3a8),_0x29b3a8=Math[_0x13021e(0x100)](_0x29b3a8,_0x42b62d);if(_0x4b9237>MAX_ROWS)throw new Error(_0x13021e(0x17c));};_0x5471b2?.['on'](_0x5b31d2(0x16c),_0x318c04=>{const _0x27f15d=_0x5b31d2;if(_0x57aa4a){if(!_0x5f4536&&_0x318c04[_0x27f15d(0x1c1)]===_0x27f15d(0x128))_0x5f4536=new DefinedNameXform();_0x5f4536?.[_0x27f15d(0x15b)](_0x318c04);return;}if(_0x318c04[_0x27f15d(0x1c1)]===_0x27f15d(0x127)){if(_0x55e067)throw new Error(_0x27f15d(0x11d));_0x276d0b(_0x318c04[_0x27f15d(0x193)]['r'],MAX_XML_ROWS),_0x928e99=undefined,_0x38ab19=undefined,_0x16ff64=![];}else{if(_0x318c04['name']==='c'){if(_0x55e067)throw new Error(_0x27f15d(0x1d1));_0x55e067=!![],_0x439c0d=Boolean(Number[_0x27f15d(0x1c6)](_0x318c04[_0x27f15d(0x193)]['s']??'',0xa)),_0x3ccb04=undefined,_0x4b189a=_0x318c04[_0x27f15d(0x193)]['r']||undefined,_0x56ebc2=_0x4b189a?_0x527f53(_0x4b189a):undefined;if(_0x56ebc2)_0x503900=_0x56ebc2;else _0x503900=_0x928e99?{'row':_0x928e99['row'],'col':_0x928e99[_0x27f15d(0x146)]+0x1}:undefined;}else{if(_0x55e067&&['f','v','t'][_0x27f15d(0x13a)](_0x318c04[_0x27f15d(0x1c1)])){_0x3ccb04=_0x318c04['name'];if(_0x318c04[_0x27f15d(0x1c1)]==='f'&&_0x318c04['attributes']['t'])_0x439c0d=!![];}else{if(_0x55e067&&_0x318c04[_0x27f15d(0x1c1)]==='r')_0x439c0d=!![];else{if(_0x318c04[_0x27f15d(0x1c1)]==='hyperlink'){const _0x3267c9=_0x318c04[_0x27f15d(0x193)][_0x27f15d(0x1ad)];if(!_0x3267c9)throw new Error(_0x27f15d(0x1d2));const _0x31f450=_0x3267c9[_0x27f15d(0x102)](':');if(_0x31f450[_0x27f15d(0x14e)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x440e6c=_0x527f53(_0x31f450[0x0]),_0x8464f2=_0x527f53(_0x31f450[0x1]??_0x31f450[0x0]);_0x4078d1['add'](_0x3267c9),_0x27d559(Math[_0x27f15d(0x100)](_0x440e6c[_0x27f15d(0x146)],_0x8464f2[_0x27f15d(0x146)]),0x1);}else{if(_0x318c04[_0x27f15d(0x1c1)]==='col'){const _0x253689=_0x276d0b(_0x318c04[_0x27f15d(0x193)][_0x27f15d(0x109)],0x4000),_0x20f734=_0x276d0b(_0x318c04[_0x27f15d(0x193)][_0x27f15d(0x100)],0x4000);if(_0x253689>_0x20f734)throw new Error(_0x27f15d(0x1e8));_0x27d559(_0x20f734,0x1);}else{if(_0x318c04[_0x27f15d(0x1c1)]===_0x27f15d(0x122)){const _0x4756af=_0x318c04[_0x27f15d(0x193)]['ref'];if(!_0x4756af)throw new Error(_0x27f15d(0x14a));const _0x15f8eb=_0x4756af[_0x27f15d(0x102)](':');if(_0x15f8eb[_0x27f15d(0x14e)]>0x2)throw new Error(_0x27f15d(0x14a));const _0x2023ef=_0x527f53(_0x15f8eb[0x0]),_0x2eb308=_0x527f53(_0x15f8eb[0x1]??_0x15f8eb[0x0]);_0x27d559(Math[_0x27f15d(0x100)](_0x2023ef[_0x27f15d(0x146)],_0x2eb308[_0x27f15d(0x146)]));const _0x154302=(Math['abs'](_0x2eb308[_0x27f15d(0x127)]-_0x2023ef['row'])+0x1)*(Math['abs'](_0x2eb308[_0x27f15d(0x146)]-_0x2023ef['col'])+0x1);_0x562747+=_0x154302+_0xa064ed++;if(_0x562747>MAX_ROWS)throw new Error(_0x27f15d(0x18f));}}}}}}}}),_0x5471b2?.['on'](_0x5b31d2(0x1a3),_0x5321c5=>{const _0x4b5bf7=_0x5b31d2;if(_0x57aa4a){_0x5f4536?.[_0x4b5bf7(0x11e)](_0x5321c5);return;}if(_0x55e067&&_0x3ccb04&&_0x5321c5)_0x439c0d=!![];}),_0x5471b2?.['on']('closetag',_0x4c0d25=>{const _0x500a35=_0x5b31d2;if(_0x57aa4a){_0x5f4536&&!_0x5f4536[_0x500a35(0x184)]()&&(_0x30a03c(_0x5f4536['model']),_0x5f4536=undefined);return;}if(_0x4c0d25[_0x500a35(0x1c1)]==='c'){!_0x439c0d&&_0x4b189a&&!_0x38ab19&&(_0x38ab19={'before':_0x928e99,'cells':[]});if(_0x38ab19){if(++_0x5824cf>0xf4240)throw new Error(_0x500a35(0x1c8));_0x38ab19['cells'][_0x500a35(0x164)]({'reference':_0x4b189a,'address':_0x56ebc2,'materialized':_0x439c0d});if(!_0x4b189a&&_0x439c0d)_0x16ff64=!![];}if(_0x439c0d){if(!_0x38ab19||_0x4b189a){if(!_0x503900)throw new Error(_0x500a35(0x162));if(_0x503900['col']>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x27d559(_0x503900['col']);}_0x928e99=_0x503900;}_0x55e067=![],_0x503900=undefined,_0x4b189a=undefined,_0x56ebc2=undefined,_0x3ccb04=undefined;}else{if(_0x4c0d25[_0x500a35(0x1c1)]==='row'){if(_0x38ab19&&_0x16ff64)_0x1769fb['push'](_0x38ab19);_0x38ab19=undefined,_0x16ff64=![];}else{if(_0x4c0d25[_0x500a35(0x1c1)]===_0x3ccb04)_0x3ccb04=undefined;}}}),_0x5471b2?.['on'](_0x5b31d2(0x1ca),_0x1c10c2=>{const _0x24b8ec=_0x5b31d2;throw new Error(_0x24b8ec(0x1b0)+_0x1c10c2[_0x24b8ec(0x144)]);}),_0x359fa1['on'](_0x5b31d2(0x1ca),_0x3e4159),_0x359fa1['on'](_0x5b31d2(0x172),_0xf8c633=>{const _0x4431be=_0x5b31d2;if(_0x278baf)return;_0x2ab852+=_0xf8c633[_0x4431be(0x14e)],_0x45ca72?.['push'](_0xf8c633);if(_0x2ab852>MAX_EXPANDED){_0x3e4159(new Error(_0x4431be(0x1d6)));return;}try{if(_0x29ac55&&_0x416971)_0x29ac55[_0x4431be(0x13e)](_0x416971[_0x4431be(0x13e)](_0xf8c633));if(_0x5471b2&&_0x5c6d60)_0x5471b2[_0x4431be(0x13e)](_0x5c6d60['write'](_0xf8c633));}catch(_0x2abfbf){_0x3e4159(_0x2abfbf instanceof Error?_0x2abfbf:new Error(_0x4431be(0x1db)));}}),_0x359fa1['on'](_0x5b31d2(0x15d),()=>{const _0x14e7bf=_0x5b31d2;if(_0x278baf)return;try{if(_0x29ac55&&_0x416971)_0x29ac55[_0x14e7bf(0x13e)](_0x416971['end']())[_0x14e7bf(0x108)]();if(_0x5471b2&&_0x5c6d60)_0x5471b2[_0x14e7bf(0x13e)](_0x5c6d60[_0x14e7bf(0x15d)]())[_0x14e7bf(0x108)]();for(const _0x4e91e9 of _0x1769fb){let _0x268171=_0x4e91e9[_0x14e7bf(0x189)];for(const _0x10984d of _0x4e91e9[_0x14e7bf(0x131)]){if(!_0x10984d[_0x14e7bf(0x12b)]&&!(_0x10984d[_0x14e7bf(0x1d8)]&&_0x4078d1['has'](_0x10984d[_0x14e7bf(0x1d8)])))continue;const _0x493c5c=_0x10984d[_0x14e7bf(0x1b3)]??(_0x268171?{'row':_0x268171[_0x14e7bf(0x127)],'col':_0x268171['col']+0x1}:undefined);if(!_0x493c5c)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x493c5c[_0x14e7bf(0x146)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x27d559(_0x493c5c['col']),_0x268171=_0x493c5c;}}_0x1769fb[_0x14e7bf(0x14e)]=0x0,_0x4078d1['clear']();}catch(_0x530d43){_0x3e4159(_0x530d43 instanceof Error?_0x530d43:new Error(_0x14e7bf(0x1db)));return;}if(_0x45ca72)_0x4f6b1b[_0x14e7bf(0x118)](_0x31beb8,Buffer[_0x14e7bf(0x1b1)](_0x45ca72));_0x1907ba=undefined,_0x43df6a[_0x14e7bf(0x187)]();});});}),_0x43df6a['on'](_0x4519bb(0x15d),()=>{const _0x25683f=_0x4519bb;if(_0x278baf)return;if(_0x43df6a['readEntryCursor']!==_0x328168){_0x5568bd(new Error(_0x25683f(0x1ab)));return;}if(!_0x2538f8['has'](_0x25683f(0x125))||!_0x2538f8['has']('xl/workbook.xml'))_0x5568bd(new Error(_0x25683f(0x1c9)));else _0x5ad37c();}),_0x43df6a[_0x4519bb(0x187)]();});});}function valueOf(_0x28d633){const _0x2df43b=a144_0x38cfed,_0x55bf7b=_0x28d633[_0x2df43b(0x182)];if(_0x55bf7b&&typeof _0x55bf7b===_0x2df43b(0x19c)&&(_0x2df43b(0x12a)in _0x55bf7b||_0x2df43b(0xfe)in _0x55bf7b)){if(!(_0x2df43b(0x139)in _0x55bf7b)||_0x55bf7b['result']===undefined)throw new Error(_0x2df43b(0x1e1));return _0x55bf7b[_0x2df43b(0x139)];}return _0x55bf7b;}function convert(_0x492600,_0x35cfaa){const _0x2b0238=a144_0x38cfed;if(_0x492600===null||_0x492600===undefined||_0x492600===''){if(_0x35cfaa['required']&&!_0x35cfaa[_0x2b0238(0x145)])throw new Error(_0x2b0238(0x1bd));return null;}if(typeof _0x492600===_0x2b0238(0x1da)&&Buffer[_0x2b0238(0x165)](_0x492600,_0x2b0238(0x157))>MAX_CELL)throw new Error(_0x2b0238(0x101));switch(_0x35cfaa[_0x2b0238(0x137)][_0x2b0238(0x19d)]()){case'string':case _0x2b0238(0x1a3):case _0x2b0238(0x1de):if(typeof _0x492600!==_0x2b0238(0x1da))throw new Error(_0x2b0238(0x148));return _0x492600;case _0x2b0238(0x18e):case _0x2b0238(0x12e):case _0x2b0238(0x177):if(typeof _0x492600!==_0x2b0238(0x18e)||!Number['isFinite'](_0x492600)||Math[_0x2b0238(0x170)](_0x492600)>Number['MAX_SAFE_INTEGER']||_0x35cfaa[_0x2b0238(0x137)][_0x2b0238(0x19d)]()===_0x2b0238(0x177)&&!Number[_0x2b0238(0x152)](_0x492600))throw new Error(_0x2b0238(0x1b9));return _0x492600;case _0x2b0238(0x186):if(typeof _0x492600!==_0x2b0238(0x186))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x492600;case'date':case'datetime':if(!(_0x492600 instanceof Date)||!Number[_0x2b0238(0x1d3)](_0x492600[_0x2b0238(0x1bb)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x492600[_0x2b0238(0x1bb)]();default:throw new Error(_0x2b0238(0x17d)+_0x35cfaa[_0x2b0238(0x137)]+'.');}}export async function buildExcelManifest(_0x5133a6){const _0x194bd6=a144_0x38cfed,_0x2c56dc=_0x5133a6[_0x194bd6(0x15f)]??0x1;if(!Number[_0x194bd6(0x152)](_0x2c56dc)||_0x2c56dc<0x1||_0x2c56dc>MAX_ROWS)throw new Error(_0x194bd6(0x10d));if(_0x5133a6[_0x194bd6(0x1a4)]!==undefined&&(!Number['isInteger'](_0x5133a6[_0x194bd6(0x1a4)])||_0x5133a6[_0x194bd6(0x1a4)]<0x1||_0x5133a6['batchSize']>0x3e8))throw new Error(_0x194bd6(0x12d));if(a144_0x3ef6fe[_0x194bd6(0x1d0)](_0x5133a6['file'])['toLowerCase']()!==_0x194bd6(0x173))throw new Error(_0x194bd6(0x171));const _0x56cb18=await stat(_0x5133a6[_0x194bd6(0x140)]);if(!_0x56cb18[_0x194bd6(0x190)]()||_0x56cb18['size']>MAX_FILE)throw new Error('XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.');const _0x5d87c4=await readFile(_0x5133a6[_0x194bd6(0x140)]);if(_0x5d87c4['length']>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x39057e=_0x5133a6[_0x194bd6(0x1d7)][_0x194bd6(0x1bf)](_0x3317ab=>isImageContainer(_0x3317ab[_0x194bd6(0x137)])&&Object['values'](_0x5133a6['mapping'])['includes'](_0x3317ab[_0x194bd6(0x192)]))?new Map():undefined;await checkArchive(_0x5d87c4,_0x39057e);const _0x35fd9e=new a144_0x1fd31e['Workbook']();await _0x35fd9e[_0x194bd6(0x1c4)]['load'](_0x5d87c4,{'ignoreNodes':[_0x194bd6(0x1d5)]});const _0x44b05d=_0x5133a6[_0x194bd6(0x12c)];let _0x4adb60;if(_0x44b05d===undefined)_0x4adb60=_0x35fd9e[_0x194bd6(0x17e)][0x0];else{if(typeof _0x44b05d==='string'&&_0x35fd9e[_0x194bd6(0x17e)]['some'](_0x58d875=>_0x58d875['name']===_0x44b05d))_0x4adb60=_0x35fd9e[_0x194bd6(0x17e)][_0x194bd6(0x112)](_0x528fe3=>_0x528fe3['name']===_0x44b05d);else{if(typeof _0x44b05d===_0x194bd6(0x18e)||/^\d+$/['test'](_0x44b05d)){const _0x337060=Number(_0x44b05d);if(!Number['isInteger'](_0x337060)||_0x337060<0x1)throw new Error(_0x194bd6(0x1b8));_0x4adb60=_0x35fd9e['worksheets'][_0x337060-0x1];}else _0x4adb60=_0x35fd9e['worksheets']['find'](_0x52cefb=>_0x52cefb['name']===_0x44b05d);}}if(!_0x4adb60)throw new Error(_0x194bd6(0x106));if(_0x4adb60[_0x194bd6(0x16d)]>MAX_ROWS||_0x4adb60[_0x194bd6(0x183)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x4adb60[_0x194bd6(0x121)]['merges']??[])[_0x194bd6(0x14e)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x28e965=new Map();_0x4adb60[_0x194bd6(0x103)](_0x2c56dc)[_0x194bd6(0x117)]((_0x56761a,_0x3d37e4)=>{const _0x1f9bf6=_0x194bd6,_0x5d60b5=valueOf(_0x56761a);if(typeof _0x5d60b5!==_0x1f9bf6(0x1da)||!_0x5d60b5[_0x1f9bf6(0x19f)]()||Buffer[_0x1f9bf6(0x165)](_0x5d60b5)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x28e965[_0x1f9bf6(0x19b)](_0x5d60b5))throw new Error(_0x1f9bf6(0x19e)+_0x5d60b5+'.');_0x28e965[_0x1f9bf6(0x118)](_0x5d60b5,_0x3d37e4);});const _0x271188=Object[_0x194bd6(0x1af)](_0x5133a6[_0x194bd6(0x191)]);if(!_0x271188[_0x194bd6(0x14e)])throw new Error('Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.');const _0x137368=new Map(_0x5133a6[_0x194bd6(0x1d7)][_0x194bd6(0xfb)](_0x3dd270=>[_0x3dd270[_0x194bd6(0x192)],_0x3dd270]));if(_0x137368[_0x194bd6(0x1a6)]!==_0x5133a6[_0x194bd6(0x1d7)][_0x194bd6(0x14e)])throw new Error(_0x194bd6(0x185));if(_0x5133a6['fields'][_0x194bd6(0x1bf)](_0x1aa29d=>_0x1aa29d[_0x194bd6(0x137)][_0x194bd6(0x19d)]()===_0x194bd6(0x197)))throw new Error(_0x194bd6(0x167));const _0x341f10=new Set();for(const [_0xf4cc01,_0x6b4517]of _0x271188){const _0x4f735f=_0x137368[_0x194bd6(0x166)](_0x6b4517);if(!_0x28e965[_0x194bd6(0x19b)](_0xf4cc01))throw new Error(_0x194bd6(0x11c)+_0xf4cc01+'.');if(!_0x4f735f||RESERVED[_0x194bd6(0x19b)](_0x6b4517)||_0x4f735f[_0x194bd6(0x145)])throw new Error(_0x194bd6(0x1ce)+_0x6b4517+'.');if(_0x341f10['has'](_0x6b4517))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x6b4517+'.');if(!TYPES[_0x194bd6(0x19b)](_0x4f735f[_0x194bd6(0x137)]['toLowerCase']()))throw new Error(_0x194bd6(0x17d)+_0x4f735f[_0x194bd6(0x137)]+'.');_0x341f10[_0x194bd6(0x169)](_0x6b4517);}for(const _0x27699b of _0x5133a6['fields']){if(_0x27699b['required']&&!_0x27699b[_0x194bd6(0x145)]&&!RESERVED[_0x194bd6(0x19b)](_0x27699b[_0x194bd6(0x192)])&&!_0x341f10[_0x194bd6(0x19b)](_0x27699b[_0x194bd6(0x192)]))throw new Error(_0x194bd6(0x18a)+_0x27699b[_0x194bd6(0x192)]+'.');}const _0x54e88f={'fileHash':hash(_0x5d87c4),'mappingHash':hash(JSON[_0x194bd6(0x161)]([..._0x271188][_0x194bd6(0x10e)](([_0x41f6eb],[_0x2b8657])=>_0x41f6eb[_0x194bd6(0x130)](_0x2b8657)))),'schemaHash':hash(JSON['stringify']([..._0x5133a6[_0x194bd6(0x1d7)]][_0x194bd6(0x10e)]((_0x464da5,_0x2e9b42)=>_0x464da5['code']['localeCompare'](_0x2e9b42[_0x194bd6(0x192)])))),'sheet':_0x4adb60[_0x194bd6(0x1c1)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x28a179=_0x271188['filter'](([,_0x1fe2ab])=>isImageContainer(_0x137368[_0x194bd6(0x166)](_0x1fe2ab)[_0x194bd6(0x137)])),_0x509b1a=_0x28a179['filter'](([,_0x40a57e])=>_0x137368[_0x194bd6(0x166)](_0x40a57e)[_0x194bd6(0x137)]['toLowerCase']()==='upload')[_0x194bd6(0xfb)](([,_0xce660b])=>_0xce660b);if(_0x509b1a['length'])_0x54e88f[_0x194bd6(0x1b7)]=_0x509b1a;const _0x55492f=_0x39057e?resolveWorksheetImages(_0x39057e,_0x4adb60['name'],new Set(_0x28a179['map'](([_0x2a5e6c])=>_0x28e965[_0x194bd6(0x166)](_0x2a5e6c)))):[],_0x37a9c8=new Map();for(const _0xc2064d of _0x55492f){const _0x599d43=_0xc2064d[_0x194bd6(0x127)]+':'+_0xc2064d['col'],_0x2c355f=_0x37a9c8['get'](_0x599d43)??[];_0x2c355f[_0x194bd6(0x164)](_0xc2064d),_0x37a9c8[_0x194bd6(0x118)](_0x599d43,_0x2c355f);}const _0x44933f=new Map();let _0x3211af=0x0;_0x28a179[_0x194bd6(0x14e)]&&(_0x54e88f[_0x194bd6(0x15a)]=_0x28a179[_0x194bd6(0xfb)](([,_0x4ed499])=>_0x4ed499),_0x54e88f[_0x194bd6(0x11a)]=[],_0x54e88f['parserVersion']=0x1,_0x54e88f['media']=[]);const _0x14460d=Math['max'](0x0,..._0x55492f['map'](_0x26e127=>_0x26e127[_0x194bd6(0x127)]));let _0x41f03e=0x0;const _0xf015c9=new Set(_0x271188['map'](([_0x1bc6ef])=>_0x28e965[_0x194bd6(0x166)](_0x1bc6ef)));for(let _0x54fdf2=_0x2c56dc+0x1;_0x54fdf2<=Math[_0x194bd6(0x100)](_0x4adb60[_0x194bd6(0x16d)],_0x14460d);_0x54fdf2++){const _0x4cb954=_0x4adb60[_0x194bd6(0x103)](_0x54fdf2);if(_0x4cb954[_0x194bd6(0x1e0)]||_0x55492f[_0x194bd6(0x1bf)](_0x47951e=>_0x47951e[_0x194bd6(0x127)]===_0x54fdf2&&_0x47951e[_0x194bd6(0x179)]))_0x41f03e++;let _0x130113=_0x55492f[_0x194bd6(0x1bf)](_0x187ec0=>_0x187ec0[_0x194bd6(0x127)]===_0x54fdf2);_0x4cb954[_0x194bd6(0x117)](_0x5a27d8=>{const _0x2b7d09=_0x194bd6;if(_0x5a27d8[_0x2b7d09(0x182)]!==null&&_0x5a27d8[_0x2b7d09(0x182)]!==undefined&&_0x5a27d8['value']!=='')_0x130113=!![];});if(!_0x130113){_0x54e88f['emptyRows']['push'](_0x54fdf2);continue;}const _0x5e907f=Object[_0x194bd6(0x1c5)](null);_0x4cb954[_0x194bd6(0x117)]((_0x1f03ad,_0x151444)=>{const _0x2fe8ba=_0x194bd6;if(_0xf015c9[_0x2fe8ba(0x19b)](_0x151444))return;try{const _0x56ac43=valueOf(_0x1f03ad);if(typeof _0x56ac43===_0x2fe8ba(0x1da)&&Buffer[_0x2fe8ba(0x165)](_0x56ac43,'utf8')>MAX_CELL)throw new Error(_0x2fe8ba(0x101));}catch(_0x277444){_0x54e88f[_0x2fe8ba(0x120)]['push']({'rowNumber':_0x54fdf2,'field':_0x1f03ad[_0x2fe8ba(0x1b3)],'message':_0x277444[_0x2fe8ba(0x144)]});}});for(const [_0x308997,_0x21bde3]of _0x271188){try{const _0x39406f=_0x4cb954['getCell'](_0x28e965[_0x194bd6(0x166)](_0x308997)),_0x201357=_0x137368['get'](_0x21bde3);if(!isImageContainer(_0x201357['type'])){_0x5e907f[_0x21bde3]=convert(valueOf(_0x39406f),_0x201357);continue;}const _0x32563e=_0x37a9c8['get'](_0x54fdf2+':'+_0x28e965['get'](_0x308997))??[];if(_0x32563e[_0x194bd6(0x1bf)](_0x25888e=>_0x25888e[_0x194bd6(0x1ca)]))throw Error(_0x32563e[_0x194bd6(0x112)](_0x265e1b=>_0x265e1b[_0x194bd6(0x1ca)])[_0x194bd6(0x1ca)]);if(_0x39406f[_0x194bd6(0x182)]!=null&&_0x39406f['value']!==''&&!_0x32563e[_0x194bd6(0x1bf)](_0x15eaec=>_0x15eaec['nativeCell']))throw Error(_0x194bd6(0x110));const _0x4c725b=[];for(const _0x40c422 of _0x32563e)for(const _0x2480e5 of _0x40c422['media']){const _0x36866f=_0x39057e['get'](_0x2480e5);if(!_0x36866f)throw Error(_0x194bd6(0x1ba)+_0x2480e5+'.');const _0x2c61eb=hash(_0x36866f),_0x5d5e45=_0x44933f['get'](_0x2c61eb)??validateImageBytes(_0x36866f);if(!_0x44933f[_0x194bd6(0x19b)](_0x5d5e45[_0x194bd6(0x18d)])){_0x3211af+=_0x5d5e45[_0x194bd6(0x1a6)];if(_0x3211af>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x44933f[_0x194bd6(0x118)](_0x5d5e45[_0x194bd6(0x18d)],_0x5d5e45);}_0x4c725b[_0x194bd6(0x164)](_0x5d5e45['contentHash']);}if(!_0x4c725b[_0x194bd6(0x14e)]&&_0x201357['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x4c725b[_0x194bd6(0x14e)])_0x54e88f[_0x194bd6(0x11a)][_0x194bd6(0x164)]({'rowNumber':_0x54fdf2,'field':_0x21bde3,'hashes':_0x4c725b});_0x5e907f[_0x21bde3]=_0x4c725b['map'](_0xa81166=>{const _0x504157=_0x194bd6,_0x3c45a3=_0x44933f['get'](_0xa81166),_0x5e8942=_0x3c45a3[_0x504157(0x137)]===_0x504157(0x1cc)?'jpg':_0x3c45a3[_0x504157(0x137)][_0x504157(0x175)](0x6),_0x1aa02d=_0xa81166+'.'+_0x5e8942,_0xa967c9=_0x504157(0x17b)+'0'[_0x504157(0x155)](0x40)+'/'+_0x1aa02d;return _0x201357[_0x504157(0x137)][_0x504157(0x19d)]()===_0x504157(0x13d)?{'fileName':_0x1aa02d,'filePath':_0xa967c9}:{'key':_0xa967c9,'name':_0x1aa02d,'type':_0x3c45a3[_0x504157(0x137)],'size':_0x3c45a3[_0x504157(0x1a6)]};});}catch(_0x15f71c){_0x54e88f[_0x194bd6(0x120)]['push']({'rowNumber':_0x54fdf2,'field':_0x21bde3,'message':_0x15f71c[_0x194bd6(0x144)]});}}_0x54e88f[_0x194bd6(0xfc)]['push']({'rowNumber':_0x54fdf2,'values':_0x5e907f});}if(_0x54e88f[_0x194bd6(0x11f)])_0x54e88f[_0x194bd6(0x11f)]=[..._0x44933f[_0x194bd6(0x1e2)]()];if(_0x41f03e)_0x54e88f[_0x194bd6(0x1cf)][_0x194bd6(0x164)](_0x41f03e+_0x194bd6(0x13c));return _0x54e88f;}function a144_0x2378(){const _0x40977c=['filter','formula','materialized','sheet','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','decimal','appCode','localeCompare','cells','test','generalPurposeBitFlag','jszip','fileNameStr','readBigUInt64LE','type','pop','result','includes','extraFieldsLength','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','upload','write','subarray','file','./utils','lastIndexOf','exceljs','message','generated','col','xl/workbook.xml','Expected\x20a\x20text\x20cell.','fileNameRaw','Invalid\x20worksheet\x20merge\x20reference.','Image\x20XML\x20event\x20budget\x20exceeded.','fromBuffer','Image\x20XML\x20node\x20budget\x20exceeded.','length','entryCount','openReadStream','hex','isInteger','_xlnm.Print_Area','Invalid\x20XLSX\x20entry.','repeat','parse','utf8','fileComment','datetime','imageFields','parseOpen','isArray','end','Non-canonical\x20worksheet\x20ZIP\x20entry.','headerRow','readEntryCursor','stringify','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','charCodeAt','push','byteLength','get','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Invalid\x20dataset\x20field\x20extension\x20metadata.','add','\x20columns.','updateTime','opentag','rowCount','Invalid\x20defined\x20name\x20coordinate.','from','abs','Only\x20.xlsx\x20files\x20are\x20supported.','data','.xlsx','processAttributes','slice','extraFieldRaw','integer','fileName','hiddenRow','Worksheet\x20coordinate\x20exceeds\x20','dataset-import/','Worksheet\x20column\x20objects\x20exceed\x20100000.','Unsupported\x20field\x20type:\x20','worksheets','exec','1050126jHEPnj','every','value','columnCount','parseClose','Duplicate\x20dataset\x20field\x20codes.','boolean','readEntry','Invalid\x20ZIP\x20local\x20file\x20header.','before','Required\x20field\x20is\x20not\x20mapped:\x20','12780486cAthAU','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','contentHash','number','Worksheet\x20merge\x20work\x20exceeds\x20100000.','isFile','mapping','code','attributes','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Dataset\x20field\x20metadata\x20is\x20missing.','bottom','serial_number','4737180yONVTi','compressedSize','equals','has','object','toLowerCase','Duplicate\x20header:\x20','trim','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','creatorName','tenantCode','text','batchSize','./utf8','size','exceljs/lib/xlsx/xform/book/defined-name-xform.js','required','6pBpgnw','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','Invalid\x20worksheet\x20coordinate.','ref','readUInt32LE','entries','Invalid\x20worksheet\x20XML:\x20','concat','bitFlag','address','autoIncrement','313688BTkWpv','extend','uploadFields','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','Missing\x20image\x20media:\x20','getTime','1267266MtWALm','Required\x20value\x20is\x20missing.','utf8decode','some','destroy','name','extraFields','source','xlsx','create','parseInt','uncompressedSize','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','File\x20is\x20not\x20an\x20XLSX\x20workbook.','error','createTime','image/jpeg','./reader/readerFor','Unknown\x20or\x20generated\x20mapping\x20field:\x20','warnings','extname','Invalid\x20worksheet\x20nested\x20cell.','Invalid\x20worksheet\x20hyperlink\x20reference.','isFinite','sha256','dataValidations','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','fields','reference','Worksheet\x20exceeds\x20','string','Invalid\x20worksheet\x20XML.','72jtPTxj','fileCommentRaw','textarea','isSafeInteger','hidden','Formula\x20has\x20no\x20cached\x20result.','values','deleted','externalFileAttributes','date','decodeEx','left','Invalid\x20worksheet\x20column\x20range.','dir','483469CDCJWV','map','rows','original','sharedFormula','startsWith','max','Cell\x20exceeds\x2064\x20KB.','split','getRow','readUInt16LE','Duplicate\x20workbook\x20ZIP\x20entry.','Requested\x20worksheet\x20does\x20not\x20exist.','unixPermissions','close','min','relativeOffsetOfLocalHeader','right','top','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','sort','modifierId','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','isBuffer','find','resolve','handleUTF8','6905655PtoNrR','exceljs/lib/utils/col-cache.js','eachCell','set','sourceType','imageCells','dataset','Unknown\x20Excel\x20header:\x20','Invalid\x20worksheet\x20nested\x20row.','parseText','media','errors','model','mergeCell','XML\x20DTD/entities\x20are\x20not\x20supported.','readExtraFields','[Content_Types].xml','properties','row','definedName'];a144_0x2378=function(){return _0x40977c;};return a144_0x2378();}
@@ -1 +1 @@
1
- (function(_0x1ec0b6,_0x4a31f0){const _0x222352=a142_0x423b,_0x532885=_0x1ec0b6();while(!![]){try{const _0x32463e=-parseInt(_0x222352(0x10f))/0x1+parseInt(_0x222352(0x14f))/0x2*(parseInt(_0x222352(0x11f))/0x3)+-parseInt(_0x222352(0x117))/0x4*(-parseInt(_0x222352(0x14c))/0x5)+parseInt(_0x222352(0x13b))/0x6*(parseInt(_0x222352(0x123))/0x7)+-parseInt(_0x222352(0x149))/0x8*(-parseInt(_0x222352(0x111))/0x9)+-parseInt(_0x222352(0x14a))/0xa+-parseInt(_0x222352(0x115))/0xb*(parseInt(_0x222352(0x142))/0xc);if(_0x32463e===_0x4a31f0)break;else _0x532885['push'](_0x532885['shift']());}catch(_0x4f131d){_0x532885['push'](_0x532885['shift']());}}}(a142_0xed89,0xe06ff));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a142_0x423b(_0x551b08,_0x3acbbf){_0x551b08=_0x551b08-0x10f;const _0xed89c7=a142_0xed89();let _0x423be7=_0xed89c7[_0x551b08];return _0x423be7;}import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x28c077,_0x417ad8){const _0x5ec453=a142_0x423b;if(!Number[_0x5ec453(0x132)](_0x28c077)||!Number[_0x5ec453(0x132)](_0x417ad8)||_0x28c077<0x1||_0x417ad8<0x1||_0x28c077*_0x417ad8>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function a142_0xed89(){const _0x29b0d1=['Invalid\x20GIF\x20block.','332647ptTbes','readUInt32BE','Invalid\x20GIF\x20LZW\x20code\x20size.','Invalid\x20PNG\x20end.','Missing\x20PNG\x20data/end.','concat','max','Truncated\x20GIF.','readUInt16LE','push','pngjs','numFrames','IDAT','toString','Invalid\x20GIF\x20trailer.','isSafeInteger','Invalid\x20PNG\x20color/depth/interlace.','decodeAndBlitFrameRGBA','Invalid\x20PNG\x20decoded\x20scanline\x20size.','Truncated\x20PNG\x20data.','GIF\x20image\x20has\x20no\x20palette.','Invalid\x20PNG\x20header.','digest','Truncated\x20PNG\x20chunk.','222oFQQGW','omggif','Truncated\x20GIF\x20data.','subarray','update','GIF87a','from','60dNYPGv','decode','ascii','hex','acTL','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Missing\x20GIF\x20trailer.','13304qqkZeL','7662570MfPOXw','frameInfo','6595zTfcaN','GIF89a','sha256','138KwlutZ','message','1370398sQtvPp','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','8037hXrlzp','image/png','width','includes','4329215zPXNNm','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','292sHoafO','length','equals','image/jpeg','ceil','IHDR','height','IEND','73224GDqwDI','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','read'];a142_0xed89=function(){return _0x29b0d1;};return a142_0xed89();}function validateGif(_0x20a341){const _0x2ee6cb=a142_0x423b;let _0x1a360b=0xd,_0x57da15=0x0,_0x5e9788=0x0;const _0x1664c3=_0x20a341[_0x2ee6cb(0x12b)](0x6),_0x300c94=_0x20a341[_0x2ee6cb(0x12b)](0x8),_0x54801c=_0x20a341[0xa]&0x80?0x1<<(_0x20a341[0xa]&0x7)+0x1:0x0,_0x5c6566=_0x168d2d=>{const _0x22e0ee=_0x2ee6cb;if(_0x1a360b+_0x168d2d>_0x20a341[_0x22e0ee(0x118)])throw Error(_0x22e0ee(0x13d));};_0x1a360b+=_0x54801c*0x3,_0x5c6566(0x0);const _0x234e90=()=>{const _0x15257d=_0x2ee6cb,_0x33a102=[];while(!![]){_0x5c6566(0x1);const _0xae94aa=_0x20a341[_0x1a360b++];if(!_0xae94aa)break;_0x5c6566(_0xae94aa),_0x33a102[_0x15257d(0x12c)](_0x20a341[_0x15257d(0x13e)](_0x1a360b,_0x1a360b+_0xae94aa)),_0x1a360b+=_0xae94aa;}return Buffer[_0x15257d(0x128)](_0x33a102);};while(_0x1a360b<_0x20a341[_0x2ee6cb(0x118)]){const _0x57c1cc=_0x20a341[_0x1a360b++];if(_0x57c1cc===0x3b){if(!_0x57da15||_0x1a360b!==_0x20a341[_0x2ee6cb(0x118)])throw Error(_0x2ee6cb(0x131));return;}if(_0x57c1cc===0x21){_0x5c6566(0x1),_0x1a360b++,_0x234e90();continue;}if(_0x57c1cc!==0x2c)throw Error(_0x2ee6cb(0x122));_0x5c6566(0x9);const _0x4853d4=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b),_0x3a5c32=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b+0x2),_0x11a3e1=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b+0x4),_0x30d2ef=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b+0x6),_0x1180a3=_0x20a341[_0x1a360b+0x8];_0x1a360b+=0x9,dimensions(_0x11a3e1,_0x30d2ef);if(_0x4853d4+_0x11a3e1>_0x1664c3||_0x3a5c32+_0x30d2ef>_0x300c94||++_0x57da15>0x2710||(_0x5e9788+=_0x1664c3*_0x300c94)>MAX_PIXELS)throw Error(_0x2ee6cb(0x147));const _0x56e452=_0x1180a3&0x80?0x1<<(_0x1180a3&0x7)+0x1:_0x54801c;if(!_0x56e452)throw Error(_0x2ee6cb(0x137));_0x1180a3&0x80&&(_0x5c6566(_0x56e452*0x3),_0x1a360b+=_0x56e452*0x3);_0x5c6566(0x1);const _0x336985=_0x20a341[_0x1a360b++];if(_0x336985<0x2||_0x336985>0x8)throw Error(_0x2ee6cb(0x125));const _0x48a205=_0x234e90(),_0x5a46dd=0x1<<_0x336985,_0x5eaea4=_0x5a46dd+0x1;let _0x2d79b8=_0x336985+0x1,_0x378f7e=_0x5eaea4+0x1,_0x2b7098=0x0,_0x525475=-0x1,_0x4cd6ef=0x0,_0xa426f0=![];const _0x3b09c5=new Uint32Array(0x1000),_0x2364c1=new Uint16Array(0x1000);for(let _0x434c33=0x0;_0x434c33<_0x5a46dd;_0x434c33++){_0x3b09c5[_0x434c33]=0x1,_0x2364c1[_0x434c33]=_0x434c33;}while(_0x2b7098+_0x2d79b8<=_0x48a205[_0x2ee6cb(0x118)]*0x8){let _0x571740=0x0;for(let _0x55d757=0x0;_0x55d757<_0x2d79b8;_0x55d757++,_0x2b7098++)_0x571740|=(_0x48a205[_0x2b7098>>0x3]>>(_0x2b7098&0x7)&0x1)<<_0x55d757;if(_0x571740===_0x5a46dd){_0x2d79b8=_0x336985+0x1,_0x378f7e=_0x5eaea4+0x1,_0x525475=-0x1;continue;}if(_0x571740===_0x5eaea4){_0xa426f0=!![];break;}if(_0x571740>_0x378f7e||_0x571740===_0x378f7e&&_0x525475<0x0||_0x525475<0x0&&_0x571740>=_0x5a46dd)throw Error(_0x2ee6cb(0x110));const _0x7fd2fe=_0x571740===_0x378f7e?_0x3b09c5[_0x525475]+0x1:_0x3b09c5[_0x571740],_0x21d14e=_0x571740===_0x378f7e?_0x2364c1[_0x525475]:_0x2364c1[_0x571740];if(!_0x7fd2fe||_0x21d14e>=_0x56e452||(_0x4cd6ef+=_0x7fd2fe)>_0x11a3e1*_0x30d2ef)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x525475>=0x0&&_0x378f7e<0x1000){_0x3b09c5[_0x378f7e]=_0x3b09c5[_0x525475]+0x1,_0x2364c1[_0x378f7e]=Math[_0x2ee6cb(0x129)](_0x2364c1[_0x525475],_0x21d14e),_0x378f7e++;if(_0x378f7e===0x1<<_0x2d79b8&&_0x2d79b8<0xc)_0x2d79b8++;}_0x525475=_0x571740;}if(!_0xa426f0||_0x4cd6ef!==_0x11a3e1*_0x30d2ef)throw Error(_0x2ee6cb(0x116));}throw Error(_0x2ee6cb(0x148));}export function validateImageBytes(_0x60987e){const _0x2c493c=a142_0x423b;if(!_0x60987e[_0x2c493c(0x118)]||_0x60987e[_0x2c493c(0x118)]>0xa*0x400*0x400)throw Error('Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.');let _0x27e8c9;try{if(_0x60987e[_0x2c493c(0x13e)](0x0,0x8)[_0x2c493c(0x119)](Buffer[_0x2c493c(0x141)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x60987e['length']<0x21||_0x60987e['toString']('ascii',0xc,0x10)!==_0x2c493c(0x11c))throw Error(_0x2c493c(0x138));dimensions(_0x60987e[_0x2c493c(0x124)](0x10),_0x60987e['readUInt32BE'](0x14));const _0x4e1bc5=_0x60987e[_0x2c493c(0x124)](0x10),_0x14ea91=_0x60987e[_0x2c493c(0x124)](0x14),_0x3b9087=_0x60987e[0x18],_0x1f1c9f=_0x60987e[0x19],_0x3bddb7=_0x60987e[0x1c],_0x10f91f={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1f1c9f];if(!_0x10f91f||![0x1,0x2,0x4,0x8,0x10][_0x2c493c(0x114)](_0x3b9087)||_0x3bddb7>0x1)throw Error(_0x2c493c(0x133));const _0x269b7d=_0x33e3ed=>Math[_0x2c493c(0x11b)](_0x33e3ed*_0x10f91f*_0x3b9087/0x8)+0x1;let _0x323bba=_0x269b7d(_0x4e1bc5)*_0x14ea91;if(_0x3bddb7){_0x323bba=0x0;for(const [_0x51db7a,_0x50660d,_0x36ea34,_0x2801a5]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 _0x46d4d2=Math[_0x2c493c(0x129)](0x0,Math[_0x2c493c(0x11b)]((_0x4e1bc5-_0x51db7a)/_0x36ea34)),_0x22c498=Math[_0x2c493c(0x129)](0x0,Math[_0x2c493c(0x11b)]((_0x14ea91-_0x50660d)/_0x2801a5));if(_0x46d4d2&&_0x22c498)_0x323bba+=_0x269b7d(_0x46d4d2)*_0x22c498;}}let _0x49d7c3=0x8,_0x59d38d=![];const _0x2578ff=[];while(_0x49d7c3<_0x60987e[_0x2c493c(0x118)]){if(_0x49d7c3+0xc>_0x60987e[_0x2c493c(0x118)])throw Error(_0x2c493c(0x13a));const _0x3a7072=_0x60987e['readUInt32BE'](_0x49d7c3),_0x43ed16=_0x60987e[_0x2c493c(0x130)]('ascii',_0x49d7c3+0x4,_0x49d7c3+0x8);if(_0x43ed16===_0x2c493c(0x146))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x49d7c3+_0x3a7072+0xc>_0x60987e[_0x2c493c(0x118)])throw Error(_0x2c493c(0x136));if(_0x43ed16===_0x2c493c(0x12f))_0x2578ff[_0x2c493c(0x12c)](_0x60987e[_0x2c493c(0x13e)](_0x49d7c3+0x8,_0x49d7c3+0x8+_0x3a7072));_0x49d7c3+=_0x3a7072+0xc;if(_0x43ed16===_0x2c493c(0x11e)){if(_0x3a7072||_0x49d7c3!==_0x60987e[_0x2c493c(0x118)])throw Error(_0x2c493c(0x126));_0x59d38d=!![];break;}}if(!_0x59d38d||!_0x2578ff[_0x2c493c(0x118)])throw Error(_0x2c493c(0x127));if(inflateSync(Buffer[_0x2c493c(0x128)](_0x2578ff),{'maxOutputLength':_0x323bba+0x1})[_0x2c493c(0x118)]!==_0x323bba)throw Error(_0x2c493c(0x135));const {PNG:_0x44bc30}=require(_0x2c493c(0x12d)),_0x230aaf=_0x44bc30['sync'][_0x2c493c(0x121)](_0x60987e,{'checkCRC':!![]});dimensions(_0x230aaf['width'],_0x230aaf[_0x2c493c(0x11d)]),_0x27e8c9=_0x2c493c(0x112);}else{if(_0x60987e[0x0]===0xff&&_0x60987e[0x1]===0xd8){if(_0x60987e['at'](-0x2)!==0xff||_0x60987e['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x1b08dd=require('jpeg-js'),_0x2d3a04=_0x1b08dd[_0x2c493c(0x143)](_0x60987e,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x2d3a04[_0x2c493c(0x113)],_0x2d3a04[_0x2c493c(0x11d)]),_0x27e8c9=_0x2c493c(0x11a);}else{if([_0x2c493c(0x140),_0x2c493c(0x14d)]['includes'](_0x60987e['toString'](_0x2c493c(0x144),0x0,0x6))){if(_0x60987e[_0x2c493c(0x118)]<0xe||_0x60987e['at'](-0x1)!==0x3b)throw Error(_0x2c493c(0x12a));dimensions(_0x60987e['readUInt16LE'](0x6),_0x60987e[_0x2c493c(0x12b)](0x8)),validateGif(_0x60987e);const {GifReader:_0x2bc4fd}=require(_0x2c493c(0x13c)),_0x495147=new _0x2bc4fd(_0x60987e);dimensions(_0x495147['width'],_0x495147[_0x2c493c(0x11d)]);const _0x196b68=_0x495147[_0x2c493c(0x12e)]();if(!_0x196b68||_0x196b68>0x2710||_0x196b68*_0x495147['width']*_0x495147['height']>MAX_PIXELS)throw Error(_0x2c493c(0x147));const _0x4198eb=new Uint8Array(_0x495147['width']*_0x495147['height']*0x4);for(let _0x51dcb3=0x0;_0x51dcb3<_0x196b68;_0x51dcb3++){const _0x1dda44=_0x495147[_0x2c493c(0x14b)](_0x51dcb3);if(_0x1dda44['x']+_0x1dda44[_0x2c493c(0x113)]>_0x495147[_0x2c493c(0x113)]||_0x1dda44['y']+_0x1dda44[_0x2c493c(0x11d)]>_0x495147[_0x2c493c(0x11d)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0x495147[_0x2c493c(0x134)](_0x51dcb3,_0x4198eb);}_0x27e8c9='image/gif';}else throw Error(_0x2c493c(0x120));}}}catch(_0x505077){throw Error('Invalid\x20image:\x20'+_0x505077[_0x2c493c(0x150)]);}return{'contentHash':createHash(_0x2c493c(0x14e))[_0x2c493c(0x13f)](_0x60987e)[_0x2c493c(0x139)](_0x2c493c(0x145)),'type':_0x27e8c9,'size':_0x60987e[_0x2c493c(0x118)],'bytes':_0x60987e};}
1
+ (function(_0x1c9469,_0x1a8a46){const _0x418faa=a145_0x5a98,_0x446e02=_0x1c9469();while(!![]){try{const _0x3d3de2=-parseInt(_0x418faa(0xd3))/0x1+parseInt(_0x418faa(0xd8))/0x2*(parseInt(_0x418faa(0xd7))/0x3)+parseInt(_0x418faa(0xb0))/0x4*(-parseInt(_0x418faa(0xc9))/0x5)+parseInt(_0x418faa(0xe6))/0x6*(parseInt(_0x418faa(0xdb))/0x7)+-parseInt(_0x418faa(0xda))/0x8*(-parseInt(_0x418faa(0xbf))/0x9)+parseInt(_0x418faa(0xdf))/0xa*(parseInt(_0x418faa(0xa9))/0xb)+-parseInt(_0x418faa(0xd6))/0xc;if(_0x3d3de2===_0x1a8a46)break;else _0x446e02['push'](_0x446e02['shift']());}catch(_0x431e4b){_0x446e02['push'](_0x446e02['shift']());}}}(a145_0x1b73,0x609ae));function a145_0x5a98(_0xbae0ae,_0x287444){_0xbae0ae=_0xbae0ae-0xa9;const _0x1b7363=a145_0x1b73();let _0x5a988e=_0x1b7363[_0xbae0ae];return _0x5a988e;}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x1b73(){const _0x5d03c1=['110mYPAzt','read','Missing\x20PNG\x20data/end.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Invalid\x20GIF\x20LZW\x20pixel\x20data.','message','Missing\x20GIF\x20trailer.','222mBMxYJ','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','328163xfJgzK','pngjs','IEND','sha256','hex','Invalid\x20GIF\x20LZW\x20code\x20size.','Invalid\x20GIF\x20block.','395288qRGBZd','GIF\x20frame\x20exceeds\x20canvas.','Invalid\x20image:\x20','max','ascii','Invalid\x20PNG\x20decoded\x20scanline\x20size.','height','image/gif','length','includes','ceil','IDAT','update','Invalid\x20PNG\x20header.','decodeAndBlitFrameRGBA','15489BTqOVY','Truncated\x20PNG\x20data.','readUInt32BE','jpeg-js','push','readUInt16LE','toString','GIF87a','Invalid\x20PNG\x20end.','decode','20LWmoiE','IHDR','GIF\x20image\x20has\x20no\x20palette.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Animated\x20PNG\x20is\x20not\x20supported.','digest','equals','from','Invalid\x20PNG\x20color/depth/interlace.','isSafeInteger','135066SFBPVT','numFrames','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','12010104yZTpVU','2328459OXydjI','2vUKZna','Truncated\x20JPEG.','2504RnLhBX','53711uvKBcP','width','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','subarray'];a145_0x1b73=function(){return _0x5d03c1;};return a145_0x1b73();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x37e8e7,_0x8e2db5){const _0x37d4d0=a145_0x5a98;if(!Number[_0x37d4d0(0xd2)](_0x37e8e7)||!Number['isSafeInteger'](_0x8e2db5)||_0x37e8e7<0x1||_0x8e2db5<0x1||_0x37e8e7*_0x8e2db5>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x1e0da0){const _0x50879c=a145_0x5a98;let _0x4bac52=0xd,_0x2c6ce4=0x0,_0x42190c=0x0;const _0x1906f6=_0x1e0da0[_0x50879c(0xc4)](0x6),_0x45b105=_0x1e0da0[_0x50879c(0xc4)](0x8),_0x4bdf67=_0x1e0da0[0xa]&0x80?0x1<<(_0x1e0da0[0xa]&0x7)+0x1:0x0,_0x55bbbb=_0x395968=>{const _0x5d2b75=_0x50879c;if(_0x4bac52+_0x395968>_0x1e0da0[_0x5d2b75(0xb8)])throw Error('Truncated\x20GIF\x20data.');};_0x4bac52+=_0x4bdf67*0x3,_0x55bbbb(0x0);const _0x4ef889=()=>{const _0x328773=_0x50879c,_0x1c9320=[];while(!![]){_0x55bbbb(0x1);const _0x2f664f=_0x1e0da0[_0x4bac52++];if(!_0x2f664f)break;_0x55bbbb(_0x2f664f),_0x1c9320[_0x328773(0xc3)](_0x1e0da0[_0x328773(0xde)](_0x4bac52,_0x4bac52+_0x2f664f)),_0x4bac52+=_0x2f664f;}return Buffer['concat'](_0x1c9320);};while(_0x4bac52<_0x1e0da0['length']){const _0x1506f7=_0x1e0da0[_0x4bac52++];if(_0x1506f7===0x3b){if(!_0x2c6ce4||_0x4bac52!==_0x1e0da0[_0x50879c(0xb8)])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x1506f7===0x21){_0x55bbbb(0x1),_0x4bac52++,_0x4ef889();continue;}if(_0x1506f7!==0x2c)throw Error(_0x50879c(0xaf));_0x55bbbb(0x9);const _0x49a063=_0x1e0da0['readUInt16LE'](_0x4bac52),_0x36fd49=_0x1e0da0['readUInt16LE'](_0x4bac52+0x2),_0xe2062e=_0x1e0da0['readUInt16LE'](_0x4bac52+0x4),_0x5f9390=_0x1e0da0[_0x50879c(0xc4)](_0x4bac52+0x6),_0x67f0da=_0x1e0da0[_0x4bac52+0x8];_0x4bac52+=0x9,dimensions(_0xe2062e,_0x5f9390);if(_0x49a063+_0xe2062e>_0x1906f6||_0x36fd49+_0x5f9390>_0x45b105||++_0x2c6ce4>0x2710||(_0x42190c+=_0x1906f6*_0x45b105)>MAX_PIXELS)throw Error(_0x50879c(0xe2));const _0x3bcdcf=_0x67f0da&0x80?0x1<<(_0x67f0da&0x7)+0x1:_0x4bdf67;if(!_0x3bcdcf)throw Error(_0x50879c(0xcb));_0x67f0da&0x80&&(_0x55bbbb(_0x3bcdcf*0x3),_0x4bac52+=_0x3bcdcf*0x3);_0x55bbbb(0x1);const _0x44d6aa=_0x1e0da0[_0x4bac52++];if(_0x44d6aa<0x2||_0x44d6aa>0x8)throw Error(_0x50879c(0xae));const _0x16c523=_0x4ef889(),_0x414dcf=0x1<<_0x44d6aa,_0x469c33=_0x414dcf+0x1;let _0x149b56=_0x44d6aa+0x1,_0x12f983=_0x469c33+0x1,_0x583d65=0x0,_0x3bd48e=-0x1,_0x2b3c32=0x0,_0x1d3d33=![];const _0x55f892=new Uint32Array(0x1000),_0x182f15=new Uint16Array(0x1000);for(let _0x4adb8d=0x0;_0x4adb8d<_0x414dcf;_0x4adb8d++){_0x55f892[_0x4adb8d]=0x1,_0x182f15[_0x4adb8d]=_0x4adb8d;}while(_0x583d65+_0x149b56<=_0x16c523['length']*0x8){let _0x7abba4=0x0;for(let _0x4b49a2=0x0;_0x4b49a2<_0x149b56;_0x4b49a2++,_0x583d65++)_0x7abba4|=(_0x16c523[_0x583d65>>0x3]>>(_0x583d65&0x7)&0x1)<<_0x4b49a2;if(_0x7abba4===_0x414dcf){_0x149b56=_0x44d6aa+0x1,_0x12f983=_0x469c33+0x1,_0x3bd48e=-0x1;continue;}if(_0x7abba4===_0x469c33){_0x1d3d33=!![];break;}if(_0x7abba4>_0x12f983||_0x7abba4===_0x12f983&&_0x3bd48e<0x0||_0x3bd48e<0x0&&_0x7abba4>=_0x414dcf)throw Error(_0x50879c(0xdd));const _0x28aa66=_0x7abba4===_0x12f983?_0x55f892[_0x3bd48e]+0x1:_0x55f892[_0x7abba4],_0xfa657=_0x7abba4===_0x12f983?_0x182f15[_0x3bd48e]:_0x182f15[_0x7abba4];if(!_0x28aa66||_0xfa657>=_0x3bcdcf||(_0x2b3c32+=_0x28aa66)>_0xe2062e*_0x5f9390)throw Error(_0x50879c(0xe3));if(_0x3bd48e>=0x0&&_0x12f983<0x1000){_0x55f892[_0x12f983]=_0x55f892[_0x3bd48e]+0x1,_0x182f15[_0x12f983]=Math[_0x50879c(0xb3)](_0x182f15[_0x3bd48e],_0xfa657),_0x12f983++;if(_0x12f983===0x1<<_0x149b56&&_0x149b56<0xc)_0x149b56++;}_0x3bd48e=_0x7abba4;}if(!_0x1d3d33||_0x2b3c32!==_0xe2062e*_0x5f9390)throw Error(_0x50879c(0xcc));}throw Error(_0x50879c(0xe5));}export function validateImageBytes(_0x1fcc97){const _0x2aea87=a145_0x5a98;if(!_0x1fcc97[_0x2aea87(0xb8)]||_0x1fcc97[_0x2aea87(0xb8)]>0xa*0x400*0x400)throw Error(_0x2aea87(0xd5));let _0x345fb6;try{if(_0x1fcc97[_0x2aea87(0xde)](0x0,0x8)[_0x2aea87(0xcf)](Buffer[_0x2aea87(0xd0)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1fcc97['length']<0x21||_0x1fcc97['toString'](_0x2aea87(0xb4),0xc,0x10)!==_0x2aea87(0xca))throw Error(_0x2aea87(0xbd));dimensions(_0x1fcc97['readUInt32BE'](0x10),_0x1fcc97[_0x2aea87(0xc1)](0x14));const _0x37592a=_0x1fcc97[_0x2aea87(0xc1)](0x10),_0xbdc278=_0x1fcc97[_0x2aea87(0xc1)](0x14),_0x2cb061=_0x1fcc97[0x18],_0x31c088=_0x1fcc97[0x19],_0x500b63=_0x1fcc97[0x1c],_0xd96a1b={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x31c088];if(!_0xd96a1b||![0x1,0x2,0x4,0x8,0x10][_0x2aea87(0xb9)](_0x2cb061)||_0x500b63>0x1)throw Error(_0x2aea87(0xd1));const _0x24eab4=_0x102bcf=>Math[_0x2aea87(0xba)](_0x102bcf*_0xd96a1b*_0x2cb061/0x8)+0x1;let _0x261dd0=_0x24eab4(_0x37592a)*_0xbdc278;if(_0x500b63){_0x261dd0=0x0;for(const [_0x542704,_0x4ca4c2,_0x48fdb5,_0x6faeb3]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 _0x29ddba=Math[_0x2aea87(0xb3)](0x0,Math[_0x2aea87(0xba)]((_0x37592a-_0x542704)/_0x48fdb5)),_0x44c351=Math[_0x2aea87(0xb3)](0x0,Math['ceil']((_0xbdc278-_0x4ca4c2)/_0x6faeb3));if(_0x29ddba&&_0x44c351)_0x261dd0+=_0x24eab4(_0x29ddba)*_0x44c351;}}let _0x4ea368=0x8,_0x96056a=![];const _0x472d38=[];while(_0x4ea368<_0x1fcc97[_0x2aea87(0xb8)]){if(_0x4ea368+0xc>_0x1fcc97[_0x2aea87(0xb8)])throw Error('Truncated\x20PNG\x20chunk.');const _0x23c6c3=_0x1fcc97[_0x2aea87(0xc1)](_0x4ea368),_0x2f49bf=_0x1fcc97[_0x2aea87(0xc5)]('ascii',_0x4ea368+0x4,_0x4ea368+0x8);if(_0x2f49bf==='acTL')throw Error(_0x2aea87(0xcd));if(_0x4ea368+_0x23c6c3+0xc>_0x1fcc97[_0x2aea87(0xb8)])throw Error(_0x2aea87(0xc0));if(_0x2f49bf===_0x2aea87(0xbb))_0x472d38['push'](_0x1fcc97[_0x2aea87(0xde)](_0x4ea368+0x8,_0x4ea368+0x8+_0x23c6c3));_0x4ea368+=_0x23c6c3+0xc;if(_0x2f49bf===_0x2aea87(0xab)){if(_0x23c6c3||_0x4ea368!==_0x1fcc97[_0x2aea87(0xb8)])throw Error(_0x2aea87(0xc7));_0x96056a=!![];break;}}if(!_0x96056a||!_0x472d38[_0x2aea87(0xb8)])throw Error(_0x2aea87(0xe1));if(inflateSync(Buffer['concat'](_0x472d38),{'maxOutputLength':_0x261dd0+0x1})[_0x2aea87(0xb8)]!==_0x261dd0)throw Error(_0x2aea87(0xb5));const {PNG:_0x25c602}=require(_0x2aea87(0xaa)),_0x27bbf5=_0x25c602['sync'][_0x2aea87(0xe0)](_0x1fcc97,{'checkCRC':!![]});dimensions(_0x27bbf5['width'],_0x27bbf5[_0x2aea87(0xb6)]),_0x345fb6='image/png';}else{if(_0x1fcc97[0x0]===0xff&&_0x1fcc97[0x1]===0xd8){if(_0x1fcc97['at'](-0x2)!==0xff||_0x1fcc97['at'](-0x1)!==0xd9)throw Error(_0x2aea87(0xd9));const _0x5d3d9e=require(_0x2aea87(0xc2)),_0x1d8b19=_0x5d3d9e[_0x2aea87(0xc8)](_0x1fcc97,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x1d8b19[_0x2aea87(0xdc)],_0x1d8b19[_0x2aea87(0xb6)]),_0x345fb6='image/jpeg';}else{if([_0x2aea87(0xc6),'GIF89a'][_0x2aea87(0xb9)](_0x1fcc97['toString'](_0x2aea87(0xb4),0x0,0x6))){if(_0x1fcc97[_0x2aea87(0xb8)]<0xe||_0x1fcc97['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x1fcc97['readUInt16LE'](0x6),_0x1fcc97[_0x2aea87(0xc4)](0x8)),validateGif(_0x1fcc97);const {GifReader:_0x49b651}=require('omggif'),_0x3ae033=new _0x49b651(_0x1fcc97);dimensions(_0x3ae033['width'],_0x3ae033[_0x2aea87(0xb6)]);const _0x322303=_0x3ae033[_0x2aea87(0xd4)]();if(!_0x322303||_0x322303>0x2710||_0x322303*_0x3ae033[_0x2aea87(0xdc)]*_0x3ae033[_0x2aea87(0xb6)]>MAX_PIXELS)throw Error(_0x2aea87(0xe2));const _0x262dea=new Uint8Array(_0x3ae033[_0x2aea87(0xdc)]*_0x3ae033['height']*0x4);for(let _0x60b2e6=0x0;_0x60b2e6<_0x322303;_0x60b2e6++){const _0x43f7e=_0x3ae033['frameInfo'](_0x60b2e6);if(_0x43f7e['x']+_0x43f7e[_0x2aea87(0xdc)]>_0x3ae033[_0x2aea87(0xdc)]||_0x43f7e['y']+_0x43f7e['height']>_0x3ae033[_0x2aea87(0xb6)])throw Error(_0x2aea87(0xb1));_0x3ae033[_0x2aea87(0xbe)](_0x60b2e6,_0x262dea);}_0x345fb6=_0x2aea87(0xb7);}else throw Error(_0x2aea87(0xe7));}}}catch(_0x14fde9){throw Error(_0x2aea87(0xb2)+_0x14fde9[_0x2aea87(0xe4)]);}return{'contentHash':createHash(_0x2aea87(0xac))[_0x2aea87(0xbc)](_0x1fcc97)[_0x2aea87(0xce)](_0x2aea87(0xad)),'type':_0x345fb6,'size':_0x1fcc97[_0x2aea87(0xb8)],'bytes':_0x1fcc97};}
@@ -1 +1 @@
1
- function a143_0x5881(){const _0x54a6c5=['XLRICHVALUE','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','basename','absoluteAnchor','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','map','sheetData','future\x20metadata\x20index','175575CjyOcL','rdRichValue','true','attrs','r:embed','row','Relationships','value','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','anchor\x20start\x20offset','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','error','fromEntries','_localImage','http://schemas.openxmlformats.org/package/2006/relationships','rdRichValueStructure','rvData','posix','Missing\x20or\x20ambiguous\x20','http://schemas.microsoft.com/office/2017/06/relationships/','http://www.wps.cn/officeDocument/2017/relationships/','rvb','startsWith','children','dirname','anchor\x20end','hidden\x20image\x20row','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','reduce','_rels','Unsupported\x20workbook\x20namespace.','Relationship\x20target\x20escapes\x20workbook:\x20','metadata','charCodeAt','Unsupported\x20worksheet\x20namespace.','rich\x20structure\x20index','blipFill','valueMetadata','uri','Unsupported\x20rich\x20image\x20relation\x20namespace.','anchor\x20end\x20offset','message','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','WPS\x20image\x20blip','drawing','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','pic','flatMap','values','image\x20height','159545vihzhJ','anchor\x20column','anchor\x20start','futureMetadata','http://purl.oclc.org/ooxml/officeDocument/relationships','sheet','9WgHVTo','twoCellAnchor','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','isSafeInteger','join','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','replace','Unsupported\x20WPS\x20cell\x20image\x20namespace.','length','sheetMetadata','push','12pNgCfj','shared','rel','filter','xl/cellimages.xml','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','col','.rels','rvStructures','includes','\x20relationship\x20in\x20','cellImages','../','Unsupported\x20mapped\x20cell\x20metadata\x20type.','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','#VALUE!','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','Missing\x20rich\x20image\x20relationship.','http://purl.oclc.org/ooxml/spreadsheetml/main','value\x20metadata\x20index','Invalid\x20relationship\x20target:\x20','Ambiguous\x20XML\x20attribute.','1951147ITeovo','name','richValueRels','hidden','utf8','302230bugQwL','wsDr','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','blip','xl/workbook.xml','test','slice','isFinite','nvPicPr','1603YfFPIy','Unsupported\x20rich\x20structure\x20namespace.','text','metadataTypes','Missing\x20rich\x20value.','colOff','get','image\x20cell\x20row','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Duplicate\x20mapped\x20image\x20cell.','sheetFormatPr','attributes','local','set','oneCellAnchor','anchor\x20row','metadata\x20types','normalize','toString','close','ext','sheets','has','Unsupported\x20rich\x20value\x20namespace.','http://purl.oclc.org/ooxml/drawingml/main','4ErkvPD','workbook','r:link','XML\x20DTD/entities\x20are\x20not\x20supported.','2ebUAdE','add','some','exec','closetag','Missing\x20XLSX\x20part:\x20','image\x20formula','worksheet','rich\x20metadata\x20record','9736umiXOC','rich\x20image\x20relationship\x20index','defaultRowHeight','image','Unsupported\x20drawing\x20image.','409434AhQqOJ','rowOff','extLst','Missing\x20future\x20metadata\x20block.','Unsupported\x20drawing\x20namespace.','richValueRel','cellImage','round','32751KxZYgx','Internal','from','MAX_SAFE_INTEGER','Image\x20XML\x20node\x20budget\x20exceeded.','pop','WPS\x20image\x20name','type','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','r:id'];a143_0x5881=function(){return _0x54a6c5;};return a143_0x5881();}const a143_0x6b3a21=a143_0x56b7;(function(_0x37f51a,_0x254232){const _0x38028e=a143_0x56b7,_0x9ad846=_0x37f51a();while(!![]){try{const _0x5db4f4=-parseInt(_0x38028e(0x118))/0x1*(-parseInt(_0x38028e(0xbc))/0x2)+-parseInt(_0x38028e(0xd2))/0x3*(parseInt(_0x38028e(0xb8))/0x4)+-parseInt(_0x38028e(0xe5))/0x5+-parseInt(_0x38028e(0xca))/0x6+parseInt(_0x38028e(0x14f))/0x7*(parseInt(_0x38028e(0xc5))/0x8)+-parseInt(_0x38028e(0x11e))/0x9*(-parseInt(_0x38028e(0x146))/0xa)+-parseInt(_0x38028e(0x141))/0xb*(parseInt(_0x38028e(0x12b))/0xc);if(_0x5db4f4===_0x254232)break;else _0x9ad846['push'](_0x9ad846['shift']());}catch(_0x14a5c7){_0x9ad846['push'](_0x9ad846['shift']());}}}(a143_0x5881,0x2b2ad));import a143_0x20caf2 from'node:path';import{SaxesParser}from'saxes';const SHEET=['http://schemas.openxmlformats.org/spreadsheetml/2006/main',a143_0x6b3a21(0x13d)],DRAWING=[a143_0x6b3a21(0xda),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=['http://schemas.openxmlformats.org/drawingml/2006/main',a143_0x6b3a21(0xb7)],OFFICE_RELS=[a143_0x6b3a21(0x157),a143_0x6b3a21(0x11c)],PACKAGE=[a143_0x6b3a21(0xf4)],RICH=[a143_0x6b3a21(0xee)],RICH_RELS=[a143_0x6b3a21(0xf0)],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object[a143_0x6b3a21(0xf2)]([...[a143_0x6b3a21(0xb9),a143_0x6b3a21(0xb4),'sheet',a143_0x6b3a21(0xc3),a143_0x6b3a21(0xe3),a143_0x6b3a21(0xea),'c','f','v','sheetFormatPr','drawing',a143_0x6b3a21(0x106),a143_0x6b3a21(0x152),'metadataType',a143_0x6b3a21(0x11b),'valueMetadata','bk','rc',a143_0x6b3a21(0xcc)]['map'](_0x48ab46=>[_0x48ab46,SHEET]),...[a143_0x6b3a21(0x147),'oneCellAnchor','twoCellAnchor',a143_0x6b3a21(0xe0),a143_0x6b3a21(0xd4),'to',a143_0x6b3a21(0x131),a143_0x6b3a21(0x154),'rowOff',a143_0x6b3a21(0x163),a143_0x6b3a21(0x114),a143_0x6b3a21(0x14e),'cNvPr',a143_0x6b3a21(0x10a)][a143_0x6b3a21(0xe2)](_0x4bd4a1=>[_0x4bd4a1,DRAWING]),...[a143_0x6b3a21(0xfb),a143_0x6b3a21(0xf6),'rv',a143_0x6b3a21(0x133),'s','k'][a143_0x6b3a21(0xe2)](_0x359aa1=>[_0x359aa1,RICH]),[a143_0x6b3a21(0x149),DRAWING_MAIN],['richValueRels',RICH_RELS],[a143_0x6b3a21(0x12d),RICH_RELS],[a143_0x6b3a21(0xeb),PACKAGE],['Relationship',PACKAGE],[a143_0x6b3a21(0x136),WPS],[a143_0x6b3a21(0xd0),WPS]]),matches=(_0x508fa6,_0xcc2a53,_0x2ffc8b=DEFAULT_NS[_0xcc2a53]??[])=>_0x508fa6[a143_0x6b3a21(0x142)]===_0xcc2a53&&_0x2ffc8b['includes'](_0x508fa6[a143_0x6b3a21(0x10c)]),children=(_0x31b2dd,_0x275fba,_0x130fb7=DEFAULT_NS[_0x275fba])=>_0x31b2dd[a143_0x6b3a21(0xfd)][a143_0x6b3a21(0x12e)](_0x692655=>matches(_0x692655,_0x275fba,_0x130fb7)),chain=(_0x52d7dd,..._0x4bf6a5)=>_0x4bf6a5[a143_0x6b3a21(0x102)]((_0x3e1910,_0x3912b8)=>_0x3e1910[a143_0x6b3a21(0x115)](_0x2f9862=>children(_0x2f9862,_0x3912b8)),[_0x52d7dd]),relationshipTypes=_0x1c2ad7=>{const _0x4f64b2=a143_0x6b3a21;if([_0x4f64b2(0xe6),_0x4f64b2(0xf5)][_0x4f64b2(0x134)](_0x1c2ad7))return[_0x4f64b2(0xf9)+_0x1c2ad7];if(_0x1c2ad7===_0x4f64b2(0xcf))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x1c2ad7===_0x4f64b2(0xd0)||_0x1c2ad7===_0x4f64b2(0x136))return[_0x4f64b2(0xfa)+_0x1c2ad7];return OFFICE_RELS[_0x4f64b2(0xe2)](_0x4a8722=>_0x4a8722+'/'+_0x1c2ad7);};function one(_0x1560da,_0x1fb3a8){const _0x944f46=a143_0x6b3a21;if(_0x1560da[_0x944f46(0x128)]!==0x1)throw Error(_0x944f46(0xf8)+_0x1fb3a8+'.');return _0x1560da[0x0];}function integer(_0x4d8348,_0x1edf03,_0x101c59=0x186a0){const _0x21bea2=a143_0x6b3a21;if(!_0x4d8348||!/^\d+$/[_0x21bea2(0x14b)](_0x4d8348)||!Number[_0x21bea2(0x121)](Number(_0x4d8348))||Number(_0x4d8348)>_0x101c59)throw Error('Invalid\x20'+_0x1edf03+'.');return Number(_0x4d8348);}function a143_0x56b7(_0x3eecc5,_0x15821a){_0x3eecc5=_0x3eecc5-0xb4;const _0x588153=a143_0x5881();let _0x56b764=_0x588153[_0x3eecc5];return _0x56b764;}export function resolveWorksheetImages(_0x3ee9c3,_0x3b04bc,_0x223a01){const _0x20546a=a143_0x6b3a21;let _0x1a1977=0x0,_0x481fae=0x0,_0x370a14=0x0;const _0x5e5f4d=new Map(),_0x58b242=_0x5073e2=>{const _0x8bf13b=a143_0x56b7;if(_0x5e5f4d[_0x8bf13b(0xb5)](_0x5073e2))return _0x5e5f4d['get'](_0x5073e2);const _0x435e91=_0x3ee9c3[_0x8bf13b(0x155)](_0x5073e2);if(!_0x435e91)throw Error(_0x8bf13b(0xc1)+_0x5073e2+'.');const _0x35983e={'name':'','uri':'','attrs':{},'children':[],'text':''},_0xc54d34=[_0x35983e],_0x4a635f=new SaxesParser({'xmlns':!![]}),_0x9401b=()=>{if(++_0x481fae>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x4a635f['on']('doctype',()=>{const _0xda4b21=_0x8bf13b;throw Error(_0xda4b21(0xbb));}),_0x4a635f['on']('opentag',_0x3ff5e5=>{const _0x4e25ac=_0x8bf13b;_0x9401b();if(++_0x1a1977>0x7a120||_0xc54d34[_0x4e25ac(0x128)]>0x40)throw Error(_0x4e25ac(0xd6));const _0x3357f6={};for(const _0x5b2288 of Object[_0x4e25ac(0x116)](_0x3ff5e5[_0x4e25ac(0x15a)])){const _0x58909a=OFFICE_RELS[_0x4e25ac(0x134)](_0x5b2288[_0x4e25ac(0x10c)])?'r:'+_0x5b2288[_0x4e25ac(0x15b)]:_0x5b2288['uri']?'{'+_0x5b2288[_0x4e25ac(0x10c)]+'}'+_0x5b2288[_0x4e25ac(0x15b)]:_0x5b2288[_0x4e25ac(0x15b)];if(_0x58909a in _0x3357f6)throw Error(_0x4e25ac(0x140));_0x3357f6[_0x58909a]=_0x5b2288[_0x4e25ac(0xec)];}const _0x57d67d={'name':_0x3ff5e5[_0x4e25ac(0x15b)],'uri':_0x3ff5e5[_0x4e25ac(0x10c)],'attrs':_0x3357f6,'children':[],'text':''};_0xc54d34['at'](-0x1)[_0x4e25ac(0xfd)][_0x4e25ac(0x12a)](_0x57d67d),_0xc54d34[_0x4e25ac(0x12a)](_0x57d67d);}),_0x4a635f['on'](_0x8bf13b(0x151),_0x3cb8b2=>{const _0x4fcc21=_0x8bf13b;_0x9401b();const _0x22f68b=_0xc54d34['at'](-0x1);_0x22f68b[_0x4fcc21(0x151)]+=_0x3cb8b2;if(_0x22f68b['text'][_0x4fcc21(0x128)]>0x10000)throw Error(_0x4fcc21(0x130));}),_0x4a635f['on'](_0x8bf13b(0xc0),()=>{const _0x17b18d=_0x8bf13b;_0x9401b(),_0xc54d34[_0x17b18d(0xd7)]();}),_0x4a635f['on'](_0x8bf13b(0xf1),_0x598fd6=>{throw _0x598fd6;}),_0x4a635f['write'](_0x435e91[_0x8bf13b(0x161)](_0x8bf13b(0x145)))[_0x8bf13b(0x162)]();const _0x2e9545=one(_0x35983e[_0x8bf13b(0xfd)],_0x5073e2);return _0x5e5f4d['set'](_0x5073e2,_0x2e9545),_0x2e9545;},_0x5e74a0=new Map(),_0x180d3d=_0x55e414=>{const _0x5f4a73=a143_0x56b7;if(_0x5e74a0[_0x5f4a73(0xb5)](_0x55e414))return _0x5e74a0[_0x5f4a73(0x155)](_0x55e414);const _0x48da99=a143_0x20caf2['posix'][_0x5f4a73(0x122)](a143_0x20caf2[_0x5f4a73(0xf7)][_0x5f4a73(0xfe)](_0x55e414),_0x5f4a73(0x103),a143_0x20caf2['posix'][_0x5f4a73(0xdf)](_0x55e414)+_0x5f4a73(0x132));if(!_0x3ee9c3[_0x5f4a73(0xb5)](_0x48da99))return[];const _0x355ba4=new Set(),_0x4a1533=_0x58b242(_0x48da99);if(!matches(_0x4a1533,_0x5f4a73(0xeb)))throw Error('Unsupported\x20relationship\x20namespace\x20in\x20'+_0x48da99+'.');const _0x42055e=children(_0x4a1533,'Relationship')[_0x5f4a73(0xe2)](_0x383808=>{const _0x3e1f14=_0x5f4a73,{Id:_0xcf1301,Type:_0x3d98c2,Target:_0x199128,TargetMode:_0x12dd95}=_0x383808[_0x3e1f14(0xe8)];if(!_0xcf1301||_0x355ba4[_0x3e1f14(0xb5)](_0xcf1301)||!_0x3d98c2)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x48da99+'.');return _0x355ba4[_0x3e1f14(0xbd)](_0xcf1301),{'id':_0xcf1301,'type':_0x3d98c2,'target':_0x199128??'','mode':_0x12dd95};});return _0x5e74a0[_0x5f4a73(0x15c)](_0x55e414,_0x42055e),_0x42055e;},_0x563d11=(_0x32f854,_0x4de983)=>{const _0xf95ebb=a143_0x56b7,{target:_0x193187,mode:_0x452638}=_0x4de983;if(_0x452638&&_0x452638!==_0xf95ebb(0xd3))throw Error(_0xf95ebb(0xe1)+_0x32f854+'.');if(!_0x193187||_0x193187[_0xf95ebb(0x134)]('\x5c')||/[?#%\x00-\x20]/[_0xf95ebb(0x14b)](_0x193187)||/^[a-z][a-z0-9+.-]*:/i[_0xf95ebb(0x14b)](_0x193187)||_0x193187['startsWith']('//'))throw Error(_0xf95ebb(0x13f)+_0x32f854+'.');const _0x257e7b=_0x193187['startsWith']('/')?_0x193187[_0xf95ebb(0x14c)](0x1):a143_0x20caf2[_0xf95ebb(0xf7)][_0xf95ebb(0x160)](a143_0x20caf2[_0xf95ebb(0xf7)][_0xf95ebb(0x122)](a143_0x20caf2[_0xf95ebb(0xf7)][_0xf95ebb(0xfe)](_0x32f854),_0x193187));if(_0x257e7b[_0xf95ebb(0xfc)](_0xf95ebb(0x137))||_0x257e7b==='..'||!_0x257e7b[_0xf95ebb(0xfc)]('xl/'))throw Error(_0xf95ebb(0x105)+_0x32f854+'.');return _0x257e7b;},_0x402320=(_0x1bbb8c,_0x136c7d,_0x75f927)=>{const _0xffea60=a143_0x56b7,_0x11cd75=_0x180d3d(_0x1bbb8c)[_0xffea60(0x12e)](_0x30806f=>_0x30806f['id']===_0x136c7d&&relationshipTypes(_0x75f927)[_0xffea60(0x134)](_0x30806f[_0xffea60(0xd9)]));if(_0x11cd75['length']!==0x1)throw Error(_0xffea60(0xf8)+_0x75f927+'\x20relationship\x20in\x20'+_0x1bbb8c+'.');return _0x563d11(_0x1bbb8c,_0x11cd75[0x0]);},_0x3bfdc5=(_0xd39f3b,_0x3a582b)=>{const _0x7f4c30=a143_0x56b7,_0x31486a=_0x180d3d(_0xd39f3b)[_0x7f4c30(0x12e)](_0x221661=>relationshipTypes(_0x3a582b)[_0x7f4c30(0x134)](_0x221661[_0x7f4c30(0xd9)]));if(_0x31486a[_0x7f4c30(0x128)]!==0x1)throw Error(_0x7f4c30(0xf8)+_0x3a582b+_0x7f4c30(0x135)+_0xd39f3b+'.');return _0x563d11(_0xd39f3b,_0x31486a[0x0]);},_0x1b90e7=_0x20546a(0x14a),_0x370582=_0x58b242(_0x1b90e7);if(!matches(_0x370582,_0x20546a(0xb9)))throw Error(_0x20546a(0x104));const _0x29fd4d=one(chain(_0x370582,_0x20546a(0xb4),_0x20546a(0x11d))[_0x20546a(0x12e)](_0x29d1d7=>_0x29d1d7[_0x20546a(0xe8)][_0x20546a(0x142)]===_0x3b04bc),_0x20546a(0xc3)),_0x3956c1=_0x402320(_0x1b90e7,_0x29fd4d['attrs']['r:id'],'worksheet'),_0xdee79a=_0x58b242(_0x3956c1);if(!matches(_0xdee79a,_0x20546a(0xc3)))throw Error(_0x20546a(0x108));const _0x36fa54=chain(_0xdee79a,'sheetData',_0x20546a(0xea)),_0xd4dcd1=new Map(),_0x3613af=new Set(_0x36fa54['filter'](_0x2c2637=>_0x2c2637[_0x20546a(0xe8)][_0x20546a(0x144)]==='1'||_0x2c2637['attrs']['hidden']===_0x20546a(0xe7))[_0x20546a(0xe2)](_0x3d6f90=>integer(_0x3d6f90[_0x20546a(0xe8)]['r'],_0x20546a(0x100)))),_0xf0e3f3=_0x3ff477=>{const _0x49cc15=_0x20546a,_0x4f28a0=_0x3ff477===undefined?0xf:Number(_0x3ff477);if(!Number[_0x49cc15(0x14d)](_0x4f28a0)||_0x4f28a0<=0x0||_0x4f28a0>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x49cc15(0xd1)](_0x4f28a0*0x319c);},_0x62aeeb=_0xf0e3f3(children(_0xdee79a,_0x20546a(0x159))[0x0]?.[_0x20546a(0xe8)][_0x20546a(0xc7)]);for(const _0xd19d57 of _0x36fa54)if(_0xd19d57[_0x20546a(0xe8)]['ht']!==undefined)_0xd4dcd1['set'](integer(_0xd19d57['attrs']['r'],'image\x20row\x20height\x20coordinate'),_0xf0e3f3(_0xd19d57[_0x20546a(0xe8)]['ht']));const _0x425e79=[],_0x511310=_0x4e8ee2=>{const _0x59d347=_0x20546a;if(!_0x223a01['has'](_0x4e8ee2[_0x59d347(0x131)]))return;if(++_0x370a14>0x2710)throw Error(_0x59d347(0x139));_0x425e79[_0x59d347(0x12a)](_0x3613af[_0x59d347(0xb5)](_0x4e8ee2['row'])?{..._0x4e8ee2,'hiddenRow':!![]}:_0x4e8ee2);},_0x534219=_0x51fc1a=>({'row':integer(one(children(_0x51fc1a,_0x20546a(0xea),DRAWING),_0x20546a(0x15e))[_0x20546a(0x151)],_0x20546a(0x15e),0x1869f)+0x1,'col':integer(one(children(_0x51fc1a,'col'),_0x20546a(0x119))['text'],'anchor\x20column',0xff)+0x1});for(const _0x349e7b of children(_0xdee79a,'drawing')){const _0x588e1a=_0x402320(_0x3956c1,_0x349e7b['attrs']['r:id'],_0x20546a(0x112)),_0x11be4b=_0x58b242(_0x588e1a);if(!matches(_0x11be4b,_0x20546a(0x147)))throw Error(_0x20546a(0xce));for(const _0xf0a202 of _0x11be4b[_0x20546a(0xfd)]){if(![_0x20546a(0x15d),_0x20546a(0x11f),_0x20546a(0xe0)][_0x20546a(0xbe)](_0x288ab7=>matches(_0xf0a202,_0x288ab7)))continue;if(_0xf0a202[_0x20546a(0x142)]==='absoluteAnchor')throw Error(_0x20546a(0x148)+_0x3b04bc+'.');const _0x2349fe=_0x534219(one(children(_0xf0a202,_0x20546a(0xd4)),'anchor\x20start'));if(!_0x223a01['has'](_0x2349fe[_0x20546a(0x131)]))continue;let _0x5ad59c;const _0x2f96f3=one(children(_0xf0a202,'from'),_0x20546a(0x11a)),_0x1f8b0f=integer(one(children(_0x2f96f3,_0x20546a(0xcb)),_0x20546a(0xef))[_0x20546a(0x151)],_0x20546a(0xef),Number['MAX_SAFE_INTEGER']),_0x48bb92=_0xd4dcd1[_0x20546a(0x155)](_0x2349fe[_0x20546a(0xea)])??_0x62aeeb;if(_0x1f8b0f>=_0x48bb92)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0x2349fe[_0x20546a(0xea)]+'.');if(_0xf0a202[_0x20546a(0x142)]===_0x20546a(0x15d)){const _0xb76fe2=one(children(_0xf0a202,'ext'),'image\x20extent'),_0x2a0e7f=integer(_0xb76fe2['attrs']['cy'],_0x20546a(0x117),Number[_0x20546a(0xd5)]);if(!_0x2a0e7f||_0x1f8b0f+_0x2a0e7f>_0x48bb92)_0x5ad59c=_0x20546a(0xed);}if(_0xf0a202['name']===_0x20546a(0x11f)){const _0xd944bd=one(children(_0xf0a202,'to'),_0x20546a(0xff)),_0x2518ba=_0x534219(_0xd944bd),_0x24f1d7=integer(one(children(_0xd944bd,'rowOff'),_0x20546a(0x10e))[_0x20546a(0x151)],_0x20546a(0x10e),Number[_0x20546a(0xd5)]),_0x3c389=_0xd4dcd1['get'](_0x2518ba[_0x20546a(0xea)])??_0x62aeeb;if(_0x24f1d7>_0x3c389||_0x2518ba['row']===_0x2349fe[_0x20546a(0xea)]&&_0x24f1d7<=_0x1f8b0f)_0x5ad59c=_0x20546a(0xde);if(_0x2518ba[_0x20546a(0xea)]<_0x2349fe[_0x20546a(0xea)]||_0x2518ba['row']>_0x2349fe['row']+0x1||_0x2518ba['row']===_0x2349fe[_0x20546a(0xea)]+0x1&&_0x24f1d7!==0x0)_0x5ad59c='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x1f2319=chain(_0xf0a202,_0x20546a(0x114),_0x20546a(0x10a),_0x20546a(0x149));for(const _0x10d671 of _0x1f2319){if(_0x10d671[_0x20546a(0xe8)][_0x20546a(0xba)])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x511310({..._0x2349fe,'media':[_0x402320(_0x588e1a,_0x10d671['attrs'][_0x20546a(0xe9)],_0x20546a(0xc8))],..._0x5ad59c?{'error':_0x5ad59c}:{}});}if(!_0x1f2319[_0x20546a(0x128)])_0x511310({..._0x2349fe,'media':[],'error':_0x20546a(0xc9)});}}const _0xe33e97=_0x270572=>{const _0x4e894b=_0x20546a,_0x30f796=_0x58b242(_0x3bfdc5(_0x1b90e7,_0x4e894b(0x129)));if(!matches(_0x30f796,'metadata'))throw Error('Unsupported\x20metadata\x20namespace.');const _0x5ca5f4=integer(_0x270572[_0x4e894b(0xe8)]['vm'],_0x4e894b(0x13e));if(!_0x5ca5f4)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x53a3e5=children(one(children(_0x30f796,_0x4e894b(0x10b)),_0x4e894b(0x10b)),'bk')[_0x5ca5f4-0x1];if(!_0x53a3e5)throw Error('Missing\x20value\x20metadata\x20block.');const _0x37811e=one(children(_0x53a3e5,'rc'),_0x4e894b(0xc4)),_0x2c9adb=integer(_0x37811e[_0x4e894b(0xe8)]['t'],'metadata\x20type\x20index'),_0x276859=children(one(children(_0x30f796,_0x4e894b(0x152)),_0x4e894b(0x15f)),'metadataType')[_0x2c9adb-0x1];if(!_0x2c9adb||_0x276859?.[_0x4e894b(0xe8)]['name']!==_0x4e894b(0xdd))throw Error(_0x4e894b(0x138));const _0x5d0d06=one(children(_0x30f796,'futureMetadata')[_0x4e894b(0x12e)](_0x5a04e1=>_0x5a04e1[_0x4e894b(0xe8)][_0x4e894b(0x142)]===_0x4e894b(0xdd)),'rich\x20future\x20metadata'),_0x499192=children(_0x5d0d06,'bk')[integer(_0x37811e[_0x4e894b(0xe8)]['v'],_0x4e894b(0xe4))];if(!_0x499192)throw Error(_0x4e894b(0xcd));const _0x3b248d=chain(_0x499192,'extLst')[_0x4e894b(0x115)](_0x1851f3=>children(_0x1851f3,'ext',SHEET))[_0x4e894b(0x12e)](_0x1914f3=>_0x1914f3[_0x4e894b(0xe8)]['uri']?.['toLowerCase']()===_0x4e894b(0x110)),_0x272f10=integer(one(_0x3b248d[_0x4e894b(0x115)](_0x20cb7b=>children(_0x20cb7b,_0x4e894b(0xfb))),'rich\x20value\x20binding')['attrs']['i'],'rich\x20value\x20index'),_0x556fe0=_0x58b242(_0x3bfdc5(_0x1b90e7,'rdRichValue'));if(!matches(_0x556fe0,_0x4e894b(0xf6)))throw Error(_0x4e894b(0xb6));const _0x1fa27b=children(_0x556fe0,'rv')[_0x272f10];if(!_0x1fa27b)throw Error(_0x4e894b(0x153));const _0xc0b486=_0x58b242(_0x3bfdc5(_0x1b90e7,_0x4e894b(0xf5)));if(!matches(_0xc0b486,_0x4e894b(0x133)))throw Error(_0x4e894b(0x150));const _0x38743b=children(_0xc0b486,'s')[integer(_0x1fa27b['attrs']['s'],_0x4e894b(0x109))];if(!_0x38743b||_0x38743b['attrs']['t']!==_0x4e894b(0xf3))throw Error(_0x4e894b(0x124));const _0x4006f5=children(_0x38743b,'k'),_0x49ec4b=_0x4006f5['map']((_0xe944f5,_0x42ce24)=>_0xe944f5[_0x4e894b(0xe8)]['n']==='_rvRel:LocalImageIdentifier'?_0x42ce24:-0x1)[_0x4e894b(0x12e)](_0x14c8d5=>_0x14c8d5>=0x0);if(_0x49ec4b[_0x4e894b(0x128)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0xebc36a=children(_0x1fa27b,'v',RICH)[_0x49ec4b[0x0]];if(!_0xebc36a)throw Error('Missing\x20local\x20image\x20identifier\x20value.');const _0x8c339e=_0x3bfdc5(_0x1b90e7,'richValueRel'),_0x4b6985=_0x58b242(_0x8c339e);if(!matches(_0x4b6985,_0x4e894b(0x143)))throw Error(_0x4e894b(0x10d));const _0x24e8dc=children(_0x4b6985,'rel')[integer(_0xebc36a[_0x4e894b(0x151)],_0x4e894b(0xc6))];if(!_0x24e8dc)throw Error(_0x4e894b(0x13c));return _0x402320(_0x8c339e,_0x24e8dc[_0x4e894b(0xe8)][_0x4e894b(0xdc)],_0x4e894b(0xc8));};let _0x23a3b3;const _0x2f7bfb=_0x17da80=>{const _0x2c4c15=_0x20546a;if(!_0x23a3b3){_0x23a3b3=new Map();const _0x22e441=_0x180d3d(_0x1b90e7)['filter'](_0x1c235f=>[...relationshipTypes(_0x2c4c15(0xd0)),...relationshipTypes(_0x2c4c15(0x136))][_0x2c4c15(0x134)](_0x1c235f[_0x2c4c15(0xd9)]));if(!_0x22e441[_0x2c4c15(0x128)]&&_0x3ee9c3['has'](_0x2c4c15(0x12f)))_0x22e441[_0x2c4c15(0x12a)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x22e441[_0x2c4c15(0x128)]!==0x1)throw Error(_0x2c4c15(0xdb));const _0x30e697=_0x563d11(_0x1b90e7,_0x22e441[0x0]),_0x56fac4=_0x58b242(_0x30e697);if(!matches(_0x56fac4,_0x2c4c15(0x136)))throw Error(_0x2c4c15(0x127));for(const _0x11d49a of children(_0x56fac4,_0x2c4c15(0xd0))){const _0x4e82a0=one(chain(_0x11d49a,_0x2c4c15(0x114),_0x2c4c15(0x14e),'cNvPr'),_0x2c4c15(0xd8))[_0x2c4c15(0xe8)]['name'];if(!_0x4e82a0||_0x23a3b3[_0x2c4c15(0xb5)](_0x4e82a0))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x181e67=one(chain(_0x11d49a,_0x2c4c15(0x114),'blipFill',_0x2c4c15(0x149)),_0x2c4c15(0x111));if(_0x181e67[_0x2c4c15(0xe8)][_0x2c4c15(0xba)])throw Error(_0x2c4c15(0x123));_0x23a3b3['set'](_0x4e82a0,_0x402320(_0x30e697,_0x181e67[_0x2c4c15(0xe8)][_0x2c4c15(0xe9)],'image'));}}const _0x53f4ee=_0x23a3b3[_0x2c4c15(0x155)](_0x17da80);if(!_0x53f4ee)throw Error('Missing\x20WPS\x20image\x20ID:\x20'+_0x17da80+'.');return _0x53f4ee;},_0x47597d=new Set();for(const _0x321249 of _0x36fa54[_0x20546a(0x115)](_0x13b94d=>children(_0x13b94d,'c'))){const _0x12d137=/^([A-Z]+)([1-9]\d*)$/[_0x20546a(0xbf)](_0x321249[_0x20546a(0xe8)]['r']??'');if(!_0x12d137)continue;let _0x2e5ddc=0x0;for(const _0x1132b8 of _0x12d137[0x1])_0x2e5ddc=_0x2e5ddc*0x1a+_0x1132b8[_0x20546a(0x107)](0x0)-0x40;if(!_0x223a01[_0x20546a(0xb5)](_0x2e5ddc))continue;const _0x576ae9=integer(_0x12d137[0x2],_0x20546a(0x156));if(_0x47597d[_0x20546a(0xb5)](_0x321249[_0x20546a(0xe8)]['r']))throw Error(_0x20546a(0x158));_0x47597d[_0x20546a(0xbd)](_0x321249['attrs']['r']);const _0x1571e3=children(_0x321249,'f');if(!_0x321249[_0x20546a(0xe8)]['vm']&&!_0x1571e3[_0x20546a(0x128)])continue;try{if(_0x576ae9<0x1||_0x2e5ddc>0x100)throw Error(_0x20546a(0x120));let _0x42cc6d;if(_0x321249['attrs']['vm']){if(_0x1571e3[_0x20546a(0x128)])throw Error(_0x20546a(0x113));if(_0x321249['attrs']['t']!=='e'||children(_0x321249,'v')['length']!==0x1||children(_0x321249,'v')[0x0]['text']!==_0x20546a(0x13a))throw Error(_0x20546a(0x13b));_0x42cc6d=_0xe33e97(_0x321249);}else{const _0x2cac2e=one(_0x1571e3,_0x20546a(0xc2));if(_0x2cac2e[_0x20546a(0xe8)]['t']===_0x20546a(0x12c)||_0x2cac2e[_0x20546a(0xe8)]['si'])throw Error(_0x20546a(0x125));const _0x209c80=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x2cac2e[_0x20546a(0x151)]);if(!_0x209c80)throw Error(_0x20546a(0x101));_0x42cc6d=_0x2f7bfb(_0x209c80[0x1][_0x20546a(0x126)](/""/g,'\x22'));}_0x511310({'row':_0x576ae9,'col':_0x2e5ddc,'media':[_0x42cc6d],'nativeCell':!![]});}catch(_0xc13a0f){_0x511310({'row':_0x576ae9,'col':_0x2e5ddc,'media':[],'nativeCell':!![],'error':_0xc13a0f[_0x20546a(0x10f)]});}}return _0x425e79;}
1
+ const a146_0x53d546=a146_0x3e02;function a146_0x3e02(_0x1a7b4e,_0x1be8bc){_0x1a7b4e=_0x1a7b4e-0x155;const _0x15beb0=a146_0x15be();let _0x3e02e1=_0x15beb0[_0x1a7b4e];return _0x3e02e1;}(function(_0x21530b,_0x342cd8){const _0x49394a=a146_0x3e02,_0x4c362f=_0x21530b();while(!![]){try{const _0x598124=parseInt(_0x49394a(0x1fc))/0x1*(parseInt(_0x49394a(0x1d9))/0x2)+parseInt(_0x49394a(0x203))/0x3+-parseInt(_0x49394a(0x177))/0x4*(parseInt(_0x49394a(0x185))/0x5)+parseInt(_0x49394a(0x1e5))/0x6+parseInt(_0x49394a(0x17c))/0x7*(-parseInt(_0x49394a(0x1c8))/0x8)+parseInt(_0x49394a(0x1cf))/0x9*(parseInt(_0x49394a(0x1f0))/0xa)+-parseInt(_0x49394a(0x19f))/0xb;if(_0x598124===_0x342cd8)break;else _0x4c362f['push'](_0x4c362f['shift']());}catch(_0x2f200d){_0x4c362f['push'](_0x4c362f['shift']());}}}(a146_0x15be,0xebbe4));function a146_0x15be(){const _0x53eced=['anchor\x20start','round','Ambiguous\x20XML\x20attribute.','rich\x20metadata\x20record','Relationship\x20target\x20escapes\x20workbook:\x20','image','.rels','futureMetadata','name','32eVjiys','image\x20row\x20height\x20coordinate','sheet','error','colOff','startsWith','toLowerCase','35793IYVBXN','text','closetag','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','wsDr','map','metadataTypes','http://www.wps.cn/officeDocument/2017/relationships/','rich\x20structure\x20index','isSafeInteger','2PzVYhs','XML\x20DTD/entities\x20are\x20not\x20supported.','rdRichValueStructure','Missing\x20or\x20ambiguous\x20','uri','oneCellAnchor','richValueRels','Relationship','length','get','exec','Missing\x20XLSX\x20part:\x20','1383702prBJnC','Missing\x20value\x20metadata\x20block.','metadataType','http://schemas.openxmlformats.org/drawingml/2006/main','push','_rvRel:LocalImageIdentifier','type','r:id','attributes','toString','flatMap','1370QgnVud','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','metadata\x20type\x20index','Image\x20XML\x20node\x20budget\x20exceeded.','blip','xl/cellimages.xml','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Unsupported\x20worksheet\x20namespace.','test','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','Missing\x20rich\x20value.','1647023DWhQTF','rvb','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','sheetMetadata','workbook','anchor\x20end','Unsupported\x20mapped\x20rich\x20value\x20structure.','2406342NvKGcS','XLRICHVALUE','posix','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','rvStructures','Invalid\x20relationship\x20target:\x20','local','message','rdRichValue','twoCellAnchor','basename','rowOff','replace','Missing\x20future\x20metadata\x20block.','set','Shared\x20image\x20formulas\x20are\x20not\x20supported.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','rel','image\x20height','join','r:embed','col','drawing','normalize','valueMetadata','doctype','nvPicPr','sheets','ext','rich\x20image\x20relationship\x20index','cNvPr','MAX_SAFE_INTEGER','WPS\x20image\x20blip','rvData','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','http://schemas.microsoft.com/office/2017/06/relationships/','28weMDse','Image\x20XML\x20event\x20budget\x20exceeded.','r:link','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','defaultRowHeight','1710422plCUSS','rich\x20value\x20binding','cellImages','Unsupported\x20metadata\x20namespace.','image\x20extent','pic','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','add','metadata','279520TlgJtT','Missing\x20WPS\x20image\x20ID:\x20','includes','External\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20WPS\x20cell\x20image\x20namespace.','worksheet','filter','future\x20metadata\x20index','some','Invalid\x20','sheetData','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','\x20relationship\x20in\x20','rich\x20value\x20index','anchor\x20end\x20offset','pop','anchor\x20start\x20offset','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Unsupported\x20rich\x20value\x20namespace.','from','rich\x20future\x20metadata','hidden','value\x20metadata\x20index','http://schemas.openxmlformats.org/package/2006/relationships','absoluteAnchor','9793157DyEWtc','Unsupported\x20rich\x20structure\x20namespace.','image\x20cell\x20row','Value\x20metadata\x20index\x20must\x20be\x20one-based.','blipFill','cellImage','Unsupported\x20workbook\x20namespace.','value','Unsupported\x20drawing\x20image.','Internal','Unsupported\x20relationship\x20namespace\x20in\x20','has','sheetFormatPr','extLst','write','slice','close','dirname','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','fromEntries','WPS\x20image\x20name','Missing\x20local\x20image\x20identifier\x20value.','Duplicate\x20mapped\x20image\x20cell.','children','anchor\x20column','isFinite','attrs','/xl/cellimages.xml','Unsupported\x20rich\x20image\x20relation\x20namespace.','row','values'];a146_0x15be=function(){return _0x53eced;};return a146_0x15be();}import a146_0x48906f from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x53d546(0x163),'http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x53d546(0x17a)],DRAWING_MAIN=[a146_0x53d546(0x1e8),'http://purl.oclc.org/ooxml/drawingml/main'],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a146_0x53d546(0x19d)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object[a146_0x53d546(0x1b3)]([...[a146_0x53d546(0x200),a146_0x53d546(0x16e),a146_0x53d546(0x1ca),a146_0x53d546(0x18a),a146_0x53d546(0x18f),a146_0x53d546(0x1bd),'c','f','v',a146_0x53d546(0x1ab),a146_0x53d546(0x169),a146_0x53d546(0x184),a146_0x53d546(0x1d5),a146_0x53d546(0x1e7),a146_0x53d546(0x1c6),a146_0x53d546(0x16b),'bk','rc',a146_0x53d546(0x1ac)][a146_0x53d546(0x1d4)](_0xee74e9=>[_0xee74e9,SHEET]),...['wsDr',a146_0x53d546(0x1de),a146_0x53d546(0x15c),a146_0x53d546(0x19e),a146_0x53d546(0x199),'to',a146_0x53d546(0x168),a146_0x53d546(0x1cc),a146_0x53d546(0x15e),a146_0x53d546(0x16f),a146_0x53d546(0x181),'nvPicPr','cNvPr','blipFill'][a146_0x53d546(0x1d4)](_0x2af9b9=>[_0x2af9b9,DRAWING]),...[a146_0x53d546(0x1fd),a146_0x53d546(0x174),'rv',a146_0x53d546(0x157),'s','k']['map'](_0x356341=>[_0x356341,RICH]),[a146_0x53d546(0x1f5),DRAWING_MAIN],[a146_0x53d546(0x1df),RICH_RELS],[a146_0x53d546(0x164),RICH_RELS],['Relationships',PACKAGE],[a146_0x53d546(0x1e0),PACKAGE],[a146_0x53d546(0x17e),WPS],[a146_0x53d546(0x1a4),WPS]]),matches=(_0x261819,_0x174178,_0x5cc880=DEFAULT_NS[_0x174178]??[])=>_0x261819[a146_0x53d546(0x1c7)]===_0x174178&&_0x5cc880[a146_0x53d546(0x187)](_0x261819[a146_0x53d546(0x1dd)]),children=(_0x3adc30,_0x50d81f,_0x4f0e5b=DEFAULT_NS[_0x50d81f])=>_0x3adc30[a146_0x53d546(0x1b7)][a146_0x53d546(0x18b)](_0x5b7ee1=>matches(_0x5b7ee1,_0x50d81f,_0x4f0e5b)),chain=(_0x1eede7,..._0x36975d)=>_0x36975d['reduce']((_0x2fb9c3,_0x20b5fa)=>_0x2fb9c3[a146_0x53d546(0x1ef)](_0xf25fca=>children(_0xf25fca,_0x20b5fa)),[_0x1eede7]),relationshipTypes=_0x2a7b94=>{const _0x87d09b=a146_0x53d546;if([_0x87d09b(0x15b),_0x87d09b(0x1db)][_0x87d09b(0x187)](_0x2a7b94))return[_0x87d09b(0x176)+_0x2a7b94];if(_0x2a7b94==='richValueRel')return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x2a7b94===_0x87d09b(0x1a4)||_0x2a7b94===_0x87d09b(0x17e))return[_0x87d09b(0x1d6)+_0x2a7b94];return OFFICE_RELS['map'](_0x311475=>_0x311475+'/'+_0x2a7b94);};function one(_0x5337a1,_0x351cf6){const _0x5a9643=a146_0x53d546;if(_0x5337a1[_0x5a9643(0x1e1)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x351cf6+'.');return _0x5337a1[0x0];}function integer(_0x198571,_0x17fddf,_0x33c764=0x186a0){const _0x3d73a3=a146_0x53d546;if(!_0x198571||!/^\d+$/[_0x3d73a3(0x1f9)](_0x198571)||!Number[_0x3d73a3(0x1d8)](Number(_0x198571))||Number(_0x198571)>_0x33c764)throw Error(_0x3d73a3(0x18e)+_0x17fddf+'.');return Number(_0x198571);}export function resolveWorksheetImages(_0x33cf1b,_0x420244,_0x271f3c){const _0x2ed138=a146_0x53d546;let _0x1076a4=0x0,_0x537ee3=0x0,_0x21a12d=0x0;const _0x508849=new Map(),_0x3bb62b=_0x3426b6=>{const _0x50685c=a146_0x3e02;if(_0x508849[_0x50685c(0x1aa)](_0x3426b6))return _0x508849[_0x50685c(0x1e2)](_0x3426b6);const _0x414fca=_0x33cf1b[_0x50685c(0x1e2)](_0x3426b6);if(!_0x414fca)throw Error(_0x50685c(0x1e4)+_0x3426b6+'.');const _0x31c60d={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x5aee2e=[_0x31c60d],_0x590f76=new SaxesParser({'xmlns':!![]}),_0x239530=()=>{const _0x340aca=_0x50685c;if(++_0x537ee3>0x1e8480)throw Error(_0x340aca(0x178));};_0x590f76['on'](_0x50685c(0x16c),()=>{const _0x2f8261=_0x50685c;throw Error(_0x2f8261(0x1da));}),_0x590f76['on']('opentag',_0x3c09f2=>{const _0x551849=_0x50685c;_0x239530();if(++_0x1076a4>0x7a120||_0x5aee2e['length']>0x40)throw Error(_0x551849(0x1f4));const _0x4040f4={};for(const _0x4ffb47 of Object[_0x551849(0x1be)](_0x3c09f2[_0x551849(0x1ed)])){const _0x46eba5=OFFICE_RELS[_0x551849(0x187)](_0x4ffb47['uri'])?'r:'+_0x4ffb47['local']:_0x4ffb47[_0x551849(0x1dd)]?'{'+_0x4ffb47['uri']+'}'+_0x4ffb47['local']:_0x4ffb47['local'];if(_0x46eba5 in _0x4040f4)throw Error(_0x551849(0x1c1));_0x4040f4[_0x46eba5]=_0x4ffb47[_0x551849(0x1a6)];}const _0x1a54db={'name':_0x3c09f2[_0x551849(0x159)],'uri':_0x3c09f2[_0x551849(0x1dd)],'attrs':_0x4040f4,'children':[],'text':''};_0x5aee2e['at'](-0x1)[_0x551849(0x1b7)][_0x551849(0x1e9)](_0x1a54db),_0x5aee2e[_0x551849(0x1e9)](_0x1a54db);}),_0x590f76['on'](_0x50685c(0x1d0),_0x7f2ca9=>{const _0x254442=_0x50685c;_0x239530();const _0x29639e=_0x5aee2e['at'](-0x1);_0x29639e[_0x254442(0x1d0)]+=_0x7f2ca9;if(_0x29639e['text'][_0x254442(0x1e1)]>0x10000)throw Error(_0x254442(0x1d2));}),_0x590f76['on'](_0x50685c(0x1d1),()=>{const _0x4e9633=_0x50685c;_0x239530(),_0x5aee2e[_0x4e9633(0x194)]();}),_0x590f76['on'](_0x50685c(0x1cb),_0x31e4d5=>{throw _0x31e4d5;}),_0x590f76[_0x50685c(0x1ad)](_0x414fca[_0x50685c(0x1ee)]('utf8'))[_0x50685c(0x1af)]();const _0x42bb48=one(_0x31c60d[_0x50685c(0x1b7)],_0x3426b6);return _0x508849['set'](_0x3426b6,_0x42bb48),_0x42bb48;},_0x4f4d0b=new Map(),_0x53f003=_0x5735d7=>{const _0x56461c=a146_0x3e02;if(_0x4f4d0b[_0x56461c(0x1aa)](_0x5735d7))return _0x4f4d0b['get'](_0x5735d7);const _0x2afb5f=a146_0x48906f[_0x56461c(0x155)][_0x56461c(0x166)](a146_0x48906f[_0x56461c(0x155)][_0x56461c(0x1b0)](_0x5735d7),'_rels',a146_0x48906f[_0x56461c(0x155)][_0x56461c(0x15d)](_0x5735d7)+_0x56461c(0x1c5));if(!_0x33cf1b['has'](_0x2afb5f))return[];const _0x22a498=new Set(),_0x2ccbbf=_0x3bb62b(_0x2afb5f);if(!matches(_0x2ccbbf,'Relationships'))throw Error(_0x56461c(0x1a9)+_0x2afb5f+'.');const _0x4a6437=children(_0x2ccbbf,_0x56461c(0x1e0))[_0x56461c(0x1d4)](_0x4a68cb=>{const _0x22f2c6=_0x56461c,{Id:_0x5d3d35,Type:_0x3bc453,Target:_0x37c2b6,TargetMode:_0x22ff72}=_0x4a68cb[_0x22f2c6(0x1ba)];if(!_0x5d3d35||_0x22a498[_0x22f2c6(0x1aa)](_0x5d3d35)||!_0x3bc453)throw Error(_0x22f2c6(0x1fa)+_0x2afb5f+'.');return _0x22a498[_0x22f2c6(0x183)](_0x5d3d35),{'id':_0x5d3d35,'type':_0x3bc453,'target':_0x37c2b6??'','mode':_0x22ff72};});return _0x4f4d0b[_0x56461c(0x161)](_0x5735d7,_0x4a6437),_0x4a6437;},_0x14bba4=(_0x5d6d62,_0x5a5e24)=>{const _0xad9136=a146_0x3e02,{target:_0x346035,mode:_0x5ed192}=_0x5a5e24;if(_0x5ed192&&_0x5ed192!==_0xad9136(0x1a8))throw Error(_0xad9136(0x1fe)+_0x5d6d62+'.');if(!_0x346035||_0x346035[_0xad9136(0x187)]('\x5c')||/[?#%\x00-\x20]/[_0xad9136(0x1f9)](_0x346035)||/^[a-z][a-z0-9+.-]*:/i[_0xad9136(0x1f9)](_0x346035)||_0x346035[_0xad9136(0x1cd)]('//'))throw Error(_0xad9136(0x158)+_0x5d6d62+'.');const _0x3eaafe=_0x346035[_0xad9136(0x1cd)]('/')?_0x346035[_0xad9136(0x1ae)](0x1):a146_0x48906f['posix'][_0xad9136(0x16a)](a146_0x48906f[_0xad9136(0x155)][_0xad9136(0x166)](a146_0x48906f[_0xad9136(0x155)]['dirname'](_0x5d6d62),_0x346035));if(_0x3eaafe[_0xad9136(0x1cd)]('../')||_0x3eaafe==='..'||!_0x3eaafe[_0xad9136(0x1cd)]('xl/'))throw Error(_0xad9136(0x1c3)+_0x5d6d62+'.');return _0x3eaafe;},_0x244a4d=(_0x35712d,_0x3a7656,_0x3ad583)=>{const _0x577510=a146_0x3e02,_0x114ee6=_0x53f003(_0x35712d)[_0x577510(0x18b)](_0x2ab6a8=>_0x2ab6a8['id']===_0x3a7656&&relationshipTypes(_0x3ad583)['includes'](_0x2ab6a8[_0x577510(0x1eb)]));if(_0x114ee6[_0x577510(0x1e1)]!==0x1)throw Error(_0x577510(0x1dc)+_0x3ad583+_0x577510(0x191)+_0x35712d+'.');return _0x14bba4(_0x35712d,_0x114ee6[0x0]);},_0x48b88d=(_0x47512e,_0x14f220)=>{const _0x182dc1=a146_0x3e02,_0x3e7fd2=_0x53f003(_0x47512e)[_0x182dc1(0x18b)](_0x5ae16a=>relationshipTypes(_0x14f220)[_0x182dc1(0x187)](_0x5ae16a['type']));if(_0x3e7fd2['length']!==0x1)throw Error(_0x182dc1(0x1dc)+_0x14f220+_0x182dc1(0x191)+_0x47512e+'.');return _0x14bba4(_0x47512e,_0x3e7fd2[0x0]);},_0x3f98bc='xl/workbook.xml',_0x1f5946=_0x3bb62b(_0x3f98bc);if(!matches(_0x1f5946,'workbook'))throw Error(_0x2ed138(0x1a5));const _0x394adf=one(chain(_0x1f5946,_0x2ed138(0x16e),_0x2ed138(0x1ca))[_0x2ed138(0x18b)](_0x4e622e=>_0x4e622e['attrs'][_0x2ed138(0x1c7)]===_0x420244),_0x2ed138(0x18a)),_0x195265=_0x244a4d(_0x3f98bc,_0x394adf[_0x2ed138(0x1ba)][_0x2ed138(0x1ec)],'worksheet'),_0x31a781=_0x3bb62b(_0x195265);if(!matches(_0x31a781,_0x2ed138(0x18a)))throw Error(_0x2ed138(0x1f8));const _0x143d2b=chain(_0x31a781,_0x2ed138(0x18f),'row'),_0x23822b=new Map(),_0x28ca03=new Set(_0x143d2b[_0x2ed138(0x18b)](_0x2a42e5=>_0x2a42e5[_0x2ed138(0x1ba)][_0x2ed138(0x19b)]==='1'||_0x2a42e5[_0x2ed138(0x1ba)]['hidden']==='true')['map'](_0x1570ac=>integer(_0x1570ac[_0x2ed138(0x1ba)]['r'],'hidden\x20image\x20row'))),_0x164f10=_0x5bfcb2=>{const _0x1832fb=_0x2ed138,_0x422c9d=_0x5bfcb2===undefined?0xf:Number(_0x5bfcb2);if(!Number[_0x1832fb(0x1b9)](_0x422c9d)||_0x422c9d<=0x0||_0x422c9d>409.5)throw Error(_0x1832fb(0x1b1));return Math[_0x1832fb(0x1c0)](_0x422c9d*0x319c);},_0x159173=_0x164f10(children(_0x31a781,_0x2ed138(0x1ab))[0x0]?.[_0x2ed138(0x1ba)][_0x2ed138(0x17b)]);for(const _0x18ce86 of _0x143d2b)if(_0x18ce86['attrs']['ht']!==undefined)_0x23822b[_0x2ed138(0x161)](integer(_0x18ce86[_0x2ed138(0x1ba)]['r'],_0x2ed138(0x1c9)),_0x164f10(_0x18ce86['attrs']['ht']));const _0x481bc8=[],_0xb37e9a=_0x3b3f98=>{const _0x3cdb95=_0x2ed138;if(!_0x271f3c[_0x3cdb95(0x1aa)](_0x3b3f98[_0x3cdb95(0x168)]))return;if(++_0x21a12d>0x2710)throw Error(_0x3cdb95(0x197));_0x481bc8[_0x3cdb95(0x1e9)](_0x28ca03[_0x3cdb95(0x1aa)](_0x3b3f98[_0x3cdb95(0x1bd)])?{..._0x3b3f98,'hiddenRow':!![]}:_0x3b3f98);},_0x373ef4=_0x449314=>({'row':integer(one(children(_0x449314,_0x2ed138(0x1bd),DRAWING),'anchor\x20row')[_0x2ed138(0x1d0)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x449314,_0x2ed138(0x168)),_0x2ed138(0x1b8))[_0x2ed138(0x1d0)],_0x2ed138(0x1b8),0xff)+0x1});for(const _0x176389 of children(_0x31a781,_0x2ed138(0x169))){const _0x576e0b=_0x244a4d(_0x195265,_0x176389[_0x2ed138(0x1ba)][_0x2ed138(0x1ec)],_0x2ed138(0x169)),_0x374503=_0x3bb62b(_0x576e0b);if(!matches(_0x374503,_0x2ed138(0x1d3)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x4121c1 of _0x374503[_0x2ed138(0x1b7)]){if(!['oneCellAnchor',_0x2ed138(0x15c),_0x2ed138(0x19e)][_0x2ed138(0x18d)](_0x2dcf4f=>matches(_0x4121c1,_0x2dcf4f)))continue;if(_0x4121c1[_0x2ed138(0x1c7)]===_0x2ed138(0x19e))throw Error(_0x2ed138(0x182)+_0x420244+'.');const _0x4c78d7=_0x373ef4(one(children(_0x4121c1,_0x2ed138(0x199)),'anchor\x20start'));if(!_0x271f3c[_0x2ed138(0x1aa)](_0x4c78d7['col']))continue;let _0x120512;const _0x5910d2=one(children(_0x4121c1,_0x2ed138(0x199)),_0x2ed138(0x1bf)),_0x200caa=integer(one(children(_0x5910d2,'rowOff'),_0x2ed138(0x195))[_0x2ed138(0x1d0)],_0x2ed138(0x195),Number[_0x2ed138(0x172)]),_0x5111c5=_0x23822b[_0x2ed138(0x1e2)](_0x4c78d7[_0x2ed138(0x1bd)])??_0x159173;if(_0x200caa>=_0x5111c5)throw Error(_0x2ed138(0x175)+_0x4c78d7[_0x2ed138(0x1bd)]+'.');if(_0x4121c1['name']===_0x2ed138(0x1de)){const _0xaaa70b=one(children(_0x4121c1,_0x2ed138(0x16f)),_0x2ed138(0x180)),_0x22ee8f=integer(_0xaaa70b[_0x2ed138(0x1ba)]['cy'],_0x2ed138(0x165),Number[_0x2ed138(0x172)]);if(!_0x22ee8f||_0x200caa+_0x22ee8f>_0x5111c5)_0x120512=_0x2ed138(0x1f2);}if(_0x4121c1[_0x2ed138(0x1c7)]===_0x2ed138(0x15c)){const _0x5c9628=one(children(_0x4121c1,'to'),_0x2ed138(0x201)),_0x284af6=_0x373ef4(_0x5c9628),_0x4af1bd=integer(one(children(_0x5c9628,_0x2ed138(0x15e)),_0x2ed138(0x193))[_0x2ed138(0x1d0)],'anchor\x20end\x20offset',Number[_0x2ed138(0x172)]),_0x4ef3f2=_0x23822b[_0x2ed138(0x1e2)](_0x284af6[_0x2ed138(0x1bd)])??_0x159173;if(_0x4af1bd>_0x4ef3f2||_0x284af6['row']===_0x4c78d7[_0x2ed138(0x1bd)]&&_0x4af1bd<=_0x200caa)_0x120512=_0x2ed138(0x196);if(_0x284af6[_0x2ed138(0x1bd)]<_0x4c78d7[_0x2ed138(0x1bd)]||_0x284af6[_0x2ed138(0x1bd)]>_0x4c78d7[_0x2ed138(0x1bd)]+0x1||_0x284af6['row']===_0x4c78d7['row']+0x1&&_0x4af1bd!==0x0)_0x120512=_0x2ed138(0x1f2);}const _0x3df0b4=chain(_0x4121c1,_0x2ed138(0x181),'blipFill',_0x2ed138(0x1f5));for(const _0x5d1257 of _0x3df0b4){if(_0x5d1257[_0x2ed138(0x1ba)][_0x2ed138(0x179)])throw Error(_0x2ed138(0x188));_0xb37e9a({..._0x4c78d7,'media':[_0x244a4d(_0x576e0b,_0x5d1257[_0x2ed138(0x1ba)][_0x2ed138(0x167)],_0x2ed138(0x1c4))],..._0x120512?{'error':_0x120512}:{}});}if(!_0x3df0b4[_0x2ed138(0x1e1)])_0xb37e9a({..._0x4c78d7,'media':[],'error':_0x2ed138(0x1a7)});}}const _0x254013=_0x187bdb=>{const _0x179b70=_0x2ed138,_0x586a5f=_0x3bb62b(_0x48b88d(_0x3f98bc,_0x179b70(0x1ff)));if(!matches(_0x586a5f,_0x179b70(0x184)))throw Error(_0x179b70(0x17f));const _0x30e406=integer(_0x187bdb['attrs']['vm'],_0x179b70(0x19c));if(!_0x30e406)throw Error(_0x179b70(0x1a2));const _0x33ca94=children(one(children(_0x586a5f,'valueMetadata'),_0x179b70(0x16b)),'bk')[_0x30e406-0x1];if(!_0x33ca94)throw Error(_0x179b70(0x1e6));const _0x5ee00d=one(children(_0x33ca94,'rc'),_0x179b70(0x1c2)),_0x7e7ac0=integer(_0x5ee00d[_0x179b70(0x1ba)]['t'],_0x179b70(0x1f3)),_0x5744cf=children(one(children(_0x586a5f,_0x179b70(0x1d5)),'metadata\x20types'),_0x179b70(0x1e7))[_0x7e7ac0-0x1];if(!_0x7e7ac0||_0x5744cf?.[_0x179b70(0x1ba)]['name']!==_0x179b70(0x204))throw Error('Unsupported\x20mapped\x20cell\x20metadata\x20type.');const _0xed1e00=one(children(_0x586a5f,_0x179b70(0x1c6))['filter'](_0x599d63=>_0x599d63['attrs'][_0x179b70(0x1c7)]===_0x179b70(0x204)),_0x179b70(0x19a)),_0x3bf1ea=children(_0xed1e00,'bk')[integer(_0x5ee00d[_0x179b70(0x1ba)]['v'],_0x179b70(0x18c))];if(!_0x3bf1ea)throw Error(_0x179b70(0x160));const _0x3d5a0b=chain(_0x3bf1ea,_0x179b70(0x1ac))[_0x179b70(0x1ef)](_0x22f6c2=>children(_0x22f6c2,_0x179b70(0x16f),SHEET))[_0x179b70(0x18b)](_0x48615d=>_0x48615d['attrs']['uri']?.[_0x179b70(0x1ce)]()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x262be7=integer(one(_0x3d5a0b[_0x179b70(0x1ef)](_0x2a99af=>children(_0x2a99af,'rvb')),_0x179b70(0x17d))['attrs']['i'],_0x179b70(0x192)),_0x640f5b=_0x3bb62b(_0x48b88d(_0x3f98bc,'rdRichValue'));if(!matches(_0x640f5b,_0x179b70(0x174)))throw Error(_0x179b70(0x198));const _0x3e97e8=children(_0x640f5b,'rv')[_0x262be7];if(!_0x3e97e8)throw Error(_0x179b70(0x1fb));const _0x500d37=_0x3bb62b(_0x48b88d(_0x3f98bc,_0x179b70(0x1db)));if(!matches(_0x500d37,_0x179b70(0x157)))throw Error(_0x179b70(0x1a0));const _0x90982b=children(_0x500d37,'s')[integer(_0x3e97e8[_0x179b70(0x1ba)]['s'],_0x179b70(0x1d7))];if(!_0x90982b||_0x90982b['attrs']['t']!=='_localImage')throw Error(_0x179b70(0x202));const _0x4b9bfc=children(_0x90982b,'k'),_0x1dbbf3=_0x4b9bfc[_0x179b70(0x1d4)]((_0x5ab573,_0x1c83e9)=>_0x5ab573['attrs']['n']===_0x179b70(0x1ea)?_0x1c83e9:-0x1)['filter'](_0x2ffe50=>_0x2ffe50>=0x0);if(_0x1dbbf3[_0x179b70(0x1e1)]!==0x1)throw Error(_0x179b70(0x190));const _0x2cf233=children(_0x3e97e8,'v',RICH)[_0x1dbbf3[0x0]];if(!_0x2cf233)throw Error(_0x179b70(0x1b5));const _0x3aa551=_0x48b88d(_0x3f98bc,'richValueRel'),_0x3d9110=_0x3bb62b(_0x3aa551);if(!matches(_0x3d9110,_0x179b70(0x1df)))throw Error(_0x179b70(0x1bc));const _0x2cd38e=children(_0x3d9110,'rel')[integer(_0x2cf233[_0x179b70(0x1d0)],_0x179b70(0x170))];if(!_0x2cd38e)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x244a4d(_0x3aa551,_0x2cd38e[_0x179b70(0x1ba)]['r:id'],_0x179b70(0x1c4));};let _0x55faa4;const _0x3c59dc=_0x57002b=>{const _0x1b9c2a=_0x2ed138;if(!_0x55faa4){_0x55faa4=new Map();const _0x486630=_0x53f003(_0x3f98bc)[_0x1b9c2a(0x18b)](_0x4adac0=>[...relationshipTypes('cellImage'),...relationshipTypes(_0x1b9c2a(0x17e))]['includes'](_0x4adac0[_0x1b9c2a(0x1eb)]));if(!_0x486630['length']&&_0x33cf1b[_0x1b9c2a(0x1aa)](_0x1b9c2a(0x1f6)))_0x486630[_0x1b9c2a(0x1e9)]({'id':'','type':'','target':_0x1b9c2a(0x1bb)});if(_0x486630[_0x1b9c2a(0x1e1)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x47b675=_0x14bba4(_0x3f98bc,_0x486630[0x0]),_0xde6b67=_0x3bb62b(_0x47b675);if(!matches(_0xde6b67,'cellImages'))throw Error(_0x1b9c2a(0x189));for(const _0x16a89c of children(_0xde6b67,'cellImage')){const _0x4fd606=one(chain(_0x16a89c,'pic',_0x1b9c2a(0x16d),_0x1b9c2a(0x171)),_0x1b9c2a(0x1b4))[_0x1b9c2a(0x1ba)]['name'];if(!_0x4fd606||_0x55faa4['has'](_0x4fd606))throw Error(_0x1b9c2a(0x156));const _0x551a6c=one(chain(_0x16a89c,'pic',_0x1b9c2a(0x1a3),'blip'),_0x1b9c2a(0x173));if(_0x551a6c[_0x1b9c2a(0x1ba)][_0x1b9c2a(0x179)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x55faa4[_0x1b9c2a(0x161)](_0x4fd606,_0x244a4d(_0x47b675,_0x551a6c[_0x1b9c2a(0x1ba)][_0x1b9c2a(0x167)],_0x1b9c2a(0x1c4)));}}const _0x19296c=_0x55faa4[_0x1b9c2a(0x1e2)](_0x57002b);if(!_0x19296c)throw Error(_0x1b9c2a(0x186)+_0x57002b+'.');return _0x19296c;},_0x3d27af=new Set();for(const _0x4ea3e6 of _0x143d2b[_0x2ed138(0x1ef)](_0x2a251f=>children(_0x2a251f,'c'))){const _0x17946a=/^([A-Z]+)([1-9]\d*)$/[_0x2ed138(0x1e3)](_0x4ea3e6['attrs']['r']??'');if(!_0x17946a)continue;let _0x242e9e=0x0;for(const _0x3e75d9 of _0x17946a[0x1])_0x242e9e=_0x242e9e*0x1a+_0x3e75d9['charCodeAt'](0x0)-0x40;if(!_0x271f3c[_0x2ed138(0x1aa)](_0x242e9e))continue;const _0x130af1=integer(_0x17946a[0x2],_0x2ed138(0x1a1));if(_0x3d27af[_0x2ed138(0x1aa)](_0x4ea3e6[_0x2ed138(0x1ba)]['r']))throw Error(_0x2ed138(0x1b6));_0x3d27af[_0x2ed138(0x183)](_0x4ea3e6['attrs']['r']);const _0x461813=children(_0x4ea3e6,'f');if(!_0x4ea3e6[_0x2ed138(0x1ba)]['vm']&&!_0x461813[_0x2ed138(0x1e1)])continue;try{if(_0x130af1<0x1||_0x242e9e>0x100)throw Error(_0x2ed138(0x1b2));let _0x542515;if(_0x4ea3e6[_0x2ed138(0x1ba)]['vm']){if(_0x461813['length'])throw Error(_0x2ed138(0x1f7));if(_0x4ea3e6['attrs']['t']!=='e'||children(_0x4ea3e6,'v')[_0x2ed138(0x1e1)]!==0x1||children(_0x4ea3e6,'v')[0x0][_0x2ed138(0x1d0)]!=='#VALUE!')throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x542515=_0x254013(_0x4ea3e6);}else{const _0x1cb401=one(_0x461813,'image\x20formula');if(_0x1cb401[_0x2ed138(0x1ba)]['t']==='shared'||_0x1cb401[_0x2ed138(0x1ba)]['si'])throw Error(_0x2ed138(0x162));const _0x144663=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x1cb401[_0x2ed138(0x1d0)]);if(!_0x144663)throw Error(_0x2ed138(0x1f1));_0x542515=_0x3c59dc(_0x144663[0x1][_0x2ed138(0x15f)](/""/g,'\x22'));}_0xb37e9a({'row':_0x130af1,'col':_0x242e9e,'media':[_0x542515],'nativeCell':!![]});}catch(_0x371407){_0xb37e9a({'row':_0x130af1,'col':_0x242e9e,'media':[],'nativeCell':!![],'error':_0x371407[_0x2ed138(0x15a)]});}}return _0x481bc8;}
@@ -1 +1 @@
1
- (function(_0x36b4dd,_0x31d9c6){const _0x1ca830=a144_0x5be1,_0x1dcf58=_0x36b4dd();while(!![]){try{const _0x24b695=-parseInt(_0x1ca830(0x17b))/0x1+-parseInt(_0x1ca830(0x1a0))/0x2*(parseInt(_0x1ca830(0x173))/0x3)+-parseInt(_0x1ca830(0x1c0))/0x4*(-parseInt(_0x1ca830(0x1db))/0x5)+-parseInt(_0x1ca830(0x1a3))/0x6+parseInt(_0x1ca830(0x195))/0x7*(-parseInt(_0x1ca830(0x1a5))/0x8)+-parseInt(_0x1ca830(0x191))/0x9+parseInt(_0x1ca830(0x192))/0xa;if(_0x24b695===_0x31d9c6)break;else _0x1dcf58['push'](_0x1dcf58['shift']());}catch(_0x459a15){_0x1dcf58['push'](_0x1dcf58['shift']());}}}(a144_0x30c7,0x77ec7));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a144_0x5be1(_0x316e7d,_0x318d4f){_0x316e7d=_0x316e7d-0x172;const _0x30c725=a144_0x30c7();let _0x5be1a9=_0x30c725[_0x316e7d];return _0x5be1a9;}import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x371601,_0x47912c){const _0x5de6eb=a144_0x5be1;if(!_0x47912c[_0x5de6eb(0x1cb)]?.['length'])return;const _0x2f2b4a=_0x371601[_0x5de6eb(0x1d1)];if(!_0x2f2b4a||_0x2f2b4a[_0x5de6eb(0x1ad)]!==0x1||_0x2f2b4a[_0x5de6eb(0x199)]!==_0x5de6eb(0x1be)||_0x2f2b4a[_0x5de6eb(0x185)]!==0xa00000||_0x2f2b4a[_0x5de6eb(0x1a8)]!==0x2625a00||!Array['isArray'](_0x2f2b4a[_0x5de6eb(0x1b3)])||![_0x5de6eb(0x174),'image/jpeg',_0x5de6eb(0x1a2)]['every'](_0x218652=>_0x2f2b4a[_0x5de6eb(0x1b3)][_0x5de6eb(0x1ac)](_0x218652)))throw Error(_0x5de6eb(0x181));}export function imageObjectValue(_0x263cbe,_0x409f32,_0x2fe482){const _0x765fff=a144_0x5be1,_0x3cac3d=createHash(_0x765fff(0x1be))[_0x765fff(0x188)](JSON[_0x765fff(0x1c7)]([_0x263cbe[_0x765fff(0x1a9)],_0x263cbe[_0x765fff(0x1ab)],_0x263cbe[_0x765fff(0x1d3)],_0x409f32]))['digest']('hex'),_0x4c2ef4={'image/png':_0x765fff(0x19e),'image/jpeg':_0x765fff(0x1d0),'image/gif':_0x765fff(0x1b9)}[_0x2fe482['type']];if(!_0x4c2ef4||!/^[0-9a-f]{64}$/[_0x765fff(0x19d)](_0x2fe482[_0x765fff(0x180)])||!Number[_0x765fff(0x187)](_0x2fe482[_0x765fff(0x19c)])||_0x2fe482[_0x765fff(0x19c)]<=0x0||_0x2fe482[_0x765fff(0x19c)]>0xa00000)throw Error(_0x765fff(0x1c3));const _0x53cfd1=_0x2fe482[_0x765fff(0x180)]+'.'+_0x4c2ef4;return{'key':_0x765fff(0x1d7)+_0x3cac3d+'/'+_0x53cfd1,'name':_0x53cfd1,'type':_0x2fe482[_0x765fff(0x1da)],'size':_0x2fe482[_0x765fff(0x19c)]};}export function bindImageManifest(_0x53817e,_0x1e4408,_0x2e70d2){const _0x1bc9f3=a144_0x5be1,_0x3e126c=new Map(_0x53817e[_0x1bc9f3(0x1cb)]?.['map'](_0x42ff8b=>[_0x42ff8b[_0x1bc9f3(0x180)],_0x42ff8b])),_0x10caef=new Map(_0x53817e[_0x1bc9f3(0x178)]?.[_0x1bc9f3(0x1ba)](_0x1140ae=>[_0x1140ae[_0x1bc9f3(0x18c)]+':'+_0x1140ae[_0x1bc9f3(0x1cf)],_0x1140ae[_0x1bc9f3(0x19b)]]));return{..._0x53817e,'rows':_0x53817e['rows'][_0x1bc9f3(0x1ba)](_0xfcf4c2=>({..._0xfcf4c2,'values':Object['fromEntries'](Object[_0x1bc9f3(0x1c1)](_0xfcf4c2[_0x1bc9f3(0x1ae)])[_0x1bc9f3(0x1ba)](([_0x350ac3,_0x2bc23c])=>{const _0x2681da=_0x1bc9f3,_0x4b7dca=_0x10caef['get'](_0xfcf4c2[_0x2681da(0x18c)]+':'+_0x350ac3);return[_0x350ac3,_0x4b7dca?_0x4b7dca[_0x2681da(0x1ba)](_0x19ef5a=>{const _0x339167=_0x2681da,_0xd9184c=_0x3e126c[_0x339167(0x17f)](_0x19ef5a);if(!_0xd9184c)throw Error('Image\x20cell\x20references\x20missing\x20media.');const _0x470a78=imageObjectValue(_0x1e4408,_0x2e70d2,_0xd9184c);return _0x53817e[_0x339167(0x1bd)]?.[_0x339167(0x1ac)](_0x350ac3)?{'fileName':_0x470a78[_0x339167(0x1cc)],'filePath':_0x470a78[_0x339167(0x175)]}:_0x470a78;}):_0x2bc23c];}))}))};}function a144_0x30c7(){const _0x256da0=['609IBfiGn','checkpoint','importId','maxBatchSize','uploadId','imageApi','hashes','size','test','png','.lock.recovery','20CeLFuJ','pending','image/gif','41910Rauzot','rows-started','7936eenZoP','Image\x20media\x20bytes\x20changed.','completed','maxPixels','actorId','sheet','appCode','includes','version','values','Invalid\x20image\x20manifest\x20limits.','00000000-0000-4000-8000-000000000000','isInteger','schemaHash','types','strategy','filePath','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','rows','reduce','gif','map','fileHash','Invalid\x20image\x20readback\x20digest.','uploadFields','sha256','schemaVersion','37188WFdDpa','entries','all','Invalid\x20image\x20media\x20descriptor.','contract','missing','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','stringify','utf8','schemaFingerprint','manifest','media','name','batchSize','resume','field','jpg','imageImport','inputPaths','datasetCode','status','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','dataset-import/','readback','fileName','type','305ysiRTX','succeeded','192402wzzmBY','image/png','key','parse','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','imageCells','isArray','value','816006ECarEs','mappingHash','imageFields','binding','get','contentHash','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','.lock','digest','some','maxFileBytes','bytes','isSafeInteger','update','rows-preparing','upload','length','rowNumber','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','phase','hash','5479380YreETN','20835450FjUGsx','maxBatchBytes','parserVersion'];a144_0x30c7=function(){return _0x256da0;};return a144_0x30c7();}async function exists(_0x18d797){try{return await lstat(_0x18d797),!![];}catch(_0x559bea){if(_0x559bea['code']==='ENOENT')return![];throw _0x559bea;}}export async function runImageExcelImport(_0x399857){const _0x2d6d67=a144_0x5be1;assertImportContract(_0x399857['contract'],_0x399857[_0x2d6d67(0x1ab)],_0x399857[_0x2d6d67(0x1d3)]),assertImageImportCapability(_0x399857[_0x2d6d67(0x1c4)],_0x399857[_0x2d6d67(0x1ca)]);if(!Number[_0x2d6d67(0x1b1)](_0x399857[_0x2d6d67(0x1cd)])||_0x399857['batchSize']<0x1||_0x399857[_0x2d6d67(0x1cd)]>_0x399857[_0x2d6d67(0x1c4)][_0x2d6d67(0x198)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x399857[_0x2d6d67(0x1ca)]['errors'][_0x2d6d67(0x18b)]||!_0x399857[_0x2d6d67(0x1ca)]['rows'][_0x2d6d67(0x18b)])throw Error(_0x2d6d67(0x1d5));const _0x37329a=await resolveImportOutputPath(_0x399857[_0x2d6d67(0x196)]),_0x3bf843=await resolveImportOutputPath(_0x399857['report']),_0x392a19=await resolveImportOutputPath(_0x37329a+'.rows.json'),_0x5a217e=await Promise[_0x2d6d67(0x1c2)]([_0x392a19,_0x392a19+_0x2d6d67(0x182),_0x392a19+_0x2d6d67(0x19f),..._0x399857[_0x2d6d67(0x1d2)]??[]]['map'](resolveImportOutputPath));for(const _0xb6b26d of[_0x37329a,_0x3bf843,_0x37329a+'.lock',_0x37329a+'.lock.recovery'])await resolveImportOutputPath(_0xb6b26d);assertImportPaths(_0x37329a,_0x3bf843,_0x5a217e);const {contract:_0x1f3948,manifest:_0x4c736e}=_0x399857,_0x1fdaa9=_0x4c736e[_0x2d6d67(0x1cb)]??[];if(new Set(_0x1fdaa9[_0x2d6d67(0x1ba)](_0x124128=>_0x124128[_0x2d6d67(0x180)]))[_0x2d6d67(0x19c)]!==_0x1fdaa9[_0x2d6d67(0x18b)]||_0x1fdaa9[_0x2d6d67(0x1b8)]((_0x3dd15b,_0x4226d5)=>_0x3dd15b+_0x4226d5[_0x2d6d67(0x19c)],0x0)>0x32*0x400*0x400||(_0x4c736e[_0x2d6d67(0x178)]??[])['reduce']((_0x2bacf9,_0x25894c)=>_0x2bacf9+_0x25894c[_0x2d6d67(0x19b)]['length'],0x0)>0x2710)throw Error(_0x2d6d67(0x1af));for(const _0x3f07b4 of _0x1fdaa9)if(_0x3f07b4[_0x2d6d67(0x19c)]!==_0x3f07b4['bytes'][_0x2d6d67(0x18b)]||createHash(_0x2d6d67(0x1be))[_0x2d6d67(0x188)](_0x3f07b4[_0x2d6d67(0x186)])[_0x2d6d67(0x183)]('hex')!==_0x3f07b4['contentHash'])throw Error(_0x2d6d67(0x1a6));previewImportBatchCount(bindImageManifest(_0x4c736e,_0x1f3948,_0x2d6d67(0x1b0)),_0x1f3948,_0x399857[_0x2d6d67(0x1cd)]);const _0x5063aa={'appCode':_0x399857[_0x2d6d67(0x1ab)],'datasetCode':_0x399857[_0x2d6d67(0x1d3)],'runtimeDomain':_0x399857['runtimeDomain'],'actorId':_0x1f3948[_0x2d6d67(0x1a9)],'fileHash':_0x4c736e[_0x2d6d67(0x1bb)],'mappingHash':_0x4c736e[_0x2d6d67(0x17c)],'schemaHash':_0x4c736e[_0x2d6d67(0x1b2)],'remoteSchemaHash':_0x1f3948[_0x2d6d67(0x1c9)],'strategy':_0x1f3948[_0x2d6d67(0x1b4)],'schemaVersion':_0x1f3948[_0x2d6d67(0x1bf)],'batchSize':_0x399857[_0x2d6d67(0x1cd)],'maxBatchBytes':_0x1f3948[_0x2d6d67(0x193)],'sheet':_0x4c736e[_0x2d6d67(0x1aa)],'parserVersion':_0x4c736e[_0x2d6d67(0x194)],'imageFields':_0x4c736e[_0x2d6d67(0x17d)],'cells':_0x4c736e[_0x2d6d67(0x178)],..._0x4c736e['uploadFields']?.[_0x2d6d67(0x18b)]?{'uploadFields':_0x4c736e['uploadFields']}:{},'media':_0x1fdaa9[_0x2d6d67(0x1ba)](({contentHash:_0x3b3ed4,type:_0x3597bd,size:_0x255934})=>({'contentHash':_0x3b3ed4,'type':_0x3597bd,'size':_0x255934})),'rows':_0x4c736e[_0x2d6d67(0x1b7)]},_0x56e4eb=await acquireLock(_0x37329a);try{let _0x48e3b1;if(_0x399857[_0x2d6d67(0x1ce)]){try{_0x48e3b1=JSON[_0x2d6d67(0x176)](await readFile(_0x37329a,_0x2d6d67(0x1c8)));}catch{throw Error('Cannot\x20read\x20the\x20image\x20import\x20checkpoint.');}if(_0x48e3b1[_0x2d6d67(0x1ad)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x2d6d67(0x19d)](_0x48e3b1[_0x2d6d67(0x197)])||canonical(_0x48e3b1[_0x2d6d67(0x17e)])!==canonical(_0x5063aa)||![_0x2d6d67(0x1cb),'rows-preparing','rows-started',_0x2d6d67(0x1a7)][_0x2d6d67(0x1ac)](_0x48e3b1[_0x2d6d67(0x18f)])||!Array[_0x2d6d67(0x179)](_0x48e3b1[_0x2d6d67(0x1cb)])||_0x48e3b1[_0x2d6d67(0x1cb)][_0x2d6d67(0x18b)]!==_0x1fdaa9[_0x2d6d67(0x18b)]||_0x48e3b1[_0x2d6d67(0x1cb)][_0x2d6d67(0x184)]((_0x1eaed6,_0x513868)=>_0x1eaed6[_0x2d6d67(0x190)]!==_0x1fdaa9[_0x513868][_0x2d6d67(0x180)]||![_0x2d6d67(0x1a1),_0x2d6d67(0x172)][_0x2d6d67(0x1ac)](_0x1eaed6[_0x2d6d67(0x1d4)])))throw Error(_0x2d6d67(0x18e));if([_0x2d6d67(0x1a4),'completed'][_0x2d6d67(0x1ac)](_0x48e3b1['phase'])&&!await exists(_0x392a19))throw Error(_0x2d6d67(0x1c6));if(_0x48e3b1[_0x2d6d67(0x18f)]===_0x2d6d67(0x1cb)&&await exists(_0x392a19))throw Error(_0x2d6d67(0x1b6));}else{if(await exists(_0x37329a)||await exists(_0x392a19))throw Error(_0x2d6d67(0x177));_0x48e3b1={'version':0x3,'importId':randomUUID(),'binding':_0x5063aa,'phase':_0x2d6d67(0x1cb),'media':_0x1fdaa9[_0x2d6d67(0x1ba)](_0xbe2219=>({'hash':_0xbe2219[_0x2d6d67(0x180)],'status':'pending'}))},await saveImportJson(_0x37329a,_0x48e3b1);}const _0x4b8c64=(_0x15908d,_0x57ed3f)=>{const _0xc77332=_0x2d6d67;if(!_0x15908d||_0x15908d[_0xc77332(0x180)]!==_0x57ed3f[_0xc77332(0x180)])throw Error(_0xc77332(0x1bc));if(_0x15908d[_0xc77332(0x1d4)]===_0xc77332(0x1c5))return undefined;const _0x2af7a4=imageObjectValue(_0x1f3948,_0x48e3b1['importId'],_0x57ed3f);if(_0x15908d[_0xc77332(0x1d4)]!==_0xc77332(0x172)||_0x15908d[_0xc77332(0x1b5)]!==_0x2af7a4[_0xc77332(0x175)]||_0x15908d[_0xc77332(0x1d9)]!==_0x2af7a4[_0xc77332(0x1cc)]||_0x15908d[_0xc77332(0x1da)]!==_0x2af7a4[_0xc77332(0x1da)]||_0x15908d['size']!==_0x2af7a4[_0xc77332(0x19c)])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x2af7a4;};for(let _0x2e93ed=0x0;_0x2e93ed<_0x1fdaa9[_0x2d6d67(0x18b)];_0x2e93ed++){const _0x153f0a=_0x1fdaa9[_0x2e93ed],_0x5ceaa0=_0x48e3b1[_0x2d6d67(0x1cb)][_0x2e93ed],_0x218c56=imageObjectValue(_0x1f3948,_0x48e3b1[_0x2d6d67(0x197)],_0x153f0a);if(_0x5ceaa0[_0x2d6d67(0x1d4)]===_0x2d6d67(0x172)&&canonical(_0x5ceaa0[_0x2d6d67(0x17a)])!==canonical(_0x218c56))throw Error('Completed\x20image\x20checkpoint\x20value\x20changed.');let _0x47ee4a;if(_0x399857[_0x2d6d67(0x1ce)]||_0x5ceaa0['status']===_0x2d6d67(0x172))_0x47ee4a=_0x4b8c64(await _0x399857['imageApi'][_0x2d6d67(0x1d8)](_0x48e3b1[_0x2d6d67(0x197)],_0x153f0a),_0x153f0a);if(!_0x47ee4a&&_0x5ceaa0[_0x2d6d67(0x1d4)]===_0x2d6d67(0x172))throw Error(_0x2d6d67(0x1d6));if(!_0x47ee4a){try{_0x4b8c64(await _0x399857[_0x2d6d67(0x19a)][_0x2d6d67(0x18a)](_0x48e3b1[_0x2d6d67(0x197)],_0x153f0a),_0x153f0a);}catch(_0x389861){_0x47ee4a=_0x4b8c64(await _0x399857[_0x2d6d67(0x19a)]['readback'](_0x48e3b1[_0x2d6d67(0x197)],_0x153f0a),_0x153f0a);if(!_0x47ee4a)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x47ee4a)_0x47ee4a=_0x4b8c64(await _0x399857[_0x2d6d67(0x19a)][_0x2d6d67(0x1d8)](_0x48e3b1[_0x2d6d67(0x197)],_0x153f0a),_0x153f0a);if(!_0x47ee4a)throw Error(_0x2d6d67(0x18d));}_0x5ceaa0[_0x2d6d67(0x1d4)]=_0x2d6d67(0x172),_0x5ceaa0[_0x2d6d67(0x17a)]=_0x47ee4a,await saveImportJson(_0x37329a,_0x48e3b1);}const _0x8dc142=bindImageManifest(_0x4c736e,_0x1f3948,_0x48e3b1[_0x2d6d67(0x197)]),_0x55b4de=_0x48e3b1[_0x2d6d67(0x18f)]==='rows-preparing'?await exists(_0x392a19):_0x48e3b1['phase']!==_0x2d6d67(0x1cb);_0x48e3b1[_0x2d6d67(0x18f)]===_0x2d6d67(0x1cb)&&(_0x48e3b1['phase']=_0x2d6d67(0x189),await saveImportJson(_0x37329a,_0x48e3b1));const _0x3e0de6={..._0x399857,'manifest':_0x8dc142,'checkpoint':_0x392a19,'report':_0x3bf843,'resume':_0x55b4de,'onCheckpointReady':async()=>{const _0xfa5e26=_0x2d6d67;_0x48e3b1['phase']=_0xfa5e26(0x1a4),await saveImportJson(_0x37329a,_0x48e3b1);}},_0xd39596=_0x1f3948['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x3e0de6,'reconcileImageConflicts':_0x399857[_0x2d6d67(0x1ce)]===!![]&&_0x55b4de}):await runExcelImport(_0x3e0de6);return _0x48e3b1[_0x2d6d67(0x18f)]='completed',await saveImportJson(_0x37329a,_0x48e3b1),{..._0xd39596,'checkpoint':_0x37329a,'imageCount':_0x4c736e[_0x2d6d67(0x178)]?.[_0x2d6d67(0x1b8)]((_0x481516,_0x1400c1)=>_0x481516+_0x1400c1[_0x2d6d67(0x19b)][_0x2d6d67(0x18b)],0x0)??0x0,'uniqueImages':_0x1fdaa9['length']};}finally{await _0x56e4eb();}}
1
+ (function(_0x227931,_0x432cd3){const _0x127d6b=a147_0x4d23,_0x4d399c=_0x227931();while(!![]){try{const _0x2803f9=-parseInt(_0x127d6b(0x1a2))/0x1*(-parseInt(_0x127d6b(0x1ca))/0x2)+parseInt(_0x127d6b(0x191))/0x3*(parseInt(_0x127d6b(0x1e5))/0x4)+-parseInt(_0x127d6b(0x1d7))/0x5+parseInt(_0x127d6b(0x1e6))/0x6*(parseInt(_0x127d6b(0x1d4))/0x7)+parseInt(_0x127d6b(0x1d0))/0x8*(parseInt(_0x127d6b(0x1ab))/0x9)+parseInt(_0x127d6b(0x1c8))/0xa*(parseInt(_0x127d6b(0x1ae))/0xb)+parseInt(_0x127d6b(0x190))/0xc*(-parseInt(_0x127d6b(0x1cf))/0xd);if(_0x2803f9===_0x432cd3)break;else _0x4d399c['push'](_0x4d399c['shift']());}catch(_0x52363b){_0x4d399c['push'](_0x4d399c['shift']());}}}(a147_0x4a91,0xecc59));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';function a147_0x4a91(){const _0x169ea7=['image/png','357064otzPRH','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','imageFields','type','maxBatchBytes','55100526HQCBnv','3343728maTRHo','parserVersion','missing','isInteger','7VeesLf','succeeded','digest','5014915hsVayU','hex','completed','appCode','uploadFields','upload','schemaVersion','get','jpg','png','contract','Image\x20media\x20bytes\x20changed.','reduce','rowNumber','312vlqOcj','7962486maKkWd','Image\x20cell\x20references\x20missing\x20media.','name','filePath','entries','image/jpeg','dataset-import/','gif','some','maxFileBytes','ENOENT','size','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','schemaHash','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','.lock.recovery','pending','sheet','every','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','manifest','key','batchSize','rows-preparing','readback','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','isArray','12SHQlGO','56709kWYYYQ','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','value','map','length','rows-started','types','imageApi','parse','Invalid\x20image\x20media\x20descriptor.','mappingHash','rows','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','phase','report','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','datasetCode','9zQBFlk','media','sha256','isSafeInteger','fromEntries','fileHash','values','test','field','36FQLKFP','stringify','uploadId','11TwZFzf','version','hashes','resume','inputPaths','actorId','.lock','schemaFingerprint','update','imageCells','checkpoint','all','Invalid\x20import\x20batch\x20size.','contentHash','importId','strategy','image/gif','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','maxPixels','includes','bytes','Invalid\x20image\x20readback\x20digest.','binding','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','status','1311350qpBNzG'];a147_0x4a91=function(){return _0x169ea7;};return a147_0x4a91();}export function assertImageImportCapability(_0x4512a2,_0x6cf68){const _0x331e6a=a147_0x4d23;if(!_0x6cf68[_0x331e6a(0x1a3)]?.[_0x331e6a(0x195)])return;const _0x5a2ca4=_0x4512a2['imageImport'];if(!_0x5a2ca4||_0x5a2ca4[_0x331e6a(0x1af)]!==0x1||_0x5a2ca4[_0x331e6a(0x1ad)]!==_0x331e6a(0x1a4)||_0x5a2ca4[_0x331e6a(0x17e)]!==0xa00000||_0x5a2ca4[_0x331e6a(0x1c0)]!==0x2625a00||!Array[_0x331e6a(0x18f)](_0x5a2ca4[_0x331e6a(0x197)])||![_0x331e6a(0x1c9),_0x331e6a(0x1eb),_0x331e6a(0x1be)][_0x331e6a(0x187)](_0xc699ae=>_0x5a2ca4['types']['includes'](_0xc699ae)))throw Error(_0x331e6a(0x188));}export function imageObjectValue(_0x331ca3,_0x352c2b,_0x3e8d6a){const _0x260229=a147_0x4d23,_0x450d29=createHash(_0x260229(0x1a4))[_0x260229(0x1b6)](JSON[_0x260229(0x1ac)]([_0x331ca3[_0x260229(0x1b3)],_0x331ca3['appCode'],_0x331ca3[_0x260229(0x1a1)],_0x352c2b]))[_0x260229(0x1d6)](_0x260229(0x1d8)),_0x30468b={'image/png':_0x260229(0x1e0),'image/jpeg':_0x260229(0x1df),'image/gif':_0x260229(0x17c)}[_0x3e8d6a[_0x260229(0x1cd)]];if(!_0x30468b||!/^[0-9a-f]{64}$/['test'](_0x3e8d6a[_0x260229(0x1bb)])||!Number[_0x260229(0x1a5)](_0x3e8d6a[_0x260229(0x180)])||_0x3e8d6a[_0x260229(0x180)]<=0x0||_0x3e8d6a[_0x260229(0x180)]>0xa00000)throw Error(_0x260229(0x19a));const _0x4c9343=_0x3e8d6a[_0x260229(0x1bb)]+'.'+_0x30468b;return{'key':_0x260229(0x1ec)+_0x450d29+'/'+_0x4c9343,'name':_0x4c9343,'type':_0x3e8d6a[_0x260229(0x1cd)],'size':_0x3e8d6a[_0x260229(0x180)]};}export function bindImageManifest(_0x50d4d7,_0x54e533,_0x4f259b){const _0x475812=a147_0x4d23,_0xd95b16=new Map(_0x50d4d7['media']?.[_0x475812(0x194)](_0x1f9951=>[_0x1f9951['contentHash'],_0x1f9951])),_0x55aac6=new Map(_0x50d4d7[_0x475812(0x1b7)]?.[_0x475812(0x194)](_0x404600=>[_0x404600[_0x475812(0x1e4)]+':'+_0x404600[_0x475812(0x1aa)],_0x404600[_0x475812(0x1b0)]]));return{..._0x50d4d7,'rows':_0x50d4d7[_0x475812(0x19c)][_0x475812(0x194)](_0x392a5c=>({..._0x392a5c,'values':Object[_0x475812(0x1a6)](Object[_0x475812(0x1ea)](_0x392a5c[_0x475812(0x1a8)])[_0x475812(0x194)](([_0xf7e616,_0xc5b26f])=>{const _0x266282=_0x475812,_0x12f1dd=_0x55aac6['get'](_0x392a5c[_0x266282(0x1e4)]+':'+_0xf7e616);return[_0xf7e616,_0x12f1dd?_0x12f1dd[_0x266282(0x194)](_0x5e96a5=>{const _0xdfb8be=_0x266282,_0x57b2a7=_0xd95b16[_0xdfb8be(0x1de)](_0x5e96a5);if(!_0x57b2a7)throw Error(_0xdfb8be(0x1e7));const _0xa08e2d=imageObjectValue(_0x54e533,_0x4f259b,_0x57b2a7);return _0x50d4d7[_0xdfb8be(0x1db)]?.[_0xdfb8be(0x1c1)](_0xf7e616)?{'fileName':_0xa08e2d[_0xdfb8be(0x1e8)],'filePath':_0xa08e2d[_0xdfb8be(0x18a)]}:_0xa08e2d;}):_0xc5b26f];}))}))};}async function exists(_0x540d41){const _0x40e7fa=a147_0x4d23;try{return await lstat(_0x540d41),!![];}catch(_0x174553){if(_0x174553['code']===_0x40e7fa(0x17f))return![];throw _0x174553;}}function a147_0x4d23(_0x50be4f,_0x5582d6){_0x50be4f=_0x50be4f-0x17c;const _0x4a9187=a147_0x4a91();let _0x4d232d=_0x4a9187[_0x50be4f];return _0x4d232d;}export async function runImageExcelImport(_0x1d6981){const _0xf7eb21=a147_0x4d23;assertImportContract(_0x1d6981[_0xf7eb21(0x1e1)],_0x1d6981[_0xf7eb21(0x1da)],_0x1d6981[_0xf7eb21(0x1a1)]),assertImageImportCapability(_0x1d6981['contract'],_0x1d6981[_0xf7eb21(0x189)]);if(!Number[_0xf7eb21(0x1d3)](_0x1d6981[_0xf7eb21(0x18b)])||_0x1d6981['batchSize']<0x1||_0x1d6981[_0xf7eb21(0x18b)]>_0x1d6981[_0xf7eb21(0x1e1)]['maxBatchSize'])throw Error(_0xf7eb21(0x1ba));if(_0x1d6981[_0xf7eb21(0x189)]['errors'][_0xf7eb21(0x195)]||!_0x1d6981[_0xf7eb21(0x189)][_0xf7eb21(0x19c)][_0xf7eb21(0x195)])throw Error(_0xf7eb21(0x1c5));const _0x18beba=await resolveImportOutputPath(_0x1d6981[_0xf7eb21(0x1b8)]),_0x2e0a2e=await resolveImportOutputPath(_0x1d6981[_0xf7eb21(0x19f)]),_0x344568=await resolveImportOutputPath(_0x18beba+'.rows.json'),_0x17da30=await Promise[_0xf7eb21(0x1b9)]([_0x344568,_0x344568+_0xf7eb21(0x1b4),_0x344568+_0xf7eb21(0x184),..._0x1d6981[_0xf7eb21(0x1b2)]??[]][_0xf7eb21(0x194)](resolveImportOutputPath));for(const _0x5f181a of[_0x18beba,_0x2e0a2e,_0x18beba+_0xf7eb21(0x1b4),_0x18beba+_0xf7eb21(0x184)])await resolveImportOutputPath(_0x5f181a);assertImportPaths(_0x18beba,_0x2e0a2e,_0x17da30);const {contract:_0x48cf5e,manifest:_0xa62d04}=_0x1d6981,_0x104dc4=_0xa62d04[_0xf7eb21(0x1a3)]??[];if(new Set(_0x104dc4[_0xf7eb21(0x194)](_0x3cb756=>_0x3cb756[_0xf7eb21(0x1bb)]))['size']!==_0x104dc4['length']||_0x104dc4[_0xf7eb21(0x1e3)]((_0x21e607,_0x461779)=>_0x21e607+_0x461779[_0xf7eb21(0x180)],0x0)>0x32*0x400*0x400||(_0xa62d04[_0xf7eb21(0x1b7)]??[])[_0xf7eb21(0x1e3)]((_0x2e7074,_0x195bbb)=>_0x2e7074+_0x195bbb[_0xf7eb21(0x1b0)][_0xf7eb21(0x195)],0x0)>0x2710)throw Error('Invalid\x20image\x20manifest\x20limits.');for(const _0x584748 of _0x104dc4)if(_0x584748['size']!==_0x584748['bytes'][_0xf7eb21(0x195)]||createHash(_0xf7eb21(0x1a4))['update'](_0x584748[_0xf7eb21(0x1c2)])[_0xf7eb21(0x1d6)](_0xf7eb21(0x1d8))!==_0x584748[_0xf7eb21(0x1bb)])throw Error(_0xf7eb21(0x1e2));previewImportBatchCount(bindImageManifest(_0xa62d04,_0x48cf5e,'00000000-0000-4000-8000-000000000000'),_0x48cf5e,_0x1d6981['batchSize']);const _0xa34217={'appCode':_0x1d6981[_0xf7eb21(0x1da)],'datasetCode':_0x1d6981[_0xf7eb21(0x1a1)],'runtimeDomain':_0x1d6981['runtimeDomain'],'actorId':_0x48cf5e[_0xf7eb21(0x1b3)],'fileHash':_0xa62d04[_0xf7eb21(0x1a7)],'mappingHash':_0xa62d04[_0xf7eb21(0x19b)],'schemaHash':_0xa62d04[_0xf7eb21(0x182)],'remoteSchemaHash':_0x48cf5e[_0xf7eb21(0x1b5)],'strategy':_0x48cf5e[_0xf7eb21(0x1bd)],'schemaVersion':_0x48cf5e[_0xf7eb21(0x1dd)],'batchSize':_0x1d6981[_0xf7eb21(0x18b)],'maxBatchBytes':_0x48cf5e[_0xf7eb21(0x1ce)],'sheet':_0xa62d04[_0xf7eb21(0x186)],'parserVersion':_0xa62d04[_0xf7eb21(0x1d1)],'imageFields':_0xa62d04[_0xf7eb21(0x1cc)],'cells':_0xa62d04[_0xf7eb21(0x1b7)],..._0xa62d04[_0xf7eb21(0x1db)]?.[_0xf7eb21(0x195)]?{'uploadFields':_0xa62d04[_0xf7eb21(0x1db)]}:{},'media':_0x104dc4['map'](({contentHash:_0x2179cf,type:_0x1da4c2,size:_0x237a45})=>({'contentHash':_0x2179cf,'type':_0x1da4c2,'size':_0x237a45})),'rows':_0xa62d04[_0xf7eb21(0x19c)]},_0x29823d=await acquireLock(_0x18beba);try{let _0x57b7b5;if(_0x1d6981[_0xf7eb21(0x1b1)]){try{_0x57b7b5=JSON[_0xf7eb21(0x199)](await readFile(_0x18beba,'utf8'));}catch{throw Error(_0xf7eb21(0x18e));}if(_0x57b7b5[_0xf7eb21(0x1af)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0xf7eb21(0x1a9)](_0x57b7b5[_0xf7eb21(0x1bc)])||canonical(_0x57b7b5[_0xf7eb21(0x1c4)])!==canonical(_0xa34217)||![_0xf7eb21(0x1a3),_0xf7eb21(0x18c),_0xf7eb21(0x196),_0xf7eb21(0x1d9)][_0xf7eb21(0x1c1)](_0x57b7b5[_0xf7eb21(0x19e)])||!Array[_0xf7eb21(0x18f)](_0x57b7b5['media'])||_0x57b7b5[_0xf7eb21(0x1a3)]['length']!==_0x104dc4[_0xf7eb21(0x195)]||_0x57b7b5[_0xf7eb21(0x1a3)][_0xf7eb21(0x17d)]((_0x34d296,_0x31c7a4)=>_0x34d296['hash']!==_0x104dc4[_0x31c7a4]['contentHash']||![_0xf7eb21(0x185),_0xf7eb21(0x1d5)]['includes'](_0x34d296['status'])))throw Error(_0xf7eb21(0x181));if([_0xf7eb21(0x196),_0xf7eb21(0x1d9)][_0xf7eb21(0x1c1)](_0x57b7b5[_0xf7eb21(0x19e)])&&!await exists(_0x344568))throw Error(_0xf7eb21(0x1a0));if(_0x57b7b5[_0xf7eb21(0x19e)]==='media'&&await exists(_0x344568))throw Error(_0xf7eb21(0x1cb));}else{if(await exists(_0x18beba)||await exists(_0x344568))throw Error(_0xf7eb21(0x183));_0x57b7b5={'version':0x3,'importId':randomUUID(),'binding':_0xa34217,'phase':'media','media':_0x104dc4[_0xf7eb21(0x194)](_0x49a20c=>({'hash':_0x49a20c[_0xf7eb21(0x1bb)],'status':_0xf7eb21(0x185)}))},await saveImportJson(_0x18beba,_0x57b7b5);}const _0x4d2360=(_0x38bc5a,_0x5a9c5a)=>{const _0x299cf7=_0xf7eb21;if(!_0x38bc5a||_0x38bc5a[_0x299cf7(0x1bb)]!==_0x5a9c5a[_0x299cf7(0x1bb)])throw Error(_0x299cf7(0x1c3));if(_0x38bc5a[_0x299cf7(0x1c7)]===_0x299cf7(0x1d2))return undefined;const _0x46af19=imageObjectValue(_0x48cf5e,_0x57b7b5[_0x299cf7(0x1bc)],_0x5a9c5a);if(_0x38bc5a[_0x299cf7(0x1c7)]!==_0x299cf7(0x1d5)||_0x38bc5a[_0x299cf7(0x1e9)]!==_0x46af19[_0x299cf7(0x18a)]||_0x38bc5a['fileName']!==_0x46af19[_0x299cf7(0x1e8)]||_0x38bc5a['type']!==_0x46af19[_0x299cf7(0x1cd)]||_0x38bc5a[_0x299cf7(0x180)]!==_0x46af19[_0x299cf7(0x180)])throw Error(_0x299cf7(0x192));return _0x46af19;};for(let _0x257cd5=0x0;_0x257cd5<_0x104dc4[_0xf7eb21(0x195)];_0x257cd5++){const _0x300f94=_0x104dc4[_0x257cd5],_0x4f2930=_0x57b7b5[_0xf7eb21(0x1a3)][_0x257cd5],_0x49347a=imageObjectValue(_0x48cf5e,_0x57b7b5['importId'],_0x300f94);if(_0x4f2930['status']===_0xf7eb21(0x1d5)&&canonical(_0x4f2930[_0xf7eb21(0x193)])!==canonical(_0x49347a))throw Error('Completed\x20image\x20checkpoint\x20value\x20changed.');let _0x3980c6;if(_0x1d6981[_0xf7eb21(0x1b1)]||_0x4f2930[_0xf7eb21(0x1c7)]==='succeeded')_0x3980c6=_0x4d2360(await _0x1d6981[_0xf7eb21(0x198)]['readback'](_0x57b7b5[_0xf7eb21(0x1bc)],_0x300f94),_0x300f94);if(!_0x3980c6&&_0x4f2930[_0xf7eb21(0x1c7)]===_0xf7eb21(0x1d5))throw Error(_0xf7eb21(0x1bf));if(!_0x3980c6){try{_0x4d2360(await _0x1d6981[_0xf7eb21(0x198)][_0xf7eb21(0x1dc)](_0x57b7b5['importId'],_0x300f94),_0x300f94);}catch(_0x378d89){_0x3980c6=_0x4d2360(await _0x1d6981[_0xf7eb21(0x198)][_0xf7eb21(0x18d)](_0x57b7b5[_0xf7eb21(0x1bc)],_0x300f94),_0x300f94);if(!_0x3980c6)throw Error(_0xf7eb21(0x1c6));}if(!_0x3980c6)_0x3980c6=_0x4d2360(await _0x1d6981['imageApi'][_0xf7eb21(0x18d)](_0x57b7b5[_0xf7eb21(0x1bc)],_0x300f94),_0x300f94);if(!_0x3980c6)throw Error(_0xf7eb21(0x19d));}_0x4f2930[_0xf7eb21(0x1c7)]=_0xf7eb21(0x1d5),_0x4f2930[_0xf7eb21(0x193)]=_0x3980c6,await saveImportJson(_0x18beba,_0x57b7b5);}const _0x551ee0=bindImageManifest(_0xa62d04,_0x48cf5e,_0x57b7b5['importId']),_0x55267c=_0x57b7b5[_0xf7eb21(0x19e)]===_0xf7eb21(0x18c)?await exists(_0x344568):_0x57b7b5[_0xf7eb21(0x19e)]!==_0xf7eb21(0x1a3);_0x57b7b5[_0xf7eb21(0x19e)]==='media'&&(_0x57b7b5[_0xf7eb21(0x19e)]='rows-preparing',await saveImportJson(_0x18beba,_0x57b7b5));const _0x2f6d6d={..._0x1d6981,'manifest':_0x551ee0,'checkpoint':_0x344568,'report':_0x2e0a2e,'resume':_0x55267c,'onCheckpointReady':async()=>{const _0x515aa9=_0xf7eb21;_0x57b7b5[_0x515aa9(0x19e)]=_0x515aa9(0x196),await saveImportJson(_0x18beba,_0x57b7b5);}},_0x11d3db=_0x48cf5e['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x2f6d6d,'reconcileImageConflicts':_0x1d6981[_0xf7eb21(0x1b1)]===!![]&&_0x55267c}):await runExcelImport(_0x2f6d6d);return _0x57b7b5[_0xf7eb21(0x19e)]=_0xf7eb21(0x1d9),await saveImportJson(_0x18beba,_0x57b7b5),{..._0x11d3db,'checkpoint':_0x18beba,'imageCount':_0xa62d04[_0xf7eb21(0x1b7)]?.[_0xf7eb21(0x1e3)]((_0x4ebbf0,_0x15a662)=>_0x4ebbf0+_0x15a662['hashes'][_0xf7eb21(0x195)],0x0)??0x0,'uniqueImages':_0x104dc4[_0xf7eb21(0x195)]};}finally{await _0x29823d();}}
@@ -1 +1 @@
1
- (function(_0x12c43c,_0x3b8b20){const _0xec5060=a145_0x197f,_0x5e70f0=_0x12c43c();while(!![]){try{const _0x8cee02=parseInt(_0xec5060(0x1b7))/0x1*(parseInt(_0xec5060(0x1be))/0x2)+-parseInt(_0xec5060(0x1ba))/0x3+-parseInt(_0xec5060(0x1ac))/0x4+-parseInt(_0xec5060(0x1b0))/0x5+parseInt(_0xec5060(0x1bc))/0x6*(parseInt(_0xec5060(0x1ab))/0x7)+-parseInt(_0xec5060(0x1ae))/0x8+parseInt(_0xec5060(0x1aa))/0x9;if(_0x8cee02===_0x3b8b20)break;else _0x5e70f0['push'](_0x5e70f0['shift']());}catch(_0x4d27cb){_0x5e70f0['push'](_0x5e70f0['shift']());}}}(a145_0x22d5,0xc7675));export function assertDatasetImportTarget(_0x5ab76d,_0x221acf,_0x5cec4a){const _0x4b8294=a145_0x197f;if(!_0x5ab76d||typeof _0x5ab76d!==_0x4b8294(0x1b6)||Array['isArray'](_0x5ab76d))throw Error(_0x4b8294(0x1b3));const _0x2c5e51=[_0x5ab76d['code'],_0x5ab76d['modelCode'],_0x5ab76d[_0x4b8294(0x1bd)]?.[_0x4b8294(0x1b4)]][_0x4b8294(0x1b8)](_0x4c579c=>_0x4c579c!=null);if(!_0x2c5e51[_0x4b8294(0x1b9)]||_0x2c5e51[_0x4b8294(0x1b1)](_0x1a9e16=>_0x1a9e16!==_0x5cec4a)||_0x5ab76d[_0x4b8294(0x1b5)]!=null&&_0x5ab76d['appCode']!==_0x221acf||_0x5ab76d[_0x4b8294(0x1bd)]?.['appCode']!=null&&_0x5ab76d[_0x4b8294(0x1bd)][_0x4b8294(0x1b5)]!==_0x221acf)throw Error(_0x4b8294(0x1bb));const _0x218d53=[_0x5ab76d[_0x4b8294(0x1ad)],_0x5ab76d[_0x4b8294(0x1bd)]?.[_0x4b8294(0x1af)]][_0x4b8294(0x1b8)](_0x449a6c=>_0x449a6c!=null);if(_0x218d53['some'](_0x27532f=>typeof _0x27532f!==_0x4b8294(0x1b2)||_0x27532f!==_0x218d53[0x0]))throw Error('Dataset\x20source\x20metadata\x20is\x20inconsistent.');return _0x218d53[0x0];}function a145_0x197f(_0x505865,_0x26024d){_0x505865=_0x505865-0x1aa;const _0x22d5bd=a145_0x22d5();let _0x197fd3=_0x22d5bd[_0x505865];return _0x197fd3;}function a145_0x22d5(){const _0x2eaa96=['some','string','Dataset\x20metadata\x20is\x20missing.','datasetCode','appCode','object','352axYFnE','filter','length','899235ZyfgxE','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','129306hqKrYq','dataset','2536RvPhKR','38536470iTGacm','161bNrgBo','5943880UITyLe','source','12798160nVVBfa','sourceType','5107985dNsphM'];a145_0x22d5=function(){return _0x2eaa96;};return a145_0x22d5();}
1
+ function a148_0x1721(_0x4b8d8c,_0x2e8428){_0x4b8d8c=_0x4b8d8c-0x99;const _0x58d795=a148_0x58d7();let _0x172120=_0x58d795[_0x4b8d8c];return _0x172120;}(function(_0x2ef2d1,_0x51417f){const _0x8f81fb=a148_0x1721,_0x17d2a7=_0x2ef2d1();while(!![]){try{const _0x1436dc=parseInt(_0x8f81fb(0xaa))/0x1*(parseInt(_0x8f81fb(0xad))/0x2)+-parseInt(_0x8f81fb(0xa0))/0x3*(parseInt(_0x8f81fb(0xa5))/0x4)+-parseInt(_0x8f81fb(0x9f))/0x5+-parseInt(_0x8f81fb(0xac))/0x6*(-parseInt(_0x8f81fb(0x9e))/0x7)+parseInt(_0x8f81fb(0x9d))/0x8+-parseInt(_0x8f81fb(0xa3))/0x9+parseInt(_0x8f81fb(0xae))/0xa;if(_0x1436dc===_0x51417f)break;else _0x17d2a7['push'](_0x17d2a7['shift']());}catch(_0x1831a6){_0x17d2a7['push'](_0x17d2a7['shift']());}}}(a148_0x58d7,0x9cb8a));function a148_0x58d7(){const _0x38b325=['22554BDRjES','2JedkET','8677430UZQOSD','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','isArray','source','length','Dataset\x20source\x20metadata\x20is\x20inconsistent.','filter','4584368sWadFU','329RSrggY','4291735zAVSlf','567348veyhJk','sourceType','modelCode','3282273wXhGdz','code','16RGnMNG','Dataset\x20metadata\x20is\x20missing.','appCode','dataset','string','1003976ISgSrV','datasetCode'];a148_0x58d7=function(){return _0x38b325;};return a148_0x58d7();}export function assertDatasetImportTarget(_0x50ba81,_0x4082f7,_0x5ac602){const _0x260297=a148_0x1721;if(!_0x50ba81||typeof _0x50ba81!=='object'||Array[_0x260297(0xb0)](_0x50ba81))throw Error(_0x260297(0xa6));const _0x5054eb=[_0x50ba81[_0x260297(0xa4)],_0x50ba81[_0x260297(0xa2)],_0x50ba81['dataset']?.[_0x260297(0xab)]][_0x260297(0x9c)](_0x3f6df1=>_0x3f6df1!=null);if(!_0x5054eb[_0x260297(0x9a)]||_0x5054eb['some'](_0x32112a=>_0x32112a!==_0x5ac602)||_0x50ba81['appCode']!=null&&_0x50ba81[_0x260297(0xa7)]!==_0x4082f7||_0x50ba81[_0x260297(0xa8)]?.['appCode']!=null&&_0x50ba81[_0x260297(0xa8)]['appCode']!==_0x4082f7)throw Error(_0x260297(0xaf));const _0x5eecb8=[_0x50ba81[_0x260297(0x99)],_0x50ba81[_0x260297(0xa8)]?.[_0x260297(0xa1)]][_0x260297(0x9c)](_0x2f4248=>_0x2f4248!=null);if(_0x5eecb8['some'](_0x62d408=>typeof _0x62d408!==_0x260297(0xa9)||_0x62d408!==_0x5eecb8[0x0]))throw Error(_0x260297(0x9b));return _0x5eecb8[0x0];}
@@ -1 +1 @@
1
- function a146_0x168d(){const _0x586a59=['rows','368700zElyXD','schemaFingerprint','utf8','Excel\x20row\x20','maxBatchBytes','byteLength','length','rowNumber','1657EYTZdV','2271681HbgVbT','schemaVersion','6vJZkJE','values','823804sOmaCh','8jRVDsH','stringify','1014530pZHrbh','58HRMIkW','1484875tvcnQf','63477foPLvq','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.'];a146_0x168d=function(){return _0x586a59;};return a146_0x168d();}function a146_0x1811(_0x22d96a,_0x52e815){_0x22d96a=_0x22d96a-0x1a3;const _0x168d83=a146_0x168d();let _0x1811e2=_0x168d83[_0x22d96a];return _0x1811e2;}(function(_0x4dd1b4,_0x36d139){const _0x1ae8d5=a146_0x1811,_0x39d0fd=_0x4dd1b4();while(!![]){try{const _0x3d39c0=parseInt(_0x1ae8d5(0x1ae))/0x1*(parseInt(_0x1ae8d5(0x1b7))/0x2)+parseInt(_0x1ae8d5(0x1a3))/0x3+-parseInt(_0x1ae8d5(0x1b3))/0x4+-parseInt(_0x1ae8d5(0x1b6))/0x5+-parseInt(_0x1ae8d5(0x1b1))/0x6*(-parseInt(_0x1ae8d5(0x1b8))/0x7)+-parseInt(_0x1ae8d5(0x1b4))/0x8*(-parseInt(_0x1ae8d5(0x1af))/0x9)+parseInt(_0x1ae8d5(0x1a6))/0xa;if(_0x3d39c0===_0x36d139)break;else _0x39d0fd['push'](_0x39d0fd['shift']());}catch(_0x4fdaa3){_0x39d0fd['push'](_0x39d0fd['shift']());}}}(a146_0x168d,0x277df));export function previewImportBatchCount(_0x1b37a0,_0x3601ef,_0x46f48f){const _0x199377=a146_0x1811,_0x5c0148=_0x4d01a4=>_0x4d01a4['map'](_0x448b04=>_0x3601ef[_0x199377(0x1b0)]===0x1?{..._0x1b37a0[_0x199377(0x1a5)][_0x448b04][_0x199377(0x1b2)],'id':-0x1fffffffffffff}:_0x1b37a0[_0x199377(0x1a5)][_0x448b04][_0x199377(0x1b2)]),_0x46c3f6=_0x3cf186=>Buffer[_0x199377(0x1ab)](JSON[_0x199377(0x1b5)]({'schemaFingerprint':_0x3601ef[_0x199377(0x1a7)],..._0x3601ef[_0x199377(0x1b0)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x5c0148(_0x3cf186)}),_0x199377(0x1a8));let _0x2b488f=0x0,_0x1c5f47=[];for(let _0x53de12=0x0;_0x53de12<_0x1b37a0[_0x199377(0x1a5)][_0x199377(0x1ac)];_0x53de12++){if(_0x46c3f6([_0x53de12])>_0x3601ef[_0x199377(0x1aa)])throw Error(_0x199377(0x1a9)+_0x1b37a0[_0x199377(0x1a5)][_0x53de12][_0x199377(0x1ad)]+_0x199377(0x1a4));_0x1c5f47[_0x199377(0x1ac)]&&(_0x1c5f47[_0x199377(0x1ac)]===_0x46f48f||_0x46c3f6([..._0x1c5f47,_0x53de12])>_0x3601ef[_0x199377(0x1aa)])&&(_0x2b488f++,_0x1c5f47=[]),_0x1c5f47['push'](_0x53de12);}return _0x2b488f+Number(_0x1c5f47[_0x199377(0x1ac)]>0x0);}
1
+ (function(_0x470999,_0x871543){const _0x146315=a149_0x25b8,_0x4a060d=_0x470999();while(!![]){try{const _0x5d162d=-parseInt(_0x146315(0x160))/0x1*(-parseInt(_0x146315(0x163))/0x2)+-parseInt(_0x146315(0x156))/0x3*(parseInt(_0x146315(0x15a))/0x4)+-parseInt(_0x146315(0x15f))/0x5+parseInt(_0x146315(0x161))/0x6+-parseInt(_0x146315(0x165))/0x7*(parseInt(_0x146315(0x152))/0x8)+-parseInt(_0x146315(0x164))/0x9+parseInt(_0x146315(0x151))/0xa;if(_0x5d162d===_0x871543)break;else _0x4a060d['push'](_0x4a060d['shift']());}catch(_0x308e95){_0x4a060d['push'](_0x4a060d['shift']());}}}(a149_0x2d38,0xb60dd));function a149_0x2d38(){const _0x47460d=['map','3uLsARS','stringify','schemaFingerprint','utf8','625712IvsrZY','length','push','rowNumber','values','5468365ypREsM','82477KLYaGs','1688202rZKQHu','rows','30qiPZOn','10858095oyfkvp','22953XbJyPL','Excel\x20row\x20','24280600qWPbRk','1816BwJXfe','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','maxBatchBytes'];a149_0x2d38=function(){return _0x47460d;};return a149_0x2d38();}function a149_0x25b8(_0x3b7f96,_0x4d3713){_0x3b7f96=_0x3b7f96-0x150;const _0x2d38ff=a149_0x2d38();let _0x25b899=_0x2d38ff[_0x3b7f96];return _0x25b899;}export function previewImportBatchCount(_0x3fdf1d,_0x5c1e04,_0x2294a7){const _0x525b27=a149_0x25b8,_0x486c07=_0x66e3d9=>_0x66e3d9[_0x525b27(0x155)](_0x194982=>_0x5c1e04['schemaVersion']===0x1?{..._0x3fdf1d[_0x525b27(0x162)][_0x194982]['values'],'id':-0x1fffffffffffff}:_0x3fdf1d['rows'][_0x194982][_0x525b27(0x15e)]),_0x2aa153=_0x4847f8=>Buffer['byteLength'](JSON[_0x525b27(0x157)]({'schemaFingerprint':_0x5c1e04[_0x525b27(0x158)],..._0x5c1e04['schemaVersion']===0x2?{'taskId':0x2**0x34}:{},'items':_0x486c07(_0x4847f8)}),_0x525b27(0x159));let _0x2686d2=0x0,_0x584a1f=[];for(let _0x1539aa=0x0;_0x1539aa<_0x3fdf1d[_0x525b27(0x162)][_0x525b27(0x15b)];_0x1539aa++){if(_0x2aa153([_0x1539aa])>_0x5c1e04['maxBatchBytes'])throw Error(_0x525b27(0x150)+_0x3fdf1d[_0x525b27(0x162)][_0x1539aa][_0x525b27(0x15d)]+_0x525b27(0x153));_0x584a1f[_0x525b27(0x15b)]&&(_0x584a1f[_0x525b27(0x15b)]===_0x2294a7||_0x2aa153([..._0x584a1f,_0x1539aa])>_0x5c1e04[_0x525b27(0x154)])&&(_0x2686d2++,_0x584a1f=[]),_0x584a1f[_0x525b27(0x15c)](_0x1539aa);}return _0x2686d2+Number(_0x584a1f[_0x525b27(0x15b)]>0x0);}