react-mtquery
Version:
FOR REACT HOOK QUERIES and HOOKS HELPER
1 lines • 45.8 kB
JavaScript
'use strict';var a0_0x362503=this&&this['__createBinding']||(Object['create']?function(_0xb3ee44,_0x18fc57,_0x5c6252,_0x372de7){if(_0x372de7===undefined)_0x372de7=_0x5c6252;var _0x1e765f=Object['getOwnPropertyDescriptor'](_0x18fc57,_0x5c6252);if(!_0x1e765f||('get'in _0x1e765f?!_0x18fc57['__esModule']:_0x1e765f['writable']||_0x1e765f['configurable'])){const _0x122661={};_0x122661['enumerable']=!![],_0x122661['get']=function(){return _0x18fc57[_0x5c6252];},_0x1e765f=_0x122661;}Object['defineProperty'](_0xb3ee44,_0x372de7,_0x1e765f);}:function(_0x842f69,_0x31cffe,_0x12c6b9,_0xfc287){if(_0xfc287===undefined)_0xfc287=_0x12c6b9;_0x842f69[_0xfc287]=_0x31cffe[_0x12c6b9];}),a0_0x18c0de=this&&this['__setModuleDefault']||(Object['create']?function(_0x3a8bcb,_0x3b78c8){const _0x1d0a8a={};_0x1d0a8a['enumerable']=!![],_0x1d0a8a['value']=_0x3b78c8,Object['defineProperty'](_0x3a8bcb,'default',_0x1d0a8a);}:function(_0xd64bb2,_0x4dadf1){_0xd64bb2['default']=_0x4dadf1;}),a0_0x2937ca=this&&this['__importStar']||function(_0x263f87){if(_0x263f87&&_0x263f87['__esModule'])return _0x263f87;var _0x468dcc={};if(_0x263f87!=null){for(var _0x24b7c4 in _0x263f87)if(_0x24b7c4!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x263f87,_0x24b7c4))a0_0x362503(_0x468dcc,_0x263f87,_0x24b7c4);}return a0_0x18c0de(_0x468dcc,_0x263f87),_0x468dcc;};const a0_0x1e254f={};a0_0x1e254f['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1e254f),exports['safePromise']=exports['useFileUplader']=exports['upHelper']=exports['FileUplader']=exports['UPLOAD_STATUS']=exports['allSettled']=exports['useMSQuery']=exports['useMRQuery']=exports['useMQuery']=exports['useMSearch']=exports['useMRun']=exports['useQCalc']=exports['useMCalc']=exports['useMLayout']=exports['useMEffect']=exports['useQFS']=exports['useMFS']=exports['useMFSVar']=exports['useMTimeShift']=exports['useMVar']=exports['useQState']=exports['useMState']=exports['useMFu']=exports['useWaitFor']=exports['waitFor']=exports['intervalSequencer']=exports['batchSequencer']=exports['debounceSequencer']=exports['auditSequencer']=exports['flattenSequencer']=exports['MQUERY_STATUS']=void 0x0;const a0_0x29817d=a0_0x2937ca(require('react'));var a0_0x5182b0;(function(_0x382957){_0x382957[_0x382957['LOADING']=0x1]='LOADING',_0x382957[_0x382957['LOADED']=0x2]='LOADED',_0x382957[_0x382957['ERROR']=0x3]='ERROR';}(a0_0x5182b0||(exports['MQUERY_STATUS']=a0_0x5182b0={})));function a0_0x29ba02(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'['replace'](/[xy]/g,_0x548817=>{var _0x5c6855=Math['random']()*0x10|0x0,_0x5e4ead=_0x548817=='x'?_0x5c6855:_0x5c6855&0x3|0x8;return _0x5e4ead['toString'](0x10);});}function a0_0x459b2b(_0x52d1a2){return()=>a0_0x4c40ad['config']('flatten',_0x52d1a2);}exports['flattenSequencer']=a0_0x459b2b;function a0_0x15f0a1(_0xabe143){return()=>a0_0x4c40ad['config']('audit',_0xabe143);}exports['auditSequencer']=a0_0x15f0a1;function a0_0x3549d5(_0x158d33){return()=>a0_0x4c40ad['config']('debounce',_0x158d33);}exports['debounceSequencer']=a0_0x3549d5;function a0_0x2c5ced(_0x229cf8){return()=>a0_0x4c40ad['config']('batch',_0x229cf8);}exports['batchSequencer']=a0_0x2c5ced;function a0_0x1b6aad(_0x5c52a2){return()=>a0_0x4c40ad['config']('interval',_0x5c52a2);}exports['intervalSequencer']=a0_0x1b6aad;class a0_0x4c40ad{static['config'](_0x8776d2,_0x1b170c){const _0x277c1f={};return _0x277c1f['duration']=_0x1b170c,_0x277c1f['type']=_0x8776d2,_0x277c1f;}static['new'](){return new a0_0x4c40ad();}}function a0_0xa73ad5(_0x1b053b){let _0x3b71b9;function _0x1aa0bc(_0x3dd618=_0x1b053b||0xbb8){return new Promise(_0x5a66ed=>{try{_0x3b71b9=setTimeout(()=>{_0x5a66ed(!![]);},Number(_0x3dd618));}catch(_0x350823){_0x5a66ed(![]);}});}function _0x2cbb8e(){clearTimeout(_0x3b71b9);}const _0x4b0c04={};return _0x4b0c04['wait']=_0x1aa0bc,_0x4b0c04['kill']=_0x2cbb8e,_0x4b0c04;}function a0_0x2c602b(_0x250969){return a0_0xa73ad5(_0x250969);}exports['waitFor']=a0_0x2c602b;function a0_0x552cb7(_0x1c4f87){const _0x1ed50f=a0_0x29817d['useRef'](undefined);return a0_0x29817d['useMemo'](()=>{_0x1ed50f['current']?.['kill'](),_0x1ed50f['current']=a0_0x2c602b(_0x1c4f87);},[]),_0x1ed50f['current'];}const a0_0x4ce866=_0x116534=>{return a0_0x552cb7(_0x116534);};exports['useWaitFor']=a0_0x4ce866;function a0_0x474bd7(){const [_0x12598b,_0x53bb34]=a0_0x29817d['useState'](),_0x499465=a0_0x29817d['useRef'](undefined);function _0x15609f(){!_0x499465['current']&&(_0x499465['current']=setTimeout(()=>{_0x499465['current']=null,_0x53bb34(new Date()['getTime']());},0xfa));}return a0_0x29817d['useEffect'](()=>{return()=>{clearTimeout(_0x499465['current']);};},[]),{'time':_0x12598b,'update':()=>_0x15609f()};}function a0_0x3a0d44(){return a0_0x474bd7();}exports['useMFu']=a0_0x3a0d44;class a0_0x119565{['_updateTime'];['_state'];set['state'](_0x311a35){this['_state']=_0x311a35,this['_updateTime']=new Date()['getTime']();}get['state'](){return this['_state'];}get['updateTime'](){return this['_updateTime'];}}Object['freeze'](a0_0x119565);class a0_0x257e01{static['new'](_0x43405f){const _0x1383ad=new a0_0x119565();return _0x1383ad['state']=_0x43405f,_0x1383ad;}}function a0_0x201324(_0x538e9c){const [_0x3264b2,_0x5e4bf2]=a0_0x29817d['useState'](new Date()['getTime']()),_0x2d3871=a0_0x29817d['useRef'](_0x538e9c),_0x5f3c2e=a0_0x29817d['useRef'](new Date()['getTime']()),_0x7c4b1f=a0_0x29817d['useRef'](Object['defineProperties']({'value':_0x538e9c,'time':new Date()['getTime'](),'setValue':function(_0x5ad87f){try{let _0x35f6ef;typeof _0x5ad87f=='function'?_0x35f6ef=_0x5ad87f(_0x2d3871['current']):_0x35f6ef=_0x5ad87f,_0x2d3871['current']=_0x35f6ef;}catch(_0x459682){console['error']('UNKNOWN');}_0x5f3c2e['current']=new Date()['getTime'](),_0x5e4bf2(this['time']);},'reset':function(){_0x2d3871['current']=_0x538e9c,_0x5f3c2e['current']=new Date()['getTime'](),_0x5e4bf2(this['time']);}},{'value':{'enumerable':![],'configurable':![],'get':function(){return _0x2d3871['current'];},'set':function(){console['log']('IMMUTABLE');}},'time':{'enumerable':![],'configurable':![],'get':function(){return _0x5f3c2e['current'];},'set':function(){console['log']('IMMUTABLE');}}}));return _0x7c4b1f['current'];}function a0_0x439997(_0x468024){return a0_0x201324(_0x468024);}exports['useMState']=a0_0x439997;class a0_0x11cafc{['_state'];set['state'](_0x1f1833){this['_state']=_0x1f1833;}get['state'](){return this['_state'];}}Object['freeze'](a0_0x11cafc);class a0_0x1ffa6e{static['new'](_0x57ae3c){const _0x31a423=new a0_0x11cafc();return _0x31a423['state']=_0x57ae3c,_0x31a423;}}function a0_0xc866bf(_0x23aff8,_0x21922f){const [_0x20208d,_0x32d328]=a0_0x29817d['useState'](new Date()['getTime']()),_0x2e4539=a0_0x29817d['useRef'](_0x23aff8),_0x23b97d=a0_0x29817d['useRef'](new Date()['getTime']()),_0x554363=a0_0x29817d['useRef'](undefined),_0x461b2d=a0_0x29817d['useRef'](()=>{_0x554363['current']&&(clearTimeout(_0x554363['current']),_0x554363['current']=null);}),_0x309d8f=a0_0x29817d['useRef'](()=>{!_0x554363['current']&&(_0x554363['current']=setTimeout(()=>{_0x461b2d['current'](),_0x32d328(new Date()['getTime']());},_0x21922f>0x0?_0x21922f:0x3e8));}),_0x29d48b=a0_0x29817d['useRef'](Object['defineProperties']({'value':_0x23aff8,'time':new Date()['getTime'](),'setValue':function(_0x2ee224){try{let _0x21fc8e;typeof _0x2ee224=='function'?_0x21fc8e=_0x2ee224(_0x2e4539['current']):_0x21fc8e=_0x2ee224,_0x2e4539['current']=_0x21fc8e;}catch(_0x4583cd){console['error']('UNKNOWN');}_0x23b97d['current']=new Date()['getTime'](),_0x309d8f['current']();},'reset':function(){_0x2e4539['current']=_0x23aff8,_0x23b97d['current']=new Date()['getTime'](),_0x309d8f['current']();}},{'value':{'enumerable':![],'configurable':![],'get':function(){return _0x2e4539['current'];},'set':function(){console['log']('IMMUTABLE');}},'time':{'enumerable':![],'configurable':![],'get':function(){return _0x23b97d['current'];},'set':function(){console['log']('IMMUTABLE');}}}));return a0_0x29817d['useEffect'](()=>{return()=>_0x461b2d['current']();},[]),_0x29d48b['current'];}function a0_0x38f5ee(_0x2a375f,_0x1681e2){return a0_0xc866bf(_0x2a375f);}exports['useQState']=a0_0x38f5ee;function a0_0x27fdec(_0x36d09e){const _0x1b0859=a0_0x29817d['useRef'](_0x36d09e),_0x2aee30=a0_0x29817d['useRef'](Object['defineProperty']({'value':_0x36d09e,'setValue':function(_0x38dcda){try{let _0x4172ba;typeof _0x38dcda=='function'?_0x4172ba=_0x38dcda(_0x1b0859['current']):_0x4172ba=_0x38dcda,_0x1b0859['current']=_0x4172ba;}catch(_0x1d4349){console['error']('UNKNOWN');}}},'value',{'enumerable':![],'configurable':![],'get':function(){return _0x1b0859['current'];},'set':function(_0x428a03){console['log']('IMMUTABLE');}}));return _0x2aee30['current'];}function a0_0x1e9840(_0x11ec83){return a0_0x27fdec(_0x11ec83);}exports['useMVar']=a0_0x1e9840;var a0_0x3b0ebf;(function(_0x23dadf){_0x23dadf['RUNNING']='RUNNING',_0x23dadf['PENDING']='PENDING',_0x23dadf['COMPLETED']='COMPLETED',_0x23dadf['STOPPED']='STOPPED';}(a0_0x3b0ebf||(a0_0x3b0ebf={})));var a0_0x49a2d5;(function(_0x315ab1){_0x315ab1['UP']='up',_0x315ab1['DOWN']='down';}(a0_0x49a2d5||(a0_0x49a2d5={})));const a0_0x4051bb=()=>{const _0x51e241=a0_0x29817d['useRef'](undefined),_0x182ac1=a0_0x29817d['useRef'](0x0),_0x2d5e7f=a0_0x29817d['useRef'](a0_0x49a2d5['DOWN']),_0x2826fe=a0_0x29817d['useRef'](0x0),_0x1e4fec=a0_0x29817d['useRef'](a0_0x3b0ebf['STOPPED']),_0x413e29=a0_0x29817d['useRef']({}),_0x380a34=a0_0x29817d['useRef']({}),_0x105794=a0_0x29817d['useRef'](0x0),_0x543b62=a0_0x29817d['useState'](undefined);function _0x169819(){_0x543b62[0x1](new Date()['getTime']());}function _0x41b16b(){const _0x18091c={};return _0x18091c['stopped']=_0x1e4fec['current']===a0_0x3b0ebf['STOPPED'],_0x18091c['pending']=_0x1e4fec['current']===a0_0x3b0ebf['PENDING'],_0x18091c['running']=_0x1e4fec['current']===a0_0x3b0ebf['RUNNING'],_0x18091c['completed']=_0x1e4fec['current']===a0_0x3b0ebf['COMPLETED'],_0x18091c;}function _0x3a2d34(){Object['keys'](_0x413e29['current'])['forEach'](_0x8d5087=>{try{_0x413e29['current'][_0x8d5087](_0x41b16b());}catch(_0x131ea5){}});}function _0x44db75(){Object['keys'](_0x380a34['current'])['forEach'](_0x35e3bf=>{try{_0x380a34['current'][_0x35e3bf](_0x2826fe['current']*0x3e8);}catch(_0x109f76){}});}function _0x41f1de(_0x2958cc){_0x1e4fec['current']=_0x2958cc,_0x3a2d34();}function _0x54bd03(){window&&clearTimeout(_0x51e241['current']),_0x51e241['current']=null;}function _0x29fdc8(_0x3ee439,_0x47a8b2){if(_0x51e241['current']){_0x3a2d34(),_0x169819();return;}const _0x4c27c5=_0x47a8b2==='up',_0x5c13de=_0x41b16b();(_0x5c13de['stopped']||_0x5c13de['completed'])&&(_0x4c27c5?_0x2826fe['current']=0x0:_0x2826fe['current']=_0x3ee439,_0x41f1de(a0_0x3b0ebf['RUNNING']),_0x169819(),_0x44db75());if(_0x4c27c5?_0x2826fe['current']>=_0x3ee439:_0x2826fe['current']<=0x0){_0x4c27c5?_0x2826fe['current']=_0x3ee439:_0x2826fe['current']=0x0;_0x41f1de(a0_0x3b0ebf['COMPLETED']),_0x169819(),_0x44db75(),_0x54bd03();return;}!_0x5c13de['running']&&_0x41f1de(a0_0x3b0ebf['RUNNING']),_0x51e241['current']=setTimeout(()=>{_0x4c27c5?_0x2826fe['current']=_0x2826fe['current']+0x1:_0x2826fe['current']=_0x2826fe['current']-0x1,_0x54bd03(),_0x44db75(),_0x169819(),_0x29fdc8(_0x3ee439,_0x47a8b2);},0x3e8);}function _0x153fc5(_0x547417){_0x41f1de(_0x547417),_0x54bd03(),_0x169819();}function _0x2697da(_0x4007c4){const _0x14d316=a0_0x29ba02();return _0x413e29['current'][_0x14d316]=_0x4007c4,()=>{delete _0x413e29['current'][_0x14d316];};}function _0x31cf5b(_0x165b1b){const _0x16eba5=a0_0x29ba02();return _0x380a34['current'][_0x16eba5]=_0x165b1b,()=>{delete _0x380a34['current'][_0x16eba5];};}function _0x301c84(_0x137e42,_0x50de4b='down'){_0x182ac1['current']=Number(_0x137e42),_0x2d5e7f['current']=_0x50de4b,_0x29fdc8(_0x182ac1['current'],_0x2d5e7f['current']);}function _0x110725(){_0x153fc5(a0_0x3b0ebf['STOPPED']);}function _0x42f661(){_0x153fc5(a0_0x3b0ebf['PENDING']);}function _0x10b86f(){_0x29fdc8(_0x182ac1['current'],_0x2d5e7f['current']);}function _0x4f276e(_0x1024a2){return _0x2697da(_0x1024a2);}function _0x52c257(_0x14bd71){return _0x31cf5b(_0x14bd71);}const _0x22cb4b=a0_0x29817d['useCallback'](()=>{if(_0x41b16b()['pending']&&_0x105794['current']){const _0x5523a0=Math['floor']((new Date()['getTime']()-_0x105794['current'])/0x3e8);_0x2d5e7f['current']===a0_0x49a2d5['DOWN']?_0x2826fe['current']-=_0x5523a0:_0x2826fe['current']+=_0x5523a0,_0x10b86f();}_0x105794['current']=null;},[]),_0x21f574=a0_0x29817d['useCallback'](()=>{_0x41b16b()['running']&&(_0x105794['current']=new Date()['getTime'](),_0x153fc5(a0_0x3b0ebf['PENDING']));},[]);a0_0x29817d['useEffect'](()=>{const _0x4f7aa5=window;return _0x4f7aa5?.['removeEventListener']('focus',_0x22cb4b),_0x4f7aa5?.['removeEventListener']('blur',_0x21f574),_0x4f7aa5?.['addEventListener']('focus',_0x22cb4b),_0x4f7aa5?.['addEventListener']('blur',_0x21f574),()=>{_0x41f1de(a0_0x3b0ebf['STOPPED']),window&&clearTimeout(_0x51e241['current']),_0x4f7aa5?.['removeEventListener']('focus',_0x22cb4b),_0x4f7aa5?.['removeEventListener']('blur',_0x21f574);};},[]);const _0x588c86=_0x41b16b();return{'timems':_0x2826fe['current']*0x3e8,'timesec':_0x2826fe['current'],'timemin':Number((_0x2826fe['current']/0x3c)['toFixed'](0x2)),'pending':_0x588c86['pending'],'running':_0x588c86['running'],'completed':_0x588c86['completed'],'stopped':_0x588c86['stopped'],'start':(_0x18f791,_0x265850)=>_0x301c84(_0x18f791,_0x265850),'stop':()=>_0x110725(),'pause':()=>_0x42f661(),'play':()=>_0x10b86f(),'addStatusListener':_0x3a10e7=>_0x4f276e(_0x3a10e7),'addTimeListener':_0x253fbd=>_0x52c257(_0x253fbd)};},a0_0x15ed4d=()=>{return a0_0x4051bb();};exports['useMTimeShift']=a0_0x15ed4d;function a0_0x14622f(_0x3fba68,_0x148389=null){try{return _0x3fba68()||null;}catch(_0x9714e0){return _0x148389;}}function a0_0x2cbffe(_0x41856f,_0x152b51){const _0x2ee044=_0x152b51['split']('.');let _0x132880=_0x41856f;for(let _0x5d15d6 of _0x2ee044){if(_0x132880[_0x5d15d6]===undefined)return undefined;_0x132880=_0x132880[_0x5d15d6];}return _0x132880;}function a0_0x35602e(_0xc636a){const _0x56936e=a0_0x29817d['useRef'](undefined),_0xdf636=a0_0x29817d['useRef'](a0_0x14622f(()=>Object['keys'](_0xc636a)?_0xc636a:{},{})),_0x2daa88=a0_0x29817d['useRef'](a0_0x14622f(()=>Object['values'](_0xc636a||{}),[]));function _0x1c7bb1(){a0_0x14622f(()=>{_0x2daa88['current']=Object['values'](_0xdf636['current']);}),_0x56936e['current']=new Date()['getTime']();}function _0x4f5e5c(_0x54b89c,_0x37b0d0){return a0_0x14622f(()=>{let _0x3d2e01;return typeof _0x37b0d0=='function'?_0x3d2e01=_0x37b0d0(_0xdf636['current']):_0x3d2e01=_0x37b0d0,_0xdf636['current'][String(_0x54b89c)]=_0x3d2e01,_0x1c7bb1(),!![];},![]);}function _0x2e100b(_0x44ed74){return a0_0x14622f(()=>{return _0xdf636['current'][String(_0x44ed74)];},null);}function _0x4b6005(_0x19a50d){return a0_0x14622f(()=>{return delete _0xdf636['current'][String(_0x19a50d)],_0x1c7bb1(),!![];},![]);}function _0x54882e(){return a0_0x14622f(()=>{return _0xdf636['current']={},_0x1c7bb1(),!![];},![]);}function _0x517938(){return a0_0x14622f(()=>{return _0x2daa88['current']['length'];},0x0);}function _0x2987e7(){return a0_0x14622f(()=>{return Object['keys'](_0xdf636['current']);},[]);}function _0x268116(){return a0_0x14622f(()=>{return _0x2daa88['current'];},[]);}function _0x4c4966(_0x27384b){return a0_0x14622f(()=>{return Boolean(_0xdf636['current'][_0x27384b]);},![]);}function _0x32e1ee(_0x2541cb){return a0_0x14622f(()=>{const _0x3d2823=_0x2daa88['current']['find'](_0x15de2f=>{return JSON['stringify'](_0x15de2f)===JSON['stringify'](_0x2541cb)&&typeof _0x15de2f===typeof _0x2541cb;});return Boolean(_0x3d2823);},![]);}function _0x4af944(_0xd39501){return a0_0x14622f(()=>{const _0x3cb0f2=Object['entries'](_0xdf636['current'])['find'](([_0xc128c5,_0x389c2a])=>{return JSON['stringify'](_0x389c2a)===JSON['stringify'](_0xd39501)&&typeof _0x389c2a===typeof _0xd39501;});return _0x3cb0f2[0x0];},null);}function _0x391cdc(_0x43736d,_0x2cdf08,_0x2aba81){a0_0x14622f(()=>{const _0x88cb44=typeof _0x2cdf08==='string',_0x11d1cf=Boolean(_0x2aba81)||typeof _0x2aba81==='function';_0xdf636['current']={},_0x88cb44?_0x43736d['forEach']((_0x48aa20,_0x5774c6)=>{_0xdf636['current'][a0_0x2cbffe(_0x48aa20,_0x2cdf08)]=_0x11d1cf?_0x2aba81(_0x48aa20,_0x5774c6):_0x48aa20;}):_0x43736d['forEach']((_0xc4d1c,_0x542aaa)=>{_0xdf636['current'][_0x2cdf08(_0xc4d1c,_0x542aaa)]=_0x11d1cf?_0x2aba81(_0xc4d1c,_0x542aaa):_0xc4d1c;});},null),_0x1c7bb1();}return a0_0x29817d['useEffect'](()=>{_0x1c7bb1();},[]),Object['freeze']({'time':_0x56936e['current'],'items':_0x2daa88['current'],'put':(_0x2fa451,_0x4a5cf6)=>_0x4f5e5c(_0x2fa451,_0x4a5cf6),'get':_0x53274d=>_0x2e100b(_0x53274d),'rm':_0x1db9cd=>_0x4b6005(_0x1db9cd),'clr':()=>_0x54882e(),'size':()=>_0x517938(),'keys':()=>_0x2987e7(),'values':()=>_0x268116(),'exist':_0x190b80=>_0x4c4966(_0x190b80),'item':_0x19cc6e=>_0x32e1ee(_0x19cc6e),'key':_0x591cec=>_0x4af944(_0x591cec),'fromArr':(_0x5b7e4d,_0x332235,_0x41435c)=>_0x391cdc(_0x5b7e4d,_0x332235,_0x41435c)});}function a0_0x53a7f6(_0x2c7af4){return a0_0x35602e(_0x2c7af4);}exports['useMFSVar']=a0_0x53a7f6;function a0_0x427499(_0x5c54d5){const [_0x2f8066,_0x99851]=a0_0x29817d['useState'](),_0x175ea5=a0_0x29817d['useRef'](undefined);function _0x5ed380(){_0x175ea5['current']&&(clearTimeout(_0x175ea5['current']),_0x175ea5['current']=null);}function _0x12b461(){!_0x175ea5['current']&&(_0x175ea5['current']=setTimeout(()=>{_0x5ed380(),_0x99851(new Date()['getTime']());},Number(_0x5c54d5)>=0x0?_0x5c54d5:0x3e8));}return a0_0x29817d['useEffect'](()=>{return()=>{_0x5ed380();};},[]),{'update':()=>_0x12b461()};}function a0_0x288d13(_0xa1d35a,_0x2bc7c5){const _0x13da7d=a0_0x427499(_0xa1d35a),_0x4b6a3f=a0_0x53a7f6(_0x2bc7c5),_0x32b21e=_0x4b6a3f['time'];function _0x3f2d56(_0x5c358f,_0x213bf0=null){try{return _0x5c358f()||null;}catch(_0x60fb58){return _0x213bf0;}}function _0x274eca(_0x5d4e1e,_0x499197){return _0x3f2d56(()=>{return _0x4b6a3f['put'](_0x5d4e1e,_0x499197),_0x13da7d['update'](),!![];},![]);}function _0x1fb2ab(_0x13d267){return _0x3f2d56(()=>{return _0x4b6a3f['get'](_0x13d267);},null);}function _0x81bc06(_0x561176){return _0x3f2d56(()=>{return _0x4b6a3f['rm'](_0x561176),_0x13da7d['update'](),!![];},![]);}function _0x4fd9a4(){return _0x3f2d56(()=>{return _0x4b6a3f['clr'](),_0x13da7d['update'](),!![];},![]);}function _0x12a453(){return _0x3f2d56(()=>{return _0x4b6a3f['size']();},0x0);}function _0x2dfce7(){return _0x3f2d56(()=>{return _0x4b6a3f['keys']();},[]);}function _0x3b653a(){return _0x3f2d56(()=>{return _0x3b653a();},[]);}function _0x3ed9bd(_0x514827){return _0x3f2d56(()=>{return _0x4b6a3f['exist'](_0x514827);},![]);}function _0x31dece(_0x3b85d3){return _0x3f2d56(()=>{return _0x4b6a3f['item'](_0x3b85d3);},![]);}function _0x4492e0(_0x3b2441){return _0x3f2d56(()=>{return _0x4b6a3f['key'](_0x3b2441);},null);}function _0x11b071(_0xc88a13,_0xe49222,_0x243cdf){return _0x3f2d56(()=>{return _0x4b6a3f['fromArr'](_0xc88a13,_0xe49222,_0x243cdf);},null);}return Object['freeze']({'time':_0x32b21e,'items':_0x4b6a3f['items'],'put':(_0x429573,_0x2ba16d)=>_0x274eca(_0x429573,_0x2ba16d),'get':_0x2b06d4=>_0x1fb2ab(_0x2b06d4),'rm':_0x2a0957=>_0x81bc06(_0x2a0957),'clr':()=>_0x4fd9a4(),'size':()=>_0x12a453(),'keys':()=>_0x2dfce7(),'values':()=>_0x3b653a(),'exist':_0x242b47=>_0x3ed9bd(_0x242b47),'item':_0x575506=>_0x31dece(_0x575506),'key':_0x112013=>_0x4492e0(_0x112013),'fromArr':(_0x1c361e,_0x3ef979,_0x12587f)=>_0x11b071(_0x1c361e,_0x3ef979,_0x12587f)});}function a0_0x9e2003(_0x149bd5){return a0_0x288d13(0x0,_0x149bd5);}function a0_0x4905ab(_0x37ce1e){return a0_0x9e2003(_0x37ce1e);}exports['useMFS']=a0_0x4905ab;function a0_0x52b2ed(_0x55b1fc){return a0_0x288d13(0x2ef,_0x55b1fc);}function a0_0x1c0b9d(_0x433d41){return a0_0x52b2ed(_0x433d41);}exports['useQFS']=a0_0x1c0b9d;function a0_0x4fb84d(_0x1ca320,_0x3b339e){a0_0x29817d['useEffect'](()=>{try{_0x3b339e();}catch(_0x45c293){console['warn']('INVALID_CB',_0x45c293);}},[JSON['stringify'](_0x1ca320)]);}function a0_0x321d96(_0x523310,_0x4306ea){return a0_0x4fb84d(_0x523310,_0x4306ea);}exports['useMEffect']=a0_0x321d96;function a0_0x5f3bdf(_0x444164,_0x38d425){a0_0x29817d['useLayoutEffect'](()=>{try{_0x38d425();}catch(_0x1687b2){console['warn']('INVALID_CB',_0x1687b2);}},[JSON['stringify'](_0x444164)]);}function a0_0x41f5aa(_0x12d4eb,_0x1d6a46){return a0_0x5f3bdf(_0x12d4eb,_0x1d6a46);}exports['useMLayout']=a0_0x41f5aa;function a0_0x4d636f(_0x37cfe4,_0x3c13ab){return a0_0x29817d['useMemo'](()=>{try{return _0x3c13ab();}catch(_0x9c8301){return console['warn']('INVALID_CB',_0x9c8301),null;}},[JSON['stringify'](_0x37cfe4)]);}function a0_0xe8cbd5(_0x5a5e6b,_0x4996e8){return a0_0x4d636f(_0x5a5e6b,_0x4996e8);}exports['useMCalc']=a0_0xe8cbd5;function a0_0x34f73(_0x1fd40c,_0x3801f9,_0x412fb0){const [_0x3e4484,_0x197f77]=a0_0x29817d['useState'](new Date()['getTime']()),_0x13c8ff=a0_0x29817d['useRef'](undefined),_0x2f379c=a0_0x29817d['useRef'](undefined),_0x2d2995=a0_0x29817d['useRef'](null),_0x4f4108=a0_0x29817d['useCallback'](()=>{_0x2f379c['current']&&(clearTimeout(_0x2f379c['current']),_0x2f379c['current']=null);},[]),_0x2d7959=a0_0x29817d['useRef'](Object['defineProperties']({'run':function(){try{_0x2d2995['current']=_0x13c8ff['current']();}catch(_0x5a2b75){console['warn']('INVALID_CB',_0x5a2b75);}},'setRunner':function(){!_0x2f379c['current']&&(_0x2f379c['current']=setTimeout(()=>{_0x4f4108(),this['run'](),_0x197f77(new Date()['getTime']());},_0x412fb0>0x0?_0x412fb0:0x6d9));}},{}));return a0_0x29817d['useMemo'](()=>{return _0x13c8ff['current']=()=>_0x3801f9(),_0x2d7959['current']['run'](),0x1;},[]),a0_0x29817d['useEffect'](()=>{_0x13c8ff['current']=()=>_0x3801f9();},[_0x3801f9]),a0_0x29817d['useEffect'](()=>{_0x2d7959['current']['setRunner']();},[JSON['stringify'](_0x1fd40c)]),a0_0x29817d['useEffect'](()=>{return()=>_0x4f4108();},[]),{'running':Boolean(_0x2f379c['current']),'result':_0x2d2995['current'],'time':_0x3e4484};}function a0_0x3fdf55(_0x33407c,_0x27db76,_0x232daa){return a0_0x34f73(_0x33407c,_0x27db76,_0x232daa);}exports['useQCalc']=a0_0x3fdf55;function a0_0x44c9f7(_0x2d5896,_0x1877aa,_0x13b460){const [_0x2612bb,_0x21c04d]=a0_0x29817d['useState'](new Date()['getTime']()),_0x4724b6=a0_0x29817d['useRef'](undefined),_0x1dafe7=a0_0x29817d['useRef'](undefined),_0x1de224=a0_0x29817d['useCallback'](()=>{_0x1dafe7['current']&&(clearTimeout(_0x1dafe7['current']),_0x1dafe7['current']=null);},[]),_0x294030=a0_0x29817d['useRef'](Object['defineProperties']({'run':async function(){try{await _0x4724b6['current']();}catch(_0x412874){console['warn']('INVALID_CB',_0x412874);}return Promise['resolve']();},'setRunner':function(){!_0x1dafe7['current']&&(_0x1dafe7['current']=setTimeout(async()=>{await this['run'](),_0x1de224(),_0x21c04d(new Date()['getTime']());},_0x13b460>0x0?_0x13b460:0x6d9));}},{}));return a0_0x29817d['useMemo'](()=>{return _0x4724b6['current']=()=>_0x1877aa(),_0x294030['current']['run']()['then'](()=>{}),0x1;},[]),a0_0x29817d['useEffect'](()=>{_0x4724b6['current']=()=>_0x1877aa();},[_0x1877aa]),a0_0x29817d['useEffect'](()=>{_0x294030['current']['setRunner']();},[JSON['stringify'](_0x2d5896)]),a0_0x29817d['useEffect'](()=>{return()=>_0x1de224();},[]),{'running':Boolean(_0x1dafe7['current']),'time':_0x2612bb};}function a0_0x1de006(_0x335ca9,_0xa36fb4,_0x870b0f){return a0_0x44c9f7(_0x335ca9,_0xa36fb4,_0x870b0f);}exports['useMRun']=a0_0x1de006;function a0_0x24a62b(_0xb1fba7,_0x2936ba,_0x3ba875,_0x1f0f3a){const _0x3ff5da=a0_0x29817d['useRef'](_0x3ba875),_0x52e6f7=a0_0x29817d['useRef'](undefined),_0x4cd71d=a0_0x29817d['useRef'](undefined),_0x94f2e9=a0_0x29817d['useRef'](_0x2936ba),[_0x298afa,_0x156989]=a0_0x29817d['useState'](undefined),_0x3035c5=a0_0x29817d['useCallback'](()=>{_0x4cd71d['current']&&(clearTimeout(_0x4cd71d['current']),_0x4cd71d['current']=null);},[]),_0x4f8e62=a0_0x29817d['useCallback'](()=>{!_0x4cd71d['current']&&(_0x4cd71d['current']=setTimeout(()=>{try{_0x94f2e9['current']=_0x52e6f7['current']();}catch(_0x2a4ea7){console['warn']('INVALID_CB',_0x2a4ea7);}_0x3035c5(),_0x156989(new Date()['getTime']());},_0x3ff5da['current']));},[]);return a0_0x29817d['useEffect'](()=>{_0x3ff5da['current']=_0x3ba875,_0x52e6f7['current']=()=>_0x1f0f3a(_0xb1fba7,_0x2936ba);},[_0x1f0f3a,_0x2936ba]),a0_0x29817d['useEffect'](()=>{_0x4f8e62();},[JSON['stringify'](_0xb1fba7)]),a0_0x29817d['useEffect'](()=>{return()=>_0x3035c5();},[]),{'result':_0x94f2e9['current'],'update':_0x298afa,'isSearching':Boolean(_0x4cd71d['current'])};}function a0_0x1816a9(_0x5eb755,_0x2ed4e9,_0x1a86fb,_0x1bcde8){return a0_0x24a62b(_0x5eb755,_0x2ed4e9,_0x1a86fb,_0x1bcde8);}exports['useMSearch']=a0_0x1816a9;class a0_0x35740f{['_loading']=()=>{};['_loaded']=()=>{};['_error']=()=>{};['_lmp']=_0x6f2c40=>_0x6f2c40;['_final']=()=>{};['loader'];constructor(_0x13a41d){this['loader']=_0x13a41d;}['loading'](_0x38aabc){return this['_loading']=_0x38aabc,this;}['loaded'](_0x3b5489){return this['_loaded']=_0x3b5489,this;}['error'](_0x26d03a){return this['_error']=_0x26d03a,this;}['lmp'](_0x33429d){return this['_lmp']=_0x33429d,this;}['final'](_0x5dbbd1){return this['_final']=_0x5dbbd1,this;}['go'](){this['loader'](this['_loading'],this['_loaded'],this['_error'],this['_lmp'],this['_final']);}}Object['freeze'](a0_0x35740f);function a0_0x5c4f05(_0x54144a,_0xd8c7c3,_0x2b1c90){const _0x3e4c01=a0_0x1e9840(),_0xa14db1={};_0xa14db1['data']=_0xd8c7c3;const _0x27665f=a0_0x439997(_0xa14db1);function _0x106b8b(..._0x28cdfb){_0x27665f['setValue'](()=>({'parameters':_0x28cdfb,'status':a0_0x5182b0['LOADING'],'data':_0xd8c7c3,'error':undefined}));}function _0x1cb81a(_0x14a3b0,..._0x144b99){_0x27665f['setValue'](()=>({'parameters':_0x144b99,'status':a0_0x5182b0['LOADED'],'data':_0x14a3b0,'error':undefined,'updateTime':new Date()['getTime'](),'loadTime':new Date()['getTime']()}));}function _0xfd74a1(_0x817240){_0x27665f['setValue'](_0x202f4b=>({'parameters':_0x202f4b['parameters'],'status':a0_0x5182b0['ERROR'],'data':_0xd8c7c3,'error':_0x817240}));}async function _0xfa0f30(_0x21160d,..._0x357fad){try{_0x106b8b(..._0x357fad);const _0x4a600f=await _0x54144a(..._0x357fad),_0x1b81c6=_0x2b1c90?_0x2b1c90(_0x4a600f):_0x4a600f,_0x3fb065=_0x21160d(_0x1b81c6);return _0x1cb81a(_0x3fb065||null,..._0x357fad),Promise['resolve'](_0x3fb065);}catch(_0x497311){return _0xfd74a1(_0x497311),Promise['reject'](_0x497311);}}async function _0x5e321f(_0x58eca5,..._0x561760){try{const _0x261819=await _0x54144a(..._0x561760),_0x30fb13=_0x2b1c90?_0x2b1c90(_0x261819):_0x261819,_0x1e2ee3=_0x58eca5(_0x30fb13);return _0x1cb81a(_0x1e2ee3||null,..._0x561760),Promise['resolve'](_0x1e2ee3);}catch(_0x16416){return Promise['reject'](_0x16416);}}function _0x26d8c4(){try{_0x27665f['setValue'](_0x2c590a=>({..._0x2c590a,'status':undefined,'data':_0xd8c7c3,'error':undefined,'updateTime':new Date()['getTime'](),'loadTime':null}));}catch(_0x2d75bc){throw new Error('UNKNOWN');}}async function _0x4b1cab(_0xd73cf8,_0x3e0e7f,_0x1d3bce,_0x227698,_0x448d47,..._0x48fb20){try{_0xd73cf8();const _0x1cf5cb=await _0xfa0f30(_0x227698,..._0x48fb20);_0x3e0e7f(_0x1cf5cb),_0x448d47();}catch(_0x5f0ea5){_0x1d3bce(_0x5f0ea5),_0x448d47();}}async function _0x194ada(_0x51b706,_0x241896,_0x27456d,_0x1402d1,_0x1f1f3f,..._0x304d7c){try{_0x51b706();const _0x2b360c=await _0x5e321f(_0x1402d1,..._0x304d7c);_0x241896(_0x2b360c),_0x1f1f3f();}catch(_0x2a181c){_0x27456d(_0x2a181c),_0x1f1f3f();}}function _0x342a52(..._0x2f1ad9){try{return _0xfa0f30(_0x3dbfcd=>_0x3dbfcd,..._0x2f1ad9);}catch(_0x475884){return Promise['reject']('UNKNOWN');}}async function _0x3f44d8(_0x50378e,_0x52959e,_0x497fb7,_0x4e9439,_0x42fa78){try{_0x50378e();const _0x4342e0=await _0xfa0f30(_0x4e9439,..._0x27665f['value']['parameters']);_0x52959e(_0x4342e0),_0x42fa78();}catch(_0x5ca367){_0x497fb7(_0x5ca367),_0x42fa78();}}async function _0x3c4858(_0x21c877,_0x2a1177,_0x5a2e79,_0x530b75,_0x1cb32e){try{_0x21c877();const _0x505407=await _0x5e321f(_0x530b75,..._0x27665f['value']['parameters']);_0x2a1177(_0x505407),_0x1cb32e();}catch(_0x1aacac){_0x5a2e79(_0x1aacac),_0x1cb32e();}}function _0xfd4714(){try{return _0xfa0f30(_0x587fed=>_0x587fed,..._0x27665f['value']['parameters']);}catch(_0xc1a669){throw new Error('UNKNOWN');}}function _0x40c49b(_0xb2dbf3){try{_0x27665f['setValue'](_0x18d139=>{let _0x2b7d47;typeof _0xb2dbf3==='function'?_0x2b7d47=_0xb2dbf3(_0x18d139['data']):_0x2b7d47=_0xb2dbf3;const _0x417bc0={..._0x18d139,'data':_0x2b7d47,'updateTime':new Date()['getTime']()};return _0x417bc0;});}catch(_0x579b0c){throw new Error('UNKNOWN');}}function _0x4427c6(_0x21e6c2,_0x505d09){if(_0x27665f['value']['loadTime']&&JSON['stringify'](_0x21e6c2)!==JSON['stringify'](_0x3e4c01['value'])){}}return Object['freeze']({'updateTime':_0x27665f['value']['updateTime'],'loadTime':_0x27665f['value']['updateTime'],'status':_0x27665f['value']['status'],'data':_0x27665f['value']['data'],'loading':_0x27665f['value']['status']===a0_0x5182b0['LOADING'],'loaded':_0x27665f['value']['status']===a0_0x5182b0['LOADED'],'error':_0x27665f['value']['error'],'load':(..._0x4d3f82)=>new a0_0x35740f((_0x153097,_0x51755,_0x2b2ec8,_0x3f3931,_0x399f4c)=>_0x4b1cab(_0x153097,_0x51755,_0x2b2ec8,_0x3f3931,_0x399f4c,..._0x4d3f82)),'loadPromise':(..._0x49c78c)=>_0x342a52(..._0x49c78c),'reload':()=>new a0_0x35740f((_0x515b59,_0x516e48,_0x58a0a9,_0x47318b,_0x38599f)=>_0x3f44d8(_0x515b59,_0x516e48,_0x58a0a9,_0x47318b,_0x38599f)),'reloadPromise':()=>_0xfd4714(),'loadHidden':(..._0x4edd58)=>new a0_0x35740f((_0x47cda1,_0x5e0989,_0x39c375,_0x3225c4,_0x971701)=>_0x194ada(_0x47cda1,_0x5e0989,_0x39c375,_0x3225c4,_0x971701,..._0x4edd58)),'reloadHidden':()=>new a0_0x35740f((_0x2f2e80,_0x51ce6a,_0x29beb2,_0x49c094,_0x379d54)=>_0x3c4858(_0x2f2e80,_0x51ce6a,_0x29beb2,_0x49c094,_0x379d54)),'reset':()=>_0x26d8c4(),'setLoading':()=>_0x106b8b(..._0x27665f['value']['parameters']||[]),'setLoaded':_0x30b07d=>_0x1cb81a(_0x30b07d||null,..._0x27665f['value']['parameters']||[]),'setError':_0x47e26e=>_0xfd74a1(_0x47e26e),'setValue':_0x19c181=>_0x40c49b(_0x19c181)});}function a0_0x7881b9(_0x25ffc2,_0x268bb3,_0xbeb3b7){return a0_0x5c4f05(_0x25ffc2,_0x268bb3,_0xbeb3b7);}exports['useMQuery']=a0_0x7881b9;class a0_0x59f2c7{['_loading']=()=>{};['_loaded']=()=>{};['_error']=()=>{};['_lmp']=_0x3a5db6=>_0x3a5db6;['_final']=()=>{};['loader'];constructor(_0xe87892){this['loader']=_0xe87892;}['loading'](_0x492ba0){return this['_loading']=_0x492ba0,this;}['loaded'](_0x1ea5f9){return this['_loaded']=_0x1ea5f9,this;}['error'](_0x2b3b3e){return this['_error']=_0x2b3b3e,this;}['lmp'](_0x51b8a5){return this['_lmp']=_0x51b8a5,this;}['final'](_0x13ee65){return this['_final']=_0x13ee65,this;}['go'](..._0x2cf806){this['loader'](this['_loading'],this['_loaded'],this['_error'],this['_lmp'],this['_final'],..._0x2cf806);}}Object['freeze'](a0_0x59f2c7);function a0_0x4eb5f7(_0xe058fe){const _0x4e22aa={};_0x4e22aa['data']=_0xe058fe;const _0x539b4e=a0_0x439997(_0x4e22aa);async function _0x2e5edd(_0x34c475,_0x254aff){try{const _0x2913ed={};_0x2913ed['status']=a0_0x5182b0['LOADING'],_0x2913ed['data']=_0xe058fe,_0x2913ed['error']=undefined,_0x539b4e['setValue'](_0x2913ed);const _0x4dbc61=await _0x254aff(),_0x121694=_0x34c475(_0x4dbc61);return _0x539b4e['setValue']({'status':a0_0x5182b0['LOADED'],'data':_0x121694,'error':undefined,'updateTime':new Date()['getTime'](),'loadTime':new Date()['getTime']()}),Promise['resolve'](_0x4dbc61);}catch(_0x58bc0d){const _0x225df9={};return _0x225df9['status']=a0_0x5182b0['ERROR'],_0x225df9['data']=_0xe058fe,_0x225df9['error']=_0x58bc0d,_0x539b4e['setValue'](_0x225df9),Promise['reject'](_0x58bc0d);}}async function _0x55ac29(_0x5487fb,_0x249fa2){try{const _0x23a105=await _0x249fa2(),_0x295652=_0x5487fb(_0x23a105);return _0x539b4e['setValue']({'status':a0_0x5182b0['LOADED'],'data':_0x295652,'error':undefined,'updateTime':new Date()['getTime'](),'loadTime':new Date()['getTime']()}),Promise['resolve'](_0x23a105);}catch(_0x58b975){return Promise['reject'](_0x58b975);}}async function _0x32cf78(_0x5be476,_0x509ca9,_0x50aa6b,_0x12abcf,_0x5d4e32,_0x4877f9){try{_0x5be476();const _0x41e5f4=await _0x2e5edd(_0x12abcf,_0x4877f9);_0x509ca9(_0x41e5f4),_0x5d4e32();}catch(_0x336078){_0x50aa6b(_0x336078),_0x5d4e32();}}async function _0x55cc0d(_0x31cea5,_0x3c51b9,_0x4b6976,_0x795af8,_0x2ae427,_0x320b5d){try{_0x31cea5();const _0x1f49f6=await _0x55ac29(_0x795af8,_0x320b5d);_0x3c51b9(_0x1f49f6),_0x2ae427();}catch(_0x3e145e){_0x4b6976(_0x3e145e),_0x2ae427();}}function _0xc4a03d(_0x4fbb79){try{_0x539b4e['setValue'](_0x576f77=>{let _0x18ef41;typeof _0x4fbb79==='function'?_0x18ef41=_0x4fbb79(_0x576f77['data']):_0x18ef41=_0x4fbb79;const _0x3723cc={..._0x576f77,'data':_0x18ef41,'updateTime':new Date()['getTime']()};return _0x3723cc;});}catch(_0x1f970b){throw new Error('UNKNOWN');}}return Object['freeze']({'updateTime':_0x539b4e['value']['updateTime'],'loadTime':_0x539b4e['value']['loadTime'],'status':_0x539b4e['value']['status'],'data':_0x539b4e['value']['data'],'loading':_0x539b4e['value']['status']===a0_0x5182b0['LOADING'],'loaded':_0x539b4e['value']['status']===a0_0x5182b0['LOADED'],'error':_0x539b4e['value']['error'],'setValue':_0x578976=>_0xc4a03d(_0x578976),'load':_0x364725=>new a0_0x59f2c7((_0x5b1d75,_0x1def08,_0x355326,_0x22c2f3,_0x476734,..._0x746f42)=>_0x32cf78(_0x5b1d75,_0x1def08,_0x355326,_0x22c2f3,_0x476734,()=>_0x364725(..._0x746f42))),'loadHidden':_0xb95f69=>new a0_0x59f2c7((_0x2efee6,_0x3f4a98,_0x3dd5ee,_0x242ba6,_0x29bff4,..._0x325d65)=>_0x55cc0d(_0x2efee6,_0x3f4a98,_0x3dd5ee,_0x242ba6,_0x29bff4,()=>_0xb95f69(..._0x325d65)))});}function a0_0x27fb18(_0x5a3a5c){return a0_0x4eb5f7(_0x5a3a5c);}exports['useMRQuery']=a0_0x27fb18;class a0_0x2f2f2e{['_head'];['_parent'];['_loading']=()=>{};['_loaded']=()=>{};['_error']=()=>{};['_func']=()=>null;constructor(_0x521610){this['_head']=_0x521610;}['parent'](_0x460170){this['_parent']=_0x460170;}['func'](_0x130369){return this['_func']=_0x130369,this;}['loading'](_0x88c919){return this['_loading']=_0x88c919,this;}['loaded'](_0xc685da){return this['_loaded']=_0xc685da,this;}['error'](_0x5ed0e3){return this['_error']=_0x5ed0e3,this;}['next'](){return new a0_0x23ba77(this['_head']?this['_head']:this,this);}async['run'](_0x40f766){try{this['_loading']();const _0x194896=await this['_func'](_0x40f766);return this['_loaded'](_0x194896),Promise['resolve'](_0x194896);}catch(_0x1a92b1){return this['_error'](_0x1a92b1),Promise['reject'](_0x1a92b1);}}}Object['freeze'](a0_0x2f2f2e);class a0_0x23ba77{['_head'];['_parent'];constructor(_0x58136a,_0x160dc8){this['_head']=_0x58136a,this['_parent']=_0x160dc8;}async['run'](_0xe64454,_0x210cf1){const _0x54e2d2=await _0x210cf1['run'](_0xe64454);return!_0x210cf1['_parent']?_0x54e2d2:await this['run'](_0x54e2d2,_0x210cf1['_parent']);}async['go'](){return await this['run'](null,this['_head']);}['add'](_0x171f5f){const _0x55745f=this['_head'],_0x106dd3=this['_parent'],_0x168e2c=new a0_0x2f2f2e(_0x55745f);_0x168e2c['func'](_0x171f5f),_0x106dd3?.['parent'](_0x168e2c);let _0x2eefbf=()=>{},_0x4cf3ed=()=>{},_0xcc51d7=()=>{};function _0x382b6b(){return _0x168e2c['next']();}function _0x3ad976(_0x123477){return _0x2eefbf=_0x123477,_0x168e2c['loading'](_0x2eefbf),_0x591d77;}function _0x165d3c(_0x2975db){return _0x4cf3ed=_0x2975db,_0x168e2c['loaded'](_0x4cf3ed),_0x591d77;}function _0x40f1c1(_0x283827){return _0xcc51d7=_0x283827,_0x168e2c['error'](_0xcc51d7),_0x591d77;}const _0x3b206c={};_0x3b206c['loading']=_0x3ad976,_0x3b206c['loaded']=_0x165d3c,_0x3b206c['error']=_0x40f1c1,_0x3b206c['next']=_0x382b6b;const _0x591d77=_0x3b206c;return _0x591d77;}}Object['freeze'](a0_0x23ba77);function a0_0x13ba42(_0x474eef){const _0x120ec2={};_0x120ec2['data']=_0x474eef;const _0x2a987a=a0_0x439997(_0x120ec2),_0x3e1afe=a0_0x29817d['useRef']({'query':new a0_0x23ba77()['add'](()=>null)['next']()});function _0x8a27e6(){return _0x3e1afe['current']['query']=new a0_0x23ba77()['add'](()=>null)['next'](),_0x3e1afe['current']['query'];}function _0x4586a7(){return _0x3e1afe['current']['query'];}async function _0x3c6b89(){try{const _0x363df2={};_0x363df2['data']=_0x474eef,_0x363df2['status']=a0_0x5182b0['LOADING'],_0x363df2['error']=undefined,_0x2a987a['setValue'](_0x363df2);const _0x561040=await _0x3e1afe['current']['query']['go']();_0x2a987a['setValue']({'data':_0x561040,'status':a0_0x5182b0['LOADED'],'error':undefined,'updateTime':new Date()['getTime'](),'loadTime':new Date()['getTime']()});}catch(_0x1f47f4){const _0x1f4909={};_0x1f4909['data']=_0x474eef,_0x1f4909['status']=a0_0x5182b0['ERROR'],_0x1f4909['error']=_0x1f47f4,_0x2a987a['setValue'](_0x1f4909);}}async function _0x2e732e(){try{const _0x5245ba=await _0x3e1afe['current']['query']['go']();_0x2a987a['setValue']({'data':_0x5245ba,'status':a0_0x5182b0['LOADED'],'error':undefined,'updateTime':new Date()['getTime'](),'loadTime':new Date()['getTime']()});}catch(_0x153c13){}}function _0x1cf928(_0xb38ce9){try{_0x2a987a['setValue'](_0x187350=>{let _0x3f920e;typeof _0xb38ce9==='function'?_0x3f920e=_0xb38ce9(_0x187350['data']):_0x3f920e=_0xb38ce9;const _0x11a0fd={..._0x187350,'data':_0x3f920e,'updateTime':new Date()['getTime']()};return _0x11a0fd;});}catch(_0x541d65){throw new Error('UNKNOWN');}}return Object['freeze']({'updateTime':_0x2a987a['value']['updateTime'],'loadTime':_0x2a987a['value']['loadTime'],'data':_0x2a987a['value']['data'],'status':_0x2a987a['value']['status'],'loading':_0x2a987a['value']['status']===a0_0x5182b0['LOADING'],'loaded':_0x2a987a['value']['status']===a0_0x5182b0['LOADED'],'error':_0x2a987a['value']['error'],'setValue':_0x3b167e=>_0x1cf928(_0x3b167e),'new':()=>_0x8a27e6(),'load':()=>_0x4586a7(),'go':()=>_0x3c6b89(),'goHidden':()=>_0x2e732e()});}function a0_0x365738(_0x1cc77d){return a0_0x13ba42(_0x1cc77d);}exports['useMSQuery']=a0_0x365738;function a0_0x2ddbee(_0x59e99f){return Promise['all'](_0x59e99f['map'](_0x573024=>_0x573024['then'](_0x5d8b72=>({'status':'fulfilled','value':_0x5d8b72}))['catch'](_0x21796e=>({'status':'rejected','reason':_0x21796e}))));}function a0_0x19ccde(_0xd50aad){return a0_0x2ddbee(_0xd50aad);}exports['allSettled']=a0_0x19ccde;var a0_0x441ca0;(function(_0x417ddb){_0x417ddb['READY']='READY',_0x417ddb['WAITING']='WAITING',_0x417ddb['SENDING']='SENDING',_0x417ddb['UPLOADED']='UPLOADED',_0x417ddb['ERROR']='ERROR',_0x417ddb['CANCELED']='CANCELED',_0x417ddb['COMPLETED']='COMPLETED',_0x417ddb['PAUSED']='PAUSED';}(a0_0x441ca0||(exports['UPLOAD_STATUS']=a0_0x441ca0={})),Object['freeze'](a0_0x441ca0));const a0_0x36a410=(..._0x38c6e1)=>console['log'](..._0x38c6e1);class a0_0x46cf88{['_file'];['_id']='';['_path']='';['_name']='';['_size']=0x0;['_type']='';['_mb']=0x0;['_kb']=0x0;['_time']=new Date()['getTime']();constructor(_0x3e4bd1){this['_file']=_0x3e4bd1,this['_name']=_0x3e4bd1['name'],this['_size']=_0x3e4bd1['size'],this['_type']=_0x3e4bd1['type'],this['_id']=a0_0x29ba02(),this['_path']=URL['createObjectURL'](_0x3e4bd1),this['_kb']=parseFloat((parseInt(_0x3e4bd1['size']['toFixed'](0x2))/0x400)['toFixed'](0x2)),this['_mb']=parseFloat((parseInt(_0x3e4bd1['size']['toFixed'](0x2))/(0x400*0x400))['toFixed'](0x2));}static['new'](_0x2f7b4f,_0x52dd6f){try{if(_0x52dd6f){const _0x4a8bbf=new a0_0x46cf88(_0x2f7b4f),_0x1d7216=_0x4a8bbf['_type']['split']('/')['length']>0x1?_0x4a8bbf['_type']['split']('/')[0x1]:_0x4a8bbf['_type'],_0x45ebd1={};_0x45ebd1['type']=_0x4a8bbf['_type'],_0x45ebd1['lastModified']=_0x4a8bbf['_file']['lastModified'];const _0x123c1e=new File([_0x2f7b4f],_0x52dd6f+'.'+_0x1d7216,_0x45ebd1);return new a0_0x46cf88(_0x123c1e);}return new a0_0x46cf88(_0x2f7b4f);}catch(_0x3774f0){}}['info'](){const _0x44417a={};return _0x44417a['id']=this['_id'],_0x44417a['name']=this['_name'],_0x44417a['size']=this['_size'],_0x44417a['type']=this['_type'],_0x44417a['path']=this['_path'],_0x44417a['kb']=this['_kb'],_0x44417a['mb']=this['_mb'],_0x44417a['time']=this['_time'],_0x44417a;}}Object['freeze'](a0_0x46cf88);class a0_0x186f0d{['file'];['url'];['headers'];['status']=a0_0x441ca0['READY'];['percent']=0x0;['xhrInstance'];['listener'];['setStatus'](_0x4f68e2){this['status']=_0x4f68e2,this['listener']['invokeStatus'](this['status']);}['setPercent'](_0x5d5366){this['percent']=_0x5d5366,this['listener']['invokePercent'](this['percent']);}['getStatus'](){return this['status'];}['getPercent'](){return this['percent'];}['fileInfo'](){return this['file']['info']();}['setListener'](_0x3e1bc5){this['listener']=_0x3e1bc5;}['setFile'](_0x5a37ee,_0x4e4212){this['file']=a0_0x46cf88['new'](_0x5a37ee,_0x4e4212);}['setUrl'](_0x409f01){this['url']=_0x409f01;}['setHeader'](_0x3d3a32){this['headers']=_0x3d3a32;}['isFile'](){if(!this['file'])return'no_file';return!![];}['isValid'](){if(!this['file'])return'no_file';if(!this['url'])return'no_url';return!![];}['upload'](){this['xhrInstance']=new XMLHttpRequest();const _0x4d4c8f=this['xhrInstance'];if(!('withCredentials'in _0x4d4c8f)){this['setStatus'](a0_0x441ca0['ERROR']);return;}_0x4d4c8f['onreadystatechange']=()=>{_0x4d4c8f['readyState']===0x4&&(_0x4d4c8f['status']===0xc8||_0x4d4c8f['status']===0xc9?(a0_0x36a410('File\x20Upload\x20ENDED'),this['setStatus'](a0_0x441ca0['UPLOADED'])):(a0_0x36a410('File\x20Upload\x20ERROR'),this['setStatus'](a0_0x441ca0['ERROR'])));},_0x4d4c8f['upload']['onprogress']=_0x543d49=>{this['setStatus'](a0_0x441ca0['SENDING']),this['setPercent'](Math['round'](_0x543d49['loaded']/_0x543d49['total']*0x64));},_0x4d4c8f['upload']['onerror']=_0x39268e=>{a0_0x36a410('File\x20Upload\x20ERROR'),_0x4d4c8f['abort'](),this['setStatus'](a0_0x441ca0['ERROR']);},_0x4d4c8f['upload']['ontimeout']=_0x34a74a=>{a0_0x36a410('File\x20Upload\x20TimeOut'),_0x4d4c8f['abort'](),this['setStatus'](a0_0x441ca0['ERROR']);},_0x4d4c8f['open']('PUT',this['url'],!![]);const _0x3c40f6=this['headers']||{};Object['keys'](_0x3c40f6)['forEach'](_0x5470d7=>{_0x4d4c8f['setRequestHeader'](_0x5470d7,_0x3c40f6[_0x5470d7]);}),_0x4d4c8f['setRequestHeader']('Content-Type',this['file']['_type']),_0x4d4c8f['send'](this['file']['_file']);}['cancel'](){this['setStatus'](a0_0x441ca0['CANCELED']),this['xhrInstance']&&this['xhrInstance']['abort']();}}Object['freeze'](a0_0x186f0d);class a0_0x2af7c1{['_listenStatus']={};['_listenPercent']={};['_fu'];['percentIdle']=0xfa;['statusIdle']=0xfa;['percentIdleT'];['statusIdleT'];constructor(_0x58802c){this['_fu']=_0x58802c;}['idle'](_0x5dd527,_0x588c12){this['percentIdle']=Number(_0x5dd527)||0xfa,this['statusIdle']=Number(_0x588c12)||0xfa;}['status'](_0x3c35cd){const _0x536205=a0_0x29ba02();this['_listenStatus'][_0x536205]=_0x3c35cd;const _0x486f35=()=>{delete this['_listenStatus'][_0x536205];};return _0x486f35;}['percent'](_0x26ec88){const _0x33abda=a0_0x29ba02();this['_listenPercent'][_0x33abda]=_0x26ec88;const _0x3e09af=()=>{delete this['_listenPercent'][_0x33abda];};return _0x3e09af;}['invokeStatus'](_0x1e6eae){!this['statusIdleT']&&(this['statusIdleT']=setTimeout(()=>{Object['keys'](this['_listenStatus'])['forEach'](_0x3ba598=>{this['_listenStatus'][_0x3ba598](_0x1e6eae);}),this['statusIdleT']=null;},this['statusIdle']));}['invokePercent'](_0x12ec33){!this['percentIdleT']&&(this['percentIdleT']=setTimeout(()=>{Object['keys'](this['_listenPercent'])['forEach'](_0x5e299a=>{this['_listenPercent'][_0x5e299a](_0x12ec33);}),this['percentIdleT']=null;},this['percentIdle']));}['next'](){return this['_fu'];}}Object['freeze'](a0_0x2af7c1);class a0_0x452bc5{['upload']=new a0_0x186f0d();['listen']=new a0_0x2af7c1(this);constructor(){this['upload']['setListener'](this['listen']);}static['new'](){return new a0_0x452bc5();}get['status'](){return this['upload']['getStatus']();}get['percent'](){return this['upload']['getPercent']();}['preview'](){return this['upload']['fileInfo']()['path'];}['info'](){return this['upload']['fileInfo']();}['file'](_0x1073bd,_0x13d255){return this['upload']['setFile'](_0x1073bd,_0x13d255),this;}['url'](_0x4f2251){return this['upload']['setUrl'](_0x4f2251),this;}['header'](_0x589647){return this['upload']['setHeader'](_0x589647),this;}['idle'](_0x1270b2,_0x332ea3){return this['idle'](_0x1270b2,_0x332ea3),this;}['listener'](){return{'status':_0x27174a=>this['listen']['status'](_0x27174a),'percent':_0x1d1d2b=>this['listen']['percent'](_0x1d1d2b),'next':()=>this['listen']['next']()};}['start'](){try{if(!this['upload']['isValid']())return this['upload']['isValid']();this['upload']['upload']();}catch(_0x3a58f8){return'UNKNOWN_ERROR';}return this;}['stop'](){try{this['upload']['cancel']();}catch(_0x271867){return'UNKNOWN_ERROR';}return this;}}exports['FileUplader']=a0_0x452bc5,Object['freeze'](a0_0x452bc5);const a0_0x3889db=((()=>{function _0x4825fa(_0x1fbec7){try{return _0x1fbec7['files'][0x0];}catch(_0x3f44e4){console['log']('UNKNOWN_ERROR');}}function _0x3caab2(_0x249932){return _0x4825fa(document['querySelector'](_0x249932));}function _0x1e35f3(_0x42b37b){return _0x4825fa(_0x42b37b);}function _0x56a43a(_0x576f2a){return _0x3caab2('input[name='+_0x576f2a+']');}function _0x28122e(_0xc873ae){return a0_0x46cf88['new'](_0xc873ae);}const _0x1a4a98={};return _0x1a4a98['byW3i']=_0x3caab2,_0x1a4a98['byName']=_0x56a43a,_0x1a4a98['byElement']=_0x1e35f3,_0x1a4a98['fileInfo']=_0x28122e,_0x1a4a98;})());Object['freeze'](a0_0x3889db),exports['upHelper']=a0_0x3889db;function a0_0x2f3ad8(){const _0x5919c1=a0_0x29817d['useRef'](a0_0x452bc5['new']()),[_0x4b7a4e,_0x242b9b]=a0_0x29817d['useState']();return a0_0x29817d['useEffect'](()=>{const _0x423584=_0x5919c1['current']['listener']()['percent'](()=>{_0x242b9b(new Date()['getTime']());}),_0x1ccc41=_0x5919c1['current']['listener']()['status'](()=>{_0x242b9b(new Date()['getTime']());});return()=>{_0x423584(),_0x1ccc41();};},[]),_0x5919c1['current'];}function a0_0x2f1fff(){return a0_0x2f3ad8();}exports['useFileUplader']=a0_0x2f1fff;async function a0_0x3784bb(_0x2e8e4c){try{const _0x5c4d52=await _0x2e8e4c;return[_0x5c4d52,null];}catch(_0x50127a){return[null,_0x50127a];}}exports['safePromise']=a0_0x3784bb;const a0_0x2b8a5a=()=>{},a0_0x3e7d82=()=>{},a0_0x494cef=()=>{};