vome-core 0.0.58 → 0.0.59

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.
@@ -1 +1 @@
1
- const _0x92388b=_0x105b;(function(_0x474d82,_0x4e72d4){const _0x407a4b=_0x105b,_0x4e2772=_0x474d82();while(!![]){try{const _0x3f5185=-parseInt(_0x407a4b(0x13b))/0x1*(-parseInt(_0x407a4b(0x12b))/0x2)+parseInt(_0x407a4b(0x12f))/0x3+parseInt(_0x407a4b(0x120))/0x4+parseInt(_0x407a4b(0x128))/0x5*(parseInt(_0x407a4b(0x13d))/0x6)+parseInt(_0x407a4b(0x131))/0x7*(-parseInt(_0x407a4b(0x123))/0x8)+-parseInt(_0x407a4b(0x121))/0x9+-parseInt(_0x407a4b(0x132))/0xa;if(_0x3f5185===_0x4e72d4)break;else _0x4e2772['push'](_0x4e2772['shift']());}catch(_0x38988d){_0x4e2772['push'](_0x4e2772['shift']());}}}(_0x47ab,0x3f422));import*as _0x1ea021 from'xlsx';export const IMPORT_SKIP_FIELDS=['id','createTime',_0x92388b(0x12d),'deletedAt',_0x92388b(0x137)];export function isImportSkipField(_0x15059c){const _0x4b0e0e=_0x92388b;return IMPORT_SKIP_FIELDS[_0x4b0e0e(0x12a)](_0x15059c);}export function buildExcelBuffer(_0x1a7347,_0x5bdcff,_0x677d2c){const _0x1a7b9f=_0x92388b,_0x2a18ee=_0x1a7347['map'](_0x764160=>_0x764160[_0x1a7b9f(0x136)]||_0x764160['prop']),_0x50806c=_0x5bdcff['map'](_0x1a3624=>_0x1a7347[_0x1a7b9f(0x13a)](_0x113d5f=>{const _0x4ddd51=_0x1a7b9f;if(_0x677d2c)return _0x677d2c(_0x113d5f[_0x4ddd51(0x12e)],_0x1a3624);const _0xc9bab7=_0x1a3624[_0x113d5f[_0x4ddd51(0x12e)]];if(_0xc9bab7==null)return'';return String(_0xc9bab7);})),_0x47225e=_0x1ea021[_0x1a7b9f(0x135)][_0x1a7b9f(0x134)]([_0x2a18ee,..._0x50806c]),_0x1958e2=_0x1ea021[_0x1a7b9f(0x135)][_0x1a7b9f(0x124)]();return _0x1ea021[_0x1a7b9f(0x135)]['book_append_sheet'](_0x1958e2,_0x47225e,_0x1a7b9f(0x11f)),_0x1ea021[_0x1a7b9f(0x130)](_0x1958e2,{'bookType':'xlsx','type':_0x1a7b9f(0x122)});}export function buildImportTemplateBuffer(_0x5c4cdd){return buildExcelBuffer(_0x5c4cdd,[]);}export function parseExcelBuffer(_0x461a8a,_0x519c83){const _0x1179d9=_0x92388b,_0x2d0219=_0x1ea021['read'](_0x461a8a,{'type':_0x1179d9(0x122),'cellDates':!![]}),_0x1071ac=_0x2d0219[_0x1179d9(0x139)][0x0];if(!_0x1071ac)return[];const _0x5489c4=_0x2d0219[_0x1179d9(0x133)][_0x1071ac];if(!_0x5489c4)return[];const _0xb3f2d8=_0x1ea021['utils']['sheet_to_json'](_0x5489c4,{'header':0x1,'defval':'','raw':![]});if(!_0xb3f2d8[_0x1179d9(0x13e)])return[];const _0x3f1047=(_0xb3f2d8[0x0]||[])['map'](_0x4d9191=>String(_0x4d9191??'')[_0x1179d9(0x127)]()),_0x3b736b=new Map();if(_0x519c83?.[_0x1179d9(0x13e)])for(const _0x3fdb60 of _0x519c83){_0x3b736b[_0x1179d9(0x11e)](_0x3fdb60['label'][_0x1179d9(0x127)](),_0x3fdb60[_0x1179d9(0x12e)]),_0x3b736b[_0x1179d9(0x11e)](_0x3fdb60['prop'],_0x3fdb60[_0x1179d9(0x12e)]);}const _0x203429=_0x3f1047['map'](_0x415241=>{if(!_0x415241)return'';return _0x3b736b['get'](_0x415241)||_0x415241;}),_0x37f976=[];for(let _0x37c426=0x1;_0x37c426<_0xb3f2d8['length'];_0x37c426++){const _0x57ddec=_0xb3f2d8[_0x37c426]||[],_0x13db28={};let _0x3a98b1=!![];for(let _0x2f602c=0x0;_0x2f602c<_0x203429[_0x1179d9(0x13e)];_0x2f602c++){const _0xd042cd=_0x203429[_0x2f602c];if(!_0xd042cd)continue;let _0x3d8d6c=_0x57ddec[_0x2f602c];if(_0x3d8d6c==null||_0x3d8d6c===''){_0x13db28[_0xd042cd]=_0x3d8d6c==null?null:'';continue;}_0x3a98b1=![],typeof _0x3d8d6c===_0x1179d9(0x129)?_0x13db28[_0xd042cd]=_0x3d8d6c[_0x1179d9(0x127)]():_0x13db28[_0xd042cd]=_0x3d8d6c;}if(!_0x3a98b1)_0x37f976[_0x1179d9(0x138)](_0x13db28);}return _0x37f976;}function _0x47ab(){const _0x153f9a=['BgvUz3rO','C2v0','u2HLzxqX','mte5nZu2B09sv3Pz','mti1nZe3ngfKyu1Htq','yxjYyxK','oezItxvKvW','yM9VA19UzxC','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNnWCMvHzhnOzwv0BwWUC2HLzxq','lNHSC3G','DhjPBq','nwTyEgfSsW','C3rYAw5N','Aw5JBhvKzxm','mtzgCg93zhe','yxr0ywnOBwvUDdSGzMLSzw5HBwuQpvvurI04jYC','DxbKyxrLvgLTzq','ChjVCa','nZe0ndGWC3ztBxnb','D3jPDgu','mtiWodmXmMzHsw5Xwa','ndGZmtqZmhD1AxbABW','u2HLzxrZ','yw9Hx3rVx3nOzwv0','DxrPBhm','BgfIzwW','DgvUyw50swq','ChvZAa','u2HLzxroyw1LCW','BwfW','ntm1otjHv1f5CK8','zw5KC1DPDgG','mJe0nJi5nKj6EgrXra'];_0x47ab=function(){return _0x153f9a;};return _0x47ab();}export function excelFilename(_0x40a235){const _0x2abc96=_0x92388b;return _0x40a235[_0x2abc96(0x13c)](_0x2abc96(0x126))?_0x40a235:_0x40a235+'.xlsx';}function _0x105b(_0x22d2e4,_0x56035c){_0x22d2e4=_0x22d2e4-0x11e;const _0x47ab5a=_0x47ab();let _0x105bdf=_0x47ab5a[_0x22d2e4];if(_0x105b['HxGwIR']===undefined){var _0x26ca7d=function(_0x5a4fb0){const _0x31187d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ea021='',_0x15059c='';for(let _0x1a7347=0x0,_0x5bdcff,_0x677d2c,_0x2a18ee=0x0;_0x677d2c=_0x5a4fb0['charAt'](_0x2a18ee++);~_0x677d2c&&(_0x5bdcff=_0x1a7347%0x4?_0x5bdcff*0x40+_0x677d2c:_0x677d2c,_0x1a7347++%0x4)?_0x1ea021+=String['fromCharCode'](0xff&_0x5bdcff>>(-0x2*_0x1a7347&0x6)):0x0){_0x677d2c=_0x31187d['indexOf'](_0x677d2c);}for(let _0x50806c=0x0,_0x47225e=_0x1ea021['length'];_0x50806c<_0x47225e;_0x50806c++){_0x15059c+='%'+('00'+_0x1ea021['charCodeAt'](_0x50806c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15059c);};_0x105b['zwJYGr']=_0x26ca7d,_0x105b['LzDHVG']={},_0x105b['HxGwIR']=!![];}const _0x496e75=_0x47ab5a[0x0],_0x166c04=_0x22d2e4+_0x496e75,_0xf45777=_0x105b['LzDHVG'][_0x166c04];return!_0xf45777?(_0x105bdf=_0x105b['zwJYGr'](_0x105bdf),_0x105b['LzDHVG'][_0x166c04]=_0x105bdf):_0x105bdf=_0xf45777,_0x105bdf;}export function excelResponseHeaders(_0x4a5fc5){const _0x4ff6d6=_0x92388b,_0x1b1845=excelFilename(_0x4a5fc5);return{'Content-Type':_0x4ff6d6(0x125),'Content-Disposition':_0x4ff6d6(0x12c)+encodeURIComponent(_0x1b1845)};}
1
+ const _0x52c18c=_0x2db5;function _0x2db5(_0x3680cc,_0x40bf61){_0x3680cc=_0x3680cc-0x17b;const _0x500b7d=_0x500b();let _0x2db528=_0x500b7d[_0x3680cc];if(_0x2db5['zdVaIG']===undefined){var _0x2b5a77=function(_0x53b6bf){const _0x575b49='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x191d44='',_0x35a344='';for(let _0x183d70=0x0,_0x16b0e1,_0x4566fc,_0x3bf0f3=0x0;_0x4566fc=_0x53b6bf['charAt'](_0x3bf0f3++);~_0x4566fc&&(_0x16b0e1=_0x183d70%0x4?_0x16b0e1*0x40+_0x4566fc:_0x4566fc,_0x183d70++%0x4)?_0x191d44+=String['fromCharCode'](0xff&_0x16b0e1>>(-0x2*_0x183d70&0x6)):0x0){_0x4566fc=_0x575b49['indexOf'](_0x4566fc);}for(let _0x46e916=0x0,_0x2d683a=_0x191d44['length'];_0x46e916<_0x2d683a;_0x46e916++){_0x35a344+='%'+('00'+_0x191d44['charCodeAt'](_0x46e916)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35a344);};_0x2db5['NGsJfm']=_0x2b5a77,_0x2db5['PZkjgp']={},_0x2db5['zdVaIG']=!![];}const _0x117ef9=_0x500b7d[0x0],_0x414449=_0x3680cc+_0x117ef9,_0x3db81d=_0x2db5['PZkjgp'][_0x414449];return!_0x3db81d?(_0x2db528=_0x2db5['NGsJfm'](_0x2db528),_0x2db5['PZkjgp'][_0x414449]=_0x2db528):_0x2db528=_0x3db81d,_0x2db528;}(function(_0x25aa6b,_0x38639b){const _0x241c9e=_0x2db5,_0x3a0d21=_0x25aa6b();while(!![]){try{const _0x2aa6dc=parseInt(_0x241c9e(0x198))/0x1+-parseInt(_0x241c9e(0x18e))/0x2*(parseInt(_0x241c9e(0x189))/0x3)+parseInt(_0x241c9e(0x191))/0x4*(parseInt(_0x241c9e(0x184))/0x5)+-parseInt(_0x241c9e(0x193))/0x6*(parseInt(_0x241c9e(0x18b))/0x7)+parseInt(_0x241c9e(0x194))/0x8*(parseInt(_0x241c9e(0x17c))/0x9)+-parseInt(_0x241c9e(0x195))/0xa+-parseInt(_0x241c9e(0x190))/0xb*(-parseInt(_0x241c9e(0x19b))/0xc);if(_0x2aa6dc===_0x38639b)break;else _0x3a0d21['push'](_0x3a0d21['shift']());}catch(_0x12d32b){_0x3a0d21['push'](_0x3a0d21['shift']());}}}(_0x500b,0xa7397));import*as _0x191d44 from'xlsx';export const IMPORT_SKIP_FIELDS=['id','createTime',_0x52c18c(0x181),_0x52c18c(0x19c),'tenantId'];export function isImportSkipField(_0x35a344){return IMPORT_SKIP_FIELDS['includes'](_0x35a344);}export function buildExcelBuffer(_0x183d70,_0x16b0e1,_0x4566fc){const _0x2b3c14=_0x52c18c,_0x3bf0f3=_0x183d70[_0x2b3c14(0x17b)](_0x25f548=>_0x25f548[_0x2b3c14(0x17d)]||_0x25f548[_0x2b3c14(0x188)]),_0x46e916=_0x16b0e1[_0x2b3c14(0x17b)](_0x4c58ab=>_0x183d70[_0x2b3c14(0x17b)](_0x233854=>{const _0x51fdf8=_0x2b3c14;if(_0x4566fc)return _0x4566fc(_0x233854[_0x51fdf8(0x188)],_0x4c58ab);const _0xdd0c37=_0x4c58ab[_0x233854[_0x51fdf8(0x188)]];if(_0xdd0c37==null)return'';return String(_0xdd0c37);})),_0x2d683a=_0x191d44['utils'][_0x2b3c14(0x199)]([_0x3bf0f3,..._0x46e916]),_0x3f7e7c=_0x191d44[_0x2b3c14(0x186)][_0x2b3c14(0x192)]();return _0x191d44['utils'][_0x2b3c14(0x19a)](_0x3f7e7c,_0x2d683a,'Sheet1'),_0x191d44[_0x2b3c14(0x187)](_0x3f7e7c,{'bookType':'xlsx','type':'array'});}function _0x500b(){const _0x51825a=['yw9Hx3rVx3nOzwv0','yM9VA19HChbLBMrFC2HLzxq','mJG4nJq4vuXxyLvc','zgvSzxrLzef0','z2v0','BwfW','owHMuwzvDW','BgfIzwW','yxjYyxK','C2HLzxrFDg9FANnVBG','ChvZAa','DxbKyxrLvgLTzq','C2v0','u2HLzxroyw1LCW','ntq3nZaWnu95DfDMsa','C3rYAw5N','DxrPBhm','D3jPDgu','ChjVCa','mtjUwKHeug4','yxr0ywnOBwvUDdSGzMLSzw5HBwuQpvvurI04jYC','mtrPuKLRv3y','u2HLzxrZ','lNHSC3G','nJi1mtyYu2TYEhPo','BgvUz3rO','mtaXmKn5BuroDW','nhjHq3fSEG','yM9VA19UzxC','mJaXnZu0ogTqz3Hiuq','nZu1mZG0zunSy1n5','otCZotG0mg9tvhvuuW','CMvHza','zw5KC1DPDgG','mtC4otGZDhHjDLDs'];_0x500b=function(){return _0x51825a;};return _0x500b();}export function buildImportTemplateBuffer(_0x34e632){return buildExcelBuffer(_0x34e632,[]);}export function parseExcelBuffer(_0x361134,_0x46d89a){const _0x162df1=_0x52c18c,_0x1dc57f=_0x191d44[_0x162df1(0x196)](_0x361134,{'type':_0x162df1(0x17e),'cellDates':!![]}),_0x59181f=_0x1dc57f[_0x162df1(0x183)][0x0];if(!_0x59181f)return[];const _0xf3f915=_0x1dc57f[_0x162df1(0x18c)][_0x59181f];if(!_0xf3f915)return[];const _0x30bcf9=_0x191d44['utils'][_0x162df1(0x17f)](_0xf3f915,{'header':0x1,'defval':'','raw':![]});if(!_0x30bcf9['length'])return[];const _0x40be46=(_0x30bcf9[0x0]||[])[_0x162df1(0x17b)](_0xac5fd7=>String(_0xac5fd7??'')['trim']()),_0x2018dd=new Map();if(_0x46d89a?.[_0x162df1(0x18f)])for(const _0x2a455b of _0x46d89a){_0x2018dd[_0x162df1(0x182)](_0x2a455b[_0x162df1(0x17d)]['trim'](),_0x2a455b[_0x162df1(0x188)]),_0x2018dd[_0x162df1(0x182)](_0x2a455b[_0x162df1(0x188)],_0x2a455b[_0x162df1(0x188)]);}const _0x40a3f1=_0x40be46[_0x162df1(0x17b)](_0x29f1be=>{const _0x55ffa2=_0x162df1;if(!_0x29f1be)return'';return _0x2018dd[_0x55ffa2(0x19d)](_0x29f1be)||_0x29f1be;}),_0x40f9b1=[];for(let _0x3bbb37=0x1;_0x3bbb37<_0x30bcf9[_0x162df1(0x18f)];_0x3bbb37++){const _0x3c29e2=_0x30bcf9[_0x3bbb37]||[],_0x87dc40={};let _0x1cf14b=!![];for(let _0x52994e=0x0;_0x52994e<_0x40a3f1['length'];_0x52994e++){const _0x26a511=_0x40a3f1[_0x52994e];if(!_0x26a511)continue;let _0x365821=_0x3c29e2[_0x52994e];if(_0x365821==null||_0x365821===''){_0x87dc40[_0x26a511]=_0x365821==null?null:'';continue;}_0x1cf14b=![],typeof _0x365821===_0x162df1(0x185)?_0x87dc40[_0x26a511]=_0x365821['trim']():_0x87dc40[_0x26a511]=_0x365821;}if(!_0x1cf14b)_0x40f9b1[_0x162df1(0x180)](_0x87dc40);}return _0x40f9b1;}export function excelFilename(_0x16dd41){const _0x3bbf73=_0x52c18c;return _0x16dd41[_0x3bbf73(0x197)](_0x3bbf73(0x18d))?_0x16dd41:_0x16dd41+_0x3bbf73(0x18d);}export function excelResponseHeaders(_0x310f3b){const _0x1e7cf5=_0x52c18c,_0x4ad1b8=excelFilename(_0x310f3b);return{'Content-Type':'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','Content-Disposition':_0x1e7cf5(0x18a)+encodeURIComponent(_0x4ad1b8)};}
@@ -1 +1 @@
1
- (function(_0x4ada74,_0x478a23){var _0x776320=_0x1340,_0x46dd50=_0x4ada74();while(!![]){try{var _0x464698=-parseInt(_0x776320(0xd3))/0x1*(parseInt(_0x776320(0xd5))/0x2)+parseInt(_0x776320(0xd9))/0x3*(parseInt(_0x776320(0xd8))/0x4)+-parseInt(_0x776320(0xda))/0x5*(-parseInt(_0x776320(0xcf))/0x6)+-parseInt(_0x776320(0xd6))/0x7*(-parseInt(_0x776320(0xd7))/0x8)+-parseInt(_0x776320(0xd0))/0x9*(-parseInt(_0x776320(0xdb))/0xa)+parseInt(_0x776320(0xd2))/0xb*(-parseInt(_0x776320(0xd1))/0xc)+-parseInt(_0x776320(0xdc))/0xd*(parseInt(_0x776320(0xd4))/0xe);if(_0x464698===_0x478a23)break;else _0x46dd50['push'](_0x46dd50['shift']());}catch(_0x5131c8){_0x46dd50['push'](_0x46dd50['shift']());}}}(_0x5840,0x69e81));export{merge}from'../comm/merge';function _0x5840(){var _0xd5e948=['mJiZmZG0rgLQD3jY','mty2nZG2t2zOtgXA','mJHiCMD1wNK','mZm4mJy0shL3u01Q','mZCZmdKYAffxDK5r','mJfODNfptvm','nxvrDuTHAa','ndKXmteWuhznA2Xo','mZeYqu5WEMPq','mJu2mJCZohnetLHKqW','ndvMAg90sg8','mJy2nZeYAwrkEgDg','mJuZEej6Ehj2','mM9Xz0jHqG'];_0x5840=function(){return _0xd5e948;};return _0x5840();}function _0x1340(_0x3d654b,_0x314056){_0x3d654b=_0x3d654b-0xcf;var _0x5840f5=_0x5840();var _0x1340a1=_0x5840f5[_0x3d654b];if(_0x1340['BrhJih']===undefined){var _0x107c3d=function(_0x1757f9){var _0x24018e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x23603f='',_0x2685c8='';for(var _0x5391da=0x0,_0x472951,_0x38fbb7,_0x3d2ee3=0x0;_0x38fbb7=_0x1757f9['charAt'](_0x3d2ee3++);~_0x38fbb7&&(_0x472951=_0x5391da%0x4?_0x472951*0x40+_0x38fbb7:_0x38fbb7,_0x5391da++%0x4)?_0x23603f+=String['fromCharCode'](0xff&_0x472951>>(-0x2*_0x5391da&0x6)):0x0){_0x38fbb7=_0x24018e['indexOf'](_0x38fbb7);}for(var _0x13985b=0x0,_0x449092=_0x23603f['length'];_0x13985b<_0x449092;_0x13985b++){_0x2685c8+='%'+('00'+_0x23603f['charCodeAt'](_0x13985b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2685c8);};_0x1340['leVFYx']=_0x107c3d,_0x1340['aevKWd']={},_0x1340['BrhJih']=!![];}var _0xa94abf=_0x5840f5[0x0],_0x36de17=_0x3d654b+_0xa94abf,_0x2cd574=_0x1340['aevKWd'][_0x36de17];return!_0x2cd574?(_0x1340a1=_0x1340['leVFYx'](_0x1340a1),_0x1340['aevKWd'][_0x36de17]=_0x1340a1):_0x1340a1=_0x2cd574,_0x1340a1;}export{deepTree,flattenTree}from'./tree';export{RES_CODE}from'../routing/base';export{buildExcelBuffer,buildImportTemplateBuffer,parseExcelBuffer,excelFilename,excelResponseHeaders,IMPORT_SKIP_FIELDS,isImportSkipField}from'./excel';
1
+ (function(_0x326173,_0x7e8f67){var _0x524a61=_0x5e24,_0x3af4ca=_0x326173();while(!![]){try{var _0x435d5d=parseInt(_0x524a61(0x1d4))/0x1+-parseInt(_0x524a61(0x1db))/0x2*(parseInt(_0x524a61(0x1da))/0x3)+parseInt(_0x524a61(0x1d9))/0x4*(parseInt(_0x524a61(0x1d2))/0x5)+parseInt(_0x524a61(0x1dc))/0x6*(-parseInt(_0x524a61(0x1d6))/0x7)+parseInt(_0x524a61(0x1d3))/0x8*(-parseInt(_0x524a61(0x1d8))/0x9)+parseInt(_0x524a61(0x1d7))/0xa+parseInt(_0x524a61(0x1d5))/0xb;if(_0x435d5d===_0x7e8f67)break;else _0x3af4ca['push'](_0x3af4ca['shift']());}catch(_0x325806){_0x3af4ca['push'](_0x3af4ca['shift']());}}}(_0x13e4,0x25c5a));function _0x5e24(_0x200aa2,_0x2176c7){_0x200aa2=_0x200aa2-0x1d2;var _0x13e4e1=_0x13e4();var _0x5e24bd=_0x13e4e1[_0x200aa2];if(_0x5e24['wQBvQA']===undefined){var _0x5cc1db=function(_0x5ae3f7){var _0x259498='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5ce86c='',_0x4c810d='';for(var _0x23284c=0x0,_0x511ca1,_0x11899d,_0x24a4c9=0x0;_0x11899d=_0x5ae3f7['charAt'](_0x24a4c9++);~_0x11899d&&(_0x511ca1=_0x23284c%0x4?_0x511ca1*0x40+_0x11899d:_0x11899d,_0x23284c++%0x4)?_0x5ce86c+=String['fromCharCode'](0xff&_0x511ca1>>(-0x2*_0x23284c&0x6)):0x0){_0x11899d=_0x259498['indexOf'](_0x11899d);}for(var _0x33c231=0x0,_0x19751e=_0x5ce86c['length'];_0x33c231<_0x19751e;_0x33c231++){_0x4c810d+='%'+('00'+_0x5ce86c['charCodeAt'](_0x33c231)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c810d);};_0x5e24['CCRKJA']=_0x5cc1db,_0x5e24['uUcFPt']={},_0x5e24['wQBvQA']=!![];}var _0x3820f7=_0x13e4e1[0x0],_0x290441=_0x200aa2+_0x3820f7,_0xc63118=_0x5e24['uUcFPt'][_0x290441];return!_0xc63118?(_0x5e24bd=_0x5e24['CCRKJA'](_0x5e24bd),_0x5e24['uUcFPt'][_0x290441]=_0x5e24bd):_0x5e24bd=_0xc63118,_0x5e24bd;}function _0x13e4(){var _0x343a5b=['nJbYvM5rEK4','ntCZndmYq2jlB1D1','mtG3mda5BxDmsfPL','mtK3nZm2mgrrBKn6zG','mZq2otLfy3b6Bvu','mJy0mtqWDejnEMvj','ouHmCujwuG','nZiZmdrssvDfz3q','m0fLrvfWBa','mtyYnJuWwhDcBfzN','mZy2surktfLP'];_0x13e4=function(){return _0x343a5b;};return _0x13e4();}export{merge}from'../comm/merge';export{deepTree,flattenTree}from'./tree';export{RES_CODE}from'../routing/base';export{buildExcelBuffer,buildImportTemplateBuffer,parseExcelBuffer,excelFilename,excelResponseHeaders,IMPORT_SKIP_FIELDS,isImportSkipField}from'./excel';
@@ -1 +1 @@
1
- const _0x2e9152=_0x394d;(function(_0x40e5bc,_0x21ed69){const _0x28048a=_0x394d,_0x5f4bfe=_0x40e5bc();while(!![]){try{const _0x20c367=parseInt(_0x28048a(0xcb))/0x1*(parseInt(_0x28048a(0xce))/0x2)+parseInt(_0x28048a(0xd8))/0x3*(parseInt(_0x28048a(0xd4))/0x4)+-parseInt(_0x28048a(0xca))/0x5+-parseInt(_0x28048a(0xc9))/0x6+-parseInt(_0x28048a(0xd6))/0x7*(-parseInt(_0x28048a(0xd5))/0x8)+-parseInt(_0x28048a(0xd9))/0x9+parseInt(_0x28048a(0xcc))/0xa;if(_0x20c367===_0x21ed69)break;else _0x5f4bfe['push'](_0x5f4bfe['shift']());}catch(_0x256e2a){_0x5f4bfe['push'](_0x5f4bfe['shift']());}}}(_0xfcfc,0x2055f));export function deepTree(_0xf0d72b,_0x38d156=_0x2e9152(0xcf)){const _0x490fc8=_0x2e9152,_0x4ec77c=new Map();for(const _0x3411d4 of _0xf0d72b){if(_0x3411d4['id']==null)continue;_0x4ec77c[_0x490fc8(0xd7)](_0x3411d4['id'],{..._0x3411d4,'children':[]});}const _0x37db49=[];for(const _0x201e49 of _0x4ec77c['values']()){const _0x1c9129=_0x201e49[_0x490fc8(0xdb)];_0x1c9129!=null&&_0x1c9129!==''&&_0x4ec77c[_0x490fc8(0xda)](_0x1c9129)?_0x4ec77c[_0x490fc8(0xd3)](_0x1c9129)[_0x490fc8(0xdc)][_0x490fc8(0xd0)](_0x201e49):_0x37db49['push'](_0x201e49);}const _0x5d1e4b=_0x32918f=>{const _0x2d909f=_0x490fc8;_0x32918f['sort']((_0x3f4846,_0x416273)=>{const _0x13db0c=_0x394d,_0x331b26=_0x3f4846[_0x13db0c(0xd2)]??0x0,_0x5835ac=_0x416273[_0x13db0c(0xd2)]??0x0,_0x5a7e53=_0x38d156===_0x13db0c(0xd1)?_0x5835ac-_0x331b26:_0x331b26-_0x5835ac;return _0x5a7e53||Number(_0x3f4846['id'])-Number(_0x416273['id']);});for(const _0x450453 of _0x32918f)if(_0x450453[_0x2d909f(0xdc)]?.['length'])_0x5d1e4b(_0x450453[_0x2d909f(0xdc)]);};return _0x5d1e4b(_0x37db49),_0x37db49;}export function flattenTree(_0x3e8ef1,_0x56b50e,_0x28e7fa=0x0,_0x3b7a97=[]){const _0xbe57d8=_0x2e9152;for(const _0x2a00b8 of _0x3e8ef1){const _0xc1bf70=_0x2a00b8[_0xbe57d8(0xdc)]||[];_0x3b7a97[_0xbe57d8(0xd0)]({..._0x2a00b8,'depth':_0x28e7fa,'hasChildren':_0xc1bf70[_0xbe57d8(0xcd)]>0x0});if(_0xc1bf70[_0xbe57d8(0xcd)]&&_0x56b50e[_0xbe57d8(0xda)](_0x2a00b8['id']))flattenTree(_0xc1bf70,_0x56b50e,_0x28e7fa+0x1,_0x3b7a97);}return _0x3b7a97;}function _0x394d(_0x5c7e88,_0x43e9c6){_0x5c7e88=_0x5c7e88-0xc9;const _0xfcfc49=_0xfcfc();let _0x394d6b=_0xfcfc49[_0x5c7e88];if(_0x394d['TuUbDC']===undefined){var _0x43acd3=function(_0x3ba136){const _0x5e2381='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf0d72b='',_0x38d156='';for(let _0x4ec77c=0x0,_0x37db49,_0x5d1e4b,_0x3411d4=0x0;_0x5d1e4b=_0x3ba136['charAt'](_0x3411d4++);~_0x5d1e4b&&(_0x37db49=_0x4ec77c%0x4?_0x37db49*0x40+_0x5d1e4b:_0x5d1e4b,_0x4ec77c++%0x4)?_0xf0d72b+=String['fromCharCode'](0xff&_0x37db49>>(-0x2*_0x4ec77c&0x6)):0x0){_0x5d1e4b=_0x5e2381['indexOf'](_0x5d1e4b);}for(let _0x201e49=0x0,_0x1c9129=_0xf0d72b['length'];_0x201e49<_0x1c9129;_0x201e49++){_0x38d156+='%'+('00'+_0xf0d72b['charCodeAt'](_0x201e49)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x38d156);};_0x394d['ASimyi']=_0x43acd3,_0x394d['YPffAT']={},_0x394d['TuUbDC']=!![];}const _0x222f63=_0xfcfc49[0x0],_0x1b0dc0=_0x5c7e88+_0x222f63,_0x2a5600=_0x394d['YPffAT'][_0x1b0dc0];return!_0x2a5600?(_0x394d6b=_0x394d['ASimyi'](_0x394d6b),_0x394d['YPffAT'][_0x1b0dc0]=_0x394d6b):_0x394d6b=_0x2a5600,_0x394d6b;}function _0xfcfc(){const _0x24d8ff=['mtqZmte3mxPIqNn5yW','AgfZ','CgfYzw50swq','y2HPBgrYzw4','mtm5mJCZmNL0CeDhrW','mta3mtC3nwfPv3bUsa','nJjnyuvPC00','ndC5otK1mg92EhHNAa','BgvUz3rO','nJaYmhzwr1bpqG','yxnJ','ChvZAa','zgvZyW','B3jKzxjoDw0','z2v0','ngXeB1r6tW','ohbfwKD0Aq','mZe1mte5uLLuAxrZ','C2v0','nZG5mZnfAKnNzgy'];_0xfcfc=function(){return _0x24d8ff;};return _0xfcfc();}
1
+ function _0x384b(_0x3f497a,_0x3be157){_0x3f497a=_0x3f497a-0x1e6;const _0x5652af=_0x5652();let _0x384b1e=_0x5652af[_0x3f497a];if(_0x384b['rsOEvs']===undefined){var _0x99daaa=function(_0xbc5eba){const _0x53c9e2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5146f0='',_0x36ea38='';for(let _0x56a3b8=0x0,_0x3c39f6,_0x4ceba3,_0x778937=0x0;_0x4ceba3=_0xbc5eba['charAt'](_0x778937++);~_0x4ceba3&&(_0x3c39f6=_0x56a3b8%0x4?_0x3c39f6*0x40+_0x4ceba3:_0x4ceba3,_0x56a3b8++%0x4)?_0x5146f0+=String['fromCharCode'](0xff&_0x3c39f6>>(-0x2*_0x56a3b8&0x6)):0x0){_0x4ceba3=_0x53c9e2['indexOf'](_0x4ceba3);}for(let _0x37010b=0x0,_0x5a8660=_0x5146f0['length'];_0x37010b<_0x5a8660;_0x37010b++){_0x36ea38+='%'+('00'+_0x5146f0['charCodeAt'](_0x37010b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x36ea38);};_0x384b['QtDFUb']=_0x99daaa,_0x384b['ynQAMA']={},_0x384b['rsOEvs']=!![];}const _0xb4c99d=_0x5652af[0x0],_0x9d2238=_0x3f497a+_0xb4c99d,_0x40469f=_0x384b['ynQAMA'][_0x9d2238];return!_0x40469f?(_0x384b1e=_0x384b['QtDFUb'](_0x384b1e),_0x384b['ynQAMA'][_0x9d2238]=_0x384b1e):_0x384b1e=_0x40469f,_0x384b1e;}const _0xfdff9e=_0x384b;(function(_0x50090e,_0x2b264f){const _0x3d7f91=_0x384b,_0x21c2aa=_0x50090e();while(!![]){try{const _0x3986d7=parseInt(_0x3d7f91(0x1f5))/0x1+parseInt(_0x3d7f91(0x1f7))/0x2*(parseInt(_0x3d7f91(0x1f1))/0x3)+-parseInt(_0x3d7f91(0x1f3))/0x4+parseInt(_0x3d7f91(0x1e8))/0x5+-parseInt(_0x3d7f91(0x1eb))/0x6+-parseInt(_0x3d7f91(0x1ea))/0x7*(parseInt(_0x3d7f91(0x1e9))/0x8)+-parseInt(_0x3d7f91(0x1e7))/0x9;if(_0x3986d7===_0x2b264f)break;else _0x21c2aa['push'](_0x21c2aa['shift']());}catch(_0x1eccd6){_0x21c2aa['push'](_0x21c2aa['shift']());}}}(_0x5652,0x45ba9));function _0x5652(){const _0x18b002=['B3jKzxjoDw0','mZmWotu2zMDAqxjV','C2v0','mtjuA2fluw8','yxnJ','mta3ote4mwXZufrWEa','mJm1mZKXmhnTqwLYrW','mZuXnJy0DunWyu5W','ndLSAMfHt3G','mtqYntyWs2j2rvbl','CgfYzw50swq','y2HPBgrYzw4','ChvZAa','AgfZ','BgvUz3rO','mta3mdm0t1rutLzp','C29YDa','mteXnti4ogfeAMP2tq'];_0x5652=function(){return _0x18b002;};return _0x5652();}export function deepTree(_0x5146f0,_0x36ea38=_0xfdff9e(0x1e6)){const _0x40e442=_0xfdff9e,_0x56a3b8=new Map();for(const _0x778937 of _0x5146f0){if(_0x778937['id']==null)continue;_0x56a3b8[_0x40e442(0x1f6)](_0x778937['id'],{..._0x778937,'children':[]});}const _0x3c39f6=[];for(const _0x37010b of _0x56a3b8['values']()){const _0x5a8660=_0x37010b[_0x40e442(0x1ec)];_0x5a8660!=null&&_0x5a8660!==''&&_0x56a3b8[_0x40e442(0x1ef)](_0x5a8660)?_0x56a3b8['get'](_0x5a8660)[_0x40e442(0x1ed)][_0x40e442(0x1ee)](_0x37010b):_0x3c39f6['push'](_0x37010b);}const _0x4ceba3=_0xd059f0=>{const _0x58dcbd=_0x40e442;_0xd059f0[_0x58dcbd(0x1f2)]((_0x1fe3cd,_0x161707)=>{const _0xd34532=_0x58dcbd,_0x50227f=_0x1fe3cd[_0xd34532(0x1f4)]??0x0,_0x2d8e42=_0x161707[_0xd34532(0x1f4)]??0x0,_0x3196a6=_0x36ea38==='desc'?_0x2d8e42-_0x50227f:_0x50227f-_0x2d8e42;return _0x3196a6||Number(_0x1fe3cd['id'])-Number(_0x161707['id']);});for(const _0x5326d3 of _0xd059f0)if(_0x5326d3[_0x58dcbd(0x1ed)]?.[_0x58dcbd(0x1f0)])_0x4ceba3(_0x5326d3[_0x58dcbd(0x1ed)]);};return _0x4ceba3(_0x3c39f6),_0x3c39f6;}export function flattenTree(_0x5021e7,_0x323736,_0x58dfa0=0x0,_0x47eef1=[]){const _0x1f78ec=_0xfdff9e;for(const _0x497eae of _0x5021e7){const _0x34111d=_0x497eae['children']||[];_0x47eef1[_0x1f78ec(0x1ee)]({..._0x497eae,'depth':_0x58dfa0,'hasChildren':_0x34111d[_0x1f78ec(0x1f0)]>0x0});if(_0x34111d['length']&&_0x323736['has'](_0x497eae['id']))flattenTree(_0x34111d,_0x323736,_0x58dfa0+0x1,_0x47eef1);}return _0x47eef1;}
@@ -14,7 +14,11 @@ export declare function getModuleSeatStatus(moduleKey: string): MarketSeatStatus
14
14
  export declare function listModuleSeatStatuses(): Record<string, MarketSeatStatus>;
15
15
  /** 超席则禁止使用(路由/钩子调用前检查) */
16
16
  export declare function isModuleSeatBlocked(moduleKey: string): boolean;
17
- export declare function assertModuleSeatActive(moduleKey: string): void;
17
+ /**
18
+ * 插件调用前校验席位;距上次同步超过约 5 分钟则先联网刷新,
19
+ * 以便市场端「卸载席位」能尽快生效。
20
+ */
21
+ export declare function assertModuleSeatActive(moduleKey: string): Promise<void>;
18
22
  /** UI:席位展示,unlimited → seats/used 为 null(前端显示 /) */
19
23
  export declare function formatSeatDisplay(st: MarketSeatStatus | null | undefined): {
20
24
  seatsLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vome-core",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "Vome framework — shared + Bun/Elysia server + Vue admin",
5
5
  "license": "MIT",
6
6
  "type": "module",