@lovrabet/dsparser 1.2.2 → 1.2.3

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const a0_0x17ef4f=a0_0x254c;(function(_0x53a931,_0x542898){const _0x31addb=a0_0x254c,_0x39ea4b=_0x53a931();while(!![]){try{const _0x56c37e=-parseInt(_0x31addb(0x2ac))/0x1+-parseInt(_0x31addb(0x20e))/0x2+-parseInt(_0x31addb(0x2a7))/0x3*(-parseInt(_0x31addb(0x190))/0x4)+parseInt(_0x31addb(0x2bd))/0x5*(-parseInt(_0x31addb(0x342))/0x6)+-parseInt(_0x31addb(0x272))/0x7+-parseInt(_0x31addb(0x18c))/0x8+parseInt(_0x31addb(0x216))/0x9;if(_0x56c37e===_0x542898)break;else _0x39ea4b['push'](_0x39ea4b['shift']());}catch(_0x3e8192){_0x39ea4b['push'](_0x39ea4b['shift']());}}}(a0_0x4042,0x5a50d));function toCamelCase(_0x36664a){const _0x2b0e1f=a0_0x254c;if(!_0x36664a)return'';return _0x36664a[_0x2b0e1f(0x280)](/[_-]/)['map']((_0xf65a04,_0xffea53)=>{const _0x5c1725=_0x2b0e1f;if(_0xffea53===0x0)return _0xf65a04['toLowerCase']();return _0xf65a04[_0x5c1725(0x1aa)](0x0)[_0x5c1725(0x246)]()+_0xf65a04['slice'](0x1)[_0x5c1725(0x2a5)]();})['join']('');}function toPascalCase(_0x281a50){const _0x5d2af0=a0_0x254c;if(!_0x281a50)return'';const _0x2abc75=toCamelCase(_0x281a50);return _0x2abc75[_0x5d2af0(0x1aa)](0x0)[_0x5d2af0(0x246)]()+_0x2abc75[_0x5d2af0(0x166)](0x1);}function toSnakeCase(_0x36de83){const _0x2498bd=a0_0x254c;if(!_0x36de83)return'';return _0x36de83[_0x2498bd(0x309)](/([A-Z])/g,'_$1')['toLowerCase']()[_0x2498bd(0x309)](/^_/,'');}function toKebabCase(_0x1a4485){const _0x75cdf2=a0_0x254c;if(!_0x1a4485)return'';return _0x1a4485['replace'](/([A-Z])/g,_0x75cdf2(0x18f))[_0x75cdf2(0x2a5)]()[_0x75cdf2(0x309)](/^-/,'');}function normalizeFieldName(_0x4e146c){const _0x337a2c=a0_0x254c;if(!_0x4e146c)return'';return _0x4e146c[_0x337a2c(0x2c3)]()[_0x337a2c(0x309)](/\s+/g,'_')[_0x337a2c(0x309)](/[^a-zA-Z0-9_]/g,'_')[_0x337a2c(0x309)](/_+/g,'_')[_0x337a2c(0x309)](/^_|_$/g,'');}function getTableName(_0x464058){const _0xab0891=a0_0x254c;if(!_0x464058)return'dataset_000000';if(_0x464058[_0xab0891(0x242)]?.[_0xab0891(0x139)])return _0x464058[_0xab0891(0x242)][_0xab0891(0x139)];const _0x4488ad=_0x464058[_0xab0891(0x2eb)]||_0x464058[_0xab0891(0x326)]||_0x464058[_0xab0891(0x199)];if(_0x4488ad)return generateTableNameFromCode(_0x4488ad);return _0xab0891(0x23e);}function getTableKey(_0x2e5b1c){const _0x6af318=a0_0x254c;if(typeof _0x2e5b1c===_0x6af318(0x2f9))return toCamelCase(_0x2e5b1c);const _0x390963=getTableName(_0x2e5b1c);return toCamelCase(_0x390963);}function generateTableNameFromCode(_0x11766f){const _0x4c5694=a0_0x254c;if(!_0x11766f)return _0x4c5694(0x23e);const _0x39d7b1=_0x11766f['slice'](-0x6)[_0x4c5694(0x274)](0x6,'0');return _0x4c5694(0x1ee)+_0x39d7b1;}function isVirtualTableName(_0x468892){const _0x440325=a0_0x254c;return/^dataset_[a-zA-Z0-9]{6}$/[_0x440325(0x1c5)](_0x468892);}function generateModelKeyFromCode(_0x32188f){const _0x227499=a0_0x254c;if(!_0x32188f)return _0x227499(0x161);return _0x227499(0x1ee)+_0x32188f;}function getDbName(_0x5610fe){const _0x14a731=a0_0x254c;return _0x5610fe[_0x14a731(0x242)]?.[_0x14a731(0x145)]||_0x5610fe[_0x14a731(0x242)]?.['dblinkInfoDTO']?.['dbName']||'';}function generateDatasetsConfig(_0x41ef66,_0x52c381={}){const _0x21c847=a0_0x254c,{enableDeduplication:enableDeduplication=!![],datasetNameGenerator:_0x589ff7,filter:_0x2cdf27}=_0x52c381,_0x530f6a=_0x2cdf27?_0x41ef66[_0x21c847(0x144)](_0x2cdf27):_0x41ef66,_0x4612f3=new Map();for(const _0x20dcc8 of _0x530f6a){const _0x390f93=getTableName(_0x20dcc8),_0x4d8b3a=getDbName(_0x20dcc8);!_0x4612f3['has'](_0x390f93)&&_0x4612f3[_0x21c847(0x1a5)](_0x390f93,new Set()),_0x4612f3[_0x21c847(0x163)](_0x390f93)[_0x21c847(0x2be)](_0x4d8b3a);}const _0x1af95d=new Set();for(const [_0x3bef0a,_0x3abb73]of _0x4612f3){_0x3abb73['size']>0x1&&_0x1af95d['add'](_0x3bef0a);}const _0x520a6a={},_0x38b740=new Set();for(const _0x1ec5b0 of _0x530f6a){const _0x33556c=getTableName(_0x1ec5b0);if(enableDeduplication&&_0x38b740[_0x21c847(0x207)](_0x33556c)){console[_0x21c847(0x1cb)]('[dsparser]\x20跳过重复的表名\x20\x22'+_0x33556c+_0x21c847(0x151)+_0x1ec5b0[_0x21c847(0x1e4)]+'\x20('+_0x1ec5b0[_0x21c847(0x2eb)]+')');continue;}_0x38b740[_0x21c847(0x2be)](_0x33556c);const _0x3807dd=_0x589ff7?_0x589ff7(_0x33556c,_0x1ec5b0):getTableKey(_0x33556c),_0x4e1b55=getDbName(_0x1ec5b0),_0x2926f1=_0x1af95d[_0x21c847(0x207)](_0x33556c)&&_0x4e1b55?getTableKey(_0x4e1b55)+'_'+_0x3807dd:_0x3807dd;_0x520a6a[_0x3807dd]={'key':_0x3807dd,'alias':_0x2926f1,'tableName':_0x33556c,'datasetCode':_0x1ec5b0[_0x21c847(0x2eb)],'name':_0x1ec5b0[_0x21c847(0x1e4)],'id':_0x1ec5b0['id'],'dbName':_0x4e1b55};}return _0x520a6a;}function generateFullDatasetsConfig(_0x1f94f5,_0x8fb158={}){const _0x4bef22=a0_0x254c,{filter:_0x53bd9d,datasetNameGenerator:_0x469784}=_0x8fb158,_0x4a9dbc=_0x53bd9d?_0x1f94f5[_0x4bef22(0x144)](_0x53bd9d):_0x1f94f5,_0x32ea7e=new Map();for(const _0x2c483d of _0x4a9dbc){const _0x29dd7b=getTableName(_0x2c483d),_0x55b606=getDbName(_0x2c483d);!_0x32ea7e[_0x4bef22(0x207)](_0x29dd7b)&&_0x32ea7e[_0x4bef22(0x1a5)](_0x29dd7b,new Set()),_0x32ea7e['get'](_0x29dd7b)[_0x4bef22(0x2be)](_0x55b606);}const _0x145406=new Set();for(const [_0x57c804,_0x2f449c]of _0x32ea7e){_0x2f449c[_0x4bef22(0x312)]>0x1&&_0x145406[_0x4bef22(0x2be)](_0x57c804);}const _0x345dda=groupByTableName(_0x4a9dbc),_0xf6cc16={};for(const [_0x27864b,_0x2f4547]of Object['entries'](_0x345dda)){if(_0x2f4547[_0x4bef22(0x316)]===0x1){const _0x3d76c3=_0x2f4547[0x0],_0x95827a=_0x469784?_0x469784(_0x27864b,_0x3d76c3):getTableKey(_0x27864b),_0x57438c=getDbName(_0x3d76c3),_0x42573a=_0x145406[_0x4bef22(0x207)](_0x27864b)&&_0x57438c?getTableKey(_0x57438c)+'_'+_0x95827a:_0x95827a;_0xf6cc16[_0x95827a]={'key':_0x95827a,'alias':_0x42573a,'tableName':_0x27864b,'datasetCode':_0x3d76c3[_0x4bef22(0x2eb)],'name':_0x3d76c3['name'],'id':_0x3d76c3['id'],'dbName':_0x57438c};}else{const _0x2a9a36=[..._0x2f4547][_0x4bef22(0x339)]((_0x49399d,_0x419e2c)=>{const _0x52832d=Number(_0x49399d['id'])||0x0,_0x387873=Number(_0x419e2c['id'])||0x0;return _0x387873-_0x52832d;});_0x2a9a36[_0x4bef22(0x2f6)]((_0x5d4cc9,_0x100286)=>{const _0x4a1af5=_0x4bef22,_0x5e3171=_0x469784?_0x469784(_0x27864b,_0x5d4cc9):getTableKey(_0x27864b),_0x4d68b3=_0x100286===0x0?_0x5e3171:_0x5e3171+'_'+_0x100286,_0x77056a=getDbName(_0x5d4cc9),_0x172b65=_0x145406[_0x4a1af5(0x207)](_0x27864b)&&_0x77056a?getTableKey(_0x77056a)+'_'+_0x4d68b3:_0x4d68b3;_0xf6cc16[_0x4d68b3]={'key':_0x4d68b3,'alias':_0x172b65,'tableName':_0x27864b,'datasetCode':_0x5d4cc9[_0x4a1af5(0x2eb)],'name':_0x5d4cc9[_0x4a1af5(0x1e4)],'id':_0x5d4cc9['id'],'dbName':_0x77056a};});}}return _0xf6cc16;}function detectTableNameConflicts(_0x1a8acd){const _0x2d63d6=a0_0x254c,_0x56739d={};for(const _0x1be00b of _0x1a8acd){const _0x472c8d=getTableName(_0x1be00b);!_0x56739d[_0x472c8d]&&(_0x56739d[_0x472c8d]=[]),_0x56739d[_0x472c8d]['push'](_0x1be00b);}const _0xf34d0={};for(const [_0x56ca0f,_0x4f092f]of Object['entries'](_0x56739d)){_0x4f092f[_0x2d63d6(0x316)]>0x1&&(_0xf34d0[_0x56ca0f]=_0x4f092f);}return{'hasConflicts':Object[_0x2d63d6(0x1e2)](_0xf34d0)[_0x2d63d6(0x316)]>0x0,'conflicts':_0xf34d0};}function createDatasetNameMap(_0x7df532){const _0x3bafd6={};for(const [_0x2a4aca,_0x57e6e4]of Object['entries'](_0x7df532)){_0x3bafd6[_0x2a4aca]=_0x57e6e4['datasetCode']||'';}return _0x3bafd6;}function groupByTableName(_0x246362){const _0x1896ec=a0_0x254c,_0xb1a27a={};for(const _0x34da49 of _0x246362){const _0x58e35e=getTableName(_0x34da49);!_0xb1a27a[_0x58e35e]&&(_0xb1a27a[_0x58e35e]=[]),_0xb1a27a[_0x58e35e][_0x1896ec(0x276)](_0x34da49);}return _0xb1a27a;}function datasetsConfigToArray(_0x4a6f88){const _0x50817b=a0_0x254c;return Object[_0x50817b(0x31c)](_0x4a6f88);}function adaptDrivenDataDetail(_0x2dfd9d){const _0x1a889b=a0_0x254c;return{'id':_0x2dfd9d['modelId'],'name':_0x2dfd9d[_0x1a889b(0x1e4)],'datasetCode':_0x2dfd9d[_0x1a889b(0x199)],'dbtableConfig':_0x2dfd9d[_0x1a889b(0x242)],'source':_0x2dfd9d[_0x1a889b(0x1c8)],'version':_0x2dfd9d[_0x1a889b(0x206)],'extend':_0x2dfd9d[_0x1a889b(0x328)],'properties':_0x2dfd9d['properties'],'operations':_0x2dfd9d[_0x1a889b(0x28a)]};}function adaptDrivenDataDetails(_0xa01799){return _0xa01799['map'](adaptDrivenDataDetail);}function extractDatasetFromResponse(_0x139718){const _0x2401d2=a0_0x254c;if(!_0x139718['success']||!_0x139718[_0x2401d2(0x1f6)])throw new Error('获取数据集失败:\x20'+(_0x139718[_0x2401d2(0x1bc)]||_0x139718['msg']));return adaptDrivenDataDetail(_0x139718['data']);}function extractDatasetsFromListResponse(_0x3ca1e9){const _0x12530d=a0_0x254c;if(!_0x3ca1e9[_0x12530d(0x157)]||!_0x3ca1e9[_0x12530d(0x1f6)]?.[_0x12530d(0x1d8)])throw new Error(_0x12530d(0x27d)+(_0x3ca1e9[_0x12530d(0x1bc)]||_0x3ca1e9['msg']));return _0x3ca1e9['data'][_0x12530d(0x1d8)][_0x12530d(0x1e6)](_0x34c04c=>({..._0x34c04c,'datasetCode':_0x34c04c['code']||_0x34c04c[_0x12530d(0x2eb)]}));}function isDrivenDataDetail(_0x2a3d09){const _0x4e52f=a0_0x254c;return Boolean(_0x2a3d09&&typeof _0x2a3d09['modelCode']===_0x4e52f(0x2f9));}function smartAdapt(_0x380858){const _0x1e8360=a0_0x254c;if(isDrivenDataDetail(_0x380858))return adaptDrivenDataDetail(_0x380858);if(_0x380858[_0x1e8360(0x2eb)])return _0x380858;if(_0x380858[_0x1e8360(0x326)])return{..._0x380858,'datasetCode':_0x380858['code']};return _0x380858;}var DatasetOperationType;(_0x3f1058=>{const _0x413ce0=a0_0x254c;_0x3f1058['GET_LIST']=_0x413ce0(0x1d2),_0x3f1058[_0x413ce0(0x250)]='getOne',_0x3f1058['GET_ONE_ORIGIN']=_0x413ce0(0x30c),_0x3f1058['GET_ONE_UPDATE']='getOneUpdate',_0x3f1058[_0x413ce0(0x315)]=_0x413ce0(0x1a2),_0x3f1058[_0x413ce0(0x29a)]=_0x413ce0(0x2ce),_0x3f1058[_0x413ce0(0x2aa)]=_0x413ce0(0x2b7),_0x3f1058[_0x413ce0(0x30b)]=_0x413ce0(0x330),_0x3f1058[_0x413ce0(0x239)]=_0x413ce0(0x14d),_0x3f1058['EXCEL_EXPORT']=_0x413ce0(0x1f9),_0x3f1058[_0x413ce0(0x263)]=_0x413ce0(0x17f),_0x3f1058[_0x413ce0(0x2cb)]=_0x413ce0(0x13f),_0x3f1058['CREATE_EXPORT']=_0x413ce0(0x178),_0x3f1058[_0x413ce0(0x15a)]=_0x413ce0(0x1a4),_0x3f1058[_0x413ce0(0x1c2)]=_0x413ce0(0x308);})(DatasetOperationType||={});var OPERATION_TYPE_DISPLAY_NAME={[a0_0x17ef4f(0x1d2)]:'查询列表',[a0_0x17ef4f(0x1b2)]:a0_0x17ef4f(0x226),[a0_0x17ef4f(0x30c)]:a0_0x17ef4f(0x2a4),[a0_0x17ef4f(0x221)]:'查询单条(用于更新)',[a0_0x17ef4f(0x1a2)]:'创建',[a0_0x17ef4f(0x2ce)]:'更新',[a0_0x17ef4f(0x2b7)]:'删除',['getSelectOptions']:a0_0x17ef4f(0x30a),[a0_0x17ef4f(0x14d)]:a0_0x17ef4f(0x20c),[a0_0x17ef4f(0x1f9)]:a0_0x17ef4f(0x24e),[a0_0x17ef4f(0x17f)]:'获取上传脚本',[a0_0x17ef4f(0x13f)]:a0_0x17ef4f(0x2cf),[a0_0x17ef4f(0x178)]:a0_0x17ef4f(0x2c5),['taskInfo']:a0_0x17ef4f(0x27e),[a0_0x17ef4f(0x308)]:a0_0x17ef4f(0x156)},API_BLACKLIST=[a0_0x17ef4f(0x1d2),a0_0x17ef4f(0x30c),a0_0x17ef4f(0x221),'getFileUrl'];function parseFieldExtend(_0x56b6b0){const _0x1b8907=a0_0x17ef4f;if(!_0x56b6b0||typeof _0x56b6b0!==_0x1b8907(0x243))return!![]&&console[_0x1b8907(0x1cb)](_0x1b8907(0x187),_0x56b6b0),{};if(!_0x56b6b0[_0x1b8907(0x328)])return{};try{const _0x55184e=typeof _0x56b6b0[_0x1b8907(0x328)]===_0x1b8907(0x2f9)?JSON[_0x1b8907(0x16e)](_0x56b6b0[_0x1b8907(0x328)]):_0x56b6b0['extend'];if(typeof _0x55184e!==_0x1b8907(0x243)||_0x55184e===null)return{};return _0x55184e;}catch{return{};}}function isPrimaryKeyField(_0x1ccdf6,_0x3fa569){const _0x5b6294=a0_0x17ef4f;if(!_0x1ccdf6||typeof _0x1ccdf6!=='object')return![];if(typeof _0x3fa569==='string'&&_0x1ccdf6[_0x5b6294(0x326)]===_0x3fa569)return!![];const _0x274cd4=parseFieldExtend(_0x1ccdf6);return Boolean(_0x274cd4[_0x5b6294(0x2fe)]||_0x274cd4['pkField']);}function isSystemField(_0x14418b){const _0x33ca5e=a0_0x17ef4f,_0x5c3ce5=parseFieldExtend(_0x14418b);return Boolean(_0x5c3ce5[_0x33ca5e(0x23f)]);}function isRequiredField(_0x34abe7){const _0x56fe4c=a0_0x17ef4f,_0x5341d0=parseFieldExtend(_0x34abe7);return Boolean(_0x5341d0[_0x56fe4c(0x198)]);}function isAutoIncrementField(_0x3e1ffd){const _0x4f4e40=a0_0x17ef4f,_0x5e6eb6=parseFieldExtend(_0x3e1ffd);return Boolean(_0x5e6eb6[_0x4f4e40(0x1b3)]);}function isCreateTimeField(_0x1e4b04){const _0x1b3b6c=parseFieldExtend(_0x1e4b04);return Boolean(_0x1b3b6c['createDate']);}function isModifyTimeField(_0x317687){const _0x17a8d7=parseFieldExtend(_0x317687);return Boolean(_0x17a8d7['modifyDate']);}var DB_TYPE_DISPLAY_MAP={'NUMBER':'数字','TEXT':'文本','TEXTAREA':'长文本','DATE':'日期','DATETIME':'日期时间','TIMESTAMP':a0_0x17ef4f(0x193),'SELECT':a0_0x17ef4f(0x208),'CHECKBOX':'多选','RADIO':'单选','SWITCH':'开关','UPLOAD':a0_0x17ef4f(0x1c1),'IMAGE':'图片','RICH_TEXT':a0_0x17ef4f(0x2e7),'JSON':a0_0x17ef4f(0x1c6),'ARRAY':'数组'};function getDbTypeDisplay(_0x228c7d){const _0x7253c5=a0_0x17ef4f;if(typeof _0x228c7d!==_0x7253c5(0x2f9))return!![]&&console[_0x7253c5(0x1cb)](_0x7253c5(0x219),_0x228c7d),String(_0x228c7d||'-');return DB_TYPE_DISPLAY_MAP[_0x228c7d]||_0x228c7d;}function formatDbType(_0x31dfe4,_0x434723){const _0x33d6bf=a0_0x17ef4f;if(!_0x31dfe4||typeof _0x31dfe4!==_0x33d6bf(0x2f9))return'-';if(!_0x434723||typeof _0x434723!==_0x33d6bf(0x18a))return _0x31dfe4;const _0x202d6b=[_0x33d6bf(0x2e3),_0x33d6bf(0x1ec),'TIMESTAMP',_0x33d6bf(0x33e)];if(_0x202d6b[_0x33d6bf(0x1d3)](_0x31dfe4[_0x33d6bf(0x246)]()))return _0x31dfe4;return _0x31dfe4+'('+_0x434723+')';}function parseOperationType(_0x8be848){const _0x35da33=a0_0x17ef4f;if(typeof _0x8be848!==_0x35da33(0x2f9)){!![]&&console['warn'](_0x35da33(0x173),_0x8be848);return;}if(Object[_0x35da33(0x31c)](DatasetOperationType)['includes'](_0x8be848))return _0x8be848;const _0x69ee1e=Object[_0x35da33(0x188)](OPERATION_TYPE_DISPLAY_NAME)[_0x35da33(0x331)](([_0x59b59b,_0x50362b])=>_0x50362b===_0x8be848);return _0x69ee1e?_0x69ee1e[0x0]:undefined;}function shouldIncludeField(_0x1ad5e5,_0x31d2eb,_0x382e58){const _0x411639=a0_0x17ef4f,_0xa45dd6=parseFieldExtend(_0x1ad5e5),_0x33827f=isPrimaryKeyField(_0x1ad5e5,_0x382e58),_0x278895=Boolean(_0xa45dd6[_0x411639(0x23f)]),_0x447e52=Boolean(_0xa45dd6[_0x411639(0x1b3)]),_0x157fac=Boolean(_0xa45dd6[_0x411639(0x1e7)]),_0x4b2bec=Boolean(_0xa45dd6[_0x411639(0x146)]);switch(_0x31d2eb){case _0x411639(0x1d2):return!![];case _0x411639(0x1b2):case _0x411639(0x30c):case'delete':return _0x33827f;case'create':if(_0x33827f&&_0x447e52)return![];if(_0x278895)return![];if(_0x157fac||_0x4b2bec)return![];return!![];case _0x411639(0x2ce):case _0x411639(0x221):if(_0x33827f)return!![];if(_0x278895)return![];if(_0x157fac||_0x4b2bec)return![];return!![];case _0x411639(0x330):return _0x1ad5e5[_0x411639(0x326)]==='code';default:return!![];}}function getFieldsForOperation(_0x22e83e,_0x39c347,_0x5f0e89){const _0x267c83=a0_0x17ef4f;if(!Array[_0x267c83(0x171)](_0x22e83e))return!![]&&console[_0x267c83(0x1cb)](_0x267c83(0x2cd),_0x22e83e),[];return _0x22e83e[_0x267c83(0x144)](_0x299963=>shouldIncludeField(_0x299963,_0x39c347,_0x5f0e89));}function isApiBlacklisted(_0x2de24a){const _0x5ca128=a0_0x17ef4f;if(typeof _0x2de24a!==_0x5ca128(0x2f9))return!![]&&console[_0x5ca128(0x1cb)](_0x5ca128(0x169),_0x2de24a),![];return API_BLACKLIST[_0x5ca128(0x1d3)](_0x2de24a);}function filterApiOperations(_0x3b5ac9){const _0x5b87d9=a0_0x17ef4f;if(!Array[_0x5b87d9(0x171)](_0x3b5ac9))return!![]&&console['warn'](_0x5b87d9(0x344),_0x3b5ac9),[];return _0x3b5ac9[_0x5b87d9(0x144)](_0x531f28=>_0x531f28&&typeof _0x531f28===_0x5b87d9(0x243)&&!isApiBlacklisted(_0x531f28['name']));}var TYPE_VALUE_GENERATORS={'TIMESTAMP':()=>Date[a0_0x17ef4f(0x209)](),'DATE':()=>Date[a0_0x17ef4f(0x209)](),'SELECT':({fieldInfo:_0x387d44})=>{const _0x3473a1=a0_0x17ef4f;if(_0x387d44?.[_0x3473a1(0x253)]&&Array[_0x3473a1(0x171)](_0x387d44[_0x3473a1(0x253)])&&_0x387d44['options'][_0x3473a1(0x316)]>0x0)return _0x387d44[_0x3473a1(0x253)][0x0][_0x3473a1(0x248)];return 0x1;},'NUMBER':()=>0x7b,'INTEGER':()=>0x64,'Integer':({fieldCode:_0x2fb88e})=>{const _0x27228f=a0_0x17ef4f;if(_0x2fb88e==='currentPage')return 0x1;if(_0x2fb88e===_0x27228f(0x1a8))return 0xa;return 0x64;},'BIGINT':()=>0xf4240,'Long':()=>0xf4240,'INT':()=>0x64,'TINYINT':()=>0x1,'DECIMAL':()=>99.99,'FLOAT':()=>99.99,'DOUBLE':()=>99.99,'TEXT':({description:_0x37d429})=>{const _0x566eb8=a0_0x17ef4f;if(_0x37d429&&typeof _0x37d429===_0x566eb8(0x2f9)){const _0x13849a=_0x37d429[_0x566eb8(0x2a5)]();if(_0x13849a['includes']('邮箱')||_0x13849a[_0x566eb8(0x1d3)](_0x566eb8(0x1bf)))return'user@example.com';if(_0x13849a[_0x566eb8(0x1d3)]('电话')||_0x13849a[_0x566eb8(0x1d3)]('手机')||_0x13849a[_0x566eb8(0x1d3)](_0x566eb8(0x2b1)))return _0x566eb8(0x1af);if(_0x13849a['includes']('地址')||_0x13849a[_0x566eb8(0x1d3)](_0x566eb8(0x295)))return _0x566eb8(0x2f0);if(_0x13849a[_0x566eb8(0x1d3)]('姓名')||_0x13849a[_0x566eb8(0x1d3)](_0x566eb8(0x1e4)))return'张三';}return'示例文本';},'VARCHAR':({description:_0x530f74})=>TYPE_VALUE_GENERATORS[a0_0x17ef4f(0x2e3)]({'description':_0x530f74}),'CHAR':({description:_0x3c1785})=>TYPE_VALUE_GENERATORS[a0_0x17ef4f(0x2e3)]({'description':_0x3c1785}),'STRING':({fieldInfo:_0x5dc3cf,description:_0x69f7f0})=>{const _0x131285=a0_0x17ef4f;if(_0x5dc3cf?.[_0x131285(0x201)]&&typeof _0x5dc3cf[_0x131285(0x201)]==='string'&&_0x5dc3cf[_0x131285(0x201)]!==_0x131285(0x2c8))return _0x5dc3cf[_0x131285(0x201)][_0x131285(0x309)](/^请输入|^请选择/,'');return TYPE_VALUE_GENERATORS[_0x131285(0x2e3)]({'description':_0x69f7f0});},'TEXTAREA':()=>a0_0x17ef4f(0x16d),'LONGTEXT':()=>'这是一段较长的文本内容示例','BOOLEAN':()=>!![],'BOOL':()=>!![],'Boolean':()=>!![],'SWITCH':()=>!![],'CHECKBOX':()=>[0x1,0x2],'RADIO':()=>0x1,'JSON':()=>({'key':a0_0x17ef4f(0x248)}),'ARRAY':()=>[a0_0x17ef4f(0x2d7),a0_0x17ef4f(0x2fb)],'UPLOAD':()=>a0_0x17ef4f(0x1a0),'IMAGE':()=>a0_0x17ef4f(0x31d),'RICH_TEXT':()=>a0_0x17ef4f(0x162)};function generateExampleValue(_0x5bbaf6,_0x2a99ea,_0x261229,_0x5d88ad={}){const _0x1099da=a0_0x17ef4f;typeof _0x5bbaf6!==_0x1099da(0x2f9)&&(!![]&&console[_0x1099da(0x1cb)]('[generateExampleValue]\x20fieldCode\x20is\x20not\x20a\x20string:',_0x5bbaf6),_0x5bbaf6=String(_0x5bbaf6||''));if(typeof _0x2a99ea!=='string')return!![]&&console[_0x1099da(0x1cb)](_0x1099da(0x304),_0x2a99ea),_0x1099da(0x2d2);const {isPrimaryKey:_0xe0384c,dbtableConfig:_0x2752f8}=_0x5d88ad;if(_0xe0384c)return 0x1;if(_0x2752f8&&typeof _0x2752f8===_0x1099da(0x243)){const _0x3b4500=_0x2752f8[_0x1099da(0x222)]?.[_0x1099da(0x2d3)]===_0x5bbaf6,_0x915034=_0x2752f8['updateTimeField']?.['fieldName']===_0x5bbaf6;if(_0x3b4500||_0x915034){if(_0x261229&&typeof _0x261229===_0x1099da(0x2f9)&&_0x261229[_0x1099da(0x246)]()[_0x1099da(0x1d3)](_0x1099da(0x1fa)))return Date[_0x1099da(0x209)]();return new Date()[_0x1099da(0x302)]()['replace']('T','\x20')[_0x1099da(0x280)]('.')[0x0];}}const _0x379c7b={..._0x5d88ad,'fieldCode':_0x5bbaf6};if(_0x261229&&typeof _0x261229===_0x1099da(0x2f9)){const _0x3c7619=_0x261229[_0x1099da(0x246)](),_0x28c7b7=TYPE_VALUE_GENERATORS[_0x3c7619];if(_0x28c7b7)return _0x28c7b7(_0x379c7b);}if(_0x2a99ea&&typeof _0x2a99ea==='string'){const _0x61a05f=_0x2a99ea[_0x1099da(0x246)](),_0x464039=TYPE_VALUE_GENERATORS[_0x61a05f];if(_0x464039)return _0x464039(_0x379c7b);}return'示例值';}function a0_0x254c(_0x3ebb4f,_0x4907fb){const _0x4042e4=a0_0x4042();return a0_0x254c=function(_0x254c52,_0x5b67cf){_0x254c52=_0x254c52-0x137;let _0xd4060a=_0x4042e4[_0x254c52];return _0xd4060a;},a0_0x254c(_0x3ebb4f,_0x4907fb);}function generateExampleFromSchema(_0x6d3cfb,_0x119823){const _0x5952aa=a0_0x17ef4f;if(!_0x6d3cfb||typeof _0x6d3cfb!==_0x5952aa(0x243))return{};if(Array[_0x5952aa(0x171)](_0x6d3cfb)){if(_0x6d3cfb['length']>0x0)return[generateExampleFromSchema(_0x6d3cfb[0x0],_0x119823)];return[];}const _0x4730c6={};return Object[_0x5952aa(0x1e2)](_0x6d3cfb)[_0x5952aa(0x2f6)](_0x3f0e1c=>{const _0x15d0ad=_0x5952aa,_0x52ee3a=_0x6d3cfb[_0x3f0e1c];if(_0x52ee3a&&typeof _0x52ee3a===_0x15d0ad(0x243)&&!Array['isArray'](_0x52ee3a)&&_0x52ee3a[_0x15d0ad(0x154)]){const _0x3cd07d=_0x52ee3a,_0x855ae7=_0x3cd07d[_0x15d0ad(0x154)],_0x3c701c=_0x3cd07d['description'];typeof _0x855ae7===_0x15d0ad(0x2f9)?_0x4730c6[_0x3f0e1c]=generateExampleValue(_0x3f0e1c,_0x855ae7,undefined,{'description':_0x3c701c,'dbtableConfig':_0x119823}):_0x4730c6[_0x3f0e1c]=_0x15d0ad(0x2d2);}else{if(Array[_0x15d0ad(0x171)](_0x52ee3a))_0x4730c6[_0x3f0e1c]=_0x52ee3a['length']>0x0?[generateExampleFromSchema(_0x52ee3a[0x0],_0x119823)]:[];else _0x52ee3a&&typeof _0x52ee3a===_0x15d0ad(0x243)?_0x4730c6[_0x3f0e1c]=generateExampleFromSchema(_0x52ee3a,_0x119823):_0x4730c6[_0x3f0e1c]=_0x52ee3a;}}),_0x4730c6;}function parseRequestBody(_0x41c58a){const _0x466ecf=a0_0x17ef4f;if(!_0x41c58a)return{};try{return JSON[_0x466ecf(0x16e)](_0x41c58a);}catch(_0x3c5a17){return!![]&&console['warn'](_0x466ecf(0x317),_0x3c5a17),{};}}function parseResponseBody(_0x136b29){const _0x32949e=a0_0x17ef4f;if(!_0x136b29)return null;try{const _0xa7e02a=JSON['parse'](_0x136b29);return _0xa7e02a['200']||_0xa7e02a;}catch(_0x4d36c2){return!![]&&console[_0x32949e(0x1cb)](_0x32949e(0x1bb),_0x4d36c2),null;}}function generateRequestExample(_0x116891,_0x3a0c0a,_0xe0197f,_0x1c0be8){const _0x3543c=a0_0x17ef4f,_0x3a2383={};if(!Array[_0x3543c(0x171)](_0x116891))return!![]&&console['warn']('[generateRequestExample]\x20fields\x20is\x20not\x20an\x20array:',_0x116891),_0x3a2383;return _0x116891['forEach'](_0x1b916e=>{const _0x2a9a08=_0x3543c;if(!_0x1b916e||typeof _0x1b916e!=='object'){!![]&&console[_0x2a9a08(0x1cb)](_0x2a9a08(0x225),_0x1b916e);return;}if(typeof _0x1b916e[_0x2a9a08(0x326)]!=='string'||typeof _0x1b916e['type']!==_0x2a9a08(0x2f9)){!![]&&console[_0x2a9a08(0x1cb)]('[generateRequestExample]\x20Invalid\x20field.code\x20or\x20field.type:',_0x1b916e);return;}const _0x38ed19=parseFieldExtend(_0x1b916e),_0x526a3c=_0x1b916e[_0x2a9a08(0x326)]===_0xe0197f||Boolean(_0x38ed19?.['primaryKey']),_0x168b1f=generateExampleValue(_0x1b916e[_0x2a9a08(0x326)],_0x1b916e[_0x2a9a08(0x154)],typeof _0x1b916e[_0x2a9a08(0x142)]==='string'?_0x1b916e[_0x2a9a08(0x142)]:undefined,{'fieldInfo':_0x38ed19,'isPrimaryKey':_0x526a3c,'description':_0x1b916e[_0x2a9a08(0x1d9)]||_0x1b916e[_0x2a9a08(0x1e4)],'dbtableConfig':_0x1c0be8});_0x3a2383[_0x1b916e[_0x2a9a08(0x326)]]=_0x168b1f;}),_0x3a0c0a==='getList'&&(_0x3a2383[_0x3543c(0x1cd)]=0x1,_0x3a2383[_0x3543c(0x1a8)]=0xa),_0x3a2383;}function formatEnumValue(_0x277fef,_0x5752ea){const _0x3b95c3=a0_0x17ef4f;if(_0x277fef[_0x3b95c3(0x2c1)]&&Array[_0x3b95c3(0x171)](_0x5752ea))return _0x5752ea[_0x3b95c3(0x1e6)](_0x39c5cf=>_0x277fef[_0x3b95c3(0x1b5)][String(_0x39c5cf)]||String(_0x39c5cf))[_0x3b95c3(0x183)](',\x20');return _0x277fef[_0x3b95c3(0x1b5)][String(_0x5752ea)]||String(_0x5752ea);}function formatOptionsForDoc(_0x1c4f0a){const _0x1f015c=a0_0x17ef4f;return _0x1c4f0a[_0x1f015c(0x1e6)](_0x314136=>_0x314136[_0x1f015c(0x248)]+'('+_0x314136['label']+')')[_0x1f015c(0x183)](',\x20');}function formatOptionsAsMarkdownList(_0x11185e,_0x5bb281=0x0){const _0x2bd551=a0_0x17ef4f,_0x160461='\x20\x20'[_0x2bd551(0x257)](_0x5bb281),_0x3e537f=[];return _0x11185e[_0x2bd551(0x2f6)](_0x2da8af=>{const _0x1c1ff3=_0x2bd551;_0x3e537f[_0x1c1ff3(0x276)](_0x160461+_0x1c1ff3(0x2c6)+_0x2da8af[_0x1c1ff3(0x248)]+'`:\x20'+_0x2da8af[_0x1c1ff3(0x241)]),_0x2da8af['children']&&_0x2da8af[_0x1c1ff3(0x1e3)][_0x1c1ff3(0x316)]>0x0&&_0x3e537f[_0x1c1ff3(0x276)](formatOptionsAsMarkdownList(_0x2da8af[_0x1c1ff3(0x1e3)],_0x5bb281+0x1));}),_0x3e537f[_0x2bd551(0x183)]('\x0a');}class DbtableConfig{[a0_0x17ef4f(0x2c4)];constructor(_0x2e699b){this['_raw']={..._0x2e699b};}get['dbId'](){const _0x2dd963=a0_0x17ef4f;return this['_raw'][_0x2dd963(0x228)];}get[a0_0x17ef4f(0x145)](){const _0xa416d=a0_0x17ef4f;return this[_0xa416d(0x2c4)]['dbName']??this['_raw']['dblinkInfoDTO']?.[_0xa416d(0x145)];}get['tableName'](){const _0x1c6add=a0_0x17ef4f;return this[_0x1c6add(0x2c4)][_0x1c6add(0x139)];}get[a0_0x17ef4f(0x19d)](){const _0x53f319=a0_0x17ef4f;return this['_raw'][_0x53f319(0x19d)];}get[a0_0x17ef4f(0x25b)](){const _0x588255=a0_0x17ef4f;return this[_0x588255(0x2c4)][_0x588255(0x25b)];}get[a0_0x17ef4f(0x307)](){const _0x47f5bb=a0_0x17ef4f;return this[_0x47f5bb(0x2c4)][_0x47f5bb(0x307)];}get[a0_0x17ef4f(0x218)](){const _0x50697b=a0_0x17ef4f;return this['_raw'][_0x50697b(0x218)];}get[a0_0x17ef4f(0x222)](){const _0x16d0cb=a0_0x17ef4f;return this[_0x16d0cb(0x2c4)][_0x16d0cb(0x222)];}get[a0_0x17ef4f(0x138)](){const _0x35da41=a0_0x17ef4f;return this['_raw'][_0x35da41(0x138)];}get['creatorIdField'](){const _0xec1e8d=a0_0x17ef4f;return this[_0xec1e8d(0x2c4)][_0xec1e8d(0x343)];}get['creatorNameField'](){const _0x26231f=a0_0x17ef4f;return this[_0x26231f(0x2c4)][_0x26231f(0x249)];}get[a0_0x17ef4f(0x290)](){const _0xcba77a=a0_0x17ef4f;return this[_0xcba77a(0x2c4)]['modifierIdField'];}get[a0_0x17ef4f(0x238)](){const _0x594185=a0_0x17ef4f;return this[_0x594185(0x2c4)][_0x594185(0x238)];}get[a0_0x17ef4f(0x325)](){const _0x12803a=a0_0x17ef4f;return this[_0x12803a(0x2c4)][_0x12803a(0x325)];}[a0_0x17ef4f(0x26b)](){const _0x857674=a0_0x17ef4f;if(!this[_0x857674(0x2c4)][_0x857674(0x2a3)])return[];return this['_raw'][_0x857674(0x2a3)][_0x857674(0x280)](',')[_0x857674(0x1e6)](_0x2c50af=>_0x2c50af[_0x857674(0x2c3)]())[_0x857674(0x144)](Boolean);}['getAllFieldsString'](){const _0x4a5c5a=a0_0x17ef4f;return this[_0x4a5c5a(0x2c4)][_0x4a5c5a(0x2a3)];}[a0_0x17ef4f(0x2d8)](_0x250cc1){const _0x32f306=a0_0x17ef4f;return this['getAllFieldsArray']()[_0x32f306(0x1d3)](_0x250cc1);}[a0_0x17ef4f(0x168)](){const _0x280c10=a0_0x17ef4f;return Boolean(this[_0x280c10(0x2c4)][_0x280c10(0x139)]);}[a0_0x17ef4f(0x311)](){const _0x39c3fc=a0_0x17ef4f;return Boolean(this[_0x39c3fc(0x2c4)][_0x39c3fc(0x325)]);}[a0_0x17ef4f(0x21a)](){const _0x15aba7=a0_0x17ef4f;return Boolean(this[_0x15aba7(0x2c4)][_0x15aba7(0x218)]?.['fieldName']);}[a0_0x17ef4f(0x321)](){const _0x3d75ea=a0_0x17ef4f;return Boolean(this[_0x3d75ea(0x2c4)][_0x3d75ea(0x222)]?.[_0x3d75ea(0x2d3)]);}[a0_0x17ef4f(0x28b)](){const _0x136823=a0_0x17ef4f;return Boolean(this[_0x136823(0x2c4)]['updateTimeField']?.[_0x136823(0x2d3)]);}[a0_0x17ef4f(0x33a)](){const _0x4e1e4d=a0_0x17ef4f;return Boolean(this[_0x4e1e4d(0x2c4)][_0x4e1e4d(0x343)]?.[_0x4e1e4d(0x2d3)]);}['hasModifierIdField'](){const _0x5a645d=a0_0x17ef4f;return Boolean(this['_raw'][_0x5a645d(0x290)]?.[_0x5a645d(0x2d3)]);}[a0_0x17ef4f(0x26e)](_0xfa072f){const _0x2c5d78=a0_0x17ef4f;return this[_0x2c5d78(0x2c4)][_0x2c5d78(0x25b)]===_0xfa072f;}['isSystemField'](_0x4346d7){const _0xf59aec=a0_0x17ef4f;return this['isPrimaryKeyField'](_0x4346d7)||this['_raw'][_0xf59aec(0x218)]?.[_0xf59aec(0x2d3)]===_0x4346d7||this[_0xf59aec(0x2c4)]['createTimeField']?.[_0xf59aec(0x2d3)]===_0x4346d7||this['_raw']['updateTimeField']?.[_0xf59aec(0x2d3)]===_0x4346d7||this[_0xf59aec(0x2c4)][_0xf59aec(0x343)]?.[_0xf59aec(0x2d3)]===_0x4346d7||this[_0xf59aec(0x2c4)][_0xf59aec(0x249)]?.['fieldName']===_0x4346d7||this[_0xf59aec(0x2c4)][_0xf59aec(0x290)]?.[_0xf59aec(0x2d3)]===_0x4346d7||this[_0xf59aec(0x2c4)][_0xf59aec(0x238)]?.['fieldName']===_0x4346d7;}[a0_0x17ef4f(0x22e)](){const _0x19a027=a0_0x17ef4f;return this[_0x19a027(0x2c4)][_0x19a027(0x325)]?.[_0x19a027(0x145)];}[a0_0x17ef4f(0x211)](){const _0x2c488=a0_0x17ef4f;return this['_raw']['dblinkInfoDTO']?.[_0x2c488(0x142)];}[a0_0x17ef4f(0x22b)](){const _0x2c6f29=a0_0x17ef4f;return this[_0x2c6f29(0x2c4)][_0x2c6f29(0x325)]?.['dbVersion'];}[a0_0x17ef4f(0x2f1)](){const _0x350d3b=a0_0x17ef4f;return this[_0x350d3b(0x2c4)][_0x350d3b(0x325)]?.[_0x350d3b(0x28e)];}[a0_0x17ef4f(0x2f8)](){const _0x180da1=a0_0x17ef4f;return this[_0x180da1(0x2c4)]['dblinkInfoDTO']?.[_0x180da1(0x32d)];}[a0_0x17ef4f(0x27a)](){const _0x2764dd=a0_0x17ef4f;return this[_0x2764dd(0x2c4)][_0x2764dd(0x325)]?.[_0x2764dd(0x26d)];}[a0_0x17ef4f(0x305)](){const _0x30eb36=a0_0x17ef4f;return{'hasTableName':this[_0x30eb36(0x168)](),'hasDblinkInfo':this['hasDblinkInfo'](),'fieldCount':this[_0x30eb36(0x26b)]()['length'],'systemFields':{'hasLogicField':this[_0x30eb36(0x21a)](),'hasCreateTimeField':this[_0x30eb36(0x321)](),'hasUpdateTimeField':this[_0x30eb36(0x28b)](),'hasCreatorIdField':this['hasCreatorIdField'](),'hasModifierIdField':this[_0x30eb36(0x1dd)]()}};}[a0_0x17ef4f(0x2db)](){const _0x211248=a0_0x17ef4f;return{'tableName':this[_0x211248(0x139)],'pkField':this['pkField'],'datasetKey':this[_0x211248(0x19d)],'dbId':this[_0x211248(0x228)]};}[a0_0x17ef4f(0x283)](){const _0x5204f2=a0_0x17ef4f;return{...this[_0x5204f2(0x2c4)]};}['getRaw'](){return{...this['_raw']};}[a0_0x17ef4f(0x1a9)](){const _0x65a0e6=a0_0x17ef4f,_0x137430=this[_0x65a0e6(0x139)]||_0x65a0e6(0x231),_0x15b54b=this[_0x65a0e6(0x26b)]()[_0x65a0e6(0x316)];return'DbtableConfig(table:\x20'+_0x137430+_0x65a0e6(0x2d1)+_0x15b54b+')';}static[a0_0x17ef4f(0x2bb)](){return new DbtableConfig({});}}class DatasetItem{['_raw'];constructor(_0x57fd45){const _0x1a8271=a0_0x17ef4f,_0x557ba1=_0x57fd45[_0x1a8271(0x2eb)]||_0x57fd45['code']||_0x57fd45['modelCode'];this[_0x1a8271(0x2c4)]={..._0x57fd45,'datasetCode':_0x557ba1};}get['id'](){const _0x5c6056=a0_0x17ef4f;return this[_0x5c6056(0x2c4)]['id'];}get[a0_0x17ef4f(0x1e4)](){const _0x4ca8c5=a0_0x17ef4f;return this[_0x4ca8c5(0x2c4)][_0x4ca8c5(0x1e4)];}['getName'](){const _0x4377ef=a0_0x17ef4f;return this[_0x4377ef(0x1e4)];}get[a0_0x17ef4f(0x2eb)](){const _0xdc0e82=a0_0x17ef4f;return this['_raw'][_0xdc0e82(0x2eb)]||'';}get['dbtableConfig'](){const _0x3d6ab9=a0_0x17ef4f;if(!this['_raw'][_0x3d6ab9(0x242)])return null;return new DbtableConfig(this['_raw']['dbtableConfig']);}[a0_0x17ef4f(0x1ba)](){const _0x46e057=a0_0x17ef4f;return this[_0x46e057(0x2c4)][_0x46e057(0x242)];}['getDbName'](){const _0x4c778d=a0_0x17ef4f;return this[_0x4c778d(0x242)]?.['dbName']||'';}[a0_0x17ef4f(0x2b3)](){const _0x4ca403=a0_0x17ef4f;return getTableName(this[_0x4ca403(0x2c4)]);}[a0_0x17ef4f(0x1a6)](){const _0x1ba736=a0_0x17ef4f;return getTableKey(this[_0x1ba736(0x2b3)]());}[a0_0x17ef4f(0x2dd)](){const _0x3509bb=a0_0x17ef4f;return generateModelKeyFromCode(this[_0x3509bb(0x2eb)]);}['isVirtualTable'](){const _0x3b3381=a0_0x17ef4f;return isVirtualTableName(this[_0x3b3381(0x2b3)]());}[a0_0x17ef4f(0x213)](){const _0x54848c=a0_0x17ef4f;return getTableKey(this[_0x54848c(0x2b3)]());}[a0_0x17ef4f(0x2db)](){const _0x54e581=a0_0x17ef4f,_0x55d16e=getTableKey(this[_0x54e581(0x2b3)]());return{'key':_0x55d16e,'alias':_0x55d16e,'tableName':this[_0x54e581(0x2b3)](),'datasetCode':this[_0x54e581(0x2eb)],'name':this[_0x54e581(0x1e4)]};}['toJSON'](){const _0x19a456=a0_0x17ef4f;return{...this[_0x19a456(0x2c4)],'datasetCode':this['datasetCode']};}[a0_0x17ef4f(0x235)](){const _0x52c401=a0_0x17ef4f;return{...this[_0x52c401(0x2c4)]};}[a0_0x17ef4f(0x2ca)](){const _0x5edad3=a0_0x17ef4f,_0x30f281=this[_0x5edad3(0x242)];return _0x30f281!==null&&_0x30f281[_0x5edad3(0x168)]();}[a0_0x17ef4f(0x160)](_0x12eaad){const _0x33f208=a0_0x17ef4f;return this[_0x33f208(0x2c4)][_0x12eaad];}['hasExtendField'](_0xf2f5c4){const _0x14e89f=a0_0x17ef4f;return _0xf2f5c4 in this[_0x14e89f(0x2c4)];}[a0_0x17ef4f(0x1a9)](){const _0xee087=a0_0x17ef4f;return _0xee087(0x2c7)+this['name']+',\x20'+this[_0xee087(0x2eb)]+')';}}class Operation{[a0_0x17ef4f(0x1e4)];['_raw'];[a0_0x17ef4f(0x254)];constructor(_0x22a2b8,_0x3ba6fb,_0x23df16){const _0x5f11cb=a0_0x17ef4f;this['name']=_0x22a2b8,this['_raw']=_0x3ba6fb,this[_0x5f11cb(0x254)]=_0x23df16;}['getName'](){return this['name'];}[a0_0x17ef4f(0x21b)](){const _0x197575=a0_0x17ef4f,_0x2c92d4=this[_0x197575(0x15f)]();return _0x2c92d4?OPERATION_TYPE_DISPLAY_NAME[_0x2c92d4]:this[_0x197575(0x1e4)];}['getType'](){const _0x3705f4=a0_0x17ef4f;return parseOperationType(this[_0x3705f4(0x1e4)]);}['isEnabled'](){const _0x230d3b=a0_0x17ef4f;return this[_0x230d3b(0x2c4)]!=null&&this['_raw']!==![];}['getMethod'](){const _0x1900a8=a0_0x17ef4f;if(!this[_0x1900a8(0x2af)]()||!this[_0x1900a8(0x2c4)])return'';const _0x158c06=this[_0x1900a8(0x2c4)]['method'];return typeof _0x158c06==='string'?_0x158c06:_0x1900a8(0x1ef);}[a0_0x17ef4f(0x192)](){const _0x1628d6=a0_0x17ef4f;if(!this['isEnabled']()||!this['_raw'])return'';const _0x541ffd=this[_0x1628d6(0x2c4)][_0x1628d6(0x20f)];return typeof _0x541ffd===_0x1628d6(0x2f9)?_0x541ffd:'';}[a0_0x17ef4f(0x149)](){const _0x479f6b=a0_0x17ef4f;if(!this['isEnabled']()||!this[_0x479f6b(0x2c4)])return'';const {host:_0x2fab07,path:_0x43ce26}=this['_raw'],_0xa81353=typeof _0x2fab07===_0x479f6b(0x2f9)?_0x2fab07:'',_0x858dd6=typeof _0x43ce26==='string'?_0x43ce26:'';return _0xa81353&&_0x858dd6?''+_0xa81353+_0x858dd6:_0x858dd6;}[a0_0x17ef4f(0x176)](){const _0x1b3537=a0_0x17ef4f;return Object[_0x1b3537(0x1e2)](this[_0x1b3537(0x13c)]());}[a0_0x17ef4f(0x2da)](){const _0x209932=a0_0x17ef4f;if(!this[_0x209932(0x2af)]()||typeof this[_0x209932(0x2c4)]===_0x209932(0x236)||!this[_0x209932(0x2c4)]?.[_0x209932(0x25c)])return{};const _0x5e9552=this[_0x209932(0x2c4)][_0x209932(0x25c)];if(typeof _0x5e9552!==_0x209932(0x2f9))return!![]&&console[_0x209932(0x1cb)](_0x209932(0x180),_0x5e9552),{};return parseRequestBody(_0x5e9552);}[a0_0x17ef4f(0x1b4)](){const _0x522925=a0_0x17ef4f;if(!this[_0x522925(0x2af)]()||typeof this['_raw']===_0x522925(0x236)||!this[_0x522925(0x2c4)]?.[_0x522925(0x1ac)])return null;const _0x48e257=this['_raw'][_0x522925(0x1ac)];if(typeof _0x48e257!=='string')return!![]&&console['warn'](_0x522925(0x18d),_0x48e257),null;return parseResponseBody(_0x48e257);}['generateFieldExample'](_0x9a4072,_0xdf60f3,_0x215719,_0x4ac29b){const _0x47663c=a0_0x17ef4f;return generateExampleValue(_0x9a4072,_0xdf60f3,_0x215719,{'isPrimaryKey':_0x4ac29b?.[_0x47663c(0x185)],'description':_0x4ac29b?.[_0x47663c(0x1d9)],'dbtableConfig':this[_0x47663c(0x254)][_0x47663c(0x242)]});}[a0_0x17ef4f(0x197)](_0x1fceb9){const _0x27906a=a0_0x17ef4f;if(!Array[_0x27906a(0x171)](this[_0x27906a(0x254)]['fields'])){!![]&&console['warn'](_0x27906a(0x150));return;}if(typeof _0x1fceb9!==_0x27906a(0x2f9)){!![]&&console[_0x27906a(0x1cb)](_0x27906a(0x13b),_0x1fceb9);return;}return this['context'][_0x27906a(0x284)][_0x27906a(0x331)](_0x3f5528=>_0x3f5528&&_0x3f5528[_0x27906a(0x326)]===_0x1fceb9);}[a0_0x17ef4f(0x1a9)](){const _0x5d2e3a=a0_0x17ef4f,_0x53c2a1=this[_0x5d2e3a(0x2af)]()?'启用':'禁用';return this['getDisplayName']()+'('+this['name']+',\x20'+_0x53c2a1+')';}['getOperators'](){return[];}[a0_0x17ef4f(0x14e)](_0x39ec7e){return[];}['generateUsageExample'](_0x19494e){const _0x4cc363=a0_0x17ef4f,_0x3586a1=this[_0x4cc363(0x2b0)](),_0x483e31=_0x4cc363(0x244)+_0x19494e+'.'+_0x3586a1+'(...);\x0aconsole.log(data);\x20//\x20输出上方\x20SDK\x20实际返回值的内容',_0x159b2b=_0x4cc363(0x13d)+_0x19494e+'.'+_0x3586a1+'(...);\x0a\x20\x20console.log(data);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x20(包含\x20success,\x20errorMsg\x20等)\x0a}';return{'successCode':_0x483e31,'errorCode':_0x159b2b};}[a0_0x17ef4f(0x283)](){const _0x476232=a0_0x17ef4f;return{'name':this[_0x476232(0x2b0)](),'displayName':this[_0x476232(0x21b)](),'type':this['getType'](),'enabled':this[_0x476232(0x2af)](),'method':this['getMethod'](),'path':this['getPath'](),'fullUrl':this['getFullUrl'](),'requestFields':this[_0x476232(0x176)](),'requestParams':this[_0x476232(0x13c)](),'responseSchema':this[_0x476232(0x16f)](),'requestExample':this[_0x476232(0x1f4)](),'responseExample':this[_0x476232(0x22c)]()};}}class GenericOperation extends Operation{[a0_0x17ef4f(0x13c)](){return this['parseRawRequestBody']();}[a0_0x17ef4f(0x16f)](){return this['parseRawResponseBody']();}[a0_0x17ef4f(0x1f4)](){const _0x1ee153=a0_0x17ef4f,_0x573e8b={},_0x5799ba=this[_0x1ee153(0x13c)](),_0x1f6fde=this[_0x1ee153(0x15f)]();if(Object[_0x1ee153(0x1e2)](_0x5799ba)['length']===0x0&&_0x1f6fde){const _0x1c1a9d=getFieldsForOperation(this[_0x1ee153(0x254)][_0x1ee153(0x284)],_0x1f6fde,this['context']['pkField']);return _0x1c1a9d[_0x1ee153(0x2f6)](_0x293a9b=>{const _0x24bb61=_0x1ee153,_0x28938a=this[_0x24bb61(0x23b)](_0x293a9b[_0x24bb61(0x326)],_0x293a9b['type'],typeof _0x293a9b[_0x24bb61(0x142)]===_0x24bb61(0x2f9)?_0x293a9b[_0x24bb61(0x142)]:undefined,{'isPrimaryKey':_0x293a9b['code']===this['context'][_0x24bb61(0x25b)],'description':_0x293a9b[_0x24bb61(0x1d9)]||_0x293a9b[_0x24bb61(0x1e4)]});_0x573e8b[_0x293a9b[_0x24bb61(0x326)]]=_0x28938a;}),_0x573e8b;}return Object[_0x1ee153(0x188)](_0x5799ba)[_0x1ee153(0x2f6)](([_0x4b6d15,_0x28467d])=>{const _0x2fe2e8=_0x1ee153,_0x4afa4c=_0x28467d;let _0x4bd0c6;if(typeof _0x4afa4c[_0x2fe2e8(0x154)]==='string')_0x4bd0c6=_0x4afa4c[_0x2fe2e8(0x154)];else _0x4afa4c[_0x2fe2e8(0x154)]&&typeof _0x4afa4c['type']===_0x2fe2e8(0x243)?_0x4bd0c6=_0x4afa4c[_0x2fe2e8(0x154)]['type']||'TEXT':_0x4bd0c6='TEXT';const _0x3598cd=_0x4afa4c[_0x2fe2e8(0x1d9)],_0x4cc651=this[_0x2fe2e8(0x197)](_0x4b6d15);if(_0x4b6d15===_0x2fe2e8(0x1cd))_0x573e8b[_0x4b6d15]=0x1;else{if(_0x4b6d15===_0x2fe2e8(0x1a8))_0x573e8b[_0x4b6d15]=0xa;else _0x4b6d15==='id'?_0x573e8b[_0x4b6d15]=0x1:_0x573e8b[_0x4b6d15]=this[_0x2fe2e8(0x23b)](_0x4b6d15,_0x4bd0c6,typeof _0x4cc651?.[_0x2fe2e8(0x142)]==='string'?_0x4cc651[_0x2fe2e8(0x142)]:undefined,{'isPrimaryKey':_0x4b6d15===this[_0x2fe2e8(0x254)][_0x2fe2e8(0x25b)]||_0x4b6d15==='id','description':_0x3598cd||_0x4cc651?.[_0x2fe2e8(0x1d9)]||_0x4cc651?.['name']});}}),_0x573e8b;}[a0_0x17ef4f(0x22c)](){const _0xcf6dc4=a0_0x17ef4f,_0x2aa6a0=this[_0xcf6dc4(0x16f)]();if(!_0x2aa6a0)return{'success':!![],'msg':_0xcf6dc4(0x191),'errorMsg':'','errorCode':_0xcf6dc4(0x1fc),'data':null};return this[_0xcf6dc4(0x164)](_0x2aa6a0);}[a0_0x17ef4f(0x164)](_0x5c7ed2){const _0xf1554e=a0_0x17ef4f;if(!_0x5c7ed2||typeof _0x5c7ed2!=='object')return{};if(Array[_0xf1554e(0x171)](_0x5c7ed2)){if(_0x5c7ed2['length']>0x0)return[this[_0xf1554e(0x164)](_0x5c7ed2[0x0])];return[];}const _0x146bf1={};return Object[_0xf1554e(0x1e2)](_0x5c7ed2)['forEach'](_0x54ed87=>{const _0x50db7e=_0xf1554e,_0x2a889d=_0x5c7ed2[_0x54ed87];if(_0x2a889d&&typeof _0x2a889d===_0x50db7e(0x243)&&!Array[_0x50db7e(0x171)](_0x2a889d)&&_0x2a889d[_0x50db7e(0x154)]){const _0x2a965b=_0x2a889d;let _0x234773;if(typeof _0x2a965b[_0x50db7e(0x154)]===_0x50db7e(0x2f9))_0x234773=_0x2a965b[_0x50db7e(0x154)];else _0x2a965b[_0x50db7e(0x154)]&&typeof _0x2a965b[_0x50db7e(0x154)]===_0x50db7e(0x243)?_0x234773=_0x2a965b['type']['type']||'TEXT':_0x234773='TEXT';const _0x5768a7=_0x2a965b[_0x50db7e(0x1d9)];_0x146bf1[_0x54ed87]=this[_0x50db7e(0x23b)](_0x54ed87,_0x234773,undefined,{'description':_0x5768a7});}else{if(Array[_0x50db7e(0x171)](_0x2a889d))_0x146bf1[_0x54ed87]=_0x2a889d['length']>0x0?[this[_0x50db7e(0x164)](_0x2a889d[0x0])]:[];else _0x2a889d&&typeof _0x2a889d===_0x50db7e(0x243)?_0x146bf1[_0x54ed87]=this[_0x50db7e(0x164)](_0x2a889d):_0x146bf1[_0x54ed87]=_0x2a889d;}}),_0x146bf1;}[a0_0x17ef4f(0x279)](_0x17d6bd,_0x2e207d){const _0x25b950=a0_0x17ef4f,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x2e207d||{},_0x49c97a=this['getName'](),_0x269d7e=this[_0x25b950(0x15f)](),_0x5c2ba3=this['getRequestFields'](),_0x39bbd2=this[_0x25b950(0x1f4)](),_0x354d5b=_0x5a7b40=>{const _0x6f30bd=_0x25b950;if(Object[_0x6f30bd(0x1e2)](_0x5a7b40)[_0x6f30bd(0x316)]===0x0)return'{}';const _0x28e73a=JSON[_0x6f30bd(0x258)](_0x5a7b40,null,0x2)[_0x6f30bd(0x280)]('\x0a')[_0x6f30bd(0x1e6)]((_0x49d297,_0x17faa6)=>_0x17faa6===0x0?_0x49d297:indent+_0x49d297)[_0x6f30bd(0x183)]('\x0a');return _0x28e73a;};switch(_0x269d7e){case _0x25b950(0x1b2):case'delete':return _0x25b950(0x2d9)+_0x17d6bd+'.'+_0x49c97a+'(id);';case _0x25b950(0x2ce):if(useFullExample&&Object[_0x25b950(0x1e2)](_0x39bbd2)[_0x25b950(0x316)]>0x0)return _0x25b950(0x2d9)+_0x17d6bd+'.'+_0x49c97a+_0x25b950(0x294)+_0x354d5b(_0x39bbd2)+');';return _0x25b950(0x2d9)+_0x17d6bd+'.'+_0x49c97a+'(id,\x20data);';case _0x25b950(0x1a2):case _0x25b950(0x1d2):case'getSelectOptions':default:if(_0x5c2ba3[_0x25b950(0x316)]>0x0){if(useFullExample&&Object[_0x25b950(0x1e2)](_0x39bbd2)['length']>0x0)return'const\x20result\x20=\x20await\x20client.models.'+_0x17d6bd+'.'+_0x49c97a+'('+_0x354d5b(_0x39bbd2)+');';else{const _0x4172df=Object['keys'](_0x39bbd2);if(_0x4172df[_0x25b950(0x316)]>0x0){const _0x4c1c98=_0x4172df['slice'](0x0,0x2)['join'](',\x20');return _0x25b950(0x2d9)+_0x17d6bd+'.'+_0x49c97a+_0x25b950(0x2d0)+_0x4c1c98+',\x20...\x20});';}else return _0x25b950(0x2d9)+_0x17d6bd+'.'+_0x49c97a+_0x25b950(0x327);}}else return _0x25b950(0x2d9)+_0x17d6bd+'.'+_0x49c97a+_0x25b950(0x33b);}}['generateRequestAllExamples'](){return[{'title':'请求示例','data':this['generateRequestExample']()}];}}class GetSelectOptionsOperation extends GenericOperation{[a0_0x17ef4f(0x13c)](){const _0x54c310=a0_0x17ef4f,_0x1d9046=super['getRequestParams'](),_0x1b7356=Object[_0x54c310(0x1e2)](_0x1d9046);return(_0x1b7356[_0x54c310(0x316)]===0x0||_0x1b7356[_0x54c310(0x316)]===0x1&&_0x1b7356[0x0]===_0x54c310(0x326))&&(!_0x1d9046[_0x54c310(0x326)]&&(_0x1d9046[_0x54c310(0x326)]={'type':_0x54c310(0x1cc),'description':_0x54c310(0x2ea)}),_0x1d9046[_0x54c310(0x241)]={'type':_0x54c310(0x1cc),'description':_0x54c310(0x31b)}),_0x1d9046;}[a0_0x17ef4f(0x1f4)](){const _0xee2f01=a0_0x17ef4f;return{'code':_0xee2f01(0x2dc),'label':_0xee2f01(0x2dc)};}[a0_0x17ef4f(0x279)](_0x2a1aa3){const _0x2e77f8=a0_0x17ef4f,_0x5d2376=this[_0x2e77f8(0x2b0)]();return'const\x20result\x20=\x20await\x20client.models.'+_0x2a1aa3+'.'+_0x5d2376+_0x2e77f8(0x2cc);}}class GetListOperation extends GenericOperation{[a0_0x17ef4f(0x13c)](){const _0x4a4df2=a0_0x17ef4f,_0xd19a19=super[_0x4a4df2(0x13c)](),{currentPage:_0x20c49c,pageSize:_0x36ca21,..._0x48c4d1}=_0xd19a19,_0x2510dd={};return Object[_0x4a4df2(0x188)](_0x48c4d1)[_0x4a4df2(0x2f6)](([_0x56af48,_0x150f38])=>{const _0x35ad78=_0x4a4df2;if(typeof _0x150f38==='object'&&_0x150f38!==null){const _0x3d13e0=_0x150f38,_0x5d8760=_0x3d13e0['description']||'';_0x2510dd[_0x56af48]={..._0x3d13e0,'description':_0x5d8760?_0x5d8760+_0x35ad78(0x195):_0x35ad78(0x153)};}else _0x2510dd[_0x56af48]=_0x150f38;}),{..._0x2510dd,'currentPage':{...typeof _0x20c49c===_0x4a4df2(0x243)?_0x20c49c:{},'type':'Number','description':_0x4a4df2(0x333)},'pageSize':{...typeof _0x36ca21===_0x4a4df2(0x243)?_0x36ca21:{},'type':'Number','description':_0x4a4df2(0x332)}};}[a0_0x17ef4f(0x1f4)](_0x43381d){const _0x13ab4c=a0_0x17ef4f,{useArrayValues:useArrayValues=!![]}=_0x43381d||{},_0x56f3e6=super[_0x13ab4c(0x1f4)](),{currentPage:_0x3e90b7,pageSize:_0x2a31bb,..._0x270a3d}=_0x56f3e6;if(!useArrayValues)return{..._0x270a3d,'currentPage':_0x3e90b7??0x1,'pageSize':_0x2a31bb??0xa};const _0x146ad0={},_0x14ce1c=['id',_0x13ab4c(0x17e),_0x13ab4c(0x326),_0x13ab4c(0x154)];return Object['entries'](_0x270a3d)[_0x13ab4c(0x2f6)](([_0x1c69da,_0x548fe0],_0x4ab178)=>{const _0x27bcb2=_0x13ab4c,_0xd47e60=_0x14ce1c[_0x27bcb2(0x335)](_0x205271=>_0x1c69da[_0x27bcb2(0x2a5)]()[_0x27bcb2(0x1d3)](_0x205271))||_0x4ab178%0x3===0x0;if(_0xd47e60&&_0x548fe0!==null&&_0x548fe0!==undefined){if(typeof _0x548fe0===_0x27bcb2(0x18a))_0x146ad0[_0x1c69da]=[_0x548fe0,_0x548fe0+0x1,_0x548fe0+0x2];else typeof _0x548fe0===_0x27bcb2(0x2f9)?_0x146ad0[_0x1c69da]=[_0x548fe0,_0x548fe0+'_2',_0x548fe0+'_3']:_0x146ad0[_0x1c69da]=[_0x548fe0];}else _0x146ad0[_0x1c69da]=_0x548fe0;}),{..._0x146ad0,'currentPage':_0x3e90b7??0x1,'pageSize':_0x2a31bb??0xa};}['generateSingleValueExample'](){return this['generateRequestExample']({'useArrayValues':![]});}[a0_0x17ef4f(0x251)](){const _0x1518e4=a0_0x17ef4f;return[{'title':_0x1518e4(0x1b8),'description':_0x1518e4(0x2f7),'data':this['generateSingleValueExample']()},{'title':'数组查询(支持多选)','description':_0x1518e4(0x2ba),'data':this[_0x1518e4(0x1f4)]()}];}[a0_0x17ef4f(0x279)](_0x9bebe3,_0x4ad19e){const _0x4c3ded=a0_0x17ef4f,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x4ad19e||{},_0x54d458=this['getName'](),_0x794fa0=this[_0x4c3ded(0x1f4)]({'useArrayValues':!![]}),{currentPage:_0x13ebe3,pageSize:_0x55be4a,..._0xba2ca5}=_0x794fa0;if(useFullExample&&Object[_0x4c3ded(0x1e2)](_0x794fa0)['length']>0x0){const _0x79cdb0=Object[_0x4c3ded(0x1e2)](_0xba2ca5)[_0x4c3ded(0x316)]>0x0;if(_0x79cdb0){const _0x54103e=this['generateSingleValueExample'](),_0x40555c=_0x25ffeb=>{const _0x54613c=_0x4c3ded;return JSON[_0x54613c(0x258)](_0x25ffeb,null,0x2)['split']('\x0a')['map']((_0x16d1d0,_0x2d769d)=>_0x2d769d===0x0?_0x16d1d0:indent+_0x16d1d0)[_0x54613c(0x183)]('\x0a');};return _0x4c3ded(0x324)+_0x9bebe3+'.'+_0x54d458+'('+_0x40555c(_0x54103e)+_0x4c3ded(0x240)+_0x9bebe3+'.'+_0x54d458+'('+_0x40555c(_0x794fa0)+');';}else{const _0x50a487=JSON[_0x4c3ded(0x258)](_0x794fa0,null,0x2)['split']('\x0a')[_0x4c3ded(0x1e6)]((_0x1c1f6c,_0x51ddcc)=>_0x51ddcc===0x0?_0x1c1f6c:indent+_0x1c1f6c)['join']('\x0a');return _0x4c3ded(0x2d9)+_0x9bebe3+'.'+_0x54d458+'('+_0x50a487+');';}}if(Object[_0x4c3ded(0x1e2)](_0xba2ca5)[_0x4c3ded(0x316)]>0x0){const _0x96a382=Object[_0x4c3ded(0x1e2)](_0xba2ca5)[0x0];return'const\x20result\x20=\x20await\x20client.models.'+_0x9bebe3+'.'+_0x54d458+'({\x20'+_0x96a382+_0x4c3ded(0x270);}return _0x4c3ded(0x2d9)+_0x9bebe3+'.'+_0x54d458+_0x4c3ded(0x247);}}var FILTER_OPERATORS=[a0_0x17ef4f(0x202),a0_0x17ef4f(0x23d),'$gte',a0_0x17ef4f(0x271),a0_0x17ef4f(0x196),a0_0x17ef4f(0x29e),a0_0x17ef4f(0x2ed),'$contain',a0_0x17ef4f(0x1db),a0_0x17ef4f(0x230),a0_0x17ef4f(0x21f),a0_0x17ef4f(0x170)];function a0_0x4042(){const _0x1d53b4=['JSON','sdkCall','source','[Field]\x20Invalid\x20field\x20definition','[Field.extend]\x20解析字段\x20','warn','String','currentPage','isMultipleSelect','groupByTableName','getFieldInstance','Invalid\x20API\x20response:\x20success\x20is\x20false','getList','includes','getLast','datasetMap','getAllDatasets','toObject','tableData','description','getEnabledNames','$startWith','import\x20{\x20createClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;\x0a\x0a//\x20Create\x20SDK\x20client\x0aconst\x20client\x20=\x20createClient({\x0a\x20\x20appCode:\x20\x27','hasModifierIdField','hasConflicts','value2','fieldCount','enabledOperationCount','keys','children','name','/filter','map','createDate','getNames','sortNum','2024-01-01','getAutoIncrement','DATETIME','({\x20/*\x20可选:筛选条件\x20*/\x20});','dataset_','POST','getOldest','getOperationList','getApplicableOperators','online','generateRequestExample','getFieldOptions','data','findByCode','findAll','excelExport','TIMESTAMP','\x0a\x20\x20accessKey:\x20process.env.LOVRABET_ACCESS_KEY,','0000','getOperationFieldOperators','getFields','getEnumOptions','INTEGER','placeholder','$eq','getVirtualTables','items','Number','version','has','下拉选择','now','_operationList','getEnumFields','获取文件URL','getOperationDocMeta','700310gBUSCZ','path','toConfigArray','getDatabaseType','filterBlacklist','getModelName','\x0a##\x20模型访问方式说明\x0a\x0aSDK\x20提供两种模型访问方式:\x0a\x0a###\x201.\x20标准方式(推荐用于程序化场景)\x0a\x0a使用\x20`dataset_[完整datasetCode]`\x20格式(即\x20datasetSDKKey),这是通用的、稳定的访问方式:\x0a\x0a```javascript\x0a//\x20标准访问方式\x0aconst\x20result\x20=\x20await\x20client.models.','RADIO','10823121dCIpya','getFieldsByType','logicField','[getDbTypeDisplay]\x20type\x20is\x20not\x20a\x20string:','hasLogicField','getDisplayName','DrivenDataDetail(','generateFullSDKExample','[DrivenDataDetail.getFieldInstance]\x20code\x20is\x20not\x20a\x20string:','$and','fullUrl','getOneUpdate','createTimeField','raw','operation','[generateRequestExample]\x20Invalid\x20field:','查询单条','getItems','dbId','getByType','enabled','getDatabaseVersion','generateResponseExample','generateSingleValueExample','getDatabaseName','2024-12-31','$endWith','N/A','BOOL','NUMBER','getSDKInitData','getRaw','boolean','sdkCallCode','modifierNameField','GET_FILE_URL','getOperationCount','generateFieldExample','getMissingCRUDOperations','$ne','dataset_000000','systemRetain',');\x0a\x0a//\x20数组查询(支持多选)\x0aconst\x20result\x20=\x20await\x20client.models.','label','dbtableConfig','object','//\x20成功时\x20-\x20直接获取\x20data\x20字段内容\x0aconst\x20data\x20=\x20await\x20client.models.','getOperationCountByType','toUpperCase','({\x20currentPage,\x20pageSize\x20});','value','creatorNameField','getFieldCount','getOperators','customFilter','parseFieldExtend','Excel导出','isBusiness','GET_ONE','generateRequestAllExamples','getPrimaryKeyFields','options','context','\x20访问\x0a\x20\x20\x20\x20}\x0a\x20\x20]\x0a});','operationCount','repeat','stringify','min','getRequiredFields','pkField','requestBody','useFullExample','\x20operations)','findByTableName','generateOperationSummary','properties','getOperations','GET_UPLOAD_FILE_SCRIPT','getCount','ensureFilterOperation','VARCHAR','_datasetMap','daily','isUpdateTime','\x27\x20\x20//\x20人类友好的别名,可通过\x20client.models.','getAllFieldsArray','DESC','systemAnalysisResult','isPrimaryKeyField','fromApiResponse',',\x20currentPage,\x20pageSize,\x20...\x20});','$gteq','4531051KvhPQu','getField','padStart','includeDisabled','push','//\x20导出所有数据\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','CHECKBOX','generateSDKCallCode','getSystemAnalysisResult','where','isOperationEnabled','获取数据集列表失败:\x20','任务信息','getTooltip','split','getFirst','sortOperationsWithFilterFirst','toJSON','fields','isAutoIncrement','\x20items,\x20conflict,\x20latest:\x20','getOperationStats','getModelAlias','getSystemFields','operations','hasUpdateTimeField','getConflictingItems','DatasetList(','tenantCode','query','modifierIdField','tooltip','getMethod','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20fileUrl\x20=\x20await\x20client.models.','(id,\x20','address','getLatest','getOperationAnalysesByType','supportsCRUD','isCreateTime','UPDATE','查询条件(支持\x2012\x20种操作符:$eq,\x20$ne,\x20$gte,\x20$gteq,\x20$lte,\x20$lteq,\x20$in,\x20$contain,\x20$startWith,\x20$endWith,\x20$and,\x20$or)','responseExample','getPrimaryKeys','$lteq','host','orderBy','null','getFieldsWithDeleted','allFields','查询单条(原始)','toLowerCase','SELECT','579129ORoKPu','isRequiredField','getRealTables','DELETE','select','67709ZaebiA','\x0a\x0a//\x20Usage\x20examples:\x0a\x0a','BIGINT','isEnabled','getName','phone','getCreateTime','getTableName','toArray','Object','_fieldListWithDeleted','delete','getOperation','DatasetGroupMap(','支持多个条件','empty','API路径','10syCSdD','add','toListItem','initDataset','multiple','\x20groups,\x20','trim','_raw','创建导出','-\x20`','DatasetItem(','系统自动生成','isRequired','hasDbtableConfig','CREATE_IMPORT','({\x20code,\x20label\x20});','[getFieldsForOperation]\x20fields\x20is\x20not\x20an\x20array:','update','创建导入','({\x20',',\x20fields:\x20','示例值','fieldName','isEnumField','\x0a\x20\x20env:\x20\x27','getEnabledOperations','item1','hasField','const\x20result\x20=\x20await\x20client.models.','parseRawRequestBody','toConfig','field_name','getDatasetSDKKey','\x20Response\x20example:\x0a','BOOLEAN','getDisabledOperations','value1','from','TEXT','$contain','\x20fields,\x20','hasConflict','富文本','hasOperation','getDefaultValue','字段编码','datasetCode','getCountByMethod','$in','String[]','responseSchema','北京市朝阳区','getTenantCode','getSource','getFilterOperators','Integer','getFieldSelectItemsSource','forEach','查询单个条件','getAppCode','string','();\x0a//\x20fileUrl:\x20\x22https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/xxx.xlsx?...\x22\x0awindow.open(fileUrl,\x20\x27_blank\x27);\x20//\x20打开下载','item2','Invalid\x20API\x20response:\x20data\x20must\x20be\x20an\x20array\x20(get-dataset-list)\x20or\x20contain\x20tableData\x20(getList)','当前页码(可选)','primaryKey','selectItemsSource','\x0a\x0a//\x20','keyword','toISOString','接口名称','[generateExampleValue]\x20fieldType\x20is\x20not\x20a\x20string:','getStats','_extend','labelField','importTemplate','replace','获取下拉选项','GET_SELECT_OPTIONS','getOneOrigin','systemFieldCount','groups','withDeleted','getRequired','hasDblinkInfo','size','getOperationAnalysis','requestFields','CREATE','length','解析\x20requestBody\x20失败:','usageExample','all','isMultipleSelectField','字段名称','values','https://example.com/image.jpg','generateExampleValue','lastIndexOf','getOperationCountByMethod','hasCreateTimeField','Filter\x20API\x20-\x20高级查询接口','generateAliasExplanation','//\x20单值查询\x0aconst\x20result\x20=\x20await\x20client.models.','dblinkInfoDTO','code','(params);','extend','generateSDKInitCode','1.0.0-beta.8','_operationAnalyses','findByName','appCode','generateUsageExample','deleted','getSelectOptions','find','每页数量','当前页码','\x0a//\x20Call\x20the\x20','some','();\x0a\x0a//\x20按条件导出(支持与\x20filter\x20相同的参数)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','getAll','suffix','sort','hasCreatorIdField','();','getCodes','getLatestDatasets','DATE','getEnumFieldMeta','getEnumMeta','Operation\x20instance\x20not\x20found:\x20','674598IJZKBY','creatorIdField','[filterApiOperations]\x20operations\x20is\x20not\x20an\x20array:','findById','DatasetGroup(','getEnum','selectBestOperator','DECIMAL','updateTimeField','tableName','iterator','[Operation.getFieldDefinition]\x20fieldCode\x20is\x20not\x20a\x20string:','getRequestParams','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20data\x20=\x20await\x20client.models.','getOperationFieldsOperatorsMap','createImport','getOperationAnalyses','getBusiness','dbType','method','filter','dbName','modifyDate','_fields','排序规则','getFullUrl','_fieldList','has\x20conflicts','Invalid\x20simplified\x20API\x20response:\x20tableData\x20must\x20be\x20an\x20array','getFileUrl','getFieldOperators','[DrivenDataDetail.getOperation]\x20operationType\x20is\x20not\x20a\x20string:','[Operation.getFieldDefinition]\x20context.fields\x20is\x20not\x20an\x20array','\x22,数据集:\x20','isSystem','支持单值或数组','type','getFilteredOperationAnalyses','导入模板','success','\x0a\x0a//\x20复杂查询(组合条件)\x0aconst\x20result2\x20=\x20await\x20client.models.','getFieldsFilterOperatorsMap','TASK_INFO','getDatasetDocMeta','total','getOperationOperators','.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20可读性强,符合编程命名习惯\x0a-\x20便于记忆和手工编写\x0a-\x20代码更加简洁美观\x0a\x0a**注意**:使用别名方式需要在\x20`registerModels`\x20时配置\x20`alias`\x20字段。\x0a','getType','getExtendField','dataset_unknown','<p>富文本内容</p>','get','generateFromSchema','generateConfigArray','slice','isEnum','hasTableName','[isApiBlacklisted]\x20operationName\x20is\x20not\x20a\x20string:','$gte','getDisabled','isVirtualTable','这是一段较长的文本内容示例','parse','getResponseSchema','$or','isArray','每页数量(可选)','[parseOperationType]\x20value\x20is\x20not\x20a\x20string:','getDisabledNames','getOperationRequestFields','getRequestFields','displayName','createExport','substring','detectConflicts','getSelectItemsSource','getFilterOperation','\x20operation\x0a','status','getUploadFileScript','[Operation.parseRawRequestBody]\x20requestBody\x20is\x20not\x20a\x20string:','https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/example_file_XXXXXXX.xlsx?Expires=1765374987&OSSAccessKeyId=LTAI5tGCr8Eb3UVbdf5ap9Z1&Signature=k115junCUe7Ot5BTSov0Usul3oc%3D','createAll','join','generateConfig','isPrimaryKey','getConflicts','[parseFieldExtend]\x20Invalid\x20field:','entries','getEnabledOperationAnalyses','number','isDeleted','973936IuJLEt','[Operation.parseRawResponseBody]\x20responseBody\x20is\x20not\x20a\x20string:','\x20的\x20extend\x20配置失败:','-$1','12BkixBE','操作成功','getPath','时间戳','isOperatorApplicableToField','(支持单值或数组)','$lte','getFieldDefinition','required','modelCode','getSystem','();\x0a\x0a//\x20导出指定条数\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','isEmpty','datasetKey','groupByType','getAt','https://example.com/file.pdf','\x20API\x20文档','create','STRING','taskInfo','set','getTableKey','_operations','pageSize','toString','charAt','getFieldList','responseBody','getCountByType','defaultValue','13800138000','getEnabled','generateAllOperationsFullSDKExample','getOne','autoIncrement','parseRawResponseBody','valueLabels','SDK\x20调用','successCode','单值查询','includeDeleted','getRawDbtableConfig','解析\x20responseBody\x20失败:','errorMsg','OperationList(','generateAllOperationsSummary','email','const\x20fileUrl\x20=\x20await\x20client.models.','文件上传','IMPORT_TEMPLATE','getConflictStats','\x27,\x0a\x20\x20\x20\x20\x20\x20alias:\x20\x27','test'];a0_0x4042=function(){return _0x1d53b4;};return a0_0x4042();}class FilterOperation extends GenericOperation{constructor(_0x5d6f9a,_0x401b3a,_0x229e3d){super(_0x5d6f9a,_0x401b3a,_0x229e3d);}[a0_0x17ef4f(0x24b)](){return FILTER_OPERATORS;}[a0_0x17ef4f(0x14e)](_0x1b51dc){const _0x5132c1=a0_0x17ef4f,_0x386af7=this[_0x5132c1(0x197)](_0x1b51dc);if(!_0x386af7)return[];return this[_0x5132c1(0x1f2)](_0x386af7[_0x5132c1(0x154)]);}[a0_0x17ef4f(0x13c)](){const _0x4c1ef4=a0_0x17ef4f,_0x38267c=super[_0x4c1ef4(0x13c)]();return{..._0x38267c,'where':{'type':_0x4c1ef4(0x2b5),'description':_0x4c1ef4(0x29b),'required':![]},'select':{'type':_0x4c1ef4(0x2ee),'description':'返回字段列表(字段投影)','required':![]},'orderBy':{'type':'Object[]','description':_0x4c1ef4(0x148),'required':![]},'currentPage':{'type':_0x4c1ef4(0x205),'description':_0x4c1ef4(0x333),'required':![],'default':0x1},'pageSize':{'type':_0x4c1ef4(0x205),'description':_0x4c1ef4(0x332),'required':![],'default':0xa}};}[a0_0x17ef4f(0x1f4)](){const _0x247811=a0_0x17ef4f,_0x148012=this['context']['fields']||[];if(_0x148012[_0x247811(0x316)]===0x0)return{'where':{},'currentPage':0x1,'pageSize':0x14};const _0x1c340b={},_0x355ca8=_0x148012[_0x247811(0x166)](0x0,Math[_0x247811(0x259)](0x3,_0x148012[_0x247811(0x316)]));_0x355ca8['forEach'](_0x573328=>{const _0x160f81=_0x247811,_0x44bb15=this[_0x160f81(0x1f2)](_0x573328['type']);if(_0x44bb15[_0x160f81(0x316)]===0x0)return;const _0x35c00b=this[_0x160f81(0x348)](_0x573328[_0x160f81(0x154)],_0x44bb15),_0x3ff5a0=this[_0x160f81(0x31e)](_0x573328,_0x35c00b);_0x1c340b[_0x573328[_0x160f81(0x326)]]={[_0x35c00b]:_0x3ff5a0};});const _0x414b88=_0x148012['slice'](0x0,Math[_0x247811(0x259)](0x5,_0x148012[_0x247811(0x316)]))['map'](_0x3e4a93=>_0x3e4a93[_0x247811(0x326)]),_0x393055=_0x148012[0x0]?.[_0x247811(0x326)]||'id';return{'where':_0x1c340b,'select':_0x414b88,'orderBy':[{[_0x393055]:_0x247811(0x26c)}],'currentPage':0x1,'pageSize':0x14};}['generateSDKCallCode'](_0x4d8d6b,_0x358ffb){const _0x4a11ca=a0_0x17ef4f,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x358ffb||{},_0x2e0277=this['getName'](),_0x2ae432=this['generateRequestExample'](),_0x47c80f=_0x5bf863=>{const _0x456d93=a0_0x254c;return JSON[_0x456d93(0x258)](_0x5bf863,null,0x2)[_0x456d93(0x280)]('\x0a')['map']((_0x43b914,_0x66e200)=>_0x66e200===0x0?_0x43b914:indent+_0x43b914)[_0x456d93(0x183)]('\x0a');};if(useFullExample){const _0x117ba6=this['context']['fields']||[],_0x3b5a49={'where':_0x117ba6[0x0]?{[_0x117ba6[0x0]['code']]:{'$eq':this['generateExampleValue'](_0x117ba6[0x0],'$eq')}}:{},'select':_0x117ba6[_0x4a11ca(0x166)](0x0,0x3)[_0x4a11ca(0x1e6)](_0x21f0d0=>_0x21f0d0[_0x4a11ca(0x326)]),'currentPage':0x1,'pageSize':0x14};let _0x28401c='';if(_0x117ba6[_0x4a11ca(0x316)]>=0x3){const _0x2df695={'$and':[]},_0x4d7d10=[];if(_0x117ba6[_0x4a11ca(0x316)]>0x0){const _0x363823=_0x117ba6['find'](_0x777df3=>[_0x4a11ca(0x233),_0x4a11ca(0x200),'BIGINT']['includes'](_0x777df3[_0x4a11ca(0x154)][_0x4a11ca(0x246)]()));_0x363823&&_0x4d7d10[_0x4a11ca(0x276)]({[_0x363823[_0x4a11ca(0x326)]]:{'$gte':0x0,'$lte':0x64}});}if(_0x117ba6[_0x4a11ca(0x316)]>0x1){const _0x74a28f=_0x117ba6[_0x4a11ca(0x331)](_0x23c6e0=>['STRING',_0x4a11ca(0x2e3),_0x4a11ca(0x266)][_0x4a11ca(0x1d3)](_0x23c6e0[_0x4a11ca(0x154)]['toUpperCase']()));_0x74a28f&&_0x4d7d10[_0x4a11ca(0x276)]({[_0x74a28f['code']]:{'$contain':_0x4a11ca(0x301)}});}if(_0x4d7d10['length']>0x0){_0x2df695[_0x4a11ca(0x21f)]=_0x4d7d10;const _0x256281={'where':_0x2df695,'select':_0x117ba6[_0x4a11ca(0x166)](0x0,0x4)['map'](_0x49a9fa=>_0x49a9fa[_0x4a11ca(0x326)]),'orderBy':[{[_0x117ba6[0x0][_0x4a11ca(0x326)]]:'DESC'}],'currentPage':0x1,'pageSize':0x14};_0x28401c=_0x4a11ca(0x158)+_0x4d8d6b+'.'+_0x2e0277+'('+_0x47c80f(_0x256281)+');';}}return'//\x20简单查询\x0aconst\x20result1\x20=\x20await\x20client.models.'+_0x4d8d6b+'.'+_0x2e0277+'('+_0x47c80f(_0x3b5a49)+');'+_0x28401c;}const _0x4bd0b8=JSON[_0x4a11ca(0x258)](_0x2ae432,null,0x2)['split']('\x0a')['map']((_0x185be9,_0x4f05ee)=>_0x4f05ee===0x0?_0x185be9:indent+_0x185be9)[_0x4a11ca(0x183)]('\x0a');return'const\x20result\x20=\x20await\x20client.models.'+_0x4d8d6b+'.'+_0x2e0277+'('+_0x4bd0b8+');';}[a0_0x17ef4f(0x1f2)](_0x2b6688){const _0x882ed3=a0_0x17ef4f,_0x56f8c6=_0x2b6688['toUpperCase'](),_0x46f08c=[];if([_0x882ed3(0x233),_0x882ed3(0x200),_0x882ed3(0x2ae),_0x882ed3(0x137)][_0x882ed3(0x1d3)](_0x56f8c6))_0x46f08c[_0x882ed3(0x276)](_0x882ed3(0x202),_0x882ed3(0x23d),_0x882ed3(0x16a),'$lte',_0x882ed3(0x271),_0x882ed3(0x29e),_0x882ed3(0x2ed));else{if([_0x882ed3(0x1a3),_0x882ed3(0x2e3),'VARCHAR'][_0x882ed3(0x1d3)](_0x56f8c6))_0x46f08c[_0x882ed3(0x276)](_0x882ed3(0x202),_0x882ed3(0x23d),'$in','$contain',_0x882ed3(0x1db),_0x882ed3(0x230));else{if([_0x882ed3(0x33e),_0x882ed3(0x1ec),_0x882ed3(0x1fa)]['includes'](_0x56f8c6))_0x46f08c[_0x882ed3(0x276)]('$eq',_0x882ed3(0x23d),'$gte',_0x882ed3(0x196),_0x882ed3(0x271),'$lteq');else[_0x882ed3(0x2df),'BOOL'][_0x882ed3(0x1d3)](_0x56f8c6)?_0x46f08c[_0x882ed3(0x276)](_0x882ed3(0x202),'$ne'):_0x46f08c[_0x882ed3(0x276)]('$eq',_0x882ed3(0x23d));}}return _0x46f08c;}[a0_0x17ef4f(0x348)](_0x515ff0,_0x259ee8){const _0x582680=a0_0x17ef4f,_0x1f14c9=_0x515ff0[_0x582680(0x246)]();if(['NUMBER',_0x582680(0x200),_0x582680(0x2ae),_0x582680(0x137)]['includes'](_0x1f14c9))return _0x259ee8['includes'](_0x582680(0x16a))?_0x582680(0x16a):_0x582680(0x202);if([_0x582680(0x1a3),_0x582680(0x2e3),_0x582680(0x266)][_0x582680(0x1d3)](_0x1f14c9))return _0x259ee8[_0x582680(0x1d3)]('$contain')?_0x582680(0x2e4):_0x582680(0x202);if(['DATE',_0x582680(0x1ec),_0x582680(0x1fa)][_0x582680(0x1d3)](_0x1f14c9))return _0x259ee8[_0x582680(0x1d3)](_0x582680(0x16a))?_0x582680(0x16a):_0x582680(0x202);return _0x582680(0x202);}['generateExampleValue'](_0x4da45b,_0x3fa70c){const _0x495fb1=a0_0x17ef4f,_0x4431fe=String(_0x4da45b['type']||'')[_0x495fb1(0x246)]();if(_0x4da45b[_0x495fb1(0x328)])try{const _0x2f3c24=typeof _0x4da45b[_0x495fb1(0x328)]==='string'?JSON[_0x495fb1(0x16e)](_0x4da45b['extend']):_0x4da45b[_0x495fb1(0x328)];if(_0x2f3c24['options']&&Array[_0x495fb1(0x171)](_0x2f3c24[_0x495fb1(0x253)])&&_0x2f3c24['options']['length']>0x0){if(_0x3fa70c===_0x495fb1(0x2ed))return _0x2f3c24[_0x495fb1(0x253)][_0x495fb1(0x166)](0x0,0x2)['map'](_0x883962=>_0x883962[_0x495fb1(0x248)]);return _0x2f3c24['options'][0x0][_0x495fb1(0x248)];}}catch{}if(['NUMBER',_0x495fb1(0x200),_0x495fb1(0x2ae),_0x495fb1(0x137)][_0x495fb1(0x1d3)](_0x4431fe)){if(_0x3fa70c==='$in')return[0x1,0x2,0x3];if(_0x3fa70c===_0x495fb1(0x16a)||_0x3fa70c===_0x495fb1(0x271))return 0x0;if(_0x3fa70c===_0x495fb1(0x196)||_0x3fa70c==='$lteq')return 0x64;return 0x1;}if(['STRING',_0x495fb1(0x2e3),'VARCHAR']['includes'](_0x4431fe)){if(_0x3fa70c===_0x495fb1(0x2ed))return[_0x495fb1(0x2e1),_0x495fb1(0x1df)];if(_0x3fa70c===_0x495fb1(0x2e4))return _0x495fb1(0x301);if(_0x3fa70c===_0x495fb1(0x1db))return'prefix';if(_0x3fa70c===_0x495fb1(0x230))return _0x495fb1(0x338);return _0x495fb1(0x248);}if(['DATE','DATETIME',_0x495fb1(0x1fa)][_0x495fb1(0x1d3)](_0x4431fe)){if(_0x3fa70c==='$gte'||_0x3fa70c==='$gteq')return _0x495fb1(0x1ea);if(_0x3fa70c===_0x495fb1(0x196)||_0x3fa70c==='$lteq')return _0x495fb1(0x22f);return _0x495fb1(0x1ea);}if([_0x495fb1(0x2df),_0x495fb1(0x232)][_0x495fb1(0x1d3)](_0x4431fe))return!![];return _0x3fa70c==='$in'?['value1',_0x495fb1(0x1df)]:_0x495fb1(0x248);}}class ExcelExportOperation extends GenericOperation{[a0_0x17ef4f(0x13c)](){const _0x4b6210=a0_0x17ef4f,_0x4da6cb=super['getRequestParams']();if(Object[_0x4b6210(0x1e2)](_0x4da6cb)[_0x4b6210(0x316)]===0x0){const _0x2663e4={};return this[_0x4b6210(0x254)][_0x4b6210(0x284)]['forEach'](_0x5d60fa=>{const _0x289a4e=_0x4b6210;_0x5d60fa&&_0x5d60fa[_0x289a4e(0x326)]&&(_0x2663e4[_0x5d60fa['code']]={'type':_0x5d60fa['type']||_0x289a4e(0x2e3),'sortNum':_0x5d60fa[_0x289a4e(0x1e9)],'description':_0x5d60fa[_0x289a4e(0x1d9)]||_0x5d60fa['name']});}),_0x2663e4[_0x4b6210(0x1cd)]={'type':_0x4b6210(0x2f4),'description':_0x4b6210(0x2fd)},_0x2663e4[_0x4b6210(0x1a8)]={'type':'Integer','description':_0x4b6210(0x172)},_0x2663e4;}return _0x4da6cb;}[a0_0x17ef4f(0x1f4)](){const _0x40b100=a0_0x17ef4f,_0x2c40f8=super[_0x40b100(0x1f4)]();if(Object[_0x40b100(0x1e2)](_0x2c40f8)[_0x40b100(0x316)]===0x0)return{'currentPage':0x1,'pageSize':0x64};return{..._0x2c40f8,'currentPage':_0x2c40f8['currentPage']??0x1,'pageSize':_0x2c40f8[_0x40b100(0x1a8)]??0x64};}[a0_0x17ef4f(0x22c)](){const _0x490ada=a0_0x17ef4f;return{'success':!![],'msg':'','errorMsg':'','errorCode':_0x490ada(0x1fc),'data':_0x490ada(0x181),'params':null};}['generateSDKCallCode'](_0x1c609d,_0x31f88c){const _0xe288f4=a0_0x17ef4f,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x31f88c||{},_0x134629=this[_0xe288f4(0x2b0)]();if(useFullExample){const _0x5a5c05=this[_0xe288f4(0x1f4)](),{currentPage:_0x579fe2,pageSize:_0x14906f,..._0x5282e5}=_0x5a5c05,_0x34c190=Object['keys'](_0x5282e5)[_0xe288f4(0x316)]>0x0;if(_0x34c190){const _0x25e67c=_0xc6d787=>{const _0xea1d07=_0xe288f4;return JSON['stringify'](_0xc6d787,null,0x2)[_0xea1d07(0x280)]('\x0a')[_0xea1d07(0x1e6)]((_0x25d01f,_0x5d7d42)=>_0x5d7d42===0x0?_0x25d01f:indent+_0x25d01f)[_0xea1d07(0x183)]('\x0a');};return'//\x20导出所有数据\x0aconst\x20fileUrl\x20=\x20await\x20client.models.'+_0x1c609d+'.'+_0x134629+_0xe288f4(0x336)+_0x1c609d+'.'+_0x134629+'('+_0x25e67c(_0x5a5c05)+');';}else{const _0x3d11dc=_0x43e2d5=>{const _0x1d437e=_0xe288f4;return JSON[_0x1d437e(0x258)](_0x43e2d5,null,0x2)[_0x1d437e(0x280)]('\x0a')['map']((_0x1a53fe,_0x4962cf)=>_0x4962cf===0x0?_0x1a53fe:indent+_0x1a53fe)[_0x1d437e(0x183)]('\x0a');};return _0xe288f4(0x277)+_0x1c609d+'.'+_0x134629+_0xe288f4(0x19b)+_0x1c609d+'.'+_0x134629+'('+_0x3d11dc({'currentPage':0x1,'pageSize':0x64})+');';}}return _0xe288f4(0x1c0)+_0x1c609d+'.'+_0x134629+_0xe288f4(0x1ed);}[a0_0x17ef4f(0x32e)](_0x342bf8){const _0x14a192=a0_0x17ef4f,_0x44733c=this['getName'](),_0x52eeb1='//\x20成功时\x20-\x20直接获取文件\x20URL(字符串)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.'+_0x342bf8+'.'+_0x44733c+_0x14a192(0x2fa),_0x33ca6a=_0x14a192(0x293)+_0x342bf8+'.'+_0x44733c+'();\x0a\x20\x20window.open(fileUrl,\x20\x27_blank\x27);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x0a}';return{'successCode':_0x52eeb1,'errorCode':_0x33ca6a};}}class OperationFactory{[a0_0x17ef4f(0x1a2)](_0x1c448f,_0x569fae,_0x4a2979){const _0xe1d4e8=a0_0x17ef4f;switch(_0x1c448f){case _0xe1d4e8(0x330):return new GetSelectOptionsOperation(_0x1c448f,_0x569fae,_0x4a2979);case'getList':return new GetListOperation(_0x1c448f,_0x569fae,_0x4a2979);case _0xe1d4e8(0x144):return new FilterOperation(_0x1c448f,_0x569fae,_0x4a2979);case _0xe1d4e8(0x1f9):return new ExcelExportOperation(_0x1c448f,_0x569fae,_0x4a2979);default:return new GenericOperation(_0x1c448f,_0x569fae,_0x4a2979);}}[a0_0x17ef4f(0x182)](_0xbe7970,_0x48b09e){const _0xa1684e=a0_0x17ef4f,_0x50e6ca=new Map();return Object[_0xa1684e(0x188)](_0xbe7970)['forEach'](([_0x2f03c2,_0x1dc5e2])=>{const _0x213a8d=_0xa1684e;_0x50e6ca[_0x213a8d(0x1a5)](_0x2f03c2,this[_0x213a8d(0x1a2)](_0x2f03c2,_0x1dc5e2,_0x48b09e));}),_0x50e6ca;}}class OperationList{[a0_0x17ef4f(0x1a7)];constructor(_0x3d238a,_0x118680){const _0x373383=a0_0x17ef4f,_0xe8175a=new OperationFactory();this[_0x373383(0x1a7)]=_0xe8175a[_0x373383(0x182)](_0x3d238a,_0x118680);}[a0_0x17ef4f(0x163)](_0x29e767){const _0x40cbcc=a0_0x17ef4f;return this[_0x40cbcc(0x1a7)]['get'](_0x29e767);}['has'](_0x59742e){const _0x135708=a0_0x17ef4f;return this[_0x135708(0x1a7)][_0x135708(0x207)](_0x59742e);}[a0_0x17ef4f(0x312)](){const _0x5e5a7a=a0_0x17ef4f;return this['_operations'][_0x5e5a7a(0x312)];}[a0_0x17ef4f(0x1e8)](){const _0x163593=a0_0x17ef4f;return Array[_0x163593(0x2e2)](this[_0x163593(0x1a7)][_0x163593(0x1e2)]());}[a0_0x17ef4f(0x2b4)](){const _0x546c6b=a0_0x17ef4f,_0x382aa1=Array['from'](this[_0x546c6b(0x1a7)][_0x546c6b(0x31c)]());return this[_0x546c6b(0x282)](_0x382aa1);}['getEnabled'](){const _0x40b46c=a0_0x17ef4f;return this[_0x40b46c(0x2b4)]()[_0x40b46c(0x144)](_0x22f0a1=>_0x22f0a1[_0x40b46c(0x2af)]());}[a0_0x17ef4f(0x16b)](){const _0x5bed19=a0_0x17ef4f;return this[_0x5bed19(0x2b4)]()[_0x5bed19(0x144)](_0x5487c7=>!_0x5487c7[_0x5bed19(0x2af)]());}['getEnabledNames'](){const _0x20aa0e=a0_0x17ef4f;return this[_0x20aa0e(0x1b0)]()['map'](_0x1f1d25=>_0x1f1d25['getName']());}[a0_0x17ef4f(0x174)](){const _0x5d08bf=a0_0x17ef4f;return this[_0x5d08bf(0x16b)]()['map'](_0x28a0f7=>_0x28a0f7['getName']());}[a0_0x17ef4f(0x229)](_0x4a7835){const _0x30d265=a0_0x17ef4f;return this[_0x30d265(0x2b4)]()['filter'](_0x3c3a5f=>_0x3c3a5f[_0x30d265(0x15f)]()===_0x4a7835);}[a0_0x17ef4f(0x144)](_0x2d430c){const _0x2ac4b5=a0_0x17ef4f;return this[_0x2ac4b5(0x2b4)]()['filter'](_0x2d430c);}['getFiltered'](_0x923331={}){const _0x59acfb=a0_0x17ef4f;let _0x165102=this['toArray']();!_0x923331[_0x59acfb(0x275)]&&(_0x165102=_0x165102[_0x59acfb(0x144)](_0x5cf429=>_0x5cf429['isEnabled']()));if(_0x923331[_0x59acfb(0x212)]!==![]){const _0x52353b=_0x165102[_0x59acfb(0x1e6)](_0x233abc=>({'name':_0x233abc['getName'](),'operation':_0x233abc})),_0x396c67=filterApiOperations(_0x52353b);_0x165102=_0x396c67[_0x59acfb(0x1e6)](_0x944f6a=>_0x944f6a['operation']),_0x165102=this[_0x59acfb(0x282)](_0x165102);}return _0x923331[_0x59acfb(0x24c)]&&(_0x165102=_0x165102['filter'](_0x923331['customFilter'])),_0x165102;}[a0_0x17ef4f(0x282)](_0x5f2589){const _0x58a0d2=a0_0x17ef4f,_0x5453e9=_0x5f2589[_0x58a0d2(0x331)](_0x12222c=>_0x12222c[_0x58a0d2(0x2b0)]()===_0x58a0d2(0x144)),_0x527651=_0x5f2589[_0x58a0d2(0x144)](_0x1c9c72=>_0x1c9c72[_0x58a0d2(0x2b0)]()!==_0x58a0d2(0x144));return _0x5453e9?[_0x5453e9,..._0x527651]:_0x527651;}[a0_0x17ef4f(0x305)](){const _0x58ef35=a0_0x17ef4f,_0x471553=this[_0x58ef35(0x1b0)]();return{'total':this[_0x58ef35(0x312)](),'enabled':_0x471553[_0x58ef35(0x316)],'disabled':this[_0x58ef35(0x312)]()-_0x471553[_0x58ef35(0x316)],'byType':this[_0x58ef35(0x1ad)](_0x471553),'byMethod':this['getCountByMethod'](_0x471553)};}[a0_0x17ef4f(0x1ad)](_0x23aa23){const _0x2f55d0=a0_0x17ef4f,_0x159e02={};return _0x23aa23[_0x2f55d0(0x2f6)](_0x399a16=>{const _0x3d01e8=_0x2f55d0,_0x245e26=_0x399a16[_0x3d01e8(0x15f)]();_0x245e26&&(_0x159e02[_0x245e26]=(_0x159e02[_0x245e26]||0x0)+0x1);}),_0x159e02;}[a0_0x17ef4f(0x2ec)](_0x565522){const _0x48cd74=a0_0x17ef4f,_0x37822b={};return _0x565522[_0x48cd74(0x2f6)](_0x2c72f6=>{const _0x426f41=_0x48cd74,_0x1d63f0=_0x2c72f6[_0x426f41(0x292)]();_0x1d63f0&&(_0x37822b[_0x1d63f0]=(_0x37822b[_0x1d63f0]||0x0)+0x1);}),_0x37822b;}[Symbol[a0_0x17ef4f(0x13a)]](){const _0xecb91e=a0_0x17ef4f;return this[_0xecb91e(0x1a7)][_0xecb91e(0x31c)]();}[a0_0x17ef4f(0x1a9)](){const _0x2c4fea=a0_0x17ef4f,_0x2431c0=this[_0x2c4fea(0x305)]();return _0x2c4fea(0x1bd)+_0x2431c0['enabled']+'/'+_0x2431c0[_0x2c4fea(0x15c)]+_0x2c4fea(0x25e);}}class Field{['_raw'];[a0_0x17ef4f(0x306)]=null;constructor(_0x3481f4){const _0x62f6fc=a0_0x17ef4f;if(!_0x3481f4||typeof _0x3481f4!=='object')throw new Error(_0x62f6fc(0x1c9));this[_0x62f6fc(0x2c4)]=_0x3481f4;}get[a0_0x17ef4f(0x223)](){return this['_raw'];}['toFieldDefinition'](){const _0x260c33=a0_0x17ef4f;return this[_0x260c33(0x2c4)];}get[a0_0x17ef4f(0x1e4)](){const _0x3238e7=a0_0x17ef4f;return this['_raw'][_0x3238e7(0x1e4)]||'';}get[a0_0x17ef4f(0x326)](){const _0x59e286=a0_0x17ef4f;return this[_0x59e286(0x2c4)][_0x59e286(0x326)]||'';}get[a0_0x17ef4f(0x154)](){const _0x24665c=a0_0x17ef4f;return this[_0x24665c(0x2c4)][_0x24665c(0x154)]||'';}get['description'](){return this['_raw']['description']||'';}get[a0_0x17ef4f(0x32f)](){const _0x37a4f5=a0_0x17ef4f;return Boolean(this[_0x37a4f5(0x2c4)][_0x37a4f5(0x32f)]);}get[a0_0x17ef4f(0x328)](){const _0x148b17=a0_0x17ef4f;if(this['_extend']!==null&&typeof this[_0x148b17(0x306)]===_0x148b17(0x243))return this[_0x148b17(0x306)];const _0xf373b5=this[_0x148b17(0x2c4)][_0x148b17(0x328)];if(!_0xf373b5||typeof _0xf373b5!==_0x148b17(0x2f9))return this[_0x148b17(0x306)]={},this[_0x148b17(0x306)];if(_0xf373b5===_0x148b17(0x2a1)||_0xf373b5[_0x148b17(0x2c3)]()===_0x148b17(0x2a1))return this[_0x148b17(0x306)]={},this['_extend'];try{const _0x324078=JSON[_0x148b17(0x16e)](_0xf373b5);return this[_0x148b17(0x306)]=_0x324078!==null&&typeof _0x324078===_0x148b17(0x243)&&!Array[_0x148b17(0x171)](_0x324078)?_0x324078:{},this[_0x148b17(0x306)];}catch(_0x571e7b){return!![]&&console[_0x148b17(0x1cb)](_0x148b17(0x1ca)+this[_0x148b17(0x326)]+_0x148b17(0x18e),_0x571e7b),this['_extend']={},this[_0x148b17(0x306)];}}[a0_0x17ef4f(0x2c9)](){const _0x272eb7=a0_0x17ef4f;return Boolean(this[_0x272eb7(0x328)][_0x272eb7(0x198)]);}[a0_0x17ef4f(0x185)](){const _0x26fdc1=a0_0x17ef4f;return Boolean(this['extend'][_0x26fdc1(0x2fe)]);}[a0_0x17ef4f(0x152)](){const _0x309ea2=a0_0x17ef4f;return Boolean(this[_0x309ea2(0x328)][_0x309ea2(0x23f)]);}[a0_0x17ef4f(0x24f)](){const _0x53da6b=a0_0x17ef4f;return!this[_0x53da6b(0x152)]();}[a0_0x17ef4f(0x18b)](){return this['deleted'];}[a0_0x17ef4f(0x285)](){const _0x2dbc01=a0_0x17ef4f;return Boolean(this[_0x2dbc01(0x328)][_0x2dbc01(0x1b3)]);}[a0_0x17ef4f(0x299)](){const _0xeb7318=a0_0x17ef4f;return Boolean(this[_0xeb7318(0x328)]['createTime']);}[a0_0x17ef4f(0x269)](){const _0x1e3181=a0_0x17ef4f;return Boolean(this[_0x1e3181(0x328)]['updateTime']);}['isEnum'](){const _0x27c586=a0_0x17ef4f,_0x1534a6=[_0x27c586(0x215),_0x27c586(0x2a6),'CHECKBOX'];return _0x1534a6['includes'](this[_0x27c586(0x154)]);}[a0_0x17ef4f(0x1ce)](){const _0x206806=a0_0x17ef4f;return this['type']===_0x206806(0x278);}[a0_0x17ef4f(0x1ff)](){const _0x383e86=a0_0x17ef4f,_0x487c99=this[_0x383e86(0x328)];if(_0x487c99[_0x383e86(0x253)]&&Array[_0x383e86(0x171)](_0x487c99[_0x383e86(0x253)]))return _0x487c99[_0x383e86(0x253)];return;}['getSelectItemsSource'](){const _0x39e5a2=a0_0x17ef4f,_0x541ce0=this[_0x39e5a2(0x328)];if(_0x541ce0[_0x39e5a2(0x2ff)]&&typeof _0x541ce0[_0x39e5a2(0x2ff)]==='object')return _0x541ce0[_0x39e5a2(0x2ff)];return;}[a0_0x17ef4f(0x340)](){const _0xf67734=a0_0x17ef4f;if(!this['isEnum']())return;const _0x1ab703=this[_0xf67734(0x1ff)](),_0x46918f=this[_0xf67734(0x17b)](),_0x574165=[],_0x96ec33={},_0x108090=_0x44daf4=>{const _0x3c9272=_0xf67734;_0x44daf4[_0x3c9272(0x2f6)](_0x59f688=>{const _0x428bc9=_0x3c9272;_0x574165[_0x428bc9(0x276)](_0x59f688[_0x428bc9(0x248)]),_0x96ec33[String(_0x59f688[_0x428bc9(0x248)])]=_0x59f688['label'],_0x59f688[_0x428bc9(0x1e3)]&&_0x59f688[_0x428bc9(0x1e3)][_0x428bc9(0x316)]>0x0&&_0x108090(_0x59f688[_0x428bc9(0x1e3)]);});};return _0x1ab703&&_0x1ab703[_0xf67734(0x316)]>0x0&&_0x108090(_0x1ab703),{'code':this['code'],'name':this['name'],'type':this[_0xf67734(0x154)],'multiple':this['isMultipleSelect'](),'options':_0x1ab703,'selectItemsSource':_0x46918f,'values':_0x574165,'valueLabels':_0x96ec33};}[a0_0x17ef4f(0x2e9)](){const _0x39ea4c=a0_0x17ef4f;return this[_0x39ea4c(0x328)][_0x39ea4c(0x1ae)];}[a0_0x17ef4f(0x27f)](){const _0x1c4792=a0_0x17ef4f;return this[_0x1c4792(0x328)][_0x1c4792(0x291)];}[a0_0x17ef4f(0x283)](){const _0x23c903=a0_0x17ef4f;return{'name':this['name'],'code':this[_0x23c903(0x326)],'type':this[_0x23c903(0x154)],'description':this[_0x23c903(0x1d9)],'required':this[_0x23c903(0x2c9)](),'primaryKey':this[_0x23c903(0x185)](),'system':this[_0x23c903(0x152)](),'autoIncrement':this[_0x23c903(0x285)](),'createTime':this['isCreateTime'](),'updateTime':this['isUpdateTime'](),'isEnum':this[_0x23c903(0x167)](),'enumMeta':this['isEnum']()?this[_0x23c903(0x340)]():undefined};}}class FieldList{[a0_0x17ef4f(0x147)];constructor(_0x16270a,_0x527ae3){const _0x38dfef=a0_0x17ef4f;if(!Array[_0x38dfef(0x171)](_0x16270a))throw new Error('[FieldList]\x20Field\x20definitions\x20must\x20be\x20an\x20array');const _0xae493f=_0x527ae3?.[_0x38dfef(0x1b9)]??![],_0x16e3f5=_0xae493f?_0x16270a:_0x16270a[_0x38dfef(0x144)](_0x331aa0=>!_0x331aa0['deleted']);this[_0x38dfef(0x147)]=_0x16e3f5['map'](_0xa241d4=>new Field(_0xa241d4));}get[a0_0x17ef4f(0x316)](){const _0x1dadbc=a0_0x17ef4f;return this[_0x1dadbc(0x147)][_0x1dadbc(0x316)];}[a0_0x17ef4f(0x319)](){const _0x34d95d=a0_0x17ef4f;return[...this[_0x34d95d(0x147)]];}['raw'](){const _0x2941fb=a0_0x17ef4f;return this[_0x2941fb(0x147)][_0x2941fb(0x1e6)](_0x338f29=>_0x338f29[_0x2941fb(0x223)]);}['at'](_0x272556){const _0x5bebde=a0_0x17ef4f;return this[_0x5bebde(0x147)]['at'](_0x272556);}[a0_0x17ef4f(0x331)](_0x149b4d){const _0x35fd0e=a0_0x17ef4f;return this[_0x35fd0e(0x147)]['find'](_0x58c412=>_0x58c412[_0x35fd0e(0x326)]===_0x149b4d);}['findByName'](_0x375440){const _0x7d08d1=a0_0x17ef4f;return this[_0x7d08d1(0x147)][_0x7d08d1(0x331)](_0x4ff9f8=>_0x4ff9f8[_0x7d08d1(0x1e4)]===_0x375440);}[a0_0x17ef4f(0x207)](_0x5cfcc4){const _0x370abd=a0_0x17ef4f;return this[_0x370abd(0x147)][_0x370abd(0x335)](_0x3f7652=>_0x3f7652['code']===_0x5cfcc4);}[a0_0x17ef4f(0x2f6)](_0x2308ba){const _0x465030=a0_0x17ef4f;this[_0x465030(0x147)]['forEach'](_0x2308ba);}[a0_0x17ef4f(0x1e6)](_0x299c3b){const _0x2b7766=a0_0x17ef4f;return this[_0x2b7766(0x147)]['map'](_0x299c3b);}[a0_0x17ef4f(0x144)](_0x49e160){const _0x483e6d=a0_0x17ef4f;return this['_fields'][_0x483e6d(0x144)](_0x49e160);}['every'](_0xb37525){const _0x29c797=a0_0x17ef4f;return this[_0x29c797(0x147)]['every'](_0xb37525);}[a0_0x17ef4f(0x335)](_0x57bcb0){const _0x1a8c16=a0_0x17ef4f;return this['_fields'][_0x1a8c16(0x335)](_0x57bcb0);}[a0_0x17ef4f(0x310)](){const _0x4f6127=a0_0x17ef4f;return this['_fields'][_0x4f6127(0x144)](_0x3b4e0b=>_0x3b4e0b[_0x4f6127(0x2c9)]());}[a0_0x17ef4f(0x29d)](){const _0x11aae4=a0_0x17ef4f;return this[_0x11aae4(0x147)][_0x11aae4(0x144)](_0x59909b=>_0x59909b['isPrimaryKey']());}[a0_0x17ef4f(0x19a)](){const _0x41b35c=a0_0x17ef4f;return this['_fields'][_0x41b35c(0x144)](_0x6f5c01=>_0x6f5c01[_0x41b35c(0x152)]());}[a0_0x17ef4f(0x141)](){const _0x476668=a0_0x17ef4f;return this[_0x476668(0x147)][_0x476668(0x144)](_0x375f41=>_0x375f41[_0x476668(0x24f)]());}[a0_0x17ef4f(0x347)](){const _0x27b97e=a0_0x17ef4f;return this[_0x27b97e(0x147)][_0x27b97e(0x144)](_0x5ad348=>_0x5ad348[_0x27b97e(0x167)]());}[a0_0x17ef4f(0x1eb)](){const _0x4fb990=a0_0x17ef4f;return this[_0x4fb990(0x147)][_0x4fb990(0x144)](_0x49aa40=>_0x49aa40['isAutoIncrement']());}[a0_0x17ef4f(0x2b2)](){const _0x2f2fd8=a0_0x17ef4f;return this[_0x2f2fd8(0x147)][_0x2f2fd8(0x144)](_0x412bcf=>_0x412bcf[_0x2f2fd8(0x299)]());}['getUpdateTime'](){const _0x3b6ddc=a0_0x17ef4f;return this[_0x3b6ddc(0x147)][_0x3b6ddc(0x144)](_0x163db8=>_0x163db8['isUpdateTime']());}['getDeleted'](){const _0x284988=a0_0x17ef4f;return this[_0x284988(0x147)][_0x284988(0x144)](_0x5098f3=>_0x5098f3[_0x284988(0x18b)]());}['getActive'](){const _0x2ac149=a0_0x17ef4f;return this['_fields']['filter'](_0x38a650=>!_0x38a650[_0x2ac149(0x18b)]());}['groupByType'](){const _0x36c006=a0_0x17ef4f,_0xadf3e={};return this[_0x36c006(0x147)][_0x36c006(0x2f6)](_0x46830e=>{const _0x24b662=_0x36c006,_0x44d207=_0x46830e[_0x24b662(0x154)];!_0xadf3e[_0x44d207]&&(_0xadf3e[_0x44d207]=[]),_0xadf3e[_0x44d207][_0x24b662(0x276)](_0x46830e);}),_0xadf3e;}['getEnumMetas'](){const _0x5568e8=a0_0x17ef4f,_0x16b2b0={};return this[_0x5568e8(0x147)][_0x5568e8(0x2f6)](_0x18086f=>{const _0x5c3bf2=_0x5568e8;if(_0x18086f[_0x5c3bf2(0x167)]()){const _0xd5e622=_0x18086f[_0x5c3bf2(0x340)]();_0xd5e622&&(_0x16b2b0[_0x18086f[_0x5c3bf2(0x326)]]=_0xd5e622);}}),_0x16b2b0;}[a0_0x17ef4f(0x305)](){const _0x47beea=a0_0x17ef4f;return{'total':this[_0x47beea(0x316)],'required':this[_0x47beea(0x310)]()['length'],'primaryKey':this[_0x47beea(0x29d)]()[_0x47beea(0x316)],'system':this['getSystem']()[_0x47beea(0x316)],'business':this[_0x47beea(0x141)]()[_0x47beea(0x316)],'enum':this[_0x47beea(0x347)]()[_0x47beea(0x316)],'autoIncrement':this[_0x47beea(0x1eb)]()[_0x47beea(0x316)]};}[a0_0x17ef4f(0x283)](){const _0x385f56=a0_0x17ef4f;return this[_0x385f56(0x147)][_0x385f56(0x1e6)](_0x43e821=>_0x43e821[_0x385f56(0x283)]());}['getCodes'](){const _0x3e02a6=a0_0x17ef4f;return this[_0x3e02a6(0x147)][_0x3e02a6(0x1e6)](_0x57fecc=>_0x57fecc['code']);}[a0_0x17ef4f(0x1e8)](){const _0x4cc7c8=a0_0x17ef4f;return this[_0x4cc7c8(0x147)][_0x4cc7c8(0x1e6)](_0x393056=>_0x393056[_0x4cc7c8(0x1e4)]);}static['from'](_0x5eb9ff){const _0x35b2df=a0_0x17ef4f,_0x5298eb=_0x5eb9ff['map'](_0x31c271=>_0x31c271[_0x35b2df(0x223)]);return new FieldList(_0x5298eb);}static[a0_0x17ef4f(0x30f)](_0x293cd5){return new FieldList(_0x293cd5,{'includeDeleted':!![]});}}class DrivenDataDetail extends DatasetItem{['_operationList'];[a0_0x17ef4f(0x14a)];[a0_0x17ef4f(0x2b6)];constructor(_0x276887){super({..._0x276887,'id':_0x276887['modelId'],'datasetCode':_0x276887['modelCode']});}get[a0_0x17ef4f(0x1c8)](){const _0xd21167=a0_0x17ef4f;return this[_0xd21167(0x2c4)][_0xd21167(0x1c8)];}[a0_0x17ef4f(0x2f2)](){const _0x11462b=a0_0x17ef4f;return this[_0x11462b(0x1c8)];}get[a0_0x17ef4f(0x206)](){const _0x1927e3=a0_0x17ef4f;return this[_0x1927e3(0x2c4)][_0x1927e3(0x206)];}['getFieldList'](){const _0x33fc05=a0_0x17ef4f;return!this[_0x33fc05(0x14a)]&&(this[_0x33fc05(0x14a)]=new FieldList(this[_0x33fc05(0x2c4)][_0x33fc05(0x261)]||[])),this['_fieldList'];}['getFieldListWithDeleted'](){const _0x820087=a0_0x17ef4f;return!this['_fieldListWithDeleted']&&(this[_0x820087(0x2b6)]=FieldList[_0x820087(0x30f)](this[_0x820087(0x2c4)][_0x820087(0x261)]||[])),this[_0x820087(0x2b6)];}[a0_0x17ef4f(0x1fe)](){const _0x5027f7=a0_0x17ef4f;return this[_0x5027f7(0x1ab)]()[_0x5027f7(0x223)]();}[a0_0x17ef4f(0x2a2)](){const _0x10e8bf=a0_0x17ef4f;return this[_0x10e8bf(0x2c4)][_0x10e8bf(0x261)]||[];}[a0_0x17ef4f(0x24a)](){const _0x4cfde1=a0_0x17ef4f;return this[_0x4cfde1(0x1ab)]()['length'];}[a0_0x17ef4f(0x273)](_0x53755b){const _0x13d2d5=a0_0x17ef4f,_0x16c126=this[_0x13d2d5(0x1d0)](_0x53755b);return _0x16c126?_0x16c126['raw']:undefined;}['getFieldRaw'](_0x594199){const _0x2744f2=a0_0x17ef4f;return this[_0x2744f2(0x1ab)]()[_0x2744f2(0x331)](_0x594199)?.['raw']||undefined;}['getFieldInstance'](_0x4c712f){const _0x2aec0d=a0_0x17ef4f;if(typeof _0x4c712f!==_0x2aec0d(0x2f9)){!![]&&console[_0x2aec0d(0x1cb)](_0x2aec0d(0x21e),_0x4c712f);return;}return this[_0x2aec0d(0x1ab)]()[_0x2aec0d(0x331)](_0x4c712f);}[a0_0x17ef4f(0x2d8)](_0x8d2a1c){const _0x135726=a0_0x17ef4f;return this[_0x135726(0x1ab)]()[_0x135726(0x207)](_0x8d2a1c);}[a0_0x17ef4f(0x24d)](_0x170556){const _0x26ef24=a0_0x17ef4f;if(!_0x170556||typeof _0x170556!==_0x26ef24(0x243))return!![]&&console[_0x26ef24(0x1cb)]('[DrivenDataDetail.parseFieldExtend]\x20Invalid\x20field:',_0x170556),{};if(!_0x170556['extend'])return{};try{const _0x40131f=typeof _0x170556['extend']==='string'?JSON['parse'](_0x170556[_0x26ef24(0x328)]):_0x170556['extend'];if(typeof _0x40131f!=='object'||_0x40131f===null)return{};return _0x40131f;}catch{return{};}}[a0_0x17ef4f(0x26e)](_0x16a498){const _0x5d57cf=a0_0x17ef4f;if(!_0x16a498||typeof _0x16a498!==_0x5d57cf(0x243))return![];const _0x164246=this['getFieldList']()['find'](_0x16a498[_0x5d57cf(0x326)]);return _0x164246?_0x164246[_0x5d57cf(0x185)]():![];}['isSystemField'](_0x2059ac){const _0xfbfddf=a0_0x17ef4f;if(!_0x2059ac||typeof _0x2059ac!==_0xfbfddf(0x243))return![];const _0x4ac228=this[_0xfbfddf(0x1ab)]()[_0xfbfddf(0x331)](_0x2059ac[_0xfbfddf(0x326)]);return _0x4ac228?_0x4ac228['isSystem']():![];}[a0_0x17ef4f(0x2a8)](_0x470119){const _0x27396e=a0_0x17ef4f;if(!_0x470119||typeof _0x470119!==_0x27396e(0x243))return![];const _0x40a5f4=this[_0x27396e(0x1ab)]()[_0x27396e(0x331)](_0x470119[_0x27396e(0x326)]);return _0x40a5f4?_0x40a5f4['isRequired']():![];}[a0_0x17ef4f(0x252)](){const _0x534d1b=a0_0x17ef4f;return this['getFieldList']()['getPrimaryKeys']()[_0x534d1b(0x1e6)](_0x4bafe9=>_0x4bafe9['raw']);}[a0_0x17ef4f(0x289)](){const _0x29fc34=a0_0x17ef4f;return this[_0x29fc34(0x1ab)]()[_0x29fc34(0x19a)]()[_0x29fc34(0x1e6)](_0x435dff=>_0x435dff['raw']);}['getBusinessFields'](){const _0x3345f1=a0_0x17ef4f;return this['getFieldList']()['getBusiness']()[_0x3345f1(0x1e6)](_0x2cfb83=>_0x2cfb83['raw']);}[a0_0x17ef4f(0x25a)](){const _0x48342c=a0_0x17ef4f;return this['getFieldList']()[_0x48342c(0x310)]()[_0x48342c(0x1e6)](_0x2e3589=>_0x2e3589[_0x48342c(0x223)]);}[a0_0x17ef4f(0x217)](){const _0x1ce7d9=a0_0x17ef4f,_0x1f871a=this[_0x1ce7d9(0x1ab)]()[_0x1ce7d9(0x19e)](),_0x299979={};for(const [_0x24b9b0,_0x45b643]of Object[_0x1ce7d9(0x188)](_0x1f871a)){_0x299979[_0x24b9b0]=_0x45b643[_0x1ce7d9(0x1e6)](_0xdb2010=>_0xdb2010[_0x1ce7d9(0x223)]);}return _0x299979;}[a0_0x17ef4f(0x2d4)](_0x3aab9c){const _0x14c433=a0_0x17ef4f;if(!_0x3aab9c||typeof _0x3aab9c!=='object')return![];const _0x2ccb13=this[_0x14c433(0x1ab)]()[_0x14c433(0x331)](_0x3aab9c['code']);return _0x2ccb13?_0x2ccb13[_0x14c433(0x167)]():![];}[a0_0x17ef4f(0x31a)](_0x2c0fea){const _0x133401=a0_0x17ef4f;if(!_0x2c0fea||typeof _0x2c0fea!=='object')return![];const _0x2e2c98=this[_0x133401(0x1ab)]()[_0x133401(0x331)](_0x2c0fea[_0x133401(0x326)]);return _0x2e2c98?_0x2e2c98[_0x133401(0x1ce)]():![];}[a0_0x17ef4f(0x1f5)](_0x19e34d){const _0x766fd=a0_0x17ef4f;if(!_0x19e34d||typeof _0x19e34d!==_0x766fd(0x243))return[];const _0x3c085e=this[_0x766fd(0x1ab)]()['find'](_0x19e34d[_0x766fd(0x326)]);if(!_0x3c085e||!_0x3c085e['isEnum']())return[];return _0x3c085e[_0x766fd(0x1ff)]()||[];}[a0_0x17ef4f(0x2f5)](_0x39192d){const _0x537ced=a0_0x17ef4f;if(!_0x39192d||typeof _0x39192d!==_0x537ced(0x243))return;const _0x4a3296=this[_0x537ced(0x1ab)]()[_0x537ced(0x331)](_0x39192d[_0x537ced(0x326)]);if(!_0x4a3296||!_0x4a3296['isEnum']())return;return _0x4a3296[_0x537ced(0x17b)]();}[a0_0x17ef4f(0x33f)](_0x2444bb){const _0x5590db=a0_0x17ef4f;if(!_0x2444bb||typeof _0x2444bb!==_0x5590db(0x243))return;const _0x436d9e=this['getFieldList']()[_0x5590db(0x331)](_0x2444bb['code']);if(!_0x436d9e||!_0x436d9e[_0x5590db(0x167)]())return;return _0x436d9e[_0x5590db(0x340)]();}[a0_0x17ef4f(0x20b)](){const _0x57f6af=a0_0x17ef4f;return this[_0x57f6af(0x1ab)]()[_0x57f6af(0x347)]()['map'](_0x540c6c=>_0x540c6c[_0x57f6af(0x223)]);}['getEnumFieldsMeta'](){const _0x410cc9=a0_0x17ef4f,_0x3d12b2={};return this[_0x410cc9(0x20b)]()[_0x410cc9(0x2f6)](_0x2ab3c8=>{const _0x42acea=_0x410cc9,_0xe2bc08=this['getEnumFieldMeta'](_0x2ab3c8);_0xe2bc08&&(_0x3d12b2[_0x2ab3c8[_0x42acea(0x326)]]=_0xe2bc08);}),_0x3d12b2;}['validateEnumValue'](_0x550430,_0x5b5041){const _0x2660e3=a0_0x17ef4f,_0x926070=this[_0x2660e3(0x33f)](_0x550430);if(!_0x926070)return!![];if(_0x926070[_0x2660e3(0x2ff)]&&!_0x926070['options'])return!![];if(_0x926070[_0x2660e3(0x2c1)]&&Array[_0x2660e3(0x171)](_0x5b5041))return _0x5b5041['every'](_0x32f402=>_0x926070[_0x2660e3(0x31c)][_0x2660e3(0x1d3)](_0x32f402));return _0x926070['values'][_0x2660e3(0x1d3)](_0x5b5041);}[a0_0x17ef4f(0x1f1)](){const _0x4c0a68=a0_0x17ef4f;if(!this[_0x4c0a68(0x20a)]){const _0x4493d2=this[_0x4c0a68(0x265)](this[_0x4c0a68(0x2c4)][_0x4c0a68(0x28a)]||{});this[_0x4c0a68(0x20a)]=new OperationList(_0x4493d2,{'fields':this['getFields'](),'pkField':this[_0x4c0a68(0x2c4)][_0x4c0a68(0x242)]?.['pkField'],'dbtableConfig':this[_0x4c0a68(0x2c4)][_0x4c0a68(0x242)]});}return this[_0x4c0a68(0x20a)];}[a0_0x17ef4f(0x265)](_0x55f2f4){const _0x1e381a=a0_0x17ef4f;if(_0x55f2f4[_0x1e381a(0x144)]!==undefined)return _0x55f2f4;return{..._0x55f2f4,'filter':this['generateDefaultFilterOperation']()};}['generateDefaultFilterOperation'](){const _0x4981a3=a0_0x17ef4f,_0x328b19=this[_0x4981a3(0x2c4)][_0x4981a3(0x28a)]?.[_0x4981a3(0x1d2)];let _0x19efa6=_0x328b19?.[_0x4981a3(0x29f)],_0x2c607c='';if(!_0x19efa6&&this[_0x4981a3(0x2c4)][_0x4981a3(0x28a)]){const _0x1c2eab=Object[_0x4981a3(0x31c)](this[_0x4981a3(0x2c4)][_0x4981a3(0x28a)]);for(const _0x2400eb of _0x1c2eab){if(_0x2400eb&&typeof _0x2400eb==='object'&&_0x4981a3(0x29f)in _0x2400eb){_0x19efa6=_0x2400eb[_0x4981a3(0x29f)];break;}}}if(_0x328b19?.['path']){const _0x3fdec1=_0x328b19[_0x4981a3(0x20f)],_0x1b405a=_0x3fdec1[_0x4981a3(0x31f)]('/');_0x1b405a!==-0x1&&(_0x2c607c=_0x3fdec1[_0x4981a3(0x179)](0x0,_0x1b405a));}return{'name':'filter','type':_0x4981a3(0x28f),'description':_0x4981a3(0x322),'method':_0x4981a3(0x1ef),'host':_0x19efa6,'path':_0x2c607c?_0x2c607c+_0x4981a3(0x1e5):_0x4981a3(0x1e5),'params':_0x328b19?.['params']||[{'name':_0x4981a3(0x27b),'type':_0x4981a3(0x243),'required':![]},{'name':_0x4981a3(0x2ab),'type':'array','required':![]},{'name':_0x4981a3(0x2a0),'type':'array','required':![]},{'name':_0x4981a3(0x1cd),'type':'number','required':![],'default':0x1},{'name':_0x4981a3(0x1a8),'type':'number','required':![],'default':0xa}],'_autoGenerated':!![]};}['getOperations'](){const _0x324f84=a0_0x17ef4f;return this[_0x324f84(0x1f1)]()[_0x324f84(0x2b4)]();}[a0_0x17ef4f(0x23a)](){const _0x3b9058=a0_0x17ef4f;return this[_0x3b9058(0x1f1)]()['size']();}[a0_0x17ef4f(0x2b8)](_0x1b21ec){const _0x3a0d1c=a0_0x17ef4f;if(typeof _0x1b21ec!==_0x3a0d1c(0x2f9)){!![]&&console[_0x3a0d1c(0x1cb)](_0x3a0d1c(0x14f),_0x1b21ec);return;}return this[_0x3a0d1c(0x1f1)]()[_0x3a0d1c(0x163)](_0x1b21ec);}[a0_0x17ef4f(0x2e8)](_0x234073){const _0x52cd2c=a0_0x17ef4f;if(typeof _0x234073!==_0x52cd2c(0x2f9))return![];return this[_0x52cd2c(0x1f1)]()[_0x52cd2c(0x207)](_0x234073);}[a0_0x17ef4f(0x27c)](_0x330eb2){const _0x8fa82b=a0_0x17ef4f;if(typeof _0x330eb2!=='string')return![];const _0x25fd5f=this['getOperation'](_0x330eb2);return _0x25fd5f?.[_0x8fa82b(0x2af)]()||![];}[a0_0x17ef4f(0x2d6)](){const _0x118eee=a0_0x17ef4f;return this[_0x118eee(0x1f1)]()[_0x118eee(0x1da)]();}[a0_0x17ef4f(0x2e0)](){const _0x5c0343=a0_0x17ef4f;return this[_0x5c0343(0x1f1)]()[_0x5c0343(0x174)]();}['getEnabledOperationInstances'](){const _0x30e7ff=a0_0x17ef4f;return this[_0x30e7ff(0x1f1)]()['getEnabled']();}['getDisabledOperationInstances'](){const _0x5ddd8c=a0_0x17ef4f;return this[_0x5ddd8c(0x1f1)]()[_0x5ddd8c(0x16b)]();}[a0_0x17ef4f(0x305)](){const _0x2da034=a0_0x17ef4f;return{'fieldCount':this[_0x2da034(0x24a)](),'systemFieldCount':this[_0x2da034(0x289)]()[_0x2da034(0x316)],'businessFieldCount':this['getBusinessFields']()[_0x2da034(0x316)],'requiredFieldCount':this['getRequiredFields']()[_0x2da034(0x316)],'primaryKeyCount':this['getPrimaryKeyFields']()['length'],'operationCount':this[_0x2da034(0x23a)](),'enabledOperationCount':this['getEnabledOperations']()['length']};}[a0_0x17ef4f(0x2bf)](){const _0x7b7971=a0_0x17ef4f;return new DatasetItem({'id':this['id'],'name':this[_0x7b7971(0x1e4)],'datasetCode':this[_0x7b7971(0x2eb)],'dbtableConfig':this['getRawDbtableConfig']()});}[a0_0x17ef4f(0x1a9)](){const _0xf0ed29=a0_0x17ef4f;return _0xf0ed29(0x21c)+this[_0xf0ed29(0x1e4)]+',\x20'+this[_0xf0ed29(0x2eb)]+',\x20'+this[_0xf0ed29(0x24a)]()+_0xf0ed29(0x2e5)+this[_0xf0ed29(0x23a)]()+'\x20operations)';}[a0_0x17ef4f(0x17c)](){const _0x43e4c0=a0_0x17ef4f,_0x10c2fc=this['getOperation'](_0x43e4c0(0x144));return _0x10c2fc;}['hasFilterOperation'](){return this['hasOperation']('filter');}[a0_0x17ef4f(0x15d)](_0x515747){const _0x1bc5b2=a0_0x17ef4f,_0x5dc5f5=this['getOperation'](_0x515747);return _0x5dc5f5?_0x5dc5f5[_0x1bc5b2(0x24b)]():[];}[a0_0x17ef4f(0x1fd)](_0x3a9bec,_0x19aaa3){const _0x4fab27=a0_0x17ef4f,_0x2d5456=this[_0x4fab27(0x2b8)](_0x3a9bec);return _0x2d5456?_0x2d5456[_0x4fab27(0x14e)](_0x19aaa3):[];}['getOperationFieldsOperatorsMap'](_0x461d61){const _0x3bd5e5=a0_0x17ef4f,_0x116367={};return this[_0x3bd5e5(0x1ab)]()[_0x3bd5e5(0x2f6)](_0x5db9a0=>{const _0x413b3a=_0x3bd5e5,_0x2fbb28=this['getOperationFieldOperators'](_0x461d61,_0x5db9a0['code']);_0x2fbb28['length']>0x0&&(_0x116367[_0x5db9a0[_0x413b3a(0x326)]]=_0x2fbb28);}),_0x116367;}[a0_0x17ef4f(0x194)](_0x59aaf7,_0x13de44,_0x3db024){const _0x4f2179=a0_0x17ef4f,_0x20c7b5=this[_0x4f2179(0x1fd)](_0x59aaf7,_0x13de44);return _0x20c7b5[_0x4f2179(0x1d3)](_0x3db024);}[a0_0x17ef4f(0x2f3)](){const _0x585f94=a0_0x17ef4f;return this[_0x585f94(0x15d)](_0x585f94(0x144));}['getFieldFilterOperators'](_0x5886ee){const _0x4396a7=a0_0x17ef4f;return this['getOperationFieldOperators'](_0x4396a7(0x144),_0x5886ee);}[a0_0x17ef4f(0x159)](){const _0x17cb0b=a0_0x17ef4f;return this[_0x17cb0b(0x13e)](_0x17cb0b(0x144));}}class DatasetGroup{[a0_0x17ef4f(0x204)];constructor(_0x83b588){const _0x3d5472=a0_0x17ef4f;this[_0x3d5472(0x204)]=Array[_0x3d5472(0x171)](_0x83b588)?[..._0x83b588]:[_0x83b588],this[_0x3d5472(0x204)][_0x3d5472(0x339)]((_0x469fb9,_0x2ddccf)=>{const _0x334f2e=Number(_0x469fb9['id'])||0x0,_0xf60f4f=Number(_0x2ddccf['id'])||0x0;return _0xf60f4f-_0x334f2e;});}['hasConflict'](){const _0x4c82bd=a0_0x17ef4f;return this[_0x4c82bd(0x204)][_0x4c82bd(0x316)]>0x1;}[a0_0x17ef4f(0x296)](){const _0x524a03=a0_0x17ef4f;return this[_0x524a03(0x204)][0x0];}[a0_0x17ef4f(0x1f0)](){const _0x1e0b8a=a0_0x17ef4f;return this[_0x1e0b8a(0x204)][this[_0x1e0b8a(0x204)][_0x1e0b8a(0x316)]-0x1];}[a0_0x17ef4f(0x337)](){const _0x34b4e3=a0_0x17ef4f;return[...this[_0x34b4e3(0x204)]];}[a0_0x17ef4f(0x264)](){const _0x21e47c=a0_0x17ef4f;return this[_0x21e47c(0x204)][_0x21e47c(0x316)];}[a0_0x17ef4f(0x19f)](_0x124b59){const _0x933625=a0_0x17ef4f;return this[_0x933625(0x204)][_0x124b59];}['findById'](_0x3e738f){return this['items']['find'](_0x409857=>_0x409857['id']===_0x3e738f);}[a0_0x17ef4f(0x1f7)](_0x54a583){const _0x370607=a0_0x17ef4f;return this[_0x370607(0x204)][_0x370607(0x331)](_0x576d27=>_0x576d27[_0x370607(0x2eb)]===_0x54a583);}['getIds'](){const _0x51a1a0=a0_0x17ef4f;return this['items'][_0x51a1a0(0x1e6)](_0x112333=>_0x112333['id'])[_0x51a1a0(0x144)](_0xbf046b=>_0xbf046b!==undefined);}[a0_0x17ef4f(0x33c)](){const _0x19fef7=a0_0x17ef4f;return this[_0x19fef7(0x204)][_0x19fef7(0x1e6)](_0x4e1428=>_0x4e1428[_0x19fef7(0x2eb)]);}[a0_0x17ef4f(0x1a9)](){const _0x10bb45=a0_0x17ef4f;if(this[_0x10bb45(0x2e6)]())return _0x10bb45(0x346)+this[_0x10bb45(0x204)][_0x10bb45(0x316)]+_0x10bb45(0x286)+this[_0x10bb45(0x296)]()[_0x10bb45(0x1e4)]+')';return _0x10bb45(0x346)+this[_0x10bb45(0x204)][0x0][_0x10bb45(0x1e4)]+')';}}class DatasetGroupMap{[a0_0x17ef4f(0x30e)];constructor(_0x1ad649){const _0x18ff54=a0_0x17ef4f;this[_0x18ff54(0x30e)]=new Map();for(const _0x42fa0d of _0x1ad649){const _0x2e37e7=getTableKey(_0x42fa0d);if(!this[_0x18ff54(0x30e)][_0x18ff54(0x207)](_0x2e37e7))this[_0x18ff54(0x30e)]['set'](_0x2e37e7,new DatasetGroup(_0x42fa0d));else{const _0x285111=this[_0x18ff54(0x30e)]['get'](_0x2e37e7),_0x516c24=[..._0x285111['getAll'](),_0x42fa0d];this[_0x18ff54(0x30e)][_0x18ff54(0x1a5)](_0x2e37e7,new DatasetGroup(_0x516c24));}}}['get'](_0x5c4ca6){return this['groups']['get'](_0x5c4ca6);}['has'](_0x2cd505){const _0x24cad5=a0_0x17ef4f;return this[_0x24cad5(0x30e)][_0x24cad5(0x207)](_0x2cd505);}get[a0_0x17ef4f(0x312)](){const _0x31bf89=a0_0x17ef4f;return this[_0x31bf89(0x30e)][_0x31bf89(0x312)];}[a0_0x17ef4f(0x1e2)](){const _0x3b5336=a0_0x17ef4f;return this[_0x3b5336(0x30e)][_0x3b5336(0x1e2)]();}['values'](){return this['groups']['values']();}['entries'](){const _0xadafae=a0_0x17ef4f;return this[_0xadafae(0x30e)][_0xadafae(0x188)]();}[Symbol[a0_0x17ef4f(0x13a)]](){const _0x991c43=a0_0x17ef4f;return this[_0x991c43(0x30e)]['entries']();}['forEach'](_0x5cf2c8){const _0x4cb1d3=a0_0x17ef4f;this[_0x4cb1d3(0x30e)][_0x4cb1d3(0x2f6)]((_0x2a2bba,_0x5d1cc9)=>_0x5cf2c8(_0x2a2bba,_0x5d1cc9,this));}['getConflicts'](){const _0x1bc8b0=a0_0x17ef4f,_0x2f2318=new Map();for(const [_0x35d095,_0x14ffb6]of this[_0x1bc8b0(0x30e)]){_0x14ffb6[_0x1bc8b0(0x2e6)]()&&_0x2f2318[_0x1bc8b0(0x1a5)](_0x35d095,_0x14ffb6);}return _0x2f2318;}['hasConflicts'](){const _0x4eb404=a0_0x17ef4f;for(const _0x5c1d86 of this[_0x4eb404(0x30e)][_0x4eb404(0x31c)]()){if(_0x5c1d86[_0x4eb404(0x2e6)]())return!![];}return![];}[a0_0x17ef4f(0x1c3)](){const _0x374456=a0_0x17ef4f;let _0x8f3fac=0x0,_0xb34ad9=0x0;for(const _0x756265 of this[_0x374456(0x30e)][_0x374456(0x31c)]()){_0x756265[_0x374456(0x2e6)]()&&(_0x8f3fac++,_0xb34ad9+=_0x756265['getCount']());}return{'conflictGroupCount':_0x8f3fac,'conflictItemCount':_0xb34ad9,'totalGroups':this[_0x374456(0x30e)][_0x374456(0x312)]};}[a0_0x17ef4f(0x1d6)](){const _0x1cef33=a0_0x17ef4f,_0x333a95=[];for(const _0x3818e2 of this[_0x1cef33(0x30e)][_0x1cef33(0x31c)]()){_0x333a95[_0x1cef33(0x276)](..._0x3818e2[_0x1cef33(0x337)]());}return _0x333a95;}[a0_0x17ef4f(0x33d)](){const _0x37ef63=a0_0x17ef4f,_0x44a748=[];for(const _0x4a3b02 of this['groups'][_0x37ef63(0x31c)]()){_0x44a748['push'](_0x4a3b02[_0x37ef63(0x296)]());}return _0x44a748;}['getLatest'](_0x596b53){const _0x5af63d=a0_0x17ef4f;return this[_0x5af63d(0x30e)][_0x5af63d(0x163)](_0x596b53)?.[_0x5af63d(0x296)]();}[a0_0x17ef4f(0x337)](_0x14b215){const _0x257350=a0_0x17ef4f;return this[_0x257350(0x30e)][_0x257350(0x163)](_0x14b215)?.['getAll']()||[];}[a0_0x17ef4f(0x2db)](){const _0x1dee0a=a0_0x17ef4f,_0x785e34=this['getLatestDatasets'](),_0x40170e=_0x785e34[_0x1dee0a(0x1e6)](_0x3ee525=>_0x3ee525['toJSON']());return generateDatasetsConfig(_0x40170e,{'enableDeduplication':![]});}['toFullConfig'](){const _0x2fa767=a0_0x17ef4f,_0xd793c8=this[_0x2fa767(0x1d6)](),_0x43f298=_0xd793c8[_0x2fa767(0x1e6)](_0x222a45=>_0x222a45[_0x2fa767(0x283)]());return generateFullDatasetsConfig(_0x43f298);}[a0_0x17ef4f(0x1d7)](){const _0x8a13ea=a0_0x17ef4f,_0x795002={};for(const [_0x124150,_0x58f0a7]of this[_0x8a13ea(0x30e)]){_0x795002[_0x124150]=_0x58f0a7;}return _0x795002;}[a0_0x17ef4f(0x283)](){const _0x118267=a0_0x17ef4f,_0x2c736d={};for(const [_0x6eeca0,_0x45cebe]of this[_0x118267(0x30e)]){_0x2c736d[_0x6eeca0]=_0x45cebe[_0x118267(0x337)]()[_0x118267(0x1e6)](_0x52a8e9=>_0x52a8e9[_0x118267(0x283)]());}return _0x2c736d;}[a0_0x17ef4f(0x1a9)](){const _0x58f4c2=a0_0x17ef4f;return _0x58f4c2(0x2b9)+this[_0x58f4c2(0x30e)]['size']+_0x58f4c2(0x2c2)+(this['hasConflicts']()?_0x58f4c2(0x14b):'no\x20conflicts')+')';}}class DatasetList{[a0_0x17ef4f(0x267)];constructor(_0xf86aa0){const _0x445173=a0_0x17ef4f;let _0x2ed920;if(Array[_0x445173(0x171)](_0xf86aa0))_0x2ed920=_0xf86aa0;else{if('success'in _0xf86aa0){if(!_0xf86aa0[_0x445173(0x157)])throw new Error(_0x445173(0x1d1));if(Array[_0x445173(0x171)](_0xf86aa0['data']))_0x2ed920=_0xf86aa0[_0x445173(0x1f6)][_0x445173(0x1e6)](_0x3a519c=>({..._0x3a519c,'datasetCode':_0x3a519c[_0x445173(0x326)]||_0x3a519c[_0x445173(0x2eb)]}));else{if(_0xf86aa0[_0x445173(0x1f6)]?.[_0x445173(0x1d8)])_0x2ed920=_0xf86aa0[_0x445173(0x1f6)][_0x445173(0x1d8)][_0x445173(0x1e6)](_0x344b86=>({..._0x344b86,'datasetCode':_0x344b86[_0x445173(0x326)]||_0x344b86[_0x445173(0x2eb)]}));else throw new Error(_0x445173(0x2fc));}}else{if(_0x445173(0x1d8)in _0xf86aa0){if(!Array['isArray'](_0xf86aa0[_0x445173(0x1d8)]))throw new Error(_0x445173(0x14c));_0x2ed920=_0xf86aa0['tableData'][_0x445173(0x1e6)](_0x46d44c=>({..._0x46d44c,'datasetCode':_0x46d44c[_0x445173(0x326)]||_0x46d44c[_0x445173(0x2eb)]}));}else throw new Error('Invalid\x20input:\x20expected\x20DatasetItemData[],\x20GetListApiResponse,\x20GetDatasetListApiResponse,\x20or\x20GetListSimplifiedResponse');}}const _0x5e8656=_0x2ed920[_0x445173(0x1e6)](_0x41cae5=>new DatasetItem(_0x41cae5));this['_datasetMap']=new DatasetGroupMap(_0x5e8656);}get['datasetMap'](){const _0x88ccbc=a0_0x17ef4f;return this[_0x88ccbc(0x267)];}[a0_0x17ef4f(0x227)](){const _0x4e042d=a0_0x17ef4f;return this[_0x4e042d(0x267)]['getAllDatasets']();}[a0_0x17ef4f(0x264)](){const _0x16726b=a0_0x17ef4f;return this['getItems']()[_0x16726b(0x316)];}[a0_0x17ef4f(0x19c)](){const _0x1020e4=a0_0x17ef4f;return this[_0x1020e4(0x267)]['size']===0x0;}[a0_0x17ef4f(0x19f)](_0x19a8e9){const _0x48c1fb=a0_0x17ef4f;return this[_0x48c1fb(0x227)]()[_0x19a8e9];}[a0_0x17ef4f(0x281)](){const _0x4cd06b=a0_0x17ef4f;return this[_0x4cd06b(0x227)]()[0x0];}[a0_0x17ef4f(0x1d4)](){const _0xb7a6ca=a0_0x17ef4f,_0x1806fa=this[_0xb7a6ca(0x227)]();return _0x1806fa[_0x1806fa['length']-0x1];}['findByCode'](_0xb0d2d1){const _0x5aa8c8=a0_0x17ef4f;for(const _0x4098ec of this[_0x5aa8c8(0x267)]['values']()){const _0x2ef33c=_0x4098ec[_0x5aa8c8(0x1f7)](_0xb0d2d1);if(_0x2ef33c)return _0x2ef33c;}return;}[a0_0x17ef4f(0x32c)](_0x5e1dec){const _0x3742a0=a0_0x17ef4f;return this['getItems']()[_0x3742a0(0x331)](_0xb9aa8d=>_0xb9aa8d[_0x3742a0(0x1e4)]===_0x5e1dec);}[a0_0x17ef4f(0x345)](_0x26315b){const _0x25bed5=a0_0x17ef4f;for(const _0xbcbcc5 of this[_0x25bed5(0x267)][_0x25bed5(0x31c)]()){const _0x58b08d=_0xbcbcc5[_0x25bed5(0x345)](_0x26315b);if(_0x58b08d)return _0x58b08d;}return;}[a0_0x17ef4f(0x25f)](_0x6e76c5){const _0x492fa5=a0_0x17ef4f,_0x7932a2=getTableKey(_0x6e76c5);return this[_0x492fa5(0x267)][_0x492fa5(0x296)](_0x7932a2);}[a0_0x17ef4f(0x144)](_0x43502b){const _0x5b9d3d=a0_0x17ef4f,_0x5c4cb3=this[_0x5b9d3d(0x227)]()[_0x5b9d3d(0x144)](_0x43502b);return new DatasetList(_0x5c4cb3[_0x5b9d3d(0x1e6)](_0x526a25=>_0x526a25['toJSON']()));}[a0_0x17ef4f(0x1f8)](_0x395d03){const _0x43ce38=a0_0x17ef4f;return this[_0x43ce38(0x227)]()[_0x43ce38(0x144)](_0x395d03);}['forEach'](_0xfba7aa){const _0x3438cf=a0_0x17ef4f;this[_0x3438cf(0x227)]()['forEach'](_0xfba7aa);}[a0_0x17ef4f(0x1e6)](_0x20bed1){const _0x38a052=a0_0x17ef4f;return this[_0x38a052(0x227)]()['map'](_0x20bed1);}[Symbol['iterator']](){const _0x4ac976=a0_0x17ef4f;return this[_0x4ac976(0x227)]()[Symbol[_0x4ac976(0x13a)]]();}[a0_0x17ef4f(0x203)](){const _0x54edba=a0_0x17ef4f;return this[_0x54edba(0x227)]()[_0x54edba(0x144)](_0x160fcc=>_0x160fcc[_0x54edba(0x16c)]());}['getRealTables'](){const _0x102ad7=a0_0x17ef4f;return this['getItems']()[_0x102ad7(0x144)](_0x26208d=>!_0x26208d[_0x102ad7(0x16c)]());}[a0_0x17ef4f(0x1cf)](){const _0x53bad4=a0_0x17ef4f,_0x2ffef0={};for(const _0x4aec89 of this[_0x53bad4(0x267)][_0x53bad4(0x31c)]()){const _0x192a9b=_0x4aec89[_0x53bad4(0x296)]()[_0x53bad4(0x2b3)]();_0x2ffef0[_0x192a9b]=_0x4aec89[_0x53bad4(0x337)]();}return _0x2ffef0;}[a0_0x17ef4f(0x17a)](){const _0x45134d=a0_0x17ef4f,_0x3b9d3d={};for(const _0xa9b8d4 of this[_0x45134d(0x267)][_0x45134d(0x186)]()[_0x45134d(0x31c)]()){const _0x1002e5=_0xa9b8d4['getLatest']()[_0x45134d(0x2b3)]();_0x3b9d3d[_0x1002e5]=_0xa9b8d4[_0x45134d(0x337)]()[_0x45134d(0x1e6)](_0x352ef9=>_0x352ef9[_0x45134d(0x283)]());}return{'hasConflicts':Object[_0x45134d(0x1e2)](_0x3b9d3d)[_0x45134d(0x316)]>0x0,'conflicts':_0x3b9d3d};}[a0_0x17ef4f(0x1de)](){const _0x212bc4=a0_0x17ef4f;return this['_datasetMap'][_0x212bc4(0x1de)]();}['getConflictingItems'](){const _0xee4e55=a0_0x17ef4f,_0x2c261c=[];for(const _0x3897d3 of this[_0xee4e55(0x267)][_0xee4e55(0x186)]()[_0xee4e55(0x31c)]()){_0x2c261c[_0xee4e55(0x276)](..._0x3897d3['getAll']());}return _0x2c261c;}['generateConfig'](_0x334faa){const _0x49f08d=a0_0x17ef4f;if(!_0x334faa||Object[_0x49f08d(0x1e2)](_0x334faa)['length']===0x0)return this[_0x49f08d(0x1d5)][_0x49f08d(0x2db)]();const _0x497a73=this['getItems']()[_0x49f08d(0x1e6)](_0x45f086=>_0x45f086['toJSON']());return generateDatasetsConfig(_0x497a73,_0x334faa);}[a0_0x17ef4f(0x165)](_0x7d007){const _0x5a09ed=a0_0x17ef4f,_0x3599bd=this[_0x5a09ed(0x184)](_0x7d007);return datasetsConfigToArray(_0x3599bd);}[a0_0x17ef4f(0x210)](){const _0x18f60a=a0_0x17ef4f;return this[_0x18f60a(0x227)]()[_0x18f60a(0x1e6)](_0x3847fd=>_0x3847fd[_0x18f60a(0x2db)]());}[a0_0x17ef4f(0x305)](){const _0x56dbf7=a0_0x17ef4f;return{'total':this['getCount'](),'virtualTables':this[_0x56dbf7(0x203)]()[_0x56dbf7(0x316)],'realTables':this[_0x56dbf7(0x2a9)]()[_0x56dbf7(0x316)],'hasConflicts':this[_0x56dbf7(0x1de)](),'conflictCount':this[_0x56dbf7(0x28c)]()[_0x56dbf7(0x316)]};}[a0_0x17ef4f(0x2b4)](){const _0x167b61=a0_0x17ef4f;return this[_0x167b61(0x227)]()[_0x167b61(0x1e6)](_0x2649fe=>_0x2649fe[_0x167b61(0x283)]());}[a0_0x17ef4f(0x283)](){const _0x28723a=a0_0x17ef4f;return this[_0x28723a(0x2b4)]();}[a0_0x17ef4f(0x1a9)](){const _0x3bb340=a0_0x17ef4f;return _0x3bb340(0x28d)+this['getCount']()+'\x20items,\x20'+this[_0x3bb340(0x267)][_0x3bb340(0x312)]+'\x20groups)';}static[a0_0x17ef4f(0x26f)](_0x53272c){return new DatasetList(_0x53272c);}static[a0_0x17ef4f(0x2c0)](_0x26599a){return new DatasetList(_0x26599a);}static[a0_0x17ef4f(0x2bb)](){return new DatasetList([]);}}function operationToAnalysis(_0x43bed4){const _0x22a7a6=a0_0x17ef4f;return{'name':_0x43bed4[_0x22a7a6(0x2b0)](),'displayName':_0x43bed4[_0x22a7a6(0x21b)](),'type':_0x43bed4['getType'](),'method':_0x43bed4['getMethod'](),'path':_0x43bed4[_0x22a7a6(0x192)](),'fullUrl':_0x43bed4[_0x22a7a6(0x149)](),'requestFields':_0x43bed4[_0x22a7a6(0x176)](),'requestParams':_0x43bed4[_0x22a7a6(0x13c)](),'responseSchema':_0x43bed4[_0x22a7a6(0x16f)](),'requestExample':_0x43bed4[_0x22a7a6(0x1f4)](),'responseExample':_0x43bed4[_0x22a7a6(0x22c)](),'enabled':_0x43bed4['isEnabled']()};}function operationsToAnalyses(_0x5611c8){return _0x5611c8['map'](operationToAnalysis);}class DrivenDataDetailPlus extends DrivenDataDetail{[a0_0x17ef4f(0x32b)];['getModelAlias'](){const _0x24b41e=a0_0x17ef4f;return this[_0x24b41e(0x1a6)]();}['getOperationAnalyses'](_0x4f597a=![]){const _0x1882d3=a0_0x17ef4f;if(!_0x4f597a&&this['_operationAnalyses'])return this[_0x1882d3(0x32b)];const _0x57474b=this[_0x1882d3(0x262)]();return this['_operationAnalyses']=operationsToAnalyses(_0x57474b),this[_0x1882d3(0x32b)];}[a0_0x17ef4f(0x189)](){const _0x1b823b=a0_0x17ef4f;return this[_0x1b823b(0x155)]({'includeDisabled':![],'filterBlacklist':!![]});}[a0_0x17ef4f(0x155)](_0x1b5a5d={}){const _0x1dce5b=a0_0x17ef4f;let _0xbf89d3=this['getOperationAnalyses']();return!_0x1b5a5d['includeDisabled']&&(_0xbf89d3=_0xbf89d3['filter'](_0x551da4=>_0x551da4['enabled'])),_0x1b5a5d[_0x1dce5b(0x212)]!==![]&&(_0xbf89d3=filterApiOperations(_0xbf89d3)),_0x1b5a5d[_0x1dce5b(0x24c)]&&(_0xbf89d3=_0xbf89d3['filter'](_0x1b5a5d[_0x1dce5b(0x24c)])),_0xbf89d3=this[_0x1dce5b(0x282)](_0xbf89d3),_0xbf89d3;}[a0_0x17ef4f(0x282)](_0x4f016a){const _0x364a81=a0_0x17ef4f,_0x5689ea=_0x4f016a[_0x364a81(0x331)](_0x32b1a9=>_0x32b1a9[_0x364a81(0x1e4)]===_0x364a81(0x144)),_0x23d83d=_0x4f016a[_0x364a81(0x144)](_0x50a840=>_0x50a840['name']!==_0x364a81(0x144));return _0x5689ea?[_0x5689ea,..._0x23d83d]:_0x23d83d;}['getOperationAnalysis'](_0x214dbc){const _0x162752=a0_0x17ef4f,_0x46f687=this['getOperationAnalyses']();return _0x46f687['find'](_0x457b8c=>_0x457b8c[_0x162752(0x1e4)]===_0x214dbc);}[a0_0x17ef4f(0x297)](_0x113151){const _0x1a092d=a0_0x17ef4f,_0x2214b8=this[_0x1a092d(0x140)]();return _0x2214b8[_0x1a092d(0x144)](_0x3a7d4f=>_0x3a7d4f[_0x1a092d(0x154)]===_0x113151);}[a0_0x17ef4f(0x175)](_0x575e43){const _0x222017=a0_0x17ef4f,_0x369be6=this[_0x222017(0x2b8)](_0x575e43);if(!_0x369be6)return[];const _0x45a357=_0x369be6[_0x222017(0x176)](),_0x1532d5=this['getFields']();return _0x1532d5[_0x222017(0x144)](_0x3fe421=>_0x45a357[_0x222017(0x1d3)](_0x3fe421[_0x222017(0x326)]));}[a0_0x17ef4f(0x20d)](_0x38f608,_0x49afa3){const _0x24dde4=a0_0x17ef4f,_0x5cbe29=this[_0x24dde4(0x313)](_0x38f608);if(!_0x5cbe29)return null;const _0xc237bc=this[_0x24dde4(0x2b8)](_0x5cbe29[_0x24dde4(0x1e4)]);if(!_0xc237bc)throw new Error(_0x24dde4(0x341)+_0x5cbe29[_0x24dde4(0x1e4)]);const _0x59091d=this[_0x24dde4(0x2dd)](),_0x26f5f9=this[_0x24dde4(0x2b3)](),_0x4bea85=_0xc237bc[_0x24dde4(0x279)](_0x59091d,{'useFullExample':_0x49afa3?.[_0x24dde4(0x25d)]}),_0x541bb3=_0xc237bc[_0x24dde4(0x32e)](_0x59091d);return{'operation':_0x5cbe29,'operationInstance':_0xc237bc,'basicInfo':{'name':_0x5cbe29[_0x24dde4(0x1e4)],'displayName':_0x5cbe29[_0x24dde4(0x177)],'method':_0x5cbe29['method'],'path':_0x5cbe29[_0x24dde4(0x20f)],'fullUrl':_0x5cbe29[_0x24dde4(0x220)],'enabled':_0x5cbe29[_0x24dde4(0x22a)]},'sdkCall':{'datasetCode':this['datasetCode'],'datasetSDKKey':_0x59091d,'tableName':_0x26f5f9,'operationName':_0x5cbe29[_0x24dde4(0x1e4)],'params':_0x5cbe29[_0x24dde4(0x314)],'code':_0x4bea85},'usageExample':_0x541bb3};}[a0_0x17ef4f(0x15b)](_0x4b0eb7={}){const _0x275178=a0_0x17ef4f,_0x213cc8=this[_0x275178(0x155)](_0x4b0eb7),_0x1746ac=this[_0x275178(0x305)](),_0x529ce4=this['getDatasetSDKKey'](),_0x296b03={'name':this[_0x275178(0x1e4)],'code':this[_0x275178(0x2eb)],'tableName':this[_0x275178(0x2b3)](),'datasetSDKKey':_0x529ce4,'tableKey':this[_0x275178(0x1a6)](),'source':this[_0x275178(0x1c8)],'fieldCount':_0x1746ac[_0x275178(0x1e0)],'businessFieldCount':_0x1746ac['businessFieldCount'],'systemFieldCount':_0x1746ac[_0x275178(0x30d)],'operationCount':_0x1746ac[_0x275178(0x256)],'enabledOperationCount':_0x1746ac[_0x275178(0x1e1)]},_0x2b433d=_0x213cc8[_0x275178(0x1e6)](_0x398932=>this['getOperationDocMeta'](_0x398932[_0x275178(0x1e4)]))['filter'](_0x1c031f=>_0x1c031f!==null);return{'title':this[_0x275178(0x1e4)]+_0x275178(0x1a1),'datasetInfo':_0x296b03,'operations':_0x2b433d};}['getOperationsOverviewData'](_0x8df72b){const _0xbff066=a0_0x17ef4f,_0xd80fb6=[{'index':'name','label':_0xbff066(0x303)},{'index':_0xbff066(0x177),'label':'操作名称'},{'index':_0xbff066(0x143),'label':'方法'},{'index':_0xbff066(0x1c7),'label':_0xbff066(0x1b6)},{'index':_0xbff066(0x20f),'label':_0xbff066(0x2bc)},{'index':_0xbff066(0x237),'label':'完整的\x20SDK\x20调用代码'}],_0x2be302=_0x8df72b[_0xbff066(0x1e6)](_0x17a121=>{const _0x455a46=_0xbff066,{basicInfo:_0x50d997,sdkCall:_0x50caa3}=_0x17a121,_0x434ee4=_0x50caa3[_0x455a46(0x326)]['replace'](/^const\s+\w+\s*=\s*await\s+/,'')['replace'](/;$/,'');return{'displayName':_0x50d997['displayName'],'name':_0x50d997['name'],'method':_0x50d997['method'],'path':_0x50d997['path'],'sdkCall':_0x434ee4,'sdkCallCode':_0x50caa3[_0x455a46(0x326)]};});return{'tableColumns':_0xd80fb6,'tableData':_0x2be302};}[a0_0x17ef4f(0x260)](_0x1ca1c0){const _0x31eacf=a0_0x17ef4f,_0x56c992=this[_0x31eacf(0x313)](_0x1ca1c0);if(!_0x56c992)return null;return{'name':_0x56c992[_0x31eacf(0x1e4)],'displayName':_0x56c992[_0x31eacf(0x177)],'type':_0x56c992[_0x31eacf(0x154)],'method':_0x56c992[_0x31eacf(0x143)],'path':_0x56c992['path'],'enabled':_0x56c992[_0x31eacf(0x22a)],'requestFieldCount':_0x56c992[_0x31eacf(0x314)][_0x31eacf(0x316)],'hasResponseSchema':_0x56c992[_0x31eacf(0x2ef)]!==null};}[a0_0x17ef4f(0x1be)](_0x2430f5={}){const _0x143aa4=a0_0x17ef4f,_0x501e97=this[_0x143aa4(0x155)](_0x2430f5);return{'datasetName':this[_0x143aa4(0x1e4)],'datasetCode':this['datasetCode'],'tableName':this['getTableName'](),'totalOperations':_0x501e97['length'],'operations':_0x501e97[_0x143aa4(0x1e6)](_0x346ec6=>({'name':_0x346ec6[_0x143aa4(0x1e4)],'displayName':_0x346ec6[_0x143aa4(0x177)],'type':_0x346ec6[_0x143aa4(0x154)],'method':_0x346ec6['method'],'path':_0x346ec6[_0x143aa4(0x20f)],'requestFieldCount':_0x346ec6['requestFields']['length']}))};}[a0_0x17ef4f(0x22d)](_0x728be6){const _0x482e5b=a0_0x17ef4f,_0x5abbf8={};return Object[_0x482e5b(0x188)](_0x728be6)[_0x482e5b(0x2f6)](([_0x54bd4c,_0x1077f4])=>{const _0x2ff6e6=_0x482e5b;Array['isArray'](_0x1077f4)&&_0x1077f4[_0x2ff6e6(0x316)]>0x0?_0x5abbf8[_0x54bd4c]=_0x1077f4[0x0]:_0x5abbf8[_0x54bd4c]=_0x1077f4;}),_0x5abbf8;}[a0_0x17ef4f(0x287)](){const _0x5cbd61=a0_0x17ef4f,_0x1371d4=this[_0x5cbd61(0x140)](),_0x18b910=_0x1371d4[_0x5cbd61(0x144)](_0x233463=>_0x233463[_0x5cbd61(0x22a)]);return{'total':_0x1371d4['length'],'enabled':_0x18b910['length'],'disabled':_0x1371d4[_0x5cbd61(0x316)]-_0x18b910[_0x5cbd61(0x316)],'byType':this[_0x5cbd61(0x245)](_0x18b910),'byMethod':this[_0x5cbd61(0x320)](_0x18b910)};}['getOperationCountByType'](_0x14a145){const _0x3ad3d5=a0_0x17ef4f,_0x45c169={};return _0x14a145[_0x3ad3d5(0x2f6)](_0xf7e4d7=>{const _0x3f7143=_0x3ad3d5;_0xf7e4d7['type']&&(_0x45c169[_0xf7e4d7[_0x3f7143(0x154)]]=(_0x45c169[_0xf7e4d7[_0x3f7143(0x154)]]||0x0)+0x1);}),_0x45c169;}[a0_0x17ef4f(0x320)](_0x4b118f){const _0x2efb2e={};return _0x4b118f['forEach'](_0xceb5dd=>{const _0x3fb222=a0_0x254c;_0x2efb2e[_0xceb5dd[_0x3fb222(0x143)]]=(_0x2efb2e[_0xceb5dd[_0x3fb222(0x143)]]||0x0)+0x1;}),_0x2efb2e;}[a0_0x17ef4f(0x298)](){const _0x472dcc=a0_0x17ef4f,_0x1a225d=this[_0x472dcc(0x189)](),_0x351161=new Set(_0x1a225d[_0x472dcc(0x1e6)](_0x1f8ec1=>_0x1f8ec1['type'])['filter'](Boolean));return _0x351161[_0x472dcc(0x207)]('create')&&_0x351161['has'](_0x472dcc(0x1d2))&&_0x351161[_0x472dcc(0x207)](_0x472dcc(0x2ce))&&_0x351161[_0x472dcc(0x207)]('delete');}[a0_0x17ef4f(0x23c)](){const _0x37a91f=a0_0x17ef4f,_0x2a716=this[_0x37a91f(0x189)](),_0x14bef6=new Set(_0x2a716[_0x37a91f(0x1e6)](_0x7733ea=>_0x7733ea[_0x37a91f(0x154)])[_0x37a91f(0x144)](Boolean)),_0x3daa1a=[_0x37a91f(0x1a2),'getList',_0x37a91f(0x2ce),'delete'];return _0x3daa1a[_0x37a91f(0x144)](_0x3559d9=>!_0x14bef6[_0x37a91f(0x207)](_0x3559d9));}['generateFullSDKExample'](_0x42529d,_0x4f1137,_0x498842){const _0x31e996=a0_0x17ef4f,{includeRequestExample:includeRequestExample=!![],includeResponseExample:includeResponseExample=![],includeUsageExample:includeUsageExample=!![]}=_0x498842||{},_0x52e5f9=this[_0x31e996(0x20d)](_0x42529d,{'useFullExample':includeRequestExample});if(!_0x52e5f9)return null;let _0x2d97f4='';_0x2d97f4+=_0x31e996(0x300)+_0x52e5f9[_0x31e996(0x224)]['displayName']+_0x31e996(0x334)+_0x52e5f9['operation']['name']+_0x31e996(0x17d)+_0x52e5f9[_0x31e996(0x1c7)][_0x31e996(0x326)];if(includeResponseExample&&_0x52e5f9['operation'][_0x31e996(0x29c)]?.['data']){const _0x444040=typeof _0x52e5f9[_0x31e996(0x224)][_0x31e996(0x29c)][_0x31e996(0x1f6)]===_0x31e996(0x2f9)?_0x52e5f9[_0x31e996(0x224)][_0x31e996(0x29c)]['data']:JSON['stringify'](_0x52e5f9[_0x31e996(0x224)][_0x31e996(0x29c)][_0x31e996(0x1f6)],null,0x2);_0x2d97f4+='\x0a\x0a//\x20'+_0x52e5f9[_0x31e996(0x224)][_0x31e996(0x1e4)]+_0x31e996(0x2de)+_0x444040;}return includeUsageExample&&_0x52e5f9[_0x31e996(0x318)]&&(_0x2d97f4+=_0x31e996(0x2ad)+_0x52e5f9[_0x31e996(0x318)][_0x31e996(0x1b7)]+'\x0a\x0a'+_0x52e5f9[_0x31e996(0x318)]['errorCode']),_0x2d97f4;}[a0_0x17ef4f(0x1b1)](_0x4c8eb6){const _0x2515f6=a0_0x17ef4f,{includeRequestExample:includeRequestExample=!![],includeUsageExample:includeUsageExample=![]}=_0x4c8eb6||{},_0x26baf7=this[_0x2515f6(0x189)]();return _0x26baf7[_0x2515f6(0x1e6)](_0xd2116f=>this[_0x2515f6(0x21d)](_0xd2116f[_0x2515f6(0x1e4)],this[_0x2515f6(0x2eb)],{'includeRequestExample':includeRequestExample,'includeUsageExample':includeUsageExample}))[_0x2515f6(0x183)]('\x0a');}[a0_0x17ef4f(0x234)](_0x5f04e2){const _0x16e4ac=a0_0x17ef4f,_0x54c919=this[_0x16e4ac(0x2dd)]();return{'appCode':_0x5f04e2,'datasetSDKKey':_0x54c919,'tableKey':this[_0x16e4ac(0x1a6)](),'alias':this[_0x16e4ac(0x288)](),'tableName':this[_0x16e4ac(0x2b3)](),'datasetCode':this['datasetCode']};}[a0_0x17ef4f(0x329)](_0x49cda0,_0x5bcff0=a0_0x17ef4f(0x1f3),_0x1f047c=![]){const _0x514d9d=a0_0x17ef4f,{alias:_0x182d7f,tableName:_0x379be6,datasetCode:_0x592e83}=this[_0x514d9d(0x234)](_0x49cda0),_0x3e8161=_0x5bcff0===_0x514d9d(0x268)?_0x514d9d(0x2d5)+_0x5bcff0+'\x27,':'',_0x2b1768=_0x1f047c?_0x514d9d(0x1fb):'';return _0x514d9d(0x1dc)+_0x49cda0+'\x27,'+_0x2b1768+_0x3e8161+'\x0a\x20\x20models:\x20[\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20tableName:\x20\x27'+_0x379be6+'\x27,\x0a\x20\x20\x20\x20\x20\x20datasetCode:\x20\x27'+_0x592e83+_0x514d9d(0x1c4)+_0x182d7f+_0x514d9d(0x26a)+_0x182d7f+_0x514d9d(0x255);}[a0_0x17ef4f(0x323)](){const _0xb8e419=a0_0x17ef4f,_0x7925c2=this[_0xb8e419(0x2dd)](),_0x489690=this[_0xb8e419(0x288)]();return _0xb8e419(0x214)+_0x7925c2+'.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20唯一确定,不会产生命名冲突\x0a-\x20适合程序自动生成代码\x0a-\x20与\x20datasetCode\x20直接对应,便于追溯\x0a\x0a###\x202.\x20别名方式(推荐用于人工编码场景)\x0a\x0a使用\x20camelCase\x20格式的别名,更加人类友好:\x0a\x0a```javascript\x0a//\x20别名访问方式(需要在\x20registerModels\x20时配置\x20alias)\x0aconst\x20result\x20=\x20await\x20client.models.'+_0x489690+_0xb8e419(0x15e);}['toString'](){const _0x338e40=a0_0x17ef4f,_0x2d4f18=this[_0x338e40(0x287)]();return'DrivenDataDetailPlus('+this[_0x338e40(0x1e4)]+',\x20'+this['datasetCode']+',\x20'+this[_0x338e40(0x24a)]()+_0x338e40(0x2e5)+_0x2d4f18[_0x338e40(0x22a)]+'/'+_0x2d4f18[_0x338e40(0x15c)]+_0x338e40(0x25e);}}var VERSION=a0_0x17ef4f(0x32a);export{toSnakeCase,toPascalCase,toKebabCase,toCamelCase,smartAdapt,shouldIncludeField,parseResponseBody,parseRequestBody,parseOperationType,parseFieldExtend,normalizeFieldName,isVirtualTableName,isSystemField,isRequiredField,isPrimaryKeyField,isModifyTimeField,isDrivenDataDetail,isCreateTimeField,isAutoIncrementField,isApiBlacklisted,groupByTableName,getTableName,getFieldsForOperation,getDbTypeDisplay,generateTableNameFromCode,generateRequestExample,generateExampleValue,generateExampleFromSchema,generateDatasetsConfig,formatOptionsForDoc,formatOptionsAsMarkdownList,formatEnumValue,formatDbType,filterApiOperations,extractDatasetsFromListResponse,extractDatasetFromResponse,detectTableNameConflicts,createDatasetNameMap,adaptDrivenDataDetails,adaptDrivenDataDetail,VERSION,OperationList,OperationFactory,Operation,OPERATION_TYPE_DISPLAY_NAME,GetSelectOptionsOperation,GetListOperation,GenericOperation,FilterOperation,FieldList,Field,FILTER_OPERATORS,DrivenDataDetailPlus,DrivenDataDetail,DatasetOperationType,DatasetList,DatasetItem,DatasetGroupMap,DatasetGroup,DB_TYPE_DISPLAY_MAP,API_BLACKLIST};
1
+ const a0_0x22b77d=a0_0x2579;(function(_0x5d48ea,_0x190610){const _0x37ea6f=a0_0x2579,_0x4113e5=_0x5d48ea();while(!![]){try{const _0x1e5769=parseInt(_0x37ea6f(0x26b))/0x1*(-parseInt(_0x37ea6f(0x308))/0x2)+-parseInt(_0x37ea6f(0x269))/0x3+parseInt(_0x37ea6f(0x266))/0x4+parseInt(_0x37ea6f(0x363))/0x5+parseInt(_0x37ea6f(0x20d))/0x6*(parseInt(_0x37ea6f(0x1c9))/0x7)+-parseInt(_0x37ea6f(0x244))/0x8*(-parseInt(_0x37ea6f(0x227))/0x9)+-parseInt(_0x37ea6f(0x2ad))/0xa*(-parseInt(_0x37ea6f(0x209))/0xb);if(_0x1e5769===_0x190610)break;else _0x4113e5['push'](_0x4113e5['shift']());}catch(_0x1fa89a){_0x4113e5['push'](_0x4113e5['shift']());}}}(a0_0x53fa,0x62211));function toCamelCase(_0x15df87){const _0x3cce97=a0_0x2579;if(!_0x15df87)return'';return _0x15df87[_0x3cce97(0x2dc)](/[_-]/)['map']((_0x3a4cba,_0x27348c)=>{const _0x24ef16=_0x3cce97;if(_0x27348c===0x0)return _0x3a4cba['toLowerCase']();return _0x3a4cba[_0x24ef16(0x361)](0x0)[_0x24ef16(0x2cc)]()+_0x3a4cba[_0x24ef16(0x1e3)](0x1)[_0x24ef16(0x198)]();})[_0x3cce97(0x2af)]('');}function toPascalCase(_0x551d44){const _0x3a54d3=a0_0x2579;if(!_0x551d44)return'';const _0x27a503=toCamelCase(_0x551d44);return _0x27a503[_0x3a54d3(0x361)](0x0)['toUpperCase']()+_0x27a503['slice'](0x1);}function toSnakeCase(_0x54f8b1){const _0xe8e689=a0_0x2579;if(!_0x54f8b1)return'';return _0x54f8b1[_0xe8e689(0x1c2)](/([A-Z])/g,'_$1')['toLowerCase']()[_0xe8e689(0x1c2)](/^_/,'');}function toKebabCase(_0x54c1f4){const _0x313fc2=a0_0x2579;if(!_0x54c1f4)return'';return _0x54c1f4[_0x313fc2(0x1c2)](/([A-Z])/g,_0x313fc2(0x36e))[_0x313fc2(0x198)]()[_0x313fc2(0x1c2)](/^-/,'');}function normalizeFieldName(_0x255cae){const _0x1c5585=a0_0x2579;if(!_0x255cae)return'';return _0x255cae['trim']()['replace'](/\s+/g,'_')[_0x1c5585(0x1c2)](/[^a-zA-Z0-9_]/g,'_')[_0x1c5585(0x1c2)](/_+/g,'_')['replace'](/^_|_$/g,'');}function getTableName(_0x5688f2){const _0xc0dfc2=a0_0x2579;if(!_0x5688f2)return _0xc0dfc2(0x287);if(_0x5688f2[_0xc0dfc2(0x2db)]?.['tableName'])return _0x5688f2[_0xc0dfc2(0x2db)][_0xc0dfc2(0x2d0)];const _0x41bf52=_0x5688f2[_0xc0dfc2(0x2e6)]||_0x5688f2[_0xc0dfc2(0x216)]||_0x5688f2[_0xc0dfc2(0x38f)];if(_0x41bf52)return generateTableNameFromCode(_0x41bf52);return'dataset_000000';}function getTableKey(_0x5ae553){const _0x1d0026=a0_0x2579;if(typeof _0x5ae553===_0x1d0026(0x298))return toCamelCase(_0x5ae553);const _0x54dd64=getTableName(_0x5ae553);return toCamelCase(_0x54dd64);}function generateTableNameFromCode(_0x34ed38){const _0x11e7af=a0_0x2579;if(!_0x34ed38)return _0x11e7af(0x287);const _0x52f2d2=_0x34ed38[_0x11e7af(0x1e3)](-0x6)[_0x11e7af(0x1a1)](0x6,'0');return _0x11e7af(0x28d)+_0x52f2d2;}function isVirtualTableName(_0x5a0d53){const _0x5c5ac7=a0_0x2579;return/^dataset_[a-zA-Z0-9]{6}$/[_0x5c5ac7(0x1a0)](_0x5a0d53);}function generateModelKeyFromCode(_0x55f436){const _0x16872b=a0_0x2579;if(!_0x55f436)return _0x16872b(0x378);return _0x16872b(0x28d)+_0x55f436;}function getDbName(_0x1448e6){const _0x4c1a97=a0_0x2579;return _0x1448e6['dbtableConfig']?.[_0x4c1a97(0x314)]||_0x1448e6[_0x4c1a97(0x2db)]?.['dblinkInfoDTO']?.[_0x4c1a97(0x314)]||'';}function generateDatasetsConfig(_0x77c92c,_0x1a72c7={}){const _0x4f95de=a0_0x2579,{enableDeduplication:enableDeduplication=!![],datasetNameGenerator:_0xb6dc2f,filter:_0x11232b}=_0x1a72c7,_0xbfb5f6=_0x11232b?_0x77c92c[_0x4f95de(0x1cb)](_0x11232b):_0x77c92c,_0x4877ef=new Map();for(const _0x68ea13 of _0xbfb5f6){const _0x1d39d0=getTableName(_0x68ea13),_0x26439d=getDbName(_0x68ea13);!_0x4877ef['has'](_0x1d39d0)&&_0x4877ef[_0x4f95de(0x23d)](_0x1d39d0,new Set()),_0x4877ef[_0x4f95de(0x387)](_0x1d39d0)['add'](_0x26439d);}const _0xa4a3de=new Set();for(const [_0x53080e,_0x2dbe2a]of _0x4877ef){_0x2dbe2a[_0x4f95de(0x248)]>0x1&&_0xa4a3de[_0x4f95de(0x30d)](_0x53080e);}const _0x591063={},_0x37a4e4=new Set();for(const _0x1ab604 of _0xbfb5f6){const _0x22228e=getTableName(_0x1ab604);if(enableDeduplication&&_0x37a4e4['has'](_0x22228e)){console[_0x4f95de(0x189)](_0x4f95de(0x250)+_0x22228e+'\x22,数据集:\x20'+_0x1ab604[_0x4f95de(0x360)]+'\x20('+_0x1ab604['datasetCode']+')');continue;}_0x37a4e4[_0x4f95de(0x30d)](_0x22228e);const _0x5a99a4=_0xb6dc2f?_0xb6dc2f(_0x22228e,_0x1ab604):getTableKey(_0x22228e),_0x1b7a74=getDbName(_0x1ab604),_0x472598=_0xa4a3de[_0x4f95de(0x38b)](_0x22228e)&&_0x1b7a74?getTableKey(_0x1b7a74)+'_'+_0x5a99a4:_0x5a99a4;_0x591063[_0x5a99a4]={'key':_0x5a99a4,'alias':_0x472598,'tableName':_0x22228e,'datasetCode':_0x1ab604[_0x4f95de(0x2e6)],'name':_0x1ab604['name'],'id':_0x1ab604['id'],'dbName':_0x1b7a74};}return _0x591063;}function generateFullDatasetsConfig(_0x27cb52,_0xd524e3={}){const _0x477fb2=a0_0x2579,{filter:_0x90c79a,datasetNameGenerator:_0x243523}=_0xd524e3,_0x2a59d4=_0x90c79a?_0x27cb52[_0x477fb2(0x1cb)](_0x90c79a):_0x27cb52,_0x1d2d56=new Map();for(const _0x44a7e2 of _0x2a59d4){const _0x298933=getTableName(_0x44a7e2),_0x31c5e7=getDbName(_0x44a7e2);!_0x1d2d56[_0x477fb2(0x38b)](_0x298933)&&_0x1d2d56['set'](_0x298933,new Set()),_0x1d2d56['get'](_0x298933)[_0x477fb2(0x30d)](_0x31c5e7);}const _0x2c51d0=new Set();for(const [_0x1056e4,_0x554d5b]of _0x1d2d56){_0x554d5b['size']>0x1&&_0x2c51d0[_0x477fb2(0x30d)](_0x1056e4);}const _0x11123b=groupByTableName(_0x2a59d4),_0x4a60c3={};for(const [_0x98967,_0x433378]of Object[_0x477fb2(0x223)](_0x11123b)){if(_0x433378[_0x477fb2(0x251)]===0x1){const _0x52f74f=_0x433378[0x0],_0x30cb8f=_0x243523?_0x243523(_0x98967,_0x52f74f):getTableKey(_0x98967),_0x4c2bb3=getDbName(_0x52f74f),_0x182e45=_0x2c51d0[_0x477fb2(0x38b)](_0x98967)&&_0x4c2bb3?getTableKey(_0x4c2bb3)+'_'+_0x30cb8f:_0x30cb8f;_0x4a60c3[_0x30cb8f]={'key':_0x30cb8f,'alias':_0x182e45,'tableName':_0x98967,'datasetCode':_0x52f74f[_0x477fb2(0x2e6)],'name':_0x52f74f[_0x477fb2(0x360)],'id':_0x52f74f['id'],'dbName':_0x4c2bb3};}else{const _0x58fb34=[..._0x433378][_0x477fb2(0x207)]((_0x254cd7,_0x7e1d3b)=>{const _0x5eceee=Number(_0x254cd7['id'])||0x0,_0x246aa7=Number(_0x7e1d3b['id'])||0x0;return _0x246aa7-_0x5eceee;});_0x58fb34['forEach']((_0x3228c3,_0x4b7eed)=>{const _0xf0ba7d=_0x477fb2,_0x5ec365=_0x243523?_0x243523(_0x98967,_0x3228c3):getTableKey(_0x98967),_0x2b052d=_0x4b7eed===0x0?_0x5ec365:_0x5ec365+'_'+_0x4b7eed,_0x520514=getDbName(_0x3228c3),_0x3bee21=_0x2c51d0[_0xf0ba7d(0x38b)](_0x98967)&&_0x520514?getTableKey(_0x520514)+'_'+_0x2b052d:_0x2b052d;_0x4a60c3[_0x2b052d]={'key':_0x2b052d,'alias':_0x3bee21,'tableName':_0x98967,'datasetCode':_0x3228c3[_0xf0ba7d(0x2e6)],'name':_0x3228c3[_0xf0ba7d(0x360)],'id':_0x3228c3['id'],'dbName':_0x520514};});}}return _0x4a60c3;}function detectTableNameConflicts(_0x2c4d19){const _0xfd1de6=a0_0x2579,_0x2b6f87={};for(const _0x175875 of _0x2c4d19){const _0x504ddd=getTableName(_0x175875);!_0x2b6f87[_0x504ddd]&&(_0x2b6f87[_0x504ddd]=[]),_0x2b6f87[_0x504ddd]['push'](_0x175875);}const _0x11caa0={};for(const [_0x28027c,_0x555207]of Object[_0xfd1de6(0x223)](_0x2b6f87)){_0x555207[_0xfd1de6(0x251)]>0x1&&(_0x11caa0[_0x28027c]=_0x555207);}return{'hasConflicts':Object[_0xfd1de6(0x338)](_0x11caa0)[_0xfd1de6(0x251)]>0x0,'conflicts':_0x11caa0};}function createDatasetNameMap(_0x3b0ba3){const _0x3b8ac1=a0_0x2579,_0x46d271={};for(const [_0x9fc41c,_0x320563]of Object[_0x3b8ac1(0x223)](_0x3b0ba3)){_0x46d271[_0x9fc41c]=_0x320563[_0x3b8ac1(0x2e6)]||'';}return _0x46d271;}function groupByTableName(_0x2e72d6){const _0x297230={};for(const _0x2b6d8e of _0x2e72d6){const _0x316350=getTableName(_0x2b6d8e);!_0x297230[_0x316350]&&(_0x297230[_0x316350]=[]),_0x297230[_0x316350]['push'](_0x2b6d8e);}return _0x297230;}function datasetsConfigToArray(_0x7267b6){const _0xe2d97=a0_0x2579;return Object[_0xe2d97(0x1f5)](_0x7267b6);}function adaptDrivenDataDetail(_0x49c859){const _0x230b25=a0_0x2579;return{'id':_0x49c859['modelId'],'name':_0x49c859[_0x230b25(0x360)],'datasetCode':_0x49c859['modelCode'],'dbtableConfig':_0x49c859[_0x230b25(0x2db)],'source':_0x49c859[_0x230b25(0x24e)],'version':_0x49c859[_0x230b25(0x19f)],'extend':_0x49c859[_0x230b25(0x259)],'properties':_0x49c859[_0x230b25(0x294)],'operations':_0x49c859['operations']};}function adaptDrivenDataDetails(_0x15d5c4){const _0x19935c=a0_0x2579;return _0x15d5c4[_0x19935c(0x318)](adaptDrivenDataDetail);}function extractDatasetFromResponse(_0x30be2b){const _0xd40861=a0_0x2579;if(!_0x30be2b[_0xd40861(0x1ca)]||!_0x30be2b[_0xd40861(0x22b)])throw new Error(_0xd40861(0x1d2)+(_0x30be2b[_0xd40861(0x2eb)]||_0x30be2b[_0xd40861(0x264)]));return adaptDrivenDataDetail(_0x30be2b['data']);}function extractDatasetsFromListResponse(_0x51040f){const _0x45a558=a0_0x2579;if(!_0x51040f[_0x45a558(0x1ca)]||!_0x51040f[_0x45a558(0x22b)]?.[_0x45a558(0x33a)])throw new Error('获取数据集列表失败:\x20'+(_0x51040f[_0x45a558(0x2eb)]||_0x51040f[_0x45a558(0x264)]));return _0x51040f[_0x45a558(0x22b)]['tableData'][_0x45a558(0x318)](_0x59813a=>({..._0x59813a,'datasetCode':_0x59813a[_0x45a558(0x216)]||_0x59813a[_0x45a558(0x2e6)]}));}function isDrivenDataDetail(_0x4f56ef){const _0x51739f=a0_0x2579;return Boolean(_0x4f56ef&&typeof _0x4f56ef[_0x51739f(0x38f)]==='string');}function smartAdapt(_0x1bc7ac){const _0x2ca597=a0_0x2579;if(isDrivenDataDetail(_0x1bc7ac))return adaptDrivenDataDetail(_0x1bc7ac);if(_0x1bc7ac[_0x2ca597(0x2e6)])return _0x1bc7ac;if(_0x1bc7ac[_0x2ca597(0x216)])return{..._0x1bc7ac,'datasetCode':_0x1bc7ac[_0x2ca597(0x216)]};return _0x1bc7ac;}var DatasetOperationType;(_0x543cd7=>{const _0x59c920=a0_0x2579;_0x543cd7[_0x59c920(0x195)]=_0x59c920(0x2bf),_0x543cd7['GET_ONE']=_0x59c920(0x26e),_0x543cd7['GET_ONE_ORIGIN']=_0x59c920(0x274),_0x543cd7[_0x59c920(0x1fb)]='getOneUpdate',_0x543cd7['CREATE']=_0x59c920(0x2ff),_0x543cd7['UPDATE']='update',_0x543cd7[_0x59c920(0x197)]=_0x59c920(0x23b),_0x543cd7['GET_SELECT_OPTIONS']=_0x59c920(0x382),_0x543cd7[_0x59c920(0x24d)]=_0x59c920(0x1d4),_0x543cd7['EXCEL_EXPORT']='excelExport',_0x543cd7[_0x59c920(0x1b8)]=_0x59c920(0x282),_0x543cd7[_0x59c920(0x30c)]='createImport',_0x543cd7[_0x59c920(0x1f1)]=_0x59c920(0x245),_0x543cd7['TASK_INFO']=_0x59c920(0x2b8),_0x543cd7[_0x59c920(0x373)]='importTemplate';})(DatasetOperationType||={});var OPERATION_TYPE_DISPLAY_NAME={[a0_0x22b77d(0x2bf)]:a0_0x22b77d(0x1b6),['getOne']:a0_0x22b77d(0x295),['getOneOrigin']:a0_0x22b77d(0x31b),['getOneUpdate']:a0_0x22b77d(0x334),['create']:'创建',[a0_0x22b77d(0x38d)]:'更新',[a0_0x22b77d(0x23b)]:'删除',[a0_0x22b77d(0x382)]:'获取下拉选项',[a0_0x22b77d(0x1d4)]:a0_0x22b77d(0x24f),[a0_0x22b77d(0x379)]:a0_0x22b77d(0x203),[a0_0x22b77d(0x282)]:a0_0x22b77d(0x36c),[a0_0x22b77d(0x34a)]:a0_0x22b77d(0x1a2),[a0_0x22b77d(0x245)]:a0_0x22b77d(0x303),[a0_0x22b77d(0x2b8)]:a0_0x22b77d(0x1da),[a0_0x22b77d(0x1a6)]:a0_0x22b77d(0x1c6)},API_BLACKLIST=[a0_0x22b77d(0x2bf),a0_0x22b77d(0x274),a0_0x22b77d(0x36a),a0_0x22b77d(0x1d4)];function parseFieldExtend(_0x152843){const _0x4b5379=a0_0x22b77d;if(!_0x152843||typeof _0x152843!=='object')return!![]&&console[_0x4b5379(0x189)](_0x4b5379(0x2b9),_0x152843),{};if(!_0x152843[_0x4b5379(0x259)])return{};try{const _0x8cf782=typeof _0x152843[_0x4b5379(0x259)]==='string'?JSON['parse'](_0x152843[_0x4b5379(0x259)]):_0x152843[_0x4b5379(0x259)];if(typeof _0x8cf782!==_0x4b5379(0x1f8)||_0x8cf782===null)return{};return _0x8cf782;}catch{return{};}}function isPrimaryKeyField(_0x40ae3c,_0x1b8065){const _0x615e07=a0_0x22b77d;if(!_0x40ae3c||typeof _0x40ae3c!==_0x615e07(0x1f8))return![];if(typeof _0x1b8065===_0x615e07(0x298)&&_0x40ae3c['code']===_0x1b8065)return!![];const _0x58511a=parseFieldExtend(_0x40ae3c);return Boolean(_0x58511a[_0x615e07(0x26a)]||_0x58511a['pkField']);}function isSystemField(_0x234502){const _0x506eff=a0_0x22b77d,_0x4aa7ec=parseFieldExtend(_0x234502);return Boolean(_0x4aa7ec[_0x506eff(0x1ff)]);}function isRequiredField(_0x4163e7){const _0x369a37=parseFieldExtend(_0x4163e7);return Boolean(_0x369a37['required']);}function isAutoIncrementField(_0x15feaf){const _0x4f8e51=a0_0x22b77d,_0x1b28df=parseFieldExtend(_0x15feaf);return Boolean(_0x1b28df[_0x4f8e51(0x33f)]);}function a0_0x2579(_0x23f2fa,_0x536ab2){const _0x53fa16=a0_0x53fa();return a0_0x2579=function(_0x25798e,_0x3330a4){_0x25798e=_0x25798e-0x187;let _0x1df1dd=_0x53fa16[_0x25798e];return _0x1df1dd;},a0_0x2579(_0x23f2fa,_0x536ab2);}function isCreateTimeField(_0x29863f){const _0x3a36e6=a0_0x22b77d,_0x1766d7=parseFieldExtend(_0x29863f);return Boolean(_0x1766d7[_0x3a36e6(0x224)]);}function isModifyTimeField(_0x22d605){const _0x4d30e2=a0_0x22b77d,_0x3c6a35=parseFieldExtend(_0x22d605);return Boolean(_0x3c6a35[_0x4d30e2(0x340)]);}var DB_TYPE_DISPLAY_MAP={'NUMBER':'数字','TEXT':'文本','TEXTAREA':a0_0x22b77d(0x29a),'DATE':'日期','DATETIME':'日期时间','TIMESTAMP':a0_0x22b77d(0x1df),'SELECT':a0_0x22b77d(0x217),'CHECKBOX':'多选','RADIO':'单选','SWITCH':'开关','UPLOAD':a0_0x22b77d(0x356),'IMAGE':'图片','RICH_TEXT':a0_0x22b77d(0x1fe),'JSON':'JSON','ARRAY':'数组'};function getDbTypeDisplay(_0x22224f){const _0x48c28c=a0_0x22b77d;if(typeof _0x22224f!==_0x48c28c(0x298))return!![]&&console[_0x48c28c(0x189)](_0x48c28c(0x392),_0x22224f),String(_0x22224f||'-');return DB_TYPE_DISPLAY_MAP[_0x22224f]||_0x22224f;}function formatDbType(_0x3c583f,_0x4ae5bd){const _0x1f8078=a0_0x22b77d;if(!_0x3c583f||typeof _0x3c583f!==_0x1f8078(0x298))return'-';if(!_0x4ae5bd||typeof _0x4ae5bd!==_0x1f8078(0x187))return _0x3c583f;const _0x221da3=[_0x1f8078(0x300),_0x1f8078(0x2a1),_0x1f8078(0x37b),'DATE'];if(_0x221da3[_0x1f8078(0x261)](_0x3c583f[_0x1f8078(0x2cc)]()))return _0x3c583f;return _0x3c583f+'('+_0x4ae5bd+')';}function parseOperationType(_0x36bcfc){const _0x1e4933=a0_0x22b77d;if(typeof _0x36bcfc!==_0x1e4933(0x298)){!![]&&console['warn'](_0x1e4933(0x350),_0x36bcfc);return;}if(Object[_0x1e4933(0x1f5)](DatasetOperationType)[_0x1e4933(0x261)](_0x36bcfc))return _0x36bcfc;const _0x4727a5=Object[_0x1e4933(0x223)](OPERATION_TYPE_DISPLAY_NAME)[_0x1e4933(0x1a9)](([_0x3fcb1b,_0x3723da])=>_0x3723da===_0x36bcfc);return _0x4727a5?_0x4727a5[0x0]:undefined;}function shouldIncludeField(_0x55afde,_0x490bb3,_0x2db9bd){const _0x16e716=a0_0x22b77d,_0x39a9c3=parseFieldExtend(_0x55afde),_0x3181db=isPrimaryKeyField(_0x55afde,_0x2db9bd),_0x2faa9d=Boolean(_0x39a9c3['systemRetain']),_0x4cbeab=Boolean(_0x39a9c3[_0x16e716(0x33f)]),_0x435cdb=Boolean(_0x39a9c3[_0x16e716(0x224)]),_0x4eff60=Boolean(_0x39a9c3[_0x16e716(0x340)]);switch(_0x490bb3){case'getList':return!![];case'getOne':case'getOneOrigin':case _0x16e716(0x23b):return _0x3181db;case _0x16e716(0x2ff):if(_0x3181db&&_0x4cbeab)return![];if(_0x2faa9d)return![];if(_0x435cdb||_0x4eff60)return![];return!![];case'update':case _0x16e716(0x36a):if(_0x3181db)return!![];if(_0x2faa9d)return![];if(_0x435cdb||_0x4eff60)return![];return!![];case _0x16e716(0x382):return _0x55afde[_0x16e716(0x216)]==='code';default:return!![];}}function getFieldsForOperation(_0x5ead74,_0x4c59b5,_0x4dc477){const _0x45972d=a0_0x22b77d;if(!Array[_0x45972d(0x228)](_0x5ead74))return!![]&&console[_0x45972d(0x189)]('[getFieldsForOperation]\x20fields\x20is\x20not\x20an\x20array:',_0x5ead74),[];return _0x5ead74[_0x45972d(0x1cb)](_0x3ba5f9=>shouldIncludeField(_0x3ba5f9,_0x4c59b5,_0x4dc477));}function isApiBlacklisted(_0x1f84a9){const _0x575ce5=a0_0x22b77d;if(typeof _0x1f84a9!==_0x575ce5(0x298))return!![]&&console[_0x575ce5(0x189)](_0x575ce5(0x215),_0x1f84a9),![];return API_BLACKLIST['includes'](_0x1f84a9);}function filterApiOperations(_0x33bb2e){const _0x42fac1=a0_0x22b77d;if(!Array[_0x42fac1(0x228)](_0x33bb2e))return!![]&&console['warn'](_0x42fac1(0x1f9),_0x33bb2e),[];return _0x33bb2e[_0x42fac1(0x1cb)](_0x33c6e5=>_0x33c6e5&&typeof _0x33c6e5===_0x42fac1(0x1f8)&&!isApiBlacklisted(_0x33c6e5[_0x42fac1(0x360)]));}var TYPE_VALUE_GENERATORS={'TIMESTAMP':()=>Date[a0_0x22b77d(0x25b)](),'DATE':()=>Date[a0_0x22b77d(0x25b)](),'SELECT':({fieldInfo:_0x5db33a})=>{const _0x58a1d5=a0_0x22b77d;if(_0x5db33a?.[_0x58a1d5(0x22e)]&&Array[_0x58a1d5(0x228)](_0x5db33a['options'])&&_0x5db33a[_0x58a1d5(0x22e)][_0x58a1d5(0x251)]>0x0)return _0x5db33a[_0x58a1d5(0x22e)][0x0][_0x58a1d5(0x2cb)];return 0x1;},'NUMBER':()=>0x7b,'INTEGER':()=>0x64,'Integer':({fieldCode:_0x3677d4})=>{const _0x304578=a0_0x22b77d;if(_0x3677d4===_0x304578(0x389))return 0x1;if(_0x3677d4===_0x304578(0x2e2))return 0xa;return 0x64;},'BIGINT':()=>0xf4240,'Long':()=>0xf4240,'INT':()=>0x64,'TINYINT':()=>0x1,'DECIMAL':()=>99.99,'FLOAT':()=>99.99,'DOUBLE':()=>99.99,'TEXT':({description:_0x286d27})=>{const _0x4c842e=a0_0x22b77d;if(_0x286d27&&typeof _0x286d27==='string'){const _0x4d5305=_0x286d27['toLowerCase']();if(_0x4d5305[_0x4c842e(0x261)]('邮箱')||_0x4d5305[_0x4c842e(0x261)](_0x4c842e(0x34f)))return'user@example.com';if(_0x4d5305[_0x4c842e(0x261)]('电话')||_0x4d5305[_0x4c842e(0x261)]('手机')||_0x4d5305['includes'](_0x4c842e(0x246)))return _0x4c842e(0x374);if(_0x4d5305['includes']('地址')||_0x4d5305[_0x4c842e(0x261)](_0x4c842e(0x302)))return _0x4c842e(0x22a);if(_0x4d5305['includes']('姓名')||_0x4d5305[_0x4c842e(0x261)]('name'))return'张三';}return _0x4c842e(0x326);},'VARCHAR':({description:_0xcefcaf})=>TYPE_VALUE_GENERATORS[a0_0x22b77d(0x300)]({'description':_0xcefcaf}),'CHAR':({description:_0x32076a})=>TYPE_VALUE_GENERATORS['TEXT']({'description':_0x32076a}),'STRING':({fieldInfo:_0x2ec4f5,description:_0xf8489d})=>{const _0x3d849c=a0_0x22b77d;if(_0x2ec4f5?.[_0x3d849c(0x275)]&&typeof _0x2ec4f5[_0x3d849c(0x275)]==='string'&&_0x2ec4f5[_0x3d849c(0x275)]!=='系统自动生成')return _0x2ec4f5['placeholder'][_0x3d849c(0x1c2)](/^请输入|^请选择/,'');return TYPE_VALUE_GENERATORS[_0x3d849c(0x300)]({'description':_0xf8489d});},'TEXTAREA':()=>'这是一段较长的文本内容示例','LONGTEXT':()=>a0_0x22b77d(0x351),'BOOLEAN':()=>!![],'BOOL':()=>!![],'Boolean':()=>!![],'SWITCH':()=>!![],'CHECKBOX':()=>[0x1,0x2],'RADIO':()=>0x1,'JSON':()=>({'key':a0_0x22b77d(0x2cb)}),'ARRAY':()=>[a0_0x22b77d(0x296),'item2'],'UPLOAD':()=>a0_0x22b77d(0x384),'IMAGE':()=>a0_0x22b77d(0x30b),'RICH_TEXT':()=>a0_0x22b77d(0x320)};function generateExampleValue(_0x586658,_0x27874c,_0x3d2969,_0x3e74ad={}){const _0x34bf65=a0_0x22b77d;typeof _0x586658!==_0x34bf65(0x298)&&(!![]&&console[_0x34bf65(0x189)](_0x34bf65(0x323),_0x586658),_0x586658=String(_0x586658||''));if(typeof _0x27874c!==_0x34bf65(0x298))return!![]&&console['warn'](_0x34bf65(0x369),_0x27874c),_0x34bf65(0x1d9);const {isPrimaryKey:_0xd01072,dbtableConfig:_0x27667d}=_0x3e74ad;if(_0xd01072)return 0x1;if(_0x27667d&&typeof _0x27667d===_0x34bf65(0x1f8)){const _0x1768f8=_0x27667d[_0x34bf65(0x1c4)]?.[_0x34bf65(0x1aa)]===_0x586658,_0x2437fd=_0x27667d[_0x34bf65(0x2ac)]?.['fieldName']===_0x586658;if(_0x1768f8||_0x2437fd){if(_0x3d2969&&typeof _0x3d2969===_0x34bf65(0x298)&&_0x3d2969[_0x34bf65(0x2cc)]()['includes'](_0x34bf65(0x37b)))return Date[_0x34bf65(0x25b)]();return new Date()['toISOString']()[_0x34bf65(0x1c2)]('T','\x20')[_0x34bf65(0x2dc)]('.')[0x0];}}const _0x4fb60c={..._0x3e74ad,'fieldCode':_0x586658};if(_0x3d2969&&typeof _0x3d2969===_0x34bf65(0x298)){const _0x31b4ce=_0x3d2969[_0x34bf65(0x2cc)](),_0x21f342=TYPE_VALUE_GENERATORS[_0x31b4ce];if(_0x21f342)return _0x21f342(_0x4fb60c);}if(_0x27874c&&typeof _0x27874c===_0x34bf65(0x298)){const _0x3b01d0=_0x27874c['toUpperCase'](),_0x73464f=TYPE_VALUE_GENERATORS[_0x3b01d0];if(_0x73464f)return _0x73464f(_0x4fb60c);}return _0x34bf65(0x1d9);}function generateExampleFromSchema(_0xad220b,_0x205fed){const _0x5e90c8=a0_0x22b77d;if(!_0xad220b||typeof _0xad220b!==_0x5e90c8(0x1f8))return{};if(Array[_0x5e90c8(0x228)](_0xad220b)){if(_0xad220b['length']>0x0)return[generateExampleFromSchema(_0xad220b[0x0],_0x205fed)];return[];}const _0x4170c8={};return Object[_0x5e90c8(0x338)](_0xad220b)[_0x5e90c8(0x24c)](_0x4f3fc1=>{const _0x5787a1=_0x5e90c8,_0x48e02a=_0xad220b[_0x4f3fc1];if(_0x48e02a&&typeof _0x48e02a==='object'&&!Array[_0x5787a1(0x228)](_0x48e02a)&&_0x48e02a['type']){const _0x5280c6=_0x48e02a,_0x55e78d=_0x5280c6[_0x5787a1(0x1ae)],_0x21ea0a=_0x5280c6[_0x5787a1(0x2d6)];typeof _0x55e78d==='string'?_0x4170c8[_0x4f3fc1]=generateExampleValue(_0x4f3fc1,_0x55e78d,undefined,{'description':_0x21ea0a,'dbtableConfig':_0x205fed}):_0x4170c8[_0x4f3fc1]=_0x5787a1(0x1d9);}else{if(Array[_0x5787a1(0x228)](_0x48e02a))_0x4170c8[_0x4f3fc1]=_0x48e02a[_0x5787a1(0x251)]>0x0?[generateExampleFromSchema(_0x48e02a[0x0],_0x205fed)]:[];else _0x48e02a&&typeof _0x48e02a===_0x5787a1(0x1f8)?_0x4170c8[_0x4f3fc1]=generateExampleFromSchema(_0x48e02a,_0x205fed):_0x4170c8[_0x4f3fc1]=_0x48e02a;}}),_0x4170c8;}function parseRequestBody(_0x30e0a3){const _0x134e27=a0_0x22b77d;if(!_0x30e0a3)return{};try{return JSON['parse'](_0x30e0a3);}catch(_0x32711b){return!![]&&console[_0x134e27(0x189)](_0x134e27(0x1d6),_0x32711b),{};}}function parseResponseBody(_0x44f42a){const _0x5b3910=a0_0x22b77d;if(!_0x44f42a)return null;try{const _0x48895f=JSON[_0x5b3910(0x2f6)](_0x44f42a);return _0x48895f[_0x5b3910(0x2fd)]||_0x48895f;}catch(_0x424890){return!![]&&console['warn'](_0x5b3910(0x18c),_0x424890),null;}}function generateRequestExample(_0xde47f2,_0x59da92,_0x336a85,_0x185024){const _0x376366=a0_0x22b77d,_0x34bbe5={};if(!Array[_0x376366(0x228)](_0xde47f2))return!![]&&console[_0x376366(0x189)](_0x376366(0x286),_0xde47f2),_0x34bbe5;return _0xde47f2['forEach'](_0x179bff=>{const _0x2342e4=_0x376366;if(!_0x179bff||typeof _0x179bff!=='object'){!![]&&console[_0x2342e4(0x189)](_0x2342e4(0x2f0),_0x179bff);return;}if(typeof _0x179bff[_0x2342e4(0x216)]!==_0x2342e4(0x298)||typeof _0x179bff[_0x2342e4(0x1ae)]!==_0x2342e4(0x298)){!![]&&console[_0x2342e4(0x189)]('[generateRequestExample]\x20Invalid\x20field.code\x20or\x20field.type:',_0x179bff);return;}const _0x293318=parseFieldExtend(_0x179bff),_0x2fa842=_0x179bff[_0x2342e4(0x216)]===_0x336a85||Boolean(_0x293318?.['primaryKey']),_0x2fe81e=generateExampleValue(_0x179bff[_0x2342e4(0x216)],_0x179bff['type'],typeof _0x179bff[_0x2342e4(0x1b5)]===_0x2342e4(0x298)?_0x179bff[_0x2342e4(0x1b5)]:undefined,{'fieldInfo':_0x293318,'isPrimaryKey':_0x2fa842,'description':_0x179bff[_0x2342e4(0x2d6)]||_0x179bff[_0x2342e4(0x360)],'dbtableConfig':_0x185024});_0x34bbe5[_0x179bff[_0x2342e4(0x216)]]=_0x2fe81e;}),_0x59da92==='getList'&&(_0x34bbe5['currentPage']=0x1,_0x34bbe5['pageSize']=0xa),_0x34bbe5;}function formatEnumValue(_0xf5d836,_0x5dfac9){const _0xdb6495=a0_0x22b77d;if(_0xf5d836['multiple']&&Array[_0xdb6495(0x228)](_0x5dfac9))return _0x5dfac9['map'](_0x34a419=>_0xf5d836[_0xdb6495(0x2aa)][String(_0x34a419)]||String(_0x34a419))[_0xdb6495(0x2af)](',\x20');return _0xf5d836[_0xdb6495(0x2aa)][String(_0x5dfac9)]||String(_0x5dfac9);}function formatOptionsForDoc(_0x42df34){const _0x4f0719=a0_0x22b77d;return _0x42df34[_0x4f0719(0x318)](_0x4a2a79=>_0x4a2a79['value']+'('+_0x4a2a79[_0x4f0719(0x262)]+')')['join'](',\x20');}function formatOptionsAsMarkdownList(_0x489480,_0x2d47ab=0x0){const _0x1e4646=a0_0x22b77d,_0x135a40='\x20\x20'[_0x1e4646(0x1bc)](_0x2d47ab),_0x58a7bd=[];return _0x489480[_0x1e4646(0x24c)](_0x377179=>{const _0x30a788=_0x1e4646;_0x58a7bd[_0x30a788(0x1cf)](_0x135a40+_0x30a788(0x324)+_0x377179[_0x30a788(0x2cb)]+'`:\x20'+_0x377179[_0x30a788(0x262)]),_0x377179[_0x30a788(0x24a)]&&_0x377179['children']['length']>0x0&&_0x58a7bd[_0x30a788(0x1cf)](formatOptionsAsMarkdownList(_0x377179[_0x30a788(0x24a)],_0x2d47ab+0x1));}),_0x58a7bd[_0x1e4646(0x2af)]('\x0a');}class DbtableConfig{[a0_0x22b77d(0x1fc)];constructor(_0x405934){this['_raw']={..._0x405934};}get['dbId'](){return this['_raw']['dbId'];}get[a0_0x22b77d(0x314)](){const _0x448a22=a0_0x22b77d;return this[_0x448a22(0x1fc)][_0x448a22(0x314)]??this[_0x448a22(0x1fc)][_0x448a22(0x29c)]?.[_0x448a22(0x314)];}get[a0_0x22b77d(0x2d0)](){const _0xbb9b70=a0_0x22b77d;return this[_0xbb9b70(0x1fc)][_0xbb9b70(0x2d0)];}get[a0_0x22b77d(0x2a8)](){const _0x2fed63=a0_0x22b77d;return this[_0x2fed63(0x1fc)][_0x2fed63(0x2a8)];}get[a0_0x22b77d(0x276)](){const _0xb15f9f=a0_0x22b77d;return this['_raw'][_0xb15f9f(0x276)];}get[a0_0x22b77d(0x344)](){const _0x4b4ffa=a0_0x22b77d;return this[_0x4b4ffa(0x1fc)][_0x4b4ffa(0x344)];}get[a0_0x22b77d(0x1d1)](){const _0x4061ee=a0_0x22b77d;return this[_0x4061ee(0x1fc)][_0x4061ee(0x1d1)];}get[a0_0x22b77d(0x1c4)](){const _0x154cce=a0_0x22b77d;return this[_0x154cce(0x1fc)][_0x154cce(0x1c4)];}get[a0_0x22b77d(0x2ac)](){const _0x485ace=a0_0x22b77d;return this[_0x485ace(0x1fc)][_0x485ace(0x2ac)];}get[a0_0x22b77d(0x2cd)](){const _0x4ca7b1=a0_0x22b77d;return this['_raw'][_0x4ca7b1(0x2cd)];}get[a0_0x22b77d(0x29b)](){const _0x96bd83=a0_0x22b77d;return this[_0x96bd83(0x1fc)][_0x96bd83(0x29b)];}get[a0_0x22b77d(0x32e)](){const _0x117cde=a0_0x22b77d;return this['_raw'][_0x117cde(0x32e)];}get[a0_0x22b77d(0x255)](){const _0x4473b5=a0_0x22b77d;return this[_0x4473b5(0x1fc)]['modifierNameField'];}get[a0_0x22b77d(0x29c)](){const _0xb7e607=a0_0x22b77d;return this['_raw'][_0xb7e607(0x29c)];}[a0_0x22b77d(0x37c)](){const _0x4b4961=a0_0x22b77d;if(!this['_raw'][_0x4b4961(0x1c0)])return[];return this[_0x4b4961(0x1fc)][_0x4b4961(0x1c0)][_0x4b4961(0x2dc)](',')[_0x4b4961(0x318)](_0x5dd857=>_0x5dd857[_0x4b4961(0x2f5)]())[_0x4b4961(0x1cb)](Boolean);}[a0_0x22b77d(0x355)](){const _0x5b920f=a0_0x22b77d;return this[_0x5b920f(0x1fc)][_0x5b920f(0x1c0)];}[a0_0x22b77d(0x394)](_0x3f9833){return this['getAllFieldsArray']()['includes'](_0x3f9833);}[a0_0x22b77d(0x1b3)](){const _0x214349=a0_0x22b77d;return Boolean(this[_0x214349(0x1fc)][_0x214349(0x2d0)]);}['hasDblinkInfo'](){const _0x487bd3=a0_0x22b77d;return Boolean(this[_0x487bd3(0x1fc)][_0x487bd3(0x29c)]);}[a0_0x22b77d(0x37f)](){const _0x1b9b2a=a0_0x22b77d;return Boolean(this[_0x1b9b2a(0x1fc)][_0x1b9b2a(0x1d1)]?.[_0x1b9b2a(0x1aa)]);}[a0_0x22b77d(0x196)](){const _0x5c2cde=a0_0x22b77d;return Boolean(this[_0x5c2cde(0x1fc)][_0x5c2cde(0x1c4)]?.[_0x5c2cde(0x1aa)]);}[a0_0x22b77d(0x2c6)](){const _0x5d6489=a0_0x22b77d;return Boolean(this[_0x5d6489(0x1fc)][_0x5d6489(0x2ac)]?.[_0x5d6489(0x1aa)]);}[a0_0x22b77d(0x1d5)](){const _0x45e808=a0_0x22b77d;return Boolean(this[_0x45e808(0x1fc)][_0x45e808(0x2cd)]?.[_0x45e808(0x1aa)]);}[a0_0x22b77d(0x23a)](){const _0x2bf4c0=a0_0x22b77d;return Boolean(this[_0x2bf4c0(0x1fc)][_0x2bf4c0(0x32e)]?.[_0x2bf4c0(0x1aa)]);}['isPrimaryKeyField'](_0x5958db){const _0x56eeb4=a0_0x22b77d;return this[_0x56eeb4(0x1fc)][_0x56eeb4(0x276)]===_0x5958db;}[a0_0x22b77d(0x2d4)](_0x2f651c){const _0x19a637=a0_0x22b77d;return this[_0x19a637(0x289)](_0x2f651c)||this[_0x19a637(0x1fc)]['logicField']?.[_0x19a637(0x1aa)]===_0x2f651c||this[_0x19a637(0x1fc)][_0x19a637(0x1c4)]?.['fieldName']===_0x2f651c||this[_0x19a637(0x1fc)][_0x19a637(0x2ac)]?.[_0x19a637(0x1aa)]===_0x2f651c||this['_raw']['creatorIdField']?.[_0x19a637(0x1aa)]===_0x2f651c||this[_0x19a637(0x1fc)][_0x19a637(0x29b)]?.['fieldName']===_0x2f651c||this[_0x19a637(0x1fc)][_0x19a637(0x32e)]?.['fieldName']===_0x2f651c||this[_0x19a637(0x1fc)]['modifierNameField']?.['fieldName']===_0x2f651c;}['getDatabaseName'](){const _0x32be16=a0_0x22b77d;return this[_0x32be16(0x1fc)][_0x32be16(0x29c)]?.[_0x32be16(0x314)];}['getDatabaseType'](){const _0x1247fe=a0_0x22b77d;return this[_0x1247fe(0x1fc)][_0x1247fe(0x29c)]?.[_0x1247fe(0x1b5)];}['getDatabaseVersion'](){const _0xcf6e16=a0_0x22b77d;return this[_0xcf6e16(0x1fc)][_0xcf6e16(0x29c)]?.['dbVersion'];}[a0_0x22b77d(0x2f4)](){const _0x340c53=a0_0x22b77d;return this['_raw'][_0x340c53(0x29c)]?.[_0x340c53(0x1bd)];}['getAppCode'](){const _0xcb47e1=a0_0x22b77d;return this[_0xcb47e1(0x1fc)][_0xcb47e1(0x29c)]?.['appCode'];}[a0_0x22b77d(0x237)](){const _0x9b6ab7=a0_0x22b77d;return this['_raw'][_0x9b6ab7(0x29c)]?.[_0x9b6ab7(0x306)];}[a0_0x22b77d(0x188)](){const _0x39c70a=a0_0x22b77d;return{'hasTableName':this['hasTableName'](),'hasDblinkInfo':this[_0x39c70a(0x2c0)](),'fieldCount':this[_0x39c70a(0x37c)]()[_0x39c70a(0x251)],'systemFields':{'hasLogicField':this['hasLogicField'](),'hasCreateTimeField':this[_0x39c70a(0x196)](),'hasUpdateTimeField':this['hasUpdateTimeField'](),'hasCreatorIdField':this['hasCreatorIdField'](),'hasModifierIdField':this[_0x39c70a(0x23a)]()}};}[a0_0x22b77d(0x2b3)](){const _0x5c896d=a0_0x22b77d;return{'tableName':this['tableName'],'pkField':this[_0x5c896d(0x276)],'datasetKey':this['datasetKey'],'dbId':this[_0x5c896d(0x2c1)]};}[a0_0x22b77d(0x385)](){const _0x3887c6=a0_0x22b77d;return{...this[_0x3887c6(0x1fc)]};}[a0_0x22b77d(0x2b6)](){return{...this['_raw']};}[a0_0x22b77d(0x2a5)](){const _0x50bd9f=a0_0x22b77d,_0x14622a=this['tableName']||_0x50bd9f(0x1e1),_0x11e686=this['getAllFieldsArray']()['length'];return _0x50bd9f(0x18a)+_0x14622a+',\x20fields:\x20'+_0x11e686+')';}static[a0_0x22b77d(0x2a6)](){return new DbtableConfig({});}}class DatasetItem{[a0_0x22b77d(0x1fc)];constructor(_0x2498a0){const _0x5546e9=a0_0x22b77d,_0x32d127=_0x2498a0[_0x5546e9(0x2e6)]||_0x2498a0[_0x5546e9(0x216)]||_0x2498a0['modelCode'];this[_0x5546e9(0x1fc)]={..._0x2498a0,'datasetCode':_0x32d127};}get['id'](){const _0xcf84ee=a0_0x22b77d;return this[_0xcf84ee(0x1fc)]['id'];}get[a0_0x22b77d(0x360)](){const _0x3394ea=a0_0x22b77d;return this[_0x3394ea(0x1fc)][_0x3394ea(0x360)];}[a0_0x22b77d(0x292)](){return this['name'];}get[a0_0x22b77d(0x2e6)](){const _0x34e986=a0_0x22b77d;return this[_0x34e986(0x1fc)][_0x34e986(0x2e6)]||'';}get['dbtableConfig'](){const _0x30d366=a0_0x22b77d;if(!this[_0x30d366(0x1fc)][_0x30d366(0x2db)])return null;return new DbtableConfig(this['_raw'][_0x30d366(0x2db)]);}[a0_0x22b77d(0x26d)](){const _0x3063bb=a0_0x22b77d;return this[_0x3063bb(0x1fc)][_0x3063bb(0x2db)];}['getDbName'](){const _0x344bc4=a0_0x22b77d;return this[_0x344bc4(0x2db)]?.[_0x344bc4(0x314)]||'';}[a0_0x22b77d(0x386)](){return getTableName(this['_raw']);}[a0_0x22b77d(0x288)](){const _0x547295=a0_0x22b77d;return getTableKey(this[_0x547295(0x386)]());}[a0_0x22b77d(0x27c)](){return generateModelKeyFromCode(this['datasetCode']);}[a0_0x22b77d(0x2f1)](){return isVirtualTableName(this['getTableName']());}[a0_0x22b77d(0x370)](){return getTableKey(this['getTableName']());}[a0_0x22b77d(0x2b3)](){const _0x4d0731=a0_0x22b77d,_0x311e16=getTableKey(this[_0x4d0731(0x386)]());return{'key':_0x311e16,'alias':_0x311e16,'tableName':this[_0x4d0731(0x386)](),'datasetCode':this[_0x4d0731(0x2e6)],'name':this[_0x4d0731(0x360)]};}[a0_0x22b77d(0x385)](){const _0x3e33b6=a0_0x22b77d;return{...this[_0x3e33b6(0x1fc)],'datasetCode':this[_0x3e33b6(0x2e6)]};}[a0_0x22b77d(0x2b6)](){const _0x2b7e0a=a0_0x22b77d;return{...this[_0x2b7e0a(0x1fc)]};}[a0_0x22b77d(0x35d)](){const _0x3949db=a0_0x22b77d,_0x3d0e1b=this[_0x3949db(0x2db)];return _0x3d0e1b!==null&&_0x3d0e1b['hasTableName']();}['getExtendField'](_0x3fd52b){const _0x582b63=a0_0x22b77d;return this[_0x582b63(0x1fc)][_0x3fd52b];}[a0_0x22b77d(0x1dd)](_0x48de61){return _0x48de61 in this['_raw'];}['toString'](){const _0x578496=a0_0x22b77d;return _0x578496(0x346)+this[_0x578496(0x360)]+',\x20'+this[_0x578496(0x2e6)]+')';}}class Operation{[a0_0x22b77d(0x360)];[a0_0x22b77d(0x1fc)];[a0_0x22b77d(0x321)];constructor(_0x557227,_0x4c5a1c,_0x27391a){const _0x36cb32=a0_0x22b77d;this[_0x36cb32(0x360)]=_0x557227,this[_0x36cb32(0x1fc)]=_0x4c5a1c,this[_0x36cb32(0x321)]=_0x27391a;}[a0_0x22b77d(0x292)](){const _0x3e1375=a0_0x22b77d;return this[_0x3e1375(0x360)];}[a0_0x22b77d(0x331)](){const _0x2ea5c7=a0_0x22b77d,_0x37f697=this[_0x2ea5c7(0x328)]();return _0x37f697?OPERATION_TYPE_DISPLAY_NAME[_0x37f697]:this['name'];}[a0_0x22b77d(0x328)](){const _0x2d64e8=a0_0x22b77d;return parseOperationType(this[_0x2d64e8(0x360)]);}[a0_0x22b77d(0x2bd)](){const _0x204b2f=a0_0x22b77d;return this['_raw']!=null&&this[_0x204b2f(0x1fc)]!==![];}[a0_0x22b77d(0x38e)](){const _0x163623=a0_0x22b77d;if(!this[_0x163623(0x2bd)]()||!this[_0x163623(0x1fc)])return'';const _0x5551c3=this[_0x163623(0x1fc)][_0x163623(0x377)];return typeof _0x5551c3===_0x163623(0x298)?_0x5551c3:_0x163623(0x391);}[a0_0x22b77d(0x201)](){const _0x209e97=a0_0x22b77d;if(!this[_0x209e97(0x2bd)]()||!this[_0x209e97(0x1fc)])return'';const _0x33756b=this[_0x209e97(0x1fc)][_0x209e97(0x1a7)];return typeof _0x33756b==='string'?_0x33756b:'';}['getFullUrl'](){const _0x1e41a5=a0_0x22b77d;if(!this[_0x1e41a5(0x2bd)]()||!this[_0x1e41a5(0x1fc)])return'';const {host:_0x294a71,path:_0x3a2554}=this['_raw'],_0x43181b=typeof _0x294a71===_0x1e41a5(0x298)?_0x294a71:'',_0x57847b=typeof _0x3a2554===_0x1e41a5(0x298)?_0x3a2554:'';return _0x43181b&&_0x57847b?''+_0x43181b+_0x57847b:_0x57847b;}[a0_0x22b77d(0x20c)](){const _0x307502=a0_0x22b77d;return Object[_0x307502(0x338)](this[_0x307502(0x285)]());}['parseRawRequestBody'](){const _0x390fa4=a0_0x22b77d;if(!this[_0x390fa4(0x2bd)]()||typeof this[_0x390fa4(0x1fc)]==='boolean'||!this[_0x390fa4(0x1fc)]?.[_0x390fa4(0x2de)])return{};const _0x3df4f9=this[_0x390fa4(0x1fc)]['requestBody'];if(typeof _0x3df4f9!==_0x390fa4(0x298))return!![]&&console['warn'](_0x390fa4(0x26c),_0x3df4f9),{};return parseRequestBody(_0x3df4f9);}[a0_0x22b77d(0x2fb)](){const _0x412182=a0_0x22b77d;if(!this[_0x412182(0x2bd)]()||typeof this[_0x412182(0x1fc)]==='boolean'||!this[_0x412182(0x1fc)]?.[_0x412182(0x2df)])return null;const _0x1b0e39=this[_0x412182(0x1fc)][_0x412182(0x2df)];if(typeof _0x1b0e39!==_0x412182(0x298))return!![]&&console[_0x412182(0x189)]('[Operation.parseRawResponseBody]\x20responseBody\x20is\x20not\x20a\x20string:',_0x1b0e39),null;return parseResponseBody(_0x1b0e39);}[a0_0x22b77d(0x354)](_0x1f098b,_0x10c793,_0x2514a1,_0x353fe4){const _0x126713=a0_0x22b77d;return generateExampleValue(_0x1f098b,_0x10c793,_0x2514a1,{'isPrimaryKey':_0x353fe4?.[_0x126713(0x28f)],'description':_0x353fe4?.[_0x126713(0x2d6)],'dbtableConfig':this[_0x126713(0x321)][_0x126713(0x2db)]});}[a0_0x22b77d(0x1bf)](_0x2d6342){const _0x3256f0=a0_0x22b77d;if(!Array[_0x3256f0(0x228)](this[_0x3256f0(0x321)][_0x3256f0(0x210)])){!![]&&console[_0x3256f0(0x189)]('[Operation.getFieldDefinition]\x20context.fields\x20is\x20not\x20an\x20array');return;}if(typeof _0x2d6342!==_0x3256f0(0x298)){!![]&&console['warn']('[Operation.getFieldDefinition]\x20fieldCode\x20is\x20not\x20a\x20string:',_0x2d6342);return;}return this[_0x3256f0(0x321)][_0x3256f0(0x210)][_0x3256f0(0x1a9)](_0x459b2b=>_0x459b2b&&_0x459b2b[_0x3256f0(0x216)]===_0x2d6342);}['toString'](){const _0x49eeb4=a0_0x22b77d,_0x193676=this[_0x49eeb4(0x2bd)]()?'启用':'禁用';return this[_0x49eeb4(0x331)]()+'('+this[_0x49eeb4(0x360)]+',\x20'+_0x193676+')';}['getOperators'](){return[];}['getFieldOperators'](_0x5708a5){return[];}[a0_0x22b77d(0x267)](_0x580338){const _0xbb18c6=a0_0x22b77d,_0x3f354a=this[_0xbb18c6(0x292)](),_0x32da8f=_0xbb18c6(0x36f)+_0x580338+'.'+_0x3f354a+'(...);\x0aconsole.log(data);\x20',_0x20217b=_0xbb18c6(0x1f2)+_0x580338+'.'+_0x3f354a+_0xbb18c6(0x376);return{'successCode':_0x32da8f,'errorCode':_0x20217b};}[a0_0x22b77d(0x385)](){const _0x2b471b=a0_0x22b77d;return{'name':this[_0x2b471b(0x292)](),'displayName':this[_0x2b471b(0x331)](),'type':this[_0x2b471b(0x328)](),'enabled':this['isEnabled'](),'method':this[_0x2b471b(0x38e)](),'path':this[_0x2b471b(0x201)](),'fullUrl':this[_0x2b471b(0x225)](),'requestFields':this[_0x2b471b(0x20c)](),'requestParams':this[_0x2b471b(0x285)](),'responseSchema':this[_0x2b471b(0x337)](),'requestExample':this[_0x2b471b(0x1ab)](),'responseExample':this[_0x2b471b(0x1f7)]()};}}class GenericOperation extends Operation{[a0_0x22b77d(0x285)](){const _0x3a1364=a0_0x22b77d;return this[_0x3a1364(0x390)]();}[a0_0x22b77d(0x337)](){const _0x20aec1=a0_0x22b77d;return this[_0x20aec1(0x2fb)]();}[a0_0x22b77d(0x1ab)](){const _0x18d4c3=a0_0x22b77d,_0xc6a5ff={},_0x4a7365=this[_0x18d4c3(0x285)](),_0x192e94=this[_0x18d4c3(0x328)]();if(Object[_0x18d4c3(0x338)](_0x4a7365)[_0x18d4c3(0x251)]===0x0&&_0x192e94){const _0x3d011b=getFieldsForOperation(this[_0x18d4c3(0x321)][_0x18d4c3(0x210)],_0x192e94,this[_0x18d4c3(0x321)]['pkField']);return _0x3d011b['forEach'](_0x258e2d=>{const _0x13ce57=_0x18d4c3,_0x147bd4=this[_0x13ce57(0x354)](_0x258e2d[_0x13ce57(0x216)],_0x258e2d['type'],typeof _0x258e2d['dbType']==='string'?_0x258e2d[_0x13ce57(0x1b5)]:undefined,{'isPrimaryKey':_0x258e2d[_0x13ce57(0x216)]===this[_0x13ce57(0x321)][_0x13ce57(0x276)],'description':_0x258e2d['description']||_0x258e2d[_0x13ce57(0x360)]});_0xc6a5ff[_0x258e2d[_0x13ce57(0x216)]]=_0x147bd4;}),_0xc6a5ff;}return Object[_0x18d4c3(0x223)](_0x4a7365)['forEach'](([_0x1e71d2,_0x5a2ebc])=>{const _0x1f25f4=_0x18d4c3,_0x2af70c=_0x5a2ebc;let _0x2f633a;if(typeof _0x2af70c['type']===_0x1f25f4(0x298))_0x2f633a=_0x2af70c[_0x1f25f4(0x1ae)];else _0x2af70c[_0x1f25f4(0x1ae)]&&typeof _0x2af70c[_0x1f25f4(0x1ae)]===_0x1f25f4(0x1f8)?_0x2f633a=_0x2af70c['type'][_0x1f25f4(0x1ae)]||_0x1f25f4(0x300):_0x2f633a='TEXT';const _0x1981ed=_0x2af70c[_0x1f25f4(0x2d6)],_0x374105=this['getFieldDefinition'](_0x1e71d2);if(_0x1e71d2==='currentPage')_0xc6a5ff[_0x1e71d2]=0x1;else{if(_0x1e71d2==='pageSize')_0xc6a5ff[_0x1e71d2]=0xa;else _0x1e71d2==='id'?_0xc6a5ff[_0x1e71d2]=0x1:_0xc6a5ff[_0x1e71d2]=this[_0x1f25f4(0x354)](_0x1e71d2,_0x2f633a,typeof _0x374105?.[_0x1f25f4(0x1b5)]===_0x1f25f4(0x298)?_0x374105[_0x1f25f4(0x1b5)]:undefined,{'isPrimaryKey':_0x1e71d2===this[_0x1f25f4(0x321)][_0x1f25f4(0x276)]||_0x1e71d2==='id','description':_0x1981ed||_0x374105?.[_0x1f25f4(0x2d6)]||_0x374105?.[_0x1f25f4(0x360)]});}}),_0xc6a5ff;}[a0_0x22b77d(0x1f7)](){const _0x12d078=a0_0x22b77d,_0x1a8a6c=this[_0x12d078(0x337)]();if(!_0x1a8a6c)return{'success':!![],'msg':'操作成功','errorMsg':'','errorCode':_0x12d078(0x28b),'data':null};return this['generateFromSchema'](_0x1a8a6c);}[a0_0x22b77d(0x253)](_0x374dbb){const _0x1bac58=a0_0x22b77d;if(!_0x374dbb||typeof _0x374dbb!==_0x1bac58(0x1f8))return{};if(Array[_0x1bac58(0x228)](_0x374dbb)){if(_0x374dbb[_0x1bac58(0x251)]>0x0)return[this[_0x1bac58(0x253)](_0x374dbb[0x0])];return[];}const _0x20d0a6={};return Object[_0x1bac58(0x338)](_0x374dbb)[_0x1bac58(0x24c)](_0x27a352=>{const _0x5d6513=_0x1bac58,_0x1a7082=_0x374dbb[_0x27a352];if(_0x1a7082&&typeof _0x1a7082===_0x5d6513(0x1f8)&&!Array['isArray'](_0x1a7082)&&_0x1a7082[_0x5d6513(0x1ae)]){const _0x1b8d2e=_0x1a7082;let _0xf3e0dc;if(typeof _0x1b8d2e[_0x5d6513(0x1ae)]===_0x5d6513(0x298))_0xf3e0dc=_0x1b8d2e[_0x5d6513(0x1ae)];else _0x1b8d2e[_0x5d6513(0x1ae)]&&typeof _0x1b8d2e[_0x5d6513(0x1ae)]==='object'?_0xf3e0dc=_0x1b8d2e[_0x5d6513(0x1ae)][_0x5d6513(0x1ae)]||_0x5d6513(0x300):_0xf3e0dc=_0x5d6513(0x300);const _0x310145=_0x1b8d2e[_0x5d6513(0x2d6)];_0x20d0a6[_0x27a352]=this['generateFieldExample'](_0x27a352,_0xf3e0dc,undefined,{'description':_0x310145});}else{if(Array[_0x5d6513(0x228)](_0x1a7082))_0x20d0a6[_0x27a352]=_0x1a7082[_0x5d6513(0x251)]>0x0?[this[_0x5d6513(0x253)](_0x1a7082[0x0])]:[];else _0x1a7082&&typeof _0x1a7082===_0x5d6513(0x1f8)?_0x20d0a6[_0x27a352]=this[_0x5d6513(0x253)](_0x1a7082):_0x20d0a6[_0x27a352]=_0x1a7082;}}),_0x20d0a6;}[a0_0x22b77d(0x21e)](_0x348d84,_0x10a5d6){const _0x64be3=a0_0x22b77d,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x10a5d6||{},_0x2f9cb0=this['getName'](),_0x1929b5=this[_0x64be3(0x328)](),_0x24b93c=this[_0x64be3(0x20c)](),_0x42352b=this[_0x64be3(0x1ab)](),_0x24d39e=_0x2d2128=>{const _0x1529b1=_0x64be3;if(Object[_0x1529b1(0x338)](_0x2d2128)[_0x1529b1(0x251)]===0x0)return'{}';const _0x3862ee=JSON['stringify'](_0x2d2128,null,0x2)[_0x1529b1(0x2dc)]('\x0a')[_0x1529b1(0x318)]((_0x46eb74,_0xb72e9e)=>_0xb72e9e===0x0?_0x46eb74:indent+_0x46eb74)[_0x1529b1(0x2af)]('\x0a');return _0x3862ee;};switch(_0x1929b5){case _0x64be3(0x26e):case _0x64be3(0x23b):return _0x64be3(0x24b)+_0x348d84+'.'+_0x2f9cb0+'(id);';case _0x64be3(0x38d):if(useFullExample&&Object['keys'](_0x42352b)['length']>0x0)return'const\x20result\x20=\x20await\x20client.models.'+_0x348d84+'.'+_0x2f9cb0+'(id,\x20'+_0x24d39e(_0x42352b)+');';return _0x64be3(0x24b)+_0x348d84+'.'+_0x2f9cb0+_0x64be3(0x212);case _0x64be3(0x2ff):case _0x64be3(0x2bf):case _0x64be3(0x382):default:if(_0x24b93c['length']>0x0){if(useFullExample&&Object[_0x64be3(0x338)](_0x42352b)[_0x64be3(0x251)]>0x0)return _0x64be3(0x24b)+_0x348d84+'.'+_0x2f9cb0+'('+_0x24d39e(_0x42352b)+');';else{const _0x53a03e=Object['keys'](_0x42352b);if(_0x53a03e['length']>0x0){const _0x343b17=_0x53a03e[_0x64be3(0x1e3)](0x0,0x2)['join'](',\x20');return _0x64be3(0x24b)+_0x348d84+'.'+_0x2f9cb0+_0x64be3(0x1e9)+_0x343b17+_0x64be3(0x19d);}else return'const\x20result\x20=\x20await\x20client.models.'+_0x348d84+'.'+_0x2f9cb0+_0x64be3(0x2e3);}}else return _0x64be3(0x24b)+_0x348d84+'.'+_0x2f9cb0+_0x64be3(0x358);}}[a0_0x22b77d(0x312)](){const _0x2119a8=a0_0x22b77d;return[{'title':_0x2119a8(0x2fa),'data':this[_0x2119a8(0x1ab)]()}];}}class GetSelectOptionsOperation extends GenericOperation{['getRequestParams'](){const _0x4c7f35=a0_0x22b77d,_0x8c000b=super[_0x4c7f35(0x285)](),_0x1adf48=Object[_0x4c7f35(0x338)](_0x8c000b);return(_0x1adf48['length']===0x0||_0x1adf48[_0x4c7f35(0x251)]===0x1&&_0x1adf48[0x0]===_0x4c7f35(0x216))&&(!_0x8c000b['code']&&(_0x8c000b[_0x4c7f35(0x216)]={'type':_0x4c7f35(0x32d),'description':'字段编码'}),_0x8c000b[_0x4c7f35(0x262)]={'type':_0x4c7f35(0x32d),'description':_0x4c7f35(0x25a)}),_0x8c000b;}[a0_0x22b77d(0x1ab)](){const _0x3a8c34=a0_0x22b77d;return{'code':_0x3a8c34(0x1c8),'label':'field_name'};}['generateSDKCallCode'](_0x3af29c){const _0x510a5c=a0_0x22b77d,_0x2c8b90=this[_0x510a5c(0x292)]();return'const\x20result\x20=\x20await\x20client.models.'+_0x3af29c+'.'+_0x2c8b90+_0x510a5c(0x2d3);}}class GetListOperation extends GenericOperation{[a0_0x22b77d(0x285)](){const _0x3ac12e=a0_0x22b77d,_0x31dd2a=super['getRequestParams'](),{currentPage:_0x10398b,pageSize:_0x1e69f6,..._0x45551b}=_0x31dd2a,_0x44cf58={};return Object[_0x3ac12e(0x223)](_0x45551b)[_0x3ac12e(0x24c)](([_0x763a43,_0x5c2f6e])=>{const _0x436f0d=_0x3ac12e;if(typeof _0x5c2f6e===_0x436f0d(0x1f8)&&_0x5c2f6e!==null){const _0x5ea266=_0x5c2f6e,_0x1b1d00=_0x5ea266[_0x436f0d(0x2d6)]||'';_0x44cf58[_0x763a43]={..._0x5ea266,'description':_0x1b1d00?_0x1b1d00+'(支持单值或数组)':_0x436f0d(0x2be)};}else _0x44cf58[_0x763a43]=_0x5c2f6e;}),{..._0x44cf58,'currentPage':{...typeof _0x10398b===_0x3ac12e(0x1f8)?_0x10398b:{},'type':_0x3ac12e(0x1ad),'description':_0x3ac12e(0x1e8)},'pageSize':{...typeof _0x1e69f6==='object'?_0x1e69f6:{},'type':_0x3ac12e(0x1ad),'description':_0x3ac12e(0x34b)}};}['generateRequestExample'](_0x5be90c){const _0x5bc16d=a0_0x22b77d,{useArrayValues:useArrayValues=!![]}=_0x5be90c||{},_0x49007a=super['generateRequestExample'](),{currentPage:_0x56b1da,pageSize:_0x499e11,..._0x4af7ee}=_0x49007a;if(!useArrayValues)return{..._0x4af7ee,'currentPage':_0x56b1da??0x1,'pageSize':_0x499e11??0xa};const _0x554ab7={},_0x3c7a9b=['id','status','code',_0x5bc16d(0x1ae)];return Object['entries'](_0x4af7ee)[_0x5bc16d(0x24c)](([_0xe446dd,_0x5735c8],_0x3d9e65)=>{const _0x1ffd80=_0x5bc16d,_0x5a7e94=_0x3c7a9b[_0x1ffd80(0x249)](_0x174432=>_0xe446dd[_0x1ffd80(0x198)]()[_0x1ffd80(0x261)](_0x174432))||_0x3d9e65%0x3===0x0;if(_0x5a7e94&&_0x5735c8!==null&&_0x5735c8!==undefined){if(typeof _0x5735c8===_0x1ffd80(0x187))_0x554ab7[_0xe446dd]=[_0x5735c8,_0x5735c8+0x1,_0x5735c8+0x2];else typeof _0x5735c8===_0x1ffd80(0x298)?_0x554ab7[_0xe446dd]=[_0x5735c8,_0x5735c8+'_2',_0x5735c8+'_3']:_0x554ab7[_0xe446dd]=[_0x5735c8];}else _0x554ab7[_0xe446dd]=_0x5735c8;}),{..._0x554ab7,'currentPage':_0x56b1da??0x1,'pageSize':_0x499e11??0xa};}['generateSingleValueExample'](){return this['generateRequestExample']({'useArrayValues':![]});}['generateRequestAllExamples'](){const _0x1c38fd=a0_0x22b77d;return[{'title':'单值查询','description':'查询单个条件','data':this['generateSingleValueExample']()},{'title':_0x1c38fd(0x33e),'description':_0x1c38fd(0x2ea),'data':this[_0x1c38fd(0x1ab)]()}];}[a0_0x22b77d(0x21e)](_0x54c3e6,_0x3f5b1b){const _0x2e1e88=a0_0x22b77d,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x3f5b1b||{},_0x3a6236=this[_0x2e1e88(0x292)](),_0x3472f2=this[_0x2e1e88(0x1ab)]({'useArrayValues':!![]}),{currentPage:_0x3504c9,pageSize:_0x2c789a,..._0x467ff9}=_0x3472f2;if(useFullExample&&Object[_0x2e1e88(0x338)](_0x3472f2)[_0x2e1e88(0x251)]>0x0){const _0x39b1fc=Object['keys'](_0x467ff9)['length']>0x0;if(_0x39b1fc){const _0x283987=this[_0x2e1e88(0x29d)](),_0x56ac4c=_0x2e0506=>{const _0x242f29=_0x2e1e88;return JSON[_0x242f29(0x2d1)](_0x2e0506,null,0x2)['split']('\x0a')[_0x242f29(0x318)]((_0xab599e,_0x5daa06)=>_0x5daa06===0x0?_0xab599e:indent+_0xab599e)[_0x242f29(0x2af)]('\x0a');};return _0x2e1e88(0x272)+_0x54c3e6+'.'+_0x3a6236+'('+_0x56ac4c(_0x283987)+');\x0a\x0a//\x20数组查询(支持多选)\x0aconst\x20result\x20=\x20await\x20client.models.'+_0x54c3e6+'.'+_0x3a6236+'('+_0x56ac4c(_0x3472f2)+');';}else{const _0x1a4f12=JSON[_0x2e1e88(0x2d1)](_0x3472f2,null,0x2)['split']('\x0a')[_0x2e1e88(0x318)]((_0x57367a,_0x24549a)=>_0x24549a===0x0?_0x57367a:indent+_0x57367a)[_0x2e1e88(0x2af)]('\x0a');return _0x2e1e88(0x24b)+_0x54c3e6+'.'+_0x3a6236+'('+_0x1a4f12+');';}}if(Object[_0x2e1e88(0x338)](_0x467ff9)[_0x2e1e88(0x251)]>0x0){const _0x209c82=Object[_0x2e1e88(0x338)](_0x467ff9)[0x0];return _0x2e1e88(0x24b)+_0x54c3e6+'.'+_0x3a6236+'({\x20'+_0x209c82+_0x2e1e88(0x2d9);}return _0x2e1e88(0x24b)+_0x54c3e6+'.'+_0x3a6236+_0x2e1e88(0x21f);}}var FILTER_OPERATORS=[a0_0x22b77d(0x37a),a0_0x22b77d(0x18f),'$gte',a0_0x22b77d(0x1f0),a0_0x22b77d(0x277),a0_0x22b77d(0x2ed),'$in',a0_0x22b77d(0x1c7),a0_0x22b77d(0x357),a0_0x22b77d(0x1e2),a0_0x22b77d(0x1b1),a0_0x22b77d(0x28a)];class FilterOperation extends GenericOperation{constructor(_0x10ac23,_0x1b743f,_0x2f0f3a){super(_0x10ac23,_0x1b743f,_0x2f0f3a);}['getOperators'](){return FILTER_OPERATORS;}[a0_0x22b77d(0x273)](_0x6e5c99){const _0x28c33e=a0_0x22b77d,_0x339bb3=this['getFieldDefinition'](_0x6e5c99);if(!_0x339bb3)return[];return this[_0x28c33e(0x21b)](_0x339bb3[_0x28c33e(0x1ae)]);}[a0_0x22b77d(0x285)](){const _0x13d4a0=a0_0x22b77d,_0xf17f15=super[_0x13d4a0(0x285)]();return{..._0xf17f15,'where':{'type':_0x13d4a0(0x192),'description':_0x13d4a0(0x1ac),'required':![]},'select':{'type':_0x13d4a0(0x236),'description':_0x13d4a0(0x327),'required':![]},'orderBy':{'type':'Object[]','description':'排序规则','required':![]},'currentPage':{'type':_0x13d4a0(0x1ad),'description':_0x13d4a0(0x1e8),'required':![],'default':0x1},'pageSize':{'type':_0x13d4a0(0x1ad),'description':_0x13d4a0(0x34b),'required':![],'default':0xa}};}['generateRequestExample'](){const _0x593c49=a0_0x22b77d,_0x1ec81a=this[_0x593c49(0x321)][_0x593c49(0x210)]||[];if(_0x1ec81a[_0x593c49(0x251)]===0x0)return{'where':{},'currentPage':0x1,'pageSize':0x14};const _0x823f7={},_0x59bbf7=_0x1ec81a[_0x593c49(0x1e3)](0x0,Math[_0x593c49(0x1e6)](0x3,_0x1ec81a[_0x593c49(0x251)]));_0x59bbf7[_0x593c49(0x24c)](_0x1cbc14=>{const _0x239341=_0x593c49,_0x3e13d6=this['getApplicableOperators'](_0x1cbc14['type']);if(_0x3e13d6[_0x239341(0x251)]===0x0)return;const _0x489bd3=this[_0x239341(0x1d7)](_0x1cbc14['type'],_0x3e13d6),_0xd3f589=this[_0x239341(0x258)](_0x1cbc14,_0x489bd3);_0x823f7[_0x1cbc14['code']]={[_0x489bd3]:_0xd3f589};});const _0x5b3042=_0x1ec81a[_0x593c49(0x1e3)](0x0,Math['min'](0x5,_0x1ec81a['length']))['map'](_0x56c26d=>_0x56c26d['code']),_0xe8b701=_0x1ec81a[0x0]?.[_0x593c49(0x216)]||'id';return{'where':_0x823f7,'select':_0x5b3042,'orderBy':[{[_0xe8b701]:_0x593c49(0x218)}],'currentPage':0x1,'pageSize':0x14};}[a0_0x22b77d(0x21e)](_0x3caafe,_0x2e6b5f){const _0x430d0f=a0_0x22b77d,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x2e6b5f||{},_0x21c5cb=this['getName'](),_0x47b86a=this[_0x430d0f(0x1ab)](),_0x2b15a0=_0x9e1a8d=>{const _0x3b10ae=_0x430d0f;return JSON[_0x3b10ae(0x2d1)](_0x9e1a8d,null,0x2)[_0x3b10ae(0x2dc)]('\x0a')[_0x3b10ae(0x318)]((_0x5ed783,_0x93c6fd)=>_0x93c6fd===0x0?_0x5ed783:indent+_0x5ed783)[_0x3b10ae(0x2af)]('\x0a');};if(useFullExample){const _0x14253f=this['context'][_0x430d0f(0x210)]||[],_0xac20f2={'where':_0x14253f[0x0]?{[_0x14253f[0x0]['code']]:{'$eq':this['generateExampleValue'](_0x14253f[0x0],_0x430d0f(0x37a))}}:{},'select':_0x14253f[_0x430d0f(0x1e3)](0x0,0x3)[_0x430d0f(0x318)](_0x47a47d=>_0x47a47d[_0x430d0f(0x216)]),'currentPage':0x1,'pageSize':0x14};let _0x22b39d='';if(_0x14253f[_0x430d0f(0x251)]>=0x3){const _0x32444c={'$and':[]},_0x203f84=[];if(_0x14253f[_0x430d0f(0x251)]>0x0){const _0x2b0747=_0x14253f['find'](_0xb90fad=>['NUMBER',_0x430d0f(0x335),_0x430d0f(0x200)][_0x430d0f(0x261)](_0xb90fad[_0x430d0f(0x1ae)][_0x430d0f(0x2cc)]()));_0x2b0747&&_0x203f84[_0x430d0f(0x1cf)]({[_0x2b0747[_0x430d0f(0x216)]]:{'$gte':0x0,'$lte':0x64}});}if(_0x14253f['length']>0x1){const _0x50ebea=_0x14253f[_0x430d0f(0x1a9)](_0x519824=>[_0x430d0f(0x283),_0x430d0f(0x300),_0x430d0f(0x1d0)][_0x430d0f(0x261)](_0x519824['type']['toUpperCase']()));_0x50ebea&&_0x203f84[_0x430d0f(0x1cf)]({[_0x50ebea['code']]:{'$contain':_0x430d0f(0x305)}});}if(_0x203f84[_0x430d0f(0x251)]>0x0){_0x32444c[_0x430d0f(0x1b1)]=_0x203f84;const _0x5f3775={'where':_0x32444c,'select':_0x14253f[_0x430d0f(0x1e3)](0x0,0x4)['map'](_0x1f334b=>_0x1f334b[_0x430d0f(0x216)]),'orderBy':[{[_0x14253f[0x0][_0x430d0f(0x216)]]:'DESC'}],'currentPage':0x1,'pageSize':0x14};_0x22b39d=_0x430d0f(0x22f)+_0x3caafe+'.'+_0x21c5cb+'('+_0x2b15a0(_0x5f3775)+');';}}return _0x430d0f(0x280)+_0x3caafe+'.'+_0x21c5cb+'('+_0x2b15a0(_0xac20f2)+');'+_0x22b39d;}const _0x21ddfb=JSON[_0x430d0f(0x2d1)](_0x47b86a,null,0x2)[_0x430d0f(0x2dc)]('\x0a')[_0x430d0f(0x318)]((_0x57fe8c,_0x2cfc5a)=>_0x2cfc5a===0x0?_0x57fe8c:indent+_0x57fe8c)[_0x430d0f(0x2af)]('\x0a');return _0x430d0f(0x24b)+_0x3caafe+'.'+_0x21c5cb+'('+_0x21ddfb+');';}[a0_0x22b77d(0x21b)](_0x501d24){const _0x499146=a0_0x22b77d,_0x458041=_0x501d24[_0x499146(0x2cc)](),_0x161fbe=[];if([_0x499146(0x214),'INTEGER',_0x499146(0x200),_0x499146(0x2a7)][_0x499146(0x261)](_0x458041))_0x161fbe[_0x499146(0x1cf)](_0x499146(0x37a),_0x499146(0x18f),_0x499146(0x1b4),_0x499146(0x277),_0x499146(0x1f0),'$lteq',_0x499146(0x2b1));else{if(['STRING',_0x499146(0x300),_0x499146(0x1d0)][_0x499146(0x261)](_0x458041))_0x161fbe['push'](_0x499146(0x37a),_0x499146(0x18f),_0x499146(0x2b1),_0x499146(0x1c7),_0x499146(0x357),'$endWith');else{if([_0x499146(0x32f),_0x499146(0x2a1),_0x499146(0x37b)][_0x499146(0x261)](_0x458041))_0x161fbe['push']('$eq',_0x499146(0x18f),_0x499146(0x1b4),_0x499146(0x277),_0x499146(0x1f0),_0x499146(0x2ed));else[_0x499146(0x1eb),_0x499146(0x1ec)]['includes'](_0x458041)?_0x161fbe['push'](_0x499146(0x37a),_0x499146(0x18f)):_0x161fbe[_0x499146(0x1cf)](_0x499146(0x37a),'$ne');}}return _0x161fbe;}['selectBestOperator'](_0x52c2fd,_0x260fc0){const _0x3f13af=a0_0x22b77d,_0x1f988f=_0x52c2fd[_0x3f13af(0x2cc)]();if([_0x3f13af(0x214),_0x3f13af(0x335),'BIGINT',_0x3f13af(0x2a7)][_0x3f13af(0x261)](_0x1f988f))return _0x260fc0[_0x3f13af(0x261)](_0x3f13af(0x1b4))?_0x3f13af(0x1b4):_0x3f13af(0x37a);if([_0x3f13af(0x283),_0x3f13af(0x300),_0x3f13af(0x1d0)][_0x3f13af(0x261)](_0x1f988f))return _0x260fc0[_0x3f13af(0x261)](_0x3f13af(0x1c7))?_0x3f13af(0x1c7):_0x3f13af(0x37a);if([_0x3f13af(0x32f),_0x3f13af(0x2a1),_0x3f13af(0x37b)][_0x3f13af(0x261)](_0x1f988f))return _0x260fc0[_0x3f13af(0x261)](_0x3f13af(0x1b4))?_0x3f13af(0x1b4):_0x3f13af(0x37a);return _0x3f13af(0x37a);}[a0_0x22b77d(0x258)](_0x5d6ee0,_0x5e1ca7){const _0x2a65d6=a0_0x22b77d,_0x4706f0=String(_0x5d6ee0['type']||'')['toUpperCase']();if(_0x5d6ee0[_0x2a65d6(0x259)])try{const _0xbdd68=typeof _0x5d6ee0[_0x2a65d6(0x259)]==='string'?JSON[_0x2a65d6(0x2f6)](_0x5d6ee0[_0x2a65d6(0x259)]):_0x5d6ee0[_0x2a65d6(0x259)];if(_0xbdd68[_0x2a65d6(0x22e)]&&Array[_0x2a65d6(0x228)](_0xbdd68['options'])&&_0xbdd68[_0x2a65d6(0x22e)][_0x2a65d6(0x251)]>0x0){if(_0x5e1ca7===_0x2a65d6(0x2b1))return _0xbdd68[_0x2a65d6(0x22e)]['slice'](0x0,0x2)[_0x2a65d6(0x318)](_0x1b3247=>_0x1b3247[_0x2a65d6(0x2cb)]);return _0xbdd68[_0x2a65d6(0x22e)][0x0][_0x2a65d6(0x2cb)];}}catch{}if([_0x2a65d6(0x214),_0x2a65d6(0x335),_0x2a65d6(0x200),'DECIMAL']['includes'](_0x4706f0)){if(_0x5e1ca7==='$in')return[0x1,0x2,0x3];if(_0x5e1ca7==='$gte'||_0x5e1ca7==='$gteq')return 0x0;if(_0x5e1ca7===_0x2a65d6(0x277)||_0x5e1ca7===_0x2a65d6(0x2ed))return 0x64;return 0x1;}if([_0x2a65d6(0x283),_0x2a65d6(0x300),'VARCHAR']['includes'](_0x4706f0)){if(_0x5e1ca7===_0x2a65d6(0x2b1))return[_0x2a65d6(0x365),_0x2a65d6(0x30a)];if(_0x5e1ca7==='$contain')return _0x2a65d6(0x305);if(_0x5e1ca7===_0x2a65d6(0x357))return'prefix';if(_0x5e1ca7==='$endWith')return _0x2a65d6(0x34e);return _0x2a65d6(0x2cb);}if(['DATE',_0x2a65d6(0x2a1),_0x2a65d6(0x37b)][_0x2a65d6(0x261)](_0x4706f0)){if(_0x5e1ca7===_0x2a65d6(0x1b4)||_0x5e1ca7===_0x2a65d6(0x1f0))return _0x2a65d6(0x2a3);if(_0x5e1ca7===_0x2a65d6(0x277)||_0x5e1ca7===_0x2a65d6(0x2ed))return _0x2a65d6(0x31d);return'2024-01-01';}if([_0x2a65d6(0x1eb),_0x2a65d6(0x1ec)][_0x2a65d6(0x261)](_0x4706f0))return!![];return _0x5e1ca7===_0x2a65d6(0x2b1)?[_0x2a65d6(0x365),'value2']:'value';}}class ExcelExportOperation extends GenericOperation{[a0_0x22b77d(0x285)](){const _0x556333=a0_0x22b77d,_0x1fff13=super[_0x556333(0x285)]();if(Object[_0x556333(0x338)](_0x1fff13)[_0x556333(0x251)]===0x0){const _0x405fbc={};return this['context'][_0x556333(0x210)][_0x556333(0x24c)](_0x2fcb78=>{const _0x4eb49a=_0x556333;_0x2fcb78&&_0x2fcb78['code']&&(_0x405fbc[_0x2fcb78['code']]={'type':_0x2fcb78[_0x4eb49a(0x1ae)]||_0x4eb49a(0x300),'sortNum':_0x2fcb78[_0x4eb49a(0x284)],'description':_0x2fcb78[_0x4eb49a(0x2d6)]||_0x2fcb78[_0x4eb49a(0x360)]});}),_0x405fbc['currentPage']={'type':_0x556333(0x2d2),'description':_0x556333(0x352)},_0x405fbc[_0x556333(0x2e2)]={'type':'Integer','description':'每页数量(可选)'},_0x405fbc;}return _0x1fff13;}[a0_0x22b77d(0x1ab)](){const _0x201c52=a0_0x22b77d,_0x396ef6=super[_0x201c52(0x1ab)]();if(Object[_0x201c52(0x338)](_0x396ef6)['length']===0x0)return{'currentPage':0x1,'pageSize':0x64};return{..._0x396ef6,'currentPage':_0x396ef6[_0x201c52(0x389)]??0x1,'pageSize':_0x396ef6[_0x201c52(0x2e2)]??0x64};}[a0_0x22b77d(0x1f7)](){const _0x10a8fc=a0_0x22b77d;return{'success':!![],'msg':'','errorMsg':'','errorCode':_0x10a8fc(0x28b),'data':'https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/example_file_XXXXXXX.xlsx?Expires=1765374987&OSSAccessKeyId=LTAI5tGCr8Eb3UVbdf5ap9Z1&Signature=k115junCUe7Ot5BTSov0Usul3oc%3D','params':null};}['generateSDKCallCode'](_0x46263f,_0x4ad2ec){const _0x221b45=a0_0x22b77d,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x4ad2ec||{},_0x47e63e=this[_0x221b45(0x292)]();if(useFullExample){const _0x3ccbcc=this[_0x221b45(0x1ab)](),{currentPage:_0x4aa8ac,pageSize:_0x4d5dbb,..._0x365523}=_0x3ccbcc,_0x226880=Object[_0x221b45(0x338)](_0x365523)[_0x221b45(0x251)]>0x0;if(_0x226880){const _0x30d94e=_0x5ba20c=>{const _0x16b5a4=_0x221b45;return JSON['stringify'](_0x5ba20c,null,0x2)[_0x16b5a4(0x2dc)]('\x0a')[_0x16b5a4(0x318)]((_0x3c0252,_0x4e5acc)=>_0x4e5acc===0x0?_0x3c0252:indent+_0x3c0252)[_0x16b5a4(0x2af)]('\x0a');};return _0x221b45(0x1d8)+_0x46263f+'.'+_0x47e63e+_0x221b45(0x1af)+_0x46263f+'.'+_0x47e63e+'('+_0x30d94e(_0x3ccbcc)+');';}else{const _0x286757=_0x288a2d=>{const _0x4f5555=_0x221b45;return JSON[_0x4f5555(0x2d1)](_0x288a2d,null,0x2)[_0x4f5555(0x2dc)]('\x0a')['map']((_0x669fbe,_0x3e9c14)=>_0x3e9c14===0x0?_0x669fbe:indent+_0x669fbe)[_0x4f5555(0x2af)]('\x0a');};return _0x221b45(0x1d8)+_0x46263f+'.'+_0x47e63e+_0x221b45(0x2e5)+_0x46263f+'.'+_0x47e63e+'('+_0x286757({'currentPage':0x1,'pageSize':0x64})+');';}}return _0x221b45(0x21d)+_0x46263f+'.'+_0x47e63e+_0x221b45(0x383);}[a0_0x22b77d(0x267)](_0xada0c7){const _0x29e43f=a0_0x22b77d,_0x585a1a=this['getName'](),_0x2e2074=_0x29e43f(0x2d8)+_0xada0c7+'.'+_0x585a1a+'();\x0a//\x20fileUrl:\x20\x22https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/xxx.xlsx?...\x22\x0awindow.open(fileUrl,\x20\x27_blank\x27);\x20//\x20打开下载',_0x5e9259=_0x29e43f(0x240)+_0xada0c7+'.'+_0x585a1a+_0x29e43f(0x1db);return{'successCode':_0x2e2074,'errorCode':_0x5e9259};}}class OperationFactory{[a0_0x22b77d(0x2ff)](_0x4b9233,_0x1d4e54,_0x20f024){const _0x210b9b=a0_0x22b77d;switch(_0x4b9233){case'getSelectOptions':return new GetSelectOptionsOperation(_0x4b9233,_0x1d4e54,_0x20f024);case _0x210b9b(0x2bf):return new GetListOperation(_0x4b9233,_0x1d4e54,_0x20f024);case _0x210b9b(0x1cb):return new FilterOperation(_0x4b9233,_0x1d4e54,_0x20f024);case _0x210b9b(0x379):return new ExcelExportOperation(_0x4b9233,_0x1d4e54,_0x20f024);default:return new GenericOperation(_0x4b9233,_0x1d4e54,_0x20f024);}}[a0_0x22b77d(0x25e)](_0x420cea,_0xbde45f){const _0x182fa7=a0_0x22b77d,_0x3c17e6=new Map();return Object['entries'](_0x420cea)[_0x182fa7(0x24c)](([_0x590924,_0x760ed1])=>{const _0x2062bc=_0x182fa7;_0x3c17e6['set'](_0x590924,this[_0x2062bc(0x2ff)](_0x590924,_0x760ed1,_0xbde45f));}),_0x3c17e6;}}class OperationList{[a0_0x22b77d(0x297)];constructor(_0x4380e1,_0x43c198){const _0x1cfd17=new OperationFactory();this['_operations']=_0x1cfd17['createAll'](_0x4380e1,_0x43c198);}['get'](_0x1dc9e6){const _0x5e6aff=a0_0x22b77d;return this[_0x5e6aff(0x297)]['get'](_0x1dc9e6);}[a0_0x22b77d(0x38b)](_0xc67403){const _0x2bb62c=a0_0x22b77d;return this[_0x2bb62c(0x297)][_0x2bb62c(0x38b)](_0xc67403);}[a0_0x22b77d(0x248)](){const _0x5d8839=a0_0x22b77d;return this[_0x5d8839(0x297)]['size'];}['getNames'](){const _0x1a7e1e=a0_0x22b77d;return Array['from'](this[_0x1a7e1e(0x297)][_0x1a7e1e(0x338)]());}[a0_0x22b77d(0x1a4)](){const _0x1668fe=a0_0x22b77d,_0x502430=Array[_0x1668fe(0x1f4)](this['_operations'][_0x1668fe(0x1f5)]());return this[_0x1668fe(0x381)](_0x502430);}[a0_0x22b77d(0x32b)](){const _0x34f786=a0_0x22b77d;return this[_0x34f786(0x1a4)]()[_0x34f786(0x1cb)](_0x388128=>_0x388128[_0x34f786(0x2bd)]());}[a0_0x22b77d(0x2b7)](){const _0x46f05e=a0_0x22b77d;return this[_0x46f05e(0x1a4)]()[_0x46f05e(0x1cb)](_0x2e481d=>!_0x2e481d[_0x46f05e(0x2bd)]());}[a0_0x22b77d(0x37e)](){const _0x5f5d65=a0_0x22b77d;return this[_0x5f5d65(0x32b)]()[_0x5f5d65(0x318)](_0x2c2ae9=>_0x2c2ae9['getName']());}[a0_0x22b77d(0x229)](){const _0x12f009=a0_0x22b77d;return this['getDisabled']()[_0x12f009(0x318)](_0x1c8ebe=>_0x1c8ebe[_0x12f009(0x292)]());}[a0_0x22b77d(0x2ab)](_0x460ae3){const _0x142472=a0_0x22b77d;return this['toArray']()[_0x142472(0x1cb)](_0x4bcd01=>_0x4bcd01[_0x142472(0x328)]()===_0x460ae3);}[a0_0x22b77d(0x1cb)](_0x4ae6db){const _0x1ab5cd=a0_0x22b77d;return this[_0x1ab5cd(0x1a4)]()['filter'](_0x4ae6db);}[a0_0x22b77d(0x345)](_0xd05bcd={}){const _0xb70b1a=a0_0x22b77d;let _0xcf0164=this['toArray']();!_0xd05bcd['includeDisabled']&&(_0xcf0164=_0xcf0164['filter'](_0x46773f=>_0x46773f[_0xb70b1a(0x2bd)]()));if(_0xd05bcd[_0xb70b1a(0x347)]!==![]){const _0x4f6771=_0xcf0164[_0xb70b1a(0x318)](_0x2b5716=>({'name':_0x2b5716[_0xb70b1a(0x292)](),'operation':_0x2b5716})),_0x15cca9=filterApiOperations(_0x4f6771);_0xcf0164=_0x15cca9[_0xb70b1a(0x318)](_0x205fc2=>_0x205fc2[_0xb70b1a(0x1de)]),_0xcf0164=this[_0xb70b1a(0x381)](_0xcf0164);}return _0xd05bcd['customFilter']&&(_0xcf0164=_0xcf0164[_0xb70b1a(0x1cb)](_0xd05bcd['customFilter'])),_0xcf0164;}[a0_0x22b77d(0x381)](_0x45131e){const _0x15662d=a0_0x22b77d,_0x19b57a=_0x45131e[_0x15662d(0x1a9)](_0x298f97=>_0x298f97[_0x15662d(0x292)]()==='filter'),_0x49da06=_0x45131e[_0x15662d(0x1cb)](_0xb039e0=>_0xb039e0['getName']()!==_0x15662d(0x1cb));return _0x19b57a?[_0x19b57a,..._0x49da06]:_0x49da06;}['getStats'](){const _0x452c06=a0_0x22b77d,_0x3bef21=this[_0x452c06(0x32b)]();return{'total':this[_0x452c06(0x248)](),'enabled':_0x3bef21[_0x452c06(0x251)],'disabled':this[_0x452c06(0x248)]()-_0x3bef21[_0x452c06(0x251)],'byType':this[_0x452c06(0x1f3)](_0x3bef21),'byMethod':this[_0x452c06(0x235)](_0x3bef21)};}['getCountByType'](_0x26ead0){const _0x406e18=a0_0x22b77d,_0x404918={};return _0x26ead0[_0x406e18(0x24c)](_0x5b9562=>{const _0x4c1184=_0x5b9562['getType']();_0x4c1184&&(_0x404918[_0x4c1184]=(_0x404918[_0x4c1184]||0x0)+0x1);}),_0x404918;}[a0_0x22b77d(0x235)](_0x4c09f3){const _0xb42f15=a0_0x22b77d,_0x478e0f={};return _0x4c09f3[_0xb42f15(0x24c)](_0x33a45a=>{const _0xf5a147=_0xb42f15,_0x12dc70=_0x33a45a[_0xf5a147(0x38e)]();_0x12dc70&&(_0x478e0f[_0x12dc70]=(_0x478e0f[_0x12dc70]||0x0)+0x1);}),_0x478e0f;}[Symbol[a0_0x22b77d(0x319)]](){const _0x7a955=a0_0x22b77d;return this['_operations'][_0x7a955(0x1f5)]();}[a0_0x22b77d(0x2a5)](){const _0x5e3d0d=a0_0x22b77d,_0x516536=this[_0x5e3d0d(0x188)]();return _0x5e3d0d(0x193)+_0x516536['enabled']+'/'+_0x516536[_0x5e3d0d(0x1be)]+_0x5e3d0d(0x2a4);}}class Field{['_raw'];[a0_0x22b77d(0x388)]=null;constructor(_0x2a4a59){const _0x1d8051=a0_0x22b77d;if(!_0x2a4a59||typeof _0x2a4a59!==_0x1d8051(0x1f8))throw new Error(_0x1d8051(0x367));this[_0x1d8051(0x1fc)]=_0x2a4a59;}get[a0_0x22b77d(0x2b4)](){const _0x30dc44=a0_0x22b77d;return this[_0x30dc44(0x1fc)];}[a0_0x22b77d(0x290)](){return this['_raw'];}get[a0_0x22b77d(0x360)](){return this['_raw']['name']||'';}get['code'](){const _0x6d75aa=a0_0x22b77d;return this['_raw'][_0x6d75aa(0x216)]||'';}get[a0_0x22b77d(0x1ae)](){const _0x29387b=a0_0x22b77d;return this[_0x29387b(0x1fc)][_0x29387b(0x1ae)]||'';}get[a0_0x22b77d(0x2d6)](){const _0xed86ca=a0_0x22b77d;return this[_0xed86ca(0x1fc)][_0xed86ca(0x2d6)]||'';}get[a0_0x22b77d(0x2d5)](){const _0x58b22b=a0_0x22b77d;return Boolean(this[_0x58b22b(0x1fc)][_0x58b22b(0x2d5)]);}get[a0_0x22b77d(0x259)](){const _0x2486e6=a0_0x22b77d;if(this[_0x2486e6(0x388)]!==null&&typeof this[_0x2486e6(0x388)]==='object')return this[_0x2486e6(0x388)];const _0x342ae2=this['_raw'][_0x2486e6(0x259)];if(!_0x342ae2||typeof _0x342ae2!=='string')return this['_extend']={},this[_0x2486e6(0x388)];if(_0x342ae2===_0x2486e6(0x26f)||_0x342ae2[_0x2486e6(0x2f5)]()===_0x2486e6(0x26f))return this[_0x2486e6(0x388)]={},this[_0x2486e6(0x388)];try{const _0x29acff=JSON[_0x2486e6(0x2f6)](_0x342ae2);return this[_0x2486e6(0x388)]=_0x29acff!==null&&typeof _0x29acff==='object'&&!Array[_0x2486e6(0x228)](_0x29acff)?_0x29acff:{},this['_extend'];}catch(_0xb2f698){return!![]&&console[_0x2486e6(0x189)](_0x2486e6(0x31c)+this[_0x2486e6(0x216)]+_0x2486e6(0x2c8),_0xb2f698),this[_0x2486e6(0x388)]={},this[_0x2486e6(0x388)];}}[a0_0x22b77d(0x220)](){const _0x1e39d1=a0_0x22b77d;return Boolean(this[_0x1e39d1(0x259)][_0x1e39d1(0x213)]);}[a0_0x22b77d(0x28f)](){const _0x349e4e=a0_0x22b77d;return Boolean(this[_0x349e4e(0x259)][_0x349e4e(0x26a)]);}['isSystem'](){const _0xa80ce4=a0_0x22b77d;return Boolean(this[_0xa80ce4(0x259)][_0xa80ce4(0x1ff)]);}[a0_0x22b77d(0x18b)](){const _0x5e1166=a0_0x22b77d;return!this[_0x5e1166(0x2a0)]();}['isDeleted'](){const _0xd07a5d=a0_0x22b77d;return this[_0xd07a5d(0x2d5)];}[a0_0x22b77d(0x2e0)](){const _0x3ee095=a0_0x22b77d;return Boolean(this[_0x3ee095(0x259)]['autoIncrement']);}['isCreateTime'](){const _0x1bcfa7=a0_0x22b77d;return Boolean(this[_0x1bcfa7(0x259)][_0x1bcfa7(0x301)]);}[a0_0x22b77d(0x1ce)](){const _0x1c46ee=a0_0x22b77d;return Boolean(this[_0x1c46ee(0x259)]['updateTime']);}['isEnum'](){const _0x386a38=a0_0x22b77d,_0x328ad6=[_0x386a38(0x2e8),_0x386a38(0x278),_0x386a38(0x281)];return _0x328ad6[_0x386a38(0x261)](this[_0x386a38(0x1ae)]);}[a0_0x22b77d(0x293)](){const _0x1e32fa=a0_0x22b77d;return this[_0x1e32fa(0x1ae)]===_0x1e32fa(0x281);}[a0_0x22b77d(0x362)](){const _0x1b0cef=a0_0x22b77d,_0x22d2c2=this[_0x1b0cef(0x259)];if(_0x22d2c2['options']&&Array[_0x1b0cef(0x228)](_0x22d2c2[_0x1b0cef(0x22e)]))return _0x22d2c2[_0x1b0cef(0x22e)];return;}['getSelectItemsSource'](){const _0x39e6be=a0_0x22b77d,_0x237287=this[_0x39e6be(0x259)];if(_0x237287[_0x39e6be(0x343)]&&typeof _0x237287[_0x39e6be(0x343)]===_0x39e6be(0x1f8))return _0x237287[_0x39e6be(0x343)];return;}[a0_0x22b77d(0x1ba)](){const _0x3d5755=a0_0x22b77d;if(!this['isEnum']())return;const _0x4a1cb6=this[_0x3d5755(0x362)](),_0x2a3ed9=this['getSelectItemsSource'](),_0x464a85=[],_0x8cb94d={},_0x1b96b5=_0x467715=>{const _0x59d56f=_0x3d5755;_0x467715[_0x59d56f(0x24c)](_0x138707=>{const _0x347785=_0x59d56f;_0x464a85['push'](_0x138707[_0x347785(0x2cb)]),_0x8cb94d[String(_0x138707[_0x347785(0x2cb)])]=_0x138707[_0x347785(0x262)],_0x138707[_0x347785(0x24a)]&&_0x138707['children'][_0x347785(0x251)]>0x0&&_0x1b96b5(_0x138707[_0x347785(0x24a)]);});};return _0x4a1cb6&&_0x4a1cb6['length']>0x0&&_0x1b96b5(_0x4a1cb6),{'code':this['code'],'name':this[_0x3d5755(0x360)],'type':this[_0x3d5755(0x1ae)],'multiple':this[_0x3d5755(0x293)](),'options':_0x4a1cb6,'selectItemsSource':_0x2a3ed9,'values':_0x464a85,'valueLabels':_0x8cb94d};}[a0_0x22b77d(0x2c2)](){const _0x53ac29=a0_0x22b77d;return this[_0x53ac29(0x259)][_0x53ac29(0x333)];}['getTooltip'](){const _0x411434=a0_0x22b77d;return this[_0x411434(0x259)][_0x411434(0x364)];}[a0_0x22b77d(0x385)](){const _0x1d580f=a0_0x22b77d;return{'name':this[_0x1d580f(0x360)],'code':this['code'],'type':this['type'],'description':this[_0x1d580f(0x2d6)],'required':this['isRequired'](),'primaryKey':this[_0x1d580f(0x28f)](),'system':this[_0x1d580f(0x2a0)](),'autoIncrement':this[_0x1d580f(0x2e0)](),'createTime':this['isCreateTime'](),'updateTime':this[_0x1d580f(0x1ce)](),'isEnum':this[_0x1d580f(0x20e)](),'enumMeta':this[_0x1d580f(0x20e)]()?this[_0x1d580f(0x1ba)]():undefined};}}class FieldList{['_fields'];constructor(_0x48cbf3,_0x88aa0c){const _0x33dc5f=a0_0x22b77d;if(!Array[_0x33dc5f(0x228)](_0x48cbf3))throw new Error(_0x33dc5f(0x2f2));const _0x4c6565=_0x88aa0c?.[_0x33dc5f(0x2d7)]??![],_0x343739=_0x4c6565?_0x48cbf3:_0x48cbf3[_0x33dc5f(0x1cb)](_0x4b1b8b=>!_0x4b1b8b['deleted']);this[_0x33dc5f(0x230)]=_0x343739[_0x33dc5f(0x318)](_0x598c79=>new Field(_0x598c79));}get[a0_0x22b77d(0x251)](){const _0x3ea063=a0_0x22b77d;return this[_0x3ea063(0x230)]['length'];}[a0_0x22b77d(0x19c)](){const _0x1975f9=a0_0x22b77d;return[...this[_0x1975f9(0x230)]];}[a0_0x22b77d(0x2b4)](){const _0x29c806=a0_0x22b77d;return this[_0x29c806(0x230)][_0x29c806(0x318)](_0x11ba7d=>_0x11ba7d[_0x29c806(0x2b4)]);}['at'](_0x5a5e4b){const _0x5f4c58=a0_0x22b77d;return this[_0x5f4c58(0x230)]['at'](_0x5a5e4b);}['find'](_0x52f2fe){const _0x5e7287=a0_0x22b77d;return this[_0x5e7287(0x230)][_0x5e7287(0x1a9)](_0x5d9734=>_0x5d9734[_0x5e7287(0x216)]===_0x52f2fe);}['findByName'](_0x1cab2e){const _0x3ae062=a0_0x22b77d;return this[_0x3ae062(0x230)][_0x3ae062(0x1a9)](_0x2ec307=>_0x2ec307[_0x3ae062(0x360)]===_0x1cab2e);}[a0_0x22b77d(0x38b)](_0x2fa1c6){const _0x1412fc=a0_0x22b77d;return this[_0x1412fc(0x230)]['some'](_0x276087=>_0x276087[_0x1412fc(0x216)]===_0x2fa1c6);}[a0_0x22b77d(0x24c)](_0x2f6ce0){this['_fields']['forEach'](_0x2f6ce0);}['map'](_0x178aa3){const _0x4e87fa=a0_0x22b77d;return this[_0x4e87fa(0x230)][_0x4e87fa(0x318)](_0x178aa3);}[a0_0x22b77d(0x1cb)](_0x380adc){const _0x42c797=a0_0x22b77d;return this['_fields'][_0x42c797(0x1cb)](_0x380adc);}[a0_0x22b77d(0x38a)](_0x2b9fe6){const _0x1fa4b2=a0_0x22b77d;return this['_fields'][_0x1fa4b2(0x38a)](_0x2b9fe6);}[a0_0x22b77d(0x249)](_0xc96bc1){const _0x46134b=a0_0x22b77d;return this[_0x46134b(0x230)]['some'](_0xc96bc1);}[a0_0x22b77d(0x260)](){const _0x3caba3=a0_0x22b77d;return this[_0x3caba3(0x230)][_0x3caba3(0x1cb)](_0x3f1b26=>_0x3f1b26['isRequired']());}['getPrimaryKeys'](){const _0x2d67eb=a0_0x22b77d;return this[_0x2d67eb(0x230)]['filter'](_0x27f3a1=>_0x27f3a1['isPrimaryKey']());}[a0_0x22b77d(0x29e)](){const _0x4f213b=a0_0x22b77d;return this[_0x4f213b(0x230)][_0x4f213b(0x1cb)](_0xbff070=>_0xbff070[_0x4f213b(0x2a0)]());}[a0_0x22b77d(0x263)](){const _0x33866c=a0_0x22b77d;return this['_fields'][_0x33866c(0x1cb)](_0x2f8f5b=>_0x2f8f5b[_0x33866c(0x18b)]());}[a0_0x22b77d(0x33d)](){const _0x4af460=a0_0x22b77d;return this[_0x4af460(0x230)]['filter'](_0x5611d3=>_0x5611d3[_0x4af460(0x20e)]());}[a0_0x22b77d(0x35f)](){const _0x27d576=a0_0x22b77d;return this['_fields']['filter'](_0x41912a=>_0x41912a[_0x27d576(0x2e0)]());}[a0_0x22b77d(0x1ea)](){const _0x4d596a=a0_0x22b77d;return this['_fields'][_0x4d596a(0x1cb)](_0x50b7a9=>_0x50b7a9[_0x4d596a(0x35c)]());}[a0_0x22b77d(0x208)](){const _0x249ea2=a0_0x22b77d;return this['_fields'][_0x249ea2(0x1cb)](_0x46b311=>_0x46b311['isUpdateTime']());}[a0_0x22b77d(0x368)](){const _0x27cb44=a0_0x22b77d;return this[_0x27cb44(0x230)]['filter'](_0x5ec3a9=>_0x5ec3a9[_0x27cb44(0x1e5)]());}['getActive'](){const _0x37bf59=a0_0x22b77d;return this[_0x37bf59(0x230)][_0x37bf59(0x1cb)](_0x48520e=>!_0x48520e['isDeleted']());}[a0_0x22b77d(0x2ae)](){const _0x114143=a0_0x22b77d,_0x39be96={};return this[_0x114143(0x230)][_0x114143(0x24c)](_0x1dc112=>{const _0x476078=_0x114143,_0x898c9e=_0x1dc112[_0x476078(0x1ae)];!_0x39be96[_0x898c9e]&&(_0x39be96[_0x898c9e]=[]),_0x39be96[_0x898c9e][_0x476078(0x1cf)](_0x1dc112);}),_0x39be96;}[a0_0x22b77d(0x32c)](){const _0x122604=a0_0x22b77d,_0x1ed63f={};return this['_fields'][_0x122604(0x24c)](_0x1a3993=>{const _0x1a52b6=_0x122604;if(_0x1a3993[_0x1a52b6(0x20e)]()){const _0xb8a883=_0x1a3993[_0x1a52b6(0x1ba)]();_0xb8a883&&(_0x1ed63f[_0x1a3993['code']]=_0xb8a883);}}),_0x1ed63f;}['getStats'](){const _0x2aee80=a0_0x22b77d;return{'total':this[_0x2aee80(0x251)],'required':this['getRequired']()['length'],'primaryKey':this['getPrimaryKeys']()[_0x2aee80(0x251)],'system':this[_0x2aee80(0x29e)]()[_0x2aee80(0x251)],'business':this[_0x2aee80(0x263)]()['length'],'enum':this[_0x2aee80(0x33d)]()[_0x2aee80(0x251)],'autoIncrement':this[_0x2aee80(0x35f)]()[_0x2aee80(0x251)]};}['toJSON'](){const _0x120422=a0_0x22b77d;return this[_0x120422(0x230)][_0x120422(0x318)](_0x38547a=>_0x38547a['toJSON']());}['getCodes'](){const _0x148bf2=a0_0x22b77d;return this[_0x148bf2(0x230)][_0x148bf2(0x318)](_0x12c4f5=>_0x12c4f5[_0x148bf2(0x216)]);}[a0_0x22b77d(0x21c)](){const _0x522177=a0_0x22b77d;return this[_0x522177(0x230)]['map'](_0x4c6d37=>_0x4c6d37[_0x522177(0x360)]);}static[a0_0x22b77d(0x1f4)](_0x1692a4){const _0x31c782=a0_0x22b77d,_0x4f310a=_0x1692a4[_0x31c782(0x318)](_0x591bec=>_0x591bec[_0x31c782(0x2b4)]);return new FieldList(_0x4f310a);}static[a0_0x22b77d(0x279)](_0x5d3801){return new FieldList(_0x5d3801,{'includeDeleted':!![]});}}class DrivenDataDetail extends DatasetItem{[a0_0x22b77d(0x2ef)];[a0_0x22b77d(0x2ee)];[a0_0x22b77d(0x1ed)];constructor(_0x48e9b4){const _0x5b15f7=a0_0x22b77d;super({..._0x48e9b4,'id':_0x48e9b4['modelId'],'datasetCode':_0x48e9b4[_0x5b15f7(0x38f)]});}get[a0_0x22b77d(0x24e)](){const _0x4f1216=a0_0x22b77d;return this['_raw'][_0x4f1216(0x24e)];}[a0_0x22b77d(0x1b7)](){const _0x27ff3a=a0_0x22b77d;return this[_0x27ff3a(0x24e)];}get[a0_0x22b77d(0x19f)](){const _0x5aebc=a0_0x22b77d;return this[_0x5aebc(0x1fc)]['version'];}[a0_0x22b77d(0x27b)](){const _0x43f37d=a0_0x22b77d;return!this[_0x43f37d(0x2ee)]&&(this[_0x43f37d(0x2ee)]=new FieldList(this['_raw'][_0x43f37d(0x294)]||[])),this[_0x43f37d(0x2ee)];}[a0_0x22b77d(0x241)](){const _0x2efc83=a0_0x22b77d;return!this['_fieldListWithDeleted']&&(this[_0x2efc83(0x1ed)]=FieldList['withDeleted'](this[_0x2efc83(0x1fc)]['properties']||[])),this[_0x2efc83(0x1ed)];}[a0_0x22b77d(0x190)](){const _0xc85242=a0_0x22b77d;return this['getFieldList']()[_0xc85242(0x2b4)]();}['getFieldsWithDeleted'](){return this['_raw']['properties']||[];}[a0_0x22b77d(0x36b)](){const _0x22b388=a0_0x22b77d;return this[_0x22b388(0x27b)]()[_0x22b388(0x251)];}[a0_0x22b77d(0x19b)](_0x2a46dc){const _0x2ee334=a0_0x22b77d,_0x354699=this[_0x2ee334(0x1bb)](_0x2a46dc);return _0x354699?_0x354699[_0x2ee334(0x2b4)]:undefined;}['getFieldRaw'](_0x36dc30){const _0x2de861=a0_0x22b77d;return this['getFieldList']()[_0x2de861(0x1a9)](_0x36dc30)?.['raw']||undefined;}[a0_0x22b77d(0x1bb)](_0x22d4b4){const _0x109323=a0_0x22b77d;if(typeof _0x22d4b4!=='string'){!![]&&console[_0x109323(0x189)]('[DrivenDataDetail.getFieldInstance]\x20code\x20is\x20not\x20a\x20string:',_0x22d4b4);return;}return this[_0x109323(0x27b)]()[_0x109323(0x1a9)](_0x22d4b4);}[a0_0x22b77d(0x394)](_0x4a59de){const _0x276e98=a0_0x22b77d;return this[_0x276e98(0x27b)]()[_0x276e98(0x38b)](_0x4a59de);}[a0_0x22b77d(0x18d)](_0x515a2f){const _0x52cdca=a0_0x22b77d;if(!_0x515a2f||typeof _0x515a2f!==_0x52cdca(0x1f8))return!![]&&console[_0x52cdca(0x189)]('[DrivenDataDetail.parseFieldExtend]\x20Invalid\x20field:',_0x515a2f),{};if(!_0x515a2f[_0x52cdca(0x259)])return{};try{const _0x313f26=typeof _0x515a2f['extend']===_0x52cdca(0x298)?JSON[_0x52cdca(0x2f6)](_0x515a2f[_0x52cdca(0x259)]):_0x515a2f[_0x52cdca(0x259)];if(typeof _0x313f26!=='object'||_0x313f26===null)return{};return _0x313f26;}catch{return{};}}['isPrimaryKeyField'](_0x29151b){const _0x3d523f=a0_0x22b77d;if(!_0x29151b||typeof _0x29151b!==_0x3d523f(0x1f8))return![];const _0x256e2c=this[_0x3d523f(0x27b)]()['find'](_0x29151b[_0x3d523f(0x216)]);return _0x256e2c?_0x256e2c['isPrimaryKey']():![];}['isSystemField'](_0xd6c471){const _0xce67b6=a0_0x22b77d;if(!_0xd6c471||typeof _0xd6c471!=='object')return![];const _0x2339ef=this[_0xce67b6(0x27b)]()['find'](_0xd6c471[_0xce67b6(0x216)]);return _0x2339ef?_0x2339ef[_0xce67b6(0x2a0)]():![];}['isRequiredField'](_0x1c2612){const _0x1b6511=a0_0x22b77d;if(!_0x1c2612||typeof _0x1c2612!=='object')return![];const _0x3db033=this[_0x1b6511(0x27b)]()[_0x1b6511(0x1a9)](_0x1c2612[_0x1b6511(0x216)]);return _0x3db033?_0x3db033['isRequired']():![];}[a0_0x22b77d(0x33c)](){const _0x372469=a0_0x22b77d;return this[_0x372469(0x27b)]()[_0x372469(0x37d)]()[_0x372469(0x318)](_0xdd10ff=>_0xdd10ff[_0x372469(0x2b4)]);}[a0_0x22b77d(0x22d)](){const _0x4a2aa1=a0_0x22b77d;return this[_0x4a2aa1(0x27b)]()[_0x4a2aa1(0x29e)]()[_0x4a2aa1(0x318)](_0xce9b27=>_0xce9b27[_0x4a2aa1(0x2b4)]);}[a0_0x22b77d(0x349)](){const _0x3e6d63=a0_0x22b77d;return this[_0x3e6d63(0x27b)]()[_0x3e6d63(0x263)]()[_0x3e6d63(0x318)](_0x484060=>_0x484060[_0x3e6d63(0x2b4)]);}['getRequiredFields'](){const _0xf416b4=a0_0x22b77d;return this[_0xf416b4(0x27b)]()[_0xf416b4(0x260)]()[_0xf416b4(0x318)](_0x7b5026=>_0x7b5026[_0xf416b4(0x2b4)]);}[a0_0x22b77d(0x299)](){const _0x116cc9=a0_0x22b77d,_0x5d2c65=this[_0x116cc9(0x27b)]()[_0x116cc9(0x2ae)](),_0x559c85={};for(const [_0x5291de,_0x2e7a0b]of Object[_0x116cc9(0x223)](_0x5d2c65)){_0x559c85[_0x5291de]=_0x2e7a0b[_0x116cc9(0x318)](_0x325077=>_0x325077[_0x116cc9(0x2b4)]);}return _0x559c85;}[a0_0x22b77d(0x380)](_0xd13b94){const _0x151084=a0_0x22b77d;if(!_0xd13b94||typeof _0xd13b94!==_0x151084(0x1f8))return![];const _0x34907c=this[_0x151084(0x27b)]()['find'](_0xd13b94[_0x151084(0x216)]);return _0x34907c?_0x34907c[_0x151084(0x20e)]():![];}['isMultipleSelectField'](_0xd391cd){const _0x4f9a03=a0_0x22b77d;if(!_0xd391cd||typeof _0xd391cd!==_0x4f9a03(0x1f8))return![];const _0x1533f4=this[_0x4f9a03(0x27b)]()['find'](_0xd391cd[_0x4f9a03(0x216)]);return _0x1533f4?_0x1533f4[_0x4f9a03(0x293)]():![];}['getFieldOptions'](_0x5daf42){const _0x1fc33a=a0_0x22b77d;if(!_0x5daf42||typeof _0x5daf42!==_0x1fc33a(0x1f8))return[];const _0x4ba3c3=this[_0x1fc33a(0x27b)]()[_0x1fc33a(0x1a9)](_0x5daf42['code']);if(!_0x4ba3c3||!_0x4ba3c3[_0x1fc33a(0x20e)]())return[];return _0x4ba3c3[_0x1fc33a(0x362)]()||[];}['getFieldSelectItemsSource'](_0x48ffc4){const _0x48543f=a0_0x22b77d;if(!_0x48ffc4||typeof _0x48ffc4!=='object')return;const _0x186e41=this['getFieldList']()[_0x48543f(0x1a9)](_0x48ffc4['code']);if(!_0x186e41||!_0x186e41[_0x48543f(0x20e)]())return;return _0x186e41[_0x48543f(0x27f)]();}[a0_0x22b77d(0x2bc)](_0x16d198){const _0x153355=a0_0x22b77d;if(!_0x16d198||typeof _0x16d198!==_0x153355(0x1f8))return;const _0x1b721d=this['getFieldList']()['find'](_0x16d198['code']);if(!_0x1b721d||!_0x1b721d[_0x153355(0x20e)]())return;return _0x1b721d[_0x153355(0x1ba)]();}[a0_0x22b77d(0x27a)](){const _0x7b8c60=a0_0x22b77d;return this['getFieldList']()[_0x7b8c60(0x33d)]()[_0x7b8c60(0x318)](_0x337c38=>_0x337c38[_0x7b8c60(0x2b4)]);}[a0_0x22b77d(0x252)](){const _0x19e94e={};return this['getEnumFields']()['forEach'](_0xfcfb14=>{const _0x140f97=a0_0x2579,_0x44656b=this[_0x140f97(0x2bc)](_0xfcfb14);_0x44656b&&(_0x19e94e[_0xfcfb14[_0x140f97(0x216)]]=_0x44656b);}),_0x19e94e;}[a0_0x22b77d(0x219)](_0xebff08,_0x15eff2){const _0x4421b3=a0_0x22b77d,_0x164ab1=this[_0x4421b3(0x2bc)](_0xebff08);if(!_0x164ab1)return!![];if(_0x164ab1[_0x4421b3(0x343)]&&!_0x164ab1[_0x4421b3(0x22e)])return!![];if(_0x164ab1[_0x4421b3(0x336)]&&Array[_0x4421b3(0x228)](_0x15eff2))return _0x15eff2[_0x4421b3(0x38a)](_0x29fe53=>_0x164ab1[_0x4421b3(0x1f5)][_0x4421b3(0x261)](_0x29fe53));return _0x164ab1['values'][_0x4421b3(0x261)](_0x15eff2);}[a0_0x22b77d(0x2e1)](){const _0x53348f=a0_0x22b77d;if(!this[_0x53348f(0x2ef)]){const _0x358a82=this['ensureFilterOperation'](this[_0x53348f(0x1fc)][_0x53348f(0x31e)]||{});this[_0x53348f(0x2ef)]=new OperationList(_0x358a82,{'fields':this['getFields'](),'pkField':this[_0x53348f(0x1fc)][_0x53348f(0x2db)]?.[_0x53348f(0x276)],'dbtableConfig':this['_raw']['dbtableConfig']});}return this[_0x53348f(0x2ef)];}[a0_0x22b77d(0x2f3)](_0x33dc74){if(_0x33dc74['filter']!==undefined)return _0x33dc74;return{..._0x33dc74,'filter':this['generateDefaultFilterOperation']()};}[a0_0x22b77d(0x2ec)](){const _0x4921ae=a0_0x22b77d,_0x1abbb5=this[_0x4921ae(0x1fc)][_0x4921ae(0x31e)]?.[_0x4921ae(0x2bf)];let _0x4c341d=_0x1abbb5?.[_0x4921ae(0x2c7)],_0x5b57f9='';if(!_0x4c341d&&this[_0x4921ae(0x1fc)][_0x4921ae(0x31e)]){const _0xa26609=Object[_0x4921ae(0x1f5)](this[_0x4921ae(0x1fc)][_0x4921ae(0x31e)]);for(const _0x4e4504 of _0xa26609){if(_0x4e4504&&typeof _0x4e4504==='object'&&_0x4921ae(0x2c7)in _0x4e4504){_0x4c341d=_0x4e4504['host'];break;}}}if(_0x1abbb5?.[_0x4921ae(0x1a7)]){const _0x29e357=_0x1abbb5['path'],_0xeaf90a=_0x29e357['lastIndexOf']('/');_0xeaf90a!==-0x1&&(_0x5b57f9=_0x29e357['substring'](0x0,_0xeaf90a));}return{'name':_0x4921ae(0x1cb),'type':'query','description':_0x4921ae(0x20f),'method':'POST','host':_0x4c341d,'path':_0x5b57f9?_0x5b57f9+_0x4921ae(0x341):_0x4921ae(0x341),'params':_0x1abbb5?.[_0x4921ae(0x310)]||[{'name':_0x4921ae(0x2c9),'type':'object','required':![]},{'name':_0x4921ae(0x238),'type':'array','required':![]},{'name':_0x4921ae(0x315),'type':_0x4921ae(0x34d),'required':![]},{'name':'currentPage','type':'number','required':![],'default':0x1},{'name':_0x4921ae(0x2e2),'type':_0x4921ae(0x187),'required':![],'default':0xa}],'_autoGenerated':!![]};}[a0_0x22b77d(0x23e)](){const _0x525a8c=a0_0x22b77d;return this['getOperationList']()[_0x525a8c(0x1a4)]();}['getOperationCount'](){const _0x5eeeab=a0_0x22b77d;return this['getOperationList']()[_0x5eeeab(0x248)]();}[a0_0x22b77d(0x2fe)](_0x33f045){const _0x4e14db=a0_0x22b77d;if(typeof _0x33f045!==_0x4e14db(0x298)){!![]&&console[_0x4e14db(0x189)]('[DrivenDataDetail.getOperation]\x20operationType\x20is\x20not\x20a\x20string:',_0x33f045);return;}return this[_0x4e14db(0x2e1)]()[_0x4e14db(0x387)](_0x33f045);}[a0_0x22b77d(0x339)](_0x5d739c){const _0x4c1a49=a0_0x22b77d;if(typeof _0x5d739c!==_0x4c1a49(0x298))return![];return this['getOperationList']()[_0x4c1a49(0x38b)](_0x5d739c);}[a0_0x22b77d(0x27d)](_0x41e8a5){const _0x40c179=a0_0x22b77d;if(typeof _0x41e8a5!==_0x40c179(0x298))return![];const _0x402617=this[_0x40c179(0x2fe)](_0x41e8a5);return _0x402617?.['isEnabled']()||![];}[a0_0x22b77d(0x205)](){const _0x3698ce=a0_0x22b77d;return this[_0x3698ce(0x2e1)]()[_0x3698ce(0x37e)]();}[a0_0x22b77d(0x2f7)](){const _0x583f16=a0_0x22b77d;return this[_0x583f16(0x2e1)]()[_0x583f16(0x229)]();}[a0_0x22b77d(0x2cf)](){const _0x43289a=a0_0x22b77d;return this[_0x43289a(0x2e1)]()[_0x43289a(0x32b)]();}[a0_0x22b77d(0x1ee)](){const _0x21c268=a0_0x22b77d;return this[_0x21c268(0x2e1)]()['getDisabled']();}['getStats'](){const _0x95fcc3=a0_0x22b77d;return{'fieldCount':this[_0x95fcc3(0x36b)](),'systemFieldCount':this[_0x95fcc3(0x22d)]()[_0x95fcc3(0x251)],'businessFieldCount':this[_0x95fcc3(0x349)]()[_0x95fcc3(0x251)],'requiredFieldCount':this[_0x95fcc3(0x311)]()[_0x95fcc3(0x251)],'primaryKeyCount':this['getPrimaryKeyFields']()[_0x95fcc3(0x251)],'operationCount':this[_0x95fcc3(0x211)](),'enabledOperationCount':this[_0x95fcc3(0x205)]()[_0x95fcc3(0x251)]};}['toListItem'](){const _0x24277e=a0_0x22b77d;return new DatasetItem({'id':this['id'],'name':this[_0x24277e(0x360)],'datasetCode':this['datasetCode'],'dbtableConfig':this[_0x24277e(0x26d)]()});}['toString'](){const _0x1af79d=a0_0x22b77d;return _0x1af79d(0x231)+this[_0x1af79d(0x360)]+',\x20'+this[_0x1af79d(0x2e6)]+',\x20'+this[_0x1af79d(0x36b)]()+_0x1af79d(0x18e)+this[_0x1af79d(0x211)]()+_0x1af79d(0x2a4);}[a0_0x22b77d(0x342)](){const _0x484af6=a0_0x22b77d,_0x456d81=this[_0x484af6(0x2fe)]('filter');return _0x456d81;}[a0_0x22b77d(0x233)](){const _0x56d9c3=a0_0x22b77d;return this[_0x56d9c3(0x339)]('filter');}[a0_0x22b77d(0x395)](_0x1154ef){const _0x3820c0=a0_0x22b77d,_0x336a8=this[_0x3820c0(0x2fe)](_0x1154ef);return _0x336a8?_0x336a8[_0x3820c0(0x2c5)]():[];}[a0_0x22b77d(0x1c5)](_0x5e919f,_0x17b4bc){const _0x63159a=a0_0x22b77d,_0xa2d546=this[_0x63159a(0x2fe)](_0x5e919f);return _0xa2d546?_0xa2d546['getFieldOperators'](_0x17b4bc):[];}[a0_0x22b77d(0x316)](_0x4f4a08){const _0x5eaf29=a0_0x22b77d,_0x4d5fee={};return this[_0x5eaf29(0x27b)]()[_0x5eaf29(0x24c)](_0x363671=>{const _0x5a7aef=_0x5eaf29,_0x3aee89=this['getOperationFieldOperators'](_0x4f4a08,_0x363671['code']);_0x3aee89[_0x5a7aef(0x251)]>0x0&&(_0x4d5fee[_0x363671[_0x5a7aef(0x216)]]=_0x3aee89);}),_0x4d5fee;}['isOperatorApplicableToField'](_0x527d8b,_0x322edb,_0x215ba5){const _0x4d456d=a0_0x22b77d,_0x359246=this[_0x4d456d(0x1c5)](_0x527d8b,_0x322edb);return _0x359246[_0x4d456d(0x261)](_0x215ba5);}[a0_0x22b77d(0x2dd)](){const _0x5b1233=a0_0x22b77d;return this['getOperationOperators'](_0x5b1233(0x1cb));}[a0_0x22b77d(0x23f)](_0x11442b){const _0x4656a1=a0_0x22b77d;return this['getOperationFieldOperators'](_0x4656a1(0x1cb),_0x11442b);}['getFieldsFilterOperatorsMap'](){const _0x482e4c=a0_0x22b77d;return this['getOperationFieldsOperatorsMap'](_0x482e4c(0x1cb));}}class DatasetGroup{['items'];constructor(_0x84fc0e){const _0x2bd024=a0_0x22b77d;this['items']=Array[_0x2bd024(0x228)](_0x84fc0e)?[..._0x84fc0e]:[_0x84fc0e],this[_0x2bd024(0x2f8)][_0x2bd024(0x207)]((_0x272c33,_0x3f2d9e)=>{const _0x163707=Number(_0x272c33['id'])||0x0,_0x5d58ee=Number(_0x3f2d9e['id'])||0x0;return _0x5d58ee-_0x163707;});}[a0_0x22b77d(0x2c4)](){const _0x2a7916=a0_0x22b77d;return this[_0x2a7916(0x2f8)][_0x2a7916(0x251)]>0x1;}['getLatest'](){const _0x28bf56=a0_0x22b77d;return this[_0x28bf56(0x2f8)][0x0];}[a0_0x22b77d(0x2e7)](){return this['items'][this['items']['length']-0x1];}[a0_0x22b77d(0x2bb)](){const _0xa951e=a0_0x22b77d;return[...this[_0xa951e(0x2f8)]];}[a0_0x22b77d(0x1cd)](){const _0x41a55f=a0_0x22b77d;return this[_0x41a55f(0x2f8)][_0x41a55f(0x251)];}[a0_0x22b77d(0x38c)](_0x4e848b){const _0x3cb48c=a0_0x22b77d;return this[_0x3cb48c(0x2f8)][_0x4e848b];}[a0_0x22b77d(0x199)](_0x15ffa2){const _0xd51383=a0_0x22b77d;return this[_0xd51383(0x2f8)][_0xd51383(0x1a9)](_0x8e0f01=>_0x8e0f01['id']===_0x15ffa2);}[a0_0x22b77d(0x325)](_0x3dd307){const _0x8ea3f1=a0_0x22b77d;return this[_0x8ea3f1(0x2f8)][_0x8ea3f1(0x1a9)](_0xc69db1=>_0xc69db1[_0x8ea3f1(0x2e6)]===_0x3dd307);}[a0_0x22b77d(0x191)](){const _0x33dc8e=a0_0x22b77d;return this['items'][_0x33dc8e(0x318)](_0x22d4c7=>_0x22d4c7['id'])[_0x33dc8e(0x1cb)](_0x549413=>_0x549413!==undefined);}['getCodes'](){const _0x56b1e3=a0_0x22b77d;return this[_0x56b1e3(0x2f8)]['map'](_0x335fc7=>_0x335fc7[_0x56b1e3(0x2e6)]);}[a0_0x22b77d(0x2a5)](){const _0x30802d=a0_0x22b77d;if(this['hasConflict']())return _0x30802d(0x226)+this[_0x30802d(0x2f8)]['length']+_0x30802d(0x359)+this['getLatest']()[_0x30802d(0x360)]+')';return _0x30802d(0x226)+this[_0x30802d(0x2f8)][0x0]['name']+')';}}class DatasetGroupMap{[a0_0x22b77d(0x35e)];constructor(_0x4bad46){const _0x51d9cc=a0_0x22b77d;this[_0x51d9cc(0x35e)]=new Map();for(const _0x1c59b5 of _0x4bad46){const _0x286b99=getTableKey(_0x1c59b5);if(!this[_0x51d9cc(0x35e)][_0x51d9cc(0x38b)](_0x286b99))this[_0x51d9cc(0x35e)][_0x51d9cc(0x23d)](_0x286b99,new DatasetGroup(_0x1c59b5));else{const _0x416be6=this[_0x51d9cc(0x35e)][_0x51d9cc(0x387)](_0x286b99),_0x50edfc=[..._0x416be6[_0x51d9cc(0x2bb)](),_0x1c59b5];this[_0x51d9cc(0x35e)][_0x51d9cc(0x23d)](_0x286b99,new DatasetGroup(_0x50edfc));}}}[a0_0x22b77d(0x387)](_0xdfa318){return this['groups']['get'](_0xdfa318);}[a0_0x22b77d(0x38b)](_0x1b05bb){const _0x4bc75c=a0_0x22b77d;return this[_0x4bc75c(0x35e)]['has'](_0x1b05bb);}get['size'](){const _0x59714e=a0_0x22b77d;return this[_0x59714e(0x35e)][_0x59714e(0x248)];}[a0_0x22b77d(0x338)](){const _0x2af4a=a0_0x22b77d;return this[_0x2af4a(0x35e)][_0x2af4a(0x338)]();}['values'](){const _0x4b721d=a0_0x22b77d;return this[_0x4b721d(0x35e)]['values']();}[a0_0x22b77d(0x223)](){const _0x4509a9=a0_0x22b77d;return this[_0x4509a9(0x35e)]['entries']();}[Symbol['iterator']](){const _0xc340a6=a0_0x22b77d;return this['groups'][_0xc340a6(0x223)]();}[a0_0x22b77d(0x24c)](_0x26007b){const _0x1129c4=a0_0x22b77d;this[_0x1129c4(0x35e)][_0x1129c4(0x24c)]((_0x57769d,_0x4c1bb6)=>_0x26007b(_0x57769d,_0x4c1bb6,this));}[a0_0x22b77d(0x232)](){const _0x51992f=a0_0x22b77d,_0x271989=new Map();for(const [_0x2a7269,_0x353917]of this[_0x51992f(0x35e)]){_0x353917[_0x51992f(0x2c4)]()&&_0x271989[_0x51992f(0x23d)](_0x2a7269,_0x353917);}return _0x271989;}[a0_0x22b77d(0x371)](){const _0x6bc58=a0_0x22b77d;for(const _0x3ea856 of this[_0x6bc58(0x35e)][_0x6bc58(0x1f5)]()){if(_0x3ea856[_0x6bc58(0x2c4)]())return!![];}return![];}[a0_0x22b77d(0x31a)](){const _0x18ce03=a0_0x22b77d;let _0x5d034e=0x0,_0x31bca1=0x0;for(const _0x5a2b3a of this[_0x18ce03(0x35e)][_0x18ce03(0x1f5)]()){_0x5a2b3a[_0x18ce03(0x2c4)]()&&(_0x5d034e++,_0x31bca1+=_0x5a2b3a['getCount']());}return{'conflictGroupCount':_0x5d034e,'conflictItemCount':_0x31bca1,'totalGroups':this['groups'][_0x18ce03(0x248)]};}[a0_0x22b77d(0x2c3)](){const _0x120ec4=a0_0x22b77d,_0x20950b=[];for(const _0x43fcb8 of this['groups'][_0x120ec4(0x1f5)]()){_0x20950b[_0x120ec4(0x1cf)](..._0x43fcb8['getAll']());}return _0x20950b;}[a0_0x22b77d(0x366)](){const _0x1cbadc=a0_0x22b77d,_0x42aef6=[];for(const _0xab9771 of this[_0x1cbadc(0x35e)][_0x1cbadc(0x1f5)]()){_0x42aef6[_0x1cbadc(0x1cf)](_0xab9771['getLatest']());}return _0x42aef6;}[a0_0x22b77d(0x28e)](_0x42f9ca){const _0x56c53f=a0_0x22b77d;return this[_0x56c53f(0x35e)][_0x56c53f(0x387)](_0x42f9ca)?.[_0x56c53f(0x28e)]();}[a0_0x22b77d(0x2bb)](_0x33e401){const _0x400e58=a0_0x22b77d;return this[_0x400e58(0x35e)][_0x400e58(0x387)](_0x33e401)?.[_0x400e58(0x2bb)]()||[];}[a0_0x22b77d(0x2b3)](){const _0x3500ae=a0_0x22b77d,_0x3e0a38=this[_0x3500ae(0x366)](),_0x1cc0e0=_0x3e0a38[_0x3500ae(0x318)](_0x217b4a=>_0x217b4a[_0x3500ae(0x385)]());return generateDatasetsConfig(_0x1cc0e0,{'enableDeduplication':![]});}[a0_0x22b77d(0x28c)](){const _0x456753=a0_0x22b77d,_0x30f60e=this[_0x456753(0x2c3)](),_0x381ef9=_0x30f60e[_0x456753(0x318)](_0x152814=>_0x152814[_0x456753(0x385)]());return generateFullDatasetsConfig(_0x381ef9);}[a0_0x22b77d(0x239)](){const _0x415364=a0_0x22b77d,_0xd42065={};for(const [_0x1991d6,_0x11012b]of this[_0x415364(0x35e)]){_0xd42065[_0x1991d6]=_0x11012b;}return _0xd42065;}[a0_0x22b77d(0x385)](){const _0x379e4c=a0_0x22b77d,_0x3e572e={};for(const [_0x4746e1,_0x9d19e2]of this['groups']){_0x3e572e[_0x4746e1]=_0x9d19e2[_0x379e4c(0x2bb)]()[_0x379e4c(0x318)](_0x417851=>_0x417851['toJSON']());}return _0x3e572e;}['toString'](){const _0x36de79=a0_0x22b77d;return _0x36de79(0x206)+this[_0x36de79(0x35e)][_0x36de79(0x248)]+'\x20groups,\x20'+(this['hasConflicts']()?_0x36de79(0x2e9):_0x36de79(0x353))+')';}}class DatasetList{[a0_0x22b77d(0x25d)];constructor(_0x313ce8){const _0x2bf852=a0_0x22b77d;let _0x314acb;if(Array[_0x2bf852(0x228)](_0x313ce8))_0x314acb=_0x313ce8;else{if('success'in _0x313ce8){if(!_0x313ce8['success'])throw new Error(_0x2bf852(0x309));if(Array[_0x2bf852(0x228)](_0x313ce8[_0x2bf852(0x22b)]))_0x314acb=_0x313ce8[_0x2bf852(0x22b)][_0x2bf852(0x318)](_0x1bd8c3=>({..._0x1bd8c3,'datasetCode':_0x1bd8c3[_0x2bf852(0x216)]||_0x1bd8c3[_0x2bf852(0x2e6)]}));else{if(_0x313ce8[_0x2bf852(0x22b)]?.[_0x2bf852(0x33a)])_0x314acb=_0x313ce8[_0x2bf852(0x22b)]['tableData']['map'](_0x5731ae=>({..._0x5731ae,'datasetCode':_0x5731ae[_0x2bf852(0x216)]||_0x5731ae[_0x2bf852(0x2e6)]}));else throw new Error(_0x2bf852(0x1e7));}}else{if(_0x2bf852(0x33a)in _0x313ce8){if(!Array[_0x2bf852(0x228)](_0x313ce8[_0x2bf852(0x33a)]))throw new Error(_0x2bf852(0x243));_0x314acb=_0x313ce8[_0x2bf852(0x33a)][_0x2bf852(0x318)](_0x970573=>({..._0x970573,'datasetCode':_0x970573[_0x2bf852(0x216)]||_0x970573[_0x2bf852(0x2e6)]}));}else throw new Error(_0x2bf852(0x330));}}const _0x4d1c6b=_0x314acb['map'](_0x1ee76d=>new DatasetItem(_0x1ee76d));this['_datasetMap']=new DatasetGroupMap(_0x4d1c6b);}get['datasetMap'](){return this['_datasetMap'];}[a0_0x22b77d(0x25c)](){const _0x437952=a0_0x22b77d;return this[_0x437952(0x25d)][_0x437952(0x2c3)]();}[a0_0x22b77d(0x1cd)](){const _0x208cd3=a0_0x22b77d;return this[_0x208cd3(0x25c)]()[_0x208cd3(0x251)];}['isEmpty'](){const _0x481666=a0_0x22b77d;return this[_0x481666(0x25d)][_0x481666(0x248)]===0x0;}[a0_0x22b77d(0x38c)](_0x594593){const _0x23dbc5=a0_0x22b77d;return this[_0x23dbc5(0x25c)]()[_0x594593];}[a0_0x22b77d(0x372)](){return this['getItems']()[0x0];}[a0_0x22b77d(0x29f)](){const _0x4730a0=a0_0x22b77d,_0x3daa71=this[_0x4730a0(0x25c)]();return _0x3daa71[_0x3daa71['length']-0x1];}['findByCode'](_0x556db0){const _0x3a8358=a0_0x22b77d;for(const _0x4c6f0a of this['_datasetMap']['values']()){const _0x35d79e=_0x4c6f0a[_0x3a8358(0x325)](_0x556db0);if(_0x35d79e)return _0x35d79e;}return;}[a0_0x22b77d(0x1a8)](_0x51c61f){const _0x2289ed=a0_0x22b77d;return this[_0x2289ed(0x25c)]()[_0x2289ed(0x1a9)](_0x51a283=>_0x51a283[_0x2289ed(0x360)]===_0x51c61f);}[a0_0x22b77d(0x199)](_0x21d31c){const _0x4c7ae2=a0_0x22b77d;for(const _0x2f15d8 of this[_0x4c7ae2(0x25d)][_0x4c7ae2(0x1f5)]()){const _0x1da6a3=_0x2f15d8[_0x4c7ae2(0x199)](_0x21d31c);if(_0x1da6a3)return _0x1da6a3;}return;}[a0_0x22b77d(0x2ba)](_0x26bdb4){const _0x21ce97=a0_0x22b77d,_0x33468c=getTableKey(_0x26bdb4);return this[_0x21ce97(0x25d)]['getLatest'](_0x33468c);}[a0_0x22b77d(0x1cb)](_0x190c9d){const _0x2da148=a0_0x22b77d,_0x2ae40a=this[_0x2da148(0x25c)]()[_0x2da148(0x1cb)](_0x190c9d);return new DatasetList(_0x2ae40a[_0x2da148(0x318)](_0x4edb39=>_0x4edb39[_0x2da148(0x385)]()));}['findAll'](_0x4016b1){const _0x4bc113=a0_0x22b77d;return this[_0x4bc113(0x25c)]()[_0x4bc113(0x1cb)](_0x4016b1);}[a0_0x22b77d(0x24c)](_0x49ce1d){const _0x4b7c07=a0_0x22b77d;this[_0x4b7c07(0x25c)]()[_0x4b7c07(0x24c)](_0x49ce1d);}[a0_0x22b77d(0x318)](_0x25cbea){const _0xc965c3=a0_0x22b77d;return this['getItems']()[_0xc965c3(0x318)](_0x25cbea);}[Symbol[a0_0x22b77d(0x319)]](){const _0x50d50e=a0_0x22b77d;return this[_0x50d50e(0x25c)]()[Symbol[_0x50d50e(0x319)]]();}[a0_0x22b77d(0x1c3)](){const _0x3b097c=a0_0x22b77d;return this[_0x3b097c(0x25c)]()['filter'](_0x33f7f7=>_0x33f7f7['isVirtualTable']());}[a0_0x22b77d(0x20b)](){const _0x4e0f74=a0_0x22b77d;return this[_0x4e0f74(0x25c)]()[_0x4e0f74(0x1cb)](_0xc3c63d=>!_0xc3c63d['isVirtualTable']());}[a0_0x22b77d(0x265)](){const _0xa1bb5c=a0_0x22b77d,_0x3b9db1={};for(const _0x2d6e5b of this[_0xa1bb5c(0x25d)][_0xa1bb5c(0x1f5)]()){const _0x5870c4=_0x2d6e5b[_0xa1bb5c(0x28e)]()[_0xa1bb5c(0x386)]();_0x3b9db1[_0x5870c4]=_0x2d6e5b[_0xa1bb5c(0x2bb)]();}return _0x3b9db1;}[a0_0x22b77d(0x21a)](){const _0x42cab9=a0_0x22b77d,_0x5556c6={};for(const _0x47935a of this['_datasetMap'][_0x42cab9(0x232)]()[_0x42cab9(0x1f5)]()){const _0x3b8058=_0x47935a['getLatest']()[_0x42cab9(0x386)]();_0x5556c6[_0x3b8058]=_0x47935a[_0x42cab9(0x2bb)]()[_0x42cab9(0x318)](_0x3799db=>_0x3799db[_0x42cab9(0x385)]());}return{'hasConflicts':Object['keys'](_0x5556c6)[_0x42cab9(0x251)]>0x0,'conflicts':_0x5556c6};}[a0_0x22b77d(0x371)](){const _0x392ae3=a0_0x22b77d;return this[_0x392ae3(0x25d)][_0x392ae3(0x371)]();}[a0_0x22b77d(0x1d3)](){const _0x4aeeba=a0_0x22b77d,_0x590970=[];for(const _0x33ed17 of this[_0x4aeeba(0x25d)][_0x4aeeba(0x232)]()['values']()){_0x590970[_0x4aeeba(0x1cf)](..._0x33ed17[_0x4aeeba(0x2bb)]());}return _0x590970;}['generateConfig'](_0x1265cc){const _0x146cb2=a0_0x22b77d;if(!_0x1265cc||Object[_0x146cb2(0x338)](_0x1265cc)[_0x146cb2(0x251)]===0x0)return this[_0x146cb2(0x304)][_0x146cb2(0x2b3)]();const _0xddb4c3=this['getItems']()[_0x146cb2(0x318)](_0x5df9d1=>_0x5df9d1[_0x146cb2(0x385)]());return generateDatasetsConfig(_0xddb4c3,_0x1265cc);}[a0_0x22b77d(0x1b9)](_0x29d24b){const _0x13cfcf=a0_0x22b77d,_0x3155f9=this[_0x13cfcf(0x2fc)](_0x29d24b);return datasetsConfigToArray(_0x3155f9);}[a0_0x22b77d(0x2e4)](){const _0x1f2e3e=a0_0x22b77d;return this[_0x1f2e3e(0x25c)]()[_0x1f2e3e(0x318)](_0x1fbbfb=>_0x1fbbfb[_0x1f2e3e(0x2b3)]());}['getStats'](){const _0x21431c=a0_0x22b77d;return{'total':this[_0x21431c(0x1cd)](),'virtualTables':this[_0x21431c(0x1c3)]()['length'],'realTables':this[_0x21431c(0x20b)]()[_0x21431c(0x251)],'hasConflicts':this[_0x21431c(0x371)](),'conflictCount':this[_0x21431c(0x1d3)]()[_0x21431c(0x251)]};}[a0_0x22b77d(0x1a4)](){return this['getItems']()['map'](_0x3834d8=>_0x3834d8['toJSON']());}[a0_0x22b77d(0x385)](){const _0x444b75=a0_0x22b77d;return this[_0x444b75(0x1a4)]();}['toString'](){const _0x12ec0b=a0_0x22b77d;return _0x12ec0b(0x1dc)+this[_0x12ec0b(0x1cd)]()+_0x12ec0b(0x2da)+this[_0x12ec0b(0x25d)][_0x12ec0b(0x248)]+'\x20groups)';}static['fromApiResponse'](_0x3a0cde){return new DatasetList(_0x3a0cde);}static[a0_0x22b77d(0x2ce)](_0xfcd48b){return new DatasetList(_0xfcd48b);}static[a0_0x22b77d(0x2a6)](){return new DatasetList([]);}}function operationToAnalysis(_0x49873e){const _0x4864ea=a0_0x22b77d;return{'name':_0x49873e[_0x4864ea(0x292)](),'displayName':_0x49873e['getDisplayName'](),'type':_0x49873e[_0x4864ea(0x328)](),'method':_0x49873e[_0x4864ea(0x38e)](),'path':_0x49873e[_0x4864ea(0x201)](),'fullUrl':_0x49873e[_0x4864ea(0x225)](),'requestFields':_0x49873e[_0x4864ea(0x20c)](),'requestParams':_0x49873e['getRequestParams'](),'responseSchema':_0x49873e[_0x4864ea(0x337)](),'requestExample':_0x49873e['generateRequestExample'](),'responseExample':_0x49873e['generateResponseExample'](),'enabled':_0x49873e[_0x4864ea(0x2bd)]()};}function a0_0x53fa(){const _0x207b06=['replace','getVirtualTables','createTimeField','getOperationFieldOperators','导入模板','$contain','field_name','328265KMJFKS','success','filter','customFilter','getCount','isUpdateTime','push','VARCHAR','logicField','获取数据集失败:\x20','getConflictingItems','getFileUrl','hasCreatorIdField','解析\x20requestBody\x20失败:','selectBestOperator','//\x20导出所有数据\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','示例值','任务信息','();\x0a\x20\x20window.open(fileUrl,\x20\x27_blank\x27);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x0a}','DatasetList(','hasExtendField','operation','时间戳','useFullExample','N/A','$endWith','slice','\x0a\x0a//\x20Usage\x20examples:\x0a\x0a','isDeleted','min','Invalid\x20API\x20response:\x20data\x20must\x20be\x20an\x20array\x20(get-dataset-list)\x20or\x20contain\x20tableData\x20(getList)','当前页码','({\x20','getCreateTime','BOOLEAN','BOOL','_fieldListWithDeleted','getDisabledOperationInstances','\x27\x20\x20//\x20人类友好的别名,可通过\x20client.models.','$gteq','CREATE_EXPORT','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20data\x20=\x20await\x20client.models.','getCountByType','from','values','Operation\x20instance\x20not\x20found:\x20','generateResponseExample','object','[filterApiOperations]\x20operations\x20is\x20not\x20an\x20array:','\x20访问\x0a\x20\x20\x20\x20}\x0a\x20\x20]\x0a});','GET_ONE_UPDATE','_raw','usageExample','富文本','systemRetain','BIGINT','getPath','接口名称','Excel导出','\x20Response\x20example:\x0a','getEnabledOperations','DatasetGroupMap(','sort','getUpdateTime','11PZNUdT','\x0a//\x20Call\x20the\x20','getRealTables','getRequestFields','18hXoEeW','isEnum','Filter\x20API\x20-\x20高级查询接口','fields','getOperationCount','(id,\x20data);','required','NUMBER','[isApiBlacklisted]\x20operationName\x20is\x20not\x20a\x20string:','code','下拉选择','DESC','validateEnumValue','detectConflicts','getApplicableOperators','getNames','const\x20fileUrl\x20=\x20await\x20client.models.','generateSDKCallCode','({\x20currentPage,\x20pageSize\x20});','isRequired','getOperationCountByMethod','successCode','entries','createDate','getFullUrl','DatasetGroup(','333UHPNUm','isArray','getDisabledNames','北京市朝阳区','data','enabledOperationCount','getSystemFields','options','\x0a\x0a//\x20复杂查询(组合条件)\x0aconst\x20result2\x20=\x20await\x20client.models.','_fields','DrivenDataDetail(','getConflicts','hasFilterOperation','getOperationAnalysis','getCountByMethod','String[]','getSystemAnalysisResult','select','toObject','hasModifierIdField','delete','getOperationAnalysesByType','set','getOperations','getFieldFilterOperators','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20fileUrl\x20=\x20await\x20client.models.','getFieldListWithDeleted','getOperationRequestFields','Invalid\x20simplified\x20API\x20response:\x20tableData\x20must\x20be\x20an\x20array','17912nJVdZs','createExport','phone','requestFields','size','some','children','const\x20result\x20=\x20await\x20client.models.','forEach','GET_FILE_URL','source','获取文件URL','[dsparser]\x20跳过重复的表名\x20\x22','length','getEnumFieldsMeta','generateFromSchema','getMissingCRUDOperations','modifierNameField','getFilteredOperationAnalyses','generateAllOperationsSummary','generateExampleValue','extend','字段名称','now','getItems','_datasetMap','createAll','fieldCount','getRequired','includes','label','getBusiness','msg','groupByTableName','1890840dIWzGG','generateUsageExample','\x20operation\x0a','2368902fErrrK','primaryKey','52473xIltGK','[Operation.parseRawRequestBody]\x20requestBody\x20is\x20not\x20a\x20string:','getRawDbtableConfig','getOne','null','generateFullSDKExample','getOperationsOverviewData','//\x20单值查询\x0aconst\x20result\x20=\x20await\x20client.models.','getFieldOperators','getOneOrigin','placeholder','pkField','$lte','SELECT','withDeleted','getEnumFields','getFieldList','getDatasetSDKKey','isOperationEnabled','getOperationAnalyses','getSelectItemsSource','//\x20简单查询\x0aconst\x20result1\x20=\x20await\x20client.models.','CHECKBOX','getUploadFileScript','STRING','sortNum','getRequestParams','[generateRequestExample]\x20fields\x20is\x20not\x20an\x20array:','dataset_000000','getTableKey','isPrimaryKeyField','$or','0000','toFullConfig','dataset_','getLatest','isPrimaryKey','toFieldDefinition','fullUrl','getName','isMultipleSelect','properties','查询单条','item1','_operations','string','getFieldsByType','长文本','creatorNameField','dblinkInfoDTO','generateSingleValueExample','getSystem','getLast','isSystem','DATETIME','generateAliasExplanation','2024-01-01','\x20operations)','toString','empty','DECIMAL','datasetKey','errorCode','valueLabels','getByType','updateTimeField','2295610LAMEit','groupByType','join','generateOperationSummary','$in','.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20可读性强,符合编程命名习惯\x0a-\x20便于记忆和手工编写\x0a-\x20代码更加简洁美观\x0a\x0a**注意**:使用别名方式需要在\x20`registerModels`\x20时配置\x20`alias`\x20字段。\x0a','toConfig','raw','\x27,\x0a\x20\x20\x20\x20\x20\x20datasetCode:\x20\x27','getRaw','getDisabled','taskInfo','[parseFieldExtend]\x20Invalid\x20field:','findByTableName','getAll','getEnumFieldMeta','isEnabled','支持单值或数组','getList','hasDblinkInfo','dbId','getDefaultValue','getAllDatasets','hasConflict','getOperators','hasUpdateTimeField','host','\x20的\x20extend\x20配置失败:','where','generateAllOperationsFullSDKExample','value','toUpperCase','creatorIdField','initDataset','getEnabledOperationInstances','tableName','stringify','Integer','({\x20code,\x20label\x20});','isSystemField','deleted','description','includeDeleted','//\x20成功时\x20-\x20直接获取文件\x20URL(字符串)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.',',\x20currentPage,\x20pageSize,\x20...\x20});','\x20items,\x20','dbtableConfig','split','getFilterOperators','requestBody','responseBody','isAutoIncrement','getOperationList','pageSize','(params);','toConfigArray','();\x0a\x0a//\x20导出指定条数\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','datasetCode','getOldest','RADIO','has\x20conflicts','支持多个条件','errorMsg','generateDefaultFilterOperation','$lteq','_fieldList','_operationList','[generateRequestExample]\x20Invalid\x20field:','isVirtualTable','[FieldList]\x20Field\x20definitions\x20must\x20be\x20an\x20array','ensureFilterOperation','getTenantCode','trim','parse','getDisabledOperations','items','\x0a##\x20模型访问方式说明\x0a\x0aSDK\x20提供两种模型访问方式:\x0a\x0a###\x201.\x20标准方式(推荐用于程序化场景)\x0a\x0a使用\x20`dataset_[完整datasetCode]`\x20格式(即\x20datasetSDKKey),这是通用的、稳定的访问方式:\x0a\x0a```javascript\x0a//\x20标准访问方式\x0aconst\x20result\x20=\x20await\x20client.models.','请求示例','parseRawResponseBody','generateConfig','200','getOperation','create','TEXT','createTime','address','创建导出','datasetMap','keyword','systemAnalysisResult','DrivenDataDetailPlus(','6KXrYqN','Invalid\x20API\x20response:\x20success\x20is\x20false','value2','https://example.com/image.jpg','CREATE_IMPORT','add','\x0a\x20\x20env:\x20\x27','1.0.0-beta.8','params','getRequiredFields','generateRequestAllExamples','_operationAnalyses','dbName','orderBy','getOperationFieldsOperatorsMap','操作名称','map','iterator','getConflictStats','查询单条(原始)','[Field.extend]\x20解析字段\x20','2024-12-31','operations','getOperationCountByType','<p>富文本内容</p>','context','sdkCallCode','[generateExampleValue]\x20fieldCode\x20is\x20not\x20a\x20string:','-\x20`','findByCode','示例文本','返回字段列表(字段投影)','getType','\x0a\x20\x20accessKey:\x20process.env.LOVRABET_ACCESS_KEY,','API路径','getEnabled','getEnumMetas','String','modifierIdField','DATE','Invalid\x20input:\x20expected\x20DatasetItemData[],\x20GetListApiResponse,\x20GetDatasetListApiResponse,\x20or\x20GetListSimplifiedResponse','getDisplayName','includeDisabled','defaultValue','查询单条(用于更新)','INTEGER','multiple','getResponseSchema','keys','hasOperation','tableData','displayName','getPrimaryKeyFields','getEnum','数组查询(支持多选)','autoIncrement','modifyDate','/filter','getFilterOperation','selectItemsSource','labelField','getFiltered','DatasetItem(','filterBlacklist','getOperationDocMeta','getBusinessFields','createImport','每页数量','getOperationStats','array','suffix','email','[parseOperationType]\x20value\x20is\x20not\x20a\x20string:','这是一段较长的文本内容示例','当前页码(可选)','no\x20conflicts','generateFieldExample','getAllFieldsString','文件上传','$startWith','();','\x20items,\x20conflict,\x20latest:\x20','\x0a\x20\x20models:\x20[\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20tableName:\x20\x27','sdkCall','isCreateTime','hasDbtableConfig','groups','getAutoIncrement','name','charAt','getEnumOptions','2115955bcOCor','tooltip','value1','getLatestDatasets','[Field]\x20Invalid\x20field\x20definition','getDeleted','[generateExampleValue]\x20fieldType\x20is\x20not\x20a\x20string:','getOneUpdate','getFieldCount','获取上传脚本','systemFieldCount','-$1','//\x20成功时\x20-\x20直接获取\x20data\x20字段内容\x0aconst\x20data\x20=\x20await\x20client.models.','getModelName','hasConflicts','getFirst','IMPORT_TEMPLATE','13800138000','import\x20{\x20createClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;\x0a\x0a//\x20Create\x20SDK\x20client\x0aconst\x20client\x20=\x20createClient({\x0a\x20\x20appCode:\x20\x27','(...);\x0a\x20\x20console.log(data);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x20(包含\x20success,\x20errorMsg\x20等)\x0a}','method','dataset_unknown','excelExport','$eq','TIMESTAMP','getAllFieldsArray','getPrimaryKeys','getEnabledNames','hasLogicField','isEnumField','sortOperationsWithFilterFirst','getSelectOptions','({\x20/*\x20可选:筛选条件\x20*/\x20});','https://example.com/file.pdf','toJSON','getTableName','get','_extend','currentPage','every','has','getAt','update','getMethod','modelCode','parseRawRequestBody','POST','[getDbTypeDisplay]\x20type\x20is\x20not\x20a\x20string:','operationCount','hasField','getOperationOperators','number','getStats','warn','DbtableConfig(table:\x20','isBusiness','解析\x20responseBody\x20失败:','parseFieldExtend','\x20fields,\x20','$ne','getFields','getIds','Object','OperationList(','\x0a\x0a//\x20','GET_LIST','hasCreateTimeField','DELETE','toLowerCase','findById','enabled','getField','all',',\x20...\x20});','\x27,\x0a\x20\x20\x20\x20\x20\x20alias:\x20\x27','version','test','padStart','创建导入','responseExample','toArray','getEnabledOperationAnalyses','importTemplate','path','findByName','find','fieldName','generateRequestExample','查询条件(支持\x2012\x20种操作符:$eq,\x20$ne,\x20$gte,\x20$gteq,\x20$lte,\x20$lteq,\x20$in,\x20$contain,\x20$startWith,\x20$endWith,\x20$and,\x20$or)','Number','type','();\x0a\x0a//\x20按条件导出(支持与\x20filter\x20相同的参数)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','getSDKInitData','$and','.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20唯一确定,不会产生命名冲突\x0a-\x20适合程序自动生成代码\x0a-\x20与\x20datasetCode\x20直接对应,便于追溯\x0a\x0a###\x202.\x20别名方式(推荐用于人工编码场景)\x0a\x0a使用\x20camelCase\x20格式的别名,更加人类友好:\x0a\x0a```javascript\x0a//\x20别名访问方式(需要在\x20registerModels\x20时配置\x20alias)\x0aconst\x20result\x20=\x20await\x20client.models.','hasTableName','$gte','dbType','查询列表','getSource','GET_UPLOAD_FILE_SCRIPT','generateConfigArray','getEnumMeta','getFieldInstance','repeat','tenantCode','total','getFieldDefinition','allFields','getModelAlias'];a0_0x53fa=function(){return _0x207b06;};return a0_0x53fa();}function operationsToAnalyses(_0x1e61e2){return _0x1e61e2['map'](operationToAnalysis);}class DrivenDataDetailPlus extends DrivenDataDetail{[a0_0x22b77d(0x313)];['getModelAlias'](){const _0x5dcfac=a0_0x22b77d;return this[_0x5dcfac(0x288)]();}['getOperationAnalyses'](_0x5c8ec2=![]){const _0x4700f5=a0_0x22b77d;if(!_0x5c8ec2&&this[_0x4700f5(0x313)])return this['_operationAnalyses'];const _0x297c77=this[_0x4700f5(0x23e)]();return this['_operationAnalyses']=operationsToAnalyses(_0x297c77),this[_0x4700f5(0x313)];}[a0_0x22b77d(0x1a5)](){const _0x50f5f4=a0_0x22b77d;return this[_0x50f5f4(0x256)]({'includeDisabled':![],'filterBlacklist':!![]});}[a0_0x22b77d(0x256)](_0x2793d2={}){const _0x26f596=a0_0x22b77d;let _0x58984c=this[_0x26f596(0x27e)]();return!_0x2793d2[_0x26f596(0x332)]&&(_0x58984c=_0x58984c[_0x26f596(0x1cb)](_0x4180aa=>_0x4180aa[_0x26f596(0x19a)])),_0x2793d2['filterBlacklist']!==![]&&(_0x58984c=filterApiOperations(_0x58984c)),_0x2793d2[_0x26f596(0x1cc)]&&(_0x58984c=_0x58984c['filter'](_0x2793d2['customFilter'])),_0x58984c=this[_0x26f596(0x381)](_0x58984c),_0x58984c;}[a0_0x22b77d(0x381)](_0x5bfc3f){const _0x337e32=a0_0x22b77d,_0x517d8e=_0x5bfc3f[_0x337e32(0x1a9)](_0x2a93ad=>_0x2a93ad[_0x337e32(0x360)]===_0x337e32(0x1cb)),_0x4385fa=_0x5bfc3f[_0x337e32(0x1cb)](_0x177665=>_0x177665[_0x337e32(0x360)]!==_0x337e32(0x1cb));return _0x517d8e?[_0x517d8e,..._0x4385fa]:_0x4385fa;}[a0_0x22b77d(0x234)](_0x300648){const _0x2e4cb5=a0_0x22b77d,_0x20c3cf=this[_0x2e4cb5(0x27e)]();return _0x20c3cf[_0x2e4cb5(0x1a9)](_0x8e320d=>_0x8e320d['name']===_0x300648);}[a0_0x22b77d(0x23c)](_0x168f7d){const _0x4780fc=a0_0x22b77d,_0xe184d3=this[_0x4780fc(0x27e)]();return _0xe184d3[_0x4780fc(0x1cb)](_0x9fa1cd=>_0x9fa1cd[_0x4780fc(0x1ae)]===_0x168f7d);}[a0_0x22b77d(0x242)](_0x85ef0e){const _0x20a2d3=a0_0x22b77d,_0x47a398=this[_0x20a2d3(0x2fe)](_0x85ef0e);if(!_0x47a398)return[];const _0x2aebb0=_0x47a398[_0x20a2d3(0x20c)](),_0x254a3c=this[_0x20a2d3(0x190)]();return _0x254a3c[_0x20a2d3(0x1cb)](_0x1991fa=>_0x2aebb0['includes'](_0x1991fa[_0x20a2d3(0x216)]));}[a0_0x22b77d(0x348)](_0x4bd4e3,_0x50240b){const _0x5db3a8=a0_0x22b77d,_0x2027e1=this[_0x5db3a8(0x234)](_0x4bd4e3);if(!_0x2027e1)return null;const _0x5e7017=this[_0x5db3a8(0x2fe)](_0x2027e1[_0x5db3a8(0x360)]);if(!_0x5e7017)throw new Error(_0x5db3a8(0x1f6)+_0x2027e1[_0x5db3a8(0x360)]);const _0x1374fa=this[_0x5db3a8(0x27c)](),_0x1509e9=this[_0x5db3a8(0x386)](),_0x1bce67=_0x5e7017['generateSDKCallCode'](_0x1374fa,{'useFullExample':_0x50240b?.[_0x5db3a8(0x1e0)]}),_0x4bf6fb=_0x5e7017[_0x5db3a8(0x267)](_0x1374fa);return{'operation':_0x2027e1,'operationInstance':_0x5e7017,'basicInfo':{'name':_0x2027e1[_0x5db3a8(0x360)],'displayName':_0x2027e1[_0x5db3a8(0x33b)],'method':_0x2027e1[_0x5db3a8(0x377)],'path':_0x2027e1[_0x5db3a8(0x1a7)],'fullUrl':_0x2027e1[_0x5db3a8(0x291)],'enabled':_0x2027e1['enabled']},'sdkCall':{'datasetCode':this[_0x5db3a8(0x2e6)],'datasetSDKKey':_0x1374fa,'tableName':_0x1509e9,'operationName':_0x2027e1['name'],'params':_0x2027e1['requestFields'],'code':_0x1bce67},'usageExample':_0x4bf6fb};}['getDatasetDocMeta'](_0x3d2888={}){const _0x4f24e7=a0_0x22b77d,_0x681023=this[_0x4f24e7(0x256)](_0x3d2888),_0x5b8a56=this[_0x4f24e7(0x188)](),_0x484dfc=this[_0x4f24e7(0x27c)](),_0x5a19e0={'name':this[_0x4f24e7(0x360)],'code':this[_0x4f24e7(0x2e6)],'tableName':this['getTableName'](),'datasetSDKKey':_0x484dfc,'tableKey':this[_0x4f24e7(0x288)](),'source':this[_0x4f24e7(0x24e)],'fieldCount':_0x5b8a56[_0x4f24e7(0x25f)],'businessFieldCount':_0x5b8a56['businessFieldCount'],'systemFieldCount':_0x5b8a56[_0x4f24e7(0x36d)],'operationCount':_0x5b8a56[_0x4f24e7(0x393)],'enabledOperationCount':_0x5b8a56[_0x4f24e7(0x22c)]},_0x420d3e=_0x681023[_0x4f24e7(0x318)](_0x4886fb=>this[_0x4f24e7(0x348)](_0x4886fb[_0x4f24e7(0x360)]))[_0x4f24e7(0x1cb)](_0x52e209=>_0x52e209!==null);return{'title':this[_0x4f24e7(0x360)]+'\x20API\x20文档','datasetInfo':_0x5a19e0,'operations':_0x420d3e};}[a0_0x22b77d(0x271)](_0x274733){const _0x1a7199=a0_0x22b77d,_0x20b359=[{'index':_0x1a7199(0x360),'label':_0x1a7199(0x202)},{'index':_0x1a7199(0x33b),'label':_0x1a7199(0x317)},{'index':_0x1a7199(0x377),'label':'方法'},{'index':_0x1a7199(0x35b),'label':'SDK\x20调用'},{'index':_0x1a7199(0x1a7),'label':_0x1a7199(0x32a)},{'index':_0x1a7199(0x322),'label':'完整的\x20SDK\x20调用代码'}],_0x4339d0=_0x274733['map'](_0x3b98f2=>{const _0x1d6eb8=_0x1a7199,{basicInfo:_0x47a086,sdkCall:_0x56ca20}=_0x3b98f2,_0x404ca1=_0x56ca20['code'][_0x1d6eb8(0x1c2)](/^const\s+\w+\s*=\s*await\s+/,'')[_0x1d6eb8(0x1c2)](/;$/,'');return{'displayName':_0x47a086[_0x1d6eb8(0x33b)],'name':_0x47a086[_0x1d6eb8(0x360)],'method':_0x47a086[_0x1d6eb8(0x377)],'path':_0x47a086[_0x1d6eb8(0x1a7)],'sdkCall':_0x404ca1,'sdkCallCode':_0x56ca20['code']};});return{'tableColumns':_0x20b359,'tableData':_0x4339d0};}[a0_0x22b77d(0x2b0)](_0x9394c1){const _0x2ea7ca=a0_0x22b77d,_0x2d8205=this[_0x2ea7ca(0x234)](_0x9394c1);if(!_0x2d8205)return null;return{'name':_0x2d8205[_0x2ea7ca(0x360)],'displayName':_0x2d8205[_0x2ea7ca(0x33b)],'type':_0x2d8205['type'],'method':_0x2d8205[_0x2ea7ca(0x377)],'path':_0x2d8205[_0x2ea7ca(0x1a7)],'enabled':_0x2d8205['enabled'],'requestFieldCount':_0x2d8205['requestFields'][_0x2ea7ca(0x251)],'hasResponseSchema':_0x2d8205['responseSchema']!==null};}[a0_0x22b77d(0x257)](_0x18d7fd={}){const _0x555843=a0_0x22b77d,_0x3188ee=this[_0x555843(0x256)](_0x18d7fd);return{'datasetName':this[_0x555843(0x360)],'datasetCode':this[_0x555843(0x2e6)],'tableName':this[_0x555843(0x386)](),'totalOperations':_0x3188ee[_0x555843(0x251)],'operations':_0x3188ee[_0x555843(0x318)](_0x490898=>({'name':_0x490898[_0x555843(0x360)],'displayName':_0x490898[_0x555843(0x33b)],'type':_0x490898[_0x555843(0x1ae)],'method':_0x490898[_0x555843(0x377)],'path':_0x490898[_0x555843(0x1a7)],'requestFieldCount':_0x490898[_0x555843(0x247)][_0x555843(0x251)]}))};}[a0_0x22b77d(0x29d)](_0x2e8199){const _0x32253e=a0_0x22b77d,_0x2d24bc={};return Object['entries'](_0x2e8199)[_0x32253e(0x24c)](([_0x24e364,_0x4578ff])=>{const _0x141c0c=_0x32253e;Array[_0x141c0c(0x228)](_0x4578ff)&&_0x4578ff['length']>0x0?_0x2d24bc[_0x24e364]=_0x4578ff[0x0]:_0x2d24bc[_0x24e364]=_0x4578ff;}),_0x2d24bc;}['getOperationStats'](){const _0x5de52e=a0_0x22b77d,_0x29ed90=this['getOperationAnalyses'](),_0x13bcec=_0x29ed90[_0x5de52e(0x1cb)](_0x136d04=>_0x136d04[_0x5de52e(0x19a)]);return{'total':_0x29ed90['length'],'enabled':_0x13bcec['length'],'disabled':_0x29ed90['length']-_0x13bcec[_0x5de52e(0x251)],'byType':this[_0x5de52e(0x31f)](_0x13bcec),'byMethod':this[_0x5de52e(0x221)](_0x13bcec)};}[a0_0x22b77d(0x31f)](_0x513124){const _0x51015a=a0_0x22b77d,_0x2b4d03={};return _0x513124[_0x51015a(0x24c)](_0x3edee9=>{const _0x3aa0f9=_0x51015a;_0x3edee9[_0x3aa0f9(0x1ae)]&&(_0x2b4d03[_0x3edee9[_0x3aa0f9(0x1ae)]]=(_0x2b4d03[_0x3edee9[_0x3aa0f9(0x1ae)]]||0x0)+0x1);}),_0x2b4d03;}[a0_0x22b77d(0x221)](_0x22f031){const _0x284e48=a0_0x22b77d,_0x23e303={};return _0x22f031[_0x284e48(0x24c)](_0x72f6df=>{const _0x2de24e=_0x284e48;_0x23e303[_0x72f6df['method']]=(_0x23e303[_0x72f6df[_0x2de24e(0x377)]]||0x0)+0x1;}),_0x23e303;}['supportsCRUD'](){const _0x5c1305=a0_0x22b77d,_0x40942c=this[_0x5c1305(0x1a5)](),_0x47c00b=new Set(_0x40942c[_0x5c1305(0x318)](_0x54fa4c=>_0x54fa4c[_0x5c1305(0x1ae)])[_0x5c1305(0x1cb)](Boolean));return _0x47c00b[_0x5c1305(0x38b)]('create')&&_0x47c00b['has'](_0x5c1305(0x2bf))&&_0x47c00b[_0x5c1305(0x38b)](_0x5c1305(0x38d))&&_0x47c00b[_0x5c1305(0x38b)](_0x5c1305(0x23b));}[a0_0x22b77d(0x254)](){const _0x58150b=a0_0x22b77d,_0x2450a3=this[_0x58150b(0x1a5)](),_0x110b63=new Set(_0x2450a3['map'](_0x2911de=>_0x2911de[_0x58150b(0x1ae)])[_0x58150b(0x1cb)](Boolean)),_0x2ce945=['create','getList',_0x58150b(0x38d),_0x58150b(0x23b)];return _0x2ce945['filter'](_0x16c5e7=>!_0x110b63[_0x58150b(0x38b)](_0x16c5e7));}['generateFullSDKExample'](_0x42195f,_0x421cfe,_0x2ae688){const _0x3bdfeb=a0_0x22b77d,{includeRequestExample:includeRequestExample=!![],includeResponseExample:includeResponseExample=![],includeUsageExample:includeUsageExample=!![]}=_0x2ae688||{},_0x4d4922=this[_0x3bdfeb(0x348)](_0x42195f,{'useFullExample':includeRequestExample});if(!_0x4d4922)return null;let _0xa5ecd7='';_0xa5ecd7+='\x0a\x0a//\x20'+_0x4d4922[_0x3bdfeb(0x1de)][_0x3bdfeb(0x33b)]+_0x3bdfeb(0x20a)+_0x4d4922[_0x3bdfeb(0x1de)][_0x3bdfeb(0x360)]+_0x3bdfeb(0x268)+_0x4d4922[_0x3bdfeb(0x35b)][_0x3bdfeb(0x216)];if(includeResponseExample&&_0x4d4922[_0x3bdfeb(0x1de)][_0x3bdfeb(0x1a3)]?.['data']){const _0x4f4b60=typeof _0x4d4922[_0x3bdfeb(0x1de)][_0x3bdfeb(0x1a3)][_0x3bdfeb(0x22b)]===_0x3bdfeb(0x298)?_0x4d4922[_0x3bdfeb(0x1de)]['responseExample'][_0x3bdfeb(0x22b)]:JSON[_0x3bdfeb(0x2d1)](_0x4d4922['operation'][_0x3bdfeb(0x1a3)][_0x3bdfeb(0x22b)],null,0x2);_0xa5ecd7+=_0x3bdfeb(0x194)+_0x4d4922[_0x3bdfeb(0x1de)]['name']+_0x3bdfeb(0x204)+_0x4f4b60;}return includeUsageExample&&_0x4d4922[_0x3bdfeb(0x1fd)]&&(_0xa5ecd7+=_0x3bdfeb(0x1e4)+_0x4d4922['usageExample'][_0x3bdfeb(0x222)]+'\x0a\x0a'+_0x4d4922['usageExample'][_0x3bdfeb(0x2a9)]),_0xa5ecd7;}[a0_0x22b77d(0x2ca)](_0x429e01){const _0x3a18be=a0_0x22b77d,{includeRequestExample:includeRequestExample=!![],includeUsageExample:includeUsageExample=![]}=_0x429e01||{},_0x1516e7=this['getEnabledOperationAnalyses']();return _0x1516e7[_0x3a18be(0x318)](_0x3e030a=>this[_0x3a18be(0x270)](_0x3e030a[_0x3a18be(0x360)],this['datasetCode'],{'includeRequestExample':includeRequestExample,'includeUsageExample':includeUsageExample}))[_0x3a18be(0x2af)]('\x0a');}[a0_0x22b77d(0x1b0)](_0x34cee9){const _0x6789df=a0_0x22b77d,_0xe5d828=this['getDatasetSDKKey']();return{'appCode':_0x34cee9,'datasetSDKKey':_0xe5d828,'tableKey':this[_0x6789df(0x288)](),'alias':this[_0x6789df(0x1c1)](),'tableName':this[_0x6789df(0x386)](),'datasetCode':this[_0x6789df(0x2e6)]};}['generateSDKInitCode'](_0x236834,_0x386180='online',_0x2fecc8=![]){const _0x4cd13d=a0_0x22b77d,{alias:_0x90c4b4,tableName:_0x304d9e,datasetCode:_0x5aad47}=this['getSDKInitData'](_0x236834),_0x4e78d4=_0x386180==='daily'?_0x4cd13d(0x30e)+_0x386180+'\x27,':'',_0xa742fd=_0x2fecc8?_0x4cd13d(0x329):'';return _0x4cd13d(0x375)+_0x236834+'\x27,'+_0xa742fd+_0x4e78d4+_0x4cd13d(0x35a)+_0x304d9e+_0x4cd13d(0x2b5)+_0x5aad47+_0x4cd13d(0x19e)+_0x90c4b4+_0x4cd13d(0x1ef)+_0x90c4b4+_0x4cd13d(0x1fa);}[a0_0x22b77d(0x2a2)](){const _0x195b52=a0_0x22b77d,_0x1ad18d=this[_0x195b52(0x27c)](),_0x22ed26=this['getModelAlias']();return _0x195b52(0x2f9)+_0x1ad18d+_0x195b52(0x1b2)+_0x22ed26+_0x195b52(0x2b2);}[a0_0x22b77d(0x2a5)](){const _0x352e63=a0_0x22b77d,_0x565547=this[_0x352e63(0x34c)]();return _0x352e63(0x307)+this[_0x352e63(0x360)]+',\x20'+this['datasetCode']+',\x20'+this[_0x352e63(0x36b)]()+_0x352e63(0x18e)+_0x565547['enabled']+'/'+_0x565547[_0x352e63(0x1be)]+_0x352e63(0x2a4);}}var VERSION=a0_0x22b77d(0x30f);export{toSnakeCase,toPascalCase,toKebabCase,toCamelCase,smartAdapt,shouldIncludeField,parseResponseBody,parseRequestBody,parseOperationType,parseFieldExtend,normalizeFieldName,isVirtualTableName,isSystemField,isRequiredField,isPrimaryKeyField,isModifyTimeField,isDrivenDataDetail,isCreateTimeField,isAutoIncrementField,isApiBlacklisted,groupByTableName,getTableName,getFieldsForOperation,getDbTypeDisplay,generateTableNameFromCode,generateRequestExample,generateExampleValue,generateExampleFromSchema,generateDatasetsConfig,formatOptionsForDoc,formatOptionsAsMarkdownList,formatEnumValue,formatDbType,filterApiOperations,extractDatasetsFromListResponse,extractDatasetFromResponse,detectTableNameConflicts,createDatasetNameMap,adaptDrivenDataDetails,adaptDrivenDataDetail,VERSION,OperationList,OperationFactory,Operation,OPERATION_TYPE_DISPLAY_NAME,GetSelectOptionsOperation,GetListOperation,GenericOperation,FilterOperation,FieldList,Field,FILTER_OPERATORS,DrivenDataDetailPlus,DrivenDataDetail,DatasetOperationType,DatasetList,DatasetItem,DatasetGroupMap,DatasetGroup,DB_TYPE_DISPLAY_MAP,API_BLACKLIST};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/dsparser",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",