vome-core 0.0.3 → 0.0.4
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/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/src/admin/lib/menu.ts +5 -7
- package/src/admin/router/index.ts +13 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1ca2be=_0x3e5c;(function(_0x1aac54,_0x689d7b){const _0xc286e4=_0x3e5c,_0x8ffde9=_0x1aac54();while(!![]){try{const _0x195e96=parseInt(_0xc286e4(0x1c1))/0x1*(parseInt(_0xc286e4(0x18b))/0x2)+-parseInt(_0xc286e4(0x17d))/0x3*(parseInt(_0xc286e4(0x187))/0x4)+-parseInt(_0xc286e4(0x1a7))/0x5+-parseInt(_0xc286e4(0x1bc))/0x6*(-parseInt(_0xc286e4(0x1a9))/0x7)+parseInt(_0xc286e4(0x1ab))/0x8*(parseInt(_0xc286e4(0x1af))/0x9)+-parseInt(_0xc286e4(0x1a8))/0xa+parseInt(_0xc286e4(0x190))/0xb*(-parseInt(_0xc286e4(0x18f))/0xc);if(_0x195e96===_0x689d7b)break;else _0x8ffde9['push'](_0x8ffde9['shift']());}catch(_0x1042af){_0x8ffde9['push'](_0x8ffde9['shift']());}}}(_0x331e,0xc66fe));function p(_0x47a464,_0x54823e){const _0x4f9e56=_0x3e5c;let _0x5a7cb1={..._0x47a464};for(let _0x15547f of Object[_0x4f9e56(0x1b7)](_0x54823e)){let _0xc75da1=_0x5a7cb1[_0x15547f],_0x306ff7=_0x54823e[_0x15547f];if(_0xc75da1&&_0x306ff7&&typeof _0xc75da1===_0x4f9e56(0x17e)&&typeof _0x306ff7==='object'&&!Array[_0x4f9e56(0x1b4)](_0xc75da1)&&!Array[_0x4f9e56(0x1b4)](_0x306ff7)){_0x5a7cb1[_0x15547f]=p(_0xc75da1,_0x306ff7);continue;}_0x5a7cb1[_0x15547f]=_0x306ff7;}return _0x5a7cb1;}function m(_0x227bfa,_0x150055=_0x1ca2be(0x1bf)){const _0x3f3169=_0x1ca2be;let _0x4159fb=new Map();for(let _0x1ef314 of _0x227bfa){if(_0x1ef314['id']==null)continue;_0x4159fb['set'](_0x1ef314['id'],{..._0x1ef314,'children':[]});}let _0x5386ae=[];for(let _0x39b789 of _0x4159fb[_0x3f3169(0x19c)]()){let _0x4953b1=_0x39b789[_0x3f3169(0x18e)];if(_0x4953b1!=null&&_0x4953b1!==''&&_0x4159fb[_0x3f3169(0x1a2)](_0x4953b1))_0x4159fb[_0x3f3169(0x1b0)](_0x4953b1)[_0x3f3169(0x1b6)][_0x3f3169(0x1be)](_0x39b789);else _0x5386ae['push'](_0x39b789);}let _0x146b03=_0x21bc24=>{const _0x4bc8fd=_0x3f3169;_0x21bc24[_0x4bc8fd(0x193)]((_0x1e09bc,_0x219fd7)=>{const _0x2f1eb2=_0x4bc8fd;let _0x151b7e=_0x1e09bc[_0x2f1eb2(0x1a3)]??0x0,_0x7f04ec=_0x219fd7[_0x2f1eb2(0x1a3)]??0x0;return(_0x150055===_0x2f1eb2(0x1b9)?_0x7f04ec-_0x151b7e:_0x151b7e-_0x7f04ec)||Number(_0x1e09bc['id'])-Number(_0x219fd7['id']);});for(let _0x36fb2b of _0x21bc24)if(_0x36fb2b[_0x4bc8fd(0x1b6)]?.['length'])_0x146b03(_0x36fb2b['children']);};return _0x146b03(_0x5386ae),_0x5386ae;}function c(_0x18d052,_0x2f37af,_0x4ca1c6=0x0,_0x465675=[]){const _0x86e078=_0x1ca2be;for(let _0x1c3e03 of _0x18d052){let _0x1d41ed=_0x1c3e03['children']||[];if(_0x465675[_0x86e078(0x1be)]({..._0x1c3e03,'depth':_0x4ca1c6,'hasChildren':_0x1d41ed[_0x86e078(0x192)]>0x0}),_0x1d41ed[_0x86e078(0x192)]&&_0x2f37af[_0x86e078(0x1a2)](_0x1c3e03['id']))c(_0x1d41ed,_0x2f37af,_0x4ca1c6+0x1,_0x465675);}return _0x465675;}var u=/(?:Time|Date|At)$/,a=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:?\d{2})?$/;function _0x331e(){const _0x31c9b6=['Dg9tDhjPBMC','mtG3mdC4zwX5yvLw','C3vJy2vZCW','lI9KAxn0l2LUzgv4lMPZ','CgfYzw50swq','mZaYntiYngjWsNHqtW','mtfwr1vKuxe','zxjYB3i','BgvUz3rO','C29YDa','mI1KAwDPDa','pJ0WlJuUma','xJeZlJeUmW','DhLWAw5NCY9Hzg1PBG','lI9KAxn0l3nLCNzLCI9PBMrLEc5QCW','CM0GlxjMigrPC3qGjIyGyNvUigj1AwXKic4VC3jJl2LUzgv4lNrZic4VC3jJl3nLCNzLCI9PBMrLEc50CYaTlw91DgrPCIaUl2rPC3qGls10yxjNzxqGyNvUic0TzM9YBwf0igvZBsaTlwv4DgvYBMfSigvSExnPysaTlwv4DgvYBMfSihjLzMXLy3qTBwv0ywrHDgeGls1LEhrLCM5HBcbKCML6EMXLlw9YBsaTlwv4DgvYBMfSigrYAxP6BguTEM9Kic0TzxH0zxjUywWGqgvSExnPywPZl29Wzw5HCgKGls1LEhrLCM5HBcbayM9NzxLJAgfUl2vSExnPys1SB2DNzxiGls1LEhrLCM5HBcbWAw5Vic0TzxH0zxjUywWGCgLUBY1WCMv0DhKGjIyGDhnJic1WihrZy29UzMLNlMj1AwXKlMPZB24GjIyGChjPBNrMiciLC1XUiIaIzxHWB3j0icOGzNjVBsaNlI4VC3jJl2LUzgv4jYiGpIbKAxn0l2LUzgv4lMqUDhmGjIyGBwTKAxiGlxaGzgLZDc9Zzxj2zxiGjIyGChjPBNrMiciLC1XUiIaIzxHWB3j0icOGzNjVBsaNlI4VlI4VC3jJl3nLCNzLCI9PBMrLEcCIid4GzgLZDc9Zzxj2zxiVAw5KzxGUzc50CW','C3jJl3nOyxjLza','zM9YBwf0','DMfSDwvZ','C3jJl2fKBwLU','ChjVDg90ExbL','xJeWlJmUmq','u1vdq0vtuW','C3rYAw5N','AgfZ','B3jKzxjoDw0','pJ0YlJaUma','tuLu','DgvZDa','mtG5odGWv3f2zvnn','mtu1otG1mtbLugzQAvK','mtrXzNn5CLq','rgf0zvrPBwvgB3jTyxq','mJyZmJi1nNfowxvkEa','lI9ZCMmVywrTAw4VAw5KzxGUDhm','zw50CMLLCW','y2fSBa','mtHvt290zhG','z2v0','CM0GlxjMigrPC3qGjIyGyNvUigj1AwXKic4VC3jJl2LUzgv4lNrZic4VC3jJl3nLCNzLCI9PBMrLEc50CYaTlw91DgrPCIaUl2rPC3qGls10yxjNzxqGyNvUic0TzM9YBwf0igvZBsaTlw1PBMLMEsaTlwv4DgvYBMfSigvSExnPysaTlwv4DgvYBMfSihjLzMXLy3qTBwv0ywrHDgeGls1LEhrLCM5HBcbKCML6EMXLlw9YBsaTlwv4DgvYBMfSigrYAxP6BguTEM9Kic0TzxH0zxjUywWGqgvSExnPywPZl29Wzw5HCgKGls1LEhrLCM5HBcbayM9NzxLJAgfUl2vSExnPys1SB2DNzxiGls1LEhrLCM5HBcbWAw5Vic0TzxH0zxjUywWGCgLUBY1WCMv0DhKGjIyGDhnJic1WihrZy29UzMLNlMj1AwXKlMPZB24GjIyGChjPBNrMiciLC1XUiIaIzxHWB3j0icOGzNjVBsaNlI4VC3jJl2LUzgv4jYiGpIbKAxn0l2LUzgv4lMqUDhmGjIyGBwTKAxiGlxaGzgLZDc9Zzxj2zxiGjIyGChjPBNrMiciLC1XUiIaIzxHWB3j0icOGzNjVBsaNlI4VlI4VC3jJl3nLCNzLCI9PBMrLEcCIid4GzgLZDc9Zzxj2zxiVAw5KzxGUzc50CYaMjIbIDw4GC2nYAxb0CY9VyMz1C2nHDguUDhm','yNvUihj1BIbIDwLSza','mc4WlJq','AxnbCNjHEq','xJaUmI4Y','y2HPBgrYzw4','A2v5CW','Bgf0zxn0','zgvZyW','vM9TzsbMCMfTzxDVCMSG4OcuihnOyxjLzcaRiej1BI9fBhLZAweGC2vYDMvYicSGvNvLigfKBwLU','pJ0ZlJuUma','ndy0mJqZnfbssgj0rG','pJ0WlJiUma','ChvZAa','yxnJ','xJeUnc4Xnq','nwLxthjsAq','xJaUms4Xma','mZe1mZbdCujyBvq','B2jQzwn0','DM9Tzs1JB3jL','xJaUoc4Z','pJ0Xmc4WlJa','zgLZDa','lI9KAxn0l3nLCNzLCI9PBMrLEc5KlNrZ','rvjst1i','lI90ExbPBMDZl2fKBwLUlYO','xJuUnc43','nePsqK5otq','z2v0vgLTzq','lI9KAxn0l2LUzgv4lMqUDhm'];_0x331e=function(){return _0x31c9b6;};return _0x331e();}function z(_0x3c408b){const _0x509c2a=_0x1ca2be;let _0x27a71e=_0x3c408b instanceof Date?_0x3c408b:new Date(_0x3c408b);if(Number['isNaN'](_0x27a71e[_0x509c2a(0x188)]()))return String(_0x3c408b);return new Intl[(_0x509c2a(0x1aa))]('sv-SE',{'timeZone':'Asia/Shanghai','year':'numeric','month':_0x509c2a(0x194),'day':_0x509c2a(0x194),'hour':_0x509c2a(0x194),'minute':'2-digit','second':_0x509c2a(0x194),'hour12':!0x1})[_0x509c2a(0x19b)](_0x27a71e)['replace']('T','\x20');}function j(_0x16b2e6){const _0x1d9835=_0x1ca2be;return u[_0x1d9835(0x1a6)](_0x16b2e6);}function g(_0x21927e){return x(_0x21927e);}function x(_0x252410,_0x2dd07d){const _0x5403bc=_0x1ca2be;if(_0x252410==null)return _0x252410;if(_0x252410 instanceof Date)return z(_0x252410);if(typeof _0x252410===_0x5403bc(0x1a1)&&_0x2dd07d&&j(_0x2dd07d)&&a['test'](_0x252410))return z(_0x252410);if(Array[_0x5403bc(0x1b4)](_0x252410))return _0x252410['map'](_0x50d2c6=>x(_0x50d2c6));if(typeof _0x252410===_0x5403bc(0x17e)){if(Object[_0x5403bc(0x19e)][_0x5403bc(0x18a)][_0x5403bc(0x1ae)](_0x252410)!=='[object\x20Object]')return _0x252410;let _0x4e0838={};for(let [_0x2dfd8e,_0x27771a]of Object[_0x5403bc(0x1ad)](_0x252410))_0x4e0838[_0x2dfd8e]=x(_0x27771a,_0x2dfd8e);return _0x4e0838;}return _0x252410;}var d={'SUCCESS':0x3e8,'ERROR':0x3e9};class A{['ok'](_0x4b522a){const _0x4969c7=_0x1ca2be;let _0x1a0e9d=_0x4b522a===void 0x0?null:_0x4b522a;return{'code':d[_0x4969c7(0x1a0)],'message':_0x4969c7(0x18c),'data':_0x1a0e9d==null?_0x1a0e9d:g(_0x1a0e9d)};}['fail'](_0x1ddcf9=_0x1ca2be(0x191),_0x3e860d=d[_0x1ca2be(0x184)]){return{'code':_0x3e860d,'message':_0x1ddcf9};}}var b={'name':_0x1ca2be(0x17f),'version':_0x1ca2be(0x1b3),'description':_0x1ca2be(0x1ba),'license':_0x1ca2be(0x1a5),'type':'module','files':[_0x1ca2be(0x182),_0x1ca2be(0x19d),_0x1ca2be(0x19a),_0x1ca2be(0x197)],'main':'./dist/index.js','types':_0x1ca2be(0x189),'exports':{'.':{'types':_0x1ca2be(0x189),'import':_0x1ca2be(0x18d),'default':_0x1ca2be(0x18d)},'./server':{'types':_0x1ca2be(0x183),'import':_0x1ca2be(0x198),'default':'./dist/server/index.js'},'./admin':{'types':_0x1ca2be(0x1ac),'import':_0x1ca2be(0x1ac),'default':_0x1ca2be(0x1ac)},'./admin/*':'./src/admin/*','./admin/styles/base.css':'./src/admin/styles/base.css','./typings/*':_0x1ca2be(0x185)},'scripts':{'build':_0x1ca2be(0x199),'build:obfuscate':_0x1ca2be(0x1b1),'prepare':_0x1ca2be(0x1b2)},'peerDependencies':{'elysia':'>=1.0.0','reflect-metadata':_0x1ca2be(0x1bd),'drizzle-orm':'>=0.30.0','drizzle-zod':_0x1ca2be(0x195),'vue':_0x1ca2be(0x1bb),'vue-router':'>=4.0.0','pinia':_0x1ca2be(0x1a4),'vue-sonner':_0x1ca2be(0x1a4),'@vueuse/core':_0x1ca2be(0x181),'clsx':_0x1ca2be(0x1a4),'tailwind-merge':_0x1ca2be(0x1a4)},'peerDependenciesMeta':{'drizzle-orm':{'optional':!0x0},'drizzle-zod':{'optional':!0x0},'vue':{'optional':!0x0},'vue-router':{'optional':!0x0},'pinia':{'optional':!0x0},'vue-sonner':{'optional':!0x0},'@vueuse/core':{'optional':!0x0},'clsx':{'optional':!0x0},'tailwind-merge':{'optional':!0x0}},'devDependencies':{'bun-types':_0x1ca2be(0x1b8),'drizzle-orm':_0x1ca2be(0x1b8),'drizzle-zod':_0x1ca2be(0x180),'elysia':_0x1ca2be(0x1b8),'javascript-obfuscator':_0x1ca2be(0x186),'reflect-metadata':_0x1ca2be(0x1b5),'typescript':_0x1ca2be(0x1b8)},'dependencies':{'@bogeychan/elysia-logger':_0x1ca2be(0x17c),'@elysiajs/openapi':_0x1ca2be(0x1c0),'pino':_0x1ca2be(0x19f),'pino-pretty':_0x1ca2be(0x196)}},Z=b['version'];function _0x3e5c(_0x54e9e1,_0x1cb4a7){_0x54e9e1=_0x54e9e1-0x17c;const _0x331ed0=_0x331e();let _0x3e5c2a=_0x331ed0[_0x54e9e1];if(_0x3e5c['QVWNvv']===undefined){var _0xfd3978=function(_0x4140bc){const _0x1bef64='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47a464='',_0x54823e='';for(let _0x5a7cb1=0x0,_0x15547f,_0xc75da1,_0x306ff7=0x0;_0xc75da1=_0x4140bc['charAt'](_0x306ff7++);~_0xc75da1&&(_0x15547f=_0x5a7cb1%0x4?_0x15547f*0x40+_0xc75da1:_0xc75da1,_0x5a7cb1++%0x4)?_0x47a464+=String['fromCharCode'](0xff&_0x15547f>>(-0x2*_0x5a7cb1&0x6)):0x0){_0xc75da1=_0x1bef64['indexOf'](_0xc75da1);}for(let _0x227bfa=0x0,_0x150055=_0x47a464['length'];_0x227bfa<_0x150055;_0x227bfa++){_0x54823e+='%'+('00'+_0x47a464['charCodeAt'](_0x227bfa)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54823e);};_0x3e5c['eiisOM']=_0xfd3978,_0x3e5c['tNSEHT']={},_0x3e5c['QVWNvv']=!![];}const _0x5827ce=_0x331ed0[0x0],_0x4d1d1b=_0x54e9e1+_0x5827ce,_0x4bff08=_0x3e5c['tNSEHT'][_0x4d1d1b];return!_0x4bff08?(_0x3e5c2a=_0x3e5c['eiisOM'](_0x3e5c2a),_0x3e5c['tNSEHT'][_0x4d1d1b]=_0x3e5c2a):_0x3e5c2a=_0x4bff08,_0x3e5c2a;}export{Z as version,p as merge,c as flattenTree,m as deepTree,d as RES_CODE};
|
package/dist/server/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x7a147b=_0x576b;(function(_0x268871,_0x3c75d0){const _0x23bbae=_0x576b,_0x27ad89=_0x268871();while(!![]){try{const _0x445f80=parseInt(_0x23bbae(0x246))/0x1+parseInt(_0x23bbae(0x245))/0x2+-parseInt(_0x23bbae(0x1a0))/0x3*(parseInt(_0x23bbae(0x192))/0x4)+-parseInt(_0x23bbae(0x27c))/0x5+parseInt(_0x23bbae(0x276))/0x6*(parseInt(_0x23bbae(0x242))/0x7)+parseInt(_0x23bbae(0x299))/0x8*(parseInt(_0x23bbae(0x2a2))/0x9)+-parseInt(_0x23bbae(0x223))/0xa*(parseInt(_0x23bbae(0x2aa))/0xb);if(_0x445f80===_0x3c75d0)break;else _0x27ad89['push'](_0x27ad89['shift']());}catch(_0xa8a206){_0x27ad89['push'](_0x27ad89['shift']());}}}(_0x1517,0x84cf6));import{join as _0x2508dc}from'path';import{pathToFileURL as _0x2276d5}from'url';function P(){const _0x4ea1e1=_0x576b;return Bun['env'][_0x4ea1e1(0x1e3)]===_0x4ea1e1(0x2c9)?_0x4ea1e1(0x2c9):_0x4ea1e1(0x2b4);}function a0(_0x13e456,_0x4823b1){const _0x3ba056=_0x576b;let _0x12789f={..._0x13e456};for(let _0x2b46ed of Object['keys'](_0x4823b1)){let _0x15fb37=_0x12789f[_0x2b46ed],_0x257e32=_0x4823b1[_0x2b46ed];if(_0x15fb37&&_0x257e32&&typeof _0x15fb37===_0x3ba056(0x241)&&typeof _0x257e32===_0x3ba056(0x241)&&!Array['isArray'](_0x15fb37)&&!Array[_0x3ba056(0x2dc)](_0x257e32)){_0x12789f[_0x2b46ed]=a0(_0x15fb37,_0x257e32);continue;}_0x12789f[_0x2b46ed]=_0x257e32;}return _0x12789f;}async function V3(_0x541d08=_0x2508dc(process[_0x7a147b(0x1bc)](),_0x7a147b(0x1df))){const _0x4b02a3=_0x7a147b;let _0x511c9c=P()===_0x4b02a3(0x2c9)?'dev.ts':_0x4b02a3(0x179),_0x5da2da=await import(_0x2276d5(_0x2508dc(_0x541d08,_0x4b02a3(0x2ad)))[_0x4b02a3(0x1b9)]),_0x9f772e=await import(_0x2276d5(_0x2508dc(_0x541d08,_0x511c9c))[_0x4b02a3(0x1b9)]);return a0(_0x5da2da[_0x4b02a3(0x2ca)],_0x9f772e['default']);}var D=await V3();import{Elysia as _0x25c3d7}from'elysia';import{Elysia as _0x90472f}from'elysia';import{AsyncLocalStorage as _0x20ed3e}from'async_hooks';var C0=new _0x20ed3e(),W3=!0x1;function w1(_0x27f597){const _0x30184a=_0x7a147b;let _0x5b6fa1=_0x27f597[_0x30184a(0x2b1)][_0x30184a(0x133)]('x-forwarded-for');if(_0x5b6fa1){let _0x3580e1=_0x5b6fa1[_0x30184a(0x272)](',')[0x0]?.[_0x30184a(0x235)]();if(_0x3580e1)return _0x3580e1;}return _0x27f597[_0x30184a(0x2b1)][_0x30184a(0x133)](_0x30184a(0x240))?.['trim']()||_0x27f597['headers']['get'](_0x30184a(0x15e))?.[_0x30184a(0x235)]()||'';}function z3(_0x143708){const _0x5a171c=_0x7a147b;let _0x4f44e3=new URL(_0x143708[_0x5a171c(0x269)]),_0x3d9c6c=_0x143708[_0x5a171c(0x2b1)]['get'](_0x5a171c(0x140))?.[_0x5a171c(0x272)](',')[0x0]?.[_0x5a171c(0x235)](),_0x4d923d=_0x143708['headers']['get'](_0x5a171c(0x224))?.[_0x5a171c(0x235)]();return{'requestId':crypto[_0x5a171c(0x1e9)](),'method':_0x143708[_0x5a171c(0x265)],'path':_0x4f44e3[_0x5a171c(0x2e3)],'ip':w1(_0x143708),'host':_0x3d9c6c||_0x4d923d||_0x4f44e3[_0x5a171c(0x224)],'startTime':Date[_0x5a171c(0x151)]()};}function G3(_0x7bac88){const _0x1e9240=_0x7a147b;C0[_0x1e9240(0x1dc)](_0x7bac88);}function b1(){const _0xeec5b1=_0x7a147b;return C0[_0xeec5b1(0x13c)]();}function y1(_0x20c2b6){const _0x57ab45=_0x7a147b;let _0x5d3397=C0[_0x57ab45(0x13c)]();if(!_0x5d3397){if(P()===_0x57ab45(0x2c9)&&!W3)W3=!0x0,console[_0x57ab45(0x139)](_0x57ab45(0x233));return;}Object[_0x57ab45(0x1f3)](_0x5d3397,_0x20c2b6);}function g1(_0x5647f7,_0x566cda){return C0['run'](_0x5647f7,_0x566cda);}var _=Object['assign'](y1,{'get':b1,'run':g1});import'reflect-metadata';var I0=new Map();function f(_0x3e0c43){const _0x247e90=_0x7a147b;I0[_0x247e90(0x189)](_0x3e0c43[_0x247e90(0x1d8)],_0x3e0c43);}function e0(_0x19ff3a){const _0x34c0ac=_0x7a147b;return I0[_0x34c0ac(0x133)](_0x19ff3a);}function Z0(){const _0x49367d=_0x7a147b;let _0x1a706c=new Set(),_0x2e59c1=[];for(let _0x473281 of I0['values']()){if(_0x1a706c[_0x49367d(0x2e8)](_0x473281[_0x49367d(0x14a)]))continue;_0x1a706c[_0x49367d(0x15d)](_0x473281[_0x49367d(0x14a)]),_0x2e59c1[_0x49367d(0x1ab)](_0x473281);}return _0x2e59c1;}function QQ(_0x5727ea){const _0x53a074=_0x7a147b;if(typeof _0x5727ea===_0x53a074(0x191)||typeof _0x5727ea===_0x53a074(0x213))return String(_0x5727ea);return _0x5727ea[_0x53a074(0x11d)]||_0x53a074(0x260);}function c(_0x4ad3e9,_0x1c21d5){const _0x1c2a4a=_0x7a147b;let _0x37a094=Reflect['getMetadata']('vome:inject',_0x4ad3e9)??[];_0x37a094[_0x1c2a4a(0x1ab)](_0x1c21d5),Reflect[_0x1c2a4a(0x2c3)](_0x1c2a4a(0x1b1),_0x37a094,_0x4ad3e9);}function F3(_0x47e87a){const _0x5953c1=_0x7a147b;return Reflect[_0x5953c1(0x290)]('vome:inject',_0x47e87a)??[];}function j3(){const _0x59383f=_0x7a147b;I0[_0x59383f(0x196)]();}var p;(_0x29bf3e=>{const _0x36619f=_0x7a147b;_0x29bf3e[_0x36619f(0x1ec)]=_0x36619f(0x1a4),_0x29bf3e['Request']=_0x36619f(0x2d7),_0x29bf3e[_0x36619f(0x22a)]=_0x36619f(0x27e);})(p||={});var o=new Map(),R0=new Set(),H3=new WeakMap();function h1(_0x5ed565,_0x551d58){const _0x886bef=_0x7a147b;for(let _0x37dfff of F3(_0x551d58)){let {propertyKey:_0x1f46e8,token:_0x30783a,resolve:_0x3f05e5}=_0x37dfff;if(!_0x3f05e5&&_0x30783a==null)throw Error(_0x886bef(0x16f)+String(_0x1f46e8)+'\x20缺少\x20token\x20或\x20resolve');let _0x25eb9d=_0x3f05e5?_0x3f05e5():K[_0x886bef(0x133)](_0x30783a);_0x5ed565[_0x1f46e8]=_0x25eb9d;let _0x21897c=_0x5ed565[_0x886bef(0x25e)];if(_0x3f05e5&&typeof _0x21897c==='function')_0x21897c[_0x886bef(0x19b)](_0x5ed565,_0x25eb9d);}}function $Q(_0x33ff23){const _0x260019=_0x7a147b;if(R0[_0x260019(0x2e8)](_0x33ff23))throw Error(_0x260019(0x21f)+_0x33ff23[_0x260019(0x11d)]);R0[_0x260019(0x15d)](_0x33ff23);try{let _0x598f15=new _0x33ff23();return h1(_0x598f15,_0x33ff23),_0x598f15;}finally{R0[_0x260019(0x248)](_0x33ff23);}}function B3(_0xafcdf5){const _0x3f5ad3=_0x7a147b;let _0x113b4e=o['get'](_0xafcdf5);if(_0x113b4e)return _0x113b4e;let _0x39a150=$Q(_0xafcdf5);return o[_0x3f5ad3(0x189)](_0xafcdf5,_0x39a150),_0x39a150;}function u1(){const _0x48c2a9=_0x7a147b;let _0x792a3=_[_0x48c2a9(0x133)]();if(!_0x792a3)throw Error(_0x48c2a9(0x120));let _0x8aa7fd=H3['get'](_0x792a3);if(!_0x8aa7fd)_0x8aa7fd=new Map(),H3[_0x48c2a9(0x189)](_0x792a3,_0x8aa7fd);return _0x8aa7fd;}function m1(_0x112389){const _0x49dfd6=_0x7a147b;let _0x40608d=u1(),_0x1e243a=_0x40608d[_0x49dfd6(0x133)](_0x112389);if(_0x1e243a)return _0x1e243a;let _0x374a24=$Q(_0x112389);return _0x40608d[_0x49dfd6(0x189)](_0x112389,_0x374a24),_0x374a24;}function c1(_0x10001c,_0x57f788){const _0x42ec6f=_0x7a147b;switch(_0x57f788){case _0x42ec6f(0x1a4):return B3(_0x10001c);case _0x42ec6f(0x27e):return $Q(_0x10001c);case _0x42ec6f(0x2d7):return m1(_0x10001c);default:throw Error('[Ioc]\x20未知作用域:\x20'+_0x57f788);}}function p1(_0x402dab){const _0x5993b6=_0x7a147b;let _0x54ab3b=e0(_0x402dab);if(!_0x54ab3b)throw Error(_0x5993b6(0x1db)+QQ(_0x402dab));return _0x54ab3b;}function ZQ(){const _0x5df2ff=_0x7a147b;for(let {useClass:_0x57cde6,scope:_0xbbe6ec}of Z0())if(_0xbbe6ec==='singleton')B3(_0x57cde6);console[_0x5df2ff(0x28d)](_0x5df2ff(0x2a9)+o[_0x5df2ff(0x256)]+_0x5df2ff(0x142));}function d1(_0x2e4eb9){const _0x544eaf=_0x7a147b;let _0x478f01=p1(_0x2e4eb9);return c1(_0x478f01['useClass'],_0x478f01[_0x544eaf(0x169)]);}function n1(_0x412da6,_0x4d5a16){const _0x25d4ca=_0x7a147b;if(typeof _0x412da6==='function'){f({'token':_0x412da6,'useClass':_0x412da6,'scope':'singleton'}),o[_0x25d4ca(0x189)](_0x412da6,_0x4d5a16);return;}let _0xb7f4bb=_0x4d5a16?.['constructor'];if(!_0xb7f4bb||_0xb7f4bb===Object)throw Error(_0x25d4ca(0x244)+QQ(_0x412da6)+_0x25d4ca(0x16e));f({'token':_0x412da6,'useClass':_0xb7f4bb,'scope':'singleton'}),f({'token':_0xb7f4bb,'useClass':_0xb7f4bb,'scope':_0x25d4ca(0x1a4)}),o['set'](_0xb7f4bb,_0x4d5a16);}function JQ(){const _0x50708b=_0x7a147b;o[_0x50708b(0x196)](),R0[_0x50708b(0x196)](),j3();}var K={'get':d1,'set':n1};import'reflect-metadata';var M3=new Map();function L3(_0x1e451f){const _0x3f5355=_0x7a147b;M3[_0x3f5355(0x189)](_0x1e451f[_0x3f5355(0x1d8)],_0x1e451f);}function O(_0x31f0d4){const _0x491615=_0x7a147b;let _0x2a2370=[...M3['values']()];return _0x31f0d4?_0x2a2370[_0x491615(0x26f)](_0x26618a=>_0x26618a[_0x491615(0x262)]===_0x31f0d4):_0x2a2370;}var q0=_0x7a147b(0x175),S0=_0x7a147b(0x236),E0=_0x7a147b(0x288),P0=_0x7a147b(0x121),O0='vome:controller:route-ignore-perms';function Y3(_0x4c5de5,_0x170721,_0x3aca1a){const _0x1c36ac=_0x7a147b;let _0x4072d0=Reflect[_0x1c36ac(0x290)](q0,_0x4c5de5)??{},_0x1cb234=_0x4072d0[_0x170721]??[];_0x1cb234[_0x1c36ac(0x1ab)](_0x3aca1a),_0x4072d0[_0x170721]=_0x1cb234,Reflect['defineMetadata'](q0,_0x4072d0,_0x4c5de5);}function U3(_0x471b83,_0x3f45d8){const _0xdc5799=_0x7a147b;return Reflect[_0xdc5799(0x290)](q0,_0x471b83)?.[_0x3f45d8]??[];}function D3(_0x5d2086){Reflect['deleteMetadata'](q0,_0x5d2086);}function T3(_0xe5c8e5,_0x123ab9){const _0x235dea=_0x7a147b;let _0x5759f7=Reflect['getMetadata'](S0,_0xe5c8e5)??{};_0x5759f7[_0x123ab9]=!0x0,Reflect[_0x235dea(0x2c3)](S0,_0x5759f7,_0xe5c8e5);}function N3(_0x5e1065,_0xb9a69a){const _0x38e1a4=_0x7a147b;return!!Reflect[_0x38e1a4(0x290)](S0,_0x5e1065)?.[_0xb9a69a];}function A3(_0x5f4f64){const _0x2a902c=_0x7a147b;Reflect[_0x2a902c(0x2ac)](S0,_0x5f4f64);}function K3(_0x2a945a,_0x6f4561,_0x16d027){const _0xdd9586=_0x7a147b;let _0x226103=Reflect['getMetadata'](E0,_0x2a945a)??{};_0x226103[_0x6f4561]=[..._0x226103[_0x6f4561]??[],..._0x16d027],Reflect[_0xdd9586(0x2c3)](E0,_0x226103,_0x2a945a);}function _3(_0xfc57d6,_0x33f858){const _0x447331=_0x7a147b;return Reflect[_0x447331(0x290)](E0,_0xfc57d6)?.[_0x33f858]??[];}function C3(_0x29c5a8){const _0x1b0188=_0x7a147b;Reflect[_0x1b0188(0x2ac)](E0,_0x29c5a8);}function I3(_0x17758e,_0x27970e,_0xda96d7){const _0x1b4202=_0x7a147b;let _0x4fb546=Reflect[_0x1b4202(0x290)](P0,_0x17758e)??{};_0x4fb546[_0x27970e]=_0xda96d7,Reflect[_0x1b4202(0x2c3)](P0,_0x4fb546,_0x17758e);}function R3(_0x12f64b,_0x462939){return Reflect['getMetadata'](P0,_0x12f64b)?.[_0x462939];}function q3(_0x1a5dbc){Reflect['deleteMetadata'](P0,_0x1a5dbc);}function S3(_0x4ee1f6,_0xb4f627){const _0x11143a=_0x7a147b;let _0x213a69=Reflect[_0x11143a(0x290)](O0,_0x4ee1f6)??{};_0x213a69[_0xb4f627]=!0x0,Reflect[_0x11143a(0x2c3)](O0,_0x213a69,_0x4ee1f6);}function E3(_0x4a95ad,_0x6091b5){const _0xf58348=_0x7a147b;return!!Reflect[_0xf58348(0x290)](O0,_0x4a95ad)?.[_0x6091b5];}function P3(_0xba2a8a){Reflect['deleteMetadata'](O0,_0xba2a8a);}function x0(_0x3e704d){const _0x400687=_0x7a147b;let _0x31995a={};for(let _0x3ef9c8 of _0x3e704d){if(_0x3ef9c8[_0x400687(0x146)]==='body'&&_0x3ef9c8[_0x400687(0x194)]!==void 0x0)_0x31995a['body']=_0x3ef9c8[_0x400687(0x194)];if(_0x3ef9c8[_0x400687(0x146)]===_0x400687(0x263)&&_0x3ef9c8[_0x400687(0x194)]!==void 0x0)_0x31995a['query']=_0x3ef9c8['schema'];if(_0x3ef9c8[_0x400687(0x146)]==='params'&&_0x3ef9c8[_0x400687(0x194)]!==void 0x0)_0x31995a['params']=_0x3ef9c8[_0x400687(0x194)];}return Object[_0x400687(0x127)](_0x31995a)[_0x400687(0x215)]>0x0?_0x31995a:void 0x0;}function J0(_0x36e602,_0x12e92c){return _0x36e602+'.'+_0x12e92c;}function v0(_0x2488f0){if(_0x2488f0==='admin')return 0x0;if(_0x2488f0==='app')return 0x1;return 0x2;}function k0(_0x4649d8){const _0x1b4bc7=_0x7a147b;let _0x5584d4=_0x4649d8[_0x1b4bc7(0x12d)]('.');if(_0x5584d4<0x0)return{'module':_0x4649d8,'side':''};return{'module':_0x4649d8[_0x1b4bc7(0x137)](0x0,_0x5584d4),'side':_0x4649d8[_0x1b4bc7(0x137)](_0x5584d4+0x1)};}function O3(){const _0x5a92e7=_0x7a147b;let _0x592987=O(),_0x163778=new Map(),_0x4580aa=new Map();for(let _0x5b38cd of _0x592987){let _0x1beeef=J0(_0x5b38cd['module'],_0x5b38cd[_0x5a92e7(0x262)]);if(!_0x163778[_0x5a92e7(0x2e8)](_0x1beeef))_0x163778['set'](_0x1beeef,{'name':_0x1beeef,'description':_0x5b38cd[_0x5a92e7(0x130)]+'\x20'+_0x5b38cd[_0x5a92e7(0x262)],'x-displayName':_0x5b38cd[_0x5a92e7(0x262)]});let _0x34a9f4=_0x4580aa[_0x5a92e7(0x133)](_0x5b38cd[_0x5a92e7(0x130)]);if(!_0x34a9f4)_0x34a9f4=new Set(),_0x4580aa[_0x5a92e7(0x189)](_0x5b38cd[_0x5a92e7(0x130)],_0x34a9f4);_0x34a9f4[_0x5a92e7(0x15d)](_0x1beeef);}let _0x9a6ca4=[..._0x163778['values']()]['sort']((_0x30a703,_0x2e5999)=>{const _0x189c46=_0x5a92e7;let _0x23a606=k0(_0x30a703['name']),_0x57470c=k0(_0x2e5999[_0x189c46(0x11d)]);return _0x23a606[_0x189c46(0x130)][_0x189c46(0x154)](_0x57470c[_0x189c46(0x130)])||v0(_0x23a606['side'])-v0(_0x57470c[_0x189c46(0x262)]);}),_0x5124bd=[..._0x4580aa[_0x5a92e7(0x27d)]()][_0x5a92e7(0x287)](([_0x1d98e8],[_0x92a90b])=>_0x1d98e8[_0x5a92e7(0x154)](_0x92a90b))[_0x5a92e7(0x19a)](([_0xdc58ce,_0xeb8630])=>({'name':_0xdc58ce,'tags':[..._0xeb8630][_0x5a92e7(0x287)]((_0x3705a6,_0x544860)=>{const _0x389d73=_0x5a92e7;let _0x3aceb0=k0(_0x3705a6)[_0x389d73(0x262)],_0x28a6e1=k0(_0x544860)[_0x389d73(0x262)];return v0(_0x3aceb0)-v0(_0x28a6e1);})}));return{'tags':_0x9a6ca4,'tagGroups':_0x5124bd};}function w(_0x335060){if(!_0x335060)return'';return _0x335060['startsWith']('/')?_0x335060:'/'+_0x335060;}function b(..._0xd09ebd){const _0x14912a=_0x7a147b;let _0x27da66=_0xd09ebd['map'](_0x371a78=>w(_0x371a78)[_0x14912a(0x22c)](/^\/+|\/+$/g,''))[_0x14912a(0x26f)](Boolean);return _0x27da66[_0x14912a(0x215)]?'/'+_0x27da66[_0x14912a(0x17d)]('/'):'/';}function d(_0x4aeef3,_0x1b6b54){const _0x35c57c=_0x7a147b;let _0x3a479b=w(_0x1b6b54)[_0x35c57c(0x22c)](/\/$/,''),_0xddf6ae=w(_0x4aeef3);if(!_0x3a479b)return _0xddf6ae||'/';if(_0xddf6ae===_0x3a479b)return'/';if(_0xddf6ae[_0x35c57c(0x24f)](_0x3a479b+'/'))return _0xddf6ae[_0x35c57c(0x137)](_0x3a479b[_0x35c57c(0x215)])||'/';return(_0x4aeef3[_0x35c57c(0x24f)]('/')?_0x4aeef3:'/'+_0x4aeef3)||'/';}function XQ(_0x5720e4,_0x39a2e7,_0xd1bad5){const _0xaa9cac=_0x7a147b;let _0x1b29e7=_0x39a2e7[_0xaa9cac(0x22c)](/^\//,'')[_0xaa9cac(0x22c)](/\/+/g,':');if(_0x1b29e7===_0x5720e4)_0x1b29e7=_0x5720e4;else{if(_0x1b29e7['startsWith'](_0x5720e4+':'))_0x1b29e7=_0x1b29e7[_0xaa9cac(0x137)](_0x5720e4[_0xaa9cac(0x215)]+0x1);}let _0x480d1a=_0x5720e4+'-';if(_0x1b29e7[_0xaa9cac(0x24f)](_0x480d1a))_0x1b29e7=_0x1b29e7[_0xaa9cac(0x137)](_0x480d1a[_0xaa9cac(0x215)]);if(_0x1b29e7=_0x1b29e7[_0xaa9cac(0x22c)](/-/g,':'),!_0x1b29e7)_0x1b29e7=_0x5720e4;return _0x5720e4+':'+_0x1b29e7+':'+_0xd1bad5;}function VQ(_0x363791){const _0x48d284=_0x7a147b;let _0x495509=_0x363791[_0x48d284(0x22c)](/^\/+|\/+$/g,'');if(!_0x495509)return'index';let _0x570315=_0x495509[_0x48d284(0x272)]('/');return _0x570315[_0x570315[_0x48d284(0x215)]-0x1]||'index';}function r(_0x51edbb,_0x15919b,_0x1d6521){const _0x475ac5=_0x7a147b;if(_0x15919b['side']!==_0x475ac5(0x14e)||_0x51edbb[_0x475ac5(0x187)]||_0x51edbb['ignorePerms'])return;if(_0x51edbb[_0x475ac5(0x29b)]?.['length'])return _0x51edbb['perms'];let _0x3c50b2=_0x1d6521??VQ(d(_0x51edbb['path']??'/',_0x15919b[_0x475ac5(0x294)]));return[XQ(_0x15919b[_0x475ac5(0x130)],_0x15919b[_0x475ac5(0x294)],_0x3c50b2)];}var WQ;function f0(_0xe862a9){WQ=_0xe862a9;}var i1={'admin':_0x7a147b(0x184),'app':_0x7a147b(0x1f5)},x3=_0x7a147b(0x1cd),s1=_0x7a147b(0x229),o1={'GET':_0x7a147b(0x133),'POST':'post','PUT':'put','DELETE':_0x7a147b(0x248),'PATCH':_0x7a147b(0x2c1)};function r1(_0x11e53a){return w(i1[_0x11e53a]);}function a1(_0x2b3afb){const _0x1466a2=_0x7a147b;if(_0x2b3afb['params']?.[_0x1466a2(0x215)])return x0(_0x2b3afb['params']);let _0x560147={};if(_0x2b3afb[_0x1466a2(0x27b)]!==void 0x0)_0x560147['body']=_0x2b3afb[_0x1466a2(0x27b)];if(_0x2b3afb[_0x1466a2(0x263)]!==void 0x0)_0x560147[_0x1466a2(0x263)]=_0x2b3afb[_0x1466a2(0x263)];if(_0x2b3afb[_0x1466a2(0x136)]!==void 0x0)_0x560147[_0x1466a2(0x1f9)]=_0x2b3afb[_0x1466a2(0x136)];return Object[_0x1466a2(0x127)](_0x560147)['length']>0x0?_0x560147:void 0x0;}function t1(_0x46dfd5,_0x5109a1,_0x1b8fa4){const _0x22b813=_0x7a147b;let _0x3a6f5e=new Set();for(let _0x5a7daf of _0x46dfd5){if(_0x3a6f5e['has'](_0x5a7daf[_0x22b813(0x146)])){let _0x4faf43=_0x5a7daf[_0x22b813(0x146)]==='body'?_0x22b813(0x238):_0x5a7daf[_0x22b813(0x146)]==='query'?'Query':_0x22b813(0x222);throw Error(_0x22b813(0x20f)+_0x1b8fa4+'.'+_0x5109a1+_0x22b813(0x18f)+_0x4faf43);}_0x3a6f5e[_0x22b813(0x15d)](_0x5a7daf[_0x22b813(0x146)]);}}function e1(_0x5db007,_0x1feb76,_0x2ee8f7){const _0x31c5d6=_0x7a147b;let _0x5ce9eb=_0x5db007[_0x1feb76]['bind'](_0x5db007);if(!_0x2ee8f7?.[_0x31c5d6(0x215)])return _0x5ce9eb;let _0x12edad=[..._0x2ee8f7][_0x31c5d6(0x287)]((_0x25e6a7,_0x2b7839)=>_0x25e6a7['index']-_0x2b7839[_0x31c5d6(0x281)]);return _0x476172=>{let _0x526b5c=_0x12edad['map'](_0x4f0819=>{const _0x5c0e2b=_0x576b;if(_0x4f0819[_0x5c0e2b(0x146)]===_0x5c0e2b(0x27b))return _0x476172[_0x5c0e2b(0x27b)];if(_0x4f0819[_0x5c0e2b(0x146)]===_0x5c0e2b(0x263))return _0x476172['query'];if(_0x4f0819['source']===_0x5c0e2b(0x1f9))return _0x476172['params'];throw Error(_0x5c0e2b(0x1e6)+_0x4f0819['source']);});return _0x5ce9eb(..._0x526b5c,_0x476172);};}function v3(_0x5c1203){return _0x5d16f1=>{const _0xf43cd7=_0x576b;let _0x4f2985=_0x5d16f1[_0xf43cd7(0x219)],_0x11ba0f=_[_0xf43cd7(0x133)]();if(_0x11ba0f?.[_0xf43cd7(0x13b)])return;let _0x5630ea=_0x11ba0f?.[_0xf43cd7(0x29b)]??[];if(_0x5c1203['some'](_0x30dd55=>_0x5630ea[_0xf43cd7(0x17e)](_0x30dd55)))return;return _0x4f2985(0x193);};}function k3(_0x4ce87b,_0x581f69){const _0xb259b0=_0x7a147b;let _0x58ba00=_0x4ce87b[_0xb259b0(0x22c)](/^\/+|\/+$/g,'')[_0xb259b0(0x272)]('/')['pop']()||_0x4ce87b;return _0x581f69?_0x58ba00+'\x20'+_0x581f69:_0x58ba00;}function Q4(_0xe026f3,_0x30fcda){const _0x119ad4=_0x7a147b;let _0x10f98c={...a1(_0xe026f3)??{},'detail':{'tags':[J0(_0x30fcda[_0x119ad4(0x130)],_0x30fcda[_0x119ad4(0x262)])],'summary':k3(_0xe026f3['handler'],_0xe026f3[_0x119ad4(0x1f7)])}};if(_0x30fcda[_0x119ad4(0x262)]==='admin'&&!_0xe026f3[_0x119ad4(0x187)])_0x10f98c[x3]=!0x0;if(_0x30fcda['side']===_0x119ad4(0x230)&&!_0xe026f3[_0x119ad4(0x187)])_0x10f98c[s1]=!0x0;let _0x12a5d8=[],_0x521919=r(_0xe026f3,_0x30fcda);if(_0x521919?.[_0x119ad4(0x215)])_0x12a5d8[_0x119ad4(0x1ab)](v3(_0x521919));if(_0xe026f3[_0x119ad4(0x1aa)]?.['length'])_0x12a5d8[_0x119ad4(0x1ab)](..._0xe026f3[_0x119ad4(0x1aa)]);if(_0x12a5d8[_0x119ad4(0x215)])_0x10f98c[_0x119ad4(0x155)]=_0x12a5d8;return _0x10f98c;}function $4(_0x582cca){const _0xfd1920=_0x7a147b;if(_0x582cca==null)return{};if(typeof _0x582cca===_0xfd1920(0x19c))return{'public':_0x582cca};return _0x582cca;}function Z4(_0x34f1c9,_0x136694){const _0x319933=_0x7a147b;let _0x4478fb=r1(_0x34f1c9[_0x319933(0x262)]),_0x24e98f=b(_0x4478fb,_0x34f1c9[_0x319933(0x294)]),_0x32fbba=K[_0x319933(0x133)](_0x34f1c9['token']),_0x339d22=new _0x90472f({'prefix':_0x24e98f,'name':_0x34f1c9['token']['name'],'tags':[J0(_0x34f1c9[_0x319933(0x130)],_0x34f1c9['side'])]});for(let _0xe4407a of _0x34f1c9[_0x319933(0x1aa)]??[])_0x339d22=_0x339d22[_0x319933(0x23d)](_0xe4407a);let _0x1ff3ee=[];for(let _0x30b09d of _0x34f1c9['routes']){if(typeof _0x32fbba[_0x30b09d[_0x319933(0x177)]]!=='function')throw Error('[Router]\x20'+_0x34f1c9[_0x319933(0x1d8)][_0x319933(0x11d)]+'.'+_0x30b09d['handler']+_0x319933(0x2c5));t1(_0x30b09d[_0x319933(0x1f9)]??[],_0x30b09d[_0x319933(0x177)],_0x34f1c9[_0x319933(0x1d8)][_0x319933(0x11d)]);let _0x192e53=e1(_0x32fbba,_0x30b09d[_0x319933(0x177)],_0x30b09d['params']),_0x56953e=d(_0x30b09d[_0x319933(0x185)],_0x34f1c9[_0x319933(0x294)]),_0x5adbd1=Q4(_0x30b09d,_0x34f1c9),_0x25217c=o1[_0x30b09d['method']];_0x339d22=_0x339d22[_0x25217c](_0x56953e,_0x192e53,_0x5adbd1);}if(_0x34f1c9[_0x319933(0x150)]?.[_0x319933(0x231)]?.[_0x319933(0x215)]||_0x34f1c9[_0x319933(0x150)]?.[_0x319933(0x2ce)]?.[_0x319933(0x215)]){if(!WQ)throw Error(_0x319933(0x20f)+_0x34f1c9[_0x319933(0x1d8)][_0x319933(0x11d)]+_0x319933(0x20a));_0x339d22=WQ(_0x339d22,_0x34f1c9,{'controller':_0x32fbba,'routeOptions':_0x46a51c=>{const _0x35d92a=_0x319933;let {public:_0x58e6f3,action:_0x226b9e,summary:_0x5951e0}=$4(_0x46a51c),_0x3a4e3a={'detail':{'tags':[J0(_0x34f1c9['module'],_0x34f1c9['side'])],'summary':k3(_0x226b9e??_0x35d92a(0x2da),_0x5951e0)}};if(_0x34f1c9[_0x35d92a(0x262)]===_0x35d92a(0x14e)&&!_0x58e6f3){if(_0x3a4e3a[x3]=!0x0,_0x226b9e){let _0xcf1ede=XQ(_0x34f1c9['module'],_0x34f1c9[_0x35d92a(0x294)],_0x226b9e);_0x3a4e3a[_0x35d92a(0x155)]=[v3([_0xcf1ede])];}}return _0x3a4e3a;}});for(let _0x37711e of _0x34f1c9[_0x319933(0x150)]?.[_0x319933(0x231)]??[]){let _0x36204e=_0x37711e==='info'?_0x319933(0x2e9):'POST';_0x1ff3ee['push']({'method':_0x36204e,'path':b(_0x34f1c9[_0x319933(0x294)],_0x37711e),'handler':_0x37711e,'autoCrud':!0x0});}for(let _0x497862 of _0x34f1c9[_0x319933(0x150)]?.['serviceApis']??[])_0x1ff3ee[_0x319933(0x1ab)]({'method':_0x319933(0x2af),'path':b(_0x34f1c9['prefix'],_0x497862),'handler':_0x497862,'autoCrud':!0x0});}return{'plugin':_0x339d22,'pluginPrefix':_0x24e98f,'autoRoutes':_0x1ff3ee};}function f3(_0x5725f6,_0x330877){const _0x3b393a=_0x7a147b;let _0x2bf2ef=_0x5725f6,_0x575432=0x0,_0x1ab861=[];for(let _0x3f2ced of O()){let {plugin:_0x454296,pluginPrefix:_0xc45325,autoRoutes:_0x3a2d5d}=Z4(_0x3f2ced,_0x330877);_0x2bf2ef=_0x2bf2ef[_0x3b393a(0x205)](_0x454296);for(let _0x41b9cd of[..._0x3f2ced[_0x3b393a(0x27f)],..._0x3a2d5d]){_0x575432+=0x1;let _0x4c1e9d=d(_0x41b9cd[_0x3b393a(0x185)],_0x3f2ced[_0x3b393a(0x294)]),_0x5aecd8=_0x4c1e9d==='/'?_0xc45325:b(_0xc45325,_0x4c1e9d[_0x3b393a(0x22c)](/^\//,'')),_0x3f1908=_0x41b9cd['public']?_0x3b393a(0x161):_0x41b9cd[_0x3b393a(0x1a7)]?'\x20(crud)':'';_0x1ab861[_0x3b393a(0x1ab)](_0x41b9cd[_0x3b393a(0x265)]+'\x20'+_0x5aecd8+_0x3f1908);}}if(_0x575432>0x0){console[_0x3b393a(0x28d)]('[Router]\x20registered\x20←\x20'+_0x575432+_0x3b393a(0x1fc));for(let _0x3e83a7 of _0x1ab861)console[_0x3b393a(0x28d)]('\x20\x20'+_0x3e83a7);}return _0x2bf2ef;}function _0x1517(){const _0x32e4fd=['w1jVDxrLCL0G5PYQ55+L5y+c5PwW5P2L5RQqoIa','B25Jzq','DxbKyxrL','CMfUzg9Tvvvjra','CMvZDg9Yzq','y29TBwvUDa','u2LUz2XLDg9U','B25SEvrYyxnOzwq','8j+tMIbbueNMLOFMOAm6ia','BNvTyMvY','zgf0yvr5Cgu','6lEV55sX5lIn5A2y5zYO','pJ00lJaUma','yxnZAwDU','Bw9Kzq','l2fWCa','BwLJCM9bChbZ','C3vTBwfYEq','57Y65Bcrig1VzhvSzs5QC29UoIa','CgfYyw1Z','C3rKB3v0','pJ0Xmc4WlJa','ihjVDxrLkhmP','vKfmsurbveLptG','5QIH5z2x5PYQ5A6j6kof5OIw5PYQ5yQG6l29','xJaUoc4Z','zNvUy3rPB24','C3rHDhvZq29Kzq','BgLZDa','pJ0WlJuUma','kIOVBw9KDwXLCY8Ql2nVBNrYB2XSzxiVyxbWlYOQlYOUDhm','DxnL','C2nHBG','DMfYigHHBMrSzxjZid0GEW','zM9UDc93B2zMmG','yxbWBgLJyxrPB24VANnVBG','ioMfJEE9RUs6HIbHCgKVC2vYDMLJzufWAxpVViZKVyBMNkRMIB7LIlaGq1jvrcdLRP7NJRdVViHaDM9Tzs1JB3jLigf0DgfJAenYDwrsB3v0zxmG5PYQ5OYc6l2977Yj','A2v5','khSGqMfZzvbSDwDPBIb9kq','5yIG6zMK5PE26zE0','mI1KAwDPDa','w1jVDxrLCL0G','C2v0rw50Axr5','Dg9mB3DLCKnHC2u','Aw5PDa','C3LTyM9S','l2XPC3q','BgvUz3rO','w0fWCf0G5BEY5zcV5yQO77Ym6k+35ywiiefWCc5ZDg9WkcKG5yAnihn0yxj0','6z2E5Rov5QIH5z2xigTLEtOG','DgvUyw50','C3rHDhvZ','C3jJl2XPyI9KyI9PBMrLEc50CW','z2v0uMvWBW','DMfSDwvZ','cUkwIokwIokvLYaGiokwIokwIokvLYaGiokwIokwIokwIokwIokwIokwIokvLYaGiokwIokwIokwIokvLYaGiokwIokwIokwIokvLYaG4PAi4PAi4PAi4PAi4PAi4PAi4PAi4PwxcUkwIokwIokvKsaGiokwIokwIokvKsaG4PAi4PAi4Pwu4Pwq4Pwq4Pwq4PAi4PAi4PwxicdILOJILOJILOJILOJILzCG4PAi4PAi4PAi4PAi4PwricdILOJILOJILztILzdILzdILzdILzdILz0k4PAi4PAi4PwricaG4PAi4PAi4PwricdILOJILOJILzeGicdILOJILOJILzeGiokwIokwIokvLokwIokwIokwIokwIokvLokwIokwIokvKsaG4PAi4PAi4PAi4PAi4PAi4PwxcIdILOJILOJILzCG4PAi4PAi4Pwu4PwDicdILOJILOJILzeGicdILOJILOJILzeGiokwIokwIokvKEkvMUkwIokwIokvLokvNEkwIokwIokvKsaG4PAi4PAi4Pwu4Pwq4Pwq4PwDcIaG4PwA4PAi4PAi4PAi4Pwu4PwDicaG4PwA4PAi4PAi4PAi4PAi4PAi4PAi4Pwu4PwDicdILOJILOJILzeG4PwA4Pwq4PwDiokwIokwIokvKsaG4PAi4PAi4PAi4PAi4PAi4PAi4PAi4PwxcIaGiokvMUkvKokvKokvNsaGicaG4PwA4Pwq4Pwq4Pwq4Pwq4Pwq4PwDicaG4PwA4Pwq4PwDicaGicdILzRILzdILz0GiokvMUkvKokvKokvKokvKokvKokvKokvNqO','y29UDgvUDa','w0LVy10G5Qoa5Rwl5yIW5B6Q546V5l6D6lwwoIa','DxbKyxrLvgLTzq','Bw9KAwz5qMvMB3jL','ugfYyw0','mtbXDwDhBeS','Ag9ZDa','CMvXDwvZDeXVzW','BwLU','B2zMC2v0','zMLLBgrmAwTL','yxv0Aa','uhjVDg90ExbL','AwrZ','CMvWBgfJzq','y29UDhjVBgXLCG','C3rHCNq','BgLTAxq','yxbW','yxbP','zgf0yq','w0nVBNrLEhrDiow9K+wjJEAxOoIVT+AXGUs4IUs4I+AwH++8JowgMEwfPEIIQ+w/VEEvPE+8IoIVT+EHRUIUPcbHC3LUy0nVBNrLEhrnyw5Hz2vYiow3SUwqR+EuQo+8Iq','zg9JDw1LBNrHDgLVBG','DhjPBq','DM9TztPJB250CM9SBgvYoNjVDxrLlxb1yMXPyW','lI9KAxn0l3nLCNzLCI9PBMrLEc5QCW','qM9KEq','ywnJzxnZlwnVBNrYB2WTywXSB3CTB3jPz2LU','C2vSzwn0','DxbZzxj0','w1jLCg9ZAxrVCNLDioIHQoAxOcbKzwXLDgvKqxtVViZML6dMS5xMGAlLPi0','B25czwzVCMviyw5KBgu','Bw9KDwXLCW','w0HVC3rDihnJyw4G4OAqia','Ec1YzwfSlwLW','B2jQzwn0','mta1y3zsDgDm','w2nVBhvTBKnVBw1LBNrZxsdPNz7MS5xMOiFOR4BNRky6ia','w0LVy10Gsw9JlNnLDcG','mtu4nZG1ne1vwfnfuW','nti3ntGZrM1fwfHY','B25fCNjVCG','zgvSzxrL','CgfYC2vjBNnLCNq','DMfSDwu','CgfNzvf1zxj5t3a','5QIH5z2x5PYQ5yQG6l29','Cg9YDa','zMLLBgrfCq','C3rHCNrZv2L0Aa','u0Lhsu5u','Bw9KDwXLr2f0zxDHEq','yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT','A2v5v29Yza','zxHWB3j0CW','kIOVBw9KDwXLCY8Ql3nLCNzPy2uVkIOVkI50CW','C2L6zq','AgfZrw50Axr5','Dgv4Dc9JC3m7ignOyxjZzxq9DxrMltG','w29IAMvJDcbpyMPLy3rD','yxnJ','Bgf5B3v0','BwvZC2fNzq','CMvXDwLYzuvUDgL0Eq','yMLUzevUDgL0Eq','C3jJl3nOyxjLza','kgfUB255Bw91CYK','igzHAwXLza','C2LKzq','CxvLCNK','y2XPzw50','Bwv0Ag9K','5yIx6kgO5P+L6k+I','A2v5v29YzeXPA2vgAwvSzhm','w1f1zxj5t3bDioIHQoAxOowTL+AUTtOG','DxjS','y2HHCKf0','zhjPENPSzq','u0Lhvevstq','Ahr0CdOVl2XVy2fSAg9ZDdO','y2fJAguTy29UDhjVBa','zMLSDgvY','xJaUms4Xma','CMvXDwLYzq','C3bSAxq','lM1HCa','yxn5BMndB250zxH0twfUywDLCG','ieLticC','mJC1mtmWy2XdqNHi','B3bLBMfWAq','y2fJAgu','Aw1Hz2uVANbLzW','ChjPBwfYEuTLEq','yM9KEq','mJa5mZm1mhnfyML3vG','zw50CMLLCW','ChjVDg90ExbL','CM91DgvZ','C2nHBgfY','Aw5KzxG','Bg9Hza','rgf0zvrPBwvgB3jTyxq','z2v0tw9UDgG','kIOVBw9KDwXLCY8Ql2nVBNrYB2XSzxiVywrTAw4VkIOVkI50CW','Bg9Nz2LUzW','C29YDa','DM9TztPJB250CM9SBgvYoNjVDxrLlw1PzgrSzxDHCMu','BwfUAwzLC3q','CMvZB2X2zuLKv2HLCMu','Bwf4','zM9UDc93B2zM','Bg9N','D2vIqxv0Aa','yxbWBgLJyxrPB24VANnVBJSGy2HHCNnLDd11DgyToa','z2v0twv0ywrHDge','B3bLCMf0Aw9UvgL0BgvtB3vYy2u','BwLZC2LUzYbLEhbVCNqGAgfUzgXLCNm','Aw5Zzxj0','ChjLzML4','Aw5Zzxj0ugfYyw0','Bw9KDwXLlwDHDgv3yxK','Aw1Hz2uVC3zNk3HTBa','C3vWCg9YDhntB2z0rgvSzxrL','ndi2nJrXsNHqA0O','w0jHC2vtzxj2AwnLxsdMNkRNU5hLRPRLRP7KVzpVViZOR7FKVB/NLkGGqeLUAMvJDfjLCg9ZAxrVCNKG5OIwihnLDevUDgL0Eq','CgvYBxm','C2vYDMvY','lI9ZCMmVywrTAw4VAw5KzxGUDhm','xJeUnc4Xnq','D2vI','DgvZDa','l2fKBwLUl2v4Dc86A2v5lYO','mtaZnvHnzvLgAG','CMvXDwvZDfbHCMfT','y29SDw1U','Cg9ZDa','Aw5KzxGUANm','ioIHQoAxOcbPzcdLIjC','y3jLyxrL','w0LVy10GyM9VDhn0CMfWiokgKca','otaZoda1mvzys3j0ua','lMnZCW','zgvSzxrLtwv0ywrHDge','zgvMyxvSDc50CW','B2zM','ue9tva','Dg9vChbLCKnHC2u','AgvHzgvYCW','Dgv4Dc9ODg1SoYbJAgfYC2v0pxv0zI04','w1jLCg9ZAxrVCNLDioIHQoAxOcbPzcdLIjFVViZOR7FMLlNNLkGGzMLUzcH3AgvYzsKGlYbMAw5Kt25LkhDOzxjLkq','ChjVza','lNDVzMy','5y2v5lIQ5l+H5OgV','CgX1z2LU','revmrvrf','zgf0yvnJB3bLrgvWDeLKCW','zgvZAwDUoNr5Cgu','q29TBuv4y2vWDgLVBG','C2nVCgvK','BgvMDePVAw4','ywrKt3jKzxjcEq','BM9Uzq','C3jJl2XPyI90yxnRl2LUzgv4lNrZ','Cgf0y2G','Bwf4rgf5CW','zgvMAw5Ltwv0ywrHDge','z2v0u1fm','ios4JEAyR+ACIEAvIcbOyw5KBgvY','sw52ywXPzcbHChaGA2v5','kqOGia','w0HVC3rDignYDwqG4OAqieb2B21LlwnVCMuVB3jT','zgv2','zgvMyxvSDa','8j+tOsdMNi3LIQhLNldLNya6ia','zMLUze9Uzq','CgfKu3rHCNq','C2vYDMLJzufWAxm','u1vdq0vtuW','rvjst1i','zgvWyxj0BwvUDeLK','zxH0zw5K','ios4JEAyR+ACIEAvIoAwUEAZLq','lNzVBwu','CgX1z2LUu2vYDMLJzq','yM9VDhn0CMfW','CMvXDwvZDa','zMLUzej5swq','w0HVC3rDihnRAxaG4OAqig1PC3nPBMCG','ywn0Aw9U','DxrMoa','AxnbCNjHEq','DM9Tzq','zgvIDwC','DgfIBgvFBMfTzq','lMH0BwW','zgLZDa','zMLSzq','Cgf0Ag5HBwu','Dw5ZywzL','y29SDw1UvhLWzq','w1jLCg9ZAxrVCNLDioAjUEMhJ+ABToAwSoAVJ+ADOEMCGow4PIbPza','xJaUmI4Y','AgfZ','r0vu','DxbKyxrLqNLsB3DZ','BMfTzq','Bwq1','Bgf0zxn0','w0LVy10GuMvXDwvZDcdKVzZNLkJLN5/POBVLNkJOR7FMSylKUiRKUiVMLOFKUk3OP6pMNPdVViJOR7FNOA7ORQqGyxn5BMndB250zxH0twfUywDLCI5LBMfIBgxVViK','DM9TztPJB250CM9SBgvYoNjVDxrLlxbLCM1Z','x19ZA2LWvgvUyw50','yxbWBgLJyxrPB24VAMf2yxnJCMLWDdSGy2HHCNnLDd11DgyToa','xJuUnc43','iowJSoAyJUs6HIbYB3v0zxmG5l2g57Y65BcrihnLCNzLCI9PBMrLEc5QCW','zMfPBa','A2v5CW','zxjYB3i','lI90ExbPBMDZl2fKBwLUlYO','CMv0DxjUAw5N','6z2E5Rov5QIH5z2xigTLEq','DMvYC2LVBG','BgfZDeLUzgv4t2y','zxHPDa','pJ0YlJaUma','Bw9KDwXL','Cg9W','pJ0XlJaUma','z2v0','y29Kzq','DMfYigHHBMrSzxjZid0','CM91DgvqyxjHBxm','C2XPy2u','w0nVBNrYB2XSzxjDiea','D2fYBG','lI9ZCMmVywrTAw4VC3r5BgvZl2jHC2uUy3nZ','AxntDxbLCG','z2v0u3rVCMu','lMPWzW','zgvZy3jPChrPB24','w0LVy10GqeLUAMvJDcdML6dMS5xMJQJMLQ0G','Ec1MB3j3yxjKzwqTAg9ZDa','z2v0vgLTzq','ihnPBMDSzxrVBIHZkq','Aw1Hz2uVCg5N','5QIH5z2xia','Aw50BW','C291CMnL','zMLLBgrbCNjHEq','z2v0rNvSBfLLyxi','qNvU','DxnLq2XHC3m','zw50Axr5','Ahr0CdOVl2XVy2fS','C3jJl2fKBwLU','ywrTAw4','ufvu','y3j1za','BM93','C2vYDMLJzq','zMLUza','Bg9JywXLq29TCgfYzq','yMvMB3jLsgfUzgXL','lMXVzW','Bw9KDwXLlMPZB24','B3jKzxi','qMfZzvbSDwDPBG','zgLZCgf0y2G','CgLKlgHVC3rUyw1L','zM9Yy2vezwXLDgu','ywrK','y2yTy29UBMvJDgLUzY1PCa','qxnPys9tAgfUz2HHAq','AxneAxjLy3rVCNK','icHWDwjSAwmP','8j+mJsdOV5dOOyZNJQ/LOOm6ia','C2f2zq','B3jKzxjcEq','BM90tNvSBa','AxngAw5PDgu','zgLY','y2XVC2u','C2nVCgu','Aw5KzxGUAhrTBa','C3rVCa','Dw5RBM93BG','lw1Hy3jV','ksdPNidOPOeGy2XHC3mG5A6E5l6l77Ym5lUL5l6/56gU5A6AihvZzunSyxnZ','w0LVy10G','C3fS','cMLMicH0ExbLB2yGAgfUzgXLCNmGpt09icD1BMrLzMLUzwqNksbYzxr1CM4GBNvSBdSkCMv0DxjUigHHBMrSzxjZoW','w1jLCg9ZAxrVCNLDioIHQoAxOcbKzwXLDgvKqxtVViZML6dMS5xOVA/LIkdPMAq','C3jJl2XPyI9WBhvNAw4VAw5KzxGUDhm','vgfZAW','DM9TztPJB250CM9SBgvYoNjVDxrLlxbHCMfTCW','C3vJy2vZCW','AgfUzgXLCG','w1bSDwDPBL0G5yQG6l295AsX6lsLoIa','ChjVzc50CW','l3zVBwuVyxbWCW','Aw5MBW','ChjVCgvYDhLoyw1L','AM9PBG','Aw5JBhvKzxm','C3jJl2XPyI9JywnOzs9PBMrLEc50CW','BgLZDcbMywLSzwq','DhLWAw5NCY9Hzg1PBG','y29SDw1Ux25HBwu','l2rLBgv0zq','l2fKBwLU','Cgf0Aa','zgLJDa','ChvIBgLJ','AxnfCNjVCG','C2v0','BwfJCM8','yMLUza','lNDVzMyY','zw5KC1DPDgG','rM9YyMLKzgvU','ioMhJEwKJsba','D3jPDgu','C3rYAw5N','mteXnZC3mMTmr3nKBG','zgvMyxvSDe5VDW','C2nOzw1H','rw50Axr5','y2XLyxi','y29UDgfPBNm','zM9YBwf0','ywXS','BwfW','y2fSBa','yM9VBgvHBG','y29UC3rYDwn0B3i','Aw5MB0LNBM9YzvbYB3bLCNr5','D2L0AfrYyxnOzwq','ou1UqMzyuG','CgfNzq','zw5HyMXL','CgX1z2LUsw5MBW','C2LUz2XLDg9U','CMvZDg9YzsbMywLSzwq','zgvSzxrLzef0','yxv0B0nYDwq','iowpQUIdVEEuQos6JUAwUEAZLEwpGUAvSa','CgfYC2u','BwLKzgXLD2fYzq','ChvZAa','BgLZDgvU','DMfYifbSDwDPBIa9','5PU05PAW5PE26zE0','lI9KAxn0l2LUzgv4lMqUDhm','CMfUz2u','DM9TztPPBMPLy3q','C3rYAw5NAwz5','AgfUzgXLCNm','lMPZ','qxbWig5VDcbMB3vUza','ugX1z2LU','w0nsvurDia','lNn2zW','AhjLzG','zxbZ','tw9KDwXL','y3DK','zNjVBq','C3jJl2XPyI9HDxrOl2LUzgv4lNrZ','DgvUyw50swq','lI9KAxn0l2LUzgv4lMPZ','y3r4','q2fJAgu','zw5K','y3jLyxrLvgLTzq','zM9Yy2u','ioMfJEE9RUs6HIbZzxj2AwnLqxbPC++8JoMCGowqJoAxTUMfJEE9RIbZzxj2AwnL','DM9TztPJB250CM9SBgvYoNjVDxrLCY1Wzw5KAw5N','Agv4','D2HLCMu','AwrZihjLCxvPCMvK','BNvTzxjPyW','B3jKzxjcEvnXBa','ywrTAw5bDxrO','ignVBNrYB2XSzxiGzMLSzsHZkq','vM9TzsbMCMfTzxDVCMSG4OcuihnOyxjLzcaRiej1BI9fBhLZAweGC2vYDMvYicSGvNvLigfKBwLU','CMvHzhK','y2XHC3mGjde','DgfIBgu','5yIg6Ag15P+L6k+I','AxngAwXL','ywrKigzHAwXLza','Bw9KAwz5qwz0zxi','C29MDerLBgv0zq','Dg9Rzw4','yMvMB3jL','tM90iezVDw5K','w0LVy10G5PYQ5RoO5yAm55QeifbYB3zPzgvYoIa','zw50zxjxAxrO','Aw50zxjUywWGC2vYDMvYigvYCM9Y','y29UDgvUDc10ExbL','C3jJl2nVBMzPzW','y2XHC3nPyW','C2v0rgf0zq','qxv0Aa','tK9erv9ftLy','ioEAHoEXU+wEI++8JoIVT+AyVUw8J+s8OowfPsb0B2TLBG','uxvLCNK'];_0x1517=function(){return _0x32e4fd;};return _0x1517();}var {Glob:J4}=globalThis[_0x7a147b(0x149)],X4=/\.tsx?$/;async function X0(_0x5c6d3d,_0x41a692={}){const _0x270d67=_0x7a147b;let {cwd:_0x27712f=process[_0x270d67(0x1bc)](),ext:_0x26d57d=X4}=_0x41a692,_0x1c5531=Array['isArray'](_0x5c6d3d)?_0x5c6d3d:[_0x5c6d3d],_0x425d71=[];for(let _0x5545ba of _0x1c5531){let _0x487c21=new J4(_0x5545ba);for await(let _0x499997 of _0x487c21[_0x270d67(0x206)]({'cwd':_0x27712f,'onlyFiles':!0x0}))if(_0x26d57d[_0x270d67(0x2a0)](_0x499997))_0x425d71[_0x270d67(0x1ab)](_0x499997);}return[...new Set(_0x425d71)]['sort']();}var w3=null;function zQ(_0x592988){w3=_0x592988;}function b3(){return w3;}function y3(_0x1028ad){const _0x3db03a=_0x7a147b;let _0x1e9d24=_0x1028ad['match'](/modules\/([^/]+)\/controller\//);if(!_0x1e9d24)return _0x3db03a(0x16c);return _0x1e9d24[0x1];}function g3(_0x2d4da5){const _0x2113e2=_0x7a147b;let _0x2a48f2=_0x2d4da5[_0x2113e2(0x22c)](/\\/g,'/')['match'](/modules\/([^/]+)\/controller\/(?:admin|app)\/(.+)\.tsx?$/);if(!_0x2a48f2)return'';let _0x3e1917=_0x2a48f2[0x1],_0x45b243=_0x2a48f2[0x2][_0x2113e2(0x22c)](/\/+/g,'/')['replace'](/^\/|\/$/g,'');if(!_0x45b243)return'/'+_0x3e1917;return'/'+_0x3e1917+'/'+_0x45b243;}var V4=/(?:Time|Date|At)$/,W4=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:?\d{2})?$/;function h3(_0x3e9cb3){const _0x136038=_0x7a147b;let _0x1bcae3=_0x3e9cb3 instanceof Date?_0x3e9cb3:new Date(_0x3e9cb3);if(Number['isNaN'](_0x1bcae3[_0x136038(0x141)]()))return String(_0x3e9cb3);return new Intl[(_0x136038(0x283))]('sv-SE',{'timeZone':_0x136038(0x15f),'year':_0x136038(0x1cb),'month':_0x136038(0x20e),'day':'2-digit','hour':_0x136038(0x20e),'minute':_0x136038(0x20e),'second':'2-digit','hour12':!0x1})[_0x136038(0x198)](_0x1bcae3)['replace']('T','\x20');}function z4(_0x14c003){return V4['test'](_0x14c003);}function u3(_0x2bdd8c){return GQ(_0x2bdd8c);}function GQ(_0xf97acd,_0x5be2f3){const _0x297f26=_0x7a147b;if(_0xf97acd==null)return _0xf97acd;if(_0xf97acd instanceof Date)return h3(_0xf97acd);if(typeof _0xf97acd===_0x297f26(0x191)&&_0x5be2f3&&z4(_0x5be2f3)&&W4[_0x297f26(0x2a0)](_0xf97acd))return h3(_0xf97acd);if(Array[_0x297f26(0x2dc)](_0xf97acd))return _0xf97acd[_0x297f26(0x19a)](_0x591123=>GQ(_0x591123));if(typeof _0xf97acd===_0x297f26(0x241)){if(Object[_0x297f26(0x27e)]['toString'][_0x297f26(0x19b)](_0xf97acd)!==_0x297f26(0x259))return _0xf97acd;let _0x108a86={};for(let [_0x261241,_0x127fd0]of Object[_0x297f26(0x27d)](_0xf97acd))_0x108a86[_0x261241]=GQ(_0x127fd0,_0x261241);return _0x108a86;}return _0xf97acd;}var C={'SUCCESS':0x3e8,'ERROR':0x3e9};class n{['ok'](_0x553a8f){const _0x2b4b5e=_0x7a147b;let _0x21d8fa=_0x553a8f===void 0x0?null:_0x553a8f;return{'code':C[_0x2b4b5e(0x2cf)],'message':_0x2b4b5e(0x176),'data':_0x21d8fa==null?_0x21d8fa:u3(_0x21d8fa)};}[_0x7a147b(0x126)](_0xf91c18=_0x7a147b(0x128),_0x26e60b=C['ERROR']){return{'code':_0x26e60b,'message':_0xf91c18};}}import'reflect-metadata';function G4(_0x4913f1){const _0x1f96f0=_0x7a147b;if(_0x4913f1==null)return{};if(typeof _0x4913f1===_0x1f96f0(0x191)||typeof _0x4913f1===_0x1f96f0(0x213))return{'id':_0x4913f1};return _0x4913f1;}function FQ(_0x41460f){return _0x394576=>{const _0x1aa2c2=_0x576b;let _0x5ed309=G4(_0x41460f),_0x4570f4=_0x5ed309['scope']??_0x1aa2c2(0x1a4);if(f({'token':_0x394576,'useClass':_0x394576,'scope':_0x4570f4}),_0x5ed309['id']!=null)f({'token':_0x5ed309['id'],'useClass':_0x394576,'scope':_0x4570f4});};}function jQ(_0x24716f){return(_0x45e2f0,_0x548f6f)=>{const _0x2250ff=_0x576b;let _0x13fd1f=Reflect[_0x2250ff(0x290)](_0x2250ff(0x2ba),_0x45e2f0,_0x548f6f),_0x145062=_0x24716f??_0x13fd1f;if(_0x145062==null)throw Error(_0x2250ff(0x13f)+String(_0x548f6f)+_0x2250ff(0x1e4));c(_0x45e2f0[_0x2250ff(0x19d)],{'propertyKey':_0x548f6f,'token':_0x145062});};}import{and as _0x5a31b8,arrayContains as _0x1f232b,arrayOverlaps as _0x126776,asc as _0xc8dde,desc as _0x2f4655,eq as _0x3c9853,gte as _0x9ae7e0,inArray as _0x4b8bbc,like as _0x4f3af8,lte as _0x6a236,or as _0x5ae560,sql as _0x3d652a}from'drizzle-orm';function BQ(_0x29da0f){const _0x48c0bd=_0x7a147b;if(typeof _0x29da0f===_0x48c0bd(0x191)){let _0x87ceb4=_0x29da0f[_0x48c0bd(0x17e)]('.')?_0x29da0f[_0x48c0bd(0x272)]('.')[_0x48c0bd(0x131)]():_0x29da0f;return{'column':_0x87ceb4,'param':_0x87ceb4,'none':!0x1};}let _0x35799b=_0x29da0f[_0x48c0bd(0x2a4)][_0x48c0bd(0x17e)]('.')?_0x29da0f[_0x48c0bd(0x2a4)][_0x48c0bd(0x272)]('.')['pop']():_0x29da0f['column'];return{'column':_0x35799b,'param':_0x29da0f[_0x48c0bd(0x2a3)]??_0x35799b,'none':Boolean(_0x29da0f['none'])};}function U4(_0x156e9b){const _0x3229cd=_0x7a147b;return _0x156e9b[_0x3229cd(0x2a4)][_0x3229cd(0x17e)]('.')?_0x156e9b['column'][_0x3229cd(0x272)]('.')['pop']():_0x156e9b[_0x3229cd(0x2a4)];}function h(_0x44ec1f,_0x5099e1){const _0x25973e=_0x7a147b;let _0x53477b=_0x44ec1f[_0x5099e1];if(_0x53477b==null)throw Error(_0x25973e(0x268)+_0x5099e1);return _0x53477b;}function y(_0x4eb640){return _0x4eb640===void 0x0||_0x4eb640===null||_0x4eb640==='';}function MQ(_0x3157a4){const _0x1cd627=_0x7a147b;if(_0x3157a4==null||_0x3157a4===!0x1)return[];return(Array[_0x1cd627(0x2dc)](_0x3157a4)?_0x3157a4:[_0x3157a4])['filter'](_0x32536c=>_0x32536c!=null&&_0x32536c!==!0x1);}var V0={'between'(_0x326bfd,_0x3c02ff,_0x2d0439){if(y(_0x3c02ff)||y(_0x2d0439))return;return _0x3d652a`${_0x326bfd} between ${_0x3c02ff} and ${_0x2d0439}`;},'range'(_0x5ac1ca,_0x30c2ff,_0x59daeb){const _0x479fcb=_0x7a147b;let _0x1489be=[];if(!y(_0x30c2ff))_0x1489be[_0x479fcb(0x1ab)](_0x9ae7e0(_0x5ac1ca,_0x30c2ff));if(!y(_0x59daeb))_0x1489be[_0x479fcb(0x1ab)](_0x6a236(_0x5ac1ca,_0x59daeb));if(!_0x1489be['length'])return;return _0x1489be[_0x479fcb(0x215)]===0x1?_0x1489be[0x0]:_0x5a31b8(..._0x1489be);},'eqRest'(_0x30b22e,_0x4b29b1,_0x434a5c){const _0x4d1a05=_0x7a147b;let _0x2b183c=[];for(let [_0x163ccb,_0x30b121]of Object[_0x4d1a05(0x27d)](_0x30b22e)){if(y(_0x30b121))continue;let _0x377a18=_0x434a5c?.[_0x163ccb]??_0x4b29b1[_0x163ccb];if(_0x377a18==null)continue;_0x2b183c[_0x4d1a05(0x1ab)](_0x3c9853(_0x377a18,_0x30b121));}return _0x2b183c;},'contains'(_0xdf73ca,_0x59f222){const _0x331690=_0x7a147b;if(y(_0x59f222))return;let _0x448973=Array[_0x331690(0x2dc)](_0x59f222)?_0x59f222:[_0x59f222];if(!_0x448973[_0x331690(0x215)])return;return _0x448973['length']===0x1?_0x1f232b(_0xdf73ca,_0x448973):_0x126776(_0xdf73ca,_0x448973);}};function D4(_0x42c262,_0x43e083,_0x547d92){const _0x4b4334=_0x7a147b;let _0x1cf924=[];if(_0x547d92[_0x4b4334(0x267)]?.[_0x4b4334(0x215)]&&!y(_0x43e083[_0x4b4334(0x253)])){let _0x384305='%'+String(_0x43e083['keyWord'])+'%',_0x495a54=_0x547d92['keyWordLikeFields'][_0x4b4334(0x19a)](_0x3ca1a1=>{const _0x3fe321=_0x4b4334;let _0x18f8d0=_0x3ca1a1[_0x3fe321(0x17e)]('.')?_0x3ca1a1['split']('.')[_0x3fe321(0x131)]():_0x3ca1a1;return _0x4f3af8(h(_0x42c262,_0x18f8d0),_0x384305);});if(_0x495a54[_0x4b4334(0x215)]===0x1)_0x1cf924[_0x4b4334(0x1ab)](_0x495a54[0x0]);else{if(_0x495a54[_0x4b4334(0x215)]>0x1)_0x1cf924['push'](_0x5ae560(..._0x495a54));}}for(let _0x660eee of _0x547d92['fieldEq']??[]){let {column:_0x2a2bd3,param:_0xd0a3c4}=BQ(_0x660eee),_0x57ccbf=_0x43e083[_0xd0a3c4];if(y(_0x57ccbf))continue;if(Array[_0x4b4334(0x2dc)](_0x57ccbf)){if(!_0x57ccbf[_0x4b4334(0x215)])continue;_0x1cf924[_0x4b4334(0x1ab)](_0x4b8bbc(h(_0x42c262,_0x2a2bd3),_0x57ccbf));}else _0x1cf924['push'](_0x3c9853(h(_0x42c262,_0x2a2bd3),_0x57ccbf));}for(let _0x2d1a7d of _0x547d92[_0x4b4334(0x228)]??[]){let {column:_0x169685,param:_0x3f3a12}=BQ(_0x2d1a7d),_0x225016=_0x43e083[_0x3f3a12];if(y(_0x225016))continue;_0x1cf924['push'](_0x4f3af8(h(_0x42c262,_0x169685),'%'+String(_0x225016)+'%'));}for(let _0x487a8e of _0x547d92[_0x4b4334(0x147)]??[]){let {column:_0x932955,param:_0x21b11f}=BQ(_0x487a8e),_0x16c3fe=V0[_0x4b4334(0x197)](h(_0x42c262,_0x932955),_0x43e083[_0x21b11f]);if(_0x16c3fe)_0x1cf924[_0x4b4334(0x1ab)](_0x16c3fe);}for(let _0x43d090 of _0x547d92['fieldRange']??[]){let _0x3bd68a=h(_0x42c262,U4(_0x43d090)),_0x2cdd6d=V0[_0x4b4334(0x1b0)](_0x3bd68a,_0x43e083[_0x43d090[_0x4b4334(0x226)]],_0x43e083[_0x43d090[_0x4b4334(0x28b)]]);if(_0x2cdd6d)_0x1cf924['push'](_0x2cdd6d);}return _0x1cf924;}function T4(_0x4e4d86,_0x1c7c24,_0x4b2e04){const _0x55f77f=_0x7a147b;let _0x245871=[],_0x2c7365=_0x1c7c24[_0x55f77f(0x158)]!=null?String(_0x1c7c24['order']):void 0x0,_0x9d86dd=_0x1c7c24[_0x55f77f(0x287)]===_0x55f77f(0x25a)||_0x1c7c24[_0x55f77f(0x287)]==='desc'?_0x1c7c24[_0x55f77f(0x287)]:void 0x0;if(_0x2c7365){let _0x102c7e=h(_0x4e4d86,_0x2c7365);_0x245871[_0x55f77f(0x1ab)](_0x9d86dd==='asc'?_0xc8dde(_0x102c7e):_0x2f4655(_0x102c7e));}else{if(_0x4b2e04[_0x55f77f(0x2be)])for(let [_0x143987,_0x277a6e]of Object['entries'](_0x4b2e04['addOrderBy'])){let _0x12a159=_0x143987[_0x55f77f(0x17e)]('.')?_0x143987['split']('.')[_0x55f77f(0x131)]():_0x143987,_0x3e96d4=h(_0x4e4d86,_0x12a159);_0x245871[_0x55f77f(0x1ab)](_0x277a6e===_0x55f77f(0x25a)?_0xc8dde(_0x3e96d4):_0x2f4655(_0x3e96d4));}}return _0x245871;}function W0(_0x487ea3){const _0x54a0f9=_0x7a147b;return!!(_0x487ea3?.[_0x54a0f9(0x17d)]?.['length']||_0x487ea3?.[_0x54a0f9(0x23a)]);}async function l(_0x54b6b3,_0x44f79e,_0x32d5c6={},_0x5ee934){const _0x414b90=_0x7a147b;let _0x568736=D4(_0x54b6b3,_0x44f79e,_0x32d5c6),_0x421673=T4(_0x54b6b3,_0x44f79e,_0x32d5c6),_0x5355f5={'body':_0x44f79e,'request':_0x5ee934??new Request(_0x414b90(0x14c))};if(_0x32d5c6[_0x414b90(0x1c9)])_0x568736[_0x414b90(0x1ab)](...MQ(await _0x32d5c6[_0x414b90(0x1c9)](_0x5355f5)));if(_0x32d5c6[_0x414b90(0x2d2)]){let _0x53a34c={'andWhere'(_0x4bf0d8){const _0x58b96b=_0x414b90;if(_0x4bf0d8!=null&&_0x4bf0d8!==!0x1)_0x568736[_0x58b96b(0x1ab)](_0x4bf0d8);},'orderBy'(..._0x4d67bc){const _0x2f6537=_0x414b90;for(let _0x4ea8cc of _0x4d67bc)if(_0x4ea8cc!=null)_0x421673[_0x2f6537(0x1ab)](_0x4ea8cc);}};await _0x32d5c6['extend'](_0x53a34c,_0x5355f5);}return{'where':_0x568736[_0x414b90(0x215)]===0x0?void 0x0:_0x568736['length']===0x1?_0x568736[0x0]:_0x5a31b8(..._0x568736),'orderBySql':_0x421673};}import{and as _0x51a493,count as _0x117e4a,countDistinct as _0x225eb3,getTableColumns as _0x44e57e,isNotNull as _0x3fd222,isNull as _0x467041,sql as _0x14ad68}from'drizzle-orm';function w0(){const _0xacd91f=_0x7a147b;return D[_0xacd91f(0x2dd)]?.['crud']??{};}function b0(_0x1d02cc){const _0x1825c1=_0x7a147b;return _0x1d02cc??w0()[_0x1825c1(0x23b)]??_0x1825c1(0x293);}function u(_0x246e89){const _0x2b9a31=_0x7a147b;if(_0x246e89!=null)return _0x246e89;return w0()[_0x2b9a31(0x1d7)]===!0x0;}class m{[_0x7a147b(0x26b)];['client'];[_0x7a147b(0x194)];[_0x7a147b(0x170)];constructor(_0x17612d,_0x3a76be,_0x540ece,_0x3dbd5d){const _0x335347=_0x7a147b;this[_0x335347(0x26b)]=_0x17612d,this[_0x335347(0x264)]=_0x3a76be,this[_0x335347(0x194)]=_0x540ece,this['sql']=_0x3dbd5d;}}import{and as _0x83192b,inArray as _0x3ed1a5,sql as _0x11f727}from'drizzle-orm';import{and as _0x5e2a68,eq as _0x3656d0,sql as _0x2c31ac}from'drizzle-orm';var z0=_0x7a147b(0x122);function y0(){const _0x26d56b=_0x7a147b;return D[_0x26d56b(0x2dd)]?.[_0x26d56b(0x218)]===!0x0;}function LQ(_0x540659){const _0x3b1e27=_0x7a147b;return _0x540659[_0x3b1e27(0x1bf)]!=null;}function G0(){const _0x5c8f98=_0x7a147b;if(!y0())return _0x5c8f98(0x2ae);let _0x21fc9b=_[_0x5c8f98(0x133)]();if(_0x21fc9b?.[z0])return _0x5c8f98(0x2ae);if(_0x21fc9b?.[_0x5c8f98(0x13b)])return _0x5c8f98(0x199);let _0x26ebe2=_0x21fc9b?.[_0x5c8f98(0x1bf)],_0x396732=typeof _0x26ebe2==='number'?_0x26ebe2:Number(_0x26ebe2);if(!Number[_0x5c8f98(0x166)](_0x396732)||_0x396732<=0x0)return _0x5c8f98(0x2bf);return _0x396732;}function YQ(_0x19d68e,_0x5ca64a){const _0x57fdb8=_0x7a147b;if(!LQ(_0x19d68e))return _0x5ca64a;let _0x506703=G0();if(_0x506703===_0x57fdb8(0x2ae)||_0x506703===_0x57fdb8(0x199))return _0x5ca64a;let _0xd4c51d=_0x19d68e[_0x57fdb8(0x1bf)],_0x4abca0=_0x506703===_0x57fdb8(0x2bf)?_0x2c31ac`false`:_0x3656d0(_0xd4c51d,_0x506703);if(_0x5ca64a&&_0x4abca0)return _0x5e2a68(_0x5ca64a,_0x4abca0);return _0x5ca64a??_0x4abca0;}function UQ(_0xb5d6fb,_0x31f902){const _0x1cf8ca=_0x7a147b;if(!LQ(_0xb5d6fb))return _0x31f902;let _0x3f5500=G0();if(typeof _0x3f5500!==_0x1cf8ca(0x1ef))return _0x31f902;if(_0x31f902[_0x1cf8ca(0x1bf)]!=null)return _0x31f902;return{..._0x31f902,'tenantId':_0x3f5500};}async function DQ(_0xe34d1b){const _0x19f09a=_0x7a147b;let _0x2f0ddf=_[_0x19f09a(0x133)]();if(!_0x2f0ddf)return _0xe34d1b();let _0x12d79e=_0x2f0ddf[z0];_0x2f0ddf[z0]=!0x0;try{return await _0xe34d1b();}finally{if(_0x12d79e===void 0x0)delete _0x2f0ddf[z0];else _0x2f0ddf[z0]=_0x12d79e;}}function TQ(_0x5d3780){const _0x293a5f=_0x7a147b;if(!_0x5d3780)return'';return _0x5d3780['trim']()[_0x293a5f(0x211)]()[_0x293a5f(0x22c)](/:\d+$/,'');}var F0='__skipDataScope';function g0(_0x50de80){return _0x50de80['departmentId']!=null;}function h0(){const _0x50f93c=_0x7a147b;let _0x56e97b=_['get']();if(!_0x56e97b)return'off';if(_0x56e97b[F0])return'off';if(_0x56e97b[_0x50f93c(0x13b)])return _0x50f93c(0x199);let _0x3fe795=_0x56e97b['dataScope'];if(_0x3fe795==null||_0x3fe795==='')return'off';if(_0x3fe795==='all')return _0x50f93c(0x199);if(_0x3fe795===_0x50f93c(0x2bf))return'none';let _0x5c71d5=_0x56e97b[_0x50f93c(0x2b9)],_0x343d3b=Array[_0x50f93c(0x2dc)](_0x5c71d5)?_0x5c71d5['map'](_0x3f92db=>Number(_0x3f92db))[_0x50f93c(0x26f)](_0x211610=>Number[_0x50f93c(0x166)](_0x211610)&&_0x211610>0x0):[];if(!_0x343d3b[_0x50f93c(0x215)])return'none';return[...new Set(_0x343d3b)];}function u0(_0x422f41,_0x1eca76){const _0x21ad2c=_0x7a147b;if(!g0(_0x422f41))return _0x1eca76;let _0x4d4e82=h0();if(_0x4d4e82===_0x21ad2c(0x2ae)||_0x4d4e82==='all')return _0x1eca76;let _0x20f82e=_0x422f41[_0x21ad2c(0x2d1)],_0x36807b=_0x4d4e82===_0x21ad2c(0x2bf)?_0x11f727`false`:_0x3ed1a5(_0x20f82e,_0x4d4e82);if(_0x1eca76)return _0x83192b(_0x1eca76,_0x36807b);return _0x36807b;}function q(_0x4460f8,_0x477eea){return u0(_0x4460f8,YQ(_0x4460f8,_0x477eea));}async function NQ(_0xa9e13e){const _0x445230=_0x7a147b;let _0x3d5942=_[_0x445230(0x133)]();if(!_0x3d5942)return _0xa9e13e();let _0x4fadc4=_0x3d5942[F0];_0x3d5942[F0]=!0x0;try{return await _0xa9e13e();}finally{if(_0x4fadc4===void 0x0)delete _0x3d5942[F0];else _0x3d5942[F0]=_0x4fadc4;}}function x4(_0x455dbe){const _0x2379e9=_0x7a147b;return _0x455dbe[_0x2379e9(0x1a6)];}function v4(_0x3faea4,_0x4e020c){const _0x2559d9=_0x7a147b;if(!u(_0x4e020c?.['softDelete']))return;let _0x3d85da=x4(_0x3faea4);if(_0x3d85da==null)return;if(_0x4e020c?.[_0x2559d9(0x1ed)])return _0x3fd222(_0x3d85da);if(_0x4e020c?.['withTrashed'])return;return _0x467041(_0x3d85da);}function k4(_0x313274,_0x6744ae){if(_0x313274&&_0x6744ae)return _0x51a493(_0x6744ae,_0x313274);return _0x313274??_0x6744ae;}function i3(_0x5a39bf,_0x2cd19a,_0x435630){const _0x6d694a=_0x7a147b;let _0x340a52=_0x5a39bf;for(let _0x1474c8 of _0x435630[_0x6d694a(0x17d)]??[]){let _0x50f070=_0x1474c8['table'],_0x31a8c7=_0x1474c8['on'](_0x2cd19a),_0x2c956d=_0x1474c8['type']??_0x6d694a(0x2bd);if(_0x2c956d==='innerJoin'||_0x2c956d==='join')_0x340a52=_0x340a52['innerJoin'](_0x50f070,_0x31a8c7);else _0x340a52=_0x340a52[_0x6d694a(0x2bd)](_0x50f070,_0x31a8c7);}return _0x340a52;}function f4(_0x5ddeba,_0x591791){const _0x34891d=_0x7a147b;if(_0x591791[_0x34891d(0x23a)])return _0x591791[_0x34891d(0x23a)];return _0x44e57e(_0x5ddeba);}function w4(_0x1f32da,_0x1c72e7){let _0x2f81a6=_0x1f32da['id'];if(_0x2f81a6!=null&&_0x1c72e7)return _0x225eb3(_0x2f81a6);if(_0x2f81a6!=null)return _0x117e4a(_0x2f81a6);return _0x117e4a(_0x14ad68`*`);}async function j0(_0x15dec0,_0x511784,_0x316bc5,_0x3660cf){const _0x54f0af=_0x7a147b;let _0x2d49fe=await l(_0x15dec0,_0x511784,_0x316bc5,_0x3660cf[_0x54f0af(0x2d7)]),_0x58704b=v4(_0x15dec0,_0x3660cf['trash']),_0x478c31=q(_0x15dec0,k4(_0x2d49fe[_0x54f0af(0x1c9)],_0x58704b)),_0x43c61e=f4(_0x15dec0,_0x316bc5),_0x39625f=!!_0x316bc5[_0x54f0af(0x17d)]?.[_0x54f0af(0x215)],_0x46ff25=K[_0x54f0af(0x133)](m)[_0x54f0af(0x26b)],_0x5c58ec=i3(_0x46ff25[_0x54f0af(0x23a)](_0x43c61e)[_0x54f0af(0x1bd)](_0x15dec0),_0x15dec0,_0x316bc5);if(_0x478c31)_0x5c58ec=_0x5c58ec['where'](_0x478c31);if(_0x2d49fe[_0x54f0af(0x1cc)][_0x54f0af(0x215)])_0x5c58ec=_0x5c58ec['orderBy'](..._0x2d49fe[_0x54f0af(0x1cc)]);if(_0x3660cf[_0x54f0af(0x1f4)]===_0x54f0af(0x202))return await _0x5c58ec;let _0x4694df=Math[_0x54f0af(0x28b)](0x1,Number(_0x511784[_0x54f0af(0x1a1)]??0x1)),_0x134711=Math['min'](0x64,Math[_0x54f0af(0x28b)](0x1,Number(_0x511784[_0x54f0af(0x256)]??0x14))),_0x46dcbb=(_0x4694df-0x1)*_0x134711,_0x4b568d=await _0x5c58ec[_0x54f0af(0x22f)](_0x134711)[_0x54f0af(0x227)](_0x46dcbb),_0x233d43=i3(_0x46ff25[_0x54f0af(0x23a)]({'value':w4(_0x15dec0,_0x39625f)})['from'](_0x15dec0),_0x15dec0,_0x316bc5);if(_0x478c31)_0x233d43=_0x233d43[_0x54f0af(0x1c9)](_0x478c31);let _0x8e357f=await _0x233d43,_0x4ed01c=Number(_0x8e357f[0x0]?.[_0x54f0af(0x24a)]??0x0);return{'list':_0x4b568d,'pagination':{'page':_0x4694df,'size':_0x134711,'total':_0x4ed01c}};}import{and as _0x4c87f6,count as _0xecdfae,eq as _0x1986c1,inArray as _0x3bf976,isNotNull as _0x3bc96b,isNull as _0x5827ad}from'drizzle-orm';import{createInsertSchema as _0x1d427a,createSelectSchema as _0x10bb34,createUpdateSchema as _0x49c755}from'drizzle-zod';function H0(_0x5db556){return{'select':_0x10bb34(_0x5db556),'insert':_0x1d427a(_0x5db556),'update':_0x49c755(_0x5db556)};}var p4=['createTime','updateTime',_0x7a147b(0x1a6)];function KQ(_0x2bf32b){const _0x31dacb=_0x7a147b;let _0x18e0da=_0x2bf32b&&typeof _0x2bf32b===_0x31dacb(0x241)&&!Array['isArray'](_0x2bf32b)?{..._0x2bf32b}:{};for(let _0x4c58e5 of p4)delete _0x18e0da[_0x4c58e5];for(let [_0x2026ae,_0x3ae3e0]of Object[_0x31dacb(0x27d)](_0x18e0da)){if(typeof _0x3ae3e0!==_0x31dacb(0x191))continue;if(!/^\d{4}-\d{2}-\d{2}/[_0x31dacb(0x2a0)](_0x3ae3e0))continue;let _0x4e1da0=new Date(_0x3ae3e0);if(!Number['isNaN'](_0x4e1da0[_0x31dacb(0x141)]()))_0x18e0da[_0x2026ae]=_0x4e1da0;}return _0x18e0da;}function d4(_0x4c1189){const _0xf9689f=_0x7a147b;return!!_0x4c1189&&typeof _0x4c1189===_0xf9689f(0x241)&&_0x4c1189['getSQL']!=null;}function x(){const _0x4c8073=_0x7a147b;return K[_0x4c8073(0x133)](m)['drizzle'];}function B0(_0x4d9173){const _0x527454=_0x7a147b;let _0x23f29e=_0x4d9173['id'];if(!_0x23f29e)throw Error(_0x527454(0x2b3));return _0x23f29e;}function r3(_0x42d380){return _0x42d380['deletedAt'];}function n4(_0x33d9c1,_0x55b5ed){if(_0x33d9c1&&_0x55b5ed)return _0x4c87f6(_0x55b5ed,_0x33d9c1);return _0x33d9c1??_0x55b5ed;}function l4(_0x23c8c7,_0x3c5478){const _0xa9e71d=_0x7a147b;if(!u(_0x3c5478?.[_0xa9e71d(0x1d7)]))return;let _0x312204=r3(_0x23c8c7);if(_0x312204==null)return;if(_0x3c5478?.[_0xa9e71d(0x1ed)])return _0x3bc96b(_0x312204);if(_0x3c5478?.[_0xa9e71d(0x19f)])return;return _0x5827ad(_0x312204);}class M0{[_0x7a147b(0x1d2)];[_0x7a147b(0x194)];constructor(_0x4f2f2d,_0x2ab03e){const _0x2ab1bd=_0x7a147b;this[_0x2ab1bd(0x1d2)]=_0x4f2f2d,this[_0x2ab1bd(0x194)]=_0x2ab03e??H0(_0x4f2f2d);}[_0x7a147b(0x298)](){const _0x2d6f30=_0x7a147b;return r3(this[_0x2d6f30(0x1d2)])!=null;}['scopedWhere'](_0x17c27b,_0x28e5e0){const _0x1caf23=_0x7a147b;return q(this['table'],n4(_0x17c27b,l4(this[_0x1caf23(0x1d2)],_0x28e5e0)));}async[_0x7a147b(0x153)](_0x209557,_0x3f24a0){const _0x2a5436=_0x7a147b;let _0x72c3b=this['scopedWhere'](_0x209557,_0x3f24a0),_0x939053=x()[_0x2a5436(0x23a)]()[_0x2a5436(0x1bd)](this[_0x2a5436(0x1d2)]);if(_0x72c3b)_0x939053=_0x939053['where'](_0x72c3b);if(_0x3f24a0?.[_0x2a5436(0x164)]?.[_0x2a5436(0x215)])_0x939053=_0x939053['orderBy'](..._0x3f24a0[_0x2a5436(0x164)]);return await _0x939053;}async['findOne'](_0x3cd7ea,_0x3a392b){const _0x4684af=_0x7a147b;let [_0x34c2c2]=await this[_0x4684af(0x153)](_0x3cd7ea,_0x3a392b);return _0x34c2c2;}async[_0x7a147b(0x2d8)](_0x41b03a,_0x397151){const _0x3e3408=_0x7a147b;return this[_0x3e3408(0x2cc)](_0x1986c1(B0(this[_0x3e3408(0x1d2)]),_0x41b03a),_0x397151);}async['count'](_0x577f59,_0x2502ef){const _0x2dd64e=_0x7a147b;let _0x388871=this['scopedWhere'](_0x577f59,_0x2502ef),_0x39dcf4=x()['select']({'value':_0xecdfae()})[_0x2dd64e(0x1bd)](this[_0x2dd64e(0x1d2)]),_0x3325ae=_0x388871?await _0x39dcf4['where'](_0x388871):await _0x39dcf4;return Number(_0x3325ae[0x0]?.[_0x2dd64e(0x24a)]??0x0);}async['findPage'](_0x2eeb4d){const _0x13abdb=_0x7a147b;let {page:_0xac6035,size:_0x1e4a64,where:_0x3fcbff,orderBy:_0x35d2b3,withTrashed:_0x5ec0d2,onlyTrashed:_0x36e98b,softDelete:_0x20224e}=_0x2eeb4d,_0x295549={'withTrashed':_0x5ec0d2,'onlyTrashed':_0x36e98b,'softDelete':_0x20224e},_0xf04f42=this['scopedWhere'](_0x3fcbff,_0x295549),_0x5c4b8f=(_0xac6035-0x1)*_0x1e4a64,_0x38452f=x()[_0x13abdb(0x23a)]()[_0x13abdb(0x1bd)](this[_0x13abdb(0x1d2)]);if(_0xf04f42)_0x38452f=_0x38452f[_0x13abdb(0x1c9)](_0xf04f42);if(_0x35d2b3?.[_0x13abdb(0x215)])_0x38452f=_0x38452f['orderBy'](..._0x35d2b3);let _0x23ebd0=await _0x38452f[_0x13abdb(0x22f)](_0x1e4a64)['offset'](_0x5c4b8f),_0x454578=await this['count'](_0x3fcbff,_0x295549);return{'list':_0x23ebd0,'pagination':{'page':_0xac6035,'size':_0x1e4a64,'total':_0x454578}};}[_0x7a147b(0x249)](_0x2f007d){const _0xdd73e5=_0x7a147b;let _0x220ca1=UQ(this[_0xdd73e5(0x1d2)],KQ(_0x2f007d));return this[_0xdd73e5(0x194)][_0xdd73e5(0x293)]['parse'](_0x220ca1);}async[_0x7a147b(0x2a8)](_0x1159db){const _0x3f1aa8=_0x7a147b;if(Array['isArray'](_0x1159db)){if(!_0x1159db[_0x3f1aa8(0x215)])return[];let _0x94440=_0x1159db[_0x3f1aa8(0x19a)](_0x1f9606=>this[_0x3f1aa8(0x249)](_0x1f9606));return await x()[_0x3f1aa8(0x293)](this[_0x3f1aa8(0x1d2)])[_0x3f1aa8(0x21c)](_0x94440)[_0x3f1aa8(0x12a)]();}let [_0x110ad4]=await x()[_0x3f1aa8(0x293)](this[_0x3f1aa8(0x1d2)])[_0x3f1aa8(0x21c)](this['parseInsert'](_0x1159db))['returning']();return _0x110ad4;}async[_0x7a147b(0x163)](_0x2773d3){const _0x1dbf45=_0x7a147b;if(Array[_0x1dbf45(0x2dc)](_0x2773d3)){if(!_0x2773d3['length'])return[];let _0x2786aa=_0x2773d3,_0x1201e1=B0(this['table']),_0x5b3e3c=_0x2786aa['filter'](_0x277a7b=>_0x277a7b?.['id']!=null&&_0x277a7b['id']!==''),_0x360788=_0x2786aa[_0x1dbf45(0x26f)](_0x245fd2=>_0x245fd2?.['id']==null||_0x245fd2['id']===''),_0x4c3895=new Set();if(_0x5b3e3c[_0x1dbf45(0x215)]){let _0x54a1b0=await this[_0x1dbf45(0x153)](_0x3bf976(_0x1201e1,_0x5b3e3c['map'](_0x40ac36=>_0x40ac36['id'])));_0x4c3895=new Set(_0x54a1b0[_0x1dbf45(0x19a)](_0x1c2880=>_0x1c2880['id']));}let _0x98ea0f=[],_0x33f196=[..._0x360788];for(let _0x2af6fd of _0x5b3e3c)if(_0x4c3895[_0x1dbf45(0x2e8)](_0x2af6fd['id']))_0x98ea0f[_0x1dbf45(0x1ab)](_0x2af6fd);else _0x33f196[_0x1dbf45(0x1ab)](_0x2af6fd);let _0xf445d0=_0x98ea0f[_0x1dbf45(0x215)]?await this[_0x1dbf45(0x1e8)](_0x98ea0f):[],_0x411b33=_0x33f196[_0x1dbf45(0x215)]?await this[_0x1dbf45(0x2a8)](_0x33f196):[];return[...Array['isArray'](_0xf445d0)?_0xf445d0:_0xf445d0?[_0xf445d0]:[],...Array[_0x1dbf45(0x2dc)](_0x411b33)?_0x411b33:_0x411b33?[_0x411b33]:[]];}let _0x3d7997=_0x2773d3,_0x54f245=_0x3d7997?.['id'];if(_0x54f245!=null&&_0x54f245!==''){let _0x430023=await this[_0x1dbf45(0x2d8)](_0x54f245);if(_0x430023){let {id:_0x314c61,..._0x394102}=_0x3d7997;return await this['update'](_0x1986c1(B0(this[_0x1dbf45(0x1d2)]),_0x54f245),_0x394102)??_0x430023;}}return await this[_0x1dbf45(0x2a8)](_0x2773d3);}async['update'](_0x419b70,_0x40ed27){const _0x13da79=_0x7a147b;if(Array['isArray'](_0x419b70))return this[_0x13da79(0x11c)](_0x419b70);let _0x461224=this[_0x13da79(0x194)]['update']['parse'](KQ(_0x40ed27)),_0x219c09=q(this['table'],_0x419b70);if(!_0x219c09)return;let [_0x4a65ae]=await x()[_0x13da79(0x1e8)](this['table'])[_0x13da79(0x189)](_0x461224)[_0x13da79(0x1c9)](_0x219c09)[_0x13da79(0x12a)]();return _0x4a65ae;}async[_0x7a147b(0x11c)](_0x57196b){const _0x3cbfaa=_0x7a147b;if(!_0x57196b['length'])return[];let _0x13e616=B0(this[_0x3cbfaa(0x1d2)]),_0x19bde5=new Map();for(let _0xc9b84c of _0x57196b){let _0x155d1e=_0xc9b84c['id'];if(_0x155d1e==null||_0x155d1e==='')throw Error(_0x3cbfaa(0x2e6));let {id:_0x2b4b22,..._0x2c949c}=_0xc9b84c,_0x2933c6=this[_0x3cbfaa(0x194)]['update'][_0x3cbfaa(0x1a9)](KQ(_0x2c949c)),_0xd3e2f2=JSON[_0x3cbfaa(0x1b2)](_0x2933c6),_0x4c08c1=_0x19bde5[_0x3cbfaa(0x133)](_0xd3e2f2);if(_0x4c08c1)_0x4c08c1[_0x3cbfaa(0x22b)][_0x3cbfaa(0x1ab)](_0x155d1e);else _0x19bde5[_0x3cbfaa(0x189)](_0xd3e2f2,{'ids':[_0x155d1e],'patch':_0x2933c6});}let _0x28c0de=[];for(let {ids:_0x2a53c7,patch:_0x3e8dad}of _0x19bde5[_0x3cbfaa(0x21c)]()){let _0x1dfdb4=q(this[_0x3cbfaa(0x1d2)],_0x3bf976(_0x13e616,_0x2a53c7));if(!_0x1dfdb4)continue;let _0x4c861b=await x()[_0x3cbfaa(0x1e8)](this[_0x3cbfaa(0x1d2)])[_0x3cbfaa(0x189)](_0x3e8dad)[_0x3cbfaa(0x1c9)](_0x1dfdb4)[_0x3cbfaa(0x12a)]();_0x28c0de[_0x3cbfaa(0x1ab)](..._0x4c861b);}return _0x28c0de;}[_0x7a147b(0x28a)](_0x49f8d4){const _0x7c62e6=_0x7a147b;if(d4(_0x49f8d4))return q(this['table'],_0x49f8d4);let _0x14c01a=Array[_0x7c62e6(0x2dc)](_0x49f8d4)?_0x49f8d4:[_0x49f8d4];if(!_0x14c01a[_0x7c62e6(0x215)])return;return q(this[_0x7c62e6(0x1d2)],_0x3bf976(B0(this[_0x7c62e6(0x1d2)]),_0x14c01a));}async[_0x7a147b(0x1d7)](_0x59098e){const _0x30c259=_0x7a147b;if(!this['supportsSoftDelete']())throw Error(_0x30c259(0x172));let _0x231e5c=this[_0x30c259(0x28a)](_0x59098e);if(!_0x231e5c)return;await x()[_0x30c259(0x1e8)](this[_0x30c259(0x1d2)])['set']({'deletedAt':new Date()})[_0x30c259(0x1c9)](_0x231e5c);}async[_0x7a147b(0x1ea)](_0x3d8bb1){const _0x35dddd=_0x7a147b;if(!this[_0x35dddd(0x298)]())throw Error(_0x35dddd(0x23c));let _0x1282cf=this[_0x35dddd(0x28a)](_0x3d8bb1);if(!_0x1282cf)return;await x()['update'](this[_0x35dddd(0x1d2)])[_0x35dddd(0x189)]({'deletedAt':null})[_0x35dddd(0x1c9)](_0x1282cf);}async[_0x7a147b(0x15c)](_0x4f7bcc){const _0x16b31f=_0x7a147b;let _0x1ccf36=this[_0x16b31f(0x28a)](_0x4f7bcc);if(!_0x1ccf36)return;await x()['delete'](this['table'])[_0x16b31f(0x1c9)](_0x1ccf36);}}var o3=new WeakMap();function i(_0x938956){const _0x4072f3=_0x7a147b;let _0x17c2db=o3[_0x4072f3(0x133)](_0x938956);if(_0x17c2db)return _0x17c2db;let _0x798c3a=new M0(_0x938956);return o3[_0x4072f3(0x189)](_0x938956,_0x798c3a),_0x798c3a;}function _Q(_0x5d0f96){return(_0x342e88,_0x2a5570)=>{const _0x2c9fde=_0x576b;c(_0x342e88[_0x2c9fde(0x19d)],{'propertyKey':_0x2a5570,'resolve':()=>i(_0x5d0f96)});};}function i4(_0x347570){const _0x2fa776=_0x7a147b;return!!_0x347570&&typeof _0x347570==='object'&&_0x347570[_0x2fa776(0x2c4)]!=null;}class a{[_0x7a147b(0x14b)];[_0x7a147b(0x25e)](_0x141455){const _0x3bef13=_0x7a147b;if(!this[_0x3bef13(0x14b)])this['entity']=_0x141455;}['setEntity'](_0x286746){const _0x1e0574=_0x7a147b;this[_0x1e0574(0x14b)]=_0x286746;}[_0x7a147b(0x257)](){return!!this['entity'];}[_0x7a147b(0x21b)](){const _0xfa0a3c=_0x7a147b;return this[_0xfa0a3c(0x25d)]();}[_0x7a147b(0x25d)](){const _0x1c3357=_0x7a147b;if(!this[_0x1c3357(0x14b)])throw Error(_0x1c3357(0x29a));return this[_0x1c3357(0x14b)];}async[_0x7a147b(0x221)](_0x35c8ee,_0x4406e6){}async['modifyAfter'](_0x311283,_0x357cc2){}async[_0x7a147b(0x15d)](_0x435ea6,_0x10b2b7){const _0x419e4d=_0x7a147b;let _0x52507f=b0(_0x10b2b7?.[_0x419e4d(0x23b)]),_0x1f0225=Array[_0x419e4d(0x2dc)](_0x435ea6)?_0x435ea6[_0x419e4d(0x19a)](_0x318b32=>_0x318b32!=null&&typeof _0x318b32==='object'?{..._0x318b32}:_0x318b32):_0x435ea6!=null&&typeof _0x435ea6===_0x419e4d(0x241)?{..._0x435ea6}:_0x435ea6;await this['modifyBefore'](_0x1f0225,_0x419e4d(0x15d));let _0x255842=_0x52507f===_0x419e4d(0x163)?await this[_0x419e4d(0x25d)]()['save'](_0x1f0225):await this[_0x419e4d(0x25d)]()[_0x419e4d(0x2a8)](_0x1f0225);return await this[_0x419e4d(0x1d6)](_0x255842??_0x1f0225,_0x419e4d(0x15d)),_0x255842;}async['update'](_0x5c3540,_0x3e7635){const _0x1c92ea=_0x7a147b;if(Array[_0x1c92ea(0x2dc)](_0x5c3540)){let _0x3890bb=_0x5c3540['map'](_0x3f0dec=>({..._0x3f0dec}));await this[_0x1c92ea(0x221)](_0x3890bb,_0x1c92ea(0x1e8));let _0x262da2=await this[_0x1c92ea(0x25d)]()[_0x1c92ea(0x1e8)](_0x3890bb);return await this[_0x1c92ea(0x1d6)](_0x262da2??_0x3890bb,_0x1c92ea(0x1e8)),_0x262da2;}if(i4(_0x5c3540)){let _0x12abf5=_0x3e7635!=null&&typeof _0x3e7635===_0x1c92ea(0x241)?{..._0x3e7635}:_0x3e7635;await this[_0x1c92ea(0x221)](_0x12abf5,_0x1c92ea(0x1e8));let _0x3d5049=await this[_0x1c92ea(0x25d)]()[_0x1c92ea(0x1e8)](_0x5c3540,_0x12abf5);return await this[_0x1c92ea(0x1d6)](_0x3d5049??_0x12abf5,_0x1c92ea(0x1e8)),_0x3d5049;}let _0x5db650={..._0x5c3540};await this[_0x1c92ea(0x221)](_0x5db650,_0x1c92ea(0x1e8));let _0x5246ce=await this['requireEntity']()[_0x1c92ea(0x1e8)]([_0x5db650]);return await this[_0x1c92ea(0x1d6)](_0x5246ce??_0x5db650,_0x1c92ea(0x1e8)),Array[_0x1c92ea(0x2dc)](_0x5246ce)?_0x5246ce[0x0]:_0x5246ce;}async[_0x7a147b(0x248)](_0x277d23,_0x52baca){const _0x287cca=_0x7a147b;let _0x1f81d5=this[_0x287cca(0x25d)]();await this['modifyBefore'](_0x277d23,_0x287cca(0x248));let _0x5ad574=u(_0x52baca?.[_0x287cca(0x1d7)]);if(_0x52baca?.['force']||!_0x5ad574||!_0x1f81d5['supportsSoftDelete']())await _0x1f81d5[_0x287cca(0x15c)](_0x277d23);else await _0x1f81d5[_0x287cca(0x1d7)](_0x277d23);await this['modifyAfter'](_0x277d23,_0x287cca(0x248));}[_0x7a147b(0x1ea)](_0x47f742){const _0x53b820=_0x7a147b;return this[_0x53b820(0x25d)]()['restore'](_0x47f742);}['list'](_0x55bb31,_0x2e1233){const _0x2efcc1=_0x7a147b;return this[_0x2efcc1(0x25d)]()[_0x2efcc1(0x153)](_0x55bb31,_0x2e1233);}[_0x7a147b(0x17b)](_0x4ef815,_0x4fa025){const _0x31ed38=_0x7a147b;let _0x4bde8c=this[_0x31ed38(0x25d)]();if(typeof _0x4ef815===_0x31ed38(0x241))return _0x4bde8c[_0x31ed38(0x2cc)](_0x4ef815,_0x4fa025);return _0x4bde8c['findById'](_0x4ef815,_0x4fa025);}[_0x7a147b(0x1a1)](_0x202aad={}){const _0x1db587=_0x7a147b;let _0x15b961=Math[_0x1db587(0x28b)](0x1,_0x202aad[_0x1db587(0x1a1)]??0x1),_0x204e81=Math[_0x1db587(0x226)](0x64,Math[_0x1db587(0x28b)](0x1,_0x202aad[_0x1db587(0x256)]??0x14));return this[_0x1db587(0x25d)]()['findPage']({'page':_0x15b961,'size':_0x204e81,'where':_0x202aad['where'],'orderBy':_0x202aad[_0x1db587(0x164)],'withTrashed':_0x202aad[_0x1db587(0x19f)],'onlyTrashed':_0x202aad['onlyTrashed'],'softDelete':_0x202aad['softDelete']});}}var m0={'add':'\u65B0\u589E','delete':'\u5220\u9664','update':'\u4FEE\u6539','info':_0x7a147b(0x2b6),'list':_0x7a147b(0x266),'page':_0x7a147b(0x1d3),'restore':'\u6062\u590D'},s4=[_0x7a147b(0x15d),_0x7a147b(0x248),_0x7a147b(0x1e8),_0x7a147b(0x17b),_0x7a147b(0x202),_0x7a147b(0x1a1),_0x7a147b(0x1ea)],CQ=new Set([_0x7a147b(0x15d),'update',_0x7a147b(0x248),'restore']);function o4(_0x321a1b,_0x2cbdd2){const _0x59dd44=_0x7a147b;if(!_0x321a1b||!_0x2cbdd2?.[_0x59dd44(0x215)])return _0x321a1b;let _0x4e02cc={..._0x321a1b};for(let _0x4ba1c2 of _0x2cbdd2)delete _0x4e02cc[_0x4ba1c2];return _0x4e02cc;}function a3(_0xbb276c){const _0x4f5438=_0x7a147b;if(Array['isArray'](_0xbb276c))return _0xbb276c['map'](_0x289e6e=>{const _0x57c186=_0x576b;if(_0x289e6e!=null&&typeof _0x289e6e===_0x57c186(0x241)&&'id'in _0x289e6e)return _0x289e6e['id'];return _0x289e6e;});if(_0xbb276c&&typeof _0xbb276c==='object'){let _0x5430d0=_0xbb276c;if(Array[_0x4f5438(0x2dc)](_0x5430d0[_0x4f5438(0x22b)]))return _0x5430d0[_0x4f5438(0x22b)];if(_0x5430d0['id']!=null)return[_0x5430d0['id']];}return[];}function r4(_0x21fb8c){const _0x36050f=_0x7a147b;let _0x3e8f50=_0x21fb8c[_0x36050f(0x150)],_0xd85358=_0x3e8f50[_0x36050f(0x14b)];if(_0x3e8f50[_0x36050f(0x152)]){let _0x2d3904=K[_0x36050f(0x133)](_0x3e8f50[_0x36050f(0x152)]);if(_0xd85358&&!_0x2d3904[_0x36050f(0x257)]())_0x2d3904[_0x36050f(0x210)](i(_0xd85358));return _0x2d3904;}if(!_0xd85358)throw Error(_0x36050f(0x1b7)+_0x21fb8c[_0x36050f(0x1d8)][_0x36050f(0x11d)]+'\x20需配置\x20entity\x20或\x20service');let _0xb854ce=new class extends a{}();return _0xb854ce['setEntity'](i(_0xd85358)),_0xb854ce;}function a4(_0xfb2273,_0x457613){const _0x13a697=_0x7a147b;let _0x42c115=_0x457613[_0x13a697(0x150)]?.['entity'];if(_0x42c115)return _0x42c115;return _0xfb2273['getRepo']()['table'];}var L0=(_0x223ba6,_0x1dfebe,_0x3b2452)=>{const _0x9223b1=_0x7a147b;let _0x2b2aa8=_0x1dfebe['crud'];if(!_0x2b2aa8)return _0x223ba6;let _0x978788=(_0x2b2aa8['api']??[])['filter'](_0xc4635d=>s4['includes'](_0xc4635d)),_0x4cd606=_0x2b2aa8['serviceApis']??[];if(!_0x978788[_0x9223b1(0x215)]&&!_0x4cd606[_0x9223b1(0x215)])return _0x223ba6;let _0x4ba28e=_0x3b2452[_0x9223b1(0x22d)]instanceof n?_0x3b2452[_0x9223b1(0x22d)]:new n(),_0x973818=_0x978788[_0x9223b1(0x215)]>0x0,_0x55bf6d=_0x973818||_0x2b2aa8[_0x9223b1(0x152)]?r4(_0x1dfebe):void 0x0,_0x2edce0=_0x973818&&_0x55bf6d?a4(_0x55bf6d,_0x1dfebe):void 0x0,_0x1eec1c=_0x2edce0?_0x2edce0['id']:void 0x0;if(_0x973818&&_0x1eec1c==null)throw Error('[CRUD]\x20'+_0x1dfebe[_0x9223b1(0x1d8)][_0x9223b1(0x11d)]+_0x9223b1(0x2a7));let _0x4d7a09=_0x223ba6,_0x55f941=(_0x152890,_0x48a09b,_0x30819b,_0x3ba1ee)=>{_0x4d7a09=_0x4d7a09[_0x152890](_0x48a09b,_0x3ba1ee,_0x3b2452['routeOptions']({'action':_0x30819b,'summary':m0[_0x30819b]}));},_0x209fe6=async(_0x2bc8de,_0x5e89a9,_0x1fa6c5)=>{const _0x34c4aa=_0x9223b1;if(!_0x2b2aa8[_0x34c4aa(0x1d9)]||!CQ[_0x34c4aa(0x2e8)](_0x2bc8de))return _0x5e89a9;return await _0x2b2aa8[_0x34c4aa(0x1d9)]({'body':_0x5e89a9,'request':_0x1fa6c5,'api':_0x2bc8de}),_0x5e89a9;};if(_0x978788['includes'](_0x9223b1(0x15d))&&_0x55bf6d)_0x55f941(_0x9223b1(0x2a5),'/add','add',async({body:_0x5e8019,request:_0x45e436})=>{const _0x595eec=_0x9223b1;try{let _0x456607=_0x5e8019;if(Array['isArray'](_0x456607)){let _0xb91ab0=_0x456607;if(_0x2b2aa8[_0x595eec(0x1d9)]&&CQ['has']('add')){for(let _0x2b25f8=0x0;_0x2b25f8<_0xb91ab0[_0x595eec(0x215)];_0x2b25f8++)_0xb91ab0[_0x2b25f8]=await _0x209fe6('add',{..._0xb91ab0[_0x2b25f8]??{}},_0x45e436);}if(_0x2b2aa8['insertParam']){let _0x5d4f75=await _0x2b2aa8[_0x595eec(0x295)]({'body':_0xb91ab0[0x0]??{},'request':_0x45e436});_0xb91ab0=_0xb91ab0[_0x595eec(0x19a)](_0x2a3f55=>({..._0x2a3f55,..._0x5d4f75}));}let _0x2c7638=await _0x55bf6d[_0x595eec(0x15d)](_0xb91ab0);return _0x4ba28e['ok'](_0x2c7638);}let _0x3e5a6d={..._0x456607??{}};if(_0x3e5a6d=await _0x209fe6(_0x595eec(0x15d),_0x3e5a6d,_0x45e436),_0x2b2aa8[_0x595eec(0x295)])Object[_0x595eec(0x1f3)](_0x3e5a6d,await _0x2b2aa8[_0x595eec(0x295)]({'body':_0x3e5a6d,'request':_0x45e436}));let _0x279f1f=await _0x55bf6d[_0x595eec(0x15d)](_0x3e5a6d);return _0x4ba28e['ok'](_0x279f1f);}catch(_0x226fcf){return _0x4ba28e[_0x595eec(0x126)](_0x226fcf instanceof Error?_0x226fcf['message']:_0x595eec(0x1d5));}});if(_0x978788[_0x9223b1(0x17e)](_0x9223b1(0x248))&&_0x55bf6d&&_0x1eec1c)_0x55f941(_0x9223b1(0x2a5),_0x9223b1(0x183),'delete',async({body:_0xb808ce,request:_0x11f205})=>{const _0x20bf2e=_0x9223b1;try{let _0x159bde=_0xb808ce,_0x31b0f0=Array[_0x20bf2e(0x2dc)](_0x159bde)?_0x159bde:await _0x209fe6(_0x20bf2e(0x248),{..._0x159bde??{}},_0x11f205),_0x48f267=a3(_0x31b0f0);if(!_0x48f267[_0x20bf2e(0x215)])return _0x4ba28e['fail']('ids\x20required');let _0x54f1f8=!Array[_0x20bf2e(0x2dc)](_0x31b0f0)&&!!_0x31b0f0[_0x20bf2e(0x1c5)];return await _0x55bf6d[_0x20bf2e(0x248)](_0x48f267,{'force':_0x54f1f8}),_0x4ba28e['ok']();}catch(_0x589fd1){return _0x4ba28e['fail'](_0x589fd1 instanceof Error?_0x589fd1['message']:'delete\x20failed');}});if(_0x978788[_0x9223b1(0x17e)](_0x9223b1(0x1e8))&&_0x55bf6d&&_0x1eec1c)_0x55f941(_0x9223b1(0x2a5),'/update',_0x9223b1(0x1e8),async({body:_0x414dd3,request:_0x17a8af})=>{const _0x175b88=_0x9223b1;try{let _0x3a7d1e=_0x414dd3;if(Array[_0x175b88(0x2dc)](_0x3a7d1e)){let _0x298164=_0x3a7d1e;if(_0x2b2aa8[_0x175b88(0x1d9)]&&CQ['has'](_0x175b88(0x1e8))){for(let _0x3ebaa8=0x0;_0x3ebaa8<_0x298164['length'];_0x3ebaa8++)_0x298164[_0x3ebaa8]=await _0x209fe6(_0x175b88(0x1e8),{..._0x298164[_0x3ebaa8]??{}},_0x17a8af);}let _0x4d94a9=await _0x55bf6d[_0x175b88(0x1e8)](_0x298164);return _0x4ba28e['ok'](_0x4d94a9);}let _0x2eeb6a=await _0x209fe6('update',{..._0x3a7d1e??{}},_0x17a8af);if(_0x2eeb6a['id']==null)return _0x4ba28e[_0x175b88(0x126)]('id\x20required');let _0x2372a2=await _0x55bf6d[_0x175b88(0x1e8)](_0x2eeb6a);return _0x4ba28e['ok'](_0x2372a2);}catch(_0x2b0366){return _0x4ba28e[_0x175b88(0x126)](_0x2b0366 instanceof Error?_0x2b0366[_0x175b88(0x25c)]:'update\x20failed');}});if(_0x978788[_0x9223b1(0x17e)](_0x9223b1(0x17b))&&_0x55bf6d)_0x55f941('get','/info',_0x9223b1(0x17b),async({query:_0x24aa73})=>{const _0xe31cec=_0x9223b1;try{let _0x5233cb=_0x24aa73?.['id'];if(_0x5233cb==null||_0x5233cb==='')return _0x4ba28e[_0xe31cec(0x126)]('id\x20required');let _0x530915=await _0x55bf6d[_0xe31cec(0x17b)](_0x5233cb);return _0x4ba28e['ok'](o4(_0x530915,_0x2b2aa8[_0xe31cec(0x19e)]));}catch(_0x364cd5){return _0x4ba28e['fail'](_0x364cd5 instanceof Error?_0x364cd5['message']:'info\x20failed');}});if(_0x978788[_0x9223b1(0x17e)](_0x9223b1(0x202))&&_0x55bf6d&&_0x2edce0)_0x55f941('post',_0x9223b1(0x214),_0x9223b1(0x202),async({body:_0x3e6e1b,request:_0x497e46})=>{const _0x1799a7=_0x9223b1;try{let _0x11e578=_0x3e6e1b??{},_0x58cfa3=_0x2b2aa8['listQueryOp']??{},_0x5ca609={'onlyTrashed':_0x11e578[_0x1799a7(0x1ed)]===!0x0,'withTrashed':_0x11e578['withTrashed']===!0x0};if(W0(_0x58cfa3)){let _0x36a8a0=await j0(_0x2edce0,_0x11e578,_0x58cfa3,{'request':_0x497e46,'mode':_0x1799a7(0x202),'trash':_0x5ca609});return _0x4ba28e['ok'](_0x36a8a0);}let {where:_0x257f0a,orderBySql:_0x106dcb}=await l(_0x2edce0,_0x11e578,_0x58cfa3,_0x497e46),_0x3cb2d3=await _0x55bf6d[_0x1799a7(0x202)](_0x257f0a,{'orderBy':_0x106dcb,..._0x5ca609});return _0x4ba28e['ok'](_0x3cb2d3);}catch(_0x3bf6a8){return _0x4ba28e[_0x1799a7(0x126)](_0x3bf6a8 instanceof Error?_0x3bf6a8[_0x1799a7(0x25c)]:_0x1799a7(0x180));}});if(_0x978788[_0x9223b1(0x17e)](_0x9223b1(0x1a1))&&_0x55bf6d&&_0x2edce0)_0x55f941(_0x9223b1(0x2a5),'/page',_0x9223b1(0x1a1),async({body:_0x250f93,request:_0x397445})=>{const _0x577780=_0x9223b1;try{let _0x3cb9d5=_0x250f93??{},_0x349f01=_0x2b2aa8['pageQueryOp']??{},_0x358598={'onlyTrashed':_0x3cb9d5[_0x577780(0x1ed)]===!0x0,'withTrashed':_0x3cb9d5[_0x577780(0x19f)]===!0x0};if(W0(_0x349f01)){let _0x4e99c2=await j0(_0x2edce0,_0x3cb9d5,_0x349f01,{'request':_0x397445,'mode':_0x577780(0x1a1),'trash':_0x358598});return _0x4ba28e['ok'](_0x4e99c2);}let {where:_0x345630,orderBySql:_0x47ab5a}=await l(_0x2edce0,_0x3cb9d5,_0x349f01,_0x397445),_0x1f7941=await _0x55bf6d[_0x577780(0x1a1)]({'page':Number(_0x3cb9d5[_0x577780(0x1a1)]??0x1),'size':Number(_0x3cb9d5[_0x577780(0x256)]??0x14),'where':_0x345630,'orderBy':_0x47ab5a,..._0x358598});return _0x4ba28e['ok'](_0x1f7941);}catch(_0xc2073){return _0x4ba28e[_0x577780(0x126)](_0xc2073 instanceof Error?_0xc2073[_0x577780(0x25c)]:'page\x20failed');}});if(_0x978788[_0x9223b1(0x17e)](_0x9223b1(0x1ea))&&_0x55bf6d&&_0x1eec1c)_0x55f941(_0x9223b1(0x2a5),'/restore',_0x9223b1(0x1ea),async({body:_0x5d01f5,request:_0x499d25})=>{const _0x13e28c=_0x9223b1;try{let _0x47645c=_0x5d01f5,_0xbf4a9f=Array[_0x13e28c(0x2dc)](_0x47645c)?_0x47645c:await _0x209fe6(_0x13e28c(0x1ea),{..._0x47645c??{}},_0x499d25),_0x155991=a3(_0xbf4a9f);if(!_0x155991['length'])return _0x4ba28e[_0x13e28c(0x126)](_0x13e28c(0x1ca));return await _0x55bf6d[_0x13e28c(0x1ea)](_0x155991),_0x4ba28e['ok']();}catch(_0x1e0f71){return _0x4ba28e[_0x13e28c(0x126)](_0x1e0f71 instanceof Error?_0x1e0f71['message']:_0x13e28c(0x1a5));}});if(_0x4cd606[_0x9223b1(0x215)]){if(!_0x2b2aa8[_0x9223b1(0x152)])throw Error('[CRUD]\x20'+_0x1dfebe[_0x9223b1(0x1d8)]['name']+_0x9223b1(0x1c6));let _0x397ca2=K[_0x9223b1(0x133)](_0x2b2aa8[_0x9223b1(0x152)]);for(let _0x105cd1 of _0x4cd606){let _0x1733b9=_0x397ca2[_0x105cd1];if(typeof _0x1733b9!=='function')throw Error(_0x9223b1(0x1b7)+_0x2b2aa8[_0x9223b1(0x152)][_0x9223b1(0x11d)]+'.'+_0x105cd1+_0x9223b1(0x2d3));let _0xc710f2=_0x1733b9[_0x9223b1(0x18b)](_0x397ca2);_0x55f941(_0x9223b1(0x2a5),'/'+_0x105cd1,_0x105cd1,async({body:_0x184bc7})=>{const _0x5f0932=_0x9223b1;try{let _0x3dadc9=await _0xc710f2(_0x184bc7);return _0x4ba28e['ok'](_0x3dadc9);}catch(_0x25b6b8){return _0x4ba28e[_0x5f0932(0x126)](_0x25b6b8 instanceof Error?_0x25b6b8[_0x5f0932(0x25c)]:_0x105cd1+_0x5f0932(0x261));}});}}return _0x4d7a09;};import{join as _0x485594}from'path';import{pathToFileURL as _0x2fde81}from'url';var t4=_0x7a147b(0x255),e4=[{'pattern':_0x7a147b(0x285),'side':_0x7a147b(0x14e)},{'pattern':_0x7a147b(0x204),'side':'app'}];async function Q5(_0x3447dd,_0xcd68e,_0x198443){const _0x47e084=_0x7a147b;zQ({'module':y3(_0xcd68e),'side':_0x198443,'file':_0xcd68e});try{await import(_0x2fde81(_0x485594(_0x3447dd,_0xcd68e))[_0x47e084(0x1b9)]);}finally{zQ(null);}}async function HQ(){const _0x49d6ce=_0x7a147b;let _0x49f031=process['cwd'](),_0xbf1f9a=await X0(t4,{'cwd':_0x49f031});for(let _0x5557d9 of _0xbf1f9a)await import(_0x2fde81(_0x485594(_0x49f031,_0x5557d9))[_0x49d6ce(0x1b9)]);let _0x4e8b6f=0x0;for(let {pattern:_0x4e6ab2,side:_0x45abed}of e4){let _0x2745d2=await X0(_0x4e6ab2,{'cwd':_0x49f031});_0x4e8b6f+=_0x2745d2['length'];for(let _0x1afe10 of _0x2745d2)await Q5(_0x49f031,_0x1afe10,_0x45abed);}f0(L0),console[_0x49d6ce(0x28d)](_0x49d6ce(0x2c8)),console[_0x49d6ce(0x28d)](_0x49d6ce(0x23f)+_0xbf1f9a[_0x49d6ce(0x215)]+'\x20service,\x20'+_0x4e8b6f+_0x49d6ce(0x1ce));}import{join as _0x308572}from'path';import{createPinoLogger as _0x5f0301}from'@bogeychan/elysia-logger';import _0x9c1e88 from'pino-pretty';import{createWriteStream as _0xaade20,mkdirSync as _0x1c850c,readdirSync as _0x1079cc,unlinkSync as _0x4424a4}from'fs';import{join as _0x419529}from'path';import{Writable as _0x47b1d0}from'stream';var W5=/^(\d{4}-\d{2}-\d{2})\.log$/;function IQ(_0x457205=new Date()){const _0x1b6700=_0x7a147b;let _0xb28dcf=_0x457205[_0x1b6700(0x148)](),_0x5eda36=String(_0x457205[_0x1b6700(0x284)]()+0x1)[_0x1b6700(0x2cd)](0x2,'0'),_0x1123d3=String(_0x457205['getDate']())[_0x1b6700(0x2cd)](0x2,'0');return _0xb28dcf+'-'+_0x5eda36+'-'+_0x1123d3;}function Q1(_0x5dd60f,_0x299167){const _0x1c0b6c=_0x7a147b;let _0x29186e=new Date();_0x29186e[_0x1c0b6c(0x1e1)](_0x29186e['getDate']()-_0x299167);let _0x32f615=IQ(_0x29186e);for(let _0xa7dcd3 of _0x1079cc(_0x5dd60f)){let _0x130064=_0xa7dcd3['match'](W5);if(!_0x130064||_0x130064[0x1]>=_0x32f615)continue;_0x4424a4(_0x419529(_0x5dd60f,_0xa7dcd3));}}function $1(_0x88463c,_0x4f1392){const _0x5b7f7b=_0x7a147b;return _0xaade20(_0x419529(_0x88463c,_0x4f1392+_0x5b7f7b(0x156)),{'flags':'a'});}function J1(_0x3f6881,_0x139286=0x1e){_0x1c850c(_0x3f6881,{'recursive':!0x0}),Q1(_0x3f6881,_0x139286);let _0x2624b2=IQ(),_0x13126e=$1(_0x3f6881,_0x2624b2);return new _0x47b1d0({'write'(_0x5de2dd,_0x1c3b7b,_0x1b712b){const _0x59d2d5=_0x576b;let _0x19b8de=IQ();if(_0x19b8de!==_0x2624b2)_0x13126e[_0x59d2d5(0x1c3)](),_0x2624b2=_0x19b8de,_0x13126e=$1(_0x3f6881,_0x2624b2),Q1(_0x3f6881,_0x139286);_0x13126e['write'](_0x5de2dd,_0x1b712b);},'final'(_0x394866){const _0x40c5b0=_0x576b;_0x13126e[_0x40c5b0(0x1c3)](_0x394866);}});}var c0;function F5(){const _0x43e912=_0x7a147b;let _0x13f81b=D[_0x43e912(0x286)]??{},_0x1af9ee=_0x13f81b['level']??'info';if(_0x13f81b['transport']==='file'){let _0x477af3=_0x308572(process[_0x43e912(0x1bc)](),_0x13f81b[_0x43e912(0x167)]??_0x43e912(0x286)),_0x5da714=_0x13f81b[_0x43e912(0x2c2)]??0x1e;return _0x5f0301({'level':_0x1af9ee,'stream':J1(_0x477af3,_0x5da714)});}return _0x5f0301({'level':_0x1af9ee,'stream':_0x9c1e88({'colorize':!0x0,'translateTime':'SYS:standard','ignore':_0x43e912(0x15b)})});}function R(){if(!c0)c0=F5();return c0;}function RQ(){c0=void 0x0;}class s{['info'](_0x5aed7c,..._0x50e7a5){const _0x523306=_0x7a147b;let _0x1b9d34=R();if(_0x50e7a5[_0x523306(0x215)])_0x1b9d34[_0x523306(0x17b)]({'args':_0x50e7a5},_0x5aed7c);else _0x1b9d34[_0x523306(0x17b)](_0x5aed7c);}[_0x7a147b(0x139)](_0x31457f,..._0x4c053d){const _0x5f1c70=_0x7a147b;let _0x3c6ad0=R();if(_0x4c053d[_0x5f1c70(0x215)])_0x3c6ad0[_0x5f1c70(0x139)]({'args':_0x4c053d},_0x31457f);else _0x3c6ad0[_0x5f1c70(0x139)](_0x31457f);}['debug'](_0x361bd3,..._0x4466a7){const _0x4d616d=_0x7a147b;let _0x537365=R();if(_0x4466a7['length'])_0x537365[_0x4d616d(0x2de)]({'args':_0x4466a7},_0x361bd3);else _0x537365[_0x4d616d(0x2de)](_0x361bd3);}['error'](_0x4116fd,..._0x1169f8){const _0x103b98=_0x7a147b;let _0x5c3905=R();if(_0x4116fd instanceof Error){_0x5c3905['error'](_0x4116fd);return;}if(_0x1169f8[0x0]instanceof Error){_0x5c3905[_0x103b98(0x128)](_0x1169f8[0x0],_0x4116fd);return;}if(_0x1169f8[_0x103b98(0x215)])_0x5c3905[_0x103b98(0x128)]({'args':_0x1169f8},_0x4116fd);else _0x5c3905[_0x103b98(0x128)](_0x4116fd);}}class Y0 extends Error{['statusCode'];[_0x7a147b(0x134)];constructor(_0x2b5f5f,_0x2f4dc6){const _0x378e45=_0x7a147b;super(_0x2b5f5f),(this[_0x378e45(0x11d)]=_0x378e45(0x2bb),this[_0x378e45(0x201)]=_0x2f4dc6?.[_0x378e45(0x201)]??0xc8,this[_0x378e45(0x134)]=_0x2f4dc6?.[_0x378e45(0x134)]??C['ERROR']);}}function U0(_0x188e90){return _0x188e90 instanceof Y0;}function qQ(){const _0x1cf52f=_0x7a147b;R(),K[_0x1cf52f(0x189)](s,new s());}var j5=_0x7a147b(0x21d);function H5(){const _0xd8bea4=_0x7a147b;if(!process['stdout']['isTTY'])return;process[_0xd8bea4(0x1fa)][_0xd8bea4(0x190)]('\x1B[2J\x1B[H');}function V1(){const _0x575224=_0x7a147b;H5();let _0x4e5436=P(),_0x2dda87=D['system']?.[_0x575224(0x24d)]??0xbb9,_0x2c4ade=D[_0x575224(0x277)]?.[_0x575224(0x185)]??'/docs',_0x4be295=_0x575224(0x26d)+_0x2dda87;if(console[_0x575224(0x28d)](j5),console[_0x575224(0x28d)](_0x575224(0x162)+_0x4e5436),_0x4e5436===_0x575224(0x2c9))console[_0x575224(0x28d)](_0x575224(0x2cb)+_0x4be295),console[_0x575224(0x28d)](_0x575224(0x1ee)+_0x4be295+(_0x2c4ade[_0x575224(0x24f)]('/')?_0x2c4ade:'/'+_0x2c4ade));}import{access as _0x2dd99d}from'fs/promises';import{join as _0x723791}from'path';import{pathToFileURL as _0x5ac112}from'url';async function Y5(_0x4eb3fd){try{return await _0x2dd99d(_0x4eb3fd),!0x0;}catch{return!0x1;}}async function v(_0x330032){const _0x2d952d=_0x7a147b;let _0x3133e4=_0x723791(process[_0x2d952d(0x1bc)](),_0x330032);if(!await Y5(_0x3133e4)){console[_0x2d952d(0x139)](_0x2d952d(0x2d9)+_0x330032);return;}return await import(_0x5ac112(_0x3133e4)[_0x2d952d(0x1b9)]);}async function W1(){const _0x5305ed=_0x7a147b;let _0x42d366=await v(_0x5305ed(0x21a));if(_0x42d366?.['Db']?.['bootstrap'])await _0x42d366['Db']['bootstrap']();let _0x1b8a97=await v(_0x5305ed(0x17f));if(_0x1b8a97?.[_0x5305ed(0x1c2)]?.[_0x5305ed(0x2d6)])await _0x1b8a97[_0x5305ed(0x1c2)][_0x5305ed(0x2d6)]();let _0x1b254e=await v(_0x5305ed(0x1be));if(_0x1b254e?.['Auth']?.[_0x5305ed(0x2d6)])await _0x1b254e[_0x5305ed(0x1e2)][_0x5305ed(0x2d6)]();}async function z1(){const _0x567845=_0x7a147b;let _0x24084b=await v(_0x567845(0x2c0));if(_0x24084b?.['Task']?.[_0x567845(0x2d6)])await _0x24084b['Task'][_0x567845(0x2d6)]();}async function G1(){const _0x8df67b=_0x7a147b;let _0x5ba17c=await v(_0x8df67b(0x173));if(_0x5ba17c?.[_0x8df67b(0x1b6)]?.['bootstrap'])await _0x5ba17c[_0x8df67b(0x1b6)][_0x8df67b(0x2d6)]();}async function F1(){const _0x5ea1e4=_0x7a147b;let _0x56626e=await v('src/lib/module/index.ts');if(_0x56626e?.[_0x5ea1e4(0x1bb)]?.['bootstrap'])await _0x56626e[_0x5ea1e4(0x1bb)]['bootstrap']();}async function j1(){const _0xb21beb=_0x7a147b;let _0x108d90=await v(_0xb21beb(0x2c0));if(_0x108d90?.['Task']?.[_0xb21beb(0x168)])await _0x108d90[_0xb21beb(0x174)][_0xb21beb(0x168)]();}async function H1(){const _0x4bbff6=_0x7a147b;let _0xb6bbae=await v(_0x4bbff6(0x17f));if(_0xb6bbae?.[_0x4bbff6(0x1c2)]?.[_0x4bbff6(0x168)])await _0xb6bbae[_0x4bbff6(0x1c2)][_0x4bbff6(0x168)]();let _0x1b8f50=await v(_0x4bbff6(0x21a));if(_0x1b8f50?.['Db']?.[_0x4bbff6(0x168)])await _0x1b8f50['Db']['close']();}async function B1(_0x40281c){const _0x4b5dad=_0x7a147b;let _0x23c51e=await v('src/middleware/index.ts');if(!_0x23c51e)return _0x40281c;let _0x5a82c4=_0x40281c;if(_0x23c51e[_0x4b5dad(0x28e)])_0x5a82c4=_0x5a82c4['use'](_0x23c51e[_0x4b5dad(0x28e)]);if(_0x23c51e['adminAuth'])_0x5a82c4=_0x5a82c4[_0x4b5dad(0x205)](_0x23c51e['adminAuth']);if(_0x23c51e[_0x4b5dad(0x225)])_0x5a82c4=_0x5a82c4['use'](_0x23c51e[_0x4b5dad(0x225)]);if(_0x23c51e['microApps'])_0x5a82c4=_0x5a82c4[_0x4b5dad(0x205)](_0x23c51e[_0x4b5dad(0x1f6)]);if(_0x23c51e[_0x4b5dad(0x251)])_0x5a82c4=_0x5a82c4[_0x4b5dad(0x205)](_0x23c51e[_0x4b5dad(0x251)]);return _0x5a82c4;}function M1(_0x132eab){const _0x458089=_0x7a147b;if(!(D[_0x458089(0x274)]??{})[_0x458089(0x1a2)])return _0x132eab;return _0x132eab['onRequest'](({request:_0x3b601f})=>{G3(z3(_0x3b601f));});}function L1(_0x50e4d4){const _0xb80184=_0x7a147b;return _0x50e4d4[_0xb80184(0x247)](({error:_0x27e965,set:_0x35dc4b,code:_0x236227})=>{const _0x2f8da7=_0xb80184;let _0x2d4dc4=R();if(U0(_0x27e965))return _0x2d4dc4[_0x2f8da7(0x128)]({'code':_0x27e965[_0x2f8da7(0x134)]},_0x27e965[_0x2f8da7(0x25c)]),_0x35dc4b[_0x2f8da7(0x219)]=_0x27e965['statusCode'],{'code':_0x27e965['code'],'message':_0x27e965[_0x2f8da7(0x25c)]};if(_0x236227===_0x2f8da7(0x1fd)){let _0x1c7be8=_0x27e965 instanceof Error?_0x27e965[_0x2f8da7(0x25c)]:'validation\x20failed';return _0x2d4dc4['error']({'code':_0x236227},_0x1c7be8),_0x35dc4b[_0x2f8da7(0x219)]=0x1a6,{'code':C[_0x2f8da7(0x2d0)],'message':_0x1c7be8};}if(_0x236227==='NOT_FOUND')return _0x35dc4b[_0x2f8da7(0x219)]=0x194,{'code':C[_0x2f8da7(0x2d0)],'message':'not\x20found'};let _0x1d3473=_0x27e965 instanceof Error?_0x27e965:Error(String(_0x27e965));return _0x2d4dc4[_0x2f8da7(0x128)](_0x1d3473),_0x35dc4b[_0x2f8da7(0x219)]=0x1f4,{'code':C['ERROR'],'message':P()===_0x2f8da7(0x2c9)?_0x1d3473[_0x2f8da7(0x25c)]:_0x2f8da7(0x1dd)};});}function Y1(_0x1ee44e){const _0x4f3b19=_0x7a147b;let _0x2d9c82=R();return _0x1ee44e[_0x4f3b19(0x205)](_0x2d9c82[_0x4f3b19(0x145)]({'autoLogging':{'ignore':_0x1b53d4=>Boolean(_0x1b53d4[_0x4f3b19(0x188)])}}));}import{openapi as _0x232a47}from'@elysiajs/openapi';function U1(_0x5ba301){const _0x4aaca6=_0x7a147b;let _0x4cd4d5=D[_0x4aaca6(0x277)]??{'enable':!0x1};if(_0x4cd4d5['enable']===!0x1)return _0x5ba301;let _0x39dab9=_0x4cd4d5[_0x4aaca6(0x185)]??'/docs',{tags:_0x411355,tagGroups:_0x5ed744}=O3(),_0x4ec5dc=_0x4cd4d5[_0x4aaca6(0x234)]??{},_0x578510=_0x4cd4d5[_0x4aaca6(0x280)]??{};return _0x5ba301['use'](_0x232a47({'path':_0x39dab9,'documentation':{..._0x4ec5dc,'tags':[..._0x4ec5dc['tags']??[],..._0x411355],'x-tagGroups':_0x5ed744},'scalar':{..._0x578510,'layout':_0x578510[_0x4aaca6(0x25b)]??_0x4aaca6(0x1e0),'operationTitleSource':_0x578510[_0x4aaca6(0x291)]??_0x4aaca6(0x1f7)}}));}var D0,SQ=!0x1,EQ=!0x1,PQ=!0x1,D1=[],T1=[],N1=[];async function T5(){if(PQ)return;PQ=!0x0,await HQ();}function N5(){return M1(L1(Y1(new _0x25c3d7())));}function A5(_0x4ad629){D1['push'](_0x4ad629);}function K5(_0xf76150){T1['push'](_0xf76150);}function _5(_0x3c093a){const _0x37768a=_0x7a147b;N1[_0x37768a(0x1ab)](_0x3c093a);}async function C5(){const _0x307e0b=_0x7a147b;if(SQ)throw Error(_0x307e0b(0x216));let _0x53a363=N5();_0x53a363=await B1(_0x53a363);for(let _0x4edec0 of N1)_0x53a363=_0x4edec0(_0x53a363);await T5(),_0x53a363=U1(_0x53a363),await W1();for(let _0x41e801 of D1)await _0x41e801();qQ(),ZQ(),await G1(),await F1(),await z1(),_0x53a363=f3(_0x53a363,D);let _0x15ce32=D['system']?.['port']??0xbb9;return _0x53a363[_0x307e0b(0x1ac)](_0x15ce32),D0=_0x53a363,SQ=!0x0,V1(),I5(),D0;}async function A1(){const _0x1ed42e=_0x7a147b;if(!D0)return;for(let _0x478f48 of T1)await _0x478f48();await j1(),await H1(),await D0[_0x1ed42e(0x16b)](),D0=void 0x0,SQ=!0x1,PQ=!0x1,JQ(),RQ(),f0(void 0x0),EQ=!0x1;}function I5(){const _0x3d9168=_0x7a147b;if(EQ)return;EQ=!0x0;for(let _0x1a522f of[_0x3d9168(0x250),_0x3d9168(0x26c)])process[_0x3d9168(0x1e7)](_0x1a522f,async()=>{const _0x131bc5=_0x3d9168;await A1(),process[_0x131bc5(0x12e)](0x0);});}var p0={'bootstrap':A5,'shutdown':K5,'use':_5,'start':C5,'stop':A1};async function K1(_0x29106e){const _0x2ca27c=_0x7a147b;if(_0x29106e)await _0x29106e({'App':p0});return p0[_0x2ca27c(0x22e)]();}import{getTableColumns as _0x4a9ced,getTableName as _0x665989}from'drizzle-orm';import{getTableColumns as _0x4cfee5,getTableName as _0x15de97}from'drizzle-orm';import{integer as _0x1e8b5e,serial as _0xfe38f1,timestamp as _0x1ca8b6}from'drizzle-orm/pg-core';var xQ={'id':_0xfe38f1('id')[_0x7a147b(0x27a)](),'createTime':_0x1ca8b6(_0x7a147b(0x1c4),{'withTimezone':!0x0})[_0x7a147b(0x165)]()[_0x7a147b(0x193)](),'updateTime':_0x1ca8b6(_0x7a147b(0x220),{'withTimezone':!0x0})[_0x7a147b(0x165)]()[_0x7a147b(0x193)]()['$onUpdate'](()=>new Date()),'deletedAt':_0x1ca8b6(_0x7a147b(0x1a6),{'withTimezone':!0x0}),'tenantId':_0x1e8b5e(_0x7a147b(0x1bf))},T0={'id':'ID','createTime':'\u521B\u5EFA\u65F6\u95F4','updateTime':_0x7a147b(0x1ae),'deletedAt':_0x7a147b(0x20d),'tenantId':'\u79DF\u6237'},vQ=new WeakMap(),I1=new Set();function kQ(_0x5a4273,_0x5aa52d={}){const _0x1e0937=_0x7a147b;return I1['add'](_0x5a4273),vQ['set'](_0x5a4273,{...T0,...vQ[_0x1e0937(0x133)](_0x5a4273)||{},..._0x5aa52d}),_0x5a4273;}function _0x576b(_0x2a386d,_0x4abf85){_0x2a386d=_0x2a386d-0x11c;const _0x1517fc=_0x1517();let _0x576b2e=_0x1517fc[_0x2a386d];if(_0x576b['lkVcnn']===undefined){var _0x3d5a81=function(_0x14da56){const _0x3c7187='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2508dc='',_0x2276d5='';for(let _0x25c3d7=0x0,_0x90472f,_0x20ed3e,_0x5a31b8=0x0;_0x20ed3e=_0x14da56['charAt'](_0x5a31b8++);~_0x20ed3e&&(_0x90472f=_0x25c3d7%0x4?_0x90472f*0x40+_0x20ed3e:_0x20ed3e,_0x25c3d7++%0x4)?_0x2508dc+=String['fromCharCode'](0xff&_0x90472f>>(-0x2*_0x25c3d7&0x6)):0x0){_0x20ed3e=_0x3c7187['indexOf'](_0x20ed3e);}for(let _0x1f232b=0x0,_0x126776=_0x2508dc['length'];_0x1f232b<_0x126776;_0x1f232b++){_0x2276d5+='%'+('00'+_0x2508dc['charCodeAt'](_0x1f232b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2276d5);};_0x576b['DvytbY']=_0x3d5a81,_0x576b['SqCxub']={},_0x576b['lkVcnn']=!![];}const _0x376d32=_0x1517fc[0x0],_0x2652d4=_0x2a386d+_0x376d32,_0x1d8643=_0x576b['SqCxub'][_0x2652d4];return!_0x1d8643?(_0x576b2e=_0x576b['DvytbY'](_0x576b2e),_0x576b['SqCxub'][_0x2652d4]=_0x576b2e):_0x576b2e=_0x1d8643,_0x576b2e;}function t(_0x4c9970){const _0x177764=_0x7a147b;return vQ[_0x177764(0x133)](_0x4c9970)||{};}function P5(){return[...I1];}function _1(_0x405e3c){const _0x2e6f89=_0x7a147b;if(!/^[A-Za-z_][A-Za-z0-9_]*$/[_0x2e6f89(0x2a0)](_0x405e3c))throw Error(_0x2e6f89(0x243)+_0x405e3c);return'\x22'+_0x405e3c+'\x22';}function C1(_0x5afccf){const _0x411936=_0x7a147b;return _0x5afccf[_0x411936(0x22c)](/'/g,'\x27\x27');}async function fQ(_0x3b37e7){const _0x4c5e29=_0x7a147b;let _0x25e5b4=P5();if(!_0x25e5b4['length'])return 0x0;let _0x3176be=new Map(),_0x489a37=[];for(let _0x37b349 of _0x25e5b4){let _0x368b1f;try{_0x368b1f=_0x15de97(_0x37b349);}catch{continue;}let _0x47aa46=_0x4cfee5(_0x37b349),_0x2fca1b=t(_0x37b349),_0x5b5cda=new Map();for(let [_0x4cfcec,_0x295a5a]of Object[_0x4c5e29(0x27d)](_0x2fca1b)){if(!_0x295a5a||!(_0x4cfcec in _0x47aa46))continue;_0x5b5cda['set'](_0x4cfcec,_0x295a5a);}if(!_0x5b5cda['size'])continue;_0x3176be['set'](_0x368b1f,_0x5b5cda),_0x489a37['push'](_0x368b1f);}if(!_0x489a37[_0x4c5e29(0x215)])return 0x0;let _0x46e29d=_0x489a37[_0x4c5e29(0x19a)](_0x5b394d=>'\x27'+C1(_0x5b394d)+'\x27')[_0x4c5e29(0x17d)](','),_0x113cca=await _0x3b37e7['unsafe']('\x0a\x20\x20\x20\x20SELECT\x0a\x20\x20\x20\x20\x20\x20c.relname\x20AS\x20table_name,\x0a\x20\x20\x20\x20\x20\x20a.attname\x20AS\x20column_name,\x0a\x20\x20\x20\x20\x20\x20col_description(a.attrelid,\x20a.attnum)\x20AS\x20comment\x0a\x20\x20\x20\x20FROM\x20pg_catalog.pg_class\x20c\x0a\x20\x20\x20\x20JOIN\x20pg_catalog.pg_namespace\x20n\x20ON\x20n.oid\x20=\x20c.relnamespace\x0a\x20\x20\x20\x20JOIN\x20pg_catalog.pg_attribute\x20a\x20ON\x20a.attrelid\x20=\x20c.oid\x0a\x20\x20\x20\x20WHERE\x20c.relkind\x20=\x20\x27r\x27\x0a\x20\x20\x20\x20\x20\x20AND\x20n.nspname\x20=\x20current_schema()\x0a\x20\x20\x20\x20\x20\x20AND\x20a.attnum\x20>\x200\x0a\x20\x20\x20\x20\x20\x20AND\x20NOT\x20a.attisdropped\x0a\x20\x20\x20\x20\x20\x20AND\x20c.relname\x20IN\x20('+_0x46e29d+_0x4c5e29(0x2c7)),_0x86ff2e=new Map();for(let _0x51005b of _0x113cca||[]){if(!_0x51005b[_0x4c5e29(0x2df)]||!_0x51005b[_0x4c5e29(0x182)])continue;_0x86ff2e[_0x4c5e29(0x189)](_0x51005b['table_name']+'.'+_0x51005b['column_name'],_0x51005b[_0x4c5e29(0x1eb)]??null);}let _0x21a9ba=0x0;for(let [_0x1a9907,_0x25ba0a]of _0x3176be)for(let [_0xa836b6,_0x51eea4]of _0x25ba0a){let _0xbbfd7a=_0x1a9907+'.'+_0xa836b6;if(_0x86ff2e[_0x4c5e29(0x133)](_0xbbfd7a)===_0x51eea4)continue;await _0x3b37e7[_0x4c5e29(0x2e4)]('COMMENT\x20ON\x20COLUMN\x20'+_1(_0x1a9907)+'.'+_1(_0xa836b6)+_0x4c5e29(0x275)+C1(_0x51eea4)+'\x27'),_0x21a9ba++;}return _0x21a9ba;}var v5={'admin':_0x7a147b(0x184),'app':_0x7a147b(0x1f5)};function k5(_0x5b0150){return w(v5[_0x5b0150]);}function f5(_0x4da514){const _0x3f2c89=_0x7a147b;let _0x115ed0=_0x4da514[_0x3f2c89(0x22c)](/^\/+|\/+$/g,'')[_0x3f2c89(0x272)]('/');return _0x115ed0[_0x115ed0[_0x3f2c89(0x215)]-0x1]||_0x4da514||_0x3f2c89(0x281);}function w5(_0x456699){const _0x30b036=_0x7a147b;return _0x456699['split']('_')['filter'](Boolean)[_0x30b036(0x19a)](_0x26bcbb=>_0x26bcbb[_0x30b036(0x26a)](0x0)[_0x30b036(0x2b0)]()+_0x26bcbb[_0x30b036(0x137)](0x1))['join']('')+_0x30b036(0x195);}function d0(_0x2c3713){const _0x2de189=_0x7a147b;if(!_0x2c3713?.[_0x2de189(0x215)])return[];return _0x2c3713[_0x2de189(0x19a)](_0x5d3b73=>{const _0x5140b5=_0x2de189;if(typeof _0x5d3b73!==_0x5140b5(0x191)){let _0x505f09=_0x5d3b73[_0x5140b5(0x2a4)];return{..._0x5d3b73,'column':_0x505f09[_0x5140b5(0x17e)]('.')?_0x505f09:'a.'+_0x505f09};}return _0x5d3b73['includes']('.')?_0x5d3b73:'a.'+_0x5d3b73;});}function b5(_0x6aa969){const _0x2ea708=_0x7a147b;return{'keyWordLikeFields':d0(_0x6aa969?.[_0x2ea708(0x267)]),'fieldEq':d0(_0x6aa969?.[_0x2ea708(0x24e)]),'fieldLike':d0(_0x6aa969?.[_0x2ea708(0x228)]),'fieldArray':d0(_0x6aa969?.['fieldArray']),'fieldRange':(_0x6aa969?.['fieldRange']??[])[_0x2ea708(0x19a)](_0x3de901=>({..._0x3de901,'column':_0x3de901[_0x2ea708(0x2a4)][_0x2ea708(0x17e)]('.')?_0x3de901[_0x2ea708(0x2a4)]:'a.'+_0x3de901[_0x2ea708(0x2a4)]}))};}function y5(_0x171b35,_0x2aa863){const _0x1c3464=_0x7a147b;for(let _0x1052f2 of _0x2aa863){if(typeof _0x1052f2===_0x1c3464(0x191)||!_0x1052f2[_0x1c3464(0x186)])continue;let _0x14aefb=_0x1052f2[_0x1c3464(0x2a4)][_0x1c3464(0x17e)]('.')?_0x1052f2[_0x1c3464(0x2a4)][_0x1c3464(0x272)]('.')[_0x1c3464(0x131)]():_0x1052f2[_0x1c3464(0x2a4)],_0x29b8aa=_0x171b35[_0x1c3464(0x153)](_0x33ae15=>_0x33ae15[_0x1c3464(0x17c)]===_0x14aefb);if(_0x29b8aa)_0x29b8aa[_0x1c3464(0x186)]=_0x1052f2['dict'];}}function g5(_0x715308){const _0x1dec3b=_0x7a147b;if(!_0x715308||typeof _0x715308!==_0x1dec3b(0x241))return[];try{let _0x2ef368=_0x4a9ced(_0x715308),_0xef9ae0=t(_0x715308),_0x4425d2=[];for(let [_0x7ecf88,_0x4add6b]of Object[_0x1dec3b(0x27d)](_0x2ef368)){if(_0x7ecf88===_0x1dec3b(0x1bf))continue;let _0x549504=_0x4add6b;_0x4425d2[_0x1dec3b(0x1ab)]({'propertyName':_0x7ecf88,'type':String(_0x549504[_0x1dec3b(0x1f0)]??_0x549504[_0x1dec3b(0x2e5)]??_0x1dec3b(0x191)),'length':_0x549504[_0x1dec3b(0x215)]!=null?String(_0x549504['length']):void 0x0,'nullable':_0x549504['notNull']!==!0x0,'source':'a.'+_0x7ecf88,'comment':_0xef9ae0[_0x7ecf88]});}let _0x2d311e=new Set([_0x1dec3b(0x1c4),_0x1dec3b(0x220),'deletedAt']),_0x5a2989=_0x4425d2[_0x1dec3b(0x26f)](_0x38a429=>!_0x2d311e['has'](_0x38a429[_0x1dec3b(0x17c)])),_0x41df43=_0x4425d2['filter'](_0x451ac4=>_0x2d311e[_0x1dec3b(0x2e8)](_0x451ac4['propertyName']));return[..._0x5a2989,..._0x41df43];}catch{return[];}}function h5(_0x5e2cdf){const _0x495c87=_0x7a147b;if(!_0x5e2cdf||typeof _0x5e2cdf!==_0x495c87(0x241))return;try{return w5(_0x665989(_0x5e2cdf));}catch{return;}}function u5(_0x7a954d,_0x45b662){const _0x517a8b=_0x7a147b;let _0x461fda=[],_0x3d6f30=new Set(),_0x4fdfd9=_0x59c500=>{const _0x126a55=_0x576b;let _0x510826=_0x59c500[_0x126a55(0x265)]+':'+_0x59c500[_0x126a55(0x185)];if(_0x3d6f30[_0x126a55(0x2e8)](_0x510826))return;_0x3d6f30['add'](_0x510826),_0x461fda[_0x126a55(0x1ab)](_0x59c500);};for(let _0x3cd221 of _0x7a954d[_0x517a8b(0x27f)]){let _0x51005a=d(_0x3cd221[_0x517a8b(0x185)],_0x7a954d[_0x517a8b(0x294)]),_0x5c4220=_0x51005a['startsWith']('/')?_0x51005a:'/'+_0x51005a,_0x454f94=VQ(_0x5c4220);_0x4fdfd9({'method':_0x3cd221['method'][_0x517a8b(0x211)](),'path':_0x5c4220,'summary':_0x3cd221[_0x517a8b(0x1f7)]??'','dts':{},'tag':'','prefix':_0x45b662,'ignoreToken':Boolean(_0x3cd221[_0x517a8b(0x187)]),'ignorePerms':Boolean(_0x3cd221['ignorePerms']),'perms':r(_0x3cd221,_0x7a954d,_0x454f94)??[]});}for(let _0x36b070 of _0x7a954d[_0x517a8b(0x150)]?.[_0x517a8b(0x231)]??[]){let _0x3134a1='/'+_0x36b070;_0x4fdfd9({'method':_0x36b070===_0x517a8b(0x17b)?_0x517a8b(0x133):_0x517a8b(0x2a5),'path':_0x3134a1,'summary':m0[_0x36b070]??_0x36b070,'dts':{},'tag':'','prefix':_0x45b662,'ignoreToken':!0x1,'ignorePerms':!0x1,'perms':r({},_0x7a954d,_0x36b070)??[]});}for(let _0x3df76c of _0x7a954d[_0x517a8b(0x150)]?.['serviceApis']??[]){let _0x33f7f3='/'+_0x3df76c;_0x4fdfd9({'method':'post','path':_0x33f7f3,'summary':_0x3df76c,'dts':{},'tag':'','prefix':_0x45b662,'ignoreToken':!0x1,'ignorePerms':!0x1,'perms':r({},_0x7a954d,_0x3df76c)??[]});}return _0x461fda;}function m5(_0x3959d6){const _0x4b5271=_0x7a147b;let _0x6669e3=b(k5(_0x3959d6['side']),_0x3959d6['prefix']),_0x219283=f5(_0x3959d6[_0x4b5271(0x294)]),_0x425ec5=_0x3959d6[_0x4b5271(0x150)]?.[_0x4b5271(0x14b)],_0x536016=g5(_0x425ec5),_0x4f3157=b5(_0x3959d6[_0x4b5271(0x150)]?.[_0x4b5271(0x24b)]);return y5(_0x536016,_0x4f3157[_0x4b5271(0x24e)]),{'module':_0x3959d6[_0x4b5271(0x130)],'side':_0x3959d6['side'],'prefix':_0x6669e3,'name':h5(_0x425ec5),'info':{'type':{'name':_0x219283,'description':_0x3959d6['description']??_0x219283}},'api':u5(_0x3959d6,_0x6669e3),'columns':_0x536016,'pageQueryOp':_0x4f3157,'pageColumns':_0x536016};}function c5(_0x361e97){const _0x1d9411=_0x7a147b;let _0x345a15={};for(let _0xcea7a3 of _0x361e97){let _0x4e4fb9=_0x345a15[_0xcea7a3[_0x1d9411(0x130)]]??[];_0x4e4fb9['push'](_0xcea7a3),_0x345a15[_0xcea7a3['module']]=_0x4e4fb9;}return _0x345a15;}function N0(){const _0x5027ee=_0x7a147b;return Boolean(D[_0x5027ee(0x2dd)]?.[_0x5027ee(0x1ba)]);}function R1(_0x3eb2cd){const _0xbd242e=_0x7a147b;if(!N0())return{};return c5(O(_0x3eb2cd)[_0xbd242e(0x19a)](m5));}var wQ={'controllers':O,'admin':()=>R1(_0x7a147b(0x14e)),'app':()=>R1(_0x7a147b(0x230)),'enabled':N0};import'reflect-metadata';var n0=_0x7a147b(0x1c7);function p5(_0x44806d,_0x2920a4){return b(_0x44806d,_0x2920a4==='/'?'':_0x2920a4);}function d5(_0x22320d){const _0x1268c5=_0x7a147b;if(_0x22320d==null)return;return Array[_0x1268c5(0x2dc)](_0x22320d)?_0x22320d:[_0x22320d];}function n5(_0x468934,_0xfe5332){const _0x44c9ce=_0x7a147b;let _0xa7abee=Reflect[_0x44c9ce(0x290)](n0,_0x468934)??[];_0xa7abee[_0x44c9ce(0x1ab)](_0xfe5332),Reflect[_0x44c9ce(0x2c3)](n0,_0xa7abee,_0x468934);}function bQ(_0x34a956){const _0x1159b7=_0x7a147b;let _0x492eea=_0x34a956===_0x1159b7(0x1f9)?_0x1159b7(0x222):_0x34a956==='body'?'Body':_0x1159b7(0x1e5);return _0xc31a7d=>(_0xaab03f,_0x31ce7b,_0x4961b7)=>{const _0x3bd506=_0x1159b7;if(_0x31ce7b===void 0x0)throw Error(_0x3bd506(0x138)+_0x492eea+_0x3bd506(0x1a8));let _0x4067d2=_0xaab03f['constructor'];Y3(_0x4067d2,String(_0x31ce7b),{'index':_0x4961b7,'source':_0x34a956,'schema':_0xc31a7d});};}function l5(_0x1c57f6){let {api:_0x3e380a,entity:_0x57268a,service:_0x15c438,serviceApis:_0x21e024,before:_0xcdf0dc,pageQueryOp:_0x3b256a,listQueryOp:_0x23ca91,insertParam:_0x5ba5f8,infoIgnoreProperty:_0x2ab481}=_0x1c57f6;if(_0x3e380a==null&&_0x57268a==null&&_0x15c438==null&&_0x21e024==null&&_0xcdf0dc==null&&_0x3b256a==null&&_0x23ca91==null&&_0x5ba5f8==null&&_0x2ab481==null)return;return{'api':_0x3e380a,'entity':_0x57268a,'service':_0x15c438,'serviceApis':_0x21e024,'before':_0xcdf0dc,'pageQueryOp':_0x3b256a,'listQueryOp':_0x23ca91,'insertParam':_0x5ba5f8,'infoIgnoreProperty':_0x2ab481};}function yQ(_0x32de75=''){const _0xa87ece=_0x7a147b;let _0xc48831=typeof _0x32de75===_0xa87ece(0x191),_0x141bcf=_0xc48831?{'prefix':_0x32de75}:_0x32de75;return _0x802c82=>{const _0x2d41d5=_0xa87ece;f({'token':_0x802c82,'useClass':_0x802c82,'scope':'singleton'});let _0x3c346c=b3(),_0x505238=_0xc48831&&_0x32de75===''||!_0xc48831&&(_0x141bcf[_0x2d41d5(0x294)]==null||_0x141bcf['prefix']===''),_0x48d280=w(_0x505238&&_0x3c346c?.[_0x2d41d5(0x2e2)]?g3(_0x3c346c['file']):_0x141bcf[_0x2d41d5(0x294)]??''),_0x5e33ea=Reflect[_0x2d41d5(0x290)](n0,_0x802c82)??[],_0x2556af=l5(_0x141bcf);L3({'token':_0x802c82,'prefix':_0x48d280,'module':_0x141bcf[_0x2d41d5(0x130)]??_0x3c346c?.[_0x2d41d5(0x130)]??'unknown','side':_0x141bcf[_0x2d41d5(0x262)]??_0x3c346c?.[_0x2d41d5(0x262)]??_0x2d41d5(0x14e),'description':_0x141bcf[_0x2d41d5(0x13e)],'file':_0x3c346c?.['file'],'middleware':d5(_0x141bcf['middleware']),'crud':_0x2556af,'routes':_0x5e33ea[_0x2d41d5(0x19a)](_0x1ece47=>{const _0x4443a7=_0x2d41d5;let _0x54c871=U3(_0x802c82,_0x1ece47['handler']),_0x2cacd0=x0(_0x54c871),_0xffa6bf=[..._0x1ece47[_0x4443a7(0x1aa)]??[],..._3(_0x802c82,_0x1ece47[_0x4443a7(0x177)])];return{..._0x1ece47,'path':p5(_0x48d280,_0x1ece47[_0x4443a7(0x185)][_0x4443a7(0x24f)]('/')?_0x1ece47['path'][_0x4443a7(0x137)](0x1):_0x1ece47['path']),'params':_0x54c871,'body':_0x2cacd0?.['body'],'query':_0x2cacd0?.[_0x4443a7(0x263)],'routeParams':_0x2cacd0?.[_0x4443a7(0x1f9)],'public':N3(_0x802c82,_0x1ece47[_0x4443a7(0x177)]),'ignorePerms':E3(_0x802c82,_0x1ece47[_0x4443a7(0x177)]),'perms':R3(_0x802c82,_0x1ece47[_0x4443a7(0x177)]),'middleware':_0xffa6bf[_0x4443a7(0x215)]?_0xffa6bf:void 0x0};})}),Reflect[_0x2d41d5(0x2ac)](n0,_0x802c82),D3(_0x802c82),A3(_0x802c82),C3(_0x802c82),q3(_0x802c82),P3(_0x802c82);};}function gQ(..._0x128719){return(_0x3258ec,_0x442da3)=>{const _0x579d3a=_0x576b;let _0x475cf3=_0x3258ec[_0x579d3a(0x19d)];K3(_0x475cf3,String(_0x442da3),_0x128719);};}function A0(_0x54065d){return(_0x2e2a01='',_0x12d1fe)=>(_0x38dcee,_0x56647c)=>{const _0x3bd320=_0x576b;let _0x27ecdf=_0x38dcee[_0x3bd320(0x19d)];n5(_0x27ecdf,{'method':_0x54065d,'path':_0x2e2a01,'handler':String(_0x56647c),'summary':_0x12d1fe?.[_0x3bd320(0x1f7)]});};}function hQ(){return(_0x328275,_0x285b11)=>{let _0x5152cf=_0x328275['constructor'];T3(_0x5152cf,String(_0x285b11));};}function uQ(..._0x38531d){return(_0x58c11b,_0x4103a8)=>{const _0x4123de=_0x576b;let _0x28b3cf=_0x58c11b[_0x4123de(0x19d)];I3(_0x28b3cf,String(_0x4103a8),_0x38531d);};}function mQ(){return(_0x20916d,_0x204020)=>{const _0x41909a=_0x576b;let _0x2eacbe=_0x20916d[_0x41909a(0x19d)];S3(_0x2eacbe,String(_0x204020));};}var cQ=bQ('body'),pQ=bQ(_0x7a147b(0x263)),dQ=bQ(_0x7a147b(0x1f9)),nQ=A0('GET'),lQ=A0(_0x7a147b(0x2af)),iQ=A0(_0x7a147b(0x14f)),sQ=A0(_0x7a147b(0x2b8)),oQ=A0('PATCH');class k{[_0x7a147b(0x1a3)];[_0x7a147b(0x1c1)];[_0x7a147b(0x278)];[_0x7a147b(0x2d5)];async[_0x7a147b(0x212)](_0x4fcaec,_0x1a317f,_0x11c9a0,_0x440d48){const _0x4651f1=_0x7a147b;this[_0x4651f1(0x1a3)]=_0x4fcaec,this[_0x4651f1(0x1c1)]=_0x1a317f,this[_0x4651f1(0x278)]=_0x440d48?.['cache'],this[_0x4651f1(0x2d5)]=_0x440d48?.['pluginService'],await this[_0x4651f1(0x1d0)]();}async['ready'](){}}import{existsSync as _0x5ba785,readFileSync as _0x4a256b}from'fs';import{createRequire as _0x40846f}from'module';import{join as _0x4324b0}from'path';import{createHash as _0x21ab76}from'crypto';import{homedir as _0x291952}from'os';import{join as _0x53221b}from'path';function K0(){const _0x163a47=_0x7a147b;let _0x188b2b=_0x21ab76(_0x163a47(0x11e))[_0x163a47(0x1e8)](String(D[_0x163a47(0x127)]??_0x163a47(0x2dd)))['digest'](_0x163a47(0x1c8));return _0x53221b(_0x291952(),_0x163a47(0x2d4),_0x188b2b);}function _0(){const _0x2b331e=_0x7a147b;return _0x53221b(K0(),_0x2b331e(0x2b7));}function e(){const _0x4564fc=_0x7a147b;return _0x53221b(K0(),_0x4564fc(0x23e));}function g(_0x1ceb1b){return _0x53221b(e(),_0x1ceb1b);}var r5=_0x40846f(import.meta.url);function a5(_0x4b9bab){if(_0x4b9bab==='vome-plugin-runtime')return{'BasePlugin':k};return r5(_0x4b9bab);}function rQ(_0x582ddc){const _0x4b21b8=_0x7a147b;try{let _0x2badcb=_0x582ddc[_0x4b21b8(0x22c)](/export\s+const\s+Plugin\s*=/g,_0x4b21b8(0x1ad))[_0x4b21b8(0x22c)](/export\s+\{[^}]*\bPlugin\b[^}]*\};?/g,'')[_0x4b21b8(0x22c)](/export\s+const\s+handlers\s*=/g,_0x4b21b8(0x135))['replace'](/export\s+\{[^}]*\bhandlers\b[^}]*\};?/g,'')['replace'](/export\s+class\s+(\w+)/g,_0x4b21b8(0x1d1))['replace'](/export\s+default\s+/g,'')[_0x4b21b8(0x22c)](/import\s+\{?\s*BasePlugin\s*\}?\s*from\s*['"][^'"]+['"];?/g,'')[_0x4b21b8(0x22c)](/import\s+BasePlugin\s+from\s*['"][^'"]+['"];?/g,'')[_0x4b21b8(0x22c)](/require\(\s*['"]vome-plugin-runtime['"]\s*\)/g,_0x4b21b8(0x20c)),_0x192972=Function('BasePlugin',_0x4b21b8(0x271),_0x4b21b8(0x130),_0x4b21b8(0x254),_0x2badcb+'\x0avar\x20__Plugin\x20=\x20(typeof\x20Plugin\x20!==\x20\x27undefined\x27)\x0a\x20\x20?\x20Plugin\x0a\x20\x20:\x20(module.exports\x20&&\x20(module.exports.Plugin\x20||\x20module.exports.default\x20||\x20module.exports));\x0aif\x20(typeof\x20__Plugin\x20===\x20\x27undefined\x27\x20||\x20__Plugin\x20===\x20null)\x20{\x0a\x20\x20throw\x20new\x20Error(\x27missing\x20export\x20Plugin\x27);\x0a}\x0areturn\x20__Plugin;'),_0x48313c={'exports':{}};return _0x192972(k,a5,_0x48313c,_0x48313c[_0x4b21b8(0x254)]);}catch(_0x507449){throw Error(_0x4b21b8(0x178)+(_0x507449 instanceof Error?_0x507449[_0x4b21b8(0x25c)]:String(_0x507449)));}}function aQ(_0x5b7755){const _0x1367ed=_0x7a147b;let _0x2feeb0=_0x4324b0(g(_0x5b7755),_0x1367ed(0x29c),_0x1367ed(0x2a6));if(_0x5ba785(_0x2feeb0))return _0x4a256b(_0x2feeb0,'utf8');let _0xbe45bf=_0x4324b0(_0(),_0x5b7755);if(!_0x5ba785(_0xbe45bf))return;try{return JSON[_0x1367ed(0x1a9)](_0x4a256b(_0xbe45bf,_0x1367ed(0x2db)))[_0x1367ed(0x21e)]?.['data'];}catch{return;}}import{existsSync as _0x221c3a,readFileSync as _0x20d144,readdirSync as _0x4053cc,statSync as _0x1c18e9}from'fs';import{createRequire as _0x36a736}from'module';import{join as _0x4a6b90}from'path';var Q0=new Map(),$2=_0x36a736(import.meta.url);function Z2(_0x1a60d6){if(_0x1a60d6==='vome-plugin-runtime')return{'BasePlugin':k};return $2(_0x1a60d6);}function O1(_0x233912){const _0x1cd0cb=_0x7a147b;return(_0x233912[_0x1cd0cb(0x24f)]('/')?_0x233912:'/'+_0x233912)['replace'](/\/+$/,'')||'/';}function x1(_0x555ded){return _0x555ded['toUpperCase']();}function J2(_0x3269d0){const _0x431b67=_0x7a147b;return _0x3269d0[_0x431b67(0x22c)](/export\s+const\s+handlers\s*=/g,_0x431b67(0x135))[_0x431b67(0x22c)](/export\s+\{[^}]*\bhandlers\b[^}]*\};?/g,'')['replace'](/export\s+default\s+\{/g,_0x431b67(0x207))['replace'](/export\s+const\s+Plugin\s*=/g,_0x431b67(0x1ad))[_0x431b67(0x22c)](/export\s+\{[^}]*\bPlugin\b[^}]*\};?/g,'')['replace'](/export\s+class\s+(\w+)/g,_0x431b67(0x1d1))[_0x431b67(0x22c)](/import\s+\{?\s*BasePlugin\s*\}?\s*from\s*['"][^'"]+['"];?/g,'')[_0x431b67(0x22c)](/import\s+BasePlugin\s+from\s*['"][^'"]+['"];?/g,'')[_0x431b67(0x22c)](/require\(\s*['"]vome-plugin-runtime['"]\s*\)/g,'({\x20BasePlugin\x20})');}function o0(_0x4d2649,_0x265eeb=!0x0){const _0x1002e2=_0x7a147b;let _0x309b70=J2(_0x4d2649),_0x3fbd48=Function(_0x1002e2(0x159),'require','module','exports',_0x309b70+_0x1002e2(0x171)),_0x1312b9={'exports':{}},_0x4c6c8a=_0x3fbd48(k,Z2,_0x1312b9,_0x1312b9[_0x1002e2(0x254)]);if(!_0x4c6c8a||typeof _0x4c6c8a!==_0x1002e2(0x241)){if(_0x265eeb)throw Error(_0x1002e2(0x292));return{};}return _0x4c6c8a;}var $0={'get'(_0x5a52be){const _0x3c8b57=_0x7a147b;return Q0[_0x3c8b57(0x133)](_0x5a52be);},'list'(){const _0xd6be0d=_0x7a147b;return[...Q0['entries']()][_0xd6be0d(0x19a)](([_0xd499ea,_0x22d44a])=>({'key':_0xd499ea,'manifest':_0x22d44a[_0xd6be0d(0x289)],'routes':_0x22d44a[_0xd6be0d(0x27f)]}));},'load'(_0x3b6efc){const _0x1de80b=_0x7a147b;if(!_0x3b6efc||!/^[a-zA-Z0-9_-]+$/[_0x1de80b(0x2a0)](_0x3b6efc))throw Error(_0x1de80b(0x217)+_0x3b6efc);let _0x2836c6=g(_0x3b6efc),_0x1100fd=_0x4a6b90(_0x2836c6,_0x1de80b(0x157));if(!_0x221c3a(_0x1100fd))throw Error(_0x1de80b(0x1f8)+_0x3b6efc);let _0x3e2750=JSON[_0x1de80b(0x1a9)](_0x20d144(_0x1100fd,_0x1de80b(0x2db))),_0x2334f3=(_0x3e2750[_0x1de80b(0x27f)]??[])[_0x1de80b(0x19a)](_0x1c7b7b=>({..._0x1c7b7b,'method':x1(_0x1c7b7b['method']),'path':O1(_0x1c7b7b[_0x1de80b(0x185)])})),_0x26a922={},_0x1443aa=_0x4a6b90(_0x2836c6,_0x1de80b(0x29c),'index.js');if(_0x221c3a(_0x1443aa)){let _0x13f827=_0x20d144(_0x1443aa,'utf8');_0x26a922=o0(_0x13f827,_0x2334f3['length']>0x0);for(let _0x5e6c88 of _0x2334f3)if(typeof _0x26a922[_0x5e6c88['handler']]!==_0x1de80b(0x200))throw Error(_0x1de80b(0x144)+_0x3b6efc+'\x20缺少\x20handler:\x20'+_0x5e6c88[_0x1de80b(0x177)]);}else{if(_0x2334f3[_0x1de80b(0x215)])throw Error(_0x1de80b(0x144)+_0x3b6efc+_0x1de80b(0x125));}return Q0[_0x1de80b(0x189)](_0x3b6efc,{'manifest':_0x3e2750,'handlers':_0x26a922,'routes':_0x2334f3}),Q0[_0x1de80b(0x133)](_0x3b6efc);},'unload'(_0x1a0fc1){const _0x1e550a=_0x7a147b;Q0[_0x1e550a(0x248)](_0x1a0fc1);},async 'dispatch'(_0x1349cd,_0x1ea905,_0x2157f9,_0x3d0335){const _0x5086a4=_0x7a147b;let _0x8c06a6=Q0[_0x5086a4(0x133)](_0x1349cd);if(!_0x8c06a6)return{'ok':!0x1,'status':0x194,'message':_0x5086a4(0x24c)};let _0x7685cc=x1(_0x1ea905),_0x52eb22=O1(_0x2157f9),_0x42ab69=_0x8c06a6[_0x5086a4(0x27f)][_0x5086a4(0x153)](_0x50abcd=>_0x50abcd[_0x5086a4(0x265)]===_0x7685cc&&_0x50abcd['path']===_0x52eb22);if(!_0x42ab69)return{'ok':!0x1,'status':0x194,'message':_0x5086a4(0x1f1)};let _0x49b189=_0x8c06a6[_0x5086a4(0x1b3)][_0x42ab69[_0x5086a4(0x177)]];if(typeof _0x49b189!==_0x5086a4(0x200))return{'ok':!0x1,'status':0x1f4,'message':'handler\x20缺失:\x20'+_0x42ab69[_0x5086a4(0x177)]};try{return{'ok':!0x0,'data':await _0x49b189(_0x3d0335),'route':_0x42ab69};}catch(_0x2c84bb){return{'ok':!0x1,'status':0x1f4,'message':_0x2c84bb instanceof Error?_0x2c84bb[_0x5086a4(0x25c)]:String(_0x2c84bb),'route':_0x42ab69};}},'bootstrap'(){const _0x1bd009=_0x7a147b;let _0x36fe1c=e();if(!_0x221c3a(_0x36fe1c))return;for(let _0x1639aa of _0x4053cc(_0x36fe1c)){let _0x1940c8=_0x4a6b90(_0x36fe1c,_0x1639aa);if(!_0x1c18e9(_0x1940c8)['isDirectory']())continue;if(!_0x221c3a(_0x4a6b90(_0x1940c8,_0x1bd009(0x157))))continue;try{this[_0x1bd009(0x282)](_0x1639aa),console[_0x1bd009(0x28d)]('[Module]\x20loaded\x20'+_0x1639aa);}catch(_0x854529){console[_0x1bd009(0x139)]('[Module]\x20load\x20failed\x20'+_0x1639aa+':',_0x854529 instanceof Error?_0x854529[_0x1bd009(0x25c)]:_0x854529);}}}};import{existsSync as _0x448a36,statSync as _0x2cdc9e}from'fs';import{join as _0x80ee97,normalize as _0x5bc2de,sep as _0x50c3c1}from'path';import{Elysia as _0x8b52c1}from'elysia';var z2=_0x7a147b(0x17a);function G2(_0x2aca3b){const _0x60c53=_0x7a147b;let _0x1b4314=_0x2aca3b[_0x60c53(0x211)]();if(_0x1b4314[_0x60c53(0x18d)](_0x60c53(0x2e0)))return _0x60c53(0x2b2);if(_0x1b4314[_0x60c53(0x18d)](_0x60c53(0x1b4))||_0x1b4314[_0x60c53(0x18d)]('.mjs'))return _0x60c53(0x123);if(_0x1b4314[_0x60c53(0x18d)](_0x60c53(0x2ab)))return _0x60c53(0x258);if(_0x1b4314[_0x60c53(0x18d)]('.json'))return _0x60c53(0x28f);if(_0x1b4314[_0x60c53(0x18d)](_0x60c53(0x1b8)))return _0x60c53(0x297);if(_0x1b4314[_0x60c53(0x18d)]('.png'))return _0x60c53(0x143);if(_0x1b4314[_0x60c53(0x18d)](_0x60c53(0x13d))||_0x1b4314[_0x60c53(0x18d)]('.jpeg'))return _0x60c53(0x279);if(_0x1b4314['endsWith'](_0x60c53(0x18c)))return _0x60c53(0x208);if(_0x1b4314[_0x60c53(0x18d)](_0x60c53(0x2b5)))return _0x60c53(0x28c);if(_0x1b4314['endsWith'](_0x60c53(0x273)))return _0x60c53(0x209);return _0x60c53(0x252);}var $3=new _0x8b52c1({'name':'micro-apps-static'})[_0x7a147b(0x133)](z2+'/*',({params:_0x209581,set:_0x40125f})=>{const _0x2c3398=_0x7a147b;let _0x51efee=String(_0x209581['*']||'')[_0x2c3398(0x272)]('/')[_0x2c3398(0x26f)](Boolean);if(!_0x51efee[_0x2c3398(0x215)])return _0x40125f['status']=0x194,_0x2c3398(0x1da);let _0x4de754=_0x51efee[0x0];if(!/^[a-zA-Z0-9_-]+$/[_0x2c3398(0x2a0)](_0x4de754))return _0x40125f[_0x2c3398(0x219)]=0x190,_0x2c3398(0x2c6);let _0x172b91=_0x80ee97(g(_0x4de754),_0x2c3398(0x29f));if(!_0x448a36(_0x172b91)||!_0x2cdc9e(_0x172b91)[_0x2c3398(0x160)]())return _0x40125f['status']=0x194,_0x2c3398(0x1b5);let _0x312682=_0x51efee['slice'](0x1)[_0x2c3398(0x17d)]('/')||_0x2c3398(0x16a);if(_0x312682[_0x2c3398(0x18d)]('/'))_0x312682+=_0x2c3398(0x16a);let _0x5d7cb3=_0x5bc2de(_0x80ee97(_0x172b91,_0x312682));if(!_0x5d7cb3[_0x2c3398(0x24f)](_0x172b91+_0x50c3c1)&&_0x5d7cb3!==_0x172b91)return _0x40125f[_0x2c3398(0x219)]=0x193,_0x2c3398(0x18e);let _0x31351b=_0x5d7cb3;if(_0x448a36(_0x31351b)&&_0x2cdc9e(_0x31351b)['isDirectory']())_0x31351b=_0x80ee97(_0x31351b,_0x2c3398(0x16a));if(!_0x448a36(_0x31351b)||!_0x2cdc9e(_0x31351b)[_0x2c3398(0x1d4)]())return _0x40125f[_0x2c3398(0x219)]=0x194,_0x2c3398(0x1da);return _0x40125f[_0x2c3398(0x2b1)][_0x2c3398(0x1de)]=G2(_0x31351b),_0x40125f[_0x2c3398(0x2b1)][_0x2c3398(0x26e)]='no-cache',_0x40125f[_0x2c3398(0x2b1)][_0x2c3398(0x239)]='*',Bun[_0x2c3398(0x2e2)](_0x31351b);});import{Elysia as _0x3b5d4a}from'elysia';function j2(_0x1f3133){const _0x389e79=_0x7a147b;return{'code':C[_0x389e79(0x2cf)],'message':_0x389e79(0x176),'data':_0x1f3133??null};}function r0(_0x3a9053,_0x1469c7=C['ERROR']){return{'code':_0x1469c7,'message':_0x3a9053};}async function v1(_0x449244){const _0x49e466=_0x7a147b;let _0x42c5d4=_0x449244[_0x49e466(0x1f9)][_0x49e466(0x20b)];if(!_0x42c5d4||!/^[a-zA-Z0-9_-]+$/[_0x49e466(0x2a0)](_0x42c5d4))return _0x449244[_0x49e466(0x189)]['status']=0x190,r0(_0x49e466(0x12b));let _0x4f78f9=('/'+String(_0x449244['params']['*']||''))[_0x49e466(0x22c)](/\/+/g,'/'),_0x1ec92b=_[_0x49e466(0x133)](),_0x3e2a29=$0[_0x49e466(0x133)](_0x42c5d4);if(!_0x3e2a29)return _0x449244['set'][_0x49e466(0x219)]=0x194,r0(_0x49e466(0x1fe));let _0x3e51cc=_0x449244[_0x49e466(0x2d7)]['method'][_0x49e466(0x2b0)](),_0x2f947b=_0x4f78f9[_0x49e466(0x22c)](/\/+$/,'')||'/',_0x4217c5=_0x3e2a29[_0x49e466(0x27f)]['find'](_0x26e7de=>_0x26e7de[_0x49e466(0x265)]===_0x3e51cc&&_0x26e7de[_0x49e466(0x185)]===_0x2f947b);if(!_0x4217c5)return _0x449244['set']['status']=0x194,r0('\u8DEF\u7531\u4E0D\u5B58\u5728');if(_0x4217c5[_0x49e466(0x29b)]&&!_0x1ec92b?.[_0x49e466(0x13b)]){if(!(_0x1ec92b?.[_0x49e466(0x29b)]??[])['includes'](_0x4217c5[_0x49e466(0x29b)]))return _0x449244[_0x49e466(0x219)](0x193);}let _0x37f3bd=await $0[_0x49e466(0x15a)](_0x42c5d4,_0x3e51cc,_0x4f78f9,{'body':_0x449244[_0x49e466(0x27b)],'query':_0x449244['query']??{},'params':_0x449244[_0x49e466(0x1f9)],'headers':_0x449244[_0x49e466(0x2d7)][_0x49e466(0x2b1)],'adminId':_0x1ec92b?.['adminId']});if(!_0x37f3bd['ok'])return _0x449244['set'][_0x49e466(0x219)]=_0x37f3bd[_0x49e466(0x219)],r0(_0x37f3bd['message']);return j2(_0x37f3bd[_0x49e466(0x232)]);}function Z3(_0x578426){const _0x4667f2=_0x7a147b;return new _0x3b5d4a({'name':_0x4667f2(0x296)})[_0x4667f2(0x205)](_0x578426[_0x4667f2(0x1cd)])[_0x4667f2(0x199)](_0x4667f2(0x2a1),v1,{'adminAuth':!0x0})['all']('/admin/ext/:key',v1,{'adminAuth':!0x0});}import{Elysia as _0x411d97}from'elysia';function J3(_0x40dd0e,_0x4a29f6){const _0x3fa298=_0x7a147b;return new _0x411d97({'name':_0x40dd0e+_0x3fa298(0x16d)})[_0x3fa298(0x18a)]({[_0x40dd0e]:{'resolve':_0x4a29f6}})['as'](_0x3fa298(0x2bc));}var k1={'name':'vome-core','version':'0.0.3','description':_0x7a147b(0x1cf),'license':'MIT','type':_0x7a147b(0x130),'files':[_0x7a147b(0x2e1),_0x7a147b(0x14d),_0x7a147b(0x25f),_0x7a147b(0x181)],'main':_0x7a147b(0x1c0),'types':_0x7a147b(0x1af),'exports':{'.':{'types':_0x7a147b(0x1af),'import':'./dist/index.js','default':_0x7a147b(0x1c0)},'./server':{'types':'./dist/server/index.d.ts','import':_0x7a147b(0x237),'default':_0x7a147b(0x237)},'./admin':{'types':_0x7a147b(0x29d),'import':_0x7a147b(0x29d),'default':'./src/admin/index.ts'},'./admin/*':'./src/admin/*','./admin/styles/base.css':_0x7a147b(0x13a),'./typings/*':_0x7a147b(0x129)},'scripts':{'build':'rm\x20-rf\x20dist\x20&&\x20bun\x20build\x20./src/index.ts\x20./src/server/index.ts\x20--outdir\x20./dist\x20--target\x20bun\x20--format\x20esm\x20--external\x20elysia\x20--external\x20reflect-metadata\x20--external\x20drizzle-orm\x20--external\x20drizzle-zod\x20--external\x20@elysiajs/openapi\x20--external\x20@bogeychan/elysia-logger\x20--external\x20pino\x20--external\x20pino-pretty\x20&&\x20tsc\x20-p\x20tsconfig.build.json\x20&&\x20printf\x20\x22%s\x5cn\x22\x20\x22export\x20*\x20from\x20\x27../src/index\x27\x22\x20>\x20dist/index.d.ts\x20&&\x20mkdir\x20-p\x20dist/server\x20&&\x20printf\x20\x22%s\x5cn\x22\x20\x22export\x20*\x20from\x20\x27../../src/server/index\x27\x22\x20>\x20dist/server/index.d.ts','build:obfuscate':'rm\x20-rf\x20dist\x20&&\x20bun\x20build\x20./src/index.ts\x20./src/server/index.ts\x20--outdir\x20./dist\x20--target\x20bun\x20--format\x20esm\x20--minify\x20--external\x20elysia\x20--external\x20reflect-metadata\x20--external\x20drizzle-orm\x20--external\x20drizzle-zod\x20--external\x20@elysiajs/openapi\x20--external\x20@bogeychan/elysia-logger\x20--external\x20pino\x20--external\x20pino-pretty\x20&&\x20tsc\x20-p\x20tsconfig.build.json\x20&&\x20printf\x20\x22%s\x5cn\x22\x20\x22export\x20*\x20from\x20\x27../src/index\x27\x22\x20>\x20dist/index.d.ts\x20&&\x20mkdir\x20-p\x20dist/server\x20&&\x20printf\x20\x22%s\x5cn\x22\x20\x22export\x20*\x20from\x20\x27../../src/server/index\x27\x22\x20>\x20dist/server/index.d.ts\x20&&\x20bun\x20scripts/obfuscate.ts','prepare':'bun\x20run\x20build'},'peerDependencies':{'elysia':_0x7a147b(0x132),'reflect-metadata':'>=0.2.0','drizzle-orm':'>=0.30.0','drizzle-zod':_0x7a147b(0x203),'vue':'>=3.5.0','vue-router':_0x7a147b(0x1f2),'pinia':_0x7a147b(0x12f),'vue-sonner':_0x7a147b(0x12f),'@vueuse/core':_0x7a147b(0x1fb),'clsx':_0x7a147b(0x12f),'tailwind-merge':_0x7a147b(0x12f)},'peerDependenciesMeta':{'drizzle-orm':{'optional':!0x0},'drizzle-zod':{'optional':!0x0},'vue':{'optional':!0x0},'vue-router':{'optional':!0x0},'pinia':{'optional':!0x0},'vue-sonner':{'optional':!0x0},'@vueuse/core':{'optional':!0x0},'clsx':{'optional':!0x0},'tailwind-merge':{'optional':!0x0}},'devDependencies':{'bun-types':_0x7a147b(0x11f),'drizzle-orm':_0x7a147b(0x11f),'drizzle-zod':_0x7a147b(0x1ff),'elysia':'latest','javascript-obfuscator':_0x7a147b(0x124),'reflect-metadata':_0x7a147b(0x2e7),'typescript':_0x7a147b(0x11f)},'dependencies':{'@bogeychan/elysia-logger':_0x7a147b(0x270),'@elysiajs/openapi':_0x7a147b(0x29e),'pino':'^10.3.1','pino-pretty':'^13.1.3'}},n$=k1[_0x7a147b(0x12c)];export{K1 as vome,n$ as version,g0 as tableHasDepartmentId,fQ as syncColumnCommentsToPg,X0 as scanFiles,G0 as resolveTenantScope,h0 as resolveDataScope,aQ as readPluginScript,V0 as q,_0 as pPluginPath,e as pModulesPath,g as pModulePath,K0 as pDataPath,TQ as normalizeHost,DQ as noTenant,NQ as noDataScope,$3 as microApps,rQ as loadPluginClass,o0 as loadModuleHandlers,Z0 as listProviders,O as listControllers,y0 as isTenantEnabled,N0 as isEpsEnabled,U0 as isCommException,i as getRepository,P as getEnv,t as getColumnComments,H0 as entitySchemas,J3 as defineAuthMacro,Z3 as createModuleGateway,kQ as columnComments,xQ as baseColumns,L0 as attachCrudRoutes,q as applyRowScopes,u0 as applyDataScopeWhere,c as appendInjectMeta,D as VomeConfig,gQ as Use,p as ScopeEnum,M0 as Repository,C as RES_CODE,pQ as Query,iQ as Put,hQ as Public,FQ as Provide,lQ as Post,uQ as Perms,oQ as Patch,dQ as Param,$0 as ModuleRegistry,s as Logger,K as Ioc,_Q as InjectRepository,jQ as Inject,mQ as IgnorePerms,nQ as Get,wQ as Eps,sQ as Delete,m as DbStore,yQ as Controller,_ as Context,Y0 as CommException,cQ as Body,a as BaseService,k as BasePlugin,n as BaseController,T0 as BASE_COLUMN_COMMENTS,p0 as App};
|
|
1
|
+
const _0x3c273c=_0x907e;(function(_0x249d2e,_0x3bc0b0){const _0x513238=_0x907e,_0x5ddc19=_0x249d2e();while(!![]){try{const _0x430e6e=parseInt(_0x513238(0x1b5))/0x1+-parseInt(_0x513238(0x1f3))/0x2*(parseInt(_0x513238(0x29b))/0x3)+parseInt(_0x513238(0x149))/0x4*(parseInt(_0x513238(0x18d))/0x5)+-parseInt(_0x513238(0x14f))/0x6+parseInt(_0x513238(0x232))/0x7+-parseInt(_0x513238(0x27b))/0x8+-parseInt(_0x513238(0x2d4))/0x9*(-parseInt(_0x513238(0x15c))/0xa);if(_0x430e6e===_0x3bc0b0)break;else _0x5ddc19['push'](_0x5ddc19['shift']());}catch(_0x19b91e){_0x5ddc19['push'](_0x5ddc19['shift']());}}}(_0x3d5b,0x897e1));import{join as _0x23e91}from'path';import{pathToFileURL as _0xd5f209}from'url';function P(){const _0x3ef593=_0x907e;return Bun[_0x3ef593(0x11a)][_0x3ef593(0x26d)]===_0x3ef593(0x2a6)?_0x3ef593(0x2a6):_0x3ef593(0x185);}function a0(_0x541e73,_0x12a9bc){const _0x38211e=_0x907e;let _0x509df2={..._0x541e73};for(let _0x3de2b1 of Object[_0x38211e(0x242)](_0x12a9bc)){let _0x4c8507=_0x509df2[_0x3de2b1],_0x2e793=_0x12a9bc[_0x3de2b1];if(_0x4c8507&&_0x2e793&&typeof _0x4c8507==='object'&&typeof _0x2e793===_0x38211e(0x2b4)&&!Array[_0x38211e(0x161)](_0x4c8507)&&!Array[_0x38211e(0x161)](_0x2e793)){_0x509df2[_0x3de2b1]=a0(_0x4c8507,_0x2e793);continue;}_0x509df2[_0x3de2b1]=_0x2e793;}return _0x509df2;}async function V1(_0x413204=_0x23e91(process[_0x3c273c(0x1ac)](),_0x3c273c(0x1aa))){const _0x3bbd4a=_0x3c273c;let _0x23b0e9=P()===_0x3bbd4a(0x2a6)?_0x3bbd4a(0x288):_0x3bbd4a(0x284),_0x2c688a=await import(_0xd5f209(_0x23e91(_0x413204,'default.ts'))[_0x3bbd4a(0x1e4)]),_0x2f622d=await import(_0xd5f209(_0x23e91(_0x413204,_0x23b0e9))[_0x3bbd4a(0x1e4)]);return a0(_0x2c688a['default'],_0x2f622d[_0x3bbd4a(0x1a8)]);}var D=await V1();import{Elysia as _0x35d7fc}from'elysia';import{Elysia as _0x920daa}from'elysia';import{AsyncLocalStorage as _0x1b658}from'async_hooks';var C0=new _0x1b658(),W1=!0x1;function w3(_0x537c5b){const _0x53c93b=_0x3c273c;let _0x3437eb=_0x537c5b[_0x53c93b(0x169)][_0x53c93b(0x1eb)](_0x53c93b(0x16e));if(_0x3437eb){let _0x5bd65f=_0x3437eb['split'](',')[0x0]?.['trim']();if(_0x5bd65f)return _0x5bd65f;}return _0x537c5b[_0x53c93b(0x169)][_0x53c93b(0x1eb)]('x-real-ip')?.[_0x53c93b(0x132)]()||_0x537c5b['headers'][_0x53c93b(0x1eb)]('cf-connecting-ip')?.[_0x53c93b(0x132)]()||'';}function z1(_0x5ef952){const _0x2d5aff=_0x3c273c;let _0x371b85=new URL(_0x5ef952[_0x2d5aff(0x140)]),_0x3d5c9e=_0x5ef952['headers'][_0x2d5aff(0x1eb)](_0x2d5aff(0x177))?.['split'](',')[0x0]?.[_0x2d5aff(0x132)](),_0x24a7cb=_0x5ef952[_0x2d5aff(0x169)][_0x2d5aff(0x1eb)](_0x2d5aff(0x243))?.[_0x2d5aff(0x132)]();return{'requestId':crypto[_0x2d5aff(0x2be)](),'method':_0x5ef952[_0x2d5aff(0x137)],'path':_0x371b85['pathname'],'ip':w3(_0x5ef952),'host':_0x3d5c9e||_0x24a7cb||_0x371b85['host'],'startTime':Date['now']()};}function G1(_0x2fe682){const _0x44d00d=_0x3c273c;C0[_0x44d00d(0x297)](_0x2fe682);}function b3(){const _0x3337e4=_0x3c273c;return C0[_0x3337e4(0x12a)]();}function y3(_0x1174c8){const _0x11ee0e=_0x3c273c;let _0x3772f4=C0[_0x11ee0e(0x12a)]();if(!_0x3772f4){if(P()==='dev'&&!W1)W1=!0x0,console['warn'](_0x11ee0e(0x1c9));return;}Object[_0x11ee0e(0x1ed)](_0x3772f4,_0x1174c8);}function g3(_0x3280e2,_0x2573ba){const _0x2fa61f=_0x3c273c;return C0[_0x2fa61f(0x2ab)](_0x3280e2,_0x2573ba);}var _=Object[_0x3c273c(0x1ed)](y3,{'get':b3,'run':g3});import'reflect-metadata';function _0x907e(_0x20aad3,_0xdae356){_0x20aad3=_0x20aad3-0x114;const _0x3d5b0c=_0x3d5b();let _0x907e9f=_0x3d5b0c[_0x20aad3];if(_0x907e['RJpHEL']===undefined){var _0x5bab24=function(_0x2c54fc){const _0xe83bca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x23e91='',_0xd5f209='';for(let _0x35d7fc=0x0,_0x920daa,_0x1b658,_0x4398dd=0x0;_0x1b658=_0x2c54fc['charAt'](_0x4398dd++);~_0x1b658&&(_0x920daa=_0x35d7fc%0x4?_0x920daa*0x40+_0x1b658:_0x1b658,_0x35d7fc++%0x4)?_0x23e91+=String['fromCharCode'](0xff&_0x920daa>>(-0x2*_0x35d7fc&0x6)):0x0){_0x1b658=_0xe83bca['indexOf'](_0x1b658);}for(let _0x11b271=0x0,_0x21d25b=_0x23e91['length'];_0x11b271<_0x21d25b;_0x11b271++){_0xd5f209+='%'+('00'+_0x23e91['charCodeAt'](_0x11b271)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd5f209);};_0x907e['gFCyFg']=_0x5bab24,_0x907e['yeazSZ']={},_0x907e['RJpHEL']=!![];}const _0x1589dd=_0x3d5b0c[0x0],_0xcf154=_0x20aad3+_0x1589dd,_0x275d7d=_0x907e['yeazSZ'][_0xcf154];return!_0x275d7d?(_0x907e9f=_0x907e['gFCyFg'](_0x907e9f),_0x907e['yeazSZ'][_0xcf154]=_0x907e9f):_0x907e9f=_0x275d7d,_0x907e9f;}var I0=new Map();function f(_0xdd4287){const _0x1055d7=_0x3c273c;I0[_0x1055d7(0x13f)](_0xdd4287[_0x1055d7(0x29f)],_0xdd4287);}function e0(_0x38da76){const _0x40bb6f=_0x3c273c;return I0[_0x40bb6f(0x1eb)](_0x38da76);}function Z0(){const _0x583a55=_0x3c273c;let _0x586849=new Set(),_0x5a32ac=[];for(let _0xcdca74 of I0[_0x583a55(0x20c)]()){if(_0x586849['has'](_0xcdca74['useClass']))continue;_0x586849['add'](_0xcdca74[_0x583a55(0x1f0)]),_0x5a32ac[_0x583a55(0x192)](_0xcdca74);}return _0x5a32ac;}function QQ(_0x388790){const _0xa1312a=_0x3c273c;if(typeof _0x388790===_0xa1312a(0x20d)||typeof _0x388790===_0xa1312a(0x29d))return String(_0x388790);return _0x388790[_0xa1312a(0x172)]||_0xa1312a(0x17d);}function c(_0x291d84,_0xbb4024){const _0x31fa0d=_0x3c273c;let _0x326922=Reflect[_0x31fa0d(0x1d3)](_0x31fa0d(0x257),_0x291d84)??[];_0x326922[_0x31fa0d(0x192)](_0xbb4024),Reflect[_0x31fa0d(0x25f)](_0x31fa0d(0x257),_0x326922,_0x291d84);}function F1(_0x6e0568){const _0x1fcef3=_0x3c273c;return Reflect['getMetadata'](_0x1fcef3(0x257),_0x6e0568)??[];}function j1(){const _0x38c82e=_0x3c273c;I0[_0x38c82e(0x203)]();}var p;(_0x5a8936=>{const _0x6b8d4c=_0x3c273c;_0x5a8936[_0x6b8d4c(0x1fa)]='singleton',_0x5a8936['Request']=_0x6b8d4c(0x1a2),_0x5a8936[_0x6b8d4c(0x2c8)]=_0x6b8d4c(0x290);})(p||={});var o=new Map(),R0=new Set(),H1=new WeakMap();function h3(_0x4943db,_0x3398d4){const _0x466557=_0x3c273c;for(let _0xaf4590 of F1(_0x3398d4)){let {propertyKey:_0x1f6a55,token:_0x34929b,resolve:_0x17a0fc}=_0xaf4590;if(!_0x17a0fc&&_0x34929b==null)throw Error(_0x466557(0x28c)+String(_0x1f6a55)+'\x20缺少\x20token\x20或\x20resolve');let _0x1de218=_0x17a0fc?_0x17a0fc():K['get'](_0x34929b);_0x4943db[_0x1f6a55]=_0x1de218;let _0x389845=_0x4943db[_0x466557(0x126)];if(_0x17a0fc&&typeof _0x389845===_0x466557(0x117))_0x389845[_0x466557(0x165)](_0x4943db,_0x1de218);}}function $Q(_0x2fd076){const _0xd4f43b=_0x3c273c;if(R0[_0xd4f43b(0x22e)](_0x2fd076))throw Error('[Ioc]\x20检测到循环依赖:\x20'+_0x2fd076[_0xd4f43b(0x172)]);R0[_0xd4f43b(0x2b1)](_0x2fd076);try{let _0xb28e66=new _0x2fd076();return h3(_0xb28e66,_0x2fd076),_0xb28e66;}finally{R0[_0xd4f43b(0x11c)](_0x2fd076);}}function B1(_0x57de17){let _0x3a07fc=o['get'](_0x57de17);if(_0x3a07fc)return _0x3a07fc;let _0x48e295=$Q(_0x57de17);return o['set'](_0x57de17,_0x48e295),_0x48e295;}function u3(){const _0x100a69=_0x3c273c;let _0x1b0904=_[_0x100a69(0x1eb)]();if(!_0x1b0904)throw Error('[Ioc]\x20Request\x20\u4F5C\u7528\u57DF\u987B\u5728\u8BF7\u6C42\u4E0A\u4E0B\u6587\u4E2D\u89E3\u6790\uFF08\u8BF7\u786E\u8BA4\x20asyncContextManager.enable\uFF09');let _0x18e807=H1[_0x100a69(0x1eb)](_0x1b0904);if(!_0x18e807)_0x18e807=new Map(),H1[_0x100a69(0x13f)](_0x1b0904,_0x18e807);return _0x18e807;}function m3(_0x22ffcb){const _0x381c5b=_0x3c273c;let _0x646de7=u3(),_0x588bbf=_0x646de7[_0x381c5b(0x1eb)](_0x22ffcb);if(_0x588bbf)return _0x588bbf;let _0x37b317=$Q(_0x22ffcb);return _0x646de7['set'](_0x22ffcb,_0x37b317),_0x37b317;}function c3(_0x3a7626,_0x33419c){const _0xb7fb66=_0x3c273c;switch(_0x33419c){case _0xb7fb66(0x28a):return B1(_0x3a7626);case _0xb7fb66(0x290):return $Q(_0x3a7626);case _0xb7fb66(0x1a2):return m3(_0x3a7626);default:throw Error(_0xb7fb66(0x23a)+_0x33419c);}}function p3(_0x19dfa3){let _0x2ef73a=e0(_0x19dfa3);if(!_0x2ef73a)throw Error('[Ioc]\x20未注册的\x20Provider:\x20'+QQ(_0x19dfa3));return _0x2ef73a;}function ZQ(){const _0x15f9e5=_0x3c273c;for(let {useClass:_0x3fcf08,scope:_0x242163}of Z0())if(_0x242163==='singleton')B1(_0x3fcf08);console[_0x15f9e5(0x261)](_0x15f9e5(0x24e)+o[_0x15f9e5(0x294)]+_0x15f9e5(0x1cc));}function d3(_0xa7e148){const _0x16530d=_0x3c273c;let _0x196a14=p3(_0xa7e148);return c3(_0x196a14[_0x16530d(0x1f0)],_0x196a14['scope']);}function n3(_0x3c3118,_0x14766b){const _0x32edd0=_0x3c273c;if(typeof _0x3c3118===_0x32edd0(0x117)){f({'token':_0x3c3118,'useClass':_0x3c3118,'scope':_0x32edd0(0x28a)}),o[_0x32edd0(0x13f)](_0x3c3118,_0x14766b);return;}let _0x2c1f12=_0x14766b?.[_0x32edd0(0x252)];if(!_0x2c1f12||_0x2c1f12===Object)throw Error(_0x32edd0(0x2a3)+QQ(_0x3c3118)+')\x20需要\x20class\x20实例,以便确定\x20useClass');f({'token':_0x3c3118,'useClass':_0x2c1f12,'scope':_0x32edd0(0x28a)}),f({'token':_0x2c1f12,'useClass':_0x2c1f12,'scope':_0x32edd0(0x28a)}),o['set'](_0x2c1f12,_0x14766b);}function JQ(){const _0x52ea37=_0x3c273c;o[_0x52ea37(0x203)](),R0[_0x52ea37(0x203)](),j1();}var K={'get':d3,'set':n3};import'reflect-metadata';var M1=new Map();function L1(_0x42b91a){const _0x3ce810=_0x3c273c;M1[_0x3ce810(0x13f)](_0x42b91a[_0x3ce810(0x29f)],_0x42b91a);}function O(_0x17c9c7){const _0x199283=_0x3c273c;let _0x5313fe=[...M1[_0x199283(0x20c)]()];return _0x17c9c7?_0x5313fe['filter'](_0x2c81d0=>_0x2c81d0[_0x199283(0x27c)]===_0x17c9c7):_0x5313fe;}var q0='vome:controller:route-params',S0=_0x3c273c(0x11f),E0='vome:controller:route-middleware',P0='vome:controller:route-perms',O0=_0x3c273c(0x154);function Y1(_0x24cda8,_0x3b4ef9,_0xaf852){const _0x39137a=_0x3c273c;let _0x198094=Reflect['getMetadata'](q0,_0x24cda8)??{},_0xfc52d6=_0x198094[_0x3b4ef9]??[];_0xfc52d6[_0x39137a(0x192)](_0xaf852),_0x198094[_0x3b4ef9]=_0xfc52d6,Reflect[_0x39137a(0x25f)](q0,_0x198094,_0x24cda8);}function U1(_0xbcc619,_0xca98b3){const _0x36fffe=_0x3c273c;return Reflect[_0x36fffe(0x1d3)](q0,_0xbcc619)?.[_0xca98b3]??[];}function D1(_0x2a7859){const _0x20c646=_0x3c273c;Reflect[_0x20c646(0x1ee)](q0,_0x2a7859);}function T1(_0x3740aa,_0x46b6a0){const _0x5f2218=_0x3c273c;let _0x571005=Reflect['getMetadata'](S0,_0x3740aa)??{};_0x571005[_0x46b6a0]=!0x0,Reflect[_0x5f2218(0x25f)](S0,_0x571005,_0x3740aa);}function N1(_0x4cbe05,_0x3c4f1c){const _0x55ec97=_0x3c273c;return!!Reflect[_0x55ec97(0x1d3)](S0,_0x4cbe05)?.[_0x3c4f1c];}function A1(_0x19bedd){Reflect['deleteMetadata'](S0,_0x19bedd);}function K1(_0x520d26,_0xecd027,_0x3d37d7){const _0x31b13f=_0x3c273c;let _0x377603=Reflect['getMetadata'](E0,_0x520d26)??{};_0x377603[_0xecd027]=[..._0x377603[_0xecd027]??[],..._0x3d37d7],Reflect[_0x31b13f(0x25f)](E0,_0x377603,_0x520d26);}function _1(_0x2e9599,_0x230400){const _0x23371c=_0x3c273c;return Reflect[_0x23371c(0x1d3)](E0,_0x2e9599)?.[_0x230400]??[];}function C1(_0xa70fb3){const _0x199870=_0x3c273c;Reflect[_0x199870(0x1ee)](E0,_0xa70fb3);}function I1(_0xc5642,_0x872997,_0x4b751e){const _0x3215f0=_0x3c273c;let _0x5e9bea=Reflect[_0x3215f0(0x1d3)](P0,_0xc5642)??{};_0x5e9bea[_0x872997]=_0x4b751e,Reflect[_0x3215f0(0x25f)](P0,_0x5e9bea,_0xc5642);}function R1(_0x19776a,_0x38e66e){return Reflect['getMetadata'](P0,_0x19776a)?.[_0x38e66e];}function q1(_0x7fb492){const _0x573503=_0x3c273c;Reflect[_0x573503(0x1ee)](P0,_0x7fb492);}function S1(_0x1e1f2b,_0x1b912c){const _0x3f593a=_0x3c273c;let _0x65e58f=Reflect[_0x3f593a(0x1d3)](O0,_0x1e1f2b)??{};_0x65e58f[_0x1b912c]=!0x0,Reflect[_0x3f593a(0x25f)](O0,_0x65e58f,_0x1e1f2b);}function E1(_0x45e5ef,_0x53ef7f){const _0x461101=_0x3c273c;return!!Reflect[_0x461101(0x1d3)](O0,_0x45e5ef)?.[_0x53ef7f];}function P1(_0x399f83){Reflect['deleteMetadata'](O0,_0x399f83);}function x0(_0x50cec0){const _0x36696e=_0x3c273c;let _0xc34a2={};for(let _0x6cf3ab of _0x50cec0){if(_0x6cf3ab[_0x36696e(0x29e)]===_0x36696e(0x1b0)&&_0x6cf3ab[_0x36696e(0x1cb)]!==void 0x0)_0xc34a2[_0x36696e(0x1b0)]=_0x6cf3ab[_0x36696e(0x1cb)];if(_0x6cf3ab[_0x36696e(0x29e)]===_0x36696e(0x280)&&_0x6cf3ab[_0x36696e(0x1cb)]!==void 0x0)_0xc34a2[_0x36696e(0x280)]=_0x6cf3ab['schema'];if(_0x6cf3ab[_0x36696e(0x29e)]===_0x36696e(0x1ea)&&_0x6cf3ab[_0x36696e(0x1cb)]!==void 0x0)_0xc34a2[_0x36696e(0x1ea)]=_0x6cf3ab[_0x36696e(0x1cb)];}return Object['keys'](_0xc34a2)[_0x36696e(0x1a5)]>0x0?_0xc34a2:void 0x0;}function J0(_0x16c38f,_0x207351){return _0x16c38f+'.'+_0x207351;}function v0(_0x2858b1){const _0x30bdb8=_0x3c273c;if(_0x2858b1==='admin')return 0x0;if(_0x2858b1===_0x30bdb8(0x1c1))return 0x1;return 0x2;}function k0(_0x4f9975){const _0x33aa04=_0x3c273c;let _0x46c0d7=_0x4f9975[_0x33aa04(0x130)]('.');if(_0x46c0d7<0x0)return{'module':_0x4f9975,'side':''};return{'module':_0x4f9975[_0x33aa04(0x15a)](0x0,_0x46c0d7),'side':_0x4f9975['slice'](_0x46c0d7+0x1)};}function O1(){const _0x3040c1=_0x3c273c;let _0x2e937c=O(),_0x1bbbc7=new Map(),_0x2c2a97=new Map();for(let _0xf5523 of _0x2e937c){let _0x17a60f=J0(_0xf5523['module'],_0xf5523[_0x3040c1(0x27c)]);if(!_0x1bbbc7[_0x3040c1(0x22e)](_0x17a60f))_0x1bbbc7[_0x3040c1(0x13f)](_0x17a60f,{'name':_0x17a60f,'description':_0xf5523[_0x3040c1(0x248)]+'\x20'+_0xf5523[_0x3040c1(0x27c)],'x-displayName':_0xf5523['side']});let _0x398b10=_0x2c2a97[_0x3040c1(0x1eb)](_0xf5523[_0x3040c1(0x248)]);if(!_0x398b10)_0x398b10=new Set(),_0x2c2a97[_0x3040c1(0x13f)](_0xf5523[_0x3040c1(0x248)],_0x398b10);_0x398b10[_0x3040c1(0x2b1)](_0x17a60f);}let _0x1f45ad=[..._0x1bbbc7[_0x3040c1(0x20c)]()][_0x3040c1(0x233)]((_0x21980f,_0x1ef85b)=>{const _0x2436e9=_0x3040c1;let _0x3f4921=k0(_0x21980f[_0x2436e9(0x172)]),_0x525046=k0(_0x1ef85b['name']);return _0x3f4921[_0x2436e9(0x248)][_0x2436e9(0x1e5)](_0x525046[_0x2436e9(0x248)])||v0(_0x3f4921['side'])-v0(_0x525046['side']);}),_0x10a1a4=[..._0x2c2a97[_0x3040c1(0x29a)]()][_0x3040c1(0x233)](([_0x189f4a],[_0x5d95e6])=>_0x189f4a[_0x3040c1(0x1e5)](_0x5d95e6))[_0x3040c1(0x2a2)](([_0x5c4305,_0x235af2])=>({'name':_0x5c4305,'tags':[..._0x235af2]['sort']((_0x377664,_0x390745)=>{const _0x36baa1=_0x3040c1;let _0x1ab58d=k0(_0x377664)['side'],_0x41cd97=k0(_0x390745)[_0x36baa1(0x27c)];return v0(_0x1ab58d)-v0(_0x41cd97);})}));return{'tags':_0x1f45ad,'tagGroups':_0x10a1a4};}function w(_0xd1be64){if(!_0xd1be64)return'';return _0xd1be64['startsWith']('/')?_0xd1be64:'/'+_0xd1be64;}function b(..._0x491566){const _0x39b8ab=_0x3c273c;let _0x55d158=_0x491566['map'](_0x515e3b=>w(_0x515e3b)[_0x39b8ab(0x2ae)](/^\/+|\/+$/g,''))['filter'](Boolean);return _0x55d158['length']?'/'+_0x55d158[_0x39b8ab(0x21e)]('/'):'/';}function d(_0x285697,_0x50940c){const _0x1dab24=_0x3c273c;let _0xd6c82=w(_0x50940c)[_0x1dab24(0x2ae)](/\/$/,''),_0x415d49=w(_0x285697);if(!_0xd6c82)return _0x415d49||'/';if(_0x415d49===_0xd6c82)return'/';if(_0x415d49[_0x1dab24(0x240)](_0xd6c82+'/'))return _0x415d49[_0x1dab24(0x15a)](_0xd6c82[_0x1dab24(0x1a5)])||'/';return(_0x285697[_0x1dab24(0x240)]('/')?_0x285697:'/'+_0x285697)||'/';}function XQ(_0x16701c,_0x48ac36,_0x10b06b){const _0x9221e1=_0x3c273c;let _0x440595=_0x48ac36['replace'](/^\//,'')['replace'](/\/+/g,':');if(_0x440595===_0x16701c)_0x440595=_0x16701c;else{if(_0x440595[_0x9221e1(0x240)](_0x16701c+':'))_0x440595=_0x440595[_0x9221e1(0x15a)](_0x16701c[_0x9221e1(0x1a5)]+0x1);}let _0x24fd67=_0x16701c+'-';if(_0x440595[_0x9221e1(0x240)](_0x24fd67))_0x440595=_0x440595[_0x9221e1(0x15a)](_0x24fd67[_0x9221e1(0x1a5)]);if(_0x440595=_0x440595[_0x9221e1(0x2ae)](/-/g,':'),!_0x440595)_0x440595=_0x16701c;return _0x16701c+':'+_0x440595+':'+_0x10b06b;}function VQ(_0x32759c){const _0x45cc9f=_0x3c273c;let _0x5c593e=_0x32759c[_0x45cc9f(0x2ae)](/^\/+|\/+$/g,'');if(!_0x5c593e)return _0x45cc9f(0x298);let _0x3ce1bf=_0x5c593e[_0x45cc9f(0x205)]('/');return _0x3ce1bf[_0x3ce1bf[_0x45cc9f(0x1a5)]-0x1]||_0x45cc9f(0x298);}function r(_0xea25d1,_0x4bd8f6,_0xbf2ce3){const _0x404193=_0x3c273c;if(_0x4bd8f6[_0x404193(0x27c)]!==_0x404193(0x174)||_0xea25d1[_0x404193(0x16a)]||_0xea25d1[_0x404193(0x282)])return;if(_0xea25d1[_0x404193(0x2af)]?.[_0x404193(0x1a5)])return _0xea25d1[_0x404193(0x2af)];let _0x3d7755=_0xbf2ce3??VQ(d(_0xea25d1['path']??'/',_0x4bd8f6[_0x404193(0x1e8)]));return[XQ(_0x4bd8f6[_0x404193(0x248)],_0x4bd8f6[_0x404193(0x1e8)],_0x3d7755)];}var WQ;function f0(_0x4cc661){WQ=_0x4cc661;}var i3={'admin':_0x3c273c(0x279),'app':_0x3c273c(0x2bf)},x1=_0x3c273c(0x17f),s3='auth',o3={'GET':_0x3c273c(0x1eb),'POST':_0x3c273c(0x2b7),'PUT':'put','DELETE':_0x3c273c(0x11c),'PATCH':_0x3c273c(0x14a)};function r3(_0xdef29e){return w(i3[_0xdef29e]);}function a3(_0x17898a){const _0x4269ec=_0x3c273c;if(_0x17898a[_0x4269ec(0x1ea)]?.[_0x4269ec(0x1a5)])return x0(_0x17898a[_0x4269ec(0x1ea)]);let _0x514856={};if(_0x17898a[_0x4269ec(0x1b0)]!==void 0x0)_0x514856[_0x4269ec(0x1b0)]=_0x17898a['body'];if(_0x17898a[_0x4269ec(0x280)]!==void 0x0)_0x514856['query']=_0x17898a[_0x4269ec(0x280)];if(_0x17898a[_0x4269ec(0x135)]!==void 0x0)_0x514856[_0x4269ec(0x1ea)]=_0x17898a[_0x4269ec(0x135)];return Object[_0x4269ec(0x242)](_0x514856)[_0x4269ec(0x1a5)]>0x0?_0x514856:void 0x0;}function t3(_0x22b23c,_0x4479f8,_0x52c44f){const _0x48d2b6=_0x3c273c;let _0x26e7a8=new Set();for(let _0x24c9ba of _0x22b23c){if(_0x26e7a8[_0x48d2b6(0x22e)](_0x24c9ba['source'])){let _0x427478=_0x24c9ba[_0x48d2b6(0x29e)]===_0x48d2b6(0x1b0)?_0x48d2b6(0x125):_0x24c9ba[_0x48d2b6(0x29e)]===_0x48d2b6(0x280)?'Query':_0x48d2b6(0x269);throw Error(_0x48d2b6(0x146)+_0x52c44f+'.'+_0x4479f8+_0x48d2b6(0x1d1)+_0x427478);}_0x26e7a8[_0x48d2b6(0x2b1)](_0x24c9ba['source']);}}function e3(_0x252da9,_0x20c0ec,_0x5e6680){const _0x7b351=_0x3c273c;let _0x495a50=_0x252da9[_0x20c0ec][_0x7b351(0x26b)](_0x252da9);if(!_0x5e6680?.[_0x7b351(0x1a5)])return _0x495a50;let _0x5f4d62=[..._0x5e6680][_0x7b351(0x233)]((_0x5943d,_0x14d705)=>_0x5943d[_0x7b351(0x298)]-_0x14d705[_0x7b351(0x298)]);return _0x3dceea=>{const _0x20780e=_0x7b351;let _0x3ddd29=_0x5f4d62[_0x20780e(0x2a2)](_0x23b8a9=>{const _0x259e62=_0x20780e;if(_0x23b8a9[_0x259e62(0x29e)]===_0x259e62(0x1b0))return _0x3dceea[_0x259e62(0x1b0)];if(_0x23b8a9[_0x259e62(0x29e)]===_0x259e62(0x280))return _0x3dceea[_0x259e62(0x280)];if(_0x23b8a9[_0x259e62(0x29e)]===_0x259e62(0x1ea))return _0x3dceea[_0x259e62(0x1ea)];throw Error(_0x259e62(0x191)+_0x23b8a9[_0x259e62(0x29e)]);});return _0x495a50(..._0x3ddd29,_0x3dceea);};}function v1(_0x2ca99d){return _0xf000a9=>{const _0x2e718e=_0x907e;let _0x2014e1=_0xf000a9[_0x2e718e(0x1c0)],_0x3382eb=_[_0x2e718e(0x1eb)]();if(_0x3382eb?.[_0x2e718e(0x2bb)])return;let _0x31cab5=_0x3382eb?.[_0x2e718e(0x2af)]??[];if(_0x2ca99d[_0x2e718e(0x115)](_0x2be295=>_0x31cab5[_0x2e718e(0x129)](_0x2be295)))return;return _0x2014e1(0x193);};}function k1(_0x14d67e,_0x5c06ba){const _0x3b220c=_0x3c273c;let _0x31cfaa=_0x14d67e[_0x3b220c(0x2ae)](/^\/+|\/+$/g,'')[_0x3b220c(0x205)]('/')[_0x3b220c(0x245)]()||_0x14d67e;return _0x5c06ba?_0x31cfaa+'\x20'+_0x5c06ba:_0x31cfaa;}function Q4(_0x535395,_0x532598){const _0x169388=_0x3c273c;let _0x1c6899={...a3(_0x535395)??{},'detail':{'tags':[J0(_0x532598[_0x169388(0x248)],_0x532598[_0x169388(0x27c)])],'summary':k1(_0x535395[_0x169388(0x186)],_0x535395[_0x169388(0x131)])}};if(_0x532598[_0x169388(0x27c)]==='admin'&&!_0x535395['public'])_0x1c6899[x1]=!0x0;if(_0x532598[_0x169388(0x27c)]==='app'&&!_0x535395[_0x169388(0x16a)])_0x1c6899[s3]=!0x0;let _0x179065=[],_0xccfb73=r(_0x535395,_0x532598);if(_0xccfb73?.[_0x169388(0x1a5)])_0x179065[_0x169388(0x192)](v1(_0xccfb73));if(_0x535395['middleware']?.[_0x169388(0x1a5)])_0x179065[_0x169388(0x192)](..._0x535395[_0x169388(0x164)]);if(_0x179065[_0x169388(0x1a5)])_0x1c6899[_0x169388(0x178)]=_0x179065;return _0x1c6899;}function $4(_0x4f940c){if(_0x4f940c==null)return{};if(typeof _0x4f940c==='boolean')return{'public':_0x4f940c};return _0x4f940c;}function Z4(_0xebae83,_0x13c9d8){const _0x32a998=_0x3c273c;let _0x745c5a=r3(_0xebae83[_0x32a998(0x27c)]),_0x19af5f=b(_0x745c5a,_0xebae83[_0x32a998(0x1e8)]),_0x4ce49d=K[_0x32a998(0x1eb)](_0xebae83[_0x32a998(0x29f)]),_0x1208a5=new _0x920daa({'prefix':_0x19af5f,'name':_0xebae83[_0x32a998(0x29f)][_0x32a998(0x172)],'tags':[J0(_0xebae83[_0x32a998(0x248)],_0xebae83['side'])]});for(let _0x56c261 of _0xebae83[_0x32a998(0x164)]??[])_0x1208a5=_0x1208a5[_0x32a998(0x1ef)](_0x56c261);let _0x5fb4ce=[];for(let _0x4e9c01 of _0xebae83[_0x32a998(0x27a)]){if(typeof _0x4ce49d[_0x4e9c01['handler']]!==_0x32a998(0x117))throw Error('[Router]\x20'+_0xebae83[_0x32a998(0x29f)][_0x32a998(0x172)]+'.'+_0x4e9c01[_0x32a998(0x186)]+'\x20不是有效\x20handler');t3(_0x4e9c01[_0x32a998(0x1ea)]??[],_0x4e9c01[_0x32a998(0x186)],_0xebae83[_0x32a998(0x29f)][_0x32a998(0x172)]);let _0x47df23=e3(_0x4ce49d,_0x4e9c01[_0x32a998(0x186)],_0x4e9c01[_0x32a998(0x1ea)]),_0x336a7b=d(_0x4e9c01[_0x32a998(0x2c7)],_0xebae83[_0x32a998(0x1e8)]),_0x39325f=Q4(_0x4e9c01,_0xebae83),_0x8e6e8c=o3[_0x4e9c01[_0x32a998(0x137)]];_0x1208a5=_0x1208a5[_0x8e6e8c](_0x336a7b,_0x47df23,_0x39325f);}if(_0xebae83[_0x32a998(0x292)]?.['api']?.[_0x32a998(0x1a5)]||_0xebae83['crud']?.[_0x32a998(0x163)]?.[_0x32a998(0x1a5)]){if(!WQ)throw Error(_0x32a998(0x146)+_0xebae83[_0x32a998(0x29f)][_0x32a998(0x172)]+_0x32a998(0x16c));_0x1208a5=WQ(_0x1208a5,_0xebae83,{'controller':_0x4ce49d,'routeOptions':_0x337ac1=>{const _0x56b4e1=_0x32a998;let {public:_0xf1c475,action:_0x49b288,summary:_0x1fefea}=$4(_0x337ac1),_0x3981db={'detail':{'tags':[J0(_0xebae83[_0x56b4e1(0x248)],_0xebae83[_0x56b4e1(0x27c)])],'summary':k1(_0x49b288??_0x56b4e1(0x29c),_0x1fefea)}};if(_0xebae83['side']===_0x56b4e1(0x174)&&!_0xf1c475){if(_0x3981db[x1]=!0x0,_0x49b288){let _0x3c1884=XQ(_0xebae83[_0x56b4e1(0x248)],_0xebae83[_0x56b4e1(0x1e8)],_0x49b288);_0x3981db[_0x56b4e1(0x178)]=[v1([_0x3c1884])];}}return _0x3981db;}});for(let _0x40e188 of _0xebae83[_0x32a998(0x292)]?.[_0x32a998(0x1a0)]??[]){let _0x34b9df=_0x40e188===_0x32a998(0x1ba)?_0x32a998(0x27f):'POST';_0x5fb4ce[_0x32a998(0x192)]({'method':_0x34b9df,'path':b(_0xebae83['prefix'],_0x40e188),'handler':_0x40e188,'autoCrud':!0x0});}for(let _0x595a1e of _0xebae83['crud']?.['serviceApis']??[])_0x5fb4ce[_0x32a998(0x192)]({'method':_0x32a998(0x193),'path':b(_0xebae83[_0x32a998(0x1e8)],_0x595a1e),'handler':_0x595a1e,'autoCrud':!0x0});}return{'plugin':_0x1208a5,'pluginPrefix':_0x19af5f,'autoRoutes':_0x5fb4ce};}function f1(_0x402d65,_0x43fa61){const _0x1cb8ed=_0x3c273c;let _0x5a1a60=_0x402d65,_0x26b4bc=0x0,_0x2545af=[];for(let _0x1716ab of O()){let {plugin:_0x28b309,pluginPrefix:_0x3cfa85,autoRoutes:_0x30a45b}=Z4(_0x1716ab,_0x43fa61);_0x5a1a60=_0x5a1a60['use'](_0x28b309);for(let _0x34898e of[..._0x1716ab[_0x1cb8ed(0x27a)],..._0x30a45b]){_0x26b4bc+=0x1;let _0x1f5b51=d(_0x34898e[_0x1cb8ed(0x2c7)],_0x1716ab['prefix']),_0x5d835f=_0x1f5b51==='/'?_0x3cfa85:b(_0x3cfa85,_0x1f5b51[_0x1cb8ed(0x2ae)](/^\//,'')),_0x489ee7=_0x34898e[_0x1cb8ed(0x16a)]?'\x20(public)':_0x34898e['autoCrud']?_0x1cb8ed(0x200):'';_0x2545af[_0x1cb8ed(0x192)](_0x34898e['method']+'\x20'+_0x5d835f+_0x489ee7);}}if(_0x26b4bc>0x0){console['log']('[Router]\x20registered\x20←\x20'+_0x26b4bc+_0x1cb8ed(0x244));for(let _0x5b5485 of _0x2545af)console['log']('\x20\x20'+_0x5b5485);}return _0x5a1a60;}var {Glob:J4}=globalThis[_0x3c273c(0x2ce)],X4=/\.tsx?$/;async function X0(_0x6b9ca1,_0xfa0b9c={}){const _0x17792d=_0x3c273c;let {cwd:_0x3a911e=process['cwd'](),ext:_0x5b24fe=X4}=_0xfa0b9c,_0x5b3eb4=Array[_0x17792d(0x161)](_0x6b9ca1)?_0x6b9ca1:[_0x6b9ca1],_0x5e984b=[];for(let _0xfcdafb of _0x5b3eb4){let _0x382800=new J4(_0xfcdafb);for await(let _0x333ad2 of _0x382800['scan']({'cwd':_0x3a911e,'onlyFiles':!0x0}))if(_0x5b24fe[_0x17792d(0x14d)](_0x333ad2))_0x5e984b[_0x17792d(0x192)](_0x333ad2);}return[...new Set(_0x5e984b)][_0x17792d(0x233)]();}var w1=null;function zQ(_0x46b5d4){w1=_0x46b5d4;}function b1(){return w1;}function y1(_0xc3c6){const _0x2fdff7=_0x3c273c;let _0x50d448=_0xc3c6[_0x2fdff7(0x27e)](/modules\/([^/]+)\/controller\//);if(!_0x50d448)return _0x2fdff7(0x2a8);return _0x50d448[0x1];}function g1(_0x4a98c5){const _0x535641=_0x3c273c;let _0x41226e=_0x4a98c5[_0x535641(0x2ae)](/\\/g,'/')[_0x535641(0x27e)](/modules\/([^/]+)\/controller\/(?:admin|app)\/(.+)\.tsx?$/);if(!_0x41226e)return'';let _0x54ded9=_0x41226e[0x1],_0x119449=_0x41226e[0x2][_0x535641(0x2ae)](/\/+/g,'/')[_0x535641(0x2ae)](/^\/|\/$/g,'');if(!_0x119449)return'/'+_0x54ded9;return'/'+_0x54ded9+'/'+_0x119449;}var V4=/(?:Time|Date|At)$/,W4=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:?\d{2})?$/;function h1(_0x6a06a4){const _0x23982e=_0x3c273c;let _0x3163c6=_0x6a06a4 instanceof Date?_0x6a06a4:new Date(_0x6a06a4);if(Number[_0x23982e(0x24a)](_0x3163c6[_0x23982e(0x2a9)]()))return String(_0x6a06a4);return new Intl['DateTimeFormat']('sv-SE',{'timeZone':_0x23982e(0x214),'year':_0x23982e(0x134),'month':_0x23982e(0x26c),'day':'2-digit','hour':_0x23982e(0x26c),'minute':_0x23982e(0x26c),'second':_0x23982e(0x26c),'hour12':!0x1})[_0x23982e(0x235)](_0x3163c6)['replace']('T','\x20');}function z4(_0x1019b2){const _0x70ac3c=_0x3c273c;return V4[_0x70ac3c(0x14d)](_0x1019b2);}function u1(_0x5503ec){return GQ(_0x5503ec);}function GQ(_0x130293,_0x40ab8e){const _0x5b4fce=_0x3c273c;if(_0x130293==null)return _0x130293;if(_0x130293 instanceof Date)return h1(_0x130293);if(typeof _0x130293===_0x5b4fce(0x20d)&&_0x40ab8e&&z4(_0x40ab8e)&&W4[_0x5b4fce(0x14d)](_0x130293))return h1(_0x130293);if(Array[_0x5b4fce(0x161)](_0x130293))return _0x130293[_0x5b4fce(0x2a2)](_0x31115f=>GQ(_0x31115f));if(typeof _0x130293==='object'){if(Object[_0x5b4fce(0x290)]['toString'][_0x5b4fce(0x165)](_0x130293)!==_0x5b4fce(0x1db))return _0x130293;let _0x21c999={};for(let [_0x350417,_0x3624c2]of Object['entries'](_0x130293))_0x21c999[_0x350417]=GQ(_0x3624c2,_0x350417);return _0x21c999;}return _0x130293;}var C={'SUCCESS':0x3e8,'ERROR':0x3e9};class n{['ok'](_0x414265){const _0x5e739b=_0x3c273c;let _0x2e464e=_0x414265===void 0x0?null:_0x414265;return{'code':C[_0x5e739b(0x281)],'message':'success','data':_0x2e464e==null?_0x2e464e:u1(_0x2e464e)};}['fail'](_0x327660=_0x3c273c(0x15e),_0x52687d=C[_0x3c273c(0x218)]){return{'code':_0x52687d,'message':_0x327660};}}import'reflect-metadata';function G4(_0x3e2390){const _0x5eb001=_0x3c273c;if(_0x3e2390==null)return{};if(typeof _0x3e2390==='string'||typeof _0x3e2390===_0x5eb001(0x29d))return{'id':_0x3e2390};return _0x3e2390;}function FQ(_0x13ca22){return _0x4466c8=>{const _0x257967=_0x907e;let _0x5a531a=G4(_0x13ca22),_0x48d14c=_0x5a531a[_0x257967(0x183)]??_0x257967(0x28a);if(f({'token':_0x4466c8,'useClass':_0x4466c8,'scope':_0x48d14c}),_0x5a531a['id']!=null)f({'token':_0x5a531a['id'],'useClass':_0x4466c8,'scope':_0x48d14c});};}function jQ(_0x3e807a){return(_0x3b0aac,_0x245047)=>{const _0x27639c=_0x907e;let _0x3a33b7=Reflect[_0x27639c(0x1d3)]('design:type',_0x3b0aac,_0x245047),_0x5c4ed4=_0x3e807a??_0x3a33b7;if(_0x5c4ed4==null)throw Error(_0x27639c(0x2c5)+String(_0x245047)+_0x27639c(0x25c));c(_0x3b0aac['constructor'],{'propertyKey':_0x245047,'token':_0x5c4ed4});};}import{and as _0x4398dd,arrayContains as _0x11b271,arrayOverlaps as _0x21d25b,asc as _0x16fdb1,desc as _0x117215,eq as _0x58d486,gte as _0x3123a7,inArray as _0x481ba3,like as _0x4c77d3,lte as _0x28c44c,or as _0x2c3dda,sql as _0x230bf6}from'drizzle-orm';function BQ(_0x393b7d){const _0x143430=_0x3c273c;if(typeof _0x393b7d===_0x143430(0x20d)){let _0xc63a63=_0x393b7d['includes']('.')?_0x393b7d['split']('.')[_0x143430(0x245)]():_0x393b7d;return{'column':_0xc63a63,'param':_0xc63a63,'none':!0x1};}let _0x4c8fd0=_0x393b7d[_0x143430(0x259)]['includes']('.')?_0x393b7d[_0x143430(0x259)]['split']('.')['pop']():_0x393b7d[_0x143430(0x259)];return{'column':_0x4c8fd0,'param':_0x393b7d[_0x143430(0x296)]??_0x4c8fd0,'none':Boolean(_0x393b7d[_0x143430(0x114)])};}function U4(_0x257c2b){const _0x5b87c1=_0x3c273c;return _0x257c2b[_0x5b87c1(0x259)]['includes']('.')?_0x257c2b[_0x5b87c1(0x259)][_0x5b87c1(0x205)]('.')[_0x5b87c1(0x245)]():_0x257c2b[_0x5b87c1(0x259)];}function h(_0x5d6c43,_0x101411){let _0x58e218=_0x5d6c43[_0x101411];if(_0x58e218==null)throw Error('[QueryOp]\x20表无字段:\x20'+_0x101411);return _0x58e218;}function y(_0x1848ed){return _0x1848ed===void 0x0||_0x1848ed===null||_0x1848ed==='';}function MQ(_0x1e1b10){const _0xac55b9=_0x3c273c;if(_0x1e1b10==null||_0x1e1b10===!0x1)return[];return(Array[_0xac55b9(0x161)](_0x1e1b10)?_0x1e1b10:[_0x1e1b10])[_0xac55b9(0x1ff)](_0x461dab=>_0x461dab!=null&&_0x461dab!==!0x1);}var V0={'between'(_0x21494b,_0x72a9cb,_0x1c45ba){if(y(_0x72a9cb)||y(_0x1c45ba))return;return _0x230bf6`${_0x21494b} between ${_0x72a9cb} and ${_0x1c45ba}`;},'range'(_0x445fe0,_0x4b380d,_0x3b2039){const _0x51895f=_0x3c273c;let _0x1fd8d4=[];if(!y(_0x4b380d))_0x1fd8d4[_0x51895f(0x192)](_0x3123a7(_0x445fe0,_0x4b380d));if(!y(_0x3b2039))_0x1fd8d4[_0x51895f(0x192)](_0x28c44c(_0x445fe0,_0x3b2039));if(!_0x1fd8d4[_0x51895f(0x1a5)])return;return _0x1fd8d4[_0x51895f(0x1a5)]===0x1?_0x1fd8d4[0x0]:_0x4398dd(..._0x1fd8d4);},'eqRest'(_0x2f21f7,_0x1c9102,_0x14682c){const _0x135688=_0x3c273c;let _0x3cf732=[];for(let [_0x3be153,_0x57ce83]of Object[_0x135688(0x29a)](_0x2f21f7)){if(y(_0x57ce83))continue;let _0x38e5be=_0x14682c?.[_0x3be153]??_0x1c9102[_0x3be153];if(_0x38e5be==null)continue;_0x3cf732[_0x135688(0x192)](_0x58d486(_0x38e5be,_0x57ce83));}return _0x3cf732;},'contains'(_0x21cdf3,_0x1c1a2c){const _0x45e8f7=_0x3c273c;if(y(_0x1c1a2c))return;let _0x271c0b=Array[_0x45e8f7(0x161)](_0x1c1a2c)?_0x1c1a2c:[_0x1c1a2c];if(!_0x271c0b[_0x45e8f7(0x1a5)])return;return _0x271c0b[_0x45e8f7(0x1a5)]===0x1?_0x11b271(_0x21cdf3,_0x271c0b):_0x21d25b(_0x21cdf3,_0x271c0b);}};function D4(_0x520c29,_0x28f538,_0x49897c){const _0x250aa6=_0x3c273c;let _0x1f3181=[];if(_0x49897c['keyWordLikeFields']?.[_0x250aa6(0x1a5)]&&!y(_0x28f538[_0x250aa6(0x156)])){let _0x218564='%'+String(_0x28f538[_0x250aa6(0x156)])+'%',_0x23a812=_0x49897c[_0x250aa6(0x173)][_0x250aa6(0x2a2)](_0x169425=>{const _0x4e94d1=_0x250aa6;let _0x1ac4fa=_0x169425['includes']('.')?_0x169425[_0x4e94d1(0x205)]('.')[_0x4e94d1(0x245)]():_0x169425;return _0x4c77d3(h(_0x520c29,_0x1ac4fa),_0x218564);});if(_0x23a812[_0x250aa6(0x1a5)]===0x1)_0x1f3181['push'](_0x23a812[0x0]);else{if(_0x23a812[_0x250aa6(0x1a5)]>0x1)_0x1f3181[_0x250aa6(0x192)](_0x2c3dda(..._0x23a812));}}for(let _0x40e7fc of _0x49897c[_0x250aa6(0x230)]??[]){let {column:_0x1c0ac9,param:_0x8a4b0}=BQ(_0x40e7fc),_0x159ef7=_0x28f538[_0x8a4b0];if(y(_0x159ef7))continue;if(Array['isArray'](_0x159ef7)){if(!_0x159ef7['length'])continue;_0x1f3181[_0x250aa6(0x192)](_0x481ba3(h(_0x520c29,_0x1c0ac9),_0x159ef7));}else _0x1f3181['push'](_0x58d486(h(_0x520c29,_0x1c0ac9),_0x159ef7));}for(let _0x1110e1 of _0x49897c[_0x250aa6(0x202)]??[]){let {column:_0x560c20,param:_0x3bd944}=BQ(_0x1110e1),_0x3698bd=_0x28f538[_0x3bd944];if(y(_0x3698bd))continue;_0x1f3181[_0x250aa6(0x192)](_0x4c77d3(h(_0x520c29,_0x560c20),'%'+String(_0x3698bd)+'%'));}for(let _0x27d964 of _0x49897c['fieldArray']??[]){let {column:_0x4aa5c3,param:_0x5261a6}=BQ(_0x27d964),_0x11de71=V0[_0x250aa6(0x145)](h(_0x520c29,_0x4aa5c3),_0x28f538[_0x5261a6]);if(_0x11de71)_0x1f3181['push'](_0x11de71);}for(let _0x3a00fa of _0x49897c[_0x250aa6(0x143)]??[]){let _0x1ac339=h(_0x520c29,U4(_0x3a00fa)),_0x4b06eb=V0[_0x250aa6(0x224)](_0x1ac339,_0x28f538[_0x3a00fa[_0x250aa6(0x1c8)]],_0x28f538[_0x3a00fa[_0x250aa6(0x1ab)]]);if(_0x4b06eb)_0x1f3181[_0x250aa6(0x192)](_0x4b06eb);}return _0x1f3181;}function T4(_0x698b89,_0x291c5a,_0x52a5ed){const _0x537432=_0x3c273c;let _0x3d6542=[],_0x5bee52=_0x291c5a[_0x537432(0x1a4)]!=null?String(_0x291c5a[_0x537432(0x1a4)]):void 0x0,_0x479da9=_0x291c5a['sort']===_0x537432(0x1cd)||_0x291c5a[_0x537432(0x233)]===_0x537432(0x2c0)?_0x291c5a['sort']:void 0x0;if(_0x5bee52){let _0x508867=h(_0x698b89,_0x5bee52);_0x3d6542[_0x537432(0x192)](_0x479da9==='asc'?_0x16fdb1(_0x508867):_0x117215(_0x508867));}else{if(_0x52a5ed['addOrderBy'])for(let [_0x383020,_0x2fde10]of Object[_0x537432(0x29a)](_0x52a5ed['addOrderBy'])){let _0x817058=_0x383020[_0x537432(0x129)]('.')?_0x383020[_0x537432(0x205)]('.')[_0x537432(0x245)]():_0x383020,_0x1d1830=h(_0x698b89,_0x817058);_0x3d6542[_0x537432(0x192)](_0x2fde10==='asc'?_0x16fdb1(_0x1d1830):_0x117215(_0x1d1830));}}return _0x3d6542;}function W0(_0x229dce){const _0x56a330=_0x3c273c;return!!(_0x229dce?.[_0x56a330(0x21e)]?.[_0x56a330(0x1a5)]||_0x229dce?.[_0x56a330(0x24f)]);}async function l(_0x1d6fcf,_0x54613d,_0x2b87eb={},_0x2c3a25){const _0x51ecf1=_0x3c273c;let _0x361c49=D4(_0x1d6fcf,_0x54613d,_0x2b87eb),_0x8b5bb3=T4(_0x1d6fcf,_0x54613d,_0x2b87eb),_0x4985b3={'body':_0x54613d,'request':_0x2c3a25??new Request('http://local')};if(_0x2b87eb['where'])_0x361c49[_0x51ecf1(0x192)](...MQ(await _0x2b87eb[_0x51ecf1(0x27d)](_0x4985b3)));if(_0x2b87eb[_0x51ecf1(0x1b9)]){let _0x49e492={'andWhere'(_0x714d91){const _0xcf1ba0=_0x51ecf1;if(_0x714d91!=null&&_0x714d91!==!0x1)_0x361c49[_0xcf1ba0(0x192)](_0x714d91);},'orderBy'(..._0x5e4413){for(let _0x44238a of _0x5e4413)if(_0x44238a!=null)_0x8b5bb3['push'](_0x44238a);}};await _0x2b87eb['extend'](_0x49e492,_0x4985b3);}return{'where':_0x361c49[_0x51ecf1(0x1a5)]===0x0?void 0x0:_0x361c49['length']===0x1?_0x361c49[0x0]:_0x4398dd(..._0x361c49),'orderBySql':_0x8b5bb3};}import{and as _0x19f2b9,count as _0x31a6db,countDistinct as _0x3a60b8,getTableColumns as _0x2dc126,isNotNull as _0x36256d,isNull as _0x4dbdc2,sql as _0x449b38}from'drizzle-orm';function w0(){const _0x5ebb7e=_0x3c273c;return D[_0x5ebb7e(0x249)]?.[_0x5ebb7e(0x292)]??{};}function b0(_0x269737){const _0x1dd4c9=_0x3c273c;return _0x269737??w0()['upsert']??_0x1dd4c9(0x1e3);}function u(_0x685de4){const _0x43fadb=_0x3c273c;if(_0x685de4!=null)return _0x685de4;return w0()[_0x43fadb(0x208)]===!0x0;}class m{[_0x3c273c(0x26a)];[_0x3c273c(0x133)];[_0x3c273c(0x1cb)];[_0x3c273c(0x18f)];constructor(_0x22aed9,_0xa385bd,_0x556745,_0x37e940){const _0x851a1e=_0x3c273c;this['drizzle']=_0x22aed9,this[_0x851a1e(0x133)]=_0xa385bd,this[_0x851a1e(0x1cb)]=_0x556745,this['sql']=_0x37e940;}}import{and as _0x5b7286,inArray as _0x240b4c,sql as _0x1363ae}from'drizzle-orm';import{and as _0x2dfc94,eq as _0x21d710,sql as _0x24b413}from'drizzle-orm';var z0=_0x3c273c(0x2ba);function y0(){const _0x4504c6=_0x3c273c;return D[_0x4504c6(0x249)]?.[_0x4504c6(0x227)]===!0x0;}function LQ(_0x6215d0){const _0x133e0a=_0x3c273c;return _0x6215d0[_0x133e0a(0x1f1)]!=null;}function G0(){const _0x10ddb0=_0x3c273c;if(!y0())return _0x10ddb0(0x2b5);let _0xe74be6=_[_0x10ddb0(0x1eb)]();if(_0xe74be6?.[z0])return _0x10ddb0(0x2b5);if(_0xe74be6?.[_0x10ddb0(0x2bb)])return'all';let _0x2c3d91=_0xe74be6?.[_0x10ddb0(0x1f1)],_0x4c0a22=typeof _0x2c3d91===_0x10ddb0(0x187)?_0x2c3d91:Number(_0x2c3d91);if(!Number[_0x10ddb0(0x1d6)](_0x4c0a22)||_0x4c0a22<=0x0)return _0x10ddb0(0x114);return _0x4c0a22;}function YQ(_0xc2ae38,_0x1a075a){const _0x4736f0=_0x3c273c;if(!LQ(_0xc2ae38))return _0x1a075a;let _0x358406=G0();if(_0x358406===_0x4736f0(0x2b5)||_0x358406===_0x4736f0(0x121))return _0x1a075a;let _0x3c53a3=_0xc2ae38[_0x4736f0(0x1f1)],_0x4d3aca=_0x358406===_0x4736f0(0x114)?_0x24b413`false`:_0x21d710(_0x3c53a3,_0x358406);if(_0x1a075a&&_0x4d3aca)return _0x2dfc94(_0x1a075a,_0x4d3aca);return _0x1a075a??_0x4d3aca;}function UQ(_0x574fc7,_0x3316e1){const _0x494d1e=_0x3c273c;if(!LQ(_0x574fc7))return _0x3316e1;let _0x23bda4=G0();if(typeof _0x23bda4!==_0x494d1e(0x187))return _0x3316e1;if(_0x3316e1[_0x494d1e(0x1f1)]!=null)return _0x3316e1;return{..._0x3316e1,'tenantId':_0x23bda4};}async function DQ(_0xe316ef){const _0x10a023=_0x3c273c;let _0x379014=_[_0x10a023(0x1eb)]();if(!_0x379014)return _0xe316ef();let _0x5c58ad=_0x379014[z0];_0x379014[z0]=!0x0;try{return await _0xe316ef();}finally{if(_0x5c58ad===void 0x0)delete _0x379014[z0];else _0x379014[z0]=_0x5c58ad;}}function TQ(_0x30a511){const _0x123774=_0x3c273c;if(!_0x30a511)return'';return _0x30a511[_0x123774(0x132)]()[_0x123774(0x2a1)]()['replace'](/:\d+$/,'');}var F0=_0x3c273c(0x19a);function g0(_0x29a028){const _0x14bd0b=_0x3c273c;return _0x29a028[_0x14bd0b(0x1c5)]!=null;}function h0(){const _0x2996e8=_0x3c273c;let _0x34e797=_['get']();if(!_0x34e797)return'off';if(_0x34e797[F0])return _0x2996e8(0x2b5);if(_0x34e797[_0x2996e8(0x2bb)])return _0x2996e8(0x121);let _0x210581=_0x34e797[_0x2996e8(0x15b)];if(_0x210581==null||_0x210581==='')return _0x2996e8(0x2b5);if(_0x210581===_0x2996e8(0x121))return'all';if(_0x210581===_0x2996e8(0x114))return _0x2996e8(0x114);let _0x19b6ae=_0x34e797[_0x2996e8(0x25e)],_0x239394=Array[_0x2996e8(0x161)](_0x19b6ae)?_0x19b6ae[_0x2996e8(0x2a2)](_0x57a491=>Number(_0x57a491))[_0x2996e8(0x1ff)](_0x42a4ee=>Number['isFinite'](_0x42a4ee)&&_0x42a4ee>0x0):[];if(!_0x239394[_0x2996e8(0x1a5)])return _0x2996e8(0x114);return[...new Set(_0x239394)];}function u0(_0x1eef63,_0x52d149){const _0x56b51d=_0x3c273c;if(!g0(_0x1eef63))return _0x52d149;let _0xefe40c=h0();if(_0xefe40c==='off'||_0xefe40c==='all')return _0x52d149;let _0x2a4c0e=_0x1eef63[_0x56b51d(0x1c5)],_0x3058f7=_0xefe40c===_0x56b51d(0x114)?_0x1363ae`false`:_0x240b4c(_0x2a4c0e,_0xefe40c);if(_0x52d149)return _0x5b7286(_0x52d149,_0x3058f7);return _0x3058f7;}function q(_0xe948f9,_0x214735){return u0(_0xe948f9,YQ(_0xe948f9,_0x214735));}async function NQ(_0x594efd){const _0x22fc90=_0x3c273c;let _0x406d22=_[_0x22fc90(0x1eb)]();if(!_0x406d22)return _0x594efd();let _0x1d130d=_0x406d22[F0];_0x406d22[F0]=!0x0;try{return await _0x594efd();}finally{if(_0x1d130d===void 0x0)delete _0x406d22[F0];else _0x406d22[F0]=_0x1d130d;}}function x4(_0x47b3fa){const _0x1422f=_0x3c273c;return _0x47b3fa[_0x1422f(0x127)];}function v4(_0x462d93,_0x2317df){const _0x462322=_0x3c273c;if(!u(_0x2317df?.['softDelete']))return;let _0x21e7e0=x4(_0x462d93);if(_0x21e7e0==null)return;if(_0x2317df?.[_0x462322(0x120)])return _0x36256d(_0x21e7e0);if(_0x2317df?.[_0x462322(0x22f)])return;return _0x4dbdc2(_0x21e7e0);}function k4(_0x4f3681,_0x1302bd){if(_0x4f3681&&_0x1302bd)return _0x19f2b9(_0x1302bd,_0x4f3681);return _0x4f3681??_0x1302bd;}function i1(_0x3df4d3,_0x6ac9c2,_0x3a070b){const _0x178ebb=_0x3c273c;let _0xa4164f=_0x3df4d3;for(let _0x1ec14f of _0x3a070b[_0x178ebb(0x21e)]??[]){let _0x2d12a6=_0x1ec14f[_0x178ebb(0x1f6)],_0x32a8ab=_0x1ec14f['on'](_0x6ac9c2),_0x5beb85=_0x1ec14f[_0x178ebb(0x1b4)]??_0x178ebb(0x1b1);if(_0x5beb85==='innerJoin'||_0x5beb85==='join')_0xa4164f=_0xa4164f['innerJoin'](_0x2d12a6,_0x32a8ab);else _0xa4164f=_0xa4164f['leftJoin'](_0x2d12a6,_0x32a8ab);}return _0xa4164f;}function f4(_0x33a92c,_0x5c9df1){const _0x15cd18=_0x3c273c;if(_0x5c9df1[_0x15cd18(0x24f)])return _0x5c9df1['select'];return _0x2dc126(_0x33a92c);}function w4(_0x21bf82,_0x122fe8){let _0x2113ef=_0x21bf82['id'];if(_0x2113ef!=null&&_0x122fe8)return _0x3a60b8(_0x2113ef);if(_0x2113ef!=null)return _0x31a6db(_0x2113ef);return _0x31a6db(_0x449b38`*`);}async function j0(_0x30d9a5,_0x4c5123,_0x5c9c41,_0x429ebc){const _0x54ad5e=_0x3c273c;let _0xa3c570=await l(_0x30d9a5,_0x4c5123,_0x5c9c41,_0x429ebc[_0x54ad5e(0x1a2)]),_0x1c6766=v4(_0x30d9a5,_0x429ebc[_0x54ad5e(0x122)]),_0x234ed6=q(_0x30d9a5,k4(_0xa3c570[_0x54ad5e(0x27d)],_0x1c6766)),_0x2407ab=f4(_0x30d9a5,_0x5c9c41),_0x4667e5=!!_0x5c9c41[_0x54ad5e(0x21e)]?.['length'],_0x589d71=K[_0x54ad5e(0x1eb)](m)[_0x54ad5e(0x26a)],_0x1246b2=i1(_0x589d71[_0x54ad5e(0x24f)](_0x2407ab)[_0x54ad5e(0x139)](_0x30d9a5),_0x30d9a5,_0x5c9c41);if(_0x234ed6)_0x1246b2=_0x1246b2[_0x54ad5e(0x27d)](_0x234ed6);if(_0xa3c570['orderBySql'][_0x54ad5e(0x1a5)])_0x1246b2=_0x1246b2[_0x54ad5e(0x236)](..._0xa3c570[_0x54ad5e(0x1e2)]);if(_0x429ebc[_0x54ad5e(0x14e)]===_0x54ad5e(0x11b))return await _0x1246b2;let _0x5548bd=Math[_0x54ad5e(0x1ab)](0x1,Number(_0x4c5123['page']??0x1)),_0x3c7892=Math[_0x54ad5e(0x1c8)](0x64,Math[_0x54ad5e(0x1ab)](0x1,Number(_0x4c5123['size']??0x14))),_0x39e9bb=(_0x5548bd-0x1)*_0x3c7892,_0x27d832=await _0x1246b2[_0x54ad5e(0x23e)](_0x3c7892)[_0x54ad5e(0x1b2)](_0x39e9bb),_0x6832da=i1(_0x589d71['select']({'value':w4(_0x30d9a5,_0x4667e5)})[_0x54ad5e(0x139)](_0x30d9a5),_0x30d9a5,_0x5c9c41);if(_0x234ed6)_0x6832da=_0x6832da['where'](_0x234ed6);let _0x4c50a7=await _0x6832da,_0x5d022c=Number(_0x4c50a7[0x0]?.[_0x54ad5e(0x219)]??0x0);return{'list':_0x27d832,'pagination':{'page':_0x5548bd,'size':_0x3c7892,'total':_0x5d022c}};}import{and as _0x45f352,count as _0x42c4ce,eq as _0x2dafc8,inArray as _0x421766,isNotNull as _0x34ebac,isNull as _0x127e5d}from'drizzle-orm';import{createInsertSchema as _0x3723ac,createSelectSchema as _0x35ff4d,createUpdateSchema as _0x3031c0}from'drizzle-zod';function H0(_0x33242d){return{'select':_0x35ff4d(_0x33242d),'insert':_0x3723ac(_0x33242d),'update':_0x3031c0(_0x33242d)};}var p4=[_0x3c273c(0x263),'updateTime',_0x3c273c(0x127)];function KQ(_0x355db3){const _0x446374=_0x3c273c;let _0x30d59a=_0x355db3&&typeof _0x355db3==='object'&&!Array[_0x446374(0x161)](_0x355db3)?{..._0x355db3}:{};for(let _0x53a256 of p4)delete _0x30d59a[_0x53a256];for(let [_0x39c2d5,_0x14c0a3]of Object[_0x446374(0x29a)](_0x30d59a)){if(typeof _0x14c0a3!==_0x446374(0x20d))continue;if(!/^\d{4}-\d{2}-\d{2}/[_0x446374(0x14d)](_0x14c0a3))continue;let _0x4120a2=new Date(_0x14c0a3);if(!Number[_0x446374(0x24a)](_0x4120a2[_0x446374(0x2a9)]()))_0x30d59a[_0x39c2d5]=_0x4120a2;}return _0x30d59a;}function d4(_0x2286b1){return!!_0x2286b1&&typeof _0x2286b1==='object'&&_0x2286b1['getSQL']!=null;}function x(){const _0x3f324b=_0x3c273c;return K[_0x3f324b(0x1eb)](m)['drizzle'];}function B0(_0x2eda4a){const _0x37e631=_0x3c273c;let _0x5acc68=_0x2eda4a['id'];if(!_0x5acc68)throw Error(_0x37e631(0x262));return _0x5acc68;}function r1(_0x4e9dee){const _0xba66b=_0x3c273c;return _0x4e9dee[_0xba66b(0x127)];}function n4(_0x2fa563,_0x591947){if(_0x2fa563&&_0x591947)return _0x45f352(_0x591947,_0x2fa563);return _0x2fa563??_0x591947;}function l4(_0x29190a,_0xa800c3){const _0x5d8638=_0x3c273c;if(!u(_0xa800c3?.[_0x5d8638(0x208)]))return;let _0x48cfdd=r1(_0x29190a);if(_0x48cfdd==null)return;if(_0xa800c3?.[_0x5d8638(0x120)])return _0x34ebac(_0x48cfdd);if(_0xa800c3?.[_0x5d8638(0x22f)])return;return _0x127e5d(_0x48cfdd);}class M0{[_0x3c273c(0x1f6)];[_0x3c273c(0x1cb)];constructor(_0x3cd5f4,_0x14c72e){const _0x1522bc=_0x3c273c;this[_0x1522bc(0x1f6)]=_0x3cd5f4,this[_0x1522bc(0x1cb)]=_0x14c72e??H0(_0x3cd5f4);}['supportsSoftDelete'](){const _0x30b26f=_0x3c273c;return r1(this[_0x30b26f(0x1f6)])!=null;}[_0x3c273c(0x175)](_0xe50a91,_0x31eda1){const _0x2342f9=_0x3c273c;return q(this[_0x2342f9(0x1f6)],n4(_0xe50a91,l4(this['table'],_0x31eda1)));}async[_0x3c273c(0x278)](_0x2f8ea9,_0x5c3568){const _0xe82a5=_0x3c273c;let _0x256c33=this['scopedWhere'](_0x2f8ea9,_0x5c3568),_0x3fb463=x()[_0xe82a5(0x24f)]()[_0xe82a5(0x139)](this['table']);if(_0x256c33)_0x3fb463=_0x3fb463[_0xe82a5(0x27d)](_0x256c33);if(_0x5c3568?.[_0xe82a5(0x236)]?.[_0xe82a5(0x1a5)])_0x3fb463=_0x3fb463[_0xe82a5(0x236)](..._0x5c3568['orderBy']);return await _0x3fb463;}async[_0x3c273c(0x13c)](_0x89de1c,_0x406e99){const _0x5c8d7f=_0x3c273c;let [_0xde8d3f]=await this[_0x5c8d7f(0x278)](_0x89de1c,_0x406e99);return _0xde8d3f;}async[_0x3c273c(0x19e)](_0x590a52,_0x5a39a8){const _0x557a44=_0x3c273c;return this[_0x557a44(0x13c)](_0x2dafc8(B0(this[_0x557a44(0x1f6)]),_0x590a52),_0x5a39a8);}async[_0x3c273c(0x2d7)](_0x11b12b,_0x12e26a){const _0x454704=_0x3c273c;let _0x1f7070=this[_0x454704(0x175)](_0x11b12b,_0x12e26a),_0x51db75=x()['select']({'value':_0x42c4ce()})[_0x454704(0x139)](this[_0x454704(0x1f6)]),_0x1c3572=_0x1f7070?await _0x51db75[_0x454704(0x27d)](_0x1f7070):await _0x51db75;return Number(_0x1c3572[0x0]?.[_0x454704(0x219)]??0x0);}async[_0x3c273c(0x2dc)](_0x5a62fb){const _0x5eaefd=_0x3c273c;let {page:_0x2cfbe8,size:_0x4d042d,where:_0x184935,orderBy:_0x38e117,withTrashed:_0x1eb763,onlyTrashed:_0x5a0ba9,softDelete:_0x5d386b}=_0x5a62fb,_0x2f0a5a={'withTrashed':_0x1eb763,'onlyTrashed':_0x5a0ba9,'softDelete':_0x5d386b},_0x1a31f4=this['scopedWhere'](_0x184935,_0x2f0a5a),_0x1c2e9b=(_0x2cfbe8-0x1)*_0x4d042d,_0x23b8fe=x()[_0x5eaefd(0x24f)]()[_0x5eaefd(0x139)](this['table']);if(_0x1a31f4)_0x23b8fe=_0x23b8fe[_0x5eaefd(0x27d)](_0x1a31f4);if(_0x38e117?.[_0x5eaefd(0x1a5)])_0x23b8fe=_0x23b8fe[_0x5eaefd(0x236)](..._0x38e117);let _0x508041=await _0x23b8fe[_0x5eaefd(0x23e)](_0x4d042d)['offset'](_0x1c2e9b),_0x2d47e7=await this[_0x5eaefd(0x2d7)](_0x184935,_0x2f0a5a);return{'list':_0x508041,'pagination':{'page':_0x2cfbe8,'size':_0x4d042d,'total':_0x2d47e7}};}[_0x3c273c(0x182)](_0x87d185){const _0x480275=_0x3c273c;let _0x54bc2e=UQ(this['table'],KQ(_0x87d185));return this[_0x480275(0x1cb)][_0x480275(0x1e3)][_0x480275(0x291)](_0x54bc2e);}async[_0x3c273c(0x196)](_0x1f12f7){const _0x64a5f2=_0x3c273c;if(Array[_0x64a5f2(0x161)](_0x1f12f7)){if(!_0x1f12f7['length'])return[];let _0x50364d=_0x1f12f7[_0x64a5f2(0x2a2)](_0x459953=>this['parseInsert'](_0x459953));return await x()[_0x64a5f2(0x1e3)](this[_0x64a5f2(0x1f6)])['values'](_0x50364d)[_0x64a5f2(0x141)]();}let [_0x3c5aba]=await x()['insert'](this[_0x64a5f2(0x1f6)])[_0x64a5f2(0x20c)](this['parseInsert'](_0x1f12f7))[_0x64a5f2(0x141)]();return _0x3c5aba;}async[_0x3c273c(0x2a7)](_0x3bf863){const _0x5a349e=_0x3c273c;if(Array[_0x5a349e(0x161)](_0x3bf863)){if(!_0x3bf863[_0x5a349e(0x1a5)])return[];let _0x593c16=_0x3bf863,_0x43c8a0=B0(this[_0x5a349e(0x1f6)]),_0x78d277=_0x593c16[_0x5a349e(0x1ff)](_0x26a551=>_0x26a551?.['id']!=null&&_0x26a551['id']!==''),_0x2c2c97=_0x593c16['filter'](_0x592e0c=>_0x592e0c?.['id']==null||_0x592e0c['id']===''),_0x58e533=new Set();if(_0x78d277['length']){let _0x5becbd=await this[_0x5a349e(0x278)](_0x421766(_0x43c8a0,_0x78d277[_0x5a349e(0x2a2)](_0x92c186=>_0x92c186['id'])));_0x58e533=new Set(_0x5becbd[_0x5a349e(0x2a2)](_0x2f19b3=>_0x2f19b3['id']));}let _0x367d53=[],_0x344109=[..._0x2c2c97];for(let _0x27b48e of _0x78d277)if(_0x58e533[_0x5a349e(0x22e)](_0x27b48e['id']))_0x367d53[_0x5a349e(0x192)](_0x27b48e);else _0x344109[_0x5a349e(0x192)](_0x27b48e);let _0x61de7a=_0x367d53['length']?await this[_0x5a349e(0x25d)](_0x367d53):[],_0x1df022=_0x344109['length']?await this[_0x5a349e(0x196)](_0x344109):[];return[...Array[_0x5a349e(0x161)](_0x61de7a)?_0x61de7a:_0x61de7a?[_0x61de7a]:[],...Array['isArray'](_0x1df022)?_0x1df022:_0x1df022?[_0x1df022]:[]];}let _0x33493f=_0x3bf863,_0x4f3d8e=_0x33493f?.['id'];if(_0x4f3d8e!=null&&_0x4f3d8e!==''){let _0x2ae593=await this['findById'](_0x4f3d8e);if(_0x2ae593){let {id:_0x3ef652,..._0x1a50b0}=_0x33493f;return await this[_0x5a349e(0x25d)](_0x2dafc8(B0(this[_0x5a349e(0x1f6)]),_0x4f3d8e),_0x1a50b0)??_0x2ae593;}}return await this[_0x5a349e(0x196)](_0x3bf863);}async[_0x3c273c(0x25d)](_0x304929,_0x3934d9){const _0x4587a8=_0x3c273c;if(Array['isArray'](_0x304929))return this['updateByRows'](_0x304929);let _0x2e34b0=this[_0x4587a8(0x1cb)][_0x4587a8(0x25d)][_0x4587a8(0x291)](KQ(_0x3934d9)),_0x546af1=q(this[_0x4587a8(0x1f6)],_0x304929);if(!_0x546af1)return;let [_0x4a6271]=await x()[_0x4587a8(0x25d)](this[_0x4587a8(0x1f6)])[_0x4587a8(0x13f)](_0x2e34b0)[_0x4587a8(0x27d)](_0x546af1)[_0x4587a8(0x141)]();return _0x4a6271;}async[_0x3c273c(0x2a0)](_0x58d040){const _0x102475=_0x3c273c;if(!_0x58d040[_0x102475(0x1a5)])return[];let _0x5d4975=B0(this[_0x102475(0x1f6)]),_0x34c6a9=new Map();for(let _0x642648 of _0x58d040){let _0x199999=_0x642648['id'];if(_0x199999==null||_0x199999==='')throw Error(_0x102475(0x1f8));let {id:_0x6f2e37,..._0x174f44}=_0x642648,_0x1ffe76=this[_0x102475(0x1cb)][_0x102475(0x25d)][_0x102475(0x291)](KQ(_0x174f44)),_0x1225b3=JSON[_0x102475(0x1f2)](_0x1ffe76),_0x4711ad=_0x34c6a9[_0x102475(0x1eb)](_0x1225b3);if(_0x4711ad)_0x4711ad[_0x102475(0x22c)]['push'](_0x199999);else _0x34c6a9[_0x102475(0x13f)](_0x1225b3,{'ids':[_0x199999],'patch':_0x1ffe76});}let _0x2a1e8c=[];for(let {ids:_0x21fb47,patch:_0x1ecce1}of _0x34c6a9[_0x102475(0x20c)]()){let _0x26efb6=q(this['table'],_0x421766(_0x5d4975,_0x21fb47));if(!_0x26efb6)continue;let _0x575522=await x()[_0x102475(0x25d)](this[_0x102475(0x1f6)])['set'](_0x1ecce1)[_0x102475(0x27d)](_0x26efb6)[_0x102475(0x141)]();_0x2a1e8c[_0x102475(0x192)](..._0x575522);}return _0x2a1e8c;}[_0x3c273c(0x147)](_0x472123){const _0x21c498=_0x3c273c;if(d4(_0x472123))return q(this[_0x21c498(0x1f6)],_0x472123);let _0x4cfdee=Array[_0x21c498(0x161)](_0x472123)?_0x472123:[_0x472123];if(!_0x4cfdee['length'])return;return q(this['table'],_0x421766(B0(this[_0x21c498(0x1f6)]),_0x4cfdee));}async[_0x3c273c(0x208)](_0x423bcc){const _0x9903c4=_0x3c273c;if(!this['supportsSoftDelete']())throw Error('[Repository]\x20\u8868\u65E0\x20deletedAt\uFF0C\u65E0\u6CD5\u8F6F\u5220\u9664');let _0x24a0d9=this[_0x9903c4(0x147)](_0x423bcc);if(!_0x24a0d9)return;await x()[_0x9903c4(0x25d)](this[_0x9903c4(0x1f6)])[_0x9903c4(0x13f)]({'deletedAt':new Date()})[_0x9903c4(0x27d)](_0x24a0d9);}async[_0x3c273c(0x1bf)](_0x4e6a73){const _0x38e086=_0x3c273c;if(!this[_0x38e086(0x206)]())throw Error('[Repository]\x20\u8868\u65E0\x20deletedAt\uFF0C\u65E0\u6CD5\u6062\u590D');let _0x7d7f74=this['resolveIdWhere'](_0x4e6a73);if(!_0x7d7f74)return;await x()['update'](this[_0x38e086(0x1f6)])['set']({'deletedAt':null})[_0x38e086(0x27d)](_0x7d7f74);}async[_0x3c273c(0x1f9)](_0x404a42){const _0x56c73d=_0x3c273c;let _0x59a629=this['resolveIdWhere'](_0x404a42);if(!_0x59a629)return;await x()[_0x56c73d(0x11c)](this[_0x56c73d(0x1f6)])['where'](_0x59a629);}}var o1=new WeakMap();function i(_0x559ac9){const _0x3bf6e6=_0x3c273c;let _0xfe0804=o1[_0x3bf6e6(0x1eb)](_0x559ac9);if(_0xfe0804)return _0xfe0804;let _0x2a1753=new M0(_0x559ac9);return o1[_0x3bf6e6(0x13f)](_0x559ac9,_0x2a1753),_0x2a1753;}function _Q(_0x39c473){return(_0x5d4abc,_0x939a1b)=>{const _0x3c9c46=_0x907e;c(_0x5d4abc[_0x3c9c46(0x252)],{'propertyKey':_0x939a1b,'resolve':()=>i(_0x39c473)});};}function i4(_0x2385d2){const _0x30813a=_0x3c273c;return!!_0x2385d2&&typeof _0x2385d2==='object'&&_0x2385d2[_0x30813a(0x234)]!=null;}class a{[_0x3c273c(0x2d0)];['bindEntity'](_0x3ec5e3){const _0x2e8448=_0x3c273c;if(!this['entity'])this[_0x2e8448(0x2d0)]=_0x3ec5e3;}[_0x3c273c(0x256)](_0xb9256b){this['entity']=_0xb9256b;}['hasEntity'](){return!!this['entity'];}[_0x3c273c(0x184)](){const _0x3ff88=_0x3c273c;return this[_0x3ff88(0x142)]();}[_0x3c273c(0x142)](){const _0x382423=_0x3c273c;if(!this[_0x382423(0x2d0)])throw Error(_0x382423(0x199));return this[_0x382423(0x2d0)];}async[_0x3c273c(0x1de)](_0x1b9ad2,_0x4e2ec1){}async[_0x3c273c(0x1ad)](_0x2516ee,_0x2ca06a){}async[_0x3c273c(0x2b1)](_0x52716e,_0x32b527){const _0x1cd660=_0x3c273c;let _0x11135d=b0(_0x32b527?.[_0x1cd660(0x152)]),_0x3965d9=Array[_0x1cd660(0x161)](_0x52716e)?_0x52716e[_0x1cd660(0x2a2)](_0x5de3e6=>_0x5de3e6!=null&&typeof _0x5de3e6===_0x1cd660(0x2b4)?{..._0x5de3e6}:_0x5de3e6):_0x52716e!=null&&typeof _0x52716e===_0x1cd660(0x2b4)?{..._0x52716e}:_0x52716e;await this[_0x1cd660(0x1de)](_0x3965d9,_0x1cd660(0x2b1));let _0xa6e2c5=_0x11135d===_0x1cd660(0x2a7)?await this[_0x1cd660(0x142)]()[_0x1cd660(0x2a7)](_0x3965d9):await this[_0x1cd660(0x142)]()[_0x1cd660(0x196)](_0x3965d9);return await this[_0x1cd660(0x1ad)](_0xa6e2c5??_0x3965d9,_0x1cd660(0x2b1)),_0xa6e2c5;}async[_0x3c273c(0x25d)](_0x346820,_0x5335a7){const _0x4d445b=_0x3c273c;if(Array[_0x4d445b(0x161)](_0x346820)){let _0x13ede0=_0x346820['map'](_0x43f712=>({..._0x43f712}));await this[_0x4d445b(0x1de)](_0x13ede0,_0x4d445b(0x25d));let _0x50a976=await this[_0x4d445b(0x142)]()[_0x4d445b(0x25d)](_0x13ede0);return await this[_0x4d445b(0x1ad)](_0x50a976??_0x13ede0,'update'),_0x50a976;}if(i4(_0x346820)){let _0x5c797e=_0x5335a7!=null&&typeof _0x5335a7==='object'?{..._0x5335a7}:_0x5335a7;await this[_0x4d445b(0x1de)](_0x5c797e,_0x4d445b(0x25d));let _0x420d5f=await this[_0x4d445b(0x142)]()[_0x4d445b(0x25d)](_0x346820,_0x5c797e);return await this[_0x4d445b(0x1ad)](_0x420d5f??_0x5c797e,_0x4d445b(0x25d)),_0x420d5f;}let _0x990fe5={..._0x346820};await this[_0x4d445b(0x1de)](_0x990fe5,_0x4d445b(0x25d));let _0x81298d=await this[_0x4d445b(0x142)]()[_0x4d445b(0x25d)]([_0x990fe5]);return await this[_0x4d445b(0x1ad)](_0x81298d??_0x990fe5,_0x4d445b(0x25d)),Array[_0x4d445b(0x161)](_0x81298d)?_0x81298d[0x0]:_0x81298d;}async[_0x3c273c(0x11c)](_0x1ec3f6,_0x2b9528){const _0x83a6de=_0x3c273c;let _0x21a551=this['requireEntity']();await this[_0x83a6de(0x1de)](_0x1ec3f6,_0x83a6de(0x11c));let _0x295947=u(_0x2b9528?.[_0x83a6de(0x208)]);if(_0x2b9528?.[_0x83a6de(0x1d8)]||!_0x295947||!_0x21a551[_0x83a6de(0x206)]())await _0x21a551[_0x83a6de(0x1f9)](_0x1ec3f6);else await _0x21a551[_0x83a6de(0x208)](_0x1ec3f6);await this[_0x83a6de(0x1ad)](_0x1ec3f6,'delete');}[_0x3c273c(0x1bf)](_0xad9193){const _0x13d7b6=_0x3c273c;return this[_0x13d7b6(0x142)]()[_0x13d7b6(0x1bf)](_0xad9193);}[_0x3c273c(0x11b)](_0x3c7509,_0x1aa50a){const _0x2066e0=_0x3c273c;return this[_0x2066e0(0x142)]()[_0x2066e0(0x278)](_0x3c7509,_0x1aa50a);}['info'](_0x2fd92e,_0x2457d8){let _0x34e197=this['requireEntity']();if(typeof _0x2fd92e==='object')return _0x34e197['findOne'](_0x2fd92e,_0x2457d8);return _0x34e197['findById'](_0x2fd92e,_0x2457d8);}[_0x3c273c(0x25a)](_0x2add12={}){const _0x507eb0=_0x3c273c;let _0x5553f7=Math[_0x507eb0(0x1ab)](0x1,_0x2add12['page']??0x1),_0x1b3d93=Math[_0x507eb0(0x1c8)](0x64,Math['max'](0x1,_0x2add12['size']??0x14));return this[_0x507eb0(0x142)]()[_0x507eb0(0x2dc)]({'page':_0x5553f7,'size':_0x1b3d93,'where':_0x2add12['where'],'orderBy':_0x2add12[_0x507eb0(0x236)],'withTrashed':_0x2add12[_0x507eb0(0x22f)],'onlyTrashed':_0x2add12['onlyTrashed'],'softDelete':_0x2add12['softDelete']});}}var m0={'add':'\u65B0\u589E','delete':'\u5220\u9664','update':'\u4FEE\u6539','info':_0x3c273c(0x285),'list':'\u5217\u8868\u67E5\u8BE2','page':_0x3c273c(0x1e7),'restore':'\u6062\u590D'},s4=[_0x3c273c(0x2b1),_0x3c273c(0x11c),_0x3c273c(0x25d),_0x3c273c(0x1ba),_0x3c273c(0x11b),_0x3c273c(0x25a),_0x3c273c(0x1bf)],CQ=new Set([_0x3c273c(0x2b1),_0x3c273c(0x25d),_0x3c273c(0x11c),_0x3c273c(0x1bf)]);function o4(_0x297052,_0x1ef6b7){if(!_0x297052||!_0x1ef6b7?.['length'])return _0x297052;let _0x38f8d5={..._0x297052};for(let _0x3c7c0f of _0x1ef6b7)delete _0x38f8d5[_0x3c7c0f];return _0x38f8d5;}function a1(_0x477965){const _0x16f186=_0x3c273c;if(Array['isArray'](_0x477965))return _0x477965[_0x16f186(0x2a2)](_0x16f54b=>{const _0x40d544=_0x16f186;if(_0x16f54b!=null&&typeof _0x16f54b===_0x40d544(0x2b4)&&'id'in _0x16f54b)return _0x16f54b['id'];return _0x16f54b;});if(_0x477965&&typeof _0x477965===_0x16f186(0x2b4)){let _0x593f46=_0x477965;if(Array[_0x16f186(0x161)](_0x593f46[_0x16f186(0x22c)]))return _0x593f46[_0x16f186(0x22c)];if(_0x593f46['id']!=null)return[_0x593f46['id']];}return[];}function r4(_0x587541){const _0x34147c=_0x3c273c;let _0x41fdae=_0x587541[_0x34147c(0x292)],_0x19216f=_0x41fdae['entity'];if(_0x41fdae[_0x34147c(0x2ad)]){let _0x4ddd82=K[_0x34147c(0x1eb)](_0x41fdae[_0x34147c(0x2ad)]);if(_0x19216f&&!_0x4ddd82[_0x34147c(0x20b)]())_0x4ddd82[_0x34147c(0x256)](i(_0x19216f));return _0x4ddd82;}if(!_0x19216f)throw Error(_0x34147c(0x28d)+_0x587541['token'][_0x34147c(0x172)]+_0x34147c(0x299));let _0x16d5b8=new class extends a{}();return _0x16d5b8['setEntity'](i(_0x19216f)),_0x16d5b8;}function a4(_0x34ce48,_0x2318d8){const _0x1771b1=_0x3c273c;let _0x139ceb=_0x2318d8[_0x1771b1(0x292)]?.['entity'];if(_0x139ceb)return _0x139ceb;return _0x34ce48[_0x1771b1(0x184)]()[_0x1771b1(0x1f6)];}var L0=(_0xf3a02a,_0x488328,_0x1381c4)=>{const _0x8da442=_0x3c273c;let _0x4779a7=_0x488328[_0x8da442(0x292)];if(!_0x4779a7)return _0xf3a02a;let _0x50602f=(_0x4779a7[_0x8da442(0x1a0)]??[])['filter'](_0x4e7c35=>s4['includes'](_0x4e7c35)),_0x328104=_0x4779a7[_0x8da442(0x163)]??[];if(!_0x50602f[_0x8da442(0x1a5)]&&!_0x328104['length'])return _0xf3a02a;let _0x412a78=_0x1381c4[_0x8da442(0x138)]instanceof n?_0x1381c4[_0x8da442(0x138)]:new n(),_0x206691=_0x50602f[_0x8da442(0x1a5)]>0x0,_0x343d64=_0x206691||_0x4779a7[_0x8da442(0x2ad)]?r4(_0x488328):void 0x0,_0x48aad4=_0x206691&&_0x343d64?a4(_0x343d64,_0x488328):void 0x0,_0xbeab8a=_0x48aad4?_0x48aad4['id']:void 0x0;if(_0x206691&&_0xbeab8a==null)throw Error('[CRUD]\x20'+_0x488328[_0x8da442(0x29f)][_0x8da442(0x172)]+_0x8da442(0x2c4));let _0x34c258=_0xf3a02a,_0x3283c8=(_0x181811,_0x14bd26,_0x4339db,_0x57c338)=>{const _0x25b703=_0x8da442;_0x34c258=_0x34c258[_0x181811](_0x14bd26,_0x57c338,_0x1381c4[_0x25b703(0x204)]({'action':_0x4339db,'summary':m0[_0x4339db]}));},_0x544cdd=async(_0xc6a6a0,_0x3ce1ca,_0x3051fc)=>{const _0x3c5a8c=_0x8da442;if(!_0x4779a7[_0x3c5a8c(0x210)]||!CQ['has'](_0xc6a6a0))return _0x3ce1ca;return await _0x4779a7[_0x3c5a8c(0x210)]({'body':_0x3ce1ca,'request':_0x3051fc,'api':_0xc6a6a0}),_0x3ce1ca;};if(_0x50602f[_0x8da442(0x129)](_0x8da442(0x2b1))&&_0x343d64)_0x3283c8(_0x8da442(0x2b7),_0x8da442(0x2d6),_0x8da442(0x2b1),async({body:_0x24657,request:_0x4528e7})=>{const _0x3434d9=_0x8da442;try{let _0x2188d8=_0x24657;if(Array[_0x3434d9(0x161)](_0x2188d8)){let _0xb1ccd1=_0x2188d8;if(_0x4779a7['before']&&CQ[_0x3434d9(0x22e)](_0x3434d9(0x2b1))){for(let _0x5e96ca=0x0;_0x5e96ca<_0xb1ccd1[_0x3434d9(0x1a5)];_0x5e96ca++)_0xb1ccd1[_0x5e96ca]=await _0x544cdd(_0x3434d9(0x2b1),{..._0xb1ccd1[_0x5e96ca]??{}},_0x4528e7);}if(_0x4779a7[_0x3434d9(0x1bd)]){let _0x525fe8=await _0x4779a7[_0x3434d9(0x1bd)]({'body':_0xb1ccd1[0x0]??{},'request':_0x4528e7});_0xb1ccd1=_0xb1ccd1[_0x3434d9(0x2a2)](_0x5a244f=>({..._0x5a244f,..._0x525fe8}));}let _0x3e4029=await _0x343d64['add'](_0xb1ccd1);return _0x412a78['ok'](_0x3e4029);}let _0xaffc25={..._0x2188d8??{}};if(_0xaffc25=await _0x544cdd(_0x3434d9(0x2b1),_0xaffc25,_0x4528e7),_0x4779a7['insertParam'])Object['assign'](_0xaffc25,await _0x4779a7[_0x3434d9(0x1bd)]({'body':_0xaffc25,'request':_0x4528e7}));let _0x3bd040=await _0x343d64['add'](_0xaffc25);return _0x412a78['ok'](_0x3bd040);}catch(_0x54c34c){return _0x412a78[_0x3434d9(0x20f)](_0x54c34c instanceof Error?_0x54c34c['message']:_0x3434d9(0x21a));}});if(_0x50602f[_0x8da442(0x129)](_0x8da442(0x11c))&&_0x343d64&&_0xbeab8a)_0x3283c8(_0x8da442(0x2b7),_0x8da442(0x277),_0x8da442(0x11c),async({body:_0x2da2f5,request:_0x3ef06d})=>{const _0x3d72a6=_0x8da442;try{let _0x10070f=_0x2da2f5,_0x5bfeb7=Array[_0x3d72a6(0x161)](_0x10070f)?_0x10070f:await _0x544cdd('delete',{..._0x10070f??{}},_0x3ef06d),_0x3e477c=a1(_0x5bfeb7);if(!_0x3e477c['length'])return _0x412a78[_0x3d72a6(0x20f)](_0x3d72a6(0x18c));let _0x225f2d=!Array[_0x3d72a6(0x161)](_0x5bfeb7)&&!!_0x5bfeb7[_0x3d72a6(0x1d8)];return await _0x343d64[_0x3d72a6(0x11c)](_0x3e477c,{'force':_0x225f2d}),_0x412a78['ok']();}catch(_0x101b79){return _0x412a78[_0x3d72a6(0x20f)](_0x101b79 instanceof Error?_0x101b79['message']:_0x3d72a6(0x226));}});if(_0x50602f['includes'](_0x8da442(0x25d))&&_0x343d64&&_0xbeab8a)_0x3283c8(_0x8da442(0x2b7),_0x8da442(0x13a),'update',async({body:_0x9baca6,request:_0x409a4d})=>{const _0x435a5e=_0x8da442;try{let _0xb0f204=_0x9baca6;if(Array[_0x435a5e(0x161)](_0xb0f204)){let _0x3ecdd6=_0xb0f204;if(_0x4779a7['before']&&CQ[_0x435a5e(0x22e)](_0x435a5e(0x25d))){for(let _0x444b19=0x0;_0x444b19<_0x3ecdd6[_0x435a5e(0x1a5)];_0x444b19++)_0x3ecdd6[_0x444b19]=await _0x544cdd(_0x435a5e(0x25d),{..._0x3ecdd6[_0x444b19]??{}},_0x409a4d);}let _0x161eeb=await _0x343d64[_0x435a5e(0x25d)](_0x3ecdd6);return _0x412a78['ok'](_0x161eeb);}let _0x4aaf05=await _0x544cdd(_0x435a5e(0x25d),{..._0xb0f204??{}},_0x409a4d);if(_0x4aaf05['id']==null)return _0x412a78[_0x435a5e(0x20f)](_0x435a5e(0x212));let _0xebb4a1=await _0x343d64['update'](_0x4aaf05);return _0x412a78['ok'](_0xebb4a1);}catch(_0x25ddd2){return _0x412a78['fail'](_0x25ddd2 instanceof Error?_0x25ddd2[_0x435a5e(0x267)]:_0x435a5e(0x24b));}});if(_0x50602f[_0x8da442(0x129)](_0x8da442(0x1ba))&&_0x343d64)_0x3283c8('get',_0x8da442(0x18a),'info',async({query:_0x1be098})=>{const _0x43dd26=_0x8da442;try{let _0x429879=_0x1be098?.['id'];if(_0x429879==null||_0x429879==='')return _0x412a78[_0x43dd26(0x20f)](_0x43dd26(0x212));let _0x28bafb=await _0x343d64[_0x43dd26(0x1ba)](_0x429879);return _0x412a78['ok'](o4(_0x28bafb,_0x4779a7[_0x43dd26(0x264)]));}catch(_0x357d7f){return _0x412a78['fail'](_0x357d7f instanceof Error?_0x357d7f['message']:_0x43dd26(0x1fe));}});if(_0x50602f[_0x8da442(0x129)](_0x8da442(0x11b))&&_0x343d64&&_0x48aad4)_0x3283c8(_0x8da442(0x2b7),_0x8da442(0x2b3),_0x8da442(0x11b),async({body:_0x35c58a,request:_0x38c0eb})=>{const _0x265c30=_0x8da442;try{let _0x44192b=_0x35c58a??{},_0x2ff3b9=_0x4779a7['listQueryOp']??{},_0x1a8f9e={'onlyTrashed':_0x44192b[_0x265c30(0x120)]===!0x0,'withTrashed':_0x44192b['withTrashed']===!0x0};if(W0(_0x2ff3b9)){let _0x11a26b=await j0(_0x48aad4,_0x44192b,_0x2ff3b9,{'request':_0x38c0eb,'mode':_0x265c30(0x11b),'trash':_0x1a8f9e});return _0x412a78['ok'](_0x11a26b);}let {where:_0x29bc4d,orderBySql:_0xffd4b1}=await l(_0x48aad4,_0x44192b,_0x2ff3b9,_0x38c0eb),_0x583281=await _0x343d64[_0x265c30(0x11b)](_0x29bc4d,{'orderBy':_0xffd4b1,..._0x1a8f9e});return _0x412a78['ok'](_0x583281);}catch(_0x5ce852){return _0x412a78[_0x265c30(0x20f)](_0x5ce852 instanceof Error?_0x5ce852[_0x265c30(0x267)]:'list\x20failed');}});if(_0x50602f['includes']('page')&&_0x343d64&&_0x48aad4)_0x3283c8(_0x8da442(0x2b7),_0x8da442(0x2b0),_0x8da442(0x25a),async({body:_0x41d77c,request:_0x2cce1d})=>{const _0x12a516=_0x8da442;try{let _0x19befc=_0x41d77c??{},_0x2c1a53=_0x4779a7[_0x12a516(0x189)]??{},_0x441e96={'onlyTrashed':_0x19befc[_0x12a516(0x120)]===!0x0,'withTrashed':_0x19befc[_0x12a516(0x22f)]===!0x0};if(W0(_0x2c1a53)){let _0x33d529=await j0(_0x48aad4,_0x19befc,_0x2c1a53,{'request':_0x2cce1d,'mode':'page','trash':_0x441e96});return _0x412a78['ok'](_0x33d529);}let {where:_0x3b28a5,orderBySql:_0x3b7a8f}=await l(_0x48aad4,_0x19befc,_0x2c1a53,_0x2cce1d),_0x1a4a9e=await _0x343d64['page']({'page':Number(_0x19befc[_0x12a516(0x25a)]??0x1),'size':Number(_0x19befc[_0x12a516(0x294)]??0x14),'where':_0x3b28a5,'orderBy':_0x3b7a8f,..._0x441e96});return _0x412a78['ok'](_0x1a4a9e);}catch(_0x4c8018){return _0x412a78[_0x12a516(0x20f)](_0x4c8018 instanceof Error?_0x4c8018[_0x12a516(0x267)]:'page\x20failed');}});if(_0x50602f['includes'](_0x8da442(0x1bf))&&_0x343d64&&_0xbeab8a)_0x3283c8(_0x8da442(0x2b7),'/restore',_0x8da442(0x1bf),async({body:_0x3dd55a,request:_0x2f6825})=>{const _0x488327=_0x8da442;try{let _0x228f5e=_0x3dd55a,_0x218e6a=Array[_0x488327(0x161)](_0x228f5e)?_0x228f5e:await _0x544cdd(_0x488327(0x1bf),{..._0x228f5e??{}},_0x2f6825),_0x3ab088=a1(_0x218e6a);if(!_0x3ab088[_0x488327(0x1a5)])return _0x412a78['fail'](_0x488327(0x18c));return await _0x343d64[_0x488327(0x1bf)](_0x3ab088),_0x412a78['ok']();}catch(_0x18615c){return _0x412a78[_0x488327(0x20f)](_0x18615c instanceof Error?_0x18615c[_0x488327(0x267)]:_0x488327(0x23c));}});if(_0x328104[_0x8da442(0x1a5)]){if(!_0x4779a7[_0x8da442(0x2ad)])throw Error('[CRUD]\x20'+_0x488328['token'][_0x8da442(0x172)]+_0x8da442(0x167));let _0x60762f=K['get'](_0x4779a7[_0x8da442(0x2ad)]);for(let _0x355c24 of _0x328104){let _0x256e90=_0x60762f[_0x355c24];if(typeof _0x256e90!==_0x8da442(0x117))throw Error(_0x8da442(0x28d)+_0x4779a7['service'][_0x8da442(0x172)]+'.'+_0x355c24+'\x20不是有效方法');let _0x509907=_0x256e90[_0x8da442(0x26b)](_0x60762f);_0x3283c8(_0x8da442(0x2b7),'/'+_0x355c24,_0x355c24,async({body:_0x4286ad})=>{const _0x3c7adc=_0x8da442;try{let _0x2c8fb2=await _0x509907(_0x4286ad);return _0x412a78['ok'](_0x2c8fb2);}catch(_0x354d9c){return _0x412a78['fail'](_0x354d9c instanceof Error?_0x354d9c[_0x3c7adc(0x267)]:_0x355c24+'\x20failed');}});}}return _0x34c258;};import{join as _0x235be2}from'path';import{pathToFileURL as _0x5c0b01}from'url';var t4=_0x3c273c(0x21f),e4=[{'pattern':_0x3c273c(0x18b),'side':'admin'},{'pattern':_0x3c273c(0x293),'side':_0x3c273c(0x1c1)}];async function Q5(_0x147fde,_0x3f5f33,_0x5f749){const _0x4b4277=_0x3c273c;zQ({'module':y1(_0x3f5f33),'side':_0x5f749,'file':_0x3f5f33});try{await import(_0x5c0b01(_0x235be2(_0x147fde,_0x3f5f33))[_0x4b4277(0x1e4)]);}finally{zQ(null);}}async function HQ(){const _0x357e9a=_0x3c273c;let _0x2cf7e2=process[_0x357e9a(0x1ac)](),_0x388213=await X0(t4,{'cwd':_0x2cf7e2});for(let _0x42a952 of _0x388213)await import(_0x5c0b01(_0x235be2(_0x2cf7e2,_0x42a952))[_0x357e9a(0x1e4)]);let _0xe46fed=0x0;for(let {pattern:_0x243327,side:_0x17cdd9}of e4){let _0x40849e=await X0(_0x243327,{'cwd':_0x2cf7e2});_0xe46fed+=_0x40849e[_0x357e9a(0x1a5)];for(let _0x23e1fb of _0x40849e)await Q5(_0x2cf7e2,_0x23e1fb,_0x17cdd9);}f0(L0),console[_0x357e9a(0x261)](_0x357e9a(0x295)),console[_0x357e9a(0x261)](_0x357e9a(0x216)+_0x388213[_0x357e9a(0x1a5)]+'\x20service,\x20'+_0xe46fed+_0x357e9a(0x157));}import{join as _0x5dae95}from'path';import{createPinoLogger as _0x5d900b}from'@bogeychan/elysia-logger';import _0x19cef7 from'pino-pretty';import{createWriteStream as _0xf10e96,mkdirSync as _0x588b27,readdirSync as _0x4532fa,unlinkSync as _0x94dc3d}from'fs';import{join as _0x4a8895}from'path';import{Writable as _0x39b039}from'stream';var W5=/^(\d{4}-\d{2}-\d{2})\.log$/;function IQ(_0x483639=new Date()){const _0x40e031=_0x3c273c;let _0x3c0672=_0x483639['getFullYear'](),_0x3a5bd4=String(_0x483639[_0x40e031(0x14c)]()+0x1)[_0x40e031(0x1dd)](0x2,'0'),_0x10eb5d=String(_0x483639[_0x40e031(0x195)]())[_0x40e031(0x1dd)](0x2,'0');return _0x3c0672+'-'+_0x3a5bd4+'-'+_0x10eb5d;}function Q3(_0x3e73c3,_0x141999){const _0x48bbf0=_0x3c273c;let _0x14e2a9=new Date();_0x14e2a9[_0x48bbf0(0x2d9)](_0x14e2a9[_0x48bbf0(0x195)]()-_0x141999);let _0x4f808c=IQ(_0x14e2a9);for(let _0x38ca19 of _0x4532fa(_0x3e73c3)){let _0x166473=_0x38ca19[_0x48bbf0(0x27e)](W5);if(!_0x166473||_0x166473[0x1]>=_0x4f808c)continue;_0x94dc3d(_0x4a8895(_0x3e73c3,_0x38ca19));}}function $3(_0x56abd9,_0x5bf662){const _0x590eb0=_0x3c273c;return _0xf10e96(_0x4a8895(_0x56abd9,_0x5bf662+_0x590eb0(0x1ce)),{'flags':'a'});}function J3(_0x468a73,_0x2480a1=0x1e){_0x588b27(_0x468a73,{'recursive':!0x0}),Q3(_0x468a73,_0x2480a1);let _0x2308c8=IQ(),_0x385507=$3(_0x468a73,_0x2308c8);return new _0x39b039({'write'(_0x4185fe,_0x1508d2,_0x4f3003){const _0x216659=_0x907e;let _0x354f0d=IQ();if(_0x354f0d!==_0x2308c8)_0x385507['end'](),_0x2308c8=_0x354f0d,_0x385507=$3(_0x468a73,_0x2308c8),Q3(_0x468a73,_0x2480a1);_0x385507[_0x216659(0x22b)](_0x4185fe,_0x4f3003);},'final'(_0x53e8f5){const _0x36937b=_0x907e;_0x385507[_0x36937b(0x1f5)](_0x53e8f5);}});}var c0;function F5(){const _0x2339c=_0x3c273c;let _0x61aeb4=D[_0x2339c(0x168)]??{},_0x405ccd=_0x61aeb4[_0x2339c(0x276)]??'info';if(_0x61aeb4[_0x2339c(0x1e1)]===_0x2339c(0x1df)){let _0x6ada9=_0x5dae95(process[_0x2339c(0x1ac)](),_0x61aeb4['dir']??_0x2339c(0x168)),_0x32854d=_0x61aeb4[_0x2339c(0x179)]??0x1e;return _0x5d900b({'level':_0x405ccd,'stream':J3(_0x6ada9,_0x32854d)});}return _0x5d900b({'level':_0x405ccd,'stream':_0x19cef7({'colorize':!0x0,'translateTime':_0x2339c(0x21b),'ignore':_0x2339c(0x2cb)})});}function R(){if(!c0)c0=F5();return c0;}function RQ(){c0=void 0x0;}class s{[_0x3c273c(0x1ba)](_0x1d2deb,..._0x1c5bb7){const _0x72b8da=_0x3c273c;let _0x111257=R();if(_0x1c5bb7['length'])_0x111257[_0x72b8da(0x1ba)]({'args':_0x1c5bb7},_0x1d2deb);else _0x111257[_0x72b8da(0x1ba)](_0x1d2deb);}['warn'](_0x8f252d,..._0x148b98){const _0x3ba28f=_0x3c273c;let _0x3b4a2c=R();if(_0x148b98[_0x3ba28f(0x1a5)])_0x3b4a2c[_0x3ba28f(0x283)]({'args':_0x148b98},_0x8f252d);else _0x3b4a2c[_0x3ba28f(0x283)](_0x8f252d);}['debug'](_0x3575e3,..._0x2054e0){const _0x179e6c=_0x3c273c;let _0x1eca3d=R();if(_0x2054e0[_0x179e6c(0x1a5)])_0x1eca3d[_0x179e6c(0x1d4)]({'args':_0x2054e0},_0x3575e3);else _0x1eca3d[_0x179e6c(0x1d4)](_0x3575e3);}[_0x3c273c(0x15e)](_0x3acccd,..._0x37ec04){const _0x423d6e=_0x3c273c;let _0x4520c0=R();if(_0x3acccd instanceof Error){_0x4520c0[_0x423d6e(0x15e)](_0x3acccd);return;}if(_0x37ec04[0x0]instanceof Error){_0x4520c0[_0x423d6e(0x15e)](_0x37ec04[0x0],_0x3acccd);return;}if(_0x37ec04['length'])_0x4520c0[_0x423d6e(0x15e)]({'args':_0x37ec04},_0x3acccd);else _0x4520c0['error'](_0x3acccd);}}class Y0 extends Error{[_0x3c273c(0x1e6)];['code'];constructor(_0xebe030,_0x460edb){const _0x4b3edb=_0x3c273c;super(_0xebe030),(this[_0x4b3edb(0x172)]=_0x4b3edb(0x198),this[_0x4b3edb(0x1e6)]=_0x460edb?.[_0x4b3edb(0x1e6)]??0xc8,this[_0x4b3edb(0x237)]=_0x460edb?.['code']??C['ERROR']);}}function U0(_0x293453){return _0x293453 instanceof Y0;}function qQ(){const _0x348b46=_0x3c273c;R(),K[_0x348b46(0x13f)](s,new s());}var j5=_0x3c273c(0x1a6);function _0x3d5b(){const _0x4f4f77=['l2fKza','y291BNq','DMfYifbSDwDPBIa9','C2v0rgf0zq','AxneAxjLy3rVCNK','BM90tNvSBa','zMLUzfbHz2u','DhLWAw5NCY9Hzg1PBG','BM9Uzq','C29Tzq','B25Jzq','zNvUy3rPB24','q2fJAgu','Bw9KDwXLr2f0zxDHEq','zw52','BgLZDa','zgvSzxrL','xJeUnc4Xnq','C3rKB3v0','DM9TztPJB250CM9SBgvYoNjVDxrLlxb1yMXPyW','B25SEvrYyxnOzwq','ywXS','DhjHC2G','5PU05PAW5PE26zE0','pJ0WlJiUma','qM9KEq','yMLUzevUDgL0Eq','zgvSzxrLzef0','lI9ZCMmVywrTAw4VC3r5BgvZl2jHC2uUy3nZ','Aw5JBhvKzxm','z2v0u3rVCMu','CgX1z2LUsw5MBW','Agv4','ChjVCgvYDhLoyw1L','DxnL','y2HHCKf0','BgfZDeLUzgv4t2y','C3vTBwfYEq','DhjPBq','y2XPzw50','BNvTzxjPyW','CM91DgvqyxjHBxm','zw5HyMXL','Bwv0Ag9K','y29UDhjVBgXLCG','zNjVBq','l3vWzgf0zq','DgfNCW','zMLUze9Uzq','ufvu','cIaGicbtruXfq1qkicaGicaGyY5YzwXUyw1LieftihrHyMXLx25HBwuScIaGicaGigeUyxr0BMfTzsbbuYbJB2X1Bw5FBMfTzsWkicaGicaGy29Sx2rLC2nYAxb0Aw9UkgeUyxr0CMvSAwqSigeUyxr0BNvTksbbuYbJB21Tzw50cIaGicbguK9nihbNx2nHDgfSB2CUCgDFy2XHC3mGyWOGicaGsK9jtIbWz19JyxrHBg9NlNbNx25HBwvZCgfJzsbUie9oig4UB2LKid0GyY5YzwXUyw1LC3bHy2ukicaGiePpsu4GCgDFy2f0ywXVzY5Wz19HDhrYAwj1DguGysbptIbHlMf0DhjLBgLKid0GyY5VAwqkicaGifDirvjfigmUCMvSA2LUzca9icDYjWOGicaGicbbtKqGBI5UC3bUyw1Lid0Gy3vYCMvUDf9Zy2HLBweOkqOGicaGicbbtKqGys5HDhrUDw0GpIaWcIaGicaGieforcbot1qGys5HDhrPC2rYB3bWzwqkicaGicaGqu5eigmUCMvSBMfTzsbjtIaO','C2v0','DxjS','CMv0DxjUAw5N','CMvXDwLYzuvUDgL0Eq','zMLLBgrsyw5Nzq','lMH0BwW','y29UDgfPBNm','w1jVDxrLCL0G','CMvZB2X2zuLKv2HLCMu','mc4WlJq','mtaXnJb2DgDgBve','Cgf0y2G','yxbWBgLJyxrPB24VANnVBJSGy2HHCNnLDd11DgyToa','z2v0tw9UDgG','DgvZDa','Bw9Kzq','nZy5nJi2zK53q1D3','CMvXDwvZDeXVzW','y2XVC2u','DxbZzxj0','zg9JDw1LBNrHDgLVBG','DM9TztPJB250CM9SBgvYoNjVDxrLlwLNBM9Yzs1WzxjTCW','l2fKBwLUl2v4Dc86A2v5lYO','A2v5v29Yza','ignVBNrYB2XSzxiGzMLSzsHZkq','kqOGia','Dgv4Dc9JC3m7ignOyxjZzxq9DxrMltG','C2XPy2u','zgf0yvnJB3bL','mtaYodbfq0Xsv1K','C3jJl2XPyI9TB2r1BguVAw5KzxGUDhm','zxjYB3i','5QIH5z2x5PYQ5yQG6l29','lMnZCW','AxnbCNjHEq','lM1QCW','C2vYDMLJzufWAxm','BwLKzgXLD2fYzq','y2fSBa','zxHPDa','ioMfJEE9RUs6HIbZzxj2AwnLqxbPC++8JoMCGowqJoAxTUMfJEE9RIbZzxj2AwnL','Bg9Nz2LUzW','AgvHzgvYCW','ChvIBgLJ','C2nHBgfY','ioMfJEE9RUs6HIbHCgKVC2vYDMLJzufWAxpVViZKVyBMNkRMIB7LIlaGq1jvrcdLRP7NJRdVViHaDM9Tzs1JB3jLigf0DgfJAenYDwrsB3v0zxmG5PYQ5OYc6l2977Yj','lw1Hy3jV','Ec1MB3j3yxjKzwqTzM9Y','Cg9YDa','xJeWlJmUmq','uxvLCNK','BMfTzq','A2v5v29YzeXPA2vgAwvSzhm','ywrTAw4','C2nVCgvKv2HLCMu','DxrMoa','Ec1MB3j3yxjKzwqTAg9ZDa','yMvMB3jLsgfUzgXL','Bwf4rgf5CW','BM90igzVDw5K','5QIH5z2xia','CMvXDwLYzq','kgfUB255Bw91CYK','8j+tOsdMNi3LIQhLNldLNya6ia','ywrTAw5bDxrO','BwLJCM9bChbZ','zxHWB3j0CW','CgfYC2vjBNnLCNq','C2nVCgu','z2v0uMvWBW','ChjVza','AgfUzgXLCG','BNvTyMvY','CMvHzhK','CgfNzvf1zxj5t3a','l2LUzM8','kIOVBw9KDwXLCY8Ql2nVBNrYB2XSzxiVywrTAw4VkIOVkI50CW','AwrZihjLCxvPCMvK','nta1sff0q0nJ','B3bLBMfWAq','C3fS','vM9TzsbMCMfTzxDVCMSG4OcuihnOyxjLzcaRiej1BI9fBhLZAweGC2vYDMvYicSGvNvLigfKBwLU','w1jVDxrLCL0G5PYQ55+L5y+c5PwW5P2L5RQqoIa','ChvZAa','ue9tva','y3r4','z2v0rgf0zq','y3jLyxrL','u0Lhvevstq','q29TBuv4y2vWDgLVBG','w0jHC2vtzxj2AwnLxsdMNkRNU5hLRPRLRP7KVzpVViZOR7FKVB/NLkGGqeLUAMvJDfjLCg9ZAxrVCNKG5OIwihnLDevUDgL0Eq','x19ZA2LWrgf0yvnJB3bL','w1bSDwDPBL0G5yQG6l295AsX6lsLoIa','zgf0yvr5Cgu','lI9KAxn0l2LUzgv4lMPZ','zMLUzej5swq','BgLZDgvU','yxbP','lNbUzW','CMvXDwvZDa','pJ0ZlJuUma','B3jKzxi','BgvUz3rO','cUkwIokwIokvLYaGiokwIokwIokvLYaGiokwIokwIokwIokwIokwIokwIokvLYaGiokwIokwIokwIokvLYaGiokwIokwIokwIokvLYaG4PAi4PAi4PAi4PAi4PAi4PAi4PAi4PwxcUkwIokwIokvKsaGiokwIokwIokvKsaG4PAi4PAi4Pwu4Pwq4Pwq4Pwq4PAi4PAi4PwxicdILOJILOJILOJILOJILzCG4PAi4PAi4PAi4PAi4PwricdILOJILOJILztILzdILzdILzdILzdILz0k4PAi4PAi4PwricaG4PAi4PAi4PwricdILOJILOJILzeGicdILOJILOJILzeGiokwIokwIokvLokwIokwIokwIokwIokvLokwIokwIokvKsaG4PAi4PAi4PAi4PAi4PAi4PwxcIdILOJILOJILzCG4PAi4PAi4Pwu4PwDicdILOJILOJILzeGicdILOJILOJILzeGiokwIokwIokvKEkvMUkwIokwIokvLokvNEkwIokwIokvKsaG4PAi4PAi4Pwu4Pwq4Pwq4PwDcIaG4PwA4PAi4PAi4PAi4Pwu4PwDicaG4PwA4PAi4PAi4PAi4PAi4PAi4PAi4Pwu4PwDicdILOJILOJILzeG4PwA4Pwq4PwDiokwIokwIokvKsaG4PAi4PAi4PAi4PAi4PAi4PAi4PAi4PwxcIaGiokvMUkvKokvKokvNsaGicaG4PwA4Pwq4Pwq4Pwq4Pwq4Pwq4PwDicaG4PwA4Pwq4PwDicaGicdILzRILzdILz0GiokvMUkvKokvKokvKokvKokvKokvKokvNqO','lI9ZCMmVywrTAw4VAw5KzxGUDhm','zgvMyxvSDa','5QIH5z2x5PYQ5A6j6kof5OIw5PYQ5yQG6l29','C3jJl2nVBMzPzW','Bwf4','y3DK','Bw9KAwz5qwz0zxi','zgvMyxvSDe5VDW','xJaUoc4Z','yM9KEq','BgvMDePVAw4','B2zMC2v0','C3rHCNq','DhLWzq','nZK2odKYr05Zs2fv','Aw50BW','ywrTAw5jza','AgfUzgXLCNm','zxH0zw5K','Aw5MBW','ywnJzxnZlwnVBNrYB2WTywXSB3CTB3jPz2LU','pJ0WlJmWlJa','Aw5Zzxj0ugfYyw0','yM9VDhn0CMfW','CMvZDg9Yzq','C3rHDhvZ','yxbW','5yIG6zMK5PE26zE0','BwLZC2LUzYbLEhbVCNqGAgfUzgXLCNm','C3jJl21PzgrSzxDHCMuVAw5KzxGUDhm','zgvWyxj0BwvUDeLK','C3jJl2fKBwLU','C3jJl2XPyI9KyI9PBMrLEc50CW','BwLU','w0nVBNrLEhrDiow9K+wjJEAxOoIVT+AXGUs4IUs4I+AwH++8JowgMEwfPEIIQ+w/VEEvPE+8IoIVT+EHRUIUPcbHC3LUy0nVBNrLEhrnyw5Hz2vYiow3SUwqR+EuQo+8Iq','BwfUAwzLC3q','C2nOzw1H','ihnPBMDSzxrVBIHZkq','yxnJ','lMXVzW','C2vYDMvY','zgLZDa','ioMhJEwKJsba','Aw50zxjUywWGC2vYDMvYigvYCM9Y','z2v0twv0ywrHDge','zgvIDwC','lI9KAxn0l3nLCNzLCI9PBMrLEc5KlNrZ','AxngAw5PDgu','lI9KAxn0l2LUzgv4lMqUDhm','zM9Yy2u','revmrvrf','zgf0yq','w29IAMvJDcbpyMPLy3rD','AxngAwXL','CgfKu3rHCNq','Bw9KAwz5qMvMB3jL','zMLSzq','Aw1Hz2uVCg5N','DhjHBNnWB3j0','B3jKzxjcEvnXBa','Aw5Zzxj0','AhjLzG','Bg9JywXLq29TCgfYzq','C3rHDhvZq29Kzq','5yIg6Ag15P+L6k+I','ChjLzML4','BM8Ty2fJAgu','CgfYyw1Z','z2v0','C3jJl2XPyI9HDxrOl2LUzgv4lNrZ','yxnZAwDU','zgvSzxrLtwv0ywrHDge','B25czwzVCMviyw5KBgu','DxnLq2XHC3m','DgvUyw50swq','C3rYAw5NAwz5','mtruA2zhDKC','Bgf0zxn0','zw5K','DgfIBgu','pJ00lJaUma','w1jLCg9ZAxrVCNLDioAjUEMhJ+ABToAwSoAVJ+ADOEMCGow4PIbPza','zM9Yy2vezwXLDgu','u2LUz2XLDg9U','zM9UDc93B2zM','w0HVC3rDihnRAxaG4OAqig1PC3nPBMCG','u0Lhsu5u','Aw5MBYbMywLSzwq','zMLSDgvY','icHJCNvKkq','lMPWzwC','zMLLBgrmAwTL','y2XLyxi','CM91DgvpChrPB25Z','C3bSAxq','C3vWCg9YDhntB2z0rgvSzxrL','CgX1z2LUu2vYDMLJzq','C29MDerLBgv0zq','khSGqMfZzvbSDwDPBIb9kq','DM9TztPJB250CM9SBgvYoNjVDxrLCY1Wzw5KAw5N','AgfZrw50Axr5','DMfSDwvZ','C3rYAw5N','Dw5ZywzL','zMfPBa','yMvMB3jL','l2fKBwLUl2v4Dc86A2v5','AwqGCMvXDwLYzwq','lMPWzW','qxnPys9tAgfUz2HHAq','pJ0WlJuUma','w0HVC3rDihnJyw4G4OAqia','B25szxf1zxn0','rvjst1i','DMfSDwu','ywrKigzHAwXLza','u1LtoNn0yw5KyxjK','cNzHCIbFx1bSDwDPBIa9icH0ExbLB2yGugX1z2LUice9psaNDw5KzwzPBMvKjYKkica/ifbSDwDPBGOGidOGkg1VzhvSzs5LEhbVCNrZicyMicHTB2r1BguUzxHWB3j0CY5qBhvNAw4GFhWGBw9KDwXLlMv4Cg9YDhmUzgvMyxvSDcb8FcbTB2r1BguUzxHWB3j0CYKPoWPPzIaODhLWzw9Mif9FugX1z2LUid09psaNDw5KzwzPBMvKjYb8FcbFx1bSDwDPBIa9pt0GBNvSBcKGEWOGihrOCM93ig5LDYbfCNjVCIGNBwLZC2LUzYbLEhbVCNqGugX1z2LUjYK7cN0kCMv0DxjUif9FugX1z2LUoW','ieLticC','AM9PBG','kIOVBw9KDwXLCY8Ql3nLCNzPy2uVkIOVkI50CW','vgfZAW','C3rVCa','tw9KDwXL','y2fJAguTy29UDhjVBa','CMfUz2u','y29UDgvUDa','zgvSzxrLigzHAwXLza','DgvUyw50','D2vI','Aw1Hz2uVC3zNk3HTBa','BwfJCM8','D3jPDgu','AwrZ','tM90iezVDw5K','AgfZ','D2L0AfrYyxnOzwq','zMLLBgrfCq','w01VzhvSzv0GBg9HzgvKia','nJm3otm4mefKAwXJvG','C29YDa','z2v0u1fm','zM9YBwf0','B3jKzxjcEq','y29Kzq','xJuUnc43','lI9ZCMmVywrTAw4VkG','w0LVy10G5PYQ55+L5l2C55sO5z+FoIa','w0fWCf0G5BEY5zcV5yQO77Ym6k+35ywiiefWCc5ZDg9WkcKG5yAnihn0yxj0','CMvZDg9YzsbMywLSzwq','Bw9KDwXLCW','BgLTAxq','pJ0Xmc4WlJa','C3rHCNrZv2L0Aa','xJeZlJeUmW','A2v5CW','Ag9ZDa','ihjVDxrLkhmP','Cg9W','Dg9vChbLCKnHC2u','cMLMicH0ExbLB2yGAgfUzgXLCNmGpt09icD1BMrLzMLUzwqNksbYzxr1CM4GBNvSBdSkCMv0DxjUigHHBMrSzxjZoW','Bw9KDwXL','DM9Tzq','Axnoyu4','DxbKyxrLigzHAwXLza','tK9ux0zpvu5e','qxv0Aa','w0LVy10GyM9VDhn0CMfWiokgKca','C2vSzwn0','57Y65Bcrig1VzhvSzs5QC29UoIa','6lEV55sX5lIn5A2y5zYO','y29UC3rYDwn0B3i','zgLNzxn0','C3LZDgvT','y29TBwvUDa','C2v0rw50Axr5','DM9TztPPBMPLy3q','ioE8UUwWKsbOyw5KBgvYoIa','y29SDw1U','CgfNzq','l2rVy3m','ioEAHoEXU+wEI++8JoIVT+AyVUw8J+s8OowfPsb0B2TLBG','DxbKyxrL','zgf0yvnJB3bLrgvWDeLKCW','zgvMAw5Ltwv0ywrHDge','y2XHC3mGjde','Bg9N','w1jLCg9ZAxrVCNLDioIHQoAxOcbPzcdLIjFVViZOR7FMLlNNLkGGzMLUzcH3AgvYzsKGlYbMAw5Kt25LkhDOzxjLkq','y3jLyxrLvgLTzq','Aw5MB0LNBM9YzvbYB3bLCNr5','Aw5KzxGUAhrTBa','CM0GlxjMigrPC3qGjIyGyNvUigj1AwXKic4VC3jJl2LUzgv4lNrZic4VC3jJl3nLCNzLCI9PBMrLEc50CYaTlw91DgrPCIaUl2rPC3qGls10yxjNzxqGyNvUic0TzM9YBwf0igvZBsaTlw1PBMLMEsaTlwv4DgvYBMfSigvSExnPysaTlwv4DgvYBMfSihjLzMXLy3qTBwv0ywrHDgeGls1LEhrLCM5HBcbKCML6EMXLlw9YBsaTlwv4DgvYBMfSigrYAxP6BguTEM9Kic0TzxH0zxjUywWGqgvSExnPywPZl29Wzw5HCgKGls1LEhrLCM5HBcbayM9NzxLJAgfUl2vSExnPys1SB2DNzxiGls1LEhrLCM5HBcbWAw5Vic0TzxH0zxjUywWGCgLUBY1WCMv0DhKGjIyGDhnJic1WihrZy29UzMLNlMj1AwXKlMPZB24GjIyGChjPBNrMiciLC1XUiIaIzxHWB3j0icOGzNjVBsaNlI4VC3jJl2LUzgv4jYiGpIbKAxn0l2LUzgv4lMqUDhmGjIyGBwTKAxiGlxaGzgLZDc9Zzxj2zxiGjIyGChjPBNrMiciLC1XUiIaIzxHWB3j0icOGzNjVBsaNlI4VlI4VC3jJl3nLCNzLCI9PBMrLEcCIid4GzgLZDc9Zzxj2zxiVAw5KzxGUzc50CYaMjIbIDw4GC2nYAxb0CY9VyMz1C2nHDguUDhm','BwvZC2fNzq','yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT','ugfYyw0','zhjPENPSzq','yMLUza','mI1KAwDPDa','tK9erv9ftLy','xJaUmI4Y','Ahr0CdOVl2XVy2fSAg9ZDdO','zgLJDa','pJ0YlJaUma','uefuq0G','y2XHC3nPyW','6z2E5Rov5QIH5z2xigTLEq','iowJSoAyJUs6HIbYB3v0zxmG5l2g57Y65BcrihnLCNzLCI9PBMrLEc5QCW','Bgv2zwW','l2rLBgv0zq','zMLUza','l2fKBwLU','CM91DgvZ','mZm3ndK5mNrqsNP0uq','C2LKzq','D2HLCMu','Bwf0y2G','r0vu','CxvLCNK','u1vdq0vtuW','AwDUB3jLugvYBxm','D2fYBG','ChjVzc50CW','5y2v5lIQ5l+H5OgV','C3jJl2XPyI9JywnOzs9PBMrLEc50CW','y2fJAgu','zgv2lNrZ','iowpQUIdVEEuQos6JUAwUEAZLEwpGUAvSa','C2LUz2XLDg9U','C3jJl2XPyI9WBhvNAw4VAw5KzxGUDhm','w0LVy10G','w0nsvurDia','B3bLCMf0Aw9UvgL0BgvtB3vYy2u','zM9UDc93B2zMmG','ChjVDg90ExbL','CgfYC2u','y3j1za','kIOVBw9KDwXLCY8Ql2nVBNrYB2XSzxiVyxbWlYOQlYOUDhm','C2L6zq','w0HVC3rDignYDwqG4OAqieb2B21LlwnVCMuVB3jT','CMvXDwvZDfbHCMfT','zw50zxjxAxrO','Aw5KzxG','ioMCGoMfJEE9RIbLBNrPDhKG5OIwihnLCNzPy2u','zw50CMLLCW','mZG2mdu4ywXhwKHq','ywn0Aw9U','C3LTyM9S','C291CMnL','Dg9Rzw4','DxbKyxrLqNLsB3DZ','Dg9mB3DLCKnHC2u','BwfW','w0LVy10Gsw9JlNnLDcG','DgfIBgvFBMfTzq','DM9Tzs1JB3jL','zgv2','C2f2zq','Dw5RBM93BG','z2v0vgLTzq','DMvYC2LVBG','CNvU','jg9UvxbKyxrL','C2vYDMLJzq','CMvWBgfJzq','CgvYBxm','l3bHz2u','ywrK','rM9YyMLKzgvU','l2XPC3q','B2jQzwn0','B2zM','lNDVzMyY','Cg9ZDa','A2v5','zgvZy3jPChrPB24','x19ZA2LWvgvUyw50','AxntDxbLCG','CgX1z2LU','zw5KC1DPDgG','CMfUzg9Tvvvjra','l2fWCa','zgvZyW','y29SDw1UvhLWzq','DMfSAwrHDgLVBIbMywLSzwq','AxnuvfK','ioIHQoAxOcbPzcdLIjC','w0LVy10GqeLUAMvJDcdML6dMS5xMJQJMLQ0G','ugX1z2LU','Cgf0Aa','uhjVDg90ExbL','g1SYsHTBsa','rw50Axr5','CgLKlgHVC3rUyw1L','y29SDw1Ux25HBwu','Dgv4Dc9ODg1SoYbJAgfYC2v0pxv0zI04','qNvU','Aw5KzxGUANm','zw50Axr5','lNn2zW','DMfYigHHBMrSzxjZid0GEW','Bwq1','ndmYruTNCNzH','l3zVBwuVyxbWCW'];_0x3d5b=function(){return _0x4f4f77;};return _0x3d5b();}function H5(){const _0x3accd1=_0x3c273c;if(!process[_0x3accd1(0x11e)][_0x3accd1(0x2c3)])return;process[_0x3accd1(0x11e)][_0x3accd1(0x22b)](_0x3accd1(0x2c9));}function V3(){const _0x369419=_0x3c273c;H5();let _0x4256bb=P(),_0x10aebc=D[_0x369419(0x254)]?.[_0x369419(0x16f)]??0xbb9,_0x310cae=D['openapi']?.['path']??_0x369419(0x25b),_0x2e6a68=_0x369419(0x26f)+_0x10aebc;if(console[_0x369419(0x261)](j5),console[_0x369419(0x261)]('🌍\x20运行环境:\x20'+_0x4256bb),_0x4256bb===_0x369419(0x2a6))console[_0x369419(0x261)](_0x369419(0x17e)+_0x2e6a68),console[_0x369419(0x261)]('📚\x20API文档:\x20'+_0x2e6a68+(_0x310cae[_0x369419(0x240)]('/')?_0x310cae:'/'+_0x310cae));}import{access as _0x46f3db}from'fs/promises';import{join as _0x263ee4}from'path';import{pathToFileURL as _0x1b3e61}from'url';async function Y5(_0x149b2f){try{return await _0x46f3db(_0x149b2f),!0x0;}catch{return!0x1;}}async function v(_0xadd992){const _0xe58bad=_0x3c273c;let _0x19f197=_0x263ee4(process[_0xe58bad(0x1ac)](),_0xadd992);if(!await Y5(_0x19f197)){console['warn'](_0xe58bad(0x1fc)+_0xadd992);return;}return await import(_0x1b3e61(_0x19f197)[_0xe58bad(0x1e4)]);}async function W3(){const _0x3c2c1a=_0x3c273c;let _0x28d577=await v(_0x3c2c1a(0x1c7));if(_0x28d577?.['Db']?.[_0x3c2c1a(0x1be)])await _0x28d577['Db'][_0x3c2c1a(0x1be)]();let _0x219868=await v(_0x3c2c1a(0x286));if(_0x219868?.[_0x3c2c1a(0x118)]?.[_0x3c2c1a(0x1be)])await _0x219868[_0x3c2c1a(0x118)]['bootstrap']();let _0x586170=await v(_0x3c2c1a(0x1ec));if(_0x586170?.[_0x3c2c1a(0x24d)]?.['bootstrap'])await _0x586170[_0x3c2c1a(0x24d)][_0x3c2c1a(0x1be)]();}async function z3(){const _0x20340c=_0x3c273c;let _0x12653a=await v('src/lib/task/index.ts');if(_0x12653a?.[_0x20340c(0x220)]?.['bootstrap'])await _0x12653a[_0x20340c(0x220)][_0x20340c(0x1be)]();}async function G3(){const _0x11411e=_0x3c273c;let _0x3e53a9=await v(_0x11411e(0x28b));if(_0x3e53a9?.[_0x11411e(0x2c6)]?.[_0x11411e(0x1be)])await _0x3e53a9['Plugin'][_0x11411e(0x1be)]();}async function F3(){const _0x183239=_0x3c273c;let _0x4db66f=await v(_0x183239(0x15d));if(_0x4db66f?.[_0x183239(0x222)]?.[_0x183239(0x1be)])await _0x4db66f[_0x183239(0x222)][_0x183239(0x1be)]();}async function j3(){const _0x5f353f=_0x3c273c;let _0x5274c8=await v('src/lib/task/index.ts');if(_0x5274c8?.[_0x5f353f(0x220)]?.['close'])await _0x5274c8[_0x5f353f(0x220)]['close']();}async function H3(){const _0x23acc9=_0x3c273c;let _0x50b0a2=await v(_0x23acc9(0x286));if(_0x50b0a2?.['Cache']?.[_0x23acc9(0x151)])await _0x50b0a2[_0x23acc9(0x118)][_0x23acc9(0x151)]();let _0x4cb1fe=await v(_0x23acc9(0x1c7));if(_0x4cb1fe?.['Db']?.[_0x23acc9(0x151)])await _0x4cb1fe['Db'][_0x23acc9(0x151)]();}async function B3(_0xb4cad1){const _0x346173=_0x3c273c;let _0x521020=await v(_0x346173(0x1c4));if(!_0x521020)return _0xb4cad1;let _0xe4572=_0xb4cad1;if(_0x521020['webAuth'])_0xe4572=_0xe4572[_0x346173(0x12e)](_0x521020['webAuth']);if(_0x521020[_0x346173(0x17f)])_0xe4572=_0xe4572[_0x346173(0x12e)](_0x521020[_0x346173(0x17f)]);if(_0x521020[_0x346173(0x150)])_0xe4572=_0xe4572[_0x346173(0x12e)](_0x521020[_0x346173(0x150)]);if(_0x521020[_0x346173(0x180)])_0xe4572=_0xe4572[_0x346173(0x12e)](_0x521020[_0x346173(0x180)]);if(_0x521020[_0x346173(0x119)])_0xe4572=_0xe4572['use'](_0x521020[_0x346173(0x119)]);return _0xe4572;}function M3(_0x30bce6){const _0xa44a6b=_0x3c273c;if(!(D['asyncContextManager']??{})[_0xa44a6b(0x136)])return _0x30bce6;return _0x30bce6[_0xa44a6b(0x217)](({request:_0x44b42c})=>{G1(z1(_0x44b42c));});}function L3(_0xd7ddb1){return _0xd7ddb1['onError'](({error:_0x4ea2a2,set:_0xfa40e4,code:_0x14e4a3})=>{const _0x1b8e78=_0x907e;let _0x5ea081=R();if(U0(_0x4ea2a2))return _0x5ea081['error']({'code':_0x4ea2a2[_0x1b8e78(0x237)]},_0x4ea2a2[_0x1b8e78(0x267)]),_0xfa40e4[_0x1b8e78(0x1c0)]=_0x4ea2a2[_0x1b8e78(0x1e6)],{'code':_0x4ea2a2[_0x1b8e78(0x237)],'message':_0x4ea2a2[_0x1b8e78(0x267)]};if(_0x14e4a3==='VALIDATION'){let _0x3b69d8=_0x4ea2a2 instanceof Error?_0x4ea2a2['message']:_0x1b8e78(0x2c2);return _0x5ea081[_0x1b8e78(0x15e)]({'code':_0x14e4a3},_0x3b69d8),_0xfa40e4[_0x1b8e78(0x1c0)]=0x1a6,{'code':C[_0x1b8e78(0x218)],'message':_0x3b69d8};}if(_0x14e4a3===_0x1b8e78(0x24c))return _0xfa40e4[_0x1b8e78(0x1c0)]=0x194,{'code':C['ERROR'],'message':_0x1b8e78(0x17a)};let _0x52f559=_0x4ea2a2 instanceof Error?_0x4ea2a2:Error(String(_0x4ea2a2));return _0x5ea081[_0x1b8e78(0x15e)](_0x52f559),_0xfa40e4[_0x1b8e78(0x1c0)]=0x1f4,{'code':C[_0x1b8e78(0x218)],'message':P()===_0x1b8e78(0x2a6)?_0x52f559[_0x1b8e78(0x267)]:_0x1b8e78(0x1d2)};});}function Y3(_0x5936f5){const _0x551dab=_0x3c273c;let _0x1798e1=R();return _0x5936f5['use'](_0x1798e1[_0x551dab(0x1b6)]({'autoLogging':{'ignore':_0x51bc28=>Boolean(_0x51bc28['isError'])}}));}import{openapi as _0x2e1a92}from'@elysiajs/openapi';function U3(_0x4ecd95){const _0x1cdc89=_0x3c273c;let _0x4c0f44=D[_0x1cdc89(0x18e)]??{'enable':!0x1};if(_0x4c0f44[_0x1cdc89(0x136)]===!0x1)return _0x4ecd95;let _0x23d193=_0x4c0f44[_0x1cdc89(0x2c7)]??'/docs',{tags:_0x16bcfd,tagGroups:_0x29cb11}=O1(),_0x5d9a26=_0x4c0f44[_0x1cdc89(0x153)]??{},_0x570259=_0x4c0f44[_0x1cdc89(0x16b)]??{};return _0x4ecd95[_0x1cdc89(0x12e)](_0x2e1a92({'path':_0x23d193,'documentation':{..._0x5d9a26,'tags':[..._0x5d9a26[_0x1cdc89(0x13b)]??[],..._0x16bcfd],'x-tagGroups':_0x29cb11},'scalar':{..._0x570259,'layout':_0x570259['layout']??_0x1cdc89(0x273),'operationTitleSource':_0x570259[_0x1cdc89(0x28e)]??_0x1cdc89(0x131)}}));}var D0,SQ=!0x1,EQ=!0x1,PQ=!0x1,D3=[],T3=[],N3=[];async function T5(){if(PQ)return;PQ=!0x0,await HQ();}function N5(){return M3(L3(Y3(new _0x35d7fc())));}function A5(_0x494dba){const _0x10b2bd=_0x3c273c;D3[_0x10b2bd(0x192)](_0x494dba);}function K5(_0x22c395){const _0x42ae6f=_0x3c273c;T3[_0x42ae6f(0x192)](_0x22c395);}function _5(_0x51701a){const _0x482831=_0x3c273c;N3[_0x482831(0x192)](_0x51701a);}async function C5(){const _0x825f=_0x3c273c;if(SQ)throw Error(_0x825f(0x23b));let _0x5c292c=N5();_0x5c292c=await B3(_0x5c292c);for(let _0x3785aa of N3)_0x5c292c=_0x3785aa(_0x5c292c);await T5(),_0x5c292c=U3(_0x5c292c),await W3();for(let _0x4e32a8 of D3)await _0x4e32a8();qQ(),ZQ(),await G3(),await F3(),await z3(),_0x5c292c=f1(_0x5c292c,D);let _0x3c5701=D[_0x825f(0x254)]?.[_0x825f(0x16f)]??0xbb9;return _0x5c292c[_0x825f(0x19f)](_0x3c5701),D0=_0x5c292c,SQ=!0x0,V3(),I5(),D0;}async function A3(){const _0x180a4c=_0x3c273c;if(!D0)return;for(let _0x22dbba of T3)await _0x22dbba();await j3(),await H3(),await D0[_0x180a4c(0x221)](),D0=void 0x0,SQ=!0x1,PQ=!0x1,JQ(),RQ(),f0(void 0x0),EQ=!0x1;}function I5(){const _0x4796b3=_0x3c273c;if(EQ)return;EQ=!0x0;for(let _0x294d7d of[_0x4796b3(0x1fd),_0x4796b3(0x197)])process[_0x4796b3(0x116)](_0x294d7d,async()=>{const _0x2f3d1a=_0x4796b3;await A3(),process[_0x2f3d1a(0x166)](0x0);});}var p0={'bootstrap':A5,'shutdown':K5,'use':_5,'start':C5,'stop':A3};async function K3(_0x3eb8a6){const _0x25b1e2=_0x3c273c;if(_0x3eb8a6)await _0x3eb8a6({'App':p0});return p0[_0x25b1e2(0x1b3)]();}import{getTableColumns as _0x57c630,getTableName as _0x213496}from'drizzle-orm';import{getTableColumns as _0x92d610,getTableName as _0x5a5db1}from'drizzle-orm';import{integer as _0x5b7a3a,serial as _0x3ecd75,timestamp as _0x271aba}from'drizzle-orm/pg-core';var xQ={'id':_0x3ecd75('id')['primaryKey'](),'createTime':_0x271aba(_0x3c273c(0x263),{'withTimezone':!0x0})[_0x3c273c(0x2db)]()[_0x3c273c(0x1ae)](),'updateTime':_0x271aba('updateTime',{'withTimezone':!0x0})[_0x3c273c(0x2db)]()[_0x3c273c(0x1ae)]()[_0x3c273c(0x2ac)](()=>new Date()),'deletedAt':_0x271aba(_0x3c273c(0x127),{'withTimezone':!0x0}),'tenantId':_0x5b7a3a('tenantId')},T0={'id':'ID','createTime':'\u521B\u5EFA\u65F6\u95F4','updateTime':_0x3c273c(0x123),'deletedAt':_0x3c273c(0x1c2),'tenantId':'\u79DF\u6237'},vQ=new WeakMap(),I3=new Set();function kQ(_0x73a621,_0x334dd8={}){const _0x1467e7=_0x3c273c;return I3[_0x1467e7(0x2b1)](_0x73a621),vQ[_0x1467e7(0x13f)](_0x73a621,{...T0,...vQ[_0x1467e7(0x1eb)](_0x73a621)||{},..._0x334dd8}),_0x73a621;}function t(_0xb7b7c3){return vQ['get'](_0xb7b7c3)||{};}function P5(){return[...I3];}function _3(_0x53005d){const _0x379b60=_0x3c273c;if(!/^[A-Za-z_][A-Za-z0-9_]*$/[_0x379b60(0x14d)](_0x53005d))throw Error('[columnComments]\x20非法标识符:\x20'+_0x53005d);return'\x22'+_0x53005d+'\x22';}function C3(_0x5d3774){return _0x5d3774['replace'](/'/g,'\x27\x27');}async function fQ(_0xd34ea0){const _0x17576e=_0x3c273c;let _0x1c6318=P5();if(!_0x1c6318[_0x17576e(0x1a5)])return 0x0;let _0x1535ef=new Map(),_0x4dce9c=[];for(let _0x4a6027 of _0x1c6318){let _0x23163b;try{_0x23163b=_0x5a5db1(_0x4a6027);}catch{continue;}let _0x4d9489=_0x92d610(_0x4a6027),_0x481d9a=t(_0x4a6027),_0x54bff9=new Map();for(let [_0x1d1aff,_0x28b068]of Object['entries'](_0x481d9a)){if(!_0x28b068||!(_0x1d1aff in _0x4d9489))continue;_0x54bff9[_0x17576e(0x13f)](_0x1d1aff,_0x28b068);}if(!_0x54bff9[_0x17576e(0x294)])continue;_0x1535ef[_0x17576e(0x13f)](_0x23163b,_0x54bff9),_0x4dce9c[_0x17576e(0x192)](_0x23163b);}if(!_0x4dce9c['length'])return 0x0;let _0x36cfb5=_0x4dce9c[_0x17576e(0x2a2)](_0x2414b0=>'\x27'+C3(_0x2414b0)+'\x27')[_0x17576e(0x21e)](','),_0x4c89c1=await _0xd34ea0[_0x17576e(0x20e)](_0x17576e(0x13e)+_0x36cfb5+_0x17576e(0x158)),_0x58beaf=new Map();for(let _0xa02985 of _0x4c89c1||[]){if(!_0xa02985[_0x17576e(0x2a4)]||!_0xa02985[_0x17576e(0x2cc)])continue;_0x58beaf[_0x17576e(0x13f)](_0xa02985[_0x17576e(0x2a4)]+'.'+_0xa02985[_0x17576e(0x2cc)],_0xa02985[_0x17576e(0x255)]??null);}let _0x453af6=0x0;for(let [_0x2e09d1,_0x21d48f]of _0x1535ef)for(let [_0x189939,_0x5e0e15]of _0x21d48f){let _0x734ff3=_0x2e09d1+'.'+_0x189939;if(_0x58beaf[_0x17576e(0x1eb)](_0x734ff3)===_0x5e0e15)continue;await _0xd34ea0[_0x17576e(0x20e)]('COMMENT\x20ON\x20COLUMN\x20'+_3(_0x2e09d1)+'.'+_3(_0x189939)+_0x17576e(0x21d)+C3(_0x5e0e15)+'\x27'),_0x453af6++;}return _0x453af6;}var v5={'admin':_0x3c273c(0x279),'app':_0x3c273c(0x2bf)};function k5(_0x461103){return w(v5[_0x461103]);}function f5(_0x494ccc){const _0x5019c2=_0x3c273c;let _0x2a7dd9=_0x494ccc[_0x5019c2(0x2ae)](/^\/+|\/+$/g,'')[_0x5019c2(0x205)]('/');return _0x2a7dd9[_0x2a7dd9[_0x5019c2(0x1a5)]-0x1]||_0x494ccc||_0x5019c2(0x298);}function w5(_0x488c4f){const _0x4a18fe=_0x3c273c;return _0x488c4f[_0x4a18fe(0x205)]('_')[_0x4a18fe(0x1ff)](Boolean)['map'](_0x88793f=>_0x88793f[_0x4a18fe(0x12f)](0x0)[_0x4a18fe(0x246)]()+_0x88793f['slice'](0x1))[_0x4a18fe(0x21e)]('')+_0x4a18fe(0x2ca);}function d0(_0x369406){const _0xabc3cf=_0x3c273c;if(!_0x369406?.['length'])return[];return _0x369406[_0xabc3cf(0x2a2)](_0xc42de5=>{const _0x32f804=_0xabc3cf;if(typeof _0xc42de5!==_0x32f804(0x20d)){let _0x579ff4=_0xc42de5[_0x32f804(0x259)];return{..._0xc42de5,'column':_0x579ff4['includes']('.')?_0x579ff4:'a.'+_0x579ff4};}return _0xc42de5[_0x32f804(0x129)]('.')?_0xc42de5:'a.'+_0xc42de5;});}function b5(_0x5a83cb){const _0x3c4625=_0x3c273c;return{'keyWordLikeFields':d0(_0x5a83cb?.[_0x3c4625(0x173)]),'fieldEq':d0(_0x5a83cb?.['fieldEq']),'fieldLike':d0(_0x5a83cb?.['fieldLike']),'fieldArray':d0(_0x5a83cb?.['fieldArray']),'fieldRange':(_0x5a83cb?.['fieldRange']??[])['map'](_0x3abf25=>({..._0x3abf25,'column':_0x3abf25['column'][_0x3c4625(0x129)]('.')?_0x3abf25[_0x3c4625(0x259)]:'a.'+_0x3abf25[_0x3c4625(0x259)]}))};}function y5(_0x554786,_0x3d5cb3){const _0x4ea510=_0x3c273c;for(let _0x26673c of _0x3d5cb3){if(typeof _0x26673c===_0x4ea510(0x20d)||!_0x26673c[_0x4ea510(0x270)])continue;let _0x154593=_0x26673c[_0x4ea510(0x259)]['includes']('.')?_0x26673c['column'][_0x4ea510(0x205)]('.')[_0x4ea510(0x245)]():_0x26673c[_0x4ea510(0x259)],_0x949400=_0x554786['find'](_0x10742c=>_0x10742c[_0x4ea510(0x12d)]===_0x154593);if(_0x949400)_0x949400['dict']=_0x26673c[_0x4ea510(0x270)];}}function g5(_0x5bc8ac){const _0x11df77=_0x3c273c;if(!_0x5bc8ac||typeof _0x5bc8ac!==_0x11df77(0x2b4))return[];try{let _0x1e0a19=_0x57c630(_0x5bc8ac),_0x439c94=t(_0x5bc8ac),_0x13485e=[];for(let [_0x488461,_0x4c80f6]of Object[_0x11df77(0x29a)](_0x1e0a19)){if(_0x488461===_0x11df77(0x1f1))continue;let _0x532fb8=_0x4c80f6;_0x13485e[_0x11df77(0x192)]({'propertyName':_0x488461,'type':String(_0x532fb8[_0x11df77(0x19c)]??_0x532fb8[_0x11df77(0x2c1)]??_0x11df77(0x20d)),'length':_0x532fb8[_0x11df77(0x1a5)]!=null?String(_0x532fb8[_0x11df77(0x1a5)]):void 0x0,'nullable':_0x532fb8[_0x11df77(0x2db)]!==!0x0,'source':'a.'+_0x488461,'comment':_0x439c94[_0x488461]});}let _0x2a3a11=new Set([_0x11df77(0x263),'updateTime',_0x11df77(0x127)]),_0x2a2ddf=_0x13485e[_0x11df77(0x1ff)](_0x2c88d5=>!_0x2a3a11[_0x11df77(0x22e)](_0x2c88d5[_0x11df77(0x12d)])),_0x2779fa=_0x13485e[_0x11df77(0x1ff)](_0xfb3910=>_0x2a3a11[_0x11df77(0x22e)](_0xfb3910[_0x11df77(0x12d)]));return[..._0x2a2ddf,..._0x2779fa];}catch{return[];}}function h5(_0x13bf2f){const _0x4e0571=_0x3c273c;if(!_0x13bf2f||typeof _0x13bf2f!==_0x4e0571(0x2b4))return;try{return w5(_0x213496(_0x13bf2f));}catch{return;}}function u5(_0x37bd86,_0x1e690b){const _0x1ca1d9=_0x3c273c;let _0x10a5d5=[],_0x5af176=new Set(),_0x26834d=_0x629930=>{const _0x207b0c=_0x907e;let _0x5b42da=_0x629930[_0x207b0c(0x137)]+':'+_0x629930[_0x207b0c(0x2c7)];if(_0x5af176[_0x207b0c(0x22e)](_0x5b42da))return;_0x5af176[_0x207b0c(0x2b1)](_0x5b42da),_0x10a5d5[_0x207b0c(0x192)](_0x629930);};for(let _0x5d5a8e of _0x37bd86[_0x1ca1d9(0x27a)]){let _0x4981bd=d(_0x5d5a8e[_0x1ca1d9(0x2c7)],_0x37bd86['prefix']),_0x1f84ee=_0x4981bd['startsWith']('/')?_0x4981bd:'/'+_0x4981bd,_0x41c16d=VQ(_0x1f84ee);_0x26834d({'method':_0x5d5a8e[_0x1ca1d9(0x137)][_0x1ca1d9(0x2a1)](),'path':_0x1f84ee,'summary':_0x5d5a8e['summary']??'','dts':{},'tag':'','prefix':_0x1e690b,'ignoreToken':Boolean(_0x5d5a8e[_0x1ca1d9(0x16a)]),'ignorePerms':Boolean(_0x5d5a8e[_0x1ca1d9(0x282)]),'perms':r(_0x5d5a8e,_0x37bd86,_0x41c16d)??[]});}for(let _0x359074 of _0x37bd86[_0x1ca1d9(0x292)]?.[_0x1ca1d9(0x1a0)]??[]){let _0x30c326='/'+_0x359074;_0x26834d({'method':_0x359074===_0x1ca1d9(0x1ba)?_0x1ca1d9(0x1eb):'post','path':_0x30c326,'summary':m0[_0x359074]??_0x359074,'dts':{},'tag':'','prefix':_0x1e690b,'ignoreToken':!0x1,'ignorePerms':!0x1,'perms':r({},_0x37bd86,_0x359074)??[]});}for(let _0x4619be of _0x37bd86[_0x1ca1d9(0x292)]?.[_0x1ca1d9(0x163)]??[]){let _0x334d70='/'+_0x4619be;_0x26834d({'method':_0x1ca1d9(0x2b7),'path':_0x334d70,'summary':_0x4619be,'dts':{},'tag':'','prefix':_0x1e690b,'ignoreToken':!0x1,'ignorePerms':!0x1,'perms':r({},_0x37bd86,_0x4619be)??[]});}return _0x10a5d5;}function m5(_0x4c96d9){const _0x577b42=_0x3c273c;let _0x4eca4f=b(k5(_0x4c96d9[_0x577b42(0x27c)]),_0x4c96d9[_0x577b42(0x1e8)]),_0x101c93=f5(_0x4c96d9[_0x577b42(0x1e8)]),_0x16b6b2=_0x4c96d9[_0x577b42(0x292)]?.[_0x577b42(0x2d0)],_0xd2773c=g5(_0x16b6b2),_0x5a1be7=b5(_0x4c96d9[_0x577b42(0x292)]?.[_0x577b42(0x189)]);return y5(_0xd2773c,_0x5a1be7[_0x577b42(0x230)]),{'module':_0x4c96d9[_0x577b42(0x248)],'side':_0x4c96d9[_0x577b42(0x27c)],'prefix':_0x4eca4f,'name':h5(_0x16b6b2),'info':{'type':{'name':_0x101c93,'description':_0x4c96d9['description']??_0x101c93}},'api':u5(_0x4c96d9,_0x4eca4f),'columns':_0xd2773c,'pageQueryOp':_0x5a1be7,'pageColumns':_0xd2773c};}function c5(_0x4f2214){const _0x5e7ace=_0x3c273c;let _0x2a56aa={};for(let _0x4c8eab of _0x4f2214){let _0x42d9b6=_0x2a56aa[_0x4c8eab[_0x5e7ace(0x248)]]??[];_0x42d9b6[_0x5e7ace(0x192)](_0x4c8eab),_0x2a56aa[_0x4c8eab['module']]=_0x42d9b6;}return _0x2a56aa;}function N0(){const _0x3f885e=_0x3c273c;return Boolean(D[_0x3f885e(0x249)]?.['eps']);}function R3(_0x1d8c1a){const _0x2fdc49=_0x3c273c;if(!N0())return{};return c5(O(_0x1d8c1a)[_0x2fdc49(0x2a2)](m5));}var wQ={'controllers':O,'admin':()=>R3(_0x3c273c(0x174)),'app':()=>R3(_0x3c273c(0x1c1)),'enabled':N0};import'reflect-metadata';var n0=_0x3c273c(0x20a);function p5(_0x452328,_0x2f561a){return b(_0x452328,_0x2f561a==='/'?'':_0x2f561a);}function d5(_0x63d0a6){const _0x4d309f=_0x3c273c;if(_0x63d0a6==null)return;return Array[_0x4d309f(0x161)](_0x63d0a6)?_0x63d0a6:[_0x63d0a6];}function n5(_0x28b211,_0x5db2be){const _0x9951e2=_0x3c273c;let _0x2f816b=Reflect[_0x9951e2(0x1d3)](n0,_0x28b211)??[];_0x2f816b[_0x9951e2(0x192)](_0x5db2be),Reflect['defineMetadata'](n0,_0x2f816b,_0x28b211);}function bQ(_0x4eafdc){const _0x36e657=_0x3c273c;let _0xb55285=_0x4eafdc===_0x36e657(0x1ea)?_0x36e657(0x269):_0x4eafdc===_0x36e657(0x1b0)?_0x36e657(0x125):_0x36e657(0x171);return _0x4dfdab=>(_0x2f4b0,_0x5d3ba7,_0x67bb5e)=>{const _0x256412=_0x36e657;if(_0x5d3ba7===void 0x0)throw Error('[Controller]\x20@'+_0xb55285+_0x256412(0x289));let _0x3d8b35=_0x2f4b0['constructor'];Y1(_0x3d8b35,String(_0x5d3ba7),{'index':_0x67bb5e,'source':_0x4eafdc,'schema':_0x4dfdab});};}function l5(_0x399d32){let {api:_0x25bb82,entity:_0x1c522e,service:_0x216f77,serviceApis:_0x288989,before:_0x2d3e9b,pageQueryOp:_0x4f52c3,listQueryOp:_0x8fc047,insertParam:_0x41cbd5,infoIgnoreProperty:_0x2fda2c}=_0x399d32;if(_0x25bb82==null&&_0x1c522e==null&&_0x216f77==null&&_0x288989==null&&_0x2d3e9b==null&&_0x4f52c3==null&&_0x8fc047==null&&_0x41cbd5==null&&_0x2fda2c==null)return;return{'api':_0x25bb82,'entity':_0x1c522e,'service':_0x216f77,'serviceApis':_0x288989,'before':_0x2d3e9b,'pageQueryOp':_0x4f52c3,'listQueryOp':_0x8fc047,'insertParam':_0x41cbd5,'infoIgnoreProperty':_0x2fda2c};}function yQ(_0x536638=''){const _0x5e84eb=_0x3c273c;let _0xd836ce=typeof _0x536638===_0x5e84eb(0x20d),_0x7622d6=_0xd836ce?{'prefix':_0x536638}:_0x536638;return _0x44f7a2=>{const _0x658c20=_0x5e84eb;f({'token':_0x44f7a2,'useClass':_0x44f7a2,'scope':_0x658c20(0x28a)});let _0x26590f=b1(),_0x2e0d52=_0xd836ce&&_0x536638===''||!_0xd836ce&&(_0x7622d6['prefix']==null||_0x7622d6[_0x658c20(0x1e8)]===''),_0x3eb84a=w(_0x2e0d52&&_0x26590f?.[_0x658c20(0x1df)]?g1(_0x26590f[_0x658c20(0x1df)]):_0x7622d6[_0x658c20(0x1e8)]??''),_0x38313=Reflect[_0x658c20(0x1d3)](n0,_0x44f7a2)??[],_0x497b58=l5(_0x7622d6);L1({'token':_0x44f7a2,'prefix':_0x3eb84a,'module':_0x7622d6[_0x658c20(0x248)]??_0x26590f?.['module']??_0x658c20(0x2a8),'side':_0x7622d6[_0x658c20(0x27c)]??_0x26590f?.[_0x658c20(0x27c)]??_0x658c20(0x174),'description':_0x7622d6[_0x658c20(0x2b9)],'file':_0x26590f?.['file'],'middleware':d5(_0x7622d6[_0x658c20(0x164)]),'crud':_0x497b58,'routes':_0x38313[_0x658c20(0x2a2)](_0x3b7fe9=>{const _0x51f33a=_0x658c20;let _0x2f9dfe=U1(_0x44f7a2,_0x3b7fe9['handler']),_0x2f909c=x0(_0x2f9dfe),_0x4ea89a=[..._0x3b7fe9[_0x51f33a(0x164)]??[],..._1(_0x44f7a2,_0x3b7fe9[_0x51f33a(0x186)])];return{..._0x3b7fe9,'path':p5(_0x3eb84a,_0x3b7fe9[_0x51f33a(0x2c7)]['startsWith']('/')?_0x3b7fe9[_0x51f33a(0x2c7)]['slice'](0x1):_0x3b7fe9['path']),'params':_0x2f9dfe,'body':_0x2f909c?.['body'],'query':_0x2f909c?.[_0x51f33a(0x280)],'routeParams':_0x2f909c?.[_0x51f33a(0x1ea)],'public':N1(_0x44f7a2,_0x3b7fe9['handler']),'ignorePerms':E1(_0x44f7a2,_0x3b7fe9[_0x51f33a(0x186)]),'perms':R1(_0x44f7a2,_0x3b7fe9[_0x51f33a(0x186)]),'middleware':_0x4ea89a[_0x51f33a(0x1a5)]?_0x4ea89a:void 0x0};})}),Reflect[_0x658c20(0x1ee)](n0,_0x44f7a2),D1(_0x44f7a2),A1(_0x44f7a2),C1(_0x44f7a2),q1(_0x44f7a2),P1(_0x44f7a2);};}function gQ(..._0xabc684){return(_0x36793e,_0x25ac2a)=>{const _0x4180ae=_0x907e;let _0x1964e1=_0x36793e[_0x4180ae(0x252)];K1(_0x1964e1,String(_0x25ac2a),_0xabc684);};}function A0(_0xaeb24a){return(_0x465c8a='',_0x3487b9)=>(_0x107d52,_0xef01c1)=>{const _0x540351=_0x907e;let _0xbc7366=_0x107d52['constructor'];n5(_0xbc7366,{'method':_0xaeb24a,'path':_0x465c8a,'handler':String(_0xef01c1),'summary':_0x3487b9?.[_0x540351(0x131)]});};}function hQ(){return(_0x223366,_0x218e71)=>{const _0x274e6a=_0x907e;let _0x23aed4=_0x223366[_0x274e6a(0x252)];T1(_0x23aed4,String(_0x218e71));};}function uQ(..._0xe6a8ac){return(_0x55e2cd,_0x26a9be)=>{const _0x183157=_0x907e;let _0x4bc2f6=_0x55e2cd[_0x183157(0x252)];I1(_0x4bc2f6,String(_0x26a9be),_0xe6a8ac);};}function mQ(){return(_0xa6bc43,_0x2cda86)=>{let _0x4f21b1=_0xa6bc43['constructor'];S1(_0x4f21b1,String(_0x2cda86));};}var cQ=bQ('body'),pQ=bQ(_0x3c273c(0x280)),dQ=bQ(_0x3c273c(0x1ea)),nQ=A0(_0x3c273c(0x27f)),lQ=A0('POST'),iQ=A0(_0x3c273c(0x13d)),sQ=A0(_0x3c273c(0x1d9)),oQ=A0(_0x3c273c(0x272));class k{[_0x3c273c(0x12b)];['ctx'];[_0x3c273c(0x287)];[_0x3c273c(0x207)];async['init'](_0x2a2f2d,_0x3ceed8,_0x22a9c3,_0x4a7eb5){const _0x5f2702=_0x3c273c;this[_0x5f2702(0x12b)]=_0x2a2f2d,this[_0x5f2702(0x194)]=_0x3ceed8,this['cache']=_0x4a7eb5?.[_0x5f2702(0x287)],this[_0x5f2702(0x207)]=_0x4a7eb5?.[_0x5f2702(0x207)],await this[_0x5f2702(0x188)]();}async[_0x3c273c(0x188)](){}}import{existsSync as _0x57388d,readFileSync as _0x31e243}from'fs';import{createRequire as _0x40a52e}from'module';import{join as _0x23533a}from'path';import{createHash as _0x4b3ced}from'crypto';import{homedir as _0x5b00eb}from'os';import{join as _0x27b249}from'path';function K0(){const _0x501af8=_0x3c273c;let _0x156452=_0x4b3ced(_0x501af8(0x2d3))[_0x501af8(0x25d)](String(D[_0x501af8(0x242)]??_0x501af8(0x249)))[_0x501af8(0x253)](_0x501af8(0x12c));return _0x27b249(_0x5b00eb(),'.vome',_0x156452);}function _0(){const _0x3ae60d=_0x3c273c;return _0x27b249(K0(),_0x3ae60d(0x2bc));}function e(){const _0x325e1b=_0x3c273c;return _0x27b249(K0(),_0x325e1b(0x23d));}function g(_0x2b5f68){return _0x27b249(e(),_0x2b5f68);}var r5=_0x40a52e(import.meta.url);function a5(_0x3f416b){if(_0x3f416b==='vome-plugin-runtime')return{'BasePlugin':k};return r5(_0x3f416b);}function rQ(_0xe33859){const _0x2fc5bd=_0x3c273c;try{let _0x5b19f8=_0xe33859[_0x2fc5bd(0x2ae)](/export\s+const\s+Plugin\s*=/g,'var\x20Plugin\x20=')[_0x2fc5bd(0x2ae)](/export\s+\{[^}]*\bPlugin\b[^}]*\};?/g,'')[_0x2fc5bd(0x2ae)](/export\s+const\s+handlers\s*=/g,'var\x20handlers\x20=')[_0x2fc5bd(0x2ae)](/export\s+\{[^}]*\bhandlers\b[^}]*\};?/g,'')[_0x2fc5bd(0x2ae)](/export\s+class\s+(\w+)/g,'class\x20$1')[_0x2fc5bd(0x2ae)](/export\s+default\s+/g,'')[_0x2fc5bd(0x2ae)](/import\s+\{?\s*BasePlugin\s*\}?\s*from\s*['"][^'"]+['"];?/g,'')[_0x2fc5bd(0x2ae)](/import\s+BasePlugin\s+from\s*['"][^'"]+['"];?/g,'')['replace'](/require\(\s*['"]vome-plugin-runtime['"]\s*\)/g,_0x2fc5bd(0x209)),_0x3b759c=Function('BasePlugin','require','module',_0x2fc5bd(0x181),_0x5b19f8+_0x2fc5bd(0x21c)),_0xfa68c9={'exports':{}};return _0x3b759c(k,a5,_0xfa68c9,_0xfa68c9[_0x2fc5bd(0x181)]);}catch(_0x5d944f){throw Error(_0x2fc5bd(0x19b)+(_0x5d944f instanceof Error?_0x5d944f[_0x2fc5bd(0x267)]:String(_0x5d944f)));}}function aQ(_0x369606){const _0x393367=_0x3c273c;let _0x235ddc=_0x23533a(g(_0x369606),'server',_0x393367(0x2cf));if(_0x57388d(_0x235ddc))return _0x31e243(_0x235ddc,_0x393367(0x176));let _0x5620e4=_0x23533a(_0(),_0x369606);if(!_0x57388d(_0x5620e4))return;try{return JSON['parse'](_0x31e243(_0x5620e4,_0x393367(0x176)))[_0x393367(0x225)]?.[_0x393367(0x1da)];}catch{return;}}import{existsSync as _0x1f98b7,readFileSync as _0x15c501,readdirSync as _0x3d39fd,statSync as _0x40367e}from'fs';import{createRequire as _0x310658}from'module';import{join as _0x42d107}from'path';var Q0=new Map(),$2=_0x310658(import.meta.url);function Z2(_0x107b20){if(_0x107b20==='vome-plugin-runtime')return{'BasePlugin':k};return $2(_0x107b20);}function O3(_0x71cc4f){return(_0x71cc4f['startsWith']('/')?_0x71cc4f:'/'+_0x71cc4f)['replace'](/\/+$/,'')||'/';}function x3(_0x451503){const _0x28f6db=_0x3c273c;return _0x451503[_0x28f6db(0x246)]();}function J2(_0x4fbcf4){const _0x28d128=_0x3c273c;return _0x4fbcf4['replace'](/export\s+const\s+handlers\s*=/g,'var\x20handlers\x20=')[_0x28d128(0x2ae)](/export\s+\{[^}]*\bhandlers\b[^}]*\};?/g,'')[_0x28d128(0x2ae)](/export\s+default\s+\{/g,_0x28d128(0x2d2))[_0x28d128(0x2ae)](/export\s+const\s+Plugin\s*=/g,_0x28d128(0x2d8))['replace'](/export\s+\{[^}]*\bPlugin\b[^}]*\};?/g,'')['replace'](/export\s+class\s+(\w+)/g,_0x28d128(0x260))[_0x28d128(0x2ae)](/import\s+\{?\s*BasePlugin\s*\}?\s*from\s*['"][^'"]+['"];?/g,'')[_0x28d128(0x2ae)](/import\s+BasePlugin\s+from\s*['"][^'"]+['"];?/g,'')[_0x28d128(0x2ae)](/require\(\s*['"]vome-plugin-runtime['"]\s*\)/g,_0x28d128(0x209));}function o0(_0x2c1fd9,_0x5122db=!0x0){const _0x19ae26=_0x3c273c;let _0x2ea182=J2(_0x2c1fd9),_0xe065e1=Function('BasePlugin',_0x19ae26(0x17c),'module',_0x19ae26(0x181),_0x2ea182+_0x19ae26(0x247)),_0x1c43cc={'exports':{}},_0x51c306=_0xe065e1(k,Z2,_0x1c43cc,_0x1c43cc[_0x19ae26(0x181)]);if(!_0x51c306||typeof _0x51c306!==_0x19ae26(0x2b4)){if(_0x5122db)throw Error(_0x19ae26(0x1c3));return{};}return _0x51c306;}var $0={'get'(_0x5a9045){return Q0['get'](_0x5a9045);},'list'(){const _0x4965d7=_0x3c273c;return[...Q0[_0x4965d7(0x29a)]()][_0x4965d7(0x2a2)](([_0x5ccff5,_0x1b11c2])=>({'key':_0x5ccff5,'manifest':_0x1b11c2[_0x4965d7(0x1ca)],'routes':_0x1b11c2[_0x4965d7(0x27a)]}));},'load'(_0x5a392f){const _0x2091be=_0x3c273c;if(!_0x5a392f||!/^[a-zA-Z0-9_-]+$/[_0x2091be(0x14d)](_0x5a392f))throw Error('非法模块\x20key:\x20'+_0x5a392f);let _0x2eb366=g(_0x5a392f),_0x9015af=_0x42d107(_0x2eb366,'module.json');if(!_0x1f98b7(_0x9015af))throw Error(_0x2091be(0x250)+_0x5a392f);let _0x1d3d70=JSON['parse'](_0x15c501(_0x9015af,_0x2091be(0x176))),_0x1254e2=(_0x1d3d70[_0x2091be(0x27a)]??[])['map'](_0x550e99=>({..._0x550e99,'method':x3(_0x550e99[_0x2091be(0x137)]),'path':O3(_0x550e99[_0x2091be(0x2c7)])})),_0x53cc7f={},_0x3cfa6a=_0x42d107(_0x2eb366,_0x2091be(0x1cf),_0x2091be(0x2cf));if(_0x1f98b7(_0x3cfa6a)){let _0x317419=_0x15c501(_0x3cfa6a,_0x2091be(0x176));_0x53cc7f=o0(_0x317419,_0x1254e2[_0x2091be(0x1a5)]>0x0);for(let _0x7ebe23 of _0x1254e2)if(typeof _0x53cc7f[_0x7ebe23[_0x2091be(0x186)]]!==_0x2091be(0x117))throw Error('模块\x20'+_0x5a392f+_0x2091be(0x258)+_0x7ebe23[_0x2091be(0x186)]);}else{if(_0x1254e2[_0x2091be(0x1a5)])throw Error(_0x2091be(0x17b)+_0x5a392f+_0x2091be(0x275));}return Q0[_0x2091be(0x13f)](_0x5a392f,{'manifest':_0x1d3d70,'handlers':_0x53cc7f,'routes':_0x1254e2}),Q0[_0x2091be(0x1eb)](_0x5a392f);},'unload'(_0x56e781){const _0xf3c8f5=_0x3c273c;Q0[_0xf3c8f5(0x11c)](_0x56e781);},async 'dispatch'(_0x4bbb4f,_0x1f87f8,_0x34c163,_0x911d9f){const _0x1563eb=_0x3c273c;let _0x354ffa=Q0[_0x1563eb(0x1eb)](_0x4bbb4f);if(!_0x354ffa)return{'ok':!0x1,'status':0x194,'message':_0x1563eb(0x15f)};let _0x2884a1=x3(_0x1f87f8),_0x1ee6b2=O3(_0x34c163),_0x58524b=_0x354ffa[_0x1563eb(0x27a)][_0x1563eb(0x278)](_0x269e89=>_0x269e89[_0x1563eb(0x137)]===_0x2884a1&&_0x269e89[_0x1563eb(0x2c7)]===_0x1ee6b2);if(!_0x58524b)return{'ok':!0x1,'status':0x194,'message':_0x1563eb(0x251)};let _0x45704c=_0x354ffa[_0x1563eb(0x1b8)][_0x58524b[_0x1563eb(0x186)]];if(typeof _0x45704c!==_0x1563eb(0x117))return{'ok':!0x1,'status':0x1f4,'message':'handler\x20缺失:\x20'+_0x58524b[_0x1563eb(0x186)]};try{return{'ok':!0x0,'data':await _0x45704c(_0x911d9f),'route':_0x58524b};}catch(_0x1c029b){return{'ok':!0x1,'status':0x1f4,'message':_0x1c029b instanceof Error?_0x1c029b['message']:String(_0x1c029b),'route':_0x58524b};}},'bootstrap'(){const _0x34fc55=_0x3c273c;let _0x24dd0e=e();if(!_0x1f98b7(_0x24dd0e))return;for(let _0x344daf of _0x3d39fd(_0x24dd0e)){let _0x42e3ac=_0x42d107(_0x24dd0e,_0x344daf);if(!_0x40367e(_0x42e3ac)[_0x34fc55(0x2da)]())continue;if(!_0x1f98b7(_0x42d107(_0x42e3ac,'module.json')))continue;try{this['load'](_0x344daf),console[_0x34fc55(0x261)](_0x34fc55(0x231)+_0x344daf);}catch(_0x20793d){console['warn']('[Module]\x20load\x20failed\x20'+_0x344daf+':',_0x20793d instanceof Error?_0x20793d[_0x34fc55(0x267)]:_0x20793d);}}}};import{existsSync as _0x120927,statSync as _0x6ea90b}from'fs';import{join as _0xefcb98,normalize as _0x49130f,sep as _0x1dd7a9}from'path';import{Elysia as _0x57f52f}from'elysia';var z2=_0x3c273c(0x2d5);function G2(_0x131c98){const _0x1774f1=_0x3c273c;let _0x923b51=_0x131c98[_0x1774f1(0x2a1)]();if(_0x923b51[_0x1774f1(0x2bd)](_0x1774f1(0x144)))return _0x1774f1(0x2cd);if(_0x923b51['endsWith']('.js')||_0x923b51['endsWith'](_0x1774f1(0x162)))return'application/javascript;\x20charset=utf-8';if(_0x923b51[_0x1774f1(0x2bd)](_0x1774f1(0x160)))return _0x1774f1(0x159);if(_0x923b51['endsWith']('.json'))return _0x1774f1(0x14b);if(_0x923b51[_0x1774f1(0x2bd)](_0x1774f1(0x2d1)))return _0x1774f1(0x229);if(_0x923b51[_0x1774f1(0x2bd)](_0x1774f1(0x1a1)))return _0x1774f1(0x1e0);if(_0x923b51[_0x1774f1(0x2bd)](_0x1774f1(0x213))||_0x923b51['endsWith'](_0x1774f1(0x201)))return'image/jpeg';if(_0x923b51[_0x1774f1(0x2bd)](_0x1774f1(0x2b6)))return _0x1774f1(0x28f);if(_0x923b51[_0x1774f1(0x2bd)]('.woff'))return _0x1774f1(0x1fb);if(_0x923b51[_0x1774f1(0x2bd)]('.map'))return'application/json';return _0x1774f1(0x268);}var $1=new _0x57f52f({'name':'micro-apps-static'})[_0x3c273c(0x1eb)](z2+'/*',({params:_0x49c677,set:_0x1468db})=>{const _0x7de7d1=_0x3c273c;let _0x182356=String(_0x49c677['*']||'')['split']('/')[_0x7de7d1(0x1ff)](Boolean);if(!_0x182356['length'])return _0x1468db[_0x7de7d1(0x1c0)]=0x194,'Not\x20Found';let _0xb47b3a=_0x182356[0x0];if(!/^[a-zA-Z0-9_-]+$/['test'](_0xb47b3a))return _0x1468db['status']=0x190,'Invalid\x20app\x20key';let _0x5c30d7=_0xefcb98(g(_0xb47b3a),_0x7de7d1(0x228));if(!_0x120927(_0x5c30d7)||!_0x6ea90b(_0x5c30d7)[_0x7de7d1(0x2da)]())return _0x1468db[_0x7de7d1(0x1c0)]=0x194,'App\x20not\x20found';let _0x49ab89=_0x182356['slice'](0x1)['join']('/')||_0x7de7d1(0x265);if(_0x49ab89[_0x7de7d1(0x2bd)]('/'))_0x49ab89+=_0x7de7d1(0x265);let _0x4cfb68=_0x49130f(_0xefcb98(_0x5c30d7,_0x49ab89));if(!_0x4cfb68['startsWith'](_0x5c30d7+_0x1dd7a9)&&_0x4cfb68!==_0x5c30d7)return _0x1468db['status']=0x193,_0x7de7d1(0x2b2);let _0x1f3f37=_0x4cfb68;if(_0x120927(_0x1f3f37)&&_0x6ea90b(_0x1f3f37)[_0x7de7d1(0x2da)]())_0x1f3f37=_0xefcb98(_0x1f3f37,'index.html');if(!_0x120927(_0x1f3f37)||!_0x6ea90b(_0x1f3f37)[_0x7de7d1(0x1dc)]())return _0x1468db['status']=0x194,_0x7de7d1(0x22d);return _0x1468db[_0x7de7d1(0x169)]['content-type']=G2(_0x1f3f37),_0x1468db[_0x7de7d1(0x169)][_0x7de7d1(0x223)]=_0x7de7d1(0x1e9),_0x1468db['headers'][_0x7de7d1(0x1bb)]='*',Bun[_0x7de7d1(0x1df)](_0x1f3f37);});import{Elysia as _0x25ce44}from'elysia';function j2(_0x18970b){const _0x14f3bb=_0x3c273c;return{'code':C[_0x14f3bb(0x281)],'message':'success','data':_0x18970b??null};}function r0(_0x2b51cd,_0x48ef2a=C[_0x3c273c(0x218)]){return{'code':_0x48ef2a,'message':_0x2b51cd};}async function v3(_0x599baf){const _0x4794cb=_0x3c273c;let _0x49dfa6=_0x599baf['params'][_0x4794cb(0x2b8)];if(!_0x49dfa6||!/^[a-zA-Z0-9_-]+$/['test'](_0x49dfa6))return _0x599baf['set'][_0x4794cb(0x1c0)]=0x190,r0(_0x4794cb(0x274));let _0x178150=('/'+String(_0x599baf[_0x4794cb(0x1ea)]['*']||''))[_0x4794cb(0x2ae)](/\/+/g,'/'),_0x847dfe=_[_0x4794cb(0x1eb)](),_0x57eec8=$0[_0x4794cb(0x1eb)](_0x49dfa6);if(!_0x57eec8)return _0x599baf['set']['status']=0x194,r0(_0x4794cb(0x1a9));let _0x38b7a1=_0x599baf[_0x4794cb(0x1a2)]['method'][_0x4794cb(0x246)](),_0xf3008e=_0x178150['replace'](/\/+$/,'')||'/',_0x3acfd1=_0x57eec8[_0x4794cb(0x27a)][_0x4794cb(0x278)](_0x2111c3=>_0x2111c3['method']===_0x38b7a1&&_0x2111c3[_0x4794cb(0x2c7)]===_0xf3008e);if(!_0x3acfd1)return _0x599baf['set'][_0x4794cb(0x1c0)]=0x194,r0(_0x4794cb(0x251));if(_0x3acfd1[_0x4794cb(0x2af)]&&!_0x847dfe?.['isSuper']){if(!(_0x847dfe?.['perms']??[])[_0x4794cb(0x129)](_0x3acfd1[_0x4794cb(0x2af)]))return _0x599baf['status'](0x193);}let _0x3fd382=await $0['dispatch'](_0x49dfa6,_0x38b7a1,_0x178150,{'body':_0x599baf[_0x4794cb(0x1b0)],'query':_0x599baf['query']??{},'params':_0x599baf[_0x4794cb(0x1ea)],'headers':_0x599baf[_0x4794cb(0x1a2)][_0x4794cb(0x169)],'adminId':_0x847dfe?.[_0x4794cb(0x1b7)]});if(!_0x3fd382['ok'])return _0x599baf[_0x4794cb(0x13f)][_0x4794cb(0x1c0)]=_0x3fd382[_0x4794cb(0x1c0)],r0(_0x3fd382[_0x4794cb(0x267)]);return j2(_0x3fd382['data']);}function Z1(_0xbe01bc){const _0x425863=_0x3c273c;return new _0x25ce44({'name':'module-gateway'})[_0x425863(0x12e)](_0xbe01bc[_0x425863(0x17f)])[_0x425863(0x121)](_0x425863(0x155),v3,{'adminAuth':!0x0})['all'](_0x425863(0x211),v3,{'adminAuth':!0x0});}import{Elysia as _0x30c295}from'elysia';function J1(_0x492ec5,_0x2d26dd){const _0x19eec3=_0x3c273c;return new _0x30c295({'name':_0x492ec5+_0x19eec3(0x16d)})[_0x19eec3(0x22a)]({[_0x492ec5]:{'resolve':_0x2d26dd}})['as']('scoped');}var k3={'name':_0x3c273c(0x2a5),'version':_0x3c273c(0x148),'description':_0x3c273c(0x190),'license':'MIT','type':_0x3c273c(0x248),'files':[_0x3c273c(0x1d0),_0x3c273c(0x1c6),'src/shared',_0x3c273c(0x2dd)],'main':_0x3c273c(0x19d),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x3c273c(0x1d7),'import':_0x3c273c(0x19d),'default':'./dist/index.js'},'./server':{'types':_0x3c273c(0x1d5),'import':'./dist/server/index.js','default':'./dist/server/index.js'},'./admin':{'types':_0x3c273c(0x1a7),'import':_0x3c273c(0x1a7),'default':_0x3c273c(0x1a7)},'./admin/*':_0x3c273c(0x239),'./admin/styles/base.css':_0x3c273c(0x128),'./typings/*':'./typings/admin/*'},'scripts':{'build':'rm\x20-rf\x20dist\x20&&\x20bun\x20build\x20./src/index.ts\x20./src/server/index.ts\x20--outdir\x20./dist\x20--target\x20bun\x20--format\x20esm\x20--external\x20elysia\x20--external\x20reflect-metadata\x20--external\x20drizzle-orm\x20--external\x20drizzle-zod\x20--external\x20@elysiajs/openapi\x20--external\x20@bogeychan/elysia-logger\x20--external\x20pino\x20--external\x20pino-pretty\x20&&\x20tsc\x20-p\x20tsconfig.build.json\x20&&\x20printf\x20\x22%s\x5cn\x22\x20\x22export\x20*\x20from\x20\x27../src/index\x27\x22\x20>\x20dist/index.d.ts\x20&&\x20mkdir\x20-p\x20dist/server\x20&&\x20printf\x20\x22%s\x5cn\x22\x20\x22export\x20*\x20from\x20\x27../../src/server/index\x27\x22\x20>\x20dist/server/index.d.ts','build:obfuscate':_0x3c273c(0x266),'prepare':'bun\x20run\x20build'},'peerDependencies':{'elysia':'>=1.0.0','reflect-metadata':_0x3c273c(0x124),'drizzle-orm':_0x3c273c(0x1bc),'drizzle-zod':_0x3c273c(0x215),'vue':_0x3c273c(0x1a3),'vue-router':_0x3c273c(0x1f7),'pinia':'>=2.0.0','vue-sonner':_0x3c273c(0x271),'@vueuse/core':_0x3c273c(0x23f),'clsx':'>=2.0.0','tailwind-merge':_0x3c273c(0x271)},'peerDependenciesMeta':{'drizzle-orm':{'optional':!0x0},'drizzle-zod':{'optional':!0x0},'vue':{'optional':!0x0},'vue-router':{'optional':!0x0},'pinia':{'optional':!0x0},'vue-sonner':{'optional':!0x0},'@vueuse/core':{'optional':!0x0},'clsx':{'optional':!0x0},'tailwind-merge':{'optional':!0x0}},'devDependencies':{'bun-types':_0x3c273c(0x1f4),'drizzle-orm':'latest','drizzle-zod':_0x3c273c(0x1af),'elysia':_0x3c273c(0x1f4),'javascript-obfuscator':_0x3c273c(0x238),'reflect-metadata':_0x3c273c(0x26e),'typescript':'latest'},'dependencies':{'@bogeychan/elysia-logger':'^0.1.10','@elysiajs/openapi':_0x3c273c(0x11d),'pino':_0x3c273c(0x170),'pino-pretty':_0x3c273c(0x241)}},n$=k3[_0x3c273c(0x2aa)];export{K3 as vome,n$ as version,g0 as tableHasDepartmentId,fQ as syncColumnCommentsToPg,X0 as scanFiles,G0 as resolveTenantScope,h0 as resolveDataScope,aQ as readPluginScript,V0 as q,_0 as pPluginPath,e as pModulesPath,g as pModulePath,K0 as pDataPath,TQ as normalizeHost,DQ as noTenant,NQ as noDataScope,$1 as microApps,rQ as loadPluginClass,o0 as loadModuleHandlers,Z0 as listProviders,O as listControllers,y0 as isTenantEnabled,N0 as isEpsEnabled,U0 as isCommException,i as getRepository,P as getEnv,t as getColumnComments,H0 as entitySchemas,J1 as defineAuthMacro,Z1 as createModuleGateway,kQ as columnComments,xQ as baseColumns,L0 as attachCrudRoutes,q as applyRowScopes,u0 as applyDataScopeWhere,c as appendInjectMeta,D as VomeConfig,gQ as Use,p as ScopeEnum,M0 as Repository,C as RES_CODE,pQ as Query,iQ as Put,hQ as Public,FQ as Provide,lQ as Post,uQ as Perms,oQ as Patch,dQ as Param,$0 as ModuleRegistry,s as Logger,K as Ioc,_Q as InjectRepository,jQ as Inject,mQ as IgnorePerms,nQ as Get,wQ as Eps,sQ as Delete,m as DbStore,yQ as Controller,_ as Context,Y0 as CommException,cQ as Body,a as BaseService,k as BasePlugin,n as BaseController,T0 as BASE_COLUMN_COMMENTS,p0 as App};
|
package/package.json
CHANGED
package/src/admin/lib/menu.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/** 侧栏可见菜单(过滤隐藏节点) */
|
|
2
2
|
export function filterShowMenus(nodes: MenuTreeNode[]): MenuTreeNode[] {
|
|
3
3
|
return nodes
|
|
4
|
-
.filter((n) => n.isShow)
|
|
4
|
+
.filter((n) => n.isShow !== false)
|
|
5
5
|
.map((n) => ({
|
|
6
6
|
...n,
|
|
7
7
|
children: n.children?.length ? filterShowMenus(n.children) : undefined,
|
|
8
8
|
}))
|
|
9
|
-
.filter(
|
|
10
|
-
(n)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(n.children?.length ?? 0) > 0,
|
|
14
|
-
)
|
|
9
|
+
.filter((n) => {
|
|
10
|
+
const t = Number(n.type)
|
|
11
|
+
return t === 0 || (t === 1 && n.router) || (n.children?.length ?? 0) > 0
|
|
12
|
+
})
|
|
15
13
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
2
2
|
import { api, clearTokens, getAccessToken, getRefreshToken } from '../api/client'
|
|
3
|
-
import {
|
|
3
|
+
import { useUserStore } from '../stores/user'
|
|
4
|
+
import {
|
|
5
|
+
clearMenuRoutesFlag,
|
|
6
|
+
ensureMenuRoutes,
|
|
7
|
+
removeAllMenuRoutes,
|
|
8
|
+
} from './menu-routes'
|
|
4
9
|
import Home from '#vome-host/pages/home/index.vue'
|
|
5
10
|
import Layout from '#vome-host/pages/layout/index.vue'
|
|
6
11
|
import Login from '#vome-host/pages/login/index.vue'
|
|
@@ -42,6 +47,11 @@ router.beforeEach(async (to) => {
|
|
|
42
47
|
try {
|
|
43
48
|
const authz = await api.perms({ toast: false })
|
|
44
49
|
await ensureMenuRoutes(router, authz.menus)
|
|
50
|
+
// 与 layout 的 user.load 互补:先写入侧栏菜单,避免空窗
|
|
51
|
+
const user = useUserStore()
|
|
52
|
+
user.isSuper = authz.isSuper
|
|
53
|
+
user.perms = authz.perms
|
|
54
|
+
user.menus = authz.menus ?? []
|
|
45
55
|
menusReady = true
|
|
46
56
|
if (to.matched.length <= 1 && to.path !== '/') {
|
|
47
57
|
return { ...to, replace: true }
|
|
@@ -55,7 +65,9 @@ router.beforeEach(async (to) => {
|
|
|
55
65
|
return true
|
|
56
66
|
})
|
|
57
67
|
|
|
68
|
+
/** 退出/重登:卸动态路由并允许再次 ensureMenuRoutes */
|
|
58
69
|
export function resetMenuRoutesFlag() {
|
|
59
70
|
menusReady = false
|
|
71
|
+
removeAllMenuRoutes(router)
|
|
60
72
|
clearMenuRoutesFlag()
|
|
61
73
|
}
|