@lovrabet/lovrabet-cli 2.3.11 → 2.3.12
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.d.ts +13 -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.d.ts +3 -2
- 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 +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a144_0x4e3367=a144_0x4295;(function(_0x426338,_0x12f0ab){const _0x4e4fb7=a144_0x4295,_0xa6dfb1=_0x426338();while(!![]){try{const _0x213e26=-parseInt(_0x4e4fb7(0x245))/0x1+parseInt(_0x4e4fb7(0x1da))/0x2+parseInt(_0x4e4fb7(0x22f))/0x3*(-parseInt(_0x4e4fb7(0x1aa))/0x4)+-parseInt(_0x4e4fb7(0x1c4))/0x5*(parseInt(_0x4e4fb7(0x1e4))/0x6)+-parseInt(_0x4e4fb7(0x259))/0x7+parseInt(_0x4e4fb7(0x263))/0x8*(-parseInt(_0x4e4fb7(0x1e5))/0x9)+-parseInt(_0x4e4fb7(0x246))/0xa*(-parseInt(_0x4e4fb7(0x257))/0xb);if(_0x213e26===_0x12f0ab)break;else _0xa6dfb1['push'](_0xa6dfb1['shift']());}catch(_0x17b548){_0xa6dfb1['push'](_0xa6dfb1['shift']());}}}(a144_0x22e1,0x8f235));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x33c664 from'node:path';function a144_0x22e1(){const _0x46f3d0=['type','textarea','Invalid\x20dataset\x20field\x20extension\x20metadata.','trim','resolve','parse','address','fileName','externalFileAttributes','369405PBVtKK','isInteger','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','Invalid\x20ZIP\x20central\x20directory\x20layout.','update','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','dir','_xlnm.Print_Area','Cell\x20exceeds\x2064\x20KB.','isSafeInteger','integer','tenantCode','fileCommentRaw','cells','decimal','data','Invalid\x20worksheet\x20hyperlink\x20reference.','filter','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','\x20columns.','directory','Required\x20value\x20is\x20missing.','655116zWEDCi','Non-canonical\x20worksheet\x20ZIP\x20entry.','utf8','map','uncompressedSize','parseInt','formula','ref','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','entries','12QcAcEY','15696AieVKe','readEntry','file','extraFieldsLength','includes','deleted','parserVersion','error','parseText','imageFields','find','repeat','dataValidations','MAX_SAFE_INTEGER','generalPurposeBitFlag','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','doctype','add','length','entry','image','Invalid\x20XLSX\x20entry.','Invalid\x20ZIP\x20local\x20file\x20header.','number','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20worksheet\x20nested\x20row.','[Content_Types].xml','close','isBuffer','value','test','clear','eachCell','doType','required','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','hex','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','imageCells','headerRow','values','parseOpen','some','sha256','File\x20is\x20not\x20an\x20XLSX\x20workbook.','stringify','Dataset\x20field\x20metadata\x20is\x20missing.','readExtraFields','ranges','datetime','concat','Unknown\x20or\x20generated\x20mapping\x20field:\x20','exec','processAttributes','left','bitFlag','dataset','original','localeCompare','isFinite','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','rowCount','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','sourceType','fields','object','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','decodeEx','Worksheet\x20exceeds\x2016384\x20columns.','updateTime','readUInt32LE','Invalid\x20worksheet\x20XML.','1633239rNyJSd','Duplicate\x20header:\x20','push','sheet','sort','attributes','sharedFormula','get','top','modifierId','warnings','uploadFields','METADATA','upload','mapping','pop','versionMadeBy','code','dataset-import/','xlsx','_xlnm.Print_Titles','name','233657zLBDag','45730YpmRBt','contentHash','reference','max','fileNameStr','abs','load','media','slice','from','opentag','utf8decode','datasetId','generated','getRow','modifierName','Duplicate\x20workbook\x20ZIP\x20entry.','5665bNpCKo','charCodeAt','647157QvyXKe','Invalid\x20defined\x20name\x20coordinate.','exceljs/lib/xlsx/xform/book/defined-name-xform.js','./zipEntry','extraFields','nativeCell','entryCount','toLowerCase','appCode','exceljs','2448tGxhxO','Required\x20image\x20value\x20is\x20missing.','startsWith','create','rows','errors','xl/workbook.xml','parseClose','extname','readUInt16LE','end','Image\x20XML\x20event\x20budget\x20exceeded.','source','XLSX\x20file\x20exceeds\x2020\x20MB.','./utf8','model','Duplicate\x20dataset\x20field\x20codes.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','Required\x20field\x20is\x20not\x20mapped:\x20','split','autoIncrement','row','col','batchSize','extraFieldRaw','./utils','Invalid\x20XLSX\x20archive.','set','mergeCell','destroy','properties','write','.xlsx','message','Expected\x20a\x20boolean\x20cell.','Only\x20.xlsx\x20files\x20are\x20supported.','text','fromBuffer','dataType','has','byteLength','Invalid\x20worksheet\x20coordinate.','readEntryCursor','isArray','materialized','getCell','worksheets','right','jpg','Unknown\x20Excel\x20header:\x20','bottom','Invalid\x20worksheet\x20column\x20range.','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','./reader/readerFor','Requested\x20worksheet\x20does\x20not\x20exist.','Invalid\x20worksheet\x20XML:\x20','every','unixPermissions','size','hidden','hyperlink','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','8dhvIUi','result','creatorName','string','definedName','jszip','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','date','digest','fileNameRaw','closetag','boolean','Worksheet\x20coordinate\x20exceeds\x20','getTime','lastIndexOf','serial_number'];a144_0x22e1=function(){return _0x46f3d0;};return a144_0x22e1();}import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3ee8b0 from'exceljs';import a144_0x503fc8 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_0x4e3367(0x1cf),a144_0x4e3367(0x261),a144_0x4e3367(0x252),'creatorId',a144_0x4e3367(0x1ac),a144_0x4e3367(0x238),a144_0x4e3367(0x255),'createTime',a144_0x4e3367(0x22c),a144_0x4e3367(0x1ea)]),TYPES=new Set([a144_0x4e3367(0x1ad),a144_0x4e3367(0x190),a144_0x4e3367(0x1bc),a144_0x4e3367(0x1fc),'decimal',a144_0x4e3367(0x1ce),'boolean','date',a144_0x4e3367(0x218),a144_0x4e3367(0x1f9),a144_0x4e3367(0x23c)]),isImageContainer=_0x1fdeb5=>[a144_0x4e3367(0x1f9),'upload']['includes'](_0x1fdeb5[a144_0x4e3367(0x260)]()),hash=_0x992f7=>createHash(a144_0x4e3367(0x212))[a144_0x4e3367(0x1c8)](_0x992f7)[a144_0x4e3367(0x1b3)](a144_0x4e3367(0x209)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x4e3367(0x25b)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x4e3367(0x1bf)](a144_0x4e3367(0x262))),zipRequire=createRequire(excelRequire[a144_0x4e3367(0x1bf)](a144_0x4e3367(0x1af))),ZipEntry=zipRequire(a144_0x4e3367(0x25c)),zipReader=zipRequire(a144_0x4e3367(0x1a1)),zipUtf8=zipRequire(a144_0x4e3367(0x271)),zipPaths=zipRequire(a144_0x4e3367(0x185));function centralDirectoryEnd(_0xd651e5,_0x146367){const _0x57b597=a144_0x4e3367,_0x4efabf=()=>new Error(_0x57b597(0x1c7)),_0x4a0b4b=_0xd651e5[_0x57b597(0x1b9)](Buffer[_0x57b597(0x24f)]([0x50,0x4b,0x5,0x6]));if(_0x4a0b4b<0x0||_0x4a0b4b+0x16>_0xd651e5[_0x57b597(0x1f7)]||_0x4a0b4b+0x16+_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0x14)!==_0xd651e5['length'])throw _0x4efabf();let _0x4a3931=_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0xa),_0x43ee80=_0xd651e5[_0x57b597(0x22d)](_0x4a0b4b+0xc),_0x2695da=_0xd651e5[_0x57b597(0x22d)](_0x4a0b4b+0x10),_0x32e219=_0x4a0b4b;const _0x23b4f4=_0x4a0b4b-0x14,_0x3043a7=_0x23b4f4>=0x0&&_0xd651e5['readUInt32LE'](_0x23b4f4)===0x7064b50,_0x3da168=[0x4,0x6,0x8,0xa][_0x57b597(0x211)](_0x5daec2=>_0xd651e5['readUInt16LE'](_0x4a0b4b+_0x5daec2)===0xffff)||_0x43ee80===0xffffffff||_0x2695da===0xffffffff;if(_0x3043a7!==_0x3da168)throw _0x4efabf();if(_0x3043a7){if(_0xd651e5[_0x57b597(0x1b9)](Buffer[_0x57b597(0x24f)]([0x50,0x4b,0x6,0x7]))!==_0x23b4f4)throw _0x4efabf();const _0x2dddf8=_0xa7391f=>{const _0xcf8f78=_0x57b597,_0x488eb8=Number(_0xd651e5['readBigUInt64LE'](_0xa7391f));if(!Number[_0xcf8f78(0x1cd)](_0x488eb8))throw _0x4efabf();return _0x488eb8;};_0x32e219=_0x2dddf8(_0x23b4f4+0x8);if(_0xd651e5[_0x57b597(0x22d)](_0x23b4f4+0x4)!==0x0||_0xd651e5[_0x57b597(0x22d)](_0x23b4f4+0x10)!==0x1||_0x32e219>_0x23b4f4-0x38||_0xd651e5[_0x57b597(0x22d)](_0x32e219)!==0x6064b50||_0x2dddf8(_0x32e219+0x4)!==0x2c||_0x32e219+0x38!==_0x23b4f4||_0xd651e5[_0x57b597(0x22d)](_0x32e219+0x10)!==0x0||_0xd651e5[_0x57b597(0x22d)](_0x32e219+0x14)!==0x0)throw _0x4efabf();_0x4a3931=_0x2dddf8(_0x32e219+0x20),_0x43ee80=_0x2dddf8(_0x32e219+0x28),_0x2695da=_0x2dddf8(_0x32e219+0x30);if(_0x2dddf8(_0x32e219+0x18)!==_0x4a3931)throw _0x4efabf();}else{if(_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0x4)!==0x0||_0xd651e5['readUInt16LE'](_0x4a0b4b+0x6)!==0x0||_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0x8)!==_0x4a3931)throw _0x4efabf();}const _0x161720=_0x146367[_0x57b597(0x196)];if(_0x2695da!==_0x161720||_0x4a3931!==_0x146367[_0x57b597(0x25f)]||_0x2695da+_0x43ee80!==_0x32e219)throw _0x4efabf();return _0x32e219;}function consumerEntryName(_0x454bac,_0x4caa25){const _0x57d412=a144_0x4e3367;if(_0x4caa25[_0x57d412(0x25d)][_0x57d412(0x1d5)](_0x4a2538=>_0x4a2538['id']===0x1)[_0x57d412(0x1f7)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x186ebc=_0x4caa25,_0x50cc90=_0x4caa25['relativeOffsetOfLocalHeader'];if(!Buffer[_0x57d412(0x201)](_0x186ebc[_0x57d412(0x1b4)])||!Buffer[_0x57d412(0x201)](_0x186ebc[_0x57d412(0x184)])||!Buffer[_0x57d412(0x201)](_0x186ebc[_0x57d412(0x1d0)])||!Number['isSafeInteger'](_0x50cc90)||_0x50cc90<0x0||_0x50cc90>_0x454bac[_0x57d412(0x1f7)]-0x1e||_0x454bac['readUInt32LE'](_0x50cc90)!==0x4034b50)throw new Error(_0x57d412(0x1fb));const _0x54f9ff=_0x50cc90+0x1e+_0x454bac[_0x57d412(0x26c)](_0x50cc90+0x1a),_0x2b386f=_0x54f9ff+_0x454bac['readUInt16LE'](_0x50cc90+0x1c)+_0x4caa25['compressedSize'];if(!Number[_0x57d412(0x1cd)](_0x2b386f)||_0x2b386f>_0x454bac[_0x57d412(0x1f7)])throw new Error(_0x57d412(0x1fb));if(_0x54f9ff>_0x454bac[_0x57d412(0x1f7)]||!_0x454bac['subarray'](_0x50cc90+0x1e,_0x54f9ff)['equals'](_0x186ebc['fileNameRaw']))throw new Error(_0x57d412(0x1a0));const _0x13643d=new ZipEntry({},{'decodeFileName':zipUtf8[_0x57d412(0x251)]});_0x13643d[_0x57d412(0x21e)]=_0x4caa25[_0x57d412(0x1f3)],_0x13643d[_0x57d412(0x1c2)]=_0x186ebc[_0x57d412(0x1b4)],_0x13643d['fileComment']=_0x186ebc[_0x57d412(0x1d0)],_0x13643d[_0x57d412(0x1e8)]=_0x186ebc[_0x57d412(0x184)][_0x57d412(0x1f7)],_0x13643d[_0x57d412(0x216)](zipReader(_0x186ebc[_0x57d412(0x184)])),_0x13643d['handleUTF8'](),_0x13643d[_0x57d412(0x23f)]=_0x4caa25['versionMadeBy'],_0x13643d['externalFileAttributes']=_0x4caa25[_0x57d412(0x1c3)],_0x13643d[_0x57d412(0x21c)]();const _0xe97b6=_0x13643d[_0x57d412(0x1ca)]||Boolean((_0x13643d[_0x57d412(0x1a5)]??0x0)&0x4000),_0x2af26c=zipPaths['resolve'](_0x13643d[_0x57d412(0x24a)]),_0x447352=_0x2af26c[_0x57d412(0x265)]('/')?_0x2af26c['slice'](0x1):_0x2af26c;return{'name':_0x447352,'original':_0x13643d[_0x57d412(0x24a)],'directory':_0xe97b6};}export function normalizeImportFields(_0x586baa){const _0x2f94c9=a144_0x4e3367;if(!_0x586baa||(_0x586baa[_0x2f94c9(0x26f)]??_0x586baa[_0x2f94c9(0x21f)]?.[_0x2f94c9(0x226)])!==_0x2f94c9(0x23b))throw new Error(_0x2f94c9(0x1c9));const _0x301341=Array[_0x2f94c9(0x197)](_0x586baa[_0x2f94c9(0x227)]),_0x44846b=_0x301341?_0x586baa[_0x2f94c9(0x227)]:_0x586baa[_0x2f94c9(0x18a)];if(!Array[_0x2f94c9(0x197)](_0x44846b)||_0x44846b['length']===0x0)throw new Error(_0x2f94c9(0x215));const _0x456dc8=[],_0x15cd2d=new Set();for(const _0x4804ca of _0x44846b){if(_0x4804ca[_0x2f94c9(0x1ea)]===!![])continue;let _0x18d940=_0x4804ca['extend']??{};if(!_0x301341&&typeof _0x18d940===_0x2f94c9(0x1ad)){try{_0x18d940=JSON[_0x2f94c9(0x1c0)](_0x18d940);}catch{throw new Error(_0x2f94c9(0x1bd));}if(!_0x18d940||typeof _0x18d940!==_0x2f94c9(0x228)||Array['isArray'](_0x18d940))throw new Error(_0x2f94c9(0x1bd));}const _0xca145b=_0x301341?_0x4804ca[_0x2f94c9(0x244)]:_0x4804ca['code'],_0x430b01=_0x301341?_0x4804ca[_0x2f94c9(0x206)]:_0x4804ca[_0x2f94c9(0x1bb)]??_0x4804ca[_0x2f94c9(0x192)];if(typeof _0xca145b!==_0x2f94c9(0x1ad)||!_0xca145b||typeof _0x430b01!=='string'||_0x15cd2d[_0x2f94c9(0x193)](_0xca145b))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x430b01['toLowerCase']()===_0x2f94c9(0x1ba))throw new Error(_0x2f94c9(0x274));_0x15cd2d[_0x2f94c9(0x1f6)](_0xca145b);const _0x1f86c3=_0x301341?_0x4804ca:_0x18d940,_0x2ab4fd={'code':_0xca145b,'type':_0x430b01,'required':_0x1f86c3[_0x2f94c9(0x207)]===!![]};if(RESERVED['has'](_0xca145b)||_0x1f86c3[_0x2f94c9(0x253)]===!![]||_0x1f86c3[_0x2f94c9(0x180)]===!![])_0x2ab4fd[_0x2f94c9(0x253)]=!![];_0x456dc8['push'](_0x2ab4fd);}return _0x456dc8;}async function checkArchive(_0x31d86a,_0x3a02b8){await new Promise((_0x4b0aa4,_0xf17892)=>{const _0x40eb03=a144_0x4295;a144_0x503fc8[_0x40eb03(0x191)](_0x31d86a,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x555515,_0x505faf)=>{const _0x3b914e=_0x40eb03;if(_0x555515||!_0x505faf){_0xf17892(_0x555515??new Error(_0x3b914e(0x186)));return;}let _0x599701;try{_0x599701=centralDirectoryEnd(_0x31d86a,_0x505faf);}catch(_0x92708a){_0x505faf[_0x3b914e(0x200)](),_0xf17892(_0x92708a);return;}let _0x2a1466=0x0,_0x1ff492=0x0,_0x1e6654=0x0,_0x2f9d22=0x0,_0x5d63bb=0x0,_0x2bbd0f=0x0,_0x3bc7c3=0x0,_0x35e747=0x0,_0x176a18=0x0,_0x46cc9b=![],_0x2505fa;const _0x5e4b85=new Set(),_0x272bbe=_0x1e6a70=>{const _0x5f1341=_0x3b914e;if(_0x46cc9b)return;_0x46cc9b=!![],_0x2505fa?.[_0x5f1341(0x189)](),_0x505faf[_0x5f1341(0x200)](),_0xf17892(_0x1e6a70);},_0x401640=(_0x469ffe,_0x5b1d48)=>{const _0x5ebd79=_0x3b914e;if(!_0x469ffe||!/^\d+$/[_0x5ebd79(0x203)](_0x469ffe))throw new Error(_0x5ebd79(0x195));const _0x4df29d=Number(_0x469ffe);if(!Number[_0x5ebd79(0x1cd)](_0x4df29d)||_0x4df29d<0x1||_0x4df29d>_0x5b1d48)throw new Error(_0x5ebd79(0x1b7)+_0x5b1d48+'.');return _0x4df29d;},_0x3090ec=(_0x242e9b,_0x4669a5=MAX_XML_COLUMNS)=>{const _0x2cfa1a=_0x3b914e,_0x483a1a=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2cfa1a(0x21b)](_0x242e9b);if(!_0x483a1a)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x3a6c64=0x0;for(const _0x4acd06 of _0x483a1a[0x1])_0x3a6c64=_0x3a6c64*0x1a+_0x4acd06[_0x2cfa1a(0x258)](0x0)-0x40;if(_0x3a6c64>_0x4669a5)throw new Error('Worksheet\x20exceeds\x20'+_0x4669a5+_0x2cfa1a(0x1d7));return{'row':_0x401640(_0x483a1a[0x2],MAX_XML_ROWS),'col':_0x3a6c64};},_0xe9c066=_0x5c253d=>{const _0x4441c5=_0x3b914e;if(_0x5c253d[_0x4441c5(0x244)]===_0x4441c5(0x1cb)||_0x5c253d['name']===_0x4441c5(0x243))return;for(const _0x398e9d of _0x5c253d[_0x4441c5(0x217)]){if(!ABSOLUTE_NAME_RANGE[_0x4441c5(0x203)](_0x398e9d['split']('!')[_0x4441c5(0x23e)]()||''))continue;const _0x45f5e0=nameCoordinates[_0x4441c5(0x22a)](_0x398e9d),_0x406e34=_0x4441c5(0x237)in _0x45f5e0,_0x397a42=_0x406e34?[_0x45f5e0[_0x4441c5(0x237)],_0x45f5e0[_0x4441c5(0x19e)]]:[_0x45f5e0[_0x4441c5(0x181)]],_0x48c977=_0x406e34?[_0x45f5e0[_0x4441c5(0x21d)],_0x45f5e0[_0x4441c5(0x19b)]]:[_0x45f5e0[_0x4441c5(0x182)]],_0x4b7846=(_0x5d6a2f,_0x3f15dc)=>Number['isSafeInteger'](_0x5d6a2f)&&_0x5d6a2f>=0x1&&_0x5d6a2f<=_0x3f15dc;if(!_0x397a42[_0x4441c5(0x1a4)](_0x402339=>_0x4b7846(_0x402339,MAX_XML_ROWS))||!_0x48c977[_0x4441c5(0x1a4)](_0x1512b5=>_0x4b7846(_0x1512b5,MAX_XML_COLUMNS)))throw new Error(_0x4441c5(0x25a));_0x3bc7c3+=_0x406e34?(_0x45f5e0[_0x4441c5(0x19e)]-_0x45f5e0['top']+0x1)*(_0x45f5e0[_0x4441c5(0x19b)]-_0x45f5e0['left']+0x1):0x1;if(_0x3bc7c3>MAX_ROWS)throw new Error(_0x4441c5(0x1e2));}};_0x505faf['on'](_0x3b914e(0x1ec),_0x272bbe),_0x505faf['on'](_0x3b914e(0x1f8),_0x2d90e7=>{const _0x3fc414=_0x3b914e;if(_0x46cc9b)return;if(++_0x1e6654>0x2710||(_0x2a1466+=_0x2d90e7[_0x3fc414(0x1de)])>MAX_EXPANDED){_0x272bbe(new Error(_0x3fc414(0x225)));return;}let _0xf17c87;try{_0xf17c87=consumerEntryName(_0x31d86a,_0x2d90e7);}catch(_0x46f3b5){_0x272bbe(_0x46f3b5);return;}if(_0xf17c87[_0x3fc414(0x1d8)]){_0x505faf['readEntry']();return;}const _0x57011e=_0xf17c87['name'];if(_0x3a02b8&&(_0x57011e!==_0xf17c87['original']||_0x5e4b85[_0x3fc414(0x193)](_0x57011e)||_0x57011e[_0x3fc414(0x265)]('/')||_0x57011e[_0x3fc414(0x1e9)]('\x5c'))){_0x272bbe(new Error(_0x3fc414(0x1f4)));return;}if(_0x57011e!==_0xf17c87[_0x3fc414(0x220)]&&(_0x57011e===_0x3fc414(0x269)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3fc414(0x203)](_0x57011e))){_0x272bbe(new Error(_0x3fc414(0x1c6)));return;}const _0x3bff96=_0x57011e===_0x3fc414(0x269);if(_0x3bff96&&_0x5e4b85[_0x3fc414(0x193)](_0x57011e)){_0x272bbe(new Error(_0x3fc414(0x256)));return;}_0x5e4b85['add'](_0x57011e);const _0x2910ec=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3fc414(0x203)](_0x57011e);if(_0x2910ec&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x3fc414(0x203)](_0x57011e)){_0x272bbe(new Error(_0x3fc414(0x1db)));return;}_0x505faf['openReadStream'](_0x2d90e7,(_0x471e83,_0x47b4f8)=>{const _0x46a5e5=_0x3fc414;if(_0x46cc9b){_0x47b4f8?.[_0x46a5e5(0x189)]();return;}if(_0x471e83||!_0x47b4f8){_0x272bbe(_0x471e83??new Error(_0x46a5e5(0x1fa)));return;}_0x2505fa=_0x47b4f8;const _0x285212=_0x3a02b8?[]:undefined,_0x43bb52=_0x3a02b8&&/[.](xml|rels)$/[_0x46a5e5(0x203)](_0x57011e)?new StringDecoder('utf8'):undefined,_0x48c24a=_0x43bb52?new SaxesParser({'xmlns':![]}):undefined,_0x25b203=()=>{const _0x1f503e=_0x46a5e5;if(++_0x176a18>0x1e8480)throw Error(_0x1f503e(0x26e));};_0x48c24a?.['on'](_0x46a5e5(0x1f5),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x48c24a?.['on']('opentag',()=>{_0x25b203();if(++_0x35e747>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x48c24a?.['on'](_0x46a5e5(0x190),_0x25b203),_0x48c24a?.['on'](_0x46a5e5(0x1b5),_0x25b203),_0x48c24a?.['on'](_0x46a5e5(0x1ec),_0x406e14=>{throw _0x406e14;});const _0x58a905=_0x2910ec||_0x3bff96?new StringDecoder(_0x46a5e5(0x1dc)):undefined,_0x123b7f=_0x2910ec||_0x3bff96?new SaxesParser({'xmlns':![]}):undefined;let _0x5937c1,_0x219cee=0x0,_0x1fa287=0x0,_0x4bcf62,_0x1762cc,_0x51d3bc=![],_0xd01af0=![],_0x15c3e1,_0x5e4763,_0x3b16d6,_0x3b0f0f=![];const _0x33c19d=[],_0x3009b3=new Set();let _0x482a98;const _0x3595f9=(_0x304990,_0x43d5be=0x0)=>{_0x5d63bb+=_0x43d5be+Math['max'](0x0,_0x304990-_0x1fa287),_0x1fa287=Math['max'](_0x1fa287,_0x304990);if(_0x5d63bb>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x123b7f?.['on'](_0x46a5e5(0x250),_0x4066a7=>{const _0x2ecd4d=_0x46a5e5;if(_0x3bff96){if(!_0x5937c1&&_0x4066a7['name']===_0x2ecd4d(0x1ae))_0x5937c1=new DefinedNameXform();_0x5937c1?.[_0x2ecd4d(0x210)](_0x4066a7);return;}if(_0x4066a7[_0x2ecd4d(0x244)]===_0x2ecd4d(0x181)){if(_0xd01af0)throw new Error(_0x2ecd4d(0x1fe));_0x401640(_0x4066a7[_0x2ecd4d(0x234)]['r'],MAX_XML_ROWS),_0x4bcf62=undefined,_0x3b16d6=undefined,_0x3b0f0f=![];}else{if(_0x4066a7[_0x2ecd4d(0x244)]==='c'){if(_0xd01af0)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0xd01af0=!![],_0x51d3bc=Boolean(Number[_0x2ecd4d(0x1df)](_0x4066a7[_0x2ecd4d(0x234)]['s']??'',0xa)),_0x482a98=undefined,_0x15c3e1=_0x4066a7[_0x2ecd4d(0x234)]['r']||undefined,_0x5e4763=_0x15c3e1?_0x3090ec(_0x15c3e1):undefined;if(_0x5e4763)_0x1762cc=_0x5e4763;else _0x1762cc=_0x4bcf62?{'row':_0x4bcf62['row'],'col':_0x4bcf62[_0x2ecd4d(0x182)]+0x1}:undefined;}else{if(_0xd01af0&&['f','v','t'][_0x2ecd4d(0x1e9)](_0x4066a7[_0x2ecd4d(0x244)])){_0x482a98=_0x4066a7[_0x2ecd4d(0x244)];if(_0x4066a7[_0x2ecd4d(0x244)]==='f'&&_0x4066a7[_0x2ecd4d(0x234)]['t'])_0x51d3bc=!![];}else{if(_0xd01af0&&_0x4066a7['name']==='r')_0x51d3bc=!![];else{if(_0x4066a7[_0x2ecd4d(0x244)]===_0x2ecd4d(0x1a8)){const _0x126c1d=_0x4066a7[_0x2ecd4d(0x234)][_0x2ecd4d(0x1e1)];if(!_0x126c1d)throw new Error(_0x2ecd4d(0x1d4));const _0x42c230=_0x126c1d[_0x2ecd4d(0x277)](':');if(_0x42c230[_0x2ecd4d(0x1f7)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1e0ee3=_0x3090ec(_0x42c230[0x0]),_0x4e3a32=_0x3090ec(_0x42c230[0x1]??_0x42c230[0x0]);_0x3009b3[_0x2ecd4d(0x1f6)](_0x126c1d),_0x3595f9(Math[_0x2ecd4d(0x249)](_0x1e0ee3[_0x2ecd4d(0x182)],_0x4e3a32[_0x2ecd4d(0x182)]),0x1);}else{if(_0x4066a7['name']==='col'){const _0x54aa5e=_0x401640(_0x4066a7['attributes']['min'],0x4000),_0x22f014=_0x401640(_0x4066a7['attributes'][_0x2ecd4d(0x249)],0x4000);if(_0x54aa5e>_0x22f014)throw new Error(_0x2ecd4d(0x19f));_0x3595f9(_0x22f014,0x1);}else{if(_0x4066a7[_0x2ecd4d(0x244)]===_0x2ecd4d(0x188)){const _0x3dd309=_0x4066a7[_0x2ecd4d(0x234)][_0x2ecd4d(0x1e1)];if(!_0x3dd309)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0xbf3cc=_0x3dd309['split'](':');if(_0xbf3cc[_0x2ecd4d(0x1f7)]>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x1f95d8=_0x3090ec(_0xbf3cc[0x0]),_0x3f11e9=_0x3090ec(_0xbf3cc[0x1]??_0xbf3cc[0x0]);_0x3595f9(Math[_0x2ecd4d(0x249)](_0x1f95d8[_0x2ecd4d(0x182)],_0x3f11e9[_0x2ecd4d(0x182)]));const _0x13fdb5=(Math[_0x2ecd4d(0x24b)](_0x3f11e9[_0x2ecd4d(0x181)]-_0x1f95d8['row'])+0x1)*(Math[_0x2ecd4d(0x24b)](_0x3f11e9[_0x2ecd4d(0x182)]-_0x1f95d8[_0x2ecd4d(0x182)])+0x1);_0x2f9d22+=_0x13fdb5+_0x219cee++;if(_0x2f9d22>MAX_ROWS)throw new Error(_0x2ecd4d(0x1fd));}}}}}}}}),_0x123b7f?.['on']('text',_0x44336e=>{const _0x32bf5b=_0x46a5e5;if(_0x3bff96){_0x5937c1?.[_0x32bf5b(0x1ed)](_0x44336e);return;}if(_0xd01af0&&_0x482a98&&_0x44336e)_0x51d3bc=!![];}),_0x123b7f?.['on'](_0x46a5e5(0x1b5),_0x16f559=>{const _0x1f8d6c=_0x46a5e5;if(_0x3bff96){_0x5937c1&&!_0x5937c1[_0x1f8d6c(0x26a)]()&&(_0xe9c066(_0x5937c1[_0x1f8d6c(0x272)]),_0x5937c1=undefined);return;}if(_0x16f559[_0x1f8d6c(0x244)]==='c'){!_0x51d3bc&&_0x15c3e1&&!_0x3b16d6&&(_0x3b16d6={'before':_0x4bcf62,'cells':[]});if(_0x3b16d6){if(++_0x2bbd0f>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0x3b16d6['cells'][_0x1f8d6c(0x231)]({'reference':_0x15c3e1,'address':_0x5e4763,'materialized':_0x51d3bc});if(!_0x15c3e1&&_0x51d3bc)_0x3b0f0f=!![];}if(_0x51d3bc){if(!_0x3b16d6||_0x15c3e1){if(!_0x1762cc)throw new Error(_0x1f8d6c(0x20b));if(_0x1762cc[_0x1f8d6c(0x182)]>MAX_XML_COLUMNS)throw new Error(_0x1f8d6c(0x22b));_0x3595f9(_0x1762cc[_0x1f8d6c(0x182)]);}_0x4bcf62=_0x1762cc;}_0xd01af0=![],_0x1762cc=undefined,_0x15c3e1=undefined,_0x5e4763=undefined,_0x482a98=undefined;}else{if(_0x16f559[_0x1f8d6c(0x244)]===_0x1f8d6c(0x181)){if(_0x3b16d6&&_0x3b0f0f)_0x33c19d[_0x1f8d6c(0x231)](_0x3b16d6);_0x3b16d6=undefined,_0x3b0f0f=![];}else{if(_0x16f559[_0x1f8d6c(0x244)]===_0x482a98)_0x482a98=undefined;}}}),_0x123b7f?.['on'](_0x46a5e5(0x1ec),_0xc4efd1=>{const _0x2171aa=_0x46a5e5;throw new Error(_0x2171aa(0x1a3)+_0xc4efd1[_0x2171aa(0x18d)]);}),_0x47b4f8['on']('error',_0x272bbe),_0x47b4f8['on'](_0x46a5e5(0x1d3),_0x3d5668=>{const _0x12293a=_0x46a5e5;if(_0x46cc9b)return;_0x1ff492+=_0x3d5668[_0x12293a(0x1f7)],_0x285212?.['push'](_0x3d5668);if(_0x1ff492>MAX_EXPANDED){_0x272bbe(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x48c24a&&_0x43bb52)_0x48c24a[_0x12293a(0x18b)](_0x43bb52['write'](_0x3d5668));if(_0x123b7f&&_0x58a905)_0x123b7f[_0x12293a(0x18b)](_0x58a905[_0x12293a(0x18b)](_0x3d5668));}catch(_0x183ebf){_0x272bbe(_0x183ebf instanceof Error?_0x183ebf:new Error(_0x12293a(0x22e)));}}),_0x47b4f8['on'](_0x46a5e5(0x26d),()=>{const _0xa4b293=_0x46a5e5;if(_0x46cc9b)return;try{if(_0x48c24a&&_0x43bb52)_0x48c24a['write'](_0x43bb52[_0xa4b293(0x26d)]())['close']();if(_0x123b7f&&_0x58a905)_0x123b7f[_0xa4b293(0x18b)](_0x58a905[_0xa4b293(0x26d)]())[_0xa4b293(0x200)]();for(const _0x1f212b of _0x33c19d){let _0x1e90f6=_0x1f212b['before'];for(const _0x5daef1 of _0x1f212b[_0xa4b293(0x1d1)]){if(!_0x5daef1[_0xa4b293(0x198)]&&!(_0x5daef1[_0xa4b293(0x248)]&&_0x3009b3[_0xa4b293(0x193)](_0x5daef1[_0xa4b293(0x248)])))continue;const _0x3fcddd=_0x5daef1['address']??(_0x1e90f6?{'row':_0x1e90f6[_0xa4b293(0x181)],'col':_0x1e90f6['col']+0x1}:undefined);if(!_0x3fcddd)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x3fcddd[_0xa4b293(0x182)]>MAX_XML_COLUMNS)throw new Error(_0xa4b293(0x22b));_0x3595f9(_0x3fcddd[_0xa4b293(0x182)]),_0x1e90f6=_0x3fcddd;}}_0x33c19d[_0xa4b293(0x1f7)]=0x0,_0x3009b3[_0xa4b293(0x204)]();}catch(_0x3c99ef){_0x272bbe(_0x3c99ef instanceof Error?_0x3c99ef:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x285212)_0x3a02b8[_0xa4b293(0x187)](_0x57011e,Buffer[_0xa4b293(0x219)](_0x285212));_0x2505fa=undefined,_0x505faf[_0xa4b293(0x1e6)]();});});}),_0x505faf['on'](_0x3b914e(0x26d),()=>{const _0x5472b7=_0x3b914e;if(_0x46cc9b)return;if(_0x505faf[_0x5472b7(0x196)]!==_0x599701){_0xf17892(new Error(_0x5472b7(0x223)));return;}if(!_0x5e4b85[_0x5472b7(0x193)](_0x5472b7(0x1ff))||!_0x5e4b85['has'](_0x5472b7(0x269)))_0xf17892(new Error(_0x5472b7(0x213)));else _0x4b0aa4();}),_0x505faf[_0x3b914e(0x1e6)]();});});}function a144_0x4295(_0x1c866d,_0xfccf1f){_0x1c866d=_0x1c866d-0x180;const _0x22e156=a144_0x22e1();let _0x4295b2=_0x22e156[_0x1c866d];return _0x4295b2;}function valueOf(_0x1b57cb){const _0x5480e0=a144_0x4e3367,_0x7ef861=_0x1b57cb[_0x5480e0(0x202)];if(_0x7ef861&&typeof _0x7ef861===_0x5480e0(0x228)&&(_0x5480e0(0x1e0)in _0x7ef861||_0x5480e0(0x235)in _0x7ef861)){if(!('result'in _0x7ef861)||_0x7ef861[_0x5480e0(0x1ab)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x7ef861['result'];}return _0x7ef861;}function convert(_0x26a5b6,_0x3b0b06){const _0x29bc26=a144_0x4e3367;if(_0x26a5b6===null||_0x26a5b6===undefined||_0x26a5b6===''){if(_0x3b0b06[_0x29bc26(0x207)]&&!_0x3b0b06[_0x29bc26(0x253)])throw new Error(_0x29bc26(0x1d9));return null;}if(typeof _0x26a5b6==='string'&&Buffer[_0x29bc26(0x194)](_0x26a5b6,_0x29bc26(0x1dc))>MAX_CELL)throw new Error(_0x29bc26(0x1cc));switch(_0x3b0b06[_0x29bc26(0x1bb)][_0x29bc26(0x260)]()){case _0x29bc26(0x1ad):case'text':case'textarea':if(typeof _0x26a5b6!==_0x29bc26(0x1ad))throw new Error('Expected\x20a\x20text\x20cell.');return _0x26a5b6;case _0x29bc26(0x1fc):case _0x29bc26(0x1d2):case'integer':if(typeof _0x26a5b6!==_0x29bc26(0x1fc)||!Number[_0x29bc26(0x222)](_0x26a5b6)||Math[_0x29bc26(0x24b)](_0x26a5b6)>Number[_0x29bc26(0x1f2)]||_0x3b0b06['type']['toLowerCase']()===_0x29bc26(0x1ce)&&!Number[_0x29bc26(0x1c5)](_0x26a5b6))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x26a5b6;case _0x29bc26(0x1b6):if(typeof _0x26a5b6!==_0x29bc26(0x1b6))throw new Error(_0x29bc26(0x18e));return _0x26a5b6;case _0x29bc26(0x1b2):case _0x29bc26(0x218):if(!(_0x26a5b6 instanceof Date)||!Number[_0x29bc26(0x222)](_0x26a5b6[_0x29bc26(0x1b8)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x26a5b6['getTime']();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x3b0b06['type']+'.');}}export async function buildExcelManifest(_0x2c22cf){const _0x456f95=a144_0x4e3367,_0x36c2c8=_0x2c22cf[_0x456f95(0x20e)]??0x1;if(!Number[_0x456f95(0x1c5)](_0x36c2c8)||_0x36c2c8<0x1||_0x36c2c8>MAX_ROWS)throw new Error(_0x456f95(0x1b0));if(_0x2c22cf[_0x456f95(0x183)]!==undefined&&(!Number[_0x456f95(0x1c5)](_0x2c22cf[_0x456f95(0x183)])||_0x2c22cf[_0x456f95(0x183)]<0x1||_0x2c22cf[_0x456f95(0x183)]>0x3e8))throw new Error(_0x456f95(0x20c));if(a144_0x33c664[_0x456f95(0x26b)](_0x2c22cf[_0x456f95(0x1e7)])[_0x456f95(0x260)]()!==_0x456f95(0x18c))throw new Error(_0x456f95(0x18f));const _0x298441=await stat(_0x2c22cf[_0x456f95(0x1e7)]);if(!_0x298441['isFile']()||_0x298441['size']>MAX_FILE)throw new Error(_0x456f95(0x1b1));const _0x2c9b63=await readFile(_0x2c22cf[_0x456f95(0x1e7)]);if(_0x2c9b63['length']>MAX_FILE)throw new Error(_0x456f95(0x270));const _0x40ed54=_0x2c22cf[_0x456f95(0x227)][_0x456f95(0x211)](_0x5d5398=>isImageContainer(_0x5d5398[_0x456f95(0x1bb)])&&Object[_0x456f95(0x20f)](_0x2c22cf[_0x456f95(0x23d)])[_0x456f95(0x1e9)](_0x5d5398['code']))?new Map():undefined;await checkArchive(_0x2c9b63,_0x40ed54);const _0xcc033b=new a144_0x3ee8b0['Workbook']();await _0xcc033b[_0x456f95(0x242)][_0x456f95(0x24c)](_0x2c9b63,{'ignoreNodes':[_0x456f95(0x1f1)]});const _0x43dcdb=_0x2c22cf[_0x456f95(0x232)];let _0x518e39;if(_0x43dcdb===undefined)_0x518e39=_0xcc033b['worksheets'][0x0];else{if(typeof _0x43dcdb===_0x456f95(0x1ad)&&_0xcc033b[_0x456f95(0x19a)][_0x456f95(0x211)](_0x4e0729=>_0x4e0729[_0x456f95(0x244)]===_0x43dcdb))_0x518e39=_0xcc033b[_0x456f95(0x19a)][_0x456f95(0x1ef)](_0x2540ea=>_0x2540ea[_0x456f95(0x244)]===_0x43dcdb);else{if(typeof _0x43dcdb==='number'||/^\d+$/[_0x456f95(0x203)](_0x43dcdb)){const _0x5ddcd1=Number(_0x43dcdb);if(!Number[_0x456f95(0x1c5)](_0x5ddcd1)||_0x5ddcd1<0x1)throw new Error(_0x456f95(0x208));_0x518e39=_0xcc033b['worksheets'][_0x5ddcd1-0x1];}else _0x518e39=_0xcc033b[_0x456f95(0x19a)][_0x456f95(0x1ef)](_0x9ca3a4=>_0x9ca3a4['name']===_0x43dcdb);}}if(!_0x518e39)throw new Error(_0x456f95(0x1a2));if(_0x518e39['rowCount']>MAX_ROWS||_0x518e39['columnCount']>MAX_COLUMNS)throw new Error(_0x456f95(0x20a));if((_0x518e39[_0x456f95(0x272)]['merges']??[])[_0x456f95(0x1f7)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x3e7d06=new Map();_0x518e39['getRow'](_0x36c2c8)[_0x456f95(0x205)]((_0x4e1db8,_0x41d854)=>{const _0x5d3fc2=_0x456f95,_0x82e937=valueOf(_0x4e1db8);if(typeof _0x82e937!==_0x5d3fc2(0x1ad)||!_0x82e937[_0x5d3fc2(0x1be)]()||Buffer[_0x5d3fc2(0x194)](_0x82e937)>MAX_CELL)throw new Error(_0x5d3fc2(0x1d6));if(_0x3e7d06[_0x5d3fc2(0x193)](_0x82e937))throw new Error(_0x5d3fc2(0x230)+_0x82e937+'.');_0x3e7d06['set'](_0x82e937,_0x41d854);});const _0x5e169d=Object[_0x456f95(0x1e3)](_0x2c22cf['mapping']);if(!_0x5e169d['length'])throw new Error('Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.');const _0x1b971a=new Map(_0x2c22cf[_0x456f95(0x227)][_0x456f95(0x1dd)](_0x40c67a=>[_0x40c67a[_0x456f95(0x240)],_0x40c67a]));if(_0x1b971a[_0x456f95(0x1a6)]!==_0x2c22cf[_0x456f95(0x227)][_0x456f95(0x1f7)])throw new Error(_0x456f95(0x273));if(_0x2c22cf[_0x456f95(0x227)]['some'](_0x740f4f=>_0x740f4f[_0x456f95(0x1bb)][_0x456f95(0x260)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x29f4fa=new Set();for(const [_0x5a0524,_0xb14ede]of _0x5e169d){const _0x19984d=_0x1b971a[_0x456f95(0x236)](_0xb14ede);if(!_0x3e7d06[_0x456f95(0x193)](_0x5a0524))throw new Error(_0x456f95(0x19d)+_0x5a0524+'.');if(!_0x19984d||RESERVED[_0x456f95(0x193)](_0xb14ede)||_0x19984d[_0x456f95(0x253)])throw new Error(_0x456f95(0x21a)+_0xb14ede+'.');if(_0x29f4fa[_0x456f95(0x193)](_0xb14ede))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0xb14ede+'.');if(!TYPES[_0x456f95(0x193)](_0x19984d[_0x456f95(0x1bb)]['toLowerCase']()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x19984d[_0x456f95(0x1bb)]+'.');_0x29f4fa[_0x456f95(0x1f6)](_0xb14ede);}for(const _0x1efc11 of _0x2c22cf['fields']){if(_0x1efc11[_0x456f95(0x207)]&&!_0x1efc11[_0x456f95(0x253)]&&!RESERVED[_0x456f95(0x193)](_0x1efc11[_0x456f95(0x240)])&&!_0x29f4fa[_0x456f95(0x193)](_0x1efc11[_0x456f95(0x240)]))throw new Error(_0x456f95(0x276)+_0x1efc11[_0x456f95(0x240)]+'.');}const _0x4facb0={'fileHash':hash(_0x2c9b63),'mappingHash':hash(JSON[_0x456f95(0x214)]([..._0x5e169d][_0x456f95(0x233)](([_0x419121],[_0x2f55c3])=>_0x419121[_0x456f95(0x221)](_0x2f55c3)))),'schemaHash':hash(JSON[_0x456f95(0x214)]([..._0x2c22cf[_0x456f95(0x227)]]['sort']((_0x24a608,_0x1e3a02)=>_0x24a608[_0x456f95(0x240)][_0x456f95(0x221)](_0x1e3a02['code'])))),'sheet':_0x518e39[_0x456f95(0x244)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x557596=_0x5e169d['filter'](([,_0x7c7327])=>isImageContainer(_0x1b971a['get'](_0x7c7327)[_0x456f95(0x1bb)])),_0x46b174=_0x557596[_0x456f95(0x1d5)](([,_0x41fd31])=>_0x1b971a[_0x456f95(0x236)](_0x41fd31)[_0x456f95(0x1bb)][_0x456f95(0x260)]()===_0x456f95(0x23c))['map'](([,_0xae1d59])=>_0xae1d59);if(_0x46b174[_0x456f95(0x1f7)])_0x4facb0[_0x456f95(0x23a)]=_0x46b174;const _0x50d675=_0x40ed54?resolveWorksheetImages(_0x40ed54,_0x518e39[_0x456f95(0x244)],new Set(_0x557596[_0x456f95(0x1dd)](([_0x5099ae])=>_0x3e7d06[_0x456f95(0x236)](_0x5099ae)))):[],_0x22eddd=new Map();for(const _0x195b12 of _0x50d675){const _0x24d377=_0x195b12['row']+':'+_0x195b12[_0x456f95(0x182)],_0xf3320b=_0x22eddd[_0x456f95(0x236)](_0x24d377)??[];_0xf3320b[_0x456f95(0x231)](_0x195b12),_0x22eddd['set'](_0x24d377,_0xf3320b);}const _0x419f2e=new Map();let _0x58899f=0x0;_0x557596[_0x456f95(0x1f7)]&&(_0x4facb0[_0x456f95(0x1ee)]=_0x557596[_0x456f95(0x1dd)](([,_0x110d85])=>_0x110d85),_0x4facb0[_0x456f95(0x20d)]=[],_0x4facb0[_0x456f95(0x1eb)]=0x1,_0x4facb0['media']=[]);const _0x5f0abb=Math['max'](0x0,..._0x50d675[_0x456f95(0x1dd)](_0x195af4=>_0x195af4[_0x456f95(0x181)]));let _0x452a59=0x0;const _0x3132c6=new Set(_0x5e169d['map'](([_0x5c60ce])=>_0x3e7d06[_0x456f95(0x236)](_0x5c60ce)));for(let _0x401512=_0x36c2c8+0x1;_0x401512<=Math[_0x456f95(0x249)](_0x518e39[_0x456f95(0x224)],_0x5f0abb);_0x401512++){const _0x179f3f=_0x518e39[_0x456f95(0x254)](_0x401512);if(_0x179f3f[_0x456f95(0x1a7)]||_0x50d675[_0x456f95(0x211)](_0x2d2aee=>_0x2d2aee[_0x456f95(0x181)]===_0x401512&&_0x2d2aee['hiddenRow']))_0x452a59++;let _0x1f8273=_0x50d675[_0x456f95(0x211)](_0x290fc0=>_0x290fc0[_0x456f95(0x181)]===_0x401512);_0x179f3f[_0x456f95(0x205)](_0x2ab64c=>{const _0x56bed5=_0x456f95;if(_0x2ab64c[_0x56bed5(0x202)]!==null&&_0x2ab64c[_0x56bed5(0x202)]!==undefined&&_0x2ab64c[_0x56bed5(0x202)]!=='')_0x1f8273=!![];});if(!_0x1f8273){_0x4facb0['emptyRows']['push'](_0x401512);continue;}const _0x4a3dab=Object[_0x456f95(0x266)](null);_0x179f3f[_0x456f95(0x205)]((_0x41424a,_0x3f87c3)=>{const _0x4bde1c=_0x456f95;if(_0x3132c6[_0x4bde1c(0x193)](_0x3f87c3))return;try{const _0x139dad=valueOf(_0x41424a);if(typeof _0x139dad===_0x4bde1c(0x1ad)&&Buffer['byteLength'](_0x139dad,_0x4bde1c(0x1dc))>MAX_CELL)throw new Error(_0x4bde1c(0x1cc));}catch(_0x323f81){_0x4facb0[_0x4bde1c(0x268)][_0x4bde1c(0x231)]({'rowNumber':_0x401512,'field':_0x41424a[_0x4bde1c(0x1c1)],'message':_0x323f81[_0x4bde1c(0x18d)]});}});for(const [_0x2e334e,_0x2381a7]of _0x5e169d){try{const _0x57b34d=_0x179f3f[_0x456f95(0x199)](_0x3e7d06[_0x456f95(0x236)](_0x2e334e)),_0x48b710=_0x1b971a[_0x456f95(0x236)](_0x2381a7);if(!isImageContainer(_0x48b710[_0x456f95(0x1bb)])){_0x4a3dab[_0x2381a7]=convert(valueOf(_0x57b34d),_0x48b710);continue;}const _0x288bd6=_0x22eddd[_0x456f95(0x236)](_0x401512+':'+_0x3e7d06['get'](_0x2e334e))??[];if(_0x288bd6['some'](_0x23ada7=>_0x23ada7[_0x456f95(0x1ec)]))throw Error(_0x288bd6[_0x456f95(0x1ef)](_0x35626a=>_0x35626a['error'])[_0x456f95(0x1ec)]);if(_0x57b34d[_0x456f95(0x202)]!=null&&_0x57b34d[_0x456f95(0x202)]!==''&&!_0x288bd6[_0x456f95(0x211)](_0x1449f5=>_0x1449f5[_0x456f95(0x25e)]))throw Error(_0x456f95(0x1a9));const _0x3eede3=[];for(const _0x36fab4 of _0x288bd6)for(const _0x401bd4 of _0x36fab4[_0x456f95(0x24d)]){const _0x464120=_0x40ed54[_0x456f95(0x236)](_0x401bd4);if(!_0x464120)throw Error('Missing\x20image\x20media:\x20'+_0x401bd4+'.');const _0x195505=hash(_0x464120),_0x1ad90e=_0x419f2e[_0x456f95(0x236)](_0x195505)??validateImageBytes(_0x464120);if(!_0x419f2e[_0x456f95(0x193)](_0x1ad90e[_0x456f95(0x247)])){_0x58899f+=_0x1ad90e[_0x456f95(0x1a6)];if(_0x58899f>0x32*0x400*0x400)throw Error(_0x456f95(0x275));_0x419f2e[_0x456f95(0x187)](_0x1ad90e[_0x456f95(0x247)],_0x1ad90e);}_0x3eede3['push'](_0x1ad90e[_0x456f95(0x247)]);}if(!_0x3eede3['length']&&_0x48b710[_0x456f95(0x207)])throw Error(_0x456f95(0x264));if(_0x3eede3[_0x456f95(0x1f7)])_0x4facb0[_0x456f95(0x20d)]['push']({'rowNumber':_0x401512,'field':_0x2381a7,'hashes':_0x3eede3});_0x4a3dab[_0x2381a7]=_0x3eede3['map'](_0x2ee247=>{const _0x62e54b=_0x456f95,_0x111e0a=_0x419f2e['get'](_0x2ee247),_0xd89abf=_0x111e0a[_0x62e54b(0x1bb)]==='image/jpeg'?_0x62e54b(0x19c):_0x111e0a['type'][_0x62e54b(0x24e)](0x6),_0x5ac8ed=_0x2ee247+'.'+_0xd89abf,_0x588136=_0x62e54b(0x241)+'0'[_0x62e54b(0x1f0)](0x40)+'/'+_0x5ac8ed;return _0x48b710[_0x62e54b(0x1bb)][_0x62e54b(0x260)]()===_0x62e54b(0x23c)?{'fileName':_0x5ac8ed,'filePath':_0x588136}:{'key':_0x588136,'name':_0x5ac8ed,'type':_0x111e0a[_0x62e54b(0x1bb)],'size':_0x111e0a[_0x62e54b(0x1a6)]};});}catch(_0x197565){_0x4facb0['errors']['push']({'rowNumber':_0x401512,'field':_0x2381a7,'message':_0x197565[_0x456f95(0x18d)]});}}_0x4facb0[_0x456f95(0x267)][_0x456f95(0x231)]({'rowNumber':_0x401512,'values':_0x4a3dab});}if(_0x4facb0['media'])_0x4facb0[_0x456f95(0x24d)]=[..._0x419f2e['values']()];if(_0x452a59)_0x4facb0[_0x456f95(0x239)][_0x456f95(0x231)](_0x452a59+_0x456f95(0x229));return _0x4facb0;}
|
|
1
|
+
const a144_0x538df5=a144_0x2cb2;(function(_0x42426a,_0x4c4e13){const _0x8f2446=a144_0x2cb2,_0x45f8e1=_0x42426a();while(!![]){try{const _0xa77046=-parseInt(_0x8f2446(0x101))/0x1+parseInt(_0x8f2446(0xe4))/0x2+-parseInt(_0x8f2446(0x123))/0x3*(parseInt(_0x8f2446(0x17c))/0x4)+-parseInt(_0x8f2446(0xef))/0x5*(-parseInt(_0x8f2446(0x124))/0x6)+-parseInt(_0x8f2446(0x1ad))/0x7*(parseInt(_0x8f2446(0x1b3))/0x8)+-parseInt(_0x8f2446(0xcd))/0x9*(parseInt(_0x8f2446(0xdf))/0xa)+-parseInt(_0x8f2446(0x197))/0xb*(-parseInt(_0x8f2446(0x13b))/0xc);if(_0xa77046===_0x4c4e13)break;else _0x45f8e1['push'](_0x45f8e1['shift']());}catch(_0x5f755e){_0x45f8e1['push'](_0x45f8e1['shift']());}}}(a144_0xce79,0x24e4c));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1322a2 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';function a144_0x2cb2(_0x11c038,_0x2ddf76){_0x11c038=_0x11c038-0xc7;const _0xce7900=a144_0xce79();let _0x2cb29f=_0xce7900[_0x11c038];return _0x2cb29f;}import{SaxesParser}from'saxes';import a144_0x3f955b from'exceljs';import a144_0x332c52 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_0x538df5(0x168),a144_0x538df5(0x158),'datasetId',a144_0x538df5(0x170),a144_0x538df5(0xf3),a144_0x538df5(0x102),'modifierName',a144_0x538df5(0x193),a144_0x538df5(0x175),a144_0x538df5(0x16c)]),TYPES=new Set(['string',a144_0x538df5(0xfb),a144_0x538df5(0x169),a144_0x538df5(0x14d),'decimal',a144_0x538df5(0x167),a144_0x538df5(0x11b),'date',a144_0x538df5(0x11c),a144_0x538df5(0xf9),a144_0x538df5(0x110)]),isImageContainer=_0x52a4c3=>['image',a144_0x538df5(0x110)][a144_0x538df5(0x1a8)](_0x52a4c3[a144_0x538df5(0x19c)]()),hash=_0x26c8b0=>createHash(a144_0x538df5(0x1a7))[a144_0x538df5(0x1a9)](_0x26c8b0)[a144_0x538df5(0x10c)](a144_0x538df5(0x105)),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require(a144_0x538df5(0xd7)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x538df5(0xfc)](a144_0x538df5(0xd1))),zipRequire=createRequire(excelRequire[a144_0x538df5(0xfc)]('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x538df5(0x19d)),zipUtf8=zipRequire(a144_0x538df5(0x194)),zipPaths=zipRequire('./utils');function centralDirectoryEnd(_0x5505ac,_0x1b76fc){const _0x6cb06c=a144_0x538df5,_0x400bcb=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x4e4549=_0x5505ac[_0x6cb06c(0x182)](Buffer[_0x6cb06c(0x143)]([0x50,0x4b,0x5,0x6]));if(_0x4e4549<0x0||_0x4e4549+0x16>_0x5505ac[_0x6cb06c(0x14f)]||_0x4e4549+0x16+_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+0x14)!==_0x5505ac[_0x6cb06c(0x14f)])throw _0x400bcb();let _0x2892ec=_0x5505ac['readUInt16LE'](_0x4e4549+0xa),_0x4d0bc1=_0x5505ac[_0x6cb06c(0xe1)](_0x4e4549+0xc),_0x2b766e=_0x5505ac[_0x6cb06c(0xe1)](_0x4e4549+0x10),_0x150547=_0x4e4549;const _0x3b4801=_0x4e4549-0x14,_0x5c91f4=_0x3b4801>=0x0&&_0x5505ac['readUInt32LE'](_0x3b4801)===0x7064b50,_0x3e16cc=[0x4,0x6,0x8,0xa][_0x6cb06c(0x1b8)](_0x2eb951=>_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+_0x2eb951)===0xffff)||_0x4d0bc1===0xffffffff||_0x2b766e===0xffffffff;if(_0x5c91f4!==_0x3e16cc)throw _0x400bcb();if(_0x5c91f4){if(_0x5505ac[_0x6cb06c(0x182)](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0x3b4801)throw _0x400bcb();const _0x4ab2c9=_0x26671b=>{const _0x15d969=Number(_0x5505ac['readBigUInt64LE'](_0x26671b));if(!Number['isSafeInteger'](_0x15d969))throw _0x400bcb();return _0x15d969;};_0x150547=_0x4ab2c9(_0x3b4801+0x8);if(_0x5505ac[_0x6cb06c(0xe1)](_0x3b4801+0x4)!==0x0||_0x5505ac[_0x6cb06c(0xe1)](_0x3b4801+0x10)!==0x1||_0x150547>_0x3b4801-0x38||_0x5505ac[_0x6cb06c(0xe1)](_0x150547)!==0x6064b50||_0x4ab2c9(_0x150547+0x4)!==0x2c||_0x150547+0x38!==_0x3b4801||_0x5505ac[_0x6cb06c(0xe1)](_0x150547+0x10)!==0x0||_0x5505ac[_0x6cb06c(0xe1)](_0x150547+0x14)!==0x0)throw _0x400bcb();_0x2892ec=_0x4ab2c9(_0x150547+0x20),_0x4d0bc1=_0x4ab2c9(_0x150547+0x28),_0x2b766e=_0x4ab2c9(_0x150547+0x30);if(_0x4ab2c9(_0x150547+0x18)!==_0x2892ec)throw _0x400bcb();}else{if(_0x5505ac['readUInt16LE'](_0x4e4549+0x4)!==0x0||_0x5505ac['readUInt16LE'](_0x4e4549+0x6)!==0x0||_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+0x8)!==_0x2892ec)throw _0x400bcb();}const _0x5b8fa8=_0x1b76fc['readEntryCursor'];if(_0x2b766e!==_0x5b8fa8||_0x2892ec!==_0x1b76fc[_0x6cb06c(0x104)]||_0x2b766e+_0x4d0bc1!==_0x150547)throw _0x400bcb();return _0x150547;}function consumerEntryName(_0x5ddf5a,_0x50b835){const _0x4f6860=a144_0x538df5;if(_0x50b835[_0x4f6860(0x199)][_0x4f6860(0xcc)](_0x14c4af=>_0x14c4af['id']===0x1)[_0x4f6860(0x14f)]>0x1)throw new Error(_0x4f6860(0x160));const _0x2298b5=_0x50b835,_0x312e53=_0x50b835[_0x4f6860(0xd3)];if(!Buffer['isBuffer'](_0x2298b5['fileNameRaw'])||!Buffer['isBuffer'](_0x2298b5['extraFieldRaw'])||!Buffer['isBuffer'](_0x2298b5['fileCommentRaw'])||!Number[_0x4f6860(0x155)](_0x312e53)||_0x312e53<0x0||_0x312e53>_0x5ddf5a[_0x4f6860(0x14f)]-0x1e||_0x5ddf5a[_0x4f6860(0xe1)](_0x312e53)!==0x4034b50)throw new Error(_0x4f6860(0xee));const _0x211cb0=_0x312e53+0x1e+_0x5ddf5a[_0x4f6860(0x177)](_0x312e53+0x1a),_0x5c8b64=_0x211cb0+_0x5ddf5a['readUInt16LE'](_0x312e53+0x1c)+_0x50b835[_0x4f6860(0x190)];if(!Number['isSafeInteger'](_0x5c8b64)||_0x5c8b64>_0x5ddf5a[_0x4f6860(0x14f)])throw new Error(_0x4f6860(0xee));if(_0x211cb0>_0x5ddf5a['length']||!_0x5ddf5a['subarray'](_0x312e53+0x1e,_0x211cb0)[_0x4f6860(0x122)](_0x2298b5[_0x4f6860(0x132)]))throw new Error(_0x4f6860(0xf0));const _0x2a9a14=new ZipEntry({},{'decodeFileName':zipUtf8[_0x4f6860(0xf1)]});_0x2a9a14[_0x4f6860(0xe8)]=_0x50b835[_0x4f6860(0xd5)],_0x2a9a14['fileName']=_0x2298b5['fileNameRaw'],_0x2a9a14[_0x4f6860(0x1b7)]=_0x2298b5[_0x4f6860(0x18b)],_0x2a9a14[_0x4f6860(0x165)]=_0x2298b5[_0x4f6860(0x17e)][_0x4f6860(0x14f)],_0x2a9a14[_0x4f6860(0x16a)](zipReader(_0x2298b5[_0x4f6860(0x17e)])),_0x2a9a14['handleUTF8'](),_0x2a9a14[_0x4f6860(0x107)]=_0x50b835[_0x4f6860(0x107)],_0x2a9a14[_0x4f6860(0x15d)]=_0x50b835['externalFileAttributes'],_0x2a9a14[_0x4f6860(0x1a1)]();const _0x48eaf8=_0x2a9a14['dir']||Boolean((_0x2a9a14[_0x4f6860(0x139)]??0x0)&0x4000),_0x4a9e47=zipPaths['resolve'](_0x2a9a14['fileNameStr']),_0x38da4a=_0x4a9e47['startsWith']('/')?_0x4a9e47[_0x4f6860(0x153)](0x1):_0x4a9e47;return{'name':_0x38da4a,'original':_0x2a9a14['fileNameStr'],'directory':_0x48eaf8};}export function normalizeImportFields(_0x30b9ed){const _0x48f7dc=a144_0x538df5;if(!_0x30b9ed||(_0x30b9ed[_0x48f7dc(0x141)]??_0x30b9ed[_0x48f7dc(0x15b)]?.[_0x48f7dc(0x186)])!==_0x48f7dc(0xf6))throw new Error(_0x48f7dc(0xf7));const _0x55b151=Array[_0x48f7dc(0x1b9)](_0x30b9ed[_0x48f7dc(0xde)]),_0x5c4d2a=_0x55b151?_0x30b9ed['fields']:_0x30b9ed[_0x48f7dc(0x178)];if(!Array[_0x48f7dc(0x1b9)](_0x5c4d2a)||_0x5c4d2a[_0x48f7dc(0x14f)]===0x0)throw new Error(_0x48f7dc(0x19e));const _0x347184=[],_0x3db400=new Set();for(const _0x48e80d of _0x5c4d2a){if(_0x48e80d[_0x48f7dc(0x16c)]===!![])continue;let _0x3a0698=_0x48e80d['extend']??{};if(!_0x55b151&&typeof _0x3a0698===_0x48f7dc(0x11a)){try{_0x3a0698=JSON[_0x48f7dc(0xfd)](_0x3a0698);}catch{throw new Error(_0x48f7dc(0x138));}if(!_0x3a0698||typeof _0x3a0698!==_0x48f7dc(0x1a0)||Array[_0x48f7dc(0x1b9)](_0x3a0698))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x1c6aa8=_0x55b151?_0x48e80d[_0x48f7dc(0x171)]:_0x48e80d['code'],_0x40f0df=_0x55b151?_0x48e80d['doType']:_0x48e80d[_0x48f7dc(0x129)]??_0x48e80d[_0x48f7dc(0x12f)];if(typeof _0x1c6aa8!==_0x48f7dc(0x11a)||!_0x1c6aa8||typeof _0x40f0df!==_0x48f7dc(0x11a)||_0x3db400[_0x48f7dc(0x157)](_0x1c6aa8))throw new Error(_0x48f7dc(0x13d));if(_0x40f0df[_0x48f7dc(0x19c)]()===_0x48f7dc(0x108))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x3db400[_0x48f7dc(0x16f)](_0x1c6aa8);const _0x199c68=_0x55b151?_0x48e80d:_0x3a0698,_0x1cc613={'code':_0x1c6aa8,'type':_0x40f0df,'required':_0x199c68[_0x48f7dc(0x179)]===!![]};if(RESERVED[_0x48f7dc(0x157)](_0x1c6aa8)||_0x199c68[_0x48f7dc(0x198)]===!![]||_0x199c68[_0x48f7dc(0xce)]===!![])_0x1cc613[_0x48f7dc(0x198)]=!![];_0x347184['push'](_0x1cc613);}return _0x347184;}function a144_0xce79(){const _0x319ad8=['formula','sort','Invalid\x20worksheet\x20merge\x20reference.','pop','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','sha256','includes','update','Requested\x20worksheet\x20does\x20not\x20exist.','min','clear','17780CzkfzT','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','XLSX\x20file\x20exceeds\x2020\x20MB.','file','size','reference','344xhphxa','Required\x20image\x20value\x20is\x20missing.','ref','doctype','fileComment','some','isArray','rows','Duplicate\x20workbook\x20ZIP\x20entry.','Image\x20XML\x20event\x20budget\x20exceeded.','imageFields','eachCell','filter','14499xLtqqp','autoIncrement','headerRow','Image\x20XML\x20node\x20budget\x20exceeded.','exceljs','Worksheet\x20column\x20objects\x20exceed\x20100000.','relativeOffsetOfLocalHeader','decimal','generalPurposeBitFlag','every','exceljs/lib/utils/col-cache.js','bottom','Worksheet\x20coordinate\x20exceeds\x20','merges','utf8','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','definedName','fields','390QSvwhk','Expected\x20a\x20text\x20cell.','readUInt32LE','mapping','materialized','121672DxEMYQ','closetag','Invalid\x20worksheet\x20coordinate.','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','bitFlag','Worksheet\x20merge\x20work\x20exceeds\x20100000.','value','getRow','Duplicate\x20dataset\x20field\x20codes.','uploadFields','Invalid\x20ZIP\x20local\x20file\x20header.','5EpqLjJ','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','utf8decode','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','creatorName','concat','[Content_Types].xml','METADATA','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','uncompressedSize','image','dataset-import/','text','resolve','parse','get','Expected\x20a\x20boolean\x20cell.','find','246178rbQDlt','modifierId','Invalid\x20worksheet\x20hyperlink\x20reference.','entryCount','hex','charCodeAt','versionMadeBy','serial_number','Invalid\x20worksheet\x20nested\x20cell.','map','imageCells','digest','isFile','date','data','upload','localeCompare','trim','cells','parseOpen','sheet','Unknown\x20Excel\x20header:\x20','getCell','Invalid\x20worksheet\x20XML.','right','string','boolean','datetime','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','isFinite','result','Invalid\x20defined\x20name\x20coordinate.','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','equals','141pjaAmO','1051170Nouomh','columnCount','test','readEntry','Expected\x20an\x20Excel\x20date\x20cell.','type','_xlnm.Print_Titles','Duplicate\x20mapping\x20target:\x20','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','opentag','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','dataType','Unsupported\x20field\x20type:\x20','hiddenRow','fileNameRaw','attributes','startsWith','decodeEx','write','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Invalid\x20dataset\x20field\x20extension\x20metadata.','unixPermissions','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','3760116RDlrVv','col','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','split','entry','error','source','entries','from','Invalid\x20worksheet\x20XML:\x20','abs','row','top','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','extname','directory','openReadStream','push','number','Non-canonical\x20worksheet\x20ZIP\x20entry.','length','close','fromBuffer','Invalid\x20worksheet\x20column\x20range.','slice','batchSize','isSafeInteger','rowCount','has','appCode','left','parseInt','dataset','image/jpeg','externalFileAttributes','contentHash','stringify','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','getTime','Cell\x20exceeds\x2064\x20KB.','Formula\x20has\x20no\x20cached\x20result.','isInteger','extraFieldsLength','sharedFormula','integer','tenantCode','textarea','readExtraFields','\x20columns.','deleted','Invalid\x20XLSX\x20archive.','repeat','add','creatorId','name','Required\x20value\x20is\x20missing.','parserVersion','Duplicate\x20header:\x20','updateTime','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','readUInt16LE','properties','required','errors','worksheets','24968jAcZpC','media','extraFieldRaw','warnings','emptyRows','address','lastIndexOf','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','max','ranges','sourceType','message','byteLength','set','destroy','fileCommentRaw','Worksheet\x20exceeds\x2016384\x20columns.','original','mergeCell','before','compressedSize','parseClose','values','createTime','./utf8','nativeCell','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','22feFHTi','generated','extraFields','code','end','toLowerCase','./reader/readerFor','Dataset\x20field\x20metadata\x20is\x20missing.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','object','processAttributes'];a144_0xce79=function(){return _0x319ad8;};return a144_0xce79();}async function checkArchive(_0x5e0def,_0x356042){await new Promise((_0xd654d1,_0x6da8f)=>{const _0xaa3712=a144_0x2cb2;a144_0x332c52[_0xaa3712(0x151)](_0x5e0def,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x185996,_0x581f46)=>{const _0x258877=_0xaa3712;if(_0x185996||!_0x581f46){_0x6da8f(_0x185996??new Error(_0x258877(0x16d)));return;}let _0x4e77bf;try{_0x4e77bf=centralDirectoryEnd(_0x5e0def,_0x581f46);}catch(_0x1ac40c){_0x581f46[_0x258877(0x150)](),_0x6da8f(_0x1ac40c);return;}let _0xa3abf6=0x0,_0xd1f3f5=0x0,_0x43d2f2=0x0,_0x59715e=0x0,_0x1970a0=0x0,_0x382b91=0x0,_0x5a0044=0x0,_0x5b9fc3=0x0,_0xaaf541=0x0,_0x3b2ba4=![],_0x4bff88;const _0x5c5763=new Set(),_0x331a77=_0x589b97=>{const _0x3cded9=_0x258877;if(_0x3b2ba4)return;_0x3b2ba4=!![],_0x4bff88?.[_0x3cded9(0x18a)](),_0x581f46[_0x3cded9(0x150)](),_0x6da8f(_0x589b97);},_0x19f11c=(_0xe80262,_0x13473e)=>{const _0x49353b=_0x258877;if(!_0xe80262||!/^\d+$/['test'](_0xe80262))throw new Error(_0x49353b(0xe6));const _0x3173d3=Number(_0xe80262);if(!Number[_0x49353b(0x155)](_0x3173d3)||_0x3173d3<0x1||_0x3173d3>_0x13473e)throw new Error(_0x49353b(0xd9)+_0x13473e+'.');return _0x3173d3;},_0xfb5eeb=(_0x2278a2,_0xa8dbba=MAX_XML_COLUMNS)=>{const _0x283bd3=_0x258877,_0x3def84=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x2278a2);if(!_0x3def84)throw new Error(_0x283bd3(0x121));let _0x2e28f1=0x0;for(const _0x1a055e of _0x3def84[0x1])_0x2e28f1=_0x2e28f1*0x1a+_0x1a055e[_0x283bd3(0x106)](0x0)-0x40;if(_0x2e28f1>_0xa8dbba)throw new Error('Worksheet\x20exceeds\x20'+_0xa8dbba+_0x283bd3(0x16b));return{'row':_0x19f11c(_0x3def84[0x2],MAX_XML_ROWS),'col':_0x2e28f1};},_0x113fb5=_0x561165=>{const _0x3bac7f=_0x258877;if(_0x561165[_0x3bac7f(0x171)]==='_xlnm.Print_Area'||_0x561165[_0x3bac7f(0x171)]===_0x3bac7f(0x12a))return;for(const _0x385823 of _0x561165[_0x3bac7f(0x185)]){if(!ABSOLUTE_NAME_RANGE[_0x3bac7f(0x126)](_0x385823[_0x3bac7f(0x13e)]('!')[_0x3bac7f(0x1a5)]()||''))continue;const _0x4fd5a9=nameCoordinates[_0x3bac7f(0x135)](_0x385823),_0x4326a6='top'in _0x4fd5a9,_0x48972d=_0x4326a6?[_0x4fd5a9[_0x3bac7f(0x147)],_0x4fd5a9[_0x3bac7f(0xd8)]]:[_0x4fd5a9[_0x3bac7f(0x146)]],_0x1cd0fc=_0x4326a6?[_0x4fd5a9[_0x3bac7f(0x159)],_0x4fd5a9[_0x3bac7f(0x119)]]:[_0x4fd5a9['col']],_0x3d33a2=(_0x3388a3,_0x276afb)=>Number[_0x3bac7f(0x155)](_0x3388a3)&&_0x3388a3>=0x1&&_0x3388a3<=_0x276afb;if(!_0x48972d['every'](_0x35c768=>_0x3d33a2(_0x35c768,MAX_XML_ROWS))||!_0x1cd0fc[_0x3bac7f(0xd6)](_0x27139a=>_0x3d33a2(_0x27139a,MAX_XML_COLUMNS)))throw new Error(_0x3bac7f(0x120));_0x5a0044+=_0x4326a6?(_0x4fd5a9[_0x3bac7f(0xd8)]-_0x4fd5a9[_0x3bac7f(0x147)]+0x1)*(_0x4fd5a9[_0x3bac7f(0x119)]-_0x4fd5a9['left']+0x1):0x1;if(_0x5a0044>MAX_ROWS)throw new Error(_0x3bac7f(0x148));}};_0x581f46['on'](_0x258877(0x140),_0x331a77),_0x581f46['on'](_0x258877(0x13f),_0x2ae9b3=>{const _0x496f9f=_0x258877;if(_0x3b2ba4)return;if(++_0x43d2f2>0x2710||(_0xa3abf6+=_0x2ae9b3[_0x496f9f(0xf8)])>MAX_EXPANDED){_0x331a77(new Error(_0x496f9f(0x11d)));return;}let _0x27f8b8;try{_0x27f8b8=consumerEntryName(_0x5e0def,_0x2ae9b3);}catch(_0x382497){_0x331a77(_0x382497);return;}if(_0x27f8b8[_0x496f9f(0x14a)]){_0x581f46[_0x496f9f(0x127)]();return;}const _0x241eb7=_0x27f8b8['name'];if(_0x356042&&(_0x241eb7!==_0x27f8b8['original']||_0x5c5763['has'](_0x241eb7)||_0x241eb7[_0x496f9f(0x134)]('/')||_0x241eb7['includes']('\x5c'))){_0x331a77(new Error(_0x496f9f(0xe7)));return;}if(_0x241eb7!==_0x27f8b8[_0x496f9f(0x18d)]&&(_0x241eb7==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x496f9f(0x126)](_0x241eb7))){_0x331a77(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0xbbfb6e=_0x241eb7==='xl/workbook.xml';if(_0xbbfb6e&&_0x5c5763[_0x496f9f(0x157)](_0x241eb7)){_0x331a77(new Error(_0x496f9f(0xc8)));return;}_0x5c5763[_0x496f9f(0x16f)](_0x241eb7);const _0x166b92=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x496f9f(0x126)](_0x241eb7);if(_0x166b92&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x241eb7)){_0x331a77(new Error(_0x496f9f(0x14e)));return;}_0x581f46[_0x496f9f(0x14b)](_0x2ae9b3,(_0x3893a9,_0x1e495d)=>{const _0x7d5373=_0x496f9f;if(_0x3b2ba4){_0x1e495d?.[_0x7d5373(0x18a)]();return;}if(_0x3893a9||!_0x1e495d){_0x331a77(_0x3893a9??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x4bff88=_0x1e495d;const _0x1271bb=_0x356042?[]:undefined,_0xe551fc=_0x356042&&/[.](xml|rels)$/[_0x7d5373(0x126)](_0x241eb7)?new StringDecoder('utf8'):undefined,_0x100d68=_0xe551fc?new SaxesParser({'xmlns':![]}):undefined,_0x648e5b=()=>{const _0x4c84b6=_0x7d5373;if(++_0xaaf541>0x1e8480)throw Error(_0x4c84b6(0xc9));};_0x100d68?.['on'](_0x7d5373(0x1b6),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x100d68?.['on'](_0x7d5373(0x12d),()=>{const _0x507af1=_0x7d5373;_0x648e5b();if(++_0x5b9fc3>0x7a120)throw Error(_0x507af1(0xd0));}),_0x100d68?.['on'](_0x7d5373(0xfb),_0x648e5b),_0x100d68?.['on']('closetag',_0x648e5b),_0x100d68?.['on'](_0x7d5373(0x140),_0x2a1264=>{throw _0x2a1264;});const _0x327e4e=_0x166b92||_0xbbfb6e?new StringDecoder('utf8'):undefined,_0x1f27b8=_0x166b92||_0xbbfb6e?new SaxesParser({'xmlns':![]}):undefined;let _0x7cc4f5,_0x4d3f16=0x0,_0x49c9f0=0x0,_0x2147e4,_0x121043,_0x26d73d=![],_0x4b071b=![],_0x268740,_0x27fb2b,_0x53cdf1,_0x45fdab=![];const _0x2c6f9b=[],_0x3175e2=new Set();let _0x469297;const _0x5718db=(_0x277c93,_0x34dd78=0x0)=>{const _0x4b55e5=_0x7d5373;_0x1970a0+=_0x34dd78+Math['max'](0x0,_0x277c93-_0x49c9f0),_0x49c9f0=Math[_0x4b55e5(0x184)](_0x49c9f0,_0x277c93);if(_0x1970a0>MAX_ROWS)throw new Error(_0x4b55e5(0xd2));};_0x1f27b8?.['on'](_0x7d5373(0x12d),_0x526ae3=>{const _0x4cc6ea=_0x7d5373;if(_0xbbfb6e){if(!_0x7cc4f5&&_0x526ae3['name']===_0x4cc6ea(0xdd))_0x7cc4f5=new DefinedNameXform();_0x7cc4f5?.[_0x4cc6ea(0x114)](_0x526ae3);return;}if(_0x526ae3[_0x4cc6ea(0x171)]===_0x4cc6ea(0x146)){if(_0x4b071b)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x19f11c(_0x526ae3[_0x4cc6ea(0x133)]['r'],MAX_XML_ROWS),_0x2147e4=undefined,_0x53cdf1=undefined,_0x45fdab=![];}else{if(_0x526ae3['name']==='c'){if(_0x4b071b)throw new Error(_0x4cc6ea(0x109));_0x4b071b=!![],_0x26d73d=Boolean(Number[_0x4cc6ea(0x15a)](_0x526ae3[_0x4cc6ea(0x133)]['s']??'',0xa)),_0x469297=undefined,_0x268740=_0x526ae3[_0x4cc6ea(0x133)]['r']||undefined,_0x27fb2b=_0x268740?_0xfb5eeb(_0x268740):undefined;if(_0x27fb2b)_0x121043=_0x27fb2b;else _0x121043=_0x2147e4?{'row':_0x2147e4[_0x4cc6ea(0x146)],'col':_0x2147e4[_0x4cc6ea(0x13c)]+0x1}:undefined;}else{if(_0x4b071b&&['f','v','t'][_0x4cc6ea(0x1a8)](_0x526ae3[_0x4cc6ea(0x171)])){_0x469297=_0x526ae3['name'];if(_0x526ae3[_0x4cc6ea(0x171)]==='f'&&_0x526ae3[_0x4cc6ea(0x133)]['t'])_0x26d73d=!![];}else{if(_0x4b071b&&_0x526ae3[_0x4cc6ea(0x171)]==='r')_0x26d73d=!![];else{if(_0x526ae3[_0x4cc6ea(0x171)]==='hyperlink'){const _0x5272a4=_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1b5)];if(!_0x5272a4)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1386c8=_0x5272a4[_0x4cc6ea(0x13e)](':');if(_0x1386c8['length']>0x2)throw new Error(_0x4cc6ea(0x103));const _0x221998=_0xfb5eeb(_0x1386c8[0x0]),_0x42d290=_0xfb5eeb(_0x1386c8[0x1]??_0x1386c8[0x0]);_0x3175e2[_0x4cc6ea(0x16f)](_0x5272a4),_0x5718db(Math[_0x4cc6ea(0x184)](_0x221998[_0x4cc6ea(0x13c)],_0x42d290[_0x4cc6ea(0x13c)]),0x1);}else{if(_0x526ae3[_0x4cc6ea(0x171)]===_0x4cc6ea(0x13c)){const _0x23c5a3=_0x19f11c(_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1ab)],0x4000),_0x286e44=_0x19f11c(_0x526ae3['attributes'][_0x4cc6ea(0x184)],0x4000);if(_0x23c5a3>_0x286e44)throw new Error(_0x4cc6ea(0x152));_0x5718db(_0x286e44,0x1);}else{if(_0x526ae3['name']===_0x4cc6ea(0x18e)){const _0x379325=_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1b5)];if(!_0x379325)throw new Error(_0x4cc6ea(0x1a4));const _0xefed36=_0x379325[_0x4cc6ea(0x13e)](':');if(_0xefed36['length']>0x2)throw new Error(_0x4cc6ea(0x1a4));const _0x222ba4=_0xfb5eeb(_0xefed36[0x0]),_0x405e5f=_0xfb5eeb(_0xefed36[0x1]??_0xefed36[0x0]);_0x5718db(Math[_0x4cc6ea(0x184)](_0x222ba4['col'],_0x405e5f[_0x4cc6ea(0x13c)]));const _0x4eca8f=(Math[_0x4cc6ea(0x145)](_0x405e5f[_0x4cc6ea(0x146)]-_0x222ba4[_0x4cc6ea(0x146)])+0x1)*(Math[_0x4cc6ea(0x145)](_0x405e5f[_0x4cc6ea(0x13c)]-_0x222ba4[_0x4cc6ea(0x13c)])+0x1);_0x59715e+=_0x4eca8f+_0x4d3f16++;if(_0x59715e>MAX_ROWS)throw new Error(_0x4cc6ea(0xe9));}}}}}}}}),_0x1f27b8?.['on']('text',_0x3fd434=>{if(_0xbbfb6e){_0x7cc4f5?.['parseText'](_0x3fd434);return;}if(_0x4b071b&&_0x469297&&_0x3fd434)_0x26d73d=!![];}),_0x1f27b8?.['on'](_0x7d5373(0xe5),_0x485ca4=>{const _0x2201bd=_0x7d5373;if(_0xbbfb6e){_0x7cc4f5&&!_0x7cc4f5[_0x2201bd(0x191)]()&&(_0x113fb5(_0x7cc4f5['model']),_0x7cc4f5=undefined);return;}if(_0x485ca4['name']==='c'){!_0x26d73d&&_0x268740&&!_0x53cdf1&&(_0x53cdf1={'before':_0x2147e4,'cells':[]});if(_0x53cdf1){if(++_0x382b91>0xf4240)throw new Error(_0x2201bd(0x196));_0x53cdf1[_0x2201bd(0x113)][_0x2201bd(0x14c)]({'reference':_0x268740,'address':_0x27fb2b,'materialized':_0x26d73d});if(!_0x268740&&_0x26d73d)_0x45fdab=!![];}if(_0x26d73d){if(!_0x53cdf1||_0x268740){if(!_0x121043)throw new Error(_0x2201bd(0x1ae));if(_0x121043[_0x2201bd(0x13c)]>MAX_XML_COLUMNS)throw new Error(_0x2201bd(0x18c));_0x5718db(_0x121043[_0x2201bd(0x13c)]);}_0x2147e4=_0x121043;}_0x4b071b=![],_0x121043=undefined,_0x268740=undefined,_0x27fb2b=undefined,_0x469297=undefined;}else{if(_0x485ca4[_0x2201bd(0x171)]===_0x2201bd(0x146)){if(_0x53cdf1&&_0x45fdab)_0x2c6f9b[_0x2201bd(0x14c)](_0x53cdf1);_0x53cdf1=undefined,_0x45fdab=![];}else{if(_0x485ca4[_0x2201bd(0x171)]===_0x469297)_0x469297=undefined;}}}),_0x1f27b8?.['on'](_0x7d5373(0x140),_0x552246=>{const _0x3a2bc7=_0x7d5373;throw new Error(_0x3a2bc7(0x144)+_0x552246[_0x3a2bc7(0x187)]);}),_0x1e495d['on'](_0x7d5373(0x140),_0x331a77),_0x1e495d['on'](_0x7d5373(0x10f),_0x4314d6=>{const _0x4936b5=_0x7d5373;if(_0x3b2ba4)return;_0xd1f3f5+=_0x4314d6[_0x4936b5(0x14f)],_0x1271bb?.['push'](_0x4314d6);if(_0xd1f3f5>MAX_EXPANDED){_0x331a77(new Error(_0x4936b5(0x11d)));return;}try{if(_0x100d68&&_0xe551fc)_0x100d68['write'](_0xe551fc[_0x4936b5(0x136)](_0x4314d6));if(_0x1f27b8&&_0x327e4e)_0x1f27b8[_0x4936b5(0x136)](_0x327e4e[_0x4936b5(0x136)](_0x4314d6));}catch(_0x2232c1){_0x331a77(_0x2232c1 instanceof Error?_0x2232c1:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x1e495d['on'](_0x7d5373(0x19b),()=>{const _0x179efc=_0x7d5373;if(_0x3b2ba4)return;try{if(_0x100d68&&_0xe551fc)_0x100d68['write'](_0xe551fc[_0x179efc(0x19b)]())[_0x179efc(0x150)]();if(_0x1f27b8&&_0x327e4e)_0x1f27b8['write'](_0x327e4e[_0x179efc(0x19b)]())['close']();for(const _0x2930b2 of _0x2c6f9b){let _0x1100f5=_0x2930b2[_0x179efc(0x18f)];for(const _0x1f569d of _0x2930b2[_0x179efc(0x113)]){if(!_0x1f569d[_0x179efc(0xe3)]&&!(_0x1f569d['reference']&&_0x3175e2[_0x179efc(0x157)](_0x1f569d[_0x179efc(0x1b2)])))continue;const _0x39f6d3=_0x1f569d[_0x179efc(0x181)]??(_0x1100f5?{'row':_0x1100f5[_0x179efc(0x146)],'col':_0x1100f5[_0x179efc(0x13c)]+0x1}:undefined);if(!_0x39f6d3)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x39f6d3[_0x179efc(0x13c)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x5718db(_0x39f6d3['col']),_0x1100f5=_0x39f6d3;}}_0x2c6f9b[_0x179efc(0x14f)]=0x0,_0x3175e2[_0x179efc(0x1ac)]();}catch(_0x14210c){_0x331a77(_0x14210c instanceof Error?_0x14210c:new Error(_0x179efc(0x118)));return;}if(_0x1271bb)_0x356042[_0x179efc(0x189)](_0x241eb7,Buffer[_0x179efc(0xf4)](_0x1271bb));_0x4bff88=undefined,_0x581f46[_0x179efc(0x127)]();});});}),_0x581f46['on'](_0x258877(0x19b),()=>{const _0x40d475=_0x258877;if(_0x3b2ba4)return;if(_0x581f46['readEntryCursor']!==_0x4e77bf){_0x6da8f(new Error(_0x40d475(0x19f)));return;}if(!_0x5c5763[_0x40d475(0x157)](_0x40d475(0xf5))||!_0x5c5763[_0x40d475(0x157)]('xl/workbook.xml'))_0x6da8f(new Error('File\x20is\x20not\x20an\x20XLSX\x20workbook.'));else _0xd654d1();}),_0x581f46[_0x258877(0x127)]();});});}function valueOf(_0x325963){const _0x269fee=a144_0x538df5,_0x4a35af=_0x325963[_0x269fee(0xea)];if(_0x4a35af&&typeof _0x4a35af===_0x269fee(0x1a0)&&(_0x269fee(0x1a2)in _0x4a35af||_0x269fee(0x166)in _0x4a35af)){if(!(_0x269fee(0x11f)in _0x4a35af)||_0x4a35af['result']===undefined)throw new Error(_0x269fee(0x163));return _0x4a35af['result'];}return _0x4a35af;}function convert(_0x34c6e2,_0xe57620){const _0x2df5e7=a144_0x538df5;if(_0x34c6e2===null||_0x34c6e2===undefined||_0x34c6e2===''){if(_0xe57620[_0x2df5e7(0x179)]&&!_0xe57620[_0x2df5e7(0x198)])throw new Error(_0x2df5e7(0x172));return null;}if(typeof _0x34c6e2===_0x2df5e7(0x11a)&&Buffer['byteLength'](_0x34c6e2,_0x2df5e7(0xdb))>MAX_CELL)throw new Error(_0x2df5e7(0x162));switch(_0xe57620[_0x2df5e7(0x129)][_0x2df5e7(0x19c)]()){case _0x2df5e7(0x11a):case _0x2df5e7(0xfb):case _0x2df5e7(0x169):if(typeof _0x34c6e2!=='string')throw new Error(_0x2df5e7(0xe0));return _0x34c6e2;case _0x2df5e7(0x14d):case _0x2df5e7(0xd4):case'integer':if(typeof _0x34c6e2!==_0x2df5e7(0x14d)||!Number[_0x2df5e7(0x11e)](_0x34c6e2)||Math['abs'](_0x34c6e2)>Number['MAX_SAFE_INTEGER']||_0xe57620[_0x2df5e7(0x129)][_0x2df5e7(0x19c)]()==='integer'&&!Number[_0x2df5e7(0x164)](_0x34c6e2))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x34c6e2;case _0x2df5e7(0x11b):if(typeof _0x34c6e2!=='boolean')throw new Error(_0x2df5e7(0xff));return _0x34c6e2;case _0x2df5e7(0x10e):case _0x2df5e7(0x11c):if(!(_0x34c6e2 instanceof Date)||!Number['isFinite'](_0x34c6e2[_0x2df5e7(0x161)]()))throw new Error(_0x2df5e7(0x128));return _0x34c6e2[_0x2df5e7(0x161)]();default:throw new Error(_0x2df5e7(0x130)+_0xe57620[_0x2df5e7(0x129)]+'.');}}export async function buildExcelManifest(_0x4afb23){const _0x2e3cf2=a144_0x538df5,_0x56c9a9=_0x4afb23[_0x2e3cf2(0xcf)]??0x1;if(!Number[_0x2e3cf2(0x164)](_0x56c9a9)||_0x56c9a9<0x1||_0x56c9a9>MAX_ROWS)throw new Error(_0x2e3cf2(0x1a6));if(_0x4afb23['batchSize']!==undefined&&(!Number[_0x2e3cf2(0x164)](_0x4afb23[_0x2e3cf2(0x154)])||_0x4afb23[_0x2e3cf2(0x154)]<0x1||_0x4afb23[_0x2e3cf2(0x154)]>0x3e8))throw new Error(_0x2e3cf2(0xdc));if(a144_0x1322a2[_0x2e3cf2(0x149)](_0x4afb23[_0x2e3cf2(0x1b0)])[_0x2e3cf2(0x19c)]()!=='.xlsx')throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x5f378d=await stat(_0x4afb23[_0x2e3cf2(0x1b0)]);if(!_0x5f378d[_0x2e3cf2(0x10d)]()||_0x5f378d[_0x2e3cf2(0x1b1)]>MAX_FILE)throw new Error(_0x2e3cf2(0x12e));const _0x583f97=await readFile(_0x4afb23[_0x2e3cf2(0x1b0)]);if(_0x583f97[_0x2e3cf2(0x14f)]>MAX_FILE)throw new Error(_0x2e3cf2(0x1af));const _0x16292f=_0x4afb23['fields'][_0x2e3cf2(0x1b8)](_0x20f4d3=>isImageContainer(_0x20f4d3[_0x2e3cf2(0x129)])&&Object['values'](_0x4afb23[_0x2e3cf2(0xe2)])[_0x2e3cf2(0x1a8)](_0x20f4d3[_0x2e3cf2(0x19a)]))?new Map():undefined;await checkArchive(_0x583f97,_0x16292f);const _0x528bf4=new a144_0x3f955b['Workbook']();await _0x528bf4['xlsx']['load'](_0x583f97,{'ignoreNodes':['dataValidations']});const _0x2b16f7=_0x4afb23[_0x2e3cf2(0x115)];let _0x319b02;if(_0x2b16f7===undefined)_0x319b02=_0x528bf4['worksheets'][0x0];else{if(typeof _0x2b16f7===_0x2e3cf2(0x11a)&&_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x1b8)](_0x5ac235=>_0x5ac235[_0x2e3cf2(0x171)]===_0x2b16f7))_0x319b02=_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x100)](_0x303edc=>_0x303edc[_0x2e3cf2(0x171)]===_0x2b16f7);else{if(typeof _0x2b16f7==='number'||/^\d+$/['test'](_0x2b16f7)){const _0x409315=Number(_0x2b16f7);if(!Number[_0x2e3cf2(0x164)](_0x409315)||_0x409315<0x1)throw new Error(_0x2e3cf2(0x183));_0x319b02=_0x528bf4['worksheets'][_0x409315-0x1];}else _0x319b02=_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x100)](_0x516890=>_0x516890[_0x2e3cf2(0x171)]===_0x2b16f7);}}if(!_0x319b02)throw new Error(_0x2e3cf2(0x1aa));if(_0x319b02['rowCount']>MAX_ROWS||_0x319b02[_0x2e3cf2(0x125)]>MAX_COLUMNS)throw new Error(_0x2e3cf2(0xf2));if((_0x319b02['model'][_0x2e3cf2(0xda)]??[])[_0x2e3cf2(0x14f)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x37a349=new Map();_0x319b02[_0x2e3cf2(0xeb)](_0x56c9a9)['eachCell']((_0x1a3173,_0xd34858)=>{const _0x262df5=_0x2e3cf2,_0x43baa3=valueOf(_0x1a3173);if(typeof _0x43baa3!==_0x262df5(0x11a)||!_0x43baa3[_0x262df5(0x112)]()||Buffer[_0x262df5(0x188)](_0x43baa3)>MAX_CELL)throw new Error(_0x262df5(0x13a));if(_0x37a349[_0x262df5(0x157)](_0x43baa3))throw new Error(_0x262df5(0x174)+_0x43baa3+'.');_0x37a349[_0x262df5(0x189)](_0x43baa3,_0xd34858);});const _0x258c26=Object[_0x2e3cf2(0x142)](_0x4afb23['mapping']);if(!_0x258c26['length'])throw new Error(_0x2e3cf2(0x137));const _0x42681c=new Map(_0x4afb23[_0x2e3cf2(0xde)][_0x2e3cf2(0x10a)](_0x1a14ab=>[_0x1a14ab[_0x2e3cf2(0x19a)],_0x1a14ab]));if(_0x42681c['size']!==_0x4afb23[_0x2e3cf2(0xde)]['length'])throw new Error(_0x2e3cf2(0xec));if(_0x4afb23[_0x2e3cf2(0xde)]['some'](_0x275968=>_0x275968['type'][_0x2e3cf2(0x19c)]()===_0x2e3cf2(0x108)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x33719a=new Set();for(const [_0x435f14,_0x3efa35]of _0x258c26){const _0x163b5c=_0x42681c[_0x2e3cf2(0xfe)](_0x3efa35);if(!_0x37a349[_0x2e3cf2(0x157)](_0x435f14))throw new Error(_0x2e3cf2(0x116)+_0x435f14+'.');if(!_0x163b5c||RESERVED['has'](_0x3efa35)||_0x163b5c[_0x2e3cf2(0x198)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x3efa35+'.');if(_0x33719a[_0x2e3cf2(0x157)](_0x3efa35))throw new Error(_0x2e3cf2(0x12b)+_0x3efa35+'.');if(!TYPES[_0x2e3cf2(0x157)](_0x163b5c[_0x2e3cf2(0x129)][_0x2e3cf2(0x19c)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x163b5c['type']+'.');_0x33719a['add'](_0x3efa35);}for(const _0x26ac1c of _0x4afb23[_0x2e3cf2(0xde)]){if(_0x26ac1c['required']&&!_0x26ac1c['generated']&&!RESERVED[_0x2e3cf2(0x157)](_0x26ac1c[_0x2e3cf2(0x19a)])&&!_0x33719a[_0x2e3cf2(0x157)](_0x26ac1c['code']))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x26ac1c[_0x2e3cf2(0x19a)]+'.');}const _0x4330b8={'fileHash':hash(_0x583f97),'mappingHash':hash(JSON[_0x2e3cf2(0x15f)]([..._0x258c26][_0x2e3cf2(0x1a3)](([_0x3b69ab],[_0x2d3084])=>_0x3b69ab[_0x2e3cf2(0x111)](_0x2d3084)))),'schemaHash':hash(JSON['stringify']([..._0x4afb23[_0x2e3cf2(0xde)]][_0x2e3cf2(0x1a3)]((_0x415d0f,_0x21df1a)=>_0x415d0f[_0x2e3cf2(0x19a)][_0x2e3cf2(0x111)](_0x21df1a['code'])))),'sheet':_0x319b02['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x134b60=_0x258c26[_0x2e3cf2(0xcc)](([,_0x10318e])=>isImageContainer(_0x42681c[_0x2e3cf2(0xfe)](_0x10318e)['type'])),_0x947f3=_0x134b60[_0x2e3cf2(0xcc)](([,_0x7cbd73])=>_0x42681c[_0x2e3cf2(0xfe)](_0x7cbd73)['type'][_0x2e3cf2(0x19c)]()===_0x2e3cf2(0x110))['map'](([,_0x2b8533])=>_0x2b8533);if(_0x947f3[_0x2e3cf2(0x14f)])_0x4330b8[_0x2e3cf2(0xed)]=_0x947f3;const _0x313545=_0x16292f?resolveWorksheetImages(_0x16292f,_0x319b02[_0x2e3cf2(0x171)],new Set(_0x134b60['map'](([_0x4beb04])=>_0x37a349[_0x2e3cf2(0xfe)](_0x4beb04)))):[],_0x4969b0=new Map();for(const _0x30f74b of _0x313545){const _0x49d403=_0x30f74b[_0x2e3cf2(0x146)]+':'+_0x30f74b[_0x2e3cf2(0x13c)],_0x390e30=_0x4969b0[_0x2e3cf2(0xfe)](_0x49d403)??[];_0x390e30[_0x2e3cf2(0x14c)](_0x30f74b),_0x4969b0['set'](_0x49d403,_0x390e30);}const _0x2ccebb=new Map();let _0x58f4df=0x0;_0x134b60[_0x2e3cf2(0x14f)]&&(_0x4330b8[_0x2e3cf2(0xca)]=_0x134b60['map'](([,_0x3b8259])=>_0x3b8259),_0x4330b8[_0x2e3cf2(0x10b)]=[],_0x4330b8[_0x2e3cf2(0x173)]=0x1,_0x4330b8[_0x2e3cf2(0x17d)]=[]);const _0x40c746=Math[_0x2e3cf2(0x184)](0x0,..._0x313545['map'](_0x5e18fb=>_0x5e18fb[_0x2e3cf2(0x146)]));let _0x3ab4ec=0x0;const _0x294c15=new Set(_0x258c26[_0x2e3cf2(0x10a)](([_0x2c602d])=>_0x37a349[_0x2e3cf2(0xfe)](_0x2c602d)));for(let _0x49f852=_0x56c9a9+0x1;_0x49f852<=Math[_0x2e3cf2(0x184)](_0x319b02[_0x2e3cf2(0x156)],_0x40c746);_0x49f852++){const _0x5c4c28=_0x319b02[_0x2e3cf2(0xeb)](_0x49f852);if(_0x5c4c28['hidden']||_0x313545[_0x2e3cf2(0x1b8)](_0x3716c9=>_0x3716c9[_0x2e3cf2(0x146)]===_0x49f852&&_0x3716c9[_0x2e3cf2(0x131)]))_0x3ab4ec++;let _0x569812=_0x313545['some'](_0x47cd90=>_0x47cd90['row']===_0x49f852);_0x5c4c28[_0x2e3cf2(0xcb)](_0x25a561=>{const _0x52f51a=_0x2e3cf2;if(_0x25a561[_0x52f51a(0xea)]!==null&&_0x25a561[_0x52f51a(0xea)]!==undefined&&_0x25a561['value']!=='')_0x569812=!![];});if(!_0x569812){_0x4330b8[_0x2e3cf2(0x180)]['push'](_0x49f852);continue;}const _0x19a61d=Object['create'](null);_0x5c4c28[_0x2e3cf2(0xcb)]((_0x1c08fb,_0x2972c7)=>{const _0x105403=_0x2e3cf2;if(_0x294c15[_0x105403(0x157)](_0x2972c7))return;try{const _0x3946cc=valueOf(_0x1c08fb);if(typeof _0x3946cc===_0x105403(0x11a)&&Buffer['byteLength'](_0x3946cc,'utf8')>MAX_CELL)throw new Error(_0x105403(0x162));}catch(_0x5e2703){_0x4330b8[_0x105403(0x17a)][_0x105403(0x14c)]({'rowNumber':_0x49f852,'field':_0x1c08fb[_0x105403(0x181)],'message':_0x5e2703[_0x105403(0x187)]});}});for(const [_0x58b6ab,_0x4ca21d]of _0x258c26){try{const _0x467320=_0x5c4c28[_0x2e3cf2(0x117)](_0x37a349[_0x2e3cf2(0xfe)](_0x58b6ab)),_0x1e049b=_0x42681c[_0x2e3cf2(0xfe)](_0x4ca21d);if(!isImageContainer(_0x1e049b['type'])){_0x19a61d[_0x4ca21d]=convert(valueOf(_0x467320),_0x1e049b);continue;}const _0x9b40db=_0x4969b0[_0x2e3cf2(0xfe)](_0x49f852+':'+_0x37a349[_0x2e3cf2(0xfe)](_0x58b6ab))??[];if(_0x9b40db[_0x2e3cf2(0x1b8)](_0x3322b7=>_0x3322b7[_0x2e3cf2(0x140)]))throw Error(_0x9b40db[_0x2e3cf2(0x100)](_0xf03e84=>_0xf03e84[_0x2e3cf2(0x140)])[_0x2e3cf2(0x140)]);if(_0x467320[_0x2e3cf2(0xea)]!=null&&_0x467320[_0x2e3cf2(0xea)]!==''&&!_0x9b40db[_0x2e3cf2(0x1b8)](_0x1cf278=>_0x1cf278[_0x2e3cf2(0x195)]))throw Error(_0x2e3cf2(0x12c));const _0x1a2bc5=[];for(const _0x53e14b of _0x9b40db)for(const _0x4b9bcd of _0x53e14b[_0x2e3cf2(0x17d)]){const _0x4e25ac=_0x16292f['get'](_0x4b9bcd);if(!_0x4e25ac)throw Error('Missing\x20image\x20media:\x20'+_0x4b9bcd+'.');const _0x168e9c=hash(_0x4e25ac),_0x21a300=_0x2ccebb[_0x2e3cf2(0xfe)](_0x168e9c)??validateImageBytes(_0x4e25ac);if(!_0x2ccebb[_0x2e3cf2(0x157)](_0x21a300[_0x2e3cf2(0x15e)])){_0x58f4df+=_0x21a300[_0x2e3cf2(0x1b1)];if(_0x58f4df>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x2ccebb[_0x2e3cf2(0x189)](_0x21a300[_0x2e3cf2(0x15e)],_0x21a300);}_0x1a2bc5[_0x2e3cf2(0x14c)](_0x21a300[_0x2e3cf2(0x15e)]);}if(!_0x1a2bc5[_0x2e3cf2(0x14f)]&&_0x1e049b[_0x2e3cf2(0x179)])throw Error(_0x2e3cf2(0x1b4));if(_0x1a2bc5[_0x2e3cf2(0x14f)])_0x4330b8['imageCells'][_0x2e3cf2(0x14c)]({'rowNumber':_0x49f852,'field':_0x4ca21d,'hashes':_0x1a2bc5});_0x19a61d[_0x4ca21d]=_0x1a2bc5[_0x2e3cf2(0x10a)](_0x31b7f7=>{const _0x35044a=_0x2e3cf2,_0x4c55da=_0x2ccebb['get'](_0x31b7f7),_0x1f502a=_0x4c55da[_0x35044a(0x129)]===_0x35044a(0x15c)?'jpg':_0x4c55da['type'][_0x35044a(0x153)](0x6),_0x3b656d=_0x31b7f7+'.'+_0x1f502a,_0x381e82=_0x35044a(0xfa)+'0'[_0x35044a(0x16e)](0x40)+'/'+_0x3b656d;return _0x1e049b[_0x35044a(0x129)][_0x35044a(0x19c)]()==='upload'?{'fileName':_0x3b656d,'filePath':_0x381e82}:{'key':_0x381e82,'name':_0x3b656d,'type':_0x4c55da['type'],'size':_0x4c55da['size']};});}catch(_0x41efec){_0x4330b8[_0x2e3cf2(0x17a)]['push']({'rowNumber':_0x49f852,'field':_0x4ca21d,'message':_0x41efec[_0x2e3cf2(0x187)]});}}_0x4330b8[_0x2e3cf2(0xc7)]['push']({'rowNumber':_0x49f852,'values':_0x19a61d});}if(_0x4330b8[_0x2e3cf2(0x17d)])_0x4330b8[_0x2e3cf2(0x17d)]=[..._0x2ccebb[_0x2e3cf2(0x192)]()];if(_0x3ab4ec)_0x4330b8[_0x2e3cf2(0x17f)][_0x2e3cf2(0x14c)](_0x3ab4ec+_0x2e3cf2(0x176));return _0x4330b8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a145_0x2bb7(_0x153452,_0x495558){_0x153452=_0x153452-0x145;const _0x1a5216=a145_0x1a52();let _0x2bb795=_0x1a5216[_0x153452];return _0x2bb795;}function a145_0x1a52(){const _0xfc8e33=['max','sha256','ceil','concat','Truncated\x20PNG\x20chunk.','numFrames','isSafeInteger','readUInt16LE','GIF87a','Truncated\x20JPEG.','Invalid\x20PNG\x20header.','2035103yympUk','Invalid\x20PNG\x20decoded\x20scanline\x20size.','GIF\x20frame\x20exceeds\x20canvas.','toString','frameInfo','Invalid\x20PNG\x20color/depth/interlace.','4477206lLworJ','sync','jpeg-js','GIF\x20image\x20has\x20no\x20palette.','digest','12MctPie','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','update','height','readUInt32BE','11535920BcjMyS','Truncated\x20GIF\x20data.','Invalid\x20image:\x20','Animated\x20PNG\x20is\x20not\x20supported.','pngjs','acTL','IEND','ascii','width','868288QFmBXm','message','1247277sxjWbb','536qSdwmB','5019765wTreVo','83907UQeVWe','decode','Missing\x20PNG\x20data/end.','GIF89a','includes','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Invalid\x20PNG\x20end.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Truncated\x20PNG\x20data.','omggif','image/gif','3EuKPNE','from','length','Missing\x20GIF\x20trailer.','Truncated\x20GIF.','decodeAndBlitFrameRGBA','subarray','push','Invalid\x20GIF\x20block.'];a145_0x1a52=function(){return _0xfc8e33;};return a145_0x1a52();}(function(_0x4e6df7,_0x85781b){const _0x2e0fc9=a145_0x2bb7,_0xbe4133=_0x4e6df7();while(!![]){try{const _0x452c88=parseInt(_0x2e0fc9(0x16b))/0x1*(-parseInt(_0x2e0fc9(0x15b))/0x2)+parseInt(_0x2e0fc9(0x15d))/0x3*(-parseInt(_0x2e0fc9(0x14d))/0x4)+parseInt(_0x2e0fc9(0x15f))/0x5+parseInt(_0x2e0fc9(0x148))/0x6+-parseInt(_0x2e0fc9(0x17f))/0x7+parseInt(_0x2e0fc9(0x15e))/0x8*(parseInt(_0x2e0fc9(0x160))/0x9)+parseInt(_0x2e0fc9(0x152))/0xa;if(_0x452c88===_0x85781b)break;else _0xbe4133['push'](_0xbe4133['shift']());}catch(_0x16ef10){_0xbe4133['push'](_0xbe4133['shift']());}}}(a145_0x1a52,0xa7f4d));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x2b8409,_0x5ef98e){const _0x240e1a=a145_0x2bb7;if(!Number[_0x240e1a(0x17a)](_0x2b8409)||!Number[_0x240e1a(0x17a)](_0x5ef98e)||_0x2b8409<0x1||_0x5ef98e<0x1||_0x2b8409*_0x5ef98e>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x4ee17c){const _0xa251a4=a145_0x2bb7;let _0x32d694=0xd,_0x52643b=0x0,_0x123b57=0x0;const _0x2c2f8=_0x4ee17c[_0xa251a4(0x17b)](0x6),_0x41e7ff=_0x4ee17c[_0xa251a4(0x17b)](0x8),_0xef8090=_0x4ee17c[0xa]&0x80?0x1<<(_0x4ee17c[0xa]&0x7)+0x1:0x0,_0x53e143=_0x43eebe=>{const _0x520e6d=_0xa251a4;if(_0x32d694+_0x43eebe>_0x4ee17c['length'])throw Error(_0x520e6d(0x153));};_0x32d694+=_0xef8090*0x3,_0x53e143(0x0);const _0x23627b=()=>{const _0x21c84d=_0xa251a4,_0x419b89=[];while(!![]){_0x53e143(0x1);const _0x47e2a2=_0x4ee17c[_0x32d694++];if(!_0x47e2a2)break;_0x53e143(_0x47e2a2),_0x419b89[_0x21c84d(0x172)](_0x4ee17c[_0x21c84d(0x171)](_0x32d694,_0x32d694+_0x47e2a2)),_0x32d694+=_0x47e2a2;}return Buffer[_0x21c84d(0x177)](_0x419b89);};while(_0x32d694<_0x4ee17c[_0xa251a4(0x16d)]){const _0x56182f=_0x4ee17c[_0x32d694++];if(_0x56182f===0x3b){if(!_0x52643b||_0x32d694!==_0x4ee17c['length'])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x56182f===0x21){_0x53e143(0x1),_0x32d694++,_0x23627b();continue;}if(_0x56182f!==0x2c)throw Error(_0xa251a4(0x173));_0x53e143(0x9);const _0x10e35c=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694),_0x2f60a0=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694+0x2),_0x195f43=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694+0x4),_0x473c36=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694+0x6),_0x5ec545=_0x4ee17c[_0x32d694+0x8];_0x32d694+=0x9,dimensions(_0x195f43,_0x473c36);if(_0x10e35c+_0x195f43>_0x2c2f8||_0x2f60a0+_0x473c36>_0x41e7ff||++_0x52643b>0x2710||(_0x123b57+=_0x2c2f8*_0x41e7ff)>MAX_PIXELS)throw Error(_0xa251a4(0x165));const _0x42a023=_0x5ec545&0x80?0x1<<(_0x5ec545&0x7)+0x1:_0xef8090;if(!_0x42a023)throw Error(_0xa251a4(0x14b));_0x5ec545&0x80&&(_0x53e143(_0x42a023*0x3),_0x32d694+=_0x42a023*0x3);_0x53e143(0x1);const _0x241830=_0x4ee17c[_0x32d694++];if(_0x241830<0x2||_0x241830>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x5402e0=_0x23627b(),_0x3b6b02=0x1<<_0x241830,_0x23e99c=_0x3b6b02+0x1;let _0xa7c786=_0x241830+0x1,_0x5cf1fb=_0x23e99c+0x1,_0x441b36=0x0,_0x23c7c8=-0x1,_0x25b31f=0x0,_0x19c3fd=![];const _0x1ae06d=new Uint32Array(0x1000),_0x3ec051=new Uint16Array(0x1000);for(let _0x6c288b=0x0;_0x6c288b<_0x3b6b02;_0x6c288b++){_0x1ae06d[_0x6c288b]=0x1,_0x3ec051[_0x6c288b]=_0x6c288b;}while(_0x441b36+_0xa7c786<=_0x5402e0['length']*0x8){let _0x4228f4=0x0;for(let _0x36512d=0x0;_0x36512d<_0xa7c786;_0x36512d++,_0x441b36++)_0x4228f4|=(_0x5402e0[_0x441b36>>0x3]>>(_0x441b36&0x7)&0x1)<<_0x36512d;if(_0x4228f4===_0x3b6b02){_0xa7c786=_0x241830+0x1,_0x5cf1fb=_0x23e99c+0x1,_0x23c7c8=-0x1;continue;}if(_0x4228f4===_0x23e99c){_0x19c3fd=!![];break;}if(_0x4228f4>_0x5cf1fb||_0x4228f4===_0x5cf1fb&&_0x23c7c8<0x0||_0x23c7c8<0x0&&_0x4228f4>=_0x3b6b02)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x1dfa05=_0x4228f4===_0x5cf1fb?_0x1ae06d[_0x23c7c8]+0x1:_0x1ae06d[_0x4228f4],_0x326bcb=_0x4228f4===_0x5cf1fb?_0x3ec051[_0x23c7c8]:_0x3ec051[_0x4228f4];if(!_0x1dfa05||_0x326bcb>=_0x42a023||(_0x25b31f+=_0x1dfa05)>_0x195f43*_0x473c36)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x23c7c8>=0x0&&_0x5cf1fb<0x1000){_0x1ae06d[_0x5cf1fb]=_0x1ae06d[_0x23c7c8]+0x1,_0x3ec051[_0x5cf1fb]=Math[_0xa251a4(0x174)](_0x3ec051[_0x23c7c8],_0x326bcb),_0x5cf1fb++;if(_0x5cf1fb===0x1<<_0xa7c786&&_0xa7c786<0xc)_0xa7c786++;}_0x23c7c8=_0x4228f4;}if(!_0x19c3fd||_0x25b31f!==_0x195f43*_0x473c36)throw Error(_0xa251a4(0x167));}throw Error(_0xa251a4(0x16e));}export function validateImageBytes(_0x4f68b9){const _0x2527da=a145_0x2bb7;if(!_0x4f68b9['length']||_0x4f68b9['length']>0xa*0x400*0x400)throw Error(_0x2527da(0x14e));let _0x43c128;try{if(_0x4f68b9[_0x2527da(0x171)](0x0,0x8)['equals'](Buffer[_0x2527da(0x16c)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x4f68b9[_0x2527da(0x16d)]<0x21||_0x4f68b9['toString'](_0x2527da(0x159),0xc,0x10)!=='IHDR')throw Error(_0x2527da(0x17e));dimensions(_0x4f68b9[_0x2527da(0x151)](0x10),_0x4f68b9[_0x2527da(0x151)](0x14));const _0x480652=_0x4f68b9[_0x2527da(0x151)](0x10),_0x2eb09f=_0x4f68b9[_0x2527da(0x151)](0x14),_0x3a7bbd=_0x4f68b9[0x18],_0x1f0838=_0x4f68b9[0x19],_0x15df28=_0x4f68b9[0x1c],_0x29371d={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1f0838];if(!_0x29371d||![0x1,0x2,0x4,0x8,0x10][_0x2527da(0x164)](_0x3a7bbd)||_0x15df28>0x1)throw Error(_0x2527da(0x147));const _0x564cdd=_0x32bed0=>Math[_0x2527da(0x176)](_0x32bed0*_0x29371d*_0x3a7bbd/0x8)+0x1;let _0x34e773=_0x564cdd(_0x480652)*_0x2eb09f;if(_0x15df28){_0x34e773=0x0;for(const [_0x9f1f57,_0x4a0086,_0x1a212f,_0x1c0d47]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 _0x7616a2=Math['max'](0x0,Math[_0x2527da(0x176)]((_0x480652-_0x9f1f57)/_0x1a212f)),_0x1960a3=Math[_0x2527da(0x174)](0x0,Math['ceil']((_0x2eb09f-_0x4a0086)/_0x1c0d47));if(_0x7616a2&&_0x1960a3)_0x34e773+=_0x564cdd(_0x7616a2)*_0x1960a3;}}let _0x4167d5=0x8,_0x4cba88=![];const _0x1eff65=[];while(_0x4167d5<_0x4f68b9['length']){if(_0x4167d5+0xc>_0x4f68b9['length'])throw Error(_0x2527da(0x178));const _0x2fd3ca=_0x4f68b9[_0x2527da(0x151)](_0x4167d5),_0x23a951=_0x4f68b9[_0x2527da(0x145)](_0x2527da(0x159),_0x4167d5+0x4,_0x4167d5+0x8);if(_0x23a951===_0x2527da(0x157))throw Error(_0x2527da(0x155));if(_0x4167d5+_0x2fd3ca+0xc>_0x4f68b9[_0x2527da(0x16d)])throw Error(_0x2527da(0x168));if(_0x23a951==='IDAT')_0x1eff65[_0x2527da(0x172)](_0x4f68b9[_0x2527da(0x171)](_0x4167d5+0x8,_0x4167d5+0x8+_0x2fd3ca));_0x4167d5+=_0x2fd3ca+0xc;if(_0x23a951===_0x2527da(0x158)){if(_0x2fd3ca||_0x4167d5!==_0x4f68b9['length'])throw Error(_0x2527da(0x166));_0x4cba88=!![];break;}}if(!_0x4cba88||!_0x1eff65[_0x2527da(0x16d)])throw Error(_0x2527da(0x162));if(inflateSync(Buffer[_0x2527da(0x177)](_0x1eff65),{'maxOutputLength':_0x34e773+0x1})[_0x2527da(0x16d)]!==_0x34e773)throw Error(_0x2527da(0x180));const {PNG:_0x10b1d4}=require(_0x2527da(0x156)),_0x456d56=_0x10b1d4[_0x2527da(0x149)]['read'](_0x4f68b9,{'checkCRC':!![]});dimensions(_0x456d56['width'],_0x456d56[_0x2527da(0x150)]),_0x43c128='image/png';}else{if(_0x4f68b9[0x0]===0xff&&_0x4f68b9[0x1]===0xd8){if(_0x4f68b9['at'](-0x2)!==0xff||_0x4f68b9['at'](-0x1)!==0xd9)throw Error(_0x2527da(0x17d));const _0x2c9f9b=require(_0x2527da(0x14a)),_0x10b009=_0x2c9f9b[_0x2527da(0x161)](_0x4f68b9,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x10b009['width'],_0x10b009[_0x2527da(0x150)]),_0x43c128='image/jpeg';}else{if([_0x2527da(0x17c),_0x2527da(0x163)]['includes'](_0x4f68b9[_0x2527da(0x145)](_0x2527da(0x159),0x0,0x6))){if(_0x4f68b9[_0x2527da(0x16d)]<0xe||_0x4f68b9['at'](-0x1)!==0x3b)throw Error(_0x2527da(0x16f));dimensions(_0x4f68b9[_0x2527da(0x17b)](0x6),_0x4f68b9[_0x2527da(0x17b)](0x8)),validateGif(_0x4f68b9);const {GifReader:_0x466c49}=require(_0x2527da(0x169)),_0x374c7a=new _0x466c49(_0x4f68b9);dimensions(_0x374c7a[_0x2527da(0x15a)],_0x374c7a['height']);const _0xb2cadc=_0x374c7a[_0x2527da(0x179)]();if(!_0xb2cadc||_0xb2cadc>0x2710||_0xb2cadc*_0x374c7a['width']*_0x374c7a[_0x2527da(0x150)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x1ae052=new Uint8Array(_0x374c7a[_0x2527da(0x15a)]*_0x374c7a[_0x2527da(0x150)]*0x4);for(let _0x339844=0x0;_0x339844<_0xb2cadc;_0x339844++){const _0x4eb76d=_0x374c7a[_0x2527da(0x146)](_0x339844);if(_0x4eb76d['x']+_0x4eb76d['width']>_0x374c7a[_0x2527da(0x15a)]||_0x4eb76d['y']+_0x4eb76d[_0x2527da(0x150)]>_0x374c7a[_0x2527da(0x150)])throw Error(_0x2527da(0x181));_0x374c7a[_0x2527da(0x170)](_0x339844,_0x1ae052);}_0x43c128=_0x2527da(0x16a);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x2996d7){throw Error(_0x2527da(0x154)+_0x2996d7[_0x2527da(0x15c)]);}return{'contentHash':createHash(_0x2527da(0x175))[_0x2527da(0x14f)](_0x4f68b9)[_0x2527da(0x14c)]('hex'),'type':_0x43c128,'size':_0x4f68b9[_0x2527da(0x16d)],'bytes':_0x4f68b9};}
|
|
1
|
+
function a145_0x574e(){const _0x22a9f7=['GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','read','omggif','Invalid\x20GIF\x20block.','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','ascii','subarray','364789xvlxmV','Invalid\x20PNG\x20end.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','2482944gRQksw','length','image/jpeg','acTL','Truncated\x20PNG\x20chunk.','readUInt32BE','Invalid\x20PNG\x20header.','Truncated\x20GIF.','Truncated\x20JPEG.','max','readUInt16LE','Truncated\x20GIF\x20data.','GIF89a','IHDR','decode','isSafeInteger','339704BZdFyo','44RpaKYh','Invalid\x20GIF\x20trailer.','image/gif','concat','Truncated\x20PNG\x20data.','toString','8523832vptHBQ','from','Invalid\x20PNG\x20color/depth/interlace.','push','includes','hex','height','8046117xyNaqG','14YsGbpR','sha256','ceil','decodeAndBlitFrameRGBA','width','jpeg-js','GIF\x20image\x20has\x20no\x20palette.','pngjs','update','4631840uglcrz','IEND','numFrames','Invalid\x20GIF\x20LZW\x20pixel\x20data.','55cagUYg','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Invalid\x20PNG\x20decoded\x20scanline\x20size.','GIF87a','equals','Invalid\x20image:\x20','Invalid\x20GIF\x20LZW\x20code\x20size.','21954yczsHr','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.'];a145_0x574e=function(){return _0x22a9f7;};return a145_0x574e();}(function(_0x344a91,_0x3b5754){const _0x560e8e=a145_0x3fe5,_0x34db4a=_0x344a91();while(!![]){try{const _0x44f24b=-parseInt(_0x560e8e(0x1ee))/0x1+-parseInt(_0x560e8e(0x202))/0x2*(parseInt(_0x560e8e(0x1e5))/0x3)+parseInt(_0x560e8e(0x201))/0x4*(parseInt(_0x560e8e(0x1de))/0x5)+-parseInt(_0x560e8e(0x1f1))/0x6*(-parseInt(_0x560e8e(0x210))/0x7)+-parseInt(_0x560e8e(0x208))/0x8+parseInt(_0x560e8e(0x20f))/0x9+-parseInt(_0x560e8e(0x1da))/0xa;if(_0x44f24b===_0x3b5754)break;else _0x34db4a['push'](_0x34db4a['shift']());}catch(_0x381a04){_0x34db4a['push'](_0x34db4a['shift']());}}}(a145_0x574e,0x92d37));function a145_0x3fe5(_0x1f3e73,_0x5eb8fb){_0x1f3e73=_0x1f3e73-0x1d5;const _0x574e19=a145_0x574e();let _0x3fe505=_0x574e19[_0x1f3e73];return _0x3fe505;}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x51da3c,_0x2b32e1){const _0x4e19e2=a145_0x3fe5;if(!Number['isSafeInteger'](_0x51da3c)||!Number[_0x4e19e2(0x200)](_0x2b32e1)||_0x51da3c<0x1||_0x2b32e1<0x1||_0x51da3c*_0x2b32e1>MAX_PIXELS)throw Error(_0x4e19e2(0x1eb));}function validateGif(_0x326003){const _0x361d20=a145_0x3fe5;let _0x34e273=0xd,_0x3d7108=0x0,_0x206ad2=0x0;const _0x2cb6cf=_0x326003[_0x361d20(0x1fb)](0x6),_0x1427e2=_0x326003['readUInt16LE'](0x8),_0x14f304=_0x326003[0xa]&0x80?0x1<<(_0x326003[0xa]&0x7)+0x1:0x0,_0x5ef0b2=_0x1d0f80=>{const _0x363e83=_0x361d20;if(_0x34e273+_0x1d0f80>_0x326003[_0x363e83(0x1f2)])throw Error(_0x363e83(0x1fc));};_0x34e273+=_0x14f304*0x3,_0x5ef0b2(0x0);const _0x43194e=()=>{const _0x2065ed=_0x361d20,_0x1b01a8=[];while(!![]){_0x5ef0b2(0x1);const _0x1574e1=_0x326003[_0x34e273++];if(!_0x1574e1)break;_0x5ef0b2(_0x1574e1),_0x1b01a8[_0x2065ed(0x20b)](_0x326003[_0x2065ed(0x1ed)](_0x34e273,_0x34e273+_0x1574e1)),_0x34e273+=_0x1574e1;}return Buffer[_0x2065ed(0x205)](_0x1b01a8);};while(_0x34e273<_0x326003[_0x361d20(0x1f2)]){const _0x284a1f=_0x326003[_0x34e273++];if(_0x284a1f===0x3b){if(!_0x3d7108||_0x34e273!==_0x326003[_0x361d20(0x1f2)])throw Error(_0x361d20(0x203));return;}if(_0x284a1f===0x21){_0x5ef0b2(0x1),_0x34e273++,_0x43194e();continue;}if(_0x284a1f!==0x2c)throw Error(_0x361d20(0x1ea));_0x5ef0b2(0x9);const _0x8dc944=_0x326003[_0x361d20(0x1fb)](_0x34e273),_0x3f9b64=_0x326003['readUInt16LE'](_0x34e273+0x2),_0x3e3336=_0x326003[_0x361d20(0x1fb)](_0x34e273+0x4),_0x5aba94=_0x326003[_0x361d20(0x1fb)](_0x34e273+0x6),_0x1d1d6e=_0x326003[_0x34e273+0x8];_0x34e273+=0x9,dimensions(_0x3e3336,_0x5aba94);if(_0x8dc944+_0x3e3336>_0x2cb6cf||_0x3f9b64+_0x5aba94>_0x1427e2||++_0x3d7108>0x2710||(_0x206ad2+=_0x2cb6cf*_0x1427e2)>MAX_PIXELS)throw Error(_0x361d20(0x1e7));const _0x49a1ee=_0x1d1d6e&0x80?0x1<<(_0x1d1d6e&0x7)+0x1:_0x14f304;if(!_0x49a1ee)throw Error(_0x361d20(0x1d7));_0x1d1d6e&0x80&&(_0x5ef0b2(_0x49a1ee*0x3),_0x34e273+=_0x49a1ee*0x3);_0x5ef0b2(0x1);const _0x3e8fe1=_0x326003[_0x34e273++];if(_0x3e8fe1<0x2||_0x3e8fe1>0x8)throw Error(_0x361d20(0x1e4));const _0x55e88e=_0x43194e(),_0x17be7d=0x1<<_0x3e8fe1,_0x13a98b=_0x17be7d+0x1;let _0x1fdcdb=_0x3e8fe1+0x1,_0x526f8a=_0x13a98b+0x1,_0x5c063c=0x0,_0xfcc2fe=-0x1,_0x3be8e0=0x0,_0x2c549f=![];const _0x564a8d=new Uint32Array(0x1000),_0x138427=new Uint16Array(0x1000);for(let _0x5f1f5e=0x0;_0x5f1f5e<_0x17be7d;_0x5f1f5e++){_0x564a8d[_0x5f1f5e]=0x1,_0x138427[_0x5f1f5e]=_0x5f1f5e;}while(_0x5c063c+_0x1fdcdb<=_0x55e88e['length']*0x8){let _0x14ef85=0x0;for(let _0x3ce19d=0x0;_0x3ce19d<_0x1fdcdb;_0x3ce19d++,_0x5c063c++)_0x14ef85|=(_0x55e88e[_0x5c063c>>0x3]>>(_0x5c063c&0x7)&0x1)<<_0x3ce19d;if(_0x14ef85===_0x17be7d){_0x1fdcdb=_0x3e8fe1+0x1,_0x526f8a=_0x13a98b+0x1,_0xfcc2fe=-0x1;continue;}if(_0x14ef85===_0x13a98b){_0x2c549f=!![];break;}if(_0x14ef85>_0x526f8a||_0x14ef85===_0x526f8a&&_0xfcc2fe<0x0||_0xfcc2fe<0x0&&_0x14ef85>=_0x17be7d)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x461c12=_0x14ef85===_0x526f8a?_0x564a8d[_0xfcc2fe]+0x1:_0x564a8d[_0x14ef85],_0x48b05a=_0x14ef85===_0x526f8a?_0x138427[_0xfcc2fe]:_0x138427[_0x14ef85];if(!_0x461c12||_0x48b05a>=_0x49a1ee||(_0x3be8e0+=_0x461c12)>_0x3e3336*_0x5aba94)throw Error(_0x361d20(0x1dd));if(_0xfcc2fe>=0x0&&_0x526f8a<0x1000){_0x564a8d[_0x526f8a]=_0x564a8d[_0xfcc2fe]+0x1,_0x138427[_0x526f8a]=Math['max'](_0x138427[_0xfcc2fe],_0x48b05a),_0x526f8a++;if(_0x526f8a===0x1<<_0x1fdcdb&&_0x1fdcdb<0xc)_0x1fdcdb++;}_0xfcc2fe=_0x14ef85;}if(!_0x2c549f||_0x3be8e0!==_0x3e3336*_0x5aba94)throw Error(_0x361d20(0x1df));}throw Error('Missing\x20GIF\x20trailer.');}export function validateImageBytes(_0x1bbebd){const _0x356bec=a145_0x3fe5;if(!_0x1bbebd['length']||_0x1bbebd[_0x356bec(0x1f2)]>0xa*0x400*0x400)throw Error(_0x356bec(0x1f0));let _0x4caece;try{if(_0x1bbebd['subarray'](0x0,0x8)[_0x356bec(0x1e2)](Buffer[_0x356bec(0x209)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1bbebd['length']<0x21||_0x1bbebd['toString'](_0x356bec(0x1ec),0xc,0x10)!==_0x356bec(0x1fe))throw Error(_0x356bec(0x1f7));dimensions(_0x1bbebd[_0x356bec(0x1f6)](0x10),_0x1bbebd[_0x356bec(0x1f6)](0x14));const _0x4b19c6=_0x1bbebd[_0x356bec(0x1f6)](0x10),_0x234948=_0x1bbebd[_0x356bec(0x1f6)](0x14),_0x1947ca=_0x1bbebd[0x18],_0x239c8b=_0x1bbebd[0x19],_0x210d71=_0x1bbebd[0x1c],_0x1a37f0={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x239c8b];if(!_0x1a37f0||![0x1,0x2,0x4,0x8,0x10][_0x356bec(0x20c)](_0x1947ca)||_0x210d71>0x1)throw Error(_0x356bec(0x20a));const _0xf7f962=_0xa21b0e=>Math[_0x356bec(0x212)](_0xa21b0e*_0x1a37f0*_0x1947ca/0x8)+0x1;let _0x35eee9=_0xf7f962(_0x4b19c6)*_0x234948;if(_0x210d71){_0x35eee9=0x0;for(const [_0x57b5f5,_0xe9321d,_0x1c016e,_0x4cb84e]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 _0x2f39a5=Math[_0x356bec(0x1fa)](0x0,Math[_0x356bec(0x212)]((_0x4b19c6-_0x57b5f5)/_0x1c016e)),_0x29af64=Math[_0x356bec(0x1fa)](0x0,Math[_0x356bec(0x212)]((_0x234948-_0xe9321d)/_0x4cb84e));if(_0x2f39a5&&_0x29af64)_0x35eee9+=_0xf7f962(_0x2f39a5)*_0x29af64;}}let _0xd81f8a=0x8,_0x4e43f8=![];const _0x148355=[];while(_0xd81f8a<_0x1bbebd[_0x356bec(0x1f2)]){if(_0xd81f8a+0xc>_0x1bbebd[_0x356bec(0x1f2)])throw Error(_0x356bec(0x1f5));const _0x5376cf=_0x1bbebd[_0x356bec(0x1f6)](_0xd81f8a),_0x4830ea=_0x1bbebd['toString'](_0x356bec(0x1ec),_0xd81f8a+0x4,_0xd81f8a+0x8);if(_0x4830ea===_0x356bec(0x1f4))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0xd81f8a+_0x5376cf+0xc>_0x1bbebd['length'])throw Error(_0x356bec(0x206));if(_0x4830ea==='IDAT')_0x148355['push'](_0x1bbebd[_0x356bec(0x1ed)](_0xd81f8a+0x8,_0xd81f8a+0x8+_0x5376cf));_0xd81f8a+=_0x5376cf+0xc;if(_0x4830ea===_0x356bec(0x1db)){if(_0x5376cf||_0xd81f8a!==_0x1bbebd['length'])throw Error(_0x356bec(0x1ef));_0x4e43f8=!![];break;}}if(!_0x4e43f8||!_0x148355[_0x356bec(0x1f2)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer['concat'](_0x148355),{'maxOutputLength':_0x35eee9+0x1})['length']!==_0x35eee9)throw Error(_0x356bec(0x1e0));const {PNG:_0x5141c0}=require(_0x356bec(0x1d8)),_0x103086=_0x5141c0['sync'][_0x356bec(0x1e8)](_0x1bbebd,{'checkCRC':!![]});dimensions(_0x103086[_0x356bec(0x1d5)],_0x103086[_0x356bec(0x20e)]),_0x4caece='image/png';}else{if(_0x1bbebd[0x0]===0xff&&_0x1bbebd[0x1]===0xd8){if(_0x1bbebd['at'](-0x2)!==0xff||_0x1bbebd['at'](-0x1)!==0xd9)throw Error(_0x356bec(0x1f9));const _0x5043e3=require(_0x356bec(0x1d6)),_0x5aa453=_0x5043e3[_0x356bec(0x1ff)](_0x1bbebd,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5aa453[_0x356bec(0x1d5)],_0x5aa453[_0x356bec(0x20e)]),_0x4caece=_0x356bec(0x1f3);}else{if([_0x356bec(0x1e1),_0x356bec(0x1fd)][_0x356bec(0x20c)](_0x1bbebd[_0x356bec(0x207)]('ascii',0x0,0x6))){if(_0x1bbebd[_0x356bec(0x1f2)]<0xe||_0x1bbebd['at'](-0x1)!==0x3b)throw Error(_0x356bec(0x1f8));dimensions(_0x1bbebd[_0x356bec(0x1fb)](0x6),_0x1bbebd['readUInt16LE'](0x8)),validateGif(_0x1bbebd);const {GifReader:_0x20bbc6}=require(_0x356bec(0x1e9)),_0xa871e1=new _0x20bbc6(_0x1bbebd);dimensions(_0xa871e1['width'],_0xa871e1[_0x356bec(0x20e)]);const _0x4942ea=_0xa871e1[_0x356bec(0x1dc)]();if(!_0x4942ea||_0x4942ea>0x2710||_0x4942ea*_0xa871e1['width']*_0xa871e1[_0x356bec(0x20e)]>MAX_PIXELS)throw Error(_0x356bec(0x1e7));const _0x320ce2=new Uint8Array(_0xa871e1[_0x356bec(0x1d5)]*_0xa871e1[_0x356bec(0x20e)]*0x4);for(let _0x274886=0x0;_0x274886<_0x4942ea;_0x274886++){const _0x6b4a01=_0xa871e1['frameInfo'](_0x274886);if(_0x6b4a01['x']+_0x6b4a01[_0x356bec(0x1d5)]>_0xa871e1['width']||_0x6b4a01['y']+_0x6b4a01[_0x356bec(0x20e)]>_0xa871e1[_0x356bec(0x20e)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0xa871e1[_0x356bec(0x213)](_0x274886,_0x320ce2);}_0x4caece=_0x356bec(0x204);}else throw Error(_0x356bec(0x1e6));}}}catch(_0x1edc56){throw Error(_0x356bec(0x1e3)+_0x1edc56['message']);}return{'contentHash':createHash(_0x356bec(0x211))[_0x356bec(0x1d9)](_0x1bbebd)['digest'](_0x356bec(0x20d)),'type':_0x4caece,'size':_0x1bbebd[_0x356bec(0x1f2)],'bytes':_0x1bbebd};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a146_0x1407f2=a146_0x1e1a;(function(_0x47d0d6,_0x4144ae){const _0x3637ea=a146_0x1e1a,_0x36ec60=_0x47d0d6();while(!![]){try{const _0x23d378=parseInt(_0x3637ea(0x25b))/0x1*(parseInt(_0x3637ea(0x238))/0x2)+parseInt(_0x3637ea(0x220))/0x3+parseInt(_0x3637ea(0x207))/0x4*(-parseInt(_0x3637ea(0x22c))/0x5)+-parseInt(_0x3637ea(0x229))/0x6+parseInt(_0x3637ea(0x1cb))/0x7*(-parseInt(_0x3637ea(0x1d2))/0x8)+parseInt(_0x3637ea(0x1f1))/0x9*(parseInt(_0x3637ea(0x1dc))/0xa)+-parseInt(_0x3637ea(0x258))/0xb*(parseInt(_0x3637ea(0x253))/0xc);if(_0x23d378===_0x4144ae)break;else _0x36ec60['push'](_0x36ec60['shift']());}catch(_0x29f711){_0x36ec60['push'](_0x36ec60['shift']());}}}(a146_0x58f7,0x5a127));import a146_0x115e8e from'node:path';function a146_0x1e1a(_0x5ba095,_0x810121){_0x5ba095=_0x5ba095-0x1b6;const _0x58f7c1=a146_0x58f7();let _0x1e1a6b=_0x58f7c1[_0x5ba095];return _0x1e1a6b;}import{SaxesParser}from'saxes';function a146_0x58f7(){const _0x6bd38d=['XLRICHVALUE','WPS\x20image\x20blip','rel','Unsupported\x20rich\x20image\x20relation\x20namespace.','_rels','1200588BqMVSA','flatMap','Missing\x20future\x20metadata\x20block.','isFinite','Ambiguous\x20XML\x20attribute.','sheetMetadata','from','sheet','anchor\x20row','xl/','blipFill','pop','cellImage','anchor\x20end','round','write','Missing\x20or\x20ambiguous\x20','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','exec','anchor\x20end\x20offset','attrs','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','oneCellAnchor','Missing\x20rich\x20image\x20relationship.','Unsupported\x20worksheet\x20namespace.','674727AAPBVW','richValueRel','col','anchor\x20column','fromEntries','uri','Relationship','metadataType','metadataTypes','1060818BPtqEu','filter','local','5SImZBl','basename','drawing','defaultRowHeight','sheetFormatPr','twoCellAnchor','charCodeAt','rowOff','posix','map','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','error','62qCfsdH','row','metadata','anchor\x20start\x20offset','Value\x20metadata\x20index\x20must\x20be\x20one-based.','r:embed','http://schemas.openxmlformats.org/drawingml/2006/main','\x20relationship\x20in\x20','Relationship\x20target\x20escapes\x20workbook:\x20','image\x20extent','rich\x20image\x20relationship\x20index','type','pic','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','includes','Unsupported\x20workbook\x20namespace.','name','rvData','add','shared','r:link','Unsupported\x20rich\x20structure\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','rich\x20value\x20binding','nvPicPr','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','24WbYuGI','http://schemas.openxmlformats.org/package/2006/relationships','normalize','rvb','value','99704XlaztS','Unsupported\x20rich\x20value\x20namespace.','richValueRels','14669CezPcR','futureMetadata','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','image','_rvRel:LocalImageIdentifier','worksheet','Invalid\x20relationship\x20target:\x20','metadata\x20types','hidden','attributes','http://schemas.openxmlformats.org/spreadsheetml/2006/main','test','value\x20metadata\x20index','absoluteAnchor','Missing\x20XLSX\x20part:\x20','true','set','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','rich\x20future\x20metadata','sheets','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','Image\x20XML\x20node\x20budget\x20exceeded.','http://purl.oclc.org/ooxml/drawingml/main','7bBZePb','has','closetag','image\x20row\x20height\x20coordinate','Unsupported\x20metadata\x20namespace.','Internal','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','240896LRgDHL','r:id','http://purl.oclc.org/ooxml/officeDocument/relationships','Unsupported\x20mapped\x20cell\x20metadata\x20type.','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','Missing\x20rich\x20value.','Image\x20XML\x20event\x20budget\x20exceeded.','ext','rvStructures','isSafeInteger','15430kELypL','image\x20height','Relationships','toLowerCase','rdRichValueStructure','workbook','values','http://schemas.openxmlformats.org/officeDocument/2006/relationships','extLst','sheetData','http://purl.oclc.org/ooxml/spreadsheetml/main','doctype','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','MAX_SAFE_INTEGER','text','anchor\x20start','children','future\x20metadata\x20index','WPS\x20image\x20name','join','startsWith','1251NJRALU','Missing\x20local\x20image\x20identifier\x20value.','wsDr','get','Invalid\x20','valueMetadata','http://www.wps.cn/officeDocument/2017/etCustomData','length','cNvPr','rdRichValue','push','Unsupported\x20WPS\x20cell\x20image\x20namespace.','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','cellImages','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','slice'];a146_0x58f7=function(){return _0x6bd38d;};return a146_0x58f7();}const SHEET=[a146_0x1407f2(0x1bd),a146_0x1407f2(0x1e6)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x1407f2(0x200)],DRAWING_MAIN=[a146_0x1407f2(0x23e),a146_0x1407f2(0x1ca)],OFFICE_RELS=[a146_0x1407f2(0x1e3),a146_0x1407f2(0x1d4)],PACKAGE=[a146_0x1407f2(0x254)],RICH=[a146_0x1407f2(0x25d)],RICH_RELS=[a146_0x1407f2(0x1c8)],WPS=[a146_0x1407f2(0x1f7)],DEFAULT_NS=Object[a146_0x1407f2(0x224)]([...[a146_0x1407f2(0x1e1),a146_0x1407f2(0x1c7),'sheet',a146_0x1407f2(0x1b8),a146_0x1407f2(0x1e5),'row','c','f','v',a146_0x1407f2(0x230),'drawing',a146_0x1407f2(0x23a),a146_0x1407f2(0x228),a146_0x1407f2(0x227),a146_0x1407f2(0x25c),a146_0x1407f2(0x1f6),'bk','rc',a146_0x1407f2(0x1e4)][a146_0x1407f2(0x235)](_0x56e96e=>[_0x56e96e,SHEET]),...[a146_0x1407f2(0x1f3),a146_0x1407f2(0x21d),'twoCellAnchor','absoluteAnchor',a146_0x1407f2(0x20d),'to',a146_0x1407f2(0x222),'colOff','rowOff',a146_0x1407f2(0x1d9),a146_0x1407f2(0x244),a146_0x1407f2(0x250),a146_0x1407f2(0x1f9),a146_0x1407f2(0x211)][a146_0x1407f2(0x235)](_0xae341e=>[_0xae341e,DRAWING]),...[a146_0x1407f2(0x256),a146_0x1407f2(0x249),'rv','rvStructures','s','k'][a146_0x1407f2(0x235)](_0x1fd4d0=>[_0x1fd4d0,RICH]),['blip',DRAWING_MAIN],[a146_0x1407f2(0x25a),RICH_RELS],[a146_0x1407f2(0x204),RICH_RELS],[a146_0x1407f2(0x1de),PACKAGE],[a146_0x1407f2(0x226),PACKAGE],['cellImages',WPS],[a146_0x1407f2(0x213),WPS]]),matches=(_0x1493c5,_0x4cbb53,_0x1060d2=DEFAULT_NS[_0x4cbb53]??[])=>_0x1493c5['name']===_0x4cbb53&&_0x1060d2[a146_0x1407f2(0x246)](_0x1493c5[a146_0x1407f2(0x225)]),children=(_0x4f816a,_0x1c38e4,_0x3d19a5=DEFAULT_NS[_0x1c38e4])=>_0x4f816a['children'][a146_0x1407f2(0x22a)](_0xd64c23=>matches(_0xd64c23,_0x1c38e4,_0x3d19a5)),chain=(_0x51ee86,..._0x32a89e)=>_0x32a89e['reduce']((_0x16c3d,_0x17f5aa)=>_0x16c3d[a146_0x1407f2(0x208)](_0x3810d3=>children(_0x3810d3,_0x17f5aa)),[_0x51ee86]),relationshipTypes=_0x1b0d05=>{const _0x10d2e1=a146_0x1407f2;if([_0x10d2e1(0x1fa),_0x10d2e1(0x1e0)][_0x10d2e1(0x246)](_0x1b0d05))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x1b0d05];if(_0x1b0d05===_0x10d2e1(0x221))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x1b0d05===_0x10d2e1(0x213)||_0x1b0d05==='cellImages')return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x1b0d05];return OFFICE_RELS[_0x10d2e1(0x235)](_0x35595c=>_0x35595c+'/'+_0x1b0d05);};function one(_0xfe0e66,_0x1bfcd1){const _0x1eefdd=a146_0x1407f2;if(_0xfe0e66[_0x1eefdd(0x1f8)]!==0x1)throw Error(_0x1eefdd(0x217)+_0x1bfcd1+'.');return _0xfe0e66[0x0];}function integer(_0x2e612f,_0x5cda0d,_0x3b79b9=0x186a0){const _0x391dd2=a146_0x1407f2;if(!_0x2e612f||!/^\d+$/['test'](_0x2e612f)||!Number[_0x391dd2(0x1db)](Number(_0x2e612f))||Number(_0x2e612f)>_0x3b79b9)throw Error(_0x391dd2(0x1f5)+_0x5cda0d+'.');return Number(_0x2e612f);}export function resolveWorksheetImages(_0x308b07,_0x463148,_0x27ba4c){const _0x532f94=a146_0x1407f2;let _0x5b1a5a=0x0,_0x17dc30=0x0,_0x118bea=0x0;const _0x4414b8=new Map(),_0xfc63c7=_0x2b1514=>{const _0x67f74=a146_0x1e1a;if(_0x4414b8['has'](_0x2b1514))return _0x4414b8[_0x67f74(0x1f4)](_0x2b1514);const _0x3d9629=_0x308b07[_0x67f74(0x1f4)](_0x2b1514);if(!_0x3d9629)throw Error(_0x67f74(0x1c1)+_0x2b1514+'.');const _0x195873={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x522cd9=[_0x195873],_0xea3bfc=new SaxesParser({'xmlns':!![]}),_0x1de19e=()=>{const _0x34c5fd=_0x67f74;if(++_0x17dc30>0x1e8480)throw Error(_0x34c5fd(0x1d8));};_0xea3bfc['on'](_0x67f74(0x1e7),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0xea3bfc['on']('opentag',_0xd17b1d=>{const _0x4bf49c=_0x67f74;_0x1de19e();if(++_0x5b1a5a>0x7a120||_0x522cd9['length']>0x40)throw Error(_0x4bf49c(0x1c9));const _0x235b64={};for(const _0x212b34 of Object[_0x4bf49c(0x1e2)](_0xd17b1d[_0x4bf49c(0x1bc)])){const _0x2d391c=OFFICE_RELS[_0x4bf49c(0x246)](_0x212b34[_0x4bf49c(0x225)])?'r:'+_0x212b34[_0x4bf49c(0x22b)]:_0x212b34[_0x4bf49c(0x225)]?'{'+_0x212b34['uri']+'}'+_0x212b34[_0x4bf49c(0x22b)]:_0x212b34[_0x4bf49c(0x22b)];if(_0x2d391c in _0x235b64)throw Error(_0x4bf49c(0x20b));_0x235b64[_0x2d391c]=_0x212b34[_0x4bf49c(0x257)];}const _0x7130a4={'name':_0xd17b1d['local'],'uri':_0xd17b1d[_0x4bf49c(0x225)],'attrs':_0x235b64,'children':[],'text':''};_0x522cd9['at'](-0x1)[_0x4bf49c(0x1ec)]['push'](_0x7130a4),_0x522cd9[_0x4bf49c(0x1fb)](_0x7130a4);}),_0xea3bfc['on'](_0x67f74(0x1ea),_0x46e648=>{const _0x9818cb=_0x67f74;_0x1de19e();const _0x59c0a1=_0x522cd9['at'](-0x1);_0x59c0a1[_0x9818cb(0x1ea)]+=_0x46e648;if(_0x59c0a1[_0x9818cb(0x1ea)][_0x9818cb(0x1f8)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0xea3bfc['on'](_0x67f74(0x1cd),()=>{const _0x52906d=_0x67f74;_0x1de19e(),_0x522cd9[_0x52906d(0x212)]();}),_0xea3bfc['on'](_0x67f74(0x237),_0xe44e12=>{throw _0xe44e12;}),_0xea3bfc[_0x67f74(0x216)](_0x3d9629['toString']('utf8'))['close']();const _0x5508ef=one(_0x195873[_0x67f74(0x1ec)],_0x2b1514);return _0x4414b8[_0x67f74(0x1c3)](_0x2b1514,_0x5508ef),_0x5508ef;},_0x495f65=new Map(),_0x1e6a5d=_0x446a5e=>{const _0x567799=a146_0x1e1a;if(_0x495f65[_0x567799(0x1cc)](_0x446a5e))return _0x495f65['get'](_0x446a5e);const _0xd9de47=a146_0x115e8e['posix'][_0x567799(0x1ef)](a146_0x115e8e[_0x567799(0x234)]['dirname'](_0x446a5e),_0x567799(0x206),a146_0x115e8e[_0x567799(0x234)][_0x567799(0x22d)](_0x446a5e)+'.rels');if(!_0x308b07['has'](_0xd9de47))return[];const _0x1f11a1=new Set(),_0x238da0=_0xfc63c7(_0xd9de47);if(!matches(_0x238da0,'Relationships'))throw Error('Unsupported\x20relationship\x20namespace\x20in\x20'+_0xd9de47+'.');const _0x114c97=children(_0x238da0,_0x567799(0x226))[_0x567799(0x235)](_0x2af741=>{const _0x13394a=_0x567799,{Id:_0x1be93b,Type:_0x47d37f,Target:_0x23f2e5,TargetMode:_0x1b9842}=_0x2af741[_0x13394a(0x21b)];if(!_0x1be93b||_0x1f11a1['has'](_0x1be93b)||!_0x47d37f)throw Error(_0x13394a(0x218)+_0xd9de47+'.');return _0x1f11a1[_0x13394a(0x24a)](_0x1be93b),{'id':_0x1be93b,'type':_0x47d37f,'target':_0x23f2e5??'','mode':_0x1b9842};});return _0x495f65[_0x567799(0x1c3)](_0x446a5e,_0x114c97),_0x114c97;},_0x4e5cb6=(_0x2ba98e,_0x2a5eef)=>{const _0x288dcc=a146_0x1e1a,{target:_0x16a080,mode:_0x5bceb2}=_0x2a5eef;if(_0x5bceb2&&_0x5bceb2!==_0x288dcc(0x1d0))throw Error(_0x288dcc(0x1ff)+_0x2ba98e+'.');if(!_0x16a080||_0x16a080[_0x288dcc(0x246)]('\x5c')||/[?#%\x00-\x20]/[_0x288dcc(0x1be)](_0x16a080)||/^[a-z][a-z0-9+.-]*:/i[_0x288dcc(0x1be)](_0x16a080)||_0x16a080[_0x288dcc(0x1f0)]('//'))throw Error(_0x288dcc(0x1b9)+_0x2ba98e+'.');const _0x1f7af7=_0x16a080['startsWith']('/')?_0x16a080[_0x288dcc(0x201)](0x1):a146_0x115e8e[_0x288dcc(0x234)][_0x288dcc(0x255)](a146_0x115e8e[_0x288dcc(0x234)][_0x288dcc(0x1ef)](a146_0x115e8e['posix']['dirname'](_0x2ba98e),_0x16a080));if(_0x1f7af7[_0x288dcc(0x1f0)]('../')||_0x1f7af7==='..'||!_0x1f7af7[_0x288dcc(0x1f0)](_0x288dcc(0x210)))throw Error(_0x288dcc(0x240)+_0x2ba98e+'.');return _0x1f7af7;},_0x5788f=(_0x2a465c,_0x215539,_0x4e32bf)=>{const _0x1f9dca=a146_0x1e1a,_0x1de310=_0x1e6a5d(_0x2a465c)[_0x1f9dca(0x22a)](_0x136ec4=>_0x136ec4['id']===_0x215539&&relationshipTypes(_0x4e32bf)['includes'](_0x136ec4[_0x1f9dca(0x243)]));if(_0x1de310[_0x1f9dca(0x1f8)]!==0x1)throw Error(_0x1f9dca(0x217)+_0x4e32bf+_0x1f9dca(0x23f)+_0x2a465c+'.');return _0x4e5cb6(_0x2a465c,_0x1de310[0x0]);},_0xe6916e=(_0x487146,_0x545712)=>{const _0x55dcb7=a146_0x1e1a,_0x44cfd6=_0x1e6a5d(_0x487146)[_0x55dcb7(0x22a)](_0x102024=>relationshipTypes(_0x545712)[_0x55dcb7(0x246)](_0x102024[_0x55dcb7(0x243)]));if(_0x44cfd6[_0x55dcb7(0x1f8)]!==0x1)throw Error(_0x55dcb7(0x217)+_0x545712+_0x55dcb7(0x23f)+_0x487146+'.');return _0x4e5cb6(_0x487146,_0x44cfd6[0x0]);},_0x4663f1='xl/workbook.xml',_0x57b780=_0xfc63c7(_0x4663f1);if(!matches(_0x57b780,_0x532f94(0x1e1)))throw Error(_0x532f94(0x247));const _0x26e2ee=one(chain(_0x57b780,_0x532f94(0x1c7),_0x532f94(0x20e))[_0x532f94(0x22a)](_0x43d99c=>_0x43d99c[_0x532f94(0x21b)][_0x532f94(0x248)]===_0x463148),_0x532f94(0x1b8)),_0x54bd01=_0x5788f(_0x4663f1,_0x26e2ee[_0x532f94(0x21b)][_0x532f94(0x1d3)],_0x532f94(0x1b8)),_0x4ebcf7=_0xfc63c7(_0x54bd01);if(!matches(_0x4ebcf7,'worksheet'))throw Error(_0x532f94(0x21f));const _0x1871b0=chain(_0x4ebcf7,_0x532f94(0x1e5),_0x532f94(0x239)),_0x18dbe5=new Map(),_0x5caab5=new Set(_0x1871b0['filter'](_0x23226b=>_0x23226b[_0x532f94(0x21b)][_0x532f94(0x1bb)]==='1'||_0x23226b[_0x532f94(0x21b)][_0x532f94(0x1bb)]===_0x532f94(0x1c2))[_0x532f94(0x235)](_0x4b52f6=>integer(_0x4b52f6['attrs']['r'],'hidden\x20image\x20row'))),_0x32e631=_0x3a458a=>{const _0x521359=_0x532f94,_0x302f45=_0x3a458a===undefined?0xf:Number(_0x3a458a);if(!Number[_0x521359(0x20a)](_0x302f45)||_0x302f45<=0x0||_0x302f45>409.5)throw Error(_0x521359(0x1c4));return Math[_0x521359(0x215)](_0x302f45*0x319c);},_0x42c859=_0x32e631(children(_0x4ebcf7,_0x532f94(0x230))[0x0]?.['attrs'][_0x532f94(0x22f)]);for(const _0x5d3259 of _0x1871b0)if(_0x5d3259[_0x532f94(0x21b)]['ht']!==undefined)_0x18dbe5[_0x532f94(0x1c3)](integer(_0x5d3259['attrs']['r'],_0x532f94(0x1ce)),_0x32e631(_0x5d3259[_0x532f94(0x21b)]['ht']));const _0x37a6ce=[],_0x2454ee=_0x440133=>{const _0xffb65=_0x532f94;if(!_0x27ba4c['has'](_0x440133[_0xffb65(0x222)]))return;if(++_0x118bea>0x2710)throw Error(_0xffb65(0x1e8));_0x37a6ce['push'](_0x5caab5[_0xffb65(0x1cc)](_0x440133[_0xffb65(0x239)])?{..._0x440133,'hiddenRow':!![]}:_0x440133);},_0x4a2d09=_0x102d52=>({'row':integer(one(children(_0x102d52,'row',DRAWING),'anchor\x20row')[_0x532f94(0x1ea)],_0x532f94(0x20f),0x1869f)+0x1,'col':integer(one(children(_0x102d52,'col'),_0x532f94(0x223))[_0x532f94(0x1ea)],'anchor\x20column',0xff)+0x1});for(const _0x475703 of children(_0x4ebcf7,_0x532f94(0x22e))){const _0x41624a=_0x5788f(_0x54bd01,_0x475703['attrs'][_0x532f94(0x1d3)],'drawing'),_0xed07eb=_0xfc63c7(_0x41624a);if(!matches(_0xed07eb,_0x532f94(0x1f3)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x5b0552 of _0xed07eb[_0x532f94(0x1ec)]){if(!['oneCellAnchor','twoCellAnchor',_0x532f94(0x1c0)]['some'](_0x4c99a9=>matches(_0x5b0552,_0x4c99a9)))continue;if(_0x5b0552[_0x532f94(0x248)]===_0x532f94(0x1c0))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0x463148+'.');const _0x217a4b=_0x4a2d09(one(children(_0x5b0552,_0x532f94(0x20d)),_0x532f94(0x1eb)));if(!_0x27ba4c[_0x532f94(0x1cc)](_0x217a4b[_0x532f94(0x222)]))continue;let _0x4b346a;const _0x36b335=one(children(_0x5b0552,_0x532f94(0x20d)),_0x532f94(0x1eb)),_0x3cac74=integer(one(children(_0x36b335,_0x532f94(0x233)),'anchor\x20start\x20offset')['text'],_0x532f94(0x23b),Number[_0x532f94(0x1e9)]),_0x399501=_0x18dbe5['get'](_0x217a4b[_0x532f94(0x239)])??_0x42c859;if(_0x3cac74>=_0x399501)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0x217a4b[_0x532f94(0x239)]+'.');if(_0x5b0552['name']===_0x532f94(0x21d)){const _0x4df783=one(children(_0x5b0552,_0x532f94(0x1d9)),_0x532f94(0x241)),_0x186f25=integer(_0x4df783['attrs']['cy'],_0x532f94(0x1dd),Number[_0x532f94(0x1e9)]);if(!_0x186f25||_0x3cac74+_0x186f25>_0x399501)_0x4b346a=_0x532f94(0x1d1);}if(_0x5b0552[_0x532f94(0x248)]===_0x532f94(0x231)){const _0x5e2902=one(children(_0x5b0552,'to'),_0x532f94(0x214)),_0x293050=_0x4a2d09(_0x5e2902),_0x22e5ca=integer(one(children(_0x5e2902,'rowOff'),_0x532f94(0x21a))[_0x532f94(0x1ea)],_0x532f94(0x21a),Number[_0x532f94(0x1e9)]),_0x155307=_0x18dbe5[_0x532f94(0x1f4)](_0x293050[_0x532f94(0x239)])??_0x42c859;if(_0x22e5ca>_0x155307||_0x293050[_0x532f94(0x239)]===_0x217a4b['row']&&_0x22e5ca<=_0x3cac74)_0x4b346a=_0x532f94(0x245);if(_0x293050['row']<_0x217a4b[_0x532f94(0x239)]||_0x293050[_0x532f94(0x239)]>_0x217a4b['row']+0x1||_0x293050['row']===_0x217a4b[_0x532f94(0x239)]+0x1&&_0x22e5ca!==0x0)_0x4b346a=_0x532f94(0x1d1);}const _0x45c66e=chain(_0x5b0552,_0x532f94(0x244),_0x532f94(0x211),'blip');for(const _0x54aef0 of _0x45c66e){if(_0x54aef0['attrs']['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x2454ee({..._0x217a4b,'media':[_0x5788f(_0x41624a,_0x54aef0['attrs'][_0x532f94(0x23d)],_0x532f94(0x1b6))],..._0x4b346a?{'error':_0x4b346a}:{}});}if(!_0x45c66e[_0x532f94(0x1f8)])_0x2454ee({..._0x217a4b,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x1bb9a5=_0x310945=>{const _0x1967d3=_0x532f94,_0x2793dd=_0xfc63c7(_0xe6916e(_0x4663f1,_0x1967d3(0x20c)));if(!matches(_0x2793dd,_0x1967d3(0x23a)))throw Error(_0x1967d3(0x1cf));const _0x1de85c=integer(_0x310945[_0x1967d3(0x21b)]['vm'],_0x1967d3(0x1bf));if(!_0x1de85c)throw Error(_0x1967d3(0x23c));const _0x27a9af=children(one(children(_0x2793dd,'valueMetadata'),'valueMetadata'),'bk')[_0x1de85c-0x1];if(!_0x27a9af)throw Error('Missing\x20value\x20metadata\x20block.');const _0x4c5f04=one(children(_0x27a9af,'rc'),'rich\x20metadata\x20record'),_0x263e45=integer(_0x4c5f04[_0x1967d3(0x21b)]['t'],'metadata\x20type\x20index'),_0x2fb67f=children(one(children(_0x2793dd,_0x1967d3(0x228)),_0x1967d3(0x1ba)),_0x1967d3(0x227))[_0x263e45-0x1];if(!_0x263e45||_0x2fb67f?.[_0x1967d3(0x21b)]['name']!=='XLRICHVALUE')throw Error(_0x1967d3(0x1d5));const _0xda09ad=one(children(_0x2793dd,_0x1967d3(0x25c))['filter'](_0x3846b8=>_0x3846b8[_0x1967d3(0x21b)][_0x1967d3(0x248)]===_0x1967d3(0x202)),_0x1967d3(0x1c6)),_0x21abad=children(_0xda09ad,'bk')[integer(_0x4c5f04[_0x1967d3(0x21b)]['v'],_0x1967d3(0x1ed))];if(!_0x21abad)throw Error(_0x1967d3(0x209));const _0x2b1b41=chain(_0x21abad,_0x1967d3(0x1e4))[_0x1967d3(0x208)](_0x37b413=>children(_0x37b413,_0x1967d3(0x1d9),SHEET))[_0x1967d3(0x22a)](_0x57e3af=>_0x57e3af[_0x1967d3(0x21b)][_0x1967d3(0x225)]?.[_0x1967d3(0x1df)]()===_0x1967d3(0x1d6)),_0x12c49d=integer(one(_0x2b1b41[_0x1967d3(0x208)](_0x32da9f=>children(_0x32da9f,_0x1967d3(0x256))),_0x1967d3(0x24f))[_0x1967d3(0x21b)]['i'],'rich\x20value\x20index'),_0x56a084=_0xfc63c7(_0xe6916e(_0x4663f1,_0x1967d3(0x1fa)));if(!matches(_0x56a084,_0x1967d3(0x249)))throw Error(_0x1967d3(0x259));const _0x3f078d=children(_0x56a084,'rv')[_0x12c49d];if(!_0x3f078d)throw Error(_0x1967d3(0x1d7));const _0xb992db=_0xfc63c7(_0xe6916e(_0x4663f1,_0x1967d3(0x1e0)));if(!matches(_0xb992db,_0x1967d3(0x1da)))throw Error(_0x1967d3(0x24d));const _0x537852=children(_0xb992db,'s')[integer(_0x3f078d[_0x1967d3(0x21b)]['s'],'rich\x20structure\x20index')];if(!_0x537852||_0x537852[_0x1967d3(0x21b)]['t']!=='_localImage')throw Error(_0x1967d3(0x24e));const _0x595b5d=children(_0x537852,'k'),_0x3b1814=_0x595b5d[_0x1967d3(0x235)]((_0x28dad8,_0x56b732)=>_0x28dad8['attrs']['n']===_0x1967d3(0x1b7)?_0x56b732:-0x1)['filter'](_0x4b1a10=>_0x4b1a10>=0x0);if(_0x3b1814[_0x1967d3(0x1f8)]!==0x1)throw Error(_0x1967d3(0x252));const _0x43b6dc=children(_0x3f078d,'v',RICH)[_0x3b1814[0x0]];if(!_0x43b6dc)throw Error(_0x1967d3(0x1f2));const _0x10e325=_0xe6916e(_0x4663f1,_0x1967d3(0x221)),_0x12df9a=_0xfc63c7(_0x10e325);if(!matches(_0x12df9a,'richValueRels'))throw Error(_0x1967d3(0x205));const _0x4d8484=children(_0x12df9a,_0x1967d3(0x204))[integer(_0x43b6dc[_0x1967d3(0x1ea)],_0x1967d3(0x242))];if(!_0x4d8484)throw Error(_0x1967d3(0x21e));return _0x5788f(_0x10e325,_0x4d8484[_0x1967d3(0x21b)]['r:id'],_0x1967d3(0x1b6));};let _0x463e1f;const _0x3de5c4=_0x3c473d=>{const _0xb95c6a=_0x532f94;if(!_0x463e1f){_0x463e1f=new Map();const _0x4c7f09=_0x1e6a5d(_0x4663f1)[_0xb95c6a(0x22a)](_0x356072=>[...relationshipTypes(_0xb95c6a(0x213)),...relationshipTypes(_0xb95c6a(0x1fe))][_0xb95c6a(0x246)](_0x356072[_0xb95c6a(0x243)]));if(!_0x4c7f09['length']&&_0x308b07[_0xb95c6a(0x1cc)]('xl/cellimages.xml'))_0x4c7f09[_0xb95c6a(0x1fb)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x4c7f09[_0xb95c6a(0x1f8)]!==0x1)throw Error(_0xb95c6a(0x236));const _0x5e6e1b=_0x4e5cb6(_0x4663f1,_0x4c7f09[0x0]),_0x58bd64=_0xfc63c7(_0x5e6e1b);if(!matches(_0x58bd64,_0xb95c6a(0x1fe)))throw Error(_0xb95c6a(0x1fc));for(const _0x45dc8c of children(_0x58bd64,'cellImage')){const _0x252c48=one(chain(_0x45dc8c,_0xb95c6a(0x244),_0xb95c6a(0x250),_0xb95c6a(0x1f9)),_0xb95c6a(0x1ee))[_0xb95c6a(0x21b)][_0xb95c6a(0x248)];if(!_0x252c48||_0x463e1f[_0xb95c6a(0x1cc)](_0x252c48))throw Error(_0xb95c6a(0x1fd));const _0x4b66b8=one(chain(_0x45dc8c,'pic',_0xb95c6a(0x211),'blip'),_0xb95c6a(0x203));if(_0x4b66b8[_0xb95c6a(0x21b)][_0xb95c6a(0x24c)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x463e1f[_0xb95c6a(0x1c3)](_0x252c48,_0x5788f(_0x5e6e1b,_0x4b66b8[_0xb95c6a(0x21b)]['r:embed'],_0xb95c6a(0x1b6)));}}const _0x4e77f7=_0x463e1f[_0xb95c6a(0x1f4)](_0x3c473d);if(!_0x4e77f7)throw Error('Missing\x20WPS\x20image\x20ID:\x20'+_0x3c473d+'.');return _0x4e77f7;},_0x4f4eb7=new Set();for(const _0x451fae of _0x1871b0[_0x532f94(0x208)](_0x559207=>children(_0x559207,'c'))){const _0x4186e6=/^([A-Z]+)([1-9]\d*)$/[_0x532f94(0x219)](_0x451fae['attrs']['r']??'');if(!_0x4186e6)continue;let _0x256b15=0x0;for(const _0x266156 of _0x4186e6[0x1])_0x256b15=_0x256b15*0x1a+_0x266156[_0x532f94(0x232)](0x0)-0x40;if(!_0x27ba4c[_0x532f94(0x1cc)](_0x256b15))continue;const _0x141e04=integer(_0x4186e6[0x2],'image\x20cell\x20row');if(_0x4f4eb7[_0x532f94(0x1cc)](_0x451fae[_0x532f94(0x21b)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x4f4eb7[_0x532f94(0x24a)](_0x451fae[_0x532f94(0x21b)]['r']);const _0x3b1848=children(_0x451fae,'f');if(!_0x451fae[_0x532f94(0x21b)]['vm']&&!_0x3b1848[_0x532f94(0x1f8)])continue;try{if(_0x141e04<0x1||_0x256b15>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0x382141;if(_0x451fae[_0x532f94(0x21b)]['vm']){if(_0x3b1848[_0x532f94(0x1f8)])throw Error(_0x532f94(0x251));if(_0x451fae['attrs']['t']!=='e'||children(_0x451fae,'v')['length']!==0x1||children(_0x451fae,'v')[0x0][_0x532f94(0x1ea)]!=='#VALUE!')throw Error(_0x532f94(0x21c));_0x382141=_0x1bb9a5(_0x451fae);}else{const _0x5081a4=one(_0x3b1848,'image\x20formula');if(_0x5081a4['attrs']['t']===_0x532f94(0x24b)||_0x5081a4[_0x532f94(0x21b)]['si'])throw Error(_0x532f94(0x1c5));const _0x382c39=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x5081a4['text']);if(!_0x382c39)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x382141=_0x3de5c4(_0x382c39[0x1]['replace'](/""/g,'\x22'));}_0x2454ee({'row':_0x141e04,'col':_0x256b15,'media':[_0x382141],'nativeCell':!![]});}catch(_0x447e5f){_0x2454ee({'row':_0x141e04,'col':_0x256b15,'media':[],'nativeCell':!![],'error':_0x447e5f['message']});}}return _0x37a6ce;}
|
|
1
|
+
const a146_0x341474=a146_0x3726;(function(_0x54c29b,_0x53bd8c){const _0x23884c=a146_0x3726,_0x483a3c=_0x54c29b();while(!![]){try{const _0x49e082=parseInt(_0x23884c(0x160))/0x1*(parseInt(_0x23884c(0x1a2))/0x2)+-parseInt(_0x23884c(0x1b6))/0x3+-parseInt(_0x23884c(0x1a6))/0x4*(parseInt(_0x23884c(0x1ed))/0x5)+parseInt(_0x23884c(0x1a1))/0x6+-parseInt(_0x23884c(0x16b))/0x7*(-parseInt(_0x23884c(0x1d1))/0x8)+parseInt(_0x23884c(0x143))/0x9*(-parseInt(_0x23884c(0x1e3))/0xa)+parseInt(_0x23884c(0x153))/0xb*(-parseInt(_0x23884c(0x18f))/0xc);if(_0x49e082===_0x53bd8c)break;else _0x483a3c['push'](_0x483a3c['shift']());}catch(_0x275992){_0x483a3c['push'](_0x483a3c['shift']());}}}(a146_0x455b,0x77913));import a146_0xead5cb from'node:path';function a146_0x3726(_0xd5f90f,_0x180c0e){_0xd5f90f=_0xd5f90f-0x13b;const _0x455ba1=a146_0x455b();let _0x37260d=_0x455ba1[_0xd5f90f];return _0x37260d;}function a146_0x455b(){const _0x5a8b9c=['Invalid\x20','Unsupported\x20workbook\x20namespace.','replace','Unsupported\x20mapped\x20rich\x20value\x20structure.','slice','Unsupported\x20worksheet\x20namespace.','nvPicPr','uri','col','Image\x20XML\x20node\x20budget\x20exceeded.','image\x20row\x20height\x20coordinate','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','metadataTypes','Missing\x20value\x20metadata\x20block.','128lxzcLq','text','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','close','value\x20metadata\x20index','rich\x20structure\x20index','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','toLowerCase','closetag','metadata\x20type\x20index','startsWith','metadataType','normalize','Unsupported\x20rich\x20value\x20namespace.','twoCellAnchor','http://schemas.openxmlformats.org/officeDocument/2006/relationships','rdRichValueStructure','Image\x20XML\x20event\x20budget\x20exceeded.','487510PohkRg','blipFill','richValueRel','Duplicate\x20mapped\x20image\x20cell.','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','oneCellAnchor','Unsupported\x20WPS\x20cell\x20image\x20namespace.','opentag','ext','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','14485UZoznY','http://schemas.openxmlformats.org/drawingml/2006/main','metadata\x20types','row','Relationship','includes','local','anchor\x20start','Unsupported\x20rich\x20structure\x20namespace.','r:link','126KCcNAs','rvData','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','image','posix','Internal','Ambiguous\x20XML\x20attribute.','isFinite','pic','/xl/cellimages.xml','image\x20extent','doctype','some','worksheet','round','anchor\x20end\x20offset','2339843GHYqTB','sheetFormatPr','sheet','blip','test','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','wsDr','basename','anchor\x20start\x20offset','cNvPr','error','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','_localImage','1wcPrHu','_rels','sheets','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','workbook','metadata','Missing\x20local\x20image\x20identifier\x20value.','add','image\x20formula','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','155995EOlGUD','anchor\x20column','r:embed','richValueRels','Relationships','Unsupported\x20relationship\x20namespace\x20in\x20','xl/','isSafeInteger','has','Missing\x20or\x20ambiguous\x20','pop','rdRichValue','extLst','External\x20image\x20links\x20are\x20not\x20supported.','http://www.wps.cn/officeDocument/2017/relationships/','xl/workbook.xml','rel','drawing','from','Missing\x20WPS\x20image\x20ID:\x20','name','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','children','anchor\x20end','cellImage','XLRICHVALUE','flatMap','colOff','rvb','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','http://purl.oclc.org/ooxml/spreadsheetml/main','Unsupported\x20metadata\x20namespace.','http://purl.oclc.org/ooxml/drawingml/main','cellImages','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','12VmLaJh','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','set','_rvRel:LocalImageIdentifier','http://www.wps.cn/officeDocument/2017/etCustomData','Missing\x20future\x20metadata\x20block.','\x20relationship\x20in\x20','sheetMetadata','filter','futureMetadata','absoluteAnchor','valueMetadata','rich\x20value\x20index','xl/cellimages.xml','WPS\x20image\x20name','type','rowOff','join','4375686Aasiss','846416hoizuC','write','value','exec','92gybmoH','values','Unsupported\x20mapped\x20cell\x20metadata\x20type.','reduce','Unsupported\x20drawing\x20namespace.','hidden','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','get','http://schemas.microsoft.com/office/2017/06/relationships/','Unsupported\x20rich\x20image\x20relation\x20namespace.','MAX_SAFE_INTEGER','attrs','rich\x20image\x20relationship\x20index','http://schemas.openxmlformats.org/package/2006/relationships','map','dirname','172332lxFNyV','Value\x20metadata\x20index\x20must\x20be\x20one-based.','Invalid\x20relationship\x20target:\x20','r:id','charCodeAt','push','rich\x20future\x20metadata','http://purl.oclc.org/ooxml/officeDocument/relationships','Shared\x20image\x20formulas\x20are\x20not\x20supported.','length','XML\x20DTD/entities\x20are\x20not\x20supported.'];a146_0x455b=function(){return _0x5a8b9c;};return a146_0x455b();}import{SaxesParser}from'saxes';const SHEET=[a146_0x341474(0x18d),a146_0x341474(0x189)],DRAWING=[a146_0x341474(0x1d7),a146_0x341474(0x1cc)],DRAWING_MAIN=[a146_0x341474(0x1ee),a146_0x341474(0x18b)],OFFICE_RELS=[a146_0x341474(0x1e0),a146_0x341474(0x1bd)],PACKAGE=[a146_0x341474(0x1b3)],RICH=[a146_0x341474(0x15e)],RICH_RELS=[a146_0x341474(0x1e7)],WPS=[a146_0x341474(0x193)],DEFAULT_NS=Object['fromEntries']([...[a146_0x341474(0x164),'sheets',a146_0x341474(0x155),a146_0x341474(0x150),'sheetData',a146_0x341474(0x13c),'c','f','v',a146_0x341474(0x154),a146_0x341474(0x17c),'metadata',a146_0x341474(0x1cf),a146_0x341474(0x1dc),'futureMetadata',a146_0x341474(0x19a),'bk','rc',a146_0x341474(0x177)][a146_0x341474(0x1b4)](_0x34f100=>[_0x34f100,SHEET]),...['wsDr',a146_0x341474(0x1e8),a146_0x341474(0x1df),a146_0x341474(0x199),a146_0x341474(0x17d),'to',a146_0x341474(0x1c9),a146_0x341474(0x186),a146_0x341474(0x19f),a146_0x341474(0x1eb),'pic',a146_0x341474(0x1c7),a146_0x341474(0x15c),a146_0x341474(0x1e4)][a146_0x341474(0x1b4)](_0x164fc7=>[_0x164fc7,DRAWING]),...[a146_0x341474(0x187),a146_0x341474(0x144),'rv','rvStructures','s','k'][a146_0x341474(0x1b4)](_0x439194=>[_0x439194,RICH]),['blip',DRAWING_MAIN],['richValueRels',RICH_RELS],['rel',RICH_RELS],['Relationships',PACKAGE],['Relationship',PACKAGE],[a146_0x341474(0x18c),WPS],[a146_0x341474(0x183),WPS]]),matches=(_0x402356,_0x19b269,_0x62f6a1=DEFAULT_NS[_0x19b269]??[])=>_0x402356[a146_0x341474(0x17f)]===_0x19b269&&_0x62f6a1[a146_0x341474(0x13e)](_0x402356[a146_0x341474(0x1c8)]),children=(_0x58ad86,_0xffccd4,_0x294f8b=DEFAULT_NS[_0xffccd4])=>_0x58ad86[a146_0x341474(0x181)][a146_0x341474(0x197)](_0x3733e6=>matches(_0x3733e6,_0xffccd4,_0x294f8b)),chain=(_0x5479f9,..._0x1f9e39)=>_0x1f9e39[a146_0x341474(0x1a9)]((_0x3c2af5,_0x299228)=>_0x3c2af5[a146_0x341474(0x185)](_0x25e4ea=>children(_0x25e4ea,_0x299228)),[_0x5479f9]),relationshipTypes=_0x592189=>{const _0x305afb=a146_0x341474;if([_0x305afb(0x176),'rdRichValueStructure'][_0x305afb(0x13e)](_0x592189))return[_0x305afb(0x1ae)+_0x592189];if(_0x592189===_0x305afb(0x1e5))return[_0x305afb(0x158)];if(_0x592189===_0x305afb(0x183)||_0x592189===_0x305afb(0x18c))return[_0x305afb(0x179)+_0x592189];return OFFICE_RELS[_0x305afb(0x1b4)](_0x280319=>_0x280319+'/'+_0x592189);};function one(_0x3b18b9,_0x2f1aaf){const _0x33be24=a146_0x341474;if(_0x3b18b9[_0x33be24(0x1bf)]!==0x1)throw Error(_0x33be24(0x174)+_0x2f1aaf+'.');return _0x3b18b9[0x0];}function integer(_0xb9a700,_0x1364af,_0x2087e4=0x186a0){const _0x4453f4=a146_0x341474;if(!_0xb9a700||!/^\d+$/[_0x4453f4(0x157)](_0xb9a700)||!Number[_0x4453f4(0x172)](Number(_0xb9a700))||Number(_0xb9a700)>_0x2087e4)throw Error(_0x4453f4(0x1c1)+_0x1364af+'.');return Number(_0xb9a700);}export function resolveWorksheetImages(_0x3de652,_0x4640db,_0x1f4240){const _0x5d3545=a146_0x341474;let _0x5701ec=0x0,_0x3dd7b0=0x0,_0x35eb40=0x0;const _0x3f0b30=new Map(),_0x954c14=_0x5ebae5=>{const _0x53ce92=a146_0x3726;if(_0x3f0b30[_0x53ce92(0x173)](_0x5ebae5))return _0x3f0b30[_0x53ce92(0x1ad)](_0x5ebae5);const _0x5dd0d0=_0x3de652[_0x53ce92(0x1ad)](_0x5ebae5);if(!_0x5dd0d0)throw Error('Missing\x20XLSX\x20part:\x20'+_0x5ebae5+'.');const _0x172909={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x298f50=[_0x172909],_0x1792d1=new SaxesParser({'xmlns':!![]}),_0x3e29fa=()=>{const _0x4315a4=_0x53ce92;if(++_0x3dd7b0>0x1e8480)throw Error(_0x4315a4(0x1e2));};_0x1792d1['on'](_0x53ce92(0x14e),()=>{const _0x1d9937=_0x53ce92;throw Error(_0x1d9937(0x1c0));}),_0x1792d1['on'](_0x53ce92(0x1ea),_0x1fc792=>{const _0x3c0475=_0x53ce92;_0x3e29fa();if(++_0x5701ec>0x7a120||_0x298f50[_0x3c0475(0x1bf)]>0x40)throw Error(_0x3c0475(0x1ca));const _0x59e297={};for(const _0x131523 of Object[_0x3c0475(0x1a7)](_0x1fc792['attributes'])){const _0x22dab0=OFFICE_RELS['includes'](_0x131523[_0x3c0475(0x1c8)])?'r:'+_0x131523[_0x3c0475(0x13f)]:_0x131523[_0x3c0475(0x1c8)]?'{'+_0x131523['uri']+'}'+_0x131523[_0x3c0475(0x13f)]:_0x131523['local'];if(_0x22dab0 in _0x59e297)throw Error(_0x3c0475(0x149));_0x59e297[_0x22dab0]=_0x131523[_0x3c0475(0x1a4)];}const _0x52ef24={'name':_0x1fc792[_0x3c0475(0x13f)],'uri':_0x1fc792[_0x3c0475(0x1c8)],'attrs':_0x59e297,'children':[],'text':''};_0x298f50['at'](-0x1)[_0x3c0475(0x181)][_0x3c0475(0x1bb)](_0x52ef24),_0x298f50[_0x3c0475(0x1bb)](_0x52ef24);}),_0x1792d1['on']('text',_0x10345f=>{const _0x20d00d=_0x53ce92;_0x3e29fa();const _0x81dccc=_0x298f50['at'](-0x1);_0x81dccc[_0x20d00d(0x1d2)]+=_0x10345f;if(_0x81dccc['text'][_0x20d00d(0x1bf)]>0x10000)throw Error(_0x20d00d(0x188));}),_0x1792d1['on'](_0x53ce92(0x1d9),()=>{const _0x39b6a2=_0x53ce92;_0x3e29fa(),_0x298f50[_0x39b6a2(0x175)]();}),_0x1792d1['on'](_0x53ce92(0x15d),_0x2aa08c=>{throw _0x2aa08c;}),_0x1792d1[_0x53ce92(0x1a3)](_0x5dd0d0['toString']('utf8'))[_0x53ce92(0x1d4)]();const _0x249ce3=one(_0x172909[_0x53ce92(0x181)],_0x5ebae5);return _0x3f0b30[_0x53ce92(0x191)](_0x5ebae5,_0x249ce3),_0x249ce3;},_0x48535e=new Map(),_0x194c59=_0x6bd984=>{const _0x3c5385=a146_0x3726;if(_0x48535e[_0x3c5385(0x173)](_0x6bd984))return _0x48535e[_0x3c5385(0x1ad)](_0x6bd984);const _0x6456ed=a146_0xead5cb[_0x3c5385(0x147)]['join'](a146_0xead5cb['posix']['dirname'](_0x6bd984),_0x3c5385(0x161),a146_0xead5cb[_0x3c5385(0x147)][_0x3c5385(0x15a)](_0x6bd984)+'.rels');if(!_0x3de652['has'](_0x6456ed))return[];const _0x5c8497=new Set(),_0x263bbe=_0x954c14(_0x6456ed);if(!matches(_0x263bbe,_0x3c5385(0x16f)))throw Error(_0x3c5385(0x170)+_0x6456ed+'.');const _0x2b676b=children(_0x263bbe,_0x3c5385(0x13d))['map'](_0x328b35=>{const _0x55128d=_0x3c5385,{Id:_0x17a564,Type:_0x35f7e5,Target:_0x3ea28a,TargetMode:_0x3c9eee}=_0x328b35[_0x55128d(0x1b1)];if(!_0x17a564||_0x5c8497[_0x55128d(0x173)](_0x17a564)||!_0x35f7e5)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x6456ed+'.');return _0x5c8497['add'](_0x17a564),{'id':_0x17a564,'type':_0x35f7e5,'target':_0x3ea28a??'','mode':_0x3c9eee};});return _0x48535e[_0x3c5385(0x191)](_0x6bd984,_0x2b676b),_0x2b676b;},_0x224a84=(_0x1f1034,_0xc052be)=>{const _0x1cdcc2=a146_0x3726,{target:_0xcf2093,mode:_0x194e34}=_0xc052be;if(_0x194e34&&_0x194e34!==_0x1cdcc2(0x148))throw Error(_0x1cdcc2(0x190)+_0x1f1034+'.');if(!_0xcf2093||_0xcf2093['includes']('\x5c')||/[?#%\x00-\x20]/['test'](_0xcf2093)||/^[a-z][a-z0-9+.-]*:/i[_0x1cdcc2(0x157)](_0xcf2093)||_0xcf2093['startsWith']('//'))throw Error(_0x1cdcc2(0x1b8)+_0x1f1034+'.');const _0x25944c=_0xcf2093[_0x1cdcc2(0x1db)]('/')?_0xcf2093[_0x1cdcc2(0x1c5)](0x1):a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1dd)](a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1a0)](a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1b5)](_0x1f1034),_0xcf2093));if(_0x25944c[_0x1cdcc2(0x1db)]('../')||_0x25944c==='..'||!_0x25944c[_0x1cdcc2(0x1db)](_0x1cdcc2(0x171)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x1f1034+'.');return _0x25944c;},_0x4b2bcb=(_0x153120,_0x3c95a7,_0x44467f)=>{const _0x331004=a146_0x3726,_0x570db0=_0x194c59(_0x153120)[_0x331004(0x197)](_0x26b56d=>_0x26b56d['id']===_0x3c95a7&&relationshipTypes(_0x44467f)['includes'](_0x26b56d[_0x331004(0x19e)]));if(_0x570db0[_0x331004(0x1bf)]!==0x1)throw Error(_0x331004(0x174)+_0x44467f+_0x331004(0x195)+_0x153120+'.');return _0x224a84(_0x153120,_0x570db0[0x0]);},_0x4a9ede=(_0x20aa36,_0x397b9d)=>{const _0x38749f=a146_0x3726,_0x2f9685=_0x194c59(_0x20aa36)['filter'](_0x136b5d=>relationshipTypes(_0x397b9d)[_0x38749f(0x13e)](_0x136b5d[_0x38749f(0x19e)]));if(_0x2f9685[_0x38749f(0x1bf)]!==0x1)throw Error(_0x38749f(0x174)+_0x397b9d+_0x38749f(0x195)+_0x20aa36+'.');return _0x224a84(_0x20aa36,_0x2f9685[0x0]);},_0x824eca=_0x5d3545(0x17a),_0x471d75=_0x954c14(_0x824eca);if(!matches(_0x471d75,_0x5d3545(0x164)))throw Error(_0x5d3545(0x1c2));const _0x1bf7e6=one(chain(_0x471d75,_0x5d3545(0x162),_0x5d3545(0x155))[_0x5d3545(0x197)](_0x4a57c2=>_0x4a57c2[_0x5d3545(0x1b1)][_0x5d3545(0x17f)]===_0x4640db),_0x5d3545(0x150)),_0x45174f=_0x4b2bcb(_0x824eca,_0x1bf7e6['attrs'][_0x5d3545(0x1b9)],'worksheet'),_0x4bbe67=_0x954c14(_0x45174f);if(!matches(_0x4bbe67,_0x5d3545(0x150)))throw Error(_0x5d3545(0x1c6));const _0x55e3d2=chain(_0x4bbe67,'sheetData','row'),_0x28b961=new Map(),_0x4b3d19=new Set(_0x55e3d2[_0x5d3545(0x197)](_0x4d58f1=>_0x4d58f1[_0x5d3545(0x1b1)][_0x5d3545(0x1ab)]==='1'||_0x4d58f1[_0x5d3545(0x1b1)][_0x5d3545(0x1ab)]==='true')[_0x5d3545(0x1b4)](_0x47dfbc=>integer(_0x47dfbc[_0x5d3545(0x1b1)]['r'],'hidden\x20image\x20row'))),_0xa50481=_0x280a7b=>{const _0x3f7ecc=_0x5d3545,_0x400358=_0x280a7b===undefined?0xf:Number(_0x280a7b);if(!Number[_0x3f7ecc(0x14a)](_0x400358)||_0x400358<=0x0||_0x400358>409.5)throw Error(_0x3f7ecc(0x1ce));return Math[_0x3f7ecc(0x151)](_0x400358*0x319c);},_0x15802d=_0xa50481(children(_0x4bbe67,_0x5d3545(0x154))[0x0]?.[_0x5d3545(0x1b1)]['defaultRowHeight']);for(const _0x11395a of _0x55e3d2)if(_0x11395a[_0x5d3545(0x1b1)]['ht']!==undefined)_0x28b961[_0x5d3545(0x191)](integer(_0x11395a['attrs']['r'],_0x5d3545(0x1cb)),_0xa50481(_0x11395a[_0x5d3545(0x1b1)]['ht']));const _0x391a5a=[],_0xc6e3ec=_0x1d8cdc=>{const _0x5ce996=_0x5d3545;if(!_0x1f4240[_0x5ce996(0x173)](_0x1d8cdc[_0x5ce996(0x1c9)]))return;if(++_0x35eb40>0x2710)throw Error(_0x5ce996(0x1ec));_0x391a5a['push'](_0x4b3d19[_0x5ce996(0x173)](_0x1d8cdc[_0x5ce996(0x13c)])?{..._0x1d8cdc,'hiddenRow':!![]}:_0x1d8cdc);},_0x55cbe2=_0x42da5b=>({'row':integer(one(children(_0x42da5b,'row',DRAWING),'anchor\x20row')[_0x5d3545(0x1d2)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x42da5b,_0x5d3545(0x1c9)),_0x5d3545(0x16c))[_0x5d3545(0x1d2)],_0x5d3545(0x16c),0xff)+0x1});for(const _0x5ef394 of children(_0x4bbe67,_0x5d3545(0x17c))){const _0xd1d345=_0x4b2bcb(_0x45174f,_0x5ef394[_0x5d3545(0x1b1)][_0x5d3545(0x1b9)],_0x5d3545(0x17c)),_0x1228ce=_0x954c14(_0xd1d345);if(!matches(_0x1228ce,_0x5d3545(0x159)))throw Error(_0x5d3545(0x1aa));for(const _0x1d7eda of _0x1228ce[_0x5d3545(0x181)]){if(![_0x5d3545(0x1e8),_0x5d3545(0x1df),'absoluteAnchor'][_0x5d3545(0x14f)](_0x330ae1=>matches(_0x1d7eda,_0x330ae1)))continue;if(_0x1d7eda[_0x5d3545(0x17f)]===_0x5d3545(0x199))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0x4640db+'.');const _0x2f0cec=_0x55cbe2(one(children(_0x1d7eda,_0x5d3545(0x17d)),_0x5d3545(0x140)));if(!_0x1f4240[_0x5d3545(0x173)](_0x2f0cec[_0x5d3545(0x1c9)]))continue;let _0x3450ec;const _0x36da4a=one(children(_0x1d7eda,'from'),_0x5d3545(0x140)),_0x3001b0=integer(one(children(_0x36da4a,_0x5d3545(0x19f)),_0x5d3545(0x15b))[_0x5d3545(0x1d2)],_0x5d3545(0x15b),Number[_0x5d3545(0x1b0)]),_0x32b0ae=_0x28b961[_0x5d3545(0x1ad)](_0x2f0cec['row'])??_0x15802d;if(_0x3001b0>=_0x32b0ae)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0x2f0cec[_0x5d3545(0x13c)]+'.');if(_0x1d7eda[_0x5d3545(0x17f)]===_0x5d3545(0x1e8)){const _0x26cdf1=one(children(_0x1d7eda,'ext'),_0x5d3545(0x14d)),_0x573087=integer(_0x26cdf1[_0x5d3545(0x1b1)]['cy'],'image\x20height',Number[_0x5d3545(0x1b0)]);if(!_0x573087||_0x3001b0+_0x573087>_0x32b0ae)_0x3450ec=_0x5d3545(0x180);}if(_0x1d7eda['name']===_0x5d3545(0x1df)){const _0x8dd32b=one(children(_0x1d7eda,'to'),_0x5d3545(0x182)),_0xd92b73=_0x55cbe2(_0x8dd32b),_0x374f0f=integer(one(children(_0x8dd32b,_0x5d3545(0x19f)),_0x5d3545(0x152))[_0x5d3545(0x1d2)],'anchor\x20end\x20offset',Number[_0x5d3545(0x1b0)]),_0x2914ac=_0x28b961[_0x5d3545(0x1ad)](_0xd92b73['row'])??_0x15802d;if(_0x374f0f>_0x2914ac||_0xd92b73['row']===_0x2f0cec[_0x5d3545(0x13c)]&&_0x374f0f<=_0x3001b0)_0x3450ec=_0x5d3545(0x1d3);if(_0xd92b73['row']<_0x2f0cec['row']||_0xd92b73[_0x5d3545(0x13c)]>_0x2f0cec[_0x5d3545(0x13c)]+0x1||_0xd92b73[_0x5d3545(0x13c)]===_0x2f0cec[_0x5d3545(0x13c)]+0x1&&_0x374f0f!==0x0)_0x3450ec=_0x5d3545(0x180);}const _0x4a8100=chain(_0x1d7eda,_0x5d3545(0x14b),_0x5d3545(0x1e4),'blip');for(const _0x1331ee of _0x4a8100){if(_0x1331ee[_0x5d3545(0x1b1)][_0x5d3545(0x142)])throw Error(_0x5d3545(0x178));_0xc6e3ec({..._0x2f0cec,'media':[_0x4b2bcb(_0xd1d345,_0x1331ee[_0x5d3545(0x1b1)][_0x5d3545(0x16d)],'image')],..._0x3450ec?{'error':_0x3450ec}:{}});}if(!_0x4a8100[_0x5d3545(0x1bf)])_0xc6e3ec({..._0x2f0cec,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x3343a9=_0x9d6902=>{const _0x567545=_0x5d3545,_0x4bd7a4=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x196)));if(!matches(_0x4bd7a4,_0x567545(0x165)))throw Error(_0x567545(0x18a));const _0x3bbca9=integer(_0x9d6902[_0x567545(0x1b1)]['vm'],_0x567545(0x1d5));if(!_0x3bbca9)throw Error(_0x567545(0x1b7));const _0x361406=children(one(children(_0x4bd7a4,_0x567545(0x19a)),_0x567545(0x19a)),'bk')[_0x3bbca9-0x1];if(!_0x361406)throw Error(_0x567545(0x1d0));const _0x3ffdc7=one(children(_0x361406,'rc'),'rich\x20metadata\x20record'),_0x3c2188=integer(_0x3ffdc7['attrs']['t'],_0x567545(0x1da)),_0x272c32=children(one(children(_0x4bd7a4,_0x567545(0x1cf)),_0x567545(0x13b)),_0x567545(0x1dc))[_0x3c2188-0x1];if(!_0x3c2188||_0x272c32?.[_0x567545(0x1b1)][_0x567545(0x17f)]!=='XLRICHVALUE')throw Error(_0x567545(0x1a8));const _0x1078e7=one(children(_0x4bd7a4,_0x567545(0x198))[_0x567545(0x197)](_0x5cd8d7=>_0x5cd8d7[_0x567545(0x1b1)][_0x567545(0x17f)]===_0x567545(0x184)),_0x567545(0x1bc)),_0x1c4e31=children(_0x1078e7,'bk')[integer(_0x3ffdc7[_0x567545(0x1b1)]['v'],'future\x20metadata\x20index')];if(!_0x1c4e31)throw Error(_0x567545(0x194));const _0xc4a571=chain(_0x1c4e31,_0x567545(0x177))[_0x567545(0x185)](_0x2f3d3a=>children(_0x2f3d3a,'ext',SHEET))['filter'](_0x37b445=>_0x37b445[_0x567545(0x1b1)][_0x567545(0x1c8)]?.[_0x567545(0x1d8)]()===_0x567545(0x16a)),_0xe1b182=integer(one(_0xc4a571[_0x567545(0x185)](_0x2b2498=>children(_0x2b2498,_0x567545(0x187))),'rich\x20value\x20binding')[_0x567545(0x1b1)]['i'],_0x567545(0x19b)),_0xbdb681=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x176)));if(!matches(_0xbdb681,'rvData'))throw Error(_0x567545(0x1de));const _0xb52014=children(_0xbdb681,'rv')[_0xe1b182];if(!_0xb52014)throw Error('Missing\x20rich\x20value.');const _0x4ea1ef=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x1e1)));if(!matches(_0x4ea1ef,'rvStructures'))throw Error(_0x567545(0x141));const _0xafe396=children(_0x4ea1ef,'s')[integer(_0xb52014['attrs']['s'],_0x567545(0x1d6))];if(!_0xafe396||_0xafe396['attrs']['t']!==_0x567545(0x15f))throw Error(_0x567545(0x1c4));const _0x2c105=children(_0xafe396,'k'),_0x405dfb=_0x2c105[_0x567545(0x1b4)]((_0x31452e,_0x2c1b14)=>_0x31452e['attrs']['n']===_0x567545(0x192)?_0x2c1b14:-0x1)[_0x567545(0x197)](_0x424dc0=>_0x424dc0>=0x0);if(_0x405dfb[_0x567545(0x1bf)]!==0x1)throw Error(_0x567545(0x145));const _0x24e389=children(_0xb52014,'v',RICH)[_0x405dfb[0x0]];if(!_0x24e389)throw Error(_0x567545(0x166));const _0x45f7a0=_0x4a9ede(_0x824eca,_0x567545(0x1e5)),_0x28c79f=_0x954c14(_0x45f7a0);if(!matches(_0x28c79f,_0x567545(0x16e)))throw Error(_0x567545(0x1af));const _0x26f68f=children(_0x28c79f,_0x567545(0x17b))[integer(_0x24e389[_0x567545(0x1d2)],_0x567545(0x1b2))];if(!_0x26f68f)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x4b2bcb(_0x45f7a0,_0x26f68f['attrs'][_0x567545(0x1b9)],_0x567545(0x146));};let _0xacd0e1;const _0x4463b4=_0x382081=>{const _0x31373e=_0x5d3545;if(!_0xacd0e1){_0xacd0e1=new Map();const _0x17fc75=_0x194c59(_0x824eca)[_0x31373e(0x197)](_0x481413=>[...relationshipTypes(_0x31373e(0x183)),...relationshipTypes(_0x31373e(0x18c))][_0x31373e(0x13e)](_0x481413['type']));if(!_0x17fc75[_0x31373e(0x1bf)]&&_0x3de652[_0x31373e(0x173)](_0x31373e(0x19c)))_0x17fc75['push']({'id':'','type':'','target':_0x31373e(0x14c)});if(_0x17fc75['length']!==0x1)throw Error(_0x31373e(0x169));const _0xf54f29=_0x224a84(_0x824eca,_0x17fc75[0x0]),_0x2f3178=_0x954c14(_0xf54f29);if(!matches(_0x2f3178,_0x31373e(0x18c)))throw Error(_0x31373e(0x1e9));for(const _0x1f046a of children(_0x2f3178,_0x31373e(0x183))){const _0x3852b4=one(chain(_0x1f046a,_0x31373e(0x14b),_0x31373e(0x1c7),'cNvPr'),_0x31373e(0x19d))[_0x31373e(0x1b1)]['name'];if(!_0x3852b4||_0xacd0e1[_0x31373e(0x173)](_0x3852b4))throw Error(_0x31373e(0x163));const _0x2aad4c=one(chain(_0x1f046a,_0x31373e(0x14b),_0x31373e(0x1e4),_0x31373e(0x156)),'WPS\x20image\x20blip');if(_0x2aad4c[_0x31373e(0x1b1)]['r:link'])throw Error(_0x31373e(0x1ac));_0xacd0e1['set'](_0x3852b4,_0x4b2bcb(_0xf54f29,_0x2aad4c[_0x31373e(0x1b1)]['r:embed'],_0x31373e(0x146)));}}const _0x1f4476=_0xacd0e1[_0x31373e(0x1ad)](_0x382081);if(!_0x1f4476)throw Error(_0x31373e(0x17e)+_0x382081+'.');return _0x1f4476;},_0x2ed5a2=new Set();for(const _0x51e909 of _0x55e3d2[_0x5d3545(0x185)](_0x3e913e=>children(_0x3e913e,'c'))){const _0x219fe7=/^([A-Z]+)([1-9]\d*)$/[_0x5d3545(0x1a5)](_0x51e909['attrs']['r']??'');if(!_0x219fe7)continue;let _0x3ba9c2=0x0;for(const _0x1c8cf9 of _0x219fe7[0x1])_0x3ba9c2=_0x3ba9c2*0x1a+_0x1c8cf9[_0x5d3545(0x1ba)](0x0)-0x40;if(!_0x1f4240[_0x5d3545(0x173)](_0x3ba9c2))continue;const _0x91c931=integer(_0x219fe7[0x2],'image\x20cell\x20row');if(_0x2ed5a2[_0x5d3545(0x173)](_0x51e909[_0x5d3545(0x1b1)]['r']))throw Error(_0x5d3545(0x1e6));_0x2ed5a2[_0x5d3545(0x167)](_0x51e909[_0x5d3545(0x1b1)]['r']);const _0x39356d=children(_0x51e909,'f');if(!_0x51e909[_0x5d3545(0x1b1)]['vm']&&!_0x39356d[_0x5d3545(0x1bf)])continue;try{if(_0x91c931<0x1||_0x3ba9c2>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0x457dfd;if(_0x51e909['attrs']['vm']){if(_0x39356d[_0x5d3545(0x1bf)])throw Error(_0x5d3545(0x1cd));if(_0x51e909[_0x5d3545(0x1b1)]['t']!=='e'||children(_0x51e909,'v')[_0x5d3545(0x1bf)]!==0x1||children(_0x51e909,'v')[0x0][_0x5d3545(0x1d2)]!=='#VALUE!')throw Error(_0x5d3545(0x18e));_0x457dfd=_0x3343a9(_0x51e909);}else{const _0x4049a6=one(_0x39356d,_0x5d3545(0x168));if(_0x4049a6[_0x5d3545(0x1b1)]['t']==='shared'||_0x4049a6[_0x5d3545(0x1b1)]['si'])throw Error(_0x5d3545(0x1be));const _0x589ab0=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x5d3545(0x1a5)](_0x4049a6['text']);if(!_0x589ab0)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x457dfd=_0x4463b4(_0x589ab0[0x1][_0x5d3545(0x1c3)](/""/g,'\x22'));}_0xc6e3ec({'row':_0x91c931,'col':_0x3ba9c2,'media':[_0x457dfd],'nativeCell':!![]});}catch(_0x3a3fa0){_0xc6e3ec({'row':_0x91c931,'col':_0x3ba9c2,'media':[],'nativeCell':!![],'error':_0x3a3fa0['message']});}}return _0x391a5a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5af3d1,_0x3e502c){const _0x1af2c2=a147_0x3981,_0x5a7ccf=_0x5af3d1();while(!![]){try{const _0x2a8865=-parseInt(_0x1af2c2(0xd3))/0x1+parseInt(_0x1af2c2(0xc0))/0x2+-parseInt(_0x1af2c2(0x101))/0x3*(parseInt(_0x1af2c2(0xb7))/0x4)+-parseInt(_0x1af2c2(0x109))/0x5+parseInt(_0x1af2c2(0xdf))/0x6+-parseInt(_0x1af2c2(0xea))/0x7*(parseInt(_0x1af2c2(0xd1))/0x8)+parseInt(_0x1af2c2(0x116))/0x9;if(_0x2a8865===_0x3e502c)break;else _0x5a7ccf['push'](_0x5a7ccf['shift']());}catch(_0x4f0be4){_0x5a7ccf['push'](_0x5a7ccf['shift']());}}}(a147_0xf302,0xe3a43));import{randomUUID,createHash}from'node:crypto';function a147_0x3981(_0x41b07d,_0x4e382e){_0x41b07d=_0x41b07d-0xb7;const _0xf30283=a147_0xf302();let _0x398195=_0xf30283[_0x41b07d];return _0x398195;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';function a147_0xf302(){const _0x22f939=['schemaFingerprint','mappingHash','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','4246812HyODYw','image/jpeg','00000000-0000-4000-8000-000000000000','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','gif','schemaHash','Completed\x20image\x20checkpoint\x20value\x20changed.','code','imageCells','rows-started','Image\x20media\x20bytes\x20changed.','45605RhiPao','fileHash','all','media','pending','importId','imageFields','.lock','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','uploadFields','entries','maxPixels','uploadId','rows','image/png','size','digest','name','sheet','status','bytes','hex','maxBatchBytes','6MwcaAi','completed','appCode','Invalid\x20import\x20batch\x20size.','type','sha256','key','ENOENT','1433905HkzVHa','missing','values','.lock.recovery','image/gif','Image\x20cell\x20references\x20missing\x20media.','isArray','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','Invalid\x20image\x20media\x20descriptor.','includes','upload','Invalid\x20image\x20manifest\x20limits.','report','10900935UBCWyI','runtimeDomain','contentHash','get','rowNumber','value','update','imageApi','contract','1382924QqiAll','succeeded','binding','hashes','isInteger','errors','.rows.json','isSafeInteger','phase','2990140PCQvBj','batchSize','resume','some','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','fileName','rows-preparing','manifest','png','datasetCode','filePath','maxBatchSize','Invalid\x20image\x20readback\x20digest.','types','dataset-import/','1424nCnIsD','length','343755ueJstT','checkpoint','map','test','reduce','readback','parserVersion','strategy','actorId'];a147_0xf302=function(){return _0x22f939;};return a147_0xf302();}export function assertImageImportCapability(_0x4dcf43,_0x16ce14){const _0x16986f=a147_0x3981;if(!_0x16ce14[_0x16986f(0xed)]?.['length'])return;const _0x129683=_0x4dcf43['imageImport'];if(!_0x129683||_0x129683['version']!==0x1||_0x129683[_0x16986f(0xf6)]!==_0x16986f(0x106)||_0x129683['maxFileBytes']!==0xa00000||_0x129683[_0x16986f(0xf5)]!==0x2625a00||!Array[_0x16986f(0x10f)](_0x129683[_0x16986f(0xcf)])||![_0x16986f(0xf8),_0x16986f(0xe0),_0x16986f(0x10d)]['every'](_0x2d8001=>_0x129683[_0x16986f(0xcf)]['includes'](_0x2d8001)))throw Error('The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.');}export function imageObjectValue(_0x140ee,_0x4908d3,_0x4a7c8b){const _0x2aa7d0=a147_0x3981,_0x15cad8=createHash('sha256')['update'](JSON['stringify']([_0x140ee['actorId'],_0x140ee[_0x2aa7d0(0x103)],_0x140ee[_0x2aa7d0(0xcb)],_0x4908d3]))[_0x2aa7d0(0xfa)](_0x2aa7d0(0xff)),_0x2e3e98={'image/png':_0x2aa7d0(0xca),'image/jpeg':'jpg','image/gif':_0x2aa7d0(0xe3)}[_0x4a7c8b[_0x2aa7d0(0x105)]];if(!_0x2e3e98||!/^[0-9a-f]{64}$/['test'](_0x4a7c8b['contentHash'])||!Number[_0x2aa7d0(0xbe)](_0x4a7c8b[_0x2aa7d0(0xf9)])||_0x4a7c8b[_0x2aa7d0(0xf9)]<=0x0||_0x4a7c8b[_0x2aa7d0(0xf9)]>0xa00000)throw Error(_0x2aa7d0(0x111));const _0x19476a=_0x4a7c8b[_0x2aa7d0(0x118)]+'.'+_0x2e3e98;return{'key':_0x2aa7d0(0xd0)+_0x15cad8+'/'+_0x19476a,'name':_0x19476a,'type':_0x4a7c8b[_0x2aa7d0(0x105)],'size':_0x4a7c8b[_0x2aa7d0(0xf9)]};}export function bindImageManifest(_0x4a6f69,_0x196fec,_0x3f1776){const _0x84e83c=a147_0x3981,_0x20eb57=new Map(_0x4a6f69[_0x84e83c(0xed)]?.[_0x84e83c(0xd5)](_0x546cac=>[_0x546cac[_0x84e83c(0x118)],_0x546cac])),_0x315ea4=new Map(_0x4a6f69[_0x84e83c(0xe7)]?.[_0x84e83c(0xd5)](_0x23ddd9=>[_0x23ddd9[_0x84e83c(0x11a)]+':'+_0x23ddd9['field'],_0x23ddd9[_0x84e83c(0xba)]]));return{..._0x4a6f69,'rows':_0x4a6f69[_0x84e83c(0xf7)][_0x84e83c(0xd5)](_0x306a58=>({..._0x306a58,'values':Object['fromEntries'](Object[_0x84e83c(0xf4)](_0x306a58[_0x84e83c(0x10b)])['map'](([_0x536870,_0x4046d9])=>{const _0x1df543=_0x84e83c,_0x48694c=_0x315ea4[_0x1df543(0x119)](_0x306a58[_0x1df543(0x11a)]+':'+_0x536870);return[_0x536870,_0x48694c?_0x48694c[_0x1df543(0xd5)](_0x3519c9=>{const _0x3e9b35=_0x1df543,_0x373de9=_0x20eb57[_0x3e9b35(0x119)](_0x3519c9);if(!_0x373de9)throw Error(_0x3e9b35(0x10e));const _0x24df00=imageObjectValue(_0x196fec,_0x3f1776,_0x373de9);return _0x4a6f69[_0x3e9b35(0xf3)]?.[_0x3e9b35(0x112)](_0x536870)?{'fileName':_0x24df00[_0x3e9b35(0xfb)],'filePath':_0x24df00[_0x3e9b35(0x107)]}:_0x24df00;}):_0x4046d9];}))}))};}async function exists(_0x2ba6f6){const _0x3358c2=a147_0x3981;try{return await lstat(_0x2ba6f6),!![];}catch(_0x7de628){if(_0x7de628[_0x3358c2(0xe6)]===_0x3358c2(0x108))return![];throw _0x7de628;}}export async function runImageExcelImport(_0x1e8898){const _0x136cb1=a147_0x3981;assertImportContract(_0x1e8898[_0x136cb1(0x11e)],_0x1e8898[_0x136cb1(0x103)],_0x1e8898[_0x136cb1(0xcb)]),assertImageImportCapability(_0x1e8898[_0x136cb1(0x11e)],_0x1e8898[_0x136cb1(0xc9)]);if(!Number[_0x136cb1(0xbb)](_0x1e8898['batchSize'])||_0x1e8898[_0x136cb1(0xc1)]<0x1||_0x1e8898[_0x136cb1(0xc1)]>_0x1e8898[_0x136cb1(0x11e)][_0x136cb1(0xcd)])throw Error(_0x136cb1(0x104));if(_0x1e8898[_0x136cb1(0xc9)][_0x136cb1(0xbc)][_0x136cb1(0xd2)]||!_0x1e8898[_0x136cb1(0xc9)][_0x136cb1(0xf7)]['length'])throw Error(_0x136cb1(0x110));const _0x2a515c=await resolveImportOutputPath(_0x1e8898[_0x136cb1(0xd4)]),_0x57e8f2=await resolveImportOutputPath(_0x1e8898[_0x136cb1(0x115)]),_0x654309=await resolveImportOutputPath(_0x2a515c+_0x136cb1(0xbd)),_0x211c9e=await Promise[_0x136cb1(0xec)]([_0x654309,_0x654309+_0x136cb1(0xf1),_0x654309+'.lock.recovery',..._0x1e8898['inputPaths']??[]][_0x136cb1(0xd5)](resolveImportOutputPath));for(const _0x6c670b of[_0x2a515c,_0x57e8f2,_0x2a515c+_0x136cb1(0xf1),_0x2a515c+_0x136cb1(0x10c)])await resolveImportOutputPath(_0x6c670b);assertImportPaths(_0x2a515c,_0x57e8f2,_0x211c9e);const {contract:_0x10834a,manifest:_0x3bd75d}=_0x1e8898,_0x1a3203=_0x3bd75d['media']??[];if(new Set(_0x1a3203['map'](_0x1b4e36=>_0x1b4e36['contentHash']))[_0x136cb1(0xf9)]!==_0x1a3203[_0x136cb1(0xd2)]||_0x1a3203[_0x136cb1(0xd7)]((_0x5d74ea,_0x1cf30a)=>_0x5d74ea+_0x1cf30a[_0x136cb1(0xf9)],0x0)>0x32*0x400*0x400||(_0x3bd75d['imageCells']??[])[_0x136cb1(0xd7)]((_0x3d2b4d,_0x1e5f42)=>_0x3d2b4d+_0x1e5f42['hashes']['length'],0x0)>0x2710)throw Error(_0x136cb1(0x114));for(const _0x57709e of _0x1a3203)if(_0x57709e[_0x136cb1(0xf9)]!==_0x57709e['bytes']['length']||createHash(_0x136cb1(0x106))[_0x136cb1(0x11c)](_0x57709e[_0x136cb1(0xfe)])[_0x136cb1(0xfa)](_0x136cb1(0xff))!==_0x57709e[_0x136cb1(0x118)])throw Error(_0x136cb1(0xe9));previewImportBatchCount(bindImageManifest(_0x3bd75d,_0x10834a,_0x136cb1(0xe1)),_0x10834a,_0x1e8898[_0x136cb1(0xc1)]);const _0x440436={'appCode':_0x1e8898[_0x136cb1(0x103)],'datasetCode':_0x1e8898[_0x136cb1(0xcb)],'runtimeDomain':_0x1e8898[_0x136cb1(0x117)],'actorId':_0x10834a[_0x136cb1(0xdb)],'fileHash':_0x3bd75d[_0x136cb1(0xeb)],'mappingHash':_0x3bd75d[_0x136cb1(0xdd)],'schemaHash':_0x3bd75d[_0x136cb1(0xe4)],'remoteSchemaHash':_0x10834a[_0x136cb1(0xdc)],'strategy':_0x10834a[_0x136cb1(0xda)],'schemaVersion':_0x10834a['schemaVersion'],'batchSize':_0x1e8898[_0x136cb1(0xc1)],'maxBatchBytes':_0x10834a[_0x136cb1(0x100)],'sheet':_0x3bd75d[_0x136cb1(0xfc)],'parserVersion':_0x3bd75d[_0x136cb1(0xd9)],'imageFields':_0x3bd75d[_0x136cb1(0xf0)],'cells':_0x3bd75d[_0x136cb1(0xe7)],..._0x3bd75d[_0x136cb1(0xf3)]?.[_0x136cb1(0xd2)]?{'uploadFields':_0x3bd75d['uploadFields']}:{},'media':_0x1a3203['map'](({contentHash:_0x542286,type:_0x44ea22,size:_0x2b59f6})=>({'contentHash':_0x542286,'type':_0x44ea22,'size':_0x2b59f6})),'rows':_0x3bd75d[_0x136cb1(0xf7)]},_0x2538b8=await acquireLock(_0x2a515c);try{let _0x56df9b;if(_0x1e8898[_0x136cb1(0xc2)]){try{_0x56df9b=JSON['parse'](await readFile(_0x2a515c,'utf8'));}catch{throw Error(_0x136cb1(0xe2));}if(_0x56df9b['version']!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x136cb1(0xd6)](_0x56df9b[_0x136cb1(0xef)])||canonical(_0x56df9b[_0x136cb1(0xb9)])!==canonical(_0x440436)||![_0x136cb1(0xed),_0x136cb1(0xc8),_0x136cb1(0xe8),_0x136cb1(0x102)][_0x136cb1(0x112)](_0x56df9b['phase'])||!Array[_0x136cb1(0x10f)](_0x56df9b['media'])||_0x56df9b[_0x136cb1(0xed)][_0x136cb1(0xd2)]!==_0x1a3203['length']||_0x56df9b['media'][_0x136cb1(0xc3)]((_0x29853f,_0x12f2cc)=>_0x29853f['hash']!==_0x1a3203[_0x12f2cc][_0x136cb1(0x118)]||![_0x136cb1(0xee),_0x136cb1(0xb8)][_0x136cb1(0x112)](_0x29853f[_0x136cb1(0xfd)])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if(['rows-started',_0x136cb1(0x102)][_0x136cb1(0x112)](_0x56df9b[_0x136cb1(0xbf)])&&!await exists(_0x654309))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x56df9b[_0x136cb1(0xbf)]===_0x136cb1(0xed)&&await exists(_0x654309))throw Error(_0x136cb1(0xf2));}else{if(await exists(_0x2a515c)||await exists(_0x654309))throw Error(_0x136cb1(0xc6));_0x56df9b={'version':0x3,'importId':randomUUID(),'binding':_0x440436,'phase':_0x136cb1(0xed),'media':_0x1a3203[_0x136cb1(0xd5)](_0x7f59b0=>({'hash':_0x7f59b0['contentHash'],'status':_0x136cb1(0xee)}))},await saveImportJson(_0x2a515c,_0x56df9b);}const _0x4ac1fc=(_0x4baba9,_0x3cb872)=>{const _0x1e96cf=_0x136cb1;if(!_0x4baba9||_0x4baba9[_0x1e96cf(0x118)]!==_0x3cb872[_0x1e96cf(0x118)])throw Error(_0x1e96cf(0xce));if(_0x4baba9[_0x1e96cf(0xfd)]===_0x1e96cf(0x10a))return undefined;const _0x42cbd0=imageObjectValue(_0x10834a,_0x56df9b['importId'],_0x3cb872);if(_0x4baba9[_0x1e96cf(0xfd)]!==_0x1e96cf(0xb8)||_0x4baba9[_0x1e96cf(0xcc)]!==_0x42cbd0[_0x1e96cf(0x107)]||_0x4baba9[_0x1e96cf(0xc7)]!==_0x42cbd0[_0x1e96cf(0xfb)]||_0x4baba9['type']!==_0x42cbd0[_0x1e96cf(0x105)]||_0x4baba9[_0x1e96cf(0xf9)]!==_0x42cbd0[_0x1e96cf(0xf9)])throw Error(_0x1e96cf(0xde));return _0x42cbd0;};for(let _0x373aef=0x0;_0x373aef<_0x1a3203['length'];_0x373aef++){const _0x39dcc3=_0x1a3203[_0x373aef],_0x7f3bad=_0x56df9b[_0x136cb1(0xed)][_0x373aef],_0x20bf01=imageObjectValue(_0x10834a,_0x56df9b[_0x136cb1(0xef)],_0x39dcc3);if(_0x7f3bad[_0x136cb1(0xfd)]===_0x136cb1(0xb8)&&canonical(_0x7f3bad[_0x136cb1(0x11b)])!==canonical(_0x20bf01))throw Error(_0x136cb1(0xe5));let _0x37b71a;if(_0x1e8898[_0x136cb1(0xc2)]||_0x7f3bad['status']===_0x136cb1(0xb8))_0x37b71a=_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0xd8)](_0x56df9b[_0x136cb1(0xef)],_0x39dcc3),_0x39dcc3);if(!_0x37b71a&&_0x7f3bad['status']===_0x136cb1(0xb8))throw Error('Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.');if(!_0x37b71a){try{_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0x113)](_0x56df9b['importId'],_0x39dcc3),_0x39dcc3);}catch(_0xa80d72){_0x37b71a=_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0xd8)](_0x56df9b[_0x136cb1(0xef)],_0x39dcc3),_0x39dcc3);if(!_0x37b71a)throw Error(_0x136cb1(0xc5));}if(!_0x37b71a)_0x37b71a=_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0xd8)](_0x56df9b['importId'],_0x39dcc3),_0x39dcc3);if(!_0x37b71a)throw Error(_0x136cb1(0xc4));}_0x7f3bad[_0x136cb1(0xfd)]=_0x136cb1(0xb8),_0x7f3bad[_0x136cb1(0x11b)]=_0x37b71a,await saveImportJson(_0x2a515c,_0x56df9b);}const _0xe49914=bindImageManifest(_0x3bd75d,_0x10834a,_0x56df9b[_0x136cb1(0xef)]),_0x5881b3=_0x56df9b[_0x136cb1(0xbf)]===_0x136cb1(0xc8)?await exists(_0x654309):_0x56df9b[_0x136cb1(0xbf)]!==_0x136cb1(0xed);_0x56df9b[_0x136cb1(0xbf)]==='media'&&(_0x56df9b[_0x136cb1(0xbf)]=_0x136cb1(0xc8),await saveImportJson(_0x2a515c,_0x56df9b));const _0x8f2099={..._0x1e8898,'manifest':_0xe49914,'checkpoint':_0x654309,'report':_0x57e8f2,'resume':_0x5881b3,'onCheckpointReady':async()=>{const _0x55b047=_0x136cb1;_0x56df9b[_0x55b047(0xbf)]=_0x55b047(0xe8),await saveImportJson(_0x2a515c,_0x56df9b);}},_0x4b97f5=_0x10834a['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x8f2099,'reconcileImageConflicts':_0x1e8898['resume']===!![]&&_0x5881b3}):await runExcelImport(_0x8f2099);return _0x56df9b[_0x136cb1(0xbf)]=_0x136cb1(0x102),await saveImportJson(_0x2a515c,_0x56df9b),{..._0x4b97f5,'checkpoint':_0x2a515c,'imageCount':_0x3bd75d[_0x136cb1(0xe7)]?.[_0x136cb1(0xd7)]((_0x4e9ce8,_0x2d0d60)=>_0x4e9ce8+_0x2d0d60[_0x136cb1(0xba)]['length'],0x0)??0x0,'uniqueImages':_0x1a3203[_0x136cb1(0xd2)]};}finally{await _0x2538b8();}}
|
|
1
|
+
(function(_0x350a2c,_0x1c48a9){const _0x56104b=a147_0x3248,_0x4610e9=_0x350a2c();while(!![]){try{const _0x973779=parseInt(_0x56104b(0x18f))/0x1*(parseInt(_0x56104b(0x15f))/0x2)+parseInt(_0x56104b(0x193))/0x3*(-parseInt(_0x56104b(0x166))/0x4)+parseInt(_0x56104b(0x18d))/0x5*(parseInt(_0x56104b(0x17e))/0x6)+-parseInt(_0x56104b(0x14d))/0x7+parseInt(_0x56104b(0x165))/0x8*(-parseInt(_0x56104b(0x1a9))/0x9)+-parseInt(_0x56104b(0x196))/0xa*(-parseInt(_0x56104b(0x179))/0xb)+parseInt(_0x56104b(0x1a0))/0xc;if(_0x973779===_0x1c48a9)break;else _0x4610e9['push'](_0x4610e9['shift']());}catch(_0x4d1608){_0x4610e9['push'](_0x4610e9['shift']());}}}(a147_0x39ca,0xb507b));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_0x39ca(){const _0x5eb43b=['Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','appCode','missing','rows-preparing','image/png','parserVersion','Image\x20media\x20bytes\x20changed.','7830270mKmtma','pending','.lock','some','hashes','update','value','00000000-0000-4000-8000-000000000000','mappingHash','schemaFingerprint','digest','test','map','uploadFields','imageCells','media','gif','fileName','801898BVFNTQ','field','size','report','Invalid\x20image\x20media\x20descriptor.','Completed\x20image\x20checkpoint\x20value\x20changed.','31368iUkNhS','6884IGHsxG','hex','get','all','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','maxBatchSize','bytes','isSafeInteger','binding','.lock.recovery','errors','.rows.json','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','types','hash','key','maxPixels','readback','completed','2318613Pvzqtq','status','contentHash','filePath','schemaHash','13218wpLQNY','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','strategy','Image\x20cell\x20references\x20missing\x20media.','rows-started','contract','maxFileBytes','png','batchSize','phase','reduce','isArray','importId','parse','resume','2690kRMfpE','type','3CVocxe','stringify','schemaVersion','every','273DpxOCe','imageImport','isInteger','10aJiosx','version','sha256','checkpoint','includes','utf8','imageApi','rows','actorId','inputPaths','1154508huqAiC','length','datasetCode','fileHash','manifest','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','Invalid\x20image\x20manifest\x20limits.','succeeded','name','1557IToSOl','imageFields','ENOENT'];a147_0x39ca=function(){return _0x5eb43b;};return a147_0x39ca();}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0xc92161,_0x45bb31){const _0x4c723f=a147_0x3248;if(!_0x45bb31['media']?.[_0x4c723f(0x1a1)])return;const _0x2e6308=_0xc92161[_0x4c723f(0x194)];if(!_0x2e6308||_0x2e6308['version']!==0x1||_0x2e6308['uploadId']!==_0x4c723f(0x198)||_0x2e6308[_0x4c723f(0x184)]!==0xa00000||_0x2e6308[_0x4c723f(0x176)]!==0x2625a00||!Array[_0x4c723f(0x189)](_0x2e6308['types'])||![_0x4c723f(0x14a),'image/jpeg','image/gif'][_0x4c723f(0x192)](_0x463ad4=>_0x2e6308[_0x4c723f(0x173)][_0x4c723f(0x19a)](_0x463ad4)))throw Error(_0x4c723f(0x1a5));}export function imageObjectValue(_0x4bedbe,_0xd8bea9,_0x321ead){const _0x1d1ccb=a147_0x3248,_0x59df4e=createHash('sha256')[_0x1d1ccb(0x152)](JSON[_0x1d1ccb(0x190)]([_0x4bedbe[_0x1d1ccb(0x19e)],_0x4bedbe[_0x1d1ccb(0x147)],_0x4bedbe[_0x1d1ccb(0x1a2)],_0xd8bea9]))[_0x1d1ccb(0x157)](_0x1d1ccb(0x167)),_0x15349b={'image/png':_0x1d1ccb(0x185),'image/jpeg':'jpg','image/gif':_0x1d1ccb(0x15d)}[_0x321ead[_0x1d1ccb(0x18e)]];if(!_0x15349b||!/^[0-9a-f]{64}$/[_0x1d1ccb(0x158)](_0x321ead[_0x1d1ccb(0x17b)])||!Number[_0x1d1ccb(0x16d)](_0x321ead['size'])||_0x321ead['size']<=0x0||_0x321ead[_0x1d1ccb(0x161)]>0xa00000)throw Error(_0x1d1ccb(0x163));const _0xa3e60a=_0x321ead[_0x1d1ccb(0x17b)]+'.'+_0x15349b;return{'key':'dataset-import/'+_0x59df4e+'/'+_0xa3e60a,'name':_0xa3e60a,'type':_0x321ead['type'],'size':_0x321ead['size']};}export function bindImageManifest(_0x5cb8dc,_0x15f10b,_0x4243a){const _0xed985e=a147_0x3248,_0x2b1ac4=new Map(_0x5cb8dc[_0xed985e(0x15c)]?.[_0xed985e(0x159)](_0x153dea=>[_0x153dea['contentHash'],_0x153dea])),_0x3c1752=new Map(_0x5cb8dc[_0xed985e(0x15b)]?.[_0xed985e(0x159)](_0x43cf91=>[_0x43cf91['rowNumber']+':'+_0x43cf91[_0xed985e(0x160)],_0x43cf91[_0xed985e(0x151)]]));return{..._0x5cb8dc,'rows':_0x5cb8dc[_0xed985e(0x19d)][_0xed985e(0x159)](_0x4f31fc=>({..._0x4f31fc,'values':Object['fromEntries'](Object['entries'](_0x4f31fc['values'])[_0xed985e(0x159)](([_0x21dd80,_0x4089eb])=>{const _0x5ab5de=_0xed985e,_0x31051d=_0x3c1752[_0x5ab5de(0x168)](_0x4f31fc['rowNumber']+':'+_0x21dd80);return[_0x21dd80,_0x31051d?_0x31051d[_0x5ab5de(0x159)](_0x6e0e11=>{const _0x1dbc14=_0x5ab5de,_0x116332=_0x2b1ac4['get'](_0x6e0e11);if(!_0x116332)throw Error(_0x1dbc14(0x181));const _0x54284e=imageObjectValue(_0x15f10b,_0x4243a,_0x116332);return _0x5cb8dc[_0x1dbc14(0x15a)]?.[_0x1dbc14(0x19a)](_0x21dd80)?{'fileName':_0x54284e['name'],'filePath':_0x54284e[_0x1dbc14(0x175)]}:_0x54284e;}):_0x4089eb];}))}))};}async function exists(_0x2d4e53){const _0x4119e8=a147_0x3248;try{return await lstat(_0x2d4e53),!![];}catch(_0x2bf206){if(_0x2bf206['code']===_0x4119e8(0x1ab))return![];throw _0x2bf206;}}function a147_0x3248(_0x403b2e,_0x154c57){_0x403b2e=_0x403b2e-0x147;const _0x39cada=a147_0x39ca();let _0x324853=_0x39cada[_0x403b2e];return _0x324853;}export async function runImageExcelImport(_0x312e6a){const _0x3aa0e4=a147_0x3248;assertImportContract(_0x312e6a['contract'],_0x312e6a['appCode'],_0x312e6a[_0x3aa0e4(0x1a2)]),assertImageImportCapability(_0x312e6a[_0x3aa0e4(0x183)],_0x312e6a['manifest']);if(!Number[_0x3aa0e4(0x195)](_0x312e6a[_0x3aa0e4(0x186)])||_0x312e6a[_0x3aa0e4(0x186)]<0x1||_0x312e6a['batchSize']>_0x312e6a[_0x3aa0e4(0x183)][_0x3aa0e4(0x16b)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x312e6a[_0x3aa0e4(0x1a4)][_0x3aa0e4(0x170)][_0x3aa0e4(0x1a1)]||!_0x312e6a['manifest']['rows'][_0x3aa0e4(0x1a1)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0x53ccd2=await resolveImportOutputPath(_0x312e6a[_0x3aa0e4(0x199)]),_0x410cca=await resolveImportOutputPath(_0x312e6a[_0x3aa0e4(0x162)]),_0x16889f=await resolveImportOutputPath(_0x53ccd2+_0x3aa0e4(0x171)),_0x5cc665=await Promise[_0x3aa0e4(0x169)]([_0x16889f,_0x16889f+'.lock',_0x16889f+_0x3aa0e4(0x16f),..._0x312e6a[_0x3aa0e4(0x19f)]??[]]['map'](resolveImportOutputPath));for(const _0x49d845 of[_0x53ccd2,_0x410cca,_0x53ccd2+_0x3aa0e4(0x14f),_0x53ccd2+_0x3aa0e4(0x16f)])await resolveImportOutputPath(_0x49d845);assertImportPaths(_0x53ccd2,_0x410cca,_0x5cc665);const {contract:_0x1c32b4,manifest:_0x302e9e}=_0x312e6a,_0x3d3955=_0x302e9e[_0x3aa0e4(0x15c)]??[];if(new Set(_0x3d3955[_0x3aa0e4(0x159)](_0x40ec26=>_0x40ec26[_0x3aa0e4(0x17b)]))[_0x3aa0e4(0x161)]!==_0x3d3955[_0x3aa0e4(0x1a1)]||_0x3d3955[_0x3aa0e4(0x188)]((_0xa1c503,_0x5b5e77)=>_0xa1c503+_0x5b5e77['size'],0x0)>0x32*0x400*0x400||(_0x302e9e[_0x3aa0e4(0x15b)]??[])[_0x3aa0e4(0x188)]((_0x6780b,_0x3c15f8)=>_0x6780b+_0x3c15f8[_0x3aa0e4(0x151)]['length'],0x0)>0x2710)throw Error(_0x3aa0e4(0x1a6));for(const _0x465ba3 of _0x3d3955)if(_0x465ba3[_0x3aa0e4(0x161)]!==_0x465ba3['bytes'][_0x3aa0e4(0x1a1)]||createHash(_0x3aa0e4(0x198))[_0x3aa0e4(0x152)](_0x465ba3[_0x3aa0e4(0x16c)])[_0x3aa0e4(0x157)](_0x3aa0e4(0x167))!==_0x465ba3['contentHash'])throw Error(_0x3aa0e4(0x14c));previewImportBatchCount(bindImageManifest(_0x302e9e,_0x1c32b4,_0x3aa0e4(0x154)),_0x1c32b4,_0x312e6a[_0x3aa0e4(0x186)]);const _0x46e81c={'appCode':_0x312e6a[_0x3aa0e4(0x147)],'datasetCode':_0x312e6a['datasetCode'],'runtimeDomain':_0x312e6a['runtimeDomain'],'actorId':_0x1c32b4[_0x3aa0e4(0x19e)],'fileHash':_0x302e9e[_0x3aa0e4(0x1a3)],'mappingHash':_0x302e9e[_0x3aa0e4(0x155)],'schemaHash':_0x302e9e[_0x3aa0e4(0x17d)],'remoteSchemaHash':_0x1c32b4[_0x3aa0e4(0x156)],'strategy':_0x1c32b4[_0x3aa0e4(0x180)],'schemaVersion':_0x1c32b4['schemaVersion'],'batchSize':_0x312e6a[_0x3aa0e4(0x186)],'maxBatchBytes':_0x1c32b4['maxBatchBytes'],'sheet':_0x302e9e['sheet'],'parserVersion':_0x302e9e[_0x3aa0e4(0x14b)],'imageFields':_0x302e9e[_0x3aa0e4(0x1aa)],'cells':_0x302e9e[_0x3aa0e4(0x15b)],..._0x302e9e['uploadFields']?.[_0x3aa0e4(0x1a1)]?{'uploadFields':_0x302e9e[_0x3aa0e4(0x15a)]}:{},'media':_0x3d3955['map'](({contentHash:_0x145cee,type:_0x100d9a,size:_0xf95c19})=>({'contentHash':_0x145cee,'type':_0x100d9a,'size':_0xf95c19})),'rows':_0x302e9e[_0x3aa0e4(0x19d)]},_0x270033=await acquireLock(_0x53ccd2);try{let _0x35630a;if(_0x312e6a[_0x3aa0e4(0x18c)]){try{_0x35630a=JSON[_0x3aa0e4(0x18b)](await readFile(_0x53ccd2,_0x3aa0e4(0x19b)));}catch{throw Error(_0x3aa0e4(0x17f));}if(_0x35630a[_0x3aa0e4(0x197)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3aa0e4(0x158)](_0x35630a[_0x3aa0e4(0x18a)])||canonical(_0x35630a[_0x3aa0e4(0x16e)])!==canonical(_0x46e81c)||![_0x3aa0e4(0x15c),_0x3aa0e4(0x149),_0x3aa0e4(0x182),_0x3aa0e4(0x178)][_0x3aa0e4(0x19a)](_0x35630a[_0x3aa0e4(0x187)])||!Array[_0x3aa0e4(0x189)](_0x35630a['media'])||_0x35630a[_0x3aa0e4(0x15c)][_0x3aa0e4(0x1a1)]!==_0x3d3955['length']||_0x35630a[_0x3aa0e4(0x15c)][_0x3aa0e4(0x150)]((_0x2b30d8,_0x4b37ed)=>_0x2b30d8[_0x3aa0e4(0x174)]!==_0x3d3955[_0x4b37ed][_0x3aa0e4(0x17b)]||![_0x3aa0e4(0x14e),'succeeded']['includes'](_0x2b30d8[_0x3aa0e4(0x17a)])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if(['rows-started',_0x3aa0e4(0x178)][_0x3aa0e4(0x19a)](_0x35630a[_0x3aa0e4(0x187)])&&!await exists(_0x16889f))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x15c)&&await exists(_0x16889f))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x53ccd2)||await exists(_0x16889f))throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');_0x35630a={'version':0x3,'importId':randomUUID(),'binding':_0x46e81c,'phase':'media','media':_0x3d3955[_0x3aa0e4(0x159)](_0x45dc11=>({'hash':_0x45dc11[_0x3aa0e4(0x17b)],'status':_0x3aa0e4(0x14e)}))},await saveImportJson(_0x53ccd2,_0x35630a);}const _0x23e08b=(_0x446510,_0x187f8a)=>{const _0x12242c=_0x3aa0e4;if(!_0x446510||_0x446510[_0x12242c(0x17b)]!==_0x187f8a['contentHash'])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x446510[_0x12242c(0x17a)]===_0x12242c(0x148))return undefined;const _0x5e9dc4=imageObjectValue(_0x1c32b4,_0x35630a[_0x12242c(0x18a)],_0x187f8a);if(_0x446510[_0x12242c(0x17a)]!==_0x12242c(0x1a7)||_0x446510[_0x12242c(0x17c)]!==_0x5e9dc4['key']||_0x446510[_0x12242c(0x15e)]!==_0x5e9dc4[_0x12242c(0x1a8)]||_0x446510[_0x12242c(0x18e)]!==_0x5e9dc4[_0x12242c(0x18e)]||_0x446510[_0x12242c(0x161)]!==_0x5e9dc4[_0x12242c(0x161)])throw Error(_0x12242c(0x16a));return _0x5e9dc4;};for(let _0x34ff94=0x0;_0x34ff94<_0x3d3955['length'];_0x34ff94++){const _0x549e19=_0x3d3955[_0x34ff94],_0x26f901=_0x35630a[_0x3aa0e4(0x15c)][_0x34ff94],_0x3e44ad=imageObjectValue(_0x1c32b4,_0x35630a[_0x3aa0e4(0x18a)],_0x549e19);if(_0x26f901[_0x3aa0e4(0x17a)]==='succeeded'&&canonical(_0x26f901[_0x3aa0e4(0x153)])!==canonical(_0x3e44ad))throw Error(_0x3aa0e4(0x164));let _0xf75368;if(_0x312e6a[_0x3aa0e4(0x18c)]||_0x26f901['status']==='succeeded')_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368&&_0x26f901['status']===_0x3aa0e4(0x1a7))throw Error(_0x3aa0e4(0x172));if(!_0xf75368){try{_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)]['upload'](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);}catch(_0x5788ee){_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368)throw Error(_0x3aa0e4(0x1ac));}if(!_0xf75368)_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x26f901['status']='succeeded',_0x26f901[_0x3aa0e4(0x153)]=_0xf75368,await saveImportJson(_0x53ccd2,_0x35630a);}const _0x40c396=bindImageManifest(_0x302e9e,_0x1c32b4,_0x35630a[_0x3aa0e4(0x18a)]),_0x5894b4=_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x149)?await exists(_0x16889f):_0x35630a[_0x3aa0e4(0x187)]!==_0x3aa0e4(0x15c);_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x15c)&&(_0x35630a[_0x3aa0e4(0x187)]=_0x3aa0e4(0x149),await saveImportJson(_0x53ccd2,_0x35630a));const _0x7a8b65={..._0x312e6a,'manifest':_0x40c396,'checkpoint':_0x16889f,'report':_0x410cca,'resume':_0x5894b4,'onCheckpointReady':async()=>{const _0x1f6543=_0x3aa0e4;_0x35630a[_0x1f6543(0x187)]=_0x1f6543(0x182),await saveImportJson(_0x53ccd2,_0x35630a);}},_0x782c57=_0x1c32b4[_0x3aa0e4(0x191)]===0x2?await runAutoIdExcelImport({..._0x7a8b65,'reconcileImageConflicts':_0x312e6a[_0x3aa0e4(0x18c)]===!![]&&_0x5894b4}):await runExcelImport(_0x7a8b65);return _0x35630a['phase']=_0x3aa0e4(0x178),await saveImportJson(_0x53ccd2,_0x35630a),{..._0x782c57,'checkpoint':_0x53ccd2,'imageCount':_0x302e9e['imageCells']?.['reduce']((_0x7b009b,_0x11b5c7)=>_0x7b009b+_0x11b5c7['hashes'][_0x3aa0e4(0x1a1)],0x0)??0x0,'uniqueImages':_0x3d3955[_0x3aa0e4(0x1a1)]};}finally{await _0x270033();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27ba14,_0x48771a){const _0x20f678=a148_0x2237,_0x1a6720=_0x27ba14();while(!![]){try{const _0x19d70c=parseInt(_0x20f678(0x9d))/0x1+parseInt(_0x20f678(0x92))/0x2*(-parseInt(_0x20f678(0x99))/0x3)+-parseInt(_0x20f678(0x9e))/0x4+-parseInt(_0x20f678(0x8f))/0x5+parseInt(_0x20f678(0xa0))/0x6+parseInt(_0x20f678(0x94))/0x7+-parseInt(_0x20f678(0x8e))/0x8;if(_0x19d70c===_0x48771a)break;else _0x1a6720['push'](_0x1a6720['shift']());}catch(_0x21f0cc){_0x1a6720['push'](_0x1a6720['shift']());}}}(a148_0x4522,0xe5021));function a148_0x2237(_0x1fd8ae,_0x65f534){_0x1fd8ae=_0x1fd8ae-0x8e;const _0x4522b7=a148_0x4522();let _0x223714=_0x4522b7[_0x1fd8ae];return _0x223714;}function a148_0x4522(){const _0x4ab02a=['source','2817574eJantT','modelCode','6616554GwKXLR','some','appCode','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','object','3yARcCi','Dataset\x20metadata\x20is\x20missing.','filter','sourceType','916992ThkuOo','2208760zwkUFw','dataset','11199972UvaIIQ','string','5673840FzMFbo','603260bMZYLK','datasetCode'];a148_0x4522=function(){return _0x4ab02a;};return a148_0x4522();}export function assertDatasetImportTarget(_0x2e7c22,_0x51257b,_0x3e07e0){const _0xd6a2d2=a148_0x2237;if(!_0x2e7c22||typeof _0x2e7c22!==_0xd6a2d2(0x98)||Array['isArray'](_0x2e7c22))throw Error(_0xd6a2d2(0x9a));const _0x28cd59=[_0x2e7c22['code'],_0x2e7c22[_0xd6a2d2(0x93)],_0x2e7c22['dataset']?.[_0xd6a2d2(0x90)]][_0xd6a2d2(0x9b)](_0x3258de=>_0x3258de!=null);if(!_0x28cd59['length']||_0x28cd59['some'](_0x290c6c=>_0x290c6c!==_0x3e07e0)||_0x2e7c22[_0xd6a2d2(0x96)]!=null&&_0x2e7c22[_0xd6a2d2(0x96)]!==_0x51257b||_0x2e7c22[_0xd6a2d2(0x9f)]?.[_0xd6a2d2(0x96)]!=null&&_0x2e7c22[_0xd6a2d2(0x9f)][_0xd6a2d2(0x96)]!==_0x51257b)throw Error(_0xd6a2d2(0x97));const _0xa29d01=[_0x2e7c22[_0xd6a2d2(0x91)],_0x2e7c22[_0xd6a2d2(0x9f)]?.[_0xd6a2d2(0x9c)]][_0xd6a2d2(0x9b)](_0x540032=>_0x540032!=null);if(_0xa29d01[_0xd6a2d2(0x95)](_0x3fdd2d=>typeof _0x3fdd2d!==_0xd6a2d2(0xa1)||_0x3fdd2d!==_0xa29d01[0x0]))throw Error('Dataset\x20source\x20metadata\x20is\x20inconsistent.');return _0xa29d01[0x0];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a149_0x4479(_0x22233b,_0x140e1c){_0x22233b=_0x22233b-0xa9;const _0x5e5657=a149_0x5e56();let _0x44797b=_0x5e5657[_0x22233b];return _0x44797b;}function a149_0x5e56(){const _0x5d81e9=['1812492YDslJS','schemaFingerprint','values','703737jUFdic','1465464CJyiko','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','478434ROUWTj','893088UsaSnZ','maxBatchBytes','3683256RHfyKk','152845qWjywy','length','push','rows','byteLength','schemaVersion','Excel\x20row\x20','4aHBFJe'];a149_0x5e56=function(){return _0x5d81e9;};return a149_0x5e56();}(function(_0x26a73b,_0x433195){const _0x6289d7=a149_0x4479,_0x47adb9=_0x26a73b();while(!![]){try{const _0x3d1225=parseInt(_0x6289d7(0xaa))/0x1+parseInt(_0x6289d7(0xb5))/0x2*(-parseInt(_0x6289d7(0xb9))/0x3)+-parseInt(_0x6289d7(0xba))/0x4+parseInt(_0x6289d7(0xae))/0x5+parseInt(_0x6289d7(0xb6))/0x6+-parseInt(_0x6289d7(0xab))/0x7+parseInt(_0x6289d7(0xad))/0x8;if(_0x3d1225===_0x433195)break;else _0x47adb9['push'](_0x47adb9['shift']());}catch(_0x66867a){_0x47adb9['push'](_0x47adb9['shift']());}}}(a149_0x5e56,0x4b4a0));export function previewImportBatchCount(_0xc6f7d,_0x88be69,_0x11cc8d){const _0x172e9a=a149_0x4479,_0x42b9f4=_0x453ea6=>_0x453ea6['map'](_0x1af0e0=>_0x88be69[_0x172e9a(0xb3)]===0x1?{..._0xc6f7d[_0x172e9a(0xb1)][_0x1af0e0][_0x172e9a(0xb8)],'id':-0x1fffffffffffff}:_0xc6f7d['rows'][_0x1af0e0][_0x172e9a(0xb8)]),_0x7bed3f=_0x2a4d29=>Buffer[_0x172e9a(0xb2)](JSON['stringify']({'schemaFingerprint':_0x88be69[_0x172e9a(0xb7)],..._0x88be69[_0x172e9a(0xb3)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x42b9f4(_0x2a4d29)}),'utf8');let _0x4fcf50=0x0,_0x5a0e90=[];for(let _0x4c6282=0x0;_0x4c6282<_0xc6f7d[_0x172e9a(0xb1)][_0x172e9a(0xaf)];_0x4c6282++){if(_0x7bed3f([_0x4c6282])>_0x88be69[_0x172e9a(0xac)])throw Error(_0x172e9a(0xb4)+_0xc6f7d[_0x172e9a(0xb1)][_0x4c6282]['rowNumber']+_0x172e9a(0xa9));_0x5a0e90['length']&&(_0x5a0e90[_0x172e9a(0xaf)]===_0x11cc8d||_0x7bed3f([..._0x5a0e90,_0x4c6282])>_0x88be69[_0x172e9a(0xac)])&&(_0x4fcf50++,_0x5a0e90=[]),_0x5a0e90[_0x172e9a(0xb0)](_0x4c6282);}return _0x4fcf50+Number(_0x5a0e90[_0x172e9a(0xaf)]>0x0);}
|