yunlin 1.0.41 → 1.0.44

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 CHANGED
@@ -1 +1 @@
1
- (function(_0x1a053a,_0x4f767b){var _0xf0523e=a0_0x5b6b,_0x40684e=_0x1a053a();while(!![]){try{var _0x1bea41=parseInt(_0xf0523e(0x1ea))/0x1+-parseInt(_0xf0523e(0x1ee))/0x2*(-parseInt(_0xf0523e(0x1eb))/0x3)+-parseInt(_0xf0523e(0x1ef))/0x4+parseInt(_0xf0523e(0x1ec))/0x5+-parseInt(_0xf0523e(0x1ed))/0x6+parseInt(_0xf0523e(0x1f1))/0x7*(parseInt(_0xf0523e(0x1f2))/0x8)+-parseInt(_0xf0523e(0x1f3))/0x9*(parseInt(_0xf0523e(0x1f0))/0xa);if(_0x1bea41===_0x4f767b)break;else _0x40684e['push'](_0x40684e['shift']());}catch(_0x9c5c32){_0x40684e['push'](_0x40684e['shift']());}}}(a0_0x2c5d,0x9b2df));import a0_0x595c10 from'./utils';import a0_0xb2a914 from'./price';import a0_0x10aeae from'./test';function a0_0x5b6b(_0x4e8da1,_0x56a6bd){var _0x2c5d38=a0_0x2c5d();return a0_0x5b6b=function(_0x5b6bde,_0x27e182){_0x5b6bde=_0x5b6bde-0x1ea;var _0x3a1df2=_0x2c5d38[_0x5b6bde];return _0x3a1df2;},a0_0x5b6b(_0x4e8da1,_0x56a6bd);}import a0_0x524644 from'./room';import a0_0x5eafb8 from'./roomOld';function a0_0x2c5d(){var _0x1899da=['184530QoKTAp','14lcQnVK','4666648IYLgLp','747gowPVG','595706tTXBYU','63UdTFLU','5441835VmBfDp','6298206stSbIj','120716hOnITR','3605352VOahHK'];a0_0x2c5d=function(){return _0x1899da;};return a0_0x2c5d();}export default{'test':a0_0x10aeae,'utils':a0_0x595c10,'price':a0_0xb2a914,'room':a0_0x524644,'roomOld':a0_0x5eafb8};
1
+ (function(_0x5be23c,_0x457a40){var _0x4faf37=a0_0x1c9e,_0x30bba5=_0x5be23c();while(!![]){try{var _0x52b648=-parseInt(_0x4faf37(0x171))/0x1+parseInt(_0x4faf37(0x176))/0x2+-parseInt(_0x4faf37(0x170))/0x3*(-parseInt(_0x4faf37(0x177))/0x4)+parseInt(_0x4faf37(0x178))/0x5*(-parseInt(_0x4faf37(0x173))/0x6)+-parseInt(_0x4faf37(0x172))/0x7+-parseInt(_0x4faf37(0x175))/0x8+-parseInt(_0x4faf37(0x174))/0x9*(-parseInt(_0x4faf37(0x179))/0xa);if(_0x52b648===_0x457a40)break;else _0x30bba5['push'](_0x30bba5['shift']());}catch(_0x42e353){_0x30bba5['push'](_0x30bba5['shift']());}}}(a0_0xdc3e,0x1c52e));import a0_0x1e6412 from'./utils';import a0_0x2c3c48 from'./price';import a0_0x3b6be3 from'./test';function a0_0x1c9e(_0x10ad85,_0xaefa21){var _0xdc3e3e=a0_0xdc3e();return a0_0x1c9e=function(_0x1c9efa,_0x4f1911){_0x1c9efa=_0x1c9efa-0x170;var _0x1c52b4=_0xdc3e3e[_0x1c9efa];return _0x1c52b4;},a0_0x1c9e(_0x10ad85,_0xaefa21);}function a0_0xdc3e(){var _0x495860=['52970SvZprk','3zRqbKi','34985LGjieC','599130FxJdFm','6svCLba','387eCjmLX','1781928zrNroT','413402eytvxs','508376VEPIty','511180gDoXHn'];a0_0xdc3e=function(){return _0x495860;};return a0_0xdc3e();}import a0_0x35dda3 from'./room';import a0_0xe8d378 from'./roomOld';import a0_0xde6b76 from'./system';export default{'test':a0_0x3b6be3,'utils':a0_0x1e6412,'price':a0_0x2c3c48,'room':a0_0x35dda3,'roomOld':a0_0xe8d378,'system':a0_0xde6b76};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2881be,_0x20fa97){const _0xc2567b=a1_0x4f75,_0x2b40f0=_0x2881be();while(!![]){try{const _0x1ad126=parseInt(_0xc2567b(0x1cf))/0x1*(parseInt(_0xc2567b(0x1ef))/0x2)+parseInt(_0xc2567b(0x1cc))/0x3+-parseInt(_0xc2567b(0x1e0))/0x4+parseInt(_0xc2567b(0x1f2))/0x5+-parseInt(_0xc2567b(0x1d1))/0x6+-parseInt(_0xc2567b(0x1f5))/0x7*(-parseInt(_0xc2567b(0x1d8))/0x8)+-parseInt(_0xc2567b(0x1bf))/0x9;if(_0x1ad126===_0x20fa97)break;else _0x2b40f0['push'](_0x2b40f0['shift']());}catch(_0x462b6f){_0x2b40f0['push'](_0x2b40f0['shift']());}}}(a1_0x4580,0xf3ecd));function a1_0x4580(){const _0x2e5fc7=['object','basechildprice','push','vipdiscounted','遊客優惠','num','2988188Vmvhcl','reduction','users','tipday','other','list','會員減免','promotion','name','childprice','warn','trim','totalprice','vip','itemname','342ZDXVlt','keys','strJgbm','9817275CbYVdf','tipuser','forEach','14eeGhXm','viprecharge','child','includes','isShowTip','adultprice','\x20*\x20','unit','baseprice','baseadultprice','price','split','airtax','ftd\x20函数接收到无效的数字输入:\x20','adultnum','fLsjUnit','service','totaltax','childnum','strLx','elder','length','tip','保險費用','unitpricewb','8426988SSqsKo','people','point','error','money','\x0a\x09\x09\x09正确参数:','rylx','base','unitprice','兒童[占床]','stringify','insure','map','789468izERZx','人員費用','number','3358gvFtHN','附加行程','6787890uWlQka','hasOwnProperty','tax','會員充值','floor','filter','優惠券','4051928pEMEUL','trip'];a1_0x4580=function(){return _0x2e5fc7;};return a1_0x4580();}function handleCosting(_0x38378d,_0x4fc1e6='',_0x168609={},_0x3e7ef6,_0x305438){const _0x494973=a1_0x4f75;let _0x5894ac=[];const _0x5d87c9=_0x494973(0x1fb),_0x358077={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x168609=typeof _0x168609===_0x494973(0x1da)&&!Array['isArray'](_0x168609)&&_0x168609!==null?_0x168609:{};const _0x4604b3={..._0x358077,..._0x168609},_0x30dda9=Object[_0x494973(0x1f0)](_0x358077);Object[_0x494973(0x1f0)](_0x168609)[_0x494973(0x1f4)](_0x1b10c7=>{const _0x471441=_0x494973;!_0x30dda9[_0x471441(0x1f8)](_0x1b10c7)&&console[_0x471441(0x1ea)]('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x1b10c7);});let _0x272fbc=_0x4604b3['couponSign']||'-',_0x3c635f=_0x4604b3['dp']||0x2;const _0xf5b934=(_0x3445f8,_0x169de0=_0x3c635f)=>{const _0x37755d=_0x494973;if(typeof _0x3445f8!==_0x37755d(0x1ce)&&isNaN(Number(_0x3445f8)))return console[_0x37755d(0x1c2)](_0x37755d(0x1b3)+_0x3445f8),_0x3445f8;if(isNaN(_0x169de0)||_0x169de0<0x0)return _0x3445f8;let _0xb212e2=Number(_0x3445f8);if(!isFinite(_0xb212e2))return _0x3445f8;return _0x169de0=Math['max'](0x0,Math[_0x37755d(0x1d5)](_0x169de0)),_0xb212e2['toFixed'](_0x169de0);},_0x4b1e0e=(_0x107563,_0x2a33b6)=>{const _0xf72ca4=_0x494973;if(_0x2a33b6&&typeof _0x2a33b6===_0xf72ca4(0x1da)&&!Array['isArray'](_0x2a33b6))for(const _0x1a1dbf in _0x107563){_0x107563['hasOwnProperty'](_0x1a1dbf)&&_0x2a33b6[_0xf72ca4(0x1d2)](_0x1a1dbf)&&(_0x107563[_0x1a1dbf]=_0x2a33b6[_0x1a1dbf]);}else console[_0xf72ca4(0x1c2)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0xf72ca4(0x1c9)](_0x2a33b6,null,0x2)+_0xf72ca4(0x1c4)+JSON['stringify'](_0x107563,null,0x2))[_0xf72ca4(0x1eb)]());return _0x107563;};let _0x19e8bd={'people':_0x494973(0x1cd),'service':'附加服務','trip':_0x494973(0x1d0),'other':'其他費用','reduction':'減免費用','totalprice':'總計','airtax':'機場稅'},_0x59f307={'adult':'成人','child':'兒童','childusebed':_0x494973(0x1c8),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x494973(0x1de),'vip':_0x494973(0x1e6),'promotion':'促銷','insure':_0x494973(0x1bd),'coupon':_0x494973(0x1d7),'point':'積分','tax':'稅金','viprecharge':_0x494973(0x1d4),'r':'人','t':'天'};_0x19e8bd=_0x4b1e0e(_0x19e8bd,_0x3e7ef6),_0x59f307=_0x4b1e0e(_0x59f307,_0x305438);const _0x1caf5c=_0x38378d['filter'](_0x1755b9=>_0x1755b9[_0x494973(0x1b9)]==_0x494973(0x1c6));if(_0x1caf5c[_0x494973(0x1bb)]){let _0x3647cb={'title':_0x19e8bd[_0x494973(0x1c0)],'type':_0x494973(0x1c6),'list':[]};_0x1caf5c[_0x494973(0x1cb)](_0x2dffc1=>{const _0x2cef4f=_0x494973;_0x3647cb[_0x2cef4f(0x1e5)][_0x2cef4f(0x1dc)]({'title':_0x59f307[_0x2dffc1[_0x2cef4f(0x1f1)]],'info':_0x4fc1e6+_0xf5b934(_0x2dffc1[_0x2cef4f(0x1b5)])+_0x5d87c9+_0x2dffc1['nRs'],'nRs':_0x2dffc1['nRs'],'unit':_0x2dffc1[_0x2cef4f(0x1b5)],'cb':_0x2dffc1['fJcbzlsjUnit'],'type':_0x2cef4f(0x1c6)});}),_0x5894ac[_0x494973(0x1dc)](_0x3647cb);}const _0x22ba36=_0x38378d[_0x494973(0x1d6)](_0x17dde9=>_0x17dde9['strLx']==_0x494973(0x1b6));if(_0x22ba36[_0x494973(0x1bb)]){let _0x322bb5={'title':_0x19e8bd['service'],'type':_0x494973(0x1b6),'list':[]};_0x22ba36[_0x494973(0x1cb)](_0x2d0ad1=>{const _0x25d8e4=_0x494973;_0x322bb5['list']['push']({'title':_0x2d0ad1['name']+('['+_0x2d0ad1[_0x25d8e4(0x1ee)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x2d0ad1[_0x25d8e4(0x1c7)])+_0x5d87c9+_0x2d0ad1['num'],'nRs':_0x2d0ad1[_0x25d8e4(0x1df)],'unit':_0x2d0ad1[_0x25d8e4(0x1c7)],'cb':_0x2d0ad1[_0x25d8e4(0x1fd)],'type':'service'});}),_0x5894ac[_0x494973(0x1dc)](_0x322bb5);}const _0xdd0193=_0x38378d[_0x494973(0x1d6)](_0x2cf641=>_0x2cf641[_0x494973(0x1b9)]==_0x494973(0x1d9));if(_0xdd0193[_0x494973(0x1bb)]){let _0x471aac={'title':_0x19e8bd[_0x494973(0x1d9)],'type':_0x494973(0x1d9),'list':[]};_0xdd0193['map'](_0x366b52=>{const _0x213dd0=_0x494973;_0x366b52[_0x213dd0(0x1b4)]!='0'&&_0x471aac[_0x213dd0(0x1e5)][_0x213dd0(0x1dc)]({'title':_0x366b52[_0x213dd0(0x1e8)]+('['+_0x59f307['adult']+']'),'info':_0x4fc1e6+_0xf5b934(_0x366b52[_0x213dd0(0x1fa)])+_0x5d87c9+_0x366b52['adultnum'],'nRs':_0x366b52['adultnum'],'unit':_0x366b52['adultprice'],'cb':_0x366b52[_0x213dd0(0x1fe)],'type':'trip'}),_0x366b52[_0x213dd0(0x1b8)]!='0'&&_0x471aac[_0x213dd0(0x1e5)][_0x213dd0(0x1dc)]({'title':_0x366b52[_0x213dd0(0x1e8)]+('['+_0x59f307[_0x213dd0(0x1f7)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x366b52['childprice'])+_0x5d87c9+_0x366b52['childnum'],'nRs':_0x366b52[_0x213dd0(0x1b8)],'unit':_0x366b52[_0x213dd0(0x1e9)],'cb':_0x366b52[_0x213dd0(0x1db)],'type':_0x213dd0(0x1d9)});}),_0x5894ac[_0x494973(0x1dc)](_0x471aac);}let _0x1c58e6=[];const _0x100141=_0x38378d[_0x494973(0x1d6)](_0x2bfbb1=>_0x2bfbb1[_0x494973(0x1b9)]==_0x494973(0x1ba));_0x100141[_0x494973(0x1bb)]&&_0x100141[_0x494973(0x1cb)](_0x22cf6d=>{const _0x20f448=_0x494973,_0x3f9fb2=_0x22cf6d[_0x20f448(0x1e8)][_0x20f448(0x1b1)]('|')||[''];_0x1c58e6[_0x20f448(0x1dc)]({'title':_0x59f307[_0x20f448(0x1ba)]+('['+_0x3f9fb2[0x0]+']'),'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x22cf6d[_0x20f448(0x1c3)]),'unit':_0x22cf6d[_0x20f448(0x1c3)],'cb':_0x22cf6d[_0x20f448(0x1c3)],'type':_0x20f448(0x1ba)});});const _0x4303bd=_0x38378d[_0x494973(0x1d6)](_0x4931b8=>_0x4931b8[_0x494973(0x1b9)]==_0x494973(0x1dd));_0x4303bd[_0x494973(0x1bb)]&&_0x4303bd[_0x494973(0x1cb)](_0x5fd3e1=>{const _0x3a6579=_0x494973;_0x1c58e6[_0x3a6579(0x1dc)]({'title':_0x59f307['vip']+('['+_0x5fd3e1[_0x3a6579(0x1e8)]+']'),'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x5fd3e1[_0x3a6579(0x1c3)]),'unit':_0x5fd3e1[_0x3a6579(0x1c3)],'cb':_0x5fd3e1[_0x3a6579(0x1c3)],'type':_0x3a6579(0x1ed)});});const _0x8c194a=_0x38378d[_0x494973(0x1d6)](_0x3b86a6=>_0x3b86a6[_0x494973(0x1b9)]==_0x494973(0x1e7));_0x8c194a[_0x494973(0x1bb)]&&_0x8c194a[_0x494973(0x1cb)](_0x3d13d0=>{const _0xbdc3b9=_0x494973;_0x1c58e6[_0xbdc3b9(0x1dc)]({'title':_0x59f307[_0xbdc3b9(0x1e7)],'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x3d13d0['money']),'unit':_0x3d13d0['money'],'cb':_0x3d13d0[_0xbdc3b9(0x1c3)],'type':'promotion'});});_0x1c58e6[_0x494973(0x1bb)]&&_0x5894ac[_0x494973(0x1dc)]({'title':_0x19e8bd[_0x494973(0x1e1)],'type':_0x494973(0x1e1),'list':_0x1c58e6});const _0x44d493=_0x38378d['filter'](_0x4a2181=>_0x4a2181[_0x494973(0x1b9)]==_0x494973(0x1b2));if(_0x44d493[_0x494973(0x1bb)]){let _0x2ed171={'title':_0x19e8bd[_0x494973(0x1b2)],'type':'airtax','list':[]};_0x44d493[_0x494973(0x1cb)](_0x19e721=>{const _0xf302e=_0x494973;_0x2ed171[_0xf302e(0x1e5)][_0xf302e(0x1dc)]({'title':_0x59f307[_0x19e721[_0xf302e(0x1c5)]],'info':_0x4fc1e6+_0xf5b934(_0x19e721[_0xf302e(0x1c7)])+_0x5d87c9+_0x19e721['sl'],'nRs':_0x19e721['sl'],'unit':_0x19e721[_0xf302e(0x1c7)],'cb':_0x19e721[_0xf302e(0x1be)],'type':_0x19e721[_0xf302e(0x1c5)]});}),_0x5894ac[_0x494973(0x1dc)](_0x2ed171);}const _0x26a23a=[_0x494973(0x1c6),_0x494973(0x1b6),_0x494973(0x1d9),_0x494973(0x1ba),_0x494973(0x1dd),'promotion',_0x494973(0x1b2)],_0x33cf28=_0x38378d[_0x494973(0x1d6)](_0x4d5e37=>!_0x26a23a[_0x494973(0x1f8)](_0x4d5e37['strLx']));let _0x181527={'title':_0x19e8bd[_0x494973(0x1e4)],'type':'other','list':[]};for(var _0x5a852c=0x0;_0x5a852c<_0x33cf28[_0x494973(0x1bb)];_0x5a852c++){const _0x351d45=_0x33cf28[_0x5a852c];_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1f6)&&_0x181527[_0x494973(0x1e5)][_0x494973(0x1dc)]({'title':_0x59f307[_0x494973(0x1f6)]+('['+_0x351d45[_0x494973(0x1e8)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x351d45[_0x494973(0x1c3)]),'unit':_0x351d45['money'],'type':_0x351d45[_0x494973(0x1b9)]}),_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1ca)&&_0x181527['list'][_0x494973(0x1dc)]({'title':_0x59f307[_0x494973(0x1ca)]+('['+_0x351d45[_0x494973(0x1e8)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x351d45['unit'])+_0x5d87c9+_0x351d45['users']+_0x59f307['r'],'nRs':_0x351d45[_0x494973(0x1e2)],'unit':_0x351d45['unit'],'cb':_0x351d45[_0x494973(0x1fc)],'type':_0x494973(0x1ca)}),(_0x351d45['strLx']=='coupon'||_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1c1))&&_0x181527[_0x494973(0x1e5)]['push']({'title':_0x59f307[_0x351d45['strLx']],'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x351d45[_0x494973(0x1c3)]),'unit':_0x351d45['money'],'type':_0x351d45[_0x494973(0x1b9)]}),_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1bc)&&_0x4604b3[_0x494973(0x1f9)]&&_0x181527[_0x494973(0x1e5)][_0x494973(0x1dc)]({'title':_0x59f307[_0x351d45[_0x494973(0x1b9)]],'info':_0x4fc1e6+_0xf5b934(_0x351d45[_0x494973(0x1bc)])+_0x5d87c9+_0x351d45[_0x494973(0x1f3)]+_0x59f307['r']+_0x5d87c9+_0x351d45[_0x494973(0x1e3)]+_0x59f307['t'],'nRs':_0x351d45['tipuser'],'count':_0x351d45[_0x494973(0x1e3)],'unit':_0x351d45[_0x494973(0x1bc)],'type':_0x351d45[_0x494973(0x1b9)]}),_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1d3)&&_0x181527[_0x494973(0x1e5)][_0x494973(0x1dc)]({'title':_0x59f307[_0x351d45[_0x494973(0x1b9)]],'info':_0x4fc1e6+_0xf5b934(_0x351d45['totaltax']),'unit':_0x351d45[_0x494973(0x1b7)],'type':_0x351d45[_0x494973(0x1b9)]});}_0x181527[_0x494973(0x1e5)]['length']&&_0x5894ac[_0x494973(0x1dc)](_0x181527);const _0x2430be=_0x38378d[_0x494973(0x1d6)](_0x5cd085=>_0x5cd085[_0x494973(0x1b9)]==_0x494973(0x1ec));return _0x2430be[_0x494973(0x1bb)]&&_0x5894ac[_0x494973(0x1dc)]({'title':_0x19e8bd[_0x494973(0x1ec)],'type':_0x494973(0x1ec),'list':[{'title':_0x19e8bd['totalprice'],'info':_0x4fc1e6+_0xf5b934(_0x2430be[0x0][_0x494973(0x1b0)])}]}),_0x5894ac;}function a1_0x4f75(_0x1908cc,_0x471f87){const _0x458095=a1_0x4580();return a1_0x4f75=function(_0x4f7581,_0x4d32f0){_0x4f7581=_0x4f7581-0x1b0;let _0xf7c145=_0x458095[_0x4f7581];return _0xf7c145;},a1_0x4f75(_0x1908cc,_0x471f87);}export default{'handleCosting':handleCosting};
1
+ function a1_0x2832(){const _0x5866eb=['減免費用','max','3126870Liirua','baseadultprice','tipuser','adult','other','rylx','vipdiscounted','object','4XfRVrC','\x0a\x09\x09\x09正确参数:','15115659wttMXH','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','viprecharge','20XuqFlt','elder','number','money','promotion','287aIjMti','forEach','strJgbm','附加行程','其他費用','isArray','map','unit','人員費用','baseprice','機場稅','adultnum','優惠券','floor','tip','fLsjUnit','keys','vip','15HpAchc','base','name','9469801NoBUTn','airtax','itemname','12TGxtmS','unitprice','reduction','service','stringify','price','split','223378TgNbqe','people','childprice','filter','list','push','tipday','tax','basechildprice','adultprice','276616jzWzIv','error','includes','insure','4218675TFfmKK','couponSign','point','ftd\x20函数接收到无效的数字输入:\x20','num','trim','trip','\x20*\x20','length','遊客優惠','totaltax','toFixed','users','strLx','childnum','12jauvmU','nRs','fJcbzlsjUnit','totalprice','會員充值','保險費用','isShowTip','unitpricewb','2913305SulTTP'];a1_0x2832=function(){return _0x5866eb;};return a1_0x2832();}function a1_0x9cd3(_0x505f6a,_0x505274){const _0x28329f=a1_0x2832();return a1_0x9cd3=function(_0x9cd30c,_0x4a78ac){_0x9cd30c=_0x9cd30c-0x168;let _0x3084c2=_0x28329f[_0x9cd30c];return _0x3084c2;},a1_0x9cd3(_0x505f6a,_0x505274);}(function(_0x5e2e7a,_0x140352){const _0xf69941=a1_0x9cd3,_0x3faf73=_0x5e2e7a();while(!![]){try{const _0x46a0aa=parseInt(_0xf69941(0x18f))/0x1*(-parseInt(_0xf69941(0x19c))/0x2)+parseInt(_0xf69941(0x1aa))/0x3*(parseInt(_0xf69941(0x173))/0x4)+parseInt(_0xf69941(0x168))/0x5*(-parseInt(_0xf69941(0x195))/0x6)+parseInt(_0xf69941(0x17d))/0x7*(parseInt(_0xf69941(0x1a6))/0x8)+parseInt(_0xf69941(0x16b))/0x9+-parseInt(_0xf69941(0x178))/0xa*(-parseInt(_0xf69941(0x192))/0xb)+-parseInt(_0xf69941(0x1b9))/0xc*(parseInt(_0xf69941(0x175))/0xd);if(_0x46a0aa===_0x140352)break;else _0x3faf73['push'](_0x3faf73['shift']());}catch(_0x41e32e){_0x3faf73['push'](_0x3faf73['shift']());}}}(a1_0x2832,0xd935e));function handleCosting(_0xfc0af8,_0x40e1b6='',_0x3352ec={},_0x1f2ca5,_0x459463){const _0x12a08d=a1_0x9cd3;let _0x446299=[];const _0x3eb2ae=_0x12a08d(0x1b1),_0x9b7336={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x3352ec=typeof _0x3352ec===_0x12a08d(0x172)&&!Array[_0x12a08d(0x182)](_0x3352ec)&&_0x3352ec!==null?_0x3352ec:{};const _0x1a9a61={..._0x9b7336,..._0x3352ec},_0x43d22a=Object[_0x12a08d(0x18d)](_0x9b7336);Object['keys'](_0x3352ec)[_0x12a08d(0x17e)](_0x2f30a6=>{const _0x45af1a=_0x12a08d;!_0x43d22a[_0x45af1a(0x1a8)](_0x2f30a6)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x2f30a6);});let _0x4ca52b=_0x1a9a61[_0x12a08d(0x1ab)]||'-',_0x5e518f=_0x1a9a61['dp']||0x2;const _0x9ee8bb=(_0x57eeee,_0x3b2203=_0x5e518f)=>{const _0x5888af=_0x12a08d;if(typeof _0x57eeee!==_0x5888af(0x17a)&&isNaN(Number(_0x57eeee)))return console[_0x5888af(0x1a7)](_0x5888af(0x1ad)+_0x57eeee),_0x57eeee;if(isNaN(_0x3b2203)||_0x3b2203<0x0)return _0x57eeee;let _0x213c25=Number(_0x57eeee);if(!isFinite(_0x213c25))return _0x57eeee;return _0x3b2203=Math[_0x5888af(0x16a)](0x0,Math[_0x5888af(0x18a)](_0x3b2203)),_0x213c25[_0x5888af(0x1b5)](_0x3b2203);},_0x44ce0b=(_0x517cd3,_0xe1baa7)=>{const _0x17b1b6=_0x12a08d;if(_0xe1baa7&&typeof _0xe1baa7==='object'&&!Array[_0x17b1b6(0x182)](_0xe1baa7))for(const _0x373ff7 in _0x517cd3){_0x517cd3['hasOwnProperty'](_0x373ff7)&&_0xe1baa7['hasOwnProperty'](_0x373ff7)&&(_0x517cd3[_0x373ff7]=_0xe1baa7[_0x373ff7]);}else console[_0x17b1b6(0x1a7)]((_0x17b1b6(0x176)+JSON[_0x17b1b6(0x199)](_0xe1baa7,null,0x2)+_0x17b1b6(0x174)+JSON[_0x17b1b6(0x199)](_0x517cd3,null,0x2))[_0x17b1b6(0x1af)]());return _0x517cd3;};let _0xdc7df={'people':_0x12a08d(0x185),'service':'附加服務','trip':_0x12a08d(0x180),'other':_0x12a08d(0x181),'reduction':_0x12a08d(0x169),'totalprice':'總計','airtax':_0x12a08d(0x187)},_0x875e66={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x12a08d(0x1b3),'vip':'會員減免','promotion':'促銷','insure':_0x12a08d(0x1be),'coupon':_0x12a08d(0x189),'point':'積分','tax':'稅金','viprecharge':_0x12a08d(0x1bd),'r':'人','t':'天'};_0xdc7df=_0x44ce0b(_0xdc7df,_0x1f2ca5),_0x875e66=_0x44ce0b(_0x875e66,_0x459463);const _0xee7fd=_0xfc0af8[_0x12a08d(0x19f)](_0x274b7b=>_0x274b7b[_0x12a08d(0x1b7)]==_0x12a08d(0x190));if(_0xee7fd['length']){let _0x2dc2c0={'title':_0xdc7df[_0x12a08d(0x19d)],'type':_0x12a08d(0x190),'list':[]};_0xee7fd[_0x12a08d(0x183)](_0x453d83=>{const _0x2f0915=_0x12a08d;_0x2dc2c0[_0x2f0915(0x1a0)]['push']({'title':_0x875e66[_0x453d83[_0x2f0915(0x17f)]],'info':_0x40e1b6+_0x9ee8bb(_0x453d83['fLsjUnit'])+_0x3eb2ae+_0x453d83[_0x2f0915(0x1ba)],'nRs':_0x453d83[_0x2f0915(0x1ba)],'unit':_0x453d83[_0x2f0915(0x18c)],'cb':_0x453d83[_0x2f0915(0x1bb)],'type':_0x2f0915(0x190)});}),_0x446299[_0x12a08d(0x1a1)](_0x2dc2c0);}const _0x105f20=_0xfc0af8[_0x12a08d(0x19f)](_0x438cda=>_0x438cda[_0x12a08d(0x1b7)]==_0x12a08d(0x198));if(_0x105f20[_0x12a08d(0x1b2)]){let _0x3e7a01={'title':_0xdc7df[_0x12a08d(0x198)],'type':_0x12a08d(0x198),'list':[]};_0x105f20[_0x12a08d(0x183)](_0x56aa2a=>{const _0x4fc6bf=_0x12a08d;_0x3e7a01[_0x4fc6bf(0x1a0)][_0x4fc6bf(0x1a1)]({'title':_0x56aa2a['name']+('['+_0x56aa2a[_0x4fc6bf(0x194)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x56aa2a[_0x4fc6bf(0x196)])+_0x3eb2ae+_0x56aa2a[_0x4fc6bf(0x1ae)],'nRs':_0x56aa2a['num'],'unit':_0x56aa2a['unitprice'],'cb':_0x56aa2a[_0x4fc6bf(0x186)],'type':_0x4fc6bf(0x198)});}),_0x446299[_0x12a08d(0x1a1)](_0x3e7a01);}const _0x176b75=_0xfc0af8[_0x12a08d(0x19f)](_0x497ddf=>_0x497ddf[_0x12a08d(0x1b7)]=='trip');if(_0x176b75[_0x12a08d(0x1b2)]){let _0x4829d6={'title':_0xdc7df[_0x12a08d(0x1b0)],'type':_0x12a08d(0x1b0),'list':[]};_0x176b75[_0x12a08d(0x183)](_0x11553e=>{const _0x5dfc3b=_0x12a08d;_0x11553e[_0x5dfc3b(0x188)]!='0'&&_0x4829d6[_0x5dfc3b(0x1a0)][_0x5dfc3b(0x1a1)]({'title':_0x11553e[_0x5dfc3b(0x191)]+('['+_0x875e66[_0x5dfc3b(0x16e)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x11553e[_0x5dfc3b(0x1a5)])+_0x3eb2ae+_0x11553e[_0x5dfc3b(0x188)],'nRs':_0x11553e['adultnum'],'unit':_0x11553e['adultprice'],'cb':_0x11553e[_0x5dfc3b(0x16c)],'type':_0x5dfc3b(0x1b0)}),_0x11553e[_0x5dfc3b(0x1b8)]!='0'&&_0x4829d6[_0x5dfc3b(0x1a0)][_0x5dfc3b(0x1a1)]({'title':_0x11553e[_0x5dfc3b(0x191)]+('['+_0x875e66['child']+']'),'info':_0x40e1b6+_0x9ee8bb(_0x11553e[_0x5dfc3b(0x19e)])+_0x3eb2ae+_0x11553e['childnum'],'nRs':_0x11553e['childnum'],'unit':_0x11553e['childprice'],'cb':_0x11553e[_0x5dfc3b(0x1a4)],'type':'trip'});}),_0x446299['push'](_0x4829d6);}let _0x580514=[];const _0x4afa93=_0xfc0af8['filter'](_0x4af91c=>_0x4af91c[_0x12a08d(0x1b7)]==_0x12a08d(0x179));_0x4afa93['length']&&_0x4afa93[_0x12a08d(0x183)](_0x8e517e=>{const _0x33ab35=_0x12a08d,_0x4e9e63=_0x8e517e[_0x33ab35(0x191)][_0x33ab35(0x19b)]('|')||[''];_0x580514[_0x33ab35(0x1a1)]({'title':_0x875e66[_0x33ab35(0x179)]+('['+_0x4e9e63[0x0]+']'),'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x8e517e['money']),'unit':_0x8e517e[_0x33ab35(0x17b)],'cb':_0x8e517e[_0x33ab35(0x17b)],'type':_0x33ab35(0x179)});});const _0x145ea6=_0xfc0af8[_0x12a08d(0x19f)](_0x53af37=>_0x53af37[_0x12a08d(0x1b7)]==_0x12a08d(0x171));_0x145ea6[_0x12a08d(0x1b2)]&&_0x145ea6[_0x12a08d(0x183)](_0x3ef6d9=>{const _0x31e811=_0x12a08d;_0x580514[_0x31e811(0x1a1)]({'title':_0x875e66['vip']+('['+_0x3ef6d9[_0x31e811(0x191)]+']'),'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x3ef6d9[_0x31e811(0x17b)]),'unit':_0x3ef6d9[_0x31e811(0x17b)],'cb':_0x3ef6d9[_0x31e811(0x17b)],'type':_0x31e811(0x18e)});});const _0x28806c=_0xfc0af8[_0x12a08d(0x19f)](_0x9b62b9=>_0x9b62b9[_0x12a08d(0x1b7)]=='promotion');_0x28806c[_0x12a08d(0x1b2)]&&_0x28806c['map'](_0xb8e5e0=>{const _0x7c86d0=_0x12a08d;_0x580514['push']({'title':_0x875e66['promotion'],'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0xb8e5e0[_0x7c86d0(0x17b)]),'unit':_0xb8e5e0[_0x7c86d0(0x17b)],'cb':_0xb8e5e0[_0x7c86d0(0x17b)],'type':_0x7c86d0(0x17c)});});_0x580514[_0x12a08d(0x1b2)]&&_0x446299[_0x12a08d(0x1a1)]({'title':_0xdc7df[_0x12a08d(0x197)],'type':'reduction','list':_0x580514});const _0x55f95d=_0xfc0af8[_0x12a08d(0x19f)](_0x511e5c=>_0x511e5c[_0x12a08d(0x1b7)]=='airtax');if(_0x55f95d[_0x12a08d(0x1b2)]){let _0xb14bfb={'title':_0xdc7df[_0x12a08d(0x193)],'type':'airtax','list':[]};_0x55f95d[_0x12a08d(0x183)](_0x34972d=>{const _0x277b00=_0x12a08d;_0xb14bfb[_0x277b00(0x1a0)][_0x277b00(0x1a1)]({'title':_0x875e66[_0x34972d[_0x277b00(0x170)]],'info':_0x40e1b6+_0x9ee8bb(_0x34972d['unitprice'])+_0x3eb2ae+_0x34972d['sl'],'nRs':_0x34972d['sl'],'unit':_0x34972d[_0x277b00(0x196)],'cb':_0x34972d[_0x277b00(0x1c0)],'type':_0x34972d[_0x277b00(0x170)]});}),_0x446299[_0x12a08d(0x1a1)](_0xb14bfb);}const _0x56bfc5=['base',_0x12a08d(0x198),_0x12a08d(0x1b0),_0x12a08d(0x179),_0x12a08d(0x171),_0x12a08d(0x17c),_0x12a08d(0x193)],_0x5aa553=_0xfc0af8[_0x12a08d(0x19f)](_0x58ef70=>!_0x56bfc5[_0x12a08d(0x1a8)](_0x58ef70[_0x12a08d(0x1b7)]));let _0x1949df={'title':_0xdc7df[_0x12a08d(0x16f)],'type':'other','list':[]};for(var _0x1c3b36=0x0;_0x1c3b36<_0x5aa553[_0x12a08d(0x1b2)];_0x1c3b36++){const _0x15b5d8=_0x5aa553[_0x1c3b36];_0x15b5d8['strLx']==_0x12a08d(0x177)&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x12a08d(0x177)]+('['+_0x15b5d8[_0x12a08d(0x191)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x17b)]),'unit':_0x15b5d8[_0x12a08d(0x17b)],'type':_0x15b5d8['strLx']}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1a9)&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x12a08d(0x1a9)]+('['+_0x15b5d8[_0x12a08d(0x191)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x184)])+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x1b6)]+_0x875e66['r'],'nRs':_0x15b5d8[_0x12a08d(0x1b6)],'unit':_0x15b5d8[_0x12a08d(0x184)],'cb':_0x15b5d8[_0x12a08d(0x184)],'type':_0x12a08d(0x1a9)}),(_0x15b5d8[_0x12a08d(0x1b7)]=='coupon'||_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1ac))&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x15b5d8['couponmc']||_0x875e66[_0x15b5d8[_0x12a08d(0x1b7)]],'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x17b)]),'unit':_0x15b5d8[_0x12a08d(0x17b)],'type':_0x15b5d8['strLx']}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x18b)&&_0x1a9a61[_0x12a08d(0x1bf)]&&_0x1949df['list'][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x15b5d8['strLx']],'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x18b)])+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x16d)]+_0x875e66['r']+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x1a2)]+_0x875e66['t'],'nRs':_0x15b5d8[_0x12a08d(0x16d)],'count':_0x15b5d8[_0x12a08d(0x1a2)],'unit':_0x15b5d8[_0x12a08d(0x18b)],'type':_0x15b5d8[_0x12a08d(0x1b7)]}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1a3)&&_0x1949df['list']['push']({'title':_0x875e66[_0x15b5d8['strLx']],'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x1b4)]),'unit':_0x15b5d8[_0x12a08d(0x1b4)],'type':_0x15b5d8['strLx']});}_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1b2)]&&_0x446299['push'](_0x1949df);const _0x20d359=_0xfc0af8['filter'](_0x2cae05=>_0x2cae05[_0x12a08d(0x1b7)]==_0x12a08d(0x1bc));return _0x20d359[_0x12a08d(0x1b2)]&&_0x446299[_0x12a08d(0x1a1)]({'title':_0xdc7df[_0x12a08d(0x1bc)],'type':_0x12a08d(0x1bc),'list':[{'title':_0xdc7df[_0x12a08d(0x1bc)],'info':_0x40e1b6+_0x9ee8bb(_0x20d359[0x0][_0x12a08d(0x19a)])}]}),_0x446299;}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x40614b,_0x2fd563){const _0x115062=a2_0x375c,_0x4fa05e=_0x40614b();while(!![]){try{const _0x229ca4=-parseInt(_0x115062(0x12f))/0x1+-parseInt(_0x115062(0x131))/0x2*(-parseInt(_0x115062(0x126))/0x3)+-parseInt(_0x115062(0x123))/0x4+-parseInt(_0x115062(0x121))/0x5+-parseInt(_0x115062(0x125))/0x6*(parseInt(_0x115062(0x124))/0x7)+-parseInt(_0x115062(0x134))/0x8+-parseInt(_0x115062(0x11b))/0x9*(-parseInt(_0x115062(0x127))/0xa);if(_0x229ca4===_0x2fd563)break;else _0x4fa05e['push'](_0x4fa05e['shift']());}catch(_0x2b64a9){_0x4fa05e['push'](_0x4fa05e['shift']());}}}(a2_0x3460,0x5440e));function getRoomCount(_0x108065,_0x3e4b88){const _0x3a7e2a=a2_0x375c,_0x1c8369=Array[_0x3a7e2a(0x129)](_0x108065);if(!_0x1c8369)_0x108065=[_0x108065];let _0x5f3eae=[];return _0x108065[_0x3a7e2a(0x11a)](_0x1cec1a=>{const _0x3b2c54=_0x3a7e2a;let _0x224a47=![];if(!_0x1cec1a[_0x3b2c54(0x12a)]){let _0x4d8d08=_0x1cec1a[_0x3b2c54(0x11c)];if(_0x1cec1a[_0x3b2c54(0x130)]||!_0x3e4b88[_0x3b2c54(0x138)])_0x4d8d08+=_0x1cec1a[_0x3b2c54(0x122)];const _0x5babbc=_0x3e4b88[_0x3b2c54(0x133)][_0x3b2c54(0x12e)](_0x5b0660=>Number(_0x5b0660[_0x3b2c54(0x11d)])===_0x4d8d08);if(!_0x5babbc)_0x224a47=!![];else{let _0x968cc0=_0x1cec1a['adultNum']+_0x1cec1a[_0x3b2c54(0x122)]+_0x1cec1a[_0x3b2c54(0x132)];_0x968cc0>_0x5babbc[_0x3b2c54(0x12c)]&&(_0x224a47=!![]);}}_0x5f3eae['push'](_0x224a47);}),_0x1c8369?_0x5f3eae:_0x5f3eae[0x0];}function getRoomConfig(_0x5b02b3){const _0x3ea8f5=a2_0x375c;let _0x501d05=_0x5b02b3['some'](_0xc4b2de=>_0xc4b2de[_0x3ea8f5(0x11d)]==='childUseBed'),_0x5ea8e1=_0x5b02b3[_0x3ea8f5(0x137)](_0x41d114=>_0x41d114[_0x3ea8f5(0x11d)]===_0x3ea8f5(0x128));const _0x3b8b00=_0x5b02b3['some'](_0x40c2ef=>_0x40c2ef[_0x3ea8f5(0x11d)]==='infant'),_0x46d308=_0x5b02b3[_0x3ea8f5(0x137)](_0x205347=>_0x205347[_0x3ea8f5(0x11d)]==='child'),_0x351baf=_0x5b02b3['map'](_0x36ed8a=>{const _0x1f7150=_0x3ea8f5;return{'strCode':_0x36ed8a[_0x1f7150(0x11d)],'nMaxIn':_0x36ed8a[_0x1f7150(0x12c)]};});if(_0x5ea8e1){const _0x435a2b=_0x5b02b3['some'](_0x27ce38=>_0x27ce38[_0x3ea8f5(0x11d)]=='2');_0x5ea8e1=_0x5ea8e1&&_0x435a2b;}if(_0x501d05)_0x501d05=_0x501d05&&_0x46d308;return{'childUseBed':_0x501d05,'isAlotment':_0x5ea8e1,'infant':_0x3b8b00,'child':_0x46d308,'list':_0x351baf};}function isRoomPiece(_0x29fdd7,_0x58dd55){const _0x55aae4=a2_0x375c;return _0x58dd55&&_0x29fdd7[_0x55aae4(0x11c)]===0x1&&_0x29fdd7[_0x55aae4(0x122)]===0x0&&_0x29fdd7[_0x55aae4(0x132)]===0x0;}function a2_0x375c(_0x310a6c,_0x5a3078){const _0x3460d3=a2_0x3460();return a2_0x375c=function(_0x375c88,_0x7736d3){_0x375c88=_0x375c88-0x11a;let _0x45cd48=_0x3460d3[_0x375c88];return _0x45cd48;},a2_0x375c(_0x310a6c,_0x5a3078);}function a2_0x3460(){const _0x3b182b=['some','child','forEach','279GLTRRH','adultNum','strCode','map','infant','filter','2947140YYNpGV','childrenNum','492432qcBjmx','7iwgfNX','1837878uXDYgl','12PTLqwu','633470HMuqlK','isAlotment','isArray','isalotment','length','nMaxIn','push','find','250913jFvgby','childUseBed','70976kvHOXC','infantNum','list','3926760IimdNx','max','fd7834c4-4eb7-4f49-bb92-23f6badbcce8'];a2_0x3460=function(){return _0x3b182b;};return a2_0x3460();}function getRoomItemRange(_0x316e43,_0x49b218,_0x10e1f1={'child':'儿童','infant':'婴儿'}){const _0x55417b=a2_0x375c;if(!_0x49b218[_0x55417b(0x12b)])return{'childList':[],'infantList':[]};const _0x165967=Math[_0x55417b(0x135)](..._0x49b218[_0x55417b(0x11e)](_0x2feb4b=>Number(_0x2feb4b[_0x55417b(0x12c)]))),_0xfcda19=_0x165967-_0x316e43['adultNum']-_0x316e43['infantNum'];let _0xea450a=_0x165967-_0x316e43[_0x55417b(0x11c)]-_0x316e43['childrenNum'];if(_0xea450a>0x2)_0xea450a=0x2;const _0x3ec4f0=(_0x4c2f4e,_0x3ad290)=>{const _0x1c7b67=_0x55417b,_0x2d8418=[];_0x2d8418['push']({'value':0x0,'label':'0\x20'+_0x3ad290});for(let _0x34a955=0x0;_0x34a955<_0x4c2f4e;_0x34a955++){_0x2d8418[_0x1c7b67(0x12d)]({'value':_0x34a955+0x1,'label':''+(_0x34a955+0x1)+_0x3ad290});}return _0x2d8418;};return{'childList':_0x3ec4f0(_0xfcda19,_0x10e1f1[_0x55417b(0x138)]),'infantList':_0x3ec4f0(_0xea450a,_0x10e1f1[_0x55417b(0x11f)])};}function getAdultRange(_0x17d3ea,_0x19db2f='成人'){const _0x4b0a8e=a2_0x375c;let _0x1ce44c=Math[_0x4b0a8e(0x135)](..._0x17d3ea[_0x4b0a8e(0x11e)](_0x9a30e2=>Number(_0x9a30e2['strCode']))[_0x4b0a8e(0x120)](_0x1423da=>!isNaN(_0x1423da)));if(!_0x1ce44c)_0x1ce44c=0x4;let _0x38a596=[];for(var _0x36dd25=0x1;_0x36dd25<_0x1ce44c+0x1;_0x36dd25++){_0x38a596[_0x4b0a8e(0x12d)]({'value':_0x36dd25,'label':''+_0x36dd25+_0x19db2f});}return _0x38a596;}const getTotalPeople=_0x4c0c9e=>{const _0x270bd2=_0x4c0c9e['reduce']((_0x3e29ed,_0x385405)=>{const _0x4f5804=a2_0x375c;return _0x3e29ed+(_0x385405[_0x4f5804(0x11c)]||0x0)+(_0x385405[_0x4f5804(0x122)]||0x0)+(_0x385405[_0x4f5804(0x132)]||0x0);},0x0);return _0x270bd2;},getRoomType=_0x5a8f5c=>{const _0x23f98a=a2_0x375c;return _0x5a8f5c===_0x23f98a(0x136);};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
1
+ function a2_0x1800(){const _0x428e2d=['length','isAlotment','child','5080300NJJMgw','2106475WDHhVm','list','nMaxIn','55ERglFA','2397102GnWJMF','childrenNum','infantNum','isArray','713922xwhOAP','find','push','reduce','max','isalotment','343992Akcllq','filter','some','625482UYGuXw','adultNum','map','4321312KwawSi','strCode'];a2_0x1800=function(){return _0x428e2d;};return a2_0x1800();}(function(_0x154128,_0x37f38b){const _0x2589fa=a2_0x4f06,_0x44a813=_0x154128();while(!![]){try{const _0x21f8ff=parseInt(_0x2589fa(0x105))/0x1+parseInt(_0x2589fa(0x101))/0x2+parseInt(_0x2589fa(0x10e))/0x3+-parseInt(_0x2589fa(0xfc))/0x4+parseInt(_0x2589fa(0x100))/0x5*(parseInt(_0x2589fa(0x10b))/0x6)+-parseInt(_0x2589fa(0xfd))/0x7+-parseInt(_0x2589fa(0xf7))/0x8;if(_0x21f8ff===_0x37f38b)break;else _0x44a813['push'](_0x44a813['shift']());}catch(_0x44ef05){_0x44a813['push'](_0x44a813['shift']());}}}(a2_0x1800,0x9c5c7));function getRoomCount(_0x211e27,_0x2f9fdf){const _0x449ebd=a2_0x4f06,_0x418a3b=Array[_0x449ebd(0x104)](_0x211e27);if(!_0x418a3b)_0x211e27=[_0x211e27];let _0x5e71f2=[];return _0x211e27['forEach'](_0x563e41=>{const _0x1e0a2b=_0x449ebd;let _0x154fd9=![];if(!_0x563e41[_0x1e0a2b(0x10a)]){let _0x46bc04=_0x563e41[_0x1e0a2b(0x10f)];if(_0x563e41['childUseBed']||!_0x2f9fdf[_0x1e0a2b(0xfb)])_0x46bc04+=_0x563e41[_0x1e0a2b(0x102)];const _0xc0c11f=_0x2f9fdf[_0x1e0a2b(0xfe)][_0x1e0a2b(0x106)](_0x2cf4b1=>Number(_0x2cf4b1[_0x1e0a2b(0xf8)])===_0x46bc04);if(!_0xc0c11f)_0x154fd9=!![];else{let _0x256d5a=_0x563e41[_0x1e0a2b(0x10f)]+_0x563e41[_0x1e0a2b(0x102)]+_0x563e41[_0x1e0a2b(0x103)];_0x256d5a>_0xc0c11f[_0x1e0a2b(0xff)]&&(_0x154fd9=!![]);}}_0x5e71f2[_0x1e0a2b(0x107)](_0x154fd9);}),_0x418a3b?_0x5e71f2:_0x5e71f2[0x0];}function getRoomConfig(_0x4a824d){const _0x1ebea3=a2_0x4f06;let _0x140b02=_0x4a824d[_0x1ebea3(0x10d)](_0x1118dd=>_0x1118dd[_0x1ebea3(0xf8)]==='childUseBed'),_0xc827fc=_0x4a824d[_0x1ebea3(0x10d)](_0x2fb9dc=>_0x2fb9dc[_0x1ebea3(0xf8)]===_0x1ebea3(0xfa));const _0x139acc=_0x4a824d[_0x1ebea3(0x10d)](_0x194415=>_0x194415[_0x1ebea3(0xf8)]==='infant'),_0x4acc92=_0x4a824d[_0x1ebea3(0x10d)](_0x300689=>_0x300689[_0x1ebea3(0xf8)]===_0x1ebea3(0xfb)),_0x17998f=_0x4a824d[_0x1ebea3(0xf6)](_0x5d194b=>{const _0x5347cd=_0x1ebea3;return{'strCode':_0x5d194b[_0x5347cd(0xf8)],'nMaxIn':_0x5d194b[_0x5347cd(0xff)]};});if(_0xc827fc){const _0x5cd06c=_0x4a824d[_0x1ebea3(0x10d)](_0x31b6ae=>_0x31b6ae[_0x1ebea3(0xf8)]=='2');_0xc827fc=_0xc827fc&&_0x5cd06c;}if(_0x140b02)_0x140b02=_0x140b02&&_0x4acc92;return{'childUseBed':_0x140b02,'isAlotment':_0xc827fc,'infant':_0x139acc,'child':_0x4acc92,'list':_0x17998f};}function isRoomPiece(_0x31aee0,_0x46f151){const _0x278982=a2_0x4f06;return _0x46f151&&_0x31aee0[_0x278982(0x10f)]===0x1&&_0x31aee0[_0x278982(0x102)]===0x0&&_0x31aee0[_0x278982(0x103)]===0x0;}function a2_0x4f06(_0x475c31,_0x53f3e2){const _0x1800c8=a2_0x1800();return a2_0x4f06=function(_0x4f068c,_0x3b0ece){_0x4f068c=_0x4f068c-0xf6;let _0x51ac6c=_0x1800c8[_0x4f068c];return _0x51ac6c;},a2_0x4f06(_0x475c31,_0x53f3e2);}function getRoomItemRange(_0x7e9fb3,_0x3c44c6,_0x27a83a={'child':'儿童','infant':'婴儿'}){const _0x4ba98b=a2_0x4f06;if(!_0x3c44c6[_0x4ba98b(0xf9)])return{'childList':[],'infantList':[]};const _0x4d32ed=Math[_0x4ba98b(0x109)](..._0x3c44c6[_0x4ba98b(0xf6)](_0x398661=>Number(_0x398661[_0x4ba98b(0xff)]))),_0x484fb6=_0x4d32ed-_0x7e9fb3['adultNum']-_0x7e9fb3[_0x4ba98b(0x103)];let _0xebe474=_0x4d32ed-_0x7e9fb3[_0x4ba98b(0x10f)]-_0x7e9fb3[_0x4ba98b(0x102)];if(_0xebe474>0x2)_0xebe474=0x2;const _0x57fc23=(_0x3f738f,_0x30c789)=>{const _0xd3c6d5=_0x4ba98b,_0xac0eaf=[];_0xac0eaf[_0xd3c6d5(0x107)]({'value':0x0,'label':'0\x20'+_0x30c789});for(let _0x23502e=0x0;_0x23502e<_0x3f738f;_0x23502e++){_0xac0eaf[_0xd3c6d5(0x107)]({'value':_0x23502e+0x1,'label':''+(_0x23502e+0x1)+_0x30c789});}return _0xac0eaf;};return{'childList':_0x57fc23(_0x484fb6,_0x27a83a['child']),'infantList':_0x57fc23(_0xebe474,_0x27a83a['infant'])};}function getAdultRange(_0x5f4906,_0x31819f='成人'){const _0x2e00e1=a2_0x4f06;let _0x2dd46f=Math[_0x2e00e1(0x109)](..._0x5f4906['map'](_0x4e86d7=>Number(_0x4e86d7[_0x2e00e1(0xf8)]))[_0x2e00e1(0x10c)](_0x3c1731=>!isNaN(_0x3c1731)));if(!_0x2dd46f)_0x2dd46f=0x4;let _0x314df7=[];for(var _0x28de01=0x1;_0x28de01<_0x2dd46f+0x1;_0x28de01++){_0x314df7[_0x2e00e1(0x107)]({'value':_0x28de01,'label':''+_0x28de01+_0x31819f});}return _0x314df7;}const getTotalPeople=_0x478bf2=>{const _0x1f04ec=a2_0x4f06,_0x135679=_0x478bf2[_0x1f04ec(0x108)]((_0x28a4ac,_0x20bf63)=>{const _0xa25cdc=_0x1f04ec;return _0x28a4ac+(_0x20bf63[_0xa25cdc(0x10f)]||0x0)+(_0x20bf63[_0xa25cdc(0x102)]||0x0)+(_0x20bf63[_0xa25cdc(0x103)]||0x0);},0x0);return _0x135679;},getRoomType=(_0x1b75cd,_0x128825)=>{if(_0x1b75cd==='type'||_0x128825===0x1||_0x128825==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
package/dist/roomOld.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3bb5e2,_0x5d4e49){const _0x549350=a3_0x4cbd,_0x2c6d55=_0x3bb5e2();while(!![]){try{const _0x51ee9b=-parseInt(_0x549350(0x1aa))/0x1+-parseInt(_0x549350(0x1ba))/0x2*(-parseInt(_0x549350(0x1b7))/0x3)+parseInt(_0x549350(0x1bd))/0x4+-parseInt(_0x549350(0x1a4))/0x5*(-parseInt(_0x549350(0x1bb))/0x6)+parseInt(_0x549350(0x1c2))/0x7*(parseInt(_0x549350(0x1a5))/0x8)+-parseInt(_0x549350(0x1ae))/0x9*(parseInt(_0x549350(0x1ad))/0xa)+-parseInt(_0x549350(0x1a8))/0xb;if(_0x51ee9b===_0x5d4e49)break;else _0x2c6d55['push'](_0x2c6d55['shift']());}catch(_0xdeb1de){_0x2c6d55['push'](_0x2c6d55['shift']());}}}(a3_0x5f52,0x2b5cd));function getRoomCount(_0x5b011b,_0x69dd7a){const _0x4e157c=a3_0x4cbd,_0x637e77=Array[_0x4e157c(0x1a9)](_0x5b011b);if(!_0x637e77)_0x5b011b=[_0x5b011b];let _0x1e6533=[];return _0x5b011b[_0x4e157c(0x1b5)](_0x5b7e01=>{const _0x3df288=_0x4e157c;let _0x297149=![];if(!_0x5b7e01[_0x3df288(0x1b2)]){let _0x4aa38f=_0x5b7e01['adultnum'];if(_0x5b7e01[_0x3df288(0x1be)]||!_0x69dd7a['child'])_0x4aa38f+=_0x5b7e01['childrennum'];const _0x3a983f=_0x69dd7a[_0x3df288(0x1c1)][_0x3df288(0x1ab)](_0x3e9fc7=>Number(_0x3e9fc7[_0x3df288(0x1b4)])===_0x4aa38f);if(!_0x3a983f)_0x297149=!![];else{let _0x186c5f=_0x5b7e01[_0x3df288(0x1b9)]+_0x5b7e01['childrennum']+_0x5b7e01[_0x3df288(0x1af)];_0x186c5f>_0x3a983f[_0x3df288(0x1ac)]&&(_0x297149=!![]);}}_0x1e6533[_0x3df288(0x1b3)](_0x297149);}),_0x637e77?_0x1e6533:_0x1e6533[0x0];}function a3_0x5f52(){const _0x26a70a=['1097644lCyqvs','childusebed','map','childrennum','list','112777PbdAGN','5EbNYzK','16jurdXq','max','half','4652901JdcNMC','isArray','24803bhmeRQ','find','nMaxIn','120FrJTLp','144954lDqqZk','infantnum','filter','some','isalotment','push','strCode','forEach','infant','39dktReX','child','adultnum','43520vAopkL','1374996Xtyjpt','length'];a3_0x5f52=function(){return _0x26a70a;};return a3_0x5f52();}function getRoomConfig(_0x1704d1){const _0x4a8b08=a3_0x4cbd;let _0xaa8ede=_0x1704d1[_0x4a8b08(0x1b1)](_0x418947=>_0x418947[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1be)),_0x3a16c4=_0x1704d1['some'](_0x272b25=>_0x272b25[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1a7));const _0x4730b0=_0x1704d1[_0x4a8b08(0x1b1)](_0x560c41=>_0x560c41[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1b6)),_0x386575=_0x1704d1[_0x4a8b08(0x1b1)](_0x17ac01=>_0x17ac01[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1b8)),_0x88e547=_0x1704d1['map'](_0x37b9eb=>{const _0x1ffb38=_0x4a8b08;return{'strCode':_0x37b9eb[_0x1ffb38(0x1b4)],'nMaxIn':_0x37b9eb[_0x1ffb38(0x1ac)]};});if(_0x3a16c4){const _0x5a02ac=_0x1704d1[_0x4a8b08(0x1b1)](_0xf9716=>_0xf9716[_0x4a8b08(0x1b4)]=='2');_0x3a16c4=_0x3a16c4&&_0x5a02ac;}if(_0xaa8ede)_0xaa8ede=_0xaa8ede&&_0x386575;return{'childusebed':_0xaa8ede,'half':_0x3a16c4,'infant':_0x4730b0,'child':_0x386575,'list':_0x88e547};}function isRoomPiece(_0x15fdca,_0x2e73bd){const _0x4f477c=a3_0x4cbd;return _0x2e73bd&&_0x15fdca[_0x4f477c(0x1b9)]===0x1&&_0x15fdca[_0x4f477c(0x1c0)]===0x0&&_0x15fdca[_0x4f477c(0x1af)]===0x0;}function getRoomItemRange(_0x301291,_0x2a2f91,_0x140c80={'child':'儿童','infant':'婴儿'}){const _0x505ae6=a3_0x4cbd;if(!_0x2a2f91[_0x505ae6(0x1bc)])return{'childList':[],'infantList':[]};const _0x291fdf=Math['max'](..._0x2a2f91[_0x505ae6(0x1bf)](_0x2bc143=>Number(_0x2bc143[_0x505ae6(0x1ac)]))),_0x57fcba=_0x291fdf-_0x301291['adultnum']-_0x301291[_0x505ae6(0x1af)];let _0x434e7c=_0x291fdf-_0x301291[_0x505ae6(0x1b9)]-_0x301291[_0x505ae6(0x1c0)];if(_0x434e7c>0x2)_0x434e7c=0x2;const _0x1d7225=(_0x3273eb,_0x27fed1)=>{const _0x19a942=_0x505ae6,_0xa0972d=[];_0xa0972d['push']({'value':0x0,'label':'0\x20'+_0x27fed1});for(let _0x3d8e38=0x0;_0x3d8e38<_0x3273eb;_0x3d8e38++){_0xa0972d[_0x19a942(0x1b3)]({'value':_0x3d8e38+0x1,'label':''+(_0x3d8e38+0x1)+_0x27fed1});}return _0xa0972d;};return{'childList':_0x1d7225(_0x57fcba,_0x140c80[_0x505ae6(0x1b8)]),'infantList':_0x1d7225(_0x434e7c,_0x140c80['infant'])};}function a3_0x4cbd(_0x2a6c26,_0x1ce1d8){const _0x5f52e7=a3_0x5f52();return a3_0x4cbd=function(_0x4cbd1d,_0x32bbe9){_0x4cbd1d=_0x4cbd1d-0x1a4;let _0x2c267d=_0x5f52e7[_0x4cbd1d];return _0x2c267d;},a3_0x4cbd(_0x2a6c26,_0x1ce1d8);}function getAdultRange(_0x58758d,_0x16db5d='成人'){const _0x25f64=a3_0x4cbd;let _0x380c29=Math[_0x25f64(0x1a6)](..._0x58758d['map'](_0x3808e9=>Number(_0x3808e9['strCode']))[_0x25f64(0x1b0)](_0x3846c6=>!isNaN(_0x3846c6)));if(!_0x380c29)_0x380c29=0x4;let _0xf820a5=[];for(var _0xe231d5=0x1;_0xe231d5<_0x380c29+0x1;_0xe231d5++){_0xf820a5[_0x25f64(0x1b3)]({'value':_0xe231d5,'label':''+_0xe231d5+_0x16db5d});}return _0xf820a5;}const getTotalPeople=_0x37e30d=>{const _0x14cecf=_0x37e30d['reduce']((_0x1c0d55,_0x5a0352)=>{const _0x462b13=a3_0x4cbd;return _0x1c0d55+(_0x5a0352[_0x462b13(0x1b9)]||0x0)+(_0x5a0352['childrennum']||0x0)+(_0x5a0352['infantnum']||0x0);},0x0);return _0x14cecf;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
1
+ (function(_0x2ad0f9,_0x40ac4c){const _0x3e7870=a3_0x5bad,_0x1dd14b=_0x2ad0f9();while(!![]){try{const _0x29dc46=-parseInt(_0x3e7870(0x1ad))/0x1*(parseInt(_0x3e7870(0x1b2))/0x2)+parseInt(_0x3e7870(0x1c9))/0x3+-parseInt(_0x3e7870(0x1c1))/0x4*(-parseInt(_0x3e7870(0x1b3))/0x5)+parseInt(_0x3e7870(0x1af))/0x6*(-parseInt(_0x3e7870(0x1bf))/0x7)+-parseInt(_0x3e7870(0x1b6))/0x8*(-parseInt(_0x3e7870(0x1c7))/0x9)+-parseInt(_0x3e7870(0x1b0))/0xa*(-parseInt(_0x3e7870(0x1b4))/0xb)+parseInt(_0x3e7870(0x1b9))/0xc*(parseInt(_0x3e7870(0x1c8))/0xd);if(_0x29dc46===_0x40ac4c)break;else _0x1dd14b['push'](_0x1dd14b['shift']());}catch(_0x1a66f2){_0x1dd14b['push'](_0x1dd14b['shift']());}}}(a3_0x5b1c,0xa11b1));function getRoomCount(_0x49bfde,_0x9c692c){const _0x25cdee=a3_0x5bad,_0x164440=Array[_0x25cdee(0x1bd)](_0x49bfde);if(!_0x164440)_0x49bfde=[_0x49bfde];let _0x5162cb=[];return _0x49bfde['forEach'](_0x431603=>{const _0x5d5e74=_0x25cdee;let _0x2a54af=![];if(!_0x431603[_0x5d5e74(0x1c2)]){let _0x4d1632=_0x431603['adultnum'];if(_0x431603['childusebed']||!_0x9c692c[_0x5d5e74(0x1c4)])_0x4d1632+=_0x431603['childrennum'];const _0x5c9100=_0x9c692c[_0x5d5e74(0x1b1)][_0x5d5e74(0x1b8)](_0x18ca33=>Number(_0x18ca33[_0x5d5e74(0x1bb)])===_0x4d1632);if(!_0x5c9100)_0x2a54af=!![];else{let _0x385426=_0x431603[_0x5d5e74(0x1c5)]+_0x431603[_0x5d5e74(0x1c0)]+_0x431603['infantnum'];_0x385426>_0x5c9100['nMaxIn']&&(_0x2a54af=!![]);}}_0x5162cb[_0x5d5e74(0x1ae)](_0x2a54af);}),_0x164440?_0x5162cb:_0x5162cb[0x0];}function getRoomConfig(_0x34a818){const _0x5af60d=a3_0x5bad;let _0x22a7e5=_0x34a818[_0x5af60d(0x1ba)](_0x23d278=>_0x23d278[_0x5af60d(0x1bb)]===_0x5af60d(0x1c6)),_0x531546=_0x34a818['some'](_0x25e1fa=>_0x25e1fa[_0x5af60d(0x1bb)]===_0x5af60d(0x1ac));const _0x2cc791=_0x34a818[_0x5af60d(0x1ba)](_0x1a48be=>_0x1a48be[_0x5af60d(0x1bb)]===_0x5af60d(0x1b5)),_0x3cae89=_0x34a818[_0x5af60d(0x1ba)](_0x5994cb=>_0x5994cb[_0x5af60d(0x1bb)]===_0x5af60d(0x1c4)),_0x1d10bc=_0x34a818[_0x5af60d(0x1b7)](_0x15982b=>{const _0x2de36e=_0x5af60d;return{'strCode':_0x15982b['strCode'],'nMaxIn':_0x15982b[_0x2de36e(0x1be)]};});if(_0x531546){const _0x2b03c5=_0x34a818['some'](_0x5500bb=>_0x5500bb['strCode']=='2');_0x531546=_0x531546&&_0x2b03c5;}if(_0x22a7e5)_0x22a7e5=_0x22a7e5&&_0x3cae89;return{'childusebed':_0x22a7e5,'half':_0x531546,'infant':_0x2cc791,'child':_0x3cae89,'list':_0x1d10bc};}function isRoomPiece(_0x2ec1dc,_0x53652c){const _0x539efb=a3_0x5bad;return _0x53652c&&_0x2ec1dc[_0x539efb(0x1c5)]===0x1&&_0x2ec1dc[_0x539efb(0x1c0)]===0x0&&_0x2ec1dc[_0x539efb(0x1ca)]===0x0;}function a3_0x5bad(_0x22600e,_0x514976){const _0x5b1c7f=a3_0x5b1c();return a3_0x5bad=function(_0x5bad4a,_0x4d6e18){_0x5bad4a=_0x5bad4a-0x1ac;let _0x12f744=_0x5b1c7f[_0x5bad4a];return _0x12f744;},a3_0x5bad(_0x22600e,_0x514976);}function getRoomItemRange(_0x52c88d,_0x466a87,_0x5de155={'child':'儿童','infant':'婴儿'}){const _0x24f3b3=a3_0x5bad;if(!_0x466a87[_0x24f3b3(0x1bc)])return{'childList':[],'infantList':[]};const _0x1b0477=Math['max'](..._0x466a87[_0x24f3b3(0x1b7)](_0x1320bb=>Number(_0x1320bb[_0x24f3b3(0x1be)]))),_0x6e881d=_0x1b0477-_0x52c88d['adultnum']-_0x52c88d[_0x24f3b3(0x1ca)];let _0x12c7c7=_0x1b0477-_0x52c88d['adultnum']-_0x52c88d[_0x24f3b3(0x1c0)];if(_0x12c7c7>0x2)_0x12c7c7=0x2;const _0xe627f6=(_0x2e1f74,_0x262124)=>{const _0xa54bc=_0x24f3b3,_0x507ffe=[];_0x507ffe[_0xa54bc(0x1ae)]({'value':0x0,'label':'0\x20'+_0x262124});for(let _0x5ef7ce=0x0;_0x5ef7ce<_0x2e1f74;_0x5ef7ce++){_0x507ffe[_0xa54bc(0x1ae)]({'value':_0x5ef7ce+0x1,'label':''+(_0x5ef7ce+0x1)+_0x262124});}return _0x507ffe;};return{'childList':_0xe627f6(_0x6e881d,_0x5de155[_0x24f3b3(0x1c4)]),'infantList':_0xe627f6(_0x12c7c7,_0x5de155[_0x24f3b3(0x1b5)])};}function getAdultRange(_0x23911d,_0x451552='成人'){const _0x336a34=a3_0x5bad;let _0x3e4601=Math[_0x336a34(0x1c3)](..._0x23911d[_0x336a34(0x1b7)](_0x57b67a=>Number(_0x57b67a[_0x336a34(0x1bb)]))['filter'](_0x5a6966=>!isNaN(_0x5a6966)));if(!_0x3e4601)_0x3e4601=0x4;let _0x4984d1=[];for(var _0x82db67=0x1;_0x82db67<_0x3e4601+0x1;_0x82db67++){_0x4984d1['push']({'value':_0x82db67,'label':''+_0x82db67+_0x451552});}return _0x4984d1;}const getTotalPeople=_0x29a154=>{const _0xa690e0=_0x29a154['reduce']((_0x2be22a,_0x585ac5)=>{const _0x125ce6=a3_0x5bad;return _0x2be22a+(_0x585ac5['adultnum']||0x0)+(_0x585ac5[_0x125ce6(0x1c0)]||0x0)+(_0x585ac5['infantnum']||0x0);},0x0);return _0xa690e0;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};function a3_0x5b1c(){const _0x3a318c=['2181118DHbzNY','10ZPzNEj','1040666Mrhoah','infant','109352ZJBzCR','map','find','72NkHUbT','some','strCode','length','isArray','nMaxIn','84SflQdv','childrennum','238780JUtjkK','isalotment','max','child','adultnum','childusebed','396NOEErn','1632423HGkODS','438660bxHlXw','infantnum','half','1sdlfnN','push','408042eYLNMS','100yEnmoJ','list'];a3_0x5b1c=function(){return _0x3a318c;};return a3_0x5b1c();}
package/dist/system.js ADDED
@@ -0,0 +1 @@
1
+ (function(_0x3cf846,_0x11444f){const _0x134a86=a4_0x1b85,_0xb6f6b=_0x3cf846();while(!![]){try{const _0x3c94f8=-parseInt(_0x134a86(0xd8))/0x1+-parseInt(_0x134a86(0xe1))/0x2*(parseInt(_0x134a86(0xec))/0x3)+-parseInt(_0x134a86(0xe2))/0x4*(-parseInt(_0x134a86(0xd7))/0x5)+-parseInt(_0x134a86(0xdd))/0x6*(parseInt(_0x134a86(0xe9))/0x7)+-parseInt(_0x134a86(0xdf))/0x8*(parseInt(_0x134a86(0xe8))/0x9)+parseInt(_0x134a86(0xe6))/0xa*(parseInt(_0x134a86(0xe4))/0xb)+-parseInt(_0x134a86(0xe7))/0xc*(-parseInt(_0x134a86(0xe3))/0xd);if(_0x3c94f8===_0x11444f)break;else _0xb6f6b['push'](_0xb6f6b['shift']());}catch(_0x47d86c){_0xb6f6b['push'](_0xb6f6b['shift']());}}}(a4_0x1daa,0x22778));function getDocInfo(_0x180e63,_0x55958c='idNumber',_0x2b5dfa=![]){const _0x479e5a=a4_0x1b85;let _0xbd64e5=_0x2b5dfa?'\x20':'';if(_0x55958c===_0x479e5a(0xe5))return _0x180e63['strsfzh']||_0x180e63[_0x479e5a(0xe0)]||_0x180e63[_0x479e5a(0xee)]||_0x180e63[_0x479e5a(0xde)]||_0x180e63[_0x479e5a(0xea)]||'';if(_0x55958c==='name'){if(_0x180e63[_0x479e5a(0xda)])return _0x180e63[_0x479e5a(0xda)];const _0x380ebd=_0x180e63[_0x479e5a(0xf1)]||_0x180e63['firstName']||_0x180e63[_0x479e5a(0xd9)]||'',_0x395cbb=_0x180e63['strlastname']||_0x180e63[_0x479e5a(0xed)]||_0x180e63[_0x479e5a(0xf0)]||'';return[_0x380ebd,_0x395cbb]['filter'](Boolean)['join'](_0xbd64e5)[_0x479e5a(0xef)]()||'';}if(_0x55958c==='phone')return _0x180e63[_0x479e5a(0xdb)]||_0x180e63[_0x479e5a(0xdc)]||_0x180e63[_0x479e5a(0xeb)]||'';return'';}function a4_0x1b85(_0x4c6400,_0x45eb09){const _0x1daaab=a4_0x1daa();return a4_0x1b85=function(_0x1b85b9,_0x3f24af){_0x1b85b9=_0x1b85b9-0xd7;let _0x316424=_0x1daaab[_0x1b85b9];return _0x316424;},a4_0x1b85(_0x4c6400,_0x45eb09);}function a4_0x1daa(){const _0x5e37b1=['strzjhm','strdhhm','1263ZcLHvM','lastName','strhxz','trim','strmz','strfirstname','20uKGoAS','268442mYPLUu','strxs','strxm','strlxdh','strlxfs','30unsyrV','strggtxz','48184xWCZwR','strhzbh','784jComJj','81672pxvfbC','104aFfLCy','2918762ptPeId','idNumber','10RtmPRW','534960UAVakN','117FBskym','70987qMtbUy'];a4_0x1daa=function(){return _0x5e37b1;};return a4_0x1daa();}export default{'getDocInfo':getDocInfo};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x74d0be,_0x324f23){const _0x2ab0cb=a4_0x3c83,_0x3554a8=_0x74d0be();while(!![]){try{const _0x3e9c3d=parseInt(_0x2ab0cb(0x19d))/0x1*(parseInt(_0x2ab0cb(0x19b))/0x2)+-parseInt(_0x2ab0cb(0x183))/0x3*(parseInt(_0x2ab0cb(0x19c))/0x4)+parseInt(_0x2ab0cb(0x19a))/0x5*(-parseInt(_0x2ab0cb(0x186))/0x6)+-parseInt(_0x2ab0cb(0x1a4))/0x7*(-parseInt(_0x2ab0cb(0x197))/0x8)+-parseInt(_0x2ab0cb(0x184))/0x9*(parseInt(_0x2ab0cb(0x1a2))/0xa)+parseInt(_0x2ab0cb(0x18d))/0xb*(parseInt(_0x2ab0cb(0x181))/0xc)+-parseInt(_0x2ab0cb(0x195))/0xd*(parseInt(_0x2ab0cb(0x18e))/0xe);if(_0x3e9c3d===_0x324f23)break;else _0x3554a8['push'](_0x3554a8['shift']());}catch(_0x514ae6){_0x3554a8['push'](_0x3554a8['shift']());}}}(a4_0x7d14,0x80bd5));function email(_0x250a37){const _0x3d3cb3=a4_0x3c83;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x3d3cb3(0x196)](_0x250a37);}function mobile(_0x2159fd){const _0x2e5ed2=a4_0x3c83;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x2e5ed2(0x196)](_0x2159fd);}function isValidPhoneNumber(_0x3d9e4a){const _0x102759=a4_0x3c83;if(_0x3d9e4a[_0x102759(0x192)]('-')){const [_0x5e3e2a,_0x32df24]=_0x3d9e4a[_0x102759(0x199)]('-');if(_0x5e3e2a==='86')return/^\d{11}$/['test'](_0x32df24)&&_0x32df24[_0x102759(0x1a1)]('1');else return _0x5e3e2a===_0x102759(0x182)?/^\d{8}$/[_0x102759(0x196)](_0x32df24)&&['5','6','9','8'][_0x102759(0x192)](_0x32df24[_0x102759(0x1a5)](0x0)):/^\d+$/[_0x102759(0x196)](_0x32df24);}else return/^\d+$/['test'](_0x3d9e4a);}function url(_0x416aa2){const _0x46375b=a4_0x3c83;return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x46375b(0x196)](_0x416aa2);}function date(_0x19ee0b){const _0x283796=a4_0x3c83;if(!_0x19ee0b)return![];if(number(_0x19ee0b))_0x19ee0b=+_0x19ee0b;return!/Invalid|NaN/[_0x283796(0x196)](new Date(_0x19ee0b)[_0x283796(0x188)]());}function dateISO(_0x388b9a){const _0x2ddcdc=a4_0x3c83;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x2ddcdc(0x196)](_0x388b9a);}function isNumber(_0x20d4b9){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x20d4b9);}function isString(_0xd6b8d3){const _0x2d768e=a4_0x3c83;return typeof _0xd6b8d3===_0x2d768e(0x18b);}function digits(_0x537a69){const _0x12b421=a4_0x3c83;return/^\d+$/[_0x12b421(0x196)](_0x537a69);}function idCard(_0xed85f9){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/['test'](_0xed85f9);}function carNo(_0x2520be){const _0x45fd3e=a4_0x3c83,_0x27e4ad=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x21f55f=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x2520be[_0x45fd3e(0x18c)]===0x7)return _0x21f55f[_0x45fd3e(0x196)](_0x2520be);if(_0x2520be[_0x45fd3e(0x18c)]===0x8)return _0x27e4ad[_0x45fd3e(0x196)](_0x2520be);return![];}function amount(_0x4250e3){const _0x428fb6=a4_0x3c83;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x428fb6(0x196)](_0x4250e3);}function a4_0x3c83(_0x295888,_0x6c3883){const _0x7d147b=a4_0x7d14();return a4_0x3c83=function(_0x3c8360,_0x46724c){_0x3c8360=_0x3c8360-0x181;let _0xe6557b=_0x7d147b[_0x3c8360];return _0xe6557b;},a4_0x3c83(_0x295888,_0x6c3883);}function chinese(_0x3dfcf9){const _0x3c9fae=a4_0x3c83,_0x454ac0=/^[\u4e00-\u9fa5]+$/gi;return _0x454ac0[_0x3c9fae(0x196)](_0x3dfcf9);}function letter(_0x478a61){const _0x5ab682=a4_0x3c83;return/^[a-zA-Z]*$/[_0x5ab682(0x196)](_0x478a61);}function enOrNum(_0xd7455f){const _0x1ee613=/^[0-9a-zA-Z]*$/g;return _0x1ee613['test'](_0xd7455f);}function contains(_0x560f1a,_0x34ff3b){return _0x560f1a['indexOf'](_0x34ff3b)>=0x0;}function range(_0x4104a3,_0x497a02){return _0x4104a3>=_0x497a02[0x0]&&_0x4104a3<=_0x497a02[0x1];}function rangeLength(_0x399c1e,_0x5e4deb){const _0x1f2d58=a4_0x3c83;return _0x399c1e[_0x1f2d58(0x18c)]>=_0x5e4deb[0x0]&&_0x399c1e[_0x1f2d58(0x18c)]<=_0x5e4deb[0x1];}function landline(_0xd6f6eb){const _0xbcaf9f=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0xbcaf9f['test'](_0xd6f6eb);}function empty(_0x5c75d9){const _0x1acc8c=a4_0x3c83;switch(typeof _0x5c75d9){case _0x1acc8c(0x189):return!![];case'string':if(_0x5c75d9[_0x1acc8c(0x1a3)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x1acc8c(0x18c)]==0x0)return!![];break;case _0x1acc8c(0x19e):if(!_0x5c75d9)return!![];break;case _0x1acc8c(0x194):if(_0x5c75d9===0x0||isNaN(_0x5c75d9))return!![];break;case'object':if(_0x5c75d9===null||_0x5c75d9['length']===0x0)return!![];for(const _0x2b3050 in _0x5c75d9){return![];}return!![];}return![];}function jsonString(_0xd64018){const _0x13a500=a4_0x3c83;if(typeof _0xd64018===_0x13a500(0x18b))try{const _0x3fb91e=JSON[_0x13a500(0x19f)](_0xd64018);if(typeof _0x3fb91e===_0x13a500(0x193)&&_0x3fb91e)return!![];return![];}catch(_0x1feae3){return![];}return![];}function array(_0x5efcc6){const _0x58bc51=a4_0x3c83;if(typeof Array[_0x58bc51(0x1a6)]===_0x58bc51(0x185))return Array[_0x58bc51(0x1a6)](_0x5efcc6);return Object[_0x58bc51(0x191)][_0x58bc51(0x188)][_0x58bc51(0x187)](_0x5efcc6)===_0x58bc51(0x18a);}function object(_0x5d55f3){const _0x272ab4=a4_0x3c83;return Object[_0x272ab4(0x191)][_0x272ab4(0x188)]['call'](_0x5d55f3)===_0x272ab4(0x198);}function code(_0x3b843c,_0xfb94a8=0x6){const _0x117316=a4_0x3c83;return new RegExp(_0x117316(0x190)+_0xfb94a8+'}$')['test'](_0x3b843c);}function func(_0x54c8e5){return typeof _0x54c8e5==='function';}function promise(_0x3b717b){const _0x3427af=a4_0x3c83;return object(_0x3b717b)&&func(_0x3b717b[_0x3427af(0x18f)])&&func(_0x3b717b['catch']);}function a4_0x7d14(){const _0x19ec3b=['string','length','918181xwWciR','9932566YPKEFI','then','^\x5cd{','prototype','includes','object','number','13VuqXhj','test','32cWnDwe','[object\x20Object]','split','55pWyrrj','14KgiWVG','212IjhnsH','127031obWPsj','boolean','parse','[object\x20RegExp]','startsWith','10krmMBO','replace','962241znMyil','charAt','isArray','144lMONdK','852','29130UiuLKv','2114847QFFWXK','function','247812LVpzhR','call','toString','undefined','[object\x20Array]'];a4_0x7d14=function(){return _0x19ec3b;};return a4_0x7d14();}function image(_0x180601){const _0x336470=a4_0x3c83,_0x13cdd1=_0x180601[_0x336470(0x199)]('?')[0x0],_0x228a70=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x228a70[_0x336470(0x196)](_0x13cdd1);}function video(_0x55c81c){const _0x149516=a4_0x3c83,_0x49fd70=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x49fd70[_0x149516(0x196)](_0x55c81c);}function regExp(_0x35c30a){const _0x250de4=a4_0x3c83;return _0x35c30a&&Object[_0x250de4(0x191)][_0x250de4(0x188)][_0x250de4(0x187)](_0x35c30a)===_0x250de4(0x1a0);}function isNumeric(_0x5dec3c,_0x2ce0ca=0x0){const _0x5c403a=a4_0x3c83;if(typeof _0x5dec3c===_0x5c403a(0x194))_0x5dec3c=_0x5dec3c[_0x5c403a(0x188)]();if(typeof _0x5dec3c!==_0x5c403a(0x18b))return![];switch(_0x2ce0ca){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x5dec3c);case 0x2:return/^-\d+(\.\d+)?$/[_0x5c403a(0x196)](_0x5dec3c);case 0x3:return/^-?\d+$/[_0x5c403a(0x196)](_0x5dec3c);case 0x4:return/^\d+$/[_0x5c403a(0x196)](_0x5dec3c);case 0x5:return/^-\d+$/['test'](_0x5dec3c);default:return/^-?\d*\.?\d*$/[_0x5c403a(0x196)](_0x5dec3c)&&!_0x5dec3c[_0x5c403a(0x1a1)]('.')&&!_0x5dec3c['includes']('--');}}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
1
+ (function(_0x5072fd,_0x915d9){const _0x41d15d=a5_0x3da9,_0x5880c8=_0x5072fd();while(!![]){try{const _0x15d9df=-parseInt(_0x41d15d(0x1bd))/0x1+-parseInt(_0x41d15d(0x1ae))/0x2*(parseInt(_0x41d15d(0x1c8))/0x3)+-parseInt(_0x41d15d(0x1c1))/0x4*(-parseInt(_0x41d15d(0x1ad))/0x5)+parseInt(_0x41d15d(0x1af))/0x6+parseInt(_0x41d15d(0x1be))/0x7*(parseInt(_0x41d15d(0x1bc))/0x8)+-parseInt(_0x41d15d(0x1bf))/0x9*(parseInt(_0x41d15d(0x1b3))/0xa)+parseInt(_0x41d15d(0x1b4))/0xb*(parseInt(_0x41d15d(0x1c3))/0xc);if(_0x15d9df===_0x915d9)break;else _0x5880c8['push'](_0x5880c8['shift']());}catch(_0x431d9a){_0x5880c8['push'](_0x5880c8['shift']());}}}(a5_0x4ab3,0x63e94));function email(_0x408160){const _0x54ed56=a5_0x3da9;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x54ed56(0x1b8)](_0x408160);}function mobile(_0x4c8f04){const _0x4ea735=a5_0x3da9;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x4ea735(0x1b8)](_0x4c8f04);}function isValidPhoneNumber(_0x5e6456){const _0x1e2840=a5_0x3da9;if(_0x5e6456['includes']('-')){const [_0x27b386,_0x5046b3]=_0x5e6456[_0x1e2840(0x1b5)]('-');if(_0x27b386==='86')return/^\d{11}$/[_0x1e2840(0x1b8)](_0x5046b3)&&_0x5046b3[_0x1e2840(0x1a8)]('1');else return _0x27b386==='852'?/^\d{8}$/[_0x1e2840(0x1b8)](_0x5046b3)&&['5','6','9','8'][_0x1e2840(0x1c6)](_0x5046b3[_0x1e2840(0x1a9)](0x0)):/^\d+$/[_0x1e2840(0x1b8)](_0x5046b3);}else return/^\d+$/['test'](_0x5e6456);}function url(_0x11a678){const _0x1c458e=a5_0x3da9;return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x1c458e(0x1b8)](_0x11a678);}function date(_0x44c329){const _0x59620d=a5_0x3da9;if(!_0x44c329)return![];if(number(_0x44c329))_0x44c329=+_0x44c329;return!/Invalid|NaN/[_0x59620d(0x1b8)](new Date(_0x44c329)[_0x59620d(0x1b7)]());}function dateISO(_0x345380){const _0x2c99b0=a5_0x3da9;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x2c99b0(0x1b8)](_0x345380);}function isNumber(_0x4544cf){const _0x5ba154=a5_0x3da9;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x5ba154(0x1b8)](_0x4544cf);}function isString(_0x45a2ed){const _0x12d085=a5_0x3da9;return typeof _0x45a2ed===_0x12d085(0x1bb);}function digits(_0x316dc8){const _0x696cbf=a5_0x3da9;return/^\d+$/[_0x696cbf(0x1b8)](_0x316dc8);}function idCard(_0x57e8c7){const _0x314dda=a5_0x3da9;return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/[_0x314dda(0x1b8)](_0x57e8c7);}function carNo(_0x2bb1c7){const _0x27efa4=a5_0x3da9,_0x2ef037=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x560e37=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x2bb1c7[_0x27efa4(0x1b6)]===0x7)return _0x560e37[_0x27efa4(0x1b8)](_0x2bb1c7);if(_0x2bb1c7['length']===0x8)return _0x2ef037[_0x27efa4(0x1b8)](_0x2bb1c7);return![];}function amount(_0x399b1a){const _0x5a2099=a5_0x3da9;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x5a2099(0x1b8)](_0x399b1a);}function chinese(_0x109797){const _0x2d1ab2=a5_0x3da9,_0x22ea16=/^[\u4e00-\u9fa5]+$/gi;return _0x22ea16[_0x2d1ab2(0x1b8)](_0x109797);}function letter(_0x415ec4){return/^[a-zA-Z]*$/['test'](_0x415ec4);}function enOrNum(_0x245161){const _0x461ca1=a5_0x3da9,_0x214030=/^[0-9a-zA-Z]*$/g;return _0x214030[_0x461ca1(0x1b8)](_0x245161);}function contains(_0x5c3442,_0x52500a){const _0x1b1ed6=a5_0x3da9;return _0x5c3442[_0x1b1ed6(0x1c4)](_0x52500a)>=0x0;}function range(_0x11cac5,_0x59449b){return _0x11cac5>=_0x59449b[0x0]&&_0x11cac5<=_0x59449b[0x1];}function rangeLength(_0x3fbd09,_0x393908){const _0x3bc45e=a5_0x3da9;return _0x3fbd09[_0x3bc45e(0x1b6)]>=_0x393908[0x0]&&_0x3fbd09['length']<=_0x393908[0x1];}function landline(_0x512bb7){const _0x2026ff=a5_0x3da9,_0x57087c=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x57087c[_0x2026ff(0x1b8)](_0x512bb7);}function empty(_0x588c8d){const _0x264613=a5_0x3da9;switch(typeof _0x588c8d){case _0x264613(0x1c9):return!![];case _0x264613(0x1bb):if(_0x588c8d['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x264613(0x1b6)]==0x0)return!![];break;case _0x264613(0x1c0):if(!_0x588c8d)return!![];break;case _0x264613(0x1c5):if(_0x588c8d===0x0||isNaN(_0x588c8d))return!![];break;case _0x264613(0x1b9):if(_0x588c8d===null||_0x588c8d[_0x264613(0x1b6)]===0x0)return!![];for(const _0x405c65 in _0x588c8d){return![];}return!![];}return![];}function jsonString(_0x58f539){const _0x3f3a2d=a5_0x3da9;if(typeof _0x58f539===_0x3f3a2d(0x1bb))try{const _0xdbb0dc=JSON[_0x3f3a2d(0x1c2)](_0x58f539);if(typeof _0xdbb0dc==='object'&&_0xdbb0dc)return!![];return![];}catch(_0x566908){return![];}return![];}function array(_0x399418){const _0x41afda=a5_0x3da9;if(typeof Array[_0x41afda(0x1ac)]===_0x41afda(0x1b0))return Array[_0x41afda(0x1ac)](_0x399418);return Object[_0x41afda(0x1c7)][_0x41afda(0x1b7)][_0x41afda(0x1ab)](_0x399418)==='[object\x20Array]';}function object(_0x403fb2){const _0x36d4c0=a5_0x3da9;return Object[_0x36d4c0(0x1c7)][_0x36d4c0(0x1b7)]['call'](_0x403fb2)===_0x36d4c0(0x1b2);}function a5_0x3da9(_0x463b32,_0x43000a){const _0x4ab33e=a5_0x4ab3();return a5_0x3da9=function(_0x3da957,_0x532aba){_0x3da957=_0x3da957-0x1a8;let _0x30bd95=_0x4ab33e[_0x3da957];return _0x30bd95;},a5_0x3da9(_0x463b32,_0x43000a);}function code(_0x8cf25,_0x563cf7=0x6){const _0x39a0ab=a5_0x3da9;return new RegExp(_0x39a0ab(0x1ba)+_0x563cf7+'}$')[_0x39a0ab(0x1b8)](_0x8cf25);}function a5_0x4ab3(){const _0x3afd66=['1151244psNrkM','function','[object\x20RegExp]','[object\x20Object]','2402250swQGLT','22KyWRVH','split','length','toString','test','object','^\x5cd{','string','8rnapDD','596274ZCnQUj','3188850KZySdY','27pEJSXO','boolean','8Momvwj','parse','3367392IRxXlV','indexOf','number','includes','prototype','589227KTurdh','undefined','startsWith','charAt','catch','call','isArray','1784845aaklwL','2mGWDJa'];a5_0x4ab3=function(){return _0x3afd66;};return a5_0x4ab3();}function func(_0x279b24){const _0x1ec8ec=a5_0x3da9;return typeof _0x279b24===_0x1ec8ec(0x1b0);}function promise(_0x1b413f){const _0x547c4e=a5_0x3da9;return object(_0x1b413f)&&func(_0x1b413f['then'])&&func(_0x1b413f[_0x547c4e(0x1aa)]);}function image(_0x113d82){const _0x5631bc=a5_0x3da9,_0x4937d0=_0x113d82[_0x5631bc(0x1b5)]('?')[0x0],_0x425157=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x425157[_0x5631bc(0x1b8)](_0x4937d0);}function video(_0x22101a){const _0x221f92=a5_0x3da9,_0x8380d=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x8380d[_0x221f92(0x1b8)](_0x22101a);}function regExp(_0x5e014a){const _0x274392=a5_0x3da9;return _0x5e014a&&Object['prototype'][_0x274392(0x1b7)][_0x274392(0x1ab)](_0x5e014a)===_0x274392(0x1b1);}function isNumeric(_0x2af087,_0x26b872=0x0){const _0x3529f3=a5_0x3da9;if(typeof _0x2af087==='number')_0x2af087=_0x2af087[_0x3529f3(0x1b7)]();if(typeof _0x2af087!==_0x3529f3(0x1bb))return![];switch(_0x26b872){case 0x1:return/^\d+(\.\d+)?$/[_0x3529f3(0x1b8)](_0x2af087);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x2af087);case 0x3:return/^-?\d+$/[_0x3529f3(0x1b8)](_0x2af087);case 0x4:return/^\d+$/[_0x3529f3(0x1b8)](_0x2af087);case 0x5:return/^-\d+$/[_0x3529f3(0x1b8)](_0x2af087);default:return/^-?\d*\.?\d*$/['test'](_0x2af087)&&!_0x2af087[_0x3529f3(0x1a8)]('.')&&!_0x2af087['includes']('--');}}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- const a5_0x107532=a5_0x34b2;(function(_0x3a18e9,_0x4e8a5b){const _0x337f02=a5_0x34b2,_0x1bfd4c=_0x3a18e9();while(!![]){try{const _0xcf9b57=-parseInt(_0x337f02(0x126))/0x1*(parseInt(_0x337f02(0x12d))/0x2)+-parseInt(_0x337f02(0x13d))/0x3+parseInt(_0x337f02(0x139))/0x4+parseInt(_0x337f02(0x143))/0x5*(-parseInt(_0x337f02(0x12c))/0x6)+-parseInt(_0x337f02(0x13c))/0x7+parseInt(_0x337f02(0x141))/0x8*(parseInt(_0x337f02(0x14f))/0x9)+parseInt(_0x337f02(0x13e))/0xa;if(_0xcf9b57===_0x4e8a5b)break;else _0x1bfd4c['push'](_0x1bfd4c['shift']());}catch(_0x26ff0e){_0x1bfd4c['push'](_0x1bfd4c['shift']());}}}(a5_0x4502,0xabdae));function fmtNum(_0x3698fc){const _0x4f9cfa=a5_0x34b2;if(_0x3698fc==0x0)return'0';if(!_0x3698fc)return'';let _0x14dd84=typeof _0x3698fc===_0x4f9cfa(0x132)?parseFloat(_0x3698fc):_0x3698fc;if(isNaN(_0x14dd84))return'';return _0x14dd84['toLocaleString'](_0x4f9cfa(0x128),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x58f641,_0x50260c=![]){const _0x4ab5de=a5_0x34b2;let _0xaf5669={'surname':'','givenName':''};if(_0x50260c){const _0x571cc2=_0x58f641[_0x4ab5de(0x123)](',')?_0x58f641['split'](','):_0x58f641[_0x4ab5de(0x120)](/\s+/);_0x571cc2['length']>=0x2&&(_0xaf5669[_0x4ab5de(0x133)]=_0x571cc2[0x0]['trim'](),_0xaf5669[_0x4ab5de(0x11e)]=_0x571cc2[0x1][_0x4ab5de(0x11d)]());}else{const _0xdc96ec=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x25e053=0x0;_0x25e053<_0xdc96ec[_0x4ab5de(0x114)];_0x25e053++){const _0x5cc9c3=_0xdc96ec[_0x25e053];if(_0x58f641[_0x4ab5de(0x117)](_0x5cc9c3))return _0xaf5669[_0x4ab5de(0x133)]=_0x5cc9c3,_0xaf5669[_0x4ab5de(0x11e)]=_0x58f641[_0x4ab5de(0x136)](_0x5cc9c3[_0x4ab5de(0x114)])[_0x4ab5de(0x11d)](),_0xaf5669;}const _0x4ffb80=_0x58f641[_0x4ab5de(0x120)]('\x20');if(_0x4ffb80[_0x4ab5de(0x114)]===0x1){const _0x7dab90=_0x58f641[_0x4ab5de(0x12b)](/[\u4e00-\u9fa5]/);_0xaf5669['surname']=_0x7dab90?_0x7dab90[0x0]:'',_0xaf5669[_0x4ab5de(0x11e)]=_0x58f641['replace'](_0xaf5669[_0x4ab5de(0x133)],'')['trim']();}else _0xaf5669[_0x4ab5de(0x133)]=_0x4ffb80[0x0],_0xaf5669['givenName']=_0x4ffb80[_0x4ab5de(0x10d)](0x1)[_0x4ab5de(0x115)]('\x20');}return _0xaf5669;}function modifyKeys(_0x3743f0,_0x25f3ec={'strCode':a5_0x107532(0x11f),'strFjbh':a5_0x107532(0x127),'strGuid':a5_0x107532(0x116),'strValue':a5_0x107532(0x124)}){const _0x31a98f=a5_0x107532;if(!_0x3743f0[_0x31a98f(0x114)]||_0x3743f0===null)return[];const _0x5c71c8=_0x3743f0[_0x31a98f(0x129)](_0x5327ac=>{const _0x59447f=_0x31a98f,_0x33ea11={};for(const _0x5bb7f2 in _0x5327ac){_0x25f3ec[_0x59447f(0x10f)](_0x5bb7f2)?_0x33ea11[_0x25f3ec[_0x5bb7f2]]=_0x5327ac[_0x5bb7f2]:_0x33ea11[_0x5bb7f2]=_0x5327ac[_0x5bb7f2];}return _0x33ea11;});return _0x5c71c8;}function sliceArray(_0x4bdfe1,_0x2aaf85,_0x3cbcd4){const _0x4cc201=a5_0x107532;if(_0x2aaf85<=0x0)return console['error'](_0x4cc201(0x147)),[];return _0x3cbcd4?_0x4bdfe1[_0x4cc201(0x10d)](0x0,_0x2aaf85):_0x4bdfe1[_0x4cc201(0x10d)](-_0x2aaf85);}function findDataByData(_0x566fbf,_0x51095e,_0x383f8a){const _0x219352=a5_0x107532,_0x268133=_0x566fbf[_0x219352(0x144)](_0xe622a2=>_0xe622a2[_0x383f8a]===_0x51095e);return _0x268133||null;}function splitArray(_0x307d41,_0x38b975){const _0x53ee4b=a5_0x107532,_0x489b6a=[];for(let _0x5d7241=0x0;_0x5d7241<_0x307d41[_0x53ee4b(0x114)];_0x5d7241+=_0x38b975){_0x489b6a[_0x53ee4b(0x14e)](_0x307d41['slice'](_0x5d7241,_0x5d7241+_0x38b975));}return _0x489b6a;}function getProxyType(_0x3ebfbe){const _0x479924=a5_0x107532;return Object[_0x479924(0x134)]['toString'][_0x479924(0x125)](_0x3ebfbe)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x301c6f,_0x517346=0x1f4,_0x3eb6f6=![]){const _0x49aeda=a5_0x107532;if(timeout!==null)clearTimeout(timeout);if(_0x3eb6f6){const _0x299843=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x517346);if(_0x299843)typeof _0x301c6f===_0x49aeda(0x12f)&&_0x301c6f();}else timeout=setTimeout(()=>{const _0x1560bf=_0x49aeda;typeof _0x301c6f===_0x1560bf(0x12f)&&_0x301c6f();},_0x517346);}function urlEncode(_0x13d037={}){const _0x46a862=a5_0x107532,_0x5c0d9a=[];for(const _0xb5f65c in _0x13d037){const _0x5c6b2c=_0x13d037[_0xb5f65c];if(!_0x5c6b2c)continue;isArray(_0x5c6b2c)?_0x5c6b2c[_0x46a862(0x118)](_0x15d4dc=>{const _0x24b873=_0x46a862;_0x5c0d9a[_0x24b873(0x14e)](_0xb5f65c+'='+_0x15d4dc);}):_0x5c0d9a[_0x46a862(0x14e)](_0xb5f65c+'='+_0x5c6b2c);}return _0x5c0d9a[_0x46a862(0x115)]('&');}function dateFormat(_0x1423d8,_0x3a7fbd){const _0x2092eb=a5_0x107532,_0x1d219c=new Date(_0x3a7fbd),_0xc25146={'Y+':_0x1d219c[_0x2092eb(0x11c)]()['toString'](),'m+':(_0x1d219c['getMonth']()+0x1)[_0x2092eb(0x13f)](),'d+':_0x1d219c[_0x2092eb(0x131)]()[_0x2092eb(0x13f)](),'H+':_0x1d219c[_0x2092eb(0x150)]()['toString'](),'M+':_0x1d219c[_0x2092eb(0x113)]()[_0x2092eb(0x13f)](),'S+':_0x1d219c[_0x2092eb(0x151)]()[_0x2092eb(0x13f)]()};let _0x5176be;for(let _0x5a0a67 in _0xc25146){_0x5176be=new RegExp('('+_0x5a0a67+')')[_0x2092eb(0x142)](_0x1423d8);_0x5176be&&(_0x1423d8=_0x1423d8[_0x2092eb(0x138)](_0x5176be[0x1],_0x5176be[0x1][_0x2092eb(0x114)]==0x1?_0xc25146[_0x5a0a67]:_0xc25146[_0x5a0a67][_0x2092eb(0x146)](_0x5176be[0x1]['length'],'0')));;};return _0x1423d8;}function formatDate(_0x1cf7f8,_0x484278='YYYY-MM-DD',_0x26f371={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x21801d=a5_0x107532,_0x121519=new Date(_0x1cf7f8),_0x548b27=_0x121519[_0x21801d(0x11c)](),_0x12f250=_0x121519[_0x21801d(0x10e)]()+0x1,_0xe57d40=_0x121519[_0x21801d(0x131)](),_0xbee0ef=_0x12f250<0xa?'0'+_0x12f250:_0x12f250,_0x4571a5=_0xe57d40<0xa?'0'+_0xe57d40:_0xe57d40;let _0x30b81b=_0x484278[_0x21801d(0x138)](_0x21801d(0x13b),_0x548b27)[_0x21801d(0x138)]('MM',_0xbee0ef)[_0x21801d(0x138)]('DD',_0x4571a5);return _0x30b81b=_0x30b81b[_0x21801d(0x138)](/-MM/g,_0x26f371['monthTitle'])[_0x21801d(0x138)](/-DD/g,_0x26f371['dayTitle'])[_0x21801d(0x138)](_0x21801d(0x13b)+_0x26f371[_0x21801d(0x130)],'')[_0x21801d(0x138)]('MM'+_0x26f371['monthTitle'],'')[_0x21801d(0x138)]('DD'+_0x26f371[_0x21801d(0x12e)],''),_0x30b81b;}function a5_0x4502(){const _0x5306eb=['find','getTime','padStart','Quantity\x20should\x20be\x20greater\x20than\x200.','parse','floor','number','toFixed','setHours','_qh','push','9QvsjdI','getHours','getSeconds','除数不能为0','slice','getMonth','hasOwnProperty','boolean','left','random','getMinutes','length','join','value','startsWith','forEach','无效的操作符,操作符应为1、2、3或4','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','stringify','getFullYear','trim','givenName','code','split','both','shift','includes','label','call','255113BcCBmP','fjbh','en-US','map','right','match','423126sIBjhM','2ObIDOQ','dayTitle','function','yearTitle','getDate','string','surname','prototype','object','substring','max','replace','2466608luveqz','round','YYYY','4294668tIVKtG','271896yUzdjW','5286480KxiOFT','toString','endsWith','6399768gMiQfT','exec','20utiSrV'];a5_0x4502=function(){return _0x5306eb;};return a5_0x4502();}function a5_0x34b2(_0x449eb9,_0xc5fa50){const _0x4502a9=a5_0x4502();return a5_0x34b2=function(_0x34b211,_0x1d7701){_0x34b211=_0x34b211-0x10c;let _0x27fe9c=_0x4502a9[_0x34b211];return _0x27fe9c;},a5_0x34b2(_0x449eb9,_0xc5fa50);}function compareDates(_0x1d5968,_0x4e1201){const _0x188420=a5_0x107532;_0x1d5968=new Date(_0x1d5968);!_0x4e1201?_0x4e1201=new Date():_0x4e1201=new Date(_0x4e1201);_0x1d5968[_0x188420(0x14c)](0x0,0x0,0x0,0x0),_0x4e1201[_0x188420(0x14c)](0x0,0x0,0x0,0x0);var _0x5aaed2=_0x1d5968[_0x188420(0x145)](),_0x4160ae=_0x4e1201[_0x188420(0x145)]();if(_0x5aaed2<_0x4160ae)return-0x1;else return _0x5aaed2>_0x4160ae?0x1:0x0;}function getDaysBetween(_0x564ce5,_0x2c566f){const _0x34b7d4=a5_0x107532,_0x4023ac=new Date(_0x564ce5),_0x56ebef=new Date(_0x2c566f),_0x25fa46=Math['abs'](_0x4023ac['getTime']()-_0x56ebef['getTime']()),_0xa77c40=Math[_0x34b7d4(0x149)](_0x25fa46/(0x3e8*0x3c*0x3c*0x18));return _0xa77c40+0x1;}function chineseNumeral(_0x265e6a){const _0xffc45a=a5_0x107532,_0x591b3b=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x20509d=['','拾','佰','仟'],_0x2e6f6a=['','万','亿','兆'];let _0x3ff2b9=Math[_0xffc45a(0x149)](_0x265e6a),_0x1e2685=Math[_0xffc45a(0x13a)]((_0x265e6a-_0x3ff2b9)*0x64),_0x9add4a='';for(let _0x351bed=0x0;_0x3ff2b9>0x0;_0x351bed++){let _0x10e980='',_0x27d7ec=_0x3ff2b9%0x2710;_0x3ff2b9=Math['floor'](_0x3ff2b9/0x2710);for(let _0x22b40e=0x0;_0x27d7ec>0x0;_0x22b40e++){let _0x1ac991=_0x27d7ec%0xa;_0x10e980=(_0x1ac991?_0x591b3b[_0x1ac991]+_0x20509d[_0x22b40e]:'')+_0x10e980,_0x27d7ec=Math[_0xffc45a(0x149)](_0x27d7ec/0xa);}_0x9add4a=_0x10e980+(_0x10e980?_0x2e6f6a[_0x351bed]:_0x2e6f6a[_0x351bed]&&!_0x9add4a[_0xffc45a(0x123)]('零')?'零':'')+_0x9add4a;}_0x9add4a+=_0x9add4a?'元':'零元';if(_0x1e2685>0x0){let _0x2bd610=Math[_0xffc45a(0x149)](_0x1e2685/0xa),_0x52dff8=_0x1e2685%0xa;_0x9add4a+=(_0x2bd610?_0x591b3b[_0x2bd610]+'角':'')+(_0x52dff8?_0x591b3b[_0x52dff8]+'分':'');}else _0x9add4a+='整';return _0x9add4a['replace'](/零{2,}/g,'零')[_0xffc45a(0x138)](/零元/,'元');}function getMonthDate(_0x2c94b3){const _0x2c10d1=a5_0x107532;(!_0x2c94b3||_0x2c94b3['trim']()==='')&&(_0x2c94b3=new Date()[_0x2c10d1(0x11c)]()+'-'+(new Date()[_0x2c10d1(0x10e)]()+0x1));let _0x48a0a8=[],[_0x160a6e,_0x526aaf]=_0x2c94b3[_0x2c10d1(0x120)]('-')[_0x2c10d1(0x129)](Number),_0x5630da=new Date(_0x160a6e,_0x526aaf,0x0),_0x1133d7=_0x5630da[_0x2c10d1(0x131)]();for(let _0x236019=0x1;_0x236019<=_0x1133d7;_0x236019++){let _0x5f2ede=_0x236019<0xa?'0'+_0x236019:''+_0x236019,_0x10408c=_0x526aaf<0xa?'0'+_0x526aaf:''+_0x526aaf;_0x48a0a8[_0x2c10d1(0x14e)]({'date':_0x160a6e+'-'+_0x10408c+'-'+_0x5f2ede,'disable':!![]});}return _0x48a0a8;}function getToday(_0x338870){const _0x453762=a5_0x107532;var _0x44a112=new Date(),_0x4db6be=String(_0x44a112[_0x453762(0x131)]())[_0x453762(0x146)](0x2,'0'),_0x2a84c0=String(_0x44a112[_0x453762(0x10e)]()+0x1)[_0x453762(0x146)](0x2,'0'),_0x10ab2b=_0x44a112[_0x453762(0x11c)]();return _0x44a112=_0x10ab2b+'-'+_0x2a84c0+'-'+_0x4db6be,_0x44a112;}function resetObject(_0x3fce41){const _0x1b0ea4=a5_0x107532;let _0x487ed0=JSON[_0x1b0ea4(0x148)](JSON[_0x1b0ea4(0x11b)](_0x3fce41));for(const _0xc105c0 in _0x487ed0){if(typeof _0x487ed0[_0xc105c0]===_0x1b0ea4(0x14a))_0x487ed0[_0xc105c0]=0x0;else{if(typeof _0x487ed0[_0xc105c0]===_0x1b0ea4(0x110))_0x487ed0[_0xc105c0]=![];else{if(Array['isArray'](_0x487ed0[_0xc105c0]))_0x487ed0[_0xc105c0]=[];else typeof _0x487ed0[_0xc105c0]===_0x1b0ea4(0x135)&&_0x487ed0[_0xc105c0]!==null?resetObject(_0x487ed0[_0xc105c0]):_0x487ed0[_0xc105c0]='';}}}return _0x487ed0;}function preciseOperation(_0x3f2f42,_0x331a65,_0x156f36,_0x2b8504=0xf4240){const _0x2f359f=a5_0x107532;if(isNaN(_0x3f2f42)||isNaN(_0x331a65))return NaN;if(!isFinite(_0x3f2f42)||!isFinite(_0x331a65))return NaN;let _0x57c4e5=BigInt(Math[_0x2f359f(0x13a)](_0x3f2f42*_0x2b8504)),_0x20e534=BigInt(Math[_0x2f359f(0x13a)](_0x331a65*_0x2b8504)),_0x4b4061;switch(_0x156f36){case 0x1:_0x4b4061=_0x57c4e5+_0x20e534;break;case 0x2:_0x4b4061=_0x57c4e5-_0x20e534;break;case 0x3:_0x4b4061=_0x57c4e5*_0x20e534;break;case 0x4:if(_0x20e534===0x0n)throw new Error(_0x2f359f(0x10c));_0x4b4061=_0x57c4e5/_0x20e534;break;default:throw new Error(_0x2f359f(0x119));}return Number(_0x4b4061)/_0x2b8504;}function preciseSum(_0x12411c){const _0x28274a=a5_0x107532;let _0x367cb7=0x0;for(const _0x10a761 of _0x12411c){let _0x54dacc=0x0;if(typeof _0x10a761==='string'){const _0x3d6138=parseFloat(_0x10a761);!isNaN(_0x3d6138)&&(_0x54dacc=_0x3d6138);}else typeof _0x10a761===_0x28274a(0x14a)&&(_0x54dacc=_0x10a761);_0x367cb7=preciseOperation(_0x367cb7,_0x54dacc,0x1);}return _0x367cb7;}function getRelativeDate(_0x368ece,_0x19675b=0x0){const _0x93c092=a5_0x107532,_0x30f3d1=new Date(_0x368ece);_0x30f3d1['setDate'](_0x30f3d1[_0x93c092(0x131)]()+_0x19675b);const _0x4520d6=_0x30f3d1[_0x93c092(0x11c)](),_0x3b2ffb=(_0x30f3d1['getMonth']()+0x1)[_0x93c092(0x13f)]()[_0x93c092(0x146)](0x2,'0'),_0xe603ff=_0x30f3d1[_0x93c092(0x131)]()[_0x93c092(0x13f)]()[_0x93c092(0x146)](0x2,'0');return _0x4520d6+'-'+_0x3b2ffb+'-'+_0xe603ff;}function validateFields(_0x1dad03,_0x39d2ff,_0x29fa86=''){for(let _0x5719c0 of _0x39d2ff){if(_0x1dad03[_0x5719c0]===_0x29fa86)return!![];}return![];}function mergeObjects(_0x2bf3a1,_0x428125){for(const _0x477897 in _0x2bf3a1){_0x428125['hasOwnProperty'](_0x477897)&&(_0x2bf3a1[_0x477897]=_0x428125[_0x477897]);}return _0x2bf3a1;}const formatToDecimal=(_0x569eac,_0x4f0ecd=0x2)=>{const _0x54789d=a5_0x107532;if(isNaN(_0x4f0ecd)||_0x4f0ecd<0x0)return _0x569eac;let _0x59fcff=Number(_0x569eac);if(!isFinite(_0x59fcff))return _0x569eac;return _0x4f0ecd=Math[_0x54789d(0x137)](0x0,Math['floor'](_0x4f0ecd)),_0x59fcff[_0x54789d(0x14b)](_0x4f0ecd);};function findKeysEndingWith(_0xf12d58,_0x5be60c=a5_0x107532(0x14d)){const _0x14e118=a5_0x107532;let _0x25983c=[];for(var _0x310f54 in _0xf12d58){if(_0xf12d58[_0x14e118(0x10f)](_0x310f54)){if(_0x310f54[_0x14e118(0x140)](_0x5be60c))_0x25983c[_0x14e118(0x14e)](_0x310f54);}}return _0x25983c;}function guid(_0x552eb5=0x20,_0x17bb00=!![],_0x23ef4f=null){const _0x5546ec=a5_0x107532,_0x50bda9=_0x5546ec(0x11a)[_0x5546ec(0x120)](''),_0x11ada5=[];_0x23ef4f=_0x23ef4f||_0x50bda9['length'];if(_0x552eb5){for(let _0x3d79f1=0x0;_0x3d79f1<_0x552eb5;_0x3d79f1++)_0x11ada5[_0x3d79f1]=_0x50bda9[0x0|Math['random']()*_0x23ef4f];}else{let _0x225753;_0x11ada5[0x8]=_0x11ada5[0xd]=_0x11ada5[0x12]=_0x11ada5[0x17]='-',_0x11ada5[0xe]='4';for(let _0x39b6e2=0x0;_0x39b6e2<0x24;_0x39b6e2++){!_0x11ada5[_0x39b6e2]&&(_0x225753=0x0|Math[_0x5546ec(0x112)]()*0x10,_0x11ada5[_0x39b6e2]=_0x50bda9[_0x39b6e2==0x13?_0x225753&0x3|0x8:_0x225753]);}}if(_0x17bb00)return _0x11ada5[_0x5546ec(0x122)](),'u'+_0x11ada5[_0x5546ec(0x115)]('');return _0x11ada5[_0x5546ec(0x115)]('');}function trim(_0x5959b0,_0x3f9aed=a5_0x107532(0x121)){const _0x447e53=a5_0x107532;_0x5959b0=String(_0x5959b0);if(_0x3f9aed=='both')return _0x5959b0[_0x447e53(0x138)](/^\s+|\s+$/g,'');if(_0x3f9aed==_0x447e53(0x111))return _0x5959b0[_0x447e53(0x138)](/^\s*/,'');if(_0x3f9aed==_0x447e53(0x12a))return _0x5959b0[_0x447e53(0x138)](/(\s*$)/g,'');if(_0x3f9aed=='all')return _0x5959b0['replace'](/\s+/g,'');return _0x5959b0;}export default{'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
1
+ const a6_0x3625e3=a6_0x2219;(function(_0x6f0a20,_0x4254e1){const _0x5dfa05=a6_0x2219,_0x48af7e=_0x6f0a20();while(!![]){try{const _0x1fad82=-parseInt(_0x5dfa05(0x212))/0x1+-parseInt(_0x5dfa05(0x1cd))/0x2*(parseInt(_0x5dfa05(0x1d8))/0x3)+-parseInt(_0x5dfa05(0x1fe))/0x4*(-parseInt(_0x5dfa05(0x1c7))/0x5)+parseInt(_0x5dfa05(0x1f4))/0x6*(-parseInt(_0x5dfa05(0x1cc))/0x7)+-parseInt(_0x5dfa05(0x1fd))/0x8*(-parseInt(_0x5dfa05(0x21f))/0x9)+parseInt(_0x5dfa05(0x1e3))/0xa+parseInt(_0x5dfa05(0x21e))/0xb;if(_0x1fad82===_0x4254e1)break;else _0x48af7e['push'](_0x48af7e['shift']());}catch(_0x9df004){_0x48af7e['push'](_0x48af7e['shift']());}}}(a6_0x1412,0x1992c));function a6_0x1412(){const _0x2ab517=['除数不能为0','getTime','parse','hasOwnProperty','Nationality','getHours','stringify','360gTMiAL','setHours','无效的操作符,操作符应为1、2、3或4','split','EnName','GivenName','value','number','fjbh','slice','right','1924590bjnfEn','match','trim','forEach','Birth','Surname','DateOfBirth','getMinutes','dayTitle','nationality','code','ExpiryDate','startsWith','EnglishName','getDate','endsWith','Quantity\x20should\x20be\x20greater\x20than\x200.','10158HHbKNH','string','getSeconds','BirthDate','YYYY','toLocaleString','includes','FamilyName','CnName','32knZgqW','10732lZEVEg','label','givenNameEn','givenName','object','sex','isArray','exec','toString','find','padStart','setDate','getFullYear','ValidDate','FirstName','max','Number','substring','DateOfExpiration','all','26419bHOfOx','boolean','Birthday','monthTitle','IdNum','getMonth','test','error','round','expDate','en-US','name','1260501xzgMma','15876KBJjqw','prototype','floor','birthDate','shift','surname','length','abs','call','both','Sex','_qh','surnameEn','englishName','25qZYrbi','function','Name','join','map','406DKOpsX','1636oUeQtJ','yyyy-mm-dd','push','replace'];a6_0x1412=function(){return _0x2ab517;};return a6_0x1412();}function fmtNum(_0x111d49){const _0x32dfaa=a6_0x2219;if(_0x111d49==0x0)return'0';if(!_0x111d49)return'';let _0x431c34=typeof _0x111d49===_0x32dfaa(0x1f5)?parseFloat(_0x111d49):_0x111d49;if(isNaN(_0x431c34))return'';return _0x431c34[_0x32dfaa(0x1f9)](_0x32dfaa(0x21c),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x107939,_0xfdd8f=![]){const _0x3df20c=a6_0x2219;let _0x4b8c96={'surname':'','givenName':''};if(_0xfdd8f){const _0x3c804a=_0x107939[_0x3df20c(0x1fa)](',')?_0x107939['split'](','):_0x107939[_0x3df20c(0x1db)](/\s+/);_0x3c804a[_0x3df20c(0x1bf)]>=0x2&&(_0x4b8c96[_0x3df20c(0x224)]=_0x3c804a[0x0][_0x3df20c(0x1e5)](),_0x4b8c96['givenName']=_0x3c804a[0x1][_0x3df20c(0x1e5)]());}else{const _0x2a3a27=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x53bd57=0x0;_0x53bd57<_0x2a3a27[_0x3df20c(0x1bf)];_0x53bd57++){const _0x4a4419=_0x2a3a27[_0x53bd57];if(_0x107939[_0x3df20c(0x1ef)](_0x4a4419))return _0x4b8c96[_0x3df20c(0x224)]=_0x4a4419,_0x4b8c96[_0x3df20c(0x201)]=_0x107939['substring'](_0x4a4419[_0x3df20c(0x1bf)])[_0x3df20c(0x1e5)](),_0x4b8c96;}const _0x5efb40=_0x107939[_0x3df20c(0x1db)]('\x20');if(_0x5efb40[_0x3df20c(0x1bf)]===0x1){const _0x298394=_0x107939[_0x3df20c(0x1e4)](/[\u4e00-\u9fa5]/);_0x4b8c96['surname']=_0x298394?_0x298394[0x0]:'',_0x4b8c96[_0x3df20c(0x201)]=_0x107939['replace'](_0x4b8c96[_0x3df20c(0x224)],'')['trim']();}else _0x4b8c96[_0x3df20c(0x224)]=_0x5efb40[0x0],_0x4b8c96[_0x3df20c(0x201)]=_0x5efb40['slice'](0x1)[_0x3df20c(0x1ca)]('\x20');}return _0x4b8c96;}function timeFormat(_0x4b05cd=null,_0x50cccb=a6_0x3625e3(0x1ce)){const _0x3ffefe=a6_0x3625e3;let _0x33280a;if(!_0x4b05cd)_0x33280a=new Date();else{if(/^\d{10}$/[_0x3ffefe(0x218)](_0x4b05cd?.['toString']()[_0x3ffefe(0x1e5)]()))_0x33280a=new Date(_0x4b05cd*0x3e8);else{if(typeof _0x4b05cd===_0x3ffefe(0x1f5)&&/^\d+$/[_0x3ffefe(0x218)](_0x4b05cd['trim']()))_0x33280a=new Date(Number(_0x4b05cd));else typeof _0x4b05cd===_0x3ffefe(0x1f5)&&_0x4b05cd[_0x3ffefe(0x1fa)]('-')&&!_0x4b05cd[_0x3ffefe(0x1fa)]('T')?_0x33280a=new Date(_0x4b05cd[_0x3ffefe(0x1d0)](/-/g,'/')):_0x33280a=new Date(_0x4b05cd);}}const _0x31b4e4={'y':_0x33280a['getFullYear']()[_0x3ffefe(0x206)](),'m':(_0x33280a[_0x3ffefe(0x217)]()+0x1)[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0'),'d':_0x33280a['getDate']()['toString']()['padStart'](0x2,'0'),'h':_0x33280a[_0x3ffefe(0x1d6)]()['toString']()['padStart'](0x2,'0'),'M':_0x33280a[_0x3ffefe(0x1ea)]()[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0'),'s':_0x33280a[_0x3ffefe(0x1f6)]()[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0')};for(const _0x25dcd5 in _0x31b4e4){const [_0x57efdb]=new RegExp(_0x25dcd5+'+')[_0x3ffefe(0x205)](_0x50cccb)||[];if(_0x57efdb){const _0x2ea4ae=_0x25dcd5==='y'&&_0x57efdb[_0x3ffefe(0x1bf)]===0x2?0x2:0x0;_0x50cccb=_0x50cccb[_0x3ffefe(0x1d0)](_0x57efdb,_0x31b4e4[_0x25dcd5]['slice'](_0x2ea4ae));}}return _0x50cccb;}function handleOCRData(_0x30892e,_0x440e72){const _0x202759=a6_0x3625e3,_0x498cf8=_0x4b81a6=>{const _0x1662a1=a6_0x2219,_0x118f1d=_0x4b81a6[_0x1662a1(0x20f)](0x0,0x4),_0x10d4c3=_0x4b81a6[_0x1662a1(0x20f)](0x4,0x6),_0x197e87=_0x4b81a6[_0x1662a1(0x20f)](0x6,0x8);return _0x118f1d+'-'+_0x10d4c3+'-'+_0x197e87;};let _0x1832cb={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x30892e===0x0||_0x30892e===0x1||_0x30892e===0x2){if(_0x440e72[_0x202759(0x1c3)]==='M')_0x1832cb['sex']='男';else _0x1832cb['sex']='女';}debugger;_0x30892e===0x0&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x224)]=_0x440e72[_0x202759(0x1fb)],_0x1832cb[_0x202759(0x201)]=_0x440e72[_0x202759(0x20c)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x1ee)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x1f7)],_0x1832cb['nationality']=_0x440e72[_0x202759(0x1d5)],_0x1832cb[_0x202759(0x1df)]=_0x440e72['PassportNo']);if(_0x30892e===0x1){_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x224)]=_0x440e72[_0x202759(0x1e8)],_0x1832cb[_0x202759(0x201)]=_0x440e72[_0x202759(0x1dd)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x210)],_0x1832cb['birthDate']=_0x440e72[_0x202759(0x1e9)],_0x1832cb[_0x202759(0x1ec)]=_0x440e72[_0x202759(0x1d5)],_0x1832cb[_0x202759(0x1df)]=_0x440e72['ID'];if(!_0x440e72[_0x202759(0x1e8)]&&!_0x440e72[_0x202759(0x1dd)]){const _0x395a0a=splitName(_0x440e72['Name']);_0x1832cb['surname']=_0x395a0a['surname'],_0x1832cb[_0x202759(0x201)]=_0x395a0a[_0x202759(0x201)];}if(!_0x440e72[_0x202759(0x1f0)])_0x1832cb[_0x202759(0x1c6)]=_0x440e72[_0x202759(0x1c9)];}_0x30892e===0x2&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1fc)],_0x1832cb['englishName']=_0x440e72[_0x202759(0x1dc)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb[_0x202759(0x1df)]=_0x440e72[_0x202759(0x216)]);_0x30892e===0x3&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x203)]=_0x440e72[_0x202759(0x1c3)],_0x1832cb['expDate']=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x1e7)],_0x1832cb['number']=_0x440e72[_0x202759(0x216)]);_0x30892e===0x4&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x1c6)]=_0x440e72[_0x202759(0x1f0)],_0x1832cb['sex']=_0x440e72[_0x202759(0x1c3)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb['number']=_0x440e72[_0x202759(0x20e)]);_0x30892e===0x5&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72['Name'],_0x1832cb[_0x202759(0x1c6)]=_0x440e72['EnglishName'],_0x1832cb[_0x202759(0x203)]=_0x440e72[_0x202759(0x1c3)],_0x1832cb['expDate']=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb[_0x202759(0x1df)]=_0x440e72[_0x202759(0x20e)]);if(_0x30892e===0x2||_0x30892e===0x3||_0x30892e===0x4||_0x30892e===0x5){const _0x5c64b2=splitName(_0x1832cb[_0x202759(0x21d)]);_0x1832cb[_0x202759(0x224)]=_0x5c64b2['surname'],_0x1832cb[_0x202759(0x201)]=_0x5c64b2['givenName'];}if(_0x30892e===0x2||_0x30892e===0x4||_0x30892e===0x5){const _0x23807e=splitName(_0x1832cb[_0x202759(0x1c6)],!![]);_0x1832cb[_0x202759(0x1c5)]=_0x23807e[_0x202759(0x224)],_0x1832cb[_0x202759(0x200)]=_0x23807e[_0x202759(0x201)];}if(_0x30892e===0x0||_0x30892e===0x1){if(_0x1832cb['birthDate']!=='')_0x1832cb[_0x202759(0x222)]=_0x498cf8(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb['expDate']!=='')_0x1832cb[_0x202759(0x21b)]=_0x498cf8(_0x1832cb[_0x202759(0x21b)]);}if(_0x30892e===0x2||_0x30892e===0x3){if(_0x1832cb[_0x202759(0x222)]!=='')_0x1832cb['birthDate']=timeFormat(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb[_0x202759(0x21b)]!=='')_0x1832cb['expDate']=timeFormat(_0x1832cb[_0x202759(0x21b)]);}if(_0x30892e===0x4||_0x30892e===0x5){if(_0x1832cb[_0x202759(0x222)]!=='')_0x1832cb[_0x202759(0x222)]=timeFormat(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb[_0x202759(0x21b)]!==''){let _0x32f4f2=_0x1832cb['expDate'][_0x202759(0x1db)]('-');_0x1832cb['expDate']=timeFormat(_0x32f4f2[0x1]);}}return{'type':_0x30892e,'data':_0x1832cb};}function modifyKeys(_0x307c02,_0x4b5947={'strCode':a6_0x3625e3(0x1ed),'strFjbh':a6_0x3625e3(0x1e0),'strGuid':a6_0x3625e3(0x1de),'strValue':a6_0x3625e3(0x1ff)}){const _0x3459f9=a6_0x3625e3;if(!_0x307c02[_0x3459f9(0x1bf)]||_0x307c02===null)return[];const _0x1fe738=_0x307c02[_0x3459f9(0x1cb)](_0x1ff070=>{const _0xf0da6b=_0x3459f9,_0x2fee13={};for(const _0x5d871a in _0x1ff070){_0x4b5947[_0xf0da6b(0x1d4)](_0x5d871a)?_0x2fee13[_0x4b5947[_0x5d871a]]=_0x1ff070[_0x5d871a]:_0x2fee13[_0x5d871a]=_0x1ff070[_0x5d871a];}return _0x2fee13;});return _0x1fe738;}function sliceArray(_0x4b192e,_0x2f9f5a,_0x3015c7){const _0x118065=a6_0x3625e3;if(_0x2f9f5a<=0x0)return console[_0x118065(0x219)](_0x118065(0x1f3)),[];return _0x3015c7?_0x4b192e['slice'](0x0,_0x2f9f5a):_0x4b192e['slice'](-_0x2f9f5a);}function findDataByData(_0x1d4409,_0x5ba7da,_0x4298ec){const _0x5513df=a6_0x3625e3,_0x9f2c05=_0x1d4409[_0x5513df(0x207)](_0x1f67a2=>_0x1f67a2[_0x4298ec]===_0x5ba7da);return _0x9f2c05||null;}function splitArray(_0x30a4bb,_0x52d10f){const _0x108290=a6_0x3625e3,_0x57310d=[];for(let _0x39ca9e=0x0;_0x39ca9e<_0x30a4bb[_0x108290(0x1bf)];_0x39ca9e+=_0x52d10f){_0x57310d[_0x108290(0x1cf)](_0x30a4bb[_0x108290(0x1e1)](_0x39ca9e,_0x39ca9e+_0x52d10f));}return _0x57310d;}function getProxyType(_0x344a07){const _0x30d72b=a6_0x3625e3;return Object[_0x30d72b(0x220)][_0x30d72b(0x206)][_0x30d72b(0x1c1)](_0x344a07)[_0x30d72b(0x1e1)](0x8,-0x1);}let timeout=null;function debounce(_0x34d297,_0x127b7b=0x1f4,_0x5218f5=![]){const _0x5dce28=a6_0x3625e3;if(timeout!==null)clearTimeout(timeout);if(_0x5218f5){const _0x4e54bf=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x127b7b);if(_0x4e54bf)typeof _0x34d297===_0x5dce28(0x1c8)&&_0x34d297();}else timeout=setTimeout(()=>{const _0x2c06fb=_0x5dce28;typeof _0x34d297===_0x2c06fb(0x1c8)&&_0x34d297();},_0x127b7b);}function urlEncode(_0x3c8ce8={}){const _0x2265ed=a6_0x3625e3,_0x29b480=[];for(const _0x241be0 in _0x3c8ce8){const _0x130cd8=_0x3c8ce8[_0x241be0];if(!_0x130cd8)continue;isArray(_0x130cd8)?_0x130cd8[_0x2265ed(0x1e6)](_0x4fcca2=>{const _0x3816e9=_0x2265ed;_0x29b480[_0x3816e9(0x1cf)](_0x241be0+'='+_0x4fcca2);}):_0x29b480[_0x2265ed(0x1cf)](_0x241be0+'='+_0x130cd8);}return _0x29b480[_0x2265ed(0x1ca)]('&');}function dateFormat(_0x5a746e,_0x33a732){const _0x28d850=a6_0x3625e3,_0x45d1f0=new Date(_0x33a732),_0x42ee38={'Y+':_0x45d1f0[_0x28d850(0x20a)]()[_0x28d850(0x206)](),'m+':(_0x45d1f0[_0x28d850(0x217)]()+0x1)[_0x28d850(0x206)](),'d+':_0x45d1f0['getDate']()['toString'](),'H+':_0x45d1f0[_0x28d850(0x1d6)]()[_0x28d850(0x206)](),'M+':_0x45d1f0[_0x28d850(0x1ea)]()[_0x28d850(0x206)](),'S+':_0x45d1f0['getSeconds']()[_0x28d850(0x206)]()};let _0x390f98;for(let _0x201222 in _0x42ee38){_0x390f98=new RegExp('('+_0x201222+')')[_0x28d850(0x205)](_0x5a746e);_0x390f98&&(_0x5a746e=_0x5a746e['replace'](_0x390f98[0x1],_0x390f98[0x1][_0x28d850(0x1bf)]==0x1?_0x42ee38[_0x201222]:_0x42ee38[_0x201222][_0x28d850(0x208)](_0x390f98[0x1][_0x28d850(0x1bf)],'0')));;};return _0x5a746e;}function formatDate(_0x377503,_0x22699e='YYYY-MM-DD',_0x4c2124={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x4faf78=a6_0x3625e3,_0x5f81c0=new Date(_0x377503),_0x1e175a=_0x5f81c0[_0x4faf78(0x20a)](),_0x113ed0=_0x5f81c0['getMonth']()+0x1,_0x2a9207=_0x5f81c0[_0x4faf78(0x1f1)](),_0x284d18=_0x113ed0<0xa?'0'+_0x113ed0:_0x113ed0,_0x4a445f=_0x2a9207<0xa?'0'+_0x2a9207:_0x2a9207;let _0x47b107=_0x22699e[_0x4faf78(0x1d0)](_0x4faf78(0x1f8),_0x1e175a)['replace']('MM',_0x284d18)[_0x4faf78(0x1d0)]('DD',_0x4a445f);return _0x47b107=_0x47b107['replace'](/-MM/g,_0x4c2124['monthTitle'])[_0x4faf78(0x1d0)](/-DD/g,_0x4c2124[_0x4faf78(0x1eb)])[_0x4faf78(0x1d0)](_0x4faf78(0x1f8)+_0x4c2124['yearTitle'],'')['replace']('MM'+_0x4c2124[_0x4faf78(0x215)],'')[_0x4faf78(0x1d0)]('DD'+_0x4c2124[_0x4faf78(0x1eb)],''),_0x47b107;}function compareDates(_0x5c0255,_0x5e2e85){const _0x511498=a6_0x3625e3;_0x5c0255=new Date(_0x5c0255);!_0x5e2e85?_0x5e2e85=new Date():_0x5e2e85=new Date(_0x5e2e85);_0x5c0255[_0x511498(0x1d9)](0x0,0x0,0x0,0x0),_0x5e2e85['setHours'](0x0,0x0,0x0,0x0);var _0x31cd29=_0x5c0255[_0x511498(0x1d2)](),_0x131d6e=_0x5e2e85['getTime']();if(_0x31cd29<_0x131d6e)return-0x1;else return _0x31cd29>_0x131d6e?0x1:0x0;}function getDaysBetween(_0x5a2ecc,_0x838fb5){const _0x13b8c0=a6_0x3625e3,_0x271996=new Date(_0x5a2ecc),_0x478aba=new Date(_0x838fb5),_0x1ce3a2=Math[_0x13b8c0(0x1c0)](_0x271996[_0x13b8c0(0x1d2)]()-_0x478aba[_0x13b8c0(0x1d2)]()),_0x14e346=Math['floor'](_0x1ce3a2/(0x3e8*0x3c*0x3c*0x18));return _0x14e346+0x1;}function chineseNumeral(_0x249d64){const _0x231a83=a6_0x3625e3,_0x49903d=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x254971=['','拾','佰','仟'],_0x563326=['','万','亿','兆'];let _0x455296=Math[_0x231a83(0x221)](_0x249d64),_0x4aeda4=Math[_0x231a83(0x21a)]((_0x249d64-_0x455296)*0x64),_0x4faf83='';for(let _0x4c9913=0x0;_0x455296>0x0;_0x4c9913++){let _0x5cb2cd='',_0x233a39=_0x455296%0x2710;_0x455296=Math[_0x231a83(0x221)](_0x455296/0x2710);for(let _0x2bb02a=0x0;_0x233a39>0x0;_0x2bb02a++){let _0x27a66b=_0x233a39%0xa;_0x5cb2cd=(_0x27a66b?_0x49903d[_0x27a66b]+_0x254971[_0x2bb02a]:'')+_0x5cb2cd,_0x233a39=Math[_0x231a83(0x221)](_0x233a39/0xa);}_0x4faf83=_0x5cb2cd+(_0x5cb2cd?_0x563326[_0x4c9913]:_0x563326[_0x4c9913]&&!_0x4faf83[_0x231a83(0x1fa)]('零')?'零':'')+_0x4faf83;}_0x4faf83+=_0x4faf83?'元':'零元';if(_0x4aeda4>0x0){let _0x467b08=Math[_0x231a83(0x221)](_0x4aeda4/0xa),_0x208da7=_0x4aeda4%0xa;_0x4faf83+=(_0x467b08?_0x49903d[_0x467b08]+'角':'')+(_0x208da7?_0x49903d[_0x208da7]+'分':'');}else _0x4faf83+='整';return _0x4faf83[_0x231a83(0x1d0)](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x5adb99){const _0x1bb367=a6_0x3625e3;(!_0x5adb99||_0x5adb99[_0x1bb367(0x1e5)]()==='')&&(_0x5adb99=new Date()[_0x1bb367(0x20a)]()+'-'+(new Date()[_0x1bb367(0x217)]()+0x1));let _0x4868eb=[],[_0x11d778,_0x5d864c]=_0x5adb99[_0x1bb367(0x1db)]('-')['map'](Number),_0x1cddfa=new Date(_0x11d778,_0x5d864c,0x0),_0x59dce4=_0x1cddfa[_0x1bb367(0x1f1)]();for(let _0x31d657=0x1;_0x31d657<=_0x59dce4;_0x31d657++){let _0x1c8420=_0x31d657<0xa?'0'+_0x31d657:''+_0x31d657,_0x49f72c=_0x5d864c<0xa?'0'+_0x5d864c:''+_0x5d864c;_0x4868eb[_0x1bb367(0x1cf)]({'date':_0x11d778+'-'+_0x49f72c+'-'+_0x1c8420,'disable':!![]});}return _0x4868eb;}function getToday(_0x3905d4){const _0x33deb3=a6_0x3625e3;var _0x5d6171=new Date(),_0x4d1a53=String(_0x5d6171[_0x33deb3(0x1f1)]())['padStart'](0x2,'0'),_0x2356a0=String(_0x5d6171[_0x33deb3(0x217)]()+0x1)['padStart'](0x2,'0'),_0x15d457=_0x5d6171[_0x33deb3(0x20a)]();return _0x5d6171=_0x15d457+'-'+_0x2356a0+'-'+_0x4d1a53,_0x5d6171;}function resetObject(_0x177fd6){const _0x36292b=a6_0x3625e3;let _0x28418d=JSON[_0x36292b(0x1d3)](JSON[_0x36292b(0x1d7)](_0x177fd6));for(const _0x3f5b77 in _0x28418d){if(typeof _0x28418d[_0x3f5b77]===_0x36292b(0x1df))_0x28418d[_0x3f5b77]=0x0;else{if(typeof _0x28418d[_0x3f5b77]===_0x36292b(0x213))_0x28418d[_0x3f5b77]=![];else{if(Array[_0x36292b(0x204)](_0x28418d[_0x3f5b77]))_0x28418d[_0x3f5b77]=[];else typeof _0x28418d[_0x3f5b77]===_0x36292b(0x202)&&_0x28418d[_0x3f5b77]!==null?resetObject(_0x28418d[_0x3f5b77]):_0x28418d[_0x3f5b77]='';}}}return _0x28418d;}function preciseOperation(_0x52e8b,_0x2ea197,_0x5e511c,_0x4ded06=0xf4240){const _0x7b2c6d=a6_0x3625e3;if(isNaN(_0x52e8b)||isNaN(_0x2ea197))return NaN;if(!isFinite(_0x52e8b)||!isFinite(_0x2ea197))return NaN;let _0x577625=BigInt(Math['round'](_0x52e8b*_0x4ded06)),_0x2142e9=BigInt(Math['round'](_0x2ea197*_0x4ded06)),_0x5c0ea0;switch(_0x5e511c){case 0x1:_0x5c0ea0=_0x577625+_0x2142e9;break;case 0x2:_0x5c0ea0=_0x577625-_0x2142e9;break;case 0x3:_0x5c0ea0=_0x577625*_0x2142e9;break;case 0x4:if(_0x2142e9===0x0n)throw new Error(_0x7b2c6d(0x1d1));_0x5c0ea0=_0x577625/_0x2142e9;break;default:throw new Error(_0x7b2c6d(0x1da));}return Number(_0x5c0ea0)/_0x4ded06;}function preciseSum(_0x543983){const _0x4a601d=a6_0x3625e3;let _0x3577bb=0x0;for(const _0x209d2d of _0x543983){let _0x5c287d=0x0;if(typeof _0x209d2d===_0x4a601d(0x1f5)){const _0x454750=parseFloat(_0x209d2d);!isNaN(_0x454750)&&(_0x5c287d=_0x454750);}else typeof _0x209d2d==='number'&&(_0x5c287d=_0x209d2d);_0x3577bb=preciseOperation(_0x3577bb,_0x5c287d,0x1);}return _0x3577bb;}function getRelativeDate(_0x3dbf2a,_0x303a5e=0x0){const _0xe7a7d0=a6_0x3625e3,_0x201651=new Date(_0x3dbf2a);_0x201651[_0xe7a7d0(0x209)](_0x201651[_0xe7a7d0(0x1f1)]()+_0x303a5e);const _0xdbad97=_0x201651['getFullYear'](),_0x566a25=(_0x201651['getMonth']()+0x1)['toString']()[_0xe7a7d0(0x208)](0x2,'0'),_0x2e215b=_0x201651[_0xe7a7d0(0x1f1)]()[_0xe7a7d0(0x206)]()[_0xe7a7d0(0x208)](0x2,'0');return _0xdbad97+'-'+_0x566a25+'-'+_0x2e215b;}function a6_0x2219(_0x3f5614,_0x2a1ee3){const _0x141244=a6_0x1412();return a6_0x2219=function(_0x221943,_0x387bd9){_0x221943=_0x221943-0x1bf;let _0x5ab642=_0x141244[_0x221943];return _0x5ab642;},a6_0x2219(_0x3f5614,_0x2a1ee3);}function validateFields(_0x265a09,_0x4c7f4a,_0x51b5f3=''){for(let _0x32a919 of _0x4c7f4a){if(_0x265a09[_0x32a919]===_0x51b5f3)return!![];}return![];}function mergeObjects(_0x4de6eb,_0x2f096a){for(const _0x162381 in _0x4de6eb){_0x2f096a['hasOwnProperty'](_0x162381)&&(_0x4de6eb[_0x162381]=_0x2f096a[_0x162381]);}return _0x4de6eb;}const formatToDecimal=(_0x5ab6d8,_0xfa1584=0x2)=>{const _0x30826c=a6_0x3625e3;if(isNaN(_0xfa1584)||_0xfa1584<0x0)return _0x5ab6d8;let _0x8e55ee=Number(_0x5ab6d8);if(!isFinite(_0x8e55ee))return _0x5ab6d8;return _0xfa1584=Math[_0x30826c(0x20d)](0x0,Math[_0x30826c(0x221)](_0xfa1584)),_0x8e55ee['toFixed'](_0xfa1584);};function findKeysEndingWith(_0x588cef,_0x47be07=a6_0x3625e3(0x1c4)){const _0x5bef18=a6_0x3625e3;let _0x1c9f7d=[];for(var _0x3600ac in _0x588cef){if(_0x588cef['hasOwnProperty'](_0x3600ac)){if(_0x3600ac[_0x5bef18(0x1f2)](_0x47be07))_0x1c9f7d[_0x5bef18(0x1cf)](_0x3600ac);}}return _0x1c9f7d;}function guid(_0x1226a5=0x20,_0x53e32a=!![],_0x5b8808=null){const _0x28f361=a6_0x3625e3,_0x5e3158='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'[_0x28f361(0x1db)](''),_0x54b4f4=[];_0x5b8808=_0x5b8808||_0x5e3158[_0x28f361(0x1bf)];if(_0x1226a5){for(let _0x17cc91=0x0;_0x17cc91<_0x1226a5;_0x17cc91++)_0x54b4f4[_0x17cc91]=_0x5e3158[0x0|Math['random']()*_0x5b8808];}else{let _0x31bb42;_0x54b4f4[0x8]=_0x54b4f4[0xd]=_0x54b4f4[0x12]=_0x54b4f4[0x17]='-',_0x54b4f4[0xe]='4';for(let _0xd9104b=0x0;_0xd9104b<0x24;_0xd9104b++){!_0x54b4f4[_0xd9104b]&&(_0x31bb42=0x0|Math['random']()*0x10,_0x54b4f4[_0xd9104b]=_0x5e3158[_0xd9104b==0x13?_0x31bb42&0x3|0x8:_0x31bb42]);}}if(_0x53e32a)return _0x54b4f4[_0x28f361(0x223)](),'u'+_0x54b4f4[_0x28f361(0x1ca)]('');return _0x54b4f4[_0x28f361(0x1ca)]('');}function trim(_0x16b1b4,_0x233d32=a6_0x3625e3(0x1c2)){const _0x321c6a=a6_0x3625e3;_0x16b1b4=String(_0x16b1b4);if(_0x233d32==_0x321c6a(0x1c2))return _0x16b1b4['replace'](/^\s+|\s+$/g,'');if(_0x233d32=='left')return _0x16b1b4[_0x321c6a(0x1d0)](/^\s*/,'');if(_0x233d32==_0x321c6a(0x1e2))return _0x16b1b4[_0x321c6a(0x1d0)](/(\s*$)/g,'');if(_0x233d32==_0x321c6a(0x211))return _0x16b1b4[_0x321c6a(0x1d0)](/\s+/g,'');return _0x16b1b4;}export default{'handleOCRData':handleOCRData,'timeFormat':timeFormat,'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.41",
3
+ "version": "1.0.44",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {