@lovrabet/lovrabet-cli 2.3.8-beta.7 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a144_0x1586bd=a144_0x520d;function a144_0x23fc(){const _0x4e6cf9=['jpg','merges','isInteger','media','boolean','getTime','XML\x20DTD/entities\x20are\x20not\x20supported.','Invalid\x20XLSX\x20entry.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','materialized','directory','processAttributes','end','readEntry','2292064JOkwfh','Worksheet\x20coordinate\x20exceeds\x20','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Worksheet\x20exceeds\x2016384\x20columns.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Unknown\x20Excel\x20header:\x20','dataset','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','formula','cells','closetag','doctype','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20merge\x20reference.','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','equals','extraFields','split','fromBuffer','slice','./utils','worksheets','ranges','abs','result','appCode','number','Image\x20XML\x20node\x20budget\x20exceeded.','map','right','hyperlink','getRow','sharedFormula','Invalid\x20ZIP\x20local\x20file\x20header.','rows','utf8','doType','xlsx','charCodeAt','fileNameStr','_xlnm.Print_Titles','Expected\x20a\x20boolean\x20cell.','MAX_SAFE_INTEGER','Required\x20field\x20is\x20not\x20mapped:\x20','file','689412ZoIoMI','2680412wyWBdQ','ref','Required\x20image\x20value\x20is\x20missing.','date','Merged\x20cells\x20are\x20not\x20supported.','Duplicate\x20workbook\x20ZIP\x20entry.','trim','Duplicate\x20dataset\x20field\x20codes.','Duplicate\x20header:\x20','autoIncrement','Duplicate\x20mapping\x20target:\x20','parseInt','versionMadeBy','mergeCell','update','Cell\x20exceeds\x2064\x20KB.','isFinite','get','isArray','Invalid\x20worksheet\x20hyperlink\x20reference.','type','code','xl/workbook.xml','hidden','2532024SzbHqF','eachCell','uploadFields','Worksheet\x20exceeds\x20','datetime','hiddenRow','generalPurposeBitFlag','image','_xlnm.Print_Area','parse','readBigUInt64LE','creatorId','opentag','isSafeInteger','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','Non-canonical\x20worksheet\x20ZIP\x20entry.','entryCount','parseOpen','col','destroy','decodeEx','object','nativeCell','Expected\x20an\x20Excel\x20date\x20cell.','source','before','rowCount','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','resolve','sheet','createTime','top','push','extraFieldsLength','updateTime','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','sha256','extend','parseClose','extname','length','some','values','reference','bottom','left','readExtraFields','readEntryCursor','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20dataset\x20field\x20extension\x20metadata.','close','Required\x20value\x20is\x20missing.','getCell','tenantCode','attributes','Only\x20.xlsx\x20files\x20are\x20supported.','handleUTF8','relativeOffsetOfLocalHeader','METADATA','3373976CTLSLr','bitFlag','exceljs/lib/utils/col-cache.js','Missing\x20image\x20media:\x20','Worksheet\x20column\x20objects\x20exceed\x20100000.','externalFileAttributes','test','fileCommentRaw','exceljs/lib/xlsx/xform/book/defined-name-xform.js','subarray','10ONlKBw','errors','3xCwPFM','sort','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Requested\x20worksheet\x20does\x20not\x20exist.','upload','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','data','concat','filter','extraFieldRaw','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','datasetId','1444874AzBjcI','readUInt16LE','properties','row','imageCells','contentHash','digest','integer','Image\x20XML\x20event\x20budget\x20exceeded.','toLowerCase','./utf8','find','set','required','text','hex','byteLength','readUInt32LE','dataset-import/','utf8decode','creatorName','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Invalid\x20worksheet\x20nested\x20cell.','exceljs','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','isFile','name','model','fields','compressedSize','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','20ITkDNk','size','write','unixPermissions','has','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','add','max','localeCompare','address','generated','every','8625321gqjQkk','Dataset\x20field\x20metadata\x20is\x20missing.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','.xlsx','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','serial_number','definedName','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20defined\x20name\x20coordinate.','value','warnings','lastIndexOf','fileNameRaw','./reader/readerFor','includes','fileComment','message','imageFields','dataType','[Content_Types].xml','string','batchSize','Expected\x20a\x20text\x20cell.','dir','Unsupported\x20field\x20type:\x20','columnCount','parserVersion','from','Workbook','textarea','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','create','stringify','exec','error','Invalid\x20XLSX\x20archive.','Invalid\x20worksheet\x20XML.','decimal','dataValidations','mapping','sourceType','isBuffer','deleted','modifierId','XLSX\x20file\x20exceeds\x2020\x20MB.'];a144_0x23fc=function(){return _0x4e6cf9;};return a144_0x23fc();}function a144_0x520d(_0x776057,_0x44225c){_0x776057=_0x776057-0x164;const _0x23fc48=a144_0x23fc();let _0x520de7=_0x23fc48[_0x776057];return _0x520de7;}(function(_0x90955d,_0x9d7093){const _0x23fcd7=a144_0x520d,_0x9f9b=_0x90955d();while(!![]){try{const _0x18e6ea=-parseInt(_0x23fcd7(0x244))/0x1+parseInt(_0x23fcd7(0x1b0))/0x2*(parseInt(_0x23fcd7(0x1a4))/0x3)+parseInt(_0x23fcd7(0x198))/0x4+parseInt(_0x23fcd7(0x1a2))/0x5*(parseInt(_0x23fcd7(0x25d))/0x6)+parseInt(_0x23fcd7(0x245))/0x7+parseInt(_0x23fcd7(0x216))/0x8+parseInt(_0x23fcd7(0x1db))/0x9*(-parseInt(_0x23fcd7(0x1cf))/0xa);if(_0x18e6ea===_0x9d7093)break;else _0x9f9b['push'](_0x9f9b['shift']());}catch(_0x3626a4){_0x9f9b['push'](_0x9f9b['shift']());}}}(a144_0x23fc,0x7387d));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x219077 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3a67e4 from'exceljs';import a144_0x5c3bed from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x1586bd(0x192),a144_0x1586bd(0x230),a144_0x1586bd(0x1af),a144_0x1586bd(0x168),a144_0x1586bd(0x1c4),a144_0x1586bd(0x206),'modifierName',a144_0x1586bd(0x17b),a144_0x1586bd(0x17f),a144_0x1586bd(0x205)]),TYPES=new Set([a144_0x1586bd(0x1ef),'text','textarea',a144_0x1586bd(0x231),a144_0x1586bd(0x200),'integer',a144_0x1586bd(0x20c),a144_0x1586bd(0x248),a144_0x1586bd(0x261),a144_0x1586bd(0x164),a144_0x1586bd(0x1a8)]),isImageContainer=_0x7f2d2=>[a144_0x1586bd(0x164),'upload'][a144_0x1586bd(0x1e9)](_0x7f2d2['toLowerCase']()),hash=_0x3c11a6=>createHash(a144_0x1586bd(0x181))[a144_0x1586bd(0x253)](_0x3c11a6)[a144_0x1586bd(0x1b6)](a144_0x1586bd(0x1bf)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x1586bd(0x1a0)),nameCoordinates=require(a144_0x1586bd(0x19a)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x1586bd(0x179)](a144_0x1586bd(0x1c7))),zipRequire=createRequire(excelRequire[a144_0x1586bd(0x179)]('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x1586bd(0x1e8)),zipUtf8=zipRequire(a144_0x1586bd(0x1ba)),zipPaths=zipRequire(a144_0x1586bd(0x22b));function centralDirectoryEnd(_0x5a95b7,_0xccf6e7){const _0x3bf095=a144_0x1586bd,_0x177029=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x79a551=_0x5a95b7[_0x3bf095(0x1e6)](Buffer[_0x3bf095(0x1f6)]([0x50,0x4b,0x5,0x6]));if(_0x79a551<0x0||_0x79a551+0x16>_0x5a95b7[_0x3bf095(0x185)]||_0x79a551+0x16+_0x5a95b7['readUInt16LE'](_0x79a551+0x14)!==_0x5a95b7[_0x3bf095(0x185)])throw _0x177029();let _0x30b91d=_0x5a95b7['readUInt16LE'](_0x79a551+0xa),_0x1af78a=_0x5a95b7[_0x3bf095(0x1c1)](_0x79a551+0xc),_0x4a19f3=_0x5a95b7[_0x3bf095(0x1c1)](_0x79a551+0x10),_0x473d00=_0x79a551;const _0x454bd2=_0x79a551-0x14,_0x1561bd=_0x454bd2>=0x0&&_0x5a95b7[_0x3bf095(0x1c1)](_0x454bd2)===0x7064b50,_0x41f00=[0x4,0x6,0x8,0xa][_0x3bf095(0x186)](_0x180201=>_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+_0x180201)===0xffff)||_0x1af78a===0xffffffff||_0x4a19f3===0xffffffff;if(_0x1561bd!==_0x41f00)throw _0x177029();if(_0x1561bd){if(_0x5a95b7[_0x3bf095(0x1e6)](Buffer[_0x3bf095(0x1f6)]([0x50,0x4b,0x6,0x7]))!==_0x454bd2)throw _0x177029();const _0x25d606=_0x21cd95=>{const _0x3d88dc=_0x3bf095,_0x1ad6c8=Number(_0x5a95b7[_0x3d88dc(0x167)](_0x21cd95));if(!Number[_0x3d88dc(0x16a)](_0x1ad6c8))throw _0x177029();return _0x1ad6c8;};_0x473d00=_0x25d606(_0x454bd2+0x8);if(_0x5a95b7[_0x3bf095(0x1c1)](_0x454bd2+0x4)!==0x0||_0x5a95b7['readUInt32LE'](_0x454bd2+0x10)!==0x1||_0x473d00>_0x454bd2-0x38||_0x5a95b7[_0x3bf095(0x1c1)](_0x473d00)!==0x6064b50||_0x25d606(_0x473d00+0x4)!==0x2c||_0x473d00+0x38!==_0x454bd2||_0x5a95b7[_0x3bf095(0x1c1)](_0x473d00+0x10)!==0x0||_0x5a95b7['readUInt32LE'](_0x473d00+0x14)!==0x0)throw _0x177029();_0x30b91d=_0x25d606(_0x473d00+0x20),_0x1af78a=_0x25d606(_0x473d00+0x28),_0x4a19f3=_0x25d606(_0x473d00+0x30);if(_0x25d606(_0x473d00+0x18)!==_0x30b91d)throw _0x177029();}else{if(_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+0x4)!==0x0||_0x5a95b7['readUInt16LE'](_0x79a551+0x6)!==0x0||_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+0x8)!==_0x30b91d)throw _0x177029();}const _0x135dcf=_0xccf6e7[_0x3bf095(0x18c)];if(_0x4a19f3!==_0x135dcf||_0x30b91d!==_0xccf6e7[_0x3bf095(0x16d)]||_0x4a19f3+_0x1af78a!==_0x473d00)throw _0x177029();return _0x473d00;}function consumerEntryName(_0x249407,_0x2d1e1d){const _0x2f9d5b=a144_0x1586bd;if(_0x2d1e1d[_0x2f9d5b(0x227)][_0x2f9d5b(0x1ac)](_0x5aa8d5=>_0x5aa8d5['id']===0x1)[_0x2f9d5b(0x185)]>0x1)throw new Error(_0x2f9d5b(0x178));const _0x4c91a2=_0x2d1e1d,_0x202ed5=_0x2d1e1d[_0x2f9d5b(0x196)];if(!Buffer['isBuffer'](_0x4c91a2['fileNameRaw'])||!Buffer['isBuffer'](_0x4c91a2[_0x2f9d5b(0x1ad)])||!Buffer[_0x2f9d5b(0x204)](_0x4c91a2[_0x2f9d5b(0x19f)])||!Number[_0x2f9d5b(0x16a)](_0x202ed5)||_0x202ed5<0x0||_0x202ed5>_0x249407[_0x2f9d5b(0x185)]-0x1e||_0x249407[_0x2f9d5b(0x1c1)](_0x202ed5)!==0x4034b50)throw new Error(_0x2f9d5b(0x238));const _0x169202=_0x202ed5+0x1e+_0x249407[_0x2f9d5b(0x1b1)](_0x202ed5+0x1a),_0x3254b9=_0x169202+_0x249407[_0x2f9d5b(0x1b1)](_0x202ed5+0x1c)+_0x2d1e1d[_0x2f9d5b(0x1cd)];if(!Number['isSafeInteger'](_0x3254b9)||_0x3254b9>_0x249407[_0x2f9d5b(0x185)])throw new Error(_0x2f9d5b(0x238));if(_0x169202>_0x249407['length']||!_0x249407[_0x2f9d5b(0x1a1)](_0x202ed5+0x1e,_0x169202)[_0x2f9d5b(0x226)](_0x4c91a2[_0x2f9d5b(0x1e7)]))throw new Error(_0x2f9d5b(0x180));const _0xce10e8=new ZipEntry({},{'decodeFileName':zipUtf8[_0x2f9d5b(0x1c3)]});_0xce10e8[_0x2f9d5b(0x199)]=_0x2d1e1d[_0x2f9d5b(0x263)],_0xce10e8['fileName']=_0x4c91a2[_0x2f9d5b(0x1e7)],_0xce10e8[_0x2f9d5b(0x1ea)]=_0x4c91a2['fileCommentRaw'],_0xce10e8[_0x2f9d5b(0x17e)]=_0x4c91a2[_0x2f9d5b(0x1ad)][_0x2f9d5b(0x185)],_0xce10e8[_0x2f9d5b(0x18b)](zipReader(_0x4c91a2[_0x2f9d5b(0x1ad)])),_0xce10e8[_0x2f9d5b(0x195)](),_0xce10e8[_0x2f9d5b(0x251)]=_0x2d1e1d[_0x2f9d5b(0x251)],_0xce10e8['externalFileAttributes']=_0x2d1e1d[_0x2f9d5b(0x19d)],_0xce10e8[_0x2f9d5b(0x213)]();const _0x5122ca=_0xce10e8[_0x2f9d5b(0x1f2)]||Boolean((_0xce10e8[_0x2f9d5b(0x1d2)]??0x0)&0x4000),_0x1982f8=zipPaths[_0x2f9d5b(0x179)](_0xce10e8[_0x2f9d5b(0x23e)]),_0xa073bf=_0x1982f8['startsWith']('/')?_0x1982f8[_0x2f9d5b(0x22a)](0x1):_0x1982f8;return{'name':_0xa073bf,'original':_0xce10e8[_0x2f9d5b(0x23e)],'directory':_0x5122ca};}export function normalizeImportFields(_0x11ee5c){const _0x34f933=a144_0x1586bd;if(!_0x11ee5c||(_0x11ee5c[_0x34f933(0x175)]??_0x11ee5c[_0x34f933(0x21c)]?.[_0x34f933(0x203)])!==_0x34f933(0x197))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x4779ab=Array[_0x34f933(0x257)](_0x11ee5c[_0x34f933(0x1cc)]),_0x4bb584=_0x4779ab?_0x11ee5c[_0x34f933(0x1cc)]:_0x11ee5c[_0x34f933(0x1b2)];if(!Array[_0x34f933(0x257)](_0x4bb584)||_0x4bb584[_0x34f933(0x185)]===0x0)throw new Error(_0x34f933(0x1dc));const _0x36b709=[],_0x9702b9=new Set();for(const _0x409a9e of _0x4bb584){if(_0x409a9e['deleted']===!![])continue;let _0x392117=_0x409a9e[_0x34f933(0x182)]??{};if(!_0x4779ab&&typeof _0x392117===_0x34f933(0x1ef)){try{_0x392117=JSON[_0x34f933(0x166)](_0x392117);}catch{throw new Error(_0x34f933(0x18e));}if(!_0x392117||typeof _0x392117!==_0x34f933(0x172)||Array[_0x34f933(0x257)](_0x392117))throw new Error(_0x34f933(0x18e));}const _0x539216=_0x4779ab?_0x409a9e['name']:_0x409a9e['code'],_0xe2dd4e=_0x4779ab?_0x409a9e[_0x34f933(0x23b)]:_0x409a9e['type']??_0x409a9e[_0x34f933(0x1ed)];if(typeof _0x539216!==_0x34f933(0x1ef)||!_0x539216||typeof _0xe2dd4e!==_0x34f933(0x1ef)||_0x9702b9['has'](_0x539216))throw new Error(_0x34f933(0x21e));if(_0xe2dd4e['toLowerCase']()===_0x34f933(0x1e0))throw new Error(_0x34f933(0x1a6));_0x9702b9[_0x34f933(0x1d5)](_0x539216);const _0x49d6d2=_0x4779ab?_0x409a9e:_0x392117,_0x4817f2={'code':_0x539216,'type':_0xe2dd4e,'required':_0x49d6d2[_0x34f933(0x1bd)]===!![]};if(RESERVED['has'](_0x539216)||_0x49d6d2['generated']===!![]||_0x49d6d2[_0x34f933(0x24e)]===!![])_0x4817f2[_0x34f933(0x1d9)]=!![];_0x36b709[_0x34f933(0x17d)](_0x4817f2);}return _0x36b709;}async function checkArchive(_0x189601,_0x307cae){await new Promise((_0x5f4cc4,_0x466290)=>{const _0x4bba27=a144_0x520d;a144_0x5c3bed[_0x4bba27(0x229)](_0x189601,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x1cc756,_0x2c87d0)=>{const _0x13a6f8=_0x4bba27;if(_0x1cc756||!_0x2c87d0){_0x466290(_0x1cc756??new Error(_0x13a6f8(0x1fe)));return;}let _0x5f4440;try{_0x5f4440=centralDirectoryEnd(_0x189601,_0x2c87d0);}catch(_0x536a6b){_0x2c87d0[_0x13a6f8(0x18f)](),_0x466290(_0x536a6b);return;}let _0x388e45=0x0,_0x3d2816=0x0,_0x270247=0x0,_0x3d4ea2=0x0,_0x553772=0x0,_0x42a5f0=0x0,_0x2e760f=0x0,_0x5135b7=0x0,_0x26fc89=0x0,_0x3a5215=![],_0xe65325;const _0x2b59a4=new Set(),_0x125f12=_0x2f4992=>{const _0x355739=_0x13a6f8;if(_0x3a5215)return;_0x3a5215=!![],_0xe65325?.['destroy'](),_0x2c87d0[_0x355739(0x18f)](),_0x466290(_0x2f4992);},_0x19bd7a=(_0x308000,_0x394163)=>{const _0xd0a6fa=_0x13a6f8;if(!_0x308000||!/^\d+$/['test'](_0x308000))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x478dc3=Number(_0x308000);if(!Number[_0xd0a6fa(0x16a)](_0x478dc3)||_0x478dc3<0x1||_0x478dc3>_0x394163)throw new Error(_0xd0a6fa(0x217)+_0x394163+'.');return _0x478dc3;},_0x59060b=(_0x6e3401,_0x1857fc=MAX_XML_COLUMNS)=>{const _0x2aa6eb=_0x13a6f8,_0x491a7c=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2aa6eb(0x1fc)](_0x6e3401);if(!_0x491a7c)throw new Error(_0x2aa6eb(0x1df));let _0x11c1e0=0x0;for(const _0x5b4251 of _0x491a7c[0x1])_0x11c1e0=_0x11c1e0*0x1a+_0x5b4251[_0x2aa6eb(0x23d)](0x0)-0x40;if(_0x11c1e0>_0x1857fc)throw new Error(_0x2aa6eb(0x260)+_0x1857fc+'\x20columns.');return{'row':_0x19bd7a(_0x491a7c[0x2],MAX_XML_ROWS),'col':_0x11c1e0};},_0x5e519b=_0x3b4142=>{const _0x37417a=_0x13a6f8;if(_0x3b4142[_0x37417a(0x1ca)]===_0x37417a(0x165)||_0x3b4142[_0x37417a(0x1ca)]===_0x37417a(0x23f))return;for(const _0x160d5e of _0x3b4142[_0x37417a(0x22d)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x160d5e[_0x37417a(0x228)]('!')['pop']()||''))continue;const _0x958685=nameCoordinates[_0x37417a(0x171)](_0x160d5e),_0x1f6327=_0x37417a(0x17c)in _0x958685,_0x103072=_0x1f6327?[_0x958685[_0x37417a(0x17c)],_0x958685[_0x37417a(0x189)]]:[_0x958685[_0x37417a(0x1b3)]],_0x40eaa4=_0x1f6327?[_0x958685[_0x37417a(0x18a)],_0x958685[_0x37417a(0x234)]]:[_0x958685[_0x37417a(0x16f)]],_0x232567=(_0x4363c8,_0x56df33)=>Number['isSafeInteger'](_0x4363c8)&&_0x4363c8>=0x1&&_0x4363c8<=_0x56df33;if(!_0x103072['every'](_0x1b2f60=>_0x232567(_0x1b2f60,MAX_XML_ROWS))||!_0x40eaa4[_0x37417a(0x1da)](_0x3b21ed=>_0x232567(_0x3b21ed,MAX_XML_COLUMNS)))throw new Error(_0x37417a(0x1e3));_0x2e760f+=_0x1f6327?(_0x958685['bottom']-_0x958685['top']+0x1)*(_0x958685[_0x37417a(0x234)]-_0x958685[_0x37417a(0x18a)]+0x1):0x1;if(_0x2e760f>MAX_ROWS)throw new Error(_0x37417a(0x21a));}};_0x2c87d0['on'](_0x13a6f8(0x1fd),_0x125f12),_0x2c87d0['on']('entry',_0x1cc6aa=>{const _0x27ca21=_0x13a6f8;if(_0x3a5215)return;if(++_0x270247>0x2710||(_0x388e45+=_0x1cc6aa['uncompressedSize'])>MAX_EXPANDED){_0x125f12(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x5605c0;try{_0x5605c0=consumerEntryName(_0x189601,_0x1cc6aa);}catch(_0x120ca1){_0x125f12(_0x120ca1);return;}if(_0x5605c0[_0x27ca21(0x212)]){_0x2c87d0[_0x27ca21(0x215)]();return;}const _0x3edd80=_0x5605c0[_0x27ca21(0x1ca)];if(_0x307cae&&(_0x3edd80!==_0x5605c0['original']||_0x2b59a4[_0x27ca21(0x1d3)](_0x3edd80)||_0x3edd80['startsWith']('/')||_0x3edd80[_0x27ca21(0x1e9)]('\x5c'))){_0x125f12(new Error(_0x27ca21(0x1f9)));return;}if(_0x3edd80!==_0x5605c0['original']&&(_0x3edd80===_0x27ca21(0x25b)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x27ca21(0x19e)](_0x3edd80))){_0x125f12(new Error(_0x27ca21(0x1a9)));return;}const _0x2c69c6=_0x3edd80===_0x27ca21(0x25b);if(_0x2c69c6&&_0x2b59a4[_0x27ca21(0x1d3)](_0x3edd80)){_0x125f12(new Error(_0x27ca21(0x24a)));return;}_0x2b59a4['add'](_0x3edd80);const _0x2e3063=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x27ca21(0x19e)](_0x3edd80);if(_0x2e3063&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x27ca21(0x19e)](_0x3edd80)){_0x125f12(new Error(_0x27ca21(0x16c)));return;}_0x2c87d0['openReadStream'](_0x1cc6aa,(_0x1068da,_0x2cf3f5)=>{const _0x333e0c=_0x27ca21;if(_0x3a5215){_0x2cf3f5?.[_0x333e0c(0x170)]();return;}if(_0x1068da||!_0x2cf3f5){_0x125f12(_0x1068da??new Error(_0x333e0c(0x20f)));return;}_0xe65325=_0x2cf3f5;const _0x1e137d=_0x307cae?[]:undefined,_0x51f264=_0x307cae&&/[.](xml|rels)$/[_0x333e0c(0x19e)](_0x3edd80)?new StringDecoder(_0x333e0c(0x23a)):undefined,_0x1301f8=_0x51f264?new SaxesParser({'xmlns':![]}):undefined,_0x2dff63=()=>{const _0x4d0f6b=_0x333e0c;if(++_0x26fc89>0x1e8480)throw Error(_0x4d0f6b(0x1b8));};_0x1301f8?.['on'](_0x333e0c(0x222),()=>{const _0x30eff6=_0x333e0c;throw Error(_0x30eff6(0x20e));}),_0x1301f8?.['on']('opentag',()=>{const _0x108f67=_0x333e0c;_0x2dff63();if(++_0x5135b7>0x7a120)throw Error(_0x108f67(0x232));}),_0x1301f8?.['on'](_0x333e0c(0x1be),_0x2dff63),_0x1301f8?.['on'](_0x333e0c(0x221),_0x2dff63),_0x1301f8?.['on'](_0x333e0c(0x1fd),_0x46f466=>{throw _0x46f466;});const _0x43981e=_0x2e3063||_0x2c69c6?new StringDecoder('utf8'):undefined,_0x58e6f7=_0x2e3063||_0x2c69c6?new SaxesParser({'xmlns':![]}):undefined;let _0x55ce5c,_0x19a468=0x0,_0x4921b7=0x0,_0x423ed7,_0x18dfb2,_0x3b4c15=![],_0x13e517=![],_0x2e28b3,_0x56f6d4,_0x26632e,_0x14ca74=![];const _0x1a401c=[],_0x11dfff=new Set();let _0x28970a;const _0x5ed815=(_0x1da7b6,_0x5c6cde=0x0)=>{const _0x24ce63=_0x333e0c;_0x553772+=_0x5c6cde+Math[_0x24ce63(0x1d6)](0x0,_0x1da7b6-_0x4921b7),_0x4921b7=Math[_0x24ce63(0x1d6)](_0x4921b7,_0x1da7b6);if(_0x553772>MAX_ROWS)throw new Error(_0x24ce63(0x19c));};_0x58e6f7?.['on'](_0x333e0c(0x169),_0x16451d=>{const _0x368913=_0x333e0c;if(_0x2c69c6){if(!_0x55ce5c&&_0x16451d[_0x368913(0x1ca)]===_0x368913(0x1e1))_0x55ce5c=new DefinedNameXform();_0x55ce5c?.[_0x368913(0x16e)](_0x16451d);return;}if(_0x16451d['name']===_0x368913(0x1b3)){if(_0x13e517)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x19bd7a(_0x16451d[_0x368913(0x193)]['r'],MAX_XML_ROWS),_0x423ed7=undefined,_0x26632e=undefined,_0x14ca74=![];}else{if(_0x16451d['name']==='c'){if(_0x13e517)throw new Error(_0x368913(0x1c6));_0x13e517=!![],_0x3b4c15=Boolean(Number[_0x368913(0x250)](_0x16451d[_0x368913(0x193)]['s']??'',0xa)),_0x28970a=undefined,_0x2e28b3=_0x16451d[_0x368913(0x193)]['r']||undefined,_0x56f6d4=_0x2e28b3?_0x59060b(_0x2e28b3):undefined;if(_0x56f6d4)_0x18dfb2=_0x56f6d4;else _0x18dfb2=_0x423ed7?{'row':_0x423ed7['row'],'col':_0x423ed7[_0x368913(0x16f)]+0x1}:undefined;}else{if(_0x13e517&&['f','v','t'][_0x368913(0x1e9)](_0x16451d['name'])){_0x28970a=_0x16451d[_0x368913(0x1ca)];if(_0x16451d['name']==='f'&&_0x16451d[_0x368913(0x193)]['t'])_0x3b4c15=!![];}else{if(_0x13e517&&_0x16451d[_0x368913(0x1ca)]==='r')_0x3b4c15=!![];else{if(_0x16451d['name']===_0x368913(0x235)){const _0x458b56=_0x16451d['attributes']['ref'];if(!_0x458b56)throw new Error(_0x368913(0x258));const _0x1aa042=_0x458b56[_0x368913(0x228)](':');if(_0x1aa042[_0x368913(0x185)]>0x2)throw new Error(_0x368913(0x258));const _0x29f3d2=_0x59060b(_0x1aa042[0x0]),_0x3db120=_0x59060b(_0x1aa042[0x1]??_0x1aa042[0x0]);_0x11dfff[_0x368913(0x1d5)](_0x458b56),_0x5ed815(Math['max'](_0x29f3d2['col'],_0x3db120[_0x368913(0x16f)]),0x1);}else{if(_0x16451d[_0x368913(0x1ca)]==='col'){const _0x513251=_0x19bd7a(_0x16451d['attributes']['min'],0x4000),_0x407737=_0x19bd7a(_0x16451d[_0x368913(0x193)][_0x368913(0x1d6)],0x4000);if(_0x513251>_0x407737)throw new Error('Invalid\x20worksheet\x20column\x20range.');_0x5ed815(_0x407737,0x1);}else{if(_0x16451d[_0x368913(0x1ca)]===_0x368913(0x252)){const _0x180be7=_0x16451d[_0x368913(0x193)][_0x368913(0x246)];if(!_0x180be7)throw new Error(_0x368913(0x224));const _0x145d85=_0x180be7[_0x368913(0x228)](':');if(_0x145d85[_0x368913(0x185)]>0x2)throw new Error(_0x368913(0x224));const _0x378bb2=_0x59060b(_0x145d85[0x0]),_0x539359=_0x59060b(_0x145d85[0x1]??_0x145d85[0x0]);_0x5ed815(Math[_0x368913(0x1d6)](_0x378bb2[_0x368913(0x16f)],_0x539359[_0x368913(0x16f)]));const _0x11b57a=(Math['abs'](_0x539359[_0x368913(0x1b3)]-_0x378bb2[_0x368913(0x1b3)])+0x1)*(Math[_0x368913(0x22e)](_0x539359[_0x368913(0x16f)]-_0x378bb2[_0x368913(0x16f)])+0x1);_0x3d4ea2+=_0x11b57a+_0x19a468++;if(_0x3d4ea2>MAX_ROWS)throw new Error(_0x368913(0x1e2));}}}}}}}}),_0x58e6f7?.['on'](_0x333e0c(0x1be),_0x50cd27=>{if(_0x2c69c6){_0x55ce5c?.['parseText'](_0x50cd27);return;}if(_0x13e517&&_0x28970a&&_0x50cd27)_0x3b4c15=!![];}),_0x58e6f7?.['on']('closetag',_0x14e7ff=>{const _0x54c84b=_0x333e0c;if(_0x2c69c6){_0x55ce5c&&!_0x55ce5c[_0x54c84b(0x183)]()&&(_0x5e519b(_0x55ce5c['model']),_0x55ce5c=undefined);return;}if(_0x14e7ff[_0x54c84b(0x1ca)]==='c'){!_0x3b4c15&&_0x2e28b3&&!_0x26632e&&(_0x26632e={'before':_0x423ed7,'cells':[]});if(_0x26632e){if(++_0x42a5f0>0xf4240)throw new Error(_0x54c84b(0x1ce));_0x26632e['cells'][_0x54c84b(0x17d)]({'reference':_0x2e28b3,'address':_0x56f6d4,'materialized':_0x3b4c15});if(!_0x2e28b3&&_0x3b4c15)_0x14ca74=!![];}if(_0x3b4c15){if(!_0x26632e||_0x2e28b3){if(!_0x18dfb2)throw new Error(_0x54c84b(0x1c5));if(_0x18dfb2[_0x54c84b(0x16f)]>MAX_XML_COLUMNS)throw new Error(_0x54c84b(0x219));_0x5ed815(_0x18dfb2[_0x54c84b(0x16f)]);}_0x423ed7=_0x18dfb2;}_0x13e517=![],_0x18dfb2=undefined,_0x2e28b3=undefined,_0x56f6d4=undefined,_0x28970a=undefined;}else{if(_0x14e7ff['name']===_0x54c84b(0x1b3)){if(_0x26632e&&_0x14ca74)_0x1a401c[_0x54c84b(0x17d)](_0x26632e);_0x26632e=undefined,_0x14ca74=![];}else{if(_0x14e7ff[_0x54c84b(0x1ca)]===_0x28970a)_0x28970a=undefined;}}}),_0x58e6f7?.['on'](_0x333e0c(0x1fd),_0x2b78b9=>{throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x2b78b9['message']);}),_0x2cf3f5['on'](_0x333e0c(0x1fd),_0x125f12),_0x2cf3f5['on'](_0x333e0c(0x1aa),_0x297b05=>{const _0x2ab459=_0x333e0c;if(_0x3a5215)return;_0x3d2816+=_0x297b05[_0x2ab459(0x185)],_0x1e137d?.['push'](_0x297b05);if(_0x3d2816>MAX_EXPANDED){_0x125f12(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x1301f8&&_0x51f264)_0x1301f8[_0x2ab459(0x1d1)](_0x51f264['write'](_0x297b05));if(_0x58e6f7&&_0x43981e)_0x58e6f7[_0x2ab459(0x1d1)](_0x43981e['write'](_0x297b05));}catch(_0x5f2d28){_0x125f12(_0x5f2d28 instanceof Error?_0x5f2d28:new Error(_0x2ab459(0x1ff)));}}),_0x2cf3f5['on'](_0x333e0c(0x214),()=>{const _0x2089a6=_0x333e0c;if(_0x3a5215)return;try{if(_0x1301f8&&_0x51f264)_0x1301f8[_0x2089a6(0x1d1)](_0x51f264[_0x2089a6(0x214)]())[_0x2089a6(0x18f)]();if(_0x58e6f7&&_0x43981e)_0x58e6f7['write'](_0x43981e[_0x2089a6(0x214)]())[_0x2089a6(0x18f)]();for(const _0x3146e0 of _0x1a401c){let _0xa5d060=_0x3146e0[_0x2089a6(0x176)];for(const _0x353bf6 of _0x3146e0[_0x2089a6(0x220)]){if(!_0x353bf6[_0x2089a6(0x211)]&&!(_0x353bf6['reference']&&_0x11dfff[_0x2089a6(0x1d3)](_0x353bf6[_0x2089a6(0x188)])))continue;const _0x3d246c=_0x353bf6['address']??(_0xa5d060?{'row':_0xa5d060[_0x2089a6(0x1b3)],'col':_0xa5d060['col']+0x1}:undefined);if(!_0x3d246c)throw new Error(_0x2089a6(0x1c5));if(_0x3d246c['col']>MAX_XML_COLUMNS)throw new Error(_0x2089a6(0x219));_0x5ed815(_0x3d246c['col']),_0xa5d060=_0x3d246c;}}_0x1a401c[_0x2089a6(0x185)]=0x0,_0x11dfff['clear']();}catch(_0x5178fd){_0x125f12(_0x5178fd instanceof Error?_0x5178fd:new Error(_0x2089a6(0x1ff)));return;}if(_0x1e137d)_0x307cae[_0x2089a6(0x1bc)](_0x3edd80,Buffer[_0x2089a6(0x1ab)](_0x1e137d));_0xe65325=undefined,_0x2c87d0['readEntry']();});});}),_0x2c87d0['on']('end',()=>{const _0x1b7090=_0x13a6f8;if(_0x3a5215)return;if(_0x2c87d0[_0x1b7090(0x18c)]!==_0x5f4440){_0x466290(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x2b59a4['has'](_0x1b7090(0x1ee))||!_0x2b59a4['has']('xl/workbook.xml'))_0x466290(new Error(_0x1b7090(0x223)));else _0x5f4cc4();}),_0x2c87d0[_0x13a6f8(0x215)]();});});}function valueOf(_0x1c6aa9){const _0x5f5a2d=a144_0x1586bd,_0x12d4b1=_0x1c6aa9['value'];if(_0x12d4b1&&typeof _0x12d4b1===_0x5f5a2d(0x172)&&(_0x5f5a2d(0x21f)in _0x12d4b1||_0x5f5a2d(0x237)in _0x12d4b1)){if(!(_0x5f5a2d(0x22f)in _0x12d4b1)||_0x12d4b1[_0x5f5a2d(0x22f)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x12d4b1['result'];}return _0x12d4b1;}function convert(_0x5b8752,_0x1b299a){const _0x5611c3=a144_0x1586bd;if(_0x5b8752===null||_0x5b8752===undefined||_0x5b8752===''){if(_0x1b299a[_0x5611c3(0x1bd)]&&!_0x1b299a[_0x5611c3(0x1d9)])throw new Error(_0x5611c3(0x190));return null;}if(typeof _0x5b8752===_0x5611c3(0x1ef)&&Buffer[_0x5611c3(0x1c0)](_0x5b8752,_0x5611c3(0x23a))>MAX_CELL)throw new Error(_0x5611c3(0x254));switch(_0x1b299a[_0x5611c3(0x259)][_0x5611c3(0x1b9)]()){case _0x5611c3(0x1ef):case _0x5611c3(0x1be):case _0x5611c3(0x1f8):if(typeof _0x5b8752!==_0x5611c3(0x1ef))throw new Error(_0x5611c3(0x1f1));return _0x5b8752;case _0x5611c3(0x231):case _0x5611c3(0x200):case _0x5611c3(0x1b7):if(typeof _0x5b8752!=='number'||!Number[_0x5611c3(0x255)](_0x5b8752)||Math[_0x5611c3(0x22e)](_0x5b8752)>Number[_0x5611c3(0x241)]||_0x1b299a[_0x5611c3(0x259)][_0x5611c3(0x1b9)]()===_0x5611c3(0x1b7)&&!Number[_0x5611c3(0x20a)](_0x5b8752))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x5b8752;case _0x5611c3(0x20c):if(typeof _0x5b8752!==_0x5611c3(0x20c))throw new Error(_0x5611c3(0x240));return _0x5b8752;case _0x5611c3(0x248):case _0x5611c3(0x261):if(!(_0x5b8752 instanceof Date)||!Number[_0x5611c3(0x255)](_0x5b8752[_0x5611c3(0x20d)]()))throw new Error(_0x5611c3(0x174));return _0x5b8752[_0x5611c3(0x20d)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x1b299a[_0x5611c3(0x259)]+'.');}}export async function buildExcelManifest(_0xd48954){const _0x527612=a144_0x1586bd,_0x2f6fbe=_0xd48954['headerRow']??0x1;if(!Number[_0x527612(0x20a)](_0x2f6fbe)||_0x2f6fbe<0x1||_0x2f6fbe>MAX_ROWS)throw new Error(_0x527612(0x1d4));if(_0xd48954[_0x527612(0x1f0)]!==undefined&&(!Number[_0x527612(0x20a)](_0xd48954[_0x527612(0x1f0)])||_0xd48954[_0x527612(0x1f0)]<0x1||_0xd48954[_0x527612(0x1f0)]>0x3e8))throw new Error(_0x527612(0x210));if(a144_0x219077[_0x527612(0x184)](_0xd48954[_0x527612(0x243)])['toLowerCase']()!==_0x527612(0x1de))throw new Error(_0x527612(0x194));const _0x40cfa7=await stat(_0xd48954[_0x527612(0x243)]);if(!_0x40cfa7[_0x527612(0x1c9)]()||_0x40cfa7['size']>MAX_FILE)throw new Error(_0x527612(0x1c8));const _0x16fa12=await readFile(_0xd48954[_0x527612(0x243)]);if(_0x16fa12[_0x527612(0x185)]>MAX_FILE)throw new Error(_0x527612(0x207));const _0x18c30e=_0xd48954[_0x527612(0x1cc)][_0x527612(0x186)](_0x348d47=>isImageContainer(_0x348d47[_0x527612(0x259)])&&Object[_0x527612(0x187)](_0xd48954[_0x527612(0x202)])['includes'](_0x348d47[_0x527612(0x25a)]))?new Map():undefined;await checkArchive(_0x16fa12,_0x18c30e);const _0x42190f=new a144_0x3a67e4[(_0x527612(0x1f7))]();await _0x42190f[_0x527612(0x23c)]['load'](_0x16fa12,{'ignoreNodes':[_0x527612(0x201)]});const _0x38757c=_0xd48954[_0x527612(0x17a)];let _0x2ffdcb;if(_0x38757c===undefined)_0x2ffdcb=_0x42190f[_0x527612(0x22c)][0x0];else{if(typeof _0x38757c===_0x527612(0x1ef)&&_0x42190f['worksheets'][_0x527612(0x186)](_0x289386=>_0x289386['name']===_0x38757c))_0x2ffdcb=_0x42190f[_0x527612(0x22c)][_0x527612(0x1bb)](_0x28f9df=>_0x28f9df[_0x527612(0x1ca)]===_0x38757c);else{if(typeof _0x38757c===_0x527612(0x231)||/^\d+$/[_0x527612(0x19e)](_0x38757c)){const _0x44e37f=Number(_0x38757c);if(!Number[_0x527612(0x20a)](_0x44e37f)||_0x44e37f<0x1)throw new Error(_0x527612(0x21d));_0x2ffdcb=_0x42190f[_0x527612(0x22c)][_0x44e37f-0x1];}else _0x2ffdcb=_0x42190f['worksheets']['find'](_0x6e9cac=>_0x6e9cac['name']===_0x38757c);}}if(!_0x2ffdcb)throw new Error(_0x527612(0x1a7));if(_0x2ffdcb['rowCount']>MAX_ROWS||_0x2ffdcb[_0x527612(0x1f4)]>MAX_COLUMNS)throw new Error(_0x527612(0x225));if((_0x2ffdcb[_0x527612(0x1cb)][_0x527612(0x209)]??[])[_0x527612(0x185)])throw new Error(_0x527612(0x249));const _0xa56c8a=new Map();_0x2ffdcb[_0x527612(0x236)](_0x2f6fbe)[_0x527612(0x25e)]((_0x4ee4a5,_0x1b9269)=>{const _0x2a120b=_0x527612,_0xfcdf3e=valueOf(_0x4ee4a5);if(typeof _0xfcdf3e!==_0x2a120b(0x1ef)||!_0xfcdf3e[_0x2a120b(0x24b)]()||Buffer[_0x2a120b(0x1c0)](_0xfcdf3e)>MAX_CELL)throw new Error(_0x2a120b(0x16b));if(_0xa56c8a[_0x2a120b(0x1d3)](_0xfcdf3e))throw new Error(_0x2a120b(0x24d)+_0xfcdf3e+'.');_0xa56c8a[_0x2a120b(0x1bc)](_0xfcdf3e,_0x1b9269);});const _0x3da54e=Object['entries'](_0xd48954[_0x527612(0x202)]);if(!_0x3da54e['length'])throw new Error(_0x527612(0x218));const _0x32b759=new Map(_0xd48954[_0x527612(0x1cc)][_0x527612(0x233)](_0x33d20a=>[_0x33d20a[_0x527612(0x25a)],_0x33d20a]));if(_0x32b759[_0x527612(0x1d0)]!==_0xd48954[_0x527612(0x1cc)][_0x527612(0x185)])throw new Error(_0x527612(0x24c));if(_0xd48954[_0x527612(0x1cc)][_0x527612(0x186)](_0x32b86f=>_0x32b86f[_0x527612(0x259)][_0x527612(0x1b9)]()===_0x527612(0x1e0)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x2a338b=new Set();for(const [_0x11dc5c,_0x1a6081]of _0x3da54e){const _0x2f94b4=_0x32b759['get'](_0x1a6081);if(!_0xa56c8a['has'](_0x11dc5c))throw new Error(_0x527612(0x21b)+_0x11dc5c+'.');if(!_0x2f94b4||RESERVED[_0x527612(0x1d3)](_0x1a6081)||_0x2f94b4[_0x527612(0x1d9)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x1a6081+'.');if(_0x2a338b['has'](_0x1a6081))throw new Error(_0x527612(0x24f)+_0x1a6081+'.');if(!TYPES[_0x527612(0x1d3)](_0x2f94b4['type']['toLowerCase']()))throw new Error(_0x527612(0x1f3)+_0x2f94b4[_0x527612(0x259)]+'.');_0x2a338b['add'](_0x1a6081);}for(const _0x4aebe4 of _0xd48954[_0x527612(0x1cc)]){if(_0x4aebe4[_0x527612(0x1bd)]&&!_0x4aebe4['generated']&&!RESERVED[_0x527612(0x1d3)](_0x4aebe4[_0x527612(0x25a)])&&!_0x2a338b[_0x527612(0x1d3)](_0x4aebe4['code']))throw new Error(_0x527612(0x242)+_0x4aebe4[_0x527612(0x25a)]+'.');}const _0x242a70={'fileHash':hash(_0x16fa12),'mappingHash':hash(JSON[_0x527612(0x1fb)]([..._0x3da54e][_0x527612(0x1a5)](([_0x53abfa],[_0x4d5732])=>_0x53abfa['localeCompare'](_0x4d5732)))),'schemaHash':hash(JSON[_0x527612(0x1fb)]([..._0xd48954[_0x527612(0x1cc)]][_0x527612(0x1a5)]((_0x443980,_0x167cfc)=>_0x443980[_0x527612(0x25a)][_0x527612(0x1d7)](_0x167cfc[_0x527612(0x25a)])))),'sheet':_0x2ffdcb[_0x527612(0x1ca)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0xf5e01=_0x3da54e[_0x527612(0x1ac)](([,_0x246f18])=>isImageContainer(_0x32b759[_0x527612(0x256)](_0x246f18)['type'])),_0x122ae0=_0xf5e01[_0x527612(0x1ac)](([,_0x15ca3b])=>_0x32b759[_0x527612(0x256)](_0x15ca3b)[_0x527612(0x259)]['toLowerCase']()===_0x527612(0x1a8))[_0x527612(0x233)](([,_0x573368])=>_0x573368);if(_0x122ae0['length'])_0x242a70[_0x527612(0x25f)]=_0x122ae0;const _0x1fdcc5=_0x18c30e?resolveWorksheetImages(_0x18c30e,_0x2ffdcb[_0x527612(0x1ca)],new Set(_0xf5e01[_0x527612(0x233)](([_0x4ff6d8])=>_0xa56c8a[_0x527612(0x256)](_0x4ff6d8)))):[],_0x53f5d3=new Map();for(const _0x54b17c of _0x1fdcc5){const _0x45d28d=_0x54b17c[_0x527612(0x1b3)]+':'+_0x54b17c[_0x527612(0x16f)],_0x2bb968=_0x53f5d3[_0x527612(0x256)](_0x45d28d)??[];_0x2bb968['push'](_0x54b17c),_0x53f5d3[_0x527612(0x1bc)](_0x45d28d,_0x2bb968);}const _0x2c430c=new Map();let _0x5bf9db=0x0;_0xf5e01[_0x527612(0x185)]&&(_0x242a70[_0x527612(0x1ec)]=_0xf5e01[_0x527612(0x233)](([,_0x421e31])=>_0x421e31),_0x242a70[_0x527612(0x1b4)]=[],_0x242a70[_0x527612(0x1f5)]=0x1,_0x242a70[_0x527612(0x20b)]=[]);const _0x3ae7cf=Math[_0x527612(0x1d6)](0x0,..._0x1fdcc5[_0x527612(0x233)](_0x19d021=>_0x19d021[_0x527612(0x1b3)]));let _0x57fb70=0x0;const _0x54048c=new Set(_0x3da54e['map'](([_0x3a5b1d])=>_0xa56c8a[_0x527612(0x256)](_0x3a5b1d)));for(let _0x928124=_0x2f6fbe+0x1;_0x928124<=Math[_0x527612(0x1d6)](_0x2ffdcb[_0x527612(0x177)],_0x3ae7cf);_0x928124++){const _0x3b5128=_0x2ffdcb['getRow'](_0x928124);if(_0x3b5128[_0x527612(0x25c)]||_0x1fdcc5['some'](_0x4427cc=>_0x4427cc[_0x527612(0x1b3)]===_0x928124&&_0x4427cc[_0x527612(0x262)]))_0x57fb70++;let _0x57d47c=_0x1fdcc5[_0x527612(0x186)](_0x382edb=>_0x382edb[_0x527612(0x1b3)]===_0x928124);_0x3b5128[_0x527612(0x25e)](_0x3faf64=>{const _0x3f9c59=_0x527612;if(_0x3faf64[_0x3f9c59(0x1e4)]!==null&&_0x3faf64[_0x3f9c59(0x1e4)]!==undefined&&_0x3faf64[_0x3f9c59(0x1e4)]!=='')_0x57d47c=!![];});if(!_0x57d47c){_0x242a70['emptyRows'][_0x527612(0x17d)](_0x928124);continue;}const _0x49a3ab=Object[_0x527612(0x1fa)](null);_0x3b5128[_0x527612(0x25e)]((_0x595037,_0x242f0e)=>{const _0xec9a4c=_0x527612;if(_0x54048c[_0xec9a4c(0x1d3)](_0x242f0e))return;try{const _0x5bcd86=valueOf(_0x595037);if(typeof _0x5bcd86===_0xec9a4c(0x1ef)&&Buffer[_0xec9a4c(0x1c0)](_0x5bcd86,_0xec9a4c(0x23a))>MAX_CELL)throw new Error(_0xec9a4c(0x254));}catch(_0x209c1b){_0x242a70[_0xec9a4c(0x1a3)][_0xec9a4c(0x17d)]({'rowNumber':_0x928124,'field':_0x595037[_0xec9a4c(0x1d8)],'message':_0x209c1b[_0xec9a4c(0x1eb)]});}});for(const [_0x247506,_0x2248d6]of _0x3da54e){try{const _0x58cfbd=_0x3b5128[_0x527612(0x191)](_0xa56c8a[_0x527612(0x256)](_0x247506)),_0x490a63=_0x32b759[_0x527612(0x256)](_0x2248d6);if(!isImageContainer(_0x490a63[_0x527612(0x259)])){_0x49a3ab[_0x2248d6]=convert(valueOf(_0x58cfbd),_0x490a63);continue;}const _0x3893b4=_0x53f5d3[_0x527612(0x256)](_0x928124+':'+_0xa56c8a['get'](_0x247506))??[];if(_0x3893b4[_0x527612(0x186)](_0x4effe3=>_0x4effe3[_0x527612(0x1fd)]))throw Error(_0x3893b4[_0x527612(0x1bb)](_0x4dd930=>_0x4dd930[_0x527612(0x1fd)])['error']);if(_0x58cfbd[_0x527612(0x1e4)]!=null&&_0x58cfbd[_0x527612(0x1e4)]!==''&&!_0x3893b4[_0x527612(0x186)](_0x8d518d=>_0x8d518d[_0x527612(0x173)]))throw Error(_0x527612(0x18d));const _0x31e549=[];for(const _0x58a295 of _0x3893b4)for(const _0x3eac56 of _0x58a295[_0x527612(0x20b)]){const _0x176973=_0x18c30e[_0x527612(0x256)](_0x3eac56);if(!_0x176973)throw Error(_0x527612(0x19b)+_0x3eac56+'.');const _0x526c82=hash(_0x176973),_0xd1f225=_0x2c430c[_0x527612(0x256)](_0x526c82)??validateImageBytes(_0x176973);if(!_0x2c430c[_0x527612(0x1d3)](_0xd1f225[_0x527612(0x1b5)])){_0x5bf9db+=_0xd1f225['size'];if(_0x5bf9db>0x32*0x400*0x400)throw Error(_0x527612(0x1dd));_0x2c430c[_0x527612(0x1bc)](_0xd1f225['contentHash'],_0xd1f225);}_0x31e549[_0x527612(0x17d)](_0xd1f225['contentHash']);}if(!_0x31e549[_0x527612(0x185)]&&_0x490a63[_0x527612(0x1bd)])throw Error(_0x527612(0x247));if(_0x31e549[_0x527612(0x185)])_0x242a70[_0x527612(0x1b4)]['push']({'rowNumber':_0x928124,'field':_0x2248d6,'hashes':_0x31e549});_0x49a3ab[_0x2248d6]=_0x31e549['map'](_0x45f994=>{const _0x5b5c76=_0x527612,_0xa7346=_0x2c430c[_0x5b5c76(0x256)](_0x45f994),_0x402a6d=_0xa7346[_0x5b5c76(0x259)]==='image/jpeg'?_0x5b5c76(0x208):_0xa7346[_0x5b5c76(0x259)][_0x5b5c76(0x22a)](0x6),_0x261600=_0x45f994+'.'+_0x402a6d,_0x5d1cac=_0x5b5c76(0x1c2)+'0'['repeat'](0x40)+'/'+_0x261600;return _0x490a63['type'][_0x5b5c76(0x1b9)]()===_0x5b5c76(0x1a8)?{'fileName':_0x261600,'filePath':_0x5d1cac}:{'key':_0x5d1cac,'name':_0x261600,'type':_0xa7346[_0x5b5c76(0x259)],'size':_0xa7346[_0x5b5c76(0x1d0)]};});}catch(_0x5f09d9){_0x242a70[_0x527612(0x1a3)][_0x527612(0x17d)]({'rowNumber':_0x928124,'field':_0x2248d6,'message':_0x5f09d9[_0x527612(0x1eb)]});}}_0x242a70[_0x527612(0x239)][_0x527612(0x17d)]({'rowNumber':_0x928124,'values':_0x49a3ab});}if(_0x242a70[_0x527612(0x20b)])_0x242a70[_0x527612(0x20b)]=[..._0x2c430c[_0x527612(0x187)]()];if(_0x57fb70)_0x242a70[_0x527612(0x1e5)][_0x527612(0x17d)](_0x57fb70+_0x527612(0x1ae));return _0x242a70;}
|
|
1
|
+
const a144_0x2b6706=a144_0x5749;function a144_0x5749(_0x2b41e5,_0x4efedb){_0x2b41e5=_0x2b41e5-0x98;const _0x59715d=a144_0x5971();let _0x57496d=_0x59715d[_0x2b41e5];return _0x57496d;}(function(_0x5a53f5,_0x477811){const _0x7a2cfa=a144_0x5749,_0x3e09e0=_0x5a53f5();while(!![]){try{const _0xb2917e=-parseInt(_0x7a2cfa(0xf2))/0x1+-parseInt(_0x7a2cfa(0x12e))/0x2+-parseInt(_0x7a2cfa(0x178))/0x3+parseInt(_0x7a2cfa(0x119))/0x4*(-parseInt(_0x7a2cfa(0x135))/0x5)+parseInt(_0x7a2cfa(0x126))/0x6*(parseInt(_0x7a2cfa(0x141))/0x7)+parseInt(_0x7a2cfa(0xd6))/0x8*(-parseInt(_0x7a2cfa(0x170))/0x9)+parseInt(_0x7a2cfa(0x146))/0xa;if(_0xb2917e===_0x477811)break;else _0x3e09e0['push'](_0x3e09e0['shift']());}catch(_0x1c0190){_0x3e09e0['push'](_0x3e09e0['shift']());}}}(a144_0x5971,0xd7180));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1c79cd from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x40fd7d from'exceljs';import a144_0x422172 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_0x2b6706(0xe0),a144_0x2b6706(0x16d),a144_0x2b6706(0x13d),a144_0x2b6706(0xb9),'creatorName','modifierId',a144_0x2b6706(0x173),a144_0x2b6706(0xa9),a144_0x2b6706(0x13c),a144_0x2b6706(0xc1)]),TYPES=new Set([a144_0x2b6706(0x10d),a144_0x2b6706(0x16e),a144_0x2b6706(0xeb),a144_0x2b6706(0x144),a144_0x2b6706(0xcc),a144_0x2b6706(0xe1),a144_0x2b6706(0x116),a144_0x2b6706(0xfd),a144_0x2b6706(0x122),'image',a144_0x2b6706(0x106)]),isImageContainer=_0x151b18=>[a144_0x2b6706(0xc0),a144_0x2b6706(0x106)][a144_0x2b6706(0x139)](_0x151b18[a144_0x2b6706(0x117)]()),hash=_0x142a66=>createHash('sha256')['update'](_0x142a66)[a144_0x2b6706(0xa7)](a144_0x2b6706(0x147)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x2b6706(0xb1)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve'](a144_0x2b6706(0x112))),zipRequire=createRequire(excelRequire['resolve']('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x2b6706(0xf7)),zipUtf8=zipRequire(a144_0x2b6706(0x11f)),zipPaths=zipRequire(a144_0x2b6706(0x12d));function centralDirectoryEnd(_0x4c1878,_0x31d0d7){const _0x4b04ea=a144_0x2b6706,_0x27e157=()=>new Error(_0x4b04ea(0xca)),_0x47bcb5=_0x4c1878['lastIndexOf'](Buffer[_0x4b04ea(0x16b)]([0x50,0x4b,0x5,0x6]));if(_0x47bcb5<0x0||_0x47bcb5+0x16>_0x4c1878[_0x4b04ea(0xd5)]||_0x47bcb5+0x16+_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x14)!==_0x4c1878[_0x4b04ea(0xd5)])throw _0x27e157();let _0x1384dd=_0x4c1878['readUInt16LE'](_0x47bcb5+0xa),_0x40e32d=_0x4c1878[_0x4b04ea(0x138)](_0x47bcb5+0xc),_0x164c8c=_0x4c1878[_0x4b04ea(0x138)](_0x47bcb5+0x10),_0x5a9ef4=_0x47bcb5;const _0x3a084f=_0x47bcb5-0x14,_0x30072b=_0x3a084f>=0x0&&_0x4c1878[_0x4b04ea(0x138)](_0x3a084f)===0x7064b50,_0x5ad7a8=[0x4,0x6,0x8,0xa][_0x4b04ea(0xd4)](_0x3a9d2a=>_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+_0x3a9d2a)===0xffff)||_0x40e32d===0xffffffff||_0x164c8c===0xffffffff;if(_0x30072b!==_0x5ad7a8)throw _0x27e157();if(_0x30072b){if(_0x4c1878['lastIndexOf'](Buffer[_0x4b04ea(0x16b)]([0x50,0x4b,0x6,0x7]))!==_0x3a084f)throw _0x27e157();const _0x41ef02=_0x1366c6=>{const _0x3f2235=_0x4b04ea,_0x517d3b=Number(_0x4c1878[_0x3f2235(0x14e)](_0x1366c6));if(!Number[_0x3f2235(0x183)](_0x517d3b))throw _0x27e157();return _0x517d3b;};_0x5a9ef4=_0x41ef02(_0x3a084f+0x8);if(_0x4c1878['readUInt32LE'](_0x3a084f+0x4)!==0x0||_0x4c1878[_0x4b04ea(0x138)](_0x3a084f+0x10)!==0x1||_0x5a9ef4>_0x3a084f-0x38||_0x4c1878[_0x4b04ea(0x138)](_0x5a9ef4)!==0x6064b50||_0x41ef02(_0x5a9ef4+0x4)!==0x2c||_0x5a9ef4+0x38!==_0x3a084f||_0x4c1878['readUInt32LE'](_0x5a9ef4+0x10)!==0x0||_0x4c1878['readUInt32LE'](_0x5a9ef4+0x14)!==0x0)throw _0x27e157();_0x1384dd=_0x41ef02(_0x5a9ef4+0x20),_0x40e32d=_0x41ef02(_0x5a9ef4+0x28),_0x164c8c=_0x41ef02(_0x5a9ef4+0x30);if(_0x41ef02(_0x5a9ef4+0x18)!==_0x1384dd)throw _0x27e157();}else{if(_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x4)!==0x0||_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x6)!==0x0||_0x4c1878['readUInt16LE'](_0x47bcb5+0x8)!==_0x1384dd)throw _0x27e157();}const _0x3d6e6b=_0x31d0d7[_0x4b04ea(0xbc)];if(_0x164c8c!==_0x3d6e6b||_0x1384dd!==_0x31d0d7[_0x4b04ea(0x133)]||_0x164c8c+_0x40e32d!==_0x5a9ef4)throw _0x27e157();return _0x5a9ef4;}function consumerEntryName(_0x45915a,_0x4cced4){const _0x48cd6d=a144_0x2b6706;if(_0x4cced4['extraFields']['filter'](_0x2b2238=>_0x2b2238['id']===0x1)[_0x48cd6d(0xd5)]>0x1)throw new Error(_0x48cd6d(0x108));const _0x57c3d2=_0x4cced4,_0xf89796=_0x4cced4[_0x48cd6d(0x17f)];if(!Buffer['isBuffer'](_0x57c3d2[_0x48cd6d(0x9e)])||!Buffer[_0x48cd6d(0x104)](_0x57c3d2[_0x48cd6d(0xad)])||!Buffer['isBuffer'](_0x57c3d2['fileCommentRaw'])||!Number['isSafeInteger'](_0xf89796)||_0xf89796<0x0||_0xf89796>_0x45915a['length']-0x1e||_0x45915a[_0x48cd6d(0x138)](_0xf89796)!==0x4034b50)throw new Error(_0x48cd6d(0x127));const _0xc87fcc=_0xf89796+0x1e+_0x45915a['readUInt16LE'](_0xf89796+0x1a),_0x13f657=_0xc87fcc+_0x45915a['readUInt16LE'](_0xf89796+0x1c)+_0x4cced4['compressedSize'];if(!Number[_0x48cd6d(0x183)](_0x13f657)||_0x13f657>_0x45915a[_0x48cd6d(0xd5)])throw new Error(_0x48cd6d(0x127));if(_0xc87fcc>_0x45915a[_0x48cd6d(0xd5)]||!_0x45915a[_0x48cd6d(0x10b)](_0xf89796+0x1e,_0xc87fcc)[_0x48cd6d(0x145)](_0x57c3d2[_0x48cd6d(0x9e)]))throw new Error(_0x48cd6d(0x121));const _0xd3fcb=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0xd3fcb[_0x48cd6d(0x142)]=_0x4cced4[_0x48cd6d(0x132)],_0xd3fcb[_0x48cd6d(0xb2)]=_0x57c3d2[_0x48cd6d(0x9e)],_0xd3fcb[_0x48cd6d(0x13f)]=_0x57c3d2[_0x48cd6d(0xaa)],_0xd3fcb[_0x48cd6d(0x163)]=_0x57c3d2[_0x48cd6d(0xad)]['length'],_0xd3fcb[_0x48cd6d(0x10c)](zipReader(_0x57c3d2['extraFieldRaw'])),_0xd3fcb[_0x48cd6d(0xbb)](),_0xd3fcb[_0x48cd6d(0x11c)]=_0x4cced4['versionMadeBy'],_0xd3fcb[_0x48cd6d(0xc7)]=_0x4cced4[_0x48cd6d(0xc7)],_0xd3fcb[_0x48cd6d(0x14d)]();const _0x56b876=_0xd3fcb[_0x48cd6d(0x162)]||Boolean((_0xd3fcb[_0x48cd6d(0x158)]??0x0)&0x4000),_0x5744ae=zipPaths[_0x48cd6d(0x168)](_0xd3fcb[_0x48cd6d(0xdc)]),_0x48d92a=_0x5744ae['startsWith']('/')?_0x5744ae[_0x48cd6d(0xe9)](0x1):_0x5744ae;return{'name':_0x48d92a,'original':_0xd3fcb['fileNameStr'],'directory':_0x56b876};}export function normalizeImportFields(_0x49b65c){const _0x54f3a1=a144_0x2b6706;if(!_0x49b65c||(_0x49b65c['source']??_0x49b65c[_0x54f3a1(0xb4)]?.[_0x54f3a1(0x125)])!=='METADATA')throw new Error(_0x54f3a1(0x182));const _0x4b3749=Array[_0x54f3a1(0x15e)](_0x49b65c[_0x54f3a1(0xa8)]),_0x52a99c=_0x4b3749?_0x49b65c['fields']:_0x49b65c[_0x54f3a1(0x11b)];if(!Array[_0x54f3a1(0x15e)](_0x52a99c)||_0x52a99c[_0x54f3a1(0xd5)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x287d44=[],_0x300bee=new Set();for(const _0x5e190a of _0x52a99c){if(_0x5e190a[_0x54f3a1(0xc1)]===!![])continue;let _0x307b92=_0x5e190a[_0x54f3a1(0x13b)]??{};if(!_0x4b3749&&typeof _0x307b92===_0x54f3a1(0x10d)){try{_0x307b92=JSON[_0x54f3a1(0xff)](_0x307b92);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x307b92||typeof _0x307b92!==_0x54f3a1(0x100)||Array[_0x54f3a1(0x15e)](_0x307b92))throw new Error(_0x54f3a1(0x175));}const _0x353461=_0x4b3749?_0x5e190a[_0x54f3a1(0x11d)]:_0x5e190a['code'],_0x511746=_0x4b3749?_0x5e190a[_0x54f3a1(0x187)]:_0x5e190a[_0x54f3a1(0xac)]??_0x5e190a[_0x54f3a1(0xd8)];if(typeof _0x353461!==_0x54f3a1(0x10d)||!_0x353461||typeof _0x511746!==_0x54f3a1(0x10d)||_0x300bee[_0x54f3a1(0x12b)](_0x353461))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x511746['toLowerCase']()===_0x54f3a1(0x17a))throw new Error(_0x54f3a1(0x14f));_0x300bee[_0x54f3a1(0x118)](_0x353461);const _0x1b3100=_0x4b3749?_0x5e190a:_0x307b92,_0x5b39a8={'code':_0x353461,'type':_0x511746,'required':_0x1b3100[_0x54f3a1(0xc2)]===!![]};if(RESERVED[_0x54f3a1(0x12b)](_0x353461)||_0x1b3100[_0x54f3a1(0x174)]===!![]||_0x1b3100[_0x54f3a1(0xf5)]===!![])_0x5b39a8['generated']=!![];_0x287d44['push'](_0x5b39a8);}return _0x287d44;}async function checkArchive(_0x596c56,_0x26412c){await new Promise((_0x3f7414,_0x7804ef)=>{const _0x28c999=a144_0x5749;a144_0x422172[_0x28c999(0xda)](_0x596c56,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x382594,_0x296ae9)=>{const _0x15cb54=_0x28c999;if(_0x382594||!_0x296ae9){_0x7804ef(_0x382594??new Error(_0x15cb54(0xcb)));return;}let _0x24c652;try{_0x24c652=centralDirectoryEnd(_0x596c56,_0x296ae9);}catch(_0x5dae24){_0x296ae9[_0x15cb54(0xa2)](),_0x7804ef(_0x5dae24);return;}let _0x1b716a=0x0,_0x808029=0x0,_0x29dbc0=0x0,_0x4dbcb6=0x0,_0x1b074d=0x0,_0x3d23d7=0x0,_0x5b4e3d=0x0,_0x3f97be=0x0,_0x1afeb2=0x0,_0x116471=![],_0x2d8916;const _0x347256=new Set(),_0x116216=_0x152166=>{const _0x194967=_0x15cb54;if(_0x116471)return;_0x116471=!![],_0x2d8916?.[_0x194967(0xe3)](),_0x296ae9[_0x194967(0xa2)](),_0x7804ef(_0x152166);},_0x7af40c=(_0x438970,_0x1900c0)=>{const _0x2acfde=_0x15cb54;if(!_0x438970||!/^\d+$/[_0x2acfde(0x13a)](_0x438970))throw new Error(_0x2acfde(0x177));const _0xfc2b5c=Number(_0x438970);if(!Number['isSafeInteger'](_0xfc2b5c)||_0xfc2b5c<0x1||_0xfc2b5c>_0x1900c0)throw new Error(_0x2acfde(0x16a)+_0x1900c0+'.');return _0xfc2b5c;},_0x1c1b77=(_0x47e958,_0x33cefe=MAX_XML_COLUMNS)=>{const _0x1d95e3=_0x15cb54,_0x4c4616=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x1d95e3(0xbf)](_0x47e958);if(!_0x4c4616)throw new Error(_0x1d95e3(0x16f));let _0x40fb28=0x0;for(const _0x5bb300 of _0x4c4616[0x1])_0x40fb28=_0x40fb28*0x1a+_0x5bb300[_0x1d95e3(0x160)](0x0)-0x40;if(_0x40fb28>_0x33cefe)throw new Error(_0x1d95e3(0xf8)+_0x33cefe+'\x20columns.');return{'row':_0x7af40c(_0x4c4616[0x2],MAX_XML_ROWS),'col':_0x40fb28};},_0xcc8890=_0xd32a43=>{const _0x5b0605=_0x15cb54;if(_0xd32a43[_0x5b0605(0x11d)]==='_xlnm.Print_Area'||_0xd32a43[_0x5b0605(0x11d)]===_0x5b0605(0x10f))return;for(const _0x425d45 of _0xd32a43[_0x5b0605(0x161)]){if(!ABSOLUTE_NAME_RANGE[_0x5b0605(0x13a)](_0x425d45[_0x5b0605(0x114)]('!')['pop']()||''))continue;const _0x37636a=nameCoordinates['decodeEx'](_0x425d45),_0x132688=_0x5b0605(0x15d)in _0x37636a,_0x221e76=_0x132688?[_0x37636a[_0x5b0605(0x15d)],_0x37636a[_0x5b0605(0xf4)]]:[_0x37636a[_0x5b0605(0xcf)]],_0x12fa42=_0x132688?[_0x37636a[_0x5b0605(0xef)],_0x37636a[_0x5b0605(0x17c)]]:[_0x37636a[_0x5b0605(0x11e)]],_0x37b38a=(_0x44faac,_0x17a592)=>Number[_0x5b0605(0x183)](_0x44faac)&&_0x44faac>=0x1&&_0x44faac<=_0x17a592;if(!_0x221e76[_0x5b0605(0x10a)](_0x382bc7=>_0x37b38a(_0x382bc7,MAX_XML_ROWS))||!_0x12fa42[_0x5b0605(0x10a)](_0x289251=>_0x37b38a(_0x289251,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x5b4e3d+=_0x132688?(_0x37636a[_0x5b0605(0xf4)]-_0x37636a[_0x5b0605(0x15d)]+0x1)*(_0x37636a[_0x5b0605(0x17c)]-_0x37636a[_0x5b0605(0xef)]+0x1):0x1;if(_0x5b4e3d>MAX_ROWS)throw new Error(_0x5b0605(0x123));}};_0x296ae9['on'](_0x15cb54(0x101),_0x116216),_0x296ae9['on'](_0x15cb54(0xc5),_0x4b421e=>{const _0x13629e=_0x15cb54;if(_0x116471)return;if(++_0x29dbc0>0x2710||(_0x1b716a+=_0x4b421e['uncompressedSize'])>MAX_EXPANDED){_0x116216(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x23316f;try{_0x23316f=consumerEntryName(_0x596c56,_0x4b421e);}catch(_0x3a0077){_0x116216(_0x3a0077);return;}if(_0x23316f[_0x13629e(0x16c)]){_0x296ae9[_0x13629e(0x137)]();return;}const _0x23e76c=_0x23316f[_0x13629e(0x11d)];if(_0x26412c&&(_0x23e76c!==_0x23316f[_0x13629e(0x17e)]||_0x347256['has'](_0x23e76c)||_0x23e76c[_0x13629e(0xcd)]('/')||_0x23e76c[_0x13629e(0x139)]('\x5c'))){_0x116216(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x23e76c!==_0x23316f[_0x13629e(0x17e)]&&(_0x23e76c===_0x13629e(0xf3)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x13629e(0x13a)](_0x23e76c))){_0x116216(new Error(_0x13629e(0xdb)));return;}const _0x12e8eb=_0x23e76c===_0x13629e(0xf3);if(_0x12e8eb&&_0x347256[_0x13629e(0x12b)](_0x23e76c)){_0x116216(new Error(_0x13629e(0x14a)));return;}_0x347256['add'](_0x23e76c);const _0x46afc6=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x13629e(0x13a)](_0x23e76c);if(_0x46afc6&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x23e76c)){_0x116216(new Error(_0x13629e(0x155)));return;}_0x296ae9['openReadStream'](_0x4b421e,(_0x53efe7,_0x590e48)=>{const _0x55f8a3=_0x13629e;if(_0x116471){_0x590e48?.[_0x55f8a3(0xe3)]();return;}if(_0x53efe7||!_0x590e48){_0x116216(_0x53efe7??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x2d8916=_0x590e48;const _0x5d3505=_0x26412c?[]:undefined,_0x454e28=_0x26412c&&/[.](xml|rels)$/[_0x55f8a3(0x13a)](_0x23e76c)?new StringDecoder(_0x55f8a3(0xa1)):undefined,_0x1f1ede=_0x454e28?new SaxesParser({'xmlns':![]}):undefined,_0x169eb0=()=>{if(++_0x1afeb2>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x1f1ede?.['on'](_0x55f8a3(0x17d),()=>{const _0x33594f=_0x55f8a3;throw Error(_0x33594f(0xab));}),_0x1f1ede?.['on'](_0x55f8a3(0x151),()=>{_0x169eb0();if(++_0x3f97be>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x1f1ede?.['on'](_0x55f8a3(0x16e),_0x169eb0),_0x1f1ede?.['on'](_0x55f8a3(0xd1),_0x169eb0),_0x1f1ede?.['on'](_0x55f8a3(0x101),_0x31378b=>{throw _0x31378b;});const _0x9867be=_0x46afc6||_0x12e8eb?new StringDecoder('utf8'):undefined,_0x205c13=_0x46afc6||_0x12e8eb?new SaxesParser({'xmlns':![]}):undefined;let _0x26bf3d,_0x1f60ff=0x0,_0x4ec9ad=0x0,_0x2a382e,_0x1197c5,_0x1a83be=![],_0x42e433=![],_0x12e02b,_0x41f816,_0x31ad1c,_0x1f52dc=![];const _0x196e7c=[],_0x1b7d28=new Set();let _0xa84b01;const _0x3683ec=(_0x2377f7,_0x4889a5=0x0)=>{const _0x41e2ff=_0x55f8a3;_0x1b074d+=_0x4889a5+Math[_0x41e2ff(0x109)](0x0,_0x2377f7-_0x4ec9ad),_0x4ec9ad=Math['max'](_0x4ec9ad,_0x2377f7);if(_0x1b074d>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x205c13?.['on'](_0x55f8a3(0x151),_0x317430=>{const _0x56f457=_0x55f8a3;if(_0x12e8eb){if(!_0x26bf3d&&_0x317430['name']===_0x56f457(0xb5))_0x26bf3d=new DefinedNameXform();_0x26bf3d?.[_0x56f457(0x9d)](_0x317430);return;}if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0xcf)){if(_0x42e433)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x7af40c(_0x317430[_0x56f457(0x102)]['r'],MAX_XML_ROWS),_0x2a382e=undefined,_0x31ad1c=undefined,_0x1f52dc=![];}else{if(_0x317430['name']==='c'){if(_0x42e433)throw new Error(_0x56f457(0xed));_0x42e433=!![],_0x1a83be=Boolean(Number[_0x56f457(0xd9)](_0x317430['attributes']['s']??'',0xa)),_0xa84b01=undefined,_0x12e02b=_0x317430[_0x56f457(0x102)]['r']||undefined,_0x41f816=_0x12e02b?_0x1c1b77(_0x12e02b):undefined;if(_0x41f816)_0x1197c5=_0x41f816;else _0x1197c5=_0x2a382e?{'row':_0x2a382e[_0x56f457(0xcf)],'col':_0x2a382e[_0x56f457(0x11e)]+0x1}:undefined;}else{if(_0x42e433&&['f','v','t'][_0x56f457(0x139)](_0x317430['name'])){_0xa84b01=_0x317430['name'];if(_0x317430['name']==='f'&&_0x317430[_0x56f457(0x102)]['t'])_0x1a83be=!![];}else{if(_0x42e433&&_0x317430['name']==='r')_0x1a83be=!![];else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x107)){const _0x203b07=_0x317430['attributes']['ref'];if(!_0x203b07)throw new Error(_0x56f457(0x111));const _0x16d7f1=_0x203b07[_0x56f457(0x114)](':');if(_0x16d7f1[_0x56f457(0xd5)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1abad3=_0x1c1b77(_0x16d7f1[0x0]),_0xbbf1b7=_0x1c1b77(_0x16d7f1[0x1]??_0x16d7f1[0x0]);_0x1b7d28[_0x56f457(0x118)](_0x203b07),_0x3683ec(Math[_0x56f457(0x109)](_0x1abad3[_0x56f457(0x11e)],_0xbbf1b7[_0x56f457(0x11e)]),0x1);}else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x11e)){const _0x33f9f3=_0x7af40c(_0x317430[_0x56f457(0x102)][_0x56f457(0xa0)],0x4000),_0x4926fc=_0x7af40c(_0x317430[_0x56f457(0x102)][_0x56f457(0x109)],0x4000);if(_0x33f9f3>_0x4926fc)throw new Error(_0x56f457(0x124));_0x3683ec(_0x4926fc,0x1);}else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x12a)){const _0x3fde41=_0x317430[_0x56f457(0x102)][_0x56f457(0x120)];if(!_0x3fde41)throw new Error(_0x56f457(0xde));const _0x109dc7=_0x3fde41[_0x56f457(0x114)](':');if(_0x109dc7['length']>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x13ae3c=_0x1c1b77(_0x109dc7[0x0]),_0x1ab6b8=_0x1c1b77(_0x109dc7[0x1]??_0x109dc7[0x0]);_0x3683ec(Math[_0x56f457(0x109)](_0x13ae3c[_0x56f457(0x11e)],_0x1ab6b8[_0x56f457(0x11e)]));const _0x104f8a=(Math['abs'](_0x1ab6b8[_0x56f457(0xcf)]-_0x13ae3c[_0x56f457(0xcf)])+0x1)*(Math['abs'](_0x1ab6b8['col']-_0x13ae3c[_0x56f457(0x11e)])+0x1);_0x4dbcb6+=_0x104f8a+_0x1f60ff++;if(_0x4dbcb6>MAX_ROWS)throw new Error(_0x56f457(0xa5));}}}}}}}}),_0x205c13?.['on'](_0x55f8a3(0x16e),_0x34b6c7=>{if(_0x12e8eb){_0x26bf3d?.['parseText'](_0x34b6c7);return;}if(_0x42e433&&_0xa84b01&&_0x34b6c7)_0x1a83be=!![];}),_0x205c13?.['on']('closetag',_0x3302e9=>{const _0x5eb04b=_0x55f8a3;if(_0x12e8eb){_0x26bf3d&&!_0x26bf3d[_0x5eb04b(0x185)]()&&(_0xcc8890(_0x26bf3d[_0x5eb04b(0xf0)]),_0x26bf3d=undefined);return;}if(_0x3302e9[_0x5eb04b(0x11d)]==='c'){!_0x1a83be&&_0x12e02b&&!_0x31ad1c&&(_0x31ad1c={'before':_0x2a382e,'cells':[]});if(_0x31ad1c){if(++_0x3d23d7>0xf4240)throw new Error(_0x5eb04b(0x176));_0x31ad1c[_0x5eb04b(0x148)][_0x5eb04b(0xc9)]({'reference':_0x12e02b,'address':_0x41f816,'materialized':_0x1a83be});if(!_0x12e02b&&_0x1a83be)_0x1f52dc=!![];}if(_0x1a83be){if(!_0x31ad1c||_0x12e02b){if(!_0x1197c5)throw new Error(_0x5eb04b(0x136));if(_0x1197c5[_0x5eb04b(0x11e)]>MAX_XML_COLUMNS)throw new Error(_0x5eb04b(0xd7));_0x3683ec(_0x1197c5['col']);}_0x2a382e=_0x1197c5;}_0x42e433=![],_0x1197c5=undefined,_0x12e02b=undefined,_0x41f816=undefined,_0xa84b01=undefined;}else{if(_0x3302e9[_0x5eb04b(0x11d)]===_0x5eb04b(0xcf)){if(_0x31ad1c&&_0x1f52dc)_0x196e7c[_0x5eb04b(0xc9)](_0x31ad1c);_0x31ad1c=undefined,_0x1f52dc=![];}else{if(_0x3302e9[_0x5eb04b(0x11d)]===_0xa84b01)_0xa84b01=undefined;}}}),_0x205c13?.['on']('error',_0x1bed7b=>{const _0x11491b=_0x55f8a3;throw new Error(_0x11491b(0xbe)+_0x1bed7b[_0x11491b(0x103)]);}),_0x590e48['on'](_0x55f8a3(0x101),_0x116216),_0x590e48['on'](_0x55f8a3(0x159),_0x18dd6b=>{const _0x53c459=_0x55f8a3;if(_0x116471)return;_0x808029+=_0x18dd6b[_0x53c459(0xd5)],_0x5d3505?.[_0x53c459(0xc9)](_0x18dd6b);if(_0x808029>MAX_EXPANDED){_0x116216(new Error(_0x53c459(0xe8)));return;}try{if(_0x1f1ede&&_0x454e28)_0x1f1ede[_0x53c459(0xb6)](_0x454e28['write'](_0x18dd6b));if(_0x205c13&&_0x9867be)_0x205c13[_0x53c459(0xb6)](_0x9867be['write'](_0x18dd6b));}catch(_0xc2d887){_0x116216(_0xc2d887 instanceof Error?_0xc2d887:new Error(_0x53c459(0x10e)));}}),_0x590e48['on'](_0x55f8a3(0xb8),()=>{const _0x5c64c4=_0x55f8a3;if(_0x116471)return;try{if(_0x1f1ede&&_0x454e28)_0x1f1ede[_0x5c64c4(0xb6)](_0x454e28['end']())[_0x5c64c4(0xa2)]();if(_0x205c13&&_0x9867be)_0x205c13['write'](_0x9867be[_0x5c64c4(0xb8)]())[_0x5c64c4(0xa2)]();for(const _0x4d660c of _0x196e7c){let _0x31175d=_0x4d660c[_0x5c64c4(0x131)];for(const _0x492a0b of _0x4d660c[_0x5c64c4(0x148)]){if(!_0x492a0b[_0x5c64c4(0x130)]&&!(_0x492a0b[_0x5c64c4(0x105)]&&_0x1b7d28[_0x5c64c4(0x12b)](_0x492a0b[_0x5c64c4(0x105)])))continue;const _0x1ea43a=_0x492a0b[_0x5c64c4(0x9a)]??(_0x31175d?{'row':_0x31175d[_0x5c64c4(0xcf)],'col':_0x31175d['col']+0x1}:undefined);if(!_0x1ea43a)throw new Error(_0x5c64c4(0x136));if(_0x1ea43a['col']>MAX_XML_COLUMNS)throw new Error(_0x5c64c4(0xd7));_0x3683ec(_0x1ea43a['col']),_0x31175d=_0x1ea43a;}}_0x196e7c[_0x5c64c4(0xd5)]=0x0,_0x1b7d28[_0x5c64c4(0xf9)]();}catch(_0x25a86b){_0x116216(_0x25a86b instanceof Error?_0x25a86b:new Error(_0x5c64c4(0x10e)));return;}if(_0x5d3505)_0x26412c[_0x5c64c4(0xea)](_0x23e76c,Buffer[_0x5c64c4(0x15c)](_0x5d3505));_0x2d8916=undefined,_0x296ae9[_0x5c64c4(0x137)]();});});}),_0x296ae9['on'](_0x15cb54(0xb8),()=>{const _0x425355=_0x15cb54;if(_0x116471)return;if(_0x296ae9[_0x425355(0xbc)]!==_0x24c652){_0x7804ef(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x347256[_0x425355(0x12b)]('[Content_Types].xml')||!_0x347256['has']('xl/workbook.xml'))_0x7804ef(new Error(_0x425355(0x186)));else _0x3f7414();}),_0x296ae9[_0x15cb54(0x137)]();});});}function valueOf(_0x13952a){const _0x20eec9=a144_0x2b6706,_0x473cd7=_0x13952a['value'];if(_0x473cd7&&typeof _0x473cd7===_0x20eec9(0x100)&&(_0x20eec9(0x13e)in _0x473cd7||'sharedFormula'in _0x473cd7)){if(!(_0x20eec9(0xf1)in _0x473cd7)||_0x473cd7[_0x20eec9(0xf1)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x473cd7['result'];}return _0x473cd7;}function convert(_0x3b3259,_0x45398a){const _0x41909a=a144_0x2b6706;if(_0x3b3259===null||_0x3b3259===undefined||_0x3b3259===''){if(_0x45398a['required']&&!_0x45398a[_0x41909a(0x174)])throw new Error(_0x41909a(0xfa));return null;}if(typeof _0x3b3259===_0x41909a(0x10d)&&Buffer[_0x41909a(0xb0)](_0x3b3259,_0x41909a(0xa1))>MAX_CELL)throw new Error(_0x41909a(0xd2));switch(_0x45398a[_0x41909a(0xac)]['toLowerCase']()){case _0x41909a(0x10d):case _0x41909a(0x16e):case'textarea':if(typeof _0x3b3259!==_0x41909a(0x10d))throw new Error('Expected\x20a\x20text\x20cell.');return _0x3b3259;case _0x41909a(0x144):case _0x41909a(0xcc):case'integer':if(typeof _0x3b3259!==_0x41909a(0x144)||!Number[_0x41909a(0xe7)](_0x3b3259)||Math[_0x41909a(0xfc)](_0x3b3259)>Number['MAX_SAFE_INTEGER']||_0x45398a['type']['toLowerCase']()===_0x41909a(0xe1)&&!Number[_0x41909a(0x140)](_0x3b3259))throw new Error(_0x41909a(0x11a));return _0x3b3259;case _0x41909a(0x116):if(typeof _0x3b3259!==_0x41909a(0x116))throw new Error(_0x41909a(0xf6));return _0x3b3259;case _0x41909a(0xfd):case _0x41909a(0x122):if(!(_0x3b3259 instanceof Date)||!Number['isFinite'](_0x3b3259[_0x41909a(0x157)]()))throw new Error(_0x41909a(0xa6));return _0x3b3259[_0x41909a(0x157)]();default:throw new Error(_0x41909a(0xdf)+_0x45398a[_0x41909a(0xac)]+'.');}}export async function buildExcelManifest(_0x40d3af){const _0x3fb5d6=a144_0x2b6706,_0x2c2031=_0x40d3af[_0x3fb5d6(0x180)]??0x1;if(!Number[_0x3fb5d6(0x140)](_0x2c2031)||_0x2c2031<0x1||_0x2c2031>MAX_ROWS)throw new Error(_0x3fb5d6(0x15f));if(_0x40d3af[_0x3fb5d6(0xb3)]!==undefined&&(!Number[_0x3fb5d6(0x140)](_0x40d3af['batchSize'])||_0x40d3af[_0x3fb5d6(0xb3)]<0x1||_0x40d3af[_0x3fb5d6(0xb3)]>0x3e8))throw new Error(_0x3fb5d6(0x15b));if(a144_0x1c79cd[_0x3fb5d6(0x14c)](_0x40d3af['file'])[_0x3fb5d6(0x117)]()!==_0x3fb5d6(0x181))throw new Error(_0x3fb5d6(0xe4));const _0x553ab8=await stat(_0x40d3af[_0x3fb5d6(0x149)]);if(!_0x553ab8[_0x3fb5d6(0x12c)]()||_0x553ab8[_0x3fb5d6(0x9f)]>MAX_FILE)throw new Error(_0x3fb5d6(0x167));const _0x579f6a=await readFile(_0x40d3af[_0x3fb5d6(0x149)]);if(_0x579f6a[_0x3fb5d6(0xd5)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x343fa2=_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xd4)](_0x285295=>isImageContainer(_0x285295[_0x3fb5d6(0xac)])&&Object['values'](_0x40d3af[_0x3fb5d6(0x152)])[_0x3fb5d6(0x139)](_0x285295[_0x3fb5d6(0xa4)]))?new Map():undefined;await checkArchive(_0x579f6a,_0x343fa2);const _0x577de3=new a144_0x40fd7d[(_0x3fb5d6(0x98))]();await _0x577de3['xlsx']['load'](_0x579f6a,{'ignoreNodes':[_0x3fb5d6(0x165)]});const _0x31c211=_0x40d3af[_0x3fb5d6(0x179)];let _0xa4cd7f;if(_0x31c211===undefined)_0xa4cd7f=_0x577de3['worksheets'][0x0];else{if(typeof _0x31c211===_0x3fb5d6(0x10d)&&_0x577de3[_0x3fb5d6(0x166)]['some'](_0x50f441=>_0x50f441['name']===_0x31c211))_0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)][_0x3fb5d6(0x129)](_0x22e3e5=>_0x22e3e5['name']===_0x31c211);else{if(typeof _0x31c211==='number'||/^\d+$/[_0x3fb5d6(0x13a)](_0x31c211)){const _0xf2b5f7=Number(_0x31c211);if(!Number[_0x3fb5d6(0x140)](_0xf2b5f7)||_0xf2b5f7<0x1)throw new Error(_0x3fb5d6(0xe5));_0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)][_0xf2b5f7-0x1];}else _0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)]['find'](_0x443117=>_0x443117[_0x3fb5d6(0x11d)]===_0x31c211);}}if(!_0xa4cd7f)throw new Error(_0x3fb5d6(0x150));if(_0xa4cd7f[_0x3fb5d6(0xfb)]>MAX_ROWS||_0xa4cd7f[_0x3fb5d6(0x156)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0xa4cd7f[_0x3fb5d6(0xf0)][_0x3fb5d6(0xaf)]??[])[_0x3fb5d6(0xd5)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x2c1e73=new Map();_0xa4cd7f[_0x3fb5d6(0x169)](_0x2c2031)[_0x3fb5d6(0xc6)]((_0x5bde54,_0x386ed3)=>{const _0x237752=_0x3fb5d6,_0x2ec129=valueOf(_0x5bde54);if(typeof _0x2ec129!==_0x237752(0x10d)||!_0x2ec129[_0x237752(0x14b)]()||Buffer[_0x237752(0xb0)](_0x2ec129)>MAX_CELL)throw new Error(_0x237752(0x134));if(_0x2c1e73[_0x237752(0x12b)](_0x2ec129))throw new Error(_0x237752(0x110)+_0x2ec129+'.');_0x2c1e73[_0x237752(0xea)](_0x2ec129,_0x386ed3);});const _0x3b3690=Object[_0x3fb5d6(0x172)](_0x40d3af[_0x3fb5d6(0x152)]);if(!_0x3b3690[_0x3fb5d6(0xd5)])throw new Error(_0x3fb5d6(0xae));const _0xded2b7=new Map(_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xe2)](_0x53c95e=>[_0x53c95e['code'],_0x53c95e]));if(_0xded2b7[_0x3fb5d6(0x9f)]!==_0x40d3af['fields'][_0x3fb5d6(0xd5)])throw new Error(_0x3fb5d6(0xc4));if(_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xd4)](_0x37d406=>_0x37d406[_0x3fb5d6(0xac)][_0x3fb5d6(0x117)]()===_0x3fb5d6(0x17a)))throw new Error(_0x3fb5d6(0x14f));const _0x537f0f=new Set();for(const [_0x18b8a8,_0x30a3d1]of _0x3b3690){const _0x34d750=_0xded2b7[_0x3fb5d6(0x9c)](_0x30a3d1);if(!_0x2c1e73[_0x3fb5d6(0x12b)](_0x18b8a8))throw new Error(_0x3fb5d6(0x9b)+_0x18b8a8+'.');if(!_0x34d750||RESERVED['has'](_0x30a3d1)||_0x34d750[_0x3fb5d6(0x174)])throw new Error(_0x3fb5d6(0x99)+_0x30a3d1+'.');if(_0x537f0f[_0x3fb5d6(0x12b)](_0x30a3d1))throw new Error(_0x3fb5d6(0xee)+_0x30a3d1+'.');if(!TYPES[_0x3fb5d6(0x12b)](_0x34d750['type'][_0x3fb5d6(0x117)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x34d750[_0x3fb5d6(0xac)]+'.');_0x537f0f[_0x3fb5d6(0x118)](_0x30a3d1);}for(const _0x5bd920 of _0x40d3af[_0x3fb5d6(0xa8)]){if(_0x5bd920['required']&&!_0x5bd920[_0x3fb5d6(0x174)]&&!RESERVED['has'](_0x5bd920[_0x3fb5d6(0xa4)])&&!_0x537f0f['has'](_0x5bd920['code']))throw new Error(_0x3fb5d6(0xfe)+_0x5bd920[_0x3fb5d6(0xa4)]+'.');}const _0x566619={'fileHash':hash(_0x579f6a),'mappingHash':hash(JSON[_0x3fb5d6(0x154)]([..._0x3b3690][_0x3fb5d6(0x184)](([_0x3da41a],[_0x54f8c1])=>_0x3da41a[_0x3fb5d6(0xa3)](_0x54f8c1)))),'schemaHash':hash(JSON[_0x3fb5d6(0x154)]([..._0x40d3af['fields']][_0x3fb5d6(0x184)]((_0x2a8952,_0x2b1745)=>_0x2a8952['code'][_0x3fb5d6(0xa3)](_0x2b1745[_0x3fb5d6(0xa4)])))),'sheet':_0xa4cd7f[_0x3fb5d6(0x11d)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x10aced=_0x3b3690[_0x3fb5d6(0xce)](([,_0x210832])=>isImageContainer(_0xded2b7[_0x3fb5d6(0x9c)](_0x210832)['type'])),_0xee7f53=_0x10aced[_0x3fb5d6(0xce)](([,_0x5361f6])=>_0xded2b7[_0x3fb5d6(0x9c)](_0x5361f6)[_0x3fb5d6(0xac)]['toLowerCase']()==='upload')[_0x3fb5d6(0xe2)](([,_0x2c5b42])=>_0x2c5b42);if(_0xee7f53[_0x3fb5d6(0xd5)])_0x566619['uploadFields']=_0xee7f53;const _0x4d4295=_0x343fa2?resolveWorksheetImages(_0x343fa2,_0xa4cd7f[_0x3fb5d6(0x11d)],new Set(_0x10aced['map'](([_0x69e00a])=>_0x2c1e73[_0x3fb5d6(0x9c)](_0x69e00a)))):[],_0x7e428c=new Map();for(const _0x51ab5a of _0x4d4295){const _0x2acbed=_0x51ab5a[_0x3fb5d6(0xcf)]+':'+_0x51ab5a[_0x3fb5d6(0x11e)],_0xeed2d5=_0x7e428c[_0x3fb5d6(0x9c)](_0x2acbed)??[];_0xeed2d5['push'](_0x51ab5a),_0x7e428c[_0x3fb5d6(0xea)](_0x2acbed,_0xeed2d5);}const _0x39edb9=new Map();let _0x4119f2=0x0;_0x10aced['length']&&(_0x566619[_0x3fb5d6(0x115)]=_0x10aced['map'](([,_0x467d87])=>_0x467d87),_0x566619[_0x3fb5d6(0xbd)]=[],_0x566619[_0x3fb5d6(0xc3)]=0x1,_0x566619['media']=[]);const _0x3bda3b=Math[_0x3fb5d6(0x109)](0x0,..._0x4d4295['map'](_0x3390cb=>_0x3390cb[_0x3fb5d6(0xcf)]));let _0x3422ff=0x0;const _0x44137f=new Set(_0x3b3690[_0x3fb5d6(0xe2)](([_0x37410a])=>_0x2c1e73[_0x3fb5d6(0x9c)](_0x37410a)));for(let _0x4b4139=_0x2c2031+0x1;_0x4b4139<=Math[_0x3fb5d6(0x109)](_0xa4cd7f[_0x3fb5d6(0xfb)],_0x3bda3b);_0x4b4139++){const _0x4a4c22=_0xa4cd7f['getRow'](_0x4b4139);if(_0x4a4c22[_0x3fb5d6(0xc8)]||_0x4d4295['some'](_0x157f85=>_0x157f85['row']===_0x4b4139&&_0x157f85[_0x3fb5d6(0xba)]))_0x3422ff++;let _0x4de5c5=_0x4d4295[_0x3fb5d6(0xd4)](_0x76160a=>_0x76160a[_0x3fb5d6(0xcf)]===_0x4b4139);_0x4a4c22[_0x3fb5d6(0xc6)](_0x1e6b6b=>{const _0x1af776=_0x3fb5d6;if(_0x1e6b6b[_0x1af776(0xd0)]!==null&&_0x1e6b6b[_0x1af776(0xd0)]!==undefined&&_0x1e6b6b['value']!=='')_0x4de5c5=!![];});if(!_0x4de5c5){_0x566619['emptyRows']['push'](_0x4b4139);continue;}const _0x489198=Object[_0x3fb5d6(0x153)](null);_0x4a4c22[_0x3fb5d6(0xc6)]((_0x206467,_0x17798b)=>{const _0x25b3c3=_0x3fb5d6;if(_0x44137f[_0x25b3c3(0x12b)](_0x17798b))return;try{const _0x482589=valueOf(_0x206467);if(typeof _0x482589==='string'&&Buffer[_0x25b3c3(0xb0)](_0x482589,_0x25b3c3(0xa1))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x424c8a){_0x566619[_0x25b3c3(0xec)][_0x25b3c3(0xc9)]({'rowNumber':_0x4b4139,'field':_0x206467[_0x25b3c3(0x9a)],'message':_0x424c8a[_0x25b3c3(0x103)]});}});for(const [_0x2e6b0a,_0x56c9cd]of _0x3b3690){try{const _0x5e13dd=_0x4a4c22[_0x3fb5d6(0x164)](_0x2c1e73['get'](_0x2e6b0a)),_0x3e639f=_0xded2b7[_0x3fb5d6(0x9c)](_0x56c9cd);if(!isImageContainer(_0x3e639f[_0x3fb5d6(0xac)])){_0x489198[_0x56c9cd]=convert(valueOf(_0x5e13dd),_0x3e639f);continue;}const _0x407754=_0x7e428c[_0x3fb5d6(0x9c)](_0x4b4139+':'+_0x2c1e73[_0x3fb5d6(0x9c)](_0x2e6b0a))??[];if(_0x407754[_0x3fb5d6(0xd4)](_0x237055=>_0x237055[_0x3fb5d6(0x101)]))throw Error(_0x407754['find'](_0x4664ff=>_0x4664ff[_0x3fb5d6(0x101)])[_0x3fb5d6(0x101)]);if(_0x5e13dd[_0x3fb5d6(0xd0)]!=null&&_0x5e13dd['value']!==''&&!_0x407754[_0x3fb5d6(0xd4)](_0x53895e=>_0x53895e[_0x3fb5d6(0x143)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x4a128d=[];for(const _0x220d43 of _0x407754)for(const _0x56e9f9 of _0x220d43[_0x3fb5d6(0xdd)]){const _0x1189ca=_0x343fa2['get'](_0x56e9f9);if(!_0x1189ca)throw Error(_0x3fb5d6(0x171)+_0x56e9f9+'.');const _0x4755e6=hash(_0x1189ca),_0x10e19e=_0x39edb9['get'](_0x4755e6)??validateImageBytes(_0x1189ca);if(!_0x39edb9['has'](_0x10e19e[_0x3fb5d6(0xe6)])){_0x4119f2+=_0x10e19e[_0x3fb5d6(0x9f)];if(_0x4119f2>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x39edb9[_0x3fb5d6(0xea)](_0x10e19e[_0x3fb5d6(0xe6)],_0x10e19e);}_0x4a128d['push'](_0x10e19e[_0x3fb5d6(0xe6)]);}if(!_0x4a128d[_0x3fb5d6(0xd5)]&&_0x3e639f['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x4a128d[_0x3fb5d6(0xd5)])_0x566619[_0x3fb5d6(0xbd)][_0x3fb5d6(0xc9)]({'rowNumber':_0x4b4139,'field':_0x56c9cd,'hashes':_0x4a128d});_0x489198[_0x56c9cd]=_0x4a128d[_0x3fb5d6(0xe2)](_0x14e05d=>{const _0x3ffb96=_0x3fb5d6,_0x1eafe1=_0x39edb9[_0x3ffb96(0x9c)](_0x14e05d),_0x69f43c=_0x1eafe1['type']===_0x3ffb96(0x128)?_0x3ffb96(0x113):_0x1eafe1[_0x3ffb96(0xac)]['slice'](0x6),_0x5a8752=_0x14e05d+'.'+_0x69f43c,_0x7ff514='dataset-import/'+'0'[_0x3ffb96(0xd3)](0x40)+'/'+_0x5a8752;return _0x3e639f[_0x3ffb96(0xac)][_0x3ffb96(0x117)]()===_0x3ffb96(0x106)?{'fileName':_0x5a8752,'filePath':_0x7ff514}:{'key':_0x7ff514,'name':_0x5a8752,'type':_0x1eafe1[_0x3ffb96(0xac)],'size':_0x1eafe1[_0x3ffb96(0x9f)]};});}catch(_0x1bac1d){_0x566619[_0x3fb5d6(0xec)][_0x3fb5d6(0xc9)]({'rowNumber':_0x4b4139,'field':_0x56c9cd,'message':_0x1bac1d[_0x3fb5d6(0x103)]});}}_0x566619[_0x3fb5d6(0x17b)]['push']({'rowNumber':_0x4b4139,'values':_0x489198});}if(_0x566619[_0x3fb5d6(0xdd)])_0x566619['media']=[..._0x39edb9[_0x3fb5d6(0x12f)]()];if(_0x3422ff)_0x566619[_0x3fb5d6(0xb7)]['push'](_0x3422ff+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x566619;}function a144_0x5971(){const _0x54a4f3=['1965418nSGaLw','values','materialized','before','generalPurposeBitFlag','entryCount','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','10OvtnIj','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','readEntry','readUInt32LE','includes','test','extend','updateTime','datasetId','formula','fileComment','isInteger','224wKwRqo','bitFlag','nativeCell','number','equals','43932580HGyPYB','hex','cells','file','Duplicate\x20workbook\x20ZIP\x20entry.','trim','extname','processAttributes','readBigUInt64LE','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Requested\x20worksheet\x20does\x20not\x20exist.','opentag','mapping','create','stringify','Non-canonical\x20worksheet\x20ZIP\x20entry.','columnCount','getTime','unixPermissions','data','readUInt16LE','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','concat','top','isArray','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','charCodeAt','ranges','dir','extraFieldsLength','getCell','dataValidations','worksheets','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','resolve','getRow','Worksheet\x20coordinate\x20exceeds\x20','from','directory','appCode','text','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','9IyDEoE','Missing\x20image\x20media:\x20','entries','modifierName','generated','Invalid\x20dataset\x20field\x20extension\x20metadata.','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Invalid\x20worksheet\x20coordinate.','4307037lYNIoJ','sheet','serial_number','rows','right','doctype','original','relativeOffsetOfLocalHeader','headerRow','.xlsx','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','isSafeInteger','sort','parseClose','File\x20is\x20not\x20an\x20XLSX\x20workbook.','doType','Workbook','Unknown\x20or\x20generated\x20mapping\x20field:\x20','address','Unknown\x20Excel\x20header:\x20','get','parseOpen','fileNameRaw','size','min','utf8','close','localeCompare','code','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Expected\x20an\x20Excel\x20date\x20cell.','digest','fields','createTime','fileCommentRaw','XML\x20DTD/entities\x20are\x20not\x20supported.','type','extraFieldRaw','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','merges','byteLength','exceljs/lib/xlsx/xform/book/defined-name-xform.js','fileName','batchSize','dataset','definedName','write','warnings','end','creatorId','hiddenRow','handleUTF8','readEntryCursor','imageCells','Invalid\x20worksheet\x20XML:\x20','exec','image','deleted','required','parserVersion','Duplicate\x20dataset\x20field\x20codes.','entry','eachCell','externalFileAttributes','hidden','push','Invalid\x20ZIP\x20central\x20directory\x20layout.','Invalid\x20XLSX\x20archive.','decimal','startsWith','filter','row','value','closetag','Cell\x20exceeds\x2064\x20KB.','repeat','some','length','3695968nkcjzo','Worksheet\x20exceeds\x2016384\x20columns.','dataType','parseInt','fromBuffer','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','fileNameStr','media','Invalid\x20worksheet\x20merge\x20reference.','Unsupported\x20field\x20type:\x20','tenantCode','integer','map','destroy','Only\x20.xlsx\x20files\x20are\x20supported.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','contentHash','isFinite','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','slice','set','textarea','errors','Invalid\x20worksheet\x20nested\x20cell.','Duplicate\x20mapping\x20target:\x20','left','model','result','1071656gpNiZX','xl/workbook.xml','bottom','autoIncrement','Expected\x20a\x20boolean\x20cell.','./reader/readerFor','Worksheet\x20exceeds\x20','clear','Required\x20value\x20is\x20missing.','rowCount','abs','date','Required\x20field\x20is\x20not\x20mapped:\x20','parse','object','error','attributes','message','isBuffer','reference','upload','hyperlink','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','max','every','subarray','readExtraFields','string','Invalid\x20worksheet\x20XML.','_xlnm.Print_Titles','Duplicate\x20header:\x20','Invalid\x20worksheet\x20hyperlink\x20reference.','exceljs','jpg','split','imageFields','boolean','toLowerCase','add','936004LnwgeM','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','properties','versionMadeBy','name','col','./utf8','ref','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','datetime','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Invalid\x20worksheet\x20column\x20range.','sourceType','170214cBaeFG','Invalid\x20ZIP\x20local\x20file\x20header.','image/jpeg','find','mergeCell','has','isFile','./utils'];a144_0x5971=function(){return _0x54a4f3;};return a144_0x5971();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1c3f05,_0x21b5ec){const _0x3fc536=a145_0x5658,_0x512af0=_0x1c3f05();while(!![]){try{const _0x576beb=-parseInt(_0x3fc536(0x1e6))/0x1+parseInt(_0x3fc536(0x219))/0x2+parseInt(_0x3fc536(0x1f2))/0x3*(-parseInt(_0x3fc536(0x217))/0x4)+-parseInt(_0x3fc536(0x20b))/0x5+parseInt(_0x3fc536(0x1fc))/0x6+-parseInt(_0x3fc536(0x1ea))/0x7+parseInt(_0x3fc536(0x1e8))/0x8;if(_0x576beb===_0x21b5ec)break;else _0x512af0['push'](_0x512af0['shift']());}catch(_0x3ebfd8){_0x512af0['push'](_0x512af0['shift']());}}}(a145_0x173d,0x6cd8c));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x173d(){const _0x3af265=['message','5967857YQsvZH','acTL','isSafeInteger','ceil','equals','Invalid\x20GIF\x20trailer.','GIF89a','Missing\x20PNG\x20data/end.','168zWnzxw','length','IEND','digest','includes','push','Truncated\x20JPEG.','concat','Invalid\x20PNG\x20header.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','1325736wpAhnd','GIF\x20image\x20has\x20no\x20palette.','subarray','read','Invalid\x20PNG\x20end.','Truncated\x20GIF\x20data.','IHDR','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Invalid\x20image:\x20','image/gif','from','IDAT','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','toString','update','1629975HIpjqt','readUInt16LE','image/jpeg','ascii','Invalid\x20GIF\x20LZW\x20pixel\x20data.','GIF87a','image/png','Animated\x20PNG\x20is\x20not\x20supported.','height','Truncated\x20PNG\x20data.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Invalid\x20PNG\x20decoded\x20scanline\x20size.','25112RBQEtt','Truncated\x20GIF.','1719026baqiyz','Invalid\x20GIF\x20LZW\x20code\x20size.','Invalid\x20GIF\x20block.','readUInt32BE','width','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','307994fFUZrP','max','9627800TPnnTD'];a145_0x173d=function(){return _0x3af265;};return a145_0x173d();}function a145_0x5658(_0x2898b8,_0x3a4cc1){_0x2898b8=_0x2898b8-0x1e2;const _0x173de9=a145_0x173d();let _0x565867=_0x173de9[_0x2898b8];return _0x565867;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x3c7664,_0x5343fb){const _0x2c80f1=a145_0x5658;if(!Number['isSafeInteger'](_0x3c7664)||!Number[_0x2c80f1(0x1ec)](_0x5343fb)||_0x3c7664<0x1||_0x5343fb<0x1||_0x3c7664*_0x5343fb>MAX_PIXELS)throw Error(_0x2c80f1(0x1e5));}function validateGif(_0xaccedf){const _0x3c82ce=a145_0x5658;let _0x492c29=0xd,_0x5a8cf2=0x0,_0x5772d1=0x0;const _0x48f7a3=_0xaccedf[_0x3c82ce(0x20c)](0x6),_0x5ec334=_0xaccedf['readUInt16LE'](0x8),_0x37ccf5=_0xaccedf[0xa]&0x80?0x1<<(_0xaccedf[0xa]&0x7)+0x1:0x0,_0x38bd41=_0x20d8ed=>{const _0x282880=_0x3c82ce;if(_0x492c29+_0x20d8ed>_0xaccedf[_0x282880(0x1f3)])throw Error(_0x282880(0x201));};_0x492c29+=_0x37ccf5*0x3,_0x38bd41(0x0);const _0x778abe=()=>{const _0x505495=_0x3c82ce,_0x5de26a=[];while(!![]){_0x38bd41(0x1);const _0x163ae0=_0xaccedf[_0x492c29++];if(!_0x163ae0)break;_0x38bd41(_0x163ae0),_0x5de26a['push'](_0xaccedf[_0x505495(0x1fe)](_0x492c29,_0x492c29+_0x163ae0)),_0x492c29+=_0x163ae0;}return Buffer[_0x505495(0x1f9)](_0x5de26a);};while(_0x492c29<_0xaccedf[_0x3c82ce(0x1f3)]){const _0x132740=_0xaccedf[_0x492c29++];if(_0x132740===0x3b){if(!_0x5a8cf2||_0x492c29!==_0xaccedf['length'])throw Error(_0x3c82ce(0x1ef));return;}if(_0x132740===0x21){_0x38bd41(0x1),_0x492c29++,_0x778abe();continue;}if(_0x132740!==0x2c)throw Error(_0x3c82ce(0x1e2));_0x38bd41(0x9);const _0x3bf43b=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29),_0x42b2dd=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x2),_0x352459=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x4),_0x35a884=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x6),_0x4e67f9=_0xaccedf[_0x492c29+0x8];_0x492c29+=0x9,dimensions(_0x352459,_0x35a884);if(_0x3bf43b+_0x352459>_0x48f7a3||_0x42b2dd+_0x35a884>_0x5ec334||++_0x5a8cf2>0x2710||(_0x5772d1+=_0x48f7a3*_0x5ec334)>MAX_PIXELS)throw Error(_0x3c82ce(0x1fb));const _0x19239a=_0x4e67f9&0x80?0x1<<(_0x4e67f9&0x7)+0x1:_0x37ccf5;if(!_0x19239a)throw Error(_0x3c82ce(0x1fd));_0x4e67f9&0x80&&(_0x38bd41(_0x19239a*0x3),_0x492c29+=_0x19239a*0x3);_0x38bd41(0x1);const _0x26537d=_0xaccedf[_0x492c29++];if(_0x26537d<0x2||_0x26537d>0x8)throw Error(_0x3c82ce(0x21a));const _0x366359=_0x778abe(),_0x133e3e=0x1<<_0x26537d,_0x426c9b=_0x133e3e+0x1;let _0x1d98eb=_0x26537d+0x1,_0x991965=_0x426c9b+0x1,_0x510cf1=0x0,_0x2dc25a=-0x1,_0x4c61e9=0x0,_0x24880b=![];const _0x390f55=new Uint32Array(0x1000),_0x1a51d7=new Uint16Array(0x1000);for(let _0x2a936b=0x0;_0x2a936b<_0x133e3e;_0x2a936b++){_0x390f55[_0x2a936b]=0x1,_0x1a51d7[_0x2a936b]=_0x2a936b;}while(_0x510cf1+_0x1d98eb<=_0x366359[_0x3c82ce(0x1f3)]*0x8){let _0x35dfd2=0x0;for(let _0x562c42=0x0;_0x562c42<_0x1d98eb;_0x562c42++,_0x510cf1++)_0x35dfd2|=(_0x366359[_0x510cf1>>0x3]>>(_0x510cf1&0x7)&0x1)<<_0x562c42;if(_0x35dfd2===_0x133e3e){_0x1d98eb=_0x26537d+0x1,_0x991965=_0x426c9b+0x1,_0x2dc25a=-0x1;continue;}if(_0x35dfd2===_0x426c9b){_0x24880b=!![];break;}if(_0x35dfd2>_0x991965||_0x35dfd2===_0x991965&&_0x2dc25a<0x0||_0x2dc25a<0x0&&_0x35dfd2>=_0x133e3e)throw Error(_0x3c82ce(0x208));const _0x3accfb=_0x35dfd2===_0x991965?_0x390f55[_0x2dc25a]+0x1:_0x390f55[_0x35dfd2],_0x5d473f=_0x35dfd2===_0x991965?_0x1a51d7[_0x2dc25a]:_0x1a51d7[_0x35dfd2];if(!_0x3accfb||_0x5d473f>=_0x19239a||(_0x4c61e9+=_0x3accfb)>_0x352459*_0x35a884)throw Error(_0x3c82ce(0x20f));if(_0x2dc25a>=0x0&&_0x991965<0x1000){_0x390f55[_0x991965]=_0x390f55[_0x2dc25a]+0x1,_0x1a51d7[_0x991965]=Math[_0x3c82ce(0x1e7)](_0x1a51d7[_0x2dc25a],_0x5d473f),_0x991965++;if(_0x991965===0x1<<_0x1d98eb&&_0x1d98eb<0xc)_0x1d98eb++;}_0x2dc25a=_0x35dfd2;}if(!_0x24880b||_0x4c61e9!==_0x352459*_0x35a884)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error('Missing\x20GIF\x20trailer.');}export function validateImageBytes(_0x15e712){const _0x5b002c=a145_0x5658;if(!_0x15e712[_0x5b002c(0x1f3)]||_0x15e712['length']>0xa*0x400*0x400)throw Error(_0x5b002c(0x215));let _0x263a2c;try{if(_0x15e712['subarray'](0x0,0x8)[_0x5b002c(0x1ee)](Buffer[_0x5b002c(0x206)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x15e712['length']<0x21||_0x15e712['toString'](_0x5b002c(0x20e),0xc,0x10)!==_0x5b002c(0x202))throw Error(_0x5b002c(0x1fa));dimensions(_0x15e712[_0x5b002c(0x1e3)](0x10),_0x15e712[_0x5b002c(0x1e3)](0x14));const _0x25081e=_0x15e712[_0x5b002c(0x1e3)](0x10),_0x5afa05=_0x15e712[_0x5b002c(0x1e3)](0x14),_0x4244d2=_0x15e712[0x18],_0x139245=_0x15e712[0x19],_0x3c73d4=_0x15e712[0x1c],_0x4d2cd7={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x139245];if(!_0x4d2cd7||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x4244d2)||_0x3c73d4>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x3d0ec8=_0x54bb33=>Math['ceil'](_0x54bb33*_0x4d2cd7*_0x4244d2/0x8)+0x1;let _0x13ea83=_0x3d0ec8(_0x25081e)*_0x5afa05;if(_0x3c73d4){_0x13ea83=0x0;for(const [_0x309602,_0x1e665e,_0x194c3d,_0x239d30]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0x2abdc6=Math['max'](0x0,Math['ceil']((_0x25081e-_0x309602)/_0x194c3d)),_0x2067a6=Math['max'](0x0,Math[_0x5b002c(0x1ed)]((_0x5afa05-_0x1e665e)/_0x239d30));if(_0x2abdc6&&_0x2067a6)_0x13ea83+=_0x3d0ec8(_0x2abdc6)*_0x2067a6;}}let _0x26ea86=0x8,_0x50575b=![];const _0x236d2d=[];while(_0x26ea86<_0x15e712[_0x5b002c(0x1f3)]){if(_0x26ea86+0xc>_0x15e712['length'])throw Error('Truncated\x20PNG\x20chunk.');const _0x5ab5e6=_0x15e712[_0x5b002c(0x1e3)](_0x26ea86),_0x5ed5c5=_0x15e712[_0x5b002c(0x209)]('ascii',_0x26ea86+0x4,_0x26ea86+0x8);if(_0x5ed5c5===_0x5b002c(0x1eb))throw Error(_0x5b002c(0x212));if(_0x26ea86+_0x5ab5e6+0xc>_0x15e712[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x214));if(_0x5ed5c5===_0x5b002c(0x207))_0x236d2d[_0x5b002c(0x1f7)](_0x15e712[_0x5b002c(0x1fe)](_0x26ea86+0x8,_0x26ea86+0x8+_0x5ab5e6));_0x26ea86+=_0x5ab5e6+0xc;if(_0x5ed5c5===_0x5b002c(0x1f4)){if(_0x5ab5e6||_0x26ea86!==_0x15e712[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x200));_0x50575b=!![];break;}}if(!_0x50575b||!_0x236d2d[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x1f1));if(inflateSync(Buffer[_0x5b002c(0x1f9)](_0x236d2d),{'maxOutputLength':_0x13ea83+0x1})[_0x5b002c(0x1f3)]!==_0x13ea83)throw Error(_0x5b002c(0x216));const {PNG:_0x1494fd}=require('pngjs'),_0x3d0d8e=_0x1494fd['sync'][_0x5b002c(0x1ff)](_0x15e712,{'checkCRC':!![]});dimensions(_0x3d0d8e['width'],_0x3d0d8e[_0x5b002c(0x213)]),_0x263a2c=_0x5b002c(0x211);}else{if(_0x15e712[0x0]===0xff&&_0x15e712[0x1]===0xd8){if(_0x15e712['at'](-0x2)!==0xff||_0x15e712['at'](-0x1)!==0xd9)throw Error(_0x5b002c(0x1f8));const _0x463ebc=require('jpeg-js'),_0x3bc663=_0x463ebc['decode'](_0x15e712,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x3bc663[_0x5b002c(0x1e4)],_0x3bc663[_0x5b002c(0x213)]),_0x263a2c=_0x5b002c(0x20d);}else{if([_0x5b002c(0x210),_0x5b002c(0x1f0)][_0x5b002c(0x1f6)](_0x15e712['toString'](_0x5b002c(0x20e),0x0,0x6))){if(_0x15e712[_0x5b002c(0x1f3)]<0xe||_0x15e712['at'](-0x1)!==0x3b)throw Error(_0x5b002c(0x218));dimensions(_0x15e712[_0x5b002c(0x20c)](0x6),_0x15e712[_0x5b002c(0x20c)](0x8)),validateGif(_0x15e712);const {GifReader:_0x2105a5}=require('omggif'),_0xb416a1=new _0x2105a5(_0x15e712);dimensions(_0xb416a1[_0x5b002c(0x1e4)],_0xb416a1[_0x5b002c(0x213)]);const _0x3c2f63=_0xb416a1['numFrames']();if(!_0x3c2f63||_0x3c2f63>0x2710||_0x3c2f63*_0xb416a1['width']*_0xb416a1['height']>MAX_PIXELS)throw Error(_0x5b002c(0x1fb));const _0x5c0090=new Uint8Array(_0xb416a1[_0x5b002c(0x1e4)]*_0xb416a1[_0x5b002c(0x213)]*0x4);for(let _0x323cf9=0x0;_0x323cf9<_0x3c2f63;_0x323cf9++){const _0x38141b=_0xb416a1['frameInfo'](_0x323cf9);if(_0x38141b['x']+_0x38141b[_0x5b002c(0x1e4)]>_0xb416a1[_0x5b002c(0x1e4)]||_0x38141b['y']+_0x38141b[_0x5b002c(0x213)]>_0xb416a1[_0x5b002c(0x213)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0xb416a1['decodeAndBlitFrameRGBA'](_0x323cf9,_0x5c0090);}_0x263a2c=_0x5b002c(0x205);}else throw Error(_0x5b002c(0x203));}}}catch(_0x225057){throw Error(_0x5b002c(0x204)+_0x225057[_0x5b002c(0x1e9)]);}return{'contentHash':createHash('sha256')[_0x5b002c(0x20a)](_0x15e712)[_0x5b002c(0x1f5)]('hex'),'type':_0x263a2c,'size':_0x15e712['length'],'bytes':_0x15e712};}
|
|
1
|
+
(function(_0x100827,_0x4d0897){const _0x5da7c9=a145_0x7d1d,_0x4ef076=_0x100827();while(!![]){try{const _0x14a895=-parseInt(_0x5da7c9(0x9b))/0x1*(-parseInt(_0x5da7c9(0x87))/0x2)+parseInt(_0x5da7c9(0x71))/0x3*(-parseInt(_0x5da7c9(0x83))/0x4)+parseInt(_0x5da7c9(0x89))/0x5+parseInt(_0x5da7c9(0x91))/0x6*(parseInt(_0x5da7c9(0x76))/0x7)+-parseInt(_0x5da7c9(0x98))/0x8+parseInt(_0x5da7c9(0x9f))/0x9*(parseInt(_0x5da7c9(0x66))/0xa)+-parseInt(_0x5da7c9(0x6c))/0xb;if(_0x14a895===_0x4d0897)break;else _0x4ef076['push'](_0x4ef076['shift']());}catch(_0x58d614){_0x4ef076['push'](_0x4ef076['shift']());}}}(a145_0x2a8d,0xea03d));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a145_0x7d1d(_0x28accd,_0x484627){_0x28accd=_0x28accd-0x66;const _0x2a8db7=a145_0x2a8d();let _0x7d1d24=_0x2a8db7[_0x28accd];return _0x7d1d24;}function a145_0x2a8d(){const _0x5072d9=['Invalid\x20PNG\x20decoded\x20scanline\x20size.','Invalid\x20GIF\x20LZW\x20code\x20size.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','image/png','includes','isSafeInteger','update','subarray','Invalid\x20PNG\x20end.','readUInt32BE','Missing\x20PNG\x20data/end.','52244ObDCKX','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','height','digest','1025390jXsIwE','omggif','4943640zBqbHA','Truncated\x20PNG\x20chunk.','Invalid\x20GIF\x20LZW\x20pixel\x20data.','decodeAndBlitFrameRGBA','push','Truncated\x20PNG\x20data.','pngjs','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','336FoUeqF','ceil','toString','length','ascii','max','Truncated\x20GIF\x20data.','5155352DrSbNO','GIF\x20frame\x20exceeds\x20canvas.','sha256','3HklJCs','from','concat','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','14561946pYzhxX','Missing\x20GIF\x20trailer.','image/gif','10zbrzOa','numFrames','GIF\x20image\x20has\x20no\x20palette.','hex','IDAT','read','31093898YOyjYL','Invalid\x20GIF\x20trailer.','IHDR','frameInfo','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','327YKtDZW','Truncated\x20JPEG.','Invalid\x20PNG\x20color/depth/interlace.','equals','readUInt16LE','213563InSIwJ','width'];a145_0x2a8d=function(){return _0x5072d9;};return a145_0x2a8d();}import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0xf8482c,_0x901e7b){const _0x461cee=a145_0x7d1d;if(!Number['isSafeInteger'](_0xf8482c)||!Number[_0x461cee(0x7d)](_0x901e7b)||_0xf8482c<0x1||_0x901e7b<0x1||_0xf8482c*_0x901e7b>MAX_PIXELS)throw Error(_0x461cee(0x84));}function validateGif(_0x46a5a9){const _0x5614e1=a145_0x7d1d;let _0x410090=0xd,_0x30647f=0x0,_0x37eab6=0x0;const _0x2f6cc6=_0x46a5a9[_0x5614e1(0x75)](0x6),_0x5cc0c0=_0x46a5a9[_0x5614e1(0x75)](0x8),_0x227333=_0x46a5a9[0xa]&0x80?0x1<<(_0x46a5a9[0xa]&0x7)+0x1:0x0,_0x518e25=_0x5d38e6=>{const _0x29af1b=_0x5614e1;if(_0x410090+_0x5d38e6>_0x46a5a9[_0x29af1b(0x94)])throw Error(_0x29af1b(0x97));};_0x410090+=_0x227333*0x3,_0x518e25(0x0);const _0x120b93=()=>{const _0x12cd7f=_0x5614e1,_0x574707=[];while(!![]){_0x518e25(0x1);const _0x233d5=_0x46a5a9[_0x410090++];if(!_0x233d5)break;_0x518e25(_0x233d5),_0x574707[_0x12cd7f(0x8d)](_0x46a5a9[_0x12cd7f(0x7f)](_0x410090,_0x410090+_0x233d5)),_0x410090+=_0x233d5;}return Buffer[_0x12cd7f(0x9d)](_0x574707);};while(_0x410090<_0x46a5a9[_0x5614e1(0x94)]){const _0x3dccc8=_0x46a5a9[_0x410090++];if(_0x3dccc8===0x3b){if(!_0x30647f||_0x410090!==_0x46a5a9[_0x5614e1(0x94)])throw Error(_0x5614e1(0x6d));return;}if(_0x3dccc8===0x21){_0x518e25(0x1),_0x410090++,_0x120b93();continue;}if(_0x3dccc8!==0x2c)throw Error('Invalid\x20GIF\x20block.');_0x518e25(0x9);const _0x2516cb=_0x46a5a9[_0x5614e1(0x75)](_0x410090),_0x45235b=_0x46a5a9['readUInt16LE'](_0x410090+0x2),_0xcf1e95=_0x46a5a9[_0x5614e1(0x75)](_0x410090+0x4),_0x458d49=_0x46a5a9[_0x5614e1(0x75)](_0x410090+0x6),_0x8e4f87=_0x46a5a9[_0x410090+0x8];_0x410090+=0x9,dimensions(_0xcf1e95,_0x458d49);if(_0x2516cb+_0xcf1e95>_0x2f6cc6||_0x45235b+_0x458d49>_0x5cc0c0||++_0x30647f>0x2710||(_0x37eab6+=_0x2f6cc6*_0x5cc0c0)>MAX_PIXELS)throw Error(_0x5614e1(0x9e));const _0x2293a2=_0x8e4f87&0x80?0x1<<(_0x8e4f87&0x7)+0x1:_0x227333;if(!_0x2293a2)throw Error(_0x5614e1(0x68));_0x8e4f87&0x80&&(_0x518e25(_0x2293a2*0x3),_0x410090+=_0x2293a2*0x3);_0x518e25(0x1);const _0x53bc47=_0x46a5a9[_0x410090++];if(_0x53bc47<0x2||_0x53bc47>0x8)throw Error(_0x5614e1(0x79));const _0x399289=_0x120b93(),_0x4dbe2b=0x1<<_0x53bc47,_0x46fa44=_0x4dbe2b+0x1;let _0x21877f=_0x53bc47+0x1,_0x4a34be=_0x46fa44+0x1,_0x2bc0bd=0x0,_0x5ca783=-0x1,_0x2f16dc=0x0,_0x205f4d=![];const _0x505fed=new Uint32Array(0x1000),_0x4a4f34=new Uint16Array(0x1000);for(let _0x12897d=0x0;_0x12897d<_0x4dbe2b;_0x12897d++){_0x505fed[_0x12897d]=0x1,_0x4a4f34[_0x12897d]=_0x12897d;}while(_0x2bc0bd+_0x21877f<=_0x399289['length']*0x8){let _0x21ca46=0x0;for(let _0x89434b=0x0;_0x89434b<_0x21877f;_0x89434b++,_0x2bc0bd++)_0x21ca46|=(_0x399289[_0x2bc0bd>>0x3]>>(_0x2bc0bd&0x7)&0x1)<<_0x89434b;if(_0x21ca46===_0x4dbe2b){_0x21877f=_0x53bc47+0x1,_0x4a34be=_0x46fa44+0x1,_0x5ca783=-0x1;continue;}if(_0x21ca46===_0x46fa44){_0x205f4d=!![];break;}if(_0x21ca46>_0x4a34be||_0x21ca46===_0x4a34be&&_0x5ca783<0x0||_0x5ca783<0x0&&_0x21ca46>=_0x4dbe2b)throw Error(_0x5614e1(0x70));const _0x19dd86=_0x21ca46===_0x4a34be?_0x505fed[_0x5ca783]+0x1:_0x505fed[_0x21ca46],_0x3a6f0f=_0x21ca46===_0x4a34be?_0x4a4f34[_0x5ca783]:_0x4a4f34[_0x21ca46];if(!_0x19dd86||_0x3a6f0f>=_0x2293a2||(_0x2f16dc+=_0x19dd86)>_0xcf1e95*_0x458d49)throw Error(_0x5614e1(0x8b));if(_0x5ca783>=0x0&&_0x4a34be<0x1000){_0x505fed[_0x4a34be]=_0x505fed[_0x5ca783]+0x1,_0x4a4f34[_0x4a34be]=Math[_0x5614e1(0x96)](_0x4a4f34[_0x5ca783],_0x3a6f0f),_0x4a34be++;if(_0x4a34be===0x1<<_0x21877f&&_0x21877f<0xc)_0x21877f++;}_0x5ca783=_0x21ca46;}if(!_0x205f4d||_0x2f16dc!==_0xcf1e95*_0x458d49)throw Error(_0x5614e1(0x90));}throw Error(_0x5614e1(0xa0));}export function validateImageBytes(_0x237e6b){const _0x4f664c=a145_0x7d1d;if(!_0x237e6b[_0x4f664c(0x94)]||_0x237e6b['length']>0xa*0x400*0x400)throw Error(_0x4f664c(0x7a));let _0x4c2de6;try{if(_0x237e6b['subarray'](0x0,0x8)[_0x4f664c(0x74)](Buffer[_0x4f664c(0x9c)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x237e6b[_0x4f664c(0x94)]<0x21||_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),0xc,0x10)!==_0x4f664c(0x6e))throw Error('Invalid\x20PNG\x20header.');dimensions(_0x237e6b['readUInt32BE'](0x10),_0x237e6b[_0x4f664c(0x81)](0x14));const _0xb934c5=_0x237e6b[_0x4f664c(0x81)](0x10),_0x47c00d=_0x237e6b['readUInt32BE'](0x14),_0x47ef4d=_0x237e6b[0x18],_0x400a49=_0x237e6b[0x19],_0x15afbe=_0x237e6b[0x1c],_0x37fe86={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x400a49];if(!_0x37fe86||![0x1,0x2,0x4,0x8,0x10][_0x4f664c(0x7c)](_0x47ef4d)||_0x15afbe>0x1)throw Error(_0x4f664c(0x73));const _0x5171f0=_0x236a2c=>Math[_0x4f664c(0x92)](_0x236a2c*_0x37fe86*_0x47ef4d/0x8)+0x1;let _0x404c16=_0x5171f0(_0xb934c5)*_0x47c00d;if(_0x15afbe){_0x404c16=0x0;for(const [_0x3bc029,_0x1f8b65,_0x5cc3ed,_0x18a6b6]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 _0xb0a52=Math[_0x4f664c(0x96)](0x0,Math[_0x4f664c(0x92)]((_0xb934c5-_0x3bc029)/_0x5cc3ed)),_0x319668=Math[_0x4f664c(0x96)](0x0,Math['ceil']((_0x47c00d-_0x1f8b65)/_0x18a6b6));if(_0xb0a52&&_0x319668)_0x404c16+=_0x5171f0(_0xb0a52)*_0x319668;}}let _0x5e1f3b=0x8,_0x3c88eb=![];const _0x2f13d3=[];while(_0x5e1f3b<_0x237e6b[_0x4f664c(0x94)]){if(_0x5e1f3b+0xc>_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x8a));const _0x52ea8d=_0x237e6b[_0x4f664c(0x81)](_0x5e1f3b),_0x4270da=_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),_0x5e1f3b+0x4,_0x5e1f3b+0x8);if(_0x4270da==='acTL')throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x5e1f3b+_0x52ea8d+0xc>_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x8e));if(_0x4270da===_0x4f664c(0x6a))_0x2f13d3['push'](_0x237e6b['subarray'](_0x5e1f3b+0x8,_0x5e1f3b+0x8+_0x52ea8d));_0x5e1f3b+=_0x52ea8d+0xc;if(_0x4270da==='IEND'){if(_0x52ea8d||_0x5e1f3b!==_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x80));_0x3c88eb=!![];break;}}if(!_0x3c88eb||!_0x2f13d3[_0x4f664c(0x94)])throw Error(_0x4f664c(0x82));if(inflateSync(Buffer['concat'](_0x2f13d3),{'maxOutputLength':_0x404c16+0x1})[_0x4f664c(0x94)]!==_0x404c16)throw Error(_0x4f664c(0x78));const {PNG:_0x16ca86}=require(_0x4f664c(0x8f)),_0x20ece4=_0x16ca86['sync'][_0x4f664c(0x6b)](_0x237e6b,{'checkCRC':!![]});dimensions(_0x20ece4[_0x4f664c(0x77)],_0x20ece4[_0x4f664c(0x85)]),_0x4c2de6=_0x4f664c(0x7b);}else{if(_0x237e6b[0x0]===0xff&&_0x237e6b[0x1]===0xd8){if(_0x237e6b['at'](-0x2)!==0xff||_0x237e6b['at'](-0x1)!==0xd9)throw Error(_0x4f664c(0x72));const _0x539a46=require('jpeg-js'),_0x5061cf=_0x539a46['decode'](_0x237e6b,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5061cf['width'],_0x5061cf[_0x4f664c(0x85)]),_0x4c2de6='image/jpeg';}else{if(['GIF87a','GIF89a'][_0x4f664c(0x7c)](_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),0x0,0x6))){if(_0x237e6b[_0x4f664c(0x94)]<0xe||_0x237e6b['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x237e6b[_0x4f664c(0x75)](0x6),_0x237e6b[_0x4f664c(0x75)](0x8)),validateGif(_0x237e6b);const {GifReader:_0x466a60}=require(_0x4f664c(0x88)),_0x550588=new _0x466a60(_0x237e6b);dimensions(_0x550588['width'],_0x550588[_0x4f664c(0x85)]);const _0x4cc58a=_0x550588[_0x4f664c(0x67)]();if(!_0x4cc58a||_0x4cc58a>0x2710||_0x4cc58a*_0x550588[_0x4f664c(0x77)]*_0x550588[_0x4f664c(0x85)]>MAX_PIXELS)throw Error(_0x4f664c(0x9e));const _0x4211a0=new Uint8Array(_0x550588[_0x4f664c(0x77)]*_0x550588[_0x4f664c(0x85)]*0x4);for(let _0x24c3f1=0x0;_0x24c3f1<_0x4cc58a;_0x24c3f1++){const _0x5f08bb=_0x550588[_0x4f664c(0x6f)](_0x24c3f1);if(_0x5f08bb['x']+_0x5f08bb[_0x4f664c(0x77)]>_0x550588['width']||_0x5f08bb['y']+_0x5f08bb[_0x4f664c(0x85)]>_0x550588[_0x4f664c(0x85)])throw Error(_0x4f664c(0x99));_0x550588[_0x4f664c(0x8c)](_0x24c3f1,_0x4211a0);}_0x4c2de6=_0x4f664c(0xa1);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x2a6b70){throw Error('Invalid\x20image:\x20'+_0x2a6b70['message']);}return{'contentHash':createHash(_0x4f664c(0x9a))[_0x4f664c(0x7e)](_0x237e6b)[_0x4f664c(0x86)](_0x4f664c(0x69)),'type':_0x4c2de6,'size':_0x237e6b['length'],'bytes':_0x237e6b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a146_0x29cf50=a146_0x2ff5;function a146_0x2ff5(_0xf2ba1b,_0x127243){_0xf2ba1b=_0xf2ba1b-0x10c;const _0x17b0cb=a146_0x17b0();let _0x2ff545=_0x17b0cb[_0xf2ba1b];return _0x2ff545;}(function(_0x892e01,_0xe471a7){const _0x59400d=a146_0x2ff5,_0x17870a=_0x892e01();while(!![]){try{const _0x221f82=-parseInt(_0x59400d(0x129))/0x1*(-parseInt(_0x59400d(0x141))/0x2)+parseInt(_0x59400d(0x14c))/0x3+parseInt(_0x59400d(0x11b))/0x4*(-parseInt(_0x59400d(0x19c))/0x5)+parseInt(_0x59400d(0x1a8))/0x6+-parseInt(_0x59400d(0x1b9))/0x7*(parseInt(_0x59400d(0x177))/0x8)+-parseInt(_0x59400d(0x131))/0x9+parseInt(_0x59400d(0x136))/0xa*(-parseInt(_0x59400d(0x18d))/0xb);if(_0x221f82===_0xe471a7)break;else _0x17870a['push'](_0x17870a['shift']());}catch(_0x4280eb){_0x17870a['push'](_0x17870a['shift']());}}}(a146_0x17b0,0xcf398));function a146_0x17b0(){const _0x456239=['XLRICHVALUE','XML\x20DTD/entities\x20are\x20not\x20supported.','Unsupported\x20rich\x20image\x20relation\x20namespace.','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','Value\x20metadata\x20index\x20must\x20be\x20one-based.','Invalid\x20relationship\x20target:\x20','cellImages','workbook','r:id','913KvICBJ','worksheet','MAX_SAFE_INTEGER','anchor\x20start','WPS\x20image\x20name','round','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','http://www.wps.cn/officeDocument/2017/relationships/','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','http://purl.oclc.org/ooxml/drawingml/main','r:link','image\x20row\x20height\x20coordinate','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','uri','map','163695iNJYKp','rdRichValueStructure','toString','attributes','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Image\x20XML\x20event\x20budget\x20exceeded.','hidden\x20image\x20row','opentag','image\x20cell\x20row','rich\x20value\x20binding','Unsupported\x20rich\x20value\x20namespace.','image\x20height','6505386EyXjsf','http://purl.oclc.org/ooxml/spreadsheetml/main','_localImage','anchor\x20row','Internal','some','Missing\x20rich\x20image\x20relationship.','Missing\x20WPS\x20image\x20ID:\x20','Unsupported\x20relationship\x20namespace\x20in\x20','children','twoCellAnchor','rel','drawing','sheetData','_rvRel:LocalImageIdentifier','charCodeAt','WPS\x20image\x20blip','21vWukYx','rvb','futureMetadata','Unsupported\x20mapped\x20rich\x20value\x20structure.','r:embed','isSafeInteger','sheetMetadata','rich\x20image\x20relationship\x20index','push','Unsupported\x20worksheet\x20namespace.','Relationship','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','anchor\x20end','\x20relationship\x20in\x20','richValueRels','rvStructures','name','exec','wsDr','basename','get','Unsupported\x20workbook\x20namespace.','Unsupported\x20drawing\x20image.','slice','flatMap','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','test','4gvBGaj','extLst','Unsupported\x20WPS\x20cell\x20image\x20namespace.','value\x20metadata\x20index','metadataType','nvPicPr','Shared\x20image\x20formulas\x20are\x20not\x20supported.','.rels','Duplicate\x20mapped\x20image\x20cell.','blipFill','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','doctype','Missing\x20value\x20metadata\x20block.','Unsupported\x20metadata\x20namespace.','2XXTrXw','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','richValueRel','http://schemas.microsoft.com/office/2017/06/relationships/','length','posix','value','3968739zaJsTr','rdRichValue','replace','closetag','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','7740fAZyBz','anchor\x20column','type','cNvPr','has','message','normalize','Ambiguous\x20XML\x20attribute.','pic','../','sheets','1227236LJnflg','sheetFormatPr','Missing\x20or\x20ambiguous\x20','local','anchor\x20start\x20offset','join','xl/workbook.xml','true','rich\x20future\x20metadata','write','xl/','1593864Coryqm','absoluteAnchor','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','blip','sheet','fromEntries','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','valueMetadata','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','rvData','from','Missing\x20XLSX\x20part:\x20','attrs','isFinite','http://www.wps.cn/officeDocument/2017/etCustomData','External\x20image\x20links\x20are\x20not\x20supported.','Missing\x20future\x20metadata\x20block.','close','oneCellAnchor','col','http://schemas.openxmlformats.org/drawingml/2006/main','image\x20extent','includes','image','rowOff','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','Missing\x20local\x20image\x20identifier\x20value.','startsWith','ext','metadata','text','filter','anchor\x20end\x20offset','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','row','image\x20formula','metadata\x20types','_rels','values','Relationships','cellImage','3882696aHlKfr','set','Missing\x20rich\x20value.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','rich\x20metadata\x20record','utf8','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','dirname','metadataTypes','add','Relationship\x20target\x20escapes\x20workbook:\x20','hidden','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.'];a146_0x17b0=function(){return _0x456239;};return a146_0x17b0();}import a146_0x173c06 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x29cf50(0x16f),a146_0x29cf50(0x1a9)],DRAWING=[a146_0x29cf50(0x119),a146_0x29cf50(0x193)],DRAWING_MAIN=[a146_0x29cf50(0x161),a146_0x29cf50(0x196)],OFFICE_RELS=[a146_0x29cf50(0x14e),'http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=[a146_0x29cf50(0x155)],RICH_RELS=[a146_0x29cf50(0x125)],WPS=[a146_0x29cf50(0x15b)],DEFAULT_NS=Object[a146_0x29cf50(0x152)]([...['workbook','sheets',a146_0x29cf50(0x151),a146_0x29cf50(0x18e),'sheetData',a146_0x29cf50(0x170),'c','f','v',a146_0x29cf50(0x142),a146_0x29cf50(0x1b4),a146_0x29cf50(0x16a),a146_0x29cf50(0x17f),a146_0x29cf50(0x11f),'futureMetadata','valueMetadata','bk','rc',a146_0x29cf50(0x11c)]['map'](_0x224145=>[_0x224145,SHEET]),...[a146_0x29cf50(0x111),a146_0x29cf50(0x15f),a146_0x29cf50(0x1b2),'absoluteAnchor',a146_0x29cf50(0x157),'to',a146_0x29cf50(0x160),'colOff',a146_0x29cf50(0x165),a146_0x29cf50(0x169),'pic',a146_0x29cf50(0x120),a146_0x29cf50(0x139),a146_0x29cf50(0x124)][a146_0x29cf50(0x19b)](_0x173720=>[_0x173720,DRAWING]),...[a146_0x29cf50(0x1ba),a146_0x29cf50(0x156),'rv',a146_0x29cf50(0x10e),'s','k']['map'](_0xc2b0fb=>[_0xc2b0fb,RICH]),[a146_0x29cf50(0x150),DRAWING_MAIN],[a146_0x29cf50(0x10d),RICH_RELS],[a146_0x29cf50(0x1b3),RICH_RELS],['Relationships',PACKAGE],[a146_0x29cf50(0x1c3),PACKAGE],[a146_0x29cf50(0x18a),WPS],[a146_0x29cf50(0x176),WPS]]),matches=(_0x2fa10c,_0xdd15c7,_0x16c9a7=DEFAULT_NS[_0xdd15c7]??[])=>_0x2fa10c[a146_0x29cf50(0x10f)]===_0xdd15c7&&_0x16c9a7[a146_0x29cf50(0x163)](_0x2fa10c[a146_0x29cf50(0x19a)]),children=(_0x11a314,_0x4c0427,_0x469c9c=DEFAULT_NS[_0x4c0427])=>_0x11a314[a146_0x29cf50(0x1b1)]['filter'](_0x4cd1c9=>matches(_0x4cd1c9,_0x4c0427,_0x469c9c)),chain=(_0x78c19d,..._0x21e698)=>_0x21e698['reduce']((_0x35f8e7,_0x137f6a)=>_0x35f8e7[a146_0x29cf50(0x117)](_0x2e1276=>children(_0x2e1276,_0x137f6a)),[_0x78c19d]),relationshipTypes=_0x32f758=>{const _0x6bdfc3=a146_0x29cf50;if([_0x6bdfc3(0x132),_0x6bdfc3(0x19d)][_0x6bdfc3(0x163)](_0x32f758))return[_0x6bdfc3(0x12d)+_0x32f758];if(_0x32f758===_0x6bdfc3(0x12c))return[_0x6bdfc3(0x17d)];if(_0x32f758===_0x6bdfc3(0x176)||_0x32f758===_0x6bdfc3(0x18a))return[_0x6bdfc3(0x194)+_0x32f758];return OFFICE_RELS[_0x6bdfc3(0x19b)](_0x4b586b=>_0x4b586b+'/'+_0x32f758);};function one(_0x8f3a69,_0x57023e){const _0x18b96e=a146_0x29cf50;if(_0x8f3a69['length']!==0x1)throw Error(_0x18b96e(0x143)+_0x57023e+'.');return _0x8f3a69[0x0];}function integer(_0x16d665,_0x1ae8e9,_0x100ca9=0x186a0){const _0x146f23=a146_0x29cf50;if(!_0x16d665||!/^\d+$/[_0x146f23(0x11a)](_0x16d665)||!Number[_0x146f23(0x1be)](Number(_0x16d665))||Number(_0x16d665)>_0x100ca9)throw Error('Invalid\x20'+_0x1ae8e9+'.');return Number(_0x16d665);}export function resolveWorksheetImages(_0x5c29ee,_0x2daa8b,_0x11ae24){const _0x3dc4ef=a146_0x29cf50;let _0x4311cf=0x0,_0x51ec92=0x0,_0x4252d4=0x0;const _0x18bc0d=new Map(),_0x221f20=_0x3b3ad3=>{const _0x51b2bd=a146_0x2ff5;if(_0x18bc0d[_0x51b2bd(0x13a)](_0x3b3ad3))return _0x18bc0d['get'](_0x3b3ad3);const _0x56fcc8=_0x5c29ee['get'](_0x3b3ad3);if(!_0x56fcc8)throw Error(_0x51b2bd(0x158)+_0x3b3ad3+'.');const _0xfe5ed5={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x53cee9=[_0xfe5ed5],_0x6e2abd=new SaxesParser({'xmlns':!![]}),_0x182b98=()=>{const _0x5d1fe0=_0x51b2bd;if(++_0x51ec92>0x1e8480)throw Error(_0x5d1fe0(0x1a1));};_0x6e2abd['on'](_0x51b2bd(0x126),()=>{const _0x146ce4=_0x51b2bd;throw Error(_0x146ce4(0x185));}),_0x6e2abd['on'](_0x51b2bd(0x1a3),_0x3d21e6=>{const _0x123a52=_0x51b2bd;_0x182b98();if(++_0x4311cf>0x7a120||_0x53cee9['length']>0x40)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');const _0x2c4177={};for(const _0x76efd3 of Object[_0x123a52(0x174)](_0x3d21e6[_0x123a52(0x19f)])){const _0x2a6607=OFFICE_RELS[_0x123a52(0x163)](_0x76efd3[_0x123a52(0x19a)])?'r:'+_0x76efd3['local']:_0x76efd3['uri']?'{'+_0x76efd3['uri']+'}'+_0x76efd3[_0x123a52(0x144)]:_0x76efd3[_0x123a52(0x144)];if(_0x2a6607 in _0x2c4177)throw Error(_0x123a52(0x13d));_0x2c4177[_0x2a6607]=_0x76efd3[_0x123a52(0x130)];}const _0x28c77b={'name':_0x3d21e6[_0x123a52(0x144)],'uri':_0x3d21e6[_0x123a52(0x19a)],'attrs':_0x2c4177,'children':[],'text':''};_0x53cee9['at'](-0x1)['children'][_0x123a52(0x1c1)](_0x28c77b),_0x53cee9['push'](_0x28c77b);}),_0x6e2abd['on'](_0x51b2bd(0x16b),_0x4cbe50=>{const _0xfa9eca=_0x51b2bd;_0x182b98();const _0x2d6b12=_0x53cee9['at'](-0x1);_0x2d6b12[_0xfa9eca(0x16b)]+=_0x4cbe50;if(_0x2d6b12[_0xfa9eca(0x16b)][_0xfa9eca(0x12e)]>0x10000)throw Error(_0xfa9eca(0x187));}),_0x6e2abd['on'](_0x51b2bd(0x134),()=>{_0x182b98(),_0x53cee9['pop']();}),_0x6e2abd['on']('error',_0x30e205=>{throw _0x30e205;}),_0x6e2abd[_0x51b2bd(0x14a)](_0x56fcc8[_0x51b2bd(0x19e)](_0x51b2bd(0x17c)))[_0x51b2bd(0x15e)]();const _0x2fb9f1=one(_0xfe5ed5[_0x51b2bd(0x1b1)],_0x3b3ad3);return _0x18bc0d[_0x51b2bd(0x178)](_0x3b3ad3,_0x2fb9f1),_0x2fb9f1;},_0x2c14ca=new Map(),_0x406c45=_0x24b82c=>{const _0x247ee4=a146_0x2ff5;if(_0x2c14ca[_0x247ee4(0x13a)](_0x24b82c))return _0x2c14ca[_0x247ee4(0x113)](_0x24b82c);const _0x229d03=a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x146)](a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x17e)](_0x24b82c),_0x247ee4(0x173),a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x112)](_0x24b82c)+_0x247ee4(0x122));if(!_0x5c29ee['has'](_0x229d03))return[];const _0x41425a=new Set(),_0x28a48b=_0x221f20(_0x229d03);if(!matches(_0x28a48b,_0x247ee4(0x175)))throw Error(_0x247ee4(0x1b0)+_0x229d03+'.');const _0x413610=children(_0x28a48b,_0x247ee4(0x1c3))[_0x247ee4(0x19b)](_0x242609=>{const _0x3eedfa=_0x247ee4,{Id:_0x511839,Type:_0x19c0dd,Target:_0x59dc71,TargetMode:_0x4d6d6b}=_0x242609['attrs'];if(!_0x511839||_0x41425a['has'](_0x511839)||!_0x19c0dd)throw Error(_0x3eedfa(0x17a)+_0x229d03+'.');return _0x41425a[_0x3eedfa(0x180)](_0x511839),{'id':_0x511839,'type':_0x19c0dd,'target':_0x59dc71??'','mode':_0x4d6d6b};});return _0x2c14ca['set'](_0x24b82c,_0x413610),_0x413610;},_0x53fdb1=(_0x117e1e,_0x40804a)=>{const _0x3a359e=a146_0x2ff5,{target:_0x1672ad,mode:_0x16107d}=_0x40804a;if(_0x16107d&&_0x16107d!==_0x3a359e(0x1ac))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x117e1e+'.');if(!_0x1672ad||_0x1672ad[_0x3a359e(0x163)]('\x5c')||/[?#%\x00-\x20]/[_0x3a359e(0x11a)](_0x1672ad)||/^[a-z][a-z0-9+.-]*:/i[_0x3a359e(0x11a)](_0x1672ad)||_0x1672ad[_0x3a359e(0x168)]('//'))throw Error(_0x3a359e(0x189)+_0x117e1e+'.');const _0x28f958=_0x1672ad['startsWith']('/')?_0x1672ad[_0x3a359e(0x116)](0x1):a146_0x173c06[_0x3a359e(0x12f)][_0x3a359e(0x13c)](a146_0x173c06['posix'][_0x3a359e(0x146)](a146_0x173c06['posix']['dirname'](_0x117e1e),_0x1672ad));if(_0x28f958[_0x3a359e(0x168)](_0x3a359e(0x13f))||_0x28f958==='..'||!_0x28f958[_0x3a359e(0x168)](_0x3a359e(0x14b)))throw Error(_0x3a359e(0x181)+_0x117e1e+'.');return _0x28f958;},_0xd23dad=(_0xe2cfc,_0x453121,_0x6ef013)=>{const _0x589ec6=a146_0x2ff5,_0x52210=_0x406c45(_0xe2cfc)[_0x589ec6(0x16c)](_0x2116d3=>_0x2116d3['id']===_0x453121&&relationshipTypes(_0x6ef013)['includes'](_0x2116d3[_0x589ec6(0x138)]));if(_0x52210['length']!==0x1)throw Error(_0x589ec6(0x143)+_0x6ef013+'\x20relationship\x20in\x20'+_0xe2cfc+'.');return _0x53fdb1(_0xe2cfc,_0x52210[0x0]);},_0xfab911=(_0x262eb3,_0x7acd21)=>{const _0x67dcf6=a146_0x2ff5,_0x39df29=_0x406c45(_0x262eb3)[_0x67dcf6(0x16c)](_0x8cd759=>relationshipTypes(_0x7acd21)[_0x67dcf6(0x163)](_0x8cd759[_0x67dcf6(0x138)]));if(_0x39df29[_0x67dcf6(0x12e)]!==0x1)throw Error(_0x67dcf6(0x143)+_0x7acd21+_0x67dcf6(0x10c)+_0x262eb3+'.');return _0x53fdb1(_0x262eb3,_0x39df29[0x0]);},_0xe204b=_0x3dc4ef(0x147),_0x43e93a=_0x221f20(_0xe204b);if(!matches(_0x43e93a,_0x3dc4ef(0x18b)))throw Error(_0x3dc4ef(0x114));const _0x21d8fb=one(chain(_0x43e93a,_0x3dc4ef(0x140),_0x3dc4ef(0x151))[_0x3dc4ef(0x16c)](_0x120b5e=>_0x120b5e['attrs'][_0x3dc4ef(0x10f)]===_0x2daa8b),_0x3dc4ef(0x18e)),_0x3ed1f0=_0xd23dad(_0xe204b,_0x21d8fb[_0x3dc4ef(0x159)][_0x3dc4ef(0x18c)],_0x3dc4ef(0x18e)),_0x2a7782=_0x221f20(_0x3ed1f0);if(!matches(_0x2a7782,_0x3dc4ef(0x18e)))throw Error(_0x3dc4ef(0x1c2));const _0x4a0b60=chain(_0x2a7782,_0x3dc4ef(0x1b5),_0x3dc4ef(0x170)),_0x33deec=new Map(),_0x1d4a8a=new Set(_0x4a0b60['filter'](_0x52327e=>_0x52327e[_0x3dc4ef(0x159)][_0x3dc4ef(0x182)]==='1'||_0x52327e[_0x3dc4ef(0x159)]['hidden']===_0x3dc4ef(0x148))[_0x3dc4ef(0x19b)](_0x9daea8=>integer(_0x9daea8['attrs']['r'],_0x3dc4ef(0x1a2)))),_0x7e9380=_0x12729a=>{const _0x54bcd9=_0x3dc4ef,_0x22830d=_0x12729a===undefined?0xf:Number(_0x12729a);if(!Number[_0x54bcd9(0x15a)](_0x22830d)||_0x22830d<=0x0||_0x22830d>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x54bcd9(0x192)](_0x22830d*0x319c);},_0x169b28=_0x7e9380(children(_0x2a7782,_0x3dc4ef(0x142))[0x0]?.[_0x3dc4ef(0x159)]['defaultRowHeight']);for(const _0x42f115 of _0x4a0b60)if(_0x42f115[_0x3dc4ef(0x159)]['ht']!==undefined)_0x33deec[_0x3dc4ef(0x178)](integer(_0x42f115['attrs']['r'],_0x3dc4ef(0x198)),_0x7e9380(_0x42f115[_0x3dc4ef(0x159)]['ht']));const _0xfd6513=[],_0x479133=_0x3ef5bf=>{const _0x15c79e=_0x3dc4ef;if(!_0x11ae24['has'](_0x3ef5bf[_0x15c79e(0x160)]))return;if(++_0x4252d4>0x2710)throw Error(_0x15c79e(0x153));_0xfd6513[_0x15c79e(0x1c1)](_0x1d4a8a['has'](_0x3ef5bf[_0x15c79e(0x170)])?{..._0x3ef5bf,'hiddenRow':!![]}:_0x3ef5bf);},_0x120dba=_0x118aa0=>({'row':integer(one(children(_0x118aa0,_0x3dc4ef(0x170),DRAWING),_0x3dc4ef(0x1ab))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x1ab),0x1869f)+0x1,'col':integer(one(children(_0x118aa0,_0x3dc4ef(0x160)),_0x3dc4ef(0x137))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x137),0xff)+0x1});for(const _0x2a7514 of children(_0x2a7782,_0x3dc4ef(0x1b4))){const _0x455371=_0xd23dad(_0x3ed1f0,_0x2a7514[_0x3dc4ef(0x159)][_0x3dc4ef(0x18c)],'drawing'),_0x13c4da=_0x221f20(_0x455371);if(!matches(_0x13c4da,_0x3dc4ef(0x111)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x280a49 of _0x13c4da['children']){if(!['oneCellAnchor','twoCellAnchor',_0x3dc4ef(0x14d)][_0x3dc4ef(0x1ad)](_0x10148a=>matches(_0x280a49,_0x10148a)))continue;if(_0x280a49['name']==='absoluteAnchor')throw Error(_0x3dc4ef(0x12a)+_0x2daa8b+'.');const _0x51c755=_0x120dba(one(children(_0x280a49,_0x3dc4ef(0x157)),_0x3dc4ef(0x190)));if(!_0x11ae24[_0x3dc4ef(0x13a)](_0x51c755['col']))continue;let _0x2cb50d;const _0x14d600=one(children(_0x280a49,'from'),_0x3dc4ef(0x190)),_0x3219ed=integer(one(children(_0x14d600,_0x3dc4ef(0x165)),_0x3dc4ef(0x145))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x145),Number['MAX_SAFE_INTEGER']),_0x1a9e63=_0x33deec[_0x3dc4ef(0x113)](_0x51c755[_0x3dc4ef(0x170)])??_0x169b28;if(_0x3219ed>=_0x1a9e63)throw Error(_0x3dc4ef(0x1c4)+_0x51c755[_0x3dc4ef(0x170)]+'.');if(_0x280a49[_0x3dc4ef(0x10f)]===_0x3dc4ef(0x15f)){const _0x117bb6=one(children(_0x280a49,_0x3dc4ef(0x169)),_0x3dc4ef(0x162)),_0x50fa06=integer(_0x117bb6[_0x3dc4ef(0x159)]['cy'],_0x3dc4ef(0x1a7),Number[_0x3dc4ef(0x18f)]);if(!_0x50fa06||_0x3219ed+_0x50fa06>_0x1a9e63)_0x2cb50d=_0x3dc4ef(0x14f);}if(_0x280a49[_0x3dc4ef(0x10f)]===_0x3dc4ef(0x1b2)){const _0x1bdff3=one(children(_0x280a49,'to'),_0x3dc4ef(0x1c5)),_0x2c5c77=_0x120dba(_0x1bdff3),_0x49747b=integer(one(children(_0x1bdff3,_0x3dc4ef(0x165)),_0x3dc4ef(0x16d))['text'],'anchor\x20end\x20offset',Number[_0x3dc4ef(0x18f)]),_0x17918d=_0x33deec[_0x3dc4ef(0x113)](_0x2c5c77[_0x3dc4ef(0x170)])??_0x169b28;if(_0x49747b>_0x17918d||_0x2c5c77[_0x3dc4ef(0x170)]===_0x51c755[_0x3dc4ef(0x170)]&&_0x49747b<=_0x3219ed)_0x2cb50d=_0x3dc4ef(0x16e);if(_0x2c5c77[_0x3dc4ef(0x170)]<_0x51c755[_0x3dc4ef(0x170)]||_0x2c5c77['row']>_0x51c755['row']+0x1||_0x2c5c77[_0x3dc4ef(0x170)]===_0x51c755[_0x3dc4ef(0x170)]+0x1&&_0x49747b!==0x0)_0x2cb50d='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x34c5c5=chain(_0x280a49,_0x3dc4ef(0x13e),_0x3dc4ef(0x124),'blip');for(const _0x41bf4a of _0x34c5c5){if(_0x41bf4a[_0x3dc4ef(0x159)][_0x3dc4ef(0x197)])throw Error(_0x3dc4ef(0x15c));_0x479133({..._0x51c755,'media':[_0xd23dad(_0x455371,_0x41bf4a['attrs'][_0x3dc4ef(0x1bd)],_0x3dc4ef(0x164))],..._0x2cb50d?{'error':_0x2cb50d}:{}});}if(!_0x34c5c5[_0x3dc4ef(0x12e)])_0x479133({..._0x51c755,'media':[],'error':_0x3dc4ef(0x115)});}}const _0x4a3921=_0xb0cd6a=>{const _0xff9e71=_0x3dc4ef,_0x1d6150=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x1bf)));if(!matches(_0x1d6150,_0xff9e71(0x16a)))throw Error(_0xff9e71(0x128));const _0x554538=integer(_0xb0cd6a[_0xff9e71(0x159)]['vm'],_0xff9e71(0x11e));if(!_0x554538)throw Error(_0xff9e71(0x188));const _0x350458=children(one(children(_0x1d6150,'valueMetadata'),_0xff9e71(0x154)),'bk')[_0x554538-0x1];if(!_0x350458)throw Error(_0xff9e71(0x127));const _0xb34403=one(children(_0x350458,'rc'),_0xff9e71(0x17b)),_0x50a9bb=integer(_0xb34403['attrs']['t'],'metadata\x20type\x20index'),_0x9d4a98=children(one(children(_0x1d6150,_0xff9e71(0x17f)),_0xff9e71(0x172)),_0xff9e71(0x11f))[_0x50a9bb-0x1];if(!_0x50a9bb||_0x9d4a98?.[_0xff9e71(0x159)]['name']!=='XLRICHVALUE')throw Error(_0xff9e71(0x118));const _0x38aeb1=one(children(_0x1d6150,_0xff9e71(0x1bb))[_0xff9e71(0x16c)](_0x22b29d=>_0x22b29d['attrs']['name']===_0xff9e71(0x184)),_0xff9e71(0x149)),_0x4a9da9=children(_0x38aeb1,'bk')[integer(_0xb34403[_0xff9e71(0x159)]['v'],'future\x20metadata\x20index')];if(!_0x4a9da9)throw Error(_0xff9e71(0x15d));const _0x2d67f0=chain(_0x4a9da9,_0xff9e71(0x11c))['flatMap'](_0x53a5fb=>children(_0x53a5fb,_0xff9e71(0x169),SHEET))[_0xff9e71(0x16c)](_0x5f49c7=>_0x5f49c7['attrs'][_0xff9e71(0x19a)]?.['toLowerCase']()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x3c7749=integer(one(_0x2d67f0[_0xff9e71(0x117)](_0xc72f3e=>children(_0xc72f3e,_0xff9e71(0x1ba))),_0xff9e71(0x1a5))['attrs']['i'],'rich\x20value\x20index'),_0x3d2160=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x132)));if(!matches(_0x3d2160,'rvData'))throw Error(_0xff9e71(0x1a6));const _0x3ff502=children(_0x3d2160,'rv')[_0x3c7749];if(!_0x3ff502)throw Error(_0xff9e71(0x179));const _0x424f78=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x19d)));if(!matches(_0x424f78,'rvStructures'))throw Error('Unsupported\x20rich\x20structure\x20namespace.');const _0x476565=children(_0x424f78,'s')[integer(_0x3ff502['attrs']['s'],'rich\x20structure\x20index')];if(!_0x476565||_0x476565[_0xff9e71(0x159)]['t']!==_0xff9e71(0x1aa))throw Error(_0xff9e71(0x1bc));const _0x2b15d7=children(_0x476565,'k'),_0x324db3=_0x2b15d7[_0xff9e71(0x19b)]((_0x253da0,_0x1f7e5b)=>_0x253da0['attrs']['n']===_0xff9e71(0x1b6)?_0x1f7e5b:-0x1)[_0xff9e71(0x16c)](_0x4b6548=>_0x4b6548>=0x0);if(_0x324db3['length']!==0x1)throw Error(_0xff9e71(0x135));const _0x129460=children(_0x3ff502,'v',RICH)[_0x324db3[0x0]];if(!_0x129460)throw Error(_0xff9e71(0x167));const _0x49df32=_0xfab911(_0xe204b,_0xff9e71(0x12c)),_0x13ddf0=_0x221f20(_0x49df32);if(!matches(_0x13ddf0,'richValueRels'))throw Error(_0xff9e71(0x186));const _0x380831=children(_0x13ddf0,_0xff9e71(0x1b3))[integer(_0x129460[_0xff9e71(0x16b)],_0xff9e71(0x1c0))];if(!_0x380831)throw Error(_0xff9e71(0x1ae));return _0xd23dad(_0x49df32,_0x380831['attrs']['r:id'],_0xff9e71(0x164));};let _0x144b00;const _0x43501a=_0x2a889a=>{const _0x5eb11d=_0x3dc4ef;if(!_0x144b00){_0x144b00=new Map();const _0x28dc23=_0x406c45(_0xe204b)[_0x5eb11d(0x16c)](_0xf0e250=>[...relationshipTypes(_0x5eb11d(0x176)),...relationshipTypes('cellImages')][_0x5eb11d(0x163)](_0xf0e250[_0x5eb11d(0x138)]));if(!_0x28dc23[_0x5eb11d(0x12e)]&&_0x5c29ee[_0x5eb11d(0x13a)]('xl/cellimages.xml'))_0x28dc23[_0x5eb11d(0x1c1)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x28dc23['length']!==0x1)throw Error(_0x5eb11d(0x199));const _0x1949ec=_0x53fdb1(_0xe204b,_0x28dc23[0x0]),_0x31f799=_0x221f20(_0x1949ec);if(!matches(_0x31f799,_0x5eb11d(0x18a)))throw Error(_0x5eb11d(0x11d));for(const _0x46d5b2 of children(_0x31f799,_0x5eb11d(0x176))){const _0x4627df=one(chain(_0x46d5b2,_0x5eb11d(0x13e),'nvPicPr','cNvPr'),_0x5eb11d(0x191))[_0x5eb11d(0x159)]['name'];if(!_0x4627df||_0x144b00[_0x5eb11d(0x13a)](_0x4627df))throw Error(_0x5eb11d(0x195));const _0x4cb435=one(chain(_0x46d5b2,_0x5eb11d(0x13e),_0x5eb11d(0x124),'blip'),_0x5eb11d(0x1b8));if(_0x4cb435[_0x5eb11d(0x159)]['r:link'])throw Error(_0x5eb11d(0x1a0));_0x144b00['set'](_0x4627df,_0xd23dad(_0x1949ec,_0x4cb435['attrs'][_0x5eb11d(0x1bd)],_0x5eb11d(0x164)));}}const _0x36ca07=_0x144b00['get'](_0x2a889a);if(!_0x36ca07)throw Error(_0x5eb11d(0x1af)+_0x2a889a+'.');return _0x36ca07;},_0xc4d4f4=new Set();for(const _0x482693 of _0x4a0b60[_0x3dc4ef(0x117)](_0xedb2a4=>children(_0xedb2a4,'c'))){const _0x263766=/^([A-Z]+)([1-9]\d*)$/[_0x3dc4ef(0x110)](_0x482693['attrs']['r']??'');if(!_0x263766)continue;let _0x4346e1=0x0;for(const _0x33d957 of _0x263766[0x1])_0x4346e1=_0x4346e1*0x1a+_0x33d957[_0x3dc4ef(0x1b7)](0x0)-0x40;if(!_0x11ae24['has'](_0x4346e1))continue;const _0x262f5c=integer(_0x263766[0x2],_0x3dc4ef(0x1a4));if(_0xc4d4f4[_0x3dc4ef(0x13a)](_0x482693[_0x3dc4ef(0x159)]['r']))throw Error(_0x3dc4ef(0x123));_0xc4d4f4[_0x3dc4ef(0x180)](_0x482693[_0x3dc4ef(0x159)]['r']);const _0x3e2765=children(_0x482693,'f');if(!_0x482693[_0x3dc4ef(0x159)]['vm']&&!_0x3e2765['length'])continue;try{if(_0x262f5c<0x1||_0x4346e1>0x100)throw Error(_0x3dc4ef(0x166));let _0x580526;if(_0x482693[_0x3dc4ef(0x159)]['vm']){if(_0x3e2765[_0x3dc4ef(0x12e)])throw Error('Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.');if(_0x482693['attrs']['t']!=='e'||children(_0x482693,'v')[_0x3dc4ef(0x12e)]!==0x1||children(_0x482693,'v')[0x0][_0x3dc4ef(0x16b)]!=='#VALUE!')throw Error(_0x3dc4ef(0x12b));_0x580526=_0x4a3921(_0x482693);}else{const _0x761a7a=one(_0x3e2765,_0x3dc4ef(0x171));if(_0x761a7a[_0x3dc4ef(0x159)]['t']==='shared'||_0x761a7a[_0x3dc4ef(0x159)]['si'])throw Error(_0x3dc4ef(0x121));const _0x362178=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x761a7a[_0x3dc4ef(0x16b)]);if(!_0x362178)throw Error(_0x3dc4ef(0x183));_0x580526=_0x43501a(_0x362178[0x1][_0x3dc4ef(0x133)](/""/g,'\x22'));}_0x479133({'row':_0x262f5c,'col':_0x4346e1,'media':[_0x580526],'nativeCell':!![]});}catch(_0x46ac83){_0x479133({'row':_0x262f5c,'col':_0x4346e1,'media':[],'nativeCell':!![],'error':_0x46ac83[_0x3dc4ef(0x13b)]});}}return _0xfd6513;}
|
|
1
|
+
const a146_0x25aeb1=a146_0x39a6;(function(_0x11a90e,_0x443d41){const _0x397c27=a146_0x39a6,_0x247782=_0x11a90e();while(!![]){try{const _0x5983bc=parseInt(_0x397c27(0x14e))/0x1+parseInt(_0x397c27(0x119))/0x2+parseInt(_0x397c27(0xca))/0x3+-parseInt(_0x397c27(0x120))/0x4*(-parseInt(_0x397c27(0x13f))/0x5)+-parseInt(_0x397c27(0x110))/0x6+-parseInt(_0x397c27(0xd6))/0x7+-parseInt(_0x397c27(0xb8))/0x8*(parseInt(_0x397c27(0xc0))/0x9);if(_0x5983bc===_0x443d41)break;else _0x247782['push'](_0x247782['shift']());}catch(_0x2a6810){_0x247782['push'](_0x247782['shift']());}}}(a146_0x46ec,0xa792e));import a146_0x309951 from'node:path';function a146_0x46ec(){const _0x3e53a8=['metadataType','Missing\x20rich\x20image\x20relationship.','futureMetadata','XLRICHVALUE','http://www.wps.cn/officeDocument/2017/etCustomData','blipFill','add','_localImage','Relationships','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','posix','_rels','children','anchor\x20end','Missing\x20value\x20metadata\x20block.','slice','anchor\x20start','dirname','absoluteAnchor','twoCellAnchor','Unsupported\x20worksheet\x20namespace.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','r:link','anchor\x20column','Unsupported\x20workbook\x20namespace.','startsWith','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','get','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','Unsupported\x20WPS\x20cell\x20image\x20namespace.','toString','ext','replace','basename','Image\x20XML\x20node\x20budget\x20exceeded.','/xl/cellimages.xml','filter','workbook','exec','message','Unsupported\x20rich\x20value\x20namespace.','local','Missing\x20XLSX\x20part:\x20','rich\x20structure\x20index','anchor\x20end\x20offset','image\x20formula','round','MAX_SAFE_INTEGER','rowOff','sheetMetadata','test','Invalid\x20','metadata\x20type\x20index','r:embed','rel','image','2755524NYflEa','map','xl/','extLst','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','reduce','rich\x20image\x20relationship\x20index','http://schemas.openxmlformats.org/officeDocument/2006/relationships','702842AeTpFJ','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','write','push','Relationship','attributes','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','232TywSqZ','join','utf8','values','hidden','flatMap','pop','isFinite','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','sheets','Unsupported\x20relationship\x20namespace\x20in\x20','pic','richValueRels','rdRichValueStructure','Missing\x20local\x20image\x20identifier\x20value.','../','value','normalize','Shared\x20image\x20formulas\x20are\x20not\x20supported.','set','shared','closetag','toLowerCase','anchor\x20row','rich\x20value\x20index','type','opentag','image\x20extent','cellImage','rdRichValue','Ambiguous\x20XML\x20attribute.','36655OjhVWK','col','drawing','nvPicPr','Missing\x20rich\x20value.','rvData','rvb','\x20relationship\x20in\x20','WPS\x20image\x20name','length','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','.rels','sheetData','image\x20height','xl/workbook.xml','1088313fmCBiF','from','http://schemas.microsoft.com/office/2017/06/relationships/','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','metadataTypes','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','anchor\x20start\x20offset','attrs','defaultRowHeight','Missing\x20or\x20ambiguous\x20','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','XML\x20DTD/entities\x20are\x20not\x20supported.','error','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','Unsupported\x20rich\x20image\x20relation\x20namespace.','oneCellAnchor','rvStructures','name','r:id','cNvPr','row','http://purl.oclc.org/ooxml/drawingml/main','http://purl.oclc.org/ooxml/spreadsheetml/main','metadata\x20types','richValueRel','doctype','435504RnqIEK','future\x20metadata\x20index','http://purl.oclc.org/ooxml/officeDocument/relationships','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20rich\x20structure\x20namespace.','blip','Missing\x20WPS\x20image\x20ID:\x20','Missing\x20future\x20metadata\x20block.','54JOpgMs','hidden\x20image\x20row','cellImages','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','wsDr','worksheet','has','valueMetadata','sheetFormatPr','2364399gAIxBz','text','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Internal','uri','Invalid\x20relationship\x20target:\x20','Unsupported\x20drawing\x20image.','includes','External\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','Image\x20XML\x20event\x20budget\x20exceeded.','8265607yKCFyM','metadata'];a146_0x46ec=function(){return _0x3e53a8;};return a146_0x46ec();}import{SaxesParser}from'saxes';const SHEET=[a146_0x25aeb1(0xc3),a146_0x25aeb1(0x164)],DRAWING=[a146_0x25aeb1(0x11a),a146_0x25aeb1(0xe1)],DRAWING_MAIN=['http://schemas.openxmlformats.org/drawingml/2006/main',a146_0x25aeb1(0x163)],OFFICE_RELS=[a146_0x25aeb1(0x118),a146_0x25aeb1(0xba)],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a146_0x25aeb1(0x115)],WPS=[a146_0x25aeb1(0xdc)],DEFAULT_NS=Object['fromEntries']([...['workbook',a146_0x25aeb1(0x129),'sheet','worksheet','sheetData',a146_0x25aeb1(0x162),'c','f','v',a146_0x25aeb1(0xc9),'drawing',a146_0x25aeb1(0xd7),a146_0x25aeb1(0x152),a146_0x25aeb1(0xd8),a146_0x25aeb1(0xda),'valueMetadata','bk','rc',a146_0x25aeb1(0x113)]['map'](_0x29cf2e=>[_0x29cf2e,SHEET]),...[a146_0x25aeb1(0xc5),'oneCellAnchor',a146_0x25aeb1(0xeb),a146_0x25aeb1(0xea),a146_0x25aeb1(0x14f),'to',a146_0x25aeb1(0x140),'colOff','rowOff',a146_0x25aeb1(0xf7),a146_0x25aeb1(0x12b),'nvPicPr',a146_0x25aeb1(0x161),a146_0x25aeb1(0xdd)][a146_0x25aeb1(0x111)](_0x44f1f5=>[_0x44f1f5,DRAWING]),...[a146_0x25aeb1(0x145),a146_0x25aeb1(0x144),'rv','rvStructures','s','k'][a146_0x25aeb1(0x111)](_0x3d9e6d=>[_0x3d9e6d,RICH]),['blip',DRAWING_MAIN],[a146_0x25aeb1(0x12c),RICH_RELS],[a146_0x25aeb1(0x10e),RICH_RELS],[a146_0x25aeb1(0xe0),PACKAGE],[a146_0x25aeb1(0x11d),PACKAGE],[a146_0x25aeb1(0xc2),WPS],[a146_0x25aeb1(0x13c),WPS]]),matches=(_0x41139e,_0x6aabb8,_0x2ca48a=DEFAULT_NS[_0x6aabb8]??[])=>_0x41139e[a146_0x25aeb1(0x15f)]===_0x6aabb8&&_0x2ca48a[a146_0x25aeb1(0xd2)](_0x41139e[a146_0x25aeb1(0xcf)]),children=(_0x56f9a1,_0x4149b6,_0x453577=DEFAULT_NS[_0x4149b6])=>_0x56f9a1[a146_0x25aeb1(0xe4)]['filter'](_0x17801f=>matches(_0x17801f,_0x4149b6,_0x453577)),chain=(_0x30b730,..._0xed6da7)=>_0xed6da7[a146_0x25aeb1(0x116)]((_0x901e6f,_0x77f06a)=>_0x901e6f[a146_0x25aeb1(0x125)](_0x4cdaae=>children(_0x4cdaae,_0x77f06a)),[_0x30b730]),relationshipTypes=_0x5b0587=>{const _0x4e2687=a146_0x25aeb1;if([_0x4e2687(0x13d),_0x4e2687(0x12d)]['includes'](_0x5b0587))return[_0x4e2687(0x150)+_0x5b0587];if(_0x5b0587==='richValueRel')return[_0x4e2687(0xf2)];if(_0x5b0587===_0x4e2687(0x13c)||_0x5b0587===_0x4e2687(0xc2))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x5b0587];return OFFICE_RELS[_0x4e2687(0x111)](_0x18933d=>_0x18933d+'/'+_0x5b0587);};function one(_0x359cb6,_0x4199cf){const _0xa818f1=a146_0x25aeb1;if(_0x359cb6[_0xa818f1(0x148)]!==0x1)throw Error(_0xa818f1(0x157)+_0x4199cf+'.');return _0x359cb6[0x0];}function a146_0x39a6(_0x4dba28,_0x4166ee){_0x4dba28=_0x4dba28-0xb8;const _0x46ecb4=a146_0x46ec();let _0x39a66a=_0x46ecb4[_0x4dba28];return _0x39a66a;}function integer(_0xef373b,_0x587111,_0x3b96d8=0x186a0){const _0x263d77=a146_0x25aeb1;if(!_0xef373b||!/^\d+$/[_0x263d77(0x10a)](_0xef373b)||!Number['isSafeInteger'](Number(_0xef373b))||Number(_0xef373b)>_0x3b96d8)throw Error(_0x263d77(0x10b)+_0x587111+'.');return Number(_0xef373b);}export function resolveWorksheetImages(_0x3ab62d,_0x319bb2,_0x37f464){const _0x3f0aea=a146_0x25aeb1;let _0x1208e2=0x0,_0x585edd=0x0,_0x1fb23a=0x0;const _0x1e7206=new Map(),_0x5dc382=_0x3e28e7=>{const _0x475a62=a146_0x39a6;if(_0x1e7206[_0x475a62(0xc7)](_0x3e28e7))return _0x1e7206[_0x475a62(0xf3)](_0x3e28e7);const _0x2d4356=_0x3ab62d['get'](_0x3e28e7);if(!_0x2d4356)throw Error(_0x475a62(0x102)+_0x3e28e7+'.');const _0x239183={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x32aa21=[_0x239183],_0x36f383=new SaxesParser({'xmlns':!![]}),_0x1d456a=()=>{const _0x4eeff7=_0x475a62;if(++_0x585edd>0x1e8480)throw Error(_0x4eeff7(0xd5));};_0x36f383['on'](_0x475a62(0x167),()=>{const _0xc9d90b=_0x475a62;throw Error(_0xc9d90b(0x159));}),_0x36f383['on'](_0x475a62(0x13a),_0x494e98=>{const _0x22cabb=_0x475a62;_0x1d456a();if(++_0x1208e2>0x7a120||_0x32aa21['length']>0x40)throw Error(_0x22cabb(0xfa));const _0x2c14c0={};for(const _0x1b04d3 of Object[_0x22cabb(0x123)](_0x494e98[_0x22cabb(0x11e)])){const _0x448351=OFFICE_RELS[_0x22cabb(0xd2)](_0x1b04d3[_0x22cabb(0xcf)])?'r:'+_0x1b04d3[_0x22cabb(0x101)]:_0x1b04d3[_0x22cabb(0xcf)]?'{'+_0x1b04d3[_0x22cabb(0xcf)]+'}'+_0x1b04d3[_0x22cabb(0x101)]:_0x1b04d3[_0x22cabb(0x101)];if(_0x448351 in _0x2c14c0)throw Error(_0x22cabb(0x13e));_0x2c14c0[_0x448351]=_0x1b04d3[_0x22cabb(0x130)];}const _0x4a303a={'name':_0x494e98[_0x22cabb(0x101)],'uri':_0x494e98[_0x22cabb(0xcf)],'attrs':_0x2c14c0,'children':[],'text':''};_0x32aa21['at'](-0x1)[_0x22cabb(0xe4)][_0x22cabb(0x11c)](_0x4a303a),_0x32aa21[_0x22cabb(0x11c)](_0x4a303a);}),_0x36f383['on'](_0x475a62(0xcb),_0x3fba02=>{const _0x4655cb=_0x475a62;_0x1d456a();const _0xf52ca2=_0x32aa21['at'](-0x1);_0xf52ca2[_0x4655cb(0xcb)]+=_0x3fba02;if(_0xf52ca2[_0x4655cb(0xcb)][_0x4655cb(0x148)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x36f383['on'](_0x475a62(0x135),()=>{const _0x5ad48a=_0x475a62;_0x1d456a(),_0x32aa21[_0x5ad48a(0x126)]();}),_0x36f383['on'](_0x475a62(0x15a),_0x205b97=>{throw _0x205b97;}),_0x36f383[_0x475a62(0x11b)](_0x2d4356[_0x475a62(0xf6)](_0x475a62(0x122)))['close']();const _0x2a2418=one(_0x239183['children'],_0x3e28e7);return _0x1e7206[_0x475a62(0x133)](_0x3e28e7,_0x2a2418),_0x2a2418;},_0x49cf41=new Map(),_0x4e1e10=_0x373c6b=>{const _0xfafd4f=a146_0x39a6;if(_0x49cf41[_0xfafd4f(0xc7)](_0x373c6b))return _0x49cf41[_0xfafd4f(0xf3)](_0x373c6b);const _0x38c773=a146_0x309951[_0xfafd4f(0xe2)]['join'](a146_0x309951[_0xfafd4f(0xe2)][_0xfafd4f(0xe9)](_0x373c6b),_0xfafd4f(0xe3),a146_0x309951['posix'][_0xfafd4f(0xf9)](_0x373c6b)+_0xfafd4f(0x14a));if(!_0x3ab62d[_0xfafd4f(0xc7)](_0x38c773))return[];const _0x10f0b3=new Set(),_0x310323=_0x5dc382(_0x38c773);if(!matches(_0x310323,_0xfafd4f(0xe0)))throw Error(_0xfafd4f(0x12a)+_0x38c773+'.');const _0x59a4e5=children(_0x310323,_0xfafd4f(0x11d))[_0xfafd4f(0x111)](_0x3a61d1=>{const _0x4d1431=_0xfafd4f,{Id:_0x1d295d,Type:_0x354cfa,Target:_0xd66461,TargetMode:_0x56578b}=_0x3a61d1[_0x4d1431(0x155)];if(!_0x1d295d||_0x10f0b3['has'](_0x1d295d)||!_0x354cfa)throw Error(_0x4d1431(0x15b)+_0x38c773+'.');return _0x10f0b3[_0x4d1431(0xde)](_0x1d295d),{'id':_0x1d295d,'type':_0x354cfa,'target':_0xd66461??'','mode':_0x56578b};});return _0x49cf41['set'](_0x373c6b,_0x59a4e5),_0x59a4e5;},_0x1b01a4=(_0x205e7f,_0x4402ba)=>{const _0x1fff29=a146_0x39a6,{target:_0x915ede,mode:_0x176fb5}=_0x4402ba;if(_0x176fb5&&_0x176fb5!==_0x1fff29(0xce))throw Error(_0x1fff29(0x11f)+_0x205e7f+'.');if(!_0x915ede||_0x915ede[_0x1fff29(0xd2)]('\x5c')||/[?#%\x00-\x20]/[_0x1fff29(0x10a)](_0x915ede)||/^[a-z][a-z0-9+.-]*:/i[_0x1fff29(0x10a)](_0x915ede)||_0x915ede[_0x1fff29(0xf1)]('//'))throw Error(_0x1fff29(0xd0)+_0x205e7f+'.');const _0x529f6b=_0x915ede['startsWith']('/')?_0x915ede[_0x1fff29(0xe7)](0x1):a146_0x309951[_0x1fff29(0xe2)][_0x1fff29(0x131)](a146_0x309951[_0x1fff29(0xe2)][_0x1fff29(0x121)](a146_0x309951['posix'][_0x1fff29(0xe9)](_0x205e7f),_0x915ede));if(_0x529f6b[_0x1fff29(0xf1)](_0x1fff29(0x12f))||_0x529f6b==='..'||!_0x529f6b[_0x1fff29(0xf1)](_0x1fff29(0x112)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x205e7f+'.');return _0x529f6b;},_0x515e30=(_0x11ca29,_0x5363a9,_0x38e5a3)=>{const _0xc8b318=a146_0x39a6,_0x584489=_0x4e1e10(_0x11ca29)[_0xc8b318(0xfc)](_0x2cbc5d=>_0x2cbc5d['id']===_0x5363a9&&relationshipTypes(_0x38e5a3)['includes'](_0x2cbc5d[_0xc8b318(0x139)]));if(_0x584489[_0xc8b318(0x148)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x38e5a3+_0xc8b318(0x146)+_0x11ca29+'.');return _0x1b01a4(_0x11ca29,_0x584489[0x0]);},_0xa15584=(_0xc4bb1,_0x44644d)=>{const _0x202a72=a146_0x39a6,_0x13c3a3=_0x4e1e10(_0xc4bb1)[_0x202a72(0xfc)](_0x557172=>relationshipTypes(_0x44644d)['includes'](_0x557172[_0x202a72(0x139)]));if(_0x13c3a3[_0x202a72(0x148)]!==0x1)throw Error(_0x202a72(0x157)+_0x44644d+'\x20relationship\x20in\x20'+_0xc4bb1+'.');return _0x1b01a4(_0xc4bb1,_0x13c3a3[0x0]);},_0x269791=_0x3f0aea(0x14d),_0x5c48fb=_0x5dc382(_0x269791);if(!matches(_0x5c48fb,_0x3f0aea(0xfd)))throw Error(_0x3f0aea(0xf0));const _0x17242c=one(chain(_0x5c48fb,'sheets','sheet')[_0x3f0aea(0xfc)](_0x259b42=>_0x259b42[_0x3f0aea(0x155)][_0x3f0aea(0x15f)]===_0x319bb2),'worksheet'),_0xb2d65a=_0x515e30(_0x269791,_0x17242c[_0x3f0aea(0x155)][_0x3f0aea(0x160)],'worksheet'),_0x230141=_0x5dc382(_0xb2d65a);if(!matches(_0x230141,_0x3f0aea(0xc6)))throw Error(_0x3f0aea(0xec));const _0x12b36f=chain(_0x230141,_0x3f0aea(0x14b),_0x3f0aea(0x162)),_0x152655=new Map(),_0x145f6f=new Set(_0x12b36f[_0x3f0aea(0xfc)](_0x20bc11=>_0x20bc11[_0x3f0aea(0x155)][_0x3f0aea(0x124)]==='1'||_0x20bc11[_0x3f0aea(0x155)][_0x3f0aea(0x124)]==='true')[_0x3f0aea(0x111)](_0x386804=>integer(_0x386804[_0x3f0aea(0x155)]['r'],_0x3f0aea(0xc1)))),_0x8bdcd=_0xdc79b4=>{const _0x13dcd7=_0x3f0aea,_0x1a5cfa=_0xdc79b4===undefined?0xf:Number(_0xdc79b4);if(!Number[_0x13dcd7(0x127)](_0x1a5cfa)||_0x1a5cfa<=0x0||_0x1a5cfa>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x13dcd7(0x106)](_0x1a5cfa*0x319c);},_0x4c05d1=_0x8bdcd(children(_0x230141,_0x3f0aea(0xc9))[0x0]?.[_0x3f0aea(0x155)][_0x3f0aea(0x156)]);for(const _0x1cf6f9 of _0x12b36f)if(_0x1cf6f9[_0x3f0aea(0x155)]['ht']!==undefined)_0x152655[_0x3f0aea(0x133)](integer(_0x1cf6f9[_0x3f0aea(0x155)]['r'],'image\x20row\x20height\x20coordinate'),_0x8bdcd(_0x1cf6f9['attrs']['ht']));const _0x29068d=[],_0x3fbb56=_0x20b498=>{const _0x341f56=_0x3f0aea;if(!_0x37f464[_0x341f56(0xc7)](_0x20b498[_0x341f56(0x140)]))return;if(++_0x1fb23a>0x2710)throw Error(_0x341f56(0x151));_0x29068d[_0x341f56(0x11c)](_0x145f6f[_0x341f56(0xc7)](_0x20b498[_0x341f56(0x162)])?{..._0x20b498,'hiddenRow':!![]}:_0x20b498);},_0x3f3579=_0x5e2a8d=>({'row':integer(one(children(_0x5e2a8d,_0x3f0aea(0x162),DRAWING),'anchor\x20row')[_0x3f0aea(0xcb)],_0x3f0aea(0x137),0x1869f)+0x1,'col':integer(one(children(_0x5e2a8d,_0x3f0aea(0x140)),'anchor\x20column')[_0x3f0aea(0xcb)],_0x3f0aea(0xef),0xff)+0x1});for(const _0x1d5697 of children(_0x230141,_0x3f0aea(0x141))){const _0x3de3d5=_0x515e30(_0xb2d65a,_0x1d5697[_0x3f0aea(0x155)]['r:id'],_0x3f0aea(0x141)),_0x3cb0a0=_0x5dc382(_0x3de3d5);if(!matches(_0x3cb0a0,_0x3f0aea(0xc5)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x34f26a of _0x3cb0a0[_0x3f0aea(0xe4)]){if(!['oneCellAnchor',_0x3f0aea(0xeb),_0x3f0aea(0xea)]['some'](_0x2cea12=>matches(_0x34f26a,_0x2cea12)))continue;if(_0x34f26a['name']===_0x3f0aea(0xea))throw Error(_0x3f0aea(0x153)+_0x319bb2+'.');const _0x28b248=_0x3f3579(one(children(_0x34f26a,_0x3f0aea(0x14f)),'anchor\x20start'));if(!_0x37f464[_0x3f0aea(0xc7)](_0x28b248[_0x3f0aea(0x140)]))continue;let _0x8909fe;const _0xdf1170=one(children(_0x34f26a,_0x3f0aea(0x14f)),_0x3f0aea(0xe8)),_0x432522=integer(one(children(_0xdf1170,_0x3f0aea(0x108)),'anchor\x20start\x20offset')[_0x3f0aea(0xcb)],_0x3f0aea(0x154),Number[_0x3f0aea(0x107)]),_0x3a9888=_0x152655[_0x3f0aea(0xf3)](_0x28b248[_0x3f0aea(0x162)])??_0x4c05d1;if(_0x432522>=_0x3a9888)throw Error(_0x3f0aea(0xc4)+_0x28b248['row']+'.');if(_0x34f26a['name']===_0x3f0aea(0x15d)){const _0x3584d5=one(children(_0x34f26a,'ext'),_0x3f0aea(0x13b)),_0x53be63=integer(_0x3584d5['attrs']['cy'],_0x3f0aea(0x14c),Number[_0x3f0aea(0x107)]);if(!_0x53be63||_0x432522+_0x53be63>_0x3a9888)_0x8909fe=_0x3f0aea(0x149);}if(_0x34f26a[_0x3f0aea(0x15f)]===_0x3f0aea(0xeb)){const _0x190a1a=one(children(_0x34f26a,'to'),_0x3f0aea(0xe5)),_0x1565a1=_0x3f3579(_0x190a1a),_0x54f70e=integer(one(children(_0x190a1a,_0x3f0aea(0x108)),_0x3f0aea(0x104))[_0x3f0aea(0xcb)],'anchor\x20end\x20offset',Number[_0x3f0aea(0x107)]),_0x5db567=_0x152655[_0x3f0aea(0xf3)](_0x1565a1[_0x3f0aea(0x162)])??_0x4c05d1;if(_0x54f70e>_0x5db567||_0x1565a1[_0x3f0aea(0x162)]===_0x28b248['row']&&_0x54f70e<=_0x432522)_0x8909fe='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x1565a1[_0x3f0aea(0x162)]<_0x28b248['row']||_0x1565a1[_0x3f0aea(0x162)]>_0x28b248['row']+0x1||_0x1565a1[_0x3f0aea(0x162)]===_0x28b248['row']+0x1&&_0x54f70e!==0x0)_0x8909fe=_0x3f0aea(0x149);}const _0x5362e8=chain(_0x34f26a,_0x3f0aea(0x12b),'blipFill',_0x3f0aea(0xbd));for(const _0x1a5e4e of _0x5362e8){if(_0x1a5e4e['attrs'][_0x3f0aea(0xee)])throw Error(_0x3f0aea(0xd3));_0x3fbb56({..._0x28b248,'media':[_0x515e30(_0x3de3d5,_0x1a5e4e['attrs'][_0x3f0aea(0x10d)],_0x3f0aea(0x10f))],..._0x8909fe?{'error':_0x8909fe}:{}});}if(!_0x5362e8[_0x3f0aea(0x148)])_0x3fbb56({..._0x28b248,'media':[],'error':_0x3f0aea(0xd1)});}}const _0x3ae3fc=_0x165c5b=>{const _0x12a8bd=_0x3f0aea,_0x226611=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x109)));if(!matches(_0x226611,'metadata'))throw Error('Unsupported\x20metadata\x20namespace.');const _0x2c4772=integer(_0x165c5b['attrs']['vm'],'value\x20metadata\x20index');if(!_0x2c4772)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x23b0fe=children(one(children(_0x226611,_0x12a8bd(0xc8)),_0x12a8bd(0xc8)),'bk')[_0x2c4772-0x1];if(!_0x23b0fe)throw Error(_0x12a8bd(0xe6));const _0x4583cc=one(children(_0x23b0fe,'rc'),'rich\x20metadata\x20record'),_0x183de1=integer(_0x4583cc[_0x12a8bd(0x155)]['t'],_0x12a8bd(0x10c)),_0x5538dc=children(one(children(_0x226611,'metadataTypes'),_0x12a8bd(0x165)),_0x12a8bd(0xd8))[_0x183de1-0x1];if(!_0x183de1||_0x5538dc?.['attrs'][_0x12a8bd(0x15f)]!==_0x12a8bd(0xdb))throw Error(_0x12a8bd(0xd4));const _0x59c072=one(children(_0x226611,_0x12a8bd(0xda))[_0x12a8bd(0xfc)](_0x40367c=>_0x40367c[_0x12a8bd(0x155)][_0x12a8bd(0x15f)]==='XLRICHVALUE'),'rich\x20future\x20metadata'),_0x2fc66a=children(_0x59c072,'bk')[integer(_0x4583cc[_0x12a8bd(0x155)]['v'],_0x12a8bd(0xb9))];if(!_0x2fc66a)throw Error(_0x12a8bd(0xbf));const _0x17d392=chain(_0x2fc66a,_0x12a8bd(0x113))['flatMap'](_0x39fb2d=>children(_0x39fb2d,_0x12a8bd(0xf7),SHEET))[_0x12a8bd(0xfc)](_0x29f830=>_0x29f830[_0x12a8bd(0x155)][_0x12a8bd(0xcf)]?.[_0x12a8bd(0x136)]()===_0x12a8bd(0x114)),_0x1b81ce=integer(one(_0x17d392[_0x12a8bd(0x125)](_0x4f7e5b=>children(_0x4f7e5b,_0x12a8bd(0x145))),'rich\x20value\x20binding')[_0x12a8bd(0x155)]['i'],_0x12a8bd(0x138)),_0x12733c=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x13d)));if(!matches(_0x12733c,_0x12a8bd(0x144)))throw Error(_0x12a8bd(0x100));const _0x516d41=children(_0x12733c,'rv')[_0x1b81ce];if(!_0x516d41)throw Error(_0x12a8bd(0x143));const _0x7c1e99=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x12d)));if(!matches(_0x7c1e99,_0x12a8bd(0x15e)))throw Error(_0x12a8bd(0xbc));const _0x53454f=children(_0x7c1e99,'s')[integer(_0x516d41[_0x12a8bd(0x155)]['s'],_0x12a8bd(0x103))];if(!_0x53454f||_0x53454f[_0x12a8bd(0x155)]['t']!==_0x12a8bd(0xdf))throw Error(_0x12a8bd(0xcd));const _0x3ab281=children(_0x53454f,'k'),_0x3d11a8=_0x3ab281[_0x12a8bd(0x111)]((_0x31a9ea,_0x32da8e)=>_0x31a9ea['attrs']['n']==='_rvRel:LocalImageIdentifier'?_0x32da8e:-0x1)[_0x12a8bd(0xfc)](_0x4f3449=>_0x4f3449>=0x0);if(_0x3d11a8[_0x12a8bd(0x148)]!==0x1)throw Error(_0x12a8bd(0x158));const _0x48747f=children(_0x516d41,'v',RICH)[_0x3d11a8[0x0]];if(!_0x48747f)throw Error(_0x12a8bd(0x12e));const _0x3b81ce=_0xa15584(_0x269791,_0x12a8bd(0x166)),_0x7d4379=_0x5dc382(_0x3b81ce);if(!matches(_0x7d4379,_0x12a8bd(0x12c)))throw Error(_0x12a8bd(0x15c));const _0x4a1769=children(_0x7d4379,_0x12a8bd(0x10e))[integer(_0x48747f[_0x12a8bd(0xcb)],_0x12a8bd(0x117))];if(!_0x4a1769)throw Error(_0x12a8bd(0xd9));return _0x515e30(_0x3b81ce,_0x4a1769[_0x12a8bd(0x155)][_0x12a8bd(0x160)],_0x12a8bd(0x10f));};let _0x2ca095;const _0x5924a4=_0x20ab03=>{const _0x517ed8=_0x3f0aea;if(!_0x2ca095){_0x2ca095=new Map();const _0x3f8a39=_0x4e1e10(_0x269791)[_0x517ed8(0xfc)](_0x506e60=>[...relationshipTypes(_0x517ed8(0x13c)),...relationshipTypes(_0x517ed8(0xc2))][_0x517ed8(0xd2)](_0x506e60[_0x517ed8(0x139)]));if(!_0x3f8a39['length']&&_0x3ab62d[_0x517ed8(0xc7)]('xl/cellimages.xml'))_0x3f8a39[_0x517ed8(0x11c)]({'id':'','type':'','target':_0x517ed8(0xfb)});if(_0x3f8a39[_0x517ed8(0x148)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x2f2c31=_0x1b01a4(_0x269791,_0x3f8a39[0x0]),_0x5c4ddb=_0x5dc382(_0x2f2c31);if(!matches(_0x5c4ddb,'cellImages'))throw Error(_0x517ed8(0xf5));for(const _0x5a67a1 of children(_0x5c4ddb,_0x517ed8(0x13c))){const _0x231ff2=one(chain(_0x5a67a1,_0x517ed8(0x12b),_0x517ed8(0x142),_0x517ed8(0x161)),_0x517ed8(0x147))[_0x517ed8(0x155)][_0x517ed8(0x15f)];if(!_0x231ff2||_0x2ca095[_0x517ed8(0xc7)](_0x231ff2))throw Error(_0x517ed8(0xcc));const _0x110d56=one(chain(_0x5a67a1,_0x517ed8(0x12b),'blipFill','blip'),'WPS\x20image\x20blip');if(_0x110d56[_0x517ed8(0x155)][_0x517ed8(0xee)])throw Error(_0x517ed8(0xbb));_0x2ca095[_0x517ed8(0x133)](_0x231ff2,_0x515e30(_0x2f2c31,_0x110d56[_0x517ed8(0x155)][_0x517ed8(0x10d)],_0x517ed8(0x10f)));}}const _0x526a01=_0x2ca095['get'](_0x20ab03);if(!_0x526a01)throw Error(_0x517ed8(0xbe)+_0x20ab03+'.');return _0x526a01;},_0x47f335=new Set();for(const _0x4f65c5 of _0x12b36f[_0x3f0aea(0x125)](_0x9cb671=>children(_0x9cb671,'c'))){const _0x123477=/^([A-Z]+)([1-9]\d*)$/[_0x3f0aea(0xfe)](_0x4f65c5[_0x3f0aea(0x155)]['r']??'');if(!_0x123477)continue;let _0x5838d3=0x0;for(const _0x54b8d4 of _0x123477[0x1])_0x5838d3=_0x5838d3*0x1a+_0x54b8d4['charCodeAt'](0x0)-0x40;if(!_0x37f464['has'](_0x5838d3))continue;const _0x5ece83=integer(_0x123477[0x2],'image\x20cell\x20row');if(_0x47f335[_0x3f0aea(0xc7)](_0x4f65c5[_0x3f0aea(0x155)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x47f335['add'](_0x4f65c5[_0x3f0aea(0x155)]['r']);const _0x59b3d3=children(_0x4f65c5,'f');if(!_0x4f65c5[_0x3f0aea(0x155)]['vm']&&!_0x59b3d3[_0x3f0aea(0x148)])continue;try{if(_0x5ece83<0x1||_0x5838d3>0x100)throw Error(_0x3f0aea(0xed));let _0x376da4;if(_0x4f65c5['attrs']['vm']){if(_0x59b3d3[_0x3f0aea(0x148)])throw Error(_0x3f0aea(0x128));if(_0x4f65c5[_0x3f0aea(0x155)]['t']!=='e'||children(_0x4f65c5,'v')[_0x3f0aea(0x148)]!==0x1||children(_0x4f65c5,'v')[0x0][_0x3f0aea(0xcb)]!=='#VALUE!')throw Error(_0x3f0aea(0xf4));_0x376da4=_0x3ae3fc(_0x4f65c5);}else{const _0x19e883=one(_0x59b3d3,_0x3f0aea(0x105));if(_0x19e883['attrs']['t']===_0x3f0aea(0x134)||_0x19e883[_0x3f0aea(0x155)]['si'])throw Error(_0x3f0aea(0x132));const _0x6da5cb=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x3f0aea(0xfe)](_0x19e883['text']);if(!_0x6da5cb)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x376da4=_0x5924a4(_0x6da5cb[0x1][_0x3f0aea(0xf8)](/""/g,'\x22'));}_0x3fbb56({'row':_0x5ece83,'col':_0x5838d3,'media':[_0x376da4],'nativeCell':!![]});}catch(_0x168f25){_0x3fbb56({'row':_0x5ece83,'col':_0x5838d3,'media':[],'nativeCell':!![],'error':_0x168f25[_0x3f0aea(0xff)]});}}return _0x29068d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3b73c8,_0x368f2c){const _0x5a59a1=a147_0x4f3b,_0xfcf08a=_0x3b73c8();while(!![]){try{const _0x5e1a9f=parseInt(_0x5a59a1(0xa8))/0x1*(parseInt(_0x5a59a1(0xe8))/0x2)+-parseInt(_0x5a59a1(0xf5))/0x3+parseInt(_0x5a59a1(0xfb))/0x4+-parseInt(_0x5a59a1(0xe7))/0x5+parseInt(_0x5a59a1(0xc5))/0x6*(-parseInt(_0x5a59a1(0x109))/0x7)+parseInt(_0x5a59a1(0xd8))/0x8*(-parseInt(_0x5a59a1(0xe4))/0x9)+parseInt(_0x5a59a1(0xca))/0xa;if(_0x5e1a9f===_0x368f2c)break;else _0xfcf08a['push'](_0xfcf08a['shift']());}catch(_0x2b85cf){_0xfcf08a['push'](_0xfcf08a['shift']());}}}(a147_0x45c3,0x254a3));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x1d21a3,_0x3c4edd){const _0x259f7c=a147_0x4f3b;if(!_0x3c4edd[_0x259f7c(0xc4)]?.[_0x259f7c(0xc1)])return;const _0x41a2ec=_0x1d21a3[_0x259f7c(0xfe)];if(!_0x41a2ec||_0x41a2ec[_0x259f7c(0x100)]!==0x1||_0x41a2ec[_0x259f7c(0xf2)]!==_0x259f7c(0xe1)||_0x41a2ec[_0x259f7c(0xda)]!==0xa00000||_0x41a2ec[_0x259f7c(0xb1)]!==0x2625a00||!Array[_0x259f7c(0xf4)](_0x41a2ec[_0x259f7c(0xf3)])||![_0x259f7c(0xe0),_0x259f7c(0xb3),'image/gif'][_0x259f7c(0xa6)](_0x2c9e8f=>_0x41a2ec[_0x259f7c(0xf3)][_0x259f7c(0xe5)](_0x2c9e8f)))throw Error(_0x259f7c(0xb0));}export function imageObjectValue(_0x71c41f,_0x40a7e9,_0x47ff14){const _0x54fbfb=a147_0x4f3b,_0x4ca69d=createHash(_0x54fbfb(0xe1))[_0x54fbfb(0xaa)](JSON['stringify']([_0x71c41f[_0x54fbfb(0xde)],_0x71c41f[_0x54fbfb(0xe2)],_0x71c41f['datasetCode'],_0x40a7e9]))[_0x54fbfb(0x107)](_0x54fbfb(0xab)),_0x2c0f38={'image/png':_0x54fbfb(0xae),'image/jpeg':_0x54fbfb(0xe3),'image/gif':'gif'}[_0x47ff14[_0x54fbfb(0xd1)]];if(!_0x2c0f38||!/^[0-9a-f]{64}$/[_0x54fbfb(0xf7)](_0x47ff14[_0x54fbfb(0xff)])||!Number[_0x54fbfb(0xb7)](_0x47ff14[_0x54fbfb(0xcd)])||_0x47ff14[_0x54fbfb(0xcd)]<=0x0||_0x47ff14[_0x54fbfb(0xcd)]>0xa00000)throw Error('Invalid\x20image\x20media\x20descriptor.');const _0x56782e=_0x47ff14[_0x54fbfb(0xff)]+'.'+_0x2c0f38;return{'key':_0x54fbfb(0xac)+_0x4ca69d+'/'+_0x56782e,'name':_0x56782e,'type':_0x47ff14['type'],'size':_0x47ff14[_0x54fbfb(0xcd)]};}export function bindImageManifest(_0x5323d5,_0x1533a0,_0x28c781){const _0x23fe96=a147_0x4f3b,_0x263027=new Map(_0x5323d5[_0x23fe96(0xc4)]?.['map'](_0x36f644=>[_0x36f644['contentHash'],_0x36f644])),_0x2c6791=new Map(_0x5323d5[_0x23fe96(0xc2)]?.[_0x23fe96(0xad)](_0x446c11=>[_0x446c11[_0x23fe96(0xe9)]+':'+_0x446c11[_0x23fe96(0xbe)],_0x446c11[_0x23fe96(0xbf)]]));return{..._0x5323d5,'rows':_0x5323d5[_0x23fe96(0xb6)]['map'](_0x23f209=>({..._0x23f209,'values':Object['fromEntries'](Object[_0x23fe96(0xf9)](_0x23f209[_0x23fe96(0x106)])[_0x23fe96(0xad)](([_0x17687d,_0x302749])=>{const _0x3bb7be=_0x23fe96,_0x47730a=_0x2c6791['get'](_0x23f209[_0x3bb7be(0xe9)]+':'+_0x17687d);return[_0x17687d,_0x47730a?_0x47730a[_0x3bb7be(0xad)](_0x246a0e=>{const _0x346914=_0x3bb7be,_0x4bd253=_0x263027[_0x346914(0xd4)](_0x246a0e);if(!_0x4bd253)throw Error(_0x346914(0xc6));const _0x3e2562=imageObjectValue(_0x1533a0,_0x28c781,_0x4bd253);return _0x5323d5[_0x346914(0x105)]?.[_0x346914(0xe5)](_0x17687d)?{'fileName':_0x3e2562[_0x346914(0xb2)],'filePath':_0x3e2562[_0x346914(0xcc)]}:_0x3e2562;}):_0x302749];}))}))};}function a147_0x4f3b(_0x9e1582,_0x3c26fc){_0x9e1582=_0x9e1582-0xa4;const _0x45c3e8=a147_0x45c3();let _0x4f3b56=_0x45c3e8[_0x9e1582];return _0x4f3b56;}async function exists(_0x602feb){const _0x2569ea=a147_0x4f3b;try{return await lstat(_0x602feb),!![];}catch(_0x236e0c){if(_0x236e0c[_0x2569ea(0xd2)]===_0x2569ea(0xfa))return![];throw _0x236e0c;}}export async function runImageExcelImport(_0x2dc26c){const _0x3e0847=a147_0x4f3b;assertImportContract(_0x2dc26c['contract'],_0x2dc26c['appCode'],_0x2dc26c[_0x3e0847(0xdc)]),assertImageImportCapability(_0x2dc26c[_0x3e0847(0xdf)],_0x2dc26c[_0x3e0847(0xd0)]);if(!Number['isInteger'](_0x2dc26c[_0x3e0847(0xc8)])||_0x2dc26c[_0x3e0847(0xc8)]<0x1||_0x2dc26c[_0x3e0847(0xc8)]>_0x2dc26c[_0x3e0847(0xdf)][_0x3e0847(0xd9)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x2dc26c['manifest']['errors']['length']||!_0x2dc26c[_0x3e0847(0xd0)][_0x3e0847(0xb6)][_0x3e0847(0xc1)])throw Error(_0x3e0847(0xef));const _0xcd3e0c=await resolveImportOutputPath(_0x2dc26c[_0x3e0847(0x103)]),_0x4c9e7d=await resolveImportOutputPath(_0x2dc26c[_0x3e0847(0xbd)]),_0xd531db=await resolveImportOutputPath(_0xcd3e0c+_0x3e0847(0xb9)),_0x4f8e01=await Promise[_0x3e0847(0xe6)]([_0xd531db,_0xd531db+_0x3e0847(0x108),_0xd531db+_0x3e0847(0xd7),..._0x2dc26c[_0x3e0847(0xc3)]??[]][_0x3e0847(0xad)](resolveImportOutputPath));for(const _0xc5d33f of[_0xcd3e0c,_0x4c9e7d,_0xcd3e0c+'.lock',_0xcd3e0c+_0x3e0847(0xd7)])await resolveImportOutputPath(_0xc5d33f);assertImportPaths(_0xcd3e0c,_0x4c9e7d,_0x4f8e01);const {contract:_0x3aae88,manifest:_0x202958}=_0x2dc26c,_0x5928fa=_0x202958[_0x3e0847(0xc4)]??[];if(new Set(_0x5928fa[_0x3e0847(0xad)](_0x15def1=>_0x15def1[_0x3e0847(0xff)]))[_0x3e0847(0xcd)]!==_0x5928fa[_0x3e0847(0xc1)]||_0x5928fa[_0x3e0847(0x101)]((_0x14070e,_0xa9b0a2)=>_0x14070e+_0xa9b0a2[_0x3e0847(0xcd)],0x0)>0x32*0x400*0x400||(_0x202958[_0x3e0847(0xc2)]??[])[_0x3e0847(0x101)]((_0x38e16a,_0x344766)=>_0x38e16a+_0x344766[_0x3e0847(0xbf)]['length'],0x0)>0x2710)throw Error(_0x3e0847(0xc7));for(const _0x45a0b8 of _0x5928fa)if(_0x45a0b8[_0x3e0847(0xcd)]!==_0x45a0b8['bytes'][_0x3e0847(0xc1)]||createHash(_0x3e0847(0xe1))[_0x3e0847(0xaa)](_0x45a0b8[_0x3e0847(0xa9)])[_0x3e0847(0x107)](_0x3e0847(0xab))!==_0x45a0b8[_0x3e0847(0xff)])throw Error(_0x3e0847(0xec));previewImportBatchCount(bindImageManifest(_0x202958,_0x3aae88,'00000000-0000-4000-8000-000000000000'),_0x3aae88,_0x2dc26c['batchSize']);const _0x59df59={'appCode':_0x2dc26c[_0x3e0847(0xe2)],'datasetCode':_0x2dc26c[_0x3e0847(0xdc)],'runtimeDomain':_0x2dc26c['runtimeDomain'],'actorId':_0x3aae88['actorId'],'fileHash':_0x202958[_0x3e0847(0xcf)],'mappingHash':_0x202958[_0x3e0847(0xee)],'schemaHash':_0x202958[_0x3e0847(0xeb)],'remoteSchemaHash':_0x3aae88[_0x3e0847(0xbc)],'strategy':_0x3aae88[_0x3e0847(0xaf)],'schemaVersion':_0x3aae88[_0x3e0847(0xa4)],'batchSize':_0x2dc26c['batchSize'],'maxBatchBytes':_0x3aae88['maxBatchBytes'],'sheet':_0x202958[_0x3e0847(0xb4)],'parserVersion':_0x202958[_0x3e0847(0x104)],'imageFields':_0x202958[_0x3e0847(0xdd)],'cells':_0x202958['imageCells'],..._0x202958['uploadFields']?.[_0x3e0847(0xc1)]?{'uploadFields':_0x202958[_0x3e0847(0x105)]}:{},'media':_0x5928fa[_0x3e0847(0xad)](({contentHash:_0x3aa622,type:_0x4121c6,size:_0x5493c1})=>({'contentHash':_0x3aa622,'type':_0x4121c6,'size':_0x5493c1})),'rows':_0x202958[_0x3e0847(0xb6)]},_0x1d30a8=await acquireLock(_0xcd3e0c);try{let _0x30c4e0;if(_0x2dc26c[_0x3e0847(0xfc)]){try{_0x30c4e0=JSON[_0x3e0847(0xc9)](await readFile(_0xcd3e0c,'utf8'));}catch{throw Error(_0x3e0847(0xd3));}if(_0x30c4e0[_0x3e0847(0x100)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3e0847(0xf7)](_0x30c4e0[_0x3e0847(0xd5)])||canonical(_0x30c4e0['binding'])!==canonical(_0x59df59)||!['media',_0x3e0847(0xba),_0x3e0847(0xdb),'completed'][_0x3e0847(0xe5)](_0x30c4e0[_0x3e0847(0xb8)])||!Array[_0x3e0847(0xf4)](_0x30c4e0[_0x3e0847(0xc4)])||_0x30c4e0['media']['length']!==_0x5928fa[_0x3e0847(0xc1)]||_0x30c4e0[_0x3e0847(0xc4)][_0x3e0847(0xf6)]((_0x55742f,_0x1f278c)=>_0x55742f['hash']!==_0x5928fa[_0x1f278c]['contentHash']||![_0x3e0847(0xa7),_0x3e0847(0xf8)][_0x3e0847(0xe5)](_0x55742f[_0x3e0847(0xce)])))throw Error(_0x3e0847(0xd6));if([_0x3e0847(0xdb),'completed'][_0x3e0847(0xe5)](_0x30c4e0[_0x3e0847(0xb8)])&&!await exists(_0xd531db))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x30c4e0[_0x3e0847(0xb8)]==='media'&&await exists(_0xd531db))throw Error(_0x3e0847(0xc0));}else{if(await exists(_0xcd3e0c)||await exists(_0xd531db))throw Error(_0x3e0847(0xf1));_0x30c4e0={'version':0x3,'importId':randomUUID(),'binding':_0x59df59,'phase':_0x3e0847(0xc4),'media':_0x5928fa[_0x3e0847(0xad)](_0x2a04a8=>({'hash':_0x2a04a8['contentHash'],'status':_0x3e0847(0xa7)}))},await saveImportJson(_0xcd3e0c,_0x30c4e0);}const _0x42f59e=(_0x4c7c61,_0x2a9375)=>{const _0x5c5421=_0x3e0847;if(!_0x4c7c61||_0x4c7c61[_0x5c5421(0xff)]!==_0x2a9375['contentHash'])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x4c7c61[_0x5c5421(0xce)]==='missing')return undefined;const _0x3fabe9=imageObjectValue(_0x3aae88,_0x30c4e0[_0x5c5421(0xd5)],_0x2a9375);if(_0x4c7c61['status']!=='succeeded'||_0x4c7c61['filePath']!==_0x3fabe9[_0x5c5421(0xcc)]||_0x4c7c61['fileName']!==_0x3fabe9[_0x5c5421(0xb2)]||_0x4c7c61[_0x5c5421(0xd1)]!==_0x3fabe9[_0x5c5421(0xd1)]||_0x4c7c61[_0x5c5421(0xcd)]!==_0x3fabe9[_0x5c5421(0xcd)])throw Error(_0x5c5421(0xa5));return _0x3fabe9;};for(let _0x129390=0x0;_0x129390<_0x5928fa[_0x3e0847(0xc1)];_0x129390++){const _0x1d7749=_0x5928fa[_0x129390],_0x1bb9b9=_0x30c4e0[_0x3e0847(0xc4)][_0x129390],_0x3f8c2e=imageObjectValue(_0x3aae88,_0x30c4e0['importId'],_0x1d7749);if(_0x1bb9b9['status']===_0x3e0847(0xf8)&&canonical(_0x1bb9b9[_0x3e0847(0x102)])!==canonical(_0x3f8c2e))throw Error('Completed\x20image\x20checkpoint\x20value\x20changed.');let _0x3728df;if(_0x2dc26c[_0x3e0847(0xfc)]||_0x1bb9b9[_0x3e0847(0xce)]===_0x3e0847(0xf8))_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df&&_0x1bb9b9[_0x3e0847(0xce)]===_0x3e0847(0xf8))throw Error(_0x3e0847(0xfd));if(!_0x3728df){try{_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xea)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);}catch(_0x4248a5){_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df)throw Error(_0x3e0847(0xb5));}if(!_0x3728df)_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df)throw Error(_0x3e0847(0xcb));}_0x1bb9b9[_0x3e0847(0xce)]=_0x3e0847(0xf8),_0x1bb9b9[_0x3e0847(0x102)]=_0x3728df,await saveImportJson(_0xcd3e0c,_0x30c4e0);}const _0x2247e2=bindImageManifest(_0x202958,_0x3aae88,_0x30c4e0[_0x3e0847(0xd5)]),_0x3bcb4d=_0x30c4e0[_0x3e0847(0xb8)]===_0x3e0847(0xba)?await exists(_0xd531db):_0x30c4e0[_0x3e0847(0xb8)]!==_0x3e0847(0xc4);_0x30c4e0['phase']===_0x3e0847(0xc4)&&(_0x30c4e0['phase']=_0x3e0847(0xba),await saveImportJson(_0xcd3e0c,_0x30c4e0));const _0x19231f={..._0x2dc26c,'manifest':_0x2247e2,'checkpoint':_0xd531db,'report':_0x4c9e7d,'resume':_0x3bcb4d,'onCheckpointReady':async()=>{const _0x58cb88=_0x3e0847;_0x30c4e0[_0x58cb88(0xb8)]=_0x58cb88(0xdb),await saveImportJson(_0xcd3e0c,_0x30c4e0);}},_0x1a8e0d=_0x3aae88[_0x3e0847(0xa4)]===0x2?await runAutoIdExcelImport({..._0x19231f,'reconcileImageConflicts':_0x2dc26c['resume']===!![]&&_0x3bcb4d}):await runExcelImport(_0x19231f);return _0x30c4e0[_0x3e0847(0xb8)]=_0x3e0847(0xed),await saveImportJson(_0xcd3e0c,_0x30c4e0),{..._0x1a8e0d,'checkpoint':_0xcd3e0c,'imageCount':_0x202958[_0x3e0847(0xc2)]?.[_0x3e0847(0x101)]((_0x1f0dff,_0x3f8c8f)=>_0x1f0dff+_0x3f8c8f[_0x3e0847(0xbf)][_0x3e0847(0xc1)],0x0)??0x0,'uniqueImages':_0x5928fa[_0x3e0847(0xc1)]};}finally{await _0x1d30a8();}}function a147_0x45c3(){const _0x43bc0c=['imageImport','contentHash','version','reduce','value','checkpoint','parserVersion','uploadFields','values','digest','.lock','77ygSEVe','schemaVersion','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','every','pending','2CJxqSh','bytes','update','hex','dataset-import/','map','png','strategy','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','maxPixels','name','image/jpeg','sheet','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','rows','isSafeInteger','phase','.rows.json','rows-preparing','imageApi','schemaFingerprint','report','field','hashes','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','length','imageCells','inputPaths','media','103254DmpAPr','Image\x20cell\x20references\x20missing\x20media.','Invalid\x20image\x20manifest\x20limits.','batchSize','parse','5143560ryiutF','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','key','size','status','fileHash','manifest','type','code','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','get','importId','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','.lock.recovery','706216IoGhsY','maxBatchSize','maxFileBytes','rows-started','datasetCode','imageFields','actorId','contract','image/png','sha256','appCode','jpg','9wlFiuv','includes','all','745680NQrmAQ','42874xBjcep','rowNumber','upload','schemaHash','Image\x20media\x20bytes\x20changed.','completed','mappingHash','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','readback','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','uploadId','types','isArray','22401uTqXRz','some','test','succeeded','entries','ENOENT','118752zrPBfC','resume','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.'];a147_0x45c3=function(){return _0x43bc0c;};return a147_0x45c3();}
|
|
1
|
+
(function(_0x1dd1d9,_0x4f05fc){const _0x1ce043=a147_0x14d6,_0x3062f3=_0x1dd1d9();while(!![]){try{const _0x1e4322=parseInt(_0x1ce043(0x1c4))/0x1*(parseInt(_0x1ce043(0x1d4))/0x2)+parseInt(_0x1ce043(0x1b2))/0x3+-parseInt(_0x1ce043(0x1ba))/0x4+parseInt(_0x1ce043(0x1da))/0x5+parseInt(_0x1ce043(0x1c0))/0x6+parseInt(_0x1ce043(0x1a9))/0x7+-parseInt(_0x1ce043(0x1a3))/0x8*(parseInt(_0x1ce043(0x1e2))/0x9);if(_0x1e4322===_0x4f05fc)break;else _0x3062f3['push'](_0x3062f3['shift']());}catch(_0x477bd3){_0x3062f3['push'](_0x3062f3['shift']());}}}(a147_0x2f1c,0x9c38f));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x57229e,_0x3ab9f7){const _0x12e743=a147_0x14d6;if(!_0x3ab9f7[_0x12e743(0x191)]?.[_0x12e743(0x19b)])return;const _0x290ad3=_0x57229e[_0x12e743(0x194)];if(!_0x290ad3||_0x290ad3['version']!==0x1||_0x290ad3[_0x12e743(0x1a0)]!=='sha256'||_0x290ad3['maxFileBytes']!==0xa00000||_0x290ad3['maxPixels']!==0x2625a00||!Array['isArray'](_0x290ad3[_0x12e743(0x1b1)])||!['image/png','image/jpeg','image/gif'][_0x12e743(0x18f)](_0x145b2b=>_0x290ad3[_0x12e743(0x1b1)]['includes'](_0x145b2b)))throw Error('The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.');}export function imageObjectValue(_0x5dd008,_0xa2940a,_0x40814a){const _0x1e9675=a147_0x14d6,_0x25d40c=createHash(_0x1e9675(0x1d8))[_0x1e9675(0x1dd)](JSON[_0x1e9675(0x1a4)]([_0x5dd008[_0x1e9675(0x1e0)],_0x5dd008[_0x1e9675(0x19e)],_0x5dd008[_0x1e9675(0x1be)],_0xa2940a]))[_0x1e9675(0x189)](_0x1e9675(0x1cb)),_0x62b0e4={'image/png':'png','image/jpeg':'jpg','image/gif':_0x1e9675(0x1d1)}[_0x40814a[_0x1e9675(0x197)]];if(!_0x62b0e4||!/^[0-9a-f]{64}$/[_0x1e9675(0x1c3)](_0x40814a['contentHash'])||!Number[_0x1e9675(0x1b3)](_0x40814a['size'])||_0x40814a[_0x1e9675(0x1e3)]<=0x0||_0x40814a[_0x1e9675(0x1e3)]>0xa00000)throw Error(_0x1e9675(0x193));const _0x424408=_0x40814a[_0x1e9675(0x1d7)]+'.'+_0x62b0e4;return{'key':_0x1e9675(0x1bf)+_0x25d40c+'/'+_0x424408,'name':_0x424408,'type':_0x40814a[_0x1e9675(0x197)],'size':_0x40814a[_0x1e9675(0x1e3)]};}export function bindImageManifest(_0x391996,_0x472099,_0x2ab0b7){const _0xaca2d2=a147_0x14d6,_0x4de3e0=new Map(_0x391996['media']?.[_0xaca2d2(0x1d5)](_0x2755b9=>[_0x2755b9[_0xaca2d2(0x1d7)],_0x2755b9])),_0x36bf85=new Map(_0x391996[_0xaca2d2(0x1d3)]?.[_0xaca2d2(0x1d5)](_0x20ddea=>[_0x20ddea[_0xaca2d2(0x1a8)]+':'+_0x20ddea[_0xaca2d2(0x199)],_0x20ddea[_0xaca2d2(0x1bc)]]));return{..._0x391996,'rows':_0x391996[_0xaca2d2(0x1b8)][_0xaca2d2(0x1d5)](_0x9e4705=>({..._0x9e4705,'values':Object[_0xaca2d2(0x1a6)](Object['entries'](_0x9e4705[_0xaca2d2(0x18d)])[_0xaca2d2(0x1d5)](([_0x23d0b5,_0x2d4458])=>{const _0x531b0e=_0xaca2d2,_0x5e71cd=_0x36bf85[_0x531b0e(0x18a)](_0x9e4705[_0x531b0e(0x1a8)]+':'+_0x23d0b5);return[_0x23d0b5,_0x5e71cd?_0x5e71cd[_0x531b0e(0x1d5)](_0x316a5a=>{const _0x144540=_0x531b0e,_0x6cd31f=_0x4de3e0[_0x144540(0x18a)](_0x316a5a);if(!_0x6cd31f)throw Error(_0x144540(0x1ab));const _0x4b7fee=imageObjectValue(_0x472099,_0x2ab0b7,_0x6cd31f);return _0x391996['uploadFields']?.['includes'](_0x23d0b5)?{'fileName':_0x4b7fee['name'],'filePath':_0x4b7fee[_0x144540(0x1d0)]}:_0x4b7fee;}):_0x2d4458];}))}))};}function a147_0x14d6(_0x32defc,_0x49fc37){_0x32defc=_0x32defc-0x186;const _0x2f1ce6=a147_0x2f1c();let _0x14d686=_0x2f1ce6[_0x32defc];return _0x14d686;}async function exists(_0xfff907){const _0x40fb3b=a147_0x14d6;try{return await lstat(_0xfff907),!![];}catch(_0x13d8fd){if(_0x13d8fd[_0x40fb3b(0x19a)]===_0x40fb3b(0x1b5))return![];throw _0x13d8fd;}}export async function runImageExcelImport(_0xd628cb){const _0x186f68=a147_0x14d6;assertImportContract(_0xd628cb[_0x186f68(0x198)],_0xd628cb[_0x186f68(0x19e)],_0xd628cb['datasetCode']),assertImageImportCapability(_0xd628cb[_0x186f68(0x198)],_0xd628cb[_0x186f68(0x186)]);if(!Number[_0x186f68(0x1bd)](_0xd628cb[_0x186f68(0x1c6)])||_0xd628cb[_0x186f68(0x1c6)]<0x1||_0xd628cb[_0x186f68(0x1c6)]>_0xd628cb['contract'][_0x186f68(0x1e9)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0xd628cb['manifest']['errors']['length']||!_0xd628cb['manifest'][_0x186f68(0x1b8)][_0x186f68(0x19b)])throw Error(_0x186f68(0x1b9));const _0xbe1661=await resolveImportOutputPath(_0xd628cb[_0x186f68(0x1e5)]),_0x2c635f=await resolveImportOutputPath(_0xd628cb['report']),_0x29cb81=await resolveImportOutputPath(_0xbe1661+_0x186f68(0x1b7)),_0x41b64c=await Promise[_0x186f68(0x188)]([_0x29cb81,_0x29cb81+_0x186f68(0x1d2),_0x29cb81+_0x186f68(0x187),..._0xd628cb['inputPaths']??[]]['map'](resolveImportOutputPath));for(const _0x3fdd00 of[_0xbe1661,_0x2c635f,_0xbe1661+'.lock',_0xbe1661+'.lock.recovery'])await resolveImportOutputPath(_0x3fdd00);assertImportPaths(_0xbe1661,_0x2c635f,_0x41b64c);const {contract:_0x299b58,manifest:_0x293353}=_0xd628cb,_0x40ff94=_0x293353[_0x186f68(0x191)]??[];if(new Set(_0x40ff94[_0x186f68(0x1d5)](_0x3ad2c5=>_0x3ad2c5[_0x186f68(0x1d7)]))[_0x186f68(0x1e3)]!==_0x40ff94['length']||_0x40ff94['reduce']((_0x5a31ce,_0x37dd44)=>_0x5a31ce+_0x37dd44['size'],0x0)>0x32*0x400*0x400||(_0x293353[_0x186f68(0x1d3)]??[])[_0x186f68(0x1c7)]((_0x5bc00a,_0x5634d0)=>_0x5bc00a+_0x5634d0['hashes'][_0x186f68(0x19b)],0x0)>0x2710)throw Error(_0x186f68(0x1a2));for(const _0x387544 of _0x40ff94)if(_0x387544[_0x186f68(0x1e3)]!==_0x387544[_0x186f68(0x1c1)][_0x186f68(0x19b)]||createHash(_0x186f68(0x1d8))[_0x186f68(0x1dd)](_0x387544[_0x186f68(0x1c1)])[_0x186f68(0x189)](_0x186f68(0x1cb))!==_0x387544[_0x186f68(0x1d7)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0x293353,_0x299b58,_0x186f68(0x1ae)),_0x299b58,_0xd628cb['batchSize']);const _0x5eb288={'appCode':_0xd628cb[_0x186f68(0x19e)],'datasetCode':_0xd628cb[_0x186f68(0x1be)],'runtimeDomain':_0xd628cb['runtimeDomain'],'actorId':_0x299b58[_0x186f68(0x1e0)],'fileHash':_0x293353[_0x186f68(0x1e8)],'mappingHash':_0x293353[_0x186f68(0x1e6)],'schemaHash':_0x293353[_0x186f68(0x190)],'remoteSchemaHash':_0x299b58[_0x186f68(0x1ac)],'strategy':_0x299b58[_0x186f68(0x18e)],'schemaVersion':_0x299b58[_0x186f68(0x19d)],'batchSize':_0xd628cb[_0x186f68(0x1c6)],'maxBatchBytes':_0x299b58['maxBatchBytes'],'sheet':_0x293353[_0x186f68(0x1af)],'parserVersion':_0x293353[_0x186f68(0x195)],'imageFields':_0x293353[_0x186f68(0x1aa)],'cells':_0x293353['imageCells'],..._0x293353[_0x186f68(0x1ce)]?.[_0x186f68(0x19b)]?{'uploadFields':_0x293353[_0x186f68(0x1ce)]}:{},'media':_0x40ff94[_0x186f68(0x1d5)](({contentHash:_0x92b1c5,type:_0x53e624,size:_0x2621ea})=>({'contentHash':_0x92b1c5,'type':_0x53e624,'size':_0x2621ea})),'rows':_0x293353[_0x186f68(0x1b8)]},_0x15abc0=await acquireLock(_0xbe1661);try{let _0x39f796;if(_0xd628cb[_0x186f68(0x192)]){try{_0x39f796=JSON[_0x186f68(0x1d6)](await readFile(_0xbe1661,_0x186f68(0x1ca)));}catch{throw Error(_0x186f68(0x1a7));}if(_0x39f796[_0x186f68(0x1c8)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x39f796[_0x186f68(0x1a1)])||canonical(_0x39f796[_0x186f68(0x1e1)])!==canonical(_0x5eb288)||![_0x186f68(0x191),'rows-preparing',_0x186f68(0x196),_0x186f68(0x1d9)][_0x186f68(0x19f)](_0x39f796['phase'])||!Array[_0x186f68(0x1de)](_0x39f796[_0x186f68(0x191)])||_0x39f796[_0x186f68(0x191)][_0x186f68(0x19b)]!==_0x40ff94[_0x186f68(0x19b)]||_0x39f796['media'][_0x186f68(0x1df)]((_0x57ce51,_0x184075)=>_0x57ce51[_0x186f68(0x1b6)]!==_0x40ff94[_0x184075][_0x186f68(0x1d7)]||![_0x186f68(0x1db),_0x186f68(0x1b0)]['includes'](_0x57ce51[_0x186f68(0x1c9)])))throw Error(_0x186f68(0x1cc));if(['rows-started','completed'][_0x186f68(0x19f)](_0x39f796[_0x186f68(0x1e7)])&&!await exists(_0x29cb81))throw Error(_0x186f68(0x1a5));if(_0x39f796['phase']===_0x186f68(0x191)&&await exists(_0x29cb81))throw Error(_0x186f68(0x1c2));}else{if(await exists(_0xbe1661)||await exists(_0x29cb81))throw Error(_0x186f68(0x1bb));_0x39f796={'version':0x3,'importId':randomUUID(),'binding':_0x5eb288,'phase':_0x186f68(0x191),'media':_0x40ff94[_0x186f68(0x1d5)](_0xed40c3=>({'hash':_0xed40c3[_0x186f68(0x1d7)],'status':'pending'}))},await saveImportJson(_0xbe1661,_0x39f796);}const _0x406de1=(_0x3a9544,_0x3b7496)=>{const _0x2184cb=_0x186f68;if(!_0x3a9544||_0x3a9544['contentHash']!==_0x3b7496[_0x2184cb(0x1d7)])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x3a9544[_0x2184cb(0x1c9)]===_0x2184cb(0x1ad))return undefined;const _0x2b2131=imageObjectValue(_0x299b58,_0x39f796[_0x2184cb(0x1a1)],_0x3b7496);if(_0x3a9544[_0x2184cb(0x1c9)]!==_0x2184cb(0x1b0)||_0x3a9544['filePath']!==_0x2b2131[_0x2184cb(0x1d0)]||_0x3a9544['fileName']!==_0x2b2131[_0x2184cb(0x18b)]||_0x3a9544[_0x2184cb(0x197)]!==_0x2b2131[_0x2184cb(0x197)]||_0x3a9544[_0x2184cb(0x1e3)]!==_0x2b2131[_0x2184cb(0x1e3)])throw Error(_0x2184cb(0x18c));return _0x2b2131;};for(let _0x127785=0x0;_0x127785<_0x40ff94[_0x186f68(0x19b)];_0x127785++){const _0x277b62=_0x40ff94[_0x127785],_0x2bc745=_0x39f796['media'][_0x127785],_0x4fa8d8=imageObjectValue(_0x299b58,_0x39f796[_0x186f68(0x1a1)],_0x277b62);if(_0x2bc745['status']===_0x186f68(0x1b0)&&canonical(_0x2bc745[_0x186f68(0x1e4)])!==canonical(_0x4fa8d8))throw Error(_0x186f68(0x1cf));let _0x2b170f;if(_0xd628cb[_0x186f68(0x192)]||_0x2bc745[_0x186f68(0x1c9)]===_0x186f68(0x1b0))_0x2b170f=_0x406de1(await _0xd628cb[_0x186f68(0x1b4)][_0x186f68(0x19c)](_0x39f796[_0x186f68(0x1a1)],_0x277b62),_0x277b62);if(!_0x2b170f&&_0x2bc745[_0x186f68(0x1c9)]===_0x186f68(0x1b0))throw Error(_0x186f68(0x1c5));if(!_0x2b170f){try{_0x406de1(await _0xd628cb[_0x186f68(0x1b4)]['upload'](_0x39f796['importId'],_0x277b62),_0x277b62);}catch(_0x3aba05){_0x2b170f=_0x406de1(await _0xd628cb[_0x186f68(0x1b4)]['readback'](_0x39f796['importId'],_0x277b62),_0x277b62);if(!_0x2b170f)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x2b170f)_0x2b170f=_0x406de1(await _0xd628cb['imageApi'][_0x186f68(0x19c)](_0x39f796[_0x186f68(0x1a1)],_0x277b62),_0x277b62);if(!_0x2b170f)throw Error(_0x186f68(0x1cd));}_0x2bc745[_0x186f68(0x1c9)]='succeeded',_0x2bc745['value']=_0x2b170f,await saveImportJson(_0xbe1661,_0x39f796);}const _0x1eab03=bindImageManifest(_0x293353,_0x299b58,_0x39f796['importId']),_0x1abfd5=_0x39f796[_0x186f68(0x1e7)]==='rows-preparing'?await exists(_0x29cb81):_0x39f796['phase']!==_0x186f68(0x191);_0x39f796[_0x186f68(0x1e7)]===_0x186f68(0x191)&&(_0x39f796['phase']=_0x186f68(0x1dc),await saveImportJson(_0xbe1661,_0x39f796));const _0x209e49={..._0xd628cb,'manifest':_0x1eab03,'checkpoint':_0x29cb81,'report':_0x2c635f,'resume':_0x1abfd5,'onCheckpointReady':async()=>{const _0x144a00=_0x186f68;_0x39f796['phase']=_0x144a00(0x196),await saveImportJson(_0xbe1661,_0x39f796);}},_0x44c946=_0x299b58[_0x186f68(0x19d)]===0x2?await runAutoIdExcelImport({..._0x209e49,'reconcileImageConflicts':_0xd628cb[_0x186f68(0x192)]===!![]&&_0x1abfd5}):await runExcelImport(_0x209e49);return _0x39f796['phase']=_0x186f68(0x1d9),await saveImportJson(_0xbe1661,_0x39f796),{..._0x44c946,'checkpoint':_0xbe1661,'imageCount':_0x293353[_0x186f68(0x1d3)]?.[_0x186f68(0x1c7)]((_0x20d206,_0x2cf437)=>_0x20d206+_0x2cf437[_0x186f68(0x1bc)][_0x186f68(0x19b)],0x0)??0x0,'uniqueImages':_0x40ff94[_0x186f68(0x19b)]};}finally{await _0x15abc0();}}function a147_0x2f1c(){const _0x5237c7=['imageFields','Image\x20cell\x20references\x20missing\x20media.','schemaFingerprint','missing','00000000-0000-4000-8000-000000000000','sheet','succeeded','types','911106CXDckp','isSafeInteger','imageApi','ENOENT','hash','.rows.json','rows','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','3610360LGcxUP','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','hashes','isInteger','datasetCode','dataset-import/','4432386NlLhRj','bytes','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','test','133141KALpJJ','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','batchSize','reduce','version','status','utf8','hex','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','uploadFields','Completed\x20image\x20checkpoint\x20value\x20changed.','key','gif','.lock','imageCells','14ofAsJy','map','parse','contentHash','sha256','completed','181355ahiNJK','pending','rows-preparing','update','isArray','some','actorId','binding','54LTELDA','size','value','checkpoint','mappingHash','phase','fileHash','maxBatchSize','manifest','.lock.recovery','all','digest','get','name','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','values','strategy','every','schemaHash','media','resume','Invalid\x20image\x20media\x20descriptor.','imageImport','parserVersion','rows-started','type','contract','field','code','length','readback','schemaVersion','appCode','includes','uploadId','importId','Invalid\x20image\x20manifest\x20limits.','842056VVwRoa','stringify','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','fromEntries','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','rowNumber','1143296NgpBKY'];a147_0x2f1c=function(){return _0x5237c7;};return a147_0x2f1c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x263c50,_0x441b44){const _0x1bd73a=a148_0x4324,_0x3c1b49=_0x263c50();while(!![]){try{const _0x27441b=parseInt(_0x1bd73a(0xd6))/0x1*(-parseInt(_0x1bd73a(0xd8))/0x2)+-parseInt(_0x1bd73a(0xde))/0x3+parseInt(_0x1bd73a(0xd9))/0x4*(parseInt(_0x1bd73a(0xdd))/0x5)+parseInt(_0x1bd73a(0xd3))/0x6+parseInt(_0x1bd73a(0xe5))/0x7+-parseInt(_0x1bd73a(0xd7))/0x8*(parseInt(_0x1bd73a(0xd0))/0x9)+parseInt(_0x1bd73a(0xdf))/0xa;if(_0x27441b===_0x441b44)break;else _0x3c1b49['push'](_0x3c1b49['shift']());}catch(_0x1aabbe){_0x3c1b49['push'](_0x3c1b49['shift']());}}}(a148_0x2bbb,0x2c0dc));function a148_0x4324(_0x393399,_0x2fb8cd){_0x393399=_0x393399-0xce;const _0x2bbbc3=a148_0x2bbb();let _0x4324d5=_0x2bbbc3[_0x393399];return _0x4324d5;}export function assertDatasetImportTarget(_0xa321d0,_0x761745,_0x359934){const _0x2d1178=a148_0x4324;if(!_0xa321d0||typeof _0xa321d0!==_0x2d1178(0xce)||Array[_0x2d1178(0xda)](_0xa321d0))throw Error('Dataset\x20metadata\x20is\x20missing.');const _0x23d22=[_0xa321d0[_0x2d1178(0xd5)],_0xa321d0[_0x2d1178(0xe2)],_0xa321d0[_0x2d1178(0xd1)]?.[_0x2d1178(0xd4)]][_0x2d1178(0xe0)](_0x7d7a82=>_0x7d7a82!=null);if(!_0x23d22[_0x2d1178(0xe3)]||_0x23d22[_0x2d1178(0xdb)](_0x171b95=>_0x171b95!==_0x359934)||_0xa321d0[_0x2d1178(0xcf)]!=null&&_0xa321d0['appCode']!==_0x761745||_0xa321d0[_0x2d1178(0xd1)]?.['appCode']!=null&&_0xa321d0['dataset'][_0x2d1178(0xcf)]!==_0x761745)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x4bed67=[_0xa321d0[_0x2d1178(0xd2)],_0xa321d0[_0x2d1178(0xd1)]?.[_0x2d1178(0xe1)]][_0x2d1178(0xe0)](_0x2e6e34=>_0x2e6e34!=null);if(_0x4bed67[_0x2d1178(0xdb)](_0x303bfd=>typeof _0x303bfd!==_0x2d1178(0xdc)||_0x303bfd!==_0x4bed67[0x0]))throw Error(_0x2d1178(0xe4));return _0x4bed67[0x0];}function a148_0x2bbb(){const _0x82a6be=['4240660aHkTGo','filter','sourceType','modelCode','length','Dataset\x20source\x20metadata\x20is\x20inconsistent.','1167516klkZSR','object','appCode','58761ofyKbr','dataset','source','831936BfrPgi','datasetCode','code','14845xYtdpL','48NUoZfV','34vLBagl','12ewWDzF','isArray','some','string','68695Xjrvyj','896232OLEnpN'];a148_0x2bbb=function(){return _0x82a6be;};return a148_0x2bbb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a149_0x37d1(_0x4fbea7,_0x22d3ee){_0x4fbea7=_0x4fbea7-0x182;const _0x578c26=a149_0x578c();let _0x37d10b=_0x578c26[_0x4fbea7];return _0x37d10b;}function a149_0x578c(){const _0xd8adb=['6BXOVUk','156141tNSPQJ','1765708jUNThM','push','279485bTHsLu','1047676pzEgIE','6zYwNFK','stringify','schemaFingerprint','4150953tfEntq','rows','schemaVersion','values','rowNumber','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','3071MUlwAn','Excel\x20row\x20','10rMgqnu','length','byteLength','maxBatchBytes','2098064HubBww','utf8'];a149_0x578c=function(){return _0xd8adb;};return a149_0x578c();}(function(_0x2cbeab,_0x1af645){const _0x23c79d=a149_0x37d1,_0xf61905=_0x2cbeab();while(!![]){try{const _0x11f673=parseInt(_0x23c79d(0x186))/0x1*(parseInt(_0x23c79d(0x18e))/0x2)+-parseInt(_0x23c79d(0x18f))/0x3+parseInt(_0x23c79d(0x193))/0x4+-parseInt(_0x23c79d(0x192))/0x5+parseInt(_0x23c79d(0x194))/0x6*(parseInt(_0x23c79d(0x190))/0x7)+parseInt(_0x23c79d(0x18c))/0x8+-parseInt(_0x23c79d(0x197))/0x9*(parseInt(_0x23c79d(0x188))/0xa);if(_0x11f673===_0x1af645)break;else _0xf61905['push'](_0xf61905['shift']());}catch(_0x37b8c9){_0xf61905['push'](_0xf61905['shift']());}}}(a149_0x578c,0x34d99));export function previewImportBatchCount(_0x36a6c8,_0x15bb01,_0xab25d3){const _0x15db31=a149_0x37d1,_0x25b92c=_0x28bb64=>_0x28bb64['map'](_0x4bd377=>_0x15bb01[_0x15db31(0x182)]===0x1?{..._0x36a6c8['rows'][_0x4bd377][_0x15db31(0x183)],'id':-0x1fffffffffffff}:_0x36a6c8['rows'][_0x4bd377][_0x15db31(0x183)]),_0x491d38=_0x3dd828=>Buffer[_0x15db31(0x18a)](JSON[_0x15db31(0x195)]({'schemaFingerprint':_0x15bb01[_0x15db31(0x196)],..._0x15bb01['schemaVersion']===0x2?{'taskId':0x2**0x34}:{},'items':_0x25b92c(_0x3dd828)}),_0x15db31(0x18d));let _0x3727eb=0x0,_0x1765c3=[];for(let _0x115fca=0x0;_0x115fca<_0x36a6c8[_0x15db31(0x198)][_0x15db31(0x189)];_0x115fca++){if(_0x491d38([_0x115fca])>_0x15bb01['maxBatchBytes'])throw Error(_0x15db31(0x187)+_0x36a6c8[_0x15db31(0x198)][_0x115fca][_0x15db31(0x184)]+_0x15db31(0x185));_0x1765c3[_0x15db31(0x189)]&&(_0x1765c3['length']===_0xab25d3||_0x491d38([..._0x1765c3,_0x115fca])>_0x15bb01[_0x15db31(0x18b)])&&(_0x3727eb++,_0x1765c3=[]),_0x1765c3[_0x15db31(0x191)](_0x115fca);}return _0x3727eb+Number(_0x1765c3[_0x15db31(0x189)]>0x0);}
|