@lovrabet/lovrabet-cli 2.3.8-beta.6 → 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 +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a144_0x182a22=a144_0x5e9d;(function(_0x1729d2,_0x182c1e){const _0x1a4e80=a144_0x5e9d,_0x50bdc8=_0x1729d2();while(!![]){try{const _0xfd3ebb=-parseInt(_0x1a4e80(0xc6))/0x1+-parseInt(_0x1a4e80(0x14a))/0x2+parseInt(_0x1a4e80(0x10a))/0x3*(-parseInt(_0x1a4e80(0x1a6))/0x4)+parseInt(_0x1a4e80(0xcb))/0x5*(parseInt(_0x1a4e80(0x126))/0x6)+-parseInt(_0x1a4e80(0xc1))/0x7*(parseInt(_0x1a4e80(0x1b2))/0x8)+-parseInt(_0x1a4e80(0x14d))/0x9*(parseInt(_0x1a4e80(0xec))/0xa)+parseInt(_0x1a4e80(0x189))/0xb;if(_0xfd3ebb===_0x182c1e)break;else _0x50bdc8['push'](_0x50bdc8['shift']());}catch(_0x185f6){_0x50bdc8['push'](_0x50bdc8['shift']());}}}(a144_0x8f2d,0x23c30));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x3425f4 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x579a8e from'exceljs';import a144_0x207229 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';function a144_0x5e9d(_0x1c9cbd,_0xf6afc1){_0x1c9cbd=_0x1c9cbd-0xc0;const _0x8f2d60=a144_0x8f2d();let _0x5e9df3=_0x8f2d60[_0x1c9cbd];return _0x5e9df3;}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_0x182a22(0x19e),a144_0x182a22(0x15e),a144_0x182a22(0x188),a144_0x182a22(0x17b),'creatorName',a144_0x182a22(0x1ac),a144_0x182a22(0x157),'createTime','updateTime',a144_0x182a22(0x171)]),TYPES=new Set(['string','text',a144_0x182a22(0xf2),'number',a144_0x182a22(0x13b),a144_0x182a22(0xc0),'boolean',a144_0x182a22(0x1a5),a144_0x182a22(0x141),'image',a144_0x182a22(0x185)]),isImageContainer=_0x46523b=>[a144_0x182a22(0xe4),a144_0x182a22(0x185)][a144_0x182a22(0xe5)](_0x46523b[a144_0x182a22(0x10c)]()),hash=_0x101952=>createHash('sha256')[a144_0x182a22(0x167)](_0x101952)[a144_0x182a22(0xdf)](a144_0x182a22(0x198)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x182a22(0xf6)),nameCoordinates=require(a144_0x182a22(0x15c)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x182a22(0x158)](a144_0x182a22(0x1a4))),zipRequire=createRequire(excelRequire['resolve'](a144_0x182a22(0x11b))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x182a22(0x13a)),zipUtf8=zipRequire(a144_0x182a22(0x135)),zipPaths=zipRequire(a144_0x182a22(0x130));function centralDirectoryEnd(_0x48ade1,_0x28e7fb){const _0xe34a02=a144_0x182a22,_0x5ae612=()=>new Error(_0xe34a02(0x12a)),_0x486d37=_0x48ade1['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x486d37<0x0||_0x486d37+0x16>_0x48ade1[_0xe34a02(0xd7)]||_0x486d37+0x16+_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x14)!==_0x48ade1['length'])throw _0x5ae612();let _0x936d95=_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0xa),_0x2fcaf6=_0x48ade1[_0xe34a02(0x111)](_0x486d37+0xc),_0x5dfbfb=_0x48ade1[_0xe34a02(0x111)](_0x486d37+0x10),_0x57453d=_0x486d37;const _0x2f8cac=_0x486d37-0x14,_0x205d72=_0x2f8cac>=0x0&&_0x48ade1['readUInt32LE'](_0x2f8cac)===0x7064b50,_0x16b3f5=[0x4,0x6,0x8,0xa][_0xe34a02(0x108)](_0x4ec568=>_0x48ade1['readUInt16LE'](_0x486d37+_0x4ec568)===0xffff)||_0x2fcaf6===0xffffffff||_0x5dfbfb===0xffffffff;if(_0x205d72!==_0x16b3f5)throw _0x5ae612();if(_0x205d72){if(_0x48ade1[_0xe34a02(0x105)](Buffer[_0xe34a02(0xfe)]([0x50,0x4b,0x6,0x7]))!==_0x2f8cac)throw _0x5ae612();const _0x16fb92=_0x17eb0e=>{const _0x3f1b1b=_0xe34a02,_0x4a98ba=Number(_0x48ade1[_0x3f1b1b(0xde)](_0x17eb0e));if(!Number['isSafeInteger'](_0x4a98ba))throw _0x5ae612();return _0x4a98ba;};_0x57453d=_0x16fb92(_0x2f8cac+0x8);if(_0x48ade1[_0xe34a02(0x111)](_0x2f8cac+0x4)!==0x0||_0x48ade1[_0xe34a02(0x111)](_0x2f8cac+0x10)!==0x1||_0x57453d>_0x2f8cac-0x38||_0x48ade1['readUInt32LE'](_0x57453d)!==0x6064b50||_0x16fb92(_0x57453d+0x4)!==0x2c||_0x57453d+0x38!==_0x2f8cac||_0x48ade1['readUInt32LE'](_0x57453d+0x10)!==0x0||_0x48ade1[_0xe34a02(0x111)](_0x57453d+0x14)!==0x0)throw _0x5ae612();_0x936d95=_0x16fb92(_0x57453d+0x20),_0x2fcaf6=_0x16fb92(_0x57453d+0x28),_0x5dfbfb=_0x16fb92(_0x57453d+0x30);if(_0x16fb92(_0x57453d+0x18)!==_0x936d95)throw _0x5ae612();}else{if(_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x4)!==0x0||_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x6)!==0x0||_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x8)!==_0x936d95)throw _0x5ae612();}const _0x42e5c0=_0x28e7fb[_0xe34a02(0x137)];if(_0x5dfbfb!==_0x42e5c0||_0x936d95!==_0x28e7fb[_0xe34a02(0x15b)]||_0x5dfbfb+_0x2fcaf6!==_0x57453d)throw _0x5ae612();return _0x57453d;}function consumerEntryName(_0x40b638,_0xc7b849){const _0x48e48f=a144_0x182a22;if(_0xc7b849['extraFields'][_0x48e48f(0x1aa)](_0x3dcabb=>_0x3dcabb['id']===0x1)[_0x48e48f(0xd7)]>0x1)throw new Error(_0x48e48f(0x168));const _0x54c748=_0xc7b849,_0x29bb22=_0xc7b849[_0x48e48f(0x143)];if(!Buffer['isBuffer'](_0x54c748[_0x48e48f(0x18c)])||!Buffer[_0x48e48f(0x1af)](_0x54c748[_0x48e48f(0x184)])||!Buffer[_0x48e48f(0x1af)](_0x54c748[_0x48e48f(0x181)])||!Number[_0x48e48f(0x153)](_0x29bb22)||_0x29bb22<0x0||_0x29bb22>_0x40b638[_0x48e48f(0xd7)]-0x1e||_0x40b638[_0x48e48f(0x111)](_0x29bb22)!==0x4034b50)throw new Error(_0x48e48f(0x146));const _0x5d0c6d=_0x29bb22+0x1e+_0x40b638[_0x48e48f(0x17a)](_0x29bb22+0x1a),_0x416536=_0x5d0c6d+_0x40b638[_0x48e48f(0x17a)](_0x29bb22+0x1c)+_0xc7b849['compressedSize'];if(!Number[_0x48e48f(0x153)](_0x416536)||_0x416536>_0x40b638[_0x48e48f(0xd7)])throw new Error(_0x48e48f(0x146));if(_0x5d0c6d>_0x40b638[_0x48e48f(0xd7)]||!_0x40b638[_0x48e48f(0xe7)](_0x29bb22+0x1e,_0x5d0c6d)['equals'](_0x54c748[_0x48e48f(0x18c)]))throw new Error(_0x48e48f(0xc4));const _0x47dc24=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x47dc24[_0x48e48f(0xfb)]=_0xc7b849[_0x48e48f(0x178)],_0x47dc24[_0x48e48f(0x1b0)]=_0x54c748[_0x48e48f(0x18c)],_0x47dc24[_0x48e48f(0x1ae)]=_0x54c748[_0x48e48f(0x181)],_0x47dc24[_0x48e48f(0x11f)]=_0x54c748['extraFieldRaw'][_0x48e48f(0xd7)],_0x47dc24['readExtraFields'](zipReader(_0x54c748['extraFieldRaw'])),_0x47dc24[_0x48e48f(0x16b)](),_0x47dc24[_0x48e48f(0x190)]=_0xc7b849[_0x48e48f(0x190)],_0x47dc24[_0x48e48f(0x14e)]=_0xc7b849['externalFileAttributes'],_0x47dc24[_0x48e48f(0x103)]();const _0x50401c=_0x47dc24[_0x48e48f(0x138)]||Boolean((_0x47dc24[_0x48e48f(0x1a9)]??0x0)&0x4000),_0x3b657b=zipPaths[_0x48e48f(0x158)](_0x47dc24[_0x48e48f(0x195)]),_0x12dbf1=_0x3b657b['startsWith']('/')?_0x3b657b[_0x48e48f(0x19f)](0x1):_0x3b657b;return{'name':_0x12dbf1,'original':_0x47dc24[_0x48e48f(0x195)],'directory':_0x50401c};}export function normalizeImportFields(_0x5519ec){const _0x1286e2=a144_0x182a22;if(!_0x5519ec||(_0x5519ec['source']??_0x5519ec[_0x1286e2(0xfd)]?.['sourceType'])!==_0x1286e2(0x18f))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x1e57d2=Array[_0x1286e2(0xcc)](_0x5519ec[_0x1286e2(0x1a8)]),_0x5800d8=_0x1e57d2?_0x5519ec[_0x1286e2(0x1a8)]:_0x5519ec['properties'];if(!Array[_0x1286e2(0xcc)](_0x5800d8)||_0x5800d8['length']===0x0)throw new Error(_0x1286e2(0x100));const _0x3e1474=[],_0x3b9efc=new Set();for(const _0x15bd85 of _0x5800d8){if(_0x15bd85[_0x1286e2(0x171)]===!![])continue;let _0x197600=_0x15bd85[_0x1286e2(0x175)]??{};if(!_0x1e57d2&&typeof _0x197600===_0x1286e2(0xeb)){try{_0x197600=JSON['parse'](_0x197600);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x197600||typeof _0x197600!==_0x1286e2(0x11e)||Array[_0x1286e2(0xcc)](_0x197600))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x17d88c=_0x1e57d2?_0x15bd85['name']:_0x15bd85[_0x1286e2(0x162)],_0x454abf=_0x1e57d2?_0x15bd85['doType']:_0x15bd85[_0x1286e2(0x173)]??_0x15bd85['dataType'];if(typeof _0x17d88c!==_0x1286e2(0xeb)||!_0x17d88c||typeof _0x454abf!==_0x1286e2(0xeb)||_0x3b9efc['has'](_0x17d88c))throw new Error(_0x1286e2(0xe1));if(_0x454abf[_0x1286e2(0x10c)]()==='serial_number')throw new Error(_0x1286e2(0xc5));_0x3b9efc[_0x1286e2(0xc2)](_0x17d88c);const _0x2a9f1c=_0x1e57d2?_0x15bd85:_0x197600,_0x375e05={'code':_0x17d88c,'type':_0x454abf,'required':_0x2a9f1c[_0x1286e2(0x13f)]===!![]};if(RESERVED[_0x1286e2(0x148)](_0x17d88c)||_0x2a9f1c[_0x1286e2(0xe3)]===!![]||_0x2a9f1c['autoIncrement']===!![])_0x375e05[_0x1286e2(0xe3)]=!![];_0x3e1474['push'](_0x375e05);}return _0x3e1474;}async function checkArchive(_0x42634c,_0x4b736f){await new Promise((_0x37798e,_0x4c37f4)=>{a144_0x207229['fromBuffer'](_0x42634c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x71f443,_0x2feecd)=>{const _0x344b0e=a144_0x5e9d;if(_0x71f443||!_0x2feecd){_0x4c37f4(_0x71f443??new Error(_0x344b0e(0x101)));return;}let _0x49793c;try{_0x49793c=centralDirectoryEnd(_0x42634c,_0x2feecd);}catch(_0xdaf800){_0x2feecd[_0x344b0e(0x13c)](),_0x4c37f4(_0xdaf800);return;}let _0x3d1a98=0x0,_0x4ce930=0x0,_0x3a957c=0x0,_0x1f34e1=0x0,_0x207c5b=0x0,_0x33abb1=0x0,_0x392309=0x0,_0x58d65d=0x0,_0x542756=0x0,_0x3ae962=![],_0x34f66d;const _0x174b57=new Set(),_0x20fce0=_0x13ceb7=>{const _0x12d70c=_0x344b0e;if(_0x3ae962)return;_0x3ae962=!![],_0x34f66d?.['destroy'](),_0x2feecd[_0x12d70c(0x13c)](),_0x4c37f4(_0x13ceb7);},_0x425f34=(_0x440a54,_0x51c2ab)=>{const _0x1ac0a4=_0x344b0e;if(!_0x440a54||!/^\d+$/[_0x1ac0a4(0x107)](_0x440a54))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x5eef23=Number(_0x440a54);if(!Number[_0x1ac0a4(0x153)](_0x5eef23)||_0x5eef23<0x1||_0x5eef23>_0x51c2ab)throw new Error(_0x1ac0a4(0x120)+_0x51c2ab+'.');return _0x5eef23;},_0x3ce588=(_0x2acc2d,_0x3a0317=MAX_XML_COLUMNS)=>{const _0x4e9410=_0x344b0e,_0x43cae9=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x4e9410(0x196)](_0x2acc2d);if(!_0x43cae9)throw new Error(_0x4e9410(0x176));let _0x20bda4=0x0;for(const _0x532e7f of _0x43cae9[0x1])_0x20bda4=_0x20bda4*0x1a+_0x532e7f[_0x4e9410(0xff)](0x0)-0x40;if(_0x20bda4>_0x3a0317)throw new Error('Worksheet\x20exceeds\x20'+_0x3a0317+_0x4e9410(0x170));return{'row':_0x425f34(_0x43cae9[0x2],MAX_XML_ROWS),'col':_0x20bda4};},_0x33641f=_0x17b2b3=>{const _0x3bd266=_0x344b0e;if(_0x17b2b3['name']===_0x3bd266(0x15a)||_0x17b2b3[_0x3bd266(0x192)]===_0x3bd266(0x129))return;for(const _0x35fe0a of _0x17b2b3[_0x3bd266(0xef)]){if(!ABSOLUTE_NAME_RANGE[_0x3bd266(0x107)](_0x35fe0a[_0x3bd266(0x144)]('!')[_0x3bd266(0xd0)]()||''))continue;const _0x3e2add=nameCoordinates[_0x3bd266(0xfc)](_0x35fe0a),_0x2d81fa=_0x3bd266(0xd3)in _0x3e2add,_0x369422=_0x2d81fa?[_0x3e2add[_0x3bd266(0xd3)],_0x3e2add[_0x3bd266(0x102)]]:[_0x3e2add[_0x3bd266(0x193)]],_0x3b97ba=_0x2d81fa?[_0x3e2add[_0x3bd266(0x11d)],_0x3e2add[_0x3bd266(0x19b)]]:[_0x3e2add[_0x3bd266(0x163)]],_0x59b957=(_0x1e721c,_0x6d0375)=>Number[_0x3bd266(0x153)](_0x1e721c)&&_0x1e721c>=0x1&&_0x1e721c<=_0x6d0375;if(!_0x369422[_0x3bd266(0x116)](_0x39dc8b=>_0x59b957(_0x39dc8b,MAX_XML_ROWS))||!_0x3b97ba[_0x3bd266(0x116)](_0x5c6cb0=>_0x59b957(_0x5c6cb0,MAX_XML_COLUMNS)))throw new Error(_0x3bd266(0x12c));_0x392309+=_0x2d81fa?(_0x3e2add[_0x3bd266(0x102)]-_0x3e2add[_0x3bd266(0xd3)]+0x1)*(_0x3e2add[_0x3bd266(0x19b)]-_0x3e2add[_0x3bd266(0x11d)]+0x1):0x1;if(_0x392309>MAX_ROWS)throw new Error(_0x3bd266(0x13e));}};_0x2feecd['on']('error',_0x20fce0),_0x2feecd['on'](_0x344b0e(0xf8),_0x1e24c2=>{const _0x118def=_0x344b0e;if(_0x3ae962)return;if(++_0x3a957c>0x2710||(_0x3d1a98+=_0x1e24c2[_0x118def(0xe0)])>MAX_EXPANDED){_0x20fce0(new Error(_0x118def(0x124)));return;}let _0x353c4e;try{_0x353c4e=consumerEntryName(_0x42634c,_0x1e24c2);}catch(_0x77ee42){_0x20fce0(_0x77ee42);return;}if(_0x353c4e[_0x118def(0x1a1)]){_0x2feecd[_0x118def(0x125)]();return;}const _0x1f7ae1=_0x353c4e[_0x118def(0x192)];if(_0x4b736f&&(_0x1f7ae1!==_0x353c4e[_0x118def(0x17e)]||_0x174b57[_0x118def(0x148)](_0x1f7ae1)||_0x1f7ae1[_0x118def(0x11c)]('/')||_0x1f7ae1[_0x118def(0xe5)]('\x5c'))){_0x20fce0(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x1f7ae1!==_0x353c4e['original']&&(_0x1f7ae1==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x1f7ae1))){_0x20fce0(new Error(_0x118def(0x117)));return;}const _0x561c3d=_0x1f7ae1===_0x118def(0x194);if(_0x561c3d&&_0x174b57[_0x118def(0x148)](_0x1f7ae1)){_0x20fce0(new Error(_0x118def(0x12f)));return;}_0x174b57[_0x118def(0xc2)](_0x1f7ae1);const _0x1794c3=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x118def(0x107)](_0x1f7ae1);if(_0x1794c3&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x118def(0x107)](_0x1f7ae1)){_0x20fce0(new Error(_0x118def(0x110)));return;}_0x2feecd[_0x118def(0x179)](_0x1e24c2,(_0x4ff45e,_0x36aa5f)=>{const _0x2643f5=_0x118def;if(_0x3ae962){_0x36aa5f?.[_0x2643f5(0x152)]();return;}if(_0x4ff45e||!_0x36aa5f){_0x20fce0(_0x4ff45e??new Error(_0x2643f5(0x199)));return;}_0x34f66d=_0x36aa5f;const _0x443ed1=_0x4b736f?[]:undefined,_0x154ced=_0x4b736f&&/[.](xml|rels)$/['test'](_0x1f7ae1)?new StringDecoder(_0x2643f5(0x150)):undefined,_0x1a451e=_0x154ced?new SaxesParser({'xmlns':![]}):undefined,_0x56518a=()=>{const _0x496413=_0x2643f5;if(++_0x542756>0x1e8480)throw Error(_0x496413(0xe8));};_0x1a451e?.['on'](_0x2643f5(0x16f),()=>{const _0x4339d0=_0x2643f5;throw Error(_0x4339d0(0xe9));}),_0x1a451e?.['on']('opentag',()=>{const _0x5e28a5=_0x2643f5;_0x56518a();if(++_0x58d65d>0x7a120)throw Error(_0x5e28a5(0xe2));}),_0x1a451e?.['on'](_0x2643f5(0x115),_0x56518a),_0x1a451e?.['on'](_0x2643f5(0xd2),_0x56518a),_0x1a451e?.['on'](_0x2643f5(0xd5),_0x3ff7fc=>{throw _0x3ff7fc;});const _0x4419a8=_0x1794c3||_0x561c3d?new StringDecoder(_0x2643f5(0x150)):undefined,_0x2528c6=_0x1794c3||_0x561c3d?new SaxesParser({'xmlns':![]}):undefined;let _0x443ecc,_0x1e67e2=0x0,_0x440105=0x0,_0x387400,_0x3d2bcb,_0x57ee3c=![],_0x463f40=![],_0x49619f,_0x46f60c,_0x7fce0c,_0x49f8d4=![];const _0x34a8b5=[],_0x394e8b=new Set();let _0x257ef4;const _0x2284f9=(_0x3c93b3,_0x487c45=0x0)=>{const _0x5afe40=_0x2643f5;_0x207c5b+=_0x487c45+Math[_0x5afe40(0x12b)](0x0,_0x3c93b3-_0x440105),_0x440105=Math['max'](_0x440105,_0x3c93b3);if(_0x207c5b>MAX_ROWS)throw new Error(_0x5afe40(0x114));};_0x2528c6?.['on'](_0x2643f5(0x104),_0x1ed781=>{const _0x29f63e=_0x2643f5;if(_0x561c3d){if(!_0x443ecc&&_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0x113))_0x443ecc=new DefinedNameXform();_0x443ecc?.['parseOpen'](_0x1ed781);return;}if(_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0x193)){if(_0x463f40)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x425f34(_0x1ed781[_0x29f63e(0x180)]['r'],MAX_XML_ROWS),_0x387400=undefined,_0x7fce0c=undefined,_0x49f8d4=![];}else{if(_0x1ed781['name']==='c'){if(_0x463f40)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x463f40=!![],_0x57ee3c=Boolean(Number[_0x29f63e(0x174)](_0x1ed781['attributes']['s']??'',0xa)),_0x257ef4=undefined,_0x49619f=_0x1ed781[_0x29f63e(0x180)]['r']||undefined,_0x46f60c=_0x49619f?_0x3ce588(_0x49619f):undefined;if(_0x46f60c)_0x3d2bcb=_0x46f60c;else _0x3d2bcb=_0x387400?{'row':_0x387400[_0x29f63e(0x193)],'col':_0x387400[_0x29f63e(0x163)]+0x1}:undefined;}else{if(_0x463f40&&['f','v','t']['includes'](_0x1ed781['name'])){_0x257ef4=_0x1ed781[_0x29f63e(0x192)];if(_0x1ed781['name']==='f'&&_0x1ed781[_0x29f63e(0x180)]['t'])_0x57ee3c=!![];}else{if(_0x463f40&&_0x1ed781['name']==='r')_0x57ee3c=!![];else{if(_0x1ed781['name']===_0x29f63e(0xf4)){const _0x16d5df=_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0x127)];if(!_0x16d5df)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x41e3db=_0x16d5df[_0x29f63e(0x144)](':');if(_0x41e3db[_0x29f63e(0xd7)]>0x2)throw new Error(_0x29f63e(0x18e));const _0x34d19e=_0x3ce588(_0x41e3db[0x0]),_0x1ee9c4=_0x3ce588(_0x41e3db[0x1]??_0x41e3db[0x0]);_0x394e8b[_0x29f63e(0xc2)](_0x16d5df),_0x2284f9(Math[_0x29f63e(0x12b)](_0x34d19e['col'],_0x1ee9c4['col']),0x1);}else{if(_0x1ed781['name']===_0x29f63e(0x163)){const _0xfce66c=_0x425f34(_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0xee)],0x4000),_0x174d04=_0x425f34(_0x1ed781['attributes'][_0x29f63e(0x12b)],0x4000);if(_0xfce66c>_0x174d04)throw new Error(_0x29f63e(0x1a0));_0x2284f9(_0x174d04,0x1);}else{if(_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0xea)){const _0x566794=_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0x127)];if(!_0x566794)throw new Error(_0x29f63e(0x14c));const _0xc3b541=_0x566794['split'](':');if(_0xc3b541['length']>0x2)throw new Error(_0x29f63e(0x14c));const _0xbddad9=_0x3ce588(_0xc3b541[0x0]),_0xad37d4=_0x3ce588(_0xc3b541[0x1]??_0xc3b541[0x0]);_0x2284f9(Math[_0x29f63e(0x12b)](_0xbddad9[_0x29f63e(0x163)],_0xad37d4[_0x29f63e(0x163)]));const _0x4cfe22=(Math[_0x29f63e(0xdb)](_0xad37d4[_0x29f63e(0x193)]-_0xbddad9[_0x29f63e(0x193)])+0x1)*(Math[_0x29f63e(0xdb)](_0xad37d4['col']-_0xbddad9[_0x29f63e(0x163)])+0x1);_0x1f34e1+=_0x4cfe22+_0x1e67e2++;if(_0x1f34e1>MAX_ROWS)throw new Error(_0x29f63e(0x17f));}}}}}}}}),_0x2528c6?.['on']('text',_0x5a4cd0=>{const _0x1de8d9=_0x2643f5;if(_0x561c3d){_0x443ecc?.[_0x1de8d9(0x147)](_0x5a4cd0);return;}if(_0x463f40&&_0x257ef4&&_0x5a4cd0)_0x57ee3c=!![];}),_0x2528c6?.['on']('closetag',_0x17f81d=>{const _0x539c0c=_0x2643f5;if(_0x561c3d){_0x443ecc&&!_0x443ecc[_0x539c0c(0xd4)]()&&(_0x33641f(_0x443ecc[_0x539c0c(0x19a)]),_0x443ecc=undefined);return;}if(_0x17f81d[_0x539c0c(0x192)]==='c'){!_0x57ee3c&&_0x49619f&&!_0x7fce0c&&(_0x7fce0c={'before':_0x387400,'cells':[]});if(_0x7fce0c){if(++_0x33abb1>0xf4240)throw new Error(_0x539c0c(0x19c));_0x7fce0c[_0x539c0c(0x16c)][_0x539c0c(0x136)]({'reference':_0x49619f,'address':_0x46f60c,'materialized':_0x57ee3c});if(!_0x49619f&&_0x57ee3c)_0x49f8d4=!![];}if(_0x57ee3c){if(!_0x7fce0c||_0x49619f){if(!_0x3d2bcb)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x3d2bcb[_0x539c0c(0x163)]>MAX_XML_COLUMNS)throw new Error(_0x539c0c(0xfa));_0x2284f9(_0x3d2bcb[_0x539c0c(0x163)]);}_0x387400=_0x3d2bcb;}_0x463f40=![],_0x3d2bcb=undefined,_0x49619f=undefined,_0x46f60c=undefined,_0x257ef4=undefined;}else{if(_0x17f81d[_0x539c0c(0x192)]===_0x539c0c(0x193)){if(_0x7fce0c&&_0x49f8d4)_0x34a8b5['push'](_0x7fce0c);_0x7fce0c=undefined,_0x49f8d4=![];}else{if(_0x17f81d['name']===_0x257ef4)_0x257ef4=undefined;}}}),_0x2528c6?.['on'](_0x2643f5(0xd5),_0x485c92=>{const _0x424312=_0x2643f5;throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x485c92[_0x424312(0x16a)]);}),_0x36aa5f['on']('error',_0x20fce0),_0x36aa5f['on'](_0x2643f5(0x182),_0x4622d5=>{const _0x5958e5=_0x2643f5;if(_0x3ae962)return;_0x4ce930+=_0x4622d5[_0x5958e5(0xd7)],_0x443ed1?.[_0x5958e5(0x136)](_0x4622d5);if(_0x4ce930>MAX_EXPANDED){_0x20fce0(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x1a451e&&_0x154ced)_0x1a451e[_0x5958e5(0x10b)](_0x154ced[_0x5958e5(0x10b)](_0x4622d5));if(_0x2528c6&&_0x4419a8)_0x2528c6['write'](_0x4419a8['write'](_0x4622d5));}catch(_0x2f9620){_0x20fce0(_0x2f9620 instanceof Error?_0x2f9620:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x36aa5f['on'](_0x2643f5(0x119),()=>{const _0x16ff9d=_0x2643f5;if(_0x3ae962)return;try{if(_0x1a451e&&_0x154ced)_0x1a451e[_0x16ff9d(0x10b)](_0x154ced['end']())['close']();if(_0x2528c6&&_0x4419a8)_0x2528c6[_0x16ff9d(0x10b)](_0x4419a8['end']())[_0x16ff9d(0x13c)]();for(const _0x5cd88a of _0x34a8b5){let _0x32a23f=_0x5cd88a[_0x16ff9d(0x18a)];for(const _0x411315 of _0x5cd88a['cells']){if(!_0x411315[_0x16ff9d(0x1a3)]&&!(_0x411315['reference']&&_0x394e8b[_0x16ff9d(0x148)](_0x411315[_0x16ff9d(0x109)])))continue;const _0xb6e186=_0x411315[_0x16ff9d(0x17c)]??(_0x32a23f?{'row':_0x32a23f[_0x16ff9d(0x193)],'col':_0x32a23f['col']+0x1}:undefined);if(!_0xb6e186)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0xb6e186[_0x16ff9d(0x163)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x2284f9(_0xb6e186[_0x16ff9d(0x163)]),_0x32a23f=_0xb6e186;}}_0x34a8b5[_0x16ff9d(0xd7)]=0x0,_0x394e8b['clear']();}catch(_0x1d60d6){_0x20fce0(_0x1d60d6 instanceof Error?_0x1d60d6:new Error(_0x16ff9d(0xda)));return;}if(_0x443ed1)_0x4b736f[_0x16ff9d(0xf5)](_0x1f7ae1,Buffer['concat'](_0x443ed1));_0x34f66d=undefined,_0x2feecd[_0x16ff9d(0x125)]();});});}),_0x2feecd['on'](_0x344b0e(0x119),()=>{const _0x24b5a3=_0x344b0e;if(_0x3ae962)return;if(_0x2feecd[_0x24b5a3(0x137)]!==_0x49793c){_0x4c37f4(new Error(_0x24b5a3(0x10d)));return;}if(!_0x174b57[_0x24b5a3(0x148)]('[Content_Types].xml')||!_0x174b57[_0x24b5a3(0x148)]('xl/workbook.xml'))_0x4c37f4(new Error(_0x24b5a3(0xf0)));else _0x37798e();}),_0x2feecd[_0x344b0e(0x125)]();});});}function valueOf(_0x4c335f){const _0x49df75=a144_0x182a22,_0xe4462f=_0x4c335f['value'];if(_0xe4462f&&typeof _0xe4462f===_0x49df75(0x11e)&&(_0x49df75(0x151)in _0xe4462f||_0x49df75(0xf3)in _0xe4462f)){if(!(_0x49df75(0xcd)in _0xe4462f)||_0xe4462f['result']===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0xe4462f[_0x49df75(0xcd)];}return _0xe4462f;}function convert(_0xb8efe9,_0x43e82d){const _0x24e2e3=a144_0x182a22;if(_0xb8efe9===null||_0xb8efe9===undefined||_0xb8efe9===''){if(_0x43e82d[_0x24e2e3(0x13f)]&&!_0x43e82d[_0x24e2e3(0xe3)])throw new Error(_0x24e2e3(0xf9));return null;}if(typeof _0xb8efe9===_0x24e2e3(0xeb)&&Buffer[_0x24e2e3(0x154)](_0xb8efe9,_0x24e2e3(0x150))>MAX_CELL)throw new Error(_0x24e2e3(0x133));switch(_0x43e82d[_0x24e2e3(0x173)][_0x24e2e3(0x10c)]()){case _0x24e2e3(0xeb):case'text':case'textarea':if(typeof _0xb8efe9!=='string')throw new Error(_0x24e2e3(0x10f));return _0xb8efe9;case _0x24e2e3(0x132):case _0x24e2e3(0x13b):case _0x24e2e3(0xc0):if(typeof _0xb8efe9!=='number'||!Number[_0x24e2e3(0x18d)](_0xb8efe9)||Math[_0x24e2e3(0xdb)](_0xb8efe9)>Number['MAX_SAFE_INTEGER']||_0x43e82d['type'][_0x24e2e3(0x10c)]()===_0x24e2e3(0xc0)&&!Number[_0x24e2e3(0xc8)](_0xb8efe9))throw new Error(_0x24e2e3(0x19d));return _0xb8efe9;case _0x24e2e3(0x16d):if(typeof _0xb8efe9!==_0x24e2e3(0x16d))throw new Error(_0x24e2e3(0x139));return _0xb8efe9;case _0x24e2e3(0x1a5):case'datetime':if(!(_0xb8efe9 instanceof Date)||!Number[_0x24e2e3(0x18d)](_0xb8efe9['getTime']()))throw new Error(_0x24e2e3(0x15d));return _0xb8efe9[_0x24e2e3(0xcf)]();default:throw new Error(_0x24e2e3(0x164)+_0x43e82d['type']+'.');}}function a144_0x8f2d(){const _0x572132=['Image\x20XML\x20event\x20budget\x20exceeded.','XML\x20DTD/entities\x20are\x20not\x20supported.','mergeCell','string','22010npgQEU','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','min','ranges','File\x20is\x20not\x20an\x20XLSX\x20workbook.','nativeCell','textarea','sharedFormula','hyperlink','set','exceljs/lib/xlsx/xform/book/defined-name-xform.js','XLSX\x20file\x20exceeds\x2020\x20MB.','entry','Required\x20value\x20is\x20missing.','Worksheet\x20exceeds\x2016384\x20columns.','bitFlag','decodeEx','dataset','from','charCodeAt','Dataset\x20field\x20metadata\x20is\x20missing.','Invalid\x20XLSX\x20archive.','bottom','processAttributes','opentag','lastIndexOf','getRow','test','some','reference','10173gVLYCa','write','toLowerCase','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','imageFields','Expected\x20a\x20text\x20cell.','Non-canonical\x20worksheet\x20ZIP\x20entry.','readUInt32LE','Requested\x20worksheet\x20does\x20not\x20exist.','definedName','Worksheet\x20column\x20objects\x20exceed\x20100000.','text','every','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','extname','end','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','jszip','startsWith','left','object','extraFieldsLength','Worksheet\x20coordinate\x20exceeds\x20','contentHash','Merged\x20cells\x20are\x20not\x20supported.','image/jpeg','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','readEntry','72TqvoYh','ref','dataset-import/','_xlnm.Print_Titles','Invalid\x20ZIP\x20central\x20directory\x20layout.','max','Invalid\x20defined\x20name\x20coordinate.','Workbook','Missing\x20image\x20media:\x20','Duplicate\x20workbook\x20ZIP\x20entry.','./utils','entries','number','Cell\x20exceeds\x2064\x20KB.','Duplicate\x20dataset\x20field\x20codes.','./utf8','push','readEntryCursor','dir','Expected\x20a\x20boolean\x20cell.','./reader/readerFor','decimal','close','eachCell','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','required','map','datetime','merges','relativeOffsetOfLocalHeader','split','jpg','Invalid\x20ZIP\x20local\x20file\x20header.','parseText','has','errors','332172cAVCgX','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20worksheet\x20merge\x20reference.','477TvKMyL','externalFileAttributes','hidden','utf8','formula','destroy','isSafeInteger','byteLength','batchSize','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','modifierName','resolve','trim','_xlnm.Print_Area','entryCount','exceljs/lib/utils/col-cache.js','Expected\x20an\x20Excel\x20date\x20cell.','appCode','getCell','worksheets','media','code','col','Unsupported\x20field\x20type:\x20','get','Unknown\x20or\x20generated\x20mapping\x20field:\x20','update','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','headerRow','message','handleUTF8','cells','boolean','sheet','doctype','\x20columns.','deleted','size','type','parseInt','extend','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','.xlsx','generalPurposeBitFlag','openReadStream','readUInt16LE','creatorId','address','hiddenRow','original','Worksheet\x20merge\x20work\x20exceeds\x20100000.','attributes','fileCommentRaw','data','localeCompare','extraFieldRaw','upload','file','mapping','datasetId','10856615ktfhEj','before','stringify','fileNameRaw','isFinite','Invalid\x20worksheet\x20hyperlink\x20reference.','METADATA','versionMadeBy','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','name','row','xl/workbook.xml','fileNameStr','exec','xlsx','hex','Invalid\x20XLSX\x20entry.','model','right','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','tenantCode','slice','Invalid\x20worksheet\x20column\x20range.','directory','value','materialized','exceljs','date','172bzIdmb','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','fields','unixPermissions','filter','isFile','modifierId','rows','fileComment','isBuffer','fileName','columnCount','2036408WSMvxj','create','integer','7LxBRSW','add','Duplicate\x20mapping\x20target:\x20','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','235058vQiBpb','values','isInteger','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','Required\x20image\x20value\x20is\x20missing.','32365AsFRRZ','isArray','result','find','getTime','pop','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','closetag','top','parseClose','error','Unknown\x20Excel\x20header:\x20','length','Duplicate\x20header:\x20','rowCount','Invalid\x20worksheet\x20XML.','abs','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Required\x20field\x20is\x20not\x20mapped:\x20','readBigUInt64LE','digest','uncompressedSize','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Image\x20XML\x20node\x20budget\x20exceeded.','generated','image','includes','parserVersion','subarray'];a144_0x8f2d=function(){return _0x572132;};return a144_0x8f2d();}export async function buildExcelManifest(_0x23e156){const _0x3acd7e=a144_0x182a22,_0x34e273=_0x23e156[_0x3acd7e(0x169)]??0x1;if(!Number[_0x3acd7e(0xc8)](_0x34e273)||_0x34e273<0x1||_0x34e273>MAX_ROWS)throw new Error(_0x3acd7e(0xd1));if(_0x23e156[_0x3acd7e(0x155)]!==undefined&&(!Number['isInteger'](_0x23e156[_0x3acd7e(0x155)])||_0x23e156['batchSize']<0x1||_0x23e156[_0x3acd7e(0x155)]>0x3e8))throw new Error(_0x3acd7e(0x1a7));if(a144_0x3425f4[_0x3acd7e(0x118)](_0x23e156['file'])[_0x3acd7e(0x10c)]()!==_0x3acd7e(0x177))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x153647=await stat(_0x23e156[_0x3acd7e(0x186)]);if(!_0x153647[_0x3acd7e(0x1ab)]()||_0x153647['size']>MAX_FILE)throw new Error(_0x3acd7e(0x11a));const _0x1c1a84=await readFile(_0x23e156[_0x3acd7e(0x186)]);if(_0x1c1a84[_0x3acd7e(0xd7)]>MAX_FILE)throw new Error(_0x3acd7e(0xf7));const _0x3b0c2a=_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0x108)](_0x2cc0d9=>isImageContainer(_0x2cc0d9['type'])&&Object[_0x3acd7e(0xc7)](_0x23e156[_0x3acd7e(0x187)])[_0x3acd7e(0xe5)](_0x2cc0d9['code']))?new Map():undefined;await checkArchive(_0x1c1a84,_0x3b0c2a);const _0x507498=new a144_0x579a8e[(_0x3acd7e(0x12d))]();await _0x507498[_0x3acd7e(0x197)]['load'](_0x1c1a84,{'ignoreNodes':['dataValidations']});const _0x525f16=_0x23e156[_0x3acd7e(0x16e)];let _0x16e386;if(_0x525f16===undefined)_0x16e386=_0x507498[_0x3acd7e(0x160)][0x0];else{if(typeof _0x525f16===_0x3acd7e(0xeb)&&_0x507498[_0x3acd7e(0x160)][_0x3acd7e(0x108)](_0x18f199=>_0x18f199['name']===_0x525f16))_0x16e386=_0x507498['worksheets'][_0x3acd7e(0xce)](_0x55b1ef=>_0x55b1ef[_0x3acd7e(0x192)]===_0x525f16);else{if(typeof _0x525f16===_0x3acd7e(0x132)||/^\d+$/[_0x3acd7e(0x107)](_0x525f16)){const _0xbb05fb=Number(_0x525f16);if(!Number[_0x3acd7e(0xc8)](_0xbb05fb)||_0xbb05fb<0x1)throw new Error(_0x3acd7e(0x14b));_0x16e386=_0x507498[_0x3acd7e(0x160)][_0xbb05fb-0x1];}else _0x16e386=_0x507498['worksheets'][_0x3acd7e(0xce)](_0x3d33a3=>_0x3d33a3['name']===_0x525f16);}}if(!_0x16e386)throw new Error(_0x3acd7e(0x112));if(_0x16e386[_0x3acd7e(0xd9)]>MAX_ROWS||_0x16e386[_0x3acd7e(0x1b1)]>MAX_COLUMNS)throw new Error(_0x3acd7e(0xdc));if((_0x16e386['model'][_0x3acd7e(0x142)]??[])[_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x122));const _0x34a369=new Map();_0x16e386[_0x3acd7e(0x106)](_0x34e273)['eachCell']((_0x46538d,_0x55ffb2)=>{const _0x4b19c1=_0x3acd7e,_0x3351bf=valueOf(_0x46538d);if(typeof _0x3351bf!==_0x4b19c1(0xeb)||!_0x3351bf[_0x4b19c1(0x159)]()||Buffer['byteLength'](_0x3351bf)>MAX_CELL)throw new Error(_0x4b19c1(0xed));if(_0x34a369[_0x4b19c1(0x148)](_0x3351bf))throw new Error(_0x4b19c1(0xd8)+_0x3351bf+'.');_0x34a369[_0x4b19c1(0xf5)](_0x3351bf,_0x55ffb2);});const _0x212054=Object[_0x3acd7e(0x131)](_0x23e156[_0x3acd7e(0x187)]);if(!_0x212054[_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x191));const _0x1e8b58=new Map(_0x23e156[_0x3acd7e(0x1a8)]['map'](_0x39f6ec=>[_0x39f6ec[_0x3acd7e(0x162)],_0x39f6ec]));if(_0x1e8b58[_0x3acd7e(0x172)]!==_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x134));if(_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0x108)](_0x578602=>_0x578602['type'][_0x3acd7e(0x10c)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x2512c6=new Set();for(const [_0x2be918,_0x5d3441]of _0x212054){const _0x3f9e48=_0x1e8b58[_0x3acd7e(0x165)](_0x5d3441);if(!_0x34a369[_0x3acd7e(0x148)](_0x2be918))throw new Error(_0x3acd7e(0xd6)+_0x2be918+'.');if(!_0x3f9e48||RESERVED['has'](_0x5d3441)||_0x3f9e48[_0x3acd7e(0xe3)])throw new Error(_0x3acd7e(0x166)+_0x5d3441+'.');if(_0x2512c6[_0x3acd7e(0x148)](_0x5d3441))throw new Error(_0x3acd7e(0xc3)+_0x5d3441+'.');if(!TYPES[_0x3acd7e(0x148)](_0x3f9e48[_0x3acd7e(0x173)][_0x3acd7e(0x10c)]()))throw new Error(_0x3acd7e(0x164)+_0x3f9e48['type']+'.');_0x2512c6[_0x3acd7e(0xc2)](_0x5d3441);}for(const _0x1b9482 of _0x23e156['fields']){if(_0x1b9482[_0x3acd7e(0x13f)]&&!_0x1b9482[_0x3acd7e(0xe3)]&&!RESERVED[_0x3acd7e(0x148)](_0x1b9482[_0x3acd7e(0x162)])&&!_0x2512c6[_0x3acd7e(0x148)](_0x1b9482[_0x3acd7e(0x162)]))throw new Error(_0x3acd7e(0xdd)+_0x1b9482[_0x3acd7e(0x162)]+'.');}const _0x351763={'fileHash':hash(_0x1c1a84),'mappingHash':hash(JSON['stringify']([..._0x212054]['sort'](([_0x59c64b],[_0x15fab8])=>_0x59c64b[_0x3acd7e(0x183)](_0x15fab8)))),'schemaHash':hash(JSON[_0x3acd7e(0x18b)]([..._0x23e156[_0x3acd7e(0x1a8)]]['sort']((_0x57beb2,_0x1fc3a1)=>_0x57beb2['code']['localeCompare'](_0x1fc3a1[_0x3acd7e(0x162)])))),'sheet':_0x16e386[_0x3acd7e(0x192)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x109819=_0x212054[_0x3acd7e(0x1aa)](([,_0x15eead])=>isImageContainer(_0x1e8b58['get'](_0x15eead)['type'])),_0x43a3fc=_0x109819[_0x3acd7e(0x1aa)](([,_0x48338c])=>_0x1e8b58[_0x3acd7e(0x165)](_0x48338c)['type']['toLowerCase']()===_0x3acd7e(0x185))[_0x3acd7e(0x140)](([,_0x4e541b])=>_0x4e541b);if(_0x43a3fc['length'])_0x351763['uploadFields']=_0x43a3fc;const _0x43c0a3=_0x3b0c2a?resolveWorksheetImages(_0x3b0c2a,_0x16e386[_0x3acd7e(0x192)],new Set(_0x109819['map'](([_0x581114])=>_0x34a369[_0x3acd7e(0x165)](_0x581114)))):[],_0x35be11=new Map();for(const _0x4b346f of _0x43c0a3){const _0x4799e9=_0x4b346f[_0x3acd7e(0x193)]+':'+_0x4b346f[_0x3acd7e(0x163)],_0x207616=_0x35be11['get'](_0x4799e9)??[];_0x207616[_0x3acd7e(0x136)](_0x4b346f),_0x35be11[_0x3acd7e(0xf5)](_0x4799e9,_0x207616);}const _0x3717d2=new Map();let _0x3430f2=0x0;_0x109819[_0x3acd7e(0xd7)]&&(_0x351763[_0x3acd7e(0x10e)]=_0x109819['map'](([,_0x3010f3])=>_0x3010f3),_0x351763['imageCells']=[],_0x351763[_0x3acd7e(0xe6)]=0x1,_0x351763[_0x3acd7e(0x161)]=[]);const _0x5e9fda=Math['max'](0x0,..._0x43c0a3['map'](_0xd33af5=>_0xd33af5[_0x3acd7e(0x193)]));let _0x4219aa=0x0;const _0x4ca81f=new Set(_0x212054[_0x3acd7e(0x140)](([_0x4c7a02])=>_0x34a369['get'](_0x4c7a02)));for(let _0x1cbf7f=_0x34e273+0x1;_0x1cbf7f<=Math[_0x3acd7e(0x12b)](_0x16e386[_0x3acd7e(0xd9)],_0x5e9fda);_0x1cbf7f++){const _0x42c04f=_0x16e386[_0x3acd7e(0x106)](_0x1cbf7f);if(_0x42c04f[_0x3acd7e(0x14f)]||_0x43c0a3[_0x3acd7e(0x108)](_0x919bb8=>_0x919bb8[_0x3acd7e(0x193)]===_0x1cbf7f&&_0x919bb8[_0x3acd7e(0x17d)]))_0x4219aa++;let _0xd21a05=_0x43c0a3[_0x3acd7e(0x108)](_0x14c61e=>_0x14c61e[_0x3acd7e(0x193)]===_0x1cbf7f);_0x42c04f[_0x3acd7e(0x13d)](_0x2e0dcc=>{const _0x4eb3dd=_0x3acd7e;if(_0x2e0dcc[_0x4eb3dd(0x1a2)]!==null&&_0x2e0dcc[_0x4eb3dd(0x1a2)]!==undefined&&_0x2e0dcc[_0x4eb3dd(0x1a2)]!=='')_0xd21a05=!![];});if(!_0xd21a05){_0x351763['emptyRows'][_0x3acd7e(0x136)](_0x1cbf7f);continue;}const _0x4b502e=Object[_0x3acd7e(0x1b3)](null);_0x42c04f['eachCell']((_0x1e2b74,_0x1497fc)=>{const _0x394b47=_0x3acd7e;if(_0x4ca81f[_0x394b47(0x148)](_0x1497fc))return;try{const _0x240dfa=valueOf(_0x1e2b74);if(typeof _0x240dfa==='string'&&Buffer['byteLength'](_0x240dfa,_0x394b47(0x150))>MAX_CELL)throw new Error(_0x394b47(0x133));}catch(_0x49180d){_0x351763[_0x394b47(0x149)][_0x394b47(0x136)]({'rowNumber':_0x1cbf7f,'field':_0x1e2b74[_0x394b47(0x17c)],'message':_0x49180d[_0x394b47(0x16a)]});}});for(const [_0x219c02,_0x19464c]of _0x212054){try{const _0xf0f632=_0x42c04f[_0x3acd7e(0x15f)](_0x34a369[_0x3acd7e(0x165)](_0x219c02)),_0x4eb4db=_0x1e8b58[_0x3acd7e(0x165)](_0x19464c);if(!isImageContainer(_0x4eb4db['type'])){_0x4b502e[_0x19464c]=convert(valueOf(_0xf0f632),_0x4eb4db);continue;}const _0x158a53=_0x35be11['get'](_0x1cbf7f+':'+_0x34a369[_0x3acd7e(0x165)](_0x219c02))??[];if(_0x158a53[_0x3acd7e(0x108)](_0x469889=>_0x469889[_0x3acd7e(0xd5)]))throw Error(_0x158a53['find'](_0x1dc5ab=>_0x1dc5ab[_0x3acd7e(0xd5)])[_0x3acd7e(0xd5)]);if(_0xf0f632[_0x3acd7e(0x1a2)]!=null&&_0xf0f632[_0x3acd7e(0x1a2)]!==''&&!_0x158a53[_0x3acd7e(0x108)](_0x104160=>_0x104160[_0x3acd7e(0xf1)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x1a27a9=[];for(const _0xf88a85 of _0x158a53)for(const _0x58df77 of _0xf88a85[_0x3acd7e(0x161)]){const _0x5b3484=_0x3b0c2a[_0x3acd7e(0x165)](_0x58df77);if(!_0x5b3484)throw Error(_0x3acd7e(0x12e)+_0x58df77+'.');const _0x19501c=hash(_0x5b3484),_0x418d77=_0x3717d2[_0x3acd7e(0x165)](_0x19501c)??validateImageBytes(_0x5b3484);if(!_0x3717d2[_0x3acd7e(0x148)](_0x418d77[_0x3acd7e(0x121)])){_0x3430f2+=_0x418d77[_0x3acd7e(0x172)];if(_0x3430f2>0x32*0x400*0x400)throw Error(_0x3acd7e(0xc9));_0x3717d2['set'](_0x418d77[_0x3acd7e(0x121)],_0x418d77);}_0x1a27a9[_0x3acd7e(0x136)](_0x418d77[_0x3acd7e(0x121)]);}if(!_0x1a27a9[_0x3acd7e(0xd7)]&&_0x4eb4db['required'])throw Error(_0x3acd7e(0xca));if(_0x1a27a9[_0x3acd7e(0xd7)])_0x351763['imageCells']['push']({'rowNumber':_0x1cbf7f,'field':_0x19464c,'hashes':_0x1a27a9});_0x4b502e[_0x19464c]=_0x1a27a9[_0x3acd7e(0x140)](_0x5eee95=>{const _0x141408=_0x3acd7e,_0x224ac3=_0x3717d2['get'](_0x5eee95),_0x5f320f=_0x224ac3['type']===_0x141408(0x123)?_0x141408(0x145):_0x224ac3['type'][_0x141408(0x19f)](0x6),_0x2c9310=_0x5eee95+'.'+_0x5f320f,_0x44f2d2=_0x141408(0x128)+'0'['repeat'](0x40)+'/'+_0x2c9310;return _0x4eb4db['type'][_0x141408(0x10c)]()===_0x141408(0x185)?{'fileName':_0x2c9310,'filePath':_0x44f2d2}:{'key':_0x44f2d2,'name':_0x2c9310,'type':_0x224ac3[_0x141408(0x173)],'size':_0x224ac3['size']};});}catch(_0x585624){_0x351763[_0x3acd7e(0x149)][_0x3acd7e(0x136)]({'rowNumber':_0x1cbf7f,'field':_0x19464c,'message':_0x585624['message']});}}_0x351763[_0x3acd7e(0x1ad)][_0x3acd7e(0x136)]({'rowNumber':_0x1cbf7f,'values':_0x4b502e});}if(_0x351763[_0x3acd7e(0x161)])_0x351763[_0x3acd7e(0x161)]=[..._0x3717d2[_0x3acd7e(0xc7)]()];if(_0x4219aa)_0x351763['warnings']['push'](_0x4219aa+_0x3acd7e(0x156));return _0x351763;}
|
|
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 a145_0xf6db(_0x2cacbc,_0x498b7e){_0x2cacbc=_0x2cacbc-0x87;const _0x54a7db=a145_0x54a7();let _0xf6db04=_0x54a7db[_0x2cacbc];return _0xf6db04;}(function(_0x5466db,_0x163456){const _0x50c3c7=a145_0xf6db,_0xbc9d8f=_0x5466db();while(!![]){try{const _0x34c15b=parseInt(_0x50c3c7(0xb8))/0x1*(parseInt(_0x50c3c7(0xaf))/0x2)+parseInt(_0x50c3c7(0xb7))/0x3+parseInt(_0x50c3c7(0x8c))/0x4+-parseInt(_0x50c3c7(0xb9))/0x5*(parseInt(_0x50c3c7(0x8b))/0x6)+parseInt(_0x50c3c7(0xa8))/0x7*(-parseInt(_0x50c3c7(0xc2))/0x8)+parseInt(_0x50c3c7(0x98))/0x9+-parseInt(_0x50c3c7(0x8f))/0xa;if(_0x34c15b===_0x163456)break;else _0xbc9d8f['push'](_0xbc9d8f['shift']());}catch(_0x407db9){_0xbc9d8f['push'](_0xbc9d8f['shift']());}}}(a145_0x54a7,0x753a6));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a145_0x54a7(){const _0x419a6d=['Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','message','7779789yrslYa','Invalid\x20GIF\x20trailer.','decode','Invalid\x20PNG\x20color/depth/interlace.','isSafeInteger','image/gif','Invalid\x20image:\x20','hex','Invalid\x20PNG\x20end.','Invalid\x20GIF\x20block.','includes','toString','Invalid\x20GIF\x20LZW\x20code\x20size.','readUInt16LE','ascii','IEND','395143GSmHuK','update','IDAT','Invalid\x20PNG\x20header.','omggif','Animated\x20PNG\x20is\x20not\x20supported.','GIF\x20frame\x20exceeds\x20canvas.','81820zmnDkt','pngjs','Truncated\x20PNG\x20data.','frameInfo','Invalid\x20PNG\x20decoded\x20scanline\x20size.','equals','height','acTL','1949151VcfxFz','11kDwXLK','65ThhZZV','width','GIF89a','Truncated\x20JPEG.','subarray','sync','Missing\x20PNG\x20data/end.','length','Missing\x20GIF\x20trailer.','88KSACrl','readUInt32BE','Truncated\x20PNG\x20chunk.','concat','jpeg-js','309300lHDjVm','3146456McLzDt','image/jpeg','from','9795070TyKKbD','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','GIF87a','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','max','Invalid\x20GIF\x20LZW\x20pixel\x20data.','ceil'];a145_0x54a7=function(){return _0x419a6d;};return a145_0x54a7();}function dimensions(_0x492466,_0xdf23f7){const _0x586cc6=a145_0xf6db;if(!Number[_0x586cc6(0x9c)](_0x492466)||!Number[_0x586cc6(0x9c)](_0xdf23f7)||_0x492466<0x1||_0xdf23f7<0x1||_0x492466*_0xdf23f7>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x4fc75d){const _0x19d38a=a145_0xf6db;let _0x3c2e7e=0xd,_0x1f4a4d=0x0,_0x4ac6f8=0x0;const _0x1b3447=_0x4fc75d['readUInt16LE'](0x6),_0x1fafb4=_0x4fc75d[_0x19d38a(0xa5)](0x8),_0x397f4d=_0x4fc75d[0xa]&0x80?0x1<<(_0x4fc75d[0xa]&0x7)+0x1:0x0,_0x226b06=_0x5ae2d9=>{if(_0x3c2e7e+_0x5ae2d9>_0x4fc75d['length'])throw Error('Truncated\x20GIF\x20data.');};_0x3c2e7e+=_0x397f4d*0x3,_0x226b06(0x0);const _0x2d5026=()=>{const _0x11df6b=_0x19d38a,_0x59db24=[];while(!![]){_0x226b06(0x1);const _0x9eabb4=_0x4fc75d[_0x3c2e7e++];if(!_0x9eabb4)break;_0x226b06(_0x9eabb4),_0x59db24['push'](_0x4fc75d[_0x11df6b(0xbd)](_0x3c2e7e,_0x3c2e7e+_0x9eabb4)),_0x3c2e7e+=_0x9eabb4;}return Buffer[_0x11df6b(0x89)](_0x59db24);};while(_0x3c2e7e<_0x4fc75d[_0x19d38a(0xc0)]){const _0x515dfa=_0x4fc75d[_0x3c2e7e++];if(_0x515dfa===0x3b){if(!_0x1f4a4d||_0x3c2e7e!==_0x4fc75d[_0x19d38a(0xc0)])throw Error(_0x19d38a(0x99));return;}if(_0x515dfa===0x21){_0x226b06(0x1),_0x3c2e7e++,_0x2d5026();continue;}if(_0x515dfa!==0x2c)throw Error(_0x19d38a(0xa1));_0x226b06(0x9);const _0x4b9ca1=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e),_0x4f8471=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x2),_0x4c887b=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x4),_0x936800=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x6),_0x363303=_0x4fc75d[_0x3c2e7e+0x8];_0x3c2e7e+=0x9,dimensions(_0x4c887b,_0x936800);if(_0x4b9ca1+_0x4c887b>_0x1b3447||_0x4f8471+_0x936800>_0x1fafb4||++_0x1f4a4d>0x2710||(_0x4ac6f8+=_0x1b3447*_0x1fafb4)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x48993b=_0x363303&0x80?0x1<<(_0x363303&0x7)+0x1:_0x397f4d;if(!_0x48993b)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x363303&0x80&&(_0x226b06(_0x48993b*0x3),_0x3c2e7e+=_0x48993b*0x3);_0x226b06(0x1);const _0x2bf8e1=_0x4fc75d[_0x3c2e7e++];if(_0x2bf8e1<0x2||_0x2bf8e1>0x8)throw Error(_0x19d38a(0xa4));const _0x194ec5=_0x2d5026(),_0xea3e5c=0x1<<_0x2bf8e1,_0x556a29=_0xea3e5c+0x1;let _0x427c3e=_0x2bf8e1+0x1,_0x38a3a7=_0x556a29+0x1,_0x255810=0x0,_0x495068=-0x1,_0x30c946=0x0,_0x5c36aa=![];const _0x30339c=new Uint32Array(0x1000),_0x4393f5=new Uint16Array(0x1000);for(let _0x1888d1=0x0;_0x1888d1<_0xea3e5c;_0x1888d1++){_0x30339c[_0x1888d1]=0x1,_0x4393f5[_0x1888d1]=_0x1888d1;}while(_0x255810+_0x427c3e<=_0x194ec5[_0x19d38a(0xc0)]*0x8){let _0x12c849=0x0;for(let _0x1d20a6=0x0;_0x1d20a6<_0x427c3e;_0x1d20a6++,_0x255810++)_0x12c849|=(_0x194ec5[_0x255810>>0x3]>>(_0x255810&0x7)&0x1)<<_0x1d20a6;if(_0x12c849===_0xea3e5c){_0x427c3e=_0x2bf8e1+0x1,_0x38a3a7=_0x556a29+0x1,_0x495068=-0x1;continue;}if(_0x12c849===_0x556a29){_0x5c36aa=!![];break;}if(_0x12c849>_0x38a3a7||_0x12c849===_0x38a3a7&&_0x495068<0x0||_0x495068<0x0&&_0x12c849>=_0xea3e5c)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x1ec8ff=_0x12c849===_0x38a3a7?_0x30339c[_0x495068]+0x1:_0x30339c[_0x12c849],_0x457710=_0x12c849===_0x38a3a7?_0x4393f5[_0x495068]:_0x4393f5[_0x12c849];if(!_0x1ec8ff||_0x457710>=_0x48993b||(_0x30c946+=_0x1ec8ff)>_0x4c887b*_0x936800)throw Error(_0x19d38a(0x94));if(_0x495068>=0x0&&_0x38a3a7<0x1000){_0x30339c[_0x38a3a7]=_0x30339c[_0x495068]+0x1,_0x4393f5[_0x38a3a7]=Math[_0x19d38a(0x93)](_0x4393f5[_0x495068],_0x457710),_0x38a3a7++;if(_0x38a3a7===0x1<<_0x427c3e&&_0x427c3e<0xc)_0x427c3e++;}_0x495068=_0x12c849;}if(!_0x5c36aa||_0x30c946!==_0x4c887b*_0x936800)throw Error(_0x19d38a(0x92));}throw Error(_0x19d38a(0xc1));}export function validateImageBytes(_0x21d733){const _0x139d51=a145_0xf6db;if(!_0x21d733[_0x139d51(0xc0)]||_0x21d733[_0x139d51(0xc0)]>0xa*0x400*0x400)throw Error(_0x139d51(0x96));let _0x3b97c7;try{if(_0x21d733['subarray'](0x0,0x8)[_0x139d51(0xb4)](Buffer[_0x139d51(0x8e)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x21d733[_0x139d51(0xc0)]<0x21||_0x21d733[_0x139d51(0xa3)]('ascii',0xc,0x10)!=='IHDR')throw Error(_0x139d51(0xab));dimensions(_0x21d733['readUInt32BE'](0x10),_0x21d733[_0x139d51(0x87)](0x14));const _0x5f1807=_0x21d733[_0x139d51(0x87)](0x10),_0x1e7950=_0x21d733[_0x139d51(0x87)](0x14),_0x3b9a6e=_0x21d733[0x18],_0x5894e5=_0x21d733[0x19],_0x50fd8c=_0x21d733[0x1c],_0x596cb6={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x5894e5];if(!_0x596cb6||![0x1,0x2,0x4,0x8,0x10][_0x139d51(0xa2)](_0x3b9a6e)||_0x50fd8c>0x1)throw Error(_0x139d51(0x9b));const _0x22213d=_0x3ddd9a=>Math[_0x139d51(0x95)](_0x3ddd9a*_0x596cb6*_0x3b9a6e/0x8)+0x1;let _0x377471=_0x22213d(_0x5f1807)*_0x1e7950;if(_0x50fd8c){_0x377471=0x0;for(const [_0x264478,_0x241687,_0x3a447a,_0x1758ce]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 _0x1fd6d0=Math[_0x139d51(0x93)](0x0,Math[_0x139d51(0x95)]((_0x5f1807-_0x264478)/_0x3a447a)),_0x3febe1=Math['max'](0x0,Math[_0x139d51(0x95)]((_0x1e7950-_0x241687)/_0x1758ce));if(_0x1fd6d0&&_0x3febe1)_0x377471+=_0x22213d(_0x1fd6d0)*_0x3febe1;}}let _0x3bf85e=0x8,_0x36d7b6=![];const _0x5a2d34=[];while(_0x3bf85e<_0x21d733[_0x139d51(0xc0)]){if(_0x3bf85e+0xc>_0x21d733[_0x139d51(0xc0)])throw Error(_0x139d51(0x88));const _0x5383c0=_0x21d733[_0x139d51(0x87)](_0x3bf85e),_0x201d37=_0x21d733[_0x139d51(0xa3)](_0x139d51(0xa6),_0x3bf85e+0x4,_0x3bf85e+0x8);if(_0x201d37===_0x139d51(0xb6))throw Error(_0x139d51(0xad));if(_0x3bf85e+_0x5383c0+0xc>_0x21d733['length'])throw Error(_0x139d51(0xb1));if(_0x201d37===_0x139d51(0xaa))_0x5a2d34['push'](_0x21d733[_0x139d51(0xbd)](_0x3bf85e+0x8,_0x3bf85e+0x8+_0x5383c0));_0x3bf85e+=_0x5383c0+0xc;if(_0x201d37===_0x139d51(0xa7)){if(_0x5383c0||_0x3bf85e!==_0x21d733[_0x139d51(0xc0)])throw Error(_0x139d51(0xa0));_0x36d7b6=!![];break;}}if(!_0x36d7b6||!_0x5a2d34[_0x139d51(0xc0)])throw Error(_0x139d51(0xbf));if(inflateSync(Buffer[_0x139d51(0x89)](_0x5a2d34),{'maxOutputLength':_0x377471+0x1})['length']!==_0x377471)throw Error(_0x139d51(0xb3));const {PNG:_0x38da8e}=require(_0x139d51(0xb0)),_0xa96440=_0x38da8e[_0x139d51(0xbe)]['read'](_0x21d733,{'checkCRC':!![]});dimensions(_0xa96440['width'],_0xa96440[_0x139d51(0xb5)]),_0x3b97c7='image/png';}else{if(_0x21d733[0x0]===0xff&&_0x21d733[0x1]===0xd8){if(_0x21d733['at'](-0x2)!==0xff||_0x21d733['at'](-0x1)!==0xd9)throw Error(_0x139d51(0xbc));const _0x45f26b=require(_0x139d51(0x8a)),_0x340376=_0x45f26b[_0x139d51(0x9a)](_0x21d733,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x340376[_0x139d51(0xba)],_0x340376['height']),_0x3b97c7=_0x139d51(0x8d);}else{if([_0x139d51(0x91),_0x139d51(0xbb)][_0x139d51(0xa2)](_0x21d733[_0x139d51(0xa3)](_0x139d51(0xa6),0x0,0x6))){if(_0x21d733[_0x139d51(0xc0)]<0xe||_0x21d733['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x21d733[_0x139d51(0xa5)](0x6),_0x21d733['readUInt16LE'](0x8)),validateGif(_0x21d733);const {GifReader:_0x11008c}=require(_0x139d51(0xac)),_0x1f9174=new _0x11008c(_0x21d733);dimensions(_0x1f9174[_0x139d51(0xba)],_0x1f9174['height']);const _0x34477f=_0x1f9174['numFrames']();if(!_0x34477f||_0x34477f>0x2710||_0x34477f*_0x1f9174['width']*_0x1f9174[_0x139d51(0xb5)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0xdd3500=new Uint8Array(_0x1f9174[_0x139d51(0xba)]*_0x1f9174[_0x139d51(0xb5)]*0x4);for(let _0x941957=0x0;_0x941957<_0x34477f;_0x941957++){const _0x52f1f5=_0x1f9174[_0x139d51(0xb2)](_0x941957);if(_0x52f1f5['x']+_0x52f1f5[_0x139d51(0xba)]>_0x1f9174[_0x139d51(0xba)]||_0x52f1f5['y']+_0x52f1f5[_0x139d51(0xb5)]>_0x1f9174['height'])throw Error(_0x139d51(0xae));_0x1f9174['decodeAndBlitFrameRGBA'](_0x941957,_0xdd3500);}_0x3b97c7=_0x139d51(0x9d);}else throw Error(_0x139d51(0x90));}}}catch(_0x89c8d5){throw Error(_0x139d51(0x9e)+_0x89c8d5[_0x139d51(0x97)]);}return{'contentHash':createHash('sha256')[_0x139d51(0xa9)](_0x21d733)['digest'](_0x139d51(0x9f)),'type':_0x3b97c7,'size':_0x21d733[_0x139d51(0xc0)],'bytes':_0x21d733};}
|
|
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_0x353b79=a146_0x2f92;(function(_0x2a6571,_0x1e1eaa){const _0x104bb8=a146_0x2f92,_0x16052e=_0x2a6571();while(!![]){try{const _0x3a505e=parseInt(_0x104bb8(0x165))/0x1+parseInt(_0x104bb8(0x103))/0x2+parseInt(_0x104bb8(0x14a))/0x3*(parseInt(_0x104bb8(0x146))/0x4)+parseInt(_0x104bb8(0x13f))/0x5+parseInt(_0x104bb8(0x130))/0x6+parseInt(_0x104bb8(0xfa))/0x7+-parseInt(_0x104bb8(0x120))/0x8*(parseInt(_0x104bb8(0x16f))/0x9);if(_0x3a505e===_0x1e1eaa)break;else _0x16052e['push'](_0x16052e['shift']());}catch(_0x58e471){_0x16052e['push'](_0x16052e['shift']());}}}(a146_0x4775,0x7c6b4));import a146_0x2b391c from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x353b79(0x136),a146_0x353b79(0xe5)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x353b79(0x176)],DRAWING_MAIN=[a146_0x353b79(0x10d),a146_0x353b79(0xd0)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a146_0x353b79(0xd8)],RICH=[a146_0x353b79(0x172)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a146_0x353b79(0x12a)],DEFAULT_NS=Object[a146_0x353b79(0x118)]([...[a146_0x353b79(0xfb),a146_0x353b79(0xd4),a146_0x353b79(0x14e),'worksheet',a146_0x353b79(0x153),a146_0x353b79(0x11c),'c','f','v',a146_0x353b79(0x116),a146_0x353b79(0xe9),a146_0x353b79(0x14f),'metadataTypes',a146_0x353b79(0x115),a146_0x353b79(0xfe),a146_0x353b79(0x12e),'bk','rc',a146_0x353b79(0x13a)][a146_0x353b79(0x13b)](_0x5192cc=>[_0x5192cc,SHEET]),...['wsDr','oneCellAnchor',a146_0x353b79(0x17e),a146_0x353b79(0x168),a146_0x353b79(0xe1),'to',a146_0x353b79(0x145),a146_0x353b79(0x17b),a146_0x353b79(0xfc),'ext',a146_0x353b79(0x10b),a146_0x353b79(0xd6),a146_0x353b79(0x144),a146_0x353b79(0x164)][a146_0x353b79(0x13b)](_0x1fcaaa=>[_0x1fcaaa,DRAWING]),...[a146_0x353b79(0x11b),'rvData','rv',a146_0x353b79(0x125),'s','k'][a146_0x353b79(0x13b)](_0x56804a=>[_0x56804a,RICH]),[a146_0x353b79(0x16c),DRAWING_MAIN],[a146_0x353b79(0x156),RICH_RELS],[a146_0x353b79(0xea),RICH_RELS],[a146_0x353b79(0x12f),PACKAGE],[a146_0x353b79(0x162),PACKAGE],[a146_0x353b79(0xff),WPS],['cellImage',WPS]]),matches=(_0xd8b9e6,_0x514c79,_0x23cadf=DEFAULT_NS[_0x514c79]??[])=>_0xd8b9e6[a146_0x353b79(0x131)]===_0x514c79&&_0x23cadf[a146_0x353b79(0x14d)](_0xd8b9e6[a146_0x353b79(0x13d)]),children=(_0x529a54,_0x3c49b8,_0x5e7e0b=DEFAULT_NS[_0x3c49b8])=>_0x529a54[a146_0x353b79(0xeb)][a146_0x353b79(0x16b)](_0x1ba5b7=>matches(_0x1ba5b7,_0x3c49b8,_0x5e7e0b)),chain=(_0x424695,..._0x266cc6)=>_0x266cc6[a146_0x353b79(0x110)]((_0x5c00e1,_0x3a9bb3)=>_0x5c00e1['flatMap'](_0x59f6e1=>children(_0x59f6e1,_0x3a9bb3)),[_0x424695]),relationshipTypes=_0x15f2be=>{const _0xd94bfc=a146_0x353b79;if([_0xd94bfc(0x147),_0xd94bfc(0xdb)][_0xd94bfc(0x14d)](_0x15f2be))return[_0xd94bfc(0x155)+_0x15f2be];if(_0x15f2be==='richValueRel')return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x15f2be===_0xd94bfc(0x150)||_0x15f2be===_0xd94bfc(0xff))return[_0xd94bfc(0x113)+_0x15f2be];return OFFICE_RELS['map'](_0x346a79=>_0x346a79+'/'+_0x15f2be);};function one(_0x2aed41,_0x1b6e70){const _0x59a203=a146_0x353b79;if(_0x2aed41[_0x59a203(0x171)]!==0x1)throw Error(_0x59a203(0xf5)+_0x1b6e70+'.');return _0x2aed41[0x0];}function integer(_0x386bb8,_0x6bec6d,_0x13923c=0x186a0){const _0x690198=a146_0x353b79;if(!_0x386bb8||!/^\d+$/['test'](_0x386bb8)||!Number['isSafeInteger'](Number(_0x386bb8))||Number(_0x386bb8)>_0x13923c)throw Error(_0x690198(0x163)+_0x6bec6d+'.');return Number(_0x386bb8);}function a146_0x4775(){const _0x4323d5=['Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Unsupported\x20metadata\x20namespace.','rvb','row','Ambiguous\x20XML\x20attribute.','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','charCodeAt','16DBLKyM','has','xl/workbook.xml','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','sheetMetadata','rvStructures','Shared\x20image\x20formulas\x20are\x20not\x20supported.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','#VALUE!','http://www.wps.cn/officeDocument/2017/etCustomData','set','MAX_SAFE_INTEGER','Missing\x20XLSX\x20part:\x20','valueMetadata','Relationships','661140ztLjBE','name','r:id','future\x20metadata\x20index','XML\x20DTD/entities\x20are\x20not\x20supported.','image\x20formula','http://schemas.openxmlformats.org/spreadsheetml/2006/main','rich\x20value\x20binding','attrs','Image\x20XML\x20node\x20budget\x20exceeded.','extLst','map','shared','uri','add','3221890rIidmB','image\x20cell\x20row','value\x20metadata\x20index','posix','Internal','cNvPr','col','16jofSIB','rdRichValue','join','Missing\x20local\x20image\x20identifier\x20value.','379047AJXNpD','round','.rels','includes','sheet','metadata','cellImage','Unsupported\x20rich\x20image\x20relation\x20namespace.','Unsupported\x20drawing\x20image.','sheetData','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','http://schemas.microsoft.com/office/2017/06/relationships/','richValueRels','error','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','doctype','defaultRowHeight','Unsupported\x20workbook\x20namespace.','_rvRel:LocalImageIdentifier','image\x20height','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','anchor\x20start\x20offset','anchor\x20start','flatMap','Relationship','Invalid\x20','blipFill','644778xrGrDr','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','test','absoluteAnchor','rich\x20structure\x20index','metadata\x20types','filter','blip','wsDr','pop','11494863OAbliL','r:embed','length','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','Value\x20metadata\x20index\x20must\x20be\x20one-based.','../','closetag','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','local','push','get','write','colOff','Missing\x20rich\x20image\x20relationship.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','twoCellAnchor','value','_rels','anchor\x20column','http://purl.oclc.org/ooxml/drawingml/main','Invalid\x20relationship\x20target:\x20','_localImage','\x20relationship\x20in\x20','sheets','metadata\x20type\x20index','nvPicPr','exec','http://schemas.openxmlformats.org/package/2006/relationships','r:link','XLRICHVALUE','rdRichValueStructure','image','utf8','replace','xl/cellimages.xml','opentag','from','slice','rich\x20value\x20index','worksheet','http://purl.oclc.org/ooxml/spreadsheetml/main','Unsupported\x20rich\x20value\x20namespace.','normalize','text','drawing','rel','children','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','anchor\x20end','toLowerCase','External\x20image\x20links\x20are\x20not\x20supported.','WPS\x20image\x20blip','Duplicate\x20mapped\x20image\x20cell.','basename','Unsupported\x20relationship\x20namespace\x20in\x20','Unsupported\x20rich\x20structure\x20namespace.','Missing\x20or\x20ambiguous\x20','anchor\x20row','isFinite','Relationship\x20target\x20escapes\x20workbook:\x20','toString','6533772GdWWqF','workbook','rowOff','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','futureMetadata','cellImages','type','xl/','Missing\x20rich\x20value.','451792CYsDIv','Unsupported\x20worksheet\x20namespace.','some','rich\x20image\x20relationship\x20index','oneCellAnchor','richValueRel','Missing\x20WPS\x20image\x20ID:\x20','/xl/cellimages.xml','pic','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','http://schemas.openxmlformats.org/drawingml/2006/main','rich\x20metadata\x20record','image\x20row\x20height\x20coordinate','reduce','startsWith','hidden\x20image\x20row','http://www.wps.cn/officeDocument/2017/relationships/','ext','metadataType','sheetFormatPr','dirname','fromEntries'];a146_0x4775=function(){return _0x4323d5;};return a146_0x4775();}function a146_0x2f92(_0x38693b,_0x44d73b){_0x38693b=_0x38693b-0xd0;const _0x47756d=a146_0x4775();let _0x2f9252=_0x47756d[_0x38693b];return _0x2f9252;}export function resolveWorksheetImages(_0xb82792,_0x20332c,_0x46aa0f){const _0x4439d3=a146_0x353b79;let _0x5f4d93=0x0,_0x1d7a9e=0x0,_0x448b9d=0x0;const _0x52142c=new Map(),_0x565ec7=_0x569df7=>{const _0x4fc0ed=a146_0x2f92;if(_0x52142c[_0x4fc0ed(0x121)](_0x569df7))return _0x52142c[_0x4fc0ed(0x179)](_0x569df7);const _0x547de4=_0xb82792[_0x4fc0ed(0x179)](_0x569df7);if(!_0x547de4)throw Error(_0x4fc0ed(0x12d)+_0x569df7+'.');const _0x4ef1f0={'name':'','uri':'','attrs':{},'children':[],'text':''},_0xe7bb59=[_0x4ef1f0],_0x1da35f=new SaxesParser({'xmlns':!![]}),_0x1fb083=()=>{if(++_0x1d7a9e>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x1da35f['on'](_0x4fc0ed(0x159),()=>{const _0x14cd49=_0x4fc0ed;throw Error(_0x14cd49(0x134));}),_0x1da35f['on'](_0x4fc0ed(0xe0),_0x150202=>{const _0x115986=_0x4fc0ed;_0x1fb083();if(++_0x5f4d93>0x7a120||_0xe7bb59[_0x115986(0x171)]>0x40)throw Error(_0x115986(0x139));const _0x160217={};for(const _0x339941 of Object['values'](_0x150202['attributes'])){const _0x5c7c5f=OFFICE_RELS[_0x115986(0x14d)](_0x339941[_0x115986(0x13d)])?'r:'+_0x339941['local']:_0x339941[_0x115986(0x13d)]?'{'+_0x339941[_0x115986(0x13d)]+'}'+_0x339941[_0x115986(0x177)]:_0x339941['local'];if(_0x5c7c5f in _0x160217)throw Error(_0x115986(0x11d));_0x160217[_0x5c7c5f]=_0x339941[_0x115986(0x17f)];}const _0x4721c6={'name':_0x150202[_0x115986(0x177)],'uri':_0x150202[_0x115986(0x13d)],'attrs':_0x160217,'children':[],'text':''};_0xe7bb59['at'](-0x1)[_0x115986(0xeb)][_0x115986(0x178)](_0x4721c6),_0xe7bb59[_0x115986(0x178)](_0x4721c6);}),_0x1da35f['on'](_0x4fc0ed(0xe8),_0x3a465c=>{const _0x4d9e32=_0x4fc0ed;_0x1fb083();const _0x35b4d9=_0xe7bb59['at'](-0x1);_0x35b4d9['text']+=_0x3a465c;if(_0x35b4d9[_0x4d9e32(0xe8)][_0x4d9e32(0x171)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x1da35f['on'](_0x4fc0ed(0x175),()=>{const _0x334488=_0x4fc0ed;_0x1fb083(),_0xe7bb59[_0x334488(0x16e)]();}),_0x1da35f['on'](_0x4fc0ed(0x157),_0x10dfa7=>{throw _0x10dfa7;}),_0x1da35f[_0x4fc0ed(0x17a)](_0x547de4[_0x4fc0ed(0xf9)](_0x4fc0ed(0xdd)))['close']();const _0x38d068=one(_0x4ef1f0['children'],_0x569df7);return _0x52142c[_0x4fc0ed(0x12b)](_0x569df7,_0x38d068),_0x38d068;},_0x1c1b97=new Map(),_0x5a7048=_0x1097eb=>{const _0x64e5ec=a146_0x2f92;if(_0x1c1b97[_0x64e5ec(0x121)](_0x1097eb))return _0x1c1b97[_0x64e5ec(0x179)](_0x1097eb);const _0x304ed1=a146_0x2b391c['posix'][_0x64e5ec(0x148)](a146_0x2b391c[_0x64e5ec(0x142)][_0x64e5ec(0x117)](_0x1097eb),_0x64e5ec(0x180),a146_0x2b391c[_0x64e5ec(0x142)][_0x64e5ec(0xf2)](_0x1097eb)+_0x64e5ec(0x14c));if(!_0xb82792[_0x64e5ec(0x121)](_0x304ed1))return[];const _0x3326cb=new Set(),_0x217ad7=_0x565ec7(_0x304ed1);if(!matches(_0x217ad7,_0x64e5ec(0x12f)))throw Error(_0x64e5ec(0xf3)+_0x304ed1+'.');const _0x2f9910=children(_0x217ad7,_0x64e5ec(0x162))[_0x64e5ec(0x13b)](_0x5baa70=>{const _0x24ebde=_0x64e5ec,{Id:_0x3b5f59,Type:_0x3f364a,Target:_0x326832,TargetMode:_0x367dc9}=_0x5baa70[_0x24ebde(0x138)];if(!_0x3b5f59||_0x3326cb[_0x24ebde(0x121)](_0x3b5f59)||!_0x3f364a)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x304ed1+'.');return _0x3326cb[_0x24ebde(0x13e)](_0x3b5f59),{'id':_0x3b5f59,'type':_0x3f364a,'target':_0x326832??'','mode':_0x367dc9};});return _0x1c1b97['set'](_0x1097eb,_0x2f9910),_0x2f9910;},_0x428b50=(_0x1dc3e5,_0x40f07e)=>{const _0x9d20f1=a146_0x2f92,{target:_0x15c725,mode:_0x27fdf8}=_0x40f07e;if(_0x27fdf8&&_0x27fdf8!==_0x9d20f1(0x143))throw Error(_0x9d20f1(0xec)+_0x1dc3e5+'.');if(!_0x15c725||_0x15c725['includes']('\x5c')||/[?#%\x00-\x20]/[_0x9d20f1(0x167)](_0x15c725)||/^[a-z][a-z0-9+.-]*:/i[_0x9d20f1(0x167)](_0x15c725)||_0x15c725[_0x9d20f1(0x111)]('//'))throw Error(_0x9d20f1(0xd1)+_0x1dc3e5+'.');const _0x4c5275=_0x15c725[_0x9d20f1(0x111)]('/')?_0x15c725[_0x9d20f1(0xe2)](0x1):a146_0x2b391c['posix'][_0x9d20f1(0xe7)](a146_0x2b391c['posix'][_0x9d20f1(0x148)](a146_0x2b391c[_0x9d20f1(0x142)][_0x9d20f1(0x117)](_0x1dc3e5),_0x15c725));if(_0x4c5275[_0x9d20f1(0x111)](_0x9d20f1(0x174))||_0x4c5275==='..'||!_0x4c5275[_0x9d20f1(0x111)](_0x9d20f1(0x101)))throw Error(_0x9d20f1(0xf8)+_0x1dc3e5+'.');return _0x4c5275;},_0x1ca1ca=(_0x2d88f7,_0x473c47,_0x2fd857)=>{const _0xf57da8=a146_0x2f92,_0x5dd9b5=_0x5a7048(_0x2d88f7)[_0xf57da8(0x16b)](_0x1eda32=>_0x1eda32['id']===_0x473c47&&relationshipTypes(_0x2fd857)['includes'](_0x1eda32[_0xf57da8(0x100)]));if(_0x5dd9b5[_0xf57da8(0x171)]!==0x1)throw Error(_0xf57da8(0xf5)+_0x2fd857+_0xf57da8(0xd3)+_0x2d88f7+'.');return _0x428b50(_0x2d88f7,_0x5dd9b5[0x0]);},_0x177f52=(_0x595d93,_0x1f3d74)=>{const _0x196aaa=a146_0x2f92,_0x31ed54=_0x5a7048(_0x595d93)[_0x196aaa(0x16b)](_0x1df4c0=>relationshipTypes(_0x1f3d74)[_0x196aaa(0x14d)](_0x1df4c0[_0x196aaa(0x100)]));if(_0x31ed54[_0x196aaa(0x171)]!==0x1)throw Error(_0x196aaa(0xf5)+_0x1f3d74+'\x20relationship\x20in\x20'+_0x595d93+'.');return _0x428b50(_0x595d93,_0x31ed54[0x0]);},_0x1db33f=_0x4439d3(0x122),_0x1c1107=_0x565ec7(_0x1db33f);if(!matches(_0x1c1107,'workbook'))throw Error(_0x4439d3(0x15b));const _0x5bfc6a=one(chain(_0x1c1107,_0x4439d3(0xd4),_0x4439d3(0x14e))[_0x4439d3(0x16b)](_0x6687bb=>_0x6687bb[_0x4439d3(0x138)][_0x4439d3(0x131)]===_0x20332c),_0x4439d3(0xe4)),_0x354dfb=_0x1ca1ca(_0x1db33f,_0x5bfc6a[_0x4439d3(0x138)][_0x4439d3(0x132)],'worksheet'),_0x275bd9=_0x565ec7(_0x354dfb);if(!matches(_0x275bd9,_0x4439d3(0xe4)))throw Error(_0x4439d3(0x104));const _0x9cacdf=chain(_0x275bd9,'sheetData',_0x4439d3(0x11c)),_0x18843a=new Map(),_0x4b7c77=new Set(_0x9cacdf[_0x4439d3(0x16b)](_0x488140=>_0x488140[_0x4439d3(0x138)]['hidden']==='1'||_0x488140['attrs']['hidden']==='true')[_0x4439d3(0x13b)](_0x423ccf=>integer(_0x423ccf[_0x4439d3(0x138)]['r'],_0x4439d3(0x112)))),_0x4ed9d7=_0x126604=>{const _0x8625fe=_0x4439d3,_0x4dcfbf=_0x126604===undefined?0xf:Number(_0x126604);if(!Number[_0x8625fe(0xf7)](_0x4dcfbf)||_0x4dcfbf<=0x0||_0x4dcfbf>409.5)throw Error(_0x8625fe(0x123));return Math[_0x8625fe(0x14b)](_0x4dcfbf*0x319c);},_0x4d9b2c=_0x4ed9d7(children(_0x275bd9,_0x4439d3(0x116))[0x0]?.['attrs'][_0x4439d3(0x15a)]);for(const _0x21c652 of _0x9cacdf)if(_0x21c652[_0x4439d3(0x138)]['ht']!==undefined)_0x18843a[_0x4439d3(0x12b)](integer(_0x21c652['attrs']['r'],_0x4439d3(0x10f)),_0x4ed9d7(_0x21c652['attrs']['ht']));const _0x3da7fc=[],_0x2491ac=_0x2646ae=>{const _0x3a4116=_0x4439d3;if(!_0x46aa0f[_0x3a4116(0x121)](_0x2646ae[_0x3a4116(0x145)]))return;if(++_0x448b9d>0x2710)throw Error(_0x3a4116(0x119));_0x3da7fc[_0x3a4116(0x178)](_0x4b7c77[_0x3a4116(0x121)](_0x2646ae[_0x3a4116(0x11c)])?{..._0x2646ae,'hiddenRow':!![]}:_0x2646ae);},_0x436f80=_0x1990f4=>({'row':integer(one(children(_0x1990f4,'row',DRAWING),'anchor\x20row')['text'],_0x4439d3(0xf6),0x1869f)+0x1,'col':integer(one(children(_0x1990f4,_0x4439d3(0x145)),_0x4439d3(0x181))[_0x4439d3(0xe8)],_0x4439d3(0x181),0xff)+0x1});for(const _0x1d0fbc of children(_0x275bd9,_0x4439d3(0xe9))){const _0x5efb15=_0x1ca1ca(_0x354dfb,_0x1d0fbc[_0x4439d3(0x138)]['r:id'],'drawing'),_0x3b39f2=_0x565ec7(_0x5efb15);if(!matches(_0x3b39f2,_0x4439d3(0x16d)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x37069d of _0x3b39f2['children']){if(![_0x4439d3(0x107),_0x4439d3(0x17e),'absoluteAnchor'][_0x4439d3(0x105)](_0x277aca=>matches(_0x37069d,_0x277aca)))continue;if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x168))throw Error(_0x4439d3(0x10c)+_0x20332c+'.');const _0x1a6b83=_0x436f80(one(children(_0x37069d,_0x4439d3(0xe1)),_0x4439d3(0x160)));if(!_0x46aa0f[_0x4439d3(0x121)](_0x1a6b83[_0x4439d3(0x145)]))continue;let _0x48ae8f;const _0x2b6a29=one(children(_0x37069d,_0x4439d3(0xe1)),_0x4439d3(0x160)),_0x12f686=integer(one(children(_0x2b6a29,_0x4439d3(0xfc)),'anchor\x20start\x20offset')[_0x4439d3(0xe8)],_0x4439d3(0x15f),Number[_0x4439d3(0x12c)]),_0x5bab28=_0x18843a[_0x4439d3(0x179)](_0x1a6b83[_0x4439d3(0x11c)])??_0x4d9b2c;if(_0x12f686>=_0x5bab28)throw Error(_0x4439d3(0xfd)+_0x1a6b83[_0x4439d3(0x11c)]+'.');if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x107)){const _0x3ad760=one(children(_0x37069d,_0x4439d3(0x114)),'image\x20extent'),_0x1089e8=integer(_0x3ad760[_0x4439d3(0x138)]['cy'],_0x4439d3(0x15d),Number['MAX_SAFE_INTEGER']);if(!_0x1089e8||_0x12f686+_0x1089e8>_0x5bab28)_0x48ae8f=_0x4439d3(0x158);}if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x17e)){const _0x250db4=one(children(_0x37069d,'to'),_0x4439d3(0xed)),_0x2d22c4=_0x436f80(_0x250db4),_0x4c6b96=integer(one(children(_0x250db4,'rowOff'),'anchor\x20end\x20offset')[_0x4439d3(0xe8)],'anchor\x20end\x20offset',Number[_0x4439d3(0x12c)]),_0x176d9b=_0x18843a[_0x4439d3(0x179)](_0x2d22c4['row'])??_0x4d9b2c;if(_0x4c6b96>_0x176d9b||_0x2d22c4['row']===_0x1a6b83[_0x4439d3(0x11c)]&&_0x4c6b96<=_0x12f686)_0x48ae8f=_0x4439d3(0x15e);if(_0x2d22c4[_0x4439d3(0x11c)]<_0x1a6b83[_0x4439d3(0x11c)]||_0x2d22c4['row']>_0x1a6b83[_0x4439d3(0x11c)]+0x1||_0x2d22c4[_0x4439d3(0x11c)]===_0x1a6b83[_0x4439d3(0x11c)]+0x1&&_0x4c6b96!==0x0)_0x48ae8f=_0x4439d3(0x158);}const _0x415b8c=chain(_0x37069d,_0x4439d3(0x10b),_0x4439d3(0x164),_0x4439d3(0x16c));for(const _0x91d87f of _0x415b8c){if(_0x91d87f['attrs'][_0x4439d3(0xd9)])throw Error(_0x4439d3(0xef));_0x2491ac({..._0x1a6b83,'media':[_0x1ca1ca(_0x5efb15,_0x91d87f['attrs']['r:embed'],_0x4439d3(0xdc))],..._0x48ae8f?{'error':_0x48ae8f}:{}});}if(!_0x415b8c[_0x4439d3(0x171)])_0x2491ac({..._0x1a6b83,'media':[],'error':_0x4439d3(0x152)});}}const _0x137c91=_0x526d1a=>{const _0x4cb350=_0x4439d3,_0x1ee91a=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0x124)));if(!matches(_0x1ee91a,_0x4cb350(0x14f)))throw Error(_0x4cb350(0x11a));const _0x5804b2=integer(_0x526d1a[_0x4cb350(0x138)]['vm'],_0x4cb350(0x141));if(!_0x5804b2)throw Error(_0x4cb350(0x173));const _0x5cd46e=children(one(children(_0x1ee91a,_0x4cb350(0x12e)),_0x4cb350(0x12e)),'bk')[_0x5804b2-0x1];if(!_0x5cd46e)throw Error('Missing\x20value\x20metadata\x20block.');const _0x1f520d=one(children(_0x5cd46e,'rc'),_0x4cb350(0x10e)),_0x34095b=integer(_0x1f520d['attrs']['t'],_0x4cb350(0xd5)),_0x41a9b1=children(one(children(_0x1ee91a,'metadataTypes'),_0x4cb350(0x16a)),'metadataType')[_0x34095b-0x1];if(!_0x34095b||_0x41a9b1?.['attrs']['name']!==_0x4cb350(0xda))throw Error(_0x4cb350(0x128));const _0x18427e=one(children(_0x1ee91a,_0x4cb350(0xfe))[_0x4cb350(0x16b)](_0x129104=>_0x129104[_0x4cb350(0x138)][_0x4cb350(0x131)]===_0x4cb350(0xda)),'rich\x20future\x20metadata'),_0x4c895b=children(_0x18427e,'bk')[integer(_0x1f520d[_0x4cb350(0x138)]['v'],_0x4cb350(0x133))];if(!_0x4c895b)throw Error('Missing\x20future\x20metadata\x20block.');const _0x1c3db7=chain(_0x4c895b,_0x4cb350(0x13a))[_0x4cb350(0x161)](_0xac3494=>children(_0xac3494,_0x4cb350(0x114),SHEET))['filter'](_0x4b370e=>_0x4b370e[_0x4cb350(0x138)][_0x4cb350(0x13d)]?.[_0x4cb350(0xee)]()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x5e9621=integer(one(_0x1c3db7[_0x4cb350(0x161)](_0x3fbae1=>children(_0x3fbae1,_0x4cb350(0x11b))),_0x4cb350(0x137))[_0x4cb350(0x138)]['i'],_0x4cb350(0xe3)),_0x1da376=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0x147)));if(!matches(_0x1da376,'rvData'))throw Error(_0x4cb350(0xe6));const _0x46052a=children(_0x1da376,'rv')[_0x5e9621];if(!_0x46052a)throw Error(_0x4cb350(0x102));const _0x2d1cf4=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0xdb)));if(!matches(_0x2d1cf4,'rvStructures'))throw Error(_0x4cb350(0xf4));const _0x2576e0=children(_0x2d1cf4,'s')[integer(_0x46052a[_0x4cb350(0x138)]['s'],_0x4cb350(0x169))];if(!_0x2576e0||_0x2576e0[_0x4cb350(0x138)]['t']!==_0x4cb350(0xd2))throw Error(_0x4cb350(0x127));const _0x296b9d=children(_0x2576e0,'k'),_0x5dbf6a=_0x296b9d['map']((_0x2a3e59,_0x48cb96)=>_0x2a3e59[_0x4cb350(0x138)]['n']===_0x4cb350(0x15c)?_0x48cb96:-0x1)[_0x4cb350(0x16b)](_0xd07599=>_0xd07599>=0x0);if(_0x5dbf6a['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x417a84=children(_0x46052a,'v',RICH)[_0x5dbf6a[0x0]];if(!_0x417a84)throw Error(_0x4cb350(0x149));const _0x76894a=_0x177f52(_0x1db33f,_0x4cb350(0x108)),_0x12bfc1=_0x565ec7(_0x76894a);if(!matches(_0x12bfc1,_0x4cb350(0x156)))throw Error(_0x4cb350(0x151));const _0x581851=children(_0x12bfc1,_0x4cb350(0xea))[integer(_0x417a84['text'],_0x4cb350(0x106))];if(!_0x581851)throw Error(_0x4cb350(0x17c));return _0x1ca1ca(_0x76894a,_0x581851[_0x4cb350(0x138)][_0x4cb350(0x132)],'image');};let _0xf55d52;const _0x257738=_0x5b533d=>{const _0x201307=_0x4439d3;if(!_0xf55d52){_0xf55d52=new Map();const _0x2121e7=_0x5a7048(_0x1db33f)[_0x201307(0x16b)](_0x11ebad=>[...relationshipTypes('cellImage'),...relationshipTypes('cellImages')]['includes'](_0x11ebad[_0x201307(0x100)]));if(!_0x2121e7['length']&&_0xb82792[_0x201307(0x121)](_0x201307(0xdf)))_0x2121e7[_0x201307(0x178)]({'id':'','type':'','target':_0x201307(0x10a)});if(_0x2121e7['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x113da7=_0x428b50(_0x1db33f,_0x2121e7[0x0]),_0x4be9db=_0x565ec7(_0x113da7);if(!matches(_0x4be9db,_0x201307(0xff)))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0x3253b8 of children(_0x4be9db,'cellImage')){const _0x123789=one(chain(_0x3253b8,_0x201307(0x10b),'nvPicPr',_0x201307(0x144)),'WPS\x20image\x20name')[_0x201307(0x138)][_0x201307(0x131)];if(!_0x123789||_0xf55d52[_0x201307(0x121)](_0x123789))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x585098=one(chain(_0x3253b8,'pic',_0x201307(0x164),_0x201307(0x16c)),_0x201307(0xf0));if(_0x585098[_0x201307(0x138)][_0x201307(0xd9)])throw Error(_0x201307(0x154));_0xf55d52[_0x201307(0x12b)](_0x123789,_0x1ca1ca(_0x113da7,_0x585098[_0x201307(0x138)][_0x201307(0x170)],_0x201307(0xdc)));}}const _0x1034c9=_0xf55d52['get'](_0x5b533d);if(!_0x1034c9)throw Error(_0x201307(0x109)+_0x5b533d+'.');return _0x1034c9;},_0x3b4a57=new Set();for(const _0x5191c0 of _0x9cacdf[_0x4439d3(0x161)](_0x783b7a=>children(_0x783b7a,'c'))){const _0x195441=/^([A-Z]+)([1-9]\d*)$/[_0x4439d3(0xd7)](_0x5191c0[_0x4439d3(0x138)]['r']??'');if(!_0x195441)continue;let _0x1138be=0x0;for(const _0x2cd71b of _0x195441[0x1])_0x1138be=_0x1138be*0x1a+_0x2cd71b[_0x4439d3(0x11f)](0x0)-0x40;if(!_0x46aa0f['has'](_0x1138be))continue;const _0x22d4ce=integer(_0x195441[0x2],_0x4439d3(0x140));if(_0x3b4a57['has'](_0x5191c0[_0x4439d3(0x138)]['r']))throw Error(_0x4439d3(0xf1));_0x3b4a57[_0x4439d3(0x13e)](_0x5191c0[_0x4439d3(0x138)]['r']);const _0x37e086=children(_0x5191c0,'f');if(!_0x5191c0['attrs']['vm']&&!_0x37e086[_0x4439d3(0x171)])continue;try{if(_0x22d4ce<0x1||_0x1138be>0x100)throw Error(_0x4439d3(0x17d));let _0x375e16;if(_0x5191c0[_0x4439d3(0x138)]['vm']){if(_0x37e086[_0x4439d3(0x171)])throw Error(_0x4439d3(0x166));if(_0x5191c0[_0x4439d3(0x138)]['t']!=='e'||children(_0x5191c0,'v')[_0x4439d3(0x171)]!==0x1||children(_0x5191c0,'v')[0x0][_0x4439d3(0xe8)]!==_0x4439d3(0x129))throw Error(_0x4439d3(0x11e));_0x375e16=_0x137c91(_0x5191c0);}else{const _0x606696=one(_0x37e086,_0x4439d3(0x135));if(_0x606696[_0x4439d3(0x138)]['t']===_0x4439d3(0x13c)||_0x606696[_0x4439d3(0x138)]['si'])throw Error(_0x4439d3(0x126));const _0x5f3b09=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x4439d3(0xd7)](_0x606696[_0x4439d3(0xe8)]);if(!_0x5f3b09)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x375e16=_0x257738(_0x5f3b09[0x1][_0x4439d3(0xde)](/""/g,'\x22'));}_0x2491ac({'row':_0x22d4ce,'col':_0x1138be,'media':[_0x375e16],'nativeCell':!![]});}catch(_0x3431cb){_0x2491ac({'row':_0x22d4ce,'col':_0x1138be,'media':[],'nativeCell':!![],'error':_0x3431cb['message']});}}return _0x3da7fc;}
|
|
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(_0x2e8b3e,_0x2896dd){const _0x358c8a=a147_0x32e0,_0x15c6c5=_0x2e8b3e();while(!![]){try{const _0x5cb8b5=parseInt(_0x358c8a(0xc5))/0x1*(-parseInt(_0x358c8a(0xae))/0x2)+-parseInt(_0x358c8a(0xa1))/0x3*(parseInt(_0x358c8a(0xc8))/0x4)+parseInt(_0x358c8a(0x9a))/0x5*(parseInt(_0x358c8a(0x9d))/0x6)+parseInt(_0x358c8a(0xcc))/0x7+-parseInt(_0x358c8a(0xf0))/0x8+-parseInt(_0x358c8a(0xe7))/0x9*(parseInt(_0x358c8a(0xec))/0xa)+parseInt(_0x358c8a(0xe5))/0xb;if(_0x5cb8b5===_0x2896dd)break;else _0x15c6c5['push'](_0x15c6c5['shift']());}catch(_0x3635cb){_0x15c6c5['push'](_0x15c6c5['shift']());}}}(a147_0x1995,0xc163b));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';function a147_0x1995(){const _0x280bd8=['missing','update','all','parse','ENOENT','resume','types','rows-preparing','contract','strategy','fileName','completed','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','uploadFields','contentHash','35tcnFhx','binding','00000000-0000-4000-8000-000000000000','788694iqKTMC','actorId','Invalid\x20image\x20media\x20descriptor.','image/jpeg','6WLlTBh','fromEntries','Invalid\x20image\x20manifest\x20limits.','appCode','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','report','runtimeDomain','type','imageImport','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','stringify','name','status','1046AMscZL','imageFields','version','phase','filePath','image/png','jpg','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','rowNumber','isSafeInteger','schemaHash','hash','digest','key','includes','uploadId','hex','fileHash','readback','values','utf8','map','inputPaths','538EmaoEx','test','imageApi','187936fbYtOW','sheet','Completed\x20image\x20checkpoint\x20value\x20changed.','datasetCode','1217216ZCwAWy','bytes','value','rows','batchSize','reduce','mappingHash','hashes','importId','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','maxBatchBytes','Image\x20cell\x20references\x20missing\x20media.','size','sha256','manifest','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','isArray','rows-started','schemaFingerprint','succeeded','Invalid\x20image\x20readback\x20digest.','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','code','length','png','24000394rPSThY','media','12070431FEhHAk','entries','maxPixels','isInteger','schemaVersion','10pUitMQ','Invalid\x20import\x20batch\x20size.','imageCells','.lock','6138088GZEjbr','get','errors'];a147_0x1995=function(){return _0x280bd8;};return a147_0x1995();}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x35b214,_0x350ed7){const _0x3ca3a8=a147_0x32e0;if(!_0x350ed7[_0x3ca3a8(0xe6)]?.['length'])return;const _0xc94b1=_0x35b214[_0x3ca3a8(0xa9)];if(!_0xc94b1||_0xc94b1[_0x3ca3a8(0xb0)]!==0x1||_0xc94b1[_0x3ca3a8(0xbd)]!=='sha256'||_0xc94b1['maxFileBytes']!==0xa00000||_0xc94b1[_0x3ca3a8(0xe9)]!==0x2625a00||!Array[_0x3ca3a8(0xdc)](_0xc94b1['types'])||![_0x3ca3a8(0xb3),_0x3ca3a8(0xa0),'image/gif']['every'](_0x2bd344=>_0xc94b1[_0x3ca3a8(0x91)]['includes'](_0x2bd344)))throw Error(_0x3ca3a8(0xd5));}export function imageObjectValue(_0xfbd4f6,_0x3a0a6a,_0x5de788){const _0x263375=a147_0x32e0,_0x473d7b=createHash(_0x263375(0xd9))[_0x263375(0xf4)](JSON[_0x263375(0xab)]([_0xfbd4f6[_0x263375(0x9e)],_0xfbd4f6[_0x263375(0xa4)],_0xfbd4f6[_0x263375(0xcb)],_0x3a0a6a]))['digest']('hex'),_0x44bf22={'image/png':_0x263375(0xe4),'image/jpeg':_0x263375(0xb4),'image/gif':'gif'}[_0x5de788[_0x263375(0xa8)]];if(!_0x44bf22||!/^[0-9a-f]{64}$/[_0x263375(0xc6)](_0x5de788[_0x263375(0x99)])||!Number[_0x263375(0xb7)](_0x5de788[_0x263375(0xd8)])||_0x5de788['size']<=0x0||_0x5de788[_0x263375(0xd8)]>0xa00000)throw Error(_0x263375(0x9f));const _0x5a2afb=_0x5de788[_0x263375(0x99)]+'.'+_0x44bf22;return{'key':'dataset-import/'+_0x473d7b+'/'+_0x5a2afb,'name':_0x5a2afb,'type':_0x5de788[_0x263375(0xa8)],'size':_0x5de788[_0x263375(0xd8)]};}function a147_0x32e0(_0x3147d0,_0x379512){_0x3147d0=_0x3147d0-0x8f;const _0x1995d2=a147_0x1995();let _0x32e0ce=_0x1995d2[_0x3147d0];return _0x32e0ce;}export function bindImageManifest(_0x4e91c3,_0x2a5c78,_0x528cfe){const _0x16a0b3=a147_0x32e0,_0x5eed98=new Map(_0x4e91c3[_0x16a0b3(0xe6)]?.[_0x16a0b3(0xc3)](_0x243549=>[_0x243549['contentHash'],_0x243549])),_0x277d71=new Map(_0x4e91c3[_0x16a0b3(0xee)]?.[_0x16a0b3(0xc3)](_0x5ace40=>[_0x5ace40[_0x16a0b3(0xb6)]+':'+_0x5ace40['field'],_0x5ace40[_0x16a0b3(0xd3)]]));return{..._0x4e91c3,'rows':_0x4e91c3[_0x16a0b3(0xcf)][_0x16a0b3(0xc3)](_0x1e9160=>({..._0x1e9160,'values':Object[_0x16a0b3(0xa2)](Object[_0x16a0b3(0xe8)](_0x1e9160[_0x16a0b3(0xc1)])[_0x16a0b3(0xc3)](([_0x31bb1d,_0x585c17])=>{const _0x37c415=_0x16a0b3,_0x1652cb=_0x277d71[_0x37c415(0xf1)](_0x1e9160[_0x37c415(0xb6)]+':'+_0x31bb1d);return[_0x31bb1d,_0x1652cb?_0x1652cb['map'](_0x42108e=>{const _0x10b589=_0x37c415,_0x2b7e3a=_0x5eed98[_0x10b589(0xf1)](_0x42108e);if(!_0x2b7e3a)throw Error(_0x10b589(0xd7));const _0x4b802d=imageObjectValue(_0x2a5c78,_0x528cfe,_0x2b7e3a);return _0x4e91c3[_0x10b589(0x98)]?.['includes'](_0x31bb1d)?{'fileName':_0x4b802d[_0x10b589(0xac)],'filePath':_0x4b802d[_0x10b589(0xbb)]}:_0x4b802d;}):_0x585c17];}))}))};}async function exists(_0x4e4059){const _0x511b75=a147_0x32e0;try{return await lstat(_0x4e4059),!![];}catch(_0x3bd060){if(_0x3bd060[_0x511b75(0xe2)]===_0x511b75(0x8f))return![];throw _0x3bd060;}}export async function runImageExcelImport(_0x12ffd8){const _0x1bfc64=a147_0x32e0;assertImportContract(_0x12ffd8[_0x1bfc64(0x93)],_0x12ffd8[_0x1bfc64(0xa4)],_0x12ffd8[_0x1bfc64(0xcb)]),assertImageImportCapability(_0x12ffd8[_0x1bfc64(0x93)],_0x12ffd8['manifest']);if(!Number[_0x1bfc64(0xea)](_0x12ffd8[_0x1bfc64(0xd0)])||_0x12ffd8[_0x1bfc64(0xd0)]<0x1||_0x12ffd8[_0x1bfc64(0xd0)]>_0x12ffd8[_0x1bfc64(0x93)]['maxBatchSize'])throw Error(_0x1bfc64(0xed));if(_0x12ffd8[_0x1bfc64(0xda)][_0x1bfc64(0xf2)][_0x1bfc64(0xe3)]||!_0x12ffd8['manifest'][_0x1bfc64(0xcf)][_0x1bfc64(0xe3)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0x15491d=await resolveImportOutputPath(_0x12ffd8['checkpoint']),_0x13dc24=await resolveImportOutputPath(_0x12ffd8[_0x1bfc64(0xa6)]),_0xb74edb=await resolveImportOutputPath(_0x15491d+'.rows.json'),_0x25dd98=await Promise[_0x1bfc64(0xf5)]([_0xb74edb,_0xb74edb+_0x1bfc64(0xef),_0xb74edb+'.lock.recovery',..._0x12ffd8[_0x1bfc64(0xc4)]??[]][_0x1bfc64(0xc3)](resolveImportOutputPath));for(const _0x13fd47 of[_0x15491d,_0x13dc24,_0x15491d+_0x1bfc64(0xef),_0x15491d+'.lock.recovery'])await resolveImportOutputPath(_0x13fd47);assertImportPaths(_0x15491d,_0x13dc24,_0x25dd98);const {contract:_0x4b51f1,manifest:_0x391aa3}=_0x12ffd8,_0xeb761e=_0x391aa3[_0x1bfc64(0xe6)]??[];if(new Set(_0xeb761e['map'](_0x22a8c6=>_0x22a8c6[_0x1bfc64(0x99)]))[_0x1bfc64(0xd8)]!==_0xeb761e[_0x1bfc64(0xe3)]||_0xeb761e['reduce']((_0x5360f7,_0x3c7140)=>_0x5360f7+_0x3c7140[_0x1bfc64(0xd8)],0x0)>0x32*0x400*0x400||(_0x391aa3['imageCells']??[])['reduce']((_0xf2c99,_0x615190)=>_0xf2c99+_0x615190[_0x1bfc64(0xd3)]['length'],0x0)>0x2710)throw Error(_0x1bfc64(0xa3));for(const _0x1a34ec of _0xeb761e)if(_0x1a34ec[_0x1bfc64(0xd8)]!==_0x1a34ec[_0x1bfc64(0xcd)][_0x1bfc64(0xe3)]||createHash(_0x1bfc64(0xd9))[_0x1bfc64(0xf4)](_0x1a34ec[_0x1bfc64(0xcd)])[_0x1bfc64(0xba)](_0x1bfc64(0xbe))!==_0x1a34ec[_0x1bfc64(0x99)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0x391aa3,_0x4b51f1,_0x1bfc64(0x9c)),_0x4b51f1,_0x12ffd8[_0x1bfc64(0xd0)]);const _0x3a5b4f={'appCode':_0x12ffd8['appCode'],'datasetCode':_0x12ffd8[_0x1bfc64(0xcb)],'runtimeDomain':_0x12ffd8[_0x1bfc64(0xa7)],'actorId':_0x4b51f1[_0x1bfc64(0x9e)],'fileHash':_0x391aa3[_0x1bfc64(0xbf)],'mappingHash':_0x391aa3[_0x1bfc64(0xd2)],'schemaHash':_0x391aa3[_0x1bfc64(0xb8)],'remoteSchemaHash':_0x4b51f1[_0x1bfc64(0xde)],'strategy':_0x4b51f1[_0x1bfc64(0x94)],'schemaVersion':_0x4b51f1[_0x1bfc64(0xeb)],'batchSize':_0x12ffd8[_0x1bfc64(0xd0)],'maxBatchBytes':_0x4b51f1[_0x1bfc64(0xd6)],'sheet':_0x391aa3[_0x1bfc64(0xc9)],'parserVersion':_0x391aa3['parserVersion'],'imageFields':_0x391aa3[_0x1bfc64(0xaf)],'cells':_0x391aa3[_0x1bfc64(0xee)],..._0x391aa3[_0x1bfc64(0x98)]?.[_0x1bfc64(0xe3)]?{'uploadFields':_0x391aa3[_0x1bfc64(0x98)]}:{},'media':_0xeb761e[_0x1bfc64(0xc3)](({contentHash:_0x21ea31,type:_0x4b363a,size:_0x34d6e9})=>({'contentHash':_0x21ea31,'type':_0x4b363a,'size':_0x34d6e9})),'rows':_0x391aa3['rows']},_0x58b06a=await acquireLock(_0x15491d);try{let _0x56bda4;if(_0x12ffd8[_0x1bfc64(0x90)]){try{_0x56bda4=JSON[_0x1bfc64(0xf6)](await readFile(_0x15491d,_0x1bfc64(0xc2)));}catch{throw Error('Cannot\x20read\x20the\x20image\x20import\x20checkpoint.');}if(_0x56bda4[_0x1bfc64(0xb0)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x56bda4[_0x1bfc64(0xd4)])||canonical(_0x56bda4[_0x1bfc64(0x9b)])!==canonical(_0x3a5b4f)||![_0x1bfc64(0xe6),_0x1bfc64(0x92),_0x1bfc64(0xdd),'completed'][_0x1bfc64(0xbc)](_0x56bda4['phase'])||!Array[_0x1bfc64(0xdc)](_0x56bda4[_0x1bfc64(0xe6)])||_0x56bda4[_0x1bfc64(0xe6)][_0x1bfc64(0xe3)]!==_0xeb761e[_0x1bfc64(0xe3)]||_0x56bda4['media']['some']((_0x28cc6a,_0xf78389)=>_0x28cc6a[_0x1bfc64(0xb9)]!==_0xeb761e[_0xf78389][_0x1bfc64(0x99)]||!['pending',_0x1bfc64(0xdf)]['includes'](_0x28cc6a[_0x1bfc64(0xad)])))throw Error(_0x1bfc64(0xe1));if([_0x1bfc64(0xdd),_0x1bfc64(0x96)]['includes'](_0x56bda4[_0x1bfc64(0xb1)])&&!await exists(_0xb74edb))throw Error(_0x1bfc64(0xaa));if(_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0xe6)&&await exists(_0xb74edb))throw Error(_0x1bfc64(0xa5));}else{if(await exists(_0x15491d)||await exists(_0xb74edb))throw Error(_0x1bfc64(0xb5));_0x56bda4={'version':0x3,'importId':randomUUID(),'binding':_0x3a5b4f,'phase':_0x1bfc64(0xe6),'media':_0xeb761e[_0x1bfc64(0xc3)](_0x201928=>({'hash':_0x201928['contentHash'],'status':'pending'}))},await saveImportJson(_0x15491d,_0x56bda4);}const _0x44bb7a=(_0x4cb897,_0x154279)=>{const _0x494ed0=_0x1bfc64;if(!_0x4cb897||_0x4cb897[_0x494ed0(0x99)]!==_0x154279[_0x494ed0(0x99)])throw Error(_0x494ed0(0xe0));if(_0x4cb897[_0x494ed0(0xad)]===_0x494ed0(0xf3))return undefined;const _0x15e196=imageObjectValue(_0x4b51f1,_0x56bda4[_0x494ed0(0xd4)],_0x154279);if(_0x4cb897[_0x494ed0(0xad)]!==_0x494ed0(0xdf)||_0x4cb897[_0x494ed0(0xb2)]!==_0x15e196['key']||_0x4cb897[_0x494ed0(0x95)]!==_0x15e196[_0x494ed0(0xac)]||_0x4cb897['type']!==_0x15e196[_0x494ed0(0xa8)]||_0x4cb897[_0x494ed0(0xd8)]!==_0x15e196['size'])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x15e196;};for(let _0x435e4d=0x0;_0x435e4d<_0xeb761e[_0x1bfc64(0xe3)];_0x435e4d++){const _0x3cccf6=_0xeb761e[_0x435e4d],_0x39fba6=_0x56bda4[_0x1bfc64(0xe6)][_0x435e4d],_0x2346cd=imageObjectValue(_0x4b51f1,_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6);if(_0x39fba6[_0x1bfc64(0xad)]==='succeeded'&&canonical(_0x39fba6[_0x1bfc64(0xce)])!==canonical(_0x2346cd))throw Error(_0x1bfc64(0xca));let _0x1a86b9;if(_0x12ffd8[_0x1bfc64(0x90)]||_0x39fba6['status']===_0x1bfc64(0xdf))_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)][_0x1bfc64(0xc0)](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9&&_0x39fba6['status']==='succeeded')throw Error(_0x1bfc64(0xdb));if(!_0x1a86b9){try{_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)]['upload'](_0x56bda4['importId'],_0x3cccf6),_0x3cccf6);}catch(_0x1207b9){_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)][_0x1bfc64(0xc0)](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x1a86b9)_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)]['readback'](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9)throw Error(_0x1bfc64(0x97));}_0x39fba6[_0x1bfc64(0xad)]=_0x1bfc64(0xdf),_0x39fba6[_0x1bfc64(0xce)]=_0x1a86b9,await saveImportJson(_0x15491d,_0x56bda4);}const _0x4ffd25=bindImageManifest(_0x391aa3,_0x4b51f1,_0x56bda4[_0x1bfc64(0xd4)]),_0x11b9a0=_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0x92)?await exists(_0xb74edb):_0x56bda4[_0x1bfc64(0xb1)]!==_0x1bfc64(0xe6);_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0xe6)&&(_0x56bda4[_0x1bfc64(0xb1)]='rows-preparing',await saveImportJson(_0x15491d,_0x56bda4));const _0x5ba374={..._0x12ffd8,'manifest':_0x4ffd25,'checkpoint':_0xb74edb,'report':_0x13dc24,'resume':_0x11b9a0,'onCheckpointReady':async()=>{const _0x41c9d1=_0x1bfc64;_0x56bda4['phase']=_0x41c9d1(0xdd),await saveImportJson(_0x15491d,_0x56bda4);}},_0x78f8ac=_0x4b51f1['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x5ba374,'reconcileImageConflicts':_0x12ffd8[_0x1bfc64(0x90)]===!![]&&_0x11b9a0}):await runExcelImport(_0x5ba374);return _0x56bda4['phase']='completed',await saveImportJson(_0x15491d,_0x56bda4),{..._0x78f8ac,'checkpoint':_0x15491d,'imageCount':_0x391aa3[_0x1bfc64(0xee)]?.[_0x1bfc64(0xd1)]((_0x3e1511,_0xb456a9)=>_0x3e1511+_0xb456a9['hashes']['length'],0x0)??0x0,'uniqueImages':_0xeb761e[_0x1bfc64(0xe3)]};}finally{await _0x58b06a();}}
|
|
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);}
|