@anncic-api/typeorm 3.7.8 → 3.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.js +1 -1
- package/dist/decorator/InjectEntity.js +1 -1
- package/dist/decorator/InjectRepository.js +1 -1
- package/dist/decorator/ProvideEntity.js +1 -1
- package/dist/decorator/ProvideObserve.js +1 -1
- package/dist/decorator/ProvideRepository.js +1 -1
- package/dist/decorator/ProvideSearch.js +1 -1
- package/dist/decorator/ProvideSharding.js +1 -1
- package/dist/decorator/VirtualColumn.js +1 -1
- package/dist/definition/Repository.js +1 -1
- package/dist/helper/getDataSourceEntity.js +1 -1
- package/dist/helper/getProvideObserve.js +1 -1
- package/dist/helper/preCreateShardingTables.js +1 -1
- package/dist/helper/sleep.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/interfaceSharding.js +1 -1
- package/package.json +2 -2
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0xb89056=a13_0x51ce;(function(_0x2dcbc3,_0x43977f){var _0xad4b7c=a13_0x51ce,_0x16b96c=_0x2dcbc3();while(!![]){try{var _0x4d557a=parseInt(_0xad4b7c(0x1f4))/0x1*(-parseInt(_0xad4b7c(0x1ec))/0x2)+parseInt(_0xad4b7c(0x1ef))/0x3*(parseInt(_0xad4b7c(0x1eb))/0x4)+-parseInt(_0xad4b7c(0x1fa))/0x5*(-parseInt(_0xad4b7c(0x1f2))/0x6)+parseInt(_0xad4b7c(0x1ee))/0x7*(parseInt(_0xad4b7c(0x1e9))/0x8)+-parseInt(_0xad4b7c(0x1f9))/0x9*(-parseInt(_0xad4b7c(0x1f1))/0xa)+parseInt(_0xad4b7c(0x1f5))/0xb*(parseInt(_0xad4b7c(0x1f7))/0xc)+parseInt(_0xad4b7c(0x1f6))/0xd;if(_0x4d557a===_0x43977f)break;else _0x16b96c['push'](_0x16b96c['shift']());}catch(_0x378494){_0x16b96c['push'](_0x16b96c['shift']());}}}(a13_0x2c26,0x67314));var a13_0x162eda=(function(){var _0x230939=!![];return function(_0x1081ca,_0x17d7cb){var _0x53a7f4=_0x230939?function(){var _0x46ad58=a13_0x51ce;if(_0x17d7cb){var _0x27afd2=_0x17d7cb[_0x46ad58(0x1f3)](_0x1081ca,arguments);return _0x17d7cb=null,_0x27afd2;}}:function(){};return _0x230939=![],_0x53a7f4;};}()),a13_0x2eb2b9=a13_0x162eda(this,function(){var _0x105cd1=a13_0x51ce;return a13_0x2eb2b9[_0x105cd1(0x1ea)]()['search'](_0x105cd1(0x1ed))[_0x105cd1(0x1ea)]()['constructor'](a13_0x2eb2b9)['search'](_0x105cd1(0x1ed));});function a13_0x51ce(_0xa9cb39,_0x3ca943){var _0x545d30=a13_0x2c26();return a13_0x51ce=function(_0x2eb2b9,_0x162eda){_0x2eb2b9=_0x2eb2b9-0x1e9;var _0x2c269e=_0x545d30[_0x2eb2b9];return _0x2c269e;},a13_0x51ce(_0xa9cb39,_0x3ca943);}function a13_0x2c26(){var _0x2cf09d=['368952TWHTcJ','sleep','397780ElfbPR','366CzOoAY','apply','416946nQGniK','11jElbAy','2652468XrBZxj','3604464qfWxCN','__esModule','9BZzUyy','265HHvMHg','15896ZHCwfJ','toString','4YRAZuR','4wGsynZ','(((.+)+)+)+$','2065RIjKPd'];a13_0x2c26=function(){return _0x2cf09d;};return a13_0x2c26();}a13_0x2eb2b9();'use strict';Object['defineProperty'](exports,a13_0xb89056(0x1f8),{'value':!![]}),exports[a13_0xb89056(0x1f0)]=sleep;function sleep(_0x361761=0xc8){return new Promise(_0x4bc807=>setTimeout(_0x4bc807,_0x361761));}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x57df1b=a14_0x4f99;(function(_0x11ab44,_0x40be9b){var _0x25ef4a=a14_0x4f99,_0x2997e3=_0x11ab44();while(!![]){try{var _0x2d4cbd=parseInt(_0x25ef4a(0x173))/0x1+-parseInt(_0x25ef4a(0x147))/0x2*(parseInt(_0x25ef4a(0x16a))/0x3)+parseInt(_0x25ef4a(0x14d))/0x4*(-parseInt(_0x25ef4a(0x170))/0x5)+parseInt(_0x25ef4a(0x175))/0x6*(-parseInt(_0x25ef4a(0x15c))/0x7)+-parseInt(_0x25ef4a(0x14c))/0x8+parseInt(_0x25ef4a(0x172))/0x9+parseInt(_0x25ef4a(0x14e))/0xa;if(_0x2d4cbd===_0x40be9b)break;else _0x2997e3['push'](_0x2997e3['shift']());}catch(_0x49a4e6){_0x2997e3['push'](_0x2997e3['shift']());}}}(a14_0x3563,0xa013c));var a14_0x4440f0=(function(){var _0x1a3065=!![];return function(_0x4c915b,_0x267ae4){var _0x1749f2=_0x1a3065?function(){var _0x110c0f=a14_0x4f99;if(_0x267ae4){var _0x49e472=_0x267ae4[_0x110c0f(0x174)](_0x4c915b,arguments);return _0x267ae4=null,_0x49e472;}}:function(){};return _0x1a3065=![],_0x1749f2;};}()),a14_0x2cfe26=a14_0x4440f0(this,function(){var _0x564823=a14_0x4f99;return a14_0x2cfe26['toString']()[_0x564823(0x152)](_0x564823(0x16f))['toString']()[_0x564823(0x168)](a14_0x2cfe26)['search'](_0x564823(0x16f));});a14_0x2cfe26();function a14_0x3563(){var _0x328400=['SearchScope','./definition/Repository','hasOwnProperty','constructor','ProvideSearch','15216uxAjXn','Repository','Configuration','create','CustomConfiguration','(((.+)+)+)+$','5NIWPfN','InjectRepository','1024758pvkerf','355519GDNPwy','apply','204630qxTrmo','InjectEntity','ProvideEntity','getDataSourceEntity','./helper/getProvideObserve','typeorm','./decorator/InjectRepository','56iJPlhX','ProvideSharding','Search','getOwnPropertyDescriptor','Provide','1262952anEHGS','1491608xJdWYM','16434970FVrsrV','default','defineProperty','prototype','search','ScopeEnum','VirtualColumn','./decorator/ProvideSharding','./decorator/ProvideObserve','ProvideObserve','./helper/getDataSourceEntity','./decorator/VirtualColumn','Inject','configurable','161CdTmsL','getProvideObserve','__esModule','./decorator/ProvideRepository','./decorator/ProvideEntity','ProvideRepository','Scope','./configuration','call'];a14_0x3563=function(){return _0x328400;};return a14_0x3563();}'use strict';var __createBinding=this&&this['__createBinding']||(Object[a14_0x57df1b(0x16d)]?function(_0x4f1cc2,_0x45a66a,_0x3a5077,_0x2c0f51){var _0x2a7fc1=a14_0x57df1b;if(_0x2c0f51===undefined)_0x2c0f51=_0x3a5077;var _0x91091d=Object[_0x2a7fc1(0x14a)](_0x45a66a,_0x3a5077);(!_0x91091d||('get'in _0x91091d?!_0x45a66a[_0x2a7fc1(0x15e)]:_0x91091d['writable']||_0x91091d[_0x2a7fc1(0x15b)]))&&(_0x91091d={'enumerable':!![],'get':function(){return _0x45a66a[_0x3a5077];}}),Object[_0x2a7fc1(0x150)](_0x4f1cc2,_0x2c0f51,_0x91091d);}:function(_0x15510e,_0x5d3d59,_0xb7c4f8,_0x2db483){if(_0x2db483===undefined)_0x2db483=_0xb7c4f8;_0x15510e[_0x2db483]=_0x5d3d59[_0xb7c4f8];}),__exportStar=this&&this['__exportStar']||function(_0x52692f,_0x563b7){var _0x212be3=a14_0x57df1b;for(var _0x548c53 in _0x52692f)if(_0x548c53!==_0x212be3(0x14f)&&!Object[_0x212be3(0x151)][_0x212be3(0x167)][_0x212be3(0x164)](_0x563b7,_0x548c53))__createBinding(_0x563b7,_0x52692f,_0x548c53);};Object[a14_0x57df1b(0x150)](exports,'__esModule',{'value':!![]}),exports[a14_0x57df1b(0x153)]=exports[a14_0x57df1b(0x162)]=exports[a14_0x57df1b(0x15a)]=exports[a14_0x57df1b(0x14b)]=exports[a14_0x57df1b(0x16c)]=exports[a14_0x57df1b(0x178)]=exports[a14_0x57df1b(0x15d)]=exports[a14_0x57df1b(0x148)]=exports[a14_0x57df1b(0x165)]=exports[a14_0x57df1b(0x149)]=exports[a14_0x57df1b(0x169)]=exports['ProvideRepository']=exports['ProvideObserve']=exports[a14_0x57df1b(0x177)]=exports[a14_0x57df1b(0x171)]=exports[a14_0x57df1b(0x176)]=exports[a14_0x57df1b(0x154)]=exports[a14_0x57df1b(0x16b)]=void 0x0,__exportStar(require(a14_0x57df1b(0x17a)),exports),__exportStar(require('./interface'),exports);var Repository_1=require(a14_0x57df1b(0x166));Object[a14_0x57df1b(0x150)](exports,'Repository',{'enumerable':!![],'get':function(){var _0x5a2426=a14_0x57df1b;return Repository_1[_0x5a2426(0x16b)];}});var VirtualColumn_1=require(a14_0x57df1b(0x159));Object['defineProperty'](exports,'VirtualColumn',{'enumerable':!![],'get':function(){var _0x39cbec=a14_0x57df1b;return VirtualColumn_1[_0x39cbec(0x154)];}});var InjectEntity_1=require('./decorator/InjectEntity');Object['defineProperty'](exports,a14_0x57df1b(0x176),{'enumerable':!![],'get':function(){var _0x19fd3d=a14_0x57df1b;return InjectEntity_1[_0x19fd3d(0x176)];}});var InjectRepository_1=require(a14_0x57df1b(0x17b));function a14_0x4f99(_0x48632e,_0x115510){var _0x21a881=a14_0x3563();return a14_0x4f99=function(_0x2cfe26,_0x4440f0){_0x2cfe26=_0x2cfe26-0x147;var _0x3563b0=_0x21a881[_0x2cfe26];return _0x3563b0;},a14_0x4f99(_0x48632e,_0x115510);}Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x171),{'enumerable':!![],'get':function(){var _0x1e2fee=a14_0x57df1b;return InjectRepository_1[_0x1e2fee(0x171)];}});var ProvideEntity_1=require(a14_0x57df1b(0x160));Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x177),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideObserve_1=require(a14_0x57df1b(0x156));Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x157),{'enumerable':!![],'get':function(){var _0x2f8a16=a14_0x57df1b;return ProvideObserve_1[_0x2f8a16(0x157)];}});var ProvideRepository_1=require(a14_0x57df1b(0x15f));Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x161),{'enumerable':!![],'get':function(){var _0x2fd073=a14_0x57df1b;return ProvideRepository_1[_0x2fd073(0x161)];}});var ProvideSearch_1=require('./decorator/ProvideSearch');Object[a14_0x57df1b(0x150)](exports,'ProvideSearch',{'enumerable':!![],'get':function(){var _0x472726=a14_0x57df1b;return ProvideSearch_1[_0x472726(0x169)];}}),Object['defineProperty'](exports,a14_0x57df1b(0x149),{'enumerable':!![],'get':function(){var _0x42711c=a14_0x57df1b;return ProvideSearch_1[_0x42711c(0x149)];}}),Object[a14_0x57df1b(0x150)](exports,'SearchScope',{'enumerable':!![],'get':function(){var _0x54ddc9=a14_0x57df1b;return ProvideSearch_1[_0x54ddc9(0x165)];}});var ProvideSharding_1=require(a14_0x57df1b(0x155));Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x148),{'enumerable':!![],'get':function(){var _0xbab15c=a14_0x57df1b;return ProvideSharding_1[_0xbab15c(0x148)];}});var getProvideObserve_1=require(a14_0x57df1b(0x179));Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x15d),{'enumerable':!![],'get':function(){var _0x15c871=a14_0x57df1b;return getProvideObserve_1[_0x15c871(0x15d)];}});var getDataSourceEntity_1=require(a14_0x57df1b(0x158));Object[a14_0x57df1b(0x150)](exports,'getDataSourceEntity',{'enumerable':!![],'get':function(){var _0x4fe8ae=a14_0x57df1b;return getDataSourceEntity_1[_0x4fe8ae(0x178)];}});var configuration_1=require(a14_0x57df1b(0x163));Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x16c),{'enumerable':!![],'get':function(){var _0xe32d87=a14_0x57df1b;return configuration_1[_0xe32d87(0x16e)];}});var core_1=require('@midwayjs/core');Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x14b),{'enumerable':!![],'get':function(){return core_1['Provide'];}}),Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x15a),{'enumerable':!![],'get':function(){var _0x4e91a2=a14_0x57df1b;return core_1[_0x4e91a2(0x15a)];}}),Object[a14_0x57df1b(0x150)](exports,a14_0x57df1b(0x162),{'enumerable':!![],'get':function(){var _0x4448a5=a14_0x57df1b;return core_1[_0x4448a5(0x162)];}}),Object[a14_0x57df1b(0x150)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x22a9d0=a14_0x57df1b;return core_1[_0x22a9d0(0x153)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x268b13=a15_0x29fd;(function(_0x3a228d,_0x4b164e){const _0x55a779=a15_0x29fd,_0x26cf38=_0x3a228d();while(!![]){try{const _0x2a28b7=parseInt(_0x55a779(0x1c7))/0x1+parseInt(_0x55a779(0x18a))/0x2*(parseInt(_0x55a779(0x176))/0x3)+parseInt(_0x55a779(0x195))/0x4+-parseInt(_0x55a779(0x19b))/0x5+-parseInt(_0x55a779(0x17d))/0x6*(-parseInt(_0x55a779(0x1f3))/0x7)+parseInt(_0x55a779(0x17c))/0x8*(parseInt(_0x55a779(0x198))/0x9)+-parseInt(_0x55a779(0x1d1))/0xa;if(_0x2a28b7===_0x4b164e)break;else _0x26cf38['push'](_0x26cf38['shift']());}catch(_0x56112b){_0x26cf38['push'](_0x26cf38['shift']());}}}(a15_0x3fa2,0xa7287));function a15_0x29fd(_0x2953af,_0x375cce){const _0x146e30=a15_0x3fa2();return a15_0x29fd=function(_0x25168a,_0x1018e2){_0x25168a=_0x25168a-0x16c;let _0x3fa209=_0x146e30[_0x25168a];return _0x3fa209;},a15_0x29fd(_0x2953af,_0x375cce);}const a15_0x1018e2=(function(){let _0x585a02=!![];return function(_0x4ddcef,_0x475e49){const _0x32b1bd=_0x585a02?function(){const _0x41c167=a15_0x29fd;if(_0x475e49){const _0x3bf85b=_0x475e49[_0x41c167(0x16c)](_0x4ddcef,arguments);return _0x475e49=null,_0x3bf85b;}}:function(){};return _0x585a02=![],_0x32b1bd;};}()),a15_0x25168a=a15_0x1018e2(this,function(){const _0x50c615=a15_0x29fd;return a15_0x25168a[_0x50c615(0x1ef)]()['search'](_0x50c615(0x1e1))[_0x50c615(0x1ef)]()[_0x50c615(0x1ce)](a15_0x25168a)[_0x50c615(0x1fa)]('(((.+)+)+)+$');});function a15_0x3fa2(){const _0x5e3969=['./interfaceSharding','isArray','records','number','clearTableExistsCache','typeorm','destroy','lockVersion','decorator:anncic-api:typeorm:repository','expressionMap','chunk','getManyExplainCount','then','lockMode','decorator:anncic-api:typeorm:entify:module:source','storeInCache','getOne','queryEntity','optimistic','hasOwnProperty','ENTIFY_MODULE_SOURCE','clone','cacheDuration','one-to-many','referencedColumnName','duration','find','queryResultCache','length','push','ENTITY_VIRTUAL_COLUMN_KEY','end','252222dNceHI','relations','createQueryBuilder','OptimisticLockCanNotBeUsedError','relation','reject','cacheId','constructor','EntityNotFoundError','function','14069090RuTSkS','withDeleted','decorator:anncic-api:typeorm:model:search','decorator:anncic-api:typeorm:entify:sharding','immediately','resolve','prototype','map','decorator:anncic-api:typeorm:entity:virtual:column','MODEL_SEARCH_SCOPE_KEY','queryRunner','startsWith','getRawAndEntities','ShardingStrategy','cache','REPOSITORY_OBSERVE_KEY','(((.+)+)+)+$','joinColumns','string','decorator:anncic-api:typeorm:entify:module','MODEL_KEY','default','stream','obtainQueryRunner','ignoreErrors','joinAppends','delay','getTime','decorator:anncic-api:typeorm:repository:observe','findOption','toString','stringify','metadata','object','712600rhKHrQ','skip','decorator:anncic-api:typeorm:model:search:scope','one-to-one','getExplainCount','EXPLAIN\x20','versionColumn','search','offset','query','getMany','getManyAndCount','alwaysEnabled','getCount','options','relationType','findOne','apply','substring','isExpired','splice','take','abs','mainAlias','joinColumn','defineProperty','emit','321JQujJg','rows','decorator:anncic-api:typeorm:model','many-to-one','sleep','EntityManager','41176zdzEKt','48bQaJii','_joinAppendsResolve','close','SearchPaginate','getEntityValue','updateDateColumn','SelectQueryBuilder','driver','limit','_appends','boolean','setFindOptions','propertyName','17996OJpXIN','all','alias','DriverUtils','isMySQLFamily','listenerCount','REPOSITORY_KEY','many-to-many','\x20--\x20PARAMETERS:\x20','Readable','\x20=\x20:','714268sDOMBx','andWhere','ENTIFY_MODULE','495LzsMdt','target','OptimisticLockVersionMismatchError','1997360bsRDsX','parse','name','type','MODEL_SEARCH_KEY','connection','getFromCache','release','getClassMetadata','typeorm/driver/DriverUtils','size','ENTIFY_SHARDING_KEY'];a15_0x3fa2=function(){return _0x5e3969;};return a15_0x3fa2();}a15_0x25168a();'use strict';Object[a15_0x268b13(0x174)](exports,'__esModule',{'value':!![]}),exports[a15_0x268b13(0x180)]=exports['clearTableExistsCache']=exports['ShardingStrategy']=exports['ENTITY_VIRTUAL_COLUMN_KEY']=exports[a15_0x268b13(0x1da)]=exports[a15_0x268b13(0x19f)]=exports[a15_0x268b13(0x1e5)]=exports[a15_0x268b13(0x1e0)]=exports[a15_0x268b13(0x190)]=exports[a15_0x268b13(0x1a6)]=exports[a15_0x268b13(0x1bb)]=exports[a15_0x268b13(0x197)]=exports['ENTIFY_KEY']=void 0x0;const stream_1=require(a15_0x268b13(0x1e7)),core_1=require('@midwayjs/core'),typeorm_1=require('typeorm'),DriverUtils_1=require(a15_0x268b13(0x1a4)),typeorm_2=require(a15_0x268b13(0x1ac)),typeorm_3=require(a15_0x268b13(0x1ac));require(a15_0x268b13(0x1a7));const sleep_1=require('./helper/sleep');exports['ENTIFY_KEY']='decorator:anncic-api:typeorm:entify',exports[a15_0x268b13(0x197)]=a15_0x268b13(0x1e4),exports[a15_0x268b13(0x1bb)]=a15_0x268b13(0x1b5),exports[a15_0x268b13(0x1a6)]=a15_0x268b13(0x1d4),exports['REPOSITORY_KEY']=a15_0x268b13(0x1af),exports[a15_0x268b13(0x1e0)]=a15_0x268b13(0x1ed),exports[a15_0x268b13(0x1e5)]=a15_0x268b13(0x178),exports['MODEL_SEARCH_KEY']=a15_0x268b13(0x1d3),exports[a15_0x268b13(0x1da)]=a15_0x268b13(0x1f5),exports[a15_0x268b13(0x1c5)]=a15_0x268b13(0x1d9);var interfaceSharding_1=require('./interfaceSharding');Object[a15_0x268b13(0x174)](exports,'ShardingStrategy',{'enumerable':!![],'get':function(){const _0x519d55=a15_0x268b13;return interfaceSharding_1[_0x519d55(0x1de)];}}),Object[a15_0x268b13(0x174)](exports,'clearTableExistsCache',{'enumerable':!![],'get':function(){const _0x4c9b13=a15_0x268b13;return interfaceSharding_1[_0x4c9b13(0x1ab)];}});class SearchPaginate{}exports['SearchPaginate']=SearchPaginate,typeorm_2['SelectQueryBuilder']['prototype'][a15_0x268b13(0x1b1)]=function(_0x565f1e=0x64,_0x29190a){const _0x19e66a=a15_0x268b13;let _0x21ca53=0x1,_0x4534cd=0x64,_0x34de79=0x0,_0x3b6549=0x0,_0x322bc3=![],_0x3d832b=!![];if(typeof _0x565f1e==_0x19e66a(0x1aa)||typeof _0x565f1e==_0x19e66a(0x1e3))_0x4534cd=parseInt(''+_0x565f1e);else _0x565f1e&&((_0x565f1e===null||_0x565f1e===void 0x0?void 0x0:_0x565f1e[_0x19e66a(0x1a5)])&&(_0x4534cd=parseInt(''+_0x565f1e[_0x19e66a(0x1a5)])),(_0x565f1e===null||_0x565f1e===void 0x0?void 0x0:_0x565f1e['countsize'])&&(_0x34de79=parseInt(''+_0x565f1e['countsize'])),(_0x565f1e===null||_0x565f1e===void 0x0?void 0x0:_0x565f1e[_0x19e66a(0x1eb)])&&(_0x322bc3=typeof _0x565f1e[_0x19e66a(0x1eb)]==_0x19e66a(0x187)?0x1f4:parseInt(''+_0x565f1e[_0x19e66a(0x1eb)])),typeof(_0x565f1e===null||_0x565f1e===void 0x0?void 0x0:_0x565f1e[_0x19e66a(0x1d5)])==_0x19e66a(0x187)&&(_0x3d832b=_0x565f1e[_0x19e66a(0x1d5)]));_0x34de79>0x0&&_0x34de79>_0x4534cd&&(_0x4534cd=_0x34de79);const _0x7cc1d6=this,_0x5b0244=new stream_1[(_0x19e66a(0x193))]({'objectMode':!![],'highWaterMark':_0x4534cd*0x2,async 'read'(){const _0x2c9da1=_0x19e66a;try{if(_0x34de79>0x0&&_0x34de79<=_0x3b6549)this[_0x2c9da1(0x18f)]('data')>0x0?this[_0x2c9da1(0x1c4)](null):this[_0x2c9da1(0x175)](_0x2c9da1(0x1c6));else{const _0x2086c9=_0x7cc1d6[_0x2c9da1(0x1bc)]()[_0x2c9da1(0x185)](Math[_0x2c9da1(0x171)](_0x4534cd))[_0x2c9da1(0x1fb)]((Math[_0x2c9da1(0x171)](_0x21ca53)-0x1)*Math['abs'](_0x4534cd)),_0x1c1710=await _0x2086c9[_0x2c9da1(0x1fd)]();if((_0x1c1710===null||_0x1c1710===void 0x0?void 0x0:_0x1c1710[_0x2c9da1(0x1c3)])>0x0){_0x34de79>0x0&&_0x3b6549+_0x1c1710[_0x2c9da1(0x1c3)]>_0x34de79&&_0x1c1710[_0x2c9da1(0x16f)](0x0,_0x34de79-(_0x3b6549+_0x1c1710[_0x2c9da1(0x1c3)]-_0x34de79));if(typeof _0x29190a==_0x2c9da1(0x1d0)){const _0x65bc57=await _0x29190a(_0x1c1710,_0x21ca53,_0x2086c9['getQueryAndParameters']());_0x65bc57&&Array[_0x2c9da1(0x1a8)](_0x65bc57)?(_0x65bc57===null||_0x65bc57===void 0x0?void 0x0:_0x65bc57[_0x2c9da1(0x1c3)])>0x0&&(_0x3b6549+=_0x65bc57[_0x2c9da1(0x1c3)],_0x34de79>0x0&&_0x3b6549>_0x34de79&&_0x65bc57[_0x2c9da1(0x16f)](0x0,_0x34de79-(_0x3b6549-_0x34de79)),this['push'](_0x65bc57),_0x65bc57[_0x2c9da1(0x1c3)]=0x0):(_0x3b6549+=_0x1c1710['length'],_0x34de79>0x0&&_0x3b6549>_0x34de79&&_0x1c1710[_0x2c9da1(0x16f)](0x0,_0x34de79-(_0x3b6549-_0x34de79)),this[_0x2c9da1(0x1c4)](_0x1c1710));}else _0x3b6549+=_0x1c1710[_0x2c9da1(0x1c3)],_0x34de79>0x0&&_0x3b6549>_0x34de79&&_0x1c1710['splice'](0x0,_0x34de79-(_0x3b6549-_0x34de79)),this[_0x2c9da1(0x1c4)](_0x1c1710);_0x1c1710[_0x2c9da1(0x1c3)]=0x0,_0x21ca53++,_0x322bc3&&typeof _0x322bc3==_0x2c9da1(0x1aa)&&await(0x0,sleep_1[_0x2c9da1(0x17a)])(_0x322bc3);}else this[_0x2c9da1(0x18f)]('data')>0x0?this[_0x2c9da1(0x1c4)](null):this[_0x2c9da1(0x175)]('end');}}catch(_0x5c2d0e){this['destroy'](_0x5c2d0e);}}});return _0x5b0244['on'](_0x19e66a(0x1c6),()=>_0x5b0244[_0x19e66a(0x1ad)]()),_0x5b0244['on'](_0x19e66a(0x17f),()=>_0x5b0244[_0x19e66a(0x1ad)]()),_0x3d832b&&_0x5b0244['resume'](),_0x5b0244;},typeorm_3[a15_0x268b13(0x17b)]['prototype']['findOneOrFail']=async function(_0x53686b,_0x3d7b2a){const _0x3ee622=a15_0x268b13;return this[_0x3ee622(0x203)](_0x53686b,_0x3d7b2a)[_0x3ee622(0x1b3)](_0x3b9250=>{const _0x52eb5b=_0x3ee622;if(_0x3b9250===null||_0x3b9250===undefined)return Promise[_0x52eb5b(0x1cc)](new typeorm_3['EntityNotFoundError'](_0x53686b,_0x3d7b2a));return Promise[_0x52eb5b(0x1d6)](_0x3b9250);});},typeorm_3[a15_0x268b13(0x17b)][a15_0x268b13(0x1d7)]['findOneByOrFail']=async function(_0x22e478,_0x3f010c){const _0x17386c=a15_0x268b13;return this['findOneBy'](_0x22e478,_0x3f010c)[_0x17386c(0x1b3)](_0x49567a=>{const _0x1da9be=_0x17386c;if(_0x49567a===null||_0x49567a===undefined)return Promise[_0x1da9be(0x1cc)](new typeorm_3[(_0x1da9be(0x1cf))](_0x22e478,_0x3f010c));return Promise['resolve'](_0x49567a);});},typeorm_2[a15_0x268b13(0x183)][a15_0x268b13(0x1d7)][a15_0x268b13(0x1b7)]=async function(){const _0x490e0f=a15_0x268b13;var _0x33bc35;const {entities:_0x5a40a7,raw:_0x59d85f}=await this[_0x490e0f(0x1dd)]();if(_0x5a40a7[0x0]&&this[_0x490e0f(0x1b0)][_0x490e0f(0x1b4)]===_0x490e0f(0x1b9)&&this[_0x490e0f(0x1b0)][_0x490e0f(0x1ae)]){const _0x3fcd8a=this[_0x490e0f(0x1b0)][_0x490e0f(0x172)][_0x490e0f(0x1f1)];if(this['expressionMap'][_0x490e0f(0x1ae)]instanceof Date){const _0x3938f1=_0x3fcd8a[_0x490e0f(0x182)][_0x490e0f(0x181)](_0x5a40a7[0x0]);if(_0x3938f1['getTime']()!==this[_0x490e0f(0x1b0)][_0x490e0f(0x1ae)][_0x490e0f(0x1ec)]())throw new typeorm_2[(_0x490e0f(0x19a))](_0x3fcd8a['name'],this['expressionMap'][_0x490e0f(0x1ae)],_0x3938f1);}else{const _0x30c1db=_0x3fcd8a[_0x490e0f(0x1f9)][_0x490e0f(0x181)](_0x5a40a7[0x0]);if(_0x30c1db!==this[_0x490e0f(0x1b0)]['lockVersion'])throw new typeorm_2[(_0x490e0f(0x19a))](_0x3fcd8a[_0x490e0f(0x19d)],this[_0x490e0f(0x1b0)]['lockVersion'],_0x30c1db);}}if(_0x5a40a7[0x0]&&_0x59d85f[0x0]){const _0x1e5df4=(0x0,core_1[_0x490e0f(0x1a3)])(exports[_0x490e0f(0x1c5)],_0x5a40a7[0x0]);for(const _0x52cd33 in _0x1e5df4){_0x59d85f[0x0][_0x490e0f(0x1ba)](_0x52cd33)&&(_0x5a40a7[0x0][_0x52cd33]=_0x59d85f[0x0][_0x52cd33]||((_0x33bc35=_0x1e5df4[_0x52cd33])===null||_0x33bc35===void 0x0?void 0x0:_0x33bc35[_0x490e0f(0x1e6)])||'');}}return _0x5a40a7[0x0]&&typeof this[_0x490e0f(0x17e)]==_0x490e0f(0x1d0)&&(_0x5a40a7[0x0]=await this[_0x490e0f(0x17e)](_0x5a40a7[0x0])),_0x5a40a7[0x0]||null;},typeorm_2[a15_0x268b13(0x183)][a15_0x268b13(0x1d7)][a15_0x268b13(0x1fd)]=async function(){const _0x5c7903=a15_0x268b13;if(this[_0x5c7903(0x1b0)][_0x5c7903(0x1b4)]==='optimistic')throw new typeorm_2[(_0x5c7903(0x1ca))]();const {entities:_0x584d7e,raw:_0x21e20c}=await this['getRawAndEntities']();return await Promise[_0x5c7903(0x18b)](_0x584d7e[_0x5c7903(0x1d8)](async(_0x538ff7,_0x532140)=>{const _0x42d93f=_0x5c7903;var _0x76230b;const _0x4dedf3=(0x0,core_1['getClassMetadata'])(exports[_0x42d93f(0x1c5)],_0x538ff7)||{};for(const _0x5c4afc in _0x4dedf3){_0x21e20c[_0x532140]&&_0x21e20c[_0x532140][_0x42d93f(0x1ba)](_0x5c4afc)&&(_0x538ff7[_0x5c4afc]=_0x21e20c[_0x532140][_0x5c4afc]||((_0x76230b=_0x4dedf3[_0x5c4afc])===null||_0x76230b===void 0x0?void 0x0:_0x76230b[_0x42d93f(0x1e6)])||'');}return _0x538ff7&&typeof this[_0x42d93f(0x17e)]==_0x42d93f(0x1d0)&&(_0x538ff7=await this['_joinAppendsResolve'](_0x538ff7)),_0x538ff7;}));},typeorm_2[a15_0x268b13(0x183)][a15_0x268b13(0x1d7)][a15_0x268b13(0x1fe)]=async function(){const _0x36b9d8=a15_0x268b13;return[await this[_0x36b9d8(0x1fd)](),await this[_0x36b9d8(0x200)]()];},typeorm_2['SelectQueryBuilder'][a15_0x268b13(0x1d7)][a15_0x268b13(0x1b2)]=async function(){const _0x24e911=a15_0x268b13;return[await this[_0x24e911(0x1fd)](),await this['getExplainCount']()];},typeorm_2[a15_0x268b13(0x183)][a15_0x268b13(0x1d7)][a15_0x268b13(0x1f7)]=async function(){const _0x3dde99=a15_0x268b13;var _0x5ef1ce,_0x58eb3e,_0x42c4f8,_0x4e5660;if(DriverUtils_1[_0x3dde99(0x18d)][_0x3dde99(0x18e)](this[_0x3dde99(0x1a0)][_0x3dde99(0x184)])){const _0xae7eea=this[_0x3dde99(0x1e8)]();try{this['expressionMap'][_0x3dde99(0x1b8)]=![];const [_0x1d6e45,_0x250787]=this[_0x3dde99(0x1bc)]()['offset'](undefined)['limit'](undefined)[_0x3dde99(0x1f4)](undefined)[_0x3dde99(0x170)](undefined)['getQueryAndParameters'](),_0x290f99=_0x3dde99(0x1f8)+_0x1d6e45+_0x3dde99(0x192)+JSON[_0x3dde99(0x1f0)](_0x250787),_0x15bd16=typeof this[_0x3dde99(0x1a0)][_0x3dde99(0x201)][_0x3dde99(0x1df)]===_0x3dde99(0x1f2)?this[_0x3dde99(0x1a0)][_0x3dde99(0x201)][_0x3dde99(0x1df)]:{},_0x5442ef=_0x15bd16[_0x3dde99(0x1ff)]&&this[_0x3dde99(0x1b0)][_0x3dde99(0x1df)]||this[_0x3dde99(0x1b0)][_0x3dde99(0x1df)];let _0x8578ab=undefined,_0x165cde=![];if(this[_0x3dde99(0x1a0)][_0x3dde99(0x1c2)]&&_0x5442ef)try{_0x8578ab=await this[_0x3dde99(0x1a0)][_0x3dde99(0x1c2)][_0x3dde99(0x1a1)]({'query':_0x290f99,'identifier':this[_0x3dde99(0x1b0)][_0x3dde99(0x1cd)],'duration':this['expressionMap'][_0x3dde99(0x1bd)]||_0x15bd16[_0x3dde99(0x1c0)]||0x3e8},_0xae7eea);if(_0x8578ab&&!this[_0x3dde99(0x1a0)][_0x3dde99(0x1c2)][_0x3dde99(0x16e)](_0x8578ab))return parseInt(((_0x58eb3e=(_0x5ef1ce=JSON[_0x3dde99(0x19c)](_0x8578ab['result']))===null||_0x5ef1ce===void 0x0?void 0x0:_0x5ef1ce[0x0])===null||_0x58eb3e===void 0x0?void 0x0:_0x58eb3e[_0x3dde99(0x177)])||'0');}catch(_0x7ee98a){if(!_0x15bd16[_0x3dde99(0x1e9)])throw _0x7ee98a;_0x165cde=!![];}const _0x493939=await _0xae7eea[_0x3dde99(0x1fc)]('EXPLAIN\x20'+_0x1d6e45,_0x250787,!![]);if(!_0x165cde&&this['connection'][_0x3dde99(0x1c2)]&&_0x5442ef)try{await this['connection'][_0x3dde99(0x1c2)][_0x3dde99(0x1b6)]({'query':_0x290f99,'time':new Date()['getTime'](),'identifier':this['expressionMap'][_0x3dde99(0x1cd)],'duration':this[_0x3dde99(0x1b0)][_0x3dde99(0x1bd)]||_0x15bd16[_0x3dde99(0x1c0)]||0x3e8,'result':JSON[_0x3dde99(0x1f0)](_0x493939[_0x3dde99(0x1a9)])},_0x8578ab,_0xae7eea);}catch(_0x5e56ff){if(!_0x15bd16[_0x3dde99(0x1e9)])throw _0x5e56ff;}return parseInt(((_0x4e5660=(_0x42c4f8=_0x493939['records'])===null||_0x42c4f8===void 0x0?void 0x0:_0x42c4f8[0x0])===null||_0x4e5660===void 0x0?void 0x0:_0x4e5660[_0x3dde99(0x177)])||'0');}catch(_0x332f50){throw _0x332f50;}finally{_0xae7eea!==this[_0x3dde99(0x1db)]&&await _0xae7eea[_0x3dde99(0x1a2)]();}}else return this['getCount']();},typeorm_2['SelectQueryBuilder']['prototype'][a15_0x268b13(0x1ea)]=function(_0x26b4a8,_0x40f1d1){const _0x3d64d5=a15_0x268b13;_0x26b4a8[_0x3d64d5(0x1dc)](this[_0x3d64d5(0x18c)]+'.')&&(_0x26b4a8=_0x26b4a8[_0x3d64d5(0x16d)]((this[_0x3d64d5(0x18c)]+'.')[_0x3d64d5(0x1c3)]));const _0x22f62f=typeof _0x40f1d1==_0x3d64d5(0x1e3)?{'alias':_0x40f1d1}:_0x40f1d1,_0x589977=this['expressionMap']['mainAlias'][_0x3d64d5(0x1f1)],_0xabc844=(0x0,typeorm_1['getMetadataArgsStorage'])(),_0x1b06f1=_0xabc844[_0x3d64d5(0x1c8)][_0x3d64d5(0x1c1)](_0x4c4244=>_0x4c4244[_0x3d64d5(0x199)]==_0x589977[_0x3d64d5(0x199)]&&_0x4c4244[_0x3d64d5(0x189)]==_0x26b4a8);if((_0x589977===null||_0x589977===void 0x0?void 0x0:_0x589977[_0x3d64d5(0x199)])&&(_0x1b06f1===null||_0x1b06f1===void 0x0?void 0x0:_0x1b06f1[_0x3d64d5(0x189)])){!this[_0x3d64d5(0x186)]&&(this[_0x3d64d5(0x186)]=[]);if(_0x1b06f1['relationType']=='many-to-one'||_0x1b06f1[_0x3d64d5(0x202)]==_0x3d64d5(0x1f6)){const _0x4f3e8c=_0xabc844[_0x3d64d5(0x1e2)][_0x3d64d5(0x1c1)](_0x29db1c=>_0x29db1c[_0x3d64d5(0x199)]==_0x589977[_0x3d64d5(0x199)]&&_0x29db1c['propertyName']==_0x26b4a8);_0x1b06f1[_0x3d64d5(0x189)]==(_0x4f3e8c===null||_0x4f3e8c===void 0x0?void 0x0:_0x4f3e8c[_0x3d64d5(0x189)])&&(!this['_appends']['find'](_0x1d011a=>_0x1d011a[_0x3d64d5(0x18c)]==((_0x22f62f===null||_0x22f62f===void 0x0?void 0x0:_0x22f62f['alias'])||_0x26b4a8))&&this['_appends'][_0x3d64d5(0x1c4)]({'alias':(_0x22f62f===null||_0x22f62f===void 0x0?void 0x0:_0x22f62f[_0x3d64d5(0x18c)])||_0x26b4a8,'relation':_0x1b06f1,'joinColumn':_0x4f3e8c,'findOption':(_0x22f62f===null||_0x22f62f===void 0x0?void 0x0:_0x22f62f[_0x3d64d5(0x1ee)])||undefined}));}else{if(_0x1b06f1[_0x3d64d5(0x202)]==_0x3d64d5(0x1be))try{const _0x3a88a4=_0xabc844[_0x3d64d5(0x1c8)][_0x3d64d5(0x1c1)](_0x50c65c=>_0x50c65c[_0x3d64d5(0x199)]==_0x1b06f1[_0x3d64d5(0x19e)](_0x1b06f1[_0x3d64d5(0x189)])&&_0x50c65c[_0x3d64d5(0x19e)](_0x50c65c[_0x3d64d5(0x202)])==_0x589977[_0x3d64d5(0x199)]),_0x2ac034=_0xabc844['joinColumns'][_0x3d64d5(0x1c1)](_0x463591=>_0x463591[_0x3d64d5(0x199)]==_0x3a88a4[_0x3d64d5(0x199)]&&_0x463591[_0x3d64d5(0x189)]==_0x3a88a4[_0x3d64d5(0x189)]);_0x3a88a4['propertyName']==(_0x2ac034===null||_0x2ac034===void 0x0?void 0x0:_0x2ac034[_0x3d64d5(0x189)])&&(!this[_0x3d64d5(0x186)][_0x3d64d5(0x1c1)](_0x30eaf5=>_0x30eaf5[_0x3d64d5(0x18c)]==((_0x22f62f===null||_0x22f62f===void 0x0?void 0x0:_0x22f62f[_0x3d64d5(0x18c)])||_0x26b4a8))&&this['_appends'][_0x3d64d5(0x1c4)]({'alias':(_0x22f62f===null||_0x22f62f===void 0x0?void 0x0:_0x22f62f['alias'])||_0x26b4a8,'relation':_0x1b06f1,'joinColumn':_0x2ac034,'findOption':(_0x22f62f===null||_0x22f62f===void 0x0?void 0x0:_0x22f62f[_0x3d64d5(0x1ee)])||undefined}));}catch(_0x5cb10c){}}}return this;},typeorm_2[a15_0x268b13(0x183)][a15_0x268b13(0x1d7)]['_joinAppendsResolve']=async function(_0x541c33){const _0x34fec2=a15_0x268b13;var _0x5bf803,_0x2fa988,_0x3b7368,_0x153ceb;for(const _0xffa671 of this[_0x34fec2(0x186)]||[]){if(!((_0x5bf803=_0xffa671===null||_0xffa671===void 0x0?void 0x0:_0xffa671[_0x34fec2(0x1cb)])===null||_0x5bf803===void 0x0?void 0x0:_0x5bf803[_0x34fec2(0x202)]))continue;if(!((_0x2fa988=_0xffa671===null||_0xffa671===void 0x0?void 0x0:_0xffa671[_0x34fec2(0x173)])===null||_0x2fa988===void 0x0?void 0x0:_0x2fa988[_0x34fec2(0x19d)])||!((_0x3b7368=_0xffa671===null||_0xffa671===void 0x0?void 0x0:_0xffa671[_0x34fec2(0x173)])===null||_0x3b7368===void 0x0?void 0x0:_0x3b7368[_0x34fec2(0x1bf)]))continue;if(!_0x541c33[_0xffa671[_0x34fec2(0x173)][_0x34fec2(0x1bf)]])continue;if(typeof((_0x153ceb=_0xffa671===null||_0xffa671===void 0x0?void 0x0:_0xffa671[_0x34fec2(0x1cb)])===null||_0x153ceb===void 0x0?void 0x0:_0x153ceb[_0x34fec2(0x19e)])!=_0x34fec2(0x1d0))continue;if(_0xffa671['relation'][_0x34fec2(0x202)]==_0x34fec2(0x179)||_0xffa671[_0x34fec2(0x1cb)][_0x34fec2(0x202)]==_0x34fec2(0x1f6)){const _0xd66ca=this[_0x34fec2(0x1a0)][_0x34fec2(0x1c9)](_0xffa671[_0x34fec2(0x1cb)][_0x34fec2(0x19e)](_0xffa671[_0x34fec2(0x1cb)][_0x34fec2(0x202)]),_0xffa671['relation']['propertyName'])[_0x34fec2(0x1d2)]();(_0xffa671===null||_0xffa671===void 0x0?void 0x0:_0xffa671[_0x34fec2(0x1ee)])&&_0xd66ca[_0x34fec2(0x188)]({..._0xffa671[_0x34fec2(0x1ee)],'skip':0x0,'take':0x1}),_0x541c33[_0xffa671[_0x34fec2(0x18c)]]=await _0xd66ca[_0x34fec2(0x196)](_0xd66ca[_0x34fec2(0x18c)]+'.'+_0xffa671[_0x34fec2(0x173)][_0x34fec2(0x1bf)]+_0x34fec2(0x194)+_0xffa671[_0x34fec2(0x173)][_0x34fec2(0x1bf)],{[_0xffa671[_0x34fec2(0x173)][_0x34fec2(0x1bf)]]:_0x541c33[_0xffa671[_0x34fec2(0x173)][_0x34fec2(0x19d)]]})['getOne']();}else{if(_0xffa671['relation']['relationType']==_0x34fec2(0x1be)||_0xffa671[_0x34fec2(0x1cb)][_0x34fec2(0x202)]==_0x34fec2(0x191)){const _0x1cf0a9=this[_0x34fec2(0x1a0)]['createQueryBuilder'](_0xffa671[_0x34fec2(0x1cb)]['type'](_0xffa671['relation'][_0x34fec2(0x202)]),_0xffa671[_0x34fec2(0x1cb)][_0x34fec2(0x189)])[_0x34fec2(0x1d2)]();(_0xffa671===null||_0xffa671===void 0x0?void 0x0:_0xffa671[_0x34fec2(0x1ee)])&&_0x1cf0a9['setFindOptions']({'skip':0x0,'take':0xa,..._0xffa671[_0x34fec2(0x1ee)]}),_0x541c33[_0xffa671[_0x34fec2(0x18c)]]=await _0x1cf0a9[_0x34fec2(0x196)](_0x1cf0a9[_0x34fec2(0x18c)]+'.'+_0xffa671['joinColumn'][_0x34fec2(0x19d)]+_0x34fec2(0x194)+_0xffa671['joinColumn']['name'],{[_0xffa671[_0x34fec2(0x173)][_0x34fec2(0x19d)]]:_0x541c33[_0xffa671[_0x34fec2(0x173)]['referencedColumnName']]})[_0x34fec2(0x1fd)]();}}}return _0x541c33;};
|
|
1
|
+
const a15_0x4705eb=a15_0x4217;(function(_0x551f65,_0x2a095f){const _0x5d315e=a15_0x4217,_0x139fda=_0x551f65();while(!![]){try{const _0x66f374=-parseInt(_0x5d315e(0x212))/0x1+parseInt(_0x5d315e(0x1e6))/0x2+parseInt(_0x5d315e(0x207))/0x3+-parseInt(_0x5d315e(0x227))/0x4+parseInt(_0x5d315e(0x20a))/0x5+parseInt(_0x5d315e(0x210))/0x6+parseInt(_0x5d315e(0x1d1))/0x7*(-parseInt(_0x5d315e(0x19f))/0x8);if(_0x66f374===_0x2a095f)break;else _0x139fda['push'](_0x139fda['shift']());}catch(_0x1e8ff5){_0x139fda['push'](_0x139fda['shift']());}}}(a15_0x21db,0x96f28));function a15_0x4217(_0x280e6a,_0x482782){const _0x46f5c1=a15_0x21db();return a15_0x4217=function(_0x3175d3,_0x54e22a){_0x3175d3=_0x3175d3-0x19c;let _0x21db49=_0x46f5c1[_0x3175d3];return _0x21db49;},a15_0x4217(_0x280e6a,_0x482782);}const a15_0x54e22a=(function(){let _0xd833bb=!![];return function(_0x10cdf1,_0x4d4811){const _0x42a6af=_0xd833bb?function(){const _0x37387e=a15_0x4217;if(_0x4d4811){const _0x515e82=_0x4d4811[_0x37387e(0x220)](_0x10cdf1,arguments);return _0x4d4811=null,_0x515e82;}}:function(){};return _0xd833bb=![],_0x42a6af;};}()),a15_0x3175d3=a15_0x54e22a(this,function(){const _0x4cc99f=a15_0x4217;return a15_0x3175d3[_0x4cc99f(0x1d7)]()[_0x4cc99f(0x1fb)]('(((.+)+)+)+$')['toString']()[_0x4cc99f(0x19d)](a15_0x3175d3)[_0x4cc99f(0x1fb)]('(((.+)+)+)+$');});a15_0x3175d3();'use strict';function a15_0x21db(){const _0xa46eff=['boolean','1857465eiScpr','OptimisticLockVersionMismatchError','countsize','3076495dXTKqq','one-to-one','default','target','SelectQueryBuilder','relation','1519548mSlnow','metadata','140065orEBLa','joinColumn','prototype','referencedColumnName','resolve','EntityNotFoundError','decorator:anncic-api:typeorm:repository','string','@midwayjs/core','offset','queryRunner','decorator:anncic-api:typeorm:entity:virtual:column','chunk','decorator:anncic-api:typeorm:entify:sharding','apply','immediately','isArray','close','getQueryAndParameters','DriverUtils','REPOSITORY_KEY','544968vAQaIr','getMany','find','destroy','getCount','OptimisticLockCanNotBeUsedError','end','parse','type','constructor','propertyName','8FZlhKi','ENTIFY_KEY','REPOSITORY_OBSERVE_KEY','EXPLAIN\x20','records','connection','lockVersion','take','lockMode','hasOwnProperty','ENTIFY_MODULE','all','setFindOptions','getRawAndEntities','queryResultCache','\x20--\x20PARAMETERS:\x20','relationType','_joinAppendsResolve','mainAlias','typeorm/driver/DriverUtils','emit','number','clone','storeInCache','length','queryEntity','splice','optimistic','decorator:anncic-api:typeorm:repository:observe','getTime','getExplainCount','MODEL_KEY','ShardingStrategy','resume','decorator:anncic-api:typeorm:entify:module:source','MODEL_SEARCH_KEY','_appends','joinColumns','then','clearTableExistsCache','versionColumn','decorator:anncic-api:typeorm:model','findOne','alwaysEnabled','relations','getMetadataArgsStorage','skip','ENTIFY_MODULE_SOURCE','isMySQLFamily','options','4407781NWryEV','query','function','Readable','name','rows','toString','./helper/sleep','findOneByOrFail','cache','expressionMap','abs','alias','decorator:anncic-api:typeorm:entify','andWhere','findOneOrFail','getFromCache','findOneBy','createQueryBuilder','ENTITY_VIRTUAL_COLUMN_KEY','object','73116UydoJk','delay','findOption','isExpired','cacheDuration','limit','startsWith','defineProperty','push','updateDateColumn','typeorm','getEntityValue','EntityManager','\x20=\x20:','decorator:anncic-api:typeorm:model:search','obtainQueryRunner','release','sleep','stringify','many-to-one','withDeleted','search','duration','substring','MODEL_SEARCH_SCOPE_KEY','many-to-many','getManyExplainCount','cacheId','driver','data','__esModule','SearchPaginate'];a15_0x21db=function(){return _0xa46eff;};return a15_0x21db();}Object['defineProperty'](exports,a15_0x4705eb(0x204),{'value':!![]}),exports['SearchPaginate']=exports[a15_0x4705eb(0x1c6)]=exports[a15_0x4705eb(0x1bf)]=exports[a15_0x4705eb(0x1e4)]=exports['MODEL_SEARCH_SCOPE_KEY']=exports[a15_0x4705eb(0x1c2)]=exports[a15_0x4705eb(0x1be)]=exports[a15_0x4705eb(0x1a1)]=exports[a15_0x4705eb(0x226)]=exports['ENTIFY_SHARDING_KEY']=exports[a15_0x4705eb(0x1ce)]=exports[a15_0x4705eb(0x1a9)]=exports[a15_0x4705eb(0x1a0)]=void 0x0;const stream_1=require('stream'),core_1=require(a15_0x4705eb(0x21a)),typeorm_1=require(a15_0x4705eb(0x1f0)),DriverUtils_1=require(a15_0x4705eb(0x1b2)),typeorm_2=require(a15_0x4705eb(0x1f0)),typeorm_3=require('typeorm');require('./interfaceSharding');const sleep_1=require(a15_0x4705eb(0x1d8));exports[a15_0x4705eb(0x1a0)]=a15_0x4705eb(0x1de),exports[a15_0x4705eb(0x1a9)]='decorator:anncic-api:typeorm:entify:module',exports[a15_0x4705eb(0x1ce)]=a15_0x4705eb(0x1c1),exports['ENTIFY_SHARDING_KEY']=a15_0x4705eb(0x21f),exports[a15_0x4705eb(0x226)]=a15_0x4705eb(0x218),exports[a15_0x4705eb(0x1a1)]=a15_0x4705eb(0x1bb),exports[a15_0x4705eb(0x1be)]=a15_0x4705eb(0x1c8),exports[a15_0x4705eb(0x1c2)]=a15_0x4705eb(0x1f4),exports[a15_0x4705eb(0x1fe)]='decorator:anncic-api:typeorm:model:search:scope',exports['ENTITY_VIRTUAL_COLUMN_KEY']=a15_0x4705eb(0x21d);var interfaceSharding_1=require('./interfaceSharding');Object[a15_0x4705eb(0x1ed)](exports,a15_0x4705eb(0x1bf),{'enumerable':!![],'get':function(){const _0x12b5e6=a15_0x4705eb;return interfaceSharding_1[_0x12b5e6(0x1bf)];}}),Object['defineProperty'](exports,a15_0x4705eb(0x1c6),{'enumerable':!![],'get':function(){const _0xcdc12e=a15_0x4705eb;return interfaceSharding_1[_0xcdc12e(0x1c6)];}});class SearchPaginate{}exports[a15_0x4705eb(0x205)]=SearchPaginate,typeorm_2[a15_0x4705eb(0x20e)]['prototype'][a15_0x4705eb(0x21e)]=function(_0x2b61c5=0x64,_0x45a33a){const _0x76a029=a15_0x4705eb;let _0x411549=0x1,_0x5e32af=0x64,_0x3061e6=0x0,_0x18659a=0x0,_0x29fbd3=![],_0x318272=!![];if(typeof _0x2b61c5=='number'||typeof _0x2b61c5==_0x76a029(0x219))_0x5e32af=parseInt(''+_0x2b61c5);else _0x2b61c5&&((_0x2b61c5===null||_0x2b61c5===void 0x0?void 0x0:_0x2b61c5['size'])&&(_0x5e32af=parseInt(''+_0x2b61c5['size'])),(_0x2b61c5===null||_0x2b61c5===void 0x0?void 0x0:_0x2b61c5[_0x76a029(0x209)])&&(_0x3061e6=parseInt(''+_0x2b61c5[_0x76a029(0x209)])),(_0x2b61c5===null||_0x2b61c5===void 0x0?void 0x0:_0x2b61c5['delay'])&&(_0x29fbd3=typeof _0x2b61c5[_0x76a029(0x1e7)]==_0x76a029(0x206)?0x1f4:parseInt(''+_0x2b61c5[_0x76a029(0x1e7)])),typeof(_0x2b61c5===null||_0x2b61c5===void 0x0?void 0x0:_0x2b61c5[_0x76a029(0x221)])==_0x76a029(0x206)&&(_0x318272=_0x2b61c5['immediately']));_0x3061e6>0x0&&_0x3061e6>_0x5e32af&&(_0x5e32af=_0x3061e6);const _0x34c2f3=this,_0x5e12d0=new stream_1[(_0x76a029(0x1d4))]({'objectMode':!![],'highWaterMark':_0x5e32af*0x2,async 'read'(){const _0x35fc36=_0x76a029;try{if(_0x3061e6>0x0&&_0x3061e6<=_0x18659a)this['listenerCount'](_0x35fc36(0x203))>0x0?this[_0x35fc36(0x1ee)](null):this[_0x35fc36(0x1b3)]('end');else{const _0x494487=_0x34c2f3[_0x35fc36(0x1b5)]()[_0x35fc36(0x1eb)](Math['abs'](_0x5e32af))[_0x35fc36(0x21b)]((Math[_0x35fc36(0x1dc)](_0x411549)-0x1)*Math[_0x35fc36(0x1dc)](_0x5e32af)),_0x48f462=await _0x494487['getMany']();if((_0x48f462===null||_0x48f462===void 0x0?void 0x0:_0x48f462[_0x35fc36(0x1b7)])>0x0){_0x3061e6>0x0&&_0x18659a+_0x48f462['length']>_0x3061e6&&_0x48f462[_0x35fc36(0x1b9)](0x0,_0x3061e6-(_0x18659a+_0x48f462['length']-_0x3061e6));if(typeof _0x45a33a==_0x35fc36(0x1d3)){const _0x36079e=await _0x45a33a(_0x48f462,_0x411549,_0x494487['getQueryAndParameters']());_0x36079e&&Array[_0x35fc36(0x222)](_0x36079e)?(_0x36079e===null||_0x36079e===void 0x0?void 0x0:_0x36079e[_0x35fc36(0x1b7)])>0x0&&(_0x18659a+=_0x36079e['length'],_0x3061e6>0x0&&_0x18659a>_0x3061e6&&_0x36079e['splice'](0x0,_0x3061e6-(_0x18659a-_0x3061e6)),this['push'](_0x36079e),_0x36079e[_0x35fc36(0x1b7)]=0x0):(_0x18659a+=_0x48f462[_0x35fc36(0x1b7)],_0x3061e6>0x0&&_0x18659a>_0x3061e6&&_0x48f462[_0x35fc36(0x1b9)](0x0,_0x3061e6-(_0x18659a-_0x3061e6)),this[_0x35fc36(0x1ee)](_0x48f462));}else _0x18659a+=_0x48f462[_0x35fc36(0x1b7)],_0x3061e6>0x0&&_0x18659a>_0x3061e6&&_0x48f462[_0x35fc36(0x1b9)](0x0,_0x3061e6-(_0x18659a-_0x3061e6)),this[_0x35fc36(0x1ee)](_0x48f462);_0x48f462[_0x35fc36(0x1b7)]=0x0,_0x411549++,_0x29fbd3&&typeof _0x29fbd3==_0x35fc36(0x1b4)&&await(0x0,sleep_1[_0x35fc36(0x1f7)])(_0x29fbd3);}else this['listenerCount'](_0x35fc36(0x203))>0x0?this[_0x35fc36(0x1ee)](null):this[_0x35fc36(0x1b3)]('end');}}catch(_0x402289){this[_0x35fc36(0x22a)](_0x402289);}}});return _0x5e12d0['on'](_0x76a029(0x22d),()=>_0x5e12d0[_0x76a029(0x22a)]()),_0x5e12d0['on'](_0x76a029(0x223),()=>_0x5e12d0['destroy']()),_0x318272&&_0x5e12d0[_0x76a029(0x1c0)](),_0x5e12d0;},typeorm_3[a15_0x4705eb(0x1f2)]['prototype'][a15_0x4705eb(0x1e0)]=async function(_0x264f20,_0x3e79a6){const _0x548d61=a15_0x4705eb;return this[_0x548d61(0x1c9)](_0x264f20,_0x3e79a6)[_0x548d61(0x1c5)](_0x1e80d0=>{const _0x1ccc42=_0x548d61;if(_0x1e80d0===null||_0x1e80d0===undefined)return Promise['reject'](new typeorm_3[(_0x1ccc42(0x217))](_0x264f20,_0x3e79a6));return Promise[_0x1ccc42(0x216)](_0x1e80d0);});},typeorm_3[a15_0x4705eb(0x1f2)][a15_0x4705eb(0x214)][a15_0x4705eb(0x1d9)]=async function(_0x1f8522,_0x1d2682){const _0x138992=a15_0x4705eb;return this[_0x138992(0x1e2)](_0x1f8522,_0x1d2682)['then'](_0x92db17=>{const _0x142106=_0x138992;if(_0x92db17===null||_0x92db17===undefined)return Promise['reject'](new typeorm_3[(_0x142106(0x217))](_0x1f8522,_0x1d2682));return Promise[_0x142106(0x216)](_0x92db17);});},typeorm_2['SelectQueryBuilder'][a15_0x4705eb(0x214)]['getOne']=async function(){const _0x1cdb61=a15_0x4705eb;var _0x322605;const {entities:_0x42da3a,raw:_0x2bf2ab}=await this[_0x1cdb61(0x1ac)]();if(_0x42da3a[0x0]&&this[_0x1cdb61(0x1db)][_0x1cdb61(0x1a7)]===_0x1cdb61(0x1ba)&&this[_0x1cdb61(0x1db)][_0x1cdb61(0x1a5)]){const _0x3224b8=this['expressionMap'][_0x1cdb61(0x1b1)][_0x1cdb61(0x211)];if(this[_0x1cdb61(0x1db)][_0x1cdb61(0x1a5)]instanceof Date){const _0x39eaf7=_0x3224b8[_0x1cdb61(0x1ef)][_0x1cdb61(0x1f1)](_0x42da3a[0x0]);if(_0x39eaf7['getTime']()!==this[_0x1cdb61(0x1db)]['lockVersion'][_0x1cdb61(0x1bc)]())throw new typeorm_2[(_0x1cdb61(0x208))](_0x3224b8[_0x1cdb61(0x1d5)],this[_0x1cdb61(0x1db)]['lockVersion'],_0x39eaf7);}else{const _0x497696=_0x3224b8[_0x1cdb61(0x1c7)][_0x1cdb61(0x1f1)](_0x42da3a[0x0]);if(_0x497696!==this[_0x1cdb61(0x1db)][_0x1cdb61(0x1a5)])throw new typeorm_2[(_0x1cdb61(0x208))](_0x3224b8[_0x1cdb61(0x1d5)],this[_0x1cdb61(0x1db)]['lockVersion'],_0x497696);}}if(_0x42da3a[0x0]&&_0x2bf2ab[0x0]){const _0x5bd699=(0x0,core_1['getClassMetadata'])(exports[_0x1cdb61(0x1e4)],_0x42da3a[0x0]);for(const _0x1ffe55 in _0x5bd699){_0x2bf2ab[0x0]['hasOwnProperty'](_0x1ffe55)&&(_0x42da3a[0x0][_0x1ffe55]=_0x2bf2ab[0x0][_0x1ffe55]||((_0x322605=_0x5bd699[_0x1ffe55])===null||_0x322605===void 0x0?void 0x0:_0x322605[_0x1cdb61(0x20c)])||'');}}return _0x42da3a[0x0]&&typeof this[_0x1cdb61(0x1b0)]=='function'&&(_0x42da3a[0x0]=await this[_0x1cdb61(0x1b0)](_0x42da3a[0x0])),_0x42da3a[0x0]||null;},typeorm_2[a15_0x4705eb(0x20e)]['prototype'][a15_0x4705eb(0x228)]=async function(){const _0x19c8f9=a15_0x4705eb;if(this[_0x19c8f9(0x1db)][_0x19c8f9(0x1a7)]==='optimistic')throw new typeorm_2[(_0x19c8f9(0x22c))]();const {entities:_0x349dfc,raw:_0x49b003}=await this['getRawAndEntities']();return await Promise[_0x19c8f9(0x1aa)](_0x349dfc['map'](async(_0x16f45e,_0x50fd3f)=>{const _0x5e5c54=_0x19c8f9;var _0x3ee7ab;const _0x57a3bf=(0x0,core_1['getClassMetadata'])(exports[_0x5e5c54(0x1e4)],_0x16f45e)||{};for(const _0x1337a0 in _0x57a3bf){_0x49b003[_0x50fd3f]&&_0x49b003[_0x50fd3f][_0x5e5c54(0x1a8)](_0x1337a0)&&(_0x16f45e[_0x1337a0]=_0x49b003[_0x50fd3f][_0x1337a0]||((_0x3ee7ab=_0x57a3bf[_0x1337a0])===null||_0x3ee7ab===void 0x0?void 0x0:_0x3ee7ab[_0x5e5c54(0x20c)])||'');}return _0x16f45e&&typeof this[_0x5e5c54(0x1b0)]==_0x5e5c54(0x1d3)&&(_0x16f45e=await this[_0x5e5c54(0x1b0)](_0x16f45e)),_0x16f45e;}));},typeorm_2[a15_0x4705eb(0x20e)][a15_0x4705eb(0x214)]['getManyAndCount']=async function(){const _0x52a208=a15_0x4705eb;return[await this[_0x52a208(0x228)](),await this[_0x52a208(0x22b)]()];},typeorm_2['SelectQueryBuilder']['prototype'][a15_0x4705eb(0x200)]=async function(){const _0x3c6373=a15_0x4705eb;return[await this[_0x3c6373(0x228)](),await this[_0x3c6373(0x1bd)]()];},typeorm_2[a15_0x4705eb(0x20e)][a15_0x4705eb(0x214)][a15_0x4705eb(0x1bd)]=async function(){const _0x25e68b=a15_0x4705eb;var _0x55a902,_0x1d4129,_0x1d5be1,_0x16a1b8;if(DriverUtils_1[_0x25e68b(0x225)][_0x25e68b(0x1cf)](this[_0x25e68b(0x1a4)][_0x25e68b(0x202)])){const _0x11b9bd=this[_0x25e68b(0x1f5)]();try{this['expressionMap'][_0x25e68b(0x1b8)]=![];const [_0x3b34fd,_0x515343]=this[_0x25e68b(0x1b5)]()[_0x25e68b(0x21b)](undefined)[_0x25e68b(0x1eb)](undefined)[_0x25e68b(0x1cd)](undefined)[_0x25e68b(0x1a6)](undefined)[_0x25e68b(0x224)](),_0x1bf445=_0x25e68b(0x1a2)+_0x3b34fd+_0x25e68b(0x1ae)+JSON[_0x25e68b(0x1f8)](_0x515343),_0x186637=typeof this[_0x25e68b(0x1a4)][_0x25e68b(0x1d0)][_0x25e68b(0x1da)]===_0x25e68b(0x1e5)?this['connection'][_0x25e68b(0x1d0)]['cache']:{},_0x4a20aa=_0x186637[_0x25e68b(0x1ca)]&&this[_0x25e68b(0x1db)][_0x25e68b(0x1da)]||this[_0x25e68b(0x1db)][_0x25e68b(0x1da)];let _0x4c8856=undefined,_0x15ffc8=![];if(this[_0x25e68b(0x1a4)]['queryResultCache']&&_0x4a20aa)try{_0x4c8856=await this[_0x25e68b(0x1a4)][_0x25e68b(0x1ad)][_0x25e68b(0x1e1)]({'query':_0x1bf445,'identifier':this[_0x25e68b(0x1db)][_0x25e68b(0x201)],'duration':this[_0x25e68b(0x1db)][_0x25e68b(0x1ea)]||_0x186637[_0x25e68b(0x1fc)]||0x3e8},_0x11b9bd);if(_0x4c8856&&!this[_0x25e68b(0x1a4)]['queryResultCache'][_0x25e68b(0x1e9)](_0x4c8856))return parseInt(((_0x1d4129=(_0x55a902=JSON[_0x25e68b(0x22e)](_0x4c8856['result']))===null||_0x55a902===void 0x0?void 0x0:_0x55a902[0x0])===null||_0x1d4129===void 0x0?void 0x0:_0x1d4129[_0x25e68b(0x1d6)])||'0');}catch(_0x8021d6){if(!_0x186637['ignoreErrors'])throw _0x8021d6;_0x15ffc8=!![];}const _0x161e2b=await _0x11b9bd[_0x25e68b(0x1d2)](_0x25e68b(0x1a2)+_0x3b34fd,_0x515343,!![]);if(!_0x15ffc8&&this['connection'][_0x25e68b(0x1ad)]&&_0x4a20aa)try{await this[_0x25e68b(0x1a4)]['queryResultCache'][_0x25e68b(0x1b6)]({'query':_0x1bf445,'time':new Date()['getTime'](),'identifier':this[_0x25e68b(0x1db)][_0x25e68b(0x201)],'duration':this[_0x25e68b(0x1db)][_0x25e68b(0x1ea)]||_0x186637[_0x25e68b(0x1fc)]||0x3e8,'result':JSON[_0x25e68b(0x1f8)](_0x161e2b[_0x25e68b(0x1a3)])},_0x4c8856,_0x11b9bd);}catch(_0x2512c0){if(!_0x186637['ignoreErrors'])throw _0x2512c0;}return parseInt(((_0x16a1b8=(_0x1d5be1=_0x161e2b[_0x25e68b(0x1a3)])===null||_0x1d5be1===void 0x0?void 0x0:_0x1d5be1[0x0])===null||_0x16a1b8===void 0x0?void 0x0:_0x16a1b8[_0x25e68b(0x1d6)])||'0');}catch(_0x435a04){throw _0x435a04;}finally{_0x11b9bd!==this[_0x25e68b(0x21c)]&&await _0x11b9bd[_0x25e68b(0x1f6)]();}}else return this[_0x25e68b(0x22b)]();},typeorm_2[a15_0x4705eb(0x20e)][a15_0x4705eb(0x214)]['joinAppends']=function(_0x435668,_0x4447ac){const _0x475ac1=a15_0x4705eb;_0x435668[_0x475ac1(0x1ec)](this['alias']+'.')&&(_0x435668=_0x435668[_0x475ac1(0x1fd)]((this[_0x475ac1(0x1dd)]+'.')['length']));const _0x36ee3b=typeof _0x4447ac=='string'?{'alias':_0x4447ac}:_0x4447ac,_0x33318e=this[_0x475ac1(0x1db)][_0x475ac1(0x1b1)][_0x475ac1(0x211)],_0x114054=(0x0,typeorm_1[_0x475ac1(0x1cc)])(),_0x208a12=_0x114054[_0x475ac1(0x1cb)][_0x475ac1(0x229)](_0x423fb1=>_0x423fb1[_0x475ac1(0x20d)]==_0x33318e[_0x475ac1(0x20d)]&&_0x423fb1[_0x475ac1(0x19e)]==_0x435668);if((_0x33318e===null||_0x33318e===void 0x0?void 0x0:_0x33318e[_0x475ac1(0x20d)])&&(_0x208a12===null||_0x208a12===void 0x0?void 0x0:_0x208a12['propertyName'])){!this[_0x475ac1(0x1c3)]&&(this[_0x475ac1(0x1c3)]=[]);if(_0x208a12[_0x475ac1(0x1af)]=='many-to-one'||_0x208a12[_0x475ac1(0x1af)]==_0x475ac1(0x20b)){const _0x354815=_0x114054[_0x475ac1(0x1c4)][_0x475ac1(0x229)](_0x5ced61=>_0x5ced61[_0x475ac1(0x20d)]==_0x33318e[_0x475ac1(0x20d)]&&_0x5ced61[_0x475ac1(0x19e)]==_0x435668);_0x208a12[_0x475ac1(0x19e)]==(_0x354815===null||_0x354815===void 0x0?void 0x0:_0x354815['propertyName'])&&(!this['_appends'][_0x475ac1(0x229)](_0x362457=>_0x362457[_0x475ac1(0x1dd)]==((_0x36ee3b===null||_0x36ee3b===void 0x0?void 0x0:_0x36ee3b[_0x475ac1(0x1dd)])||_0x435668))&&this[_0x475ac1(0x1c3)][_0x475ac1(0x1ee)]({'alias':(_0x36ee3b===null||_0x36ee3b===void 0x0?void 0x0:_0x36ee3b['alias'])||_0x435668,'relation':_0x208a12,'joinColumn':_0x354815,'findOption':(_0x36ee3b===null||_0x36ee3b===void 0x0?void 0x0:_0x36ee3b[_0x475ac1(0x1e8)])||undefined}));}else{if(_0x208a12[_0x475ac1(0x1af)]=='one-to-many')try{const _0x1777f4=_0x114054[_0x475ac1(0x1cb)][_0x475ac1(0x229)](_0x4605fc=>_0x4605fc[_0x475ac1(0x20d)]==_0x208a12[_0x475ac1(0x19c)](_0x208a12[_0x475ac1(0x19e)])&&_0x4605fc[_0x475ac1(0x19c)](_0x4605fc[_0x475ac1(0x1af)])==_0x33318e[_0x475ac1(0x20d)]),_0x4a124f=_0x114054['joinColumns'][_0x475ac1(0x229)](_0x10e430=>_0x10e430[_0x475ac1(0x20d)]==_0x1777f4['target']&&_0x10e430['propertyName']==_0x1777f4['propertyName']);_0x1777f4['propertyName']==(_0x4a124f===null||_0x4a124f===void 0x0?void 0x0:_0x4a124f[_0x475ac1(0x19e)])&&(!this['_appends'][_0x475ac1(0x229)](_0x11e857=>_0x11e857[_0x475ac1(0x1dd)]==((_0x36ee3b===null||_0x36ee3b===void 0x0?void 0x0:_0x36ee3b[_0x475ac1(0x1dd)])||_0x435668))&&this[_0x475ac1(0x1c3)]['push']({'alias':(_0x36ee3b===null||_0x36ee3b===void 0x0?void 0x0:_0x36ee3b['alias'])||_0x435668,'relation':_0x208a12,'joinColumn':_0x4a124f,'findOption':(_0x36ee3b===null||_0x36ee3b===void 0x0?void 0x0:_0x36ee3b[_0x475ac1(0x1e8)])||undefined}));}catch(_0x45a530){}}}return this;},typeorm_2[a15_0x4705eb(0x20e)]['prototype'][a15_0x4705eb(0x1b0)]=async function(_0x5e7ccc){const _0x23f66c=a15_0x4705eb;var _0x30f620,_0x9326ec,_0x3990e3,_0x4fdf2c;for(const _0x503947 of this['_appends']||[]){if(!((_0x30f620=_0x503947===null||_0x503947===void 0x0?void 0x0:_0x503947[_0x23f66c(0x20f)])===null||_0x30f620===void 0x0?void 0x0:_0x30f620[_0x23f66c(0x1af)]))continue;if(!((_0x9326ec=_0x503947===null||_0x503947===void 0x0?void 0x0:_0x503947['joinColumn'])===null||_0x9326ec===void 0x0?void 0x0:_0x9326ec[_0x23f66c(0x1d5)])||!((_0x3990e3=_0x503947===null||_0x503947===void 0x0?void 0x0:_0x503947['joinColumn'])===null||_0x3990e3===void 0x0?void 0x0:_0x3990e3[_0x23f66c(0x215)]))continue;if(!_0x5e7ccc[_0x503947[_0x23f66c(0x213)][_0x23f66c(0x215)]])continue;if(typeof((_0x4fdf2c=_0x503947===null||_0x503947===void 0x0?void 0x0:_0x503947[_0x23f66c(0x20f)])===null||_0x4fdf2c===void 0x0?void 0x0:_0x4fdf2c['type'])!=_0x23f66c(0x1d3))continue;if(_0x503947['relation'][_0x23f66c(0x1af)]==_0x23f66c(0x1f9)||_0x503947[_0x23f66c(0x20f)][_0x23f66c(0x1af)]=='one-to-one'){const _0x21f488=this[_0x23f66c(0x1a4)][_0x23f66c(0x1e3)](_0x503947[_0x23f66c(0x20f)][_0x23f66c(0x19c)](_0x503947['relation']['relationType']),_0x503947[_0x23f66c(0x20f)][_0x23f66c(0x19e)])[_0x23f66c(0x1fa)]();(_0x503947===null||_0x503947===void 0x0?void 0x0:_0x503947[_0x23f66c(0x1e8)])&&_0x21f488[_0x23f66c(0x1ab)]({..._0x503947[_0x23f66c(0x1e8)],'skip':0x0,'take':0x1}),_0x5e7ccc[_0x503947['alias']]=await _0x21f488[_0x23f66c(0x1df)](_0x21f488[_0x23f66c(0x1dd)]+'.'+_0x503947[_0x23f66c(0x213)][_0x23f66c(0x215)]+_0x23f66c(0x1f3)+_0x503947[_0x23f66c(0x213)][_0x23f66c(0x215)],{[_0x503947[_0x23f66c(0x213)]['referencedColumnName']]:_0x5e7ccc[_0x503947[_0x23f66c(0x213)][_0x23f66c(0x1d5)]]})['getOne']();}else{if(_0x503947[_0x23f66c(0x20f)][_0x23f66c(0x1af)]=='one-to-many'||_0x503947[_0x23f66c(0x20f)][_0x23f66c(0x1af)]==_0x23f66c(0x1ff)){const _0x3c9802=this[_0x23f66c(0x1a4)][_0x23f66c(0x1e3)](_0x503947['relation']['type'](_0x503947[_0x23f66c(0x20f)]['relationType']),_0x503947[_0x23f66c(0x20f)][_0x23f66c(0x19e)])[_0x23f66c(0x1fa)]();(_0x503947===null||_0x503947===void 0x0?void 0x0:_0x503947[_0x23f66c(0x1e8)])&&_0x3c9802[_0x23f66c(0x1ab)]({'skip':0x0,'take':0xa,..._0x503947[_0x23f66c(0x1e8)]}),_0x5e7ccc[_0x503947[_0x23f66c(0x1dd)]]=await _0x3c9802[_0x23f66c(0x1df)](_0x3c9802[_0x23f66c(0x1dd)]+'.'+_0x503947[_0x23f66c(0x213)][_0x23f66c(0x1d5)]+_0x23f66c(0x1f3)+_0x503947[_0x23f66c(0x213)][_0x23f66c(0x1d5)],{[_0x503947[_0x23f66c(0x213)][_0x23f66c(0x1d5)]]:_0x5e7ccc[_0x503947[_0x23f66c(0x213)][_0x23f66c(0x215)]]})[_0x23f66c(0x228)]();}}}return _0x5e7ccc;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16_0x3b9fd7=a16_0x4151;(function(_0x236892,_0x561d4e){const _0x58fb2e=a16_0x4151,_0x39e624=_0x236892();while(!![]){try{const _0x3aeb28=-parseInt(_0x58fb2e(0x150))/0x1*(parseInt(_0x58fb2e(0x140))/0x2)+-parseInt(_0x58fb2e(0x149))/0x3*(-parseInt(_0x58fb2e(0x15e))/0x4)+parseInt(_0x58fb2e(0x14d))/0x5+-parseInt(_0x58fb2e(0x14b))/0x6*(-parseInt(_0x58fb2e(0x179))/0x7)+-parseInt(_0x58fb2e(0x14a))/0x8*(-parseInt(_0x58fb2e(0x17f))/0x9)+parseInt(_0x58fb2e(0x14e))/0xa+-parseInt(_0x58fb2e(0x143))/0xb;if(_0x3aeb28===_0x561d4e)break;else _0x39e624['push'](_0x39e624['shift']());}catch(_0x527ea5){_0x39e624['push'](_0x39e624['shift']());}}}(a16_0x39a2,0x49576));const a16_0x3eaa7a=(function(){let _0x2fe877=!![];return function(_0x260423,_0x149e57){const _0x136df6=_0x2fe877?function(){const _0x344d83=a16_0x4151;if(_0x149e57){const _0x5ceb84=_0x149e57[_0x344d83(0x15b)](_0x260423,arguments);return _0x149e57=null,_0x5ceb84;}}:function(){};return _0x2fe877=![],_0x136df6;};}()),a16_0xc97e81=a16_0x3eaa7a(this,function(){const _0x3e120e=a16_0x4151;return a16_0xc97e81[_0x3e120e(0x160)]()[_0x3e120e(0x15d)](_0x3e120e(0x180))[_0x3e120e(0x160)]()[_0x3e120e(0x144)](a16_0xc97e81)[_0x3e120e(0x15d)](_0x3e120e(0x180));});a16_0xc97e81();'use strict';Object[a16_0x3b9fd7(0x175)](exports,a16_0x3b9fd7(0x17c),{'value':!![]}),exports[a16_0x3b9fd7(0x145)]=void 0x0,exports['clearTableExistsCache']=clearTableExistsCache;function a16_0x4151(_0xc115c7,_0x21d5fa){const _0x40bc33=a16_0x39a2();return a16_0x4151=function(_0xc97e81,_0x3eaa7a){_0xc97e81=_0xc97e81-0x13d;let _0x39a250=_0x40bc33[_0xc97e81];return _0x39a250;},a16_0x4151(_0xc115c7,_0x21d5fa);}const core_1=require(a16_0x3b9fd7(0x16c)),typeorm_1=require(a16_0x3b9fd7(0x13e)),interface_1=require(a16_0x3b9fd7(0x183)),tableExistsCache=new Map(),MAX_CACHE_SIZE=0x3e8;class ShardingStrategy{async[a16_0x3b9fd7(0x174)](_0x174217,_0xe858fe){const _0x15c3a7=a16_0x3b9fd7;var _0x16c134;let _0x1c59b4=tableExistsCache['get'](_0x174217[_0x15c3a7(0x162)]);!_0x1c59b4&&tableExistsCache[_0x15c3a7(0x142)](_0x174217['dataSource'],_0x1c59b4=new Map());if(_0x1c59b4['has'](_0xe858fe))return(_0x16c134=_0x1c59b4[_0x15c3a7(0x173)](_0xe858fe))!==null&&_0x16c134!==void 0x0?_0x16c134:![];const _0x4f90ea=_0x174217['manager'][_0x15c3a7(0x16b)][_0x15c3a7(0x166)]();try{return await _0x4f90ea['hasTable'](_0xe858fe)&&(_0x1c59b4['size']>=MAX_CACHE_SIZE&&_0x1c59b4['clear'](),_0x1c59b4[_0x15c3a7(0x142)](_0xe858fe,!![])),_0x1c59b4[_0x15c3a7(0x173)](_0xe858fe)||![];}finally{await _0x4f90ea[_0x15c3a7(0x14c)]();}}async[a16_0x3b9fd7(0x187)](_0x3fc1c0,_0xfcfbe8){const _0x429a64=a16_0x3b9fd7;var _0x104ddb;const _0x5814f7=_0x3fc1c0[_0x429a64(0x141)]['connection'][_0x429a64(0x166)]();try{const _0x19f3f3=Object['assign'](Object['create'](Object[_0x429a64(0x177)](_0x3fc1c0['entityMetadata'])),_0x3fc1c0['entityMetadata']);Object[_0x429a64(0x175)](_0x19f3f3,'tableName',{'get':()=>_0xfcfbe8,'enumerable':!![],'configurable':!![]});const _0xe6f3d6=typeorm_1[_0x429a64(0x153)][_0x429a64(0x184)](_0x19f3f3,_0x3fc1c0['dataSource'][_0x429a64(0x15f)]);await _0x5814f7[_0x429a64(0x17b)](_0xe6f3d6,!![],![]);if(!await _0x5814f7[_0x429a64(0x156)](_0xfcfbe8))throw new Error(_0x429a64(0x151)+_0xfcfbe8+_0x429a64(0x13f));(_0x104ddb=tableExistsCache['get'](_0x3fc1c0[_0x429a64(0x162)]))===null||_0x104ddb===void 0x0?void 0x0:_0x104ddb[_0x429a64(0x142)](_0xfcfbe8,!![]);}finally{await _0x5814f7[_0x429a64(0x14c)]();}}async[a16_0x3b9fd7(0x152)](_0x23dd63,_0x48641e){const _0xfa52ac=a16_0x3b9fd7;if(await this[_0xfa52ac(0x174)](_0x23dd63,_0x48641e))return;let _0x3883d9=![];if(this[_0xfa52ac(0x165)])try{_0x3883d9=await this[_0xfa52ac(0x165)](_0x23dd63,_0x48641e);}catch(_0x2424f2){console[_0xfa52ac(0x17a)](_0xfa52ac(0x15c),_0x2424f2);}if(!_0x3883d9&&!await this[_0xfa52ac(0x174)](_0x23dd63,_0x48641e)){let _0x5a8ffb;for(let _0x469739=0x0;_0x469739<0x3;_0x469739++){try{await this[_0xfa52ac(0x187)](_0x23dd63,_0x48641e);return;}catch(_0x1e3bc9){_0x5a8ffb=_0x1e3bc9,await new Promise(_0x37934d=>setTimeout(_0x37934d,0x32*(_0x469739+0x1)));if(await this[_0xfa52ac(0x174)](_0x23dd63,_0x48641e))return;}}throw new Error('[Sharding]\x20Failed\x20to\x20create\x20table\x20\x22'+_0x48641e+_0xfa52ac(0x163)+(_0x5a8ffb instanceof Error?_0x5a8ffb[_0xfa52ac(0x15a)]:String(_0x5a8ffb)));}}async['preCreateTables'](_0x4151f9,_0x253b37){const _0x333b98=a16_0x3b9fd7;var _0x32aed4;const _0x28dc59=_0x253b37||await((_0x32aed4=this[_0x333b98(0x186)])===null||_0x32aed4===void 0x0?void 0x0:_0x32aed4[_0x333b98(0x172)](this,_0x4151f9[_0x333b98(0x159)]))||[];for(const _0x3d814c of _0x28dc59){_0x3d814c&&_0x3d814c!==_0x4151f9['baseTableName']&&await this['ensureTableExists'](_0x4151f9,_0x3d814c);}}}exports[a16_0x3b9fd7(0x145)]=ShardingStrategy;const METHODS=[a16_0x3b9fd7(0x181),'getInsertTableName',a16_0x3b9fd7(0x185),a16_0x3b9fd7(0x147)];function getQueryType(_0x1fadf7){const _0x7d2046=a16_0x3b9fd7;return _0x1fadf7 instanceof typeorm_1[_0x7d2046(0x155)]?0x0:_0x1fadf7 instanceof typeorm_1[_0x7d2046(0x157)]?0x1:_0x1fadf7 instanceof typeorm_1['UpdateQueryBuilder']?0x2:0x3;}function resolveTableName(_0x66e12c,_0x394788,_0x278ef5,_0xbd92ba){const _0x50b8d2=a16_0x3b9fd7;var _0x4d5e90,_0x538d55;const _0x54510b=_0x66e12c[METHODS[_0xbd92ba]];if(_0x54510b){const _0x2d827c=_0x54510b[_0x50b8d2(0x172)](_0x66e12c,_0x394788,_0x278ef5);if(_0x2d827c)return _0x2d827c;}return(_0x538d55=(_0x4d5e90=_0x66e12c[_0x50b8d2(0x146)])===null||_0x4d5e90===void 0x0?void 0x0:_0x4d5e90[_0x50b8d2(0x172)](_0x66e12c,_0x394788,_0x278ef5))!==null&&_0x538d55!==void 0x0?_0x538d55:null;}function getShardingMeta(_0x3fe973){const _0xefd120=a16_0x3b9fd7;var _0x233f96;const _0x17c2a0=(0x0,core_1[_0xefd120(0x16a)])(interface_1[_0xefd120(0x16e)],_0x3fe973);if(!(_0x17c2a0===null||_0x17c2a0===void 0x0?void 0x0:_0x17c2a0[_0xefd120(0x170)]))return null;return{'strategy':_0x17c2a0[_0xefd120(0x170)],'tableName':(_0x233f96=(0x0,core_1['getClassMetadata'])(interface_1['ENTIFY_MODULE_SOURCE'],_0x3fe973))===null||_0x233f96===void 0x0?void 0x0:_0x233f96[_0xefd120(0x161)]};}function getShardingTableNameSync(_0x54fb7a,_0x191b83){const _0x39eac3=a16_0x3b9fd7;var _0x4c85be,_0x56f118,_0x4558d0,_0x24fc9b,_0x230a9f,_0x45bd30;const _0x49289d=(_0x4558d0=(_0x56f118=(_0x4c85be=_0x54fb7a[_0x39eac3(0x168)])===null||_0x4c85be===void 0x0?void 0x0:_0x4c85be['aliases'])===null||_0x56f118===void 0x0?void 0x0:_0x56f118[_0x39eac3(0x154)](_0x593f9c=>{const _0x301396=_0x39eac3;var _0x38b0a3;return _0x593f9c[_0x301396(0x13d)]===_0x191b83||((_0x38b0a3=_0x593f9c['metadata'])===null||_0x38b0a3===void 0x0?void 0x0:_0x38b0a3[_0x301396(0x161)])===_0x191b83;}))===null||_0x4558d0===void 0x0?void 0x0:_0x4558d0[_0x39eac3(0x17e)];if(!(_0x49289d===null||_0x49289d===void 0x0?void 0x0:_0x49289d[_0x39eac3(0x16d)]))return null;const _0x51c84b=getShardingMeta(_0x49289d[_0x39eac3(0x16d)]);if(!_0x51c84b)return null;try{const _0x4e55c5=(_0x24fc9b=(0x0,core_1[_0x39eac3(0x178)])())===null||_0x24fc9b===void 0x0?void 0x0:_0x24fc9b['get'](_0x51c84b[_0x39eac3(0x170)]);if(!_0x4e55c5)return null;const _0x38160c=_0x51c84b[_0x39eac3(0x161)]||_0x49289d[_0x39eac3(0x161)],_0x384380={...(_0x230a9f=_0x54fb7a['expressionMap'])===null||_0x230a9f===void 0x0?void 0x0:_0x230a9f['nativeParameters'],...(_0x45bd30=_0x54fb7a[_0x39eac3(0x168)])===null||_0x45bd30===void 0x0?void 0x0:_0x45bd30[_0x39eac3(0x188)]},_0xe1954d=resolveTableName(_0x4e55c5,_0x38160c,_0x384380,getQueryType(_0x54fb7a));return _0xe1954d&&_0xe1954d!==_0x49289d[_0x39eac3(0x161)]?_0xe1954d:null;}catch{}return null;}function a16_0x39a2(){const _0x504ee2=['driver','toString','tableName','dataSource','\x22\x20after\x203\x20retries:\x20','prototype','createTables','createQueryRunner','clear','expressionMap','delete','getClassMetadata','connection','@midwayjs/core','target','ENTIFY_SHARDING_KEY','getRawAndEntities','strategy','nativeParameters','call','get','checkTableExists','defineProperty','UpdateQueryBuilder','getPrototypeOf','getCurrentApplicationContext','3813586HFGnNM','warn','createTable','__esModule','execute','metadata','2701602PonGuZ','(((.+)+)+)+$','getSelectTableName','getAsync','./interface','create','getUpdateTableName','getPreCreateTableNames','createTableFromMetadata','parameters','tablePath','typeorm','\x22\x20was\x20not\x20created','773686arvJhg','manager','set','13720047hYfEaD','constructor','ShardingStrategy','getTableName','getDeleteTableName','[Sharding]\x20Ensure\x20table\x20exists\x20failed:','87pzBSyl','16LpIoOL','6qKQXfk','release','969525NiNbok','399140eiwvYD','DeleteQueryBuilder','1pOEicH','Table\x20\x22','ensureTableExists','Table','find','SelectQueryBuilder','hasTable','InsertQueryBuilder','forEach','baseTableName','message','apply','[Sharding]\x20Custom\x20createTables\x20failed,\x20fallback\x20to\x20default:','search','76628MRWtBF'];a16_0x39a2=function(){return _0x504ee2;};return a16_0x39a2();}async function ensureShardingTablesExist(_0x2db4f4){const _0x23a795=a16_0x3b9fd7;var _0x4afa43,_0x35b5f6,_0x5ed892;const _0xab7bb2=(0x0,core_1[_0x23a795(0x178)])();if(!_0xab7bb2)return;const _0x504f08={...(_0x4afa43=_0x2db4f4[_0x23a795(0x168)])===null||_0x4afa43===void 0x0?void 0x0:_0x4afa43[_0x23a795(0x171)],...(_0x35b5f6=_0x2db4f4[_0x23a795(0x168)])===null||_0x35b5f6===void 0x0?void 0x0:_0x35b5f6[_0x23a795(0x188)]},_0x5aa028=getQueryType(_0x2db4f4);for(const _0x7b135f of((_0x5ed892=_0x2db4f4['expressionMap'])===null||_0x5ed892===void 0x0?void 0x0:_0x5ed892['aliases'])||[]){const _0x5f3a6b=_0x7b135f[_0x23a795(0x17e)],_0x25163c=(_0x5f3a6b===null||_0x5f3a6b===void 0x0?void 0x0:_0x5f3a6b[_0x23a795(0x16d)])&&getShardingMeta(_0x5f3a6b[_0x23a795(0x16d)]);if(!_0x25163c)continue;try{const _0x5acc43=await _0xab7bb2[_0x23a795(0x182)](_0x25163c[_0x23a795(0x170)]);if(!_0x5acc43)continue;const _0x5e1aa8=_0x25163c['tableName']||_0x5f3a6b[_0x23a795(0x161)],_0x589df3=resolveTableName(_0x5acc43,_0x5e1aa8,_0x504f08,_0x5aa028)||_0x5e1aa8,_0x4c9446={'entity':_0x5f3a6b['target'],'baseTableName':_0x5e1aa8,'dataSource':_0x2db4f4[_0x23a795(0x16b)],'entityMetadata':_0x5f3a6b,'manager':_0x2db4f4['connection'][_0x23a795(0x141)]};_0x589df3!==_0x5e1aa8&&await _0x5acc43[_0x23a795(0x152)](_0x4c9446,_0x589df3),await _0x5acc43['preCreateTables'](_0x4c9446);}catch(_0x469134){console[_0x23a795(0x17a)](_0x23a795(0x148),_0x469134);}}}const _origGetTableName=typeorm_1['QueryBuilder'][a16_0x3b9fd7(0x164)][a16_0x3b9fd7(0x146)],_getRawAndEntities=typeorm_1['SelectQueryBuilder']['prototype']['getRawAndEntities'],_insert=typeorm_1[a16_0x3b9fd7(0x157)]['prototype'][a16_0x3b9fd7(0x17d)],_update=typeorm_1[a16_0x3b9fd7(0x176)][a16_0x3b9fd7(0x164)][a16_0x3b9fd7(0x17d)],_delete=typeorm_1['DeleteQueryBuilder']['prototype'][a16_0x3b9fd7(0x17d)];typeorm_1['QueryBuilder'][a16_0x3b9fd7(0x164)][a16_0x3b9fd7(0x146)]=function(_0x47a797){return _origGetTableName['call'](this,getShardingTableNameSync(this,_0x47a797)||_0x47a797);},typeorm_1[a16_0x3b9fd7(0x155)][a16_0x3b9fd7(0x164)][a16_0x3b9fd7(0x16f)]=async function(){const _0xeca380=a16_0x3b9fd7;return await ensureShardingTablesExist(this),_getRawAndEntities[_0xeca380(0x172)](this);},typeorm_1['InsertQueryBuilder'][a16_0x3b9fd7(0x164)][a16_0x3b9fd7(0x17d)]=async function(){const _0xd74a96=a16_0x3b9fd7;return await ensureShardingTablesExist(this),_insert[_0xd74a96(0x172)](this);},typeorm_1[a16_0x3b9fd7(0x176)][a16_0x3b9fd7(0x164)]['execute']=async function(){return await ensureShardingTablesExist(this),_update['call'](this);},typeorm_1[a16_0x3b9fd7(0x14f)][a16_0x3b9fd7(0x164)]['execute']=async function(){return await ensureShardingTablesExist(this),_delete['call'](this);};function clearTableExistsCache(_0x38176f,_0x5a02f2){const _0x278eb5=a16_0x3b9fd7;var _0x433deb,_0x5a67a9;if(_0x38176f&&_0x5a02f2)(_0x433deb=tableExistsCache[_0x278eb5(0x173)](_0x38176f))===null||_0x433deb===void 0x0?void 0x0:_0x433deb[_0x278eb5(0x169)](_0x5a02f2);else{if(_0x38176f)(_0x5a67a9=tableExistsCache[_0x278eb5(0x173)](_0x38176f))===null||_0x5a67a9===void 0x0?void 0x0:_0x5a67a9['clear']();else tableExistsCache[_0x278eb5(0x158)](_0x5acd33=>_0x5acd33[_0x278eb5(0x167)]());}}
|
|
1
|
+
const a16_0x5847f7=a16_0x33d7;(function(_0x4bbe7c,_0x16f61d){const _0x6588b6=a16_0x33d7,_0x563509=_0x4bbe7c();while(!![]){try{const _0x23e882=-parseInt(_0x6588b6(0xe9))/0x1*(parseInt(_0x6588b6(0x12e))/0x2)+-parseInt(_0x6588b6(0x131))/0x3*(parseInt(_0x6588b6(0x11d))/0x4)+-parseInt(_0x6588b6(0xf0))/0x5*(parseInt(_0x6588b6(0xf5))/0x6)+-parseInt(_0x6588b6(0x120))/0x7*(parseInt(_0x6588b6(0xfa))/0x8)+-parseInt(_0x6588b6(0x116))/0x9*(-parseInt(_0x6588b6(0x104))/0xa)+-parseInt(_0x6588b6(0xe8))/0xb*(-parseInt(_0x6588b6(0xff))/0xc)+parseInt(_0x6588b6(0xfd))/0xd*(parseInt(_0x6588b6(0xf6))/0xe);if(_0x23e882===_0x16f61d)break;else _0x563509['push'](_0x563509['shift']());}catch(_0x1b7285){_0x563509['push'](_0x563509['shift']());}}}(a16_0x190f,0xbe565));function a16_0x190f(){const _0x248cf8=['connection','dataSource','6tuZOyt','1067458yGBjbH','defineProperty','call','@midwayjs/core','1572992aMMpss','strategy','release','494EsvceL','Table','55476XjdXWB','getCurrentApplicationContext','manager','baseTableName','createTableFromMetadata','3010fsqxVu','(((.+)+)+)+$','tablePath','warn','toString','\x22\x20after\x203\x20retries:\x20','target','parameters','clear','metadata','prototype','size','ensureTableExists','./interface','expressionMap','createTables','driver','getAsync','24237UVGRrS','QueryBuilder','preCreateTables','entityMetadata','forEach','set','checkTableExists','547812iRsvnx','search','getClassMetadata','35hWWbsc','get','getPreCreateTableNames','aliases','delete','InsertQueryBuilder','createQueryRunner','Table\x20\x22','ENTIFY_SHARDING_KEY','UpdateQueryBuilder','getPrototypeOf','getRawAndEntities','tableName','[Sharding]\x20Failed\x20to\x20create\x20table\x20\x22','176094onYNyv','execute','getTableName','27PwIIqC','find','apply','hasTable','SelectQueryBuilder','getUpdateTableName','clearTableExistsCache','2101ibmaaC','1JHvAtM','typeorm','ENTIFY_MODULE_SOURCE','DeleteQueryBuilder','\x22\x20was\x20not\x20created','assign','__esModule','7538035wpgRjV','[Sharding]\x20Custom\x20createTables\x20failed,\x20fallback\x20to\x20default:','[Sharding]\x20Ensure\x20table\x20exists\x20failed:'];a16_0x190f=function(){return _0x248cf8;};return a16_0x190f();}const a16_0x1725b8=(function(){let _0x3113e1=!![];return function(_0x35f81d,_0x547637){const _0x53ee12=_0x3113e1?function(){const _0x241734=a16_0x33d7;if(_0x547637){const _0x1d3009=_0x547637[_0x241734(0x133)](_0x35f81d,arguments);return _0x547637=null,_0x1d3009;}}:function(){};return _0x3113e1=![],_0x53ee12;};}()),a16_0x359b16=a16_0x1725b8(this,function(){const _0x2ab807=a16_0x33d7;return a16_0x359b16[_0x2ab807(0x108)]()['search'](_0x2ab807(0x105))[_0x2ab807(0x108)]()['constructor'](a16_0x359b16)[_0x2ab807(0x11e)](_0x2ab807(0x105));});a16_0x359b16();'use strict';Object['defineProperty'](exports,a16_0x5847f7(0xef),{'value':!![]}),exports['ShardingStrategy']=void 0x0,exports[a16_0x5847f7(0xe7)]=clearTableExistsCache;const core_1=require(a16_0x5847f7(0xf9)),typeorm_1=require(a16_0x5847f7(0xea)),interface_1=require(a16_0x5847f7(0x111)),tableExistsCache=new Map(),MAX_CACHE_SIZE=0x3e8;class ShardingStrategy{async[a16_0x5847f7(0x11c)](_0x2426d2,_0x5c995e){const _0x261475=a16_0x5847f7;var _0x4f74fe;let _0x59e82f=tableExistsCache['get'](_0x2426d2[_0x261475(0xf4)]);!_0x59e82f&&tableExistsCache[_0x261475(0x11b)](_0x2426d2[_0x261475(0xf4)],_0x59e82f=new Map());if(_0x59e82f['has'](_0x5c995e))return(_0x4f74fe=_0x59e82f[_0x261475(0x121)](_0x5c995e))!==null&&_0x4f74fe!==void 0x0?_0x4f74fe:![];const _0x45069e=_0x2426d2[_0x261475(0x101)][_0x261475(0xf3)][_0x261475(0x126)]();try{return await _0x45069e[_0x261475(0xe4)](_0x5c995e)&&(_0x59e82f[_0x261475(0x10f)]>=MAX_CACHE_SIZE&&_0x59e82f[_0x261475(0x10c)](),_0x59e82f[_0x261475(0x11b)](_0x5c995e,!![])),_0x59e82f[_0x261475(0x121)](_0x5c995e)||![];}finally{await _0x45069e['release']();}}async[a16_0x5847f7(0x103)](_0x1914c9,_0x4edf36){const _0x492294=a16_0x5847f7;var _0x5ec0c8;const _0x382f94=_0x1914c9['manager']['connection'][_0x492294(0x126)]();try{const _0x227890=Object[_0x492294(0xee)](Object['create'](Object[_0x492294(0x12a)](_0x1914c9[_0x492294(0x119)])),_0x1914c9[_0x492294(0x119)]);Object[_0x492294(0xf7)](_0x227890,_0x492294(0x12c),{'get':()=>_0x4edf36,'enumerable':!![],'configurable':!![]});const _0x2a502c=typeorm_1[_0x492294(0xfe)]['create'](_0x227890,_0x1914c9[_0x492294(0xf4)][_0x492294(0x114)]);await _0x382f94['createTable'](_0x2a502c,!![],![]);if(!await _0x382f94['hasTable'](_0x4edf36))throw new Error(_0x492294(0x127)+_0x4edf36+_0x492294(0xed));(_0x5ec0c8=tableExistsCache[_0x492294(0x121)](_0x1914c9[_0x492294(0xf4)]))===null||_0x5ec0c8===void 0x0?void 0x0:_0x5ec0c8['set'](_0x4edf36,!![]);}finally{await _0x382f94[_0x492294(0xfc)]();}}async[a16_0x5847f7(0x110)](_0x41a7fb,_0x327031){const _0x3c5444=a16_0x5847f7;if(await this['checkTableExists'](_0x41a7fb,_0x327031))return;let _0x31781c=![];if(this[_0x3c5444(0x113)])try{_0x31781c=await this[_0x3c5444(0x113)](_0x41a7fb,_0x327031);}catch(_0x310867){console[_0x3c5444(0x107)](_0x3c5444(0xf1),_0x310867);}if(!_0x31781c&&!await this[_0x3c5444(0x11c)](_0x41a7fb,_0x327031)){let _0x15ca24;for(let _0x2e8684=0x0;_0x2e8684<0x3;_0x2e8684++){try{await this[_0x3c5444(0x103)](_0x41a7fb,_0x327031);return;}catch(_0x28418f){_0x15ca24=_0x28418f,await new Promise(_0x1fb5c1=>setTimeout(_0x1fb5c1,0x32*(_0x2e8684+0x1)));if(await this['checkTableExists'](_0x41a7fb,_0x327031))return;}}throw new Error(_0x3c5444(0x12d)+_0x327031+_0x3c5444(0x109)+(_0x15ca24 instanceof Error?_0x15ca24['message']:String(_0x15ca24)));}}async['preCreateTables'](_0x546e8c,_0x5adc4d){const _0x8e1de1=a16_0x5847f7;var _0x90a7bc;const _0x5a076b=_0x5adc4d||await((_0x90a7bc=this[_0x8e1de1(0x122)])===null||_0x90a7bc===void 0x0?void 0x0:_0x90a7bc[_0x8e1de1(0xf8)](this,_0x546e8c[_0x8e1de1(0x102)]))||[];for(const _0x33947d of _0x5a076b){_0x33947d&&_0x33947d!==_0x546e8c['baseTableName']&&await this[_0x8e1de1(0x110)](_0x546e8c,_0x33947d);}}}exports['ShardingStrategy']=ShardingStrategy;const METHODS=['getSelectTableName','getInsertTableName',a16_0x5847f7(0xe6),'getDeleteTableName'];function getQueryType(_0x341b93){const _0x6cf980=a16_0x5847f7;return _0x341b93 instanceof typeorm_1[_0x6cf980(0xe5)]?0x0:_0x341b93 instanceof typeorm_1[_0x6cf980(0x125)]?0x1:_0x341b93 instanceof typeorm_1['UpdateQueryBuilder']?0x2:0x3;}function resolveTableName(_0x5cb2ed,_0x2fcae2,_0x1798f3,_0x2a3d86){const _0x493aa6=a16_0x5847f7;var _0x19adf5,_0x16c5c8;const _0x11d904=_0x5cb2ed[METHODS[_0x2a3d86]];if(_0x11d904){const _0x5e8d64=_0x11d904[_0x493aa6(0xf8)](_0x5cb2ed,_0x2fcae2,_0x1798f3);if(_0x5e8d64)return _0x5e8d64;}return(_0x16c5c8=(_0x19adf5=_0x5cb2ed[_0x493aa6(0x130)])===null||_0x19adf5===void 0x0?void 0x0:_0x19adf5[_0x493aa6(0xf8)](_0x5cb2ed,_0x2fcae2,_0x1798f3))!==null&&_0x16c5c8!==void 0x0?_0x16c5c8:null;}function getShardingMeta(_0x8fbe0b){const _0x312fa7=a16_0x5847f7;var _0x4a5f63;const _0x1a1cc4=(0x0,core_1[_0x312fa7(0x11f)])(interface_1[_0x312fa7(0x128)],_0x8fbe0b);if(!(_0x1a1cc4===null||_0x1a1cc4===void 0x0?void 0x0:_0x1a1cc4['strategy']))return null;return{'strategy':_0x1a1cc4[_0x312fa7(0xfb)],'tableName':(_0x4a5f63=(0x0,core_1[_0x312fa7(0x11f)])(interface_1[_0x312fa7(0xeb)],_0x8fbe0b))===null||_0x4a5f63===void 0x0?void 0x0:_0x4a5f63[_0x312fa7(0x12c)]};}function getShardingTableNameSync(_0x48b44e,_0xefc206){const _0x2b160d=a16_0x5847f7;var _0x533a4f,_0x1f9fe7,_0x427382,_0x179c37,_0x3ac44b,_0x2c870d;const _0x43b0bf=(_0x427382=(_0x1f9fe7=(_0x533a4f=_0x48b44e['expressionMap'])===null||_0x533a4f===void 0x0?void 0x0:_0x533a4f[_0x2b160d(0x123)])===null||_0x1f9fe7===void 0x0?void 0x0:_0x1f9fe7[_0x2b160d(0x132)](_0x3cd7a8=>{const _0x124f5d=_0x2b160d;var _0x8fc821;return _0x3cd7a8[_0x124f5d(0x106)]===_0xefc206||((_0x8fc821=_0x3cd7a8[_0x124f5d(0x10d)])===null||_0x8fc821===void 0x0?void 0x0:_0x8fc821[_0x124f5d(0x12c)])===_0xefc206;}))===null||_0x427382===void 0x0?void 0x0:_0x427382['metadata'];if(!(_0x43b0bf===null||_0x43b0bf===void 0x0?void 0x0:_0x43b0bf['target']))return null;const _0x3ddd8a=getShardingMeta(_0x43b0bf['target']);if(!_0x3ddd8a)return null;try{const _0xf56a59=(_0x179c37=(0x0,core_1[_0x2b160d(0x100)])())===null||_0x179c37===void 0x0?void 0x0:_0x179c37[_0x2b160d(0x121)](_0x3ddd8a[_0x2b160d(0xfb)]);if(!_0xf56a59)return null;const _0xa64ed2=_0x3ddd8a[_0x2b160d(0x12c)]||_0x43b0bf['tableName'],_0x2384b8={...(_0x3ac44b=_0x48b44e[_0x2b160d(0x112)])===null||_0x3ac44b===void 0x0?void 0x0:_0x3ac44b['nativeParameters'],...(_0x2c870d=_0x48b44e[_0x2b160d(0x112)])===null||_0x2c870d===void 0x0?void 0x0:_0x2c870d[_0x2b160d(0x10b)]},_0x5419c6=resolveTableName(_0xf56a59,_0xa64ed2,_0x2384b8,getQueryType(_0x48b44e));return _0x5419c6&&_0x5419c6!==_0x43b0bf[_0x2b160d(0x12c)]?_0x5419c6:null;}catch{}return null;}async function ensureShardingTablesExist(_0x33e78d){const _0x93ff84=a16_0x5847f7;var _0x2ef3fc,_0x553555,_0x5f5b72;const _0x432747=(0x0,core_1['getCurrentApplicationContext'])();if(!_0x432747)return;const _0x57d33a={...(_0x2ef3fc=_0x33e78d[_0x93ff84(0x112)])===null||_0x2ef3fc===void 0x0?void 0x0:_0x2ef3fc['nativeParameters'],...(_0x553555=_0x33e78d[_0x93ff84(0x112)])===null||_0x553555===void 0x0?void 0x0:_0x553555[_0x93ff84(0x10b)]},_0x3bc411=getQueryType(_0x33e78d);for(const _0x5ba421 of((_0x5f5b72=_0x33e78d[_0x93ff84(0x112)])===null||_0x5f5b72===void 0x0?void 0x0:_0x5f5b72[_0x93ff84(0x123)])||[]){const _0x172bb8=_0x5ba421[_0x93ff84(0x10d)],_0x189c81=(_0x172bb8===null||_0x172bb8===void 0x0?void 0x0:_0x172bb8['target'])&&getShardingMeta(_0x172bb8[_0x93ff84(0x10a)]);if(!_0x189c81)continue;try{const _0x53a72e=await _0x432747[_0x93ff84(0x115)](_0x189c81[_0x93ff84(0xfb)]);if(!_0x53a72e)continue;const _0x4cb826=_0x189c81[_0x93ff84(0x12c)]||_0x172bb8[_0x93ff84(0x12c)],_0x3e4658=resolveTableName(_0x53a72e,_0x4cb826,_0x57d33a,_0x3bc411)||_0x4cb826,_0x463634={'entity':_0x172bb8[_0x93ff84(0x10a)],'baseTableName':_0x4cb826,'dataSource':_0x33e78d[_0x93ff84(0xf3)],'entityMetadata':_0x172bb8,'manager':_0x33e78d[_0x93ff84(0xf3)][_0x93ff84(0x101)]};_0x3e4658!==_0x4cb826&&await _0x53a72e[_0x93ff84(0x110)](_0x463634,_0x3e4658),await _0x53a72e[_0x93ff84(0x118)](_0x463634);}catch(_0x3effc8){console[_0x93ff84(0x107)](_0x93ff84(0xf2),_0x3effc8);}}}function a16_0x33d7(_0x210131,_0x288bc9){const _0x11d7a3=a16_0x190f();return a16_0x33d7=function(_0x359b16,_0x1725b8){_0x359b16=_0x359b16-0xe4;let _0x190ff8=_0x11d7a3[_0x359b16];return _0x190ff8;},a16_0x33d7(_0x210131,_0x288bc9);}const _origGetTableName=typeorm_1['QueryBuilder'][a16_0x5847f7(0x10e)]['getTableName'],_getRawAndEntities=typeorm_1['SelectQueryBuilder'][a16_0x5847f7(0x10e)][a16_0x5847f7(0x12b)],_insert=typeorm_1['InsertQueryBuilder'][a16_0x5847f7(0x10e)][a16_0x5847f7(0x12f)],_update=typeorm_1[a16_0x5847f7(0x129)][a16_0x5847f7(0x10e)]['execute'],_delete=typeorm_1[a16_0x5847f7(0xec)]['prototype'][a16_0x5847f7(0x12f)];typeorm_1[a16_0x5847f7(0x117)]['prototype'][a16_0x5847f7(0x130)]=function(_0x5b2f9c){const _0xa40e5f=a16_0x5847f7;return _origGetTableName[_0xa40e5f(0xf8)](this,getShardingTableNameSync(this,_0x5b2f9c)||_0x5b2f9c);},typeorm_1['SelectQueryBuilder'][a16_0x5847f7(0x10e)]['getRawAndEntities']=async function(){const _0x498f4f=a16_0x5847f7;return await ensureShardingTablesExist(this),_getRawAndEntities[_0x498f4f(0xf8)](this);},typeorm_1['InsertQueryBuilder']['prototype']['execute']=async function(){const _0x4e8cde=a16_0x5847f7;return await ensureShardingTablesExist(this),_insert[_0x4e8cde(0xf8)](this);},typeorm_1['UpdateQueryBuilder'][a16_0x5847f7(0x10e)][a16_0x5847f7(0x12f)]=async function(){const _0xfab1ce=a16_0x5847f7;return await ensureShardingTablesExist(this),_update[_0xfab1ce(0xf8)](this);},typeorm_1['DeleteQueryBuilder']['prototype'][a16_0x5847f7(0x12f)]=async function(){const _0x26b540=a16_0x5847f7;return await ensureShardingTablesExist(this),_delete[_0x26b540(0xf8)](this);};function clearTableExistsCache(_0x1bf45c,_0x1e05ac){const _0x30ec0f=a16_0x5847f7;var _0x2072bc,_0x54ef49;if(_0x1bf45c&&_0x1e05ac)(_0x2072bc=tableExistsCache['get'](_0x1bf45c))===null||_0x2072bc===void 0x0?void 0x0:_0x2072bc[_0x30ec0f(0x124)](_0x1e05ac);else{if(_0x1bf45c)(_0x54ef49=tableExistsCache[_0x30ec0f(0x121)](_0x1bf45c))===null||_0x54ef49===void 0x0?void 0x0:_0x54ef49[_0x30ec0f(0x10c)]();else tableExistsCache[_0x30ec0f(0x11a)](_0x5b34c5=>_0x5b34c5[_0x30ec0f(0x10c)]());}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.2",
|
|
24
24
|
"typescript": "^5.5.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "fcd2598c69931b57b3b0e7a944db30b529988689"
|
|
27
27
|
}
|