@lovrabet/lovrabet-cli 2.3.10-beta.3 → 2.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a144_0xfeba39=a144_0x4a06;(function(_0x104bdb,_0x3f7fb2){const _0x3c5cc7=a144_0x4a06,_0x4506e4=_0x104bdb();while(!![]){try{const _0x5a14f4=-parseInt(_0x3c5cc7(0x1bb))/0x1*(parseInt(_0x3c5cc7(0x188))/0x2)+-parseInt(_0x3c5cc7(0x1e5))/0x3+-parseInt(_0x3c5cc7(0x21c))/0x4*(-parseInt(_0x3c5cc7(0x1b3))/0x5)+-parseInt(_0x3c5cc7(0x1ba))/0x6*(parseInt(_0x3c5cc7(0x200))/0x7)+parseInt(_0x3c5cc7(0x222))/0x8*(parseInt(_0x3c5cc7(0x197))/0x9)+parseInt(_0x3c5cc7(0x206))/0xa+-parseInt(_0x3c5cc7(0x249))/0xb*(-parseInt(_0x3c5cc7(0x22c))/0xc);if(_0x5a14f4===_0x3f7fb2)break;else _0x4506e4['push'](_0x4506e4['shift']());}catch(_0x1ab76d){_0x4506e4['push'](_0x4506e4['shift']());}}}(a144_0x1cae,0x38b52));import{readFile,stat}from'node:fs/promises';function a144_0x1cae(){const _0x89d2f2=['mapping','pop','filter','Worksheet\x20column\x20objects\x20exceed\x20100000.','XML\x20DTD/entities\x20are\x20not\x20supported.','Invalid\x20worksheet\x20nested\x20row.','parseInt','load','Invalid\x20dataset\x20field\x20extension\x20metadata.','test','Duplicate\x20header:\x20','repeat','definedName','properties','9018Jesjzl','Duplicate\x20dataset\x20field\x20codes.','find','extraFieldsLength','isFinite','Expected\x20an\x20Excel\x20date\x20cell.','date','concat','\x20columns.','fileNameStr','image','col','datetime','sharedFormula','hyperlink','isArray','fromBuffer','Dataset\x20field\x20metadata\x20is\x20missing.','headerRow','ranges','compressedSize','parseText','destroy','Invalid\x20worksheet\x20XML:\x20','add','every','appCode','updateTime','5165alKCmK','name','uploadFields','Invalid\x20worksheet\x20merge\x20reference.','Duplicate\x20workbook\x20ZIP\x20entry.','utf8','object','1002olOmLQ','8klkmZt','clear','exceljs/lib/utils/col-cache.js','file','parse','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','fileNameRaw','imageCells','model','right','readBigUInt64LE','Expected\x20a\x20boolean\x20cell.','sheet','lastIndexOf','emptyRows','data','dataType','deleted','address','slice','autoIncrement','modifierName','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','datasetId','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','message','MAX_SAFE_INTEGER','eachCell','./zipEntry','getRow','serial_number','sha256','ref','readEntryCursor','stringify','Invalid\x20worksheet\x20column\x20range.','byteLength','abs','Required\x20value\x20is\x20missing.','resolve','extname','opentag','945894xaDIpW','Invalid\x20worksheet\x20XML.','Worksheet\x20coordinate\x20exceeds\x20','readEntry','creatorName','dataset','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','startsWith','Invalid\x20worksheet\x20hyperlink\x20reference.','localeCompare','text','exceljs/lib/xlsx/xform/book/defined-name-xform.js','Worksheet\x20exceeds\x20','update','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','rows','jszip','Invalid\x20XLSX\x20archive.','extend','string','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','required','File\x20is\x20not\x20an\x20XLSX\x20workbook.','doctype','original','18529BXZjhX','entryCount','sort','materialized','extraFields','.xlsx','2437580OSnQbw','map','Unknown\x20or\x20generated\x20mapping\x20field:\x20','set','parseClose','parseOpen','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','bitFlag','getTime','contentHash','integer','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','create','[Content_Types].xml','max','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','generalPurposeBitFlag','some','worksheets','exec','isInteger','reference','1204rLIJOw','modifierId','Invalid\x20XLSX\x20entry.','imageFields','createTime','number','464EjmwdN','_xlnm.Print_Area','processAttributes','length','left','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','Formula\x20has\x20no\x20cached\x20result.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','sourceType','type','42204WyLnwW','push','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Non-canonical\x20worksheet\x20ZIP\x20entry.','Unknown\x20Excel\x20header:\x20','value','from','size','has','generated','Image\x20XML\x20node\x20budget\x20exceeded.','fileName','Invalid\x20defined\x20name\x20coordinate.','split','textarea','top','upload','closetag','batchSize','Merged\x20cells\x20are\x20not\x20supported.','fileCommentRaw','code','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','versionMadeBy','unixPermissions','Workbook','write','close','dir','2178oKsfIv','Required\x20field\x20is\x20not\x20mapped:\x20','readUInt16LE','dataset-import/','row','Invalid\x20ZIP\x20central\x20directory\x20layout.','xlsx','equals','Worksheet\x20exceeds\x2016384\x20columns.','Duplicate\x20mapping\x20target:\x20','result','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','relativeOffsetOfLocalHeader','externalFileAttributes','xl/workbook.xml','decodeEx','end','includes','extraFieldRaw','handleUTF8','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','entry','Image\x20XML\x20event\x20budget\x20exceeded.','error','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','readUInt32LE','decimal','hex','formula','fields','bottom','Unsupported\x20field\x20type:\x20','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','XLSX\x20file\x20exceeds\x2020\x20MB.','Required\x20image\x20value\x20is\x20missing.','_xlnm.Print_Titles','get','media','attributes','toLowerCase','isSafeInteger','Only\x20.xlsx\x20files\x20are\x20supported.','mergeCell','nativeCell','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','directory','min','warnings','exceljs','Worksheet\x20merge\x20work\x20exceeds\x20100000.','errors','merges','./utils','rowCount','Invalid\x20worksheet\x20nested\x20cell.','cells','Requested\x20worksheet\x20does\x20not\x20exist.','isBuffer','Invalid\x20worksheet\x20coordinate.','79888JDvFfs'];a144_0x1cae=function(){return _0x89d2f2;};return a144_0x1cae();}import{createHash}from'node:crypto';import a144_0x352360 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x472d1a from'exceljs';import a144_0x9761c7 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','tenantCode',a144_0xfeba39(0x1b1),a144_0xfeba39(0x1d2),'creatorId',a144_0xfeba39(0x1e9),a144_0xfeba39(0x21d),a144_0xfeba39(0x1d0),a144_0xfeba39(0x220),a144_0xfeba39(0x1b2),a144_0xfeba39(0x1cc)]),TYPES=new Set([a144_0xfeba39(0x1f9),'text',a144_0xfeba39(0x23a),a144_0xfeba39(0x221),a144_0xfeba39(0x167),'integer','boolean',a144_0xfeba39(0x19d),a144_0xfeba39(0x1a3),'image',a144_0xfeba39(0x23c)]),isImageContainer=_0x43cf5c=>[a144_0xfeba39(0x1a1),'upload'][a144_0xfeba39(0x25a)](_0x43cf5c[a144_0xfeba39(0x174)]()),hash=_0x337af2=>createHash(a144_0xfeba39(0x1da))[a144_0xfeba39(0x1f3)](_0x337af2)['digest'](a144_0xfeba39(0x168)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0xfeba39(0x1f1)),nameCoordinates=require(a144_0xfeba39(0x1bd)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve'](a144_0xfeba39(0x17d))),zipRequire=createRequire(excelRequire['resolve'](a144_0xfeba39(0x1f6))),ZipEntry=zipRequire(a144_0xfeba39(0x1d7)),zipReader=zipRequire('./reader/readerFor'),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a144_0xfeba39(0x181));function centralDirectoryEnd(_0x32630f,_0x19b3a0){const _0x10b749=a144_0xfeba39,_0x5bfed9=()=>new Error(_0x10b749(0x24e)),_0x56dc2e=_0x32630f[_0x10b749(0x1c8)](Buffer[_0x10b749(0x232)]([0x50,0x4b,0x5,0x6]));if(_0x56dc2e<0x0||_0x56dc2e+0x16>_0x32630f['length']||_0x56dc2e+0x16+_0x32630f[_0x10b749(0x24b)](_0x56dc2e+0x14)!==_0x32630f[_0x10b749(0x225)])throw _0x5bfed9();let _0x42eb9c=_0x32630f['readUInt16LE'](_0x56dc2e+0xa),_0x1775e5=_0x32630f['readUInt32LE'](_0x56dc2e+0xc),_0x280120=_0x32630f[_0x10b749(0x166)](_0x56dc2e+0x10),_0x1cd188=_0x56dc2e;const _0x1069ab=_0x56dc2e-0x14,_0x545be3=_0x1069ab>=0x0&&_0x32630f[_0x10b749(0x166)](_0x1069ab)===0x7064b50,_0x482956=[0x4,0x6,0x8,0xa]['some'](_0x596d4a=>_0x32630f[_0x10b749(0x24b)](_0x56dc2e+_0x596d4a)===0xffff)||_0x1775e5===0xffffffff||_0x280120===0xffffffff;if(_0x545be3!==_0x482956)throw _0x5bfed9();if(_0x545be3){if(_0x32630f['lastIndexOf'](Buffer[_0x10b749(0x232)]([0x50,0x4b,0x6,0x7]))!==_0x1069ab)throw _0x5bfed9();const _0x232776=_0x103766=>{const _0x1567da=_0x10b749,_0x1ff560=Number(_0x32630f[_0x1567da(0x1c5)](_0x103766));if(!Number['isSafeInteger'](_0x1ff560))throw _0x5bfed9();return _0x1ff560;};_0x1cd188=_0x232776(_0x1069ab+0x8);if(_0x32630f[_0x10b749(0x166)](_0x1069ab+0x4)!==0x0||_0x32630f['readUInt32LE'](_0x1069ab+0x10)!==0x1||_0x1cd188>_0x1069ab-0x38||_0x32630f[_0x10b749(0x166)](_0x1cd188)!==0x6064b50||_0x232776(_0x1cd188+0x4)!==0x2c||_0x1cd188+0x38!==_0x1069ab||_0x32630f['readUInt32LE'](_0x1cd188+0x10)!==0x0||_0x32630f[_0x10b749(0x166)](_0x1cd188+0x14)!==0x0)throw _0x5bfed9();_0x42eb9c=_0x232776(_0x1cd188+0x20),_0x1775e5=_0x232776(_0x1cd188+0x28),_0x280120=_0x232776(_0x1cd188+0x30);if(_0x232776(_0x1cd188+0x18)!==_0x42eb9c)throw _0x5bfed9();}else{if(_0x32630f['readUInt16LE'](_0x56dc2e+0x4)!==0x0||_0x32630f[_0x10b749(0x24b)](_0x56dc2e+0x6)!==0x0||_0x32630f[_0x10b749(0x24b)](_0x56dc2e+0x8)!==_0x42eb9c)throw _0x5bfed9();}const _0x418440=_0x19b3a0[_0x10b749(0x1dc)];if(_0x280120!==_0x418440||_0x42eb9c!==_0x19b3a0[_0x10b749(0x201)]||_0x280120+_0x1775e5!==_0x1cd188)throw _0x5bfed9();return _0x1cd188;}function consumerEntryName(_0x134dd3,_0x190735){const _0x3e601f=a144_0xfeba39;if(_0x190735[_0x3e601f(0x204)][_0x3e601f(0x18b)](_0x4528c7=>_0x4528c7['id']===0x1)['length']>0x1)throw new Error(_0x3e601f(0x1ec));const _0x5310fb=_0x190735,_0x595b25=_0x190735[_0x3e601f(0x255)];if(!Buffer[_0x3e601f(0x186)](_0x5310fb['fileNameRaw'])||!Buffer[_0x3e601f(0x186)](_0x5310fb[_0x3e601f(0x25b)])||!Buffer[_0x3e601f(0x186)](_0x5310fb[_0x3e601f(0x240)])||!Number[_0x3e601f(0x175)](_0x595b25)||_0x595b25<0x0||_0x595b25>_0x134dd3[_0x3e601f(0x225)]-0x1e||_0x134dd3[_0x3e601f(0x166)](_0x595b25)!==0x4034b50)throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');const _0x3a16e2=_0x595b25+0x1e+_0x134dd3[_0x3e601f(0x24b)](_0x595b25+0x1a),_0x28f2af=_0x3a16e2+_0x134dd3[_0x3e601f(0x24b)](_0x595b25+0x1c)+_0x190735[_0x3e601f(0x1ab)];if(!Number[_0x3e601f(0x175)](_0x28f2af)||_0x28f2af>_0x134dd3[_0x3e601f(0x225)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x3a16e2>_0x134dd3[_0x3e601f(0x225)]||!_0x134dd3['subarray'](_0x595b25+0x1e,_0x3a16e2)[_0x3e601f(0x250)](_0x5310fb[_0x3e601f(0x1c1)]))throw new Error(_0x3e601f(0x179));const _0x4e0025=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x4e0025[_0x3e601f(0x20d)]=_0x190735[_0x3e601f(0x216)],_0x4e0025[_0x3e601f(0x237)]=_0x5310fb['fileNameRaw'],_0x4e0025['fileComment']=_0x5310fb['fileCommentRaw'],_0x4e0025[_0x3e601f(0x19a)]=_0x5310fb[_0x3e601f(0x25b)][_0x3e601f(0x225)],_0x4e0025['readExtraFields'](zipReader(_0x5310fb[_0x3e601f(0x25b)])),_0x4e0025[_0x3e601f(0x25c)](),_0x4e0025[_0x3e601f(0x243)]=_0x190735[_0x3e601f(0x243)],_0x4e0025[_0x3e601f(0x256)]=_0x190735[_0x3e601f(0x256)],_0x4e0025[_0x3e601f(0x224)]();const _0x2177b9=_0x4e0025[_0x3e601f(0x248)]||Boolean((_0x4e0025[_0x3e601f(0x244)]??0x0)&0x4000),_0x8d2acb=zipPaths[_0x3e601f(0x1e2)](_0x4e0025[_0x3e601f(0x1a0)]),_0x380c10=_0x8d2acb[_0x3e601f(0x1ed)]('/')?_0x8d2acb[_0x3e601f(0x1ce)](0x1):_0x8d2acb;return{'name':_0x380c10,'original':_0x4e0025['fileNameStr'],'directory':_0x2177b9};}export function normalizeImportFields(_0x238bd6){const _0x3c6e49=a144_0xfeba39;if(!_0x238bd6||(_0x238bd6['source']??_0x238bd6[_0x3c6e49(0x1ea)]?.[_0x3c6e49(0x22a)])!=='METADATA')throw new Error(_0x3c6e49(0x229));const _0x3b601c=Array[_0x3c6e49(0x1a6)](_0x238bd6[_0x3c6e49(0x16a)]),_0x17bdd3=_0x3b601c?_0x238bd6[_0x3c6e49(0x16a)]:_0x238bd6[_0x3c6e49(0x196)];if(!Array[_0x3c6e49(0x1a6)](_0x17bdd3)||_0x17bdd3[_0x3c6e49(0x225)]===0x0)throw new Error(_0x3c6e49(0x1a8));const _0x3d2990=[],_0x4f7fc6=new Set();for(const _0x49eb14 of _0x17bdd3){if(_0x49eb14['deleted']===!![])continue;let _0x36299e=_0x49eb14[_0x3c6e49(0x1f8)]??{};if(!_0x3b601c&&typeof _0x36299e===_0x3c6e49(0x1f9)){try{_0x36299e=JSON[_0x3c6e49(0x1bf)](_0x36299e);}catch{throw new Error(_0x3c6e49(0x191));}if(!_0x36299e||typeof _0x36299e!==_0x3c6e49(0x1b9)||Array[_0x3c6e49(0x1a6)](_0x36299e))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x3a1fdb=_0x3b601c?_0x49eb14[_0x3c6e49(0x1b4)]:_0x49eb14[_0x3c6e49(0x241)],_0x1065bb=_0x3b601c?_0x49eb14['doType']:_0x49eb14[_0x3c6e49(0x22b)]??_0x49eb14[_0x3c6e49(0x1cb)];if(typeof _0x3a1fdb!=='string'||!_0x3a1fdb||typeof _0x1065bb!==_0x3c6e49(0x1f9)||_0x4f7fc6[_0x3c6e49(0x234)](_0x3a1fdb))throw new Error(_0x3c6e49(0x20c));if(_0x1065bb[_0x3c6e49(0x174)]()===_0x3c6e49(0x1d9))throw new Error(_0x3c6e49(0x161));_0x4f7fc6[_0x3c6e49(0x1af)](_0x3a1fdb);const _0x317e5c=_0x3b601c?_0x49eb14:_0x36299e,_0x46294b={'code':_0x3a1fdb,'type':_0x1065bb,'required':_0x317e5c['required']===!![]};if(RESERVED[_0x3c6e49(0x234)](_0x3a1fdb)||_0x317e5c[_0x3c6e49(0x235)]===!![]||_0x317e5c[_0x3c6e49(0x1cf)]===!![])_0x46294b[_0x3c6e49(0x235)]=!![];_0x3d2990[_0x3c6e49(0x22d)](_0x46294b);}return _0x3d2990;}async function checkArchive(_0x59dcfb,_0x2e4d5a){await new Promise((_0x5b3df0,_0x4e4af7)=>{const _0x994554=a144_0x4a06;a144_0x9761c7[_0x994554(0x1a7)](_0x59dcfb,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x590834,_0x9520)=>{const _0x48b0fc=_0x994554;if(_0x590834||!_0x9520){_0x4e4af7(_0x590834??new Error(_0x48b0fc(0x1f7)));return;}let _0x485242;try{_0x485242=centralDirectoryEnd(_0x59dcfb,_0x9520);}catch(_0x524673){_0x9520[_0x48b0fc(0x247)](),_0x4e4af7(_0x524673);return;}let _0x182c18=0x0,_0x41009d=0x0,_0x29aced=0x0,_0x12ee47=0x0,_0x5524eb=0x0,_0x3dfa72=0x0,_0x38a847=0x0,_0x3cc3e0=0x0,_0x320a14=0x0,_0x184a2e=![],_0x24c7e0;const _0x223f5b=new Set(),_0x4fabd1=_0x37c49b=>{const _0x523902=_0x48b0fc;if(_0x184a2e)return;_0x184a2e=!![],_0x24c7e0?.['destroy'](),_0x9520[_0x523902(0x247)](),_0x4e4af7(_0x37c49b);},_0x40efea=(_0x602f44,_0x55459e)=>{const _0x1d1657=_0x48b0fc;if(!_0x602f44||!/^\d+$/['test'](_0x602f44))throw new Error(_0x1d1657(0x187));const _0x206ceb=Number(_0x602f44);if(!Number[_0x1d1657(0x175)](_0x206ceb)||_0x206ceb<0x1||_0x206ceb>_0x55459e)throw new Error(_0x1d1657(0x1e7)+_0x55459e+'.');return _0x206ceb;},_0x43edd1=(_0x14169d,_0x1336c5=MAX_XML_COLUMNS)=>{const _0x37e287=_0x48b0fc,_0x2add91=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x37e287(0x219)](_0x14169d);if(!_0x2add91)throw new Error(_0x37e287(0x1d3));let _0x148c85=0x0;for(const _0x2a7ed7 of _0x2add91[0x1])_0x148c85=_0x148c85*0x1a+_0x2a7ed7['charCodeAt'](0x0)-0x40;if(_0x148c85>_0x1336c5)throw new Error(_0x37e287(0x1f2)+_0x1336c5+_0x37e287(0x19f));return{'row':_0x40efea(_0x2add91[0x2],MAX_XML_ROWS),'col':_0x148c85};},_0x3d8a8e=_0x1567cd=>{const _0x5009dc=_0x48b0fc;if(_0x1567cd['name']===_0x5009dc(0x223)||_0x1567cd[_0x5009dc(0x1b4)]===_0x5009dc(0x170))return;for(const _0x2363f9 of _0x1567cd[_0x5009dc(0x1aa)]){if(!ABSOLUTE_NAME_RANGE[_0x5009dc(0x192)](_0x2363f9[_0x5009dc(0x239)]('!')[_0x5009dc(0x18a)]()||''))continue;const _0x4fd891=nameCoordinates[_0x5009dc(0x258)](_0x2363f9),_0x2799f0=_0x5009dc(0x23b)in _0x4fd891,_0x180b15=_0x2799f0?[_0x4fd891[_0x5009dc(0x23b)],_0x4fd891[_0x5009dc(0x16b)]]:[_0x4fd891['row']],_0x190183=_0x2799f0?[_0x4fd891['left'],_0x4fd891[_0x5009dc(0x1c4)]]:[_0x4fd891[_0x5009dc(0x1a2)]],_0x50bcad=(_0x23caf4,_0x59bfd1)=>Number[_0x5009dc(0x175)](_0x23caf4)&&_0x23caf4>=0x1&&_0x23caf4<=_0x59bfd1;if(!_0x180b15[_0x5009dc(0x1b0)](_0x143c14=>_0x50bcad(_0x143c14,MAX_XML_ROWS))||!_0x190183[_0x5009dc(0x1b0)](_0x16061a=>_0x50bcad(_0x16061a,MAX_XML_COLUMNS)))throw new Error(_0x5009dc(0x238));_0x38a847+=_0x2799f0?(_0x4fd891[_0x5009dc(0x16b)]-_0x4fd891[_0x5009dc(0x23b)]+0x1)*(_0x4fd891[_0x5009dc(0x1c4)]-_0x4fd891[_0x5009dc(0x226)]+0x1):0x1;if(_0x38a847>MAX_ROWS)throw new Error(_0x5009dc(0x1eb));}};_0x9520['on']('error',_0x4fabd1),_0x9520['on'](_0x48b0fc(0x162),_0xb4dd84=>{const _0xbedfb7=_0x48b0fc;if(_0x184a2e)return;if(++_0x29aced>0x2710||(_0x182c18+=_0xb4dd84['uncompressedSize'])>MAX_EXPANDED){_0x4fabd1(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x31fe80;try{_0x31fe80=consumerEntryName(_0x59dcfb,_0xb4dd84);}catch(_0x29d35a){_0x4fabd1(_0x29d35a);return;}if(_0x31fe80[_0xbedfb7(0x17a)]){_0x9520['readEntry']();return;}const _0x3f5ffb=_0x31fe80['name'];if(_0x2e4d5a&&(_0x3f5ffb!==_0x31fe80['original']||_0x223f5b['has'](_0x3f5ffb)||_0x3f5ffb[_0xbedfb7(0x1ed)]('/')||_0x3f5ffb[_0xbedfb7(0x25a)]('\x5c'))){_0x4fabd1(new Error(_0xbedfb7(0x1f4)));return;}if(_0x3f5ffb!==_0x31fe80[_0xbedfb7(0x1ff)]&&(_0x3f5ffb===_0xbedfb7(0x257)||/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x3f5ffb))){_0x4fabd1(new Error(_0xbedfb7(0x1d1)));return;}const _0x450364=_0x3f5ffb===_0xbedfb7(0x257);if(_0x450364&&_0x223f5b[_0xbedfb7(0x234)](_0x3f5ffb)){_0x4fabd1(new Error(_0xbedfb7(0x1b7)));return;}_0x223f5b[_0xbedfb7(0x1af)](_0x3f5ffb);const _0x2c7984=/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x3f5ffb);if(_0x2c7984&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0xbedfb7(0x192)](_0x3f5ffb)){_0x4fabd1(new Error(_0xbedfb7(0x22f)));return;}_0x9520['openReadStream'](_0xb4dd84,(_0x390139,_0x312854)=>{const _0x414e93=_0xbedfb7;if(_0x184a2e){_0x312854?.[_0x414e93(0x1ad)]();return;}if(_0x390139||!_0x312854){_0x4fabd1(_0x390139??new Error(_0x414e93(0x21e)));return;}_0x24c7e0=_0x312854;const _0x4914e0=_0x2e4d5a?[]:undefined,_0x52552c=_0x2e4d5a&&/[.](xml|rels)$/[_0x414e93(0x192)](_0x3f5ffb)?new StringDecoder(_0x414e93(0x1b8)):undefined,_0x5954ae=_0x52552c?new SaxesParser({'xmlns':![]}):undefined,_0x375377=()=>{const _0x2d56c1=_0x414e93;if(++_0x320a14>0x1e8480)throw Error(_0x2d56c1(0x163));};_0x5954ae?.['on'](_0x414e93(0x1fe),()=>{const _0x14b1d5=_0x414e93;throw Error(_0x14b1d5(0x18d));}),_0x5954ae?.['on'](_0x414e93(0x1e4),()=>{const _0x39894c=_0x414e93;_0x375377();if(++_0x3cc3e0>0x7a120)throw Error(_0x39894c(0x236));}),_0x5954ae?.['on']('text',_0x375377),_0x5954ae?.['on'](_0x414e93(0x23d),_0x375377),_0x5954ae?.['on'](_0x414e93(0x164),_0x9b1f6=>{throw _0x9b1f6;});const _0x39c3d8=_0x2c7984||_0x450364?new StringDecoder(_0x414e93(0x1b8)):undefined,_0x595b62=_0x2c7984||_0x450364?new SaxesParser({'xmlns':![]}):undefined;let _0x1e461c,_0x513a4b=0x0,_0xdc19d6=0x0,_0x415e77,_0xb18e32,_0x57c27f=![],_0x3cb84b=![],_0x3b4a12,_0x5724be,_0x574ec3,_0x2f3408=![];const _0x123845=[],_0x51c6ae=new Set();let _0x3104fb;const _0x225a80=(_0x286733,_0x552fd0=0x0)=>{const _0x1138d5=_0x414e93;_0x5524eb+=_0x552fd0+Math[_0x1138d5(0x214)](0x0,_0x286733-_0xdc19d6),_0xdc19d6=Math[_0x1138d5(0x214)](_0xdc19d6,_0x286733);if(_0x5524eb>MAX_ROWS)throw new Error(_0x1138d5(0x18c));};_0x595b62?.['on'](_0x414e93(0x1e4),_0x4d5004=>{const _0x90f00e=_0x414e93;if(_0x450364){if(!_0x1e461c&&_0x4d5004['name']===_0x90f00e(0x195))_0x1e461c=new DefinedNameXform();_0x1e461c?.[_0x90f00e(0x20b)](_0x4d5004);return;}if(_0x4d5004['name']===_0x90f00e(0x24d)){if(_0x3cb84b)throw new Error(_0x90f00e(0x18e));_0x40efea(_0x4d5004[_0x90f00e(0x173)]['r'],MAX_XML_ROWS),_0x415e77=undefined,_0x574ec3=undefined,_0x2f3408=![];}else{if(_0x4d5004['name']==='c'){if(_0x3cb84b)throw new Error(_0x90f00e(0x183));_0x3cb84b=!![],_0x57c27f=Boolean(Number[_0x90f00e(0x18f)](_0x4d5004[_0x90f00e(0x173)]['s']??'',0xa)),_0x3104fb=undefined,_0x3b4a12=_0x4d5004['attributes']['r']||undefined,_0x5724be=_0x3b4a12?_0x43edd1(_0x3b4a12):undefined;if(_0x5724be)_0xb18e32=_0x5724be;else _0xb18e32=_0x415e77?{'row':_0x415e77[_0x90f00e(0x24d)],'col':_0x415e77[_0x90f00e(0x1a2)]+0x1}:undefined;}else{if(_0x3cb84b&&['f','v','t']['includes'](_0x4d5004[_0x90f00e(0x1b4)])){_0x3104fb=_0x4d5004['name'];if(_0x4d5004[_0x90f00e(0x1b4)]==='f'&&_0x4d5004[_0x90f00e(0x173)]['t'])_0x57c27f=!![];}else{if(_0x3cb84b&&_0x4d5004[_0x90f00e(0x1b4)]==='r')_0x57c27f=!![];else{if(_0x4d5004[_0x90f00e(0x1b4)]===_0x90f00e(0x1a5)){const _0x437a64=_0x4d5004[_0x90f00e(0x173)]['ref'];if(!_0x437a64)throw new Error(_0x90f00e(0x1ee));const _0x32a440=_0x437a64[_0x90f00e(0x239)](':');if(_0x32a440[_0x90f00e(0x225)]>0x2)throw new Error(_0x90f00e(0x1ee));const _0x2d538d=_0x43edd1(_0x32a440[0x0]),_0x1e0ac9=_0x43edd1(_0x32a440[0x1]??_0x32a440[0x0]);_0x51c6ae['add'](_0x437a64),_0x225a80(Math['max'](_0x2d538d[_0x90f00e(0x1a2)],_0x1e0ac9['col']),0x1);}else{if(_0x4d5004[_0x90f00e(0x1b4)]==='col'){const _0x58c059=_0x40efea(_0x4d5004[_0x90f00e(0x173)][_0x90f00e(0x17b)],0x4000),_0x19bdfa=_0x40efea(_0x4d5004[_0x90f00e(0x173)][_0x90f00e(0x214)],0x4000);if(_0x58c059>_0x19bdfa)throw new Error(_0x90f00e(0x1de));_0x225a80(_0x19bdfa,0x1);}else{if(_0x4d5004[_0x90f00e(0x1b4)]===_0x90f00e(0x177)){const _0x551c08=_0x4d5004[_0x90f00e(0x173)][_0x90f00e(0x1db)];if(!_0x551c08)throw new Error(_0x90f00e(0x1b6));const _0x3633d6=_0x551c08[_0x90f00e(0x239)](':');if(_0x3633d6[_0x90f00e(0x225)]>0x2)throw new Error(_0x90f00e(0x1b6));const _0x5df882=_0x43edd1(_0x3633d6[0x0]),_0x2c8c78=_0x43edd1(_0x3633d6[0x1]??_0x3633d6[0x0]);_0x225a80(Math[_0x90f00e(0x214)](_0x5df882[_0x90f00e(0x1a2)],_0x2c8c78['col']));const _0x3a094c=(Math['abs'](_0x2c8c78[_0x90f00e(0x24d)]-_0x5df882['row'])+0x1)*(Math[_0x90f00e(0x1e0)](_0x2c8c78[_0x90f00e(0x1a2)]-_0x5df882['col'])+0x1);_0x12ee47+=_0x3a094c+_0x513a4b++;if(_0x12ee47>MAX_ROWS)throw new Error(_0x90f00e(0x17e));}}}}}}}}),_0x595b62?.['on']('text',_0x1850de=>{const _0x168fab=_0x414e93;if(_0x450364){_0x1e461c?.[_0x168fab(0x1ac)](_0x1850de);return;}if(_0x3cb84b&&_0x3104fb&&_0x1850de)_0x57c27f=!![];}),_0x595b62?.['on']('closetag',_0x4403ea=>{const _0x523269=_0x414e93;if(_0x450364){_0x1e461c&&!_0x1e461c[_0x523269(0x20a)]()&&(_0x3d8a8e(_0x1e461c[_0x523269(0x1c3)]),_0x1e461c=undefined);return;}if(_0x4403ea[_0x523269(0x1b4)]==='c'){!_0x57c27f&&_0x3b4a12&&!_0x574ec3&&(_0x574ec3={'before':_0x415e77,'cells':[]});if(_0x574ec3){if(++_0x3dfa72>0xf4240)throw new Error(_0x523269(0x254));_0x574ec3['cells']['push']({'reference':_0x3b4a12,'address':_0x5724be,'materialized':_0x57c27f});if(!_0x3b4a12&&_0x57c27f)_0x2f3408=!![];}if(_0x57c27f){if(!_0x574ec3||_0x3b4a12){if(!_0xb18e32)throw new Error(_0x523269(0x211));if(_0xb18e32[_0x523269(0x1a2)]>MAX_XML_COLUMNS)throw new Error(_0x523269(0x251));_0x225a80(_0xb18e32[_0x523269(0x1a2)]);}_0x415e77=_0xb18e32;}_0x3cb84b=![],_0xb18e32=undefined,_0x3b4a12=undefined,_0x5724be=undefined,_0x3104fb=undefined;}else{if(_0x4403ea[_0x523269(0x1b4)]===_0x523269(0x24d)){if(_0x574ec3&&_0x2f3408)_0x123845[_0x523269(0x22d)](_0x574ec3);_0x574ec3=undefined,_0x2f3408=![];}else{if(_0x4403ea[_0x523269(0x1b4)]===_0x3104fb)_0x3104fb=undefined;}}}),_0x595b62?.['on'](_0x414e93(0x164),_0x4b74df=>{const _0x20fe43=_0x414e93;throw new Error(_0x20fe43(0x1ae)+_0x4b74df[_0x20fe43(0x1d4)]);}),_0x312854['on']('error',_0x4fabd1),_0x312854['on'](_0x414e93(0x1ca),_0xd28f1b=>{const _0x211933=_0x414e93;if(_0x184a2e)return;_0x41009d+=_0xd28f1b[_0x211933(0x225)],_0x4914e0?.[_0x211933(0x22d)](_0xd28f1b);if(_0x41009d>MAX_EXPANDED){_0x4fabd1(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x5954ae&&_0x52552c)_0x5954ae[_0x211933(0x246)](_0x52552c[_0x211933(0x246)](_0xd28f1b));if(_0x595b62&&_0x39c3d8)_0x595b62[_0x211933(0x246)](_0x39c3d8[_0x211933(0x246)](_0xd28f1b));}catch(_0x1e7e9a){_0x4fabd1(_0x1e7e9a instanceof Error?_0x1e7e9a:new Error(_0x211933(0x1e6)));}}),_0x312854['on'](_0x414e93(0x259),()=>{const _0x200ada=_0x414e93;if(_0x184a2e)return;try{if(_0x5954ae&&_0x52552c)_0x5954ae[_0x200ada(0x246)](_0x52552c[_0x200ada(0x259)]())[_0x200ada(0x247)]();if(_0x595b62&&_0x39c3d8)_0x595b62['write'](_0x39c3d8[_0x200ada(0x259)]())['close']();for(const _0xf67114 of _0x123845){let _0x3e4a06=_0xf67114['before'];for(const _0x5b2a40 of _0xf67114[_0x200ada(0x184)]){if(!_0x5b2a40[_0x200ada(0x203)]&&!(_0x5b2a40['reference']&&_0x51c6ae[_0x200ada(0x234)](_0x5b2a40[_0x200ada(0x21b)])))continue;const _0x16252c=_0x5b2a40[_0x200ada(0x1cd)]??(_0x3e4a06?{'row':_0x3e4a06[_0x200ada(0x24d)],'col':_0x3e4a06[_0x200ada(0x1a2)]+0x1}:undefined);if(!_0x16252c)throw new Error(_0x200ada(0x211));if(_0x16252c[_0x200ada(0x1a2)]>MAX_XML_COLUMNS)throw new Error(_0x200ada(0x251));_0x225a80(_0x16252c[_0x200ada(0x1a2)]),_0x3e4a06=_0x16252c;}}_0x123845[_0x200ada(0x225)]=0x0,_0x51c6ae[_0x200ada(0x1bc)]();}catch(_0x220e09){_0x4fabd1(_0x220e09 instanceof Error?_0x220e09:new Error(_0x200ada(0x1e6)));return;}if(_0x4914e0)_0x2e4d5a[_0x200ada(0x209)](_0x3f5ffb,Buffer[_0x200ada(0x19e)](_0x4914e0));_0x24c7e0=undefined,_0x9520[_0x200ada(0x1e8)]();});});}),_0x9520['on'](_0x48b0fc(0x259),()=>{const _0x205787=_0x48b0fc;if(_0x184a2e)return;if(_0x9520[_0x205787(0x1dc)]!==_0x485242){_0x4e4af7(new Error(_0x205787(0x227)));return;}if(!_0x223f5b[_0x205787(0x234)](_0x205787(0x213))||!_0x223f5b[_0x205787(0x234)](_0x205787(0x257)))_0x4e4af7(new Error(_0x205787(0x1fd)));else _0x5b3df0();}),_0x9520[_0x48b0fc(0x1e8)]();});});}function a144_0x4a06(_0x110ce1,_0x27c510){_0x110ce1=_0x110ce1-0x161;const _0x1caec7=a144_0x1cae();let _0x4a06c1=_0x1caec7[_0x110ce1];return _0x4a06c1;}function valueOf(_0x22bdce){const _0x24ff5e=a144_0xfeba39,_0x32cb34=_0x22bdce['value'];if(_0x32cb34&&typeof _0x32cb34==='object'&&(_0x24ff5e(0x169)in _0x32cb34||_0x24ff5e(0x1a4)in _0x32cb34)){if(!(_0x24ff5e(0x253)in _0x32cb34)||_0x32cb34[_0x24ff5e(0x253)]===undefined)throw new Error(_0x24ff5e(0x228));return _0x32cb34[_0x24ff5e(0x253)];}return _0x32cb34;}function convert(_0x4c14fe,_0xe9823c){const _0x10a31f=a144_0xfeba39;if(_0x4c14fe===null||_0x4c14fe===undefined||_0x4c14fe===''){if(_0xe9823c['required']&&!_0xe9823c[_0x10a31f(0x235)])throw new Error(_0x10a31f(0x1e1));return null;}if(typeof _0x4c14fe===_0x10a31f(0x1f9)&&Buffer[_0x10a31f(0x1df)](_0x4c14fe,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0xe9823c['type'][_0x10a31f(0x174)]()){case _0x10a31f(0x1f9):case _0x10a31f(0x1f0):case _0x10a31f(0x23a):if(typeof _0x4c14fe!=='string')throw new Error('Expected\x20a\x20text\x20cell.');return _0x4c14fe;case _0x10a31f(0x221):case _0x10a31f(0x167):case'integer':if(typeof _0x4c14fe!==_0x10a31f(0x221)||!Number[_0x10a31f(0x19b)](_0x4c14fe)||Math[_0x10a31f(0x1e0)](_0x4c14fe)>Number[_0x10a31f(0x1d5)]||_0xe9823c[_0x10a31f(0x22b)][_0x10a31f(0x174)]()===_0x10a31f(0x210)&&!Number[_0x10a31f(0x21a)](_0x4c14fe))throw new Error(_0x10a31f(0x215));return _0x4c14fe;case'boolean':if(typeof _0x4c14fe!=='boolean')throw new Error(_0x10a31f(0x1c6));return _0x4c14fe;case'date':case'datetime':if(!(_0x4c14fe instanceof Date)||!Number['isFinite'](_0x4c14fe[_0x10a31f(0x20e)]()))throw new Error(_0x10a31f(0x19c));return _0x4c14fe['getTime']();default:throw new Error(_0x10a31f(0x16c)+_0xe9823c[_0x10a31f(0x22b)]+'.');}}export async function buildExcelManifest(_0x4e7257){const _0x236f78=a144_0xfeba39,_0x3d7299=_0x4e7257[_0x236f78(0x1a9)]??0x1;if(!Number[_0x236f78(0x21a)](_0x3d7299)||_0x3d7299<0x1||_0x3d7299>MAX_ROWS)throw new Error(_0x236f78(0x1fb));if(_0x4e7257[_0x236f78(0x23e)]!==undefined&&(!Number[_0x236f78(0x21a)](_0x4e7257[_0x236f78(0x23e)])||_0x4e7257[_0x236f78(0x23e)]<0x1||_0x4e7257[_0x236f78(0x23e)]>0x3e8))throw new Error(_0x236f78(0x165));if(a144_0x352360[_0x236f78(0x1e3)](_0x4e7257[_0x236f78(0x1be)])[_0x236f78(0x174)]()!==_0x236f78(0x205))throw new Error(_0x236f78(0x176));const _0x44ab2c=await stat(_0x4e7257['file']);if(!_0x44ab2c['isFile']()||_0x44ab2c[_0x236f78(0x233)]>MAX_FILE)throw new Error(_0x236f78(0x242));const _0x3b559c=await readFile(_0x4e7257[_0x236f78(0x1be)]);if(_0x3b559c['length']>MAX_FILE)throw new Error(_0x236f78(0x16e));const _0x295fe5=_0x4e7257[_0x236f78(0x16a)][_0x236f78(0x217)](_0x4d2a51=>isImageContainer(_0x4d2a51[_0x236f78(0x22b)])&&Object['values'](_0x4e7257[_0x236f78(0x189)])[_0x236f78(0x25a)](_0x4d2a51[_0x236f78(0x241)]))?new Map():undefined;await checkArchive(_0x3b559c,_0x295fe5);const _0x1208e6=new a144_0x472d1a[(_0x236f78(0x245))]();await _0x1208e6[_0x236f78(0x24f)][_0x236f78(0x190)](_0x3b559c,{'ignoreNodes':['dataValidations']});const _0x211cfb=_0x4e7257[_0x236f78(0x1c7)];let _0x804f0f;if(_0x211cfb===undefined)_0x804f0f=_0x1208e6['worksheets'][0x0];else{if(typeof _0x211cfb===_0x236f78(0x1f9)&&_0x1208e6[_0x236f78(0x218)][_0x236f78(0x217)](_0x42a195=>_0x42a195[_0x236f78(0x1b4)]===_0x211cfb))_0x804f0f=_0x1208e6[_0x236f78(0x218)][_0x236f78(0x199)](_0x19a3a1=>_0x19a3a1[_0x236f78(0x1b4)]===_0x211cfb);else{if(typeof _0x211cfb===_0x236f78(0x221)||/^\d+$/[_0x236f78(0x192)](_0x211cfb)){const _0x4dbd56=Number(_0x211cfb);if(!Number[_0x236f78(0x21a)](_0x4dbd56)||_0x4dbd56<0x1)throw new Error('Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.');_0x804f0f=_0x1208e6[_0x236f78(0x218)][_0x4dbd56-0x1];}else _0x804f0f=_0x1208e6[_0x236f78(0x218)][_0x236f78(0x199)](_0x758161=>_0x758161[_0x236f78(0x1b4)]===_0x211cfb);}}if(!_0x804f0f)throw new Error(_0x236f78(0x185));if(_0x804f0f['rowCount']>MAX_ROWS||_0x804f0f['columnCount']>MAX_COLUMNS)throw new Error(_0x236f78(0x22e));if((_0x804f0f[_0x236f78(0x1c3)][_0x236f78(0x180)]??[])[_0x236f78(0x225)])throw new Error(_0x236f78(0x23f));const _0x1fba44=new Map();_0x804f0f['getRow'](_0x3d7299)[_0x236f78(0x1d6)]((_0x17a743,_0x144f55)=>{const _0x164ae3=_0x236f78,_0x365816=valueOf(_0x17a743);if(typeof _0x365816!==_0x164ae3(0x1f9)||!_0x365816['trim']()||Buffer[_0x164ae3(0x1df)](_0x365816)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x1fba44[_0x164ae3(0x234)](_0x365816))throw new Error(_0x164ae3(0x193)+_0x365816+'.');_0x1fba44[_0x164ae3(0x209)](_0x365816,_0x144f55);});const _0x41ff75=Object['entries'](_0x4e7257[_0x236f78(0x189)]);if(!_0x41ff75[_0x236f78(0x225)])throw new Error(_0x236f78(0x16d));const _0x2d63cf=new Map(_0x4e7257[_0x236f78(0x16a)]['map'](_0x3a7271=>[_0x3a7271['code'],_0x3a7271]));if(_0x2d63cf[_0x236f78(0x233)]!==_0x4e7257[_0x236f78(0x16a)][_0x236f78(0x225)])throw new Error(_0x236f78(0x198));if(_0x4e7257[_0x236f78(0x16a)]['some'](_0x48f1fc=>_0x48f1fc[_0x236f78(0x22b)][_0x236f78(0x174)]()===_0x236f78(0x1d9)))throw new Error(_0x236f78(0x161));const _0x51e14b=new Set();for(const [_0x438bbe,_0x42809b]of _0x41ff75){const _0x63bd26=_0x2d63cf[_0x236f78(0x171)](_0x42809b);if(!_0x1fba44[_0x236f78(0x234)](_0x438bbe))throw new Error(_0x236f78(0x230)+_0x438bbe+'.');if(!_0x63bd26||RESERVED[_0x236f78(0x234)](_0x42809b)||_0x63bd26[_0x236f78(0x235)])throw new Error(_0x236f78(0x208)+_0x42809b+'.');if(_0x51e14b[_0x236f78(0x234)](_0x42809b))throw new Error(_0x236f78(0x252)+_0x42809b+'.');if(!TYPES[_0x236f78(0x234)](_0x63bd26[_0x236f78(0x22b)][_0x236f78(0x174)]()))throw new Error(_0x236f78(0x16c)+_0x63bd26[_0x236f78(0x22b)]+'.');_0x51e14b[_0x236f78(0x1af)](_0x42809b);}for(const _0x1e99e1 of _0x4e7257[_0x236f78(0x16a)]){if(_0x1e99e1[_0x236f78(0x1fc)]&&!_0x1e99e1['generated']&&!RESERVED[_0x236f78(0x234)](_0x1e99e1[_0x236f78(0x241)])&&!_0x51e14b[_0x236f78(0x234)](_0x1e99e1[_0x236f78(0x241)]))throw new Error(_0x236f78(0x24a)+_0x1e99e1['code']+'.');}const _0x561055={'fileHash':hash(_0x3b559c),'mappingHash':hash(JSON[_0x236f78(0x1dd)]([..._0x41ff75][_0x236f78(0x202)](([_0x193e1c],[_0x114524])=>_0x193e1c[_0x236f78(0x1ef)](_0x114524)))),'schemaHash':hash(JSON[_0x236f78(0x1dd)]([..._0x4e7257[_0x236f78(0x16a)]][_0x236f78(0x202)]((_0x2b5843,_0x93a19)=>_0x2b5843[_0x236f78(0x241)][_0x236f78(0x1ef)](_0x93a19['code'])))),'sheet':_0x804f0f[_0x236f78(0x1b4)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x4cd96d=_0x41ff75[_0x236f78(0x18b)](([,_0x2a7fc3])=>isImageContainer(_0x2d63cf[_0x236f78(0x171)](_0x2a7fc3)['type'])),_0x5a0010=_0x4cd96d[_0x236f78(0x18b)](([,_0x255aa3])=>_0x2d63cf['get'](_0x255aa3)['type']['toLowerCase']()===_0x236f78(0x23c))['map'](([,_0x4a9b9e])=>_0x4a9b9e);if(_0x5a0010[_0x236f78(0x225)])_0x561055[_0x236f78(0x1b5)]=_0x5a0010;const _0x467702=_0x295fe5?resolveWorksheetImages(_0x295fe5,_0x804f0f[_0x236f78(0x1b4)],new Set(_0x4cd96d[_0x236f78(0x207)](([_0x59e1c5])=>_0x1fba44[_0x236f78(0x171)](_0x59e1c5)))):[],_0x3ea49a=new Map();for(const _0xed7683 of _0x467702){const _0x1eb2ee=_0xed7683[_0x236f78(0x24d)]+':'+_0xed7683[_0x236f78(0x1a2)],_0x4fb18f=_0x3ea49a[_0x236f78(0x171)](_0x1eb2ee)??[];_0x4fb18f[_0x236f78(0x22d)](_0xed7683),_0x3ea49a['set'](_0x1eb2ee,_0x4fb18f);}const _0x3d3bc8=new Map();let _0x583687=0x0;_0x4cd96d['length']&&(_0x561055[_0x236f78(0x21f)]=_0x4cd96d[_0x236f78(0x207)](([,_0x3c5468])=>_0x3c5468),_0x561055['imageCells']=[],_0x561055['parserVersion']=0x1,_0x561055[_0x236f78(0x172)]=[]);const _0x115ab5=Math[_0x236f78(0x214)](0x0,..._0x467702[_0x236f78(0x207)](_0x26162e=>_0x26162e['row']));let _0x144c22=0x0;const _0x141c47=new Set(_0x41ff75[_0x236f78(0x207)](([_0x1096c1])=>_0x1fba44[_0x236f78(0x171)](_0x1096c1)));for(let _0x53401e=_0x3d7299+0x1;_0x53401e<=Math[_0x236f78(0x214)](_0x804f0f[_0x236f78(0x182)],_0x115ab5);_0x53401e++){const _0x7c026b=_0x804f0f[_0x236f78(0x1d8)](_0x53401e);if(_0x7c026b['hidden']||_0x467702[_0x236f78(0x217)](_0x5bece1=>_0x5bece1[_0x236f78(0x24d)]===_0x53401e&&_0x5bece1['hiddenRow']))_0x144c22++;let _0x224dcb=_0x467702[_0x236f78(0x217)](_0x230dff=>_0x230dff[_0x236f78(0x24d)]===_0x53401e);_0x7c026b['eachCell'](_0x3a9eaa=>{const _0x2a5382=_0x236f78;if(_0x3a9eaa['value']!==null&&_0x3a9eaa['value']!==undefined&&_0x3a9eaa[_0x2a5382(0x231)]!=='')_0x224dcb=!![];});if(!_0x224dcb){_0x561055[_0x236f78(0x1c9)][_0x236f78(0x22d)](_0x53401e);continue;}const _0x32cf9a=Object[_0x236f78(0x212)](null);_0x7c026b[_0x236f78(0x1d6)]((_0x1f1ceb,_0x4bba95)=>{const _0x1c79f9=_0x236f78;if(_0x141c47['has'](_0x4bba95))return;try{const _0x2abb0d=valueOf(_0x1f1ceb);if(typeof _0x2abb0d===_0x1c79f9(0x1f9)&&Buffer[_0x1c79f9(0x1df)](_0x2abb0d,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x1f4419){_0x561055[_0x1c79f9(0x17f)][_0x1c79f9(0x22d)]({'rowNumber':_0x53401e,'field':_0x1f1ceb[_0x1c79f9(0x1cd)],'message':_0x1f4419['message']});}});for(const [_0x33e7a5,_0x5ba304]of _0x41ff75){try{const _0x2fc192=_0x7c026b['getCell'](_0x1fba44['get'](_0x33e7a5)),_0x281940=_0x2d63cf[_0x236f78(0x171)](_0x5ba304);if(!isImageContainer(_0x281940[_0x236f78(0x22b)])){_0x32cf9a[_0x5ba304]=convert(valueOf(_0x2fc192),_0x281940);continue;}const _0x4f049e=_0x3ea49a['get'](_0x53401e+':'+_0x1fba44['get'](_0x33e7a5))??[];if(_0x4f049e[_0x236f78(0x217)](_0x1919b5=>_0x1919b5[_0x236f78(0x164)]))throw Error(_0x4f049e[_0x236f78(0x199)](_0x51d9c4=>_0x51d9c4[_0x236f78(0x164)])['error']);if(_0x2fc192['value']!=null&&_0x2fc192[_0x236f78(0x231)]!==''&&!_0x4f049e[_0x236f78(0x217)](_0x3d72dc=>_0x3d72dc[_0x236f78(0x178)]))throw Error(_0x236f78(0x1fa));const _0x2cf2b0=[];for(const _0x54b2fb of _0x4f049e)for(const _0x232fc4 of _0x54b2fb[_0x236f78(0x172)]){const _0x1b49ab=_0x295fe5[_0x236f78(0x171)](_0x232fc4);if(!_0x1b49ab)throw Error('Missing\x20image\x20media:\x20'+_0x232fc4+'.');const _0x5de085=hash(_0x1b49ab),_0x29ff96=_0x3d3bc8['get'](_0x5de085)??validateImageBytes(_0x1b49ab);if(!_0x3d3bc8[_0x236f78(0x234)](_0x29ff96[_0x236f78(0x20f)])){_0x583687+=_0x29ff96[_0x236f78(0x233)];if(_0x583687>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x3d3bc8['set'](_0x29ff96['contentHash'],_0x29ff96);}_0x2cf2b0[_0x236f78(0x22d)](_0x29ff96['contentHash']);}if(!_0x2cf2b0[_0x236f78(0x225)]&&_0x281940['required'])throw Error(_0x236f78(0x16f));if(_0x2cf2b0['length'])_0x561055[_0x236f78(0x1c2)][_0x236f78(0x22d)]({'rowNumber':_0x53401e,'field':_0x5ba304,'hashes':_0x2cf2b0});_0x32cf9a[_0x5ba304]=_0x2cf2b0[_0x236f78(0x207)](_0x5ac8cc=>{const _0x4558cb=_0x236f78,_0x39d624=_0x3d3bc8[_0x4558cb(0x171)](_0x5ac8cc),_0x357046=_0x39d624[_0x4558cb(0x22b)]==='image/jpeg'?'jpg':_0x39d624[_0x4558cb(0x22b)]['slice'](0x6),_0x4902c0=_0x5ac8cc+'.'+_0x357046,_0x302022=_0x4558cb(0x24c)+'0'[_0x4558cb(0x194)](0x40)+'/'+_0x4902c0;return _0x281940[_0x4558cb(0x22b)][_0x4558cb(0x174)]()==='upload'?{'fileName':_0x4902c0,'filePath':_0x302022}:{'key':_0x302022,'name':_0x4902c0,'type':_0x39d624[_0x4558cb(0x22b)],'size':_0x39d624[_0x4558cb(0x233)]};});}catch(_0x4f4616){_0x561055[_0x236f78(0x17f)]['push']({'rowNumber':_0x53401e,'field':_0x5ba304,'message':_0x4f4616['message']});}}_0x561055[_0x236f78(0x1f5)][_0x236f78(0x22d)]({'rowNumber':_0x53401e,'values':_0x32cf9a});}if(_0x561055[_0x236f78(0x172)])_0x561055[_0x236f78(0x172)]=[..._0x3d3bc8['values']()];if(_0x144c22)_0x561055[_0x236f78(0x17c)]['push'](_0x144c22+_0x236f78(0x1c0));return _0x561055;}
|
|
1
|
+
const a144_0x560384=a144_0x5ebe;(function(_0x42b2ba,_0xb12442){const _0x13375d=a144_0x5ebe,_0x5c2df7=_0x42b2ba();while(!![]){try{const _0x5021c5=-parseInt(_0x13375d(0x234))/0x1+parseInt(_0x13375d(0x224))/0x2+-parseInt(_0x13375d(0x20a))/0x3+parseInt(_0x13375d(0x227))/0x4+-parseInt(_0x13375d(0x249))/0x5+parseInt(_0x13375d(0x22e))/0x6+-parseInt(_0x13375d(0x20d))/0x7*(-parseInt(_0x13375d(0x1f1))/0x8);if(_0x5021c5===_0xb12442)break;else _0x5c2df7['push'](_0x5c2df7['shift']());}catch(_0x1ad47c){_0x5c2df7['push'](_0x5c2df7['shift']());}}}(a144_0x159f,0x2c53a));function a144_0x159f(){const _0xe53d16=['\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','openReadStream','max','Image\x20XML\x20node\x20budget\x20exceeded.','Merged\x20cells\x20are\x20not\x20supported.','value','parse','deleted','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20XLSX\x20entry.','xlsx','map','emptyRows','datetime','image/jpeg','tenantCode','getTime','address','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','data','exec','concat','text','original','set','isBuffer','end','merges','size','row','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','destroy','right','imageCells','some','attributes','textarea','model','columnCount','length','parseInt','_xlnm.Print_Titles','parseText','autoIncrement','processAttributes','from','subarray','errors','readEntryCursor','Invalid\x20worksheet\x20column\x20range.','dataValidations','Expected\x20a\x20text\x20cell.','Unsupported\x20field\x20type:\x20','dataset','upload','Worksheet\x20exceeds\x2016384\x20columns.','utf8decode','integer','definedName','decodeEx','entryCount','isInteger','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','versionMadeBy','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','jpg','utf8','56eUUoFy','batchSize','Image\x20XML\x20event\x20budget\x20exceeded.','isArray','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','warnings','load','externalFileAttributes','nativeCell','closetag','entries','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','col','METADATA','test','mapping','string','sourceType','Invalid\x20worksheet\x20merge\x20reference.','Invalid\x20defined\x20name\x20coordinate.','image','Duplicate\x20workbook\x20ZIP\x20entry.','fileComment','create','add','1080309daTmzh','boolean','repeat','193123MxeIrz','Dataset\x20field\x20metadata\x20is\x20missing.','extraFieldRaw','handleUTF8','fileName','Duplicate\x20mapping\x20target:\x20','code','file','error','Required\x20value\x20is\x20missing.','sheet','has','Invalid\x20worksheet\x20XML.','cells','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','Invalid\x20ZIP\x20central\x20directory\x20layout.','./reader/readerFor','split','readEntry','before','filter','creatorId','byteLength','291340TNFQnq','./utils','.xlsx','890868rlzkWx','doType','properties','dataset-import/','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','rowCount','generalPurposeBitFlag','1960482wBMHEB','appCode','Unknown\x20or\x20generated\x20mapping\x20field:\x20','modifierName','Invalid\x20ZIP\x20local\x20file\x20header.','fields','268008MtWebN','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','equals','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','./zipEntry','bottom','parseOpen','readUInt32LE','generated','toLowerCase','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','Cell\x20exceeds\x2064\x20KB.','Invalid\x20worksheet\x20coordinate.','fileNameRaw','Duplicate\x20header:\x20','serial_number','MAX_SAFE_INTEGER','XML\x20DTD/entities\x20are\x20not\x20supported.','decimal','stringify','[Content_Types].xml','392920rgYgFq','datasetId','Invalid\x20worksheet\x20nested\x20row.','Invalid\x20worksheet\x20XML:\x20','dataType','pop','xl/workbook.xml','isSafeInteger','name','source','top','unixPermissions','required','message','values','startsWith','Required\x20field\x20is\x20not\x20mapped:\x20','readUInt16LE','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','exceljs/lib/utils/col-cache.js','type','Workbook','relativeOffsetOfLocalHeader','left','Invalid\x20dataset\x20field\x20extension\x20metadata.','parserVersion','date','Worksheet\x20column\x20objects\x20exceed\x20100000.','write','find','hyperlink','extraFieldsLength','Invalid\x20worksheet\x20hyperlink\x20reference.','Expected\x20a\x20boolean\x20cell.','materialized','sort','charCodeAt','Non-canonical\x20worksheet\x20ZIP\x20entry.','push','Worksheet\x20coordinate\x20exceeds\x20','isFile','every','update','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','getRow','uncompressedSize','media','readBigUInt64LE','\x20columns.','worksheets','abs','isFinite','digest','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','bitFlag','contentHash','createTime','headerRow','modifierId','fileNameStr','sharedFormula','result','formula','number','slice','min','object','ref','reference','hiddenRow','fromBuffer','Unknown\x20Excel\x20header:\x20','Invalid\x20XLSX\x20archive.','rows','Only\x20.xlsx\x20files\x20are\x20supported.','close','clear','eachCell','includes','dir','XLSX\x20file\x20exceeds\x2020\x20MB.','resolve','updateTime','get'];a144_0x159f=function(){return _0xe53d16;};return a144_0x159f();}import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x4c78f8 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x5922c8 from'exceljs';import a144_0x5bf6f3 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x560384(0x1bd),a144_0x560384(0x22f),a144_0x560384(0x24a),a144_0x560384(0x222),'creatorName',a144_0x560384(0x283),a144_0x560384(0x231),a144_0x560384(0x281),a144_0x560384(0x1ab),a144_0x560384(0x1b5)]),TYPES=new Set([a144_0x560384(0x201),a144_0x560384(0x1c4),'textarea',a144_0x560384(0x288),a144_0x560384(0x246),'integer',a144_0x560384(0x20b),a144_0x560384(0x263),a144_0x560384(0x1bb),a144_0x560384(0x205),a144_0x560384(0x1e4)]),isImageContainer=_0x1ae651=>['image','upload'][a144_0x560384(0x297)](_0x1ae651[a144_0x560384(0x23d)]()),hash=_0x2abd11=>createHash('sha256')[a144_0x560384(0x273)](_0x2abd11)[a144_0x560384(0x27d)]('hex'),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require(a144_0x560384(0x25c)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x560384(0x1aa)]('exceljs')),zipRequire=createRequire(excelRequire[a144_0x560384(0x1aa)]('jszip')),ZipEntry=zipRequire(a144_0x560384(0x238)),zipReader=zipRequire(a144_0x560384(0x21d)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a144_0x560384(0x225));function centralDirectoryEnd(_0x17c602,_0x37a0d8){const _0x4e90f5=a144_0x560384,_0x158212=()=>new Error(_0x4e90f5(0x21c)),_0xc5618e=_0x17c602['lastIndexOf'](Buffer[_0x4e90f5(0x1db)]([0x50,0x4b,0x5,0x6]));if(_0xc5618e<0x0||_0xc5618e+0x16>_0x17c602[_0x4e90f5(0x1d5)]||_0xc5618e+0x16+_0x17c602[_0x4e90f5(0x25a)](_0xc5618e+0x14)!==_0x17c602[_0x4e90f5(0x1d5)])throw _0x158212();let _0x478c3d=_0x17c602[_0x4e90f5(0x25a)](_0xc5618e+0xa),_0x4da9c7=_0x17c602[_0x4e90f5(0x23b)](_0xc5618e+0xc),_0x5a07f6=_0x17c602[_0x4e90f5(0x23b)](_0xc5618e+0x10),_0x116d79=_0xc5618e;const _0x11c172=_0xc5618e-0x14,_0x3c7441=_0x11c172>=0x0&&_0x17c602[_0x4e90f5(0x23b)](_0x11c172)===0x7064b50,_0x9afc2b=[0x4,0x6,0x8,0xa][_0x4e90f5(0x1d0)](_0x16c07d=>_0x17c602[_0x4e90f5(0x25a)](_0xc5618e+_0x16c07d)===0xffff)||_0x4da9c7===0xffffffff||_0x5a07f6===0xffffffff;if(_0x3c7441!==_0x9afc2b)throw _0x158212();if(_0x3c7441){if(_0x17c602['lastIndexOf'](Buffer[_0x4e90f5(0x1db)]([0x50,0x4b,0x6,0x7]))!==_0x11c172)throw _0x158212();const _0x44cc37=_0x536ee1=>{const _0x36c871=_0x4e90f5,_0x10396a=Number(_0x17c602[_0x36c871(0x278)](_0x536ee1));if(!Number[_0x36c871(0x250)](_0x10396a))throw _0x158212();return _0x10396a;};_0x116d79=_0x44cc37(_0x11c172+0x8);if(_0x17c602[_0x4e90f5(0x23b)](_0x11c172+0x4)!==0x0||_0x17c602[_0x4e90f5(0x23b)](_0x11c172+0x10)!==0x1||_0x116d79>_0x11c172-0x38||_0x17c602['readUInt32LE'](_0x116d79)!==0x6064b50||_0x44cc37(_0x116d79+0x4)!==0x2c||_0x116d79+0x38!==_0x11c172||_0x17c602[_0x4e90f5(0x23b)](_0x116d79+0x10)!==0x0||_0x17c602[_0x4e90f5(0x23b)](_0x116d79+0x14)!==0x0)throw _0x158212();_0x478c3d=_0x44cc37(_0x116d79+0x20),_0x4da9c7=_0x44cc37(_0x116d79+0x28),_0x5a07f6=_0x44cc37(_0x116d79+0x30);if(_0x44cc37(_0x116d79+0x18)!==_0x478c3d)throw _0x158212();}else{if(_0x17c602[_0x4e90f5(0x25a)](_0xc5618e+0x4)!==0x0||_0x17c602[_0x4e90f5(0x25a)](_0xc5618e+0x6)!==0x0||_0x17c602['readUInt16LE'](_0xc5618e+0x8)!==_0x478c3d)throw _0x158212();}const _0x4a59af=_0x37a0d8[_0x4e90f5(0x1de)];if(_0x5a07f6!==_0x4a59af||_0x478c3d!==_0x37a0d8[_0x4e90f5(0x1ea)]||_0x5a07f6+_0x4da9c7!==_0x116d79)throw _0x158212();return _0x116d79;}function consumerEntryName(_0x5b9f86,_0x2c8f41){const _0x2878f8=a144_0x560384;if(_0x2c8f41['extraFields'][_0x2878f8(0x221)](_0x587f00=>_0x587f00['id']===0x1)[_0x2878f8(0x1d5)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x1c5fdd=_0x2c8f41,_0x1e7df3=_0x2c8f41[_0x2878f8(0x25f)];if(!Buffer[_0x2878f8(0x1c7)](_0x1c5fdd['fileNameRaw'])||!Buffer[_0x2878f8(0x1c7)](_0x1c5fdd['extraFieldRaw'])||!Buffer[_0x2878f8(0x1c7)](_0x1c5fdd['fileCommentRaw'])||!Number[_0x2878f8(0x250)](_0x1e7df3)||_0x1e7df3<0x0||_0x1e7df3>_0x5b9f86['length']-0x1e||_0x5b9f86[_0x2878f8(0x23b)](_0x1e7df3)!==0x4034b50)throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');const _0x151909=_0x1e7df3+0x1e+_0x5b9f86['readUInt16LE'](_0x1e7df3+0x1a),_0x47e3a3=_0x151909+_0x5b9f86['readUInt16LE'](_0x1e7df3+0x1c)+_0x2c8f41['compressedSize'];if(!Number['isSafeInteger'](_0x47e3a3)||_0x47e3a3>_0x5b9f86[_0x2878f8(0x1d5)])throw new Error(_0x2878f8(0x232));if(_0x151909>_0x5b9f86['length']||!_0x5b9f86[_0x2878f8(0x1dc)](_0x1e7df3+0x1e,_0x151909)[_0x2878f8(0x236)](_0x1c5fdd[_0x2878f8(0x241)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x4069db=new ZipEntry({},{'decodeFileName':zipUtf8[_0x2878f8(0x1e6)]});_0x4069db[_0x2878f8(0x27f)]=_0x2c8f41[_0x2878f8(0x22d)],_0x4069db[_0x2878f8(0x211)]=_0x1c5fdd[_0x2878f8(0x241)],_0x4069db[_0x2878f8(0x207)]=_0x1c5fdd['fileCommentRaw'],_0x4069db[_0x2878f8(0x268)]=_0x1c5fdd[_0x2878f8(0x20f)]['length'],_0x4069db['readExtraFields'](zipReader(_0x1c5fdd['extraFieldRaw'])),_0x4069db[_0x2878f8(0x210)](),_0x4069db[_0x2878f8(0x1ed)]=_0x2c8f41[_0x2878f8(0x1ed)],_0x4069db[_0x2878f8(0x1f8)]=_0x2c8f41[_0x2878f8(0x1f8)],_0x4069db[_0x2878f8(0x1da)]();const _0x14f5fa=_0x4069db[_0x2878f8(0x298)]||Boolean((_0x4069db[_0x2878f8(0x254)]??0x0)&0x4000),_0xc37d32=zipPaths[_0x2878f8(0x1aa)](_0x4069db[_0x2878f8(0x284)]),_0xc079de=_0xc37d32[_0x2878f8(0x258)]('/')?_0xc37d32[_0x2878f8(0x289)](0x1):_0xc37d32;return{'name':_0xc079de,'original':_0x4069db[_0x2878f8(0x284)],'directory':_0x14f5fa};}export function normalizeImportFields(_0x474352){const _0x33c48f=a144_0x560384;if(!_0x474352||(_0x474352[_0x33c48f(0x252)]??_0x474352[_0x33c48f(0x1e3)]?.[_0x33c48f(0x202)])!==_0x33c48f(0x1fe))throw new Error(_0x33c48f(0x21b));const _0x27f0fd=Array[_0x33c48f(0x1f4)](_0x474352[_0x33c48f(0x233)]),_0x1f358b=_0x27f0fd?_0x474352[_0x33c48f(0x233)]:_0x474352[_0x33c48f(0x229)];if(!Array[_0x33c48f(0x1f4)](_0x1f358b)||_0x1f358b[_0x33c48f(0x1d5)]===0x0)throw new Error(_0x33c48f(0x20e));const _0xd4045d=[],_0x46c13a=new Set();for(const _0x33eb0e of _0x1f358b){if(_0x33eb0e[_0x33c48f(0x1b5)]===!![])continue;let _0x17b068=_0x33eb0e['extend']??{};if(!_0x27f0fd&&typeof _0x17b068===_0x33c48f(0x201)){try{_0x17b068=JSON[_0x33c48f(0x1b4)](_0x17b068);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x17b068||typeof _0x17b068!==_0x33c48f(0x28b)||Array[_0x33c48f(0x1f4)](_0x17b068))throw new Error(_0x33c48f(0x261));}const _0x25b616=_0x27f0fd?_0x33eb0e['name']:_0x33eb0e[_0x33c48f(0x213)],_0x5179ef=_0x27f0fd?_0x33eb0e[_0x33c48f(0x228)]:_0x33eb0e['type']??_0x33eb0e[_0x33c48f(0x24d)];if(typeof _0x25b616!=='string'||!_0x25b616||typeof _0x5179ef!==_0x33c48f(0x201)||_0x46c13a[_0x33c48f(0x218)](_0x25b616))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x5179ef['toLowerCase']()==='serial_number')throw new Error(_0x33c48f(0x1ae));_0x46c13a[_0x33c48f(0x209)](_0x25b616);const _0x558c4e=_0x27f0fd?_0x33eb0e:_0x17b068,_0x49b453={'code':_0x25b616,'type':_0x5179ef,'required':_0x558c4e[_0x33c48f(0x255)]===!![]};if(RESERVED[_0x33c48f(0x218)](_0x25b616)||_0x558c4e['generated']===!![]||_0x558c4e[_0x33c48f(0x1d9)]===!![])_0x49b453[_0x33c48f(0x23c)]=!![];_0xd4045d[_0x33c48f(0x26f)](_0x49b453);}return _0xd4045d;}function a144_0x5ebe(_0x21c7a6,_0x4c3e8f){_0x21c7a6=_0x21c7a6-0x1aa;const _0x159fee=a144_0x159f();let _0x5ebe15=_0x159fee[_0x21c7a6];return _0x5ebe15;}async function checkArchive(_0xe2504a,_0x48e316){await new Promise((_0x1f9789,_0x2864e2)=>{const _0x248c04=a144_0x5ebe;a144_0x5bf6f3[_0x248c04(0x28f)](_0xe2504a,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x44c10b,_0x50be12)=>{const _0x45c9ab=_0x248c04;if(_0x44c10b||!_0x50be12){_0x2864e2(_0x44c10b??new Error(_0x45c9ab(0x291)));return;}let _0x565c2f;try{_0x565c2f=centralDirectoryEnd(_0xe2504a,_0x50be12);}catch(_0x3ccfff){_0x50be12[_0x45c9ab(0x294)](),_0x2864e2(_0x3ccfff);return;}let _0xd60c8d=0x0,_0x2e3579=0x0,_0x19d9ae=0x0,_0x49d218=0x0,_0x2c75c3=0x0,_0x565e14=0x0,_0x1ba03e=0x0,_0x39aaa4=0x0,_0x3e7628=0x0,_0x23da27=![],_0x5cbe04;const _0x58366d=new Set(),_0x4f4fe3=_0x4c82bc=>{const _0x28cdd4=_0x45c9ab;if(_0x23da27)return;_0x23da27=!![],_0x5cbe04?.[_0x28cdd4(0x1cd)](),_0x50be12[_0x28cdd4(0x294)](),_0x2864e2(_0x4c82bc);},_0x4a5195=(_0x35560a,_0x3ff945)=>{const _0x544cef=_0x45c9ab;if(!_0x35560a||!/^\d+$/[_0x544cef(0x1ff)](_0x35560a))throw new Error(_0x544cef(0x240));const _0x4eb857=Number(_0x35560a);if(!Number[_0x544cef(0x250)](_0x4eb857)||_0x4eb857<0x1||_0x4eb857>_0x3ff945)throw new Error(_0x544cef(0x270)+_0x3ff945+'.');return _0x4eb857;},_0x288223=(_0x5ef4b5,_0x208c46=MAX_XML_COLUMNS)=>{const _0x499c84=_0x45c9ab,_0x266633=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x499c84(0x1c2)](_0x5ef4b5);if(!_0x266633)throw new Error(_0x499c84(0x1ec));let _0x18a7a2=0x0;for(const _0x10e6b1 of _0x266633[0x1])_0x18a7a2=_0x18a7a2*0x1a+_0x10e6b1[_0x499c84(0x26d)](0x0)-0x40;if(_0x18a7a2>_0x208c46)throw new Error('Worksheet\x20exceeds\x20'+_0x208c46+_0x499c84(0x279));return{'row':_0x4a5195(_0x266633[0x2],MAX_XML_ROWS),'col':_0x18a7a2};},_0x31f498=_0x2940f9=>{const _0xe45a55=_0x45c9ab;if(_0x2940f9['name']==='_xlnm.Print_Area'||_0x2940f9[_0xe45a55(0x251)]===_0xe45a55(0x1d7))return;for(const _0x1be0cb of _0x2940f9['ranges']){if(!ABSOLUTE_NAME_RANGE['test'](_0x1be0cb[_0xe45a55(0x21e)]('!')[_0xe45a55(0x24e)]()||''))continue;const _0x783e01=nameCoordinates[_0xe45a55(0x1e9)](_0x1be0cb),_0x3512d5='top'in _0x783e01,_0x41ed36=_0x3512d5?[_0x783e01['top'],_0x783e01[_0xe45a55(0x239)]]:[_0x783e01[_0xe45a55(0x1cb)]],_0x1cd37c=_0x3512d5?[_0x783e01[_0xe45a55(0x260)],_0x783e01[_0xe45a55(0x1ce)]]:[_0x783e01[_0xe45a55(0x1fd)]],_0x2a05e6=(_0x6afeaf,_0x5857ed)=>Number[_0xe45a55(0x250)](_0x6afeaf)&&_0x6afeaf>=0x1&&_0x6afeaf<=_0x5857ed;if(!_0x41ed36[_0xe45a55(0x272)](_0x1d9def=>_0x2a05e6(_0x1d9def,MAX_XML_ROWS))||!_0x1cd37c[_0xe45a55(0x272)](_0x417868=>_0x2a05e6(_0x417868,MAX_XML_COLUMNS)))throw new Error(_0xe45a55(0x204));_0x1ba03e+=_0x3512d5?(_0x783e01[_0xe45a55(0x239)]-_0x783e01[_0xe45a55(0x253)]+0x1)*(_0x783e01[_0xe45a55(0x1ce)]-_0x783e01[_0xe45a55(0x260)]+0x1):0x1;if(_0x1ba03e>MAX_ROWS)throw new Error(_0xe45a55(0x274));}};_0x50be12['on'](_0x45c9ab(0x215),_0x4f4fe3),_0x50be12['on']('entry',_0x2ab974=>{const _0x35ec41=_0x45c9ab;if(_0x23da27)return;if(++_0x19d9ae>0x2710||(_0xd60c8d+=_0x2ab974[_0x35ec41(0x276)])>MAX_EXPANDED){_0x4f4fe3(new Error(_0x35ec41(0x1fc)));return;}let _0x607ee1;try{_0x607ee1=consumerEntryName(_0xe2504a,_0x2ab974);}catch(_0x27f9f5){_0x4f4fe3(_0x27f9f5);return;}if(_0x607ee1['directory']){_0x50be12[_0x35ec41(0x21f)]();return;}const _0x17d36e=_0x607ee1[_0x35ec41(0x251)];if(_0x48e316&&(_0x17d36e!==_0x607ee1['original']||_0x58366d[_0x35ec41(0x218)](_0x17d36e)||_0x17d36e[_0x35ec41(0x258)]('/')||_0x17d36e[_0x35ec41(0x297)]('\x5c'))){_0x4f4fe3(new Error(_0x35ec41(0x1c0)));return;}if(_0x17d36e!==_0x607ee1[_0x35ec41(0x1c5)]&&(_0x17d36e===_0x35ec41(0x24f)||/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x17d36e))){_0x4f4fe3(new Error(_0x35ec41(0x25b)));return;}const _0x180d02=_0x17d36e==='xl/workbook.xml';if(_0x180d02&&_0x58366d[_0x35ec41(0x218)](_0x17d36e)){_0x4f4fe3(new Error(_0x35ec41(0x206)));return;}_0x58366d[_0x35ec41(0x209)](_0x17d36e);const _0x3a17ec=/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x17d36e);if(_0x3a17ec&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x17d36e)){_0x4f4fe3(new Error(_0x35ec41(0x26e)));return;}_0x50be12[_0x35ec41(0x1af)](_0x2ab974,(_0x1ffe4f,_0x786f49)=>{const _0xfb4dea=_0x35ec41;if(_0x23da27){_0x786f49?.[_0xfb4dea(0x1cd)]();return;}if(_0x1ffe4f||!_0x786f49){_0x4f4fe3(_0x1ffe4f??new Error(_0xfb4dea(0x1b7)));return;}_0x5cbe04=_0x786f49;const _0x17a5b3=_0x48e316?[]:undefined,_0x5d66ad=_0x48e316&&/[.](xml|rels)$/[_0xfb4dea(0x1ff)](_0x17d36e)?new StringDecoder(_0xfb4dea(0x1f0)):undefined,_0x1e0be0=_0x5d66ad?new SaxesParser({'xmlns':![]}):undefined,_0x56cf0f=()=>{const _0x2fa1d8=_0xfb4dea;if(++_0x3e7628>0x1e8480)throw Error(_0x2fa1d8(0x1f3));};_0x1e0be0?.['on']('doctype',()=>{const _0x1a1b8d=_0xfb4dea;throw Error(_0x1a1b8d(0x245));}),_0x1e0be0?.['on']('opentag',()=>{const _0x2f59e6=_0xfb4dea;_0x56cf0f();if(++_0x39aaa4>0x7a120)throw Error(_0x2f59e6(0x1b1));}),_0x1e0be0?.['on'](_0xfb4dea(0x1c4),_0x56cf0f),_0x1e0be0?.['on'](_0xfb4dea(0x1fa),_0x56cf0f),_0x1e0be0?.['on'](_0xfb4dea(0x215),_0x208aba=>{throw _0x208aba;});const _0x18c8d8=_0x3a17ec||_0x180d02?new StringDecoder(_0xfb4dea(0x1f0)):undefined,_0x30427a=_0x3a17ec||_0x180d02?new SaxesParser({'xmlns':![]}):undefined;let _0x404ddc,_0x16d2a3=0x0,_0x279d7d=0x0,_0x4fd025,_0x2a9a47,_0x37afe1=![],_0x35f8d5=![],_0xea9fb7,_0x352d44,_0x5465f6,_0x106797=![];const _0x3f8b69=[],_0x244222=new Set();let _0x593816;const _0x219d9f=(_0x1ac972,_0x46eff1=0x0)=>{const _0x81809e=_0xfb4dea;_0x2c75c3+=_0x46eff1+Math[_0x81809e(0x1b0)](0x0,_0x1ac972-_0x279d7d),_0x279d7d=Math[_0x81809e(0x1b0)](_0x279d7d,_0x1ac972);if(_0x2c75c3>MAX_ROWS)throw new Error(_0x81809e(0x264));};_0x30427a?.['on']('opentag',_0x1ccb54=>{const _0x112463=_0xfb4dea;if(_0x180d02){if(!_0x404ddc&&_0x1ccb54[_0x112463(0x251)]===_0x112463(0x1e8))_0x404ddc=new DefinedNameXform();_0x404ddc?.[_0x112463(0x23a)](_0x1ccb54);return;}if(_0x1ccb54[_0x112463(0x251)]===_0x112463(0x1cb)){if(_0x35f8d5)throw new Error(_0x112463(0x24b));_0x4a5195(_0x1ccb54[_0x112463(0x1d1)]['r'],MAX_XML_ROWS),_0x4fd025=undefined,_0x5465f6=undefined,_0x106797=![];}else{if(_0x1ccb54[_0x112463(0x251)]==='c'){if(_0x35f8d5)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x35f8d5=!![],_0x37afe1=Boolean(Number[_0x112463(0x1d6)](_0x1ccb54[_0x112463(0x1d1)]['s']??'',0xa)),_0x593816=undefined,_0xea9fb7=_0x1ccb54['attributes']['r']||undefined,_0x352d44=_0xea9fb7?_0x288223(_0xea9fb7):undefined;if(_0x352d44)_0x2a9a47=_0x352d44;else _0x2a9a47=_0x4fd025?{'row':_0x4fd025[_0x112463(0x1cb)],'col':_0x4fd025['col']+0x1}:undefined;}else{if(_0x35f8d5&&['f','v','t'][_0x112463(0x297)](_0x1ccb54[_0x112463(0x251)])){_0x593816=_0x1ccb54['name'];if(_0x1ccb54['name']==='f'&&_0x1ccb54[_0x112463(0x1d1)]['t'])_0x37afe1=!![];}else{if(_0x35f8d5&&_0x1ccb54[_0x112463(0x251)]==='r')_0x37afe1=!![];else{if(_0x1ccb54['name']===_0x112463(0x267)){const _0x357c0d=_0x1ccb54[_0x112463(0x1d1)][_0x112463(0x28c)];if(!_0x357c0d)throw new Error(_0x112463(0x269));const _0xf0dd92=_0x357c0d[_0x112463(0x21e)](':');if(_0xf0dd92[_0x112463(0x1d5)]>0x2)throw new Error(_0x112463(0x269));const _0x2f2c46=_0x288223(_0xf0dd92[0x0]),_0x2c3ee7=_0x288223(_0xf0dd92[0x1]??_0xf0dd92[0x0]);_0x244222[_0x112463(0x209)](_0x357c0d),_0x219d9f(Math['max'](_0x2f2c46[_0x112463(0x1fd)],_0x2c3ee7['col']),0x1);}else{if(_0x1ccb54[_0x112463(0x251)]==='col'){const _0x54e1ae=_0x4a5195(_0x1ccb54[_0x112463(0x1d1)][_0x112463(0x28a)],0x4000),_0x1d37b9=_0x4a5195(_0x1ccb54[_0x112463(0x1d1)][_0x112463(0x1b0)],0x4000);if(_0x54e1ae>_0x1d37b9)throw new Error(_0x112463(0x1df));_0x219d9f(_0x1d37b9,0x1);}else{if(_0x1ccb54[_0x112463(0x251)]==='mergeCell'){const _0x408632=_0x1ccb54['attributes']['ref'];if(!_0x408632)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x10a94a=_0x408632[_0x112463(0x21e)](':');if(_0x10a94a[_0x112463(0x1d5)]>0x2)throw new Error(_0x112463(0x203));const _0x264fc3=_0x288223(_0x10a94a[0x0]),_0x36cdc7=_0x288223(_0x10a94a[0x1]??_0x10a94a[0x0]);_0x219d9f(Math[_0x112463(0x1b0)](_0x264fc3[_0x112463(0x1fd)],_0x36cdc7[_0x112463(0x1fd)]));const _0x5c0bd2=(Math['abs'](_0x36cdc7[_0x112463(0x1cb)]-_0x264fc3['row'])+0x1)*(Math[_0x112463(0x27b)](_0x36cdc7['col']-_0x264fc3[_0x112463(0x1fd)])+0x1);_0x49d218+=_0x5c0bd2+_0x16d2a3++;if(_0x49d218>MAX_ROWS)throw new Error(_0x112463(0x1b6));}}}}}}}}),_0x30427a?.['on'](_0xfb4dea(0x1c4),_0xf06d94=>{const _0x36bfb2=_0xfb4dea;if(_0x180d02){_0x404ddc?.[_0x36bfb2(0x1d8)](_0xf06d94);return;}if(_0x35f8d5&&_0x593816&&_0xf06d94)_0x37afe1=!![];}),_0x30427a?.['on'](_0xfb4dea(0x1fa),_0x692d86=>{const _0x1bc854=_0xfb4dea;if(_0x180d02){_0x404ddc&&!_0x404ddc['parseClose']()&&(_0x31f498(_0x404ddc[_0x1bc854(0x1d3)]),_0x404ddc=undefined);return;}if(_0x692d86[_0x1bc854(0x251)]==='c'){!_0x37afe1&&_0xea9fb7&&!_0x5465f6&&(_0x5465f6={'before':_0x4fd025,'cells':[]});if(_0x5465f6){if(++_0x565e14>0xf4240)throw new Error(_0x1bc854(0x27e));_0x5465f6[_0x1bc854(0x21a)][_0x1bc854(0x26f)]({'reference':_0xea9fb7,'address':_0x352d44,'materialized':_0x37afe1});if(!_0xea9fb7&&_0x37afe1)_0x106797=!![];}if(_0x37afe1){if(!_0x5465f6||_0xea9fb7){if(!_0x2a9a47)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x2a9a47['col']>MAX_XML_COLUMNS)throw new Error(_0x1bc854(0x1e5));_0x219d9f(_0x2a9a47[_0x1bc854(0x1fd)]);}_0x4fd025=_0x2a9a47;}_0x35f8d5=![],_0x2a9a47=undefined,_0xea9fb7=undefined,_0x352d44=undefined,_0x593816=undefined;}else{if(_0x692d86['name']===_0x1bc854(0x1cb)){if(_0x5465f6&&_0x106797)_0x3f8b69[_0x1bc854(0x26f)](_0x5465f6);_0x5465f6=undefined,_0x106797=![];}else{if(_0x692d86['name']===_0x593816)_0x593816=undefined;}}}),_0x30427a?.['on'](_0xfb4dea(0x215),_0x523b59=>{const _0x33a4ac=_0xfb4dea;throw new Error(_0x33a4ac(0x24c)+_0x523b59[_0x33a4ac(0x256)]);}),_0x786f49['on'](_0xfb4dea(0x215),_0x4f4fe3),_0x786f49['on'](_0xfb4dea(0x1c1),_0x3dab94=>{const _0x460a4c=_0xfb4dea;if(_0x23da27)return;_0x2e3579+=_0x3dab94[_0x460a4c(0x1d5)],_0x17a5b3?.['push'](_0x3dab94);if(_0x2e3579>MAX_EXPANDED){_0x4f4fe3(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x1e0be0&&_0x5d66ad)_0x1e0be0['write'](_0x5d66ad[_0x460a4c(0x265)](_0x3dab94));if(_0x30427a&&_0x18c8d8)_0x30427a[_0x460a4c(0x265)](_0x18c8d8['write'](_0x3dab94));}catch(_0x20cfc8){_0x4f4fe3(_0x20cfc8 instanceof Error?_0x20cfc8:new Error(_0x460a4c(0x219)));}}),_0x786f49['on']('end',()=>{const _0x2f6b26=_0xfb4dea;if(_0x23da27)return;try{if(_0x1e0be0&&_0x5d66ad)_0x1e0be0[_0x2f6b26(0x265)](_0x5d66ad[_0x2f6b26(0x1c8)]())[_0x2f6b26(0x294)]();if(_0x30427a&&_0x18c8d8)_0x30427a[_0x2f6b26(0x265)](_0x18c8d8[_0x2f6b26(0x1c8)]())[_0x2f6b26(0x294)]();for(const _0x372bef of _0x3f8b69){let _0x42249a=_0x372bef[_0x2f6b26(0x220)];for(const _0x76b551 of _0x372bef[_0x2f6b26(0x21a)]){if(!_0x76b551[_0x2f6b26(0x26b)]&&!(_0x76b551[_0x2f6b26(0x28d)]&&_0x244222[_0x2f6b26(0x218)](_0x76b551[_0x2f6b26(0x28d)])))continue;const _0x5ec752=_0x76b551['address']??(_0x42249a?{'row':_0x42249a[_0x2f6b26(0x1cb)],'col':_0x42249a['col']+0x1}:undefined);if(!_0x5ec752)throw new Error(_0x2f6b26(0x235));if(_0x5ec752[_0x2f6b26(0x1fd)]>MAX_XML_COLUMNS)throw new Error(_0x2f6b26(0x1e5));_0x219d9f(_0x5ec752[_0x2f6b26(0x1fd)]),_0x42249a=_0x5ec752;}}_0x3f8b69['length']=0x0,_0x244222[_0x2f6b26(0x295)]();}catch(_0x4c0c73){_0x4f4fe3(_0x4c0c73 instanceof Error?_0x4c0c73:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x17a5b3)_0x48e316[_0x2f6b26(0x1c6)](_0x17d36e,Buffer[_0x2f6b26(0x1c3)](_0x17a5b3));_0x5cbe04=undefined,_0x50be12[_0x2f6b26(0x21f)]();});});}),_0x50be12['on']('end',()=>{const _0x1e3dc2=_0x45c9ab;if(_0x23da27)return;if(_0x50be12[_0x1e3dc2(0x1de)]!==_0x565c2f){_0x2864e2(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x58366d[_0x1e3dc2(0x218)](_0x1e3dc2(0x248))||!_0x58366d[_0x1e3dc2(0x218)](_0x1e3dc2(0x24f)))_0x2864e2(new Error('File\x20is\x20not\x20an\x20XLSX\x20workbook.'));else _0x1f9789();}),_0x50be12[_0x45c9ab(0x21f)]();});});}function valueOf(_0x1ce151){const _0x36d24d=a144_0x560384,_0x20cc79=_0x1ce151[_0x36d24d(0x1b3)];if(_0x20cc79&&typeof _0x20cc79===_0x36d24d(0x28b)&&(_0x36d24d(0x287)in _0x20cc79||_0x36d24d(0x285)in _0x20cc79)){if(!(_0x36d24d(0x286)in _0x20cc79)||_0x20cc79['result']===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x20cc79[_0x36d24d(0x286)];}return _0x20cc79;}function convert(_0x43cdc7,_0x2187c6){const _0x1d3fcc=a144_0x560384;if(_0x43cdc7===null||_0x43cdc7===undefined||_0x43cdc7===''){if(_0x2187c6[_0x1d3fcc(0x255)]&&!_0x2187c6[_0x1d3fcc(0x23c)])throw new Error(_0x1d3fcc(0x216));return null;}if(typeof _0x43cdc7===_0x1d3fcc(0x201)&&Buffer[_0x1d3fcc(0x223)](_0x43cdc7,'utf8')>MAX_CELL)throw new Error(_0x1d3fcc(0x23f));switch(_0x2187c6[_0x1d3fcc(0x25d)][_0x1d3fcc(0x23d)]()){case _0x1d3fcc(0x201):case _0x1d3fcc(0x1c4):case _0x1d3fcc(0x1d2):if(typeof _0x43cdc7!==_0x1d3fcc(0x201))throw new Error(_0x1d3fcc(0x1e1));return _0x43cdc7;case _0x1d3fcc(0x288):case'decimal':case _0x1d3fcc(0x1e7):if(typeof _0x43cdc7!=='number'||!Number[_0x1d3fcc(0x27c)](_0x43cdc7)||Math['abs'](_0x43cdc7)>Number[_0x1d3fcc(0x244)]||_0x2187c6[_0x1d3fcc(0x25d)][_0x1d3fcc(0x23d)]()==='integer'&&!Number[_0x1d3fcc(0x1eb)](_0x43cdc7))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x43cdc7;case _0x1d3fcc(0x20b):if(typeof _0x43cdc7!==_0x1d3fcc(0x20b))throw new Error(_0x1d3fcc(0x26a));return _0x43cdc7;case _0x1d3fcc(0x263):case'datetime':if(!(_0x43cdc7 instanceof Date)||!Number[_0x1d3fcc(0x27c)](_0x43cdc7[_0x1d3fcc(0x1be)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x43cdc7[_0x1d3fcc(0x1be)]();default:throw new Error(_0x1d3fcc(0x1e2)+_0x2187c6[_0x1d3fcc(0x25d)]+'.');}}export async function buildExcelManifest(_0x489142){const _0x5dd5c6=a144_0x560384,_0x49b633=_0x489142[_0x5dd5c6(0x282)]??0x1;if(!Number[_0x5dd5c6(0x1eb)](_0x49b633)||_0x49b633<0x1||_0x49b633>MAX_ROWS)throw new Error(_0x5dd5c6(0x1ee));if(_0x489142['batchSize']!==undefined&&(!Number[_0x5dd5c6(0x1eb)](_0x489142[_0x5dd5c6(0x1f2)])||_0x489142[_0x5dd5c6(0x1f2)]<0x1||_0x489142[_0x5dd5c6(0x1f2)]>0x3e8))throw new Error(_0x5dd5c6(0x22b));if(a144_0x4c78f8['extname'](_0x489142[_0x5dd5c6(0x214)])[_0x5dd5c6(0x23d)]()!==_0x5dd5c6(0x226))throw new Error(_0x5dd5c6(0x293));const _0x5070aa=await stat(_0x489142[_0x5dd5c6(0x214)]);if(!_0x5070aa[_0x5dd5c6(0x271)]()||_0x5070aa[_0x5dd5c6(0x1ca)]>MAX_FILE)throw new Error('XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.');const _0x33b359=await readFile(_0x489142[_0x5dd5c6(0x214)]);if(_0x33b359[_0x5dd5c6(0x1d5)]>MAX_FILE)throw new Error(_0x5dd5c6(0x299));const _0x13b942=_0x489142[_0x5dd5c6(0x233)]['some'](_0x538969=>isImageContainer(_0x538969[_0x5dd5c6(0x25d)])&&Object['values'](_0x489142[_0x5dd5c6(0x200)])['includes'](_0x538969['code']))?new Map():undefined;await checkArchive(_0x33b359,_0x13b942);const _0x34a74c=new a144_0x5922c8[(_0x5dd5c6(0x25e))]();await _0x34a74c[_0x5dd5c6(0x1b8)][_0x5dd5c6(0x1f7)](_0x33b359,{'ignoreNodes':[_0x5dd5c6(0x1e0)]});const _0x30b701=_0x489142[_0x5dd5c6(0x217)];let _0x5c3678;if(_0x30b701===undefined)_0x5c3678=_0x34a74c[_0x5dd5c6(0x27a)][0x0];else{if(typeof _0x30b701===_0x5dd5c6(0x201)&&_0x34a74c[_0x5dd5c6(0x27a)][_0x5dd5c6(0x1d0)](_0x5343dd=>_0x5343dd['name']===_0x30b701))_0x5c3678=_0x34a74c[_0x5dd5c6(0x27a)][_0x5dd5c6(0x266)](_0x3dd1b1=>_0x3dd1b1[_0x5dd5c6(0x251)]===_0x30b701);else{if(typeof _0x30b701===_0x5dd5c6(0x288)||/^\d+$/['test'](_0x30b701)){const _0x463a51=Number(_0x30b701);if(!Number[_0x5dd5c6(0x1eb)](_0x463a51)||_0x463a51<0x1)throw new Error(_0x5dd5c6(0x1cc));_0x5c3678=_0x34a74c[_0x5dd5c6(0x27a)][_0x463a51-0x1];}else _0x5c3678=_0x34a74c[_0x5dd5c6(0x27a)]['find'](_0x584cb7=>_0x584cb7[_0x5dd5c6(0x251)]===_0x30b701);}}if(!_0x5c3678)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x5c3678[_0x5dd5c6(0x22c)]>MAX_ROWS||_0x5c3678[_0x5dd5c6(0x1d4)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x5c3678['model'][_0x5dd5c6(0x1c9)]??[])[_0x5dd5c6(0x1d5)])throw new Error(_0x5dd5c6(0x1b2));const _0x5f4b2d=new Map();_0x5c3678[_0x5dd5c6(0x275)](_0x49b633)['eachCell']((_0x235e85,_0x1a13ac)=>{const _0x4a0455=_0x5dd5c6,_0x51114a=valueOf(_0x235e85);if(typeof _0x51114a!==_0x4a0455(0x201)||!_0x51114a['trim']()||Buffer[_0x4a0455(0x223)](_0x51114a)>MAX_CELL)throw new Error(_0x4a0455(0x23e));if(_0x5f4b2d[_0x4a0455(0x218)](_0x51114a))throw new Error(_0x4a0455(0x242)+_0x51114a+'.');_0x5f4b2d['set'](_0x51114a,_0x1a13ac);});const _0x458a74=Object[_0x5dd5c6(0x1fb)](_0x489142[_0x5dd5c6(0x200)]);if(!_0x458a74[_0x5dd5c6(0x1d5)])throw new Error(_0x5dd5c6(0x1f5));const _0x546301=new Map(_0x489142[_0x5dd5c6(0x233)][_0x5dd5c6(0x1b9)](_0x28e23e=>[_0x28e23e[_0x5dd5c6(0x213)],_0x28e23e]));if(_0x546301['size']!==_0x489142['fields'][_0x5dd5c6(0x1d5)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x489142[_0x5dd5c6(0x233)]['some'](_0x51ec53=>_0x51ec53[_0x5dd5c6(0x25d)]['toLowerCase']()===_0x5dd5c6(0x243)))throw new Error(_0x5dd5c6(0x1ae));const _0x26bf28=new Set();for(const [_0x1331de,_0x3094d4]of _0x458a74){const _0x1056a6=_0x546301[_0x5dd5c6(0x1ac)](_0x3094d4);if(!_0x5f4b2d[_0x5dd5c6(0x218)](_0x1331de))throw new Error(_0x5dd5c6(0x290)+_0x1331de+'.');if(!_0x1056a6||RESERVED[_0x5dd5c6(0x218)](_0x3094d4)||_0x1056a6[_0x5dd5c6(0x23c)])throw new Error(_0x5dd5c6(0x230)+_0x3094d4+'.');if(_0x26bf28[_0x5dd5c6(0x218)](_0x3094d4))throw new Error(_0x5dd5c6(0x212)+_0x3094d4+'.');if(!TYPES[_0x5dd5c6(0x218)](_0x1056a6[_0x5dd5c6(0x25d)][_0x5dd5c6(0x23d)]()))throw new Error(_0x5dd5c6(0x1e2)+_0x1056a6[_0x5dd5c6(0x25d)]+'.');_0x26bf28[_0x5dd5c6(0x209)](_0x3094d4);}for(const _0x3a87e9 of _0x489142[_0x5dd5c6(0x233)]){if(_0x3a87e9[_0x5dd5c6(0x255)]&&!_0x3a87e9[_0x5dd5c6(0x23c)]&&!RESERVED[_0x5dd5c6(0x218)](_0x3a87e9[_0x5dd5c6(0x213)])&&!_0x26bf28[_0x5dd5c6(0x218)](_0x3a87e9[_0x5dd5c6(0x213)]))throw new Error(_0x5dd5c6(0x259)+_0x3a87e9[_0x5dd5c6(0x213)]+'.');}const _0x653cb5={'fileHash':hash(_0x33b359),'mappingHash':hash(JSON[_0x5dd5c6(0x247)]([..._0x458a74][_0x5dd5c6(0x26c)](([_0x3fdd44],[_0x51fa12])=>_0x3fdd44['localeCompare'](_0x51fa12)))),'schemaHash':hash(JSON[_0x5dd5c6(0x247)]([..._0x489142[_0x5dd5c6(0x233)]][_0x5dd5c6(0x26c)]((_0x11e296,_0x2293d3)=>_0x11e296['code']['localeCompare'](_0x2293d3[_0x5dd5c6(0x213)])))),'sheet':_0x5c3678[_0x5dd5c6(0x251)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x31f21a=_0x458a74['filter'](([,_0x41ee35])=>isImageContainer(_0x546301[_0x5dd5c6(0x1ac)](_0x41ee35)[_0x5dd5c6(0x25d)])),_0x37414b=_0x31f21a[_0x5dd5c6(0x221)](([,_0x59c4fc])=>_0x546301[_0x5dd5c6(0x1ac)](_0x59c4fc)[_0x5dd5c6(0x25d)][_0x5dd5c6(0x23d)]()==='upload')[_0x5dd5c6(0x1b9)](([,_0x1b37d0])=>_0x1b37d0);if(_0x37414b[_0x5dd5c6(0x1d5)])_0x653cb5['uploadFields']=_0x37414b;const _0x5822eb=_0x13b942?resolveWorksheetImages(_0x13b942,_0x5c3678[_0x5dd5c6(0x251)],new Set(_0x31f21a['map'](([_0x1d42a])=>_0x5f4b2d[_0x5dd5c6(0x1ac)](_0x1d42a)))):[],_0x521577=new Map();for(const _0x2d21bf of _0x5822eb){const _0x1c97e1=_0x2d21bf['row']+':'+_0x2d21bf['col'],_0x5a12e6=_0x521577[_0x5dd5c6(0x1ac)](_0x1c97e1)??[];_0x5a12e6[_0x5dd5c6(0x26f)](_0x2d21bf),_0x521577[_0x5dd5c6(0x1c6)](_0x1c97e1,_0x5a12e6);}const _0x301ebe=new Map();let _0xf45a26=0x0;_0x31f21a[_0x5dd5c6(0x1d5)]&&(_0x653cb5['imageFields']=_0x31f21a[_0x5dd5c6(0x1b9)](([,_0x1ec52a])=>_0x1ec52a),_0x653cb5[_0x5dd5c6(0x1cf)]=[],_0x653cb5[_0x5dd5c6(0x262)]=0x1,_0x653cb5[_0x5dd5c6(0x277)]=[]);const _0x55a525=Math[_0x5dd5c6(0x1b0)](0x0,..._0x5822eb['map'](_0x4382a7=>_0x4382a7['row']));let _0x5ed498=0x0;const _0x556344=new Set(_0x458a74['map'](([_0x3c86d6])=>_0x5f4b2d[_0x5dd5c6(0x1ac)](_0x3c86d6)));for(let _0x598bda=_0x49b633+0x1;_0x598bda<=Math[_0x5dd5c6(0x1b0)](_0x5c3678[_0x5dd5c6(0x22c)],_0x55a525);_0x598bda++){const _0x29564e=_0x5c3678[_0x5dd5c6(0x275)](_0x598bda);if(_0x29564e['hidden']||_0x5822eb[_0x5dd5c6(0x1d0)](_0x594191=>_0x594191['row']===_0x598bda&&_0x594191[_0x5dd5c6(0x28e)]))_0x5ed498++;let _0x467180=_0x5822eb[_0x5dd5c6(0x1d0)](_0x21d2f6=>_0x21d2f6[_0x5dd5c6(0x1cb)]===_0x598bda);_0x29564e['eachCell'](_0x41fc61=>{const _0x1d24a4=_0x5dd5c6;if(_0x41fc61[_0x1d24a4(0x1b3)]!==null&&_0x41fc61[_0x1d24a4(0x1b3)]!==undefined&&_0x41fc61[_0x1d24a4(0x1b3)]!=='')_0x467180=!![];});if(!_0x467180){_0x653cb5[_0x5dd5c6(0x1ba)]['push'](_0x598bda);continue;}const _0x5f1e81=Object[_0x5dd5c6(0x208)](null);_0x29564e[_0x5dd5c6(0x296)]((_0x6a74cd,_0x4f67af)=>{const _0x285f89=_0x5dd5c6;if(_0x556344[_0x285f89(0x218)](_0x4f67af))return;try{const _0x184a93=valueOf(_0x6a74cd);if(typeof _0x184a93===_0x285f89(0x201)&&Buffer['byteLength'](_0x184a93,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x262cae){_0x653cb5[_0x285f89(0x1dd)][_0x285f89(0x26f)]({'rowNumber':_0x598bda,'field':_0x6a74cd[_0x285f89(0x1bf)],'message':_0x262cae[_0x285f89(0x256)]});}});for(const [_0x38b862,_0x4e37bf]of _0x458a74){try{const _0x45e5c5=_0x29564e['getCell'](_0x5f4b2d[_0x5dd5c6(0x1ac)](_0x38b862)),_0x544dba=_0x546301[_0x5dd5c6(0x1ac)](_0x4e37bf);if(!isImageContainer(_0x544dba[_0x5dd5c6(0x25d)])){_0x5f1e81[_0x4e37bf]=convert(valueOf(_0x45e5c5),_0x544dba);continue;}const _0x337b7d=_0x521577[_0x5dd5c6(0x1ac)](_0x598bda+':'+_0x5f4b2d[_0x5dd5c6(0x1ac)](_0x38b862))??[];if(_0x337b7d['some'](_0x24bed4=>_0x24bed4[_0x5dd5c6(0x215)]))throw Error(_0x337b7d[_0x5dd5c6(0x266)](_0x2547af=>_0x2547af[_0x5dd5c6(0x215)])[_0x5dd5c6(0x215)]);if(_0x45e5c5[_0x5dd5c6(0x1b3)]!=null&&_0x45e5c5[_0x5dd5c6(0x1b3)]!==''&&!_0x337b7d['some'](_0xba0887=>_0xba0887[_0x5dd5c6(0x1f9)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x4d0860=[];for(const _0x528859 of _0x337b7d)for(const _0x4d86dc of _0x528859[_0x5dd5c6(0x277)]){const _0x3ea722=_0x13b942['get'](_0x4d86dc);if(!_0x3ea722)throw Error('Missing\x20image\x20media:\x20'+_0x4d86dc+'.');const _0x6e3d07=hash(_0x3ea722),_0x743dd0=_0x301ebe[_0x5dd5c6(0x1ac)](_0x6e3d07)??validateImageBytes(_0x3ea722);if(!_0x301ebe[_0x5dd5c6(0x218)](_0x743dd0[_0x5dd5c6(0x280)])){_0xf45a26+=_0x743dd0[_0x5dd5c6(0x1ca)];if(_0xf45a26>0x32*0x400*0x400)throw Error(_0x5dd5c6(0x237));_0x301ebe[_0x5dd5c6(0x1c6)](_0x743dd0[_0x5dd5c6(0x280)],_0x743dd0);}_0x4d0860[_0x5dd5c6(0x26f)](_0x743dd0[_0x5dd5c6(0x280)]);}if(!_0x4d0860['length']&&_0x544dba['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x4d0860[_0x5dd5c6(0x1d5)])_0x653cb5[_0x5dd5c6(0x1cf)][_0x5dd5c6(0x26f)]({'rowNumber':_0x598bda,'field':_0x4e37bf,'hashes':_0x4d0860});_0x5f1e81[_0x4e37bf]=_0x4d0860[_0x5dd5c6(0x1b9)](_0x3c99b7=>{const _0xe55400=_0x5dd5c6,_0x33bafd=_0x301ebe['get'](_0x3c99b7),_0xb50aec=_0x33bafd['type']===_0xe55400(0x1bc)?_0xe55400(0x1ef):_0x33bafd[_0xe55400(0x25d)]['slice'](0x6),_0x25db7f=_0x3c99b7+'.'+_0xb50aec,_0x362d03=_0xe55400(0x22a)+'0'[_0xe55400(0x20c)](0x40)+'/'+_0x25db7f;return _0x544dba[_0xe55400(0x25d)][_0xe55400(0x23d)]()===_0xe55400(0x1e4)?{'fileName':_0x25db7f,'filePath':_0x362d03}:{'key':_0x362d03,'name':_0x25db7f,'type':_0x33bafd[_0xe55400(0x25d)],'size':_0x33bafd[_0xe55400(0x1ca)]};});}catch(_0x2741e4){_0x653cb5[_0x5dd5c6(0x1dd)][_0x5dd5c6(0x26f)]({'rowNumber':_0x598bda,'field':_0x4e37bf,'message':_0x2741e4[_0x5dd5c6(0x256)]});}}_0x653cb5[_0x5dd5c6(0x292)][_0x5dd5c6(0x26f)]({'rowNumber':_0x598bda,'values':_0x5f1e81});}if(_0x653cb5[_0x5dd5c6(0x277)])_0x653cb5[_0x5dd5c6(0x277)]=[..._0x301ebe[_0x5dd5c6(0x257)]()];if(_0x5ed498)_0x653cb5[_0x5dd5c6(0x1f6)][_0x5dd5c6(0x26f)](_0x5ed498+_0x5dd5c6(0x1ad));return _0x653cb5;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x22a23b,_0x111a1c){const _0x1d6fe3=a145_0x20b4,_0xd8b88=_0x22a23b();while(!![]){try{const _0x1dc751=-parseInt(_0x1d6fe3(0xd2))/0x1+-parseInt(_0x1d6fe3(0xe6))/0x2*(parseInt(_0x1d6fe3(0xde))/0x3)+-parseInt(_0x1d6fe3(0xda))/0x4+-parseInt(_0x1d6fe3(0xcd))/0x5*(parseInt(_0x1d6fe3(0xdf))/0x6)+-parseInt(_0x1d6fe3(0xe7))/0x7*(parseInt(_0x1d6fe3(0xe0))/0x8)+parseInt(_0x1d6fe3(0xd9))/0x9+parseInt(_0x1d6fe3(0xdd))/0xa;if(_0x1dc751===_0x111a1c)break;else _0xd8b88['push'](_0xd8b88['shift']());}catch(_0xce2fae){_0xd8b88['push'](_0xd8b88['shift']());}}}(a145_0x183b,0x924b4));function a145_0x183b(){const _0x3ebd48=['decode','Invalid\x20GIF\x20block.','message','Truncated\x20JPEG.','max','omggif','1690731wUgNlY','379616WzalLX','from','IDAT','33280980zxZWnC','215121OofbJE','2689410BBJlsI','6816104CgTcFL','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','ceil','image/gif','Invalid\x20PNG\x20header.','subarray','10chlEpA','7pRXDkE','Invalid\x20PNG\x20decoded\x20scanline\x20size.','Truncated\x20PNG\x20chunk.','toString','readUInt32BE','image/png','sync','length','width','push','read','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','GIF\x20frame\x20exceeds\x20canvas.','isSafeInteger','height','acTL','hex','GIF\x20image\x20has\x20no\x20palette.','Missing\x20PNG\x20data/end.','sha256','readUInt16LE','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','decodeAndBlitFrameRGBA','Invalid\x20GIF\x20LZW\x20code\x20size.','ascii','Missing\x20GIF\x20trailer.','concat','includes','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Animated\x20PNG\x20is\x20not\x20supported.','5NPIKcr','Invalid\x20GIF\x20trailer.','equals','Invalid\x20GIF\x20LZW\x20pixel\x20data.','Truncated\x20PNG\x20data.','1163050xJJSSb'];a145_0x183b=function(){return _0x3ebd48;};return a145_0x183b();}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x4f1140,_0x53978f){const _0x346c36=a145_0x20b4;if(!Number[_0x346c36(0xbc)](_0x4f1140)||!Number[_0x346c36(0xbc)](_0x53978f)||_0x4f1140<0x1||_0x53978f<0x1||_0x4f1140*_0x53978f>MAX_PIXELS)throw Error(_0x346c36(0xc4));}function validateGif(_0x3cd9d3){const _0x4fb059=a145_0x20b4;let _0x2e3652=0xd,_0x454d1a=0x0,_0x5a6ffa=0x0;const _0x32f133=_0x3cd9d3[_0x4fb059(0xc3)](0x6),_0x6df2d5=_0x3cd9d3[_0x4fb059(0xc3)](0x8),_0x4113a9=_0x3cd9d3[0xa]&0x80?0x1<<(_0x3cd9d3[0xa]&0x7)+0x1:0x0,_0x5204a3=_0xabb601=>{if(_0x2e3652+_0xabb601>_0x3cd9d3['length'])throw Error('Truncated\x20GIF\x20data.');};_0x2e3652+=_0x4113a9*0x3,_0x5204a3(0x0);const _0x16114b=()=>{const _0x4abee5=_0x4fb059,_0x1760d3=[];while(!![]){_0x5204a3(0x1);const _0x22321a=_0x3cd9d3[_0x2e3652++];if(!_0x22321a)break;_0x5204a3(_0x22321a),_0x1760d3[_0x4abee5(0xb8)](_0x3cd9d3['subarray'](_0x2e3652,_0x2e3652+_0x22321a)),_0x2e3652+=_0x22321a;}return Buffer[_0x4abee5(0xc9)](_0x1760d3);};while(_0x2e3652<_0x3cd9d3['length']){const _0x1e5d27=_0x3cd9d3[_0x2e3652++];if(_0x1e5d27===0x3b){if(!_0x454d1a||_0x2e3652!==_0x3cd9d3[_0x4fb059(0xb6)])throw Error(_0x4fb059(0xce));return;}if(_0x1e5d27===0x21){_0x5204a3(0x1),_0x2e3652++,_0x16114b();continue;}if(_0x1e5d27!==0x2c)throw Error(_0x4fb059(0xd4));_0x5204a3(0x9);const _0x44d00e=_0x3cd9d3[_0x4fb059(0xc3)](_0x2e3652),_0x2d48b6=_0x3cd9d3[_0x4fb059(0xc3)](_0x2e3652+0x2),_0x36fe3b=_0x3cd9d3[_0x4fb059(0xc3)](_0x2e3652+0x4),_0x108e77=_0x3cd9d3['readUInt16LE'](_0x2e3652+0x6),_0x131d77=_0x3cd9d3[_0x2e3652+0x8];_0x2e3652+=0x9,dimensions(_0x36fe3b,_0x108e77);if(_0x44d00e+_0x36fe3b>_0x32f133||_0x2d48b6+_0x108e77>_0x6df2d5||++_0x454d1a>0x2710||(_0x5a6ffa+=_0x32f133*_0x6df2d5)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x50d6ff=_0x131d77&0x80?0x1<<(_0x131d77&0x7)+0x1:_0x4113a9;if(!_0x50d6ff)throw Error(_0x4fb059(0xc0));_0x131d77&0x80&&(_0x5204a3(_0x50d6ff*0x3),_0x2e3652+=_0x50d6ff*0x3);_0x5204a3(0x1);const _0x4ae1cd=_0x3cd9d3[_0x2e3652++];if(_0x4ae1cd<0x2||_0x4ae1cd>0x8)throw Error(_0x4fb059(0xc6));const _0x573282=_0x16114b(),_0x3b6ebd=0x1<<_0x4ae1cd,_0x2eec9e=_0x3b6ebd+0x1;let _0x323012=_0x4ae1cd+0x1,_0x54fb95=_0x2eec9e+0x1,_0x58ef0a=0x0,_0x41e186=-0x1,_0x879a49=0x0,_0x803fb=![];const _0x31e6fb=new Uint32Array(0x1000),_0x54ca15=new Uint16Array(0x1000);for(let _0x5e3e27=0x0;_0x5e3e27<_0x3b6ebd;_0x5e3e27++){_0x31e6fb[_0x5e3e27]=0x1,_0x54ca15[_0x5e3e27]=_0x5e3e27;}while(_0x58ef0a+_0x323012<=_0x573282[_0x4fb059(0xb6)]*0x8){let _0x24c984=0x0;for(let _0x42bd3e=0x0;_0x42bd3e<_0x323012;_0x42bd3e++,_0x58ef0a++)_0x24c984|=(_0x573282[_0x58ef0a>>0x3]>>(_0x58ef0a&0x7)&0x1)<<_0x42bd3e;if(_0x24c984===_0x3b6ebd){_0x323012=_0x4ae1cd+0x1,_0x54fb95=_0x2eec9e+0x1,_0x41e186=-0x1;continue;}if(_0x24c984===_0x2eec9e){_0x803fb=!![];break;}if(_0x24c984>_0x54fb95||_0x24c984===_0x54fb95&&_0x41e186<0x0||_0x41e186<0x0&&_0x24c984>=_0x3b6ebd)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x363489=_0x24c984===_0x54fb95?_0x31e6fb[_0x41e186]+0x1:_0x31e6fb[_0x24c984],_0x19fa74=_0x24c984===_0x54fb95?_0x54ca15[_0x41e186]:_0x54ca15[_0x24c984];if(!_0x363489||_0x19fa74>=_0x50d6ff||(_0x879a49+=_0x363489)>_0x36fe3b*_0x108e77)throw Error(_0x4fb059(0xd0));if(_0x41e186>=0x0&&_0x54fb95<0x1000){_0x31e6fb[_0x54fb95]=_0x31e6fb[_0x41e186]+0x1,_0x54ca15[_0x54fb95]=Math['max'](_0x54ca15[_0x41e186],_0x19fa74),_0x54fb95++;if(_0x54fb95===0x1<<_0x323012&&_0x323012<0xc)_0x323012++;}_0x41e186=_0x24c984;}if(!_0x803fb||_0x879a49!==_0x36fe3b*_0x108e77)throw Error(_0x4fb059(0xba));}throw Error(_0x4fb059(0xc8));}function a145_0x20b4(_0x3738c8,_0x46fde7){_0x3738c8=_0x3738c8-0xb5;const _0x183b4c=a145_0x183b();let _0x20b447=_0x183b4c[_0x3738c8];return _0x20b447;}export function validateImageBytes(_0x11ae31){const _0x17d61c=a145_0x20b4;if(!_0x11ae31[_0x17d61c(0xb6)]||_0x11ae31[_0x17d61c(0xb6)]>0xa*0x400*0x400)throw Error(_0x17d61c(0xe1));let _0x46240e;try{if(_0x11ae31['subarray'](0x0,0x8)[_0x17d61c(0xcf)](Buffer[_0x17d61c(0xdb)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x11ae31[_0x17d61c(0xb6)]<0x21||_0x11ae31['toString'](_0x17d61c(0xc7),0xc,0x10)!=='IHDR')throw Error(_0x17d61c(0xe4));dimensions(_0x11ae31[_0x17d61c(0xeb)](0x10),_0x11ae31[_0x17d61c(0xeb)](0x14));const _0x234752=_0x11ae31[_0x17d61c(0xeb)](0x10),_0x3cf992=_0x11ae31[_0x17d61c(0xeb)](0x14),_0x5446b7=_0x11ae31[0x18],_0x4fb431=_0x11ae31[0x19],_0x30c038=_0x11ae31[0x1c],_0x241230={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x4fb431];if(!_0x241230||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x5446b7)||_0x30c038>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x44560d=_0x2af70e=>Math[_0x17d61c(0xe2)](_0x2af70e*_0x241230*_0x5446b7/0x8)+0x1;let _0x12baa7=_0x44560d(_0x234752)*_0x3cf992;if(_0x30c038){_0x12baa7=0x0;for(const [_0xdaf359,_0x55742f,_0x16cff8,_0x1ebe4d]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 _0x68fe3c=Math[_0x17d61c(0xd7)](0x0,Math['ceil']((_0x234752-_0xdaf359)/_0x16cff8)),_0x2f8400=Math[_0x17d61c(0xd7)](0x0,Math[_0x17d61c(0xe2)]((_0x3cf992-_0x55742f)/_0x1ebe4d));if(_0x68fe3c&&_0x2f8400)_0x12baa7+=_0x44560d(_0x68fe3c)*_0x2f8400;}}let _0x386db3=0x8,_0x2dfe89=![];const _0x32f3af=[];while(_0x386db3<_0x11ae31[_0x17d61c(0xb6)]){if(_0x386db3+0xc>_0x11ae31[_0x17d61c(0xb6)])throw Error(_0x17d61c(0xe9));const _0x51fce1=_0x11ae31[_0x17d61c(0xeb)](_0x386db3),_0x59845e=_0x11ae31[_0x17d61c(0xea)](_0x17d61c(0xc7),_0x386db3+0x4,_0x386db3+0x8);if(_0x59845e===_0x17d61c(0xbe))throw Error(_0x17d61c(0xcc));if(_0x386db3+_0x51fce1+0xc>_0x11ae31['length'])throw Error(_0x17d61c(0xd1));if(_0x59845e===_0x17d61c(0xdc))_0x32f3af['push'](_0x11ae31[_0x17d61c(0xe5)](_0x386db3+0x8,_0x386db3+0x8+_0x51fce1));_0x386db3+=_0x51fce1+0xc;if(_0x59845e==='IEND'){if(_0x51fce1||_0x386db3!==_0x11ae31['length'])throw Error('Invalid\x20PNG\x20end.');_0x2dfe89=!![];break;}}if(!_0x2dfe89||!_0x32f3af[_0x17d61c(0xb6)])throw Error(_0x17d61c(0xc1));if(inflateSync(Buffer['concat'](_0x32f3af),{'maxOutputLength':_0x12baa7+0x1})[_0x17d61c(0xb6)]!==_0x12baa7)throw Error(_0x17d61c(0xe8));const {PNG:_0x25bd36}=require('pngjs'),_0x74ae21=_0x25bd36[_0x17d61c(0xb5)][_0x17d61c(0xb9)](_0x11ae31,{'checkCRC':!![]});dimensions(_0x74ae21[_0x17d61c(0xb7)],_0x74ae21[_0x17d61c(0xbd)]),_0x46240e=_0x17d61c(0xec);}else{if(_0x11ae31[0x0]===0xff&&_0x11ae31[0x1]===0xd8){if(_0x11ae31['at'](-0x2)!==0xff||_0x11ae31['at'](-0x1)!==0xd9)throw Error(_0x17d61c(0xd6));const _0x2c3b4a=require('jpeg-js'),_0x599862=_0x2c3b4a[_0x17d61c(0xd3)](_0x11ae31,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x599862[_0x17d61c(0xb7)],_0x599862[_0x17d61c(0xbd)]),_0x46240e='image/jpeg';}else{if(['GIF87a','GIF89a'][_0x17d61c(0xca)](_0x11ae31[_0x17d61c(0xea)](_0x17d61c(0xc7),0x0,0x6))){if(_0x11ae31[_0x17d61c(0xb6)]<0xe||_0x11ae31['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x11ae31['readUInt16LE'](0x6),_0x11ae31[_0x17d61c(0xc3)](0x8)),validateGif(_0x11ae31);const {GifReader:_0x82bf78}=require(_0x17d61c(0xd8)),_0x46c589=new _0x82bf78(_0x11ae31);dimensions(_0x46c589[_0x17d61c(0xb7)],_0x46c589[_0x17d61c(0xbd)]);const _0x394d25=_0x46c589['numFrames']();if(!_0x394d25||_0x394d25>0x2710||_0x394d25*_0x46c589[_0x17d61c(0xb7)]*_0x46c589[_0x17d61c(0xbd)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x589607=new Uint8Array(_0x46c589['width']*_0x46c589[_0x17d61c(0xbd)]*0x4);for(let _0x18cb30=0x0;_0x18cb30<_0x394d25;_0x18cb30++){const _0x2a7c28=_0x46c589['frameInfo'](_0x18cb30);if(_0x2a7c28['x']+_0x2a7c28[_0x17d61c(0xb7)]>_0x46c589['width']||_0x2a7c28['y']+_0x2a7c28[_0x17d61c(0xbd)]>_0x46c589[_0x17d61c(0xbd)])throw Error(_0x17d61c(0xbb));_0x46c589[_0x17d61c(0xc5)](_0x18cb30,_0x589607);}_0x46240e=_0x17d61c(0xe3);}else throw Error(_0x17d61c(0xcb));}}}catch(_0x1b4fe2){throw Error('Invalid\x20image:\x20'+_0x1b4fe2[_0x17d61c(0xd5)]);}return{'contentHash':createHash(_0x17d61c(0xc2))['update'](_0x11ae31)['digest'](_0x17d61c(0xbf)),'type':_0x46240e,'size':_0x11ae31[_0x17d61c(0xb6)],'bytes':_0x11ae31};}
|
|
1
|
+
(function(_0x42ebfd,_0x53dac1){const _0x14c7f1=a145_0x802e,_0xe7a10b=_0x42ebfd();while(!![]){try{const _0x255f65=parseInt(_0x14c7f1(0x1c9))/0x1+-parseInt(_0x14c7f1(0x1c2))/0x2+-parseInt(_0x14c7f1(0x1bc))/0x3*(-parseInt(_0x14c7f1(0x1bf))/0x4)+parseInt(_0x14c7f1(0x1d1))/0x5+parseInt(_0x14c7f1(0x1c5))/0x6+parseInt(_0x14c7f1(0x1dc))/0x7*(-parseInt(_0x14c7f1(0x1cf))/0x8)+parseInt(_0x14c7f1(0x1e4))/0x9*(-parseInt(_0x14c7f1(0x1bb))/0xa);if(_0x255f65===_0x53dac1)break;else _0xe7a10b['push'](_0xe7a10b['shift']());}catch(_0x3830fb){_0xe7a10b['push'](_0xe7a10b['shift']());}}}(a145_0x590d,0xe335c));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x802e(_0x5269e9,_0x45af2b){_0x5269e9=_0x5269e9-0x1b0;const _0x590da4=a145_0x590d();let _0x802ec9=_0x590da4[_0x5269e9];return _0x802ec9;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a145_0x590d(){const _0x4a9857=['GIF\x20frame\x20exceeds\x20canvas.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','pngjs','1256590uCQgZg','Invalid\x20PNG\x20end.','acTL','Invalid\x20PNG\x20decoded\x20scanline\x20size.','GIF87a','jpeg-js','7576PUMJnW','numFrames','5824230XAjkqb','height','Invalid\x20image:\x20','Invalid\x20GIF\x20block.','Truncated\x20GIF\x20data.','width','readUInt16LE','Missing\x20GIF\x20trailer.','max','Missing\x20PNG\x20data/end.','frameInfo','6496lFyOUT','ceil','Truncated\x20PNG\x20data.','image/gif','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','sync','Animated\x20PNG\x20is\x20not\x20supported.','length','14730777NldHlb','Truncated\x20PNG\x20chunk.','equals','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','image/jpeg','IEND','readUInt32BE','read','update','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','push','subarray','Invalid\x20GIF\x20LZW\x20pixel\x20data.','isSafeInteger','Truncated\x20GIF.','digest','toString','hex','IDAT','Invalid\x20PNG\x20header.','IHDR','10SVqWMl','3HFEvVA','concat','from','5060044kmWYRa','sha256','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','2086806iFJHpb','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','image/png','4819062sGKmWJ'];a145_0x590d=function(){return _0x4a9857;};return a145_0x590d();}function dimensions(_0x5933ea,_0x5101fd){const _0x27f731=a145_0x802e;if(!Number[_0x27f731(0x1b3)](_0x5933ea)||!Number[_0x27f731(0x1b3)](_0x5101fd)||_0x5933ea<0x1||_0x5101fd<0x1||_0x5933ea*_0x5101fd>MAX_PIXELS)throw Error(_0x27f731(0x1e7));}function validateGif(_0x42754d){const _0x4ac412=a145_0x802e;let _0x2b6115=0xd,_0x235333=0x0,_0x5278f5=0x0;const _0x5e0c73=_0x42754d[_0x4ac412(0x1d7)](0x6),_0x46fa29=_0x42754d[_0x4ac412(0x1d7)](0x8),_0x305223=_0x42754d[0xa]&0x80?0x1<<(_0x42754d[0xa]&0x7)+0x1:0x0,_0x5883f5=_0x41ea1b=>{const _0x382541=_0x4ac412;if(_0x2b6115+_0x41ea1b>_0x42754d[_0x382541(0x1e3)])throw Error(_0x382541(0x1d5));};_0x2b6115+=_0x305223*0x3,_0x5883f5(0x0);const _0x2d5dae=()=>{const _0x1a8164=_0x4ac412,_0x5dae2f=[];while(!![]){_0x5883f5(0x1);const _0x34ea3c=_0x42754d[_0x2b6115++];if(!_0x34ea3c)break;_0x5883f5(_0x34ea3c),_0x5dae2f['push'](_0x42754d[_0x1a8164(0x1b1)](_0x2b6115,_0x2b6115+_0x34ea3c)),_0x2b6115+=_0x34ea3c;}return Buffer['concat'](_0x5dae2f);};while(_0x2b6115<_0x42754d[_0x4ac412(0x1e3)]){const _0x5d204e=_0x42754d[_0x2b6115++];if(_0x5d204e===0x3b){if(!_0x235333||_0x2b6115!==_0x42754d['length'])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x5d204e===0x21){_0x5883f5(0x1),_0x2b6115++,_0x2d5dae();continue;}if(_0x5d204e!==0x2c)throw Error(_0x4ac412(0x1d4));_0x5883f5(0x9);const _0xe39654=_0x42754d[_0x4ac412(0x1d7)](_0x2b6115),_0x23d80a=_0x42754d['readUInt16LE'](_0x2b6115+0x2),_0x3b6290=_0x42754d[_0x4ac412(0x1d7)](_0x2b6115+0x4),_0x33b222=_0x42754d['readUInt16LE'](_0x2b6115+0x6),_0x1c660a=_0x42754d[_0x2b6115+0x8];_0x2b6115+=0x9,dimensions(_0x3b6290,_0x33b222);if(_0xe39654+_0x3b6290>_0x5e0c73||_0x23d80a+_0x33b222>_0x46fa29||++_0x235333>0x2710||(_0x5278f5+=_0x5e0c73*_0x46fa29)>MAX_PIXELS)throw Error(_0x4ac412(0x1c7));const _0x1e884e=_0x1c660a&0x80?0x1<<(_0x1c660a&0x7)+0x1:_0x305223;if(!_0x1e884e)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x1c660a&0x80&&(_0x5883f5(_0x1e884e*0x3),_0x2b6115+=_0x1e884e*0x3);_0x5883f5(0x1);const _0x6c2e97=_0x42754d[_0x2b6115++];if(_0x6c2e97<0x2||_0x6c2e97>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0xd71588=_0x2d5dae(),_0x55e628=0x1<<_0x6c2e97,_0x706411=_0x55e628+0x1;let _0x49b177=_0x6c2e97+0x1,_0x39c38a=_0x706411+0x1,_0x20703a=0x0,_0x34462d=-0x1,_0xc9bda8=0x0,_0x313b0c=![];const _0x553cec=new Uint32Array(0x1000),_0x5b78f1=new Uint16Array(0x1000);for(let _0x11f259=0x0;_0x11f259<_0x55e628;_0x11f259++){_0x553cec[_0x11f259]=0x1,_0x5b78f1[_0x11f259]=_0x11f259;}while(_0x20703a+_0x49b177<=_0xd71588['length']*0x8){let _0x1e9690=0x0;for(let _0x36e262=0x0;_0x36e262<_0x49b177;_0x36e262++,_0x20703a++)_0x1e9690|=(_0xd71588[_0x20703a>>0x3]>>(_0x20703a&0x7)&0x1)<<_0x36e262;if(_0x1e9690===_0x55e628){_0x49b177=_0x6c2e97+0x1,_0x39c38a=_0x706411+0x1,_0x34462d=-0x1;continue;}if(_0x1e9690===_0x706411){_0x313b0c=!![];break;}if(_0x1e9690>_0x39c38a||_0x1e9690===_0x39c38a&&_0x34462d<0x0||_0x34462d<0x0&&_0x1e9690>=_0x55e628)throw Error(_0x4ac412(0x1c1));const _0x2f1c18=_0x1e9690===_0x39c38a?_0x553cec[_0x34462d]+0x1:_0x553cec[_0x1e9690],_0x49c5e2=_0x1e9690===_0x39c38a?_0x5b78f1[_0x34462d]:_0x5b78f1[_0x1e9690];if(!_0x2f1c18||_0x49c5e2>=_0x1e884e||(_0xc9bda8+=_0x2f1c18)>_0x3b6290*_0x33b222)throw Error(_0x4ac412(0x1b2));if(_0x34462d>=0x0&&_0x39c38a<0x1000){_0x553cec[_0x39c38a]=_0x553cec[_0x34462d]+0x1,_0x5b78f1[_0x39c38a]=Math[_0x4ac412(0x1d9)](_0x5b78f1[_0x34462d],_0x49c5e2),_0x39c38a++;if(_0x39c38a===0x1<<_0x49b177&&_0x49b177<0xc)_0x49b177++;}_0x34462d=_0x1e9690;}if(!_0x313b0c||_0xc9bda8!==_0x3b6290*_0x33b222)throw Error(_0x4ac412(0x1e0));}throw Error(_0x4ac412(0x1d8));}export function validateImageBytes(_0x306a3a){const _0x59f255=a145_0x802e;if(!_0x306a3a[_0x59f255(0x1e3)]||_0x306a3a[_0x59f255(0x1e3)]>0xa*0x400*0x400)throw Error(_0x59f255(0x1c3));let _0x5bed9f;try{if(_0x306a3a[_0x59f255(0x1b1)](0x0,0x8)[_0x59f255(0x1e6)](Buffer[_0x59f255(0x1be)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x306a3a[_0x59f255(0x1e3)]<0x21||_0x306a3a['toString']('ascii',0xc,0x10)!==_0x59f255(0x1ba))throw Error(_0x59f255(0x1b9));dimensions(_0x306a3a['readUInt32BE'](0x10),_0x306a3a[_0x59f255(0x1ea)](0x14));const _0x3bc861=_0x306a3a[_0x59f255(0x1ea)](0x10),_0x4b7f5f=_0x306a3a[_0x59f255(0x1ea)](0x14),_0x8b1c89=_0x306a3a[0x18],_0x32a047=_0x306a3a[0x19],_0x529a8e=_0x306a3a[0x1c],_0x4d2e4={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x32a047];if(!_0x4d2e4||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x8b1c89)||_0x529a8e>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x955c93=_0x586ed5=>Math[_0x59f255(0x1dd)](_0x586ed5*_0x4d2e4*_0x8b1c89/0x8)+0x1;let _0x29b026=_0x955c93(_0x3bc861)*_0x4b7f5f;if(_0x529a8e){_0x29b026=0x0;for(const [_0x44ba83,_0x192da5,_0x1ce545,_0x7eef60]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 _0x4bf6f2=Math['max'](0x0,Math[_0x59f255(0x1dd)]((_0x3bc861-_0x44ba83)/_0x1ce545)),_0x526734=Math[_0x59f255(0x1d9)](0x0,Math[_0x59f255(0x1dd)]((_0x4b7f5f-_0x192da5)/_0x7eef60));if(_0x4bf6f2&&_0x526734)_0x29b026+=_0x955c93(_0x4bf6f2)*_0x526734;}}let _0x4e1611=0x8,_0x5abe39=![];const _0x2f310d=[];while(_0x4e1611<_0x306a3a['length']){if(_0x4e1611+0xc>_0x306a3a[_0x59f255(0x1e3)])throw Error(_0x59f255(0x1e5));const _0x3661e8=_0x306a3a[_0x59f255(0x1ea)](_0x4e1611),_0x2f4fde=_0x306a3a[_0x59f255(0x1b6)]('ascii',_0x4e1611+0x4,_0x4e1611+0x8);if(_0x2f4fde===_0x59f255(0x1cb))throw Error(_0x59f255(0x1e2));if(_0x4e1611+_0x3661e8+0xc>_0x306a3a[_0x59f255(0x1e3)])throw Error(_0x59f255(0x1de));if(_0x2f4fde===_0x59f255(0x1b8))_0x2f310d[_0x59f255(0x1b0)](_0x306a3a[_0x59f255(0x1b1)](_0x4e1611+0x8,_0x4e1611+0x8+_0x3661e8));_0x4e1611+=_0x3661e8+0xc;if(_0x2f4fde===_0x59f255(0x1e9)){if(_0x3661e8||_0x4e1611!==_0x306a3a[_0x59f255(0x1e3)])throw Error(_0x59f255(0x1ca));_0x5abe39=!![];break;}}if(!_0x5abe39||!_0x2f310d[_0x59f255(0x1e3)])throw Error(_0x59f255(0x1da));if(inflateSync(Buffer[_0x59f255(0x1bd)](_0x2f310d),{'maxOutputLength':_0x29b026+0x1})[_0x59f255(0x1e3)]!==_0x29b026)throw Error(_0x59f255(0x1cc));const {PNG:_0x1d32fc}=require(_0x59f255(0x1c8)),_0x4009c5=_0x1d32fc[_0x59f255(0x1e1)][_0x59f255(0x1eb)](_0x306a3a,{'checkCRC':!![]});dimensions(_0x4009c5[_0x59f255(0x1d6)],_0x4009c5['height']),_0x5bed9f=_0x59f255(0x1c4);}else{if(_0x306a3a[0x0]===0xff&&_0x306a3a[0x1]===0xd8){if(_0x306a3a['at'](-0x2)!==0xff||_0x306a3a['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x5c57e8=require(_0x59f255(0x1ce)),_0x235514=_0x5c57e8['decode'](_0x306a3a,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x235514['width'],_0x235514[_0x59f255(0x1d2)]),_0x5bed9f=_0x59f255(0x1e8);}else{if([_0x59f255(0x1cd),'GIF89a']['includes'](_0x306a3a[_0x59f255(0x1b6)]('ascii',0x0,0x6))){if(_0x306a3a[_0x59f255(0x1e3)]<0xe||_0x306a3a['at'](-0x1)!==0x3b)throw Error(_0x59f255(0x1b4));dimensions(_0x306a3a[_0x59f255(0x1d7)](0x6),_0x306a3a[_0x59f255(0x1d7)](0x8)),validateGif(_0x306a3a);const {GifReader:_0x5028a0}=require('omggif'),_0x40b188=new _0x5028a0(_0x306a3a);dimensions(_0x40b188[_0x59f255(0x1d6)],_0x40b188['height']);const _0x2f3132=_0x40b188[_0x59f255(0x1d0)]();if(!_0x2f3132||_0x2f3132>0x2710||_0x2f3132*_0x40b188[_0x59f255(0x1d6)]*_0x40b188[_0x59f255(0x1d2)]>MAX_PIXELS)throw Error(_0x59f255(0x1c7));const _0x59df7f=new Uint8Array(_0x40b188[_0x59f255(0x1d6)]*_0x40b188['height']*0x4);for(let _0x75d077=0x0;_0x75d077<_0x2f3132;_0x75d077++){const _0x4ab28b=_0x40b188[_0x59f255(0x1db)](_0x75d077);if(_0x4ab28b['x']+_0x4ab28b['width']>_0x40b188['width']||_0x4ab28b['y']+_0x4ab28b['height']>_0x40b188['height'])throw Error(_0x59f255(0x1c6));_0x40b188['decodeAndBlitFrameRGBA'](_0x75d077,_0x59df7f);}_0x5bed9f=_0x59f255(0x1df);}else throw Error(_0x59f255(0x1ed));}}}catch(_0xaae1ef){throw Error(_0x59f255(0x1d3)+_0xaae1ef['message']);}return{'contentHash':createHash(_0x59f255(0x1c0))[_0x59f255(0x1ec)](_0x306a3a)[_0x59f255(0x1b5)](_0x59f255(0x1b7)),'type':_0x5bed9f,'size':_0x306a3a[_0x59f255(0x1e3)],'bytes':_0x306a3a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a146_0x208e54=a146_0xcd4d;(function(_0xe3798d,_0x57c521){const _0x5614dd=a146_0xcd4d,_0x2afee0=_0xe3798d();while(!![]){try{const _0x1c1030=parseInt(_0x5614dd(0xf4))/0x1*(parseInt(_0x5614dd(0x11b))/0x2)+-parseInt(_0x5614dd(0x124))/0x3*(-parseInt(_0x5614dd(0xb8))/0x4)+parseInt(_0x5614dd(0x11a))/0x5+-parseInt(_0x5614dd(0xca))/0x6+parseInt(_0x5614dd(0xdd))/0x7*(-parseInt(_0x5614dd(0x11e))/0x8)+parseInt(_0x5614dd(0xd0))/0x9+-parseInt(_0x5614dd(0xb2))/0xa;if(_0x1c1030===_0x57c521)break;else _0x2afee0['push'](_0x2afee0['shift']());}catch(_0x549631){_0x2afee0['push'](_0x2afee0['shift']());}}}(a146_0x35d5,0x570ba));import a146_0x5b11d3 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x208e54(0xa1),'http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x208e54(0x139)],DRAWING_MAIN=[a146_0x208e54(0xe3),a146_0x208e54(0x136)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a146_0x208e54(0x103)],RICH=[a146_0x208e54(0xe2)],RICH_RELS=[a146_0x208e54(0x10c)],WPS=[a146_0x208e54(0x108)],DEFAULT_NS=Object[a146_0x208e54(0xda)]([...[a146_0x208e54(0xd8),a146_0x208e54(0x14e),a146_0x208e54(0x11c),a146_0x208e54(0xeb),a146_0x208e54(0x10e),a146_0x208e54(0x9f),'c','f','v','sheetFormatPr','drawing',a146_0x208e54(0xba),a146_0x208e54(0x117),'metadataType','futureMetadata',a146_0x208e54(0x11f),'bk','rc',a146_0x208e54(0xac)]['map'](_0x1555ec=>[_0x1555ec,SHEET]),...['wsDr',a146_0x208e54(0xcb),a146_0x208e54(0xcf),a146_0x208e54(0xbd),'from','to',a146_0x208e54(0xc6),a146_0x208e54(0xdc),a146_0x208e54(0x10f),a146_0x208e54(0x13d),a146_0x208e54(0xec),'nvPicPr',a146_0x208e54(0x12a),a146_0x208e54(0xf7)][a146_0x208e54(0x121)](_0x56d0a8=>[_0x56d0a8,DRAWING]),...[a146_0x208e54(0xbf),a146_0x208e54(0x153),'rv',a146_0x208e54(0xb5),'s','k'][a146_0x208e54(0x121)](_0x510d1a=>[_0x510d1a,RICH]),[a146_0x208e54(0xbc),DRAWING_MAIN],[a146_0x208e54(0x109),RICH_RELS],[a146_0x208e54(0x119),RICH_RELS],[a146_0x208e54(0x151),PACKAGE],['Relationship',PACKAGE],['cellImages',WPS],['cellImage',WPS]]),matches=(_0x12ed0a,_0x164ec9,_0x74ebc4=DEFAULT_NS[_0x164ec9]??[])=>_0x12ed0a[a146_0x208e54(0x12f)]===_0x164ec9&&_0x74ebc4[a146_0x208e54(0xc7)](_0x12ed0a[a146_0x208e54(0xe9)]),children=(_0x4b1583,_0x3a163f,_0x192d3e=DEFAULT_NS[_0x3a163f])=>_0x4b1583[a146_0x208e54(0xf0)][a146_0x208e54(0xb9)](_0x1d90eb=>matches(_0x1d90eb,_0x3a163f,_0x192d3e)),chain=(_0x1579ba,..._0x4d87bb)=>_0x4d87bb['reduce']((_0x3ebc2d,_0x4e8d03)=>_0x3ebc2d['flatMap'](_0x597e41=>children(_0x597e41,_0x4e8d03)),[_0x1579ba]),relationshipTypes=_0xe2d43e=>{const _0x495f52=a146_0x208e54;if([_0x495f52(0xa0),_0x495f52(0x101)][_0x495f52(0xc7)](_0xe2d43e))return[_0x495f52(0x14f)+_0xe2d43e];if(_0xe2d43e===_0x495f52(0xcc))return[_0x495f52(0x106)];if(_0xe2d43e===_0x495f52(0x149)||_0xe2d43e===_0x495f52(0xd4))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0xe2d43e];return OFFICE_RELS['map'](_0x7f6791=>_0x7f6791+'/'+_0xe2d43e);};function one(_0x50fffa,_0x22b5f0){const _0x50fdee=a146_0x208e54;if(_0x50fffa['length']!==0x1)throw Error(_0x50fdee(0x127)+_0x22b5f0+'.');return _0x50fffa[0x0];}function a146_0xcd4d(_0x403905,_0x6d7c2a){_0x403905=_0x403905-0x9d;const _0x35d56c=a146_0x35d5();let _0xcd4d41=_0x35d56c[_0x403905];return _0xcd4d41;}function integer(_0x59197d,_0x519e67,_0x2fe9c9=0x186a0){const _0x23fd34=a146_0x208e54;if(!_0x59197d||!/^\d+$/['test'](_0x59197d)||!Number[_0x23fd34(0xa2)](Number(_0x59197d))||Number(_0x59197d)>_0x2fe9c9)throw Error(_0x23fd34(0xe6)+_0x519e67+'.');return Number(_0x59197d);}export function resolveWorksheetImages(_0x3071eb,_0x1c0f20,_0x1c8dac){const _0x4e974e=a146_0x208e54;let _0x1c250b=0x0,_0x3b2d89=0x0,_0x22e5ad=0x0;const _0x5e6ff4=new Map(),_0x4d7301=_0xd50480=>{const _0x5c4dd0=a146_0xcd4d;if(_0x5e6ff4[_0x5c4dd0(0xc9)](_0xd50480))return _0x5e6ff4[_0x5c4dd0(0xa5)](_0xd50480);const _0x52515e=_0x3071eb[_0x5c4dd0(0xa5)](_0xd50480);if(!_0x52515e)throw Error(_0x5c4dd0(0x140)+_0xd50480+'.');const _0x33e98f={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x20e071=[_0x33e98f],_0x48468c=new SaxesParser({'xmlns':!![]}),_0x76728b=()=>{const _0x393298=_0x5c4dd0;if(++_0x3b2d89>0x1e8480)throw Error(_0x393298(0xc0));};_0x48468c['on'](_0x5c4dd0(0x154),()=>{const _0x374f58=_0x5c4dd0;throw Error(_0x374f58(0xb4));}),_0x48468c['on'](_0x5c4dd0(0xee),_0x5d4c1b=>{const _0x491859=_0x5c4dd0;_0x76728b();if(++_0x1c250b>0x7a120||_0x20e071[_0x491859(0x150)]>0x40)throw Error(_0x491859(0x144));const _0xe9f3ce={};for(const _0x4a0a51 of Object['values'](_0x5d4c1b['attributes'])){const _0x2adc24=OFFICE_RELS[_0x491859(0xc7)](_0x4a0a51['uri'])?'r:'+_0x4a0a51[_0x491859(0xb3)]:_0x4a0a51[_0x491859(0xe9)]?'{'+_0x4a0a51[_0x491859(0xe9)]+'}'+_0x4a0a51[_0x491859(0xb3)]:_0x4a0a51[_0x491859(0xb3)];if(_0x2adc24 in _0xe9f3ce)throw Error(_0x491859(0xe5));_0xe9f3ce[_0x2adc24]=_0x4a0a51[_0x491859(0xa8)];}const _0x230e6a={'name':_0x5d4c1b[_0x491859(0xb3)],'uri':_0x5d4c1b[_0x491859(0xe9)],'attrs':_0xe9f3ce,'children':[],'text':''};_0x20e071['at'](-0x1)['children'][_0x491859(0x10a)](_0x230e6a),_0x20e071[_0x491859(0x10a)](_0x230e6a);}),_0x48468c['on'](_0x5c4dd0(0x12e),_0x3f759f=>{const _0x3d86d2=_0x5c4dd0;_0x76728b();const _0x41b2a2=_0x20e071['at'](-0x1);_0x41b2a2[_0x3d86d2(0x12e)]+=_0x3f759f;if(_0x41b2a2[_0x3d86d2(0x12e)][_0x3d86d2(0x150)]>0x10000)throw Error(_0x3d86d2(0xf9));}),_0x48468c['on'](_0x5c4dd0(0x115),()=>{_0x76728b(),_0x20e071['pop']();}),_0x48468c['on'](_0x5c4dd0(0xd7),_0x195aac=>{throw _0x195aac;}),_0x48468c[_0x5c4dd0(0x112)](_0x52515e[_0x5c4dd0(0xd6)]('utf8'))[_0x5c4dd0(0xde)]();const _0x47ce11=one(_0x33e98f[_0x5c4dd0(0xf0)],_0xd50480);return _0x5e6ff4['set'](_0xd50480,_0x47ce11),_0x47ce11;},_0x5aa776=new Map(),_0x558eb6=_0x5ab770=>{const _0x341dd4=a146_0xcd4d;if(_0x5aa776[_0x341dd4(0xc9)](_0x5ab770))return _0x5aa776['get'](_0x5ab770);const _0x1e8cc0=a146_0x5b11d3[_0x341dd4(0xbb)]['join'](a146_0x5b11d3['posix'][_0x341dd4(0xf2)](_0x5ab770),_0x341dd4(0x156),a146_0x5b11d3[_0x341dd4(0xbb)][_0x341dd4(0xdf)](_0x5ab770)+_0x341dd4(0xf3));if(!_0x3071eb[_0x341dd4(0xc9)](_0x1e8cc0))return[];const _0x37cb80=new Set(),_0x1b096e=_0x4d7301(_0x1e8cc0);if(!matches(_0x1b096e,_0x341dd4(0x151)))throw Error(_0x341dd4(0x152)+_0x1e8cc0+'.');const _0x2faa02=children(_0x1b096e,_0x341dd4(0xa6))[_0x341dd4(0x121)](_0x4ac82b=>{const _0x481706=_0x341dd4,{Id:_0x124d35,Type:_0xaec9b3,Target:_0x561988,TargetMode:_0x581022}=_0x4ac82b[_0x481706(0x10b)];if(!_0x124d35||_0x37cb80[_0x481706(0xc9)](_0x124d35)||!_0xaec9b3)throw Error(_0x481706(0xc4)+_0x1e8cc0+'.');return _0x37cb80[_0x481706(0x133)](_0x124d35),{'id':_0x124d35,'type':_0xaec9b3,'target':_0x561988??'','mode':_0x581022};});return _0x5aa776[_0x341dd4(0xe7)](_0x5ab770,_0x2faa02),_0x2faa02;},_0x52df3e=(_0x11bc89,_0x39b55d)=>{const _0x301911=a146_0xcd4d,{target:_0x1b74a5,mode:_0x2f263c}=_0x39b55d;if(_0x2f263c&&_0x2f263c!==_0x301911(0xae))throw Error(_0x301911(0x123)+_0x11bc89+'.');if(!_0x1b74a5||_0x1b74a5[_0x301911(0xc7)]('\x5c')||/[?#%\x00-\x20]/['test'](_0x1b74a5)||/^[a-z][a-z0-9+.-]*:/i[_0x301911(0x12b)](_0x1b74a5)||_0x1b74a5[_0x301911(0xc1)]('//'))throw Error(_0x301911(0xf8)+_0x11bc89+'.');const _0x2b72ad=_0x1b74a5[_0x301911(0xc1)]('/')?_0x1b74a5[_0x301911(0x14a)](0x1):a146_0x5b11d3[_0x301911(0xbb)][_0x301911(0xc5)](a146_0x5b11d3[_0x301911(0xbb)][_0x301911(0x145)](a146_0x5b11d3['posix'][_0x301911(0xf2)](_0x11bc89),_0x1b74a5));if(_0x2b72ad['startsWith'](_0x301911(0xdb))||_0x2b72ad==='..'||!_0x2b72ad[_0x301911(0xc1)]('xl/'))throw Error(_0x301911(0xef)+_0x11bc89+'.');return _0x2b72ad;},_0xd3198=(_0x1d7df3,_0x1a0c73,_0x50922e)=>{const _0x348c48=a146_0xcd4d,_0x51d69e=_0x558eb6(_0x1d7df3)['filter'](_0x449cc2=>_0x449cc2['id']===_0x1a0c73&&relationshipTypes(_0x50922e)[_0x348c48(0xc7)](_0x449cc2['type']));if(_0x51d69e[_0x348c48(0x150)]!==0x1)throw Error(_0x348c48(0x127)+_0x50922e+_0x348c48(0xc8)+_0x1d7df3+'.');return _0x52df3e(_0x1d7df3,_0x51d69e[0x0]);},_0x43e904=(_0x1e0e67,_0x30f97b)=>{const _0x2216e9=a146_0xcd4d,_0x225119=_0x558eb6(_0x1e0e67)[_0x2216e9(0xb9)](_0x8bf87f=>relationshipTypes(_0x30f97b)['includes'](_0x8bf87f[_0x2216e9(0x114)]));if(_0x225119[_0x2216e9(0x150)]!==0x1)throw Error(_0x2216e9(0x127)+_0x30f97b+'\x20relationship\x20in\x20'+_0x1e0e67+'.');return _0x52df3e(_0x1e0e67,_0x225119[0x0]);},_0x299704=_0x4e974e(0xf6),_0x2097be=_0x4d7301(_0x299704);if(!matches(_0x2097be,_0x4e974e(0xd8)))throw Error(_0x4e974e(0x13b));const _0x44eaaa=one(chain(_0x2097be,_0x4e974e(0x14e),_0x4e974e(0x11c))[_0x4e974e(0xb9)](_0x17666b=>_0x17666b[_0x4e974e(0x10b)][_0x4e974e(0x12f)]===_0x1c0f20),_0x4e974e(0xeb)),_0x305592=_0xd3198(_0x299704,_0x44eaaa[_0x4e974e(0x10b)]['r:id'],_0x4e974e(0xeb)),_0x4ab6d0=_0x4d7301(_0x305592);if(!matches(_0x4ab6d0,_0x4e974e(0xeb)))throw Error(_0x4e974e(0xfd));const _0x38a1ee=chain(_0x4ab6d0,_0x4e974e(0x10e),_0x4e974e(0x9f)),_0x4827dd=new Map(),_0x5cdeda=new Set(_0x38a1ee['filter'](_0x5d4267=>_0x5d4267[_0x4e974e(0x10b)]['hidden']==='1'||_0x5d4267[_0x4e974e(0x10b)][_0x4e974e(0xa7)]===_0x4e974e(0x110))[_0x4e974e(0x121)](_0x525f1b=>integer(_0x525f1b['attrs']['r'],_0x4e974e(0xea)))),_0x536654=_0x49e7f0=>{const _0x29fc60=_0x4e974e,_0x5ca2a0=_0x49e7f0===undefined?0xf:Number(_0x49e7f0);if(!Number[_0x29fc60(0xad)](_0x5ca2a0)||_0x5ca2a0<=0x0||_0x5ca2a0>409.5)throw Error(_0x29fc60(0xce));return Math[_0x29fc60(0xd3)](_0x5ca2a0*0x319c);},_0x3e2b87=_0x536654(children(_0x4ab6d0,_0x4e974e(0xf5))[0x0]?.['attrs'][_0x4e974e(0x122)]);for(const _0x2139e1 of _0x38a1ee)if(_0x2139e1[_0x4e974e(0x10b)]['ht']!==undefined)_0x4827dd[_0x4e974e(0xe7)](integer(_0x2139e1['attrs']['r'],_0x4e974e(0xa9)),_0x536654(_0x2139e1['attrs']['ht']));const _0xef89e9=[],_0x5351f1=_0xb4bdad=>{const _0x1b9329=_0x4e974e;if(!_0x1c8dac['has'](_0xb4bdad[_0x1b9329(0xc6)]))return;if(++_0x22e5ad>0x2710)throw Error(_0x1b9329(0x141));_0xef89e9['push'](_0x5cdeda[_0x1b9329(0xc9)](_0xb4bdad[_0x1b9329(0x9f)])?{..._0xb4bdad,'hiddenRow':!![]}:_0xb4bdad);},_0x50b8ef=_0x3c77a7=>({'row':integer(one(children(_0x3c77a7,_0x4e974e(0x9f),DRAWING),'anchor\x20row')[_0x4e974e(0x12e)],_0x4e974e(0xfb),0x1869f)+0x1,'col':integer(one(children(_0x3c77a7,'col'),_0x4e974e(0xab))[_0x4e974e(0x12e)],_0x4e974e(0xab),0xff)+0x1});for(const _0x2d6f37 of children(_0x4ab6d0,_0x4e974e(0x105))){const _0x355203=_0xd3198(_0x305592,_0x2d6f37['attrs'][_0x4e974e(0xe0)],_0x4e974e(0x105)),_0xee1df7=_0x4d7301(_0x355203);if(!matches(_0xee1df7,_0x4e974e(0x147)))throw Error(_0x4e974e(0x129));for(const _0x133f57 of _0xee1df7[_0x4e974e(0xf0)]){if(!['oneCellAnchor',_0x4e974e(0xcf),_0x4e974e(0xbd)][_0x4e974e(0x14c)](_0x306424=>matches(_0x133f57,_0x306424)))continue;if(_0x133f57[_0x4e974e(0x12f)]==='absoluteAnchor')throw Error(_0x4e974e(0xd1)+_0x1c0f20+'.');const _0x3e8b95=_0x50b8ef(one(children(_0x133f57,'from'),_0x4e974e(0x148)));if(!_0x1c8dac[_0x4e974e(0xc9)](_0x3e8b95[_0x4e974e(0xc6)]))continue;let _0x2d7817;const _0x11e220=one(children(_0x133f57,_0x4e974e(0x137)),_0x4e974e(0x148)),_0xa7f4ca=integer(one(children(_0x11e220,_0x4e974e(0x10f)),'anchor\x20start\x20offset')[_0x4e974e(0x12e)],_0x4e974e(0xb0),Number[_0x4e974e(0x134)]),_0x33eccb=_0x4827dd[_0x4e974e(0xa5)](_0x3e8b95[_0x4e974e(0x9f)])??_0x3e2b87;if(_0xa7f4ca>=_0x33eccb)throw Error(_0x4e974e(0xb7)+_0x3e8b95[_0x4e974e(0x9f)]+'.');if(_0x133f57[_0x4e974e(0x12f)]===_0x4e974e(0xcb)){const _0x58e867=one(children(_0x133f57,_0x4e974e(0x13d)),'image\x20extent'),_0x202334=integer(_0x58e867['attrs']['cy'],_0x4e974e(0xaf),Number[_0x4e974e(0x134)]);if(!_0x202334||_0xa7f4ca+_0x202334>_0x33eccb)_0x2d7817=_0x4e974e(0xc3);}if(_0x133f57[_0x4e974e(0x12f)]==='twoCellAnchor'){const _0xd865c9=one(children(_0x133f57,'to'),_0x4e974e(0x142)),_0x816a5b=_0x50b8ef(_0xd865c9),_0x582f64=integer(one(children(_0xd865c9,_0x4e974e(0x10f)),_0x4e974e(0x13a))[_0x4e974e(0x12e)],'anchor\x20end\x20offset',Number[_0x4e974e(0x134)]),_0x417086=_0x4827dd[_0x4e974e(0xa5)](_0x816a5b[_0x4e974e(0x9f)])??_0x3e2b87;if(_0x582f64>_0x417086||_0x816a5b[_0x4e974e(0x9f)]===_0x3e8b95[_0x4e974e(0x9f)]&&_0x582f64<=_0xa7f4ca)_0x2d7817='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x816a5b['row']<_0x3e8b95[_0x4e974e(0x9f)]||_0x816a5b[_0x4e974e(0x9f)]>_0x3e8b95[_0x4e974e(0x9f)]+0x1||_0x816a5b[_0x4e974e(0x9f)]===_0x3e8b95[_0x4e974e(0x9f)]+0x1&&_0x582f64!==0x0)_0x2d7817='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x501596=chain(_0x133f57,_0x4e974e(0xec),_0x4e974e(0xf7),'blip');for(const _0x4969b3 of _0x501596){if(_0x4969b3[_0x4e974e(0x10b)]['r:link'])throw Error(_0x4e974e(0x102));_0x5351f1({..._0x3e8b95,'media':[_0xd3198(_0x355203,_0x4969b3[_0x4e974e(0x10b)][_0x4e974e(0x9e)],_0x4e974e(0x126))],..._0x2d7817?{'error':_0x2d7817}:{}});}if(!_0x501596[_0x4e974e(0x150)])_0x5351f1({..._0x3e8b95,'media':[],'error':_0x4e974e(0x11d)});}}const _0x3ba734=_0x223d5d=>{const _0x2ec95f=_0x4e974e,_0x34ce93=_0x4d7301(_0x43e904(_0x299704,_0x2ec95f(0x155)));if(!matches(_0x34ce93,_0x2ec95f(0xba)))throw Error(_0x2ec95f(0xa4));const _0x2ce288=integer(_0x223d5d[_0x2ec95f(0x10b)]['vm'],_0x2ec95f(0x107));if(!_0x2ce288)throw Error(_0x2ec95f(0xf1));const _0x22a210=children(one(children(_0x34ce93,_0x2ec95f(0x11f)),_0x2ec95f(0x11f)),'bk')[_0x2ce288-0x1];if(!_0x22a210)throw Error(_0x2ec95f(0xb1));const _0x1cee62=one(children(_0x22a210,'rc'),_0x2ec95f(0xfc)),_0x461d6f=integer(_0x1cee62['attrs']['t'],_0x2ec95f(0x130)),_0x54e87a=children(one(children(_0x34ce93,_0x2ec95f(0x117)),'metadata\x20types'),_0x2ec95f(0x100))[_0x461d6f-0x1];if(!_0x461d6f||_0x54e87a?.[_0x2ec95f(0x10b)][_0x2ec95f(0x12f)]!==_0x2ec95f(0xd2))throw Error(_0x2ec95f(0x12d));const _0x4d1ea2=one(children(_0x34ce93,_0x2ec95f(0x10d))['filter'](_0x25cf3c=>_0x25cf3c[_0x2ec95f(0x10b)][_0x2ec95f(0x12f)]===_0x2ec95f(0xd2)),'rich\x20future\x20metadata'),_0x5d8d7e=children(_0x4d1ea2,'bk')[integer(_0x1cee62[_0x2ec95f(0x10b)]['v'],_0x2ec95f(0x146))];if(!_0x5d8d7e)throw Error(_0x2ec95f(0xfe));const _0x5e917f=chain(_0x5d8d7e,_0x2ec95f(0xac))['flatMap'](_0x17c1ef=>children(_0x17c1ef,_0x2ec95f(0x13d),SHEET))['filter'](_0x2b0633=>_0x2b0633[_0x2ec95f(0x10b)][_0x2ec95f(0xe9)]?.[_0x2ec95f(0xa3)]()===_0x2ec95f(0xff)),_0xaf6542=integer(one(_0x5e917f[_0x2ec95f(0x120)](_0x361f45=>children(_0x361f45,'rvb')),_0x2ec95f(0xc2))[_0x2ec95f(0x10b)]['i'],_0x2ec95f(0x135)),_0x3b8831=_0x4d7301(_0x43e904(_0x299704,_0x2ec95f(0xa0)));if(!matches(_0x3b8831,_0x2ec95f(0x153)))throw Error(_0x2ec95f(0xe1));const _0x278ec7=children(_0x3b8831,'rv')[_0xaf6542];if(!_0x278ec7)throw Error(_0x2ec95f(0x128));const _0x3147ca=_0x4d7301(_0x43e904(_0x299704,_0x2ec95f(0x101)));if(!matches(_0x3147ca,_0x2ec95f(0xb5)))throw Error(_0x2ec95f(0xfa));const _0x51c5ac=children(_0x3147ca,'s')[integer(_0x278ec7[_0x2ec95f(0x10b)]['s'],_0x2ec95f(0x14b))];if(!_0x51c5ac||_0x51c5ac[_0x2ec95f(0x10b)]['t']!==_0x2ec95f(0x111))throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x468246=children(_0x51c5ac,'k'),_0x30f429=_0x468246[_0x2ec95f(0x121)]((_0x1cb992,_0x6c82de)=>_0x1cb992[_0x2ec95f(0x10b)]['n']===_0x2ec95f(0x13c)?_0x6c82de:-0x1)['filter'](_0x502c7=>_0x502c7>=0x0);if(_0x30f429[_0x2ec95f(0x150)]!==0x1)throw Error(_0x2ec95f(0xbe));const _0x39f8a2=children(_0x278ec7,'v',RICH)[_0x30f429[0x0]];if(!_0x39f8a2)throw Error('Missing\x20local\x20image\x20identifier\x20value.');const _0x25d7df=_0x43e904(_0x299704,_0x2ec95f(0xcc)),_0x23ad5c=_0x4d7301(_0x25d7df);if(!matches(_0x23ad5c,_0x2ec95f(0x109)))throw Error(_0x2ec95f(0x104));const _0x7239f2=children(_0x23ad5c,_0x2ec95f(0x119))[integer(_0x39f8a2[_0x2ec95f(0x12e)],_0x2ec95f(0x13f))];if(!_0x7239f2)throw Error(_0x2ec95f(0x143));return _0xd3198(_0x25d7df,_0x7239f2[_0x2ec95f(0x10b)][_0x2ec95f(0xe0)],'image');};let _0xb0d3af;const _0x53c668=_0x3e8032=>{const _0x3aa40a=_0x4e974e;if(!_0xb0d3af){_0xb0d3af=new Map();const _0x120456=_0x558eb6(_0x299704)[_0x3aa40a(0xb9)](_0x13b6b4=>[...relationshipTypes('cellImage'),...relationshipTypes(_0x3aa40a(0xd4))][_0x3aa40a(0xc7)](_0x13b6b4[_0x3aa40a(0x114)]));if(!_0x120456[_0x3aa40a(0x150)]&&_0x3071eb[_0x3aa40a(0xc9)](_0x3aa40a(0x113)))_0x120456[_0x3aa40a(0x10a)]({'id':'','type':'','target':_0x3aa40a(0xb6)});if(_0x120456['length']!==0x1)throw Error(_0x3aa40a(0xd9));const _0x171a1a=_0x52df3e(_0x299704,_0x120456[0x0]),_0x4fc3b8=_0x4d7301(_0x171a1a);if(!matches(_0x4fc3b8,'cellImages'))throw Error(_0x3aa40a(0x118));for(const _0x70db66 of children(_0x4fc3b8,'cellImage')){const _0x2bd47b=one(chain(_0x70db66,_0x3aa40a(0xec),_0x3aa40a(0xe4),_0x3aa40a(0x12a)),_0x3aa40a(0x125))[_0x3aa40a(0x10b)][_0x3aa40a(0x12f)];if(!_0x2bd47b||_0xb0d3af[_0x3aa40a(0xc9)](_0x2bd47b))throw Error(_0x3aa40a(0x131));const _0x514a9f=one(chain(_0x70db66,'pic',_0x3aa40a(0xf7),'blip'),'WPS\x20image\x20blip');if(_0x514a9f[_0x3aa40a(0x10b)][_0x3aa40a(0x132)])throw Error(_0x3aa40a(0xed));_0xb0d3af['set'](_0x2bd47b,_0xd3198(_0x171a1a,_0x514a9f[_0x3aa40a(0x10b)][_0x3aa40a(0x9e)],_0x3aa40a(0x126)));}}const _0xee4496=_0xb0d3af['get'](_0x3e8032);if(!_0xee4496)throw Error(_0x3aa40a(0x12c)+_0x3e8032+'.');return _0xee4496;},_0x434bcc=new Set();for(const _0x1d1076 of _0x38a1ee[_0x4e974e(0x120)](_0x5d800=>children(_0x5d800,'c'))){const _0x4a0f5f=/^([A-Z]+)([1-9]\d*)$/[_0x4e974e(0x9d)](_0x1d1076[_0x4e974e(0x10b)]['r']??'');if(!_0x4a0f5f)continue;let _0x2f71ac=0x0;for(const _0x28da58 of _0x4a0f5f[0x1])_0x2f71ac=_0x2f71ac*0x1a+_0x28da58[_0x4e974e(0x14d)](0x0)-0x40;if(!_0x1c8dac[_0x4e974e(0xc9)](_0x2f71ac))continue;const _0x15002f=integer(_0x4a0f5f[0x2],'image\x20cell\x20row');if(_0x434bcc[_0x4e974e(0xc9)](_0x1d1076[_0x4e974e(0x10b)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x434bcc[_0x4e974e(0x133)](_0x1d1076[_0x4e974e(0x10b)]['r']);const _0x2b87c1=children(_0x1d1076,'f');if(!_0x1d1076[_0x4e974e(0x10b)]['vm']&&!_0x2b87c1[_0x4e974e(0x150)])continue;try{if(_0x15002f<0x1||_0x2f71ac>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0x286e4c;if(_0x1d1076[_0x4e974e(0x10b)]['vm']){if(_0x2b87c1[_0x4e974e(0x150)])throw Error(_0x4e974e(0x116));if(_0x1d1076[_0x4e974e(0x10b)]['t']!=='e'||children(_0x1d1076,'v')['length']!==0x1||children(_0x1d1076,'v')[0x0][_0x4e974e(0x12e)]!==_0x4e974e(0xcd))throw Error(_0x4e974e(0x138));_0x286e4c=_0x3ba734(_0x1d1076);}else{const _0x37ad9b=one(_0x2b87c1,'image\x20formula');if(_0x37ad9b['attrs']['t']===_0x4e974e(0xd5)||_0x37ad9b[_0x4e974e(0x10b)]['si'])throw Error(_0x4e974e(0xe8));const _0x53efd4=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x4e974e(0x9d)](_0x37ad9b[_0x4e974e(0x12e)]);if(!_0x53efd4)throw Error(_0x4e974e(0xaa));_0x286e4c=_0x53c668(_0x53efd4[0x1]['replace'](/""/g,'\x22'));}_0x5351f1({'row':_0x15002f,'col':_0x2f71ac,'media':[_0x286e4c],'nativeCell':!![]});}catch(_0x5e96f6){_0x5351f1({'row':_0x15002f,'col':_0x2f71ac,'media':[],'nativeCell':!![],'error':_0x5e96f6[_0x4e974e(0x13e)]});}}return _0xef89e9;}function a146_0x35d5(){const _0x2bbfbf=['Missing\x20value\x20metadata\x20block.','946750MXCzya','local','XML\x20DTD/entities\x20are\x20not\x20supported.','rvStructures','/xl/cellimages.xml','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','2642212lYFVDh','filter','metadata','posix','blip','absoluteAnchor','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','rvb','Image\x20XML\x20event\x20budget\x20exceeded.','startsWith','rich\x20value\x20binding','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','normalize','col','includes','\x20relationship\x20in\x20','has','1465188YkzvTd','oneCellAnchor','richValueRel','#VALUE!','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','twoCellAnchor','3496455nSBVlk','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','XLRICHVALUE','round','cellImages','shared','toString','error','workbook','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','fromEntries','../','colOff','4194001TWvQiz','close','basename','r:id','Unsupported\x20rich\x20value\x20namespace.','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','http://schemas.openxmlformats.org/drawingml/2006/main','nvPicPr','Ambiguous\x20XML\x20attribute.','Invalid\x20','set','Shared\x20image\x20formulas\x20are\x20not\x20supported.','uri','hidden\x20image\x20row','worksheet','pic','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','opentag','Relationship\x20target\x20escapes\x20workbook:\x20','children','Value\x20metadata\x20index\x20must\x20be\x20one-based.','dirname','.rels','101LRAZQE','sheetFormatPr','xl/workbook.xml','blipFill','Invalid\x20relationship\x20target:\x20','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','Unsupported\x20rich\x20structure\x20namespace.','anchor\x20row','rich\x20metadata\x20record','Unsupported\x20worksheet\x20namespace.','Missing\x20future\x20metadata\x20block.','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','metadataType','rdRichValueStructure','External\x20image\x20links\x20are\x20not\x20supported.','http://schemas.openxmlformats.org/package/2006/relationships','Unsupported\x20rich\x20image\x20relation\x20namespace.','drawing','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','value\x20metadata\x20index','http://www.wps.cn/officeDocument/2017/etCustomData','richValueRels','push','attrs','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','futureMetadata','sheetData','rowOff','true','_localImage','write','xl/cellimages.xml','type','closetag','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','metadataTypes','Unsupported\x20WPS\x20cell\x20image\x20namespace.','rel','1070980EKfImR','620trajdh','sheet','Unsupported\x20drawing\x20image.','8LAvpZz','valueMetadata','flatMap','map','defaultRowHeight','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','3QWlllQ','WPS\x20image\x20name','image','Missing\x20or\x20ambiguous\x20','Missing\x20rich\x20value.','Unsupported\x20drawing\x20namespace.','cNvPr','test','Missing\x20WPS\x20image\x20ID:\x20','Unsupported\x20mapped\x20cell\x20metadata\x20type.','text','name','metadata\x20type\x20index','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','r:link','add','MAX_SAFE_INTEGER','rich\x20value\x20index','http://purl.oclc.org/ooxml/drawingml/main','from','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','anchor\x20end\x20offset','Unsupported\x20workbook\x20namespace.','_rvRel:LocalImageIdentifier','ext','message','rich\x20image\x20relationship\x20index','Missing\x20XLSX\x20part:\x20','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','anchor\x20end','Missing\x20rich\x20image\x20relationship.','Image\x20XML\x20node\x20budget\x20exceeded.','join','future\x20metadata\x20index','wsDr','anchor\x20start','cellImage','slice','rich\x20structure\x20index','some','charCodeAt','sheets','http://schemas.microsoft.com/office/2017/06/relationships/','length','Relationships','Unsupported\x20relationship\x20namespace\x20in\x20','rvData','doctype','sheetMetadata','_rels','exec','r:embed','row','rdRichValue','http://schemas.openxmlformats.org/spreadsheetml/2006/main','isSafeInteger','toLowerCase','Unsupported\x20metadata\x20namespace.','get','Relationship','hidden','value','image\x20row\x20height\x20coordinate','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','anchor\x20column','extLst','isFinite','Internal','image\x20height','anchor\x20start\x20offset'];a146_0x35d5=function(){return _0x2bbfbf;};return a146_0x35d5();}
|
|
1
|
+
const a146_0x351ab7=a146_0x1929;(function(_0x4c40e1,_0x355cc4){const _0x287f3c=a146_0x1929,_0x3e1915=_0x4c40e1();while(!![]){try{const _0x45e28c=parseInt(_0x287f3c(0x26d))/0x1*(-parseInt(_0x287f3c(0x24c))/0x2)+-parseInt(_0x287f3c(0x20b))/0x3*(parseInt(_0x287f3c(0x1d3))/0x4)+parseInt(_0x287f3c(0x226))/0x5*(parseInt(_0x287f3c(0x273))/0x6)+-parseInt(_0x287f3c(0x1fb))/0x7*(-parseInt(_0x287f3c(0x266))/0x8)+parseInt(_0x287f3c(0x25f))/0x9+-parseInt(_0x287f3c(0x230))/0xa*(-parseInt(_0x287f3c(0x21a))/0xb)+-parseInt(_0x287f3c(0x27b))/0xc*(parseInt(_0x287f3c(0x22d))/0xd);if(_0x45e28c===_0x355cc4)break;else _0x3e1915['push'](_0x3e1915['shift']());}catch(_0x4fded3){_0x3e1915['push'](_0x3e1915['shift']());}}}(a146_0x59c2,0x5bf27));import a146_0x106a7c from'node:path';function a146_0x59c2(){const _0xb1a237=['toString','MAX_SAFE_INTEGER','worksheet','name','rich\x20value\x20index','colOff','162082ccPMqV','Unsupported\x20metadata\x20namespace.','sheetMetadata','http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://www.wps.cn/officeDocument/2017/relationships/','workbook','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','blipFill','image\x20row\x20height\x20coordinate','hidden\x20image\x20row','http://www.wps.cn/officeDocument/2017/etCustomData','startsWith','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','slice','Unsupported\x20rich\x20value\x20namespace.','fromEntries','image','attributes','XLRICHVALUE','1762029JgFLYZ','Internal','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','pic','http://schemas.openxmlformats.org/spreadsheetml/2006/main','anchor\x20start\x20offset','http://schemas.openxmlformats.org/package/2006/relationships','240fnvkaC','opentag','filter','#VALUE!','normalize','metadataTypes','rdRichValue','2lzsHIx','valueMetadata','rdRichValueStructure','uri','richValueRel','r:id','897654HaWtnY','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','blip','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','anchor\x20end','rowOff','image\x20extent','anchor\x20column','96HXUyFW','flatMap','isFinite','push','oneCellAnchor','702568ydlQBK','_localImage','closetag','children','Unsupported\x20worksheet\x20namespace.','attrs','absoluteAnchor','exec','rich\x20image\x20relationship\x20index','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','twoCellAnchor','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','sheets','pop','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','test','Unsupported\x20rich\x20structure\x20namespace.','richValueRels','xl/cellimages.xml','sheetFormatPr','Unsupported\x20drawing\x20namespace.','_rvRel:LocalImageIdentifier','close','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','Ambiguous\x20XML\x20attribute.','Invalid\x20','r:link','Relationships','rel','rich\x20structure\x20index','Missing\x20future\x20metadata\x20block.','External\x20image\x20links\x20are\x20not\x20supported.','isSafeInteger','nvPicPr','posix','image\x20cell\x20row','rvStructures','futureMetadata','rvb','143304arNUrN','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','type','Unsupported\x20WPS\x20cell\x20image\x20namespace.','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','Unsupported\x20relationship\x20namespace\x20in\x20','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','get','r:embed','sheetData','../','anchor\x20start','charCodeAt','row','Shared\x20image\x20formulas\x20are\x20not\x20supported.','error','3dmGgUQ','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','http://purl.oclc.org/ooxml/officeDocument/relationships','join','ext','drawing','shared','anchor\x20row','value\x20metadata\x20index','map','text','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','cellImages','.rels','length','11hxIMvO','xl/workbook.xml','\x20relationship\x20in\x20','http://purl.oclc.org/ooxml/spreadsheetml/main','add','image\x20height','has','dirname','wsDr','from','Missing\x20or\x20ambiguous\x20','cellImage','15WNxFeZ','rich\x20future\x20metadata','hidden','Unsupported\x20mapped\x20cell\x20metadata\x20type.','Image\x20XML\x20node\x20budget\x20exceeded.','toLowerCase','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','1754337GuMntW','some','replace','5351630rpPFkH','image\x20formula','Missing\x20rich\x20value.','/xl/cellimages.xml','Image\x20XML\x20event\x20budget\x20exceeded.','Unsupported\x20drawing\x20image.','col','metadata','extLst','utf8','Relationship','sheet','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','WPS\x20image\x20name','Missing\x20local\x20image\x20identifier\x20value.','local','Invalid\x20relationship\x20target:\x20','Relationship\x20target\x20escapes\x20workbook:\x20','round','set','includes','anchor\x20end\x20offset'];a146_0x59c2=function(){return _0xb1a237;};return a146_0x59c2();}import{SaxesParser}from'saxes';const SHEET=[a146_0x351ab7(0x263),a146_0x351ab7(0x21d)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x351ab7(0x252)],DRAWING_MAIN=['http://schemas.openxmlformats.org/drawingml/2006/main','http://purl.oclc.org/ooxml/drawingml/main'],OFFICE_RELS=[a146_0x351ab7(0x24f),a146_0x351ab7(0x20d)],PACKAGE=[a146_0x351ab7(0x265)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a146_0x351ab7(0x1ea)],WPS=[a146_0x351ab7(0x256)],DEFAULT_NS=Object[a146_0x351ab7(0x25b)]([...[a146_0x351ab7(0x251),a146_0x351ab7(0x1df),a146_0x351ab7(0x23b),a146_0x351ab7(0x248),a146_0x351ab7(0x204),a146_0x351ab7(0x208),'c','f','v',a146_0x351ab7(0x1e6),a146_0x351ab7(0x210),'metadata',a146_0x351ab7(0x26b),'metadataType',a146_0x351ab7(0x1f9),'valueMetadata','bk','rc','extLst']['map'](_0x182b03=>[_0x182b03,SHEET]),...['wsDr',a146_0x351ab7(0x1d2),a146_0x351ab7(0x1dd),'absoluteAnchor',a146_0x351ab7(0x223),'to','col',a146_0x351ab7(0x24b),a146_0x351ab7(0x278),'ext',a146_0x351ab7(0x262),a146_0x351ab7(0x1f5),'cNvPr','blipFill']['map'](_0x47b391=>[_0x47b391,DRAWING]),...[a146_0x351ab7(0x1fa),'rvData','rv',a146_0x351ab7(0x1f8),'s','k'][a146_0x351ab7(0x214)](_0x649974=>[_0x649974,RICH]),[a146_0x351ab7(0x275),DRAWING_MAIN],[a146_0x351ab7(0x1e4),RICH_RELS],[a146_0x351ab7(0x1f0),RICH_RELS],['Relationships',PACKAGE],[a146_0x351ab7(0x23a),PACKAGE],['cellImages',WPS],[a146_0x351ab7(0x225),WPS]]),matches=(_0x59f21c,_0x4b90cd,_0x3144b5=DEFAULT_NS[_0x4b90cd]??[])=>_0x59f21c[a146_0x351ab7(0x249)]===_0x4b90cd&&_0x3144b5[a146_0x351ab7(0x244)](_0x59f21c[a146_0x351ab7(0x270)]),children=(_0x434c4a,_0x400aa5,_0xf34b44=DEFAULT_NS[_0x400aa5])=>_0x434c4a['children'][a146_0x351ab7(0x268)](_0xf419b5=>matches(_0xf419b5,_0x400aa5,_0xf34b44)),chain=(_0x245465,..._0x31330f)=>_0x31330f['reduce']((_0x4172fe,_0x58376e)=>_0x4172fe[a146_0x351ab7(0x1cf)](_0x3761e7=>children(_0x3761e7,_0x58376e)),[_0x245465]),relationshipTypes=_0x447498=>{const _0x1881a3=a146_0x351ab7;if([_0x1881a3(0x26c),_0x1881a3(0x26f)][_0x1881a3(0x244)](_0x447498))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x447498];if(_0x447498===_0x1881a3(0x271))return[_0x1881a3(0x1ff)];if(_0x447498===_0x1881a3(0x225)||_0x447498===_0x1881a3(0x217))return[_0x1881a3(0x250)+_0x447498];return OFFICE_RELS[_0x1881a3(0x214)](_0x4264e9=>_0x4264e9+'/'+_0x447498);};function a146_0x1929(_0x15457b,_0x2d0587){_0x15457b=_0x15457b-0x1cf;const _0x59c2fd=a146_0x59c2();let _0x19297a=_0x59c2fd[_0x15457b];return _0x19297a;}function one(_0x26c119,_0x374297){const _0x2b3409=a146_0x351ab7;if(_0x26c119[_0x2b3409(0x219)]!==0x1)throw Error(_0x2b3409(0x224)+_0x374297+'.');return _0x26c119[0x0];}function integer(_0x2b070f,_0x59d047,_0x468003=0x186a0){const _0x1948ac=a146_0x351ab7;if(!_0x2b070f||!/^\d+$/[_0x1948ac(0x1e2)](_0x2b070f)||!Number[_0x1948ac(0x1f4)](Number(_0x2b070f))||Number(_0x2b070f)>_0x468003)throw Error(_0x1948ac(0x1ed)+_0x59d047+'.');return Number(_0x2b070f);}export function resolveWorksheetImages(_0x24d3a2,_0x40d39a,_0x467d58){const _0x218378=a146_0x351ab7;let _0x5b0567=0x0,_0x5689cf=0x0,_0x5e8382=0x0;const _0x19b76a=new Map(),_0x1684f0=_0x4c9264=>{const _0x2c1be6=a146_0x1929;if(_0x19b76a['has'](_0x4c9264))return _0x19b76a[_0x2c1be6(0x202)](_0x4c9264);const _0x3b0122=_0x24d3a2[_0x2c1be6(0x202)](_0x4c9264);if(!_0x3b0122)throw Error('Missing\x20XLSX\x20part:\x20'+_0x4c9264+'.');const _0x4f5076={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x1cea80=[_0x4f5076],_0x169f67=new SaxesParser({'xmlns':!![]}),_0x516297=()=>{const _0x37137a=_0x2c1be6;if(++_0x5689cf>0x1e8480)throw Error(_0x37137a(0x234));};_0x169f67['on']('doctype',()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x169f67['on'](_0x2c1be6(0x267),_0x4d0136=>{const _0x5f053a=_0x2c1be6;_0x516297();if(++_0x5b0567>0x7a120||_0x1cea80[_0x5f053a(0x219)]>0x40)throw Error(_0x5f053a(0x22a));const _0x51791a={};for(const _0x2f69e2 of Object['values'](_0x4d0136[_0x5f053a(0x25d)])){const _0x36d5ad=OFFICE_RELS[_0x5f053a(0x244)](_0x2f69e2[_0x5f053a(0x270)])?'r:'+_0x2f69e2[_0x5f053a(0x23f)]:_0x2f69e2['uri']?'{'+_0x2f69e2[_0x5f053a(0x270)]+'}'+_0x2f69e2['local']:_0x2f69e2['local'];if(_0x36d5ad in _0x51791a)throw Error(_0x5f053a(0x1ec));_0x51791a[_0x36d5ad]=_0x2f69e2['value'];}const _0x2db756={'name':_0x4d0136['local'],'uri':_0x4d0136[_0x5f053a(0x270)],'attrs':_0x51791a,'children':[],'text':''};_0x1cea80['at'](-0x1)[_0x5f053a(0x1d6)]['push'](_0x2db756),_0x1cea80[_0x5f053a(0x1d1)](_0x2db756);}),_0x169f67['on']('text',_0xd3569b=>{const _0x37815f=_0x2c1be6;_0x516297();const _0x5c688c=_0x1cea80['at'](-0x1);_0x5c688c[_0x37815f(0x215)]+=_0xd3569b;if(_0x5c688c[_0x37815f(0x215)][_0x37815f(0x219)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x169f67['on'](_0x2c1be6(0x1d5),()=>{const _0x13c5c8=_0x2c1be6;_0x516297(),_0x1cea80[_0x13c5c8(0x1e0)]();}),_0x169f67['on'](_0x2c1be6(0x20a),_0x17bbe1=>{throw _0x17bbe1;}),_0x169f67['write'](_0x3b0122[_0x2c1be6(0x246)](_0x2c1be6(0x239)))[_0x2c1be6(0x1e9)]();const _0x5ea0da=one(_0x4f5076[_0x2c1be6(0x1d6)],_0x4c9264);return _0x19b76a['set'](_0x4c9264,_0x5ea0da),_0x5ea0da;},_0x28800e=new Map(),_0x39b1aa=_0x344502=>{const _0x48b842=a146_0x1929;if(_0x28800e['has'](_0x344502))return _0x28800e['get'](_0x344502);const _0x224966=a146_0x106a7c[_0x48b842(0x1f6)][_0x48b842(0x20e)](a146_0x106a7c[_0x48b842(0x1f6)][_0x48b842(0x221)](_0x344502),'_rels',a146_0x106a7c['posix']['basename'](_0x344502)+_0x48b842(0x218));if(!_0x24d3a2[_0x48b842(0x220)](_0x224966))return[];const _0x856a3b=new Set(),_0x5d6075=_0x1684f0(_0x224966);if(!matches(_0x5d6075,_0x48b842(0x1ef)))throw Error(_0x48b842(0x200)+_0x224966+'.');const _0x1edae0=children(_0x5d6075,_0x48b842(0x23a))['map'](_0x15b477=>{const _0x572c67=_0x48b842,{Id:_0x34d63b,Type:_0x4041b4,Target:_0x3e0f74,TargetMode:_0x366719}=_0x15b477['attrs'];if(!_0x34d63b||_0x856a3b[_0x572c67(0x220)](_0x34d63b)||!_0x4041b4)throw Error(_0x572c67(0x1e1)+_0x224966+'.');return _0x856a3b[_0x572c67(0x21e)](_0x34d63b),{'id':_0x34d63b,'type':_0x4041b4,'target':_0x3e0f74??'','mode':_0x366719};});return _0x28800e['set'](_0x344502,_0x1edae0),_0x1edae0;},_0x2e7d68=(_0x286472,_0xc9d477)=>{const _0x393540=a146_0x1929,{target:_0x47312c,mode:_0x44ec3e}=_0xc9d477;if(_0x44ec3e&&_0x44ec3e!==_0x393540(0x260))throw Error(_0x393540(0x1eb)+_0x286472+'.');if(!_0x47312c||_0x47312c[_0x393540(0x244)]('\x5c')||/[?#%\x00-\x20]/[_0x393540(0x1e2)](_0x47312c)||/^[a-z][a-z0-9+.-]*:/i[_0x393540(0x1e2)](_0x47312c)||_0x47312c['startsWith']('//'))throw Error(_0x393540(0x240)+_0x286472+'.');const _0x1a1c75=_0x47312c['startsWith']('/')?_0x47312c[_0x393540(0x259)](0x1):a146_0x106a7c['posix'][_0x393540(0x26a)](a146_0x106a7c[_0x393540(0x1f6)]['join'](a146_0x106a7c['posix'][_0x393540(0x221)](_0x286472),_0x47312c));if(_0x1a1c75['startsWith'](_0x393540(0x205))||_0x1a1c75==='..'||!_0x1a1c75[_0x393540(0x257)]('xl/'))throw Error(_0x393540(0x241)+_0x286472+'.');return _0x1a1c75;},_0x91b709=(_0x419a22,_0x3600c7,_0x15ca11)=>{const _0x1ea364=a146_0x1929,_0x4befc3=_0x39b1aa(_0x419a22)[_0x1ea364(0x268)](_0x2d6294=>_0x2d6294['id']===_0x3600c7&&relationshipTypes(_0x15ca11)[_0x1ea364(0x244)](_0x2d6294['type']));if(_0x4befc3['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x15ca11+_0x1ea364(0x21c)+_0x419a22+'.');return _0x2e7d68(_0x419a22,_0x4befc3[0x0]);},_0x11f04c=(_0x29c8cb,_0x42169a)=>{const _0x294feb=a146_0x1929,_0x4b941f=_0x39b1aa(_0x29c8cb)['filter'](_0x52c7bf=>relationshipTypes(_0x42169a)[_0x294feb(0x244)](_0x52c7bf['type']));if(_0x4b941f['length']!==0x1)throw Error(_0x294feb(0x224)+_0x42169a+_0x294feb(0x21c)+_0x29c8cb+'.');return _0x2e7d68(_0x29c8cb,_0x4b941f[0x0]);},_0xad7c96=_0x218378(0x21b),_0x5b82fb=_0x1684f0(_0xad7c96);if(!matches(_0x5b82fb,_0x218378(0x251)))throw Error('Unsupported\x20workbook\x20namespace.');const _0x1ff0cd=one(chain(_0x5b82fb,_0x218378(0x1df),_0x218378(0x23b))[_0x218378(0x268)](_0x197a1a=>_0x197a1a[_0x218378(0x1d8)][_0x218378(0x249)]===_0x40d39a),_0x218378(0x248)),_0x5266a9=_0x91b709(_0xad7c96,_0x1ff0cd['attrs'][_0x218378(0x272)],'worksheet'),_0x5e8b7a=_0x1684f0(_0x5266a9);if(!matches(_0x5e8b7a,_0x218378(0x248)))throw Error(_0x218378(0x1d7));const _0x17e355=chain(_0x5e8b7a,_0x218378(0x204),_0x218378(0x208)),_0x61ed43=new Map(),_0x54a1f7=new Set(_0x17e355['filter'](_0x13f8f5=>_0x13f8f5[_0x218378(0x1d8)][_0x218378(0x228)]==='1'||_0x13f8f5['attrs'][_0x218378(0x228)]==='true')['map'](_0x24cc5a=>integer(_0x24cc5a['attrs']['r'],_0x218378(0x255)))),_0x3404e4=_0xdcf43d=>{const _0x25f8b8=_0x218378,_0x541d32=_0xdcf43d===undefined?0xf:Number(_0xdcf43d);if(!Number[_0x25f8b8(0x1d0)](_0x541d32)||_0x541d32<=0x0||_0x541d32>409.5)throw Error(_0x25f8b8(0x276));return Math[_0x25f8b8(0x242)](_0x541d32*0x319c);},_0x17d152=_0x3404e4(children(_0x5e8b7a,_0x218378(0x1e6))[0x0]?.[_0x218378(0x1d8)]['defaultRowHeight']);for(const _0x261920 of _0x17e355)if(_0x261920[_0x218378(0x1d8)]['ht']!==undefined)_0x61ed43[_0x218378(0x243)](integer(_0x261920[_0x218378(0x1d8)]['r'],_0x218378(0x254)),_0x3404e4(_0x261920[_0x218378(0x1d8)]['ht']));const _0x5b8290=[],_0x5d6f96=_0x32a456=>{const _0x21f2f3=_0x218378;if(!_0x467d58[_0x21f2f3(0x220)](_0x32a456[_0x21f2f3(0x236)]))return;if(++_0x5e8382>0x2710)throw Error(_0x21f2f3(0x216));_0x5b8290[_0x21f2f3(0x1d1)](_0x54a1f7['has'](_0x32a456[_0x21f2f3(0x208)])?{..._0x32a456,'hiddenRow':!![]}:_0x32a456);},_0x45f6eb=_0x1b18b8=>({'row':integer(one(children(_0x1b18b8,_0x218378(0x208),DRAWING),_0x218378(0x212))[_0x218378(0x215)],_0x218378(0x212),0x1869f)+0x1,'col':integer(one(children(_0x1b18b8,_0x218378(0x236)),_0x218378(0x27a))[_0x218378(0x215)],_0x218378(0x27a),0xff)+0x1});for(const _0x340ac5 of children(_0x5e8b7a,'drawing')){const _0x88587a=_0x91b709(_0x5266a9,_0x340ac5[_0x218378(0x1d8)][_0x218378(0x272)],_0x218378(0x210)),_0x535cfa=_0x1684f0(_0x88587a);if(!matches(_0x535cfa,_0x218378(0x222)))throw Error(_0x218378(0x1e7));for(const _0x2feff5 of _0x535cfa[_0x218378(0x1d6)]){if(![_0x218378(0x1d2),_0x218378(0x1dd),_0x218378(0x1d9)][_0x218378(0x22e)](_0x6fb020=>matches(_0x2feff5,_0x6fb020)))continue;if(_0x2feff5[_0x218378(0x249)]===_0x218378(0x1d9))throw Error(_0x218378(0x258)+_0x40d39a+'.');const _0x1a334e=_0x45f6eb(one(children(_0x2feff5,_0x218378(0x223)),_0x218378(0x206)));if(!_0x467d58[_0x218378(0x220)](_0x1a334e[_0x218378(0x236)]))continue;let _0x5cade3;const _0x4ba2dc=one(children(_0x2feff5,'from'),'anchor\x20start'),_0x430e38=integer(one(children(_0x4ba2dc,_0x218378(0x278)),_0x218378(0x264))[_0x218378(0x215)],_0x218378(0x264),Number[_0x218378(0x247)]),_0x13ef28=_0x61ed43['get'](_0x1a334e[_0x218378(0x208)])??_0x17d152;if(_0x430e38>=_0x13ef28)throw Error(_0x218378(0x22c)+_0x1a334e[_0x218378(0x208)]+'.');if(_0x2feff5[_0x218378(0x249)]==='oneCellAnchor'){const _0x320e32=one(children(_0x2feff5,_0x218378(0x20f)),_0x218378(0x279)),_0x158414=integer(_0x320e32[_0x218378(0x1d8)]['cy'],_0x218378(0x21f),Number[_0x218378(0x247)]);if(!_0x158414||_0x430e38+_0x158414>_0x13ef28)_0x5cade3='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}if(_0x2feff5['name']===_0x218378(0x1dd)){const _0x3e5440=one(children(_0x2feff5,'to'),_0x218378(0x277)),_0x2bb4ff=_0x45f6eb(_0x3e5440),_0x1b9cf6=integer(one(children(_0x3e5440,_0x218378(0x278)),_0x218378(0x245))[_0x218378(0x215)],_0x218378(0x245),Number[_0x218378(0x247)]),_0x9e6348=_0x61ed43[_0x218378(0x202)](_0x2bb4ff[_0x218378(0x208)])??_0x17d152;if(_0x1b9cf6>_0x9e6348||_0x2bb4ff[_0x218378(0x208)]===_0x1a334e['row']&&_0x1b9cf6<=_0x430e38)_0x5cade3=_0x218378(0x261);if(_0x2bb4ff[_0x218378(0x208)]<_0x1a334e[_0x218378(0x208)]||_0x2bb4ff[_0x218378(0x208)]>_0x1a334e[_0x218378(0x208)]+0x1||_0x2bb4ff[_0x218378(0x208)]===_0x1a334e[_0x218378(0x208)]+0x1&&_0x1b9cf6!==0x0)_0x5cade3=_0x218378(0x1fc);}const _0x90610c=chain(_0x2feff5,'pic',_0x218378(0x253),_0x218378(0x275));for(const _0x3fd4f7 of _0x90610c){if(_0x3fd4f7[_0x218378(0x1d8)][_0x218378(0x1ee)])throw Error(_0x218378(0x1f3));_0x5d6f96({..._0x1a334e,'media':[_0x91b709(_0x88587a,_0x3fd4f7[_0x218378(0x1d8)][_0x218378(0x203)],'image')],..._0x5cade3?{'error':_0x5cade3}:{}});}if(!_0x90610c[_0x218378(0x219)])_0x5d6f96({..._0x1a334e,'media':[],'error':_0x218378(0x235)});}}const _0x3c8461=_0x137f57=>{const _0x47cc07=_0x218378,_0x202f9c=_0x1684f0(_0x11f04c(_0xad7c96,_0x47cc07(0x24e)));if(!matches(_0x202f9c,_0x47cc07(0x237)))throw Error(_0x47cc07(0x24d));const _0x4c28b0=integer(_0x137f57[_0x47cc07(0x1d8)]['vm'],_0x47cc07(0x213));if(!_0x4c28b0)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x4e8447=children(one(children(_0x202f9c,_0x47cc07(0x26e)),'valueMetadata'),'bk')[_0x4c28b0-0x1];if(!_0x4e8447)throw Error('Missing\x20value\x20metadata\x20block.');const _0x47e53d=one(children(_0x4e8447,'rc'),'rich\x20metadata\x20record'),_0x14bdb7=integer(_0x47e53d[_0x47cc07(0x1d8)]['t'],'metadata\x20type\x20index'),_0x5a9a36=children(one(children(_0x202f9c,_0x47cc07(0x26b)),'metadata\x20types'),'metadataType')[_0x14bdb7-0x1];if(!_0x14bdb7||_0x5a9a36?.['attrs'][_0x47cc07(0x249)]!==_0x47cc07(0x25e))throw Error(_0x47cc07(0x229));const _0x270f5f=one(children(_0x202f9c,_0x47cc07(0x1f9))[_0x47cc07(0x268)](_0x1bc643=>_0x1bc643[_0x47cc07(0x1d8)]['name']===_0x47cc07(0x25e)),_0x47cc07(0x227)),_0x3dfeed=children(_0x270f5f,'bk')[integer(_0x47e53d[_0x47cc07(0x1d8)]['v'],'future\x20metadata\x20index')];if(!_0x3dfeed)throw Error(_0x47cc07(0x1f2));const _0x3cfef9=chain(_0x3dfeed,_0x47cc07(0x238))[_0x47cc07(0x1cf)](_0x18947d=>children(_0x18947d,_0x47cc07(0x20f),SHEET))[_0x47cc07(0x268)](_0x3934bf=>_0x3934bf[_0x47cc07(0x1d8)][_0x47cc07(0x270)]?.[_0x47cc07(0x22b)]()===_0x47cc07(0x1dc)),_0x1ac489=integer(one(_0x3cfef9['flatMap'](_0x5ae859=>children(_0x5ae859,_0x47cc07(0x1fa))),'rich\x20value\x20binding')[_0x47cc07(0x1d8)]['i'],_0x47cc07(0x24a)),_0x4aa4b6=_0x1684f0(_0x11f04c(_0xad7c96,_0x47cc07(0x26c)));if(!matches(_0x4aa4b6,'rvData'))throw Error(_0x47cc07(0x25a));const _0x7203b1=children(_0x4aa4b6,'rv')[_0x1ac489];if(!_0x7203b1)throw Error(_0x47cc07(0x232));const _0x1cfe69=_0x1684f0(_0x11f04c(_0xad7c96,_0x47cc07(0x26f)));if(!matches(_0x1cfe69,_0x47cc07(0x1f8)))throw Error(_0x47cc07(0x1e3));const _0x46c651=children(_0x1cfe69,'s')[integer(_0x7203b1[_0x47cc07(0x1d8)]['s'],_0x47cc07(0x1f1))];if(!_0x46c651||_0x46c651[_0x47cc07(0x1d8)]['t']!==_0x47cc07(0x1d4))throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x1997ae=children(_0x46c651,'k'),_0x1cbba4=_0x1997ae[_0x47cc07(0x214)]((_0x1d8c27,_0x36152f)=>_0x1d8c27['attrs']['n']===_0x47cc07(0x1e8)?_0x36152f:-0x1)['filter'](_0x5af4bc=>_0x5af4bc>=0x0);if(_0x1cbba4['length']!==0x1)throw Error(_0x47cc07(0x201));const _0xdd14f9=children(_0x7203b1,'v',RICH)[_0x1cbba4[0x0]];if(!_0xdd14f9)throw Error(_0x47cc07(0x23e));const _0x43fe71=_0x11f04c(_0xad7c96,_0x47cc07(0x271)),_0x59af8e=_0x1684f0(_0x43fe71);if(!matches(_0x59af8e,_0x47cc07(0x1e4)))throw Error('Unsupported\x20rich\x20image\x20relation\x20namespace.');const _0xb99475=children(_0x59af8e,_0x47cc07(0x1f0))[integer(_0xdd14f9[_0x47cc07(0x215)],_0x47cc07(0x1db))];if(!_0xb99475)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x91b709(_0x43fe71,_0xb99475['attrs'][_0x47cc07(0x272)],_0x47cc07(0x25c));};let _0x12951f;const _0x546777=_0x28323b=>{const _0x4e608a=_0x218378;if(!_0x12951f){_0x12951f=new Map();const _0x453009=_0x39b1aa(_0xad7c96)['filter'](_0x11aa2f=>[...relationshipTypes(_0x4e608a(0x225)),...relationshipTypes(_0x4e608a(0x217))][_0x4e608a(0x244)](_0x11aa2f[_0x4e608a(0x1fd)]));if(!_0x453009[_0x4e608a(0x219)]&&_0x24d3a2['has'](_0x4e608a(0x1e5)))_0x453009[_0x4e608a(0x1d1)]({'id':'','type':'','target':_0x4e608a(0x233)});if(_0x453009[_0x4e608a(0x219)]!==0x1)throw Error(_0x4e608a(0x1de));const _0x2e96ea=_0x2e7d68(_0xad7c96,_0x453009[0x0]),_0x1e60f8=_0x1684f0(_0x2e96ea);if(!matches(_0x1e60f8,_0x4e608a(0x217)))throw Error(_0x4e608a(0x1fe));for(const _0x461dc6 of children(_0x1e60f8,_0x4e608a(0x225))){const _0x53ba97=one(chain(_0x461dc6,_0x4e608a(0x262),_0x4e608a(0x1f5),'cNvPr'),_0x4e608a(0x23d))[_0x4e608a(0x1d8)]['name'];if(!_0x53ba97||_0x12951f[_0x4e608a(0x220)](_0x53ba97))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x5b0048=one(chain(_0x461dc6,_0x4e608a(0x262),_0x4e608a(0x253),_0x4e608a(0x275)),'WPS\x20image\x20blip');if(_0x5b0048[_0x4e608a(0x1d8)][_0x4e608a(0x1ee)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x12951f[_0x4e608a(0x243)](_0x53ba97,_0x91b709(_0x2e96ea,_0x5b0048[_0x4e608a(0x1d8)][_0x4e608a(0x203)],'image'));}}const _0x5b75e5=_0x12951f['get'](_0x28323b);if(!_0x5b75e5)throw Error('Missing\x20WPS\x20image\x20ID:\x20'+_0x28323b+'.');return _0x5b75e5;},_0x4da478=new Set();for(const _0x680a28 of _0x17e355[_0x218378(0x1cf)](_0x54cab8=>children(_0x54cab8,'c'))){const _0x2f6cd5=/^([A-Z]+)([1-9]\d*)$/[_0x218378(0x1da)](_0x680a28[_0x218378(0x1d8)]['r']??'');if(!_0x2f6cd5)continue;let _0x3d5319=0x0;for(const _0x1c4a72 of _0x2f6cd5[0x1])_0x3d5319=_0x3d5319*0x1a+_0x1c4a72[_0x218378(0x207)](0x0)-0x40;if(!_0x467d58[_0x218378(0x220)](_0x3d5319))continue;const _0x36002c=integer(_0x2f6cd5[0x2],_0x218378(0x1f7));if(_0x4da478[_0x218378(0x220)](_0x680a28['attrs']['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x4da478[_0x218378(0x21e)](_0x680a28[_0x218378(0x1d8)]['r']);const _0x272f38=children(_0x680a28,'f');if(!_0x680a28[_0x218378(0x1d8)]['vm']&&!_0x272f38[_0x218378(0x219)])continue;try{if(_0x36002c<0x1||_0x3d5319>0x100)throw Error(_0x218378(0x23c));let _0x470ca2;if(_0x680a28[_0x218378(0x1d8)]['vm']){if(_0x272f38[_0x218378(0x219)])throw Error(_0x218378(0x20c));if(_0x680a28[_0x218378(0x1d8)]['t']!=='e'||children(_0x680a28,'v')[_0x218378(0x219)]!==0x1||children(_0x680a28,'v')[0x0][_0x218378(0x215)]!==_0x218378(0x269))throw Error(_0x218378(0x274));_0x470ca2=_0x3c8461(_0x680a28);}else{const _0x2a7cf8=one(_0x272f38,_0x218378(0x231));if(_0x2a7cf8['attrs']['t']===_0x218378(0x211)||_0x2a7cf8[_0x218378(0x1d8)]['si'])throw Error(_0x218378(0x209));const _0x333a70=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x218378(0x1da)](_0x2a7cf8['text']);if(!_0x333a70)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x470ca2=_0x546777(_0x333a70[0x1][_0x218378(0x22f)](/""/g,'\x22'));}_0x5d6f96({'row':_0x36002c,'col':_0x3d5319,'media':[_0x470ca2],'nativeCell':!![]});}catch(_0x5f3aeb){_0x5d6f96({'row':_0x36002c,'col':_0x3d5319,'media':[],'nativeCell':!![],'error':_0x5f3aeb['message']});}}return _0x5b8290;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x390c7e,_0x45d83e){const _0x15cd52=a147_0x5842,_0xadb897=_0x390c7e();while(!![]){try{const _0x2f9779=-parseInt(_0x15cd52(0xeb))/0x1*(-parseInt(_0x15cd52(0x127))/0x2)+-parseInt(_0x15cd52(0xe1))/0x3+-parseInt(_0x15cd52(0xfd))/0x4+parseInt(_0x15cd52(0x11f))/0x5+-parseInt(_0x15cd52(0x106))/0x6*(-parseInt(_0x15cd52(0x103))/0x7)+parseInt(_0x15cd52(0xd4))/0x8+-parseInt(_0x15cd52(0x11b))/0x9*(parseInt(_0x15cd52(0xcd))/0xa);if(_0x2f9779===_0x45d83e)break;else _0xadb897['push'](_0xadb897['shift']());}catch(_0x37b4f8){_0xadb897['push'](_0xadb897['shift']());}}}(a147_0x5d1b,0xe0701));function a147_0x5d1b(){const _0x244af1=['Invalid\x20image\x20media\x20descriptor.','update','Invalid\x20image\x20readback\x20digest.','isSafeInteger','106929lLnZOe','missing','completed','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','8296770qmulsg','includes','entries','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','rows-started','name','resume','map','1636696eoOIRB','report','pending','image/gif','size','schemaVersion','succeeded','imageCells','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','get','rows-preparing','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','manifest','2300fMRrDB','hex','hash','Image\x20cell\x20references\x20missing\x20media.','00000000-0000-4000-8000-000000000000','dataset-import/','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','14203704NEbEyz','checkpoint','status','contract','test','hashes','imageApi','.rows.json','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','jpg','bytes','batchSize','actorId','1532652kyjvbz','type','image/png','errors','version','digest','some','every','maxBatchSize','reduce','1dmblUE','png','length','contentHash','maxPixels','Completed\x20image\x20checkpoint\x20value\x20changed.','maxFileBytes','appCode','strategy','.lock.recovery','fileHash','readback','.lock','maxBatchBytes','mappingHash','rows','isArray','phase','6030188BWkCEr','Invalid\x20image\x20manifest\x20limits.','upload','media','types','uploadFields','889rBQLTR','all','sheet','66954xCPygT','importId','code','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','gif','filePath','fromEntries','sha256','field','value','schemaHash','parserVersion','datasetCode','Image\x20media\x20bytes\x20changed.','runtimeDomain','values','Invalid\x20import\x20batch\x20size.'];a147_0x5d1b=function(){return _0x244af1;};return a147_0x5d1b();}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(_0x1e3319,_0x1a802f){const _0x747bf5=a147_0x5842;if(!_0x1a802f[_0x747bf5(0x100)]?.[_0x747bf5(0xed)])return;const _0x3f8347=_0x1e3319['imageImport'];if(!_0x3f8347||_0x3f8347[_0x747bf5(0xe5)]!==0x1||_0x3f8347['uploadId']!==_0x747bf5(0x10d)||_0x3f8347[_0x747bf5(0xf1)]!==0xa00000||_0x3f8347[_0x747bf5(0xef)]!==0x2625a00||!Array[_0x747bf5(0xfb)](_0x3f8347['types'])||![_0x747bf5(0xe3),'image/jpeg',_0x747bf5(0x12a)][_0x747bf5(0xe8)](_0x119d33=>_0x3f8347[_0x747bf5(0x101)][_0x747bf5(0x120)](_0x119d33)))throw Error(_0x747bf5(0x122));}export function imageObjectValue(_0x272460,_0x3b8b48,_0x37c11e){const _0x275613=a147_0x5842,_0x5dd0d5=createHash('sha256')['update'](JSON['stringify']([_0x272460[_0x275613(0xe0)],_0x272460[_0x275613(0xf2)],_0x272460[_0x275613(0x112)],_0x3b8b48]))[_0x275613(0xe6)](_0x275613(0xce)),_0x42c609={'image/png':_0x275613(0xec),'image/jpeg':_0x275613(0xdd),'image/gif':_0x275613(0x10a)}[_0x37c11e[_0x275613(0xe2)]];if(!_0x42c609||!/^[0-9a-f]{64}$/[_0x275613(0xd8)](_0x37c11e['contentHash'])||!Number[_0x275613(0x11a)](_0x37c11e[_0x275613(0xc4)])||_0x37c11e[_0x275613(0xc4)]<=0x0||_0x37c11e['size']>0xa00000)throw Error(_0x275613(0x117));const _0x196f50=_0x37c11e[_0x275613(0xee)]+'.'+_0x42c609;return{'key':_0x275613(0xd2)+_0x5dd0d5+'/'+_0x196f50,'name':_0x196f50,'type':_0x37c11e[_0x275613(0xe2)],'size':_0x37c11e[_0x275613(0xc4)]};}function a147_0x5842(_0x3c9075,_0x3c8897){_0x3c9075=_0x3c9075-0xc4;const _0x5d1ba2=a147_0x5d1b();let _0x584217=_0x5d1ba2[_0x3c9075];return _0x584217;}export function bindImageManifest(_0x107db2,_0x19ceb5,_0x5d3a99){const _0x3ab6f0=a147_0x5842,_0x22f968=new Map(_0x107db2[_0x3ab6f0(0x100)]?.[_0x3ab6f0(0x126)](_0x1cace4=>[_0x1cace4['contentHash'],_0x1cace4])),_0x40787a=new Map(_0x107db2[_0x3ab6f0(0xc7)]?.[_0x3ab6f0(0x126)](_0x1a9c69=>[_0x1a9c69['rowNumber']+':'+_0x1a9c69[_0x3ab6f0(0x10e)],_0x1a9c69[_0x3ab6f0(0xd9)]]));return{..._0x107db2,'rows':_0x107db2[_0x3ab6f0(0xfa)][_0x3ab6f0(0x126)](_0x39b2db=>({..._0x39b2db,'values':Object[_0x3ab6f0(0x10c)](Object[_0x3ab6f0(0x121)](_0x39b2db[_0x3ab6f0(0x115)])[_0x3ab6f0(0x126)](([_0x5fa126,_0x399c71])=>{const _0x117e13=_0x3ab6f0,_0x922b40=_0x40787a[_0x117e13(0xc9)](_0x39b2db['rowNumber']+':'+_0x5fa126);return[_0x5fa126,_0x922b40?_0x922b40[_0x117e13(0x126)](_0x1c3091=>{const _0x354a3a=_0x117e13,_0x82aecd=_0x22f968[_0x354a3a(0xc9)](_0x1c3091);if(!_0x82aecd)throw Error(_0x354a3a(0xd0));const _0x353469=imageObjectValue(_0x19ceb5,_0x5d3a99,_0x82aecd);return _0x107db2[_0x354a3a(0x102)]?.[_0x354a3a(0x120)](_0x5fa126)?{'fileName':_0x353469[_0x354a3a(0x124)],'filePath':_0x353469['key']}:_0x353469;}):_0x399c71];}))}))};}async function exists(_0x51f34e){const _0xed85f0=a147_0x5842;try{return await lstat(_0x51f34e),!![];}catch(_0x4508c7){if(_0x4508c7[_0xed85f0(0x108)]==='ENOENT')return![];throw _0x4508c7;}}export async function runImageExcelImport(_0x1a8654){const _0x162bca=a147_0x5842;assertImportContract(_0x1a8654[_0x162bca(0xd7)],_0x1a8654[_0x162bca(0xf2)],_0x1a8654[_0x162bca(0x112)]),assertImageImportCapability(_0x1a8654[_0x162bca(0xd7)],_0x1a8654[_0x162bca(0xcc)]);if(!Number['isInteger'](_0x1a8654['batchSize'])||_0x1a8654[_0x162bca(0xdf)]<0x1||_0x1a8654[_0x162bca(0xdf)]>_0x1a8654[_0x162bca(0xd7)][_0x162bca(0xe9)])throw Error(_0x162bca(0x116));if(_0x1a8654[_0x162bca(0xcc)][_0x162bca(0xe4)][_0x162bca(0xed)]||!_0x1a8654[_0x162bca(0xcc)]['rows'][_0x162bca(0xed)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0x3c4ff4=await resolveImportOutputPath(_0x1a8654[_0x162bca(0xd5)]),_0x12fa67=await resolveImportOutputPath(_0x1a8654[_0x162bca(0x128)]),_0x1a1ee2=await resolveImportOutputPath(_0x3c4ff4+_0x162bca(0xdb)),_0x159fbf=await Promise[_0x162bca(0x104)]([_0x1a1ee2,_0x1a1ee2+_0x162bca(0xf7),_0x1a1ee2+'.lock.recovery',..._0x1a8654['inputPaths']??[]][_0x162bca(0x126)](resolveImportOutputPath));for(const _0xa5cc7f of[_0x3c4ff4,_0x12fa67,_0x3c4ff4+_0x162bca(0xf7),_0x3c4ff4+_0x162bca(0xf4)])await resolveImportOutputPath(_0xa5cc7f);assertImportPaths(_0x3c4ff4,_0x12fa67,_0x159fbf);const {contract:_0x2784cf,manifest:_0x454640}=_0x1a8654,_0x87d470=_0x454640[_0x162bca(0x100)]??[];if(new Set(_0x87d470[_0x162bca(0x126)](_0x5865bb=>_0x5865bb[_0x162bca(0xee)]))['size']!==_0x87d470[_0x162bca(0xed)]||_0x87d470[_0x162bca(0xea)]((_0x44d0cf,_0x282e09)=>_0x44d0cf+_0x282e09[_0x162bca(0xc4)],0x0)>0x32*0x400*0x400||(_0x454640[_0x162bca(0xc7)]??[])[_0x162bca(0xea)]((_0x93d94,_0x5e4351)=>_0x93d94+_0x5e4351[_0x162bca(0xd9)][_0x162bca(0xed)],0x0)>0x2710)throw Error(_0x162bca(0xfe));for(const _0x4bc30f of _0x87d470)if(_0x4bc30f[_0x162bca(0xc4)]!==_0x4bc30f[_0x162bca(0xde)][_0x162bca(0xed)]||createHash(_0x162bca(0x10d))[_0x162bca(0x118)](_0x4bc30f['bytes'])['digest'](_0x162bca(0xce))!==_0x4bc30f['contentHash'])throw Error(_0x162bca(0x113));previewImportBatchCount(bindImageManifest(_0x454640,_0x2784cf,_0x162bca(0xd1)),_0x2784cf,_0x1a8654['batchSize']);const _0x30544b={'appCode':_0x1a8654['appCode'],'datasetCode':_0x1a8654['datasetCode'],'runtimeDomain':_0x1a8654[_0x162bca(0x114)],'actorId':_0x2784cf[_0x162bca(0xe0)],'fileHash':_0x454640[_0x162bca(0xf5)],'mappingHash':_0x454640[_0x162bca(0xf9)],'schemaHash':_0x454640[_0x162bca(0x110)],'remoteSchemaHash':_0x2784cf['schemaFingerprint'],'strategy':_0x2784cf[_0x162bca(0xf3)],'schemaVersion':_0x2784cf[_0x162bca(0xc5)],'batchSize':_0x1a8654[_0x162bca(0xdf)],'maxBatchBytes':_0x2784cf[_0x162bca(0xf8)],'sheet':_0x454640[_0x162bca(0x105)],'parserVersion':_0x454640[_0x162bca(0x111)],'imageFields':_0x454640['imageFields'],'cells':_0x454640['imageCells'],..._0x454640[_0x162bca(0x102)]?.[_0x162bca(0xed)]?{'uploadFields':_0x454640['uploadFields']}:{},'media':_0x87d470['map'](({contentHash:_0x258db3,type:_0x1ea9e7,size:_0xe59144})=>({'contentHash':_0x258db3,'type':_0x1ea9e7,'size':_0xe59144})),'rows':_0x454640[_0x162bca(0xfa)]},_0x112b49=await acquireLock(_0x3c4ff4);try{let _0x3043fb;if(_0x1a8654['resume']){try{_0x3043fb=JSON['parse'](await readFile(_0x3c4ff4,'utf8'));}catch{throw Error(_0x162bca(0xc8));}if(_0x3043fb[_0x162bca(0xe5)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x162bca(0xd8)](_0x3043fb['importId'])||canonical(_0x3043fb['binding'])!==canonical(_0x30544b)||![_0x162bca(0x100),_0x162bca(0xca),_0x162bca(0x123),'completed'][_0x162bca(0x120)](_0x3043fb['phase'])||!Array[_0x162bca(0xfb)](_0x3043fb[_0x162bca(0x100)])||_0x3043fb[_0x162bca(0x100)][_0x162bca(0xed)]!==_0x87d470['length']||_0x3043fb[_0x162bca(0x100)][_0x162bca(0xe7)]((_0x384cf4,_0x4c934b)=>_0x384cf4[_0x162bca(0xcf)]!==_0x87d470[_0x4c934b][_0x162bca(0xee)]||![_0x162bca(0x129),_0x162bca(0xc6)][_0x162bca(0x120)](_0x384cf4[_0x162bca(0xd6)])))throw Error(_0x162bca(0xd3));if([_0x162bca(0x123),'completed']['includes'](_0x3043fb[_0x162bca(0xfc)])&&!await exists(_0x1a1ee2))throw Error(_0x162bca(0x11e));if(_0x3043fb[_0x162bca(0xfc)]===_0x162bca(0x100)&&await exists(_0x1a1ee2))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x3c4ff4)||await exists(_0x1a1ee2))throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');_0x3043fb={'version':0x3,'importId':randomUUID(),'binding':_0x30544b,'phase':_0x162bca(0x100),'media':_0x87d470['map'](_0x1b8450=>({'hash':_0x1b8450[_0x162bca(0xee)],'status':_0x162bca(0x129)}))},await saveImportJson(_0x3c4ff4,_0x3043fb);}const _0x18c072=(_0x46aa31,_0x5733f8)=>{const _0x47f31b=_0x162bca;if(!_0x46aa31||_0x46aa31['contentHash']!==_0x5733f8['contentHash'])throw Error(_0x47f31b(0x119));if(_0x46aa31['status']===_0x47f31b(0x11c))return undefined;const _0x10af21=imageObjectValue(_0x2784cf,_0x3043fb[_0x47f31b(0x107)],_0x5733f8);if(_0x46aa31[_0x47f31b(0xd6)]!=='succeeded'||_0x46aa31[_0x47f31b(0x10b)]!==_0x10af21['key']||_0x46aa31['fileName']!==_0x10af21[_0x47f31b(0x124)]||_0x46aa31[_0x47f31b(0xe2)]!==_0x10af21['type']||_0x46aa31['size']!==_0x10af21[_0x47f31b(0xc4)])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x10af21;};for(let _0x34b5e7=0x0;_0x34b5e7<_0x87d470[_0x162bca(0xed)];_0x34b5e7++){const _0x42a1cc=_0x87d470[_0x34b5e7],_0x2e3dab=_0x3043fb[_0x162bca(0x100)][_0x34b5e7],_0x55c7dc=imageObjectValue(_0x2784cf,_0x3043fb[_0x162bca(0x107)],_0x42a1cc);if(_0x2e3dab[_0x162bca(0xd6)]===_0x162bca(0xc6)&&canonical(_0x2e3dab[_0x162bca(0x10f)])!==canonical(_0x55c7dc))throw Error(_0x162bca(0xf0));let _0x57f83f;if(_0x1a8654[_0x162bca(0x125)]||_0x2e3dab[_0x162bca(0xd6)]==='succeeded')_0x57f83f=_0x18c072(await _0x1a8654['imageApi'][_0x162bca(0xf6)](_0x3043fb[_0x162bca(0x107)],_0x42a1cc),_0x42a1cc);if(!_0x57f83f&&_0x2e3dab[_0x162bca(0xd6)]===_0x162bca(0xc6))throw Error(_0x162bca(0xdc));if(!_0x57f83f){try{_0x18c072(await _0x1a8654['imageApi'][_0x162bca(0xff)](_0x3043fb[_0x162bca(0x107)],_0x42a1cc),_0x42a1cc);}catch(_0x2f29a2){_0x57f83f=_0x18c072(await _0x1a8654[_0x162bca(0xda)][_0x162bca(0xf6)](_0x3043fb[_0x162bca(0x107)],_0x42a1cc),_0x42a1cc);if(!_0x57f83f)throw Error(_0x162bca(0x109));}if(!_0x57f83f)_0x57f83f=_0x18c072(await _0x1a8654[_0x162bca(0xda)][_0x162bca(0xf6)](_0x3043fb[_0x162bca(0x107)],_0x42a1cc),_0x42a1cc);if(!_0x57f83f)throw Error(_0x162bca(0xcb));}_0x2e3dab[_0x162bca(0xd6)]=_0x162bca(0xc6),_0x2e3dab[_0x162bca(0x10f)]=_0x57f83f,await saveImportJson(_0x3c4ff4,_0x3043fb);}const _0x3dd891=bindImageManifest(_0x454640,_0x2784cf,_0x3043fb[_0x162bca(0x107)]),_0x3d98c9=_0x3043fb[_0x162bca(0xfc)]===_0x162bca(0xca)?await exists(_0x1a1ee2):_0x3043fb[_0x162bca(0xfc)]!==_0x162bca(0x100);_0x3043fb[_0x162bca(0xfc)]==='media'&&(_0x3043fb[_0x162bca(0xfc)]=_0x162bca(0xca),await saveImportJson(_0x3c4ff4,_0x3043fb));const _0x44be0e={..._0x1a8654,'manifest':_0x3dd891,'checkpoint':_0x1a1ee2,'report':_0x12fa67,'resume':_0x3d98c9,'onCheckpointReady':async()=>{const _0x8b04f5=_0x162bca;_0x3043fb[_0x8b04f5(0xfc)]=_0x8b04f5(0x123),await saveImportJson(_0x3c4ff4,_0x3043fb);}},_0x4eebb8=_0x2784cf[_0x162bca(0xc5)]===0x2?await runAutoIdExcelImport({..._0x44be0e,'reconcileImageConflicts':_0x1a8654[_0x162bca(0x125)]===!![]&&_0x3d98c9}):await runExcelImport(_0x44be0e);return _0x3043fb[_0x162bca(0xfc)]=_0x162bca(0x11d),await saveImportJson(_0x3c4ff4,_0x3043fb),{..._0x4eebb8,'checkpoint':_0x3c4ff4,'imageCount':_0x454640[_0x162bca(0xc7)]?.['reduce']((_0x3625ba,_0x364da3)=>_0x3625ba+_0x364da3[_0x162bca(0xd9)][_0x162bca(0xed)],0x0)??0x0,'uniqueImages':_0x87d470[_0x162bca(0xed)]};}finally{await _0x112b49();}}
|
|
1
|
+
function a147_0x1157(_0xd02b5c,_0x5eed80){_0xd02b5c=_0xd02b5c-0x195;const _0x40e45d=a147_0x40e4();let _0x1157b5=_0x40e45d[_0xd02b5c];return _0x1157b5;}(function(_0x26baab,_0x29c26b){const _0x179745=a147_0x1157,_0x1c9c71=_0x26baab();while(!![]){try{const _0x2161f7=-parseInt(_0x179745(0x1d5))/0x1+-parseInt(_0x179745(0x1af))/0x2+-parseInt(_0x179745(0x1b9))/0x3+-parseInt(_0x179745(0x1ef))/0x4+parseInt(_0x179745(0x1f7))/0x5+-parseInt(_0x179745(0x1f0))/0x6+parseInt(_0x179745(0x1be))/0x7;if(_0x2161f7===_0x29c26b)break;else _0x1c9c71['push'](_0x1c9c71['shift']());}catch(_0x56e8a9){_0x1c9c71['push'](_0x1c9c71['shift']());}}}(a147_0x40e4,0x97a9d));import{randomUUID,createHash}from'node:crypto';function a147_0x40e4(){const _0x1fa662=['all','appCode','3474700zOaxJr','6050502nQusyB','rows-started','jpg','contentHash','name','importId','status','4280080uOEOMt','every','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','reduce','schemaHash','code','checkpoint','Invalid\x20image\x20media\x20descriptor.','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','readback','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','errors','test','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','dataset-import/','phase','parse','key','uploadFields','stringify','uploadId','map','entries','Image\x20cell\x20references\x20missing\x20media.','mappingHash','media','digest','00000000-0000-4000-8000-000000000000','1159468rmWWpI','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','type','completed','bytes','contract','maxBatchBytes','.lock','imageImport','filePath','469140caQpIV','imageApi','size','hashes','get','22482390VIrsON','batchSize','some','sha256','maxFileBytes','hash','imageCells','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','.lock.recovery','isInteger','rows-preparing','Invalid\x20image\x20manifest\x20limits.','manifest','update','strategy','inputPaths','report','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','image/png','maxPixels','Completed\x20image\x20checkpoint\x20value\x20changed.','fromEntries','isArray','833367ymEDoz','Invalid\x20image\x20readback\x20digest.','includes','utf8','rows','succeeded','ENOENT','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','value','schemaVersion','hex','.rows.json','length','rowNumber','Invalid\x20import\x20batch\x20size.','version','resume','pending','types','gif','datasetCode','image/gif','actorId','fileName'];a147_0x40e4=function(){return _0x1fa662;};return a147_0x40e4();}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(_0x2759fa,_0x460b57){const _0x272039=a147_0x1157;if(!_0x460b57[_0x272039(0x1ac)]?.[_0x272039(0x1e1)])return;const _0x50a8e1=_0x2759fa[_0x272039(0x1b7)];if(!_0x50a8e1||_0x50a8e1['version']!==0x1||_0x50a8e1[_0x272039(0x1a7)]!==_0x272039(0x1c1)||_0x50a8e1[_0x272039(0x1c2)]!==0xa00000||_0x50a8e1[_0x272039(0x1d1)]!==0x2625a00||!Array[_0x272039(0x1d4)](_0x50a8e1[_0x272039(0x1e7)])||![_0x272039(0x1d0),'image/jpeg',_0x272039(0x1ea)][_0x272039(0x1f8)](_0x33b27d=>_0x50a8e1[_0x272039(0x1e7)][_0x272039(0x1d7)](_0x33b27d)))throw Error('The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.');}export function imageObjectValue(_0x8e9960,_0x131a67,_0x3aa52d){const _0x4a4d05=a147_0x1157,_0x426136=createHash('sha256')[_0x4a4d05(0x1cb)](JSON[_0x4a4d05(0x1a6)]([_0x8e9960[_0x4a4d05(0x1eb)],_0x8e9960['appCode'],_0x8e9960[_0x4a4d05(0x1e9)],_0x131a67]))['digest'](_0x4a4d05(0x1df)),_0x52adb2={'image/png':'png','image/jpeg':_0x4a4d05(0x1f2),'image/gif':_0x4a4d05(0x1e8)}[_0x3aa52d[_0x4a4d05(0x1b1)]];if(!_0x52adb2||!/^[0-9a-f]{64}$/[_0x4a4d05(0x19f)](_0x3aa52d[_0x4a4d05(0x1f3)])||!Number['isSafeInteger'](_0x3aa52d['size'])||_0x3aa52d[_0x4a4d05(0x1bb)]<=0x0||_0x3aa52d[_0x4a4d05(0x1bb)]>0xa00000)throw Error(_0x4a4d05(0x19a));const _0x2d87d7=_0x3aa52d[_0x4a4d05(0x1f3)]+'.'+_0x52adb2;return{'key':_0x4a4d05(0x1a1)+_0x426136+'/'+_0x2d87d7,'name':_0x2d87d7,'type':_0x3aa52d[_0x4a4d05(0x1b1)],'size':_0x3aa52d[_0x4a4d05(0x1bb)]};}export function bindImageManifest(_0x2fe0df,_0x3a4e4d,_0x2057f2){const _0x2af713=a147_0x1157,_0x1d9ed9=new Map(_0x2fe0df[_0x2af713(0x1ac)]?.[_0x2af713(0x1a8)](_0x48e9ba=>[_0x48e9ba[_0x2af713(0x1f3)],_0x48e9ba])),_0x2f591b=new Map(_0x2fe0df[_0x2af713(0x1c4)]?.[_0x2af713(0x1a8)](_0x2335f3=>[_0x2335f3[_0x2af713(0x1e2)]+':'+_0x2335f3['field'],_0x2335f3[_0x2af713(0x1bc)]]));return{..._0x2fe0df,'rows':_0x2fe0df[_0x2af713(0x1d9)][_0x2af713(0x1a8)](_0x4b8cb1=>({..._0x4b8cb1,'values':Object[_0x2af713(0x1d3)](Object[_0x2af713(0x1a9)](_0x4b8cb1['values'])[_0x2af713(0x1a8)](([_0x46e794,_0x268548])=>{const _0x465686=_0x2af713,_0x10acd0=_0x2f591b[_0x465686(0x1bd)](_0x4b8cb1[_0x465686(0x1e2)]+':'+_0x46e794);return[_0x46e794,_0x10acd0?_0x10acd0[_0x465686(0x1a8)](_0x40d09b=>{const _0x8848b2=_0x465686,_0x5c2005=_0x1d9ed9[_0x8848b2(0x1bd)](_0x40d09b);if(!_0x5c2005)throw Error(_0x8848b2(0x1aa));const _0x4ed2fd=imageObjectValue(_0x3a4e4d,_0x2057f2,_0x5c2005);return _0x2fe0df[_0x8848b2(0x1a5)]?.[_0x8848b2(0x1d7)](_0x46e794)?{'fileName':_0x4ed2fd[_0x8848b2(0x1f4)],'filePath':_0x4ed2fd[_0x8848b2(0x1a4)]}:_0x4ed2fd;}):_0x268548];}))}))};}async function exists(_0x5189a6){const _0x5885df=a147_0x1157;try{return await lstat(_0x5189a6),!![];}catch(_0x42b1bd){if(_0x42b1bd[_0x5885df(0x198)]===_0x5885df(0x1db))return![];throw _0x42b1bd;}}export async function runImageExcelImport(_0x2142c9){const _0xa4d714=a147_0x1157;assertImportContract(_0x2142c9[_0xa4d714(0x1b4)],_0x2142c9[_0xa4d714(0x1ee)],_0x2142c9[_0xa4d714(0x1e9)]),assertImageImportCapability(_0x2142c9[_0xa4d714(0x1b4)],_0x2142c9[_0xa4d714(0x1ca)]);if(!Number[_0xa4d714(0x1c7)](_0x2142c9[_0xa4d714(0x1bf)])||_0x2142c9[_0xa4d714(0x1bf)]<0x1||_0x2142c9[_0xa4d714(0x1bf)]>_0x2142c9[_0xa4d714(0x1b4)]['maxBatchSize'])throw Error(_0xa4d714(0x1e3));if(_0x2142c9[_0xa4d714(0x1ca)][_0xa4d714(0x19e)][_0xa4d714(0x1e1)]||!_0x2142c9[_0xa4d714(0x1ca)][_0xa4d714(0x1d9)][_0xa4d714(0x1e1)])throw Error(_0xa4d714(0x1cf));const _0x3ec057=await resolveImportOutputPath(_0x2142c9[_0xa4d714(0x199)]),_0x279e0f=await resolveImportOutputPath(_0x2142c9[_0xa4d714(0x1ce)]),_0xe1ac58=await resolveImportOutputPath(_0x3ec057+_0xa4d714(0x1e0)),_0x490809=await Promise[_0xa4d714(0x1ed)]([_0xe1ac58,_0xe1ac58+_0xa4d714(0x1b6),_0xe1ac58+_0xa4d714(0x1c6),..._0x2142c9[_0xa4d714(0x1cd)]??[]][_0xa4d714(0x1a8)](resolveImportOutputPath));for(const _0x4283b2 of[_0x3ec057,_0x279e0f,_0x3ec057+_0xa4d714(0x1b6),_0x3ec057+_0xa4d714(0x1c6)])await resolveImportOutputPath(_0x4283b2);assertImportPaths(_0x3ec057,_0x279e0f,_0x490809);const {contract:_0x2b8907,manifest:_0x45d6c6}=_0x2142c9,_0x28f5b0=_0x45d6c6[_0xa4d714(0x1ac)]??[];if(new Set(_0x28f5b0[_0xa4d714(0x1a8)](_0x41dd3d=>_0x41dd3d[_0xa4d714(0x1f3)]))[_0xa4d714(0x1bb)]!==_0x28f5b0['length']||_0x28f5b0[_0xa4d714(0x196)]((_0x196dd0,_0x1565e2)=>_0x196dd0+_0x1565e2['size'],0x0)>0x32*0x400*0x400||(_0x45d6c6[_0xa4d714(0x1c4)]??[])[_0xa4d714(0x196)]((_0x301aec,_0x5e2075)=>_0x301aec+_0x5e2075['hashes'][_0xa4d714(0x1e1)],0x0)>0x2710)throw Error(_0xa4d714(0x1c9));for(const _0x44122e of _0x28f5b0)if(_0x44122e[_0xa4d714(0x1bb)]!==_0x44122e['bytes']['length']||createHash(_0xa4d714(0x1c1))['update'](_0x44122e[_0xa4d714(0x1b3)])[_0xa4d714(0x1ad)](_0xa4d714(0x1df))!==_0x44122e[_0xa4d714(0x1f3)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0x45d6c6,_0x2b8907,_0xa4d714(0x1ae)),_0x2b8907,_0x2142c9[_0xa4d714(0x1bf)]);const _0x2b41c6={'appCode':_0x2142c9[_0xa4d714(0x1ee)],'datasetCode':_0x2142c9[_0xa4d714(0x1e9)],'runtimeDomain':_0x2142c9['runtimeDomain'],'actorId':_0x2b8907[_0xa4d714(0x1eb)],'fileHash':_0x45d6c6['fileHash'],'mappingHash':_0x45d6c6[_0xa4d714(0x1ab)],'schemaHash':_0x45d6c6[_0xa4d714(0x197)],'remoteSchemaHash':_0x2b8907['schemaFingerprint'],'strategy':_0x2b8907[_0xa4d714(0x1cc)],'schemaVersion':_0x2b8907['schemaVersion'],'batchSize':_0x2142c9['batchSize'],'maxBatchBytes':_0x2b8907[_0xa4d714(0x1b5)],'sheet':_0x45d6c6['sheet'],'parserVersion':_0x45d6c6['parserVersion'],'imageFields':_0x45d6c6['imageFields'],'cells':_0x45d6c6[_0xa4d714(0x1c4)],..._0x45d6c6[_0xa4d714(0x1a5)]?.[_0xa4d714(0x1e1)]?{'uploadFields':_0x45d6c6[_0xa4d714(0x1a5)]}:{},'media':_0x28f5b0[_0xa4d714(0x1a8)](({contentHash:_0x1f72e5,type:_0x9f22d9,size:_0x5115a5})=>({'contentHash':_0x1f72e5,'type':_0x9f22d9,'size':_0x5115a5})),'rows':_0x45d6c6[_0xa4d714(0x1d9)]},_0x59b626=await acquireLock(_0x3ec057);try{let _0x392ba0;if(_0x2142c9[_0xa4d714(0x1e5)]){try{_0x392ba0=JSON[_0xa4d714(0x1a3)](await readFile(_0x3ec057,_0xa4d714(0x1d8)));}catch{throw Error(_0xa4d714(0x195));}if(_0x392ba0[_0xa4d714(0x1e4)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x392ba0[_0xa4d714(0x1f5)])||canonical(_0x392ba0['binding'])!==canonical(_0x2b41c6)||!['media',_0xa4d714(0x1c8),_0xa4d714(0x1f1),_0xa4d714(0x1b2)][_0xa4d714(0x1d7)](_0x392ba0[_0xa4d714(0x1a2)])||!Array[_0xa4d714(0x1d4)](_0x392ba0['media'])||_0x392ba0[_0xa4d714(0x1ac)][_0xa4d714(0x1e1)]!==_0x28f5b0[_0xa4d714(0x1e1)]||_0x392ba0[_0xa4d714(0x1ac)][_0xa4d714(0x1c0)]((_0x377e8e,_0x2b5e04)=>_0x377e8e[_0xa4d714(0x1c3)]!==_0x28f5b0[_0x2b5e04][_0xa4d714(0x1f3)]||![_0xa4d714(0x1e6),_0xa4d714(0x1da)][_0xa4d714(0x1d7)](_0x377e8e[_0xa4d714(0x1f6)])))throw Error(_0xa4d714(0x1dc));if([_0xa4d714(0x1f1),_0xa4d714(0x1b2)][_0xa4d714(0x1d7)](_0x392ba0[_0xa4d714(0x1a2)])&&!await exists(_0xe1ac58))throw Error(_0xa4d714(0x19d));if(_0x392ba0[_0xa4d714(0x1a2)]==='media'&&await exists(_0xe1ac58))throw Error(_0xa4d714(0x1c5));}else{if(await exists(_0x3ec057)||await exists(_0xe1ac58))throw Error(_0xa4d714(0x19b));_0x392ba0={'version':0x3,'importId':randomUUID(),'binding':_0x2b41c6,'phase':'media','media':_0x28f5b0['map'](_0x5d448b=>({'hash':_0x5d448b[_0xa4d714(0x1f3)],'status':_0xa4d714(0x1e6)}))},await saveImportJson(_0x3ec057,_0x392ba0);}const _0x28a720=(_0x12d4aa,_0x213e68)=>{const _0x32daf5=_0xa4d714;if(!_0x12d4aa||_0x12d4aa[_0x32daf5(0x1f3)]!==_0x213e68['contentHash'])throw Error(_0x32daf5(0x1d6));if(_0x12d4aa[_0x32daf5(0x1f6)]==='missing')return undefined;const _0x47dd66=imageObjectValue(_0x2b8907,_0x392ba0[_0x32daf5(0x1f5)],_0x213e68);if(_0x12d4aa['status']!==_0x32daf5(0x1da)||_0x12d4aa[_0x32daf5(0x1b8)]!==_0x47dd66[_0x32daf5(0x1a4)]||_0x12d4aa[_0x32daf5(0x1ec)]!==_0x47dd66['name']||_0x12d4aa[_0x32daf5(0x1b1)]!==_0x47dd66[_0x32daf5(0x1b1)]||_0x12d4aa[_0x32daf5(0x1bb)]!==_0x47dd66['size'])throw Error(_0x32daf5(0x1a0));return _0x47dd66;};for(let _0x4e8487=0x0;_0x4e8487<_0x28f5b0[_0xa4d714(0x1e1)];_0x4e8487++){const _0x3fbec2=_0x28f5b0[_0x4e8487],_0x5d1013=_0x392ba0[_0xa4d714(0x1ac)][_0x4e8487],_0x12ed69=imageObjectValue(_0x2b8907,_0x392ba0[_0xa4d714(0x1f5)],_0x3fbec2);if(_0x5d1013[_0xa4d714(0x1f6)]===_0xa4d714(0x1da)&&canonical(_0x5d1013[_0xa4d714(0x1dd)])!==canonical(_0x12ed69))throw Error(_0xa4d714(0x1d2));let _0x4a8830;if(_0x2142c9[_0xa4d714(0x1e5)]||_0x5d1013[_0xa4d714(0x1f6)]===_0xa4d714(0x1da))_0x4a8830=_0x28a720(await _0x2142c9[_0xa4d714(0x1ba)]['readback'](_0x392ba0[_0xa4d714(0x1f5)],_0x3fbec2),_0x3fbec2);if(!_0x4a8830&&_0x5d1013[_0xa4d714(0x1f6)]==='succeeded')throw Error(_0xa4d714(0x1b0));if(!_0x4a8830){try{_0x28a720(await _0x2142c9[_0xa4d714(0x1ba)]['upload'](_0x392ba0['importId'],_0x3fbec2),_0x3fbec2);}catch(_0x568421){_0x4a8830=_0x28a720(await _0x2142c9['imageApi']['readback'](_0x392ba0['importId'],_0x3fbec2),_0x3fbec2);if(!_0x4a8830)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x4a8830)_0x4a8830=_0x28a720(await _0x2142c9['imageApi'][_0xa4d714(0x19c)](_0x392ba0[_0xa4d714(0x1f5)],_0x3fbec2),_0x3fbec2);if(!_0x4a8830)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x5d1013[_0xa4d714(0x1f6)]=_0xa4d714(0x1da),_0x5d1013[_0xa4d714(0x1dd)]=_0x4a8830,await saveImportJson(_0x3ec057,_0x392ba0);}const _0x515b08=bindImageManifest(_0x45d6c6,_0x2b8907,_0x392ba0[_0xa4d714(0x1f5)]),_0x639a45=_0x392ba0[_0xa4d714(0x1a2)]==='rows-preparing'?await exists(_0xe1ac58):_0x392ba0[_0xa4d714(0x1a2)]!==_0xa4d714(0x1ac);_0x392ba0[_0xa4d714(0x1a2)]===_0xa4d714(0x1ac)&&(_0x392ba0[_0xa4d714(0x1a2)]=_0xa4d714(0x1c8),await saveImportJson(_0x3ec057,_0x392ba0));const _0x23a353={..._0x2142c9,'manifest':_0x515b08,'checkpoint':_0xe1ac58,'report':_0x279e0f,'resume':_0x639a45,'onCheckpointReady':async()=>{_0x392ba0['phase']='rows-started',await saveImportJson(_0x3ec057,_0x392ba0);}},_0x174ebd=_0x2b8907[_0xa4d714(0x1de)]===0x2?await runAutoIdExcelImport({..._0x23a353,'reconcileImageConflicts':_0x2142c9[_0xa4d714(0x1e5)]===!![]&&_0x639a45}):await runExcelImport(_0x23a353);return _0x392ba0['phase']=_0xa4d714(0x1b2),await saveImportJson(_0x3ec057,_0x392ba0),{..._0x174ebd,'checkpoint':_0x3ec057,'imageCount':_0x45d6c6['imageCells']?.[_0xa4d714(0x196)]((_0xe2eed7,_0x1c64ef)=>_0xe2eed7+_0x1c64ef[_0xa4d714(0x1bc)][_0xa4d714(0x1e1)],0x0)??0x0,'uniqueImages':_0x28f5b0['length']};}finally{await _0x59b626();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a148_0x5050(_0x55f506,_0x4fc5e9){_0x55f506=_0x55f506-0x16a;const _0x2fea00=a148_0x2fea();let _0x50502b=_0x2fea00[_0x55f506];return _0x50502b;}(function(_0x819865,_0x46fea5){const _0x5840ff=a148_0x5050,_0x44c489=_0x819865();while(!![]){try{const _0x3f045a=-parseInt(_0x5840ff(0x16d))/0x1*(-parseInt(_0x5840ff(0x171))/0x2)+parseInt(_0x5840ff(0x16b))/0x3+parseInt(_0x5840ff(0x17d))/0x4+parseInt(_0x5840ff(0x178))/0x5+-parseInt(_0x5840ff(0x16f))/0x6*(-parseInt(_0x5840ff(0x172))/0x7)+-parseInt(_0x5840ff(0x174))/0x8+parseInt(_0x5840ff(0x17f))/0x9*(-parseInt(_0x5840ff(0x175))/0xa);if(_0x3f045a===_0x46fea5)break;else _0x44c489['push'](_0x44c489['shift']());}catch(_0x35861f){_0x44c489['push'](_0x44c489['shift']());}}}(a148_0x2fea,0x7c526));export function assertDatasetImportTarget(_0x57ad74,_0x592087,_0x18ac59){const _0x5282ff=a148_0x5050;if(!_0x57ad74||typeof _0x57ad74!=='object'||Array['isArray'](_0x57ad74))throw Error(_0x5282ff(0x170));const _0x399388=[_0x57ad74[_0x5282ff(0x17e)],_0x57ad74[_0x5282ff(0x173)],_0x57ad74['dataset']?.[_0x5282ff(0x16a)]][_0x5282ff(0x17b)](_0x34af03=>_0x34af03!=null);if(!_0x399388['length']||_0x399388[_0x5282ff(0x180)](_0x7f943b=>_0x7f943b!==_0x18ac59)||_0x57ad74[_0x5282ff(0x176)]!=null&&_0x57ad74[_0x5282ff(0x176)]!==_0x592087||_0x57ad74[_0x5282ff(0x179)]?.[_0x5282ff(0x176)]!=null&&_0x57ad74['dataset'][_0x5282ff(0x176)]!==_0x592087)throw Error(_0x5282ff(0x16e));const _0x3f2f3c=[_0x57ad74[_0x5282ff(0x17a)],_0x57ad74[_0x5282ff(0x179)]?.[_0x5282ff(0x177)]][_0x5282ff(0x17b)](_0x4f75c7=>_0x4f75c7!=null);if(_0x3f2f3c['some'](_0x54433d=>typeof _0x54433d!==_0x5282ff(0x17c)||_0x54433d!==_0x3f2f3c[0x0]))throw Error(_0x5282ff(0x16c));return _0x3f2f3c[0x0];}function a148_0x2fea(){const _0x5af40f=['datasetCode','3052584kGRMnL','Dataset\x20source\x20metadata\x20is\x20inconsistent.','4HMpHSd','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','83802oTIryR','Dataset\x20metadata\x20is\x20missing.','104418TMNzHF','63jnyvBV','modelCode','2113360yxMWLB','2902480RPwxiI','appCode','sourceType','2844210bQwzrj','dataset','source','filter','string','53900METTru','code','36KYMOYG','some'];a148_0x2fea=function(){return _0x5af40f;};return a148_0x2fea();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe3b5aa,_0x8c74de){const _0x33b4d0=a149_0x3b9b,_0xbd9467=_0xe3b5aa();while(!![]){try{const _0x29a0ae=-parseInt(_0x33b4d0(0x158))/0x1*(parseInt(_0x33b4d0(0x164))/0x2)+parseInt(_0x33b4d0(0x162))/0x3+parseInt(_0x33b4d0(0x161))/0x4+-parseInt(_0x33b4d0(0x159))/0x5*(parseInt(_0x33b4d0(0x168))/0x6)+-parseInt(_0x33b4d0(0x151))/0x7*(-parseInt(_0x33b4d0(0x166))/0x8)+-parseInt(_0x33b4d0(0x15f))/0x9+-parseInt(_0x33b4d0(0x15e))/0xa*(-parseInt(_0x33b4d0(0x15c))/0xb);if(_0x29a0ae===_0x8c74de)break;else _0xbd9467['push'](_0xbd9467['shift']());}catch(_0x466b04){_0xbd9467['push'](_0xbd9467['shift']());}}}(a149_0x2f17,0x47bcc));function a149_0x3b9b(_0x43f27b,_0x50f284){_0x43f27b=_0x43f27b-0x151;const _0x2f17c9=a149_0x2f17();let _0x3b9bcf=_0x2f17c9[_0x43f27b];return _0x3b9bcf;}export function previewImportBatchCount(_0x2b8643,_0x5b5ea0,_0x59171c){const _0x36e0b9=a149_0x3b9b,_0x4d5bf7=_0x2828a7=>_0x2828a7[_0x36e0b9(0x155)](_0x1fb21d=>_0x5b5ea0[_0x36e0b9(0x160)]===0x1?{..._0x2b8643[_0x36e0b9(0x154)][_0x1fb21d][_0x36e0b9(0x15a)],'id':-0x1fffffffffffff}:_0x2b8643[_0x36e0b9(0x154)][_0x1fb21d]['values']),_0x26cb3a=_0x366fd1=>Buffer[_0x36e0b9(0x15b)](JSON[_0x36e0b9(0x153)]({'schemaFingerprint':_0x5b5ea0[_0x36e0b9(0x165)],..._0x5b5ea0[_0x36e0b9(0x160)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x4d5bf7(_0x366fd1)}),_0x36e0b9(0x156));let _0x31268b=0x0,_0x146045=[];for(let _0x4a8948=0x0;_0x4a8948<_0x2b8643['rows'][_0x36e0b9(0x15d)];_0x4a8948++){if(_0x26cb3a([_0x4a8948])>_0x5b5ea0[_0x36e0b9(0x152)])throw Error(_0x36e0b9(0x169)+_0x2b8643[_0x36e0b9(0x154)][_0x4a8948][_0x36e0b9(0x163)]+_0x36e0b9(0x167));_0x146045[_0x36e0b9(0x15d)]&&(_0x146045['length']===_0x59171c||_0x26cb3a([..._0x146045,_0x4a8948])>_0x5b5ea0['maxBatchBytes'])&&(_0x31268b++,_0x146045=[]),_0x146045[_0x36e0b9(0x157)](_0x4a8948);}return _0x31268b+Number(_0x146045[_0x36e0b9(0x15d)]>0x0);}function a149_0x2f17(){const _0x56bbec=['245315rbZGgt','values','byteLength','11WSGhkx','length','9519470FTdNlu','4320900svNhKV','schemaVersion','1103852ewHxyC','1363236wERPKJ','rowNumber','4OJyFNf','schemaFingerprint','80VsPIlN','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','60VqhsAa','Excel\x20row\x20','19222iaKOkz','maxBatchBytes','stringify','rows','map','utf8','push','222608YGqxSx'];a149_0x2f17=function(){return _0x56bbec;};return a149_0x2f17();}
|