@lovrabet/lovrabet-cli 2.3.8-beta.5 → 2.3.8-beta.7
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.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -3
- package/skills/lovrabet/SKILL.md +10 -2
- package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
- package/skills/lovrabet.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
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
|
+
const a144_0x1586bd=a144_0x520d;function a144_0x23fc(){const _0x4e6cf9=['jpg','merges','isInteger','media','boolean','getTime','XML\x20DTD/entities\x20are\x20not\x20supported.','Invalid\x20XLSX\x20entry.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','materialized','directory','processAttributes','end','readEntry','2292064JOkwfh','Worksheet\x20coordinate\x20exceeds\x20','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Worksheet\x20exceeds\x2016384\x20columns.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Unknown\x20Excel\x20header:\x20','dataset','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','formula','cells','closetag','doctype','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20merge\x20reference.','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','equals','extraFields','split','fromBuffer','slice','./utils','worksheets','ranges','abs','result','appCode','number','Image\x20XML\x20node\x20budget\x20exceeded.','map','right','hyperlink','getRow','sharedFormula','Invalid\x20ZIP\x20local\x20file\x20header.','rows','utf8','doType','xlsx','charCodeAt','fileNameStr','_xlnm.Print_Titles','Expected\x20a\x20boolean\x20cell.','MAX_SAFE_INTEGER','Required\x20field\x20is\x20not\x20mapped:\x20','file','689412ZoIoMI','2680412wyWBdQ','ref','Required\x20image\x20value\x20is\x20missing.','date','Merged\x20cells\x20are\x20not\x20supported.','Duplicate\x20workbook\x20ZIP\x20entry.','trim','Duplicate\x20dataset\x20field\x20codes.','Duplicate\x20header:\x20','autoIncrement','Duplicate\x20mapping\x20target:\x20','parseInt','versionMadeBy','mergeCell','update','Cell\x20exceeds\x2064\x20KB.','isFinite','get','isArray','Invalid\x20worksheet\x20hyperlink\x20reference.','type','code','xl/workbook.xml','hidden','2532024SzbHqF','eachCell','uploadFields','Worksheet\x20exceeds\x20','datetime','hiddenRow','generalPurposeBitFlag','image','_xlnm.Print_Area','parse','readBigUInt64LE','creatorId','opentag','isSafeInteger','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','Non-canonical\x20worksheet\x20ZIP\x20entry.','entryCount','parseOpen','col','destroy','decodeEx','object','nativeCell','Expected\x20an\x20Excel\x20date\x20cell.','source','before','rowCount','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','resolve','sheet','createTime','top','push','extraFieldsLength','updateTime','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','sha256','extend','parseClose','extname','length','some','values','reference','bottom','left','readExtraFields','readEntryCursor','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20dataset\x20field\x20extension\x20metadata.','close','Required\x20value\x20is\x20missing.','getCell','tenantCode','attributes','Only\x20.xlsx\x20files\x20are\x20supported.','handleUTF8','relativeOffsetOfLocalHeader','METADATA','3373976CTLSLr','bitFlag','exceljs/lib/utils/col-cache.js','Missing\x20image\x20media:\x20','Worksheet\x20column\x20objects\x20exceed\x20100000.','externalFileAttributes','test','fileCommentRaw','exceljs/lib/xlsx/xform/book/defined-name-xform.js','subarray','10ONlKBw','errors','3xCwPFM','sort','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Requested\x20worksheet\x20does\x20not\x20exist.','upload','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','data','concat','filter','extraFieldRaw','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','datasetId','1444874AzBjcI','readUInt16LE','properties','row','imageCells','contentHash','digest','integer','Image\x20XML\x20event\x20budget\x20exceeded.','toLowerCase','./utf8','find','set','required','text','hex','byteLength','readUInt32LE','dataset-import/','utf8decode','creatorName','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Invalid\x20worksheet\x20nested\x20cell.','exceljs','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','isFile','name','model','fields','compressedSize','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','20ITkDNk','size','write','unixPermissions','has','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','add','max','localeCompare','address','generated','every','8625321gqjQkk','Dataset\x20field\x20metadata\x20is\x20missing.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','.xlsx','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','serial_number','definedName','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20defined\x20name\x20coordinate.','value','warnings','lastIndexOf','fileNameRaw','./reader/readerFor','includes','fileComment','message','imageFields','dataType','[Content_Types].xml','string','batchSize','Expected\x20a\x20text\x20cell.','dir','Unsupported\x20field\x20type:\x20','columnCount','parserVersion','from','Workbook','textarea','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','create','stringify','exec','error','Invalid\x20XLSX\x20archive.','Invalid\x20worksheet\x20XML.','decimal','dataValidations','mapping','sourceType','isBuffer','deleted','modifierId','XLSX\x20file\x20exceeds\x2020\x20MB.'];a144_0x23fc=function(){return _0x4e6cf9;};return a144_0x23fc();}function a144_0x520d(_0x776057,_0x44225c){_0x776057=_0x776057-0x164;const _0x23fc48=a144_0x23fc();let _0x520de7=_0x23fc48[_0x776057];return _0x520de7;}(function(_0x90955d,_0x9d7093){const _0x23fcd7=a144_0x520d,_0x9f9b=_0x90955d();while(!![]){try{const _0x18e6ea=-parseInt(_0x23fcd7(0x244))/0x1+parseInt(_0x23fcd7(0x1b0))/0x2*(parseInt(_0x23fcd7(0x1a4))/0x3)+parseInt(_0x23fcd7(0x198))/0x4+parseInt(_0x23fcd7(0x1a2))/0x5*(parseInt(_0x23fcd7(0x25d))/0x6)+parseInt(_0x23fcd7(0x245))/0x7+parseInt(_0x23fcd7(0x216))/0x8+parseInt(_0x23fcd7(0x1db))/0x9*(-parseInt(_0x23fcd7(0x1cf))/0xa);if(_0x18e6ea===_0x9d7093)break;else _0x9f9b['push'](_0x9f9b['shift']());}catch(_0x3626a4){_0x9f9b['push'](_0x9f9b['shift']());}}}(a144_0x23fc,0x7387d));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x219077 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3a67e4 from'exceljs';import a144_0x5c3bed 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_0x1586bd(0x192),a144_0x1586bd(0x230),a144_0x1586bd(0x1af),a144_0x1586bd(0x168),a144_0x1586bd(0x1c4),a144_0x1586bd(0x206),'modifierName',a144_0x1586bd(0x17b),a144_0x1586bd(0x17f),a144_0x1586bd(0x205)]),TYPES=new Set([a144_0x1586bd(0x1ef),'text','textarea',a144_0x1586bd(0x231),a144_0x1586bd(0x200),'integer',a144_0x1586bd(0x20c),a144_0x1586bd(0x248),a144_0x1586bd(0x261),a144_0x1586bd(0x164),a144_0x1586bd(0x1a8)]),isImageContainer=_0x7f2d2=>[a144_0x1586bd(0x164),'upload'][a144_0x1586bd(0x1e9)](_0x7f2d2['toLowerCase']()),hash=_0x3c11a6=>createHash(a144_0x1586bd(0x181))[a144_0x1586bd(0x253)](_0x3c11a6)[a144_0x1586bd(0x1b6)](a144_0x1586bd(0x1bf)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x1586bd(0x1a0)),nameCoordinates=require(a144_0x1586bd(0x19a)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x1586bd(0x179)](a144_0x1586bd(0x1c7))),zipRequire=createRequire(excelRequire[a144_0x1586bd(0x179)]('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x1586bd(0x1e8)),zipUtf8=zipRequire(a144_0x1586bd(0x1ba)),zipPaths=zipRequire(a144_0x1586bd(0x22b));function centralDirectoryEnd(_0x5a95b7,_0xccf6e7){const _0x3bf095=a144_0x1586bd,_0x177029=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x79a551=_0x5a95b7[_0x3bf095(0x1e6)](Buffer[_0x3bf095(0x1f6)]([0x50,0x4b,0x5,0x6]));if(_0x79a551<0x0||_0x79a551+0x16>_0x5a95b7[_0x3bf095(0x185)]||_0x79a551+0x16+_0x5a95b7['readUInt16LE'](_0x79a551+0x14)!==_0x5a95b7[_0x3bf095(0x185)])throw _0x177029();let _0x30b91d=_0x5a95b7['readUInt16LE'](_0x79a551+0xa),_0x1af78a=_0x5a95b7[_0x3bf095(0x1c1)](_0x79a551+0xc),_0x4a19f3=_0x5a95b7[_0x3bf095(0x1c1)](_0x79a551+0x10),_0x473d00=_0x79a551;const _0x454bd2=_0x79a551-0x14,_0x1561bd=_0x454bd2>=0x0&&_0x5a95b7[_0x3bf095(0x1c1)](_0x454bd2)===0x7064b50,_0x41f00=[0x4,0x6,0x8,0xa][_0x3bf095(0x186)](_0x180201=>_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+_0x180201)===0xffff)||_0x1af78a===0xffffffff||_0x4a19f3===0xffffffff;if(_0x1561bd!==_0x41f00)throw _0x177029();if(_0x1561bd){if(_0x5a95b7[_0x3bf095(0x1e6)](Buffer[_0x3bf095(0x1f6)]([0x50,0x4b,0x6,0x7]))!==_0x454bd2)throw _0x177029();const _0x25d606=_0x21cd95=>{const _0x3d88dc=_0x3bf095,_0x1ad6c8=Number(_0x5a95b7[_0x3d88dc(0x167)](_0x21cd95));if(!Number[_0x3d88dc(0x16a)](_0x1ad6c8))throw _0x177029();return _0x1ad6c8;};_0x473d00=_0x25d606(_0x454bd2+0x8);if(_0x5a95b7[_0x3bf095(0x1c1)](_0x454bd2+0x4)!==0x0||_0x5a95b7['readUInt32LE'](_0x454bd2+0x10)!==0x1||_0x473d00>_0x454bd2-0x38||_0x5a95b7[_0x3bf095(0x1c1)](_0x473d00)!==0x6064b50||_0x25d606(_0x473d00+0x4)!==0x2c||_0x473d00+0x38!==_0x454bd2||_0x5a95b7[_0x3bf095(0x1c1)](_0x473d00+0x10)!==0x0||_0x5a95b7['readUInt32LE'](_0x473d00+0x14)!==0x0)throw _0x177029();_0x30b91d=_0x25d606(_0x473d00+0x20),_0x1af78a=_0x25d606(_0x473d00+0x28),_0x4a19f3=_0x25d606(_0x473d00+0x30);if(_0x25d606(_0x473d00+0x18)!==_0x30b91d)throw _0x177029();}else{if(_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+0x4)!==0x0||_0x5a95b7['readUInt16LE'](_0x79a551+0x6)!==0x0||_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+0x8)!==_0x30b91d)throw _0x177029();}const _0x135dcf=_0xccf6e7[_0x3bf095(0x18c)];if(_0x4a19f3!==_0x135dcf||_0x30b91d!==_0xccf6e7[_0x3bf095(0x16d)]||_0x4a19f3+_0x1af78a!==_0x473d00)throw _0x177029();return _0x473d00;}function consumerEntryName(_0x249407,_0x2d1e1d){const _0x2f9d5b=a144_0x1586bd;if(_0x2d1e1d[_0x2f9d5b(0x227)][_0x2f9d5b(0x1ac)](_0x5aa8d5=>_0x5aa8d5['id']===0x1)[_0x2f9d5b(0x185)]>0x1)throw new Error(_0x2f9d5b(0x178));const _0x4c91a2=_0x2d1e1d,_0x202ed5=_0x2d1e1d[_0x2f9d5b(0x196)];if(!Buffer['isBuffer'](_0x4c91a2['fileNameRaw'])||!Buffer['isBuffer'](_0x4c91a2[_0x2f9d5b(0x1ad)])||!Buffer[_0x2f9d5b(0x204)](_0x4c91a2[_0x2f9d5b(0x19f)])||!Number[_0x2f9d5b(0x16a)](_0x202ed5)||_0x202ed5<0x0||_0x202ed5>_0x249407[_0x2f9d5b(0x185)]-0x1e||_0x249407[_0x2f9d5b(0x1c1)](_0x202ed5)!==0x4034b50)throw new Error(_0x2f9d5b(0x238));const _0x169202=_0x202ed5+0x1e+_0x249407[_0x2f9d5b(0x1b1)](_0x202ed5+0x1a),_0x3254b9=_0x169202+_0x249407[_0x2f9d5b(0x1b1)](_0x202ed5+0x1c)+_0x2d1e1d[_0x2f9d5b(0x1cd)];if(!Number['isSafeInteger'](_0x3254b9)||_0x3254b9>_0x249407[_0x2f9d5b(0x185)])throw new Error(_0x2f9d5b(0x238));if(_0x169202>_0x249407['length']||!_0x249407[_0x2f9d5b(0x1a1)](_0x202ed5+0x1e,_0x169202)[_0x2f9d5b(0x226)](_0x4c91a2[_0x2f9d5b(0x1e7)]))throw new Error(_0x2f9d5b(0x180));const _0xce10e8=new ZipEntry({},{'decodeFileName':zipUtf8[_0x2f9d5b(0x1c3)]});_0xce10e8[_0x2f9d5b(0x199)]=_0x2d1e1d[_0x2f9d5b(0x263)],_0xce10e8['fileName']=_0x4c91a2[_0x2f9d5b(0x1e7)],_0xce10e8[_0x2f9d5b(0x1ea)]=_0x4c91a2['fileCommentRaw'],_0xce10e8[_0x2f9d5b(0x17e)]=_0x4c91a2[_0x2f9d5b(0x1ad)][_0x2f9d5b(0x185)],_0xce10e8[_0x2f9d5b(0x18b)](zipReader(_0x4c91a2[_0x2f9d5b(0x1ad)])),_0xce10e8[_0x2f9d5b(0x195)](),_0xce10e8[_0x2f9d5b(0x251)]=_0x2d1e1d[_0x2f9d5b(0x251)],_0xce10e8['externalFileAttributes']=_0x2d1e1d[_0x2f9d5b(0x19d)],_0xce10e8[_0x2f9d5b(0x213)]();const _0x5122ca=_0xce10e8[_0x2f9d5b(0x1f2)]||Boolean((_0xce10e8[_0x2f9d5b(0x1d2)]??0x0)&0x4000),_0x1982f8=zipPaths[_0x2f9d5b(0x179)](_0xce10e8[_0x2f9d5b(0x23e)]),_0xa073bf=_0x1982f8['startsWith']('/')?_0x1982f8[_0x2f9d5b(0x22a)](0x1):_0x1982f8;return{'name':_0xa073bf,'original':_0xce10e8[_0x2f9d5b(0x23e)],'directory':_0x5122ca};}export function normalizeImportFields(_0x11ee5c){const _0x34f933=a144_0x1586bd;if(!_0x11ee5c||(_0x11ee5c[_0x34f933(0x175)]??_0x11ee5c[_0x34f933(0x21c)]?.[_0x34f933(0x203)])!==_0x34f933(0x197))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x4779ab=Array[_0x34f933(0x257)](_0x11ee5c[_0x34f933(0x1cc)]),_0x4bb584=_0x4779ab?_0x11ee5c[_0x34f933(0x1cc)]:_0x11ee5c[_0x34f933(0x1b2)];if(!Array[_0x34f933(0x257)](_0x4bb584)||_0x4bb584[_0x34f933(0x185)]===0x0)throw new Error(_0x34f933(0x1dc));const _0x36b709=[],_0x9702b9=new Set();for(const _0x409a9e of _0x4bb584){if(_0x409a9e['deleted']===!![])continue;let _0x392117=_0x409a9e[_0x34f933(0x182)]??{};if(!_0x4779ab&&typeof _0x392117===_0x34f933(0x1ef)){try{_0x392117=JSON[_0x34f933(0x166)](_0x392117);}catch{throw new Error(_0x34f933(0x18e));}if(!_0x392117||typeof _0x392117!==_0x34f933(0x172)||Array[_0x34f933(0x257)](_0x392117))throw new Error(_0x34f933(0x18e));}const _0x539216=_0x4779ab?_0x409a9e['name']:_0x409a9e['code'],_0xe2dd4e=_0x4779ab?_0x409a9e[_0x34f933(0x23b)]:_0x409a9e['type']??_0x409a9e[_0x34f933(0x1ed)];if(typeof _0x539216!==_0x34f933(0x1ef)||!_0x539216||typeof _0xe2dd4e!==_0x34f933(0x1ef)||_0x9702b9['has'](_0x539216))throw new Error(_0x34f933(0x21e));if(_0xe2dd4e['toLowerCase']()===_0x34f933(0x1e0))throw new Error(_0x34f933(0x1a6));_0x9702b9[_0x34f933(0x1d5)](_0x539216);const _0x49d6d2=_0x4779ab?_0x409a9e:_0x392117,_0x4817f2={'code':_0x539216,'type':_0xe2dd4e,'required':_0x49d6d2[_0x34f933(0x1bd)]===!![]};if(RESERVED['has'](_0x539216)||_0x49d6d2['generated']===!![]||_0x49d6d2[_0x34f933(0x24e)]===!![])_0x4817f2[_0x34f933(0x1d9)]=!![];_0x36b709[_0x34f933(0x17d)](_0x4817f2);}return _0x36b709;}async function checkArchive(_0x189601,_0x307cae){await new Promise((_0x5f4cc4,_0x466290)=>{const _0x4bba27=a144_0x520d;a144_0x5c3bed[_0x4bba27(0x229)](_0x189601,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x1cc756,_0x2c87d0)=>{const _0x13a6f8=_0x4bba27;if(_0x1cc756||!_0x2c87d0){_0x466290(_0x1cc756??new Error(_0x13a6f8(0x1fe)));return;}let _0x5f4440;try{_0x5f4440=centralDirectoryEnd(_0x189601,_0x2c87d0);}catch(_0x536a6b){_0x2c87d0[_0x13a6f8(0x18f)](),_0x466290(_0x536a6b);return;}let _0x388e45=0x0,_0x3d2816=0x0,_0x270247=0x0,_0x3d4ea2=0x0,_0x553772=0x0,_0x42a5f0=0x0,_0x2e760f=0x0,_0x5135b7=0x0,_0x26fc89=0x0,_0x3a5215=![],_0xe65325;const _0x2b59a4=new Set(),_0x125f12=_0x2f4992=>{const _0x355739=_0x13a6f8;if(_0x3a5215)return;_0x3a5215=!![],_0xe65325?.['destroy'](),_0x2c87d0[_0x355739(0x18f)](),_0x466290(_0x2f4992);},_0x19bd7a=(_0x308000,_0x394163)=>{const _0xd0a6fa=_0x13a6f8;if(!_0x308000||!/^\d+$/['test'](_0x308000))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x478dc3=Number(_0x308000);if(!Number[_0xd0a6fa(0x16a)](_0x478dc3)||_0x478dc3<0x1||_0x478dc3>_0x394163)throw new Error(_0xd0a6fa(0x217)+_0x394163+'.');return _0x478dc3;},_0x59060b=(_0x6e3401,_0x1857fc=MAX_XML_COLUMNS)=>{const _0x2aa6eb=_0x13a6f8,_0x491a7c=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2aa6eb(0x1fc)](_0x6e3401);if(!_0x491a7c)throw new Error(_0x2aa6eb(0x1df));let _0x11c1e0=0x0;for(const _0x5b4251 of _0x491a7c[0x1])_0x11c1e0=_0x11c1e0*0x1a+_0x5b4251[_0x2aa6eb(0x23d)](0x0)-0x40;if(_0x11c1e0>_0x1857fc)throw new Error(_0x2aa6eb(0x260)+_0x1857fc+'\x20columns.');return{'row':_0x19bd7a(_0x491a7c[0x2],MAX_XML_ROWS),'col':_0x11c1e0};},_0x5e519b=_0x3b4142=>{const _0x37417a=_0x13a6f8;if(_0x3b4142[_0x37417a(0x1ca)]===_0x37417a(0x165)||_0x3b4142[_0x37417a(0x1ca)]===_0x37417a(0x23f))return;for(const _0x160d5e of _0x3b4142[_0x37417a(0x22d)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x160d5e[_0x37417a(0x228)]('!')['pop']()||''))continue;const _0x958685=nameCoordinates[_0x37417a(0x171)](_0x160d5e),_0x1f6327=_0x37417a(0x17c)in _0x958685,_0x103072=_0x1f6327?[_0x958685[_0x37417a(0x17c)],_0x958685[_0x37417a(0x189)]]:[_0x958685[_0x37417a(0x1b3)]],_0x40eaa4=_0x1f6327?[_0x958685[_0x37417a(0x18a)],_0x958685[_0x37417a(0x234)]]:[_0x958685[_0x37417a(0x16f)]],_0x232567=(_0x4363c8,_0x56df33)=>Number['isSafeInteger'](_0x4363c8)&&_0x4363c8>=0x1&&_0x4363c8<=_0x56df33;if(!_0x103072['every'](_0x1b2f60=>_0x232567(_0x1b2f60,MAX_XML_ROWS))||!_0x40eaa4[_0x37417a(0x1da)](_0x3b21ed=>_0x232567(_0x3b21ed,MAX_XML_COLUMNS)))throw new Error(_0x37417a(0x1e3));_0x2e760f+=_0x1f6327?(_0x958685['bottom']-_0x958685['top']+0x1)*(_0x958685[_0x37417a(0x234)]-_0x958685[_0x37417a(0x18a)]+0x1):0x1;if(_0x2e760f>MAX_ROWS)throw new Error(_0x37417a(0x21a));}};_0x2c87d0['on'](_0x13a6f8(0x1fd),_0x125f12),_0x2c87d0['on']('entry',_0x1cc6aa=>{const _0x27ca21=_0x13a6f8;if(_0x3a5215)return;if(++_0x270247>0x2710||(_0x388e45+=_0x1cc6aa['uncompressedSize'])>MAX_EXPANDED){_0x125f12(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x5605c0;try{_0x5605c0=consumerEntryName(_0x189601,_0x1cc6aa);}catch(_0x120ca1){_0x125f12(_0x120ca1);return;}if(_0x5605c0[_0x27ca21(0x212)]){_0x2c87d0[_0x27ca21(0x215)]();return;}const _0x3edd80=_0x5605c0[_0x27ca21(0x1ca)];if(_0x307cae&&(_0x3edd80!==_0x5605c0['original']||_0x2b59a4[_0x27ca21(0x1d3)](_0x3edd80)||_0x3edd80['startsWith']('/')||_0x3edd80[_0x27ca21(0x1e9)]('\x5c'))){_0x125f12(new Error(_0x27ca21(0x1f9)));return;}if(_0x3edd80!==_0x5605c0['original']&&(_0x3edd80===_0x27ca21(0x25b)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x27ca21(0x19e)](_0x3edd80))){_0x125f12(new Error(_0x27ca21(0x1a9)));return;}const _0x2c69c6=_0x3edd80===_0x27ca21(0x25b);if(_0x2c69c6&&_0x2b59a4[_0x27ca21(0x1d3)](_0x3edd80)){_0x125f12(new Error(_0x27ca21(0x24a)));return;}_0x2b59a4['add'](_0x3edd80);const _0x2e3063=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x27ca21(0x19e)](_0x3edd80);if(_0x2e3063&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x27ca21(0x19e)](_0x3edd80)){_0x125f12(new Error(_0x27ca21(0x16c)));return;}_0x2c87d0['openReadStream'](_0x1cc6aa,(_0x1068da,_0x2cf3f5)=>{const _0x333e0c=_0x27ca21;if(_0x3a5215){_0x2cf3f5?.[_0x333e0c(0x170)]();return;}if(_0x1068da||!_0x2cf3f5){_0x125f12(_0x1068da??new Error(_0x333e0c(0x20f)));return;}_0xe65325=_0x2cf3f5;const _0x1e137d=_0x307cae?[]:undefined,_0x51f264=_0x307cae&&/[.](xml|rels)$/[_0x333e0c(0x19e)](_0x3edd80)?new StringDecoder(_0x333e0c(0x23a)):undefined,_0x1301f8=_0x51f264?new SaxesParser({'xmlns':![]}):undefined,_0x2dff63=()=>{const _0x4d0f6b=_0x333e0c;if(++_0x26fc89>0x1e8480)throw Error(_0x4d0f6b(0x1b8));};_0x1301f8?.['on'](_0x333e0c(0x222),()=>{const _0x30eff6=_0x333e0c;throw Error(_0x30eff6(0x20e));}),_0x1301f8?.['on']('opentag',()=>{const _0x108f67=_0x333e0c;_0x2dff63();if(++_0x5135b7>0x7a120)throw Error(_0x108f67(0x232));}),_0x1301f8?.['on'](_0x333e0c(0x1be),_0x2dff63),_0x1301f8?.['on'](_0x333e0c(0x221),_0x2dff63),_0x1301f8?.['on'](_0x333e0c(0x1fd),_0x46f466=>{throw _0x46f466;});const _0x43981e=_0x2e3063||_0x2c69c6?new StringDecoder('utf8'):undefined,_0x58e6f7=_0x2e3063||_0x2c69c6?new SaxesParser({'xmlns':![]}):undefined;let _0x55ce5c,_0x19a468=0x0,_0x4921b7=0x0,_0x423ed7,_0x18dfb2,_0x3b4c15=![],_0x13e517=![],_0x2e28b3,_0x56f6d4,_0x26632e,_0x14ca74=![];const _0x1a401c=[],_0x11dfff=new Set();let _0x28970a;const _0x5ed815=(_0x1da7b6,_0x5c6cde=0x0)=>{const _0x24ce63=_0x333e0c;_0x553772+=_0x5c6cde+Math[_0x24ce63(0x1d6)](0x0,_0x1da7b6-_0x4921b7),_0x4921b7=Math[_0x24ce63(0x1d6)](_0x4921b7,_0x1da7b6);if(_0x553772>MAX_ROWS)throw new Error(_0x24ce63(0x19c));};_0x58e6f7?.['on'](_0x333e0c(0x169),_0x16451d=>{const _0x368913=_0x333e0c;if(_0x2c69c6){if(!_0x55ce5c&&_0x16451d[_0x368913(0x1ca)]===_0x368913(0x1e1))_0x55ce5c=new DefinedNameXform();_0x55ce5c?.[_0x368913(0x16e)](_0x16451d);return;}if(_0x16451d['name']===_0x368913(0x1b3)){if(_0x13e517)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x19bd7a(_0x16451d[_0x368913(0x193)]['r'],MAX_XML_ROWS),_0x423ed7=undefined,_0x26632e=undefined,_0x14ca74=![];}else{if(_0x16451d['name']==='c'){if(_0x13e517)throw new Error(_0x368913(0x1c6));_0x13e517=!![],_0x3b4c15=Boolean(Number[_0x368913(0x250)](_0x16451d[_0x368913(0x193)]['s']??'',0xa)),_0x28970a=undefined,_0x2e28b3=_0x16451d[_0x368913(0x193)]['r']||undefined,_0x56f6d4=_0x2e28b3?_0x59060b(_0x2e28b3):undefined;if(_0x56f6d4)_0x18dfb2=_0x56f6d4;else _0x18dfb2=_0x423ed7?{'row':_0x423ed7['row'],'col':_0x423ed7[_0x368913(0x16f)]+0x1}:undefined;}else{if(_0x13e517&&['f','v','t'][_0x368913(0x1e9)](_0x16451d['name'])){_0x28970a=_0x16451d[_0x368913(0x1ca)];if(_0x16451d['name']==='f'&&_0x16451d[_0x368913(0x193)]['t'])_0x3b4c15=!![];}else{if(_0x13e517&&_0x16451d[_0x368913(0x1ca)]==='r')_0x3b4c15=!![];else{if(_0x16451d['name']===_0x368913(0x235)){const _0x458b56=_0x16451d['attributes']['ref'];if(!_0x458b56)throw new Error(_0x368913(0x258));const _0x1aa042=_0x458b56[_0x368913(0x228)](':');if(_0x1aa042[_0x368913(0x185)]>0x2)throw new Error(_0x368913(0x258));const _0x29f3d2=_0x59060b(_0x1aa042[0x0]),_0x3db120=_0x59060b(_0x1aa042[0x1]??_0x1aa042[0x0]);_0x11dfff[_0x368913(0x1d5)](_0x458b56),_0x5ed815(Math['max'](_0x29f3d2['col'],_0x3db120[_0x368913(0x16f)]),0x1);}else{if(_0x16451d[_0x368913(0x1ca)]==='col'){const _0x513251=_0x19bd7a(_0x16451d['attributes']['min'],0x4000),_0x407737=_0x19bd7a(_0x16451d[_0x368913(0x193)][_0x368913(0x1d6)],0x4000);if(_0x513251>_0x407737)throw new Error('Invalid\x20worksheet\x20column\x20range.');_0x5ed815(_0x407737,0x1);}else{if(_0x16451d[_0x368913(0x1ca)]===_0x368913(0x252)){const _0x180be7=_0x16451d[_0x368913(0x193)][_0x368913(0x246)];if(!_0x180be7)throw new Error(_0x368913(0x224));const _0x145d85=_0x180be7[_0x368913(0x228)](':');if(_0x145d85[_0x368913(0x185)]>0x2)throw new Error(_0x368913(0x224));const _0x378bb2=_0x59060b(_0x145d85[0x0]),_0x539359=_0x59060b(_0x145d85[0x1]??_0x145d85[0x0]);_0x5ed815(Math[_0x368913(0x1d6)](_0x378bb2[_0x368913(0x16f)],_0x539359[_0x368913(0x16f)]));const _0x11b57a=(Math['abs'](_0x539359[_0x368913(0x1b3)]-_0x378bb2[_0x368913(0x1b3)])+0x1)*(Math[_0x368913(0x22e)](_0x539359[_0x368913(0x16f)]-_0x378bb2[_0x368913(0x16f)])+0x1);_0x3d4ea2+=_0x11b57a+_0x19a468++;if(_0x3d4ea2>MAX_ROWS)throw new Error(_0x368913(0x1e2));}}}}}}}}),_0x58e6f7?.['on'](_0x333e0c(0x1be),_0x50cd27=>{if(_0x2c69c6){_0x55ce5c?.['parseText'](_0x50cd27);return;}if(_0x13e517&&_0x28970a&&_0x50cd27)_0x3b4c15=!![];}),_0x58e6f7?.['on']('closetag',_0x14e7ff=>{const _0x54c84b=_0x333e0c;if(_0x2c69c6){_0x55ce5c&&!_0x55ce5c[_0x54c84b(0x183)]()&&(_0x5e519b(_0x55ce5c['model']),_0x55ce5c=undefined);return;}if(_0x14e7ff[_0x54c84b(0x1ca)]==='c'){!_0x3b4c15&&_0x2e28b3&&!_0x26632e&&(_0x26632e={'before':_0x423ed7,'cells':[]});if(_0x26632e){if(++_0x42a5f0>0xf4240)throw new Error(_0x54c84b(0x1ce));_0x26632e['cells'][_0x54c84b(0x17d)]({'reference':_0x2e28b3,'address':_0x56f6d4,'materialized':_0x3b4c15});if(!_0x2e28b3&&_0x3b4c15)_0x14ca74=!![];}if(_0x3b4c15){if(!_0x26632e||_0x2e28b3){if(!_0x18dfb2)throw new Error(_0x54c84b(0x1c5));if(_0x18dfb2[_0x54c84b(0x16f)]>MAX_XML_COLUMNS)throw new Error(_0x54c84b(0x219));_0x5ed815(_0x18dfb2[_0x54c84b(0x16f)]);}_0x423ed7=_0x18dfb2;}_0x13e517=![],_0x18dfb2=undefined,_0x2e28b3=undefined,_0x56f6d4=undefined,_0x28970a=undefined;}else{if(_0x14e7ff['name']===_0x54c84b(0x1b3)){if(_0x26632e&&_0x14ca74)_0x1a401c[_0x54c84b(0x17d)](_0x26632e);_0x26632e=undefined,_0x14ca74=![];}else{if(_0x14e7ff[_0x54c84b(0x1ca)]===_0x28970a)_0x28970a=undefined;}}}),_0x58e6f7?.['on'](_0x333e0c(0x1fd),_0x2b78b9=>{throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x2b78b9['message']);}),_0x2cf3f5['on'](_0x333e0c(0x1fd),_0x125f12),_0x2cf3f5['on'](_0x333e0c(0x1aa),_0x297b05=>{const _0x2ab459=_0x333e0c;if(_0x3a5215)return;_0x3d2816+=_0x297b05[_0x2ab459(0x185)],_0x1e137d?.['push'](_0x297b05);if(_0x3d2816>MAX_EXPANDED){_0x125f12(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x1301f8&&_0x51f264)_0x1301f8[_0x2ab459(0x1d1)](_0x51f264['write'](_0x297b05));if(_0x58e6f7&&_0x43981e)_0x58e6f7[_0x2ab459(0x1d1)](_0x43981e['write'](_0x297b05));}catch(_0x5f2d28){_0x125f12(_0x5f2d28 instanceof Error?_0x5f2d28:new Error(_0x2ab459(0x1ff)));}}),_0x2cf3f5['on'](_0x333e0c(0x214),()=>{const _0x2089a6=_0x333e0c;if(_0x3a5215)return;try{if(_0x1301f8&&_0x51f264)_0x1301f8[_0x2089a6(0x1d1)](_0x51f264[_0x2089a6(0x214)]())[_0x2089a6(0x18f)]();if(_0x58e6f7&&_0x43981e)_0x58e6f7['write'](_0x43981e[_0x2089a6(0x214)]())[_0x2089a6(0x18f)]();for(const _0x3146e0 of _0x1a401c){let _0xa5d060=_0x3146e0[_0x2089a6(0x176)];for(const _0x353bf6 of _0x3146e0[_0x2089a6(0x220)]){if(!_0x353bf6[_0x2089a6(0x211)]&&!(_0x353bf6['reference']&&_0x11dfff[_0x2089a6(0x1d3)](_0x353bf6[_0x2089a6(0x188)])))continue;const _0x3d246c=_0x353bf6['address']??(_0xa5d060?{'row':_0xa5d060[_0x2089a6(0x1b3)],'col':_0xa5d060['col']+0x1}:undefined);if(!_0x3d246c)throw new Error(_0x2089a6(0x1c5));if(_0x3d246c['col']>MAX_XML_COLUMNS)throw new Error(_0x2089a6(0x219));_0x5ed815(_0x3d246c['col']),_0xa5d060=_0x3d246c;}}_0x1a401c[_0x2089a6(0x185)]=0x0,_0x11dfff['clear']();}catch(_0x5178fd){_0x125f12(_0x5178fd instanceof Error?_0x5178fd:new Error(_0x2089a6(0x1ff)));return;}if(_0x1e137d)_0x307cae[_0x2089a6(0x1bc)](_0x3edd80,Buffer[_0x2089a6(0x1ab)](_0x1e137d));_0xe65325=undefined,_0x2c87d0['readEntry']();});});}),_0x2c87d0['on']('end',()=>{const _0x1b7090=_0x13a6f8;if(_0x3a5215)return;if(_0x2c87d0[_0x1b7090(0x18c)]!==_0x5f4440){_0x466290(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x2b59a4['has'](_0x1b7090(0x1ee))||!_0x2b59a4['has']('xl/workbook.xml'))_0x466290(new Error(_0x1b7090(0x223)));else _0x5f4cc4();}),_0x2c87d0[_0x13a6f8(0x215)]();});});}function valueOf(_0x1c6aa9){const _0x5f5a2d=a144_0x1586bd,_0x12d4b1=_0x1c6aa9['value'];if(_0x12d4b1&&typeof _0x12d4b1===_0x5f5a2d(0x172)&&(_0x5f5a2d(0x21f)in _0x12d4b1||_0x5f5a2d(0x237)in _0x12d4b1)){if(!(_0x5f5a2d(0x22f)in _0x12d4b1)||_0x12d4b1[_0x5f5a2d(0x22f)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x12d4b1['result'];}return _0x12d4b1;}function convert(_0x5b8752,_0x1b299a){const _0x5611c3=a144_0x1586bd;if(_0x5b8752===null||_0x5b8752===undefined||_0x5b8752===''){if(_0x1b299a[_0x5611c3(0x1bd)]&&!_0x1b299a[_0x5611c3(0x1d9)])throw new Error(_0x5611c3(0x190));return null;}if(typeof _0x5b8752===_0x5611c3(0x1ef)&&Buffer[_0x5611c3(0x1c0)](_0x5b8752,_0x5611c3(0x23a))>MAX_CELL)throw new Error(_0x5611c3(0x254));switch(_0x1b299a[_0x5611c3(0x259)][_0x5611c3(0x1b9)]()){case _0x5611c3(0x1ef):case _0x5611c3(0x1be):case _0x5611c3(0x1f8):if(typeof _0x5b8752!==_0x5611c3(0x1ef))throw new Error(_0x5611c3(0x1f1));return _0x5b8752;case _0x5611c3(0x231):case _0x5611c3(0x200):case _0x5611c3(0x1b7):if(typeof _0x5b8752!=='number'||!Number[_0x5611c3(0x255)](_0x5b8752)||Math[_0x5611c3(0x22e)](_0x5b8752)>Number[_0x5611c3(0x241)]||_0x1b299a[_0x5611c3(0x259)][_0x5611c3(0x1b9)]()===_0x5611c3(0x1b7)&&!Number[_0x5611c3(0x20a)](_0x5b8752))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x5b8752;case _0x5611c3(0x20c):if(typeof _0x5b8752!==_0x5611c3(0x20c))throw new Error(_0x5611c3(0x240));return _0x5b8752;case _0x5611c3(0x248):case _0x5611c3(0x261):if(!(_0x5b8752 instanceof Date)||!Number[_0x5611c3(0x255)](_0x5b8752[_0x5611c3(0x20d)]()))throw new Error(_0x5611c3(0x174));return _0x5b8752[_0x5611c3(0x20d)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x1b299a[_0x5611c3(0x259)]+'.');}}export async function buildExcelManifest(_0xd48954){const _0x527612=a144_0x1586bd,_0x2f6fbe=_0xd48954['headerRow']??0x1;if(!Number[_0x527612(0x20a)](_0x2f6fbe)||_0x2f6fbe<0x1||_0x2f6fbe>MAX_ROWS)throw new Error(_0x527612(0x1d4));if(_0xd48954[_0x527612(0x1f0)]!==undefined&&(!Number[_0x527612(0x20a)](_0xd48954[_0x527612(0x1f0)])||_0xd48954[_0x527612(0x1f0)]<0x1||_0xd48954[_0x527612(0x1f0)]>0x3e8))throw new Error(_0x527612(0x210));if(a144_0x219077[_0x527612(0x184)](_0xd48954[_0x527612(0x243)])['toLowerCase']()!==_0x527612(0x1de))throw new Error(_0x527612(0x194));const _0x40cfa7=await stat(_0xd48954[_0x527612(0x243)]);if(!_0x40cfa7[_0x527612(0x1c9)]()||_0x40cfa7['size']>MAX_FILE)throw new Error(_0x527612(0x1c8));const _0x16fa12=await readFile(_0xd48954[_0x527612(0x243)]);if(_0x16fa12[_0x527612(0x185)]>MAX_FILE)throw new Error(_0x527612(0x207));const _0x18c30e=_0xd48954[_0x527612(0x1cc)][_0x527612(0x186)](_0x348d47=>isImageContainer(_0x348d47[_0x527612(0x259)])&&Object[_0x527612(0x187)](_0xd48954[_0x527612(0x202)])['includes'](_0x348d47[_0x527612(0x25a)]))?new Map():undefined;await checkArchive(_0x16fa12,_0x18c30e);const _0x42190f=new a144_0x3a67e4[(_0x527612(0x1f7))]();await _0x42190f[_0x527612(0x23c)]['load'](_0x16fa12,{'ignoreNodes':[_0x527612(0x201)]});const _0x38757c=_0xd48954[_0x527612(0x17a)];let _0x2ffdcb;if(_0x38757c===undefined)_0x2ffdcb=_0x42190f[_0x527612(0x22c)][0x0];else{if(typeof _0x38757c===_0x527612(0x1ef)&&_0x42190f['worksheets'][_0x527612(0x186)](_0x289386=>_0x289386['name']===_0x38757c))_0x2ffdcb=_0x42190f[_0x527612(0x22c)][_0x527612(0x1bb)](_0x28f9df=>_0x28f9df[_0x527612(0x1ca)]===_0x38757c);else{if(typeof _0x38757c===_0x527612(0x231)||/^\d+$/[_0x527612(0x19e)](_0x38757c)){const _0x44e37f=Number(_0x38757c);if(!Number[_0x527612(0x20a)](_0x44e37f)||_0x44e37f<0x1)throw new Error(_0x527612(0x21d));_0x2ffdcb=_0x42190f[_0x527612(0x22c)][_0x44e37f-0x1];}else _0x2ffdcb=_0x42190f['worksheets']['find'](_0x6e9cac=>_0x6e9cac['name']===_0x38757c);}}if(!_0x2ffdcb)throw new Error(_0x527612(0x1a7));if(_0x2ffdcb['rowCount']>MAX_ROWS||_0x2ffdcb[_0x527612(0x1f4)]>MAX_COLUMNS)throw new Error(_0x527612(0x225));if((_0x2ffdcb[_0x527612(0x1cb)][_0x527612(0x209)]??[])[_0x527612(0x185)])throw new Error(_0x527612(0x249));const _0xa56c8a=new Map();_0x2ffdcb[_0x527612(0x236)](_0x2f6fbe)[_0x527612(0x25e)]((_0x4ee4a5,_0x1b9269)=>{const _0x2a120b=_0x527612,_0xfcdf3e=valueOf(_0x4ee4a5);if(typeof _0xfcdf3e!==_0x2a120b(0x1ef)||!_0xfcdf3e[_0x2a120b(0x24b)]()||Buffer[_0x2a120b(0x1c0)](_0xfcdf3e)>MAX_CELL)throw new Error(_0x2a120b(0x16b));if(_0xa56c8a[_0x2a120b(0x1d3)](_0xfcdf3e))throw new Error(_0x2a120b(0x24d)+_0xfcdf3e+'.');_0xa56c8a[_0x2a120b(0x1bc)](_0xfcdf3e,_0x1b9269);});const _0x3da54e=Object['entries'](_0xd48954[_0x527612(0x202)]);if(!_0x3da54e['length'])throw new Error(_0x527612(0x218));const _0x32b759=new Map(_0xd48954[_0x527612(0x1cc)][_0x527612(0x233)](_0x33d20a=>[_0x33d20a[_0x527612(0x25a)],_0x33d20a]));if(_0x32b759[_0x527612(0x1d0)]!==_0xd48954[_0x527612(0x1cc)][_0x527612(0x185)])throw new Error(_0x527612(0x24c));if(_0xd48954[_0x527612(0x1cc)][_0x527612(0x186)](_0x32b86f=>_0x32b86f[_0x527612(0x259)][_0x527612(0x1b9)]()===_0x527612(0x1e0)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x2a338b=new Set();for(const [_0x11dc5c,_0x1a6081]of _0x3da54e){const _0x2f94b4=_0x32b759['get'](_0x1a6081);if(!_0xa56c8a['has'](_0x11dc5c))throw new Error(_0x527612(0x21b)+_0x11dc5c+'.');if(!_0x2f94b4||RESERVED[_0x527612(0x1d3)](_0x1a6081)||_0x2f94b4[_0x527612(0x1d9)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x1a6081+'.');if(_0x2a338b['has'](_0x1a6081))throw new Error(_0x527612(0x24f)+_0x1a6081+'.');if(!TYPES[_0x527612(0x1d3)](_0x2f94b4['type']['toLowerCase']()))throw new Error(_0x527612(0x1f3)+_0x2f94b4[_0x527612(0x259)]+'.');_0x2a338b['add'](_0x1a6081);}for(const _0x4aebe4 of _0xd48954[_0x527612(0x1cc)]){if(_0x4aebe4[_0x527612(0x1bd)]&&!_0x4aebe4['generated']&&!RESERVED[_0x527612(0x1d3)](_0x4aebe4[_0x527612(0x25a)])&&!_0x2a338b[_0x527612(0x1d3)](_0x4aebe4['code']))throw new Error(_0x527612(0x242)+_0x4aebe4[_0x527612(0x25a)]+'.');}const _0x242a70={'fileHash':hash(_0x16fa12),'mappingHash':hash(JSON[_0x527612(0x1fb)]([..._0x3da54e][_0x527612(0x1a5)](([_0x53abfa],[_0x4d5732])=>_0x53abfa['localeCompare'](_0x4d5732)))),'schemaHash':hash(JSON[_0x527612(0x1fb)]([..._0xd48954[_0x527612(0x1cc)]][_0x527612(0x1a5)]((_0x443980,_0x167cfc)=>_0x443980[_0x527612(0x25a)][_0x527612(0x1d7)](_0x167cfc[_0x527612(0x25a)])))),'sheet':_0x2ffdcb[_0x527612(0x1ca)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0xf5e01=_0x3da54e[_0x527612(0x1ac)](([,_0x246f18])=>isImageContainer(_0x32b759[_0x527612(0x256)](_0x246f18)['type'])),_0x122ae0=_0xf5e01[_0x527612(0x1ac)](([,_0x15ca3b])=>_0x32b759[_0x527612(0x256)](_0x15ca3b)[_0x527612(0x259)]['toLowerCase']()===_0x527612(0x1a8))[_0x527612(0x233)](([,_0x573368])=>_0x573368);if(_0x122ae0['length'])_0x242a70[_0x527612(0x25f)]=_0x122ae0;const _0x1fdcc5=_0x18c30e?resolveWorksheetImages(_0x18c30e,_0x2ffdcb[_0x527612(0x1ca)],new Set(_0xf5e01[_0x527612(0x233)](([_0x4ff6d8])=>_0xa56c8a[_0x527612(0x256)](_0x4ff6d8)))):[],_0x53f5d3=new Map();for(const _0x54b17c of _0x1fdcc5){const _0x45d28d=_0x54b17c[_0x527612(0x1b3)]+':'+_0x54b17c[_0x527612(0x16f)],_0x2bb968=_0x53f5d3[_0x527612(0x256)](_0x45d28d)??[];_0x2bb968['push'](_0x54b17c),_0x53f5d3[_0x527612(0x1bc)](_0x45d28d,_0x2bb968);}const _0x2c430c=new Map();let _0x5bf9db=0x0;_0xf5e01[_0x527612(0x185)]&&(_0x242a70[_0x527612(0x1ec)]=_0xf5e01[_0x527612(0x233)](([,_0x421e31])=>_0x421e31),_0x242a70[_0x527612(0x1b4)]=[],_0x242a70[_0x527612(0x1f5)]=0x1,_0x242a70[_0x527612(0x20b)]=[]);const _0x3ae7cf=Math[_0x527612(0x1d6)](0x0,..._0x1fdcc5[_0x527612(0x233)](_0x19d021=>_0x19d021[_0x527612(0x1b3)]));let _0x57fb70=0x0;const _0x54048c=new Set(_0x3da54e['map'](([_0x3a5b1d])=>_0xa56c8a[_0x527612(0x256)](_0x3a5b1d)));for(let _0x928124=_0x2f6fbe+0x1;_0x928124<=Math[_0x527612(0x1d6)](_0x2ffdcb[_0x527612(0x177)],_0x3ae7cf);_0x928124++){const _0x3b5128=_0x2ffdcb['getRow'](_0x928124);if(_0x3b5128[_0x527612(0x25c)]||_0x1fdcc5['some'](_0x4427cc=>_0x4427cc[_0x527612(0x1b3)]===_0x928124&&_0x4427cc[_0x527612(0x262)]))_0x57fb70++;let _0x57d47c=_0x1fdcc5[_0x527612(0x186)](_0x382edb=>_0x382edb[_0x527612(0x1b3)]===_0x928124);_0x3b5128[_0x527612(0x25e)](_0x3faf64=>{const _0x3f9c59=_0x527612;if(_0x3faf64[_0x3f9c59(0x1e4)]!==null&&_0x3faf64[_0x3f9c59(0x1e4)]!==undefined&&_0x3faf64[_0x3f9c59(0x1e4)]!=='')_0x57d47c=!![];});if(!_0x57d47c){_0x242a70['emptyRows'][_0x527612(0x17d)](_0x928124);continue;}const _0x49a3ab=Object[_0x527612(0x1fa)](null);_0x3b5128[_0x527612(0x25e)]((_0x595037,_0x242f0e)=>{const _0xec9a4c=_0x527612;if(_0x54048c[_0xec9a4c(0x1d3)](_0x242f0e))return;try{const _0x5bcd86=valueOf(_0x595037);if(typeof _0x5bcd86===_0xec9a4c(0x1ef)&&Buffer[_0xec9a4c(0x1c0)](_0x5bcd86,_0xec9a4c(0x23a))>MAX_CELL)throw new Error(_0xec9a4c(0x254));}catch(_0x209c1b){_0x242a70[_0xec9a4c(0x1a3)][_0xec9a4c(0x17d)]({'rowNumber':_0x928124,'field':_0x595037[_0xec9a4c(0x1d8)],'message':_0x209c1b[_0xec9a4c(0x1eb)]});}});for(const [_0x247506,_0x2248d6]of _0x3da54e){try{const _0x58cfbd=_0x3b5128[_0x527612(0x191)](_0xa56c8a[_0x527612(0x256)](_0x247506)),_0x490a63=_0x32b759[_0x527612(0x256)](_0x2248d6);if(!isImageContainer(_0x490a63[_0x527612(0x259)])){_0x49a3ab[_0x2248d6]=convert(valueOf(_0x58cfbd),_0x490a63);continue;}const _0x3893b4=_0x53f5d3[_0x527612(0x256)](_0x928124+':'+_0xa56c8a['get'](_0x247506))??[];if(_0x3893b4[_0x527612(0x186)](_0x4effe3=>_0x4effe3[_0x527612(0x1fd)]))throw Error(_0x3893b4[_0x527612(0x1bb)](_0x4dd930=>_0x4dd930[_0x527612(0x1fd)])['error']);if(_0x58cfbd[_0x527612(0x1e4)]!=null&&_0x58cfbd[_0x527612(0x1e4)]!==''&&!_0x3893b4[_0x527612(0x186)](_0x8d518d=>_0x8d518d[_0x527612(0x173)]))throw Error(_0x527612(0x18d));const _0x31e549=[];for(const _0x58a295 of _0x3893b4)for(const _0x3eac56 of _0x58a295[_0x527612(0x20b)]){const _0x176973=_0x18c30e[_0x527612(0x256)](_0x3eac56);if(!_0x176973)throw Error(_0x527612(0x19b)+_0x3eac56+'.');const _0x526c82=hash(_0x176973),_0xd1f225=_0x2c430c[_0x527612(0x256)](_0x526c82)??validateImageBytes(_0x176973);if(!_0x2c430c[_0x527612(0x1d3)](_0xd1f225[_0x527612(0x1b5)])){_0x5bf9db+=_0xd1f225['size'];if(_0x5bf9db>0x32*0x400*0x400)throw Error(_0x527612(0x1dd));_0x2c430c[_0x527612(0x1bc)](_0xd1f225['contentHash'],_0xd1f225);}_0x31e549[_0x527612(0x17d)](_0xd1f225['contentHash']);}if(!_0x31e549[_0x527612(0x185)]&&_0x490a63[_0x527612(0x1bd)])throw Error(_0x527612(0x247));if(_0x31e549[_0x527612(0x185)])_0x242a70[_0x527612(0x1b4)]['push']({'rowNumber':_0x928124,'field':_0x2248d6,'hashes':_0x31e549});_0x49a3ab[_0x2248d6]=_0x31e549['map'](_0x45f994=>{const _0x5b5c76=_0x527612,_0xa7346=_0x2c430c[_0x5b5c76(0x256)](_0x45f994),_0x402a6d=_0xa7346[_0x5b5c76(0x259)]==='image/jpeg'?_0x5b5c76(0x208):_0xa7346[_0x5b5c76(0x259)][_0x5b5c76(0x22a)](0x6),_0x261600=_0x45f994+'.'+_0x402a6d,_0x5d1cac=_0x5b5c76(0x1c2)+'0'['repeat'](0x40)+'/'+_0x261600;return _0x490a63['type'][_0x5b5c76(0x1b9)]()===_0x5b5c76(0x1a8)?{'fileName':_0x261600,'filePath':_0x5d1cac}:{'key':_0x5d1cac,'name':_0x261600,'type':_0xa7346[_0x5b5c76(0x259)],'size':_0xa7346[_0x5b5c76(0x1d0)]};});}catch(_0x5f09d9){_0x242a70[_0x527612(0x1a3)][_0x527612(0x17d)]({'rowNumber':_0x928124,'field':_0x2248d6,'message':_0x5f09d9[_0x527612(0x1eb)]});}}_0x242a70[_0x527612(0x239)][_0x527612(0x17d)]({'rowNumber':_0x928124,'values':_0x49a3ab});}if(_0x242a70[_0x527612(0x20b)])_0x242a70[_0x527612(0x20b)]=[..._0x2c430c[_0x527612(0x187)]()];if(_0x57fb70)_0x242a70[_0x527612(0x1e5)][_0x527612(0x17d)](_0x57fb70+_0x527612(0x1ae));return _0x242a70;}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x1c3f05,_0x21b5ec){const _0x3fc536=a145_0x5658,_0x512af0=_0x1c3f05();while(!![]){try{const _0x576beb=-parseInt(_0x3fc536(0x1e6))/0x1+parseInt(_0x3fc536(0x219))/0x2+parseInt(_0x3fc536(0x1f2))/0x3*(-parseInt(_0x3fc536(0x217))/0x4)+-parseInt(_0x3fc536(0x20b))/0x5+parseInt(_0x3fc536(0x1fc))/0x6+-parseInt(_0x3fc536(0x1ea))/0x7+parseInt(_0x3fc536(0x1e8))/0x8;if(_0x576beb===_0x21b5ec)break;else _0x512af0['push'](_0x512af0['shift']());}catch(_0x3ebfd8){_0x512af0['push'](_0x512af0['shift']());}}}(a145_0x173d,0x6cd8c));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x173d(){const _0x3af265=['message','5967857YQsvZH','acTL','isSafeInteger','ceil','equals','Invalid\x20GIF\x20trailer.','GIF89a','Missing\x20PNG\x20data/end.','168zWnzxw','length','IEND','digest','includes','push','Truncated\x20JPEG.','concat','Invalid\x20PNG\x20header.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','1325736wpAhnd','GIF\x20image\x20has\x20no\x20palette.','subarray','read','Invalid\x20PNG\x20end.','Truncated\x20GIF\x20data.','IHDR','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Invalid\x20image:\x20','image/gif','from','IDAT','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','toString','update','1629975HIpjqt','readUInt16LE','image/jpeg','ascii','Invalid\x20GIF\x20LZW\x20pixel\x20data.','GIF87a','image/png','Animated\x20PNG\x20is\x20not\x20supported.','height','Truncated\x20PNG\x20data.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Invalid\x20PNG\x20decoded\x20scanline\x20size.','25112RBQEtt','Truncated\x20GIF.','1719026baqiyz','Invalid\x20GIF\x20LZW\x20code\x20size.','Invalid\x20GIF\x20block.','readUInt32BE','width','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','307994fFUZrP','max','9627800TPnnTD'];a145_0x173d=function(){return _0x3af265;};return a145_0x173d();}function a145_0x5658(_0x2898b8,_0x3a4cc1){_0x2898b8=_0x2898b8-0x1e2;const _0x173de9=a145_0x173d();let _0x565867=_0x173de9[_0x2898b8];return _0x565867;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x3c7664,_0x5343fb){const _0x2c80f1=a145_0x5658;if(!Number['isSafeInteger'](_0x3c7664)||!Number[_0x2c80f1(0x1ec)](_0x5343fb)||_0x3c7664<0x1||_0x5343fb<0x1||_0x3c7664*_0x5343fb>MAX_PIXELS)throw Error(_0x2c80f1(0x1e5));}function validateGif(_0xaccedf){const _0x3c82ce=a145_0x5658;let _0x492c29=0xd,_0x5a8cf2=0x0,_0x5772d1=0x0;const _0x48f7a3=_0xaccedf[_0x3c82ce(0x20c)](0x6),_0x5ec334=_0xaccedf['readUInt16LE'](0x8),_0x37ccf5=_0xaccedf[0xa]&0x80?0x1<<(_0xaccedf[0xa]&0x7)+0x1:0x0,_0x38bd41=_0x20d8ed=>{const _0x282880=_0x3c82ce;if(_0x492c29+_0x20d8ed>_0xaccedf[_0x282880(0x1f3)])throw Error(_0x282880(0x201));};_0x492c29+=_0x37ccf5*0x3,_0x38bd41(0x0);const _0x778abe=()=>{const _0x505495=_0x3c82ce,_0x5de26a=[];while(!![]){_0x38bd41(0x1);const _0x163ae0=_0xaccedf[_0x492c29++];if(!_0x163ae0)break;_0x38bd41(_0x163ae0),_0x5de26a['push'](_0xaccedf[_0x505495(0x1fe)](_0x492c29,_0x492c29+_0x163ae0)),_0x492c29+=_0x163ae0;}return Buffer[_0x505495(0x1f9)](_0x5de26a);};while(_0x492c29<_0xaccedf[_0x3c82ce(0x1f3)]){const _0x132740=_0xaccedf[_0x492c29++];if(_0x132740===0x3b){if(!_0x5a8cf2||_0x492c29!==_0xaccedf['length'])throw Error(_0x3c82ce(0x1ef));return;}if(_0x132740===0x21){_0x38bd41(0x1),_0x492c29++,_0x778abe();continue;}if(_0x132740!==0x2c)throw Error(_0x3c82ce(0x1e2));_0x38bd41(0x9);const _0x3bf43b=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29),_0x42b2dd=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x2),_0x352459=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x4),_0x35a884=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x6),_0x4e67f9=_0xaccedf[_0x492c29+0x8];_0x492c29+=0x9,dimensions(_0x352459,_0x35a884);if(_0x3bf43b+_0x352459>_0x48f7a3||_0x42b2dd+_0x35a884>_0x5ec334||++_0x5a8cf2>0x2710||(_0x5772d1+=_0x48f7a3*_0x5ec334)>MAX_PIXELS)throw Error(_0x3c82ce(0x1fb));const _0x19239a=_0x4e67f9&0x80?0x1<<(_0x4e67f9&0x7)+0x1:_0x37ccf5;if(!_0x19239a)throw Error(_0x3c82ce(0x1fd));_0x4e67f9&0x80&&(_0x38bd41(_0x19239a*0x3),_0x492c29+=_0x19239a*0x3);_0x38bd41(0x1);const _0x26537d=_0xaccedf[_0x492c29++];if(_0x26537d<0x2||_0x26537d>0x8)throw Error(_0x3c82ce(0x21a));const _0x366359=_0x778abe(),_0x133e3e=0x1<<_0x26537d,_0x426c9b=_0x133e3e+0x1;let _0x1d98eb=_0x26537d+0x1,_0x991965=_0x426c9b+0x1,_0x510cf1=0x0,_0x2dc25a=-0x1,_0x4c61e9=0x0,_0x24880b=![];const _0x390f55=new Uint32Array(0x1000),_0x1a51d7=new Uint16Array(0x1000);for(let _0x2a936b=0x0;_0x2a936b<_0x133e3e;_0x2a936b++){_0x390f55[_0x2a936b]=0x1,_0x1a51d7[_0x2a936b]=_0x2a936b;}while(_0x510cf1+_0x1d98eb<=_0x366359[_0x3c82ce(0x1f3)]*0x8){let _0x35dfd2=0x0;for(let _0x562c42=0x0;_0x562c42<_0x1d98eb;_0x562c42++,_0x510cf1++)_0x35dfd2|=(_0x366359[_0x510cf1>>0x3]>>(_0x510cf1&0x7)&0x1)<<_0x562c42;if(_0x35dfd2===_0x133e3e){_0x1d98eb=_0x26537d+0x1,_0x991965=_0x426c9b+0x1,_0x2dc25a=-0x1;continue;}if(_0x35dfd2===_0x426c9b){_0x24880b=!![];break;}if(_0x35dfd2>_0x991965||_0x35dfd2===_0x991965&&_0x2dc25a<0x0||_0x2dc25a<0x0&&_0x35dfd2>=_0x133e3e)throw Error(_0x3c82ce(0x208));const _0x3accfb=_0x35dfd2===_0x991965?_0x390f55[_0x2dc25a]+0x1:_0x390f55[_0x35dfd2],_0x5d473f=_0x35dfd2===_0x991965?_0x1a51d7[_0x2dc25a]:_0x1a51d7[_0x35dfd2];if(!_0x3accfb||_0x5d473f>=_0x19239a||(_0x4c61e9+=_0x3accfb)>_0x352459*_0x35a884)throw Error(_0x3c82ce(0x20f));if(_0x2dc25a>=0x0&&_0x991965<0x1000){_0x390f55[_0x991965]=_0x390f55[_0x2dc25a]+0x1,_0x1a51d7[_0x991965]=Math[_0x3c82ce(0x1e7)](_0x1a51d7[_0x2dc25a],_0x5d473f),_0x991965++;if(_0x991965===0x1<<_0x1d98eb&&_0x1d98eb<0xc)_0x1d98eb++;}_0x2dc25a=_0x35dfd2;}if(!_0x24880b||_0x4c61e9!==_0x352459*_0x35a884)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error('Missing\x20GIF\x20trailer.');}export function validateImageBytes(_0x15e712){const _0x5b002c=a145_0x5658;if(!_0x15e712[_0x5b002c(0x1f3)]||_0x15e712['length']>0xa*0x400*0x400)throw Error(_0x5b002c(0x215));let _0x263a2c;try{if(_0x15e712['subarray'](0x0,0x8)[_0x5b002c(0x1ee)](Buffer[_0x5b002c(0x206)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x15e712['length']<0x21||_0x15e712['toString'](_0x5b002c(0x20e),0xc,0x10)!==_0x5b002c(0x202))throw Error(_0x5b002c(0x1fa));dimensions(_0x15e712[_0x5b002c(0x1e3)](0x10),_0x15e712[_0x5b002c(0x1e3)](0x14));const _0x25081e=_0x15e712[_0x5b002c(0x1e3)](0x10),_0x5afa05=_0x15e712[_0x5b002c(0x1e3)](0x14),_0x4244d2=_0x15e712[0x18],_0x139245=_0x15e712[0x19],_0x3c73d4=_0x15e712[0x1c],_0x4d2cd7={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x139245];if(!_0x4d2cd7||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x4244d2)||_0x3c73d4>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x3d0ec8=_0x54bb33=>Math['ceil'](_0x54bb33*_0x4d2cd7*_0x4244d2/0x8)+0x1;let _0x13ea83=_0x3d0ec8(_0x25081e)*_0x5afa05;if(_0x3c73d4){_0x13ea83=0x0;for(const [_0x309602,_0x1e665e,_0x194c3d,_0x239d30]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 _0x2abdc6=Math['max'](0x0,Math['ceil']((_0x25081e-_0x309602)/_0x194c3d)),_0x2067a6=Math['max'](0x0,Math[_0x5b002c(0x1ed)]((_0x5afa05-_0x1e665e)/_0x239d30));if(_0x2abdc6&&_0x2067a6)_0x13ea83+=_0x3d0ec8(_0x2abdc6)*_0x2067a6;}}let _0x26ea86=0x8,_0x50575b=![];const _0x236d2d=[];while(_0x26ea86<_0x15e712[_0x5b002c(0x1f3)]){if(_0x26ea86+0xc>_0x15e712['length'])throw Error('Truncated\x20PNG\x20chunk.');const _0x5ab5e6=_0x15e712[_0x5b002c(0x1e3)](_0x26ea86),_0x5ed5c5=_0x15e712[_0x5b002c(0x209)]('ascii',_0x26ea86+0x4,_0x26ea86+0x8);if(_0x5ed5c5===_0x5b002c(0x1eb))throw Error(_0x5b002c(0x212));if(_0x26ea86+_0x5ab5e6+0xc>_0x15e712[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x214));if(_0x5ed5c5===_0x5b002c(0x207))_0x236d2d[_0x5b002c(0x1f7)](_0x15e712[_0x5b002c(0x1fe)](_0x26ea86+0x8,_0x26ea86+0x8+_0x5ab5e6));_0x26ea86+=_0x5ab5e6+0xc;if(_0x5ed5c5===_0x5b002c(0x1f4)){if(_0x5ab5e6||_0x26ea86!==_0x15e712[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x200));_0x50575b=!![];break;}}if(!_0x50575b||!_0x236d2d[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x1f1));if(inflateSync(Buffer[_0x5b002c(0x1f9)](_0x236d2d),{'maxOutputLength':_0x13ea83+0x1})[_0x5b002c(0x1f3)]!==_0x13ea83)throw Error(_0x5b002c(0x216));const {PNG:_0x1494fd}=require('pngjs'),_0x3d0d8e=_0x1494fd['sync'][_0x5b002c(0x1ff)](_0x15e712,{'checkCRC':!![]});dimensions(_0x3d0d8e['width'],_0x3d0d8e[_0x5b002c(0x213)]),_0x263a2c=_0x5b002c(0x211);}else{if(_0x15e712[0x0]===0xff&&_0x15e712[0x1]===0xd8){if(_0x15e712['at'](-0x2)!==0xff||_0x15e712['at'](-0x1)!==0xd9)throw Error(_0x5b002c(0x1f8));const _0x463ebc=require('jpeg-js'),_0x3bc663=_0x463ebc['decode'](_0x15e712,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x3bc663[_0x5b002c(0x1e4)],_0x3bc663[_0x5b002c(0x213)]),_0x263a2c=_0x5b002c(0x20d);}else{if([_0x5b002c(0x210),_0x5b002c(0x1f0)][_0x5b002c(0x1f6)](_0x15e712['toString'](_0x5b002c(0x20e),0x0,0x6))){if(_0x15e712[_0x5b002c(0x1f3)]<0xe||_0x15e712['at'](-0x1)!==0x3b)throw Error(_0x5b002c(0x218));dimensions(_0x15e712[_0x5b002c(0x20c)](0x6),_0x15e712[_0x5b002c(0x20c)](0x8)),validateGif(_0x15e712);const {GifReader:_0x2105a5}=require('omggif'),_0xb416a1=new _0x2105a5(_0x15e712);dimensions(_0xb416a1[_0x5b002c(0x1e4)],_0xb416a1[_0x5b002c(0x213)]);const _0x3c2f63=_0xb416a1['numFrames']();if(!_0x3c2f63||_0x3c2f63>0x2710||_0x3c2f63*_0xb416a1['width']*_0xb416a1['height']>MAX_PIXELS)throw Error(_0x5b002c(0x1fb));const _0x5c0090=new Uint8Array(_0xb416a1[_0x5b002c(0x1e4)]*_0xb416a1[_0x5b002c(0x213)]*0x4);for(let _0x323cf9=0x0;_0x323cf9<_0x3c2f63;_0x323cf9++){const _0x38141b=_0xb416a1['frameInfo'](_0x323cf9);if(_0x38141b['x']+_0x38141b[_0x5b002c(0x1e4)]>_0xb416a1[_0x5b002c(0x1e4)]||_0x38141b['y']+_0x38141b[_0x5b002c(0x213)]>_0xb416a1[_0x5b002c(0x213)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0xb416a1['decodeAndBlitFrameRGBA'](_0x323cf9,_0x5c0090);}_0x263a2c=_0x5b002c(0x205);}else throw Error(_0x5b002c(0x203));}}}catch(_0x225057){throw Error(_0x5b002c(0x204)+_0x225057[_0x5b002c(0x1e9)]);}return{'contentHash':createHash('sha256')[_0x5b002c(0x20a)](_0x15e712)[_0x5b002c(0x1f5)]('hex'),'type':_0x263a2c,'size':_0x15e712['length'],'bytes':_0x15e712};}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a146_0x29cf50=a146_0x2ff5;function a146_0x2ff5(_0xf2ba1b,_0x127243){_0xf2ba1b=_0xf2ba1b-0x10c;const _0x17b0cb=a146_0x17b0();let _0x2ff545=_0x17b0cb[_0xf2ba1b];return _0x2ff545;}(function(_0x892e01,_0xe471a7){const _0x59400d=a146_0x2ff5,_0x17870a=_0x892e01();while(!![]){try{const _0x221f82=-parseInt(_0x59400d(0x129))/0x1*(-parseInt(_0x59400d(0x141))/0x2)+parseInt(_0x59400d(0x14c))/0x3+parseInt(_0x59400d(0x11b))/0x4*(-parseInt(_0x59400d(0x19c))/0x5)+parseInt(_0x59400d(0x1a8))/0x6+-parseInt(_0x59400d(0x1b9))/0x7*(parseInt(_0x59400d(0x177))/0x8)+-parseInt(_0x59400d(0x131))/0x9+parseInt(_0x59400d(0x136))/0xa*(-parseInt(_0x59400d(0x18d))/0xb);if(_0x221f82===_0xe471a7)break;else _0x17870a['push'](_0x17870a['shift']());}catch(_0x4280eb){_0x17870a['push'](_0x17870a['shift']());}}}(a146_0x17b0,0xcf398));function a146_0x17b0(){const _0x456239=['XLRICHVALUE','XML\x20DTD/entities\x20are\x20not\x20supported.','Unsupported\x20rich\x20image\x20relation\x20namespace.','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','Value\x20metadata\x20index\x20must\x20be\x20one-based.','Invalid\x20relationship\x20target:\x20','cellImages','workbook','r:id','913KvICBJ','worksheet','MAX_SAFE_INTEGER','anchor\x20start','WPS\x20image\x20name','round','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','http://www.wps.cn/officeDocument/2017/relationships/','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','http://purl.oclc.org/ooxml/drawingml/main','r:link','image\x20row\x20height\x20coordinate','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','uri','map','163695iNJYKp','rdRichValueStructure','toString','attributes','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Image\x20XML\x20event\x20budget\x20exceeded.','hidden\x20image\x20row','opentag','image\x20cell\x20row','rich\x20value\x20binding','Unsupported\x20rich\x20value\x20namespace.','image\x20height','6505386EyXjsf','http://purl.oclc.org/ooxml/spreadsheetml/main','_localImage','anchor\x20row','Internal','some','Missing\x20rich\x20image\x20relationship.','Missing\x20WPS\x20image\x20ID:\x20','Unsupported\x20relationship\x20namespace\x20in\x20','children','twoCellAnchor','rel','drawing','sheetData','_rvRel:LocalImageIdentifier','charCodeAt','WPS\x20image\x20blip','21vWukYx','rvb','futureMetadata','Unsupported\x20mapped\x20rich\x20value\x20structure.','r:embed','isSafeInteger','sheetMetadata','rich\x20image\x20relationship\x20index','push','Unsupported\x20worksheet\x20namespace.','Relationship','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','anchor\x20end','\x20relationship\x20in\x20','richValueRels','rvStructures','name','exec','wsDr','basename','get','Unsupported\x20workbook\x20namespace.','Unsupported\x20drawing\x20image.','slice','flatMap','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','test','4gvBGaj','extLst','Unsupported\x20WPS\x20cell\x20image\x20namespace.','value\x20metadata\x20index','metadataType','nvPicPr','Shared\x20image\x20formulas\x20are\x20not\x20supported.','.rels','Duplicate\x20mapped\x20image\x20cell.','blipFill','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','doctype','Missing\x20value\x20metadata\x20block.','Unsupported\x20metadata\x20namespace.','2XXTrXw','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','richValueRel','http://schemas.microsoft.com/office/2017/06/relationships/','length','posix','value','3968739zaJsTr','rdRichValue','replace','closetag','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','7740fAZyBz','anchor\x20column','type','cNvPr','has','message','normalize','Ambiguous\x20XML\x20attribute.','pic','../','sheets','1227236LJnflg','sheetFormatPr','Missing\x20or\x20ambiguous\x20','local','anchor\x20start\x20offset','join','xl/workbook.xml','true','rich\x20future\x20metadata','write','xl/','1593864Coryqm','absoluteAnchor','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','blip','sheet','fromEntries','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','valueMetadata','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','rvData','from','Missing\x20XLSX\x20part:\x20','attrs','isFinite','http://www.wps.cn/officeDocument/2017/etCustomData','External\x20image\x20links\x20are\x20not\x20supported.','Missing\x20future\x20metadata\x20block.','close','oneCellAnchor','col','http://schemas.openxmlformats.org/drawingml/2006/main','image\x20extent','includes','image','rowOff','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','Missing\x20local\x20image\x20identifier\x20value.','startsWith','ext','metadata','text','filter','anchor\x20end\x20offset','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','row','image\x20formula','metadata\x20types','_rels','values','Relationships','cellImage','3882696aHlKfr','set','Missing\x20rich\x20value.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','rich\x20metadata\x20record','utf8','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','dirname','metadataTypes','add','Relationship\x20target\x20escapes\x20workbook:\x20','hidden','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.'];a146_0x17b0=function(){return _0x456239;};return a146_0x17b0();}import a146_0x173c06 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x29cf50(0x16f),a146_0x29cf50(0x1a9)],DRAWING=[a146_0x29cf50(0x119),a146_0x29cf50(0x193)],DRAWING_MAIN=[a146_0x29cf50(0x161),a146_0x29cf50(0x196)],OFFICE_RELS=[a146_0x29cf50(0x14e),'http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=[a146_0x29cf50(0x155)],RICH_RELS=[a146_0x29cf50(0x125)],WPS=[a146_0x29cf50(0x15b)],DEFAULT_NS=Object[a146_0x29cf50(0x152)]([...['workbook','sheets',a146_0x29cf50(0x151),a146_0x29cf50(0x18e),'sheetData',a146_0x29cf50(0x170),'c','f','v',a146_0x29cf50(0x142),a146_0x29cf50(0x1b4),a146_0x29cf50(0x16a),a146_0x29cf50(0x17f),a146_0x29cf50(0x11f),'futureMetadata','valueMetadata','bk','rc',a146_0x29cf50(0x11c)]['map'](_0x224145=>[_0x224145,SHEET]),...[a146_0x29cf50(0x111),a146_0x29cf50(0x15f),a146_0x29cf50(0x1b2),'absoluteAnchor',a146_0x29cf50(0x157),'to',a146_0x29cf50(0x160),'colOff',a146_0x29cf50(0x165),a146_0x29cf50(0x169),'pic',a146_0x29cf50(0x120),a146_0x29cf50(0x139),a146_0x29cf50(0x124)][a146_0x29cf50(0x19b)](_0x173720=>[_0x173720,DRAWING]),...[a146_0x29cf50(0x1ba),a146_0x29cf50(0x156),'rv',a146_0x29cf50(0x10e),'s','k']['map'](_0xc2b0fb=>[_0xc2b0fb,RICH]),[a146_0x29cf50(0x150),DRAWING_MAIN],[a146_0x29cf50(0x10d),RICH_RELS],[a146_0x29cf50(0x1b3),RICH_RELS],['Relationships',PACKAGE],[a146_0x29cf50(0x1c3),PACKAGE],[a146_0x29cf50(0x18a),WPS],[a146_0x29cf50(0x176),WPS]]),matches=(_0x2fa10c,_0xdd15c7,_0x16c9a7=DEFAULT_NS[_0xdd15c7]??[])=>_0x2fa10c[a146_0x29cf50(0x10f)]===_0xdd15c7&&_0x16c9a7[a146_0x29cf50(0x163)](_0x2fa10c[a146_0x29cf50(0x19a)]),children=(_0x11a314,_0x4c0427,_0x469c9c=DEFAULT_NS[_0x4c0427])=>_0x11a314[a146_0x29cf50(0x1b1)]['filter'](_0x4cd1c9=>matches(_0x4cd1c9,_0x4c0427,_0x469c9c)),chain=(_0x78c19d,..._0x21e698)=>_0x21e698['reduce']((_0x35f8e7,_0x137f6a)=>_0x35f8e7[a146_0x29cf50(0x117)](_0x2e1276=>children(_0x2e1276,_0x137f6a)),[_0x78c19d]),relationshipTypes=_0x32f758=>{const _0x6bdfc3=a146_0x29cf50;if([_0x6bdfc3(0x132),_0x6bdfc3(0x19d)][_0x6bdfc3(0x163)](_0x32f758))return[_0x6bdfc3(0x12d)+_0x32f758];if(_0x32f758===_0x6bdfc3(0x12c))return[_0x6bdfc3(0x17d)];if(_0x32f758===_0x6bdfc3(0x176)||_0x32f758===_0x6bdfc3(0x18a))return[_0x6bdfc3(0x194)+_0x32f758];return OFFICE_RELS[_0x6bdfc3(0x19b)](_0x4b586b=>_0x4b586b+'/'+_0x32f758);};function one(_0x8f3a69,_0x57023e){const _0x18b96e=a146_0x29cf50;if(_0x8f3a69['length']!==0x1)throw Error(_0x18b96e(0x143)+_0x57023e+'.');return _0x8f3a69[0x0];}function integer(_0x16d665,_0x1ae8e9,_0x100ca9=0x186a0){const _0x146f23=a146_0x29cf50;if(!_0x16d665||!/^\d+$/[_0x146f23(0x11a)](_0x16d665)||!Number[_0x146f23(0x1be)](Number(_0x16d665))||Number(_0x16d665)>_0x100ca9)throw Error('Invalid\x20'+_0x1ae8e9+'.');return Number(_0x16d665);}export function resolveWorksheetImages(_0x5c29ee,_0x2daa8b,_0x11ae24){const _0x3dc4ef=a146_0x29cf50;let _0x4311cf=0x0,_0x51ec92=0x0,_0x4252d4=0x0;const _0x18bc0d=new Map(),_0x221f20=_0x3b3ad3=>{const _0x51b2bd=a146_0x2ff5;if(_0x18bc0d[_0x51b2bd(0x13a)](_0x3b3ad3))return _0x18bc0d['get'](_0x3b3ad3);const _0x56fcc8=_0x5c29ee['get'](_0x3b3ad3);if(!_0x56fcc8)throw Error(_0x51b2bd(0x158)+_0x3b3ad3+'.');const _0xfe5ed5={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x53cee9=[_0xfe5ed5],_0x6e2abd=new SaxesParser({'xmlns':!![]}),_0x182b98=()=>{const _0x5d1fe0=_0x51b2bd;if(++_0x51ec92>0x1e8480)throw Error(_0x5d1fe0(0x1a1));};_0x6e2abd['on'](_0x51b2bd(0x126),()=>{const _0x146ce4=_0x51b2bd;throw Error(_0x146ce4(0x185));}),_0x6e2abd['on'](_0x51b2bd(0x1a3),_0x3d21e6=>{const _0x123a52=_0x51b2bd;_0x182b98();if(++_0x4311cf>0x7a120||_0x53cee9['length']>0x40)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');const _0x2c4177={};for(const _0x76efd3 of Object[_0x123a52(0x174)](_0x3d21e6[_0x123a52(0x19f)])){const _0x2a6607=OFFICE_RELS[_0x123a52(0x163)](_0x76efd3[_0x123a52(0x19a)])?'r:'+_0x76efd3['local']:_0x76efd3['uri']?'{'+_0x76efd3['uri']+'}'+_0x76efd3[_0x123a52(0x144)]:_0x76efd3[_0x123a52(0x144)];if(_0x2a6607 in _0x2c4177)throw Error(_0x123a52(0x13d));_0x2c4177[_0x2a6607]=_0x76efd3[_0x123a52(0x130)];}const _0x28c77b={'name':_0x3d21e6[_0x123a52(0x144)],'uri':_0x3d21e6[_0x123a52(0x19a)],'attrs':_0x2c4177,'children':[],'text':''};_0x53cee9['at'](-0x1)['children'][_0x123a52(0x1c1)](_0x28c77b),_0x53cee9['push'](_0x28c77b);}),_0x6e2abd['on'](_0x51b2bd(0x16b),_0x4cbe50=>{const _0xfa9eca=_0x51b2bd;_0x182b98();const _0x2d6b12=_0x53cee9['at'](-0x1);_0x2d6b12[_0xfa9eca(0x16b)]+=_0x4cbe50;if(_0x2d6b12[_0xfa9eca(0x16b)][_0xfa9eca(0x12e)]>0x10000)throw Error(_0xfa9eca(0x187));}),_0x6e2abd['on'](_0x51b2bd(0x134),()=>{_0x182b98(),_0x53cee9['pop']();}),_0x6e2abd['on']('error',_0x30e205=>{throw _0x30e205;}),_0x6e2abd[_0x51b2bd(0x14a)](_0x56fcc8[_0x51b2bd(0x19e)](_0x51b2bd(0x17c)))[_0x51b2bd(0x15e)]();const _0x2fb9f1=one(_0xfe5ed5[_0x51b2bd(0x1b1)],_0x3b3ad3);return _0x18bc0d[_0x51b2bd(0x178)](_0x3b3ad3,_0x2fb9f1),_0x2fb9f1;},_0x2c14ca=new Map(),_0x406c45=_0x24b82c=>{const _0x247ee4=a146_0x2ff5;if(_0x2c14ca[_0x247ee4(0x13a)](_0x24b82c))return _0x2c14ca[_0x247ee4(0x113)](_0x24b82c);const _0x229d03=a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x146)](a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x17e)](_0x24b82c),_0x247ee4(0x173),a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x112)](_0x24b82c)+_0x247ee4(0x122));if(!_0x5c29ee['has'](_0x229d03))return[];const _0x41425a=new Set(),_0x28a48b=_0x221f20(_0x229d03);if(!matches(_0x28a48b,_0x247ee4(0x175)))throw Error(_0x247ee4(0x1b0)+_0x229d03+'.');const _0x413610=children(_0x28a48b,_0x247ee4(0x1c3))[_0x247ee4(0x19b)](_0x242609=>{const _0x3eedfa=_0x247ee4,{Id:_0x511839,Type:_0x19c0dd,Target:_0x59dc71,TargetMode:_0x4d6d6b}=_0x242609['attrs'];if(!_0x511839||_0x41425a['has'](_0x511839)||!_0x19c0dd)throw Error(_0x3eedfa(0x17a)+_0x229d03+'.');return _0x41425a[_0x3eedfa(0x180)](_0x511839),{'id':_0x511839,'type':_0x19c0dd,'target':_0x59dc71??'','mode':_0x4d6d6b};});return _0x2c14ca['set'](_0x24b82c,_0x413610),_0x413610;},_0x53fdb1=(_0x117e1e,_0x40804a)=>{const _0x3a359e=a146_0x2ff5,{target:_0x1672ad,mode:_0x16107d}=_0x40804a;if(_0x16107d&&_0x16107d!==_0x3a359e(0x1ac))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x117e1e+'.');if(!_0x1672ad||_0x1672ad[_0x3a359e(0x163)]('\x5c')||/[?#%\x00-\x20]/[_0x3a359e(0x11a)](_0x1672ad)||/^[a-z][a-z0-9+.-]*:/i[_0x3a359e(0x11a)](_0x1672ad)||_0x1672ad[_0x3a359e(0x168)]('//'))throw Error(_0x3a359e(0x189)+_0x117e1e+'.');const _0x28f958=_0x1672ad['startsWith']('/')?_0x1672ad[_0x3a359e(0x116)](0x1):a146_0x173c06[_0x3a359e(0x12f)][_0x3a359e(0x13c)](a146_0x173c06['posix'][_0x3a359e(0x146)](a146_0x173c06['posix']['dirname'](_0x117e1e),_0x1672ad));if(_0x28f958[_0x3a359e(0x168)](_0x3a359e(0x13f))||_0x28f958==='..'||!_0x28f958[_0x3a359e(0x168)](_0x3a359e(0x14b)))throw Error(_0x3a359e(0x181)+_0x117e1e+'.');return _0x28f958;},_0xd23dad=(_0xe2cfc,_0x453121,_0x6ef013)=>{const _0x589ec6=a146_0x2ff5,_0x52210=_0x406c45(_0xe2cfc)[_0x589ec6(0x16c)](_0x2116d3=>_0x2116d3['id']===_0x453121&&relationshipTypes(_0x6ef013)['includes'](_0x2116d3[_0x589ec6(0x138)]));if(_0x52210['length']!==0x1)throw Error(_0x589ec6(0x143)+_0x6ef013+'\x20relationship\x20in\x20'+_0xe2cfc+'.');return _0x53fdb1(_0xe2cfc,_0x52210[0x0]);},_0xfab911=(_0x262eb3,_0x7acd21)=>{const _0x67dcf6=a146_0x2ff5,_0x39df29=_0x406c45(_0x262eb3)[_0x67dcf6(0x16c)](_0x8cd759=>relationshipTypes(_0x7acd21)[_0x67dcf6(0x163)](_0x8cd759[_0x67dcf6(0x138)]));if(_0x39df29[_0x67dcf6(0x12e)]!==0x1)throw Error(_0x67dcf6(0x143)+_0x7acd21+_0x67dcf6(0x10c)+_0x262eb3+'.');return _0x53fdb1(_0x262eb3,_0x39df29[0x0]);},_0xe204b=_0x3dc4ef(0x147),_0x43e93a=_0x221f20(_0xe204b);if(!matches(_0x43e93a,_0x3dc4ef(0x18b)))throw Error(_0x3dc4ef(0x114));const _0x21d8fb=one(chain(_0x43e93a,_0x3dc4ef(0x140),_0x3dc4ef(0x151))[_0x3dc4ef(0x16c)](_0x120b5e=>_0x120b5e['attrs'][_0x3dc4ef(0x10f)]===_0x2daa8b),_0x3dc4ef(0x18e)),_0x3ed1f0=_0xd23dad(_0xe204b,_0x21d8fb[_0x3dc4ef(0x159)][_0x3dc4ef(0x18c)],_0x3dc4ef(0x18e)),_0x2a7782=_0x221f20(_0x3ed1f0);if(!matches(_0x2a7782,_0x3dc4ef(0x18e)))throw Error(_0x3dc4ef(0x1c2));const _0x4a0b60=chain(_0x2a7782,_0x3dc4ef(0x1b5),_0x3dc4ef(0x170)),_0x33deec=new Map(),_0x1d4a8a=new Set(_0x4a0b60['filter'](_0x52327e=>_0x52327e[_0x3dc4ef(0x159)][_0x3dc4ef(0x182)]==='1'||_0x52327e[_0x3dc4ef(0x159)]['hidden']===_0x3dc4ef(0x148))[_0x3dc4ef(0x19b)](_0x9daea8=>integer(_0x9daea8['attrs']['r'],_0x3dc4ef(0x1a2)))),_0x7e9380=_0x12729a=>{const _0x54bcd9=_0x3dc4ef,_0x22830d=_0x12729a===undefined?0xf:Number(_0x12729a);if(!Number[_0x54bcd9(0x15a)](_0x22830d)||_0x22830d<=0x0||_0x22830d>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x54bcd9(0x192)](_0x22830d*0x319c);},_0x169b28=_0x7e9380(children(_0x2a7782,_0x3dc4ef(0x142))[0x0]?.[_0x3dc4ef(0x159)]['defaultRowHeight']);for(const _0x42f115 of _0x4a0b60)if(_0x42f115[_0x3dc4ef(0x159)]['ht']!==undefined)_0x33deec[_0x3dc4ef(0x178)](integer(_0x42f115['attrs']['r'],_0x3dc4ef(0x198)),_0x7e9380(_0x42f115[_0x3dc4ef(0x159)]['ht']));const _0xfd6513=[],_0x479133=_0x3ef5bf=>{const _0x15c79e=_0x3dc4ef;if(!_0x11ae24['has'](_0x3ef5bf[_0x15c79e(0x160)]))return;if(++_0x4252d4>0x2710)throw Error(_0x15c79e(0x153));_0xfd6513[_0x15c79e(0x1c1)](_0x1d4a8a['has'](_0x3ef5bf[_0x15c79e(0x170)])?{..._0x3ef5bf,'hiddenRow':!![]}:_0x3ef5bf);},_0x120dba=_0x118aa0=>({'row':integer(one(children(_0x118aa0,_0x3dc4ef(0x170),DRAWING),_0x3dc4ef(0x1ab))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x1ab),0x1869f)+0x1,'col':integer(one(children(_0x118aa0,_0x3dc4ef(0x160)),_0x3dc4ef(0x137))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x137),0xff)+0x1});for(const _0x2a7514 of children(_0x2a7782,_0x3dc4ef(0x1b4))){const _0x455371=_0xd23dad(_0x3ed1f0,_0x2a7514[_0x3dc4ef(0x159)][_0x3dc4ef(0x18c)],'drawing'),_0x13c4da=_0x221f20(_0x455371);if(!matches(_0x13c4da,_0x3dc4ef(0x111)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x280a49 of _0x13c4da['children']){if(!['oneCellAnchor','twoCellAnchor',_0x3dc4ef(0x14d)][_0x3dc4ef(0x1ad)](_0x10148a=>matches(_0x280a49,_0x10148a)))continue;if(_0x280a49['name']==='absoluteAnchor')throw Error(_0x3dc4ef(0x12a)+_0x2daa8b+'.');const _0x51c755=_0x120dba(one(children(_0x280a49,_0x3dc4ef(0x157)),_0x3dc4ef(0x190)));if(!_0x11ae24[_0x3dc4ef(0x13a)](_0x51c755['col']))continue;let _0x2cb50d;const _0x14d600=one(children(_0x280a49,'from'),_0x3dc4ef(0x190)),_0x3219ed=integer(one(children(_0x14d600,_0x3dc4ef(0x165)),_0x3dc4ef(0x145))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x145),Number['MAX_SAFE_INTEGER']),_0x1a9e63=_0x33deec[_0x3dc4ef(0x113)](_0x51c755[_0x3dc4ef(0x170)])??_0x169b28;if(_0x3219ed>=_0x1a9e63)throw Error(_0x3dc4ef(0x1c4)+_0x51c755[_0x3dc4ef(0x170)]+'.');if(_0x280a49[_0x3dc4ef(0x10f)]===_0x3dc4ef(0x15f)){const _0x117bb6=one(children(_0x280a49,_0x3dc4ef(0x169)),_0x3dc4ef(0x162)),_0x50fa06=integer(_0x117bb6[_0x3dc4ef(0x159)]['cy'],_0x3dc4ef(0x1a7),Number[_0x3dc4ef(0x18f)]);if(!_0x50fa06||_0x3219ed+_0x50fa06>_0x1a9e63)_0x2cb50d=_0x3dc4ef(0x14f);}if(_0x280a49[_0x3dc4ef(0x10f)]===_0x3dc4ef(0x1b2)){const _0x1bdff3=one(children(_0x280a49,'to'),_0x3dc4ef(0x1c5)),_0x2c5c77=_0x120dba(_0x1bdff3),_0x49747b=integer(one(children(_0x1bdff3,_0x3dc4ef(0x165)),_0x3dc4ef(0x16d))['text'],'anchor\x20end\x20offset',Number[_0x3dc4ef(0x18f)]),_0x17918d=_0x33deec[_0x3dc4ef(0x113)](_0x2c5c77[_0x3dc4ef(0x170)])??_0x169b28;if(_0x49747b>_0x17918d||_0x2c5c77[_0x3dc4ef(0x170)]===_0x51c755[_0x3dc4ef(0x170)]&&_0x49747b<=_0x3219ed)_0x2cb50d=_0x3dc4ef(0x16e);if(_0x2c5c77[_0x3dc4ef(0x170)]<_0x51c755[_0x3dc4ef(0x170)]||_0x2c5c77['row']>_0x51c755['row']+0x1||_0x2c5c77[_0x3dc4ef(0x170)]===_0x51c755[_0x3dc4ef(0x170)]+0x1&&_0x49747b!==0x0)_0x2cb50d='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x34c5c5=chain(_0x280a49,_0x3dc4ef(0x13e),_0x3dc4ef(0x124),'blip');for(const _0x41bf4a of _0x34c5c5){if(_0x41bf4a[_0x3dc4ef(0x159)][_0x3dc4ef(0x197)])throw Error(_0x3dc4ef(0x15c));_0x479133({..._0x51c755,'media':[_0xd23dad(_0x455371,_0x41bf4a['attrs'][_0x3dc4ef(0x1bd)],_0x3dc4ef(0x164))],..._0x2cb50d?{'error':_0x2cb50d}:{}});}if(!_0x34c5c5[_0x3dc4ef(0x12e)])_0x479133({..._0x51c755,'media':[],'error':_0x3dc4ef(0x115)});}}const _0x4a3921=_0xb0cd6a=>{const _0xff9e71=_0x3dc4ef,_0x1d6150=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x1bf)));if(!matches(_0x1d6150,_0xff9e71(0x16a)))throw Error(_0xff9e71(0x128));const _0x554538=integer(_0xb0cd6a[_0xff9e71(0x159)]['vm'],_0xff9e71(0x11e));if(!_0x554538)throw Error(_0xff9e71(0x188));const _0x350458=children(one(children(_0x1d6150,'valueMetadata'),_0xff9e71(0x154)),'bk')[_0x554538-0x1];if(!_0x350458)throw Error(_0xff9e71(0x127));const _0xb34403=one(children(_0x350458,'rc'),_0xff9e71(0x17b)),_0x50a9bb=integer(_0xb34403['attrs']['t'],'metadata\x20type\x20index'),_0x9d4a98=children(one(children(_0x1d6150,_0xff9e71(0x17f)),_0xff9e71(0x172)),_0xff9e71(0x11f))[_0x50a9bb-0x1];if(!_0x50a9bb||_0x9d4a98?.[_0xff9e71(0x159)]['name']!=='XLRICHVALUE')throw Error(_0xff9e71(0x118));const _0x38aeb1=one(children(_0x1d6150,_0xff9e71(0x1bb))[_0xff9e71(0x16c)](_0x22b29d=>_0x22b29d['attrs']['name']===_0xff9e71(0x184)),_0xff9e71(0x149)),_0x4a9da9=children(_0x38aeb1,'bk')[integer(_0xb34403[_0xff9e71(0x159)]['v'],'future\x20metadata\x20index')];if(!_0x4a9da9)throw Error(_0xff9e71(0x15d));const _0x2d67f0=chain(_0x4a9da9,_0xff9e71(0x11c))['flatMap'](_0x53a5fb=>children(_0x53a5fb,_0xff9e71(0x169),SHEET))[_0xff9e71(0x16c)](_0x5f49c7=>_0x5f49c7['attrs'][_0xff9e71(0x19a)]?.['toLowerCase']()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x3c7749=integer(one(_0x2d67f0[_0xff9e71(0x117)](_0xc72f3e=>children(_0xc72f3e,_0xff9e71(0x1ba))),_0xff9e71(0x1a5))['attrs']['i'],'rich\x20value\x20index'),_0x3d2160=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x132)));if(!matches(_0x3d2160,'rvData'))throw Error(_0xff9e71(0x1a6));const _0x3ff502=children(_0x3d2160,'rv')[_0x3c7749];if(!_0x3ff502)throw Error(_0xff9e71(0x179));const _0x424f78=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x19d)));if(!matches(_0x424f78,'rvStructures'))throw Error('Unsupported\x20rich\x20structure\x20namespace.');const _0x476565=children(_0x424f78,'s')[integer(_0x3ff502['attrs']['s'],'rich\x20structure\x20index')];if(!_0x476565||_0x476565[_0xff9e71(0x159)]['t']!==_0xff9e71(0x1aa))throw Error(_0xff9e71(0x1bc));const _0x2b15d7=children(_0x476565,'k'),_0x324db3=_0x2b15d7[_0xff9e71(0x19b)]((_0x253da0,_0x1f7e5b)=>_0x253da0['attrs']['n']===_0xff9e71(0x1b6)?_0x1f7e5b:-0x1)[_0xff9e71(0x16c)](_0x4b6548=>_0x4b6548>=0x0);if(_0x324db3['length']!==0x1)throw Error(_0xff9e71(0x135));const _0x129460=children(_0x3ff502,'v',RICH)[_0x324db3[0x0]];if(!_0x129460)throw Error(_0xff9e71(0x167));const _0x49df32=_0xfab911(_0xe204b,_0xff9e71(0x12c)),_0x13ddf0=_0x221f20(_0x49df32);if(!matches(_0x13ddf0,'richValueRels'))throw Error(_0xff9e71(0x186));const _0x380831=children(_0x13ddf0,_0xff9e71(0x1b3))[integer(_0x129460[_0xff9e71(0x16b)],_0xff9e71(0x1c0))];if(!_0x380831)throw Error(_0xff9e71(0x1ae));return _0xd23dad(_0x49df32,_0x380831['attrs']['r:id'],_0xff9e71(0x164));};let _0x144b00;const _0x43501a=_0x2a889a=>{const _0x5eb11d=_0x3dc4ef;if(!_0x144b00){_0x144b00=new Map();const _0x28dc23=_0x406c45(_0xe204b)[_0x5eb11d(0x16c)](_0xf0e250=>[...relationshipTypes(_0x5eb11d(0x176)),...relationshipTypes('cellImages')][_0x5eb11d(0x163)](_0xf0e250[_0x5eb11d(0x138)]));if(!_0x28dc23[_0x5eb11d(0x12e)]&&_0x5c29ee[_0x5eb11d(0x13a)]('xl/cellimages.xml'))_0x28dc23[_0x5eb11d(0x1c1)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x28dc23['length']!==0x1)throw Error(_0x5eb11d(0x199));const _0x1949ec=_0x53fdb1(_0xe204b,_0x28dc23[0x0]),_0x31f799=_0x221f20(_0x1949ec);if(!matches(_0x31f799,_0x5eb11d(0x18a)))throw Error(_0x5eb11d(0x11d));for(const _0x46d5b2 of children(_0x31f799,_0x5eb11d(0x176))){const _0x4627df=one(chain(_0x46d5b2,_0x5eb11d(0x13e),'nvPicPr','cNvPr'),_0x5eb11d(0x191))[_0x5eb11d(0x159)]['name'];if(!_0x4627df||_0x144b00[_0x5eb11d(0x13a)](_0x4627df))throw Error(_0x5eb11d(0x195));const _0x4cb435=one(chain(_0x46d5b2,_0x5eb11d(0x13e),_0x5eb11d(0x124),'blip'),_0x5eb11d(0x1b8));if(_0x4cb435[_0x5eb11d(0x159)]['r:link'])throw Error(_0x5eb11d(0x1a0));_0x144b00['set'](_0x4627df,_0xd23dad(_0x1949ec,_0x4cb435['attrs'][_0x5eb11d(0x1bd)],_0x5eb11d(0x164)));}}const _0x36ca07=_0x144b00['get'](_0x2a889a);if(!_0x36ca07)throw Error(_0x5eb11d(0x1af)+_0x2a889a+'.');return _0x36ca07;},_0xc4d4f4=new Set();for(const _0x482693 of _0x4a0b60[_0x3dc4ef(0x117)](_0xedb2a4=>children(_0xedb2a4,'c'))){const _0x263766=/^([A-Z]+)([1-9]\d*)$/[_0x3dc4ef(0x110)](_0x482693['attrs']['r']??'');if(!_0x263766)continue;let _0x4346e1=0x0;for(const _0x33d957 of _0x263766[0x1])_0x4346e1=_0x4346e1*0x1a+_0x33d957[_0x3dc4ef(0x1b7)](0x0)-0x40;if(!_0x11ae24['has'](_0x4346e1))continue;const _0x262f5c=integer(_0x263766[0x2],_0x3dc4ef(0x1a4));if(_0xc4d4f4[_0x3dc4ef(0x13a)](_0x482693[_0x3dc4ef(0x159)]['r']))throw Error(_0x3dc4ef(0x123));_0xc4d4f4[_0x3dc4ef(0x180)](_0x482693[_0x3dc4ef(0x159)]['r']);const _0x3e2765=children(_0x482693,'f');if(!_0x482693[_0x3dc4ef(0x159)]['vm']&&!_0x3e2765['length'])continue;try{if(_0x262f5c<0x1||_0x4346e1>0x100)throw Error(_0x3dc4ef(0x166));let _0x580526;if(_0x482693[_0x3dc4ef(0x159)]['vm']){if(_0x3e2765[_0x3dc4ef(0x12e)])throw Error('Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.');if(_0x482693['attrs']['t']!=='e'||children(_0x482693,'v')[_0x3dc4ef(0x12e)]!==0x1||children(_0x482693,'v')[0x0][_0x3dc4ef(0x16b)]!=='#VALUE!')throw Error(_0x3dc4ef(0x12b));_0x580526=_0x4a3921(_0x482693);}else{const _0x761a7a=one(_0x3e2765,_0x3dc4ef(0x171));if(_0x761a7a[_0x3dc4ef(0x159)]['t']==='shared'||_0x761a7a[_0x3dc4ef(0x159)]['si'])throw Error(_0x3dc4ef(0x121));const _0x362178=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x761a7a[_0x3dc4ef(0x16b)]);if(!_0x362178)throw Error(_0x3dc4ef(0x183));_0x580526=_0x43501a(_0x362178[0x1][_0x3dc4ef(0x133)](/""/g,'\x22'));}_0x479133({'row':_0x262f5c,'col':_0x4346e1,'media':[_0x580526],'nativeCell':!![]});}catch(_0x46ac83){_0x479133({'row':_0x262f5c,'col':_0x4346e1,'media':[],'nativeCell':!![],'error':_0x46ac83[_0x3dc4ef(0x13b)]});}}return _0xfd6513;}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x3b73c8,_0x368f2c){const _0x5a59a1=a147_0x4f3b,_0xfcf08a=_0x3b73c8();while(!![]){try{const _0x5e1a9f=parseInt(_0x5a59a1(0xa8))/0x1*(parseInt(_0x5a59a1(0xe8))/0x2)+-parseInt(_0x5a59a1(0xf5))/0x3+parseInt(_0x5a59a1(0xfb))/0x4+-parseInt(_0x5a59a1(0xe7))/0x5+parseInt(_0x5a59a1(0xc5))/0x6*(-parseInt(_0x5a59a1(0x109))/0x7)+parseInt(_0x5a59a1(0xd8))/0x8*(-parseInt(_0x5a59a1(0xe4))/0x9)+parseInt(_0x5a59a1(0xca))/0xa;if(_0x5e1a9f===_0x368f2c)break;else _0xfcf08a['push'](_0xfcf08a['shift']());}catch(_0x2b85cf){_0xfcf08a['push'](_0xfcf08a['shift']());}}}(a147_0x45c3,0x254a3));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';export function assertImageImportCapability(_0x1d21a3,_0x3c4edd){const _0x259f7c=a147_0x4f3b;if(!_0x3c4edd[_0x259f7c(0xc4)]?.[_0x259f7c(0xc1)])return;const _0x41a2ec=_0x1d21a3[_0x259f7c(0xfe)];if(!_0x41a2ec||_0x41a2ec[_0x259f7c(0x100)]!==0x1||_0x41a2ec[_0x259f7c(0xf2)]!==_0x259f7c(0xe1)||_0x41a2ec[_0x259f7c(0xda)]!==0xa00000||_0x41a2ec[_0x259f7c(0xb1)]!==0x2625a00||!Array[_0x259f7c(0xf4)](_0x41a2ec[_0x259f7c(0xf3)])||![_0x259f7c(0xe0),_0x259f7c(0xb3),'image/gif'][_0x259f7c(0xa6)](_0x2c9e8f=>_0x41a2ec[_0x259f7c(0xf3)][_0x259f7c(0xe5)](_0x2c9e8f)))throw Error(_0x259f7c(0xb0));}export function imageObjectValue(_0x71c41f,_0x40a7e9,_0x47ff14){const _0x54fbfb=a147_0x4f3b,_0x4ca69d=createHash(_0x54fbfb(0xe1))[_0x54fbfb(0xaa)](JSON['stringify']([_0x71c41f[_0x54fbfb(0xde)],_0x71c41f[_0x54fbfb(0xe2)],_0x71c41f['datasetCode'],_0x40a7e9]))[_0x54fbfb(0x107)](_0x54fbfb(0xab)),_0x2c0f38={'image/png':_0x54fbfb(0xae),'image/jpeg':_0x54fbfb(0xe3),'image/gif':'gif'}[_0x47ff14[_0x54fbfb(0xd1)]];if(!_0x2c0f38||!/^[0-9a-f]{64}$/[_0x54fbfb(0xf7)](_0x47ff14[_0x54fbfb(0xff)])||!Number[_0x54fbfb(0xb7)](_0x47ff14[_0x54fbfb(0xcd)])||_0x47ff14[_0x54fbfb(0xcd)]<=0x0||_0x47ff14[_0x54fbfb(0xcd)]>0xa00000)throw Error('Invalid\x20image\x20media\x20descriptor.');const _0x56782e=_0x47ff14[_0x54fbfb(0xff)]+'.'+_0x2c0f38;return{'key':_0x54fbfb(0xac)+_0x4ca69d+'/'+_0x56782e,'name':_0x56782e,'type':_0x47ff14['type'],'size':_0x47ff14[_0x54fbfb(0xcd)]};}export function bindImageManifest(_0x5323d5,_0x1533a0,_0x28c781){const _0x23fe96=a147_0x4f3b,_0x263027=new Map(_0x5323d5[_0x23fe96(0xc4)]?.['map'](_0x36f644=>[_0x36f644['contentHash'],_0x36f644])),_0x2c6791=new Map(_0x5323d5[_0x23fe96(0xc2)]?.[_0x23fe96(0xad)](_0x446c11=>[_0x446c11[_0x23fe96(0xe9)]+':'+_0x446c11[_0x23fe96(0xbe)],_0x446c11[_0x23fe96(0xbf)]]));return{..._0x5323d5,'rows':_0x5323d5[_0x23fe96(0xb6)]['map'](_0x23f209=>({..._0x23f209,'values':Object['fromEntries'](Object[_0x23fe96(0xf9)](_0x23f209[_0x23fe96(0x106)])[_0x23fe96(0xad)](([_0x17687d,_0x302749])=>{const _0x3bb7be=_0x23fe96,_0x47730a=_0x2c6791['get'](_0x23f209[_0x3bb7be(0xe9)]+':'+_0x17687d);return[_0x17687d,_0x47730a?_0x47730a[_0x3bb7be(0xad)](_0x246a0e=>{const _0x346914=_0x3bb7be,_0x4bd253=_0x263027[_0x346914(0xd4)](_0x246a0e);if(!_0x4bd253)throw Error(_0x346914(0xc6));const _0x3e2562=imageObjectValue(_0x1533a0,_0x28c781,_0x4bd253);return _0x5323d5[_0x346914(0x105)]?.[_0x346914(0xe5)](_0x17687d)?{'fileName':_0x3e2562[_0x346914(0xb2)],'filePath':_0x3e2562[_0x346914(0xcc)]}:_0x3e2562;}):_0x302749];}))}))};}function a147_0x4f3b(_0x9e1582,_0x3c26fc){_0x9e1582=_0x9e1582-0xa4;const _0x45c3e8=a147_0x45c3();let _0x4f3b56=_0x45c3e8[_0x9e1582];return _0x4f3b56;}async function exists(_0x602feb){const _0x2569ea=a147_0x4f3b;try{return await lstat(_0x602feb),!![];}catch(_0x236e0c){if(_0x236e0c[_0x2569ea(0xd2)]===_0x2569ea(0xfa))return![];throw _0x236e0c;}}export async function runImageExcelImport(_0x2dc26c){const _0x3e0847=a147_0x4f3b;assertImportContract(_0x2dc26c['contract'],_0x2dc26c['appCode'],_0x2dc26c[_0x3e0847(0xdc)]),assertImageImportCapability(_0x2dc26c[_0x3e0847(0xdf)],_0x2dc26c[_0x3e0847(0xd0)]);if(!Number['isInteger'](_0x2dc26c[_0x3e0847(0xc8)])||_0x2dc26c[_0x3e0847(0xc8)]<0x1||_0x2dc26c[_0x3e0847(0xc8)]>_0x2dc26c[_0x3e0847(0xdf)][_0x3e0847(0xd9)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x2dc26c['manifest']['errors']['length']||!_0x2dc26c[_0x3e0847(0xd0)][_0x3e0847(0xb6)][_0x3e0847(0xc1)])throw Error(_0x3e0847(0xef));const _0xcd3e0c=await resolveImportOutputPath(_0x2dc26c[_0x3e0847(0x103)]),_0x4c9e7d=await resolveImportOutputPath(_0x2dc26c[_0x3e0847(0xbd)]),_0xd531db=await resolveImportOutputPath(_0xcd3e0c+_0x3e0847(0xb9)),_0x4f8e01=await Promise[_0x3e0847(0xe6)]([_0xd531db,_0xd531db+_0x3e0847(0x108),_0xd531db+_0x3e0847(0xd7),..._0x2dc26c[_0x3e0847(0xc3)]??[]][_0x3e0847(0xad)](resolveImportOutputPath));for(const _0xc5d33f of[_0xcd3e0c,_0x4c9e7d,_0xcd3e0c+'.lock',_0xcd3e0c+_0x3e0847(0xd7)])await resolveImportOutputPath(_0xc5d33f);assertImportPaths(_0xcd3e0c,_0x4c9e7d,_0x4f8e01);const {contract:_0x3aae88,manifest:_0x202958}=_0x2dc26c,_0x5928fa=_0x202958[_0x3e0847(0xc4)]??[];if(new Set(_0x5928fa[_0x3e0847(0xad)](_0x15def1=>_0x15def1[_0x3e0847(0xff)]))[_0x3e0847(0xcd)]!==_0x5928fa[_0x3e0847(0xc1)]||_0x5928fa[_0x3e0847(0x101)]((_0x14070e,_0xa9b0a2)=>_0x14070e+_0xa9b0a2[_0x3e0847(0xcd)],0x0)>0x32*0x400*0x400||(_0x202958[_0x3e0847(0xc2)]??[])[_0x3e0847(0x101)]((_0x38e16a,_0x344766)=>_0x38e16a+_0x344766[_0x3e0847(0xbf)]['length'],0x0)>0x2710)throw Error(_0x3e0847(0xc7));for(const _0x45a0b8 of _0x5928fa)if(_0x45a0b8[_0x3e0847(0xcd)]!==_0x45a0b8['bytes'][_0x3e0847(0xc1)]||createHash(_0x3e0847(0xe1))[_0x3e0847(0xaa)](_0x45a0b8[_0x3e0847(0xa9)])[_0x3e0847(0x107)](_0x3e0847(0xab))!==_0x45a0b8[_0x3e0847(0xff)])throw Error(_0x3e0847(0xec));previewImportBatchCount(bindImageManifest(_0x202958,_0x3aae88,'00000000-0000-4000-8000-000000000000'),_0x3aae88,_0x2dc26c['batchSize']);const _0x59df59={'appCode':_0x2dc26c[_0x3e0847(0xe2)],'datasetCode':_0x2dc26c[_0x3e0847(0xdc)],'runtimeDomain':_0x2dc26c['runtimeDomain'],'actorId':_0x3aae88['actorId'],'fileHash':_0x202958[_0x3e0847(0xcf)],'mappingHash':_0x202958[_0x3e0847(0xee)],'schemaHash':_0x202958[_0x3e0847(0xeb)],'remoteSchemaHash':_0x3aae88[_0x3e0847(0xbc)],'strategy':_0x3aae88[_0x3e0847(0xaf)],'schemaVersion':_0x3aae88[_0x3e0847(0xa4)],'batchSize':_0x2dc26c['batchSize'],'maxBatchBytes':_0x3aae88['maxBatchBytes'],'sheet':_0x202958[_0x3e0847(0xb4)],'parserVersion':_0x202958[_0x3e0847(0x104)],'imageFields':_0x202958[_0x3e0847(0xdd)],'cells':_0x202958['imageCells'],..._0x202958['uploadFields']?.[_0x3e0847(0xc1)]?{'uploadFields':_0x202958[_0x3e0847(0x105)]}:{},'media':_0x5928fa[_0x3e0847(0xad)](({contentHash:_0x3aa622,type:_0x4121c6,size:_0x5493c1})=>({'contentHash':_0x3aa622,'type':_0x4121c6,'size':_0x5493c1})),'rows':_0x202958[_0x3e0847(0xb6)]},_0x1d30a8=await acquireLock(_0xcd3e0c);try{let _0x30c4e0;if(_0x2dc26c[_0x3e0847(0xfc)]){try{_0x30c4e0=JSON[_0x3e0847(0xc9)](await readFile(_0xcd3e0c,'utf8'));}catch{throw Error(_0x3e0847(0xd3));}if(_0x30c4e0[_0x3e0847(0x100)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3e0847(0xf7)](_0x30c4e0[_0x3e0847(0xd5)])||canonical(_0x30c4e0['binding'])!==canonical(_0x59df59)||!['media',_0x3e0847(0xba),_0x3e0847(0xdb),'completed'][_0x3e0847(0xe5)](_0x30c4e0[_0x3e0847(0xb8)])||!Array[_0x3e0847(0xf4)](_0x30c4e0[_0x3e0847(0xc4)])||_0x30c4e0['media']['length']!==_0x5928fa[_0x3e0847(0xc1)]||_0x30c4e0[_0x3e0847(0xc4)][_0x3e0847(0xf6)]((_0x55742f,_0x1f278c)=>_0x55742f['hash']!==_0x5928fa[_0x1f278c]['contentHash']||![_0x3e0847(0xa7),_0x3e0847(0xf8)][_0x3e0847(0xe5)](_0x55742f[_0x3e0847(0xce)])))throw Error(_0x3e0847(0xd6));if([_0x3e0847(0xdb),'completed'][_0x3e0847(0xe5)](_0x30c4e0[_0x3e0847(0xb8)])&&!await exists(_0xd531db))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x30c4e0[_0x3e0847(0xb8)]==='media'&&await exists(_0xd531db))throw Error(_0x3e0847(0xc0));}else{if(await exists(_0xcd3e0c)||await exists(_0xd531db))throw Error(_0x3e0847(0xf1));_0x30c4e0={'version':0x3,'importId':randomUUID(),'binding':_0x59df59,'phase':_0x3e0847(0xc4),'media':_0x5928fa[_0x3e0847(0xad)](_0x2a04a8=>({'hash':_0x2a04a8['contentHash'],'status':_0x3e0847(0xa7)}))},await saveImportJson(_0xcd3e0c,_0x30c4e0);}const _0x42f59e=(_0x4c7c61,_0x2a9375)=>{const _0x5c5421=_0x3e0847;if(!_0x4c7c61||_0x4c7c61[_0x5c5421(0xff)]!==_0x2a9375['contentHash'])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x4c7c61[_0x5c5421(0xce)]==='missing')return undefined;const _0x3fabe9=imageObjectValue(_0x3aae88,_0x30c4e0[_0x5c5421(0xd5)],_0x2a9375);if(_0x4c7c61['status']!=='succeeded'||_0x4c7c61['filePath']!==_0x3fabe9[_0x5c5421(0xcc)]||_0x4c7c61['fileName']!==_0x3fabe9[_0x5c5421(0xb2)]||_0x4c7c61[_0x5c5421(0xd1)]!==_0x3fabe9[_0x5c5421(0xd1)]||_0x4c7c61[_0x5c5421(0xcd)]!==_0x3fabe9[_0x5c5421(0xcd)])throw Error(_0x5c5421(0xa5));return _0x3fabe9;};for(let _0x129390=0x0;_0x129390<_0x5928fa[_0x3e0847(0xc1)];_0x129390++){const _0x1d7749=_0x5928fa[_0x129390],_0x1bb9b9=_0x30c4e0[_0x3e0847(0xc4)][_0x129390],_0x3f8c2e=imageObjectValue(_0x3aae88,_0x30c4e0['importId'],_0x1d7749);if(_0x1bb9b9['status']===_0x3e0847(0xf8)&&canonical(_0x1bb9b9[_0x3e0847(0x102)])!==canonical(_0x3f8c2e))throw Error('Completed\x20image\x20checkpoint\x20value\x20changed.');let _0x3728df;if(_0x2dc26c[_0x3e0847(0xfc)]||_0x1bb9b9[_0x3e0847(0xce)]===_0x3e0847(0xf8))_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df&&_0x1bb9b9[_0x3e0847(0xce)]===_0x3e0847(0xf8))throw Error(_0x3e0847(0xfd));if(!_0x3728df){try{_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xea)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);}catch(_0x4248a5){_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df)throw Error(_0x3e0847(0xb5));}if(!_0x3728df)_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df)throw Error(_0x3e0847(0xcb));}_0x1bb9b9[_0x3e0847(0xce)]=_0x3e0847(0xf8),_0x1bb9b9[_0x3e0847(0x102)]=_0x3728df,await saveImportJson(_0xcd3e0c,_0x30c4e0);}const _0x2247e2=bindImageManifest(_0x202958,_0x3aae88,_0x30c4e0[_0x3e0847(0xd5)]),_0x3bcb4d=_0x30c4e0[_0x3e0847(0xb8)]===_0x3e0847(0xba)?await exists(_0xd531db):_0x30c4e0[_0x3e0847(0xb8)]!==_0x3e0847(0xc4);_0x30c4e0['phase']===_0x3e0847(0xc4)&&(_0x30c4e0['phase']=_0x3e0847(0xba),await saveImportJson(_0xcd3e0c,_0x30c4e0));const _0x19231f={..._0x2dc26c,'manifest':_0x2247e2,'checkpoint':_0xd531db,'report':_0x4c9e7d,'resume':_0x3bcb4d,'onCheckpointReady':async()=>{const _0x58cb88=_0x3e0847;_0x30c4e0[_0x58cb88(0xb8)]=_0x58cb88(0xdb),await saveImportJson(_0xcd3e0c,_0x30c4e0);}},_0x1a8e0d=_0x3aae88[_0x3e0847(0xa4)]===0x2?await runAutoIdExcelImport({..._0x19231f,'reconcileImageConflicts':_0x2dc26c['resume']===!![]&&_0x3bcb4d}):await runExcelImport(_0x19231f);return _0x30c4e0[_0x3e0847(0xb8)]=_0x3e0847(0xed),await saveImportJson(_0xcd3e0c,_0x30c4e0),{..._0x1a8e0d,'checkpoint':_0xcd3e0c,'imageCount':_0x202958[_0x3e0847(0xc2)]?.[_0x3e0847(0x101)]((_0x1f0dff,_0x3f8c8f)=>_0x1f0dff+_0x3f8c8f[_0x3e0847(0xbf)][_0x3e0847(0xc1)],0x0)??0x0,'uniqueImages':_0x5928fa[_0x3e0847(0xc1)]};}finally{await _0x1d30a8();}}function a147_0x45c3(){const _0x43bc0c=['imageImport','contentHash','version','reduce','value','checkpoint','parserVersion','uploadFields','values','digest','.lock','77ygSEVe','schemaVersion','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','every','pending','2CJxqSh','bytes','update','hex','dataset-import/','map','png','strategy','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','maxPixels','name','image/jpeg','sheet','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','rows','isSafeInteger','phase','.rows.json','rows-preparing','imageApi','schemaFingerprint','report','field','hashes','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','length','imageCells','inputPaths','media','103254DmpAPr','Image\x20cell\x20references\x20missing\x20media.','Invalid\x20image\x20manifest\x20limits.','batchSize','parse','5143560ryiutF','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','key','size','status','fileHash','manifest','type','code','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','get','importId','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','.lock.recovery','706216IoGhsY','maxBatchSize','maxFileBytes','rows-started','datasetCode','imageFields','actorId','contract','image/png','sha256','appCode','jpg','9wlFiuv','includes','all','745680NQrmAQ','42874xBjcep','rowNumber','upload','schemaHash','Image\x20media\x20bytes\x20changed.','completed','mappingHash','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','readback','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','uploadId','types','isArray','22401uTqXRz','some','test','succeeded','entries','ENOENT','118752zrPBfC','resume','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.'];a147_0x45c3=function(){return _0x43bc0c;};return a147_0x45c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a148_0x20b9(_0xaf25ff,_0x4aeb6f){_0xaf25ff=_0xaf25ff-0x125;const _0x1a3901=a148_0x1a39();let _0x20b998=_0x1a3901[_0xaf25ff];return _0x20b998;}(function(_0x4201f1,_0x5e78de){const _0x19c353=a148_0x20b9,_0x31fcfe=_0x4201f1();while(!![]){try{const _0x1c69aa=-parseInt(_0x19c353(0x132))/0x1*(parseInt(_0x19c353(0x12c))/0x2)+parseInt(_0x19c353(0x139))/0x3+parseInt(_0x19c353(0x130))/0x4+parseInt(_0x19c353(0x133))/0x5*(-parseInt(_0x19c353(0x137))/0x6)+parseInt(_0x19c353(0x129))/0x7*(-parseInt(_0x19c353(0x126))/0x8)+-parseInt(_0x19c353(0x128))/0x9*(-parseInt(_0x19c353(0x131))/0xa)+-parseInt(_0x19c353(0x12f))/0xb;if(_0x1c69aa===_0x5e78de)break;else _0x31fcfe['push'](_0x31fcfe['shift']());}catch(_0x20ce54){_0x31fcfe['push'](_0x31fcfe['shift']());}}}(a148_0x1a39,0xa1b54));export function assertDatasetImportTarget(_0x3f7e13,_0x12530d,_0xe695c){const _0x5e7c02=a148_0x20b9;if(!_0x3f7e13||typeof _0x3f7e13!==_0x5e7c02(0x125)||Array[_0x5e7c02(0x12e)](_0x3f7e13))throw Error('Dataset\x20metadata\x20is\x20missing.');const _0x6fc274=[_0x3f7e13['code'],_0x3f7e13[_0x5e7c02(0x136)],_0x3f7e13[_0x5e7c02(0x12b)]?.['datasetCode']][_0x5e7c02(0x12d)](_0x514285=>_0x514285!=null);if(!_0x6fc274['length']||_0x6fc274[_0x5e7c02(0x134)](_0x40a86c=>_0x40a86c!==_0xe695c)||_0x3f7e13['appCode']!=null&&_0x3f7e13['appCode']!==_0x12530d||_0x3f7e13[_0x5e7c02(0x12b)]?.[_0x5e7c02(0x138)]!=null&&_0x3f7e13[_0x5e7c02(0x12b)][_0x5e7c02(0x138)]!==_0x12530d)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x191300=[_0x3f7e13[_0x5e7c02(0x12a)],_0x3f7e13[_0x5e7c02(0x12b)]?.['sourceType']]['filter'](_0x1c404f=>_0x1c404f!=null);if(_0x191300['some'](_0x154d4d=>typeof _0x154d4d!==_0x5e7c02(0x135)||_0x154d4d!==_0x191300[0x0]))throw Error(_0x5e7c02(0x127));return _0x191300[0x0];}function a148_0x1a39(){const _0x5f8adc=['10cUGbBi','some','string','modelCode','1444956JKFSYw','appCode','2063559vreXKI','object','24sNCfhI','Dataset\x20source\x20metadata\x20is\x20inconsistent.','1065258RguaCF','92757zoiYEd','source','dataset','742918Wrauvc','filter','isArray','2832885PyGZUu','3552712LgEqjN','20kYuUbf','1blNamc'];a148_0x1a39=function(){return _0x5f8adc;};return a148_0x1a39();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a149_0x206d(_0x2ddf34,_0x5552b1){_0x2ddf34=_0x2ddf34-0x130;const _0x4a9015=a149_0x4a90();let _0x206d8c=_0x4a9015[_0x2ddf34];return _0x206d8c;}function a149_0x4a90(){const _0x206eb1=['\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','230742kKXGid','4085808wbfWUw','rows','byteLength','6737486hBqjha','170FeGdBV','4sUMkjI','Excel\x20row\x20','maxBatchBytes','length','6683586mIbEyV','rowNumber','1097004GSmeim','5345pqSpsy','schemaVersion','5irifBN','stringify','push','values','50586YHTgcx'];a149_0x4a90=function(){return _0x206eb1;};return a149_0x4a90();}(function(_0x4ff3e6,_0x12b424){const _0x3ce8e1=a149_0x206d,_0x4b20ed=_0x4ff3e6();while(!![]){try{const _0x433910=parseInt(_0x3ce8e1(0x132))/0x1*(parseInt(_0x3ce8e1(0x136))/0x2)+parseInt(_0x3ce8e1(0x144))/0x3+-parseInt(_0x3ce8e1(0x13e))/0x4*(-parseInt(_0x3ce8e1(0x130))/0x5)+parseInt(_0x3ce8e1(0x142))/0x6+-parseInt(_0x3ce8e1(0x13c))/0x7+parseInt(_0x3ce8e1(0x139))/0x8+parseInt(_0x3ce8e1(0x138))/0x9*(-parseInt(_0x3ce8e1(0x13d))/0xa);if(_0x433910===_0x12b424)break;else _0x4b20ed['push'](_0x4b20ed['shift']());}catch(_0x377358){_0x4b20ed['push'](_0x4b20ed['shift']());}}}(a149_0x4a90,0xafa9b));export function previewImportBatchCount(_0x357654,_0x2e49c2,_0x5d3e4c){const _0x2528bf=a149_0x206d,_0x41114a=_0x47f3e4=>_0x47f3e4['map'](_0x2e8aeb=>_0x2e49c2[_0x2528bf(0x131)]===0x1?{..._0x357654[_0x2528bf(0x13a)][_0x2e8aeb][_0x2528bf(0x135)],'id':-0x1fffffffffffff}:_0x357654[_0x2528bf(0x13a)][_0x2e8aeb][_0x2528bf(0x135)]),_0x653619=_0x3bfd3b=>Buffer[_0x2528bf(0x13b)](JSON[_0x2528bf(0x133)]({'schemaFingerprint':_0x2e49c2['schemaFingerprint'],..._0x2e49c2[_0x2528bf(0x131)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x41114a(_0x3bfd3b)}),'utf8');let _0x318061=0x0,_0x1695c8=[];for(let _0x483c56=0x0;_0x483c56<_0x357654['rows'][_0x2528bf(0x141)];_0x483c56++){if(_0x653619([_0x483c56])>_0x2e49c2[_0x2528bf(0x140)])throw Error(_0x2528bf(0x13f)+_0x357654[_0x2528bf(0x13a)][_0x483c56][_0x2528bf(0x143)]+_0x2528bf(0x137));_0x1695c8[_0x2528bf(0x141)]&&(_0x1695c8[_0x2528bf(0x141)]===_0x5d3e4c||_0x653619([..._0x1695c8,_0x483c56])>_0x2e49c2['maxBatchBytes'])&&(_0x318061++,_0x1695c8=[]),_0x1695c8[_0x2528bf(0x134)](_0x483c56);}return _0x318061+Number(_0x1695c8['length']>0x0);}
|