@lovrabet/lovrabet-cli 2.3.6 → 2.3.7-beta.1
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/README.md +15 -11
- 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/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +6 -6
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.d.ts +5 -3
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +6 -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/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 +2 -2
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +9 -5
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140_0x590d62=a140_0x3f41;(function(_0x4622c1,_0x333449){const _0xac16a0=a140_0x3f41,_0x13477f=_0x4622c1();while(!![]){try{const _0x41d53e=-parseInt(_0xac16a0(0x1c5))/0x1+parseInt(_0xac16a0(0x150))/0x2*(-parseInt(_0xac16a0(0x238))/0x3)+parseInt(_0xac16a0(0x1a4))/0x4*(parseInt(_0xac16a0(0x1f6))/0x5)+parseInt(_0xac16a0(0x1ce))/0x6*(parseInt(_0xac16a0(0x19e))/0x7)+parseInt(_0xac16a0(0x1ad))/0x8*(-parseInt(_0xac16a0(0x1ef))/0x9)+parseInt(_0xac16a0(0x15d))/0xa+-parseInt(_0xac16a0(0x16f))/0xb*(-parseInt(_0xac16a0(0x167))/0xc);if(_0x41d53e===_0x333449)break;else _0x13477f['push'](_0x13477f['shift']());}catch(_0x24dbb5){_0x13477f['push'](_0x13477f['shift']());}}}(a140_0x58f6,0xe3ec8));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x11e7ee from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';function a140_0x58f6(){const _0x23ca35=['reference','image','File\x20is\x20not\x20an\x20XLSX\x20workbook.','2yphFgx','fromBuffer','resolve','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','fileNameRaw','update','Non-canonical\x20worksheet\x20ZIP\x20entry.','pop','concat','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','message','properties','Unknown\x20Excel\x20header:\x20','14124510UWZpTE','doctype','Invalid\x20worksheet\x20coordinate.','generated','charCodeAt','extname','row','dataValidations','number','creatorName','494244vdxRPw','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','uncompressedSize','top','some','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','right','abs','319ECufdr','externalFileAttributes','datasetId','Worksheet\x20merge\x20work\x20exceeds\x20100000.','data','equals','isBuffer','readUInt32LE','sharedFormula','jszip','errors','add','parseClose','readEntry','Worksheet\x20exceeds\x2016384\x20columns.','media','sourceType','upload','stringify','serial_number','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','formula','Dataset\x20field\x20metadata\x20is\x20missing.','modifierName','subarray','Required\x20value\x20is\x20missing.','parserVersion','close','emptyRows','./reader/readerFor','Required\x20image\x20value\x20is\x20missing.','hyperlink','textarea','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Invalid\x20worksheet\x20column\x20range.','Invalid\x20worksheet\x20hyperlink\x20reference.','load','creatorId','end','extend','updateTime','Expected\x20a\x20boolean\x20cell.','extraFieldsLength','Image\x20XML\x20event\x20budget\x20exceeded.','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','xl/workbook.xml','Duplicate\x20header:\x20','21CsDFfm','Invalid\x20XLSX\x20entry.','test','type','error','length','12MYiMxd','merges','rows','openReadStream','modifierId','getCell','exceljs/lib/xlsx/xform/book/defined-name-xform.js','generalPurposeBitFlag','col','16fGASoi','xlsx','Expected\x20an\x20Excel\x20date\x20cell.','dir','mapping','has','isFile','Invalid\x20ZIP\x20local\x20file\x20header.','ref','unixPermissions','fileName','worksheets','Invalid\x20worksheet\x20nested\x20row.','getTime','dataset-import/','uploadFields','includes','string','Required\x20field\x20is\x20not\x20mapped:\x20','model','Cell\x20exceeds\x2064\x20KB.','Invalid\x20worksheet\x20merge\x20reference.','Invalid\x20dataset\x20field\x20extension\x20metadata.','extraFieldRaw','1418801SmqqPi','sheet','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','Duplicate\x20workbook\x20ZIP\x20entry.','Invalid\x20XLSX\x20archive.','materialized','contentHash','object','boolean','1517214zRkOzq','./zipEntry','from','attributes','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','value','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Merged\x20cells\x20are\x20not\x20supported.','hidden','repeat','address','original','Worksheet\x20exceeds\x20','Duplicate\x20mapping\x20target:\x20','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','fileNameStr','fields','date','decodeEx','isInteger','Unsupported\x20field\x20type:\x20','clear','Worksheet\x20column\x20objects\x20exceed\x20100000.','batchSize','Expected\x20a\x20text\x20cell.','versionMadeBy','extraFields','required','every','set','name','startsWith','split','646911ruJpeh','entries','code','definedName','lastIndexOf','destroy','isArray','1283875TGPygh','push','size','source','integer','_xlnm.Print_Titles','autoIncrement','eachCell','./utils','getRow','.xlsx','Invalid\x20worksheet\x20XML.','hiddenRow','sort','utf8','max','filter','find','before','get','isSafeInteger','fileComment','readBigUInt64LE','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','nativeCell','datetime','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','map','values','directory','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','readExtraFields','bottom','exceljs/lib/utils/col-cache.js','Only\x20.xlsx\x20files\x20are\x20supported.','write','file','hex','ranges','handleUTF8','[Content_Types].xml','tenantCode','exec','processAttributes','cells','mergeCell','compressedSize','Formula\x20has\x20no\x20cached\x20result.','left','entry','readUInt16LE','isFinite','localeCompare','warnings','result','toLowerCase','image/jpeg','deleted','parseText','jpg','createTime','byteLength','Invalid\x20worksheet\x20XML:\x20','text','bitFlag','relativeOffsetOfLocalHeader','4919013vmuFUT','Invalid\x20defined\x20name\x20coordinate.','readEntryCursor','sha256','dataset','opentag','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','rowCount','imageCells'];a140_0x58f6=function(){return _0x23ca35;};return a140_0x58f6();}import{SaxesParser}from'saxes';function a140_0x3f41(_0x30aa4b,_0x5ccb13){_0x30aa4b=_0x30aa4b-0x14b;const _0x58f6cd=a140_0x58f6();let _0x3f41c0=_0x58f6cd[_0x30aa4b];return _0x3f41c0;}import a140_0xddb607 from'exceljs';import a140_0x560438 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',a140_0x590d62(0x21f),'appCode',a140_0x590d62(0x171),a140_0x590d62(0x194),a140_0x590d62(0x166),a140_0x590d62(0x1a8),a140_0x590d62(0x186),a140_0x590d62(0x232),a140_0x590d62(0x197),a140_0x590d62(0x22f)]),TYPES=new Set([a140_0x590d62(0x1be),a140_0x590d62(0x235),a140_0x590d62(0x18f),'number','decimal',a140_0x590d62(0x1fa),a140_0x590d62(0x1cd),a140_0x590d62(0x1df),a140_0x590d62(0x20f),'image',a140_0x590d62(0x180)]),isImageContainer=_0x4568d9=>[a140_0x590d62(0x14e),a140_0x590d62(0x180)][a140_0x590d62(0x1bd)](_0x4568d9[a140_0x590d62(0x22d)]()),hash=_0x5ef3c8=>createHash(a140_0x590d62(0x23b))[a140_0x590d62(0x155)](_0x5ef3c8)['digest'](a140_0x590d62(0x21b)),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x590d62(0x1aa)),nameCoordinates=require(a140_0x590d62(0x217)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x590d62(0x152)]('exceljs')),zipRequire=createRequire(excelRequire[a140_0x590d62(0x152)](a140_0x590d62(0x178))),ZipEntry=zipRequire(a140_0x590d62(0x1cf)),zipReader=zipRequire(a140_0x590d62(0x18c)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a140_0x590d62(0x1fe));function centralDirectoryEnd(_0x13fa93,_0x1217f9){const _0xb6f9f0=a140_0x590d62,_0x5e2ec3=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x5be71f=_0x13fa93[_0xb6f9f0(0x1f3)](Buffer[_0xb6f9f0(0x1d0)]([0x50,0x4b,0x5,0x6]));if(_0x5be71f<0x0||_0x5be71f+0x16>_0x13fa93[_0xb6f9f0(0x1a3)]||_0x5be71f+0x16+_0x13fa93['readUInt16LE'](_0x5be71f+0x14)!==_0x13fa93[_0xb6f9f0(0x1a3)])throw _0x5e2ec3();let _0x2ce718=_0x13fa93['readUInt16LE'](_0x5be71f+0xa),_0x243092=_0x13fa93[_0xb6f9f0(0x176)](_0x5be71f+0xc),_0x49c881=_0x13fa93['readUInt32LE'](_0x5be71f+0x10),_0x27f5d9=_0x5be71f;const _0x22700b=_0x5be71f-0x14,_0x2ef42d=_0x22700b>=0x0&&_0x13fa93['readUInt32LE'](_0x22700b)===0x7064b50,_0xd99a1d=[0x4,0x6,0x8,0xa]['some'](_0x1eba5a=>_0x13fa93['readUInt16LE'](_0x5be71f+_0x1eba5a)===0xffff)||_0x243092===0xffffffff||_0x49c881===0xffffffff;if(_0x2ef42d!==_0xd99a1d)throw _0x5e2ec3();if(_0x2ef42d){if(_0x13fa93[_0xb6f9f0(0x1f3)](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0x22700b)throw _0x5e2ec3();const _0x1c0ccd=_0x21c00b=>{const _0x3e1280=_0xb6f9f0,_0x157d92=Number(_0x13fa93[_0x3e1280(0x20c)](_0x21c00b));if(!Number[_0x3e1280(0x20a)](_0x157d92))throw _0x5e2ec3();return _0x157d92;};_0x27f5d9=_0x1c0ccd(_0x22700b+0x8);if(_0x13fa93[_0xb6f9f0(0x176)](_0x22700b+0x4)!==0x0||_0x13fa93[_0xb6f9f0(0x176)](_0x22700b+0x10)!==0x1||_0x27f5d9>_0x22700b-0x38||_0x13fa93[_0xb6f9f0(0x176)](_0x27f5d9)!==0x6064b50||_0x1c0ccd(_0x27f5d9+0x4)!==0x2c||_0x27f5d9+0x38!==_0x22700b||_0x13fa93[_0xb6f9f0(0x176)](_0x27f5d9+0x10)!==0x0||_0x13fa93[_0xb6f9f0(0x176)](_0x27f5d9+0x14)!==0x0)throw _0x5e2ec3();_0x2ce718=_0x1c0ccd(_0x27f5d9+0x20),_0x243092=_0x1c0ccd(_0x27f5d9+0x28),_0x49c881=_0x1c0ccd(_0x27f5d9+0x30);if(_0x1c0ccd(_0x27f5d9+0x18)!==_0x2ce718)throw _0x5e2ec3();}else{if(_0x13fa93[_0xb6f9f0(0x228)](_0x5be71f+0x4)!==0x0||_0x13fa93[_0xb6f9f0(0x228)](_0x5be71f+0x6)!==0x0||_0x13fa93[_0xb6f9f0(0x228)](_0x5be71f+0x8)!==_0x2ce718)throw _0x5e2ec3();}const _0x2a0d6b=_0x1217f9[_0xb6f9f0(0x23a)];if(_0x49c881!==_0x2a0d6b||_0x2ce718!==_0x1217f9['entryCount']||_0x49c881+_0x243092!==_0x27f5d9)throw _0x5e2ec3();return _0x27f5d9;}function consumerEntryName(_0x14510e,_0x4d9f9c){const _0x23058c=a140_0x590d62;if(_0x4d9f9c[_0x23058c(0x1e8)][_0x23058c(0x206)](_0x151701=>_0x151701['id']===0x1)[_0x23058c(0x1a3)]>0x1)throw new Error(_0x23058c(0x1d2));const _0x1bafa3=_0x4d9f9c,_0x5e29df=_0x4d9f9c[_0x23058c(0x237)];if(!Buffer['isBuffer'](_0x1bafa3['fileNameRaw'])||!Buffer[_0x23058c(0x175)](_0x1bafa3[_0x23058c(0x1c4)])||!Buffer[_0x23058c(0x175)](_0x1bafa3['fileCommentRaw'])||!Number[_0x23058c(0x20a)](_0x5e29df)||_0x5e29df<0x0||_0x5e29df>_0x14510e[_0x23058c(0x1a3)]-0x1e||_0x14510e[_0x23058c(0x176)](_0x5e29df)!==0x4034b50)throw new Error(_0x23058c(0x1b4));const _0x3a1b27=_0x5e29df+0x1e+_0x14510e[_0x23058c(0x228)](_0x5e29df+0x1a),_0x4d80b9=_0x3a1b27+_0x14510e[_0x23058c(0x228)](_0x5e29df+0x1c)+_0x4d9f9c[_0x23058c(0x224)];if(!Number[_0x23058c(0x20a)](_0x4d80b9)||_0x4d80b9>_0x14510e[_0x23058c(0x1a3)])throw new Error(_0x23058c(0x1b4));if(_0x3a1b27>_0x14510e['length']||!_0x14510e[_0x23058c(0x187)](_0x5e29df+0x1e,_0x3a1b27)[_0x23058c(0x174)](_0x1bafa3[_0x23058c(0x154)]))throw new Error(_0x23058c(0x183));const _0x4c9218=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x4c9218[_0x23058c(0x236)]=_0x4d9f9c[_0x23058c(0x1ab)],_0x4c9218[_0x23058c(0x1b7)]=_0x1bafa3[_0x23058c(0x154)],_0x4c9218[_0x23058c(0x20b)]=_0x1bafa3['fileCommentRaw'],_0x4c9218[_0x23058c(0x199)]=_0x1bafa3[_0x23058c(0x1c4)][_0x23058c(0x1a3)],_0x4c9218[_0x23058c(0x215)](zipReader(_0x1bafa3[_0x23058c(0x1c4)])),_0x4c9218[_0x23058c(0x21d)](),_0x4c9218[_0x23058c(0x1e7)]=_0x4d9f9c['versionMadeBy'],_0x4c9218[_0x23058c(0x170)]=_0x4d9f9c[_0x23058c(0x170)],_0x4c9218[_0x23058c(0x221)]();const _0x3e7c0a=_0x4c9218[_0x23058c(0x1b0)]||Boolean((_0x4c9218[_0x23058c(0x1b6)]??0x0)&0x4000),_0x58fb1e=zipPaths['resolve'](_0x4c9218['fileNameStr']),_0x347ec1=_0x58fb1e[_0x23058c(0x1ed)]('/')?_0x58fb1e['slice'](0x1):_0x58fb1e;return{'name':_0x347ec1,'original':_0x4c9218[_0x23058c(0x1dd)],'directory':_0x3e7c0a};}export function normalizeImportFields(_0x42ccfd){const _0x5afb0a=a140_0x590d62;if(!_0x42ccfd||(_0x42ccfd[_0x5afb0a(0x1f9)]??_0x42ccfd[_0x5afb0a(0x23c)]?.[_0x5afb0a(0x17f)])!=='METADATA')throw new Error(_0x5afb0a(0x168));const _0x5173ba=Array[_0x5afb0a(0x1f5)](_0x42ccfd['fields']),_0x2fff0b=_0x5173ba?_0x42ccfd[_0x5afb0a(0x1de)]:_0x42ccfd[_0x5afb0a(0x15b)];if(!Array[_0x5afb0a(0x1f5)](_0x2fff0b)||_0x2fff0b[_0x5afb0a(0x1a3)]===0x0)throw new Error(_0x5afb0a(0x185));const _0x14af31=[],_0x58d9de=new Set();for(const _0x38795a of _0x2fff0b){if(_0x38795a['deleted']===!![])continue;let _0x42f611=_0x38795a[_0x5afb0a(0x196)]??{};if(!_0x5173ba&&typeof _0x42f611==='string'){try{_0x42f611=JSON['parse'](_0x42f611);}catch{throw new Error(_0x5afb0a(0x1c3));}if(!_0x42f611||typeof _0x42f611!==_0x5afb0a(0x1cc)||Array[_0x5afb0a(0x1f5)](_0x42f611))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x372ae2=_0x5173ba?_0x38795a['name']:_0x38795a[_0x5afb0a(0x1f1)],_0x1caa53=_0x5173ba?_0x38795a['doType']:_0x38795a[_0x5afb0a(0x1a1)]??_0x38795a['dataType'];if(typeof _0x372ae2!=='string'||!_0x372ae2||typeof _0x1caa53!==_0x5afb0a(0x1be)||_0x58d9de[_0x5afb0a(0x1b2)](_0x372ae2))throw new Error(_0x5afb0a(0x210));if(_0x1caa53[_0x5afb0a(0x22d)]()===_0x5afb0a(0x182))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x58d9de['add'](_0x372ae2);const _0xfc6364=_0x5173ba?_0x38795a:_0x42f611,_0x534363={'code':_0x372ae2,'type':_0x1caa53,'required':_0xfc6364[_0x5afb0a(0x1e9)]===!![]};if(RESERVED[_0x5afb0a(0x1b2)](_0x372ae2)||_0xfc6364[_0x5afb0a(0x160)]===!![]||_0xfc6364[_0x5afb0a(0x1fc)]===!![])_0x534363[_0x5afb0a(0x160)]=!![];_0x14af31['push'](_0x534363);}return _0x14af31;}async function checkArchive(_0x2fa43a,_0x1262fb){await new Promise((_0x41d73d,_0x369459)=>{const _0x4dbe85=a140_0x3f41;a140_0x560438[_0x4dbe85(0x151)](_0x2fa43a,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0xddd7e0,_0x2046bd)=>{const _0xe7e39d=_0x4dbe85;if(_0xddd7e0||!_0x2046bd){_0x369459(_0xddd7e0??new Error(_0xe7e39d(0x1c9)));return;}let _0x58dcd8;try{_0x58dcd8=centralDirectoryEnd(_0x2fa43a,_0x2046bd);}catch(_0x19f6c4){_0x2046bd[_0xe7e39d(0x18a)](),_0x369459(_0x19f6c4);return;}let _0x2298d5=0x0,_0x101188=0x0,_0x18637f=0x0,_0x4ae3f2=0x0,_0x2d9d64=0x0,_0x3bbb78=0x0,_0x224d63=0x0,_0x1e6d3b=0x0,_0x311341=0x0,_0x39d084=![],_0x30d1d5;const _0x4db5f2=new Set(),_0x4eaa70=_0x16941f=>{const _0x14e14d=_0xe7e39d;if(_0x39d084)return;_0x39d084=!![],_0x30d1d5?.[_0x14e14d(0x1f4)](),_0x2046bd[_0x14e14d(0x18a)](),_0x369459(_0x16941f);},_0x411ead=(_0x5cc743,_0xf8d8eb)=>{const _0x1e690c=_0xe7e39d;if(!_0x5cc743||!/^\d+$/[_0x1e690c(0x1a0)](_0x5cc743))throw new Error(_0x1e690c(0x15f));const _0x4a4cbf=Number(_0x5cc743);if(!Number[_0x1e690c(0x20a)](_0x4a4cbf)||_0x4a4cbf<0x1||_0x4a4cbf>_0xf8d8eb)throw new Error('Worksheet\x20coordinate\x20exceeds\x20'+_0xf8d8eb+'.');return _0x4a4cbf;},_0x4e47d0=(_0x56ace1,_0x180625=MAX_XML_COLUMNS)=>{const _0x7cd95e=_0xe7e39d,_0x249c92=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x7cd95e(0x220)](_0x56ace1);if(!_0x249c92)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x3bf3a4=0x0;for(const _0x174ad5 of _0x249c92[0x1])_0x3bf3a4=_0x3bf3a4*0x1a+_0x174ad5[_0x7cd95e(0x161)](0x0)-0x40;if(_0x3bf3a4>_0x180625)throw new Error(_0x7cd95e(0x1da)+_0x180625+'\x20columns.');return{'row':_0x411ead(_0x249c92[0x2],MAX_XML_ROWS),'col':_0x3bf3a4};},_0x373333=_0x355720=>{const _0x35026c=_0xe7e39d;if(_0x355720[_0x35026c(0x1ec)]==='_xlnm.Print_Area'||_0x355720[_0x35026c(0x1ec)]===_0x35026c(0x1fb))return;for(const _0x317876 of _0x355720[_0x35026c(0x21c)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x317876['split']('!')[_0x35026c(0x157)]()||''))continue;const _0x3b67d3=nameCoordinates[_0x35026c(0x1e0)](_0x317876),_0x459c71=_0x35026c(0x16a)in _0x3b67d3,_0x115618=_0x459c71?[_0x3b67d3[_0x35026c(0x16a)],_0x3b67d3[_0x35026c(0x216)]]:[_0x3b67d3[_0x35026c(0x163)]],_0x2f253f=_0x459c71?[_0x3b67d3[_0x35026c(0x226)],_0x3b67d3[_0x35026c(0x16d)]]:[_0x3b67d3[_0x35026c(0x1ac)]],_0x3437f6=(_0x48d8b9,_0x4aed01)=>Number[_0x35026c(0x20a)](_0x48d8b9)&&_0x48d8b9>=0x1&&_0x48d8b9<=_0x4aed01;if(!_0x115618['every'](_0x4c0b3c=>_0x3437f6(_0x4c0b3c,MAX_XML_ROWS))||!_0x2f253f[_0x35026c(0x1ea)](_0x4523c4=>_0x3437f6(_0x4523c4,MAX_XML_COLUMNS)))throw new Error(_0x35026c(0x239));_0x224d63+=_0x459c71?(_0x3b67d3[_0x35026c(0x216)]-_0x3b67d3[_0x35026c(0x16a)]+0x1)*(_0x3b67d3[_0x35026c(0x16d)]-_0x3b67d3[_0x35026c(0x226)]+0x1):0x1;if(_0x224d63>MAX_ROWS)throw new Error(_0x35026c(0x20d));}};_0x2046bd['on'](_0xe7e39d(0x1a2),_0x4eaa70),_0x2046bd['on'](_0xe7e39d(0x227),_0x215785=>{const _0x5d8e90=_0xe7e39d;if(_0x39d084)return;if(++_0x18637f>0x2710||(_0x2298d5+=_0x215785[_0x5d8e90(0x169)])>MAX_EXPANDED){_0x4eaa70(new Error(_0x5d8e90(0x1c7)));return;}let _0x5d8613;try{_0x5d8613=consumerEntryName(_0x2fa43a,_0x215785);}catch(_0x253248){_0x4eaa70(_0x253248);return;}if(_0x5d8613[_0x5d8e90(0x213)]){_0x2046bd[_0x5d8e90(0x17c)]();return;}const _0x158985=_0x5d8613[_0x5d8e90(0x1ec)];if(_0x1262fb&&(_0x158985!==_0x5d8613[_0x5d8e90(0x1d9)]||_0x4db5f2[_0x5d8e90(0x1b2)](_0x158985)||_0x158985[_0x5d8e90(0x1ed)]('/')||_0x158985[_0x5d8e90(0x1bd)]('\x5c'))){_0x4eaa70(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x158985!==_0x5d8613[_0x5d8e90(0x1d9)]&&(_0x158985===_0x5d8e90(0x19c)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5d8e90(0x1a0)](_0x158985))){_0x4eaa70(new Error(_0x5d8e90(0x19b)));return;}const _0x477343=_0x158985===_0x5d8e90(0x19c);if(_0x477343&&_0x4db5f2[_0x5d8e90(0x1b2)](_0x158985)){_0x4eaa70(new Error(_0x5d8e90(0x1c8)));return;}_0x4db5f2['add'](_0x158985);const _0x12cdde=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5d8e90(0x1a0)](_0x158985);if(_0x12cdde&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x158985)){_0x4eaa70(new Error(_0x5d8e90(0x156)));return;}_0x2046bd[_0x5d8e90(0x1a7)](_0x215785,(_0x59547a,_0x5be8c4)=>{const _0x21333e=_0x5d8e90;if(_0x39d084){_0x5be8c4?.[_0x21333e(0x1f4)]();return;}if(_0x59547a||!_0x5be8c4){_0x4eaa70(_0x59547a??new Error(_0x21333e(0x19f)));return;}_0x30d1d5=_0x5be8c4;const _0x2e18fe=_0x1262fb?[]:undefined,_0x443a4f=_0x1262fb&&/[.](xml|rels)$/[_0x21333e(0x1a0)](_0x158985)?new StringDecoder('utf8'):undefined,_0x7e628b=_0x443a4f?new SaxesParser({'xmlns':![]}):undefined,_0x30a457=()=>{const _0x49df7e=_0x21333e;if(++_0x311341>0x1e8480)throw Error(_0x49df7e(0x19a));};_0x7e628b?.['on'](_0x21333e(0x15e),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x7e628b?.['on'](_0x21333e(0x23d),()=>{_0x30a457();if(++_0x1e6d3b>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x7e628b?.['on']('text',_0x30a457),_0x7e628b?.['on']('closetag',_0x30a457),_0x7e628b?.['on'](_0x21333e(0x1a2),_0x2474c0=>{throw _0x2474c0;});const _0x1541ff=_0x12cdde||_0x477343?new StringDecoder(_0x21333e(0x204)):undefined,_0x349142=_0x12cdde||_0x477343?new SaxesParser({'xmlns':![]}):undefined;let _0xbd7305,_0x4eeb27=0x0,_0x371819=0x0,_0x4ca3b1,_0x1df08b,_0x24f53c=![],_0xdc6c2f=![],_0x37cf45,_0x201ada,_0x45e4ba,_0x1d13af=![];const _0x2bab7b=[],_0x41236f=new Set();let _0x2d77a3;const _0x4ddd8f=(_0x436360,_0x2794cc=0x0)=>{const _0x504589=_0x21333e;_0x2d9d64+=_0x2794cc+Math['max'](0x0,_0x436360-_0x371819),_0x371819=Math[_0x504589(0x205)](_0x371819,_0x436360);if(_0x2d9d64>MAX_ROWS)throw new Error(_0x504589(0x1e4));};_0x349142?.['on']('opentag',_0x5b5a27=>{const _0x335b85=_0x21333e;if(_0x477343){if(!_0xbd7305&&_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x1f2))_0xbd7305=new DefinedNameXform();_0xbd7305?.['parseOpen'](_0x5b5a27);return;}if(_0x5b5a27[_0x335b85(0x1ec)]==='row'){if(_0xdc6c2f)throw new Error(_0x335b85(0x1b9));_0x411ead(_0x5b5a27[_0x335b85(0x1d1)]['r'],MAX_XML_ROWS),_0x4ca3b1=undefined,_0x45e4ba=undefined,_0x1d13af=![];}else{if(_0x5b5a27[_0x335b85(0x1ec)]==='c'){if(_0xdc6c2f)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0xdc6c2f=!![],_0x24f53c=Boolean(Number['parseInt'](_0x5b5a27['attributes']['s']??'',0xa)),_0x2d77a3=undefined,_0x37cf45=_0x5b5a27['attributes']['r']||undefined,_0x201ada=_0x37cf45?_0x4e47d0(_0x37cf45):undefined;if(_0x201ada)_0x1df08b=_0x201ada;else _0x1df08b=_0x4ca3b1?{'row':_0x4ca3b1['row'],'col':_0x4ca3b1[_0x335b85(0x1ac)]+0x1}:undefined;}else{if(_0xdc6c2f&&['f','v','t'][_0x335b85(0x1bd)](_0x5b5a27[_0x335b85(0x1ec)])){_0x2d77a3=_0x5b5a27[_0x335b85(0x1ec)];if(_0x5b5a27[_0x335b85(0x1ec)]==='f'&&_0x5b5a27[_0x335b85(0x1d1)]['t'])_0x24f53c=!![];}else{if(_0xdc6c2f&&_0x5b5a27['name']==='r')_0x24f53c=!![];else{if(_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x18e)){const _0x529145=_0x5b5a27[_0x335b85(0x1d1)][_0x335b85(0x1b5)];if(!_0x529145)throw new Error(_0x335b85(0x192));const _0x39dca8=_0x529145[_0x335b85(0x1ee)](':');if(_0x39dca8[_0x335b85(0x1a3)]>0x2)throw new Error(_0x335b85(0x192));const _0x37ce4d=_0x4e47d0(_0x39dca8[0x0]),_0x5b0818=_0x4e47d0(_0x39dca8[0x1]??_0x39dca8[0x0]);_0x41236f[_0x335b85(0x17a)](_0x529145),_0x4ddd8f(Math[_0x335b85(0x205)](_0x37ce4d['col'],_0x5b0818[_0x335b85(0x1ac)]),0x1);}else{if(_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x1ac)){const _0x39a1c6=_0x411ead(_0x5b5a27[_0x335b85(0x1d1)]['min'],0x4000),_0x3a30ee=_0x411ead(_0x5b5a27[_0x335b85(0x1d1)]['max'],0x4000);if(_0x39a1c6>_0x3a30ee)throw new Error(_0x335b85(0x191));_0x4ddd8f(_0x3a30ee,0x1);}else{if(_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x223)){const _0x13e5f3=_0x5b5a27[_0x335b85(0x1d1)]['ref'];if(!_0x13e5f3)throw new Error(_0x335b85(0x1c2));const _0x1e976c=_0x13e5f3[_0x335b85(0x1ee)](':');if(_0x1e976c[_0x335b85(0x1a3)]>0x2)throw new Error(_0x335b85(0x1c2));const _0x3af94a=_0x4e47d0(_0x1e976c[0x0]),_0x508af1=_0x4e47d0(_0x1e976c[0x1]??_0x1e976c[0x0]);_0x4ddd8f(Math[_0x335b85(0x205)](_0x3af94a['col'],_0x508af1['col']));const _0x3f3106=(Math[_0x335b85(0x16e)](_0x508af1[_0x335b85(0x163)]-_0x3af94a[_0x335b85(0x163)])+0x1)*(Math[_0x335b85(0x16e)](_0x508af1['col']-_0x3af94a[_0x335b85(0x1ac)])+0x1);_0x4ae3f2+=_0x3f3106+_0x4eeb27++;if(_0x4ae3f2>MAX_ROWS)throw new Error(_0x335b85(0x172));}}}}}}}}),_0x349142?.['on'](_0x21333e(0x235),_0x32c63b=>{const _0x2088e7=_0x21333e;if(_0x477343){_0xbd7305?.[_0x2088e7(0x230)](_0x32c63b);return;}if(_0xdc6c2f&&_0x2d77a3&&_0x32c63b)_0x24f53c=!![];}),_0x349142?.['on']('closetag',_0x44867e=>{const _0x20a889=_0x21333e;if(_0x477343){_0xbd7305&&!_0xbd7305[_0x20a889(0x17b)]()&&(_0x373333(_0xbd7305[_0x20a889(0x1c0)]),_0xbd7305=undefined);return;}if(_0x44867e[_0x20a889(0x1ec)]==='c'){!_0x24f53c&&_0x37cf45&&!_0x45e4ba&&(_0x45e4ba={'before':_0x4ca3b1,'cells':[]});if(_0x45e4ba){if(++_0x3bbb78>0xf4240)throw new Error(_0x20a889(0x1d4));_0x45e4ba['cells'][_0x20a889(0x1f7)]({'reference':_0x37cf45,'address':_0x201ada,'materialized':_0x24f53c});if(!_0x37cf45&&_0x24f53c)_0x1d13af=!![];}if(_0x24f53c){if(!_0x45e4ba||_0x37cf45){if(!_0x1df08b)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x1df08b[_0x20a889(0x1ac)]>MAX_XML_COLUMNS)throw new Error(_0x20a889(0x17d));_0x4ddd8f(_0x1df08b[_0x20a889(0x1ac)]);}_0x4ca3b1=_0x1df08b;}_0xdc6c2f=![],_0x1df08b=undefined,_0x37cf45=undefined,_0x201ada=undefined,_0x2d77a3=undefined;}else{if(_0x44867e[_0x20a889(0x1ec)]==='row'){if(_0x45e4ba&&_0x1d13af)_0x2bab7b[_0x20a889(0x1f7)](_0x45e4ba);_0x45e4ba=undefined,_0x1d13af=![];}else{if(_0x44867e[_0x20a889(0x1ec)]===_0x2d77a3)_0x2d77a3=undefined;}}}),_0x349142?.['on'](_0x21333e(0x1a2),_0x11b3df=>{const _0x32f4d2=_0x21333e;throw new Error(_0x32f4d2(0x234)+_0x11b3df['message']);}),_0x5be8c4['on']('error',_0x4eaa70),_0x5be8c4['on'](_0x21333e(0x173),_0x40641a=>{const _0xbce525=_0x21333e;if(_0x39d084)return;_0x101188+=_0x40641a[_0xbce525(0x1a3)],_0x2e18fe?.[_0xbce525(0x1f7)](_0x40641a);if(_0x101188>MAX_EXPANDED){_0x4eaa70(new Error(_0xbce525(0x1c7)));return;}try{if(_0x7e628b&&_0x443a4f)_0x7e628b[_0xbce525(0x219)](_0x443a4f['write'](_0x40641a));if(_0x349142&&_0x1541ff)_0x349142['write'](_0x1541ff['write'](_0x40641a));}catch(_0x3442a2){_0x4eaa70(_0x3442a2 instanceof Error?_0x3442a2:new Error(_0xbce525(0x201)));}}),_0x5be8c4['on']('end',()=>{const _0x254891=_0x21333e;if(_0x39d084)return;try{if(_0x7e628b&&_0x443a4f)_0x7e628b[_0x254891(0x219)](_0x443a4f[_0x254891(0x195)]())[_0x254891(0x18a)]();if(_0x349142&&_0x1541ff)_0x349142[_0x254891(0x219)](_0x1541ff[_0x254891(0x195)]())[_0x254891(0x18a)]();for(const _0x35a1ec of _0x2bab7b){let _0x1986a0=_0x35a1ec[_0x254891(0x208)];for(const _0x3e4e5d of _0x35a1ec[_0x254891(0x222)]){if(!_0x3e4e5d[_0x254891(0x1ca)]&&!(_0x3e4e5d['reference']&&_0x41236f[_0x254891(0x1b2)](_0x3e4e5d[_0x254891(0x14d)])))continue;const _0x130fcb=_0x3e4e5d[_0x254891(0x1d8)]??(_0x1986a0?{'row':_0x1986a0[_0x254891(0x163)],'col':_0x1986a0[_0x254891(0x1ac)]+0x1}:undefined);if(!_0x130fcb)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x130fcb[_0x254891(0x1ac)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x4ddd8f(_0x130fcb['col']),_0x1986a0=_0x130fcb;}}_0x2bab7b[_0x254891(0x1a3)]=0x0,_0x41236f[_0x254891(0x1e3)]();}catch(_0x3c9bde){_0x4eaa70(_0x3c9bde instanceof Error?_0x3c9bde:new Error(_0x254891(0x201)));return;}if(_0x2e18fe)_0x1262fb[_0x254891(0x1eb)](_0x158985,Buffer[_0x254891(0x158)](_0x2e18fe));_0x30d1d5=undefined,_0x2046bd[_0x254891(0x17c)]();});});}),_0x2046bd['on'](_0xe7e39d(0x195),()=>{const _0x58c6ad=_0xe7e39d;if(_0x39d084)return;if(_0x2046bd[_0x58c6ad(0x23a)]!==_0x58dcd8){_0x369459(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x4db5f2[_0x58c6ad(0x1b2)](_0x58c6ad(0x21e))||!_0x4db5f2[_0x58c6ad(0x1b2)](_0x58c6ad(0x19c)))_0x369459(new Error(_0x58c6ad(0x14f)));else _0x41d73d();}),_0x2046bd[_0xe7e39d(0x17c)]();});});}function valueOf(_0x4330a4){const _0x3cbd22=a140_0x590d62,_0x5a97ba=_0x4330a4[_0x3cbd22(0x1d3)];if(_0x5a97ba&&typeof _0x5a97ba===_0x3cbd22(0x1cc)&&(_0x3cbd22(0x184)in _0x5a97ba||_0x3cbd22(0x177)in _0x5a97ba)){if(!(_0x3cbd22(0x22c)in _0x5a97ba)||_0x5a97ba['result']===undefined)throw new Error(_0x3cbd22(0x225));return _0x5a97ba[_0x3cbd22(0x22c)];}return _0x5a97ba;}function convert(_0x3fec8d,_0x35112a){const _0x107418=a140_0x590d62;if(_0x3fec8d===null||_0x3fec8d===undefined||_0x3fec8d===''){if(_0x35112a['required']&&!_0x35112a[_0x107418(0x160)])throw new Error(_0x107418(0x188));return null;}if(typeof _0x3fec8d===_0x107418(0x1be)&&Buffer[_0x107418(0x233)](_0x3fec8d,'utf8')>MAX_CELL)throw new Error(_0x107418(0x1c1));switch(_0x35112a[_0x107418(0x1a1)][_0x107418(0x22d)]()){case'string':case _0x107418(0x235):case _0x107418(0x18f):if(typeof _0x3fec8d!==_0x107418(0x1be))throw new Error(_0x107418(0x1e6));return _0x3fec8d;case _0x107418(0x165):case'decimal':case _0x107418(0x1fa):if(typeof _0x3fec8d!=='number'||!Number[_0x107418(0x229)](_0x3fec8d)||Math[_0x107418(0x16e)](_0x3fec8d)>Number['MAX_SAFE_INTEGER']||_0x35112a[_0x107418(0x1a1)][_0x107418(0x22d)]()===_0x107418(0x1fa)&&!Number[_0x107418(0x1e1)](_0x3fec8d))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x3fec8d;case _0x107418(0x1cd):if(typeof _0x3fec8d!==_0x107418(0x1cd))throw new Error(_0x107418(0x198));return _0x3fec8d;case _0x107418(0x1df):case'datetime':if(!(_0x3fec8d instanceof Date)||!Number[_0x107418(0x229)](_0x3fec8d[_0x107418(0x1ba)]()))throw new Error(_0x107418(0x1af));return _0x3fec8d[_0x107418(0x1ba)]();default:throw new Error(_0x107418(0x1e2)+_0x35112a[_0x107418(0x1a1)]+'.');}}export async function buildExcelManifest(_0x52955a){const _0x399465=a140_0x590d62,_0x2ff8f2=_0x52955a['headerRow']??0x1;if(!Number['isInteger'](_0x2ff8f2)||_0x2ff8f2<0x1||_0x2ff8f2>MAX_ROWS)throw new Error(_0x399465(0x23e));if(_0x52955a[_0x399465(0x1e5)]!==undefined&&(!Number['isInteger'](_0x52955a[_0x399465(0x1e5)])||_0x52955a[_0x399465(0x1e5)]<0x1||_0x52955a[_0x399465(0x1e5)]>0x3e8))throw new Error(_0x399465(0x240));if(a140_0x11e7ee[_0x399465(0x162)](_0x52955a[_0x399465(0x21a)])[_0x399465(0x22d)]()!==_0x399465(0x200))throw new Error(_0x399465(0x218));const _0x5707cf=await stat(_0x52955a[_0x399465(0x21a)]);if(!_0x5707cf[_0x399465(0x1b3)]()||_0x5707cf[_0x399465(0x1f8)]>MAX_FILE)throw new Error(_0x399465(0x23f));const _0x4b1bb8=await readFile(_0x52955a[_0x399465(0x21a)]);if(_0x4b1bb8[_0x399465(0x1a3)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x3ebe14=_0x52955a[_0x399465(0x1de)][_0x399465(0x16b)](_0x4e5290=>isImageContainer(_0x4e5290[_0x399465(0x1a1)])&&Object[_0x399465(0x212)](_0x52955a[_0x399465(0x1b1)])[_0x399465(0x1bd)](_0x4e5290[_0x399465(0x1f1)]))?new Map():undefined;await checkArchive(_0x4b1bb8,_0x3ebe14);const _0x5a6a93=new a140_0xddb607['Workbook']();await _0x5a6a93[_0x399465(0x1ae)][_0x399465(0x193)](_0x4b1bb8,{'ignoreNodes':[_0x399465(0x164)]});const _0x2a1b24=_0x52955a[_0x399465(0x1c6)];let _0x2244e9;if(_0x2a1b24===undefined)_0x2244e9=_0x5a6a93[_0x399465(0x1b8)][0x0];else{if(typeof _0x2a1b24==='string'&&_0x5a6a93[_0x399465(0x1b8)]['some'](_0x197062=>_0x197062[_0x399465(0x1ec)]===_0x2a1b24))_0x2244e9=_0x5a6a93[_0x399465(0x1b8)][_0x399465(0x207)](_0x4f5e28=>_0x4f5e28[_0x399465(0x1ec)]===_0x2a1b24);else{if(typeof _0x2a1b24===_0x399465(0x165)||/^\d+$/[_0x399465(0x1a0)](_0x2a1b24)){const _0x5a1467=Number(_0x2a1b24);if(!Number[_0x399465(0x1e1)](_0x5a1467)||_0x5a1467<0x1)throw new Error(_0x399465(0x214));_0x2244e9=_0x5a6a93[_0x399465(0x1b8)][_0x5a1467-0x1];}else _0x2244e9=_0x5a6a93[_0x399465(0x1b8)]['find'](_0x406449=>_0x406449['name']===_0x2a1b24);}}if(!_0x2244e9)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x2244e9[_0x399465(0x14b)]>MAX_ROWS||_0x2244e9['columnCount']>MAX_COLUMNS)throw new Error(_0x399465(0x190));if((_0x2244e9[_0x399465(0x1c0)][_0x399465(0x1a5)]??[])['length'])throw new Error(_0x399465(0x1d5));const _0x46efd2=new Map();_0x2244e9[_0x399465(0x1ff)](_0x2ff8f2)[_0x399465(0x1fd)]((_0x1ffbb8,_0x4f46e5)=>{const _0x1f5e41=_0x399465,_0x3db506=valueOf(_0x1ffbb8);if(typeof _0x3db506!==_0x1f5e41(0x1be)||!_0x3db506['trim']()||Buffer[_0x1f5e41(0x233)](_0x3db506)>MAX_CELL)throw new Error(_0x1f5e41(0x159));if(_0x46efd2[_0x1f5e41(0x1b2)](_0x3db506))throw new Error(_0x1f5e41(0x19d)+_0x3db506+'.');_0x46efd2[_0x1f5e41(0x1eb)](_0x3db506,_0x4f46e5);});const _0x1c73d5=Object[_0x399465(0x1f0)](_0x52955a[_0x399465(0x1b1)]);if(!_0x1c73d5['length'])throw new Error(_0x399465(0x1dc));const _0x571d30=new Map(_0x52955a[_0x399465(0x1de)][_0x399465(0x211)](_0x284379=>[_0x284379[_0x399465(0x1f1)],_0x284379]));if(_0x571d30[_0x399465(0x1f8)]!==_0x52955a[_0x399465(0x1de)][_0x399465(0x1a3)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x52955a[_0x399465(0x1de)][_0x399465(0x16b)](_0x1e2934=>_0x1e2934[_0x399465(0x1a1)][_0x399465(0x22d)]()===_0x399465(0x182)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x391ae6=new Set();for(const [_0x2764d0,_0x307411]of _0x1c73d5){const _0x214d3f=_0x571d30[_0x399465(0x209)](_0x307411);if(!_0x46efd2[_0x399465(0x1b2)](_0x2764d0))throw new Error(_0x399465(0x15c)+_0x2764d0+'.');if(!_0x214d3f||RESERVED['has'](_0x307411)||_0x214d3f[_0x399465(0x160)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x307411+'.');if(_0x391ae6['has'](_0x307411))throw new Error(_0x399465(0x1db)+_0x307411+'.');if(!TYPES[_0x399465(0x1b2)](_0x214d3f[_0x399465(0x1a1)][_0x399465(0x22d)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x214d3f[_0x399465(0x1a1)]+'.');_0x391ae6[_0x399465(0x17a)](_0x307411);}for(const _0x1be87a of _0x52955a[_0x399465(0x1de)]){if(_0x1be87a['required']&&!_0x1be87a['generated']&&!RESERVED[_0x399465(0x1b2)](_0x1be87a[_0x399465(0x1f1)])&&!_0x391ae6['has'](_0x1be87a[_0x399465(0x1f1)]))throw new Error(_0x399465(0x1bf)+_0x1be87a[_0x399465(0x1f1)]+'.');}const _0x366526={'fileHash':hash(_0x4b1bb8),'mappingHash':hash(JSON['stringify']([..._0x1c73d5][_0x399465(0x203)](([_0x2a1eae],[_0x5d3713])=>_0x2a1eae[_0x399465(0x22a)](_0x5d3713)))),'schemaHash':hash(JSON[_0x399465(0x181)]([..._0x52955a['fields']][_0x399465(0x203)]((_0x4f31fa,_0xb0ddb4)=>_0x4f31fa[_0x399465(0x1f1)][_0x399465(0x22a)](_0xb0ddb4[_0x399465(0x1f1)])))),'sheet':_0x2244e9[_0x399465(0x1ec)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x52b599=_0x1c73d5[_0x399465(0x206)](([,_0x4aa861])=>isImageContainer(_0x571d30['get'](_0x4aa861)['type'])),_0x21052d=_0x52b599[_0x399465(0x206)](([,_0x3edec5])=>_0x571d30[_0x399465(0x209)](_0x3edec5)[_0x399465(0x1a1)]['toLowerCase']()===_0x399465(0x180))[_0x399465(0x211)](([,_0x3c7fb3])=>_0x3c7fb3);if(_0x21052d[_0x399465(0x1a3)])_0x366526[_0x399465(0x1bc)]=_0x21052d;const _0x444888=_0x3ebe14?resolveWorksheetImages(_0x3ebe14,_0x2244e9['name'],new Set(_0x52b599[_0x399465(0x211)](([_0x5e6b59])=>_0x46efd2[_0x399465(0x209)](_0x5e6b59)))):[],_0x4c8efa=new Map();for(const _0x49249e of _0x444888){const _0x285e7e=_0x49249e[_0x399465(0x163)]+':'+_0x49249e[_0x399465(0x1ac)],_0x520576=_0x4c8efa[_0x399465(0x209)](_0x285e7e)??[];_0x520576[_0x399465(0x1f7)](_0x49249e),_0x4c8efa[_0x399465(0x1eb)](_0x285e7e,_0x520576);}const _0x470725=new Map();let _0x11e780=0x0;_0x52b599['length']&&(_0x366526['imageFields']=_0x52b599[_0x399465(0x211)](([,_0x56c607])=>_0x56c607),_0x366526[_0x399465(0x14c)]=[],_0x366526[_0x399465(0x189)]=0x1,_0x366526[_0x399465(0x17e)]=[]);const _0x33a4cd=Math[_0x399465(0x205)](0x0,..._0x444888[_0x399465(0x211)](_0x24dafd=>_0x24dafd['row']));let _0x40a001=0x0;const _0x4dbeef=new Set(_0x1c73d5[_0x399465(0x211)](([_0x35d35e])=>_0x46efd2[_0x399465(0x209)](_0x35d35e)));for(let _0x3bb9d6=_0x2ff8f2+0x1;_0x3bb9d6<=Math['max'](_0x2244e9['rowCount'],_0x33a4cd);_0x3bb9d6++){const _0x56d6d4=_0x2244e9['getRow'](_0x3bb9d6);if(_0x56d6d4[_0x399465(0x1d6)]||_0x444888[_0x399465(0x16b)](_0x2a5950=>_0x2a5950[_0x399465(0x163)]===_0x3bb9d6&&_0x2a5950[_0x399465(0x202)]))_0x40a001++;let _0x3beb3e=_0x444888[_0x399465(0x16b)](_0x28727d=>_0x28727d['row']===_0x3bb9d6);_0x56d6d4[_0x399465(0x1fd)](_0x301658=>{const _0x34cbb0=_0x399465;if(_0x301658['value']!==null&&_0x301658[_0x34cbb0(0x1d3)]!==undefined&&_0x301658[_0x34cbb0(0x1d3)]!=='')_0x3beb3e=!![];});if(!_0x3beb3e){_0x366526[_0x399465(0x18b)][_0x399465(0x1f7)](_0x3bb9d6);continue;}const _0x8c413a=Object['create'](null);_0x56d6d4['eachCell']((_0x311dfb,_0x1eb6e3)=>{const _0x2d98ab=_0x399465;if(_0x4dbeef[_0x2d98ab(0x1b2)](_0x1eb6e3))return;try{const _0x25c127=valueOf(_0x311dfb);if(typeof _0x25c127===_0x2d98ab(0x1be)&&Buffer[_0x2d98ab(0x233)](_0x25c127,_0x2d98ab(0x204))>MAX_CELL)throw new Error(_0x2d98ab(0x1c1));}catch(_0x5077e5){_0x366526['errors'][_0x2d98ab(0x1f7)]({'rowNumber':_0x3bb9d6,'field':_0x311dfb['address'],'message':_0x5077e5[_0x2d98ab(0x15a)]});}});for(const [_0x175150,_0x463830]of _0x1c73d5){try{const _0x5a61dd=_0x56d6d4[_0x399465(0x1a9)](_0x46efd2['get'](_0x175150)),_0x2baa2d=_0x571d30['get'](_0x463830);if(!isImageContainer(_0x2baa2d[_0x399465(0x1a1)])){_0x8c413a[_0x463830]=convert(valueOf(_0x5a61dd),_0x2baa2d);continue;}const _0x2540b0=_0x4c8efa['get'](_0x3bb9d6+':'+_0x46efd2['get'](_0x175150))??[];if(_0x2540b0['some'](_0x5a27ce=>_0x5a27ce[_0x399465(0x1a2)]))throw Error(_0x2540b0[_0x399465(0x207)](_0x44622f=>_0x44622f[_0x399465(0x1a2)])[_0x399465(0x1a2)]);if(_0x5a61dd['value']!=null&&_0x5a61dd[_0x399465(0x1d3)]!==''&&!_0x2540b0[_0x399465(0x16b)](_0x570a1b=>_0x570a1b[_0x399465(0x20e)]))throw Error(_0x399465(0x153));const _0x3c2c4f=[];for(const _0x2cbcaf of _0x2540b0)for(const _0x535a08 of _0x2cbcaf[_0x399465(0x17e)]){const _0x3dae58=_0x3ebe14[_0x399465(0x209)](_0x535a08);if(!_0x3dae58)throw Error('Missing\x20image\x20media:\x20'+_0x535a08+'.');const _0x3ce488=hash(_0x3dae58),_0x2bbc77=_0x470725[_0x399465(0x209)](_0x3ce488)??validateImageBytes(_0x3dae58);if(!_0x470725[_0x399465(0x1b2)](_0x2bbc77[_0x399465(0x1cb)])){_0x11e780+=_0x2bbc77['size'];if(_0x11e780>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x470725['set'](_0x2bbc77[_0x399465(0x1cb)],_0x2bbc77);}_0x3c2c4f[_0x399465(0x1f7)](_0x2bbc77[_0x399465(0x1cb)]);}if(!_0x3c2c4f[_0x399465(0x1a3)]&&_0x2baa2d[_0x399465(0x1e9)])throw Error(_0x399465(0x18d));if(_0x3c2c4f[_0x399465(0x1a3)])_0x366526[_0x399465(0x14c)][_0x399465(0x1f7)]({'rowNumber':_0x3bb9d6,'field':_0x463830,'hashes':_0x3c2c4f});_0x8c413a[_0x463830]=_0x3c2c4f['map'](_0x5a186d=>{const _0x26c603=_0x399465,_0x3aa4c8=_0x470725['get'](_0x5a186d),_0x58aca0=_0x3aa4c8['type']===_0x26c603(0x22e)?_0x26c603(0x231):_0x3aa4c8[_0x26c603(0x1a1)]['slice'](0x6),_0x5a46b7=_0x5a186d+'.'+_0x58aca0,_0x37471e=_0x26c603(0x1bb)+'0'[_0x26c603(0x1d7)](0x40)+'/'+_0x5a46b7;return _0x2baa2d[_0x26c603(0x1a1)][_0x26c603(0x22d)]()===_0x26c603(0x180)?{'fileName':_0x5a46b7,'filePath':_0x37471e}:{'key':_0x37471e,'name':_0x5a46b7,'type':_0x3aa4c8['type'],'size':_0x3aa4c8[_0x26c603(0x1f8)]};});}catch(_0x235014){_0x366526[_0x399465(0x179)][_0x399465(0x1f7)]({'rowNumber':_0x3bb9d6,'field':_0x463830,'message':_0x235014[_0x399465(0x15a)]});}}_0x366526[_0x399465(0x1a6)][_0x399465(0x1f7)]({'rowNumber':_0x3bb9d6,'values':_0x8c413a});}if(_0x366526[_0x399465(0x17e)])_0x366526[_0x399465(0x17e)]=[..._0x470725[_0x399465(0x212)]()];if(_0x40a001)_0x366526[_0x399465(0x22b)]['push'](_0x40a001+_0x399465(0x16c));return _0x366526;}
|
|
1
|
+
const a140_0x218a30=a140_0x2850;(function(_0x57a507,_0xf2277f){const _0x1f72aa=a140_0x2850,_0x31f433=_0x57a507();while(!![]){try{const _0x11bec6=parseInt(_0x1f72aa(0x1ed))/0x1*(parseInt(_0x1f72aa(0x239))/0x2)+-parseInt(_0x1f72aa(0x1da))/0x3+-parseInt(_0x1f72aa(0x282))/0x4+-parseInt(_0x1f72aa(0x270))/0x5*(-parseInt(_0x1f72aa(0x2b0))/0x6)+-parseInt(_0x1f72aa(0x232))/0x7+-parseInt(_0x1f72aa(0x1d2))/0x8+-parseInt(_0x1f72aa(0x1d6))/0x9*(-parseInt(_0x1f72aa(0x27e))/0xa);if(_0x11bec6===_0xf2277f)break;else _0x31f433['push'](_0x31f433['shift']());}catch(_0x108126){_0x31f433['push'](_0x31f433['shift']());}}}(a140_0x2645,0x56e2d));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x184eec from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0x2b3ab8 from'exceljs';import a140_0x272ab6 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',a140_0x218a30(0x1f3),a140_0x218a30(0x246),a140_0x218a30(0x207),'creatorId',a140_0x218a30(0x274),a140_0x218a30(0x226),a140_0x218a30(0x1ef),a140_0x218a30(0x208),a140_0x218a30(0x28b),a140_0x218a30(0x1dd)]),TYPES=new Set([a140_0x218a30(0x206),a140_0x218a30(0x21f),'textarea',a140_0x218a30(0x20a),a140_0x218a30(0x210),'integer',a140_0x218a30(0x1cb),a140_0x218a30(0x23a),'datetime','image',a140_0x218a30(0x29a)]),isImageContainer=_0x5711c6=>['image',a140_0x218a30(0x29a)][a140_0x218a30(0x1f4)](_0x5711c6['toLowerCase']()),hash=_0x5244ef=>createHash(a140_0x218a30(0x1dc))[a140_0x218a30(0x251)](_0x5244ef)[a140_0x218a30(0x254)](a140_0x218a30(0x22d)),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x218a30(0x224)),nameCoordinates=require(a140_0x218a30(0x1df)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x218a30(0x2bc)]('exceljs')),zipRequire=createRequire(excelRequire['resolve'](a140_0x218a30(0x281))),ZipEntry=zipRequire(a140_0x218a30(0x2a7)),zipReader=zipRequire(a140_0x218a30(0x23c)),zipUtf8=zipRequire(a140_0x218a30(0x266)),zipPaths=zipRequire(a140_0x218a30(0x1f9));function a140_0x2850(_0x3dc8b1,_0x5d50b7){_0x3dc8b1=_0x3dc8b1-0x1c9;const _0x2645b4=a140_0x2645();let _0x28506a=_0x2645b4[_0x3dc8b1];return _0x28506a;}function centralDirectoryEnd(_0x424b10,_0x408106){const _0x2c2447=a140_0x218a30,_0x2b19db=()=>new Error(_0x2c2447(0x298)),_0x504446=_0x424b10['lastIndexOf'](Buffer[_0x2c2447(0x27f)]([0x50,0x4b,0x5,0x6]));if(_0x504446<0x0||_0x504446+0x16>_0x424b10[_0x2c2447(0x2b2)]||_0x504446+0x16+_0x424b10[_0x2c2447(0x1fc)](_0x504446+0x14)!==_0x424b10[_0x2c2447(0x2b2)])throw _0x2b19db();let _0x5dd2fd=_0x424b10[_0x2c2447(0x1fc)](_0x504446+0xa),_0x357efc=_0x424b10[_0x2c2447(0x247)](_0x504446+0xc),_0x1f9fdc=_0x424b10['readUInt32LE'](_0x504446+0x10),_0x2b4437=_0x504446;const _0xa57a4f=_0x504446-0x14,_0x4e3c8d=_0xa57a4f>=0x0&&_0x424b10['readUInt32LE'](_0xa57a4f)===0x7064b50,_0x4a1098=[0x4,0x6,0x8,0xa][_0x2c2447(0x2a9)](_0x8c91ca=>_0x424b10[_0x2c2447(0x1fc)](_0x504446+_0x8c91ca)===0xffff)||_0x357efc===0xffffffff||_0x1f9fdc===0xffffffff;if(_0x4e3c8d!==_0x4a1098)throw _0x2b19db();if(_0x4e3c8d){if(_0x424b10['lastIndexOf'](Buffer[_0x2c2447(0x27f)]([0x50,0x4b,0x6,0x7]))!==_0xa57a4f)throw _0x2b19db();const _0x908aa6=_0x4071a7=>{const _0xd90d93=_0x2c2447,_0x2eae24=Number(_0x424b10[_0xd90d93(0x1eb)](_0x4071a7));if(!Number[_0xd90d93(0x242)](_0x2eae24))throw _0x2b19db();return _0x2eae24;};_0x2b4437=_0x908aa6(_0xa57a4f+0x8);if(_0x424b10[_0x2c2447(0x247)](_0xa57a4f+0x4)!==0x0||_0x424b10[_0x2c2447(0x247)](_0xa57a4f+0x10)!==0x1||_0x2b4437>_0xa57a4f-0x38||_0x424b10[_0x2c2447(0x247)](_0x2b4437)!==0x6064b50||_0x908aa6(_0x2b4437+0x4)!==0x2c||_0x2b4437+0x38!==_0xa57a4f||_0x424b10[_0x2c2447(0x247)](_0x2b4437+0x10)!==0x0||_0x424b10[_0x2c2447(0x247)](_0x2b4437+0x14)!==0x0)throw _0x2b19db();_0x5dd2fd=_0x908aa6(_0x2b4437+0x20),_0x357efc=_0x908aa6(_0x2b4437+0x28),_0x1f9fdc=_0x908aa6(_0x2b4437+0x30);if(_0x908aa6(_0x2b4437+0x18)!==_0x5dd2fd)throw _0x2b19db();}else{if(_0x424b10[_0x2c2447(0x1fc)](_0x504446+0x4)!==0x0||_0x424b10[_0x2c2447(0x1fc)](_0x504446+0x6)!==0x0||_0x424b10['readUInt16LE'](_0x504446+0x8)!==_0x5dd2fd)throw _0x2b19db();}const _0x34c977=_0x408106[_0x2c2447(0x264)];if(_0x1f9fdc!==_0x34c977||_0x5dd2fd!==_0x408106[_0x2c2447(0x1ec)]||_0x1f9fdc+_0x357efc!==_0x2b4437)throw _0x2b19db();return _0x2b4437;}function consumerEntryName(_0x9b1d67,_0x495223){const _0x43066d=a140_0x218a30;if(_0x495223['extraFields']['filter'](_0x15ced6=>_0x15ced6['id']===0x1)[_0x43066d(0x2b2)]>0x1)throw new Error(_0x43066d(0x27b));const _0x405b5b=_0x495223,_0x1f091e=_0x495223[_0x43066d(0x1ca)];if(!Buffer[_0x43066d(0x284)](_0x405b5b[_0x43066d(0x252)])||!Buffer[_0x43066d(0x284)](_0x405b5b[_0x43066d(0x2ac)])||!Buffer[_0x43066d(0x284)](_0x405b5b[_0x43066d(0x23f)])||!Number['isSafeInteger'](_0x1f091e)||_0x1f091e<0x0||_0x1f091e>_0x9b1d67[_0x43066d(0x2b2)]-0x1e||_0x9b1d67[_0x43066d(0x247)](_0x1f091e)!==0x4034b50)throw new Error(_0x43066d(0x233));const _0x426f5e=_0x1f091e+0x1e+_0x9b1d67[_0x43066d(0x1fc)](_0x1f091e+0x1a),_0x2f5e94=_0x426f5e+_0x9b1d67[_0x43066d(0x1fc)](_0x1f091e+0x1c)+_0x495223[_0x43066d(0x2ba)];if(!Number[_0x43066d(0x242)](_0x2f5e94)||_0x2f5e94>_0x9b1d67[_0x43066d(0x2b2)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x426f5e>_0x9b1d67[_0x43066d(0x2b2)]||!_0x9b1d67['subarray'](_0x1f091e+0x1e,_0x426f5e)[_0x43066d(0x263)](_0x405b5b[_0x43066d(0x252)]))throw new Error(_0x43066d(0x2a6));const _0x1f0106=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x1f0106[_0x43066d(0x295)]=_0x495223['generalPurposeBitFlag'],_0x1f0106[_0x43066d(0x216)]=_0x405b5b[_0x43066d(0x252)],_0x1f0106[_0x43066d(0x1db)]=_0x405b5b['fileCommentRaw'],_0x1f0106[_0x43066d(0x1e8)]=_0x405b5b[_0x43066d(0x2ac)]['length'],_0x1f0106['readExtraFields'](zipReader(_0x405b5b[_0x43066d(0x2ac)])),_0x1f0106[_0x43066d(0x265)](),_0x1f0106[_0x43066d(0x241)]=_0x495223[_0x43066d(0x241)],_0x1f0106['externalFileAttributes']=_0x495223[_0x43066d(0x213)],_0x1f0106[_0x43066d(0x25f)]();const _0x56ebde=_0x1f0106['dir']||Boolean((_0x1f0106['unixPermissions']??0x0)&0x4000),_0x2eed98=zipPaths[_0x43066d(0x2bc)](_0x1f0106[_0x43066d(0x201)]),_0x415826=_0x2eed98[_0x43066d(0x256)]('/')?_0x2eed98[_0x43066d(0x285)](0x1):_0x2eed98;return{'name':_0x415826,'original':_0x1f0106[_0x43066d(0x201)],'directory':_0x56ebde};}export function normalizeImportFields(_0x41fd9e){const _0x3fa7a3=a140_0x218a30;if(!_0x41fd9e||(_0x41fd9e[_0x3fa7a3(0x278)]??_0x41fd9e[_0x3fa7a3(0x287)]?.[_0x3fa7a3(0x2a3)])!==_0x3fa7a3(0x25d))throw new Error(_0x3fa7a3(0x221));const _0x30659c=Array['isArray'](_0x41fd9e[_0x3fa7a3(0x20f)]),_0x54b536=_0x30659c?_0x41fd9e[_0x3fa7a3(0x20f)]:_0x41fd9e[_0x3fa7a3(0x203)];if(!Array['isArray'](_0x54b536)||_0x54b536[_0x3fa7a3(0x2b2)]===0x0)throw new Error(_0x3fa7a3(0x2b6));const _0x29865f=[],_0x3cdd47=new Set();for(const _0x72eeee of _0x54b536){if(_0x72eeee[_0x3fa7a3(0x1dd)]===!![])continue;let _0x16783d=_0x72eeee[_0x3fa7a3(0x1f5)]??{};if(!_0x30659c&&typeof _0x16783d===_0x3fa7a3(0x206)){try{_0x16783d=JSON[_0x3fa7a3(0x20b)](_0x16783d);}catch{throw new Error(_0x3fa7a3(0x276));}if(!_0x16783d||typeof _0x16783d!==_0x3fa7a3(0x29c)||Array[_0x3fa7a3(0x289)](_0x16783d))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x5963a4=_0x30659c?_0x72eeee['name']:_0x72eeee[_0x3fa7a3(0x27d)],_0xf87ebb=_0x30659c?_0x72eeee['doType']:_0x72eeee[_0x3fa7a3(0x291)]??_0x72eeee[_0x3fa7a3(0x1f7)];if(typeof _0x5963a4!==_0x3fa7a3(0x206)||!_0x5963a4||typeof _0xf87ebb!==_0x3fa7a3(0x206)||_0x3cdd47['has'](_0x5963a4))throw new Error(_0x3fa7a3(0x29e));if(_0xf87ebb['toLowerCase']()===_0x3fa7a3(0x25a))throw new Error(_0x3fa7a3(0x24e));_0x3cdd47['add'](_0x5963a4);const _0x1eb886=_0x30659c?_0x72eeee:_0x16783d,_0x19e055={'code':_0x5963a4,'type':_0xf87ebb,'required':_0x1eb886[_0x3fa7a3(0x262)]===!![]};if(RESERVED[_0x3fa7a3(0x20d)](_0x5963a4)||_0x1eb886[_0x3fa7a3(0x1d3)]===!![]||_0x1eb886[_0x3fa7a3(0x1d9)]===!![])_0x19e055[_0x3fa7a3(0x1d3)]=!![];_0x29865f[_0x3fa7a3(0x2ab)](_0x19e055);}return _0x29865f;}async function checkArchive(_0x57d6b3,_0x344491){await new Promise((_0x1e6465,_0x1368b4)=>{const _0xb45e3c=a140_0x2850;a140_0x272ab6[_0xb45e3c(0x25e)](_0x57d6b3,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x3b7743,_0x3798a4)=>{const _0x437716=_0xb45e3c;if(_0x3b7743||!_0x3798a4){_0x1368b4(_0x3b7743??new Error('Invalid\x20XLSX\x20archive.'));return;}let _0x1dcdb0;try{_0x1dcdb0=centralDirectoryEnd(_0x57d6b3,_0x3798a4);}catch(_0x5681dc){_0x3798a4[_0x437716(0x1cd)](),_0x1368b4(_0x5681dc);return;}let _0x8bb253=0x0,_0x6e9b5d=0x0,_0x4eb2e3=0x0,_0xfedcc0=0x0,_0x3ba8d4=0x0,_0x2f5b1d=0x0,_0x11233b=0x0,_0x4a11ca=0x0,_0x388335=0x0,_0x249d65=![],_0x364af2;const _0x501407=new Set(),_0x489201=_0x45662f=>{const _0x1d931e=_0x437716;if(_0x249d65)return;_0x249d65=!![],_0x364af2?.[_0x1d931e(0x212)](),_0x3798a4[_0x1d931e(0x1cd)](),_0x1368b4(_0x45662f);},_0x2be152=(_0xd9bae2,_0x501912)=>{const _0x203690=_0x437716;if(!_0xd9bae2||!/^\d+$/[_0x203690(0x215)](_0xd9bae2))throw new Error(_0x203690(0x228));const _0x18db87=Number(_0xd9bae2);if(!Number['isSafeInteger'](_0x18db87)||_0x18db87<0x1||_0x18db87>_0x501912)throw new Error('Worksheet\x20coordinate\x20exceeds\x20'+_0x501912+'.');return _0x18db87;},_0x1bedb6=(_0x96986d,_0x2921f6=MAX_XML_COLUMNS)=>{const _0x326ab3=_0x437716,_0x5a422a=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x326ab3(0x209)](_0x96986d);if(!_0x5a422a)throw new Error(_0x326ab3(0x22e));let _0x4509fb=0x0;for(const _0x32bf51 of _0x5a422a[0x1])_0x4509fb=_0x4509fb*0x1a+_0x32bf51['charCodeAt'](0x0)-0x40;if(_0x4509fb>_0x2921f6)throw new Error(_0x326ab3(0x261)+_0x2921f6+_0x326ab3(0x23b));return{'row':_0x2be152(_0x5a422a[0x2],MAX_XML_ROWS),'col':_0x4509fb};},_0x59b2ae=_0x39e275=>{const _0x2d6007=_0x437716;if(_0x39e275[_0x2d6007(0x21c)]==='_xlnm.Print_Area'||_0x39e275[_0x2d6007(0x21c)]===_0x2d6007(0x1f8))return;for(const _0x359f84 of _0x39e275[_0x2d6007(0x211)]){if(!ABSOLUTE_NAME_RANGE[_0x2d6007(0x215)](_0x359f84[_0x2d6007(0x280)]('!')[_0x2d6007(0x1fb)]()||''))continue;const _0x42a387=nameCoordinates[_0x2d6007(0x24d)](_0x359f84),_0x437540='top'in _0x42a387,_0x46bac7=_0x437540?[_0x42a387[_0x2d6007(0x28d)],_0x42a387[_0x2d6007(0x220)]]:[_0x42a387['row']],_0x18b258=_0x437540?[_0x42a387['left'],_0x42a387[_0x2d6007(0x248)]]:[_0x42a387[_0x2d6007(0x1e0)]],_0x64d107=(_0x4c3fe3,_0x3b095d)=>Number['isSafeInteger'](_0x4c3fe3)&&_0x4c3fe3>=0x1&&_0x4c3fe3<=_0x3b095d;if(!_0x46bac7[_0x2d6007(0x2a4)](_0x1de217=>_0x64d107(_0x1de217,MAX_XML_ROWS))||!_0x18b258[_0x2d6007(0x2a4)](_0x24f309=>_0x64d107(_0x24f309,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x11233b+=_0x437540?(_0x42a387[_0x2d6007(0x220)]-_0x42a387[_0x2d6007(0x28d)]+0x1)*(_0x42a387[_0x2d6007(0x248)]-_0x42a387['left']+0x1):0x1;if(_0x11233b>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x3798a4['on'](_0x437716(0x255),_0x489201),_0x3798a4['on']('entry',_0x13ec0b=>{const _0x1df372=_0x437716;if(_0x249d65)return;if(++_0x4eb2e3>0x2710||(_0x8bb253+=_0x13ec0b[_0x1df372(0x205)])>MAX_EXPANDED){_0x489201(new Error(_0x1df372(0x25b)));return;}let _0x39b9d;try{_0x39b9d=consumerEntryName(_0x57d6b3,_0x13ec0b);}catch(_0x32b40b){_0x489201(_0x32b40b);return;}if(_0x39b9d['directory']){_0x3798a4[_0x1df372(0x22a)]();return;}const _0x4db821=_0x39b9d[_0x1df372(0x21c)];if(_0x344491&&(_0x4db821!==_0x39b9d[_0x1df372(0x292)]||_0x501407[_0x1df372(0x20d)](_0x4db821)||_0x4db821[_0x1df372(0x256)]('/')||_0x4db821[_0x1df372(0x1f4)]('\x5c'))){_0x489201(new Error(_0x1df372(0x2b9)));return;}if(_0x4db821!==_0x39b9d[_0x1df372(0x292)]&&(_0x4db821===_0x1df372(0x204)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x1df372(0x215)](_0x4db821))){_0x489201(new Error(_0x1df372(0x286)));return;}const _0x4bd54d=_0x4db821==='xl/workbook.xml';if(_0x4bd54d&&_0x501407['has'](_0x4db821)){_0x489201(new Error('Duplicate\x20workbook\x20ZIP\x20entry.'));return;}_0x501407['add'](_0x4db821);const _0x15236f=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x1df372(0x215)](_0x4db821);if(_0x15236f&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x1df372(0x215)](_0x4db821)){_0x489201(new Error(_0x1df372(0x1d0)));return;}_0x3798a4[_0x1df372(0x245)](_0x13ec0b,(_0x36b1ba,_0x17f6cf)=>{const _0x4c25ba=_0x1df372;if(_0x249d65){_0x17f6cf?.[_0x4c25ba(0x212)]();return;}if(_0x36b1ba||!_0x17f6cf){_0x489201(_0x36b1ba??new Error(_0x4c25ba(0x23e)));return;}_0x364af2=_0x17f6cf;const _0x95dae8=_0x344491?[]:undefined,_0x555622=_0x344491&&/[.](xml|rels)$/[_0x4c25ba(0x215)](_0x4db821)?new StringDecoder(_0x4c25ba(0x21e)):undefined,_0x4fd5e3=_0x555622?new SaxesParser({'xmlns':![]}):undefined,_0x21500f=()=>{const _0x91a235=_0x4c25ba;if(++_0x388335>0x1e8480)throw Error(_0x91a235(0x1d1));};_0x4fd5e3?.['on'](_0x4c25ba(0x227),()=>{const _0x4fc861=_0x4c25ba;throw Error(_0x4fc861(0x1e1));}),_0x4fd5e3?.['on'](_0x4c25ba(0x22b),()=>{const _0x27c7e9=_0x4c25ba;_0x21500f();if(++_0x4a11ca>0x7a120)throw Error(_0x27c7e9(0x250));}),_0x4fd5e3?.['on'](_0x4c25ba(0x21f),_0x21500f),_0x4fd5e3?.['on']('closetag',_0x21500f),_0x4fd5e3?.['on'](_0x4c25ba(0x255),_0x5da094=>{throw _0x5da094;});const _0x2a326e=_0x15236f||_0x4bd54d?new StringDecoder('utf8'):undefined,_0xb9b05=_0x15236f||_0x4bd54d?new SaxesParser({'xmlns':![]}):undefined;let _0x199f0d,_0x406988=0x0,_0x27aef8=0x0,_0x31a49a,_0x163040,_0x10e8be=![],_0x284e54=![],_0x378ffa,_0x8bc93,_0x37a540,_0x27c6ca=![];const _0x318a8e=[],_0x335147=new Set();let _0x79927b;const _0x20985c=(_0x31a867,_0x2dfb10=0x0)=>{const _0xc4aef7=_0x4c25ba;_0x3ba8d4+=_0x2dfb10+Math[_0xc4aef7(0x2a5)](0x0,_0x31a867-_0x27aef8),_0x27aef8=Math[_0xc4aef7(0x2a5)](_0x27aef8,_0x31a867);if(_0x3ba8d4>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0xb9b05?.['on'](_0x4c25ba(0x22b),_0x32f24b=>{const _0x1e0a7f=_0x4c25ba;if(_0x4bd54d){if(!_0x199f0d&&_0x32f24b[_0x1e0a7f(0x21c)]===_0x1e0a7f(0x236))_0x199f0d=new DefinedNameXform();_0x199f0d?.[_0x1e0a7f(0x26f)](_0x32f24b);return;}if(_0x32f24b[_0x1e0a7f(0x21c)]===_0x1e0a7f(0x22f)){if(_0x284e54)throw new Error(_0x1e0a7f(0x218));_0x2be152(_0x32f24b[_0x1e0a7f(0x21b)]['r'],MAX_XML_ROWS),_0x31a49a=undefined,_0x37a540=undefined,_0x27c6ca=![];}else{if(_0x32f24b[_0x1e0a7f(0x21c)]==='c'){if(_0x284e54)throw new Error(_0x1e0a7f(0x21a));_0x284e54=!![],_0x10e8be=Boolean(Number[_0x1e0a7f(0x2b5)](_0x32f24b[_0x1e0a7f(0x21b)]['s']??'',0xa)),_0x79927b=undefined,_0x378ffa=_0x32f24b['attributes']['r']||undefined,_0x8bc93=_0x378ffa?_0x1bedb6(_0x378ffa):undefined;if(_0x8bc93)_0x163040=_0x8bc93;else _0x163040=_0x31a49a?{'row':_0x31a49a[_0x1e0a7f(0x22f)],'col':_0x31a49a[_0x1e0a7f(0x1e0)]+0x1}:undefined;}else{if(_0x284e54&&['f','v','t'][_0x1e0a7f(0x1f4)](_0x32f24b[_0x1e0a7f(0x21c)])){_0x79927b=_0x32f24b[_0x1e0a7f(0x21c)];if(_0x32f24b['name']==='f'&&_0x32f24b['attributes']['t'])_0x10e8be=!![];}else{if(_0x284e54&&_0x32f24b[_0x1e0a7f(0x21c)]==='r')_0x10e8be=!![];else{if(_0x32f24b[_0x1e0a7f(0x21c)]==='hyperlink'){const _0x568060=_0x32f24b[_0x1e0a7f(0x21b)][_0x1e0a7f(0x20c)];if(!_0x568060)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x5e0855=_0x568060[_0x1e0a7f(0x280)](':');if(_0x5e0855[_0x1e0a7f(0x2b2)]>0x2)throw new Error(_0x1e0a7f(0x277));const _0x5036c1=_0x1bedb6(_0x5e0855[0x0]),_0xcbb23d=_0x1bedb6(_0x5e0855[0x1]??_0x5e0855[0x0]);_0x335147[_0x1e0a7f(0x24a)](_0x568060),_0x20985c(Math[_0x1e0a7f(0x2a5)](_0x5036c1[_0x1e0a7f(0x1e0)],_0xcbb23d['col']),0x1);}else{if(_0x32f24b[_0x1e0a7f(0x21c)]==='col'){const _0x15279e=_0x2be152(_0x32f24b[_0x1e0a7f(0x21b)]['min'],0x4000),_0x5ecc0a=_0x2be152(_0x32f24b[_0x1e0a7f(0x21b)][_0x1e0a7f(0x2a5)],0x4000);if(_0x15279e>_0x5ecc0a)throw new Error(_0x1e0a7f(0x26d));_0x20985c(_0x5ecc0a,0x1);}else{if(_0x32f24b[_0x1e0a7f(0x21c)]===_0x1e0a7f(0x272)){const _0x45370b=_0x32f24b[_0x1e0a7f(0x21b)]['ref'];if(!_0x45370b)throw new Error(_0x1e0a7f(0x269));const _0xa809f0=_0x45370b[_0x1e0a7f(0x280)](':');if(_0xa809f0[_0x1e0a7f(0x2b2)]>0x2)throw new Error(_0x1e0a7f(0x269));const _0x57d90d=_0x1bedb6(_0xa809f0[0x0]),_0x57132d=_0x1bedb6(_0xa809f0[0x1]??_0xa809f0[0x0]);_0x20985c(Math['max'](_0x57d90d[_0x1e0a7f(0x1e0)],_0x57132d[_0x1e0a7f(0x1e0)]));const _0x18f0a2=(Math[_0x1e0a7f(0x253)](_0x57132d[_0x1e0a7f(0x22f)]-_0x57d90d[_0x1e0a7f(0x22f)])+0x1)*(Math[_0x1e0a7f(0x253)](_0x57132d[_0x1e0a7f(0x1e0)]-_0x57d90d['col'])+0x1);_0xfedcc0+=_0x18f0a2+_0x406988++;if(_0xfedcc0>MAX_ROWS)throw new Error(_0x1e0a7f(0x297));}}}}}}}}),_0xb9b05?.['on'](_0x4c25ba(0x21f),_0x4b3c20=>{const _0x3aba86=_0x4c25ba;if(_0x4bd54d){_0x199f0d?.[_0x3aba86(0x222)](_0x4b3c20);return;}if(_0x284e54&&_0x79927b&&_0x4b3c20)_0x10e8be=!![];}),_0xb9b05?.['on']('closetag',_0x448687=>{const _0x12c04d=_0x4c25ba;if(_0x4bd54d){_0x199f0d&&!_0x199f0d[_0x12c04d(0x230)]()&&(_0x59b2ae(_0x199f0d[_0x12c04d(0x231)]),_0x199f0d=undefined);return;}if(_0x448687[_0x12c04d(0x21c)]==='c'){!_0x10e8be&&_0x378ffa&&!_0x37a540&&(_0x37a540={'before':_0x31a49a,'cells':[]});if(_0x37a540){if(++_0x2f5b1d>0xf4240)throw new Error(_0x12c04d(0x290));_0x37a540[_0x12c04d(0x1f1)][_0x12c04d(0x2ab)]({'reference':_0x378ffa,'address':_0x8bc93,'materialized':_0x10e8be});if(!_0x378ffa&&_0x10e8be)_0x27c6ca=!![];}if(_0x10e8be){if(!_0x37a540||_0x378ffa){if(!_0x163040)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x163040[_0x12c04d(0x1e0)]>MAX_XML_COLUMNS)throw new Error(_0x12c04d(0x2ae));_0x20985c(_0x163040[_0x12c04d(0x1e0)]);}_0x31a49a=_0x163040;}_0x284e54=![],_0x163040=undefined,_0x378ffa=undefined,_0x8bc93=undefined,_0x79927b=undefined;}else{if(_0x448687[_0x12c04d(0x21c)]===_0x12c04d(0x22f)){if(_0x37a540&&_0x27c6ca)_0x318a8e['push'](_0x37a540);_0x37a540=undefined,_0x27c6ca=![];}else{if(_0x448687[_0x12c04d(0x21c)]===_0x79927b)_0x79927b=undefined;}}}),_0xb9b05?.['on']('error',_0x19c16e=>{const _0xac1966=_0x4c25ba;throw new Error(_0xac1966(0x293)+_0x19c16e[_0xac1966(0x273)]);}),_0x17f6cf['on'](_0x4c25ba(0x255),_0x489201),_0x17f6cf['on'](_0x4c25ba(0x244),_0x550fc3=>{const _0x436b60=_0x4c25ba;if(_0x249d65)return;_0x6e9b5d+=_0x550fc3['length'],_0x95dae8?.[_0x436b60(0x2ab)](_0x550fc3);if(_0x6e9b5d>MAX_EXPANDED){_0x489201(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x4fd5e3&&_0x555622)_0x4fd5e3[_0x436b60(0x24b)](_0x555622[_0x436b60(0x24b)](_0x550fc3));if(_0xb9b05&&_0x2a326e)_0xb9b05['write'](_0x2a326e[_0x436b60(0x24b)](_0x550fc3));}catch(_0x3fa109){_0x489201(_0x3fa109 instanceof Error?_0x3fa109:new Error(_0x436b60(0x275)));}}),_0x17f6cf['on'](_0x4c25ba(0x28a),()=>{const _0x59b147=_0x4c25ba;if(_0x249d65)return;try{if(_0x4fd5e3&&_0x555622)_0x4fd5e3['write'](_0x555622[_0x59b147(0x28a)]())[_0x59b147(0x1cd)]();if(_0xb9b05&&_0x2a326e)_0xb9b05[_0x59b147(0x24b)](_0x2a326e[_0x59b147(0x28a)]())[_0x59b147(0x1cd)]();for(const _0x28abb5 of _0x318a8e){let _0x44fe54=_0x28abb5['before'];for(const _0x4de799 of _0x28abb5[_0x59b147(0x1f1)]){if(!_0x4de799['materialized']&&!(_0x4de799[_0x59b147(0x2a1)]&&_0x335147[_0x59b147(0x20d)](_0x4de799['reference'])))continue;const _0x495673=_0x4de799[_0x59b147(0x299)]??(_0x44fe54?{'row':_0x44fe54['row'],'col':_0x44fe54['col']+0x1}:undefined);if(!_0x495673)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x495673['col']>MAX_XML_COLUMNS)throw new Error(_0x59b147(0x2ae));_0x20985c(_0x495673[_0x59b147(0x1e0)]),_0x44fe54=_0x495673;}}_0x318a8e['length']=0x0,_0x335147['clear']();}catch(_0x2e9f08){_0x489201(_0x2e9f08 instanceof Error?_0x2e9f08:new Error(_0x59b147(0x275)));return;}if(_0x95dae8)_0x344491[_0x59b147(0x2ad)](_0x4db821,Buffer[_0x59b147(0x200)](_0x95dae8));_0x364af2=undefined,_0x3798a4[_0x59b147(0x22a)]();});});}),_0x3798a4['on'](_0x437716(0x28a),()=>{const _0x133d86=_0x437716;if(_0x249d65)return;if(_0x3798a4[_0x133d86(0x264)]!==_0x1dcdb0){_0x1368b4(new Error(_0x133d86(0x1d7)));return;}if(!_0x501407['has']('[Content_Types].xml')||!_0x501407[_0x133d86(0x20d)](_0x133d86(0x204)))_0x1368b4(new Error(_0x133d86(0x28e)));else _0x1e6465();}),_0x3798a4[_0x437716(0x22a)]();});});}function valueOf(_0x1f1fca){const _0xcf6350=a140_0x218a30,_0x48dbca=_0x1f1fca[_0xcf6350(0x25c)];if(_0x48dbca&&typeof _0x48dbca===_0xcf6350(0x29c)&&(_0xcf6350(0x2a8)in _0x48dbca||_0xcf6350(0x283)in _0x48dbca)){if(!(_0xcf6350(0x267)in _0x48dbca)||_0x48dbca[_0xcf6350(0x267)]===undefined)throw new Error(_0xcf6350(0x1d5));return _0x48dbca[_0xcf6350(0x267)];}return _0x48dbca;}function a140_0x2645(){const _0x21ee4c=['Formula\x20has\x20no\x20cached\x20result.','7117677tlemZW','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','create','autoIncrement','1871310aeLraf','fileComment','sha256','deleted','media','exceljs/lib/utils/col-cache.js','col','XML\x20DTD/entities\x20are\x20not\x20supported.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','load','rows','Expected\x20an\x20Excel\x20date\x20cell.','imageFields','toLowerCase','extraFieldsLength','headerRow','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','readBigUInt64LE','entryCount','1puzvHZ','sheet','modifierName','errors','cells','.xlsx','tenantCode','includes','extend','dataValidations','dataType','_xlnm.Print_Titles','./utils','imageCells','pop','readUInt16LE','getTime','Missing\x20image\x20media:\x20','XLSX\x20file\x20exceeds\x2020\x20MB.','concat','fileNameStr','getCell','properties','xl/workbook.xml','uncompressedSize','string','datasetId','createTime','exec','number','parse','ref','has','byteLength','fields','decimal','ranges','destroy','externalFileAttributes','get','test','fileName','Duplicate\x20header:\x20','Invalid\x20worksheet\x20nested\x20row.','rowCount','Invalid\x20worksheet\x20nested\x20cell.','attributes','name','sort','utf8','text','bottom','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','parseText','integer','exceljs/lib/xlsx/xform/book/defined-name-xform.js','worksheets','modifierId','doctype','Invalid\x20worksheet\x20coordinate.','MAX_SAFE_INTEGER','readEntry','opentag','trim','hex','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','row','parseClose','model','3994830nwqSbf','Invalid\x20ZIP\x20local\x20file\x20header.','Requested\x20worksheet\x20does\x20not\x20exist.','mapping','definedName','uploadFields','getRow','1236062yDTTTd','date','\x20columns.','./reader/readerFor','hiddenRow','Invalid\x20XLSX\x20entry.','fileCommentRaw','Required\x20value\x20is\x20missing.','versionMadeBy','isSafeInteger','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','data','openReadStream','appCode','readUInt32LE','right','stringify','add','write','localeCompare','decodeEx','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','map','Image\x20XML\x20node\x20budget\x20exceeded.','update','fileNameRaw','abs','digest','error','startsWith','batchSize','extname','size','serial_number','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','value','METADATA','fromBuffer','processAttributes','repeat','Worksheet\x20exceeds\x20','required','equals','readEntryCursor','handleUTF8','./utf8','result','nativeCell','Invalid\x20worksheet\x20merge\x20reference.','filter','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','image/jpeg','Invalid\x20worksheet\x20column\x20range.','parserVersion','parseOpen','405785pUtgWZ','isFile','mergeCell','message','creatorName','Invalid\x20worksheet\x20XML.','Invalid\x20dataset\x20field\x20extension\x20metadata.','Invalid\x20worksheet\x20hyperlink\x20reference.','source','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','merges','code','20VnmdUb','from','split','jszip','2636864whxDUY','sharedFormula','isBuffer','slice','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','dataset','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','isArray','end','updateTime','Required\x20image\x20value\x20is\x20missing.','top','File\x20is\x20not\x20an\x20XLSX\x20workbook.','file','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','type','original','Invalid\x20worksheet\x20XML:\x20','Unknown\x20Excel\x20header:\x20','bitFlag','values','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20ZIP\x20central\x20directory\x20layout.','address','upload','textarea','object','Unsupported\x20field\x20type:\x20','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','warnings','hidden','reference','columnCount','sourceType','every','max','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','./zipEntry','formula','some','entries','push','extraFieldRaw','set','Worksheet\x20exceeds\x2016384\x20columns.','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','48HsxFYS','find','length','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','Merged\x20cells\x20are\x20not\x20supported.','parseInt','Dataset\x20field\x20metadata\x20is\x20missing.','isInteger','contentHash','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','compressedSize','Cell\x20exceeds\x2064\x20KB.','resolve','Unknown\x20or\x20generated\x20mapping\x20field:\x20','relativeOffsetOfLocalHeader','boolean','Duplicate\x20mapping\x20target:\x20','close','jpg','eachCell','Non-canonical\x20worksheet\x20ZIP\x20entry.','Image\x20XML\x20event\x20budget\x20exceeded.','5115456HXCflV','generated','Required\x20field\x20is\x20not\x20mapped:\x20'];a140_0x2645=function(){return _0x21ee4c;};return a140_0x2645();}function convert(_0x39d604,_0x3d8f93){const _0x354e99=a140_0x218a30;if(_0x39d604===null||_0x39d604===undefined||_0x39d604===''){if(_0x3d8f93['required']&&!_0x3d8f93[_0x354e99(0x1d3)])throw new Error(_0x354e99(0x240));return null;}if(typeof _0x39d604===_0x354e99(0x206)&&Buffer[_0x354e99(0x20e)](_0x39d604,_0x354e99(0x21e))>MAX_CELL)throw new Error(_0x354e99(0x2bb));switch(_0x3d8f93[_0x354e99(0x291)][_0x354e99(0x1e7)]()){case _0x354e99(0x206):case'text':case _0x354e99(0x29b):if(typeof _0x39d604!==_0x354e99(0x206))throw new Error('Expected\x20a\x20text\x20cell.');return _0x39d604;case'number':case'decimal':case _0x354e99(0x223):if(typeof _0x39d604!==_0x354e99(0x20a)||!Number['isFinite'](_0x39d604)||Math[_0x354e99(0x253)](_0x39d604)>Number[_0x354e99(0x229)]||_0x3d8f93['type'][_0x354e99(0x1e7)]()===_0x354e99(0x223)&&!Number[_0x354e99(0x2b7)](_0x39d604))throw new Error(_0x354e99(0x27a));return _0x39d604;case _0x354e99(0x1cb):if(typeof _0x39d604!=='boolean')throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x39d604;case _0x354e99(0x23a):case'datetime':if(!(_0x39d604 instanceof Date)||!Number['isFinite'](_0x39d604[_0x354e99(0x1fd)]()))throw new Error(_0x354e99(0x1e5));return _0x39d604[_0x354e99(0x1fd)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x3d8f93['type']+'.');}}export async function buildExcelManifest(_0x27b427){const _0x5bae79=a140_0x218a30,_0x406bc5=_0x27b427[_0x5bae79(0x1e9)]??0x1;if(!Number['isInteger'](_0x406bc5)||_0x406bc5<0x1||_0x406bc5>MAX_ROWS)throw new Error(_0x5bae79(0x243));if(_0x27b427[_0x5bae79(0x257)]!==undefined&&(!Number[_0x5bae79(0x2b7)](_0x27b427['batchSize'])||_0x27b427['batchSize']<0x1||_0x27b427[_0x5bae79(0x257)]>0x3e8))throw new Error(_0x5bae79(0x26b));if(a140_0x184eec[_0x5bae79(0x258)](_0x27b427[_0x5bae79(0x28f)])[_0x5bae79(0x1e7)]()!==_0x5bae79(0x1f2))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x26f973=await stat(_0x27b427[_0x5bae79(0x28f)]);if(!_0x26f973[_0x5bae79(0x271)]()||_0x26f973['size']>MAX_FILE)throw new Error(_0x5bae79(0x279));const _0x1e5d86=await readFile(_0x27b427[_0x5bae79(0x28f)]);if(_0x1e5d86[_0x5bae79(0x2b2)]>MAX_FILE)throw new Error(_0x5bae79(0x1ff));const _0x4b4a37=_0x27b427[_0x5bae79(0x20f)][_0x5bae79(0x2a9)](_0x3e6b17=>isImageContainer(_0x3e6b17['type'])&&Object[_0x5bae79(0x296)](_0x27b427['mapping'])[_0x5bae79(0x1f4)](_0x3e6b17[_0x5bae79(0x27d)]))?new Map():undefined;await checkArchive(_0x1e5d86,_0x4b4a37);const _0x4f4ff9=new a140_0x2b3ab8['Workbook']();await _0x4f4ff9['xlsx'][_0x5bae79(0x1e3)](_0x1e5d86,{'ignoreNodes':[_0x5bae79(0x1f6)]});const _0x1005b2=_0x27b427[_0x5bae79(0x1ee)];let _0x227b2a;if(_0x1005b2===undefined)_0x227b2a=_0x4f4ff9[_0x5bae79(0x225)][0x0];else{if(typeof _0x1005b2===_0x5bae79(0x206)&&_0x4f4ff9[_0x5bae79(0x225)][_0x5bae79(0x2a9)](_0xd897e1=>_0xd897e1[_0x5bae79(0x21c)]===_0x1005b2))_0x227b2a=_0x4f4ff9[_0x5bae79(0x225)][_0x5bae79(0x2b1)](_0xff6ec8=>_0xff6ec8[_0x5bae79(0x21c)]===_0x1005b2);else{if(typeof _0x1005b2==='number'||/^\d+$/[_0x5bae79(0x215)](_0x1005b2)){const _0x2e2611=Number(_0x1005b2);if(!Number[_0x5bae79(0x2b7)](_0x2e2611)||_0x2e2611<0x1)throw new Error(_0x5bae79(0x1e2));_0x227b2a=_0x4f4ff9[_0x5bae79(0x225)][_0x2e2611-0x1];}else _0x227b2a=_0x4f4ff9[_0x5bae79(0x225)]['find'](_0x37b7d4=>_0x37b7d4[_0x5bae79(0x21c)]===_0x1005b2);}}if(!_0x227b2a)throw new Error(_0x5bae79(0x234));if(_0x227b2a[_0x5bae79(0x219)]>MAX_ROWS||_0x227b2a[_0x5bae79(0x2a2)]>MAX_COLUMNS)throw new Error(_0x5bae79(0x2af));if((_0x227b2a['model'][_0x5bae79(0x27c)]??[])['length'])throw new Error(_0x5bae79(0x2b4));const _0x1e9342=new Map();_0x227b2a[_0x5bae79(0x238)](_0x406bc5)[_0x5bae79(0x1cf)]((_0x4e75a2,_0x590da1)=>{const _0x2d74e7=_0x5bae79,_0x877ec5=valueOf(_0x4e75a2);if(typeof _0x877ec5!==_0x2d74e7(0x206)||!_0x877ec5[_0x2d74e7(0x22c)]()||Buffer[_0x2d74e7(0x20e)](_0x877ec5)>MAX_CELL)throw new Error(_0x2d74e7(0x288));if(_0x1e9342[_0x2d74e7(0x20d)](_0x877ec5))throw new Error(_0x2d74e7(0x217)+_0x877ec5+'.');_0x1e9342[_0x2d74e7(0x2ad)](_0x877ec5,_0x590da1);});const _0x187976=Object[_0x5bae79(0x2aa)](_0x27b427[_0x5bae79(0x235)]);if(!_0x187976[_0x5bae79(0x2b2)])throw new Error(_0x5bae79(0x1ea));const _0x5e5817=new Map(_0x27b427['fields'][_0x5bae79(0x24f)](_0x5601c8=>[_0x5601c8['code'],_0x5601c8]));if(_0x5e5817[_0x5bae79(0x259)]!==_0x27b427[_0x5bae79(0x20f)][_0x5bae79(0x2b2)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x27b427[_0x5bae79(0x20f)]['some'](_0x3aa5ce=>_0x3aa5ce[_0x5bae79(0x291)][_0x5bae79(0x1e7)]()===_0x5bae79(0x25a)))throw new Error(_0x5bae79(0x24e));const _0x49532b=new Set();for(const [_0x360ac2,_0x4fc02c]of _0x187976){const _0x224d09=_0x5e5817[_0x5bae79(0x214)](_0x4fc02c);if(!_0x1e9342[_0x5bae79(0x20d)](_0x360ac2))throw new Error(_0x5bae79(0x294)+_0x360ac2+'.');if(!_0x224d09||RESERVED[_0x5bae79(0x20d)](_0x4fc02c)||_0x224d09[_0x5bae79(0x1d3)])throw new Error(_0x5bae79(0x1c9)+_0x4fc02c+'.');if(_0x49532b[_0x5bae79(0x20d)](_0x4fc02c))throw new Error(_0x5bae79(0x1cc)+_0x4fc02c+'.');if(!TYPES['has'](_0x224d09['type'][_0x5bae79(0x1e7)]()))throw new Error(_0x5bae79(0x29d)+_0x224d09[_0x5bae79(0x291)]+'.');_0x49532b[_0x5bae79(0x24a)](_0x4fc02c);}for(const _0x960580 of _0x27b427['fields']){if(_0x960580[_0x5bae79(0x262)]&&!_0x960580[_0x5bae79(0x1d3)]&&!RESERVED[_0x5bae79(0x20d)](_0x960580[_0x5bae79(0x27d)])&&!_0x49532b[_0x5bae79(0x20d)](_0x960580[_0x5bae79(0x27d)]))throw new Error(_0x5bae79(0x1d4)+_0x960580[_0x5bae79(0x27d)]+'.');}const _0x31f82c={'fileHash':hash(_0x1e5d86),'mappingHash':hash(JSON[_0x5bae79(0x249)]([..._0x187976]['sort'](([_0x224278],[_0x7f3487])=>_0x224278[_0x5bae79(0x24c)](_0x7f3487)))),'schemaHash':hash(JSON[_0x5bae79(0x249)]([..._0x27b427[_0x5bae79(0x20f)]][_0x5bae79(0x21d)]((_0xdf9dfa,_0x3b92fa)=>_0xdf9dfa[_0x5bae79(0x27d)][_0x5bae79(0x24c)](_0x3b92fa[_0x5bae79(0x27d)])))),'sheet':_0x227b2a[_0x5bae79(0x21c)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3c95b5=_0x187976[_0x5bae79(0x26a)](([,_0x206ef0])=>isImageContainer(_0x5e5817[_0x5bae79(0x214)](_0x206ef0)[_0x5bae79(0x291)])),_0x4d979b=_0x3c95b5['filter'](([,_0xd3f234])=>_0x5e5817[_0x5bae79(0x214)](_0xd3f234)[_0x5bae79(0x291)]['toLowerCase']()==='upload')[_0x5bae79(0x24f)](([,_0x2d754f])=>_0x2d754f);if(_0x4d979b[_0x5bae79(0x2b2)])_0x31f82c[_0x5bae79(0x237)]=_0x4d979b;const _0x121998=_0x4b4a37?resolveWorksheetImages(_0x4b4a37,_0x227b2a[_0x5bae79(0x21c)],new Set(_0x3c95b5['map'](([_0x2fc3e0])=>_0x1e9342[_0x5bae79(0x214)](_0x2fc3e0)))):[],_0x13a576=new Map();for(const _0xb6e9bc of _0x121998){const _0x3b5aa4=_0xb6e9bc['row']+':'+_0xb6e9bc[_0x5bae79(0x1e0)],_0x6ccdc9=_0x13a576[_0x5bae79(0x214)](_0x3b5aa4)??[];_0x6ccdc9['push'](_0xb6e9bc),_0x13a576[_0x5bae79(0x2ad)](_0x3b5aa4,_0x6ccdc9);}const _0x5db161=new Map();let _0x247dfa=0x0;_0x3c95b5[_0x5bae79(0x2b2)]&&(_0x31f82c[_0x5bae79(0x1e6)]=_0x3c95b5['map'](([,_0x4be98])=>_0x4be98),_0x31f82c[_0x5bae79(0x1fa)]=[],_0x31f82c[_0x5bae79(0x26e)]=0x1,_0x31f82c[_0x5bae79(0x1de)]=[]);const _0x178261=Math[_0x5bae79(0x2a5)](0x0,..._0x121998['map'](_0x556332=>_0x556332[_0x5bae79(0x22f)]));let _0x162c7a=0x0;const _0x5c18f6=new Set(_0x187976['map'](([_0x1fff3f])=>_0x1e9342['get'](_0x1fff3f)));for(let _0x9be4cd=_0x406bc5+0x1;_0x9be4cd<=Math[_0x5bae79(0x2a5)](_0x227b2a[_0x5bae79(0x219)],_0x178261);_0x9be4cd++){const _0x3e0891=_0x227b2a[_0x5bae79(0x238)](_0x9be4cd);if(_0x3e0891[_0x5bae79(0x2a0)]||_0x121998['some'](_0x1a2d5c=>_0x1a2d5c[_0x5bae79(0x22f)]===_0x9be4cd&&_0x1a2d5c[_0x5bae79(0x23d)]))_0x162c7a++;let _0x375038=_0x121998[_0x5bae79(0x2a9)](_0x24a2d0=>_0x24a2d0['row']===_0x9be4cd);_0x3e0891[_0x5bae79(0x1cf)](_0x49298a=>{const _0x3f4e29=_0x5bae79;if(_0x49298a[_0x3f4e29(0x25c)]!==null&&_0x49298a[_0x3f4e29(0x25c)]!==undefined&&_0x49298a['value']!=='')_0x375038=!![];});if(!_0x375038){_0x31f82c['emptyRows'][_0x5bae79(0x2ab)](_0x9be4cd);continue;}const _0xbbb35e=Object[_0x5bae79(0x1d8)](null);_0x3e0891[_0x5bae79(0x1cf)]((_0x38e2f9,_0x323d01)=>{const _0x38b578=_0x5bae79;if(_0x5c18f6['has'](_0x323d01))return;try{const _0x29fe13=valueOf(_0x38e2f9);if(typeof _0x29fe13==='string'&&Buffer[_0x38b578(0x20e)](_0x29fe13,'utf8')>MAX_CELL)throw new Error(_0x38b578(0x2bb));}catch(_0x34c141){_0x31f82c['errors'][_0x38b578(0x2ab)]({'rowNumber':_0x9be4cd,'field':_0x38e2f9[_0x38b578(0x299)],'message':_0x34c141[_0x38b578(0x273)]});}});for(const [_0x55ba69,_0x933ace]of _0x187976){try{const _0x491097=_0x3e0891[_0x5bae79(0x202)](_0x1e9342[_0x5bae79(0x214)](_0x55ba69)),_0x2f25f7=_0x5e5817['get'](_0x933ace);if(!isImageContainer(_0x2f25f7[_0x5bae79(0x291)])){_0xbbb35e[_0x933ace]=convert(valueOf(_0x491097),_0x2f25f7);continue;}const _0x3c3994=_0x13a576[_0x5bae79(0x214)](_0x9be4cd+':'+_0x1e9342['get'](_0x55ba69))??[];if(_0x3c3994['some'](_0x372403=>_0x372403[_0x5bae79(0x255)]))throw Error(_0x3c3994[_0x5bae79(0x2b1)](_0x288ac7=>_0x288ac7['error'])[_0x5bae79(0x255)]);if(_0x491097[_0x5bae79(0x25c)]!=null&&_0x491097[_0x5bae79(0x25c)]!==''&&!_0x3c3994[_0x5bae79(0x2a9)](_0x13b61a=>_0x13b61a[_0x5bae79(0x268)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x2679fe=[];for(const _0x4d07fd of _0x3c3994)for(const _0x444967 of _0x4d07fd[_0x5bae79(0x1de)]){const _0xbea1f8=_0x4b4a37[_0x5bae79(0x214)](_0x444967);if(!_0xbea1f8)throw Error(_0x5bae79(0x1fe)+_0x444967+'.');const _0x3756e0=hash(_0xbea1f8),_0xd64f23=_0x5db161['get'](_0x3756e0)??validateImageBytes(_0xbea1f8);if(!_0x5db161[_0x5bae79(0x20d)](_0xd64f23['contentHash'])){_0x247dfa+=_0xd64f23[_0x5bae79(0x259)];if(_0x247dfa>0x32*0x400*0x400)throw Error(_0x5bae79(0x2b3));_0x5db161['set'](_0xd64f23['contentHash'],_0xd64f23);}_0x2679fe[_0x5bae79(0x2ab)](_0xd64f23[_0x5bae79(0x2b8)]);}if(!_0x2679fe[_0x5bae79(0x2b2)]&&_0x2f25f7['required'])throw Error(_0x5bae79(0x28c));if(_0x2679fe['length'])_0x31f82c['imageCells'][_0x5bae79(0x2ab)]({'rowNumber':_0x9be4cd,'field':_0x933ace,'hashes':_0x2679fe});_0xbbb35e[_0x933ace]=_0x2679fe[_0x5bae79(0x24f)](_0x4673ac=>{const _0x20e6fb=_0x5bae79,_0x56a8fe=_0x5db161['get'](_0x4673ac),_0x1049e8=_0x56a8fe['type']===_0x20e6fb(0x26c)?_0x20e6fb(0x1ce):_0x56a8fe[_0x20e6fb(0x291)][_0x20e6fb(0x285)](0x6),_0x4f7df4=_0x4673ac+'.'+_0x1049e8,_0x184e7d='dataset-import/'+'0'[_0x20e6fb(0x260)](0x40)+'/'+_0x4f7df4;return _0x2f25f7[_0x20e6fb(0x291)][_0x20e6fb(0x1e7)]()===_0x20e6fb(0x29a)?{'fileName':_0x4f7df4,'filePath':_0x184e7d}:{'key':_0x184e7d,'name':_0x4f7df4,'type':_0x56a8fe[_0x20e6fb(0x291)],'size':_0x56a8fe[_0x20e6fb(0x259)]};});}catch(_0x33181d){_0x31f82c[_0x5bae79(0x1f0)][_0x5bae79(0x2ab)]({'rowNumber':_0x9be4cd,'field':_0x933ace,'message':_0x33181d[_0x5bae79(0x273)]});}}_0x31f82c[_0x5bae79(0x1e4)][_0x5bae79(0x2ab)]({'rowNumber':_0x9be4cd,'values':_0xbbb35e});}if(_0x31f82c[_0x5bae79(0x1de)])_0x31f82c[_0x5bae79(0x1de)]=[..._0x5db161['values']()];if(_0x162c7a)_0x31f82c[_0x5bae79(0x29f)][_0x5bae79(0x2ab)](_0x162c7a+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x31f82c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2309f7,_0x360d9a){const _0x381843=a141_0x253d,_0x42b3a8=_0x2309f7();while(!![]){try{const _0x7cd04d=parseInt(_0x381843(0x191))/0x1*(parseInt(_0x381843(0x1c5))/0x2)+-parseInt(_0x381843(0x19f))/0x3+parseInt(_0x381843(0x1a2))/0x4+-parseInt(_0x381843(0x192))/0x5*(parseInt(_0x381843(0x1a7))/0x6)+-parseInt(_0x381843(0x1c4))/0x7*(-parseInt(_0x381843(0x1bb))/0x8)+-parseInt(_0x381843(0x190))/0x9+-parseInt(_0x381843(0x1a4))/0xa*(-parseInt(_0x381843(0x1cf))/0xb);if(_0x7cd04d===_0x360d9a)break;else _0x42b3a8['push'](_0x42b3a8['shift']());}catch(_0x3953af){_0x42b3a8['push'](_0x42b3a8['shift']());}}}(a141_0x9443,0x48cb0));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a141_0x253d(_0x3830e0,_0x527d2e){_0x3830e0=_0x3830e0-0x190;const _0x944359=a141_0x9443();let _0x253d26=_0x944359[_0x3830e0];return _0x253d26;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a141_0x9443(){const _0x52b669=['Truncated\x20PNG\x20data.','includes','ceil','concat','Invalid\x20PNG\x20color/depth/interlace.','sync','Truncated\x20GIF\x20data.','jpeg-js','IEND','readUInt32BE','width','image/jpeg','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','21624TJwBEx','IHDR','equals','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','sha256','Invalid\x20PNG\x20decoded\x20scanline\x20size.','read','readUInt16LE','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','259sqyJSh','10xKvXpy','numFrames','Invalid\x20PNG\x20header.','Truncated\x20JPEG.','length','GIF89a','Invalid\x20GIF\x20trailer.','digest','update','Invalid\x20PNG\x20end.','11HrRHqo','isSafeInteger','906453uZMXVt','68601sgMTsO','65CSxlpd','Missing\x20GIF\x20trailer.','image/png','subarray','Truncated\x20PNG\x20chunk.','decode','omggif','from','height','message','Invalid\x20GIF\x20LZW\x20code\x20size.','IDAT','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','561888HWhRCq','decodeAndBlitFrameRGBA','frameInfo','1139780UHCWKq','acTL','884940JVEGIu','ascii','Truncated\x20GIF.','106284xgFKfH','hex','push','Invalid\x20GIF\x20LZW\x20pixel\x20data.','toString','image/gif','GIF87a'];a141_0x9443=function(){return _0x52b669;};return a141_0x9443();}function dimensions(_0x12bef9,_0x3a57c3){const _0x494922=a141_0x253d;if(!Number[_0x494922(0x1d0)](_0x12bef9)||!Number['isSafeInteger'](_0x3a57c3)||_0x12bef9<0x1||_0x3a57c3<0x1||_0x12bef9*_0x3a57c3>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x256c75){const _0x2baff8=a141_0x253d;let _0x5dabae=0xd,_0x558633=0x0,_0x3ea203=0x0;const _0x39f474=_0x256c75[_0x2baff8(0x1c2)](0x6),_0x5403e7=_0x256c75[_0x2baff8(0x1c2)](0x8),_0xa6a1e0=_0x256c75[0xa]&0x80?0x1<<(_0x256c75[0xa]&0x7)+0x1:0x0,_0x375dd5=_0x29e10d=>{const _0xd4af46=_0x2baff8;if(_0x5dabae+_0x29e10d>_0x256c75[_0xd4af46(0x1c9)])throw Error(_0xd4af46(0x1b4));};_0x5dabae+=_0xa6a1e0*0x3,_0x375dd5(0x0);const _0x11b79d=()=>{const _0x37aaae=_0x2baff8,_0x57ff4f=[];while(!![]){_0x375dd5(0x1);const _0x40f4de=_0x256c75[_0x5dabae++];if(!_0x40f4de)break;_0x375dd5(_0x40f4de),_0x57ff4f[_0x37aaae(0x1a9)](_0x256c75[_0x37aaae(0x195)](_0x5dabae,_0x5dabae+_0x40f4de)),_0x5dabae+=_0x40f4de;}return Buffer[_0x37aaae(0x1b1)](_0x57ff4f);};while(_0x5dabae<_0x256c75[_0x2baff8(0x1c9)]){const _0x1b2e10=_0x256c75[_0x5dabae++];if(_0x1b2e10===0x3b){if(!_0x558633||_0x5dabae!==_0x256c75[_0x2baff8(0x1c9)])throw Error(_0x2baff8(0x1cb));return;}if(_0x1b2e10===0x21){_0x375dd5(0x1),_0x5dabae++,_0x11b79d();continue;}if(_0x1b2e10!==0x2c)throw Error('Invalid\x20GIF\x20block.');_0x375dd5(0x9);const _0x1334cc=_0x256c75[_0x2baff8(0x1c2)](_0x5dabae),_0x50a807=_0x256c75[_0x2baff8(0x1c2)](_0x5dabae+0x2),_0x564c80=_0x256c75['readUInt16LE'](_0x5dabae+0x4),_0x4a8c90=_0x256c75[_0x2baff8(0x1c2)](_0x5dabae+0x6),_0x53f140=_0x256c75[_0x5dabae+0x8];_0x5dabae+=0x9,dimensions(_0x564c80,_0x4a8c90);if(_0x1334cc+_0x564c80>_0x39f474||_0x50a807+_0x4a8c90>_0x5403e7||++_0x558633>0x2710||(_0x3ea203+=_0x39f474*_0x5403e7)>MAX_PIXELS)throw Error(_0x2baff8(0x19e));const _0x417856=_0x53f140&0x80?0x1<<(_0x53f140&0x7)+0x1:_0xa6a1e0;if(!_0x417856)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x53f140&0x80&&(_0x375dd5(_0x417856*0x3),_0x5dabae+=_0x417856*0x3);_0x375dd5(0x1);const _0x39e55b=_0x256c75[_0x5dabae++];if(_0x39e55b<0x2||_0x39e55b>0x8)throw Error(_0x2baff8(0x19c));const _0x4c4d19=_0x11b79d(),_0x26fbf1=0x1<<_0x39e55b,_0x7b5d71=_0x26fbf1+0x1;let _0x765c81=_0x39e55b+0x1,_0x140af7=_0x7b5d71+0x1,_0x4826f=0x0,_0x3bd716=-0x1,_0x5a0e0a=0x0,_0x289c20=![];const _0x547b21=new Uint32Array(0x1000),_0x5c5952=new Uint16Array(0x1000);for(let _0x1f6ec2=0x0;_0x1f6ec2<_0x26fbf1;_0x1f6ec2++){_0x547b21[_0x1f6ec2]=0x1,_0x5c5952[_0x1f6ec2]=_0x1f6ec2;}while(_0x4826f+_0x765c81<=_0x4c4d19['length']*0x8){let _0x5dd3b7=0x0;for(let _0x544dc2=0x0;_0x544dc2<_0x765c81;_0x544dc2++,_0x4826f++)_0x5dd3b7|=(_0x4c4d19[_0x4826f>>0x3]>>(_0x4826f&0x7)&0x1)<<_0x544dc2;if(_0x5dd3b7===_0x26fbf1){_0x765c81=_0x39e55b+0x1,_0x140af7=_0x7b5d71+0x1,_0x3bd716=-0x1;continue;}if(_0x5dd3b7===_0x7b5d71){_0x289c20=!![];break;}if(_0x5dd3b7>_0x140af7||_0x5dd3b7===_0x140af7&&_0x3bd716<0x0||_0x3bd716<0x0&&_0x5dd3b7>=_0x26fbf1)throw Error(_0x2baff8(0x1be));const _0x5b9156=_0x5dd3b7===_0x140af7?_0x547b21[_0x3bd716]+0x1:_0x547b21[_0x5dd3b7],_0x5d1c14=_0x5dd3b7===_0x140af7?_0x5c5952[_0x3bd716]:_0x5c5952[_0x5dd3b7];if(!_0x5b9156||_0x5d1c14>=_0x417856||(_0x5a0e0a+=_0x5b9156)>_0x564c80*_0x4a8c90)throw Error(_0x2baff8(0x1aa));if(_0x3bd716>=0x0&&_0x140af7<0x1000){_0x547b21[_0x140af7]=_0x547b21[_0x3bd716]+0x1,_0x5c5952[_0x140af7]=Math['max'](_0x5c5952[_0x3bd716],_0x5d1c14),_0x140af7++;if(_0x140af7===0x1<<_0x765c81&&_0x765c81<0xc)_0x765c81++;}_0x3bd716=_0x5dd3b7;}if(!_0x289c20||_0x5a0e0a!==_0x564c80*_0x4a8c90)throw Error(_0x2baff8(0x1c3));}throw Error(_0x2baff8(0x193));}export function validateImageBytes(_0x40b085){const _0xbb8b65=a141_0x253d;if(!_0x40b085[_0xbb8b65(0x1c9)]||_0x40b085['length']>0xa*0x400*0x400)throw Error(_0xbb8b65(0x1ba));let _0x111da0;try{if(_0x40b085[_0xbb8b65(0x195)](0x0,0x8)[_0xbb8b65(0x1bd)](Buffer[_0xbb8b65(0x199)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x40b085[_0xbb8b65(0x1c9)]<0x21||_0x40b085['toString']('ascii',0xc,0x10)!==_0xbb8b65(0x1bc))throw Error(_0xbb8b65(0x1c7));dimensions(_0x40b085['readUInt32BE'](0x10),_0x40b085['readUInt32BE'](0x14));const _0x52a5bd=_0x40b085[_0xbb8b65(0x1b7)](0x10),_0x9a0a69=_0x40b085[_0xbb8b65(0x1b7)](0x14),_0x3e3535=_0x40b085[0x18],_0x30d7ae=_0x40b085[0x19],_0x404055=_0x40b085[0x1c],_0x2b5564={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x30d7ae];if(!_0x2b5564||![0x1,0x2,0x4,0x8,0x10][_0xbb8b65(0x1af)](_0x3e3535)||_0x404055>0x1)throw Error(_0xbb8b65(0x1b2));const _0x43f990=_0xe00739=>Math[_0xbb8b65(0x1b0)](_0xe00739*_0x2b5564*_0x3e3535/0x8)+0x1;let _0x3c06b4=_0x43f990(_0x52a5bd)*_0x9a0a69;if(_0x404055){_0x3c06b4=0x0;for(const [_0x47753e,_0x705588,_0x5cb9d3,_0x5abda9]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 _0x55fc83=Math['max'](0x0,Math['ceil']((_0x52a5bd-_0x47753e)/_0x5cb9d3)),_0x4aa350=Math['max'](0x0,Math[_0xbb8b65(0x1b0)]((_0x9a0a69-_0x705588)/_0x5abda9));if(_0x55fc83&&_0x4aa350)_0x3c06b4+=_0x43f990(_0x55fc83)*_0x4aa350;}}let _0x12bccf=0x8,_0x448de2=![];const _0x5d2b36=[];while(_0x12bccf<_0x40b085[_0xbb8b65(0x1c9)]){if(_0x12bccf+0xc>_0x40b085['length'])throw Error(_0xbb8b65(0x196));const _0x465393=_0x40b085[_0xbb8b65(0x1b7)](_0x12bccf),_0x5b0eed=_0x40b085[_0xbb8b65(0x1ab)](_0xbb8b65(0x1a5),_0x12bccf+0x4,_0x12bccf+0x8);if(_0x5b0eed===_0xbb8b65(0x1a3))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x12bccf+_0x465393+0xc>_0x40b085[_0xbb8b65(0x1c9)])throw Error(_0xbb8b65(0x1ae));if(_0x5b0eed===_0xbb8b65(0x19d))_0x5d2b36['push'](_0x40b085['subarray'](_0x12bccf+0x8,_0x12bccf+0x8+_0x465393));_0x12bccf+=_0x465393+0xc;if(_0x5b0eed===_0xbb8b65(0x1b6)){if(_0x465393||_0x12bccf!==_0x40b085[_0xbb8b65(0x1c9)])throw Error(_0xbb8b65(0x1ce));_0x448de2=!![];break;}}if(!_0x448de2||!_0x5d2b36[_0xbb8b65(0x1c9)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer[_0xbb8b65(0x1b1)](_0x5d2b36),{'maxOutputLength':_0x3c06b4+0x1})[_0xbb8b65(0x1c9)]!==_0x3c06b4)throw Error(_0xbb8b65(0x1c0));const {PNG:_0x1c7a2a}=require('pngjs'),_0x51997b=_0x1c7a2a[_0xbb8b65(0x1b3)][_0xbb8b65(0x1c1)](_0x40b085,{'checkCRC':!![]});dimensions(_0x51997b['width'],_0x51997b['height']),_0x111da0=_0xbb8b65(0x194);}else{if(_0x40b085[0x0]===0xff&&_0x40b085[0x1]===0xd8){if(_0x40b085['at'](-0x2)!==0xff||_0x40b085['at'](-0x1)!==0xd9)throw Error(_0xbb8b65(0x1c8));const _0x44d75b=require(_0xbb8b65(0x1b5)),_0x6f0510=_0x44d75b[_0xbb8b65(0x197)](_0x40b085,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x6f0510[_0xbb8b65(0x1b8)],_0x6f0510[_0xbb8b65(0x19a)]),_0x111da0=_0xbb8b65(0x1b9);}else{if([_0xbb8b65(0x1ad),_0xbb8b65(0x1ca)][_0xbb8b65(0x1af)](_0x40b085[_0xbb8b65(0x1ab)](_0xbb8b65(0x1a5),0x0,0x6))){if(_0x40b085['length']<0xe||_0x40b085['at'](-0x1)!==0x3b)throw Error(_0xbb8b65(0x1a6));dimensions(_0x40b085[_0xbb8b65(0x1c2)](0x6),_0x40b085[_0xbb8b65(0x1c2)](0x8)),validateGif(_0x40b085);const {GifReader:_0x21c882}=require(_0xbb8b65(0x198)),_0x56bf15=new _0x21c882(_0x40b085);dimensions(_0x56bf15[_0xbb8b65(0x1b8)],_0x56bf15['height']);const _0x4c8fdd=_0x56bf15[_0xbb8b65(0x1c6)]();if(!_0x4c8fdd||_0x4c8fdd>0x2710||_0x4c8fdd*_0x56bf15[_0xbb8b65(0x1b8)]*_0x56bf15[_0xbb8b65(0x19a)]>MAX_PIXELS)throw Error(_0xbb8b65(0x19e));const _0x39165c=new Uint8Array(_0x56bf15[_0xbb8b65(0x1b8)]*_0x56bf15[_0xbb8b65(0x19a)]*0x4);for(let _0x53fe1b=0x0;_0x53fe1b<_0x4c8fdd;_0x53fe1b++){const _0x1e9755=_0x56bf15[_0xbb8b65(0x1a1)](_0x53fe1b);if(_0x1e9755['x']+_0x1e9755['width']>_0x56bf15['width']||_0x1e9755['y']+_0x1e9755[_0xbb8b65(0x19a)]>_0x56bf15[_0xbb8b65(0x19a)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0x56bf15[_0xbb8b65(0x1a0)](_0x53fe1b,_0x39165c);}_0x111da0=_0xbb8b65(0x1ac);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x27ef0e){throw Error('Invalid\x20image:\x20'+_0x27ef0e[_0xbb8b65(0x19b)]);}return{'contentHash':createHash(_0xbb8b65(0x1bf))[_0xbb8b65(0x1cd)](_0x40b085)[_0xbb8b65(0x1cc)](_0xbb8b65(0x1a8)),'type':_0x111da0,'size':_0x40b085[_0xbb8b65(0x1c9)],'bytes':_0x40b085};}
|
|
1
|
+
(function(_0x5581d1,_0xe4bce){const _0x5d3b7b=a141_0x39c2,_0x438d00=_0x5581d1();while(!![]){try{const _0x64f5b2=-parseInt(_0x5d3b7b(0x167))/0x1+-parseInt(_0x5d3b7b(0x15d))/0x2*(parseInt(_0x5d3b7b(0x161))/0x3)+parseInt(_0x5d3b7b(0x12e))/0x4+parseInt(_0x5d3b7b(0x13b))/0x5+-parseInt(_0x5d3b7b(0x13f))/0x6+-parseInt(_0x5d3b7b(0x152))/0x7+-parseInt(_0x5d3b7b(0x140))/0x8*(-parseInt(_0x5d3b7b(0x13a))/0x9);if(_0x64f5b2===_0xe4bce)break;else _0x438d00['push'](_0x438d00['shift']());}catch(_0x331bb2){_0x438d00['push'](_0x438d00['shift']());}}}(a141_0x4459,0x882e9));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a141_0x39c2(_0x2d3eba,_0x38e6b5){_0x2d3eba=_0x2d3eba-0x12e;const _0x4459eb=a141_0x4459();let _0x39c2d8=_0x4459eb[_0x2d3eba];return _0x39c2d8;}import{inflateSync}from'node:zlib';function a141_0x4459(){const _0x5abc6e=['subarray','Truncated\x20JPEG.','Invalid\x20PNG\x20end.','Truncated\x20PNG\x20data.','IDAT','readUInt16LE','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','isSafeInteger','readUInt32BE','hex','numFrames','GIF89a','Animated\x20PNG\x20is\x20not\x20supported.','image/png','GIF\x20frame\x20exceeds\x20canvas.','1940631ejzDYU','ceil','update','frameInfo','digest','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','width','from','max','length','Invalid\x20PNG\x20header.','2xqGgBk','Invalid\x20GIF\x20block.','IEND','IHDR','2464404hWYRUw','image/gif','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','jpeg-js','concat','Truncated\x20GIF.','912875nHkrcN','Invalid\x20GIF\x20LZW\x20code\x20size.','3361296LbvwBl','sync','height','Truncated\x20GIF\x20data.','Invalid\x20GIF\x20trailer.','ascii','GIF87a','toString','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','omggif','Missing\x20GIF\x20trailer.','read','14042961hoYCPg','4918195isLOMk','push','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Invalid\x20PNG\x20color/depth/interlace.','4889490XzEbgN','8KKhrUY','decode','decodeAndBlitFrameRGBA'];a141_0x4459=function(){return _0x5abc6e;};return a141_0x4459();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0xf0bcc,_0x281188){const _0x5495e0=a141_0x39c2;if(!Number[_0x5495e0(0x14a)](_0xf0bcc)||!Number[_0x5495e0(0x14a)](_0x281188)||_0xf0bcc<0x1||_0x281188<0x1||_0xf0bcc*_0x281188>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x471c9f){const _0x21c843=a141_0x39c2;let _0xa607a9=0xd,_0x22f796=0x0,_0x540b5e=0x0;const _0xaf0d16=_0x471c9f[_0x21c843(0x148)](0x6),_0x22acba=_0x471c9f[_0x21c843(0x148)](0x8),_0x280fc5=_0x471c9f[0xa]&0x80?0x1<<(_0x471c9f[0xa]&0x7)+0x1:0x0,_0x56abf5=_0x50f740=>{const _0x15cbaa=_0x21c843;if(_0xa607a9+_0x50f740>_0x471c9f[_0x15cbaa(0x15b)])throw Error(_0x15cbaa(0x131));};_0xa607a9+=_0x280fc5*0x3,_0x56abf5(0x0);const _0x2db24f=()=>{const _0x4cd6d2=_0x21c843,_0x47e14d=[];while(!![]){_0x56abf5(0x1);const _0x449c57=_0x471c9f[_0xa607a9++];if(!_0x449c57)break;_0x56abf5(_0x449c57),_0x47e14d[_0x4cd6d2(0x13c)](_0x471c9f[_0x4cd6d2(0x143)](_0xa607a9,_0xa607a9+_0x449c57)),_0xa607a9+=_0x449c57;}return Buffer[_0x4cd6d2(0x165)](_0x47e14d);};while(_0xa607a9<_0x471c9f['length']){const _0x5b2b91=_0x471c9f[_0xa607a9++];if(_0x5b2b91===0x3b){if(!_0x22f796||_0xa607a9!==_0x471c9f[_0x21c843(0x15b)])throw Error(_0x21c843(0x132));return;}if(_0x5b2b91===0x21){_0x56abf5(0x1),_0xa607a9++,_0x2db24f();continue;}if(_0x5b2b91!==0x2c)throw Error(_0x21c843(0x15e));_0x56abf5(0x9);const _0xf4eb3f=_0x471c9f['readUInt16LE'](_0xa607a9),_0x5061ff=_0x471c9f[_0x21c843(0x148)](_0xa607a9+0x2),_0x2551be=_0x471c9f[_0x21c843(0x148)](_0xa607a9+0x4),_0x3e9cf0=_0x471c9f[_0x21c843(0x148)](_0xa607a9+0x6),_0x416764=_0x471c9f[_0xa607a9+0x8];_0xa607a9+=0x9,dimensions(_0x2551be,_0x3e9cf0);if(_0xf4eb3f+_0x2551be>_0xaf0d16||_0x5061ff+_0x3e9cf0>_0x22acba||++_0x22f796>0x2710||(_0x540b5e+=_0xaf0d16*_0x22acba)>MAX_PIXELS)throw Error(_0x21c843(0x157));const _0x2e74b5=_0x416764&0x80?0x1<<(_0x416764&0x7)+0x1:_0x280fc5;if(!_0x2e74b5)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x416764&0x80&&(_0x56abf5(_0x2e74b5*0x3),_0xa607a9+=_0x2e74b5*0x3);_0x56abf5(0x1);const _0x250373=_0x471c9f[_0xa607a9++];if(_0x250373<0x2||_0x250373>0x8)throw Error(_0x21c843(0x168));const _0x4dc473=_0x2db24f(),_0x38fcb8=0x1<<_0x250373,_0xd8410=_0x38fcb8+0x1;let _0x59caca=_0x250373+0x1,_0x4ebbc2=_0xd8410+0x1,_0x20ec92=0x0,_0x73c826=-0x1,_0x307d46=0x0,_0x540218=![];const _0x1a8ae1=new Uint32Array(0x1000),_0x429eaa=new Uint16Array(0x1000);for(let _0x4cd371=0x0;_0x4cd371<_0x38fcb8;_0x4cd371++){_0x1a8ae1[_0x4cd371]=0x1,_0x429eaa[_0x4cd371]=_0x4cd371;}while(_0x20ec92+_0x59caca<=_0x4dc473['length']*0x8){let _0x1921e6=0x0;for(let _0x5a34dc=0x0;_0x5a34dc<_0x59caca;_0x5a34dc++,_0x20ec92++)_0x1921e6|=(_0x4dc473[_0x20ec92>>0x3]>>(_0x20ec92&0x7)&0x1)<<_0x5a34dc;if(_0x1921e6===_0x38fcb8){_0x59caca=_0x250373+0x1,_0x4ebbc2=_0xd8410+0x1,_0x73c826=-0x1;continue;}if(_0x1921e6===_0xd8410){_0x540218=!![];break;}if(_0x1921e6>_0x4ebbc2||_0x1921e6===_0x4ebbc2&&_0x73c826<0x0||_0x73c826<0x0&&_0x1921e6>=_0x38fcb8)throw Error(_0x21c843(0x149));const _0x4581ac=_0x1921e6===_0x4ebbc2?_0x1a8ae1[_0x73c826]+0x1:_0x1a8ae1[_0x1921e6],_0xd854b4=_0x1921e6===_0x4ebbc2?_0x429eaa[_0x73c826]:_0x429eaa[_0x1921e6];if(!_0x4581ac||_0xd854b4>=_0x2e74b5||(_0x307d46+=_0x4581ac)>_0x2551be*_0x3e9cf0)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x73c826>=0x0&&_0x4ebbc2<0x1000){_0x1a8ae1[_0x4ebbc2]=_0x1a8ae1[_0x73c826]+0x1,_0x429eaa[_0x4ebbc2]=Math['max'](_0x429eaa[_0x73c826],_0xd854b4),_0x4ebbc2++;if(_0x4ebbc2===0x1<<_0x59caca&&_0x59caca<0xc)_0x59caca++;}_0x73c826=_0x1921e6;}if(!_0x540218||_0x307d46!==_0x2551be*_0x3e9cf0)throw Error(_0x21c843(0x163));}throw Error(_0x21c843(0x138));}export function validateImageBytes(_0x1ef226){const _0x6e6f63=a141_0x39c2;if(!_0x1ef226[_0x6e6f63(0x15b)]||_0x1ef226[_0x6e6f63(0x15b)]>0xa*0x400*0x400)throw Error(_0x6e6f63(0x136));let _0x326e7c;try{if(_0x1ef226[_0x6e6f63(0x143)](0x0,0x8)['equals'](Buffer[_0x6e6f63(0x159)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1ef226[_0x6e6f63(0x15b)]<0x21||_0x1ef226[_0x6e6f63(0x135)](_0x6e6f63(0x133),0xc,0x10)!==_0x6e6f63(0x160))throw Error(_0x6e6f63(0x15c));dimensions(_0x1ef226[_0x6e6f63(0x14b)](0x10),_0x1ef226['readUInt32BE'](0x14));const _0x129fca=_0x1ef226['readUInt32BE'](0x10),_0x1e9cd1=_0x1ef226[_0x6e6f63(0x14b)](0x14),_0x211462=_0x1ef226[0x18],_0x4096b0=_0x1ef226[0x19],_0xa4a6b1=_0x1ef226[0x1c],_0x4262d3={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x4096b0];if(!_0x4262d3||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x211462)||_0xa4a6b1>0x1)throw Error(_0x6e6f63(0x13e));const _0x453e19=_0x4dd17c=>Math[_0x6e6f63(0x153)](_0x4dd17c*_0x4262d3*_0x211462/0x8)+0x1;let _0x4ff74b=_0x453e19(_0x129fca)*_0x1e9cd1;if(_0xa4a6b1){_0x4ff74b=0x0;for(const [_0x5e643b,_0x29a164,_0x39f808,_0x36ec41]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 _0x5b6ff1=Math['max'](0x0,Math[_0x6e6f63(0x153)]((_0x129fca-_0x5e643b)/_0x39f808)),_0x58a14d=Math[_0x6e6f63(0x15a)](0x0,Math[_0x6e6f63(0x153)]((_0x1e9cd1-_0x29a164)/_0x36ec41));if(_0x5b6ff1&&_0x58a14d)_0x4ff74b+=_0x453e19(_0x5b6ff1)*_0x58a14d;}}let _0x377c8a=0x8,_0x964503=![];const _0x61a2ed=[];while(_0x377c8a<_0x1ef226['length']){if(_0x377c8a+0xc>_0x1ef226[_0x6e6f63(0x15b)])throw Error('Truncated\x20PNG\x20chunk.');const _0x5b4709=_0x1ef226[_0x6e6f63(0x14b)](_0x377c8a),_0x1c4f7b=_0x1ef226['toString'](_0x6e6f63(0x133),_0x377c8a+0x4,_0x377c8a+0x8);if(_0x1c4f7b==='acTL')throw Error(_0x6e6f63(0x14f));if(_0x377c8a+_0x5b4709+0xc>_0x1ef226[_0x6e6f63(0x15b)])throw Error(_0x6e6f63(0x146));if(_0x1c4f7b===_0x6e6f63(0x147))_0x61a2ed[_0x6e6f63(0x13c)](_0x1ef226[_0x6e6f63(0x143)](_0x377c8a+0x8,_0x377c8a+0x8+_0x5b4709));_0x377c8a+=_0x5b4709+0xc;if(_0x1c4f7b===_0x6e6f63(0x15f)){if(_0x5b4709||_0x377c8a!==_0x1ef226[_0x6e6f63(0x15b)])throw Error(_0x6e6f63(0x145));_0x964503=!![];break;}}if(!_0x964503||!_0x61a2ed['length'])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer[_0x6e6f63(0x165)](_0x61a2ed),{'maxOutputLength':_0x4ff74b+0x1})[_0x6e6f63(0x15b)]!==_0x4ff74b)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x5a8712}=require('pngjs'),_0x44d50b=_0x5a8712[_0x6e6f63(0x12f)][_0x6e6f63(0x139)](_0x1ef226,{'checkCRC':!![]});dimensions(_0x44d50b[_0x6e6f63(0x158)],_0x44d50b[_0x6e6f63(0x130)]),_0x326e7c=_0x6e6f63(0x150);}else{if(_0x1ef226[0x0]===0xff&&_0x1ef226[0x1]===0xd8){if(_0x1ef226['at'](-0x2)!==0xff||_0x1ef226['at'](-0x1)!==0xd9)throw Error(_0x6e6f63(0x144));const _0x32e160=require(_0x6e6f63(0x164)),_0xfe4fcd=_0x32e160[_0x6e6f63(0x141)](_0x1ef226,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0xfe4fcd[_0x6e6f63(0x158)],_0xfe4fcd[_0x6e6f63(0x130)]),_0x326e7c='image/jpeg';}else{if([_0x6e6f63(0x134),_0x6e6f63(0x14e)]['includes'](_0x1ef226[_0x6e6f63(0x135)](_0x6e6f63(0x133),0x0,0x6))){if(_0x1ef226[_0x6e6f63(0x15b)]<0xe||_0x1ef226['at'](-0x1)!==0x3b)throw Error(_0x6e6f63(0x166));dimensions(_0x1ef226[_0x6e6f63(0x148)](0x6),_0x1ef226[_0x6e6f63(0x148)](0x8)),validateGif(_0x1ef226);const {GifReader:_0x499d11}=require(_0x6e6f63(0x137)),_0x4eb9d8=new _0x499d11(_0x1ef226);dimensions(_0x4eb9d8['width'],_0x4eb9d8[_0x6e6f63(0x130)]);const _0x1c82b5=_0x4eb9d8[_0x6e6f63(0x14d)]();if(!_0x1c82b5||_0x1c82b5>0x2710||_0x1c82b5*_0x4eb9d8[_0x6e6f63(0x158)]*_0x4eb9d8[_0x6e6f63(0x130)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x176b4a=new Uint8Array(_0x4eb9d8['width']*_0x4eb9d8[_0x6e6f63(0x130)]*0x4);for(let _0x3edb90=0x0;_0x3edb90<_0x1c82b5;_0x3edb90++){const _0x5e08f0=_0x4eb9d8[_0x6e6f63(0x155)](_0x3edb90);if(_0x5e08f0['x']+_0x5e08f0[_0x6e6f63(0x158)]>_0x4eb9d8[_0x6e6f63(0x158)]||_0x5e08f0['y']+_0x5e08f0[_0x6e6f63(0x130)]>_0x4eb9d8['height'])throw Error(_0x6e6f63(0x151));_0x4eb9d8[_0x6e6f63(0x142)](_0x3edb90,_0x176b4a);}_0x326e7c=_0x6e6f63(0x162);}else throw Error(_0x6e6f63(0x13d));}}}catch(_0x3b665d){throw Error('Invalid\x20image:\x20'+_0x3b665d['message']);}return{'contentHash':createHash('sha256')[_0x6e6f63(0x154)](_0x1ef226)[_0x6e6f63(0x156)](_0x6e6f63(0x14c)),'type':_0x326e7c,'size':_0x1ef226[_0x6e6f63(0x15b)],'bytes':_0x1ef226};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142_0x3d8001=a142_0x18cd;(function(_0x35740b,_0x512b54){const _0x49c581=a142_0x18cd,_0x53a763=_0x35740b();while(!![]){try{const _0x4246cd=-parseInt(_0x49c581(0xa4))/0x1*(-parseInt(_0x49c581(0x112))/0x2)+parseInt(_0x49c581(0xc7))/0x3*(parseInt(_0x49c581(0x12b))/0x4)+-parseInt(_0x49c581(0x11a))/0x5*(parseInt(_0x49c581(0xbe))/0x6)+-parseInt(_0x49c581(0x127))/0x7*(-parseInt(_0x49c581(0x10f))/0x8)+parseInt(_0x49c581(0xb6))/0x9+parseInt(_0x49c581(0xe1))/0xa*(-parseInt(_0x49c581(0xa0))/0xb)+-parseInt(_0x49c581(0x88))/0xc*(parseInt(_0x49c581(0xcf))/0xd);if(_0x4246cd===_0x512b54)break;else _0x53a763['push'](_0x53a763['shift']());}catch(_0x453403){_0x53a763['push'](_0x53a763['shift']());}}}(a142_0x7f8f,0x33b21));import a142_0xd6fc19 from'node:path';import{SaxesParser}from'saxes';function a142_0x18cd(_0x2a19d7,_0x38a605){_0x2a19d7=_0x2a19d7-0x83;const _0x7f8f88=a142_0x7f8f();let _0x18cdd2=_0x7f8f88[_0x2a19d7];return _0x18cdd2;}const SHEET=['http://schemas.openxmlformats.org/spreadsheetml/2006/main','http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=[a142_0x3d8001(0x91),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a142_0x3d8001(0xef),a142_0x3d8001(0x118)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships',a142_0x3d8001(0xcc)],PACKAGE=[a142_0x3d8001(0x113)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a142_0x3d8001(0x96)],DEFAULT_NS=Object['fromEntries']([...['workbook',a142_0x3d8001(0x114),a142_0x3d8001(0xdd),a142_0x3d8001(0x9f),a142_0x3d8001(0xfc),'row','c','f','v','sheetFormatPr','drawing',a142_0x3d8001(0x121),a142_0x3d8001(0xc8),'metadataType',a142_0x3d8001(0xdc),a142_0x3d8001(0x12d),'bk','rc',a142_0x3d8001(0x11e)][a142_0x3d8001(0xfe)](_0x47e522=>[_0x47e522,SHEET]),...[a142_0x3d8001(0x9c),a142_0x3d8001(0xe9),a142_0x3d8001(0xc4),'absoluteAnchor',a142_0x3d8001(0xcd),'to',a142_0x3d8001(0x105),a142_0x3d8001(0x94),'rowOff',a142_0x3d8001(0x10c),'pic',a142_0x3d8001(0xfa),a142_0x3d8001(0x129),a142_0x3d8001(0x11b)][a142_0x3d8001(0xfe)](_0x133f94=>[_0x133f94,DRAWING]),...[a142_0x3d8001(0xca),a142_0x3d8001(0xd6),'rv',a142_0x3d8001(0xbb),'s','k'][a142_0x3d8001(0xfe)](_0x21f64a=>[_0x21f64a,RICH]),['blip',DRAWING_MAIN],[a142_0x3d8001(0xde),RICH_RELS],[a142_0x3d8001(0xac),RICH_RELS],['Relationships',PACKAGE],[a142_0x3d8001(0xd0),PACKAGE],['cellImages',WPS],[a142_0x3d8001(0xa8),WPS]]),matches=(_0x259570,_0x43d57d,_0x1ba364=DEFAULT_NS[_0x43d57d]??[])=>_0x259570['name']===_0x43d57d&&_0x1ba364[a142_0x3d8001(0xa9)](_0x259570[a142_0x3d8001(0xee)]),children=(_0x50bbf5,_0x53156b,_0x3c691c=DEFAULT_NS[_0x53156b])=>_0x50bbf5['children'][a142_0x3d8001(0x126)](_0x20eb17=>matches(_0x20eb17,_0x53156b,_0x3c691c)),chain=(_0x1ce373,..._0x50967d)=>_0x50967d[a142_0x3d8001(0x119)]((_0x5cfb46,_0x1cdc48)=>_0x5cfb46[a142_0x3d8001(0xcb)](_0x5243f4=>children(_0x5243f4,_0x1cdc48)),[_0x1ce373]),relationshipTypes=_0x4ac64f=>{const _0x5ac67e=a142_0x3d8001;if([_0x5ac67e(0xd2),_0x5ac67e(0xfd)][_0x5ac67e(0xa9)](_0x4ac64f))return[_0x5ac67e(0xff)+_0x4ac64f];if(_0x4ac64f===_0x5ac67e(0x9e))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x4ac64f==='cellImage'||_0x4ac64f===_0x5ac67e(0xbf))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x4ac64f];return OFFICE_RELS[_0x5ac67e(0xfe)](_0x368abe=>_0x368abe+'/'+_0x4ac64f);};function one(_0x51d41a,_0x2e3429){const _0x51409a=a142_0x3d8001;if(_0x51d41a[_0x51409a(0x110)]!==0x1)throw Error(_0x51409a(0xba)+_0x2e3429+'.');return _0x51d41a[0x0];}function a142_0x7f8f(){const _0x512cd5=['http://purl.oclc.org/ooxml/drawingml/main','reduce','40AwVzBs','blipFill','pop','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','extLst','anchor\x20column','dirname','metadata','_rels','Image\x20XML\x20event\x20budget\x20exceeded.','toLowerCase','isFinite','filter','42133yzGaeG','Unsupported\x20rich\x20structure\x20namespace.','cNvPr','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','21484UerToK','Unsupported\x20rich\x20value\x20namespace.','valueMetadata','future\x20metadata\x20index','children','rich\x20metadata\x20record','exec','Missing\x20local\x20image\x20identifier\x20value.','type','blip','144492vwfgpW','metadataType','pic','doctype','Duplicate\x20mapped\x20image\x20cell.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','add','name','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','local','Value\x20metadata\x20index\x20must\x20be\x20one-based.','colOff','error','http://www.wps.cn/officeDocument/2017/etCustomData','opentag','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','close','rich\x20structure\x20index','metadata\x20types','wsDr','r:link','richValueRel','worksheet','2090wgLQoA','attrs','Missing\x20WPS\x20image\x20ID:\x20','Unsupported\x20rich\x20image\x20relation\x20namespace.','1891UuUBFE','row','image','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','cellImage','includes','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','value','rel','_localImage','Relationships','join','normalize','get','charCodeAt','Unsupported\x20WPS\x20cell\x20image\x20namespace.','message','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','3504609EWauKP','isSafeInteger','_rvRel:LocalImageIdentifier','rowOff','Missing\x20or\x20ambiguous\x20','rvStructures','WPS\x20image\x20blip','value\x20metadata\x20index','133074Naxrvi','cellImages','hidden','Image\x20XML\x20node\x20budget\x20exceeded.','replace','values','twoCellAnchor','absoluteAnchor','basename','51qSiJzY','metadataTypes','Missing\x20XLSX\x20part:\x20','rvb','flatMap','http://purl.oclc.org/ooxml/officeDocument/relationships','from','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','364ouBWAK','Relationship','r:id','rdRichValue','Missing\x20rich\x20value.','Missing\x20future\x20metadata\x20block.','some','rvData','MAX_SAFE_INTEGER','Unsupported\x20workbook\x20namespace.','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','utf8','rich\x20value\x20binding','futureMetadata','sheet','richValueRels','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','XLRICHVALUE','4780KColQy','image\x20cell\x20row','attributes','XML\x20DTD/entities\x20are\x20not\x20supported.','hidden\x20image\x20row','Unsupported\x20drawing\x20namespace.','anchor\x20row','Invalid\x20relationship\x20target:\x20','oneCellAnchor','.rels','anchor\x20start','xl/','set','uri','http://schemas.openxmlformats.org/drawingml/2006/main','\x20relationship\x20in\x20','../','workbook','anchor\x20end','image\x20extent','Unsupported\x20relationship\x20namespace\x20in\x20','Internal','posix','Shared\x20image\x20formulas\x20are\x20not\x20supported.','rich\x20value\x20index','nvPicPr','slice','sheetData','rdRichValueStructure','map','http://schemas.microsoft.com/office/2017/06/relationships/','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','Relationship\x20target\x20escapes\x20workbook:\x20','defaultRowHeight','r:embed','col','Unsupported\x20mapped\x20rich\x20value\x20structure.','Unsupported\x20metadata\x20namespace.','startsWith','has','text','Missing\x20rich\x20image\x20relationship.','ext','metadata\x20type\x20index','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','40UkxdfW','length','External\x20image\x20links\x20are\x20not\x20supported.','324XDmoPb','http://schemas.openxmlformats.org/package/2006/relationships','sheets','test','xl/workbook.xml','push'];a142_0x7f8f=function(){return _0x512cd5;};return a142_0x7f8f();}function integer(_0x12ecca,_0x352b5d,_0x1f2244=0x186a0){const _0x4a72f7=a142_0x3d8001;if(!_0x12ecca||!/^\d+$/[_0x4a72f7(0x115)](_0x12ecca)||!Number[_0x4a72f7(0xb7)](Number(_0x12ecca))||Number(_0x12ecca)>_0x1f2244)throw Error('Invalid\x20'+_0x352b5d+'.');return Number(_0x12ecca);}export function resolveWorksheetImages(_0x47b07e,_0x403ba0,_0x207e54){const _0x511fdc=a142_0x3d8001;let _0x3d2d9d=0x0,_0x46a889=0x0,_0xc8be1d=0x0;const _0x4db7f7=new Map(),_0x243ee9=_0x1d943e=>{const _0xf989a7=a142_0x18cd;if(_0x4db7f7[_0xf989a7(0x109)](_0x1d943e))return _0x4db7f7[_0xf989a7(0xb1)](_0x1d943e);const _0x2ca290=_0x47b07e['get'](_0x1d943e);if(!_0x2ca290)throw Error(_0xf989a7(0xc9)+_0x1d943e+'.');const _0x41195f={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x275c38=[_0x41195f],_0x55a28c=new SaxesParser({'xmlns':!![]}),_0x11815c=()=>{const _0x599b63=_0xf989a7;if(++_0x46a889>0x1e8480)throw Error(_0x599b63(0x123));};_0x55a28c['on'](_0xf989a7(0x8b),()=>{const _0x501d57=_0xf989a7;throw Error(_0x501d57(0xe4));}),_0x55a28c['on'](_0xf989a7(0x97),_0x1981b2=>{const _0x2bda11=_0xf989a7;_0x11815c();if(++_0x3d2d9d>0x7a120||_0x275c38[_0x2bda11(0x110)]>0x40)throw Error(_0x2bda11(0xc1));const _0x467aeb={};for(const _0x3e2618 of Object[_0x2bda11(0xc3)](_0x1981b2[_0x2bda11(0xe3)])){const _0x494fa5=OFFICE_RELS[_0x2bda11(0xa9)](_0x3e2618[_0x2bda11(0xee)])?'r:'+_0x3e2618[_0x2bda11(0x92)]:_0x3e2618[_0x2bda11(0xee)]?'{'+_0x3e2618[_0x2bda11(0xee)]+'}'+_0x3e2618['local']:_0x3e2618['local'];if(_0x494fa5 in _0x467aeb)throw Error('Ambiguous\x20XML\x20attribute.');_0x467aeb[_0x494fa5]=_0x3e2618[_0x2bda11(0xab)];}const _0x276fad={'name':_0x1981b2[_0x2bda11(0x92)],'uri':_0x1981b2[_0x2bda11(0xee)],'attrs':_0x467aeb,'children':[],'text':''};_0x275c38['at'](-0x1)[_0x2bda11(0x12f)][_0x2bda11(0x117)](_0x276fad),_0x275c38[_0x2bda11(0x117)](_0x276fad);}),_0x55a28c['on'](_0xf989a7(0x10a),_0x3ee5b0=>{const _0x3f391c=_0xf989a7;_0x11815c();const _0x5e8669=_0x275c38['at'](-0x1);_0x5e8669[_0x3f391c(0x10a)]+=_0x3ee5b0;if(_0x5e8669[_0x3f391c(0x10a)]['length']>0x10000)throw Error(_0x3f391c(0x100));}),_0x55a28c['on']('closetag',()=>{const _0x3e8e21=_0xf989a7;_0x11815c(),_0x275c38[_0x3e8e21(0x11c)]();}),_0x55a28c['on'](_0xf989a7(0x95),_0x26b088=>{throw _0x26b088;}),_0x55a28c['write'](_0x2ca290['toString'](_0xf989a7(0xda)))[_0xf989a7(0x99)]();const _0x4a98fe=one(_0x41195f[_0xf989a7(0x12f)],_0x1d943e);return _0x4db7f7[_0xf989a7(0xed)](_0x1d943e,_0x4a98fe),_0x4a98fe;},_0x3d1591=new Map(),_0x323b23=_0x166f06=>{const _0x3820d8=a142_0x18cd;if(_0x3d1591[_0x3820d8(0x109)](_0x166f06))return _0x3d1591['get'](_0x166f06);const _0xe56ac2=a142_0xd6fc19[_0x3820d8(0xf7)][_0x3820d8(0xaf)](a142_0xd6fc19[_0x3820d8(0xf7)][_0x3820d8(0x120)](_0x166f06),_0x3820d8(0x122),a142_0xd6fc19[_0x3820d8(0xf7)][_0x3820d8(0xc6)](_0x166f06)+_0x3820d8(0xea));if(!_0x47b07e[_0x3820d8(0x109)](_0xe56ac2))return[];const _0x1a8098=new Set(),_0x37ec40=_0x243ee9(_0xe56ac2);if(!matches(_0x37ec40,_0x3820d8(0xae)))throw Error(_0x3820d8(0xf5)+_0xe56ac2+'.');const _0x2742da=children(_0x37ec40,_0x3820d8(0xd0))[_0x3820d8(0xfe)](_0x12b81f=>{const _0x3eaca3=_0x3820d8,{Id:_0x33ef68,Type:_0x2fe4c1,Target:_0x2c9d3c,TargetMode:_0x121c3f}=_0x12b81f[_0x3eaca3(0xa1)];if(!_0x33ef68||_0x1a8098[_0x3eaca3(0x109)](_0x33ef68)||!_0x2fe4c1)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0xe56ac2+'.');return _0x1a8098[_0x3eaca3(0x8e)](_0x33ef68),{'id':_0x33ef68,'type':_0x2fe4c1,'target':_0x2c9d3c??'','mode':_0x121c3f};});return _0x3d1591['set'](_0x166f06,_0x2742da),_0x2742da;},_0x597e3a=(_0x172512,_0x44dbaf)=>{const _0x2899ec=a142_0x18cd,{target:_0x4c8039,mode:_0x263a9d}=_0x44dbaf;if(_0x263a9d&&_0x263a9d!==_0x2899ec(0xf6))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x172512+'.');if(!_0x4c8039||_0x4c8039[_0x2899ec(0xa9)]('\x5c')||/[?#%\x00-\x20]/[_0x2899ec(0x115)](_0x4c8039)||/^[a-z][a-z0-9+.-]*:/i[_0x2899ec(0x115)](_0x4c8039)||_0x4c8039['startsWith']('//'))throw Error(_0x2899ec(0xe8)+_0x172512+'.');const _0x694567=_0x4c8039[_0x2899ec(0x108)]('/')?_0x4c8039[_0x2899ec(0xfb)](0x1):a142_0xd6fc19['posix'][_0x2899ec(0xb0)](a142_0xd6fc19[_0x2899ec(0xf7)]['join'](a142_0xd6fc19['posix'][_0x2899ec(0x120)](_0x172512),_0x4c8039));if(_0x694567[_0x2899ec(0x108)](_0x2899ec(0xf1))||_0x694567==='..'||!_0x694567['startsWith'](_0x2899ec(0xec)))throw Error(_0x2899ec(0x102)+_0x172512+'.');return _0x694567;},_0x55084c=(_0xbfce43,_0x7a687,_0x78f5ce)=>{const _0x1f2ac9=a142_0x18cd,_0x44b49b=_0x323b23(_0xbfce43)['filter'](_0x256ea6=>_0x256ea6['id']===_0x7a687&&relationshipTypes(_0x78f5ce)[_0x1f2ac9(0xa9)](_0x256ea6[_0x1f2ac9(0x86)]));if(_0x44b49b['length']!==0x1)throw Error(_0x1f2ac9(0xba)+_0x78f5ce+_0x1f2ac9(0xf0)+_0xbfce43+'.');return _0x597e3a(_0xbfce43,_0x44b49b[0x0]);},_0x421c0a=(_0x4f962d,_0x2556ef)=>{const _0x4ceb38=a142_0x18cd,_0x4e45dd=_0x323b23(_0x4f962d)[_0x4ceb38(0x126)](_0xe2830a=>relationshipTypes(_0x2556ef)[_0x4ceb38(0xa9)](_0xe2830a[_0x4ceb38(0x86)]));if(_0x4e45dd[_0x4ceb38(0x110)]!==0x1)throw Error(_0x4ceb38(0xba)+_0x2556ef+_0x4ceb38(0xf0)+_0x4f962d+'.');return _0x597e3a(_0x4f962d,_0x4e45dd[0x0]);},_0x229a1e=_0x511fdc(0x116),_0x5b457a=_0x243ee9(_0x229a1e);if(!matches(_0x5b457a,_0x511fdc(0xf2)))throw Error(_0x511fdc(0xd8));const _0x1746a5=one(chain(_0x5b457a,_0x511fdc(0x114),_0x511fdc(0xdd))[_0x511fdc(0x126)](_0x351be3=>_0x351be3['attrs'][_0x511fdc(0x8f)]===_0x403ba0),'worksheet'),_0x264547=_0x55084c(_0x229a1e,_0x1746a5[_0x511fdc(0xa1)][_0x511fdc(0xd1)],'worksheet'),_0x2d9cf2=_0x243ee9(_0x264547);if(!matches(_0x2d9cf2,_0x511fdc(0x9f)))throw Error('Unsupported\x20worksheet\x20namespace.');const _0x2b506f=chain(_0x2d9cf2,_0x511fdc(0xfc),_0x511fdc(0xa5)),_0x3b0721=new Map(),_0x376856=new Set(_0x2b506f['filter'](_0xa8f909=>_0xa8f909[_0x511fdc(0xa1)][_0x511fdc(0xc0)]==='1'||_0xa8f909[_0x511fdc(0xa1)][_0x511fdc(0xc0)]==='true')['map'](_0x766f06=>integer(_0x766f06[_0x511fdc(0xa1)]['r'],_0x511fdc(0xe5)))),_0x36d821=_0x14038c=>{const _0x50021f=_0x511fdc,_0xa6cffb=_0x14038c===undefined?0xf:Number(_0x14038c);if(!Number[_0x50021f(0x125)](_0xa6cffb)||_0xa6cffb<=0x0||_0xa6cffb>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math['round'](_0xa6cffb*0x319c);},_0x42e38a=_0x36d821(children(_0x2d9cf2,'sheetFormatPr')[0x0]?.[_0x511fdc(0xa1)][_0x511fdc(0x103)]);for(const _0x800754 of _0x2b506f)if(_0x800754['attrs']['ht']!==undefined)_0x3b0721['set'](integer(_0x800754[_0x511fdc(0xa1)]['r'],'image\x20row\x20height\x20coordinate'),_0x36d821(_0x800754['attrs']['ht']));const _0x4c75a3=[],_0x5d2409=_0x597766=>{const _0x1b2265=_0x511fdc;if(!_0x207e54[_0x1b2265(0x109)](_0x597766[_0x1b2265(0x105)]))return;if(++_0xc8be1d>0x2710)throw Error(_0x1b2265(0xb5));_0x4c75a3['push'](_0x376856['has'](_0x597766[_0x1b2265(0xa5)])?{..._0x597766,'hiddenRow':!![]}:_0x597766);},_0x4e90f9=_0x63152d=>({'row':integer(one(children(_0x63152d,_0x511fdc(0xa5),DRAWING),_0x511fdc(0xe7))['text'],_0x511fdc(0xe7),0x1869f)+0x1,'col':integer(one(children(_0x63152d,_0x511fdc(0x105)),_0x511fdc(0x11f))[_0x511fdc(0x10a)],_0x511fdc(0x11f),0xff)+0x1});for(const _0x5ad433 of children(_0x2d9cf2,'drawing')){const _0x389a1f=_0x55084c(_0x264547,_0x5ad433[_0x511fdc(0xa1)]['r:id'],'drawing'),_0x148f5e=_0x243ee9(_0x389a1f);if(!matches(_0x148f5e,_0x511fdc(0x9c)))throw Error(_0x511fdc(0xe6));for(const _0x811511 of _0x148f5e[_0x511fdc(0x12f)]){if(![_0x511fdc(0xe9),_0x511fdc(0xc4),_0x511fdc(0xc5)][_0x511fdc(0xd5)](_0x195b46=>matches(_0x811511,_0x195b46)))continue;if(_0x811511[_0x511fdc(0x8f)]===_0x511fdc(0xc5))throw Error(_0x511fdc(0x11d)+_0x403ba0+'.');const _0x5ea027=_0x4e90f9(one(children(_0x811511,_0x511fdc(0xcd)),'anchor\x20start'));if(!_0x207e54[_0x511fdc(0x109)](_0x5ea027['col']))continue;let _0x3e4165;const _0x14fa16=one(children(_0x811511,'from'),_0x511fdc(0xeb)),_0x23d71d=integer(one(children(_0x14fa16,_0x511fdc(0xb9)),'anchor\x20start\x20offset')['text'],'anchor\x20start\x20offset',Number['MAX_SAFE_INTEGER']),_0x2b2c91=_0x3b0721[_0x511fdc(0xb1)](_0x5ea027[_0x511fdc(0xa5)])??_0x42e38a;if(_0x23d71d>=_0x2b2c91)throw Error(_0x511fdc(0x10e)+_0x5ea027[_0x511fdc(0xa5)]+'.');if(_0x811511[_0x511fdc(0x8f)]===_0x511fdc(0xe9)){const _0x32162d=one(children(_0x811511,_0x511fdc(0x10c)),_0x511fdc(0xf4)),_0x15696c=integer(_0x32162d['attrs']['cy'],'image\x20height',Number['MAX_SAFE_INTEGER']);if(!_0x15696c||_0x23d71d+_0x15696c>_0x2b2c91)_0x3e4165=_0x511fdc(0xd9);}if(_0x811511[_0x511fdc(0x8f)]===_0x511fdc(0xc4)){const _0xa23bf4=one(children(_0x811511,'to'),_0x511fdc(0xf3)),_0x328e9b=_0x4e90f9(_0xa23bf4),_0x4399c9=integer(one(children(_0xa23bf4,_0x511fdc(0xb9)),'anchor\x20end\x20offset')['text'],'anchor\x20end\x20offset',Number[_0x511fdc(0xd7)]),_0x33f036=_0x3b0721[_0x511fdc(0xb1)](_0x328e9b[_0x511fdc(0xa5)])??_0x42e38a;if(_0x4399c9>_0x33f036||_0x328e9b['row']===_0x5ea027[_0x511fdc(0xa5)]&&_0x4399c9<=_0x23d71d)_0x3e4165=_0x511fdc(0x101);if(_0x328e9b['row']<_0x5ea027[_0x511fdc(0xa5)]||_0x328e9b[_0x511fdc(0xa5)]>_0x5ea027[_0x511fdc(0xa5)]+0x1||_0x328e9b[_0x511fdc(0xa5)]===_0x5ea027['row']+0x1&&_0x4399c9!==0x0)_0x3e4165=_0x511fdc(0xd9);}const _0x37bc24=chain(_0x811511,_0x511fdc(0x8a),_0x511fdc(0x11b),_0x511fdc(0x87));for(const _0xf6b2af of _0x37bc24){if(_0xf6b2af['attrs'][_0x511fdc(0x9d)])throw Error(_0x511fdc(0x111));_0x5d2409({..._0x5ea027,'media':[_0x55084c(_0x389a1f,_0xf6b2af[_0x511fdc(0xa1)][_0x511fdc(0x104)],_0x511fdc(0xa6))],..._0x3e4165?{'error':_0x3e4165}:{}});}if(!_0x37bc24[_0x511fdc(0x110)])_0x5d2409({..._0x5ea027,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x39bbd1=_0x5f1bf0=>{const _0x255942=_0x511fdc,_0x210273=_0x243ee9(_0x421c0a(_0x229a1e,'sheetMetadata'));if(!matches(_0x210273,_0x255942(0x121)))throw Error(_0x255942(0x107));const _0x26595f=integer(_0x5f1bf0[_0x255942(0xa1)]['vm'],_0x255942(0xbd));if(!_0x26595f)throw Error(_0x255942(0x93));const _0x3d5b21=children(one(children(_0x210273,_0x255942(0x12d)),_0x255942(0x12d)),'bk')[_0x26595f-0x1];if(!_0x3d5b21)throw Error('Missing\x20value\x20metadata\x20block.');const _0x19fc87=one(children(_0x3d5b21,'rc'),_0x255942(0x83)),_0x78a9a6=integer(_0x19fc87[_0x255942(0xa1)]['t'],_0x255942(0x10d)),_0x3d25df=children(one(children(_0x210273,'metadataTypes'),_0x255942(0x9b)),_0x255942(0x89))[_0x78a9a6-0x1];if(!_0x78a9a6||_0x3d25df?.[_0x255942(0xa1)][_0x255942(0x8f)]!==_0x255942(0xe0))throw Error(_0x255942(0x8d));const _0x3ebfc1=one(children(_0x210273,_0x255942(0xdc))[_0x255942(0x126)](_0x3666ff=>_0x3666ff[_0x255942(0xa1)][_0x255942(0x8f)]===_0x255942(0xe0)),'rich\x20future\x20metadata'),_0x5d6205=children(_0x3ebfc1,'bk')[integer(_0x19fc87[_0x255942(0xa1)]['v'],_0x255942(0x12e))];if(!_0x5d6205)throw Error(_0x255942(0xd4));const _0x5e988c=chain(_0x5d6205,_0x255942(0x11e))[_0x255942(0xcb)](_0x419019=>children(_0x419019,_0x255942(0x10c),SHEET))[_0x255942(0x126)](_0x2a106c=>_0x2a106c[_0x255942(0xa1)][_0x255942(0xee)]?.[_0x255942(0x124)]()===_0x255942(0xce)),_0x2dcb57=integer(one(_0x5e988c['flatMap'](_0x1e2963=>children(_0x1e2963,_0x255942(0xca))),_0x255942(0xdb))['attrs']['i'],_0x255942(0xf9)),_0x21f102=_0x243ee9(_0x421c0a(_0x229a1e,_0x255942(0xd2)));if(!matches(_0x21f102,'rvData'))throw Error(_0x255942(0x12c));const _0x170b7c=children(_0x21f102,'rv')[_0x2dcb57];if(!_0x170b7c)throw Error(_0x255942(0xd3));const _0x5c274f=_0x243ee9(_0x421c0a(_0x229a1e,_0x255942(0xfd)));if(!matches(_0x5c274f,_0x255942(0xbb)))throw Error(_0x255942(0x128));const _0x1845a4=children(_0x5c274f,'s')[integer(_0x170b7c[_0x255942(0xa1)]['s'],_0x255942(0x9a))];if(!_0x1845a4||_0x1845a4['attrs']['t']!==_0x255942(0xad))throw Error(_0x255942(0x106));const _0x2c9e86=children(_0x1845a4,'k'),_0x269263=_0x2c9e86['map']((_0x269ea1,_0x4f2df8)=>_0x269ea1[_0x255942(0xa1)]['n']===_0x255942(0xb8)?_0x4f2df8:-0x1)['filter'](_0x1616ca=>_0x1616ca>=0x0);if(_0x269263[_0x255942(0x110)]!==0x1)throw Error(_0x255942(0x90));const _0x5396ec=children(_0x170b7c,'v',RICH)[_0x269263[0x0]];if(!_0x5396ec)throw Error(_0x255942(0x85));const _0x1a16d7=_0x421c0a(_0x229a1e,'richValueRel'),_0xbf4e2a=_0x243ee9(_0x1a16d7);if(!matches(_0xbf4e2a,_0x255942(0xde)))throw Error(_0x255942(0xa3));const _0x655264=children(_0xbf4e2a,_0x255942(0xac))[integer(_0x5396ec['text'],'rich\x20image\x20relationship\x20index')];if(!_0x655264)throw Error(_0x255942(0x10b));return _0x55084c(_0x1a16d7,_0x655264[_0x255942(0xa1)][_0x255942(0xd1)],'image');};let _0x207c7b;const _0x5bffb5=_0x3414a5=>{const _0x41aca5=_0x511fdc;if(!_0x207c7b){_0x207c7b=new Map();const _0x2fdbb6=_0x323b23(_0x229a1e)[_0x41aca5(0x126)](_0x3b87a7=>[...relationshipTypes(_0x41aca5(0xa8)),...relationshipTypes('cellImages')][_0x41aca5(0xa9)](_0x3b87a7['type']));if(!_0x2fdbb6['length']&&_0x47b07e[_0x41aca5(0x109)]('xl/cellimages.xml'))_0x2fdbb6[_0x41aca5(0x117)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x2fdbb6[_0x41aca5(0x110)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x15567c=_0x597e3a(_0x229a1e,_0x2fdbb6[0x0]),_0x2135ab=_0x243ee9(_0x15567c);if(!matches(_0x2135ab,_0x41aca5(0xbf)))throw Error(_0x41aca5(0xb3));for(const _0x22bb18 of children(_0x2135ab,'cellImage')){const _0x4b6613=one(chain(_0x22bb18,_0x41aca5(0x8a),_0x41aca5(0xfa),'cNvPr'),'WPS\x20image\x20name')[_0x41aca5(0xa1)][_0x41aca5(0x8f)];if(!_0x4b6613||_0x207c7b[_0x41aca5(0x109)](_0x4b6613))throw Error(_0x41aca5(0xaa));const _0x75afca=one(chain(_0x22bb18,'pic',_0x41aca5(0x11b),'blip'),_0x41aca5(0xbc));if(_0x75afca[_0x41aca5(0xa1)][_0x41aca5(0x9d)])throw Error(_0x41aca5(0x12a));_0x207c7b[_0x41aca5(0xed)](_0x4b6613,_0x55084c(_0x15567c,_0x75afca[_0x41aca5(0xa1)]['r:embed'],_0x41aca5(0xa6)));}}const _0x46702c=_0x207c7b[_0x41aca5(0xb1)](_0x3414a5);if(!_0x46702c)throw Error(_0x41aca5(0xa2)+_0x3414a5+'.');return _0x46702c;},_0x45e6b3=new Set();for(const _0xa7a458 of _0x2b506f['flatMap'](_0x78d0a0=>children(_0x78d0a0,'c'))){const _0x22d3dd=/^([A-Z]+)([1-9]\d*)$/[_0x511fdc(0x84)](_0xa7a458[_0x511fdc(0xa1)]['r']??'');if(!_0x22d3dd)continue;let _0x461496=0x0;for(const _0x46fa37 of _0x22d3dd[0x1])_0x461496=_0x461496*0x1a+_0x46fa37[_0x511fdc(0xb2)](0x0)-0x40;if(!_0x207e54[_0x511fdc(0x109)](_0x461496))continue;const _0x5c79c1=integer(_0x22d3dd[0x2],_0x511fdc(0xe2));if(_0x45e6b3[_0x511fdc(0x109)](_0xa7a458[_0x511fdc(0xa1)]['r']))throw Error(_0x511fdc(0x8c));_0x45e6b3[_0x511fdc(0x8e)](_0xa7a458[_0x511fdc(0xa1)]['r']);const _0x1b6edb=children(_0xa7a458,'f');if(!_0xa7a458[_0x511fdc(0xa1)]['vm']&&!_0x1b6edb[_0x511fdc(0x110)])continue;try{if(_0x5c79c1<0x1||_0x461496>0x100)throw Error(_0x511fdc(0x98));let _0x59185a;if(_0xa7a458[_0x511fdc(0xa1)]['vm']){if(_0x1b6edb[_0x511fdc(0x110)])throw Error(_0x511fdc(0xdf));if(_0xa7a458['attrs']['t']!=='e'||children(_0xa7a458,'v')[_0x511fdc(0x110)]!==0x1||children(_0xa7a458,'v')[0x0][_0x511fdc(0x10a)]!=='#VALUE!')throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x59185a=_0x39bbd1(_0xa7a458);}else{const _0x9a490a=one(_0x1b6edb,'image\x20formula');if(_0x9a490a[_0x511fdc(0xa1)]['t']==='shared'||_0x9a490a[_0x511fdc(0xa1)]['si'])throw Error(_0x511fdc(0xf8));const _0x251933=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x511fdc(0x84)](_0x9a490a[_0x511fdc(0x10a)]);if(!_0x251933)throw Error(_0x511fdc(0xa7));_0x59185a=_0x5bffb5(_0x251933[0x1][_0x511fdc(0xc2)](/""/g,'\x22'));}_0x5d2409({'row':_0x5c79c1,'col':_0x461496,'media':[_0x59185a],'nativeCell':!![]});}catch(_0x57e34e){_0x5d2409({'row':_0x5c79c1,'col':_0x461496,'media':[],'nativeCell':!![],'error':_0x57e34e[_0x511fdc(0xb4)]});}}return _0x4c75a3;}
|
|
1
|
+
const a142_0x24f1d5=a142_0x2884;(function(_0x1b7db5,_0x358fe1){const _0x4f0e43=a142_0x2884,_0x339cce=_0x1b7db5();while(!![]){try{const _0x5d6e2a=-parseInt(_0x4f0e43(0x12b))/0x1+-parseInt(_0x4f0e43(0x13e))/0x2*(parseInt(_0x4f0e43(0x16e))/0x3)+-parseInt(_0x4f0e43(0x152))/0x4*(parseInt(_0x4f0e43(0x172))/0x5)+-parseInt(_0x4f0e43(0x13b))/0x6*(parseInt(_0x4f0e43(0x17f))/0x7)+-parseInt(_0x4f0e43(0x149))/0x8+-parseInt(_0x4f0e43(0x146))/0x9*(parseInt(_0x4f0e43(0x109))/0xa)+-parseInt(_0x4f0e43(0x107))/0xb*(-parseInt(_0x4f0e43(0x177))/0xc);if(_0x5d6e2a===_0x358fe1)break;else _0x339cce['push'](_0x339cce['shift']());}catch(_0x552703){_0x339cce['push'](_0x339cce['shift']());}}}(a142_0x2490,0xc4acb));import a142_0x433f68 from'node:path';import{SaxesParser}from'saxes';function a142_0x2884(_0x198dd7,_0x37c0a2){_0x198dd7=_0x198dd7-0xed;const _0x249050=a142_0x2490();let _0x28846a=_0x249050[_0x198dd7];return _0x28846a;}const SHEET=['http://schemas.openxmlformats.org/spreadsheetml/2006/main','http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=[a142_0x24f1d5(0x133),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a142_0x24f1d5(0x121),'http://purl.oclc.org/ooxml/drawingml/main'],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a142_0x24f1d5(0x163)],RICH=[a142_0x24f1d5(0x14e)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a142_0x24f1d5(0x184)],DEFAULT_NS=Object[a142_0x24f1d5(0x187)]([...[a142_0x24f1d5(0x166),a142_0x24f1d5(0x10c),a142_0x24f1d5(0x169),a142_0x24f1d5(0x17d),'sheetData',a142_0x24f1d5(0x15f),'c','f','v','sheetFormatPr','drawing',a142_0x24f1d5(0x16f),a142_0x24f1d5(0x11b),a142_0x24f1d5(0x10a),a142_0x24f1d5(0xfe),a142_0x24f1d5(0x120),'bk','rc',a142_0x24f1d5(0xff)][a142_0x24f1d5(0x175)](_0x25b89d=>[_0x25b89d,SHEET]),...[a142_0x24f1d5(0x182),a142_0x24f1d5(0x15b),'twoCellAnchor',a142_0x24f1d5(0x17b),a142_0x24f1d5(0x144),'to',a142_0x24f1d5(0x14f),'colOff',a142_0x24f1d5(0x104),a142_0x24f1d5(0xfc),'pic',a142_0x24f1d5(0x18d),a142_0x24f1d5(0xf8),a142_0x24f1d5(0x12d)][a142_0x24f1d5(0x175)](_0x2ea95e=>[_0x2ea95e,DRAWING]),...[a142_0x24f1d5(0xf5),'rvData','rv',a142_0x24f1d5(0x140),'s','k'][a142_0x24f1d5(0x175)](_0x711756=>[_0x711756,RICH]),[a142_0x24f1d5(0x113),DRAWING_MAIN],[a142_0x24f1d5(0x167),RICH_RELS],['rel',RICH_RELS],['Relationships',PACKAGE],[a142_0x24f1d5(0xf6),PACKAGE],['cellImages',WPS],['cellImage',WPS]]),matches=(_0x27cd88,_0xbfc11c,_0x176931=DEFAULT_NS[_0xbfc11c]??[])=>_0x27cd88[a142_0x24f1d5(0x16a)]===_0xbfc11c&&_0x176931[a142_0x24f1d5(0xfd)](_0x27cd88[a142_0x24f1d5(0x183)]),children=(_0x595d81,_0x268dc9,_0x16a203=DEFAULT_NS[_0x268dc9])=>_0x595d81[a142_0x24f1d5(0xf0)][a142_0x24f1d5(0x190)](_0x4a3d96=>matches(_0x4a3d96,_0x268dc9,_0x16a203)),chain=(_0x4d05e0,..._0x3476fa)=>_0x3476fa[a142_0x24f1d5(0x192)]((_0x51da45,_0x2dba56)=>_0x51da45['flatMap'](_0xdd386d=>children(_0xdd386d,_0x2dba56)),[_0x4d05e0]),relationshipTypes=_0x3636ff=>{const _0x5278ac=a142_0x24f1d5;if(['rdRichValue',_0x5278ac(0x195)]['includes'](_0x3636ff))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x3636ff];if(_0x3636ff===_0x5278ac(0x112))return[_0x5278ac(0x11e)];if(_0x3636ff===_0x5278ac(0x132)||_0x3636ff===_0x5278ac(0x186))return[_0x5278ac(0x12c)+_0x3636ff];return OFFICE_RELS['map'](_0x356b27=>_0x356b27+'/'+_0x3636ff);};function one(_0x57c6c6,_0x4d057b){const _0x3ed012=a142_0x24f1d5;if(_0x57c6c6[_0x3ed012(0xf7)]!==0x1)throw Error(_0x3ed012(0x115)+_0x4d057b+'.');return _0x57c6c6[0x0];}function a142_0x2490(){const _0x51f7cc=['nvPicPr','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Missing\x20WPS\x20image\x20ID:\x20','filter','text','reduce','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','rich\x20metadata\x20record','rdRichValueStructure','Invalid\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','Unsupported\x20WPS\x20cell\x20image\x20namespace.','children','image','Value\x20metadata\x20index\x20must\x20be\x20one-based.','_rels','Unsupported\x20mapped\x20cell\x20metadata\x20type.','rvb','Relationship','length','cNvPr','replace','Image\x20XML\x20node\x20budget\x20exceeded.','has','ext','includes','futureMetadata','extLst','true','Relationship\x20target\x20escapes\x20workbook:\x20','doctype','image\x20height','rowOff','Unsupported\x20rich\x20structure\x20namespace.','test','49993702KyKIhr','Missing\x20XLSX\x20part:\x20','3085540aHiEbp','metadataType','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','sheets','Missing\x20rich\x20value.','slice','/xl/cellimages.xml','get','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','richValueRel','blip','Missing\x20rich\x20image\x20relationship.','Missing\x20or\x20ambiguous\x20','normalize','Relationships','rich\x20image\x20relationship\x20index','Unsupported\x20workbook\x20namespace.','anchor\x20start','metadataTypes','anchor\x20end\x20offset','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','valueMetadata','http://schemas.openxmlformats.org/drawingml/2006/main','pic','Unsupported\x20metadata\x20namespace.','anchor\x20column','xl/workbook.xml','write','Missing\x20local\x20image\x20identifier\x20value.','isFinite','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','value\x20metadata\x20index','350956EIMVRb','http://www.wps.cn/officeDocument/2017/relationships/','blipFill','charCodeAt','closetag','toLowerCase','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','cellImage','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','drawing','message','values','xl/cellimages.xml','rich\x20structure\x20index','set','rdRichValue','21354MTwqra','local','r:embed','69878XydQvO','shared','rvStructures','flatMap','round','rich\x20value\x20binding','from','_rvRel:LocalImageIdentifier','9OzIYHV','push','error','4261216zaCcNu','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','metadata\x20type\x20index','basename','type','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','col','Unsupported\x20relationship\x20namespace\x20in\x20','toString','3782708EAKlci','exec','r:link','rich\x20value\x20index','Invalid\x20relationship\x20target:\x20','Ambiguous\x20XML\x20attribute.','add','attrs','isSafeInteger','oneCellAnchor','Missing\x20future\x20metadata\x20block.','twoCellAnchor','Duplicate\x20mapped\x20image\x20cell.','row','anchor\x20start\x20offset','#VALUE!','xl/','http://schemas.openxmlformats.org/package/2006/relationships','hidden','Internal','workbook','richValueRels','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','sheet','name','hidden\x20image\x20row','posix','../','66zVsfYf','metadata','XML\x20DTD/entities\x20are\x20not\x20supported.','image\x20row\x20height\x20coordinate','5sXHNvU','MAX_SAFE_INTEGER','Unsupported\x20drawing\x20image.','map','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','12QXAJFd','dirname','utf8','XLRICHVALUE','absoluteAnchor','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','worksheet','rvData','1638MfNnrv','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','wsDr','uri','http://www.wps.cn/officeDocument/2017/etCustomData','image\x20extent','cellImages','fromEntries','startsWith','Unsupported\x20mapped\x20rich\x20value\x20structure.','Unsupported\x20drawing\x20namespace.','Missing\x20value\x20metadata\x20block.','\x20relationship\x20in\x20'];a142_0x2490=function(){return _0x51f7cc;};return a142_0x2490();}function integer(_0x30697b,_0x1d4b07,_0x33b418=0x186a0){const _0x4bba7f=a142_0x24f1d5;if(!_0x30697b||!/^\d+$/[_0x4bba7f(0x106)](_0x30697b)||!Number[_0x4bba7f(0x15a)](Number(_0x30697b))||Number(_0x30697b)>_0x33b418)throw Error(_0x4bba7f(0xed)+_0x1d4b07+'.');return Number(_0x30697b);}export function resolveWorksheetImages(_0x2b869b,_0x13d8e2,_0x45b1d6){const _0x343e6e=a142_0x24f1d5;let _0x5cbc1b=0x0,_0x833ce9=0x0,_0x2a8821=0x0;const _0x30326a=new Map(),_0x5d925e=_0x4834c5=>{const _0x487abc=a142_0x2884;if(_0x30326a[_0x487abc(0xfb)](_0x4834c5))return _0x30326a[_0x487abc(0x110)](_0x4834c5);const _0x3db389=_0x2b869b[_0x487abc(0x110)](_0x4834c5);if(!_0x3db389)throw Error(_0x487abc(0x108)+_0x4834c5+'.');const _0x2dc549={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x413b1d=[_0x2dc549],_0x23dc68=new SaxesParser({'xmlns':!![]}),_0x2c0112=()=>{if(++_0x833ce9>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x23dc68['on'](_0x487abc(0x102),()=>{const _0x5198e6=_0x487abc;throw Error(_0x5198e6(0x170));}),_0x23dc68['on']('opentag',_0x43c0de=>{const _0xe7b3dc=_0x487abc;_0x2c0112();if(++_0x5cbc1b>0x7a120||_0x413b1d['length']>0x40)throw Error(_0xe7b3dc(0xfa));const _0x49a6db={};for(const _0x14b47d of Object[_0xe7b3dc(0x136)](_0x43c0de['attributes'])){const _0x32cb77=OFFICE_RELS[_0xe7b3dc(0xfd)](_0x14b47d['uri'])?'r:'+_0x14b47d[_0xe7b3dc(0x13c)]:_0x14b47d['uri']?'{'+_0x14b47d[_0xe7b3dc(0x183)]+'}'+_0x14b47d[_0xe7b3dc(0x13c)]:_0x14b47d['local'];if(_0x32cb77 in _0x49a6db)throw Error(_0xe7b3dc(0x157));_0x49a6db[_0x32cb77]=_0x14b47d['value'];}const _0x28ff83={'name':_0x43c0de[_0xe7b3dc(0x13c)],'uri':_0x43c0de[_0xe7b3dc(0x183)],'attrs':_0x49a6db,'children':[],'text':''};_0x413b1d['at'](-0x1)[_0xe7b3dc(0xf0)][_0xe7b3dc(0x147)](_0x28ff83),_0x413b1d['push'](_0x28ff83);}),_0x23dc68['on'](_0x487abc(0x191),_0x2865fd=>{const _0x533ffc=_0x487abc;_0x2c0112();const _0x45f890=_0x413b1d['at'](-0x1);_0x45f890[_0x533ffc(0x191)]+=_0x2865fd;if(_0x45f890['text'][_0x533ffc(0xf7)]>0x10000)throw Error(_0x533ffc(0x10b));}),_0x23dc68['on'](_0x487abc(0x12f),()=>{_0x2c0112(),_0x413b1d['pop']();}),_0x23dc68['on'](_0x487abc(0x148),_0x157cec=>{throw _0x157cec;}),_0x23dc68[_0x487abc(0x126)](_0x3db389[_0x487abc(0x151)](_0x487abc(0x179)))['close']();const _0x299ef9=one(_0x2dc549['children'],_0x4834c5);return _0x30326a[_0x487abc(0x139)](_0x4834c5,_0x299ef9),_0x299ef9;},_0x479aa4=new Map(),_0x338edf=_0x5cf01f=>{const _0x49b5e3=a142_0x2884;if(_0x479aa4[_0x49b5e3(0xfb)](_0x5cf01f))return _0x479aa4[_0x49b5e3(0x110)](_0x5cf01f);const _0x1d06e7=a142_0x433f68[_0x49b5e3(0x16c)]['join'](a142_0x433f68[_0x49b5e3(0x16c)]['dirname'](_0x5cf01f),_0x49b5e3(0xf3),a142_0x433f68[_0x49b5e3(0x16c)][_0x49b5e3(0x14c)](_0x5cf01f)+'.rels');if(!_0x2b869b[_0x49b5e3(0xfb)](_0x1d06e7))return[];const _0x2bae2b=new Set(),_0x2caa9d=_0x5d925e(_0x1d06e7);if(!matches(_0x2caa9d,_0x49b5e3(0x117)))throw Error(_0x49b5e3(0x150)+_0x1d06e7+'.');const _0x32e11f=children(_0x2caa9d,'Relationship')['map'](_0x2be517=>{const _0x51e01d=_0x49b5e3,{Id:_0x5a6ab2,Type:_0x20629c,Target:_0x31a36f,TargetMode:_0x1e75cb}=_0x2be517[_0x51e01d(0x159)];if(!_0x5a6ab2||_0x2bae2b[_0x51e01d(0xfb)](_0x5a6ab2)||!_0x20629c)throw Error(_0x51e01d(0x129)+_0x1d06e7+'.');return _0x2bae2b['add'](_0x5a6ab2),{'id':_0x5a6ab2,'type':_0x20629c,'target':_0x31a36f??'','mode':_0x1e75cb};});return _0x479aa4[_0x49b5e3(0x139)](_0x5cf01f,_0x32e11f),_0x32e11f;},_0x1a7124=(_0x3ef1f8,_0x2d54d0)=>{const _0x2baf8c=a142_0x2884,{target:_0x300d7d,mode:_0x429cff}=_0x2d54d0;if(_0x429cff&&_0x429cff!==_0x2baf8c(0x165))throw Error(_0x2baf8c(0x176)+_0x3ef1f8+'.');if(!_0x300d7d||_0x300d7d[_0x2baf8c(0xfd)]('\x5c')||/[?#%\x00-\x20]/[_0x2baf8c(0x106)](_0x300d7d)||/^[a-z][a-z0-9+.-]*:/i[_0x2baf8c(0x106)](_0x300d7d)||_0x300d7d[_0x2baf8c(0x188)]('//'))throw Error(_0x2baf8c(0x156)+_0x3ef1f8+'.');const _0x355fbb=_0x300d7d['startsWith']('/')?_0x300d7d[_0x2baf8c(0x10e)](0x1):a142_0x433f68[_0x2baf8c(0x16c)][_0x2baf8c(0x116)](a142_0x433f68['posix']['join'](a142_0x433f68[_0x2baf8c(0x16c)][_0x2baf8c(0x178)](_0x3ef1f8),_0x300d7d));if(_0x355fbb['startsWith'](_0x2baf8c(0x16d))||_0x355fbb==='..'||!_0x355fbb['startsWith'](_0x2baf8c(0x162)))throw Error(_0x2baf8c(0x101)+_0x3ef1f8+'.');return _0x355fbb;},_0x35898c=(_0x4eed20,_0x306a01,_0x3405e3)=>{const _0x2ce70f=a142_0x2884,_0x2b01af=_0x338edf(_0x4eed20)[_0x2ce70f(0x190)](_0x551cdb=>_0x551cdb['id']===_0x306a01&&relationshipTypes(_0x3405e3)[_0x2ce70f(0xfd)](_0x551cdb[_0x2ce70f(0x14d)]));if(_0x2b01af[_0x2ce70f(0xf7)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x3405e3+_0x2ce70f(0x18c)+_0x4eed20+'.');return _0x1a7124(_0x4eed20,_0x2b01af[0x0]);},_0x4a0b1b=(_0x3e70a1,_0x44731c)=>{const _0x463f90=a142_0x2884,_0xf737d1=_0x338edf(_0x3e70a1)['filter'](_0x421f05=>relationshipTypes(_0x44731c)[_0x463f90(0xfd)](_0x421f05[_0x463f90(0x14d)]));if(_0xf737d1[_0x463f90(0xf7)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x44731c+'\x20relationship\x20in\x20'+_0x3e70a1+'.');return _0x1a7124(_0x3e70a1,_0xf737d1[0x0]);},_0x9e1eee=_0x343e6e(0x125),_0x575d63=_0x5d925e(_0x9e1eee);if(!matches(_0x575d63,_0x343e6e(0x166)))throw Error(_0x343e6e(0x119));const _0x11d679=one(chain(_0x575d63,_0x343e6e(0x10c),_0x343e6e(0x169))[_0x343e6e(0x190)](_0x4c6bb1=>_0x4c6bb1['attrs'][_0x343e6e(0x16a)]===_0x13d8e2),'worksheet'),_0x267d74=_0x35898c(_0x9e1eee,_0x11d679['attrs']['r:id'],'worksheet'),_0x4d9f06=_0x5d925e(_0x267d74);if(!matches(_0x4d9f06,_0x343e6e(0x17d)))throw Error('Unsupported\x20worksheet\x20namespace.');const _0x38e469=chain(_0x4d9f06,'sheetData','row'),_0x73ac0c=new Map(),_0x52bb0b=new Set(_0x38e469[_0x343e6e(0x190)](_0x258784=>_0x258784[_0x343e6e(0x159)][_0x343e6e(0x164)]==='1'||_0x258784[_0x343e6e(0x159)][_0x343e6e(0x164)]===_0x343e6e(0x100))[_0x343e6e(0x175)](_0x49b9c6=>integer(_0x49b9c6['attrs']['r'],_0x343e6e(0x16b)))),_0x56d069=_0x28d294=>{const _0x43c566=_0x343e6e,_0x314bec=_0x28d294===undefined?0xf:Number(_0x28d294);if(!Number[_0x43c566(0x128)](_0x314bec)||_0x314bec<=0x0||_0x314bec>409.5)throw Error(_0x43c566(0x168));return Math[_0x43c566(0x142)](_0x314bec*0x319c);},_0x4f26fa=_0x56d069(children(_0x4d9f06,'sheetFormatPr')[0x0]?.[_0x343e6e(0x159)]['defaultRowHeight']);for(const _0x538023 of _0x38e469)if(_0x538023['attrs']['ht']!==undefined)_0x73ac0c[_0x343e6e(0x139)](integer(_0x538023[_0x343e6e(0x159)]['r'],_0x343e6e(0x171)),_0x56d069(_0x538023[_0x343e6e(0x159)]['ht']));const _0x2126cc=[],_0x2b062e=_0x28079f=>{const _0x577a31=_0x343e6e;if(!_0x45b1d6[_0x577a31(0xfb)](_0x28079f[_0x577a31(0x14f)]))return;if(++_0x2a8821>0x2710)throw Error(_0x577a31(0x17c));_0x2126cc[_0x577a31(0x147)](_0x52bb0b[_0x577a31(0xfb)](_0x28079f['row'])?{..._0x28079f,'hiddenRow':!![]}:_0x28079f);},_0xee587b=_0x34ebd5=>({'row':integer(one(children(_0x34ebd5,_0x343e6e(0x15f),DRAWING),'anchor\x20row')[_0x343e6e(0x191)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x34ebd5,_0x343e6e(0x14f)),_0x343e6e(0x124))[_0x343e6e(0x191)],_0x343e6e(0x124),0xff)+0x1});for(const _0x2e2554 of children(_0x4d9f06,'drawing')){const _0x2983fc=_0x35898c(_0x267d74,_0x2e2554[_0x343e6e(0x159)]['r:id'],_0x343e6e(0x134)),_0x39f021=_0x5d925e(_0x2983fc);if(!matches(_0x39f021,_0x343e6e(0x182)))throw Error(_0x343e6e(0x18a));for(const _0x457793 of _0x39f021['children']){if(![_0x343e6e(0x15b),_0x343e6e(0x15d),_0x343e6e(0x17b)]['some'](_0x152a3f=>matches(_0x457793,_0x152a3f)))continue;if(_0x457793['name']===_0x343e6e(0x17b))throw Error(_0x343e6e(0x131)+_0x13d8e2+'.');const _0xa75f2a=_0xee587b(one(children(_0x457793,'from'),_0x343e6e(0x11a)));if(!_0x45b1d6[_0x343e6e(0xfb)](_0xa75f2a[_0x343e6e(0x14f)]))continue;let _0x1988ad;const _0x144a5f=one(children(_0x457793,_0x343e6e(0x144)),_0x343e6e(0x11a)),_0x205637=integer(one(children(_0x144a5f,_0x343e6e(0x104)),_0x343e6e(0x160))[_0x343e6e(0x191)],'anchor\x20start\x20offset',Number[_0x343e6e(0x173)]),_0x2c9a9e=_0x73ac0c[_0x343e6e(0x110)](_0xa75f2a[_0x343e6e(0x15f)])??_0x4f26fa;if(_0x205637>=_0x2c9a9e)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0xa75f2a[_0x343e6e(0x15f)]+'.');if(_0x457793[_0x343e6e(0x16a)]===_0x343e6e(0x15b)){const _0x3e1944=one(children(_0x457793,'ext'),_0x343e6e(0x185)),_0xa84277=integer(_0x3e1944[_0x343e6e(0x159)]['cy'],_0x343e6e(0x103),Number[_0x343e6e(0x173)]);if(!_0xa84277||_0x205637+_0xa84277>_0x2c9a9e)_0x1988ad=_0x343e6e(0x11f);}if(_0x457793[_0x343e6e(0x16a)]===_0x343e6e(0x15d)){const _0xa61689=one(children(_0x457793,'to'),'anchor\x20end'),_0x5a9d18=_0xee587b(_0xa61689),_0xcf4799=integer(one(children(_0xa61689,_0x343e6e(0x104)),_0x343e6e(0x11c))[_0x343e6e(0x191)],_0x343e6e(0x11c),Number[_0x343e6e(0x173)]),_0x34a94b=_0x73ac0c['get'](_0x5a9d18[_0x343e6e(0x15f)])??_0x4f26fa;if(_0xcf4799>_0x34a94b||_0x5a9d18[_0x343e6e(0x15f)]===_0xa75f2a[_0x343e6e(0x15f)]&&_0xcf4799<=_0x205637)_0x1988ad='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x5a9d18[_0x343e6e(0x15f)]<_0xa75f2a['row']||_0x5a9d18['row']>_0xa75f2a['row']+0x1||_0x5a9d18[_0x343e6e(0x15f)]===_0xa75f2a['row']+0x1&&_0xcf4799!==0x0)_0x1988ad=_0x343e6e(0x11f);}const _0x4ebda7=chain(_0x457793,_0x343e6e(0x122),_0x343e6e(0x12d),_0x343e6e(0x113));for(const _0x1d8b1c of _0x4ebda7){if(_0x1d8b1c[_0x343e6e(0x159)]['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x2b062e({..._0xa75f2a,'media':[_0x35898c(_0x2983fc,_0x1d8b1c[_0x343e6e(0x159)][_0x343e6e(0x13d)],_0x343e6e(0xf1))],..._0x1988ad?{'error':_0x1988ad}:{}});}if(!_0x4ebda7['length'])_0x2b062e({..._0xa75f2a,'media':[],'error':_0x343e6e(0x174)});}}const _0x523852=_0x69f565=>{const _0x3f9bf6=_0x343e6e,_0x4baef8=_0x5d925e(_0x4a0b1b(_0x9e1eee,'sheetMetadata'));if(!matches(_0x4baef8,'metadata'))throw Error(_0x3f9bf6(0x123));const _0x59efa4=integer(_0x69f565[_0x3f9bf6(0x159)]['vm'],_0x3f9bf6(0x12a));if(!_0x59efa4)throw Error(_0x3f9bf6(0xf2));const _0x1953b9=children(one(children(_0x4baef8,_0x3f9bf6(0x120)),'valueMetadata'),'bk')[_0x59efa4-0x1];if(!_0x1953b9)throw Error(_0x3f9bf6(0x18b));const _0x305f22=one(children(_0x1953b9,'rc'),_0x3f9bf6(0x194)),_0x35dab8=integer(_0x305f22['attrs']['t'],_0x3f9bf6(0x14b)),_0x23bcf9=children(one(children(_0x4baef8,_0x3f9bf6(0x11b)),'metadata\x20types'),_0x3f9bf6(0x10a))[_0x35dab8-0x1];if(!_0x35dab8||_0x23bcf9?.[_0x3f9bf6(0x159)]['name']!=='XLRICHVALUE')throw Error(_0x3f9bf6(0xf4));const _0x327478=one(children(_0x4baef8,'futureMetadata')[_0x3f9bf6(0x190)](_0x7303f8=>_0x7303f8['attrs']['name']===_0x3f9bf6(0x17a)),'rich\x20future\x20metadata'),_0x496b33=children(_0x327478,'bk')[integer(_0x305f22[_0x3f9bf6(0x159)]['v'],'future\x20metadata\x20index')];if(!_0x496b33)throw Error(_0x3f9bf6(0x15c));const _0x582ee9=chain(_0x496b33,_0x3f9bf6(0xff))['flatMap'](_0x90563b=>children(_0x90563b,'ext',SHEET))[_0x3f9bf6(0x190)](_0x5dc1b6=>_0x5dc1b6[_0x3f9bf6(0x159)][_0x3f9bf6(0x183)]?.[_0x3f9bf6(0x130)]()===_0x3f9bf6(0x111)),_0x3afe76=integer(one(_0x582ee9[_0x3f9bf6(0x141)](_0x5f4751=>children(_0x5f4751,_0x3f9bf6(0xf5))),_0x3f9bf6(0x143))[_0x3f9bf6(0x159)]['i'],_0x3f9bf6(0x155)),_0x484ef0=_0x5d925e(_0x4a0b1b(_0x9e1eee,_0x3f9bf6(0x13a)));if(!matches(_0x484ef0,_0x3f9bf6(0x17e)))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x1cbf12=children(_0x484ef0,'rv')[_0x3afe76];if(!_0x1cbf12)throw Error(_0x3f9bf6(0x10d));const _0xd9f29a=_0x5d925e(_0x4a0b1b(_0x9e1eee,_0x3f9bf6(0x195)));if(!matches(_0xd9f29a,_0x3f9bf6(0x140)))throw Error(_0x3f9bf6(0x105));const _0x45a6be=children(_0xd9f29a,'s')[integer(_0x1cbf12['attrs']['s'],_0x3f9bf6(0x138))];if(!_0x45a6be||_0x45a6be[_0x3f9bf6(0x159)]['t']!=='_localImage')throw Error(_0x3f9bf6(0x189));const _0x4ce79a=children(_0x45a6be,'k'),_0xee6841=_0x4ce79a[_0x3f9bf6(0x175)]((_0x919d3b,_0x47e5cd)=>_0x919d3b[_0x3f9bf6(0x159)]['n']===_0x3f9bf6(0x145)?_0x47e5cd:-0x1)[_0x3f9bf6(0x190)](_0x551918=>_0x551918>=0x0);if(_0xee6841['length']!==0x1)throw Error(_0x3f9bf6(0x193));const _0x59d79e=children(_0x1cbf12,'v',RICH)[_0xee6841[0x0]];if(!_0x59d79e)throw Error(_0x3f9bf6(0x127));const _0x1af2f0=_0x4a0b1b(_0x9e1eee,_0x3f9bf6(0x112)),_0x528a8a=_0x5d925e(_0x1af2f0);if(!matches(_0x528a8a,_0x3f9bf6(0x167)))throw Error('Unsupported\x20rich\x20image\x20relation\x20namespace.');const _0x7a12a8=children(_0x528a8a,'rel')[integer(_0x59d79e[_0x3f9bf6(0x191)],_0x3f9bf6(0x118))];if(!_0x7a12a8)throw Error(_0x3f9bf6(0x114));return _0x35898c(_0x1af2f0,_0x7a12a8[_0x3f9bf6(0x159)]['r:id'],'image');};let _0x27ac3e;const _0x23deb3=_0x9a7c65=>{const _0x5c3eea=_0x343e6e;if(!_0x27ac3e){_0x27ac3e=new Map();const _0x548534=_0x338edf(_0x9e1eee)['filter'](_0x352f7e=>[...relationshipTypes(_0x5c3eea(0x132)),...relationshipTypes(_0x5c3eea(0x186))][_0x5c3eea(0xfd)](_0x352f7e[_0x5c3eea(0x14d)]));if(!_0x548534[_0x5c3eea(0xf7)]&&_0x2b869b[_0x5c3eea(0xfb)](_0x5c3eea(0x137)))_0x548534['push']({'id':'','type':'','target':_0x5c3eea(0x10f)});if(_0x548534['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0xddb758=_0x1a7124(_0x9e1eee,_0x548534[0x0]),_0xde959f=_0x5d925e(_0xddb758);if(!matches(_0xde959f,_0x5c3eea(0x186)))throw Error(_0x5c3eea(0xef));for(const _0xb45eca of children(_0xde959f,_0x5c3eea(0x132))){const _0x220b12=one(chain(_0xb45eca,_0x5c3eea(0x122),_0x5c3eea(0x18d),'cNvPr'),'WPS\x20image\x20name')[_0x5c3eea(0x159)][_0x5c3eea(0x16a)];if(!_0x220b12||_0x27ac3e['has'](_0x220b12))throw Error(_0x5c3eea(0x180));const _0x354852=one(chain(_0xb45eca,_0x5c3eea(0x122),_0x5c3eea(0x12d),_0x5c3eea(0x113)),'WPS\x20image\x20blip');if(_0x354852['attrs'][_0x5c3eea(0x154)])throw Error(_0x5c3eea(0x18e));_0x27ac3e['set'](_0x220b12,_0x35898c(_0xddb758,_0x354852[_0x5c3eea(0x159)][_0x5c3eea(0x13d)],_0x5c3eea(0xf1)));}}const _0x15c59d=_0x27ac3e[_0x5c3eea(0x110)](_0x9a7c65);if(!_0x15c59d)throw Error(_0x5c3eea(0x18f)+_0x9a7c65+'.');return _0x15c59d;},_0x4a9d85=new Set();for(const _0x5e298c of _0x38e469[_0x343e6e(0x141)](_0x23d5bb=>children(_0x23d5bb,'c'))){const _0x103ca0=/^([A-Z]+)([1-9]\d*)$/[_0x343e6e(0x153)](_0x5e298c[_0x343e6e(0x159)]['r']??'');if(!_0x103ca0)continue;let _0x4815b2=0x0;for(const _0x4c67f1 of _0x103ca0[0x1])_0x4815b2=_0x4815b2*0x1a+_0x4c67f1[_0x343e6e(0x12e)](0x0)-0x40;if(!_0x45b1d6[_0x343e6e(0xfb)](_0x4815b2))continue;const _0x4a2882=integer(_0x103ca0[0x2],'image\x20cell\x20row');if(_0x4a9d85[_0x343e6e(0xfb)](_0x5e298c['attrs']['r']))throw Error(_0x343e6e(0x15e));_0x4a9d85[_0x343e6e(0x158)](_0x5e298c[_0x343e6e(0x159)]['r']);const _0x2b1fba=children(_0x5e298c,'f');if(!_0x5e298c['attrs']['vm']&&!_0x2b1fba[_0x343e6e(0xf7)])continue;try{if(_0x4a2882<0x1||_0x4815b2>0x100)throw Error(_0x343e6e(0x14a));let _0x32017b;if(_0x5e298c['attrs']['vm']){if(_0x2b1fba[_0x343e6e(0xf7)])throw Error(_0x343e6e(0x11d));if(_0x5e298c[_0x343e6e(0x159)]['t']!=='e'||children(_0x5e298c,'v')[_0x343e6e(0xf7)]!==0x1||children(_0x5e298c,'v')[0x0][_0x343e6e(0x191)]!==_0x343e6e(0x161))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x32017b=_0x523852(_0x5e298c);}else{const _0x36e8db=one(_0x2b1fba,'image\x20formula');if(_0x36e8db[_0x343e6e(0x159)]['t']===_0x343e6e(0x13f)||_0x36e8db['attrs']['si'])throw Error(_0x343e6e(0x181));const _0x316a1c=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x343e6e(0x153)](_0x36e8db[_0x343e6e(0x191)]);if(!_0x316a1c)throw Error(_0x343e6e(0xee));_0x32017b=_0x23deb3(_0x316a1c[0x1][_0x343e6e(0xf9)](/""/g,'\x22'));}_0x2b062e({'row':_0x4a2882,'col':_0x4815b2,'media':[_0x32017b],'nativeCell':!![]});}catch(_0x111c37){_0x2b062e({'row':_0x4a2882,'col':_0x4815b2,'media':[],'nativeCell':!![],'error':_0x111c37[_0x343e6e(0x135)]});}}return _0x2126cc;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3acbe4,_0x2725e5){const _0x5eb7bb=a143_0x477d,_0x5ca008=_0x3acbe4();while(!![]){try{const _0x3d31e1=-parseInt(_0x5eb7bb(0xf2))/0x1+-parseInt(_0x5eb7bb(0x116))/0x2*(-parseInt(_0x5eb7bb(0x112))/0x3)+-parseInt(_0x5eb7bb(0xf9))/0x4*(parseInt(_0x5eb7bb(0x105))/0x5)+parseInt(_0x5eb7bb(0x117))/0x6*(parseInt(_0x5eb7bb(0x11e))/0x7)+-parseInt(_0x5eb7bb(0x103))/0x8*(-parseInt(_0x5eb7bb(0x13a))/0x9)+parseInt(_0x5eb7bb(0x14a))/0xa*(-parseInt(_0x5eb7bb(0x13b))/0xb)+parseInt(_0x5eb7bb(0x10b))/0xc;if(_0x3d31e1===_0x2725e5)break;else _0x5ca008['push'](_0x5ca008['shift']());}catch(_0x28d2c6){_0x5ca008['push'](_0x5ca008['shift']());}}}(a143_0x2475,0x84b89));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(_0x1e1dbf,_0xaef97e){const _0x1ba0ff=a143_0x477d;if(!_0xaef97e['media']?.[_0x1ba0ff(0x134)])return;const _0x32d956=_0x1e1dbf[_0x1ba0ff(0x128)];if(!_0x32d956||_0x32d956[_0x1ba0ff(0x104)]!==0x1||_0x32d956[_0x1ba0ff(0xfc)]!==_0x1ba0ff(0x100)||_0x32d956[_0x1ba0ff(0x12b)]!==0xa00000||_0x32d956[_0x1ba0ff(0x12a)]!==0x2625a00||!Array['isArray'](_0x32d956['types'])||![_0x1ba0ff(0x149),_0x1ba0ff(0x10e),_0x1ba0ff(0x125)][_0x1ba0ff(0x132)](_0x196748=>_0x32d956[_0x1ba0ff(0x11a)][_0x1ba0ff(0xfb)](_0x196748)))throw Error(_0x1ba0ff(0x142));}function a143_0x477d(_0x5b4c40,_0x3579d8){_0x5b4c40=_0x5b4c40-0xea;const _0x247538=a143_0x2475();let _0x477d44=_0x247538[_0x5b4c40];return _0x477d44;}function a143_0x2475(){const _0x277da9=['field','png','1569156LDiCIF','checkpoint','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','image/jpeg','rowNumber','resume','digest','15yhkQdb','batchSize','manifest','schemaFingerprint','95926JPoBrH','6520062eUrCup','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','Image\x20cell\x20references\x20missing\x20media.','types','map','pending','key','7DrUwlH','Invalid\x20import\x20batch\x20size.','hex','name','phase','size','ENOENT','image/gif','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','media','imageImport','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','maxPixels','maxFileBytes','actorId','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','schemaHash','uploadFields','code','values','every','inputPaths','length','Image\x20media\x20bytes\x20changed.','.lock.recovery','maxBatchBytes','contract','isSafeInteger','2173041eiPRcA','8789869bvDpeN','rows-preparing','completed','utf8','get','schemaVersion','fileHash','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','hashes','binding','Invalid\x20image\x20media\x20descriptor.','appCode','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','runtimeDomain','image/png','10TeNkJS','value','datasetCode','status','Invalid\x20image\x20readback\x20digest.','maxBatchSize','stringify','rows','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','isInteger','.lock','bytes','imageApi','update','rows-started','readback','739501fsswIn','entries','Completed\x20image\x20checkpoint\x20value\x20changed.','type','reduce','imageCells','errors','44hGTksF','fromEntries','includes','uploadId','contentHash','importId','mappingHash','sha256','fileName','isArray','32AxSZyd','version','154930bOfctW','jpg','succeeded','hash'];a143_0x2475=function(){return _0x277da9;};return a143_0x2475();}export function imageObjectValue(_0xe16e69,_0x5cde17,_0x3fdd31){const _0x4cca41=a143_0x477d,_0x38d3fd=createHash(_0x4cca41(0x100))['update'](JSON[_0x4cca41(0x150)]([_0xe16e69[_0x4cca41(0x12c)],_0xe16e69[_0x4cca41(0x146)],_0xe16e69[_0x4cca41(0x14c)],_0x5cde17]))[_0x4cca41(0x111)]('hex'),_0x3e4836={'image/png':_0x4cca41(0x10a),'image/jpeg':_0x4cca41(0x106),'image/gif':'gif'}[_0x3fdd31[_0x4cca41(0xf5)]];if(!_0x3e4836||!/^[0-9a-f]{64}$/['test'](_0x3fdd31[_0x4cca41(0xfd)])||!Number[_0x4cca41(0x139)](_0x3fdd31[_0x4cca41(0x123)])||_0x3fdd31[_0x4cca41(0x123)]<=0x0||_0x3fdd31[_0x4cca41(0x123)]>0xa00000)throw Error(_0x4cca41(0x145));const _0x3b02d5=_0x3fdd31['contentHash']+'.'+_0x3e4836;return{'key':'dataset-import/'+_0x38d3fd+'/'+_0x3b02d5,'name':_0x3b02d5,'type':_0x3fdd31[_0x4cca41(0xf5)],'size':_0x3fdd31[_0x4cca41(0x123)]};}export function bindImageManifest(_0x3b3ca9,_0x662bfe,_0x3cae53){const _0x423df7=a143_0x477d,_0x5b06fc=new Map(_0x3b3ca9[_0x423df7(0x127)]?.[_0x423df7(0x11b)](_0x2768e0=>[_0x2768e0[_0x423df7(0xfd)],_0x2768e0])),_0x3df11e=new Map(_0x3b3ca9[_0x423df7(0xf7)]?.[_0x423df7(0x11b)](_0xff347d=>[_0xff347d['rowNumber']+':'+_0xff347d[_0x423df7(0x109)],_0xff347d['hashes']]));return{..._0x3b3ca9,'rows':_0x3b3ca9[_0x423df7(0x151)]['map'](_0x1eecd7=>({..._0x1eecd7,'values':Object[_0x423df7(0xfa)](Object[_0x423df7(0xf3)](_0x1eecd7[_0x423df7(0x131)])[_0x423df7(0x11b)](([_0x2faf65,_0x39c999])=>{const _0x2a8642=_0x423df7,_0x135bae=_0x3df11e['get'](_0x1eecd7[_0x2a8642(0x10f)]+':'+_0x2faf65);return[_0x2faf65,_0x135bae?_0x135bae[_0x2a8642(0x11b)](_0x213541=>{const _0x70cb45=_0x2a8642,_0x7406d=_0x5b06fc[_0x70cb45(0x13f)](_0x213541);if(!_0x7406d)throw Error(_0x70cb45(0x119));const _0x51097c=imageObjectValue(_0x662bfe,_0x3cae53,_0x7406d);return _0x3b3ca9[_0x70cb45(0x12f)]?.[_0x70cb45(0xfb)](_0x2faf65)?{'fileName':_0x51097c[_0x70cb45(0x121)],'filePath':_0x51097c[_0x70cb45(0x11d)]}:_0x51097c;}):_0x39c999];}))}))};}async function exists(_0x5edaf9){const _0x415e96=a143_0x477d;try{return await lstat(_0x5edaf9),!![];}catch(_0x15d2e0){if(_0x15d2e0[_0x415e96(0x130)]===_0x415e96(0x124))return![];throw _0x15d2e0;}}export async function runImageExcelImport(_0x589cd9){const _0x4c5b01=a143_0x477d;assertImportContract(_0x589cd9[_0x4c5b01(0x138)],_0x589cd9[_0x4c5b01(0x146)],_0x589cd9['datasetCode']),assertImageImportCapability(_0x589cd9['contract'],_0x589cd9['manifest']);if(!Number[_0x4c5b01(0xeb)](_0x589cd9[_0x4c5b01(0x113)])||_0x589cd9[_0x4c5b01(0x113)]<0x1||_0x589cd9[_0x4c5b01(0x113)]>_0x589cd9[_0x4c5b01(0x138)][_0x4c5b01(0x14f)])throw Error(_0x4c5b01(0x11f));if(_0x589cd9[_0x4c5b01(0x114)][_0x4c5b01(0xf8)][_0x4c5b01(0x134)]||!_0x589cd9[_0x4c5b01(0x114)][_0x4c5b01(0x151)][_0x4c5b01(0x134)])throw Error(_0x4c5b01(0x10d));const _0x55bfa0=await resolveImportOutputPath(_0x589cd9[_0x4c5b01(0x10c)]),_0x42b988=await resolveImportOutputPath(_0x589cd9['report']),_0x54a01e=await resolveImportOutputPath(_0x55bfa0+'.rows.json'),_0x4b9e16=await Promise['all']([_0x54a01e,_0x54a01e+'.lock',_0x54a01e+_0x4c5b01(0x136),..._0x589cd9[_0x4c5b01(0x133)]??[]][_0x4c5b01(0x11b)](resolveImportOutputPath));for(const _0x2beb99 of[_0x55bfa0,_0x42b988,_0x55bfa0+_0x4c5b01(0xec),_0x55bfa0+_0x4c5b01(0x136)])await resolveImportOutputPath(_0x2beb99);assertImportPaths(_0x55bfa0,_0x42b988,_0x4b9e16);const {contract:_0x4e9efc,manifest:_0x10a0f2}=_0x589cd9,_0x1c1cee=_0x10a0f2[_0x4c5b01(0x127)]??[];if(new Set(_0x1c1cee[_0x4c5b01(0x11b)](_0x545861=>_0x545861['contentHash']))['size']!==_0x1c1cee[_0x4c5b01(0x134)]||_0x1c1cee[_0x4c5b01(0xf6)]((_0x2ef11d,_0x4ceb8a)=>_0x2ef11d+_0x4ceb8a['size'],0x0)>0x32*0x400*0x400||(_0x10a0f2[_0x4c5b01(0xf7)]??[])[_0x4c5b01(0xf6)]((_0xc88db0,_0x335c74)=>_0xc88db0+_0x335c74[_0x4c5b01(0x143)][_0x4c5b01(0x134)],0x0)>0x2710)throw Error('Invalid\x20image\x20manifest\x20limits.');for(const _0xdcfc5d of _0x1c1cee)if(_0xdcfc5d[_0x4c5b01(0x123)]!==_0xdcfc5d[_0x4c5b01(0xed)]['length']||createHash(_0x4c5b01(0x100))[_0x4c5b01(0xef)](_0xdcfc5d[_0x4c5b01(0xed)])[_0x4c5b01(0x111)](_0x4c5b01(0x120))!==_0xdcfc5d['contentHash'])throw Error(_0x4c5b01(0x135));previewImportBatchCount(bindImageManifest(_0x10a0f2,_0x4e9efc,'00000000-0000-4000-8000-000000000000'),_0x4e9efc,_0x589cd9[_0x4c5b01(0x113)]);const _0x158d48={'appCode':_0x589cd9[_0x4c5b01(0x146)],'datasetCode':_0x589cd9[_0x4c5b01(0x14c)],'runtimeDomain':_0x589cd9[_0x4c5b01(0x148)],'actorId':_0x4e9efc[_0x4c5b01(0x12c)],'fileHash':_0x10a0f2[_0x4c5b01(0x141)],'mappingHash':_0x10a0f2[_0x4c5b01(0xff)],'schemaHash':_0x10a0f2[_0x4c5b01(0x12e)],'remoteSchemaHash':_0x4e9efc[_0x4c5b01(0x115)],'strategy':_0x4e9efc['strategy'],'schemaVersion':_0x4e9efc[_0x4c5b01(0x140)],'batchSize':_0x589cd9[_0x4c5b01(0x113)],'maxBatchBytes':_0x4e9efc[_0x4c5b01(0x137)],'sheet':_0x10a0f2['sheet'],'parserVersion':_0x10a0f2['parserVersion'],'imageFields':_0x10a0f2['imageFields'],'cells':_0x10a0f2[_0x4c5b01(0xf7)],..._0x10a0f2[_0x4c5b01(0x12f)]?.[_0x4c5b01(0x134)]?{'uploadFields':_0x10a0f2[_0x4c5b01(0x12f)]}:{},'media':_0x1c1cee['map'](({contentHash:_0x38a3e9,type:_0x320d4e,size:_0x544858})=>({'contentHash':_0x38a3e9,'type':_0x320d4e,'size':_0x544858})),'rows':_0x10a0f2['rows']},_0x429cda=await acquireLock(_0x55bfa0);try{let _0x79500a;if(_0x589cd9[_0x4c5b01(0x110)]){try{_0x79500a=JSON['parse'](await readFile(_0x55bfa0,_0x4c5b01(0x13e)));}catch{throw Error('Cannot\x20read\x20the\x20image\x20import\x20checkpoint.');}if(_0x79500a['version']!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x79500a[_0x4c5b01(0xfe)])||canonical(_0x79500a[_0x4c5b01(0x144)])!==canonical(_0x158d48)||![_0x4c5b01(0x127),_0x4c5b01(0x13c),_0x4c5b01(0xf0),_0x4c5b01(0x13d)][_0x4c5b01(0xfb)](_0x79500a[_0x4c5b01(0x122)])||!Array[_0x4c5b01(0x102)](_0x79500a[_0x4c5b01(0x127)])||_0x79500a[_0x4c5b01(0x127)][_0x4c5b01(0x134)]!==_0x1c1cee[_0x4c5b01(0x134)]||_0x79500a[_0x4c5b01(0x127)]['some']((_0x37c7ba,_0x32429a)=>_0x37c7ba[_0x4c5b01(0x108)]!==_0x1c1cee[_0x32429a][_0x4c5b01(0xfd)]||!['pending',_0x4c5b01(0x107)]['includes'](_0x37c7ba[_0x4c5b01(0x14d)])))throw Error(_0x4c5b01(0x118));if([_0x4c5b01(0xf0),_0x4c5b01(0x13d)][_0x4c5b01(0xfb)](_0x79500a[_0x4c5b01(0x122)])&&!await exists(_0x54a01e))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x79500a['phase']==='media'&&await exists(_0x54a01e))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x55bfa0)||await exists(_0x54a01e))throw Error(_0x4c5b01(0x147));_0x79500a={'version':0x3,'importId':randomUUID(),'binding':_0x158d48,'phase':_0x4c5b01(0x127),'media':_0x1c1cee[_0x4c5b01(0x11b)](_0x614ddc=>({'hash':_0x614ddc[_0x4c5b01(0xfd)],'status':_0x4c5b01(0x11c)}))},await saveImportJson(_0x55bfa0,_0x79500a);}const _0x1d1941=(_0x5f2a84,_0x357ad2)=>{const _0x4aef18=_0x4c5b01;if(!_0x5f2a84||_0x5f2a84['contentHash']!==_0x357ad2[_0x4aef18(0xfd)])throw Error(_0x4aef18(0x14e));if(_0x5f2a84['status']==='missing')return undefined;const _0x2b46b5=imageObjectValue(_0x4e9efc,_0x79500a[_0x4aef18(0xfe)],_0x357ad2);if(_0x5f2a84[_0x4aef18(0x14d)]!==_0x4aef18(0x107)||_0x5f2a84['filePath']!==_0x2b46b5['key']||_0x5f2a84[_0x4aef18(0x101)]!==_0x2b46b5[_0x4aef18(0x121)]||_0x5f2a84['type']!==_0x2b46b5[_0x4aef18(0xf5)]||_0x5f2a84[_0x4aef18(0x123)]!==_0x2b46b5[_0x4aef18(0x123)])throw Error(_0x4aef18(0xea));return _0x2b46b5;};for(let _0x23f413=0x0;_0x23f413<_0x1c1cee[_0x4c5b01(0x134)];_0x23f413++){const _0x55d888=_0x1c1cee[_0x23f413],_0x57e29f=_0x79500a[_0x4c5b01(0x127)][_0x23f413],_0x40577b=imageObjectValue(_0x4e9efc,_0x79500a['importId'],_0x55d888);if(_0x57e29f[_0x4c5b01(0x14d)]===_0x4c5b01(0x107)&&canonical(_0x57e29f[_0x4c5b01(0x14b)])!==canonical(_0x40577b))throw Error(_0x4c5b01(0xf4));let _0x19f0c3;if(_0x589cd9['resume']||_0x57e29f[_0x4c5b01(0x14d)]===_0x4c5b01(0x107))_0x19f0c3=_0x1d1941(await _0x589cd9[_0x4c5b01(0xee)][_0x4c5b01(0xf1)](_0x79500a[_0x4c5b01(0xfe)],_0x55d888),_0x55d888);if(!_0x19f0c3&&_0x57e29f[_0x4c5b01(0x14d)]==='succeeded')throw Error(_0x4c5b01(0x12d));if(!_0x19f0c3){try{_0x1d1941(await _0x589cd9[_0x4c5b01(0xee)]['upload'](_0x79500a[_0x4c5b01(0xfe)],_0x55d888),_0x55d888);}catch(_0x2fba26){_0x19f0c3=_0x1d1941(await _0x589cd9['imageApi'][_0x4c5b01(0xf1)](_0x79500a['importId'],_0x55d888),_0x55d888);if(!_0x19f0c3)throw Error(_0x4c5b01(0x129));}if(!_0x19f0c3)_0x19f0c3=_0x1d1941(await _0x589cd9[_0x4c5b01(0xee)][_0x4c5b01(0xf1)](_0x79500a[_0x4c5b01(0xfe)],_0x55d888),_0x55d888);if(!_0x19f0c3)throw Error(_0x4c5b01(0x126));}_0x57e29f['status']=_0x4c5b01(0x107),_0x57e29f[_0x4c5b01(0x14b)]=_0x19f0c3,await saveImportJson(_0x55bfa0,_0x79500a);}const _0x156e44=bindImageManifest(_0x10a0f2,_0x4e9efc,_0x79500a[_0x4c5b01(0xfe)]),_0xe55ff9=_0x79500a[_0x4c5b01(0x122)]===_0x4c5b01(0x13c)?await exists(_0x54a01e):_0x79500a[_0x4c5b01(0x122)]!==_0x4c5b01(0x127);_0x79500a[_0x4c5b01(0x122)]==='media'&&(_0x79500a[_0x4c5b01(0x122)]=_0x4c5b01(0x13c),await saveImportJson(_0x55bfa0,_0x79500a));const _0x1da6ca={..._0x589cd9,'manifest':_0x156e44,'checkpoint':_0x54a01e,'report':_0x42b988,'resume':_0xe55ff9,'onCheckpointReady':async()=>{const _0x2f1fe1=_0x4c5b01;_0x79500a['phase']=_0x2f1fe1(0xf0),await saveImportJson(_0x55bfa0,_0x79500a);}},_0x32d0d7=_0x4e9efc[_0x4c5b01(0x140)]===0x2?await runAutoIdExcelImport({..._0x1da6ca,'reconcileImageConflicts':_0x589cd9['resume']===!![]&&_0xe55ff9}):await runExcelImport(_0x1da6ca);return _0x79500a[_0x4c5b01(0x122)]=_0x4c5b01(0x13d),await saveImportJson(_0x55bfa0,_0x79500a),{..._0x32d0d7,'checkpoint':_0x55bfa0,'imageCount':_0x10a0f2[_0x4c5b01(0xf7)]?.[_0x4c5b01(0xf6)]((_0x4b2e41,_0x301c60)=>_0x4b2e41+_0x301c60['hashes'][_0x4c5b01(0x134)],0x0)??0x0,'uniqueImages':_0x1c1cee[_0x4c5b01(0x134)]};}finally{await _0x429cda();}}
|
|
1
|
+
(function(_0x3b028f,_0x265c37){const _0x998737=a143_0x3a48,_0x370ad1=_0x3b028f();while(!![]){try{const _0x4abc79=-parseInt(_0x998737(0x1cb))/0x1+-parseInt(_0x998737(0x1b6))/0x2+-parseInt(_0x998737(0x1ba))/0x3+parseInt(_0x998737(0x1fc))/0x4+parseInt(_0x998737(0x1f0))/0x5+-parseInt(_0x998737(0x1cf))/0x6*(-parseInt(_0x998737(0x1ec))/0x7)+parseInt(_0x998737(0x1fb))/0x8;if(_0x4abc79===_0x265c37)break;else _0x370ad1['push'](_0x370ad1['shift']());}catch(_0x265f84){_0x370ad1['push'](_0x370ad1['shift']());}}}(a143_0x75a2,0x776fe));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a143_0x75a2(){const _0x52cd1a=['1757946VfkTas','all','strategy','some','length','parse','values','imageCells','digest','contentHash','maxPixels','report','test','field','Image\x20cell\x20references\x20missing\x20media.','importId','update','33269cQQvmt','rows','schemaVersion','size','9420KLGVFx','media','actorId','fileName','Completed\x20image\x20checkpoint\x20value\x20changed.','gif','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','upload','contract','batchSize','version','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','utf8','hashes','imageFields','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','map','succeeded','rowNumber','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','bytes','key','binding','pending','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','schemaFingerprint','png','imageImport','rows-preparing','588PFltfp','runtimeDomain','image/png','resume','4300255MnGGiD','datasetCode','errors','mappingHash','image/jpeg','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','includes','types','Invalid\x20image\x20media\x20descriptor.','uploadFields','rows-started','2055624HbsyeY','926620kguqjb','Invalid\x20image\x20manifest\x20limits.','isArray','type','checkpoint','code','maxFileBytes','Invalid\x20import\x20batch\x20size.','completed','Invalid\x20image\x20readback\x20digest.','schemaHash','jpg','every','get','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','appCode','name','readback','sheet','image/gif','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','reduce','imageApi','.lock','ENOENT','phase','parserVersion','value','maxBatchBytes','stringify','filePath','sha256','manifest','hash','maxBatchSize','.lock.recovery','entries','744148wFTxxt','isSafeInteger','status','hex'];a143_0x75a2=function(){return _0x52cd1a;};return a143_0x75a2();}import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';function a143_0x3a48(_0x556f06,_0xf0eb2){_0x556f06=_0x556f06-0x1a0;const _0x75a20e=a143_0x75a2();let _0x3a489d=_0x75a20e[_0x556f06];return _0x3a489d;}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x1be937,_0xa03882){const _0x266176=a143_0x3a48;if(!_0xa03882['media']?.[_0x266176(0x1be)])return;const _0xfd6d3c=_0x1be937[_0x266176(0x1ea)];if(!_0xfd6d3c||_0xfd6d3c['version']!==0x1||_0xfd6d3c['uploadId']!==_0x266176(0x1b0)||_0xfd6d3c[_0x266176(0x202)]!==0xa00000||_0xfd6d3c[_0x266176(0x1c4)]!==0x2625a00||!Array[_0x266176(0x1fe)](_0xfd6d3c[_0x266176(0x1f7)])||![_0x266176(0x1ee),_0x266176(0x1f4),_0x266176(0x1a3)][_0x266176(0x208)](_0x16aa83=>_0xfd6d3c[_0x266176(0x1f7)]['includes'](_0x16aa83)))throw Error(_0x266176(0x1e2));}export function imageObjectValue(_0x4a5f54,_0x1b49ea,_0x4d5a4a){const _0x249b3a=a143_0x3a48,_0x2305e7=createHash(_0x249b3a(0x1b0))[_0x249b3a(0x1ca)](JSON[_0x249b3a(0x1ae)]([_0x4a5f54[_0x249b3a(0x1d1)],_0x4a5f54[_0x249b3a(0x20b)],_0x4a5f54[_0x249b3a(0x1f1)],_0x1b49ea]))[_0x249b3a(0x1c2)](_0x249b3a(0x1b9)),_0x4bfcb0={'image/png':_0x249b3a(0x1e9),'image/jpeg':_0x249b3a(0x207),'image/gif':_0x249b3a(0x1d4)}[_0x4d5a4a[_0x249b3a(0x1ff)]];if(!_0x4bfcb0||!/^[0-9a-f]{64}$/[_0x249b3a(0x1c6)](_0x4d5a4a['contentHash'])||!Number[_0x249b3a(0x1b7)](_0x4d5a4a[_0x249b3a(0x1ce)])||_0x4d5a4a['size']<=0x0||_0x4d5a4a[_0x249b3a(0x1ce)]>0xa00000)throw Error(_0x249b3a(0x1f8));const _0x442e37=_0x4d5a4a[_0x249b3a(0x1c3)]+'.'+_0x4bfcb0;return{'key':'dataset-import/'+_0x2305e7+'/'+_0x442e37,'name':_0x442e37,'type':_0x4d5a4a[_0x249b3a(0x1ff)],'size':_0x4d5a4a[_0x249b3a(0x1ce)]};}export function bindImageManifest(_0x3dafd7,_0x14d132,_0x8dccb0){const _0x1c2c92=a143_0x3a48,_0x86e53b=new Map(_0x3dafd7[_0x1c2c92(0x1d0)]?.[_0x1c2c92(0x1df)](_0x56f994=>[_0x56f994[_0x1c2c92(0x1c3)],_0x56f994])),_0x3a92dd=new Map(_0x3dafd7[_0x1c2c92(0x1c1)]?.['map'](_0x34b8c2=>[_0x34b8c2[_0x1c2c92(0x1e1)]+':'+_0x34b8c2[_0x1c2c92(0x1c7)],_0x34b8c2[_0x1c2c92(0x1dc)]]));return{..._0x3dafd7,'rows':_0x3dafd7['rows'][_0x1c2c92(0x1df)](_0x1404d0=>({..._0x1404d0,'values':Object['fromEntries'](Object[_0x1c2c92(0x1b5)](_0x1404d0[_0x1c2c92(0x1c0)])[_0x1c2c92(0x1df)](([_0x31babd,_0xfea31a])=>{const _0x1d24aa=_0x1c2c92,_0x323034=_0x3a92dd[_0x1d24aa(0x209)](_0x1404d0[_0x1d24aa(0x1e1)]+':'+_0x31babd);return[_0x31babd,_0x323034?_0x323034[_0x1d24aa(0x1df)](_0x1088c0=>{const _0x3ee87b=_0x1d24aa,_0x583798=_0x86e53b['get'](_0x1088c0);if(!_0x583798)throw Error(_0x3ee87b(0x1c8));const _0xda85ca=imageObjectValue(_0x14d132,_0x8dccb0,_0x583798);return _0x3dafd7['uploadFields']?.[_0x3ee87b(0x1f6)](_0x31babd)?{'fileName':_0xda85ca[_0x3ee87b(0x1a0)],'filePath':_0xda85ca[_0x3ee87b(0x1e4)]}:_0xda85ca;}):_0xfea31a];}))}))};}async function exists(_0x1acb07){const _0x6ef49c=a143_0x3a48;try{return await lstat(_0x1acb07),!![];}catch(_0x420060){if(_0x420060[_0x6ef49c(0x201)]===_0x6ef49c(0x1a9))return![];throw _0x420060;}}export async function runImageExcelImport(_0x2b3309){const _0x459ca3=a143_0x3a48;assertImportContract(_0x2b3309['contract'],_0x2b3309['appCode'],_0x2b3309['datasetCode']),assertImageImportCapability(_0x2b3309[_0x459ca3(0x1d7)],_0x2b3309[_0x459ca3(0x1b1)]);if(!Number['isInteger'](_0x2b3309[_0x459ca3(0x1d8)])||_0x2b3309[_0x459ca3(0x1d8)]<0x1||_0x2b3309[_0x459ca3(0x1d8)]>_0x2b3309['contract'][_0x459ca3(0x1b3)])throw Error(_0x459ca3(0x203));if(_0x2b3309[_0x459ca3(0x1b1)][_0x459ca3(0x1f2)][_0x459ca3(0x1be)]||!_0x2b3309[_0x459ca3(0x1b1)][_0x459ca3(0x1cc)][_0x459ca3(0x1be)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0xbedb59=await resolveImportOutputPath(_0x2b3309[_0x459ca3(0x200)]),_0x29fa6e=await resolveImportOutputPath(_0x2b3309[_0x459ca3(0x1c5)]),_0x3126bf=await resolveImportOutputPath(_0xbedb59+'.rows.json'),_0x519d41=await Promise[_0x459ca3(0x1bb)]([_0x3126bf,_0x3126bf+'.lock',_0x3126bf+_0x459ca3(0x1b4),..._0x2b3309['inputPaths']??[]][_0x459ca3(0x1df)](resolveImportOutputPath));for(const _0x1cf3da of[_0xbedb59,_0x29fa6e,_0xbedb59+_0x459ca3(0x1a8),_0xbedb59+_0x459ca3(0x1b4)])await resolveImportOutputPath(_0x1cf3da);assertImportPaths(_0xbedb59,_0x29fa6e,_0x519d41);const {contract:_0x121504,manifest:_0xfdbce1}=_0x2b3309,_0x3448b4=_0xfdbce1[_0x459ca3(0x1d0)]??[];if(new Set(_0x3448b4[_0x459ca3(0x1df)](_0x253633=>_0x253633[_0x459ca3(0x1c3)]))[_0x459ca3(0x1ce)]!==_0x3448b4[_0x459ca3(0x1be)]||_0x3448b4[_0x459ca3(0x1a6)]((_0x50d238,_0x1a17e1)=>_0x50d238+_0x1a17e1[_0x459ca3(0x1ce)],0x0)>0x32*0x400*0x400||(_0xfdbce1[_0x459ca3(0x1c1)]??[])['reduce']((_0x814cf4,_0x11f00b)=>_0x814cf4+_0x11f00b[_0x459ca3(0x1dc)]['length'],0x0)>0x2710)throw Error(_0x459ca3(0x1fd));for(const _0xa927a3 of _0x3448b4)if(_0xa927a3[_0x459ca3(0x1ce)]!==_0xa927a3[_0x459ca3(0x1e3)][_0x459ca3(0x1be)]||createHash(_0x459ca3(0x1b0))[_0x459ca3(0x1ca)](_0xa927a3[_0x459ca3(0x1e3)])['digest'](_0x459ca3(0x1b9))!==_0xa927a3[_0x459ca3(0x1c3)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0xfdbce1,_0x121504,'00000000-0000-4000-8000-000000000000'),_0x121504,_0x2b3309[_0x459ca3(0x1d8)]);const _0x2100c5={'appCode':_0x2b3309['appCode'],'datasetCode':_0x2b3309[_0x459ca3(0x1f1)],'runtimeDomain':_0x2b3309[_0x459ca3(0x1ed)],'actorId':_0x121504[_0x459ca3(0x1d1)],'fileHash':_0xfdbce1['fileHash'],'mappingHash':_0xfdbce1[_0x459ca3(0x1f3)],'schemaHash':_0xfdbce1[_0x459ca3(0x206)],'remoteSchemaHash':_0x121504[_0x459ca3(0x1e8)],'strategy':_0x121504[_0x459ca3(0x1bc)],'schemaVersion':_0x121504[_0x459ca3(0x1cd)],'batchSize':_0x2b3309[_0x459ca3(0x1d8)],'maxBatchBytes':_0x121504[_0x459ca3(0x1ad)],'sheet':_0xfdbce1[_0x459ca3(0x1a2)],'parserVersion':_0xfdbce1[_0x459ca3(0x1ab)],'imageFields':_0xfdbce1[_0x459ca3(0x1dd)],'cells':_0xfdbce1[_0x459ca3(0x1c1)],..._0xfdbce1[_0x459ca3(0x1f9)]?.[_0x459ca3(0x1be)]?{'uploadFields':_0xfdbce1[_0x459ca3(0x1f9)]}:{},'media':_0x3448b4[_0x459ca3(0x1df)](({contentHash:_0x41cbfb,type:_0x4ef620,size:_0x39dc39})=>({'contentHash':_0x41cbfb,'type':_0x4ef620,'size':_0x39dc39})),'rows':_0xfdbce1[_0x459ca3(0x1cc)]},_0x5e599b=await acquireLock(_0xbedb59);try{let _0x46ae73;if(_0x2b3309[_0x459ca3(0x1ef)]){try{_0x46ae73=JSON[_0x459ca3(0x1bf)](await readFile(_0xbedb59,_0x459ca3(0x1db)));}catch{throw Error(_0x459ca3(0x1da));}if(_0x46ae73[_0x459ca3(0x1d9)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x46ae73[_0x459ca3(0x1c9)])||canonical(_0x46ae73[_0x459ca3(0x1e5)])!==canonical(_0x2100c5)||!['media',_0x459ca3(0x1eb),_0x459ca3(0x1fa),_0x459ca3(0x204)][_0x459ca3(0x1f6)](_0x46ae73['phase'])||!Array[_0x459ca3(0x1fe)](_0x46ae73[_0x459ca3(0x1d0)])||_0x46ae73[_0x459ca3(0x1d0)][_0x459ca3(0x1be)]!==_0x3448b4[_0x459ca3(0x1be)]||_0x46ae73[_0x459ca3(0x1d0)][_0x459ca3(0x1bd)]((_0x21385d,_0x2e3f44)=>_0x21385d[_0x459ca3(0x1b2)]!==_0x3448b4[_0x2e3f44]['contentHash']||![_0x459ca3(0x1e6),'succeeded'][_0x459ca3(0x1f6)](_0x21385d[_0x459ca3(0x1b8)])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if([_0x459ca3(0x1fa),'completed'][_0x459ca3(0x1f6)](_0x46ae73[_0x459ca3(0x1aa)])&&!await exists(_0x3126bf))throw Error(_0x459ca3(0x1de));if(_0x46ae73['phase']===_0x459ca3(0x1d0)&&await exists(_0x3126bf))throw Error(_0x459ca3(0x1d5));}else{if(await exists(_0xbedb59)||await exists(_0x3126bf))throw Error(_0x459ca3(0x1a4));_0x46ae73={'version':0x3,'importId':randomUUID(),'binding':_0x2100c5,'phase':'media','media':_0x3448b4[_0x459ca3(0x1df)](_0x24e6f7=>({'hash':_0x24e6f7[_0x459ca3(0x1c3)],'status':_0x459ca3(0x1e6)}))},await saveImportJson(_0xbedb59,_0x46ae73);}const _0x71518f=(_0x52523a,_0x48ec9f)=>{const _0x227351=_0x459ca3;if(!_0x52523a||_0x52523a[_0x227351(0x1c3)]!==_0x48ec9f['contentHash'])throw Error(_0x227351(0x205));if(_0x52523a[_0x227351(0x1b8)]==='missing')return undefined;const _0x443b10=imageObjectValue(_0x121504,_0x46ae73['importId'],_0x48ec9f);if(_0x52523a[_0x227351(0x1b8)]!==_0x227351(0x1e0)||_0x52523a[_0x227351(0x1af)]!==_0x443b10[_0x227351(0x1e4)]||_0x52523a[_0x227351(0x1d2)]!==_0x443b10[_0x227351(0x1a0)]||_0x52523a[_0x227351(0x1ff)]!==_0x443b10[_0x227351(0x1ff)]||_0x52523a['size']!==_0x443b10[_0x227351(0x1ce)])throw Error(_0x227351(0x20a));return _0x443b10;};for(let _0x1d98f5=0x0;_0x1d98f5<_0x3448b4['length'];_0x1d98f5++){const _0x35e182=_0x3448b4[_0x1d98f5],_0x24feef=_0x46ae73[_0x459ca3(0x1d0)][_0x1d98f5],_0x35ceee=imageObjectValue(_0x121504,_0x46ae73[_0x459ca3(0x1c9)],_0x35e182);if(_0x24feef[_0x459ca3(0x1b8)]===_0x459ca3(0x1e0)&&canonical(_0x24feef[_0x459ca3(0x1ac)])!==canonical(_0x35ceee))throw Error(_0x459ca3(0x1d3));let _0x2af894;if(_0x2b3309[_0x459ca3(0x1ef)]||_0x24feef[_0x459ca3(0x1b8)]===_0x459ca3(0x1e0))_0x2af894=_0x71518f(await _0x2b3309['imageApi'][_0x459ca3(0x1a1)](_0x46ae73['importId'],_0x35e182),_0x35e182);if(!_0x2af894&&_0x24feef[_0x459ca3(0x1b8)]===_0x459ca3(0x1e0))throw Error(_0x459ca3(0x1f5));if(!_0x2af894){try{_0x71518f(await _0x2b3309[_0x459ca3(0x1a7)][_0x459ca3(0x1d6)](_0x46ae73[_0x459ca3(0x1c9)],_0x35e182),_0x35e182);}catch(_0x280275){_0x2af894=_0x71518f(await _0x2b3309[_0x459ca3(0x1a7)][_0x459ca3(0x1a1)](_0x46ae73[_0x459ca3(0x1c9)],_0x35e182),_0x35e182);if(!_0x2af894)throw Error(_0x459ca3(0x1e7));}if(!_0x2af894)_0x2af894=_0x71518f(await _0x2b3309['imageApi']['readback'](_0x46ae73[_0x459ca3(0x1c9)],_0x35e182),_0x35e182);if(!_0x2af894)throw Error(_0x459ca3(0x1a5));}_0x24feef[_0x459ca3(0x1b8)]=_0x459ca3(0x1e0),_0x24feef['value']=_0x2af894,await saveImportJson(_0xbedb59,_0x46ae73);}const _0x2c9c48=bindImageManifest(_0xfdbce1,_0x121504,_0x46ae73[_0x459ca3(0x1c9)]),_0x33f647=_0x46ae73[_0x459ca3(0x1aa)]===_0x459ca3(0x1eb)?await exists(_0x3126bf):_0x46ae73['phase']!==_0x459ca3(0x1d0);_0x46ae73[_0x459ca3(0x1aa)]===_0x459ca3(0x1d0)&&(_0x46ae73[_0x459ca3(0x1aa)]='rows-preparing',await saveImportJson(_0xbedb59,_0x46ae73));const _0x2bef31={..._0x2b3309,'manifest':_0x2c9c48,'checkpoint':_0x3126bf,'report':_0x29fa6e,'resume':_0x33f647,'onCheckpointReady':async()=>{const _0x5bdc01=_0x459ca3;_0x46ae73[_0x5bdc01(0x1aa)]=_0x5bdc01(0x1fa),await saveImportJson(_0xbedb59,_0x46ae73);}},_0x2bf67e=_0x121504[_0x459ca3(0x1cd)]===0x2?await runAutoIdExcelImport({..._0x2bef31,'reconcileImageConflicts':_0x2b3309[_0x459ca3(0x1ef)]===!![]&&_0x33f647}):await runExcelImport(_0x2bef31);return _0x46ae73['phase']='completed',await saveImportJson(_0xbedb59,_0x46ae73),{..._0x2bf67e,'checkpoint':_0xbedb59,'imageCount':_0xfdbce1['imageCells']?.['reduce']((_0x5e1b0d,_0x374433)=>_0x5e1b0d+_0x374433[_0x459ca3(0x1dc)][_0x459ca3(0x1be)],0x0)??0x0,'uniqueImages':_0x3448b4[_0x459ca3(0x1be)]};}finally{await _0x5e599b();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x97d1c4,_0xa83ec0){const _0x3755ee=a144_0x9557,_0x579c00=_0x97d1c4();while(!![]){try{const _0x353d7e=parseInt(_0x3755ee(0x199))/0x1+-parseInt(_0x3755ee(0x18b))/0x2+parseInt(_0x3755ee(0x195))/0x3*(parseInt(_0x3755ee(0x19b))/0x4)+parseInt(_0x3755ee(0x18f))/0x5+parseInt(_0x3755ee(0x18d))/0x6*(parseInt(_0x3755ee(0x190))/0x7)+parseInt(_0x3755ee(0x19e))/0x8*(parseInt(_0x3755ee(0x19c))/0x9)+-parseInt(_0x3755ee(0x189))/0xa*(parseInt(_0x3755ee(0x18e))/0xb);if(_0x353d7e===_0xa83ec0)break;else _0x579c00['push'](_0x579c00['shift']());}catch(_0x42968d){_0x579c00['push'](_0x579c00['shift']());}}}(a144_0x1aa7,0xd3323));function a144_0x9557(_0x4c9ba2,_0xcceb7c){_0x4c9ba2=_0x4c9ba2-0x188;const _0x1aa7cd=a144_0x1aa7();let _0x955709=_0x1aa7cd[_0x4c9ba2];return _0x955709;}export function assertDatasetImportTarget(_0x148240,_0x1360a4,_0x205c68){const _0x2474fa=a144_0x9557;if(!_0x148240||typeof _0x148240!==_0x2474fa(0x18c)||Array['isArray'](_0x148240))throw Error(_0x2474fa(0x19d));const _0x4b30cc=[_0x148240[_0x2474fa(0x19f)],_0x148240[_0x2474fa(0x1a0)],_0x148240['dataset']?.[_0x2474fa(0x191)]][_0x2474fa(0x198)](_0x480763=>_0x480763!=null);if(!_0x4b30cc[_0x2474fa(0x188)]||_0x4b30cc[_0x2474fa(0x196)](_0x4b4902=>_0x4b4902!==_0x205c68)||_0x148240[_0x2474fa(0x192)]!=null&&_0x148240['appCode']!==_0x1360a4||_0x148240[_0x2474fa(0x194)]?.[_0x2474fa(0x192)]!=null&&_0x148240[_0x2474fa(0x194)][_0x2474fa(0x192)]!==_0x1360a4)throw Error(_0x2474fa(0x18a));const _0x50c94f=[_0x148240['source'],_0x148240[_0x2474fa(0x194)]?.[_0x2474fa(0x193)]][_0x2474fa(0x198)](_0x579cd0=>_0x579cd0!=null);if(_0x50c94f[_0x2474fa(0x196)](_0x26d84c=>typeof _0x26d84c!==_0x2474fa(0x19a)||_0x26d84c!==_0x50c94f[0x0]))throw Error(_0x2474fa(0x197));return _0x50c94f[0x0];}function a144_0x1aa7(){const _0xe33ef=['8nKpRuv','108rHgvRt','Dataset\x20metadata\x20is\x20missing.','1139320PNCbJo','code','modelCode','length','1370SNUwHT','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','952064qKVKSk','object','184458pgqyoW','272525BeaNHT','3855630rtLQcp','154jtgHCd','datasetCode','appCode','sourceType','dataset','123219dyxZbP','some','Dataset\x20source\x20metadata\x20is\x20inconsistent.','filter','1496668ctAwAU','string'];a144_0x1aa7=function(){return _0xe33ef;};return a144_0x1aa7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a145_0x4d76(_0x32600d,_0x1901e6){_0x32600d=_0x32600d-0x138;const _0x138ce6=a145_0x138c();let _0x4d766a=_0x138ce6[_0x32600d];return _0x4d766a;}(function(_0x4d1a51,_0x13e05d){const _0x466be3=a145_0x4d76,_0xc40dd0=_0x4d1a51();while(!![]){try{const _0x4d9c10=parseInt(_0x466be3(0x14b))/0x1+parseInt(_0x466be3(0x146))/0x2+-parseInt(_0x466be3(0x145))/0x3*(-parseInt(_0x466be3(0x147))/0x4)+-parseInt(_0x466be3(0x14a))/0x5*(parseInt(_0x466be3(0x13c))/0x6)+parseInt(_0x466be3(0x13f))/0x7+parseInt(_0x466be3(0x13e))/0x8+-parseInt(_0x466be3(0x13b))/0x9;if(_0x4d9c10===_0x13e05d)break;else _0xc40dd0['push'](_0xc40dd0['shift']());}catch(_0x12a436){_0xc40dd0['push'](_0xc40dd0['shift']());}}}(a145_0x138c,0xcbd4d));function a145_0x138c(){const _0x3f7612=['Excel\x20row\x20','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','rows','byteLength','schemaVersion','6081ibhEWs','2650482IPGNMY','3244vwhEcJ','rowNumber','values','380KgjEap','1159573qpSZXQ','stringify','map','schemaFingerprint','length','maxBatchBytes','31308597FtXkXf','68664Imemnr','utf8','242528FvzWWU','7170401RHVTdn'];a145_0x138c=function(){return _0x3f7612;};return a145_0x138c();}export function previewImportBatchCount(_0x592708,_0x282507,_0x699428){const _0x23e3e8=a145_0x4d76,_0x1608dc=_0x11e367=>_0x11e367[_0x23e3e8(0x14d)](_0x10ef5e=>_0x282507[_0x23e3e8(0x144)]===0x1?{..._0x592708['rows'][_0x10ef5e]['values'],'id':-0x1fffffffffffff}:_0x592708[_0x23e3e8(0x142)][_0x10ef5e][_0x23e3e8(0x149)]),_0x36995c=_0x250bf4=>Buffer[_0x23e3e8(0x143)](JSON[_0x23e3e8(0x14c)]({'schemaFingerprint':_0x282507[_0x23e3e8(0x138)],..._0x282507[_0x23e3e8(0x144)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x1608dc(_0x250bf4)}),_0x23e3e8(0x13d));let _0x3a1c1b=0x0,_0x295e25=[];for(let _0x4fc9b8=0x0;_0x4fc9b8<_0x592708[_0x23e3e8(0x142)][_0x23e3e8(0x139)];_0x4fc9b8++){if(_0x36995c([_0x4fc9b8])>_0x282507[_0x23e3e8(0x13a)])throw Error(_0x23e3e8(0x140)+_0x592708[_0x23e3e8(0x142)][_0x4fc9b8][_0x23e3e8(0x148)]+_0x23e3e8(0x141));_0x295e25[_0x23e3e8(0x139)]&&(_0x295e25[_0x23e3e8(0x139)]===_0x699428||_0x36995c([..._0x295e25,_0x4fc9b8])>_0x282507['maxBatchBytes'])&&(_0x3a1c1b++,_0x295e25=[]),_0x295e25['push'](_0x4fc9b8);}return _0x3a1c1b+Number(_0x295e25[_0x23e3e8(0x139)]>0x0);}
|