yunlin 1.0.38 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/price.js +1 -1
- package/dist/room.js +1 -1
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c7450,_0x5d771d){var _0x456b52=a0_0x5d28,_0x3e7d6e=_0x2c7450();while(!![]){try{var _0xece78b=-parseInt(_0x456b52(0x1ca))/0x1+-parseInt(_0x456b52(0x1c9))/0x2*(parseInt(_0x456b52(0x1c7))/0x3)+-parseInt(_0x456b52(0x1c6))/0x4+-parseInt(_0x456b52(0x1cd))/0x5*(parseInt(_0x456b52(0x1cb))/0x6)+parseInt(_0x456b52(0x1ce))/0x7*(-parseInt(_0x456b52(0x1cf))/0x8)+parseInt(_0x456b52(0x1c8))/0x9*(-parseInt(_0x456b52(0x1cc))/0xa)+parseInt(_0x456b52(0x1c5))/0xb;if(_0xece78b===_0x5d771d)break;else _0x3e7d6e['push'](_0x3e7d6e['shift']());}catch(_0x5efd66){_0x3e7d6e['push'](_0x3e7d6e['shift']());}}}(a0_0x3dcf,0xd16dd));import a0_0x33e45f from'./utils';import a0_0x10646e from'./price';import a0_0x228802 from'./test';import a0_0x15a770 from'./room';function a0_0x3dcf(){var _0x7cc879=['5709159kaUJAl','15918RXWOVK','499003totlpD','5401842ndXRCH','10TRiXSG','5xqnmYJ','21PEzUEP','2774312LyPrLF','63542270NpuaHv','5214036mELJMY','204pIaYxP'];a0_0x3dcf=function(){return _0x7cc879;};return a0_0x3dcf();}function a0_0x5d28(_0x22a89a,_0x49bcbb){var _0x3dcf3c=a0_0x3dcf();return a0_0x5d28=function(_0x5d288e,_0x270e1e){_0x5d288e=_0x5d288e-0x1c5;var _0x51c59a=_0x3dcf3c[_0x5d288e];return _0x51c59a;},a0_0x5d28(_0x22a89a,_0x49bcbb);}export default{'test':a0_0x228802,'utils':a0_0x33e45f,'price':a0_0x10646e,'room':a0_0x15a770};
|
package/dist/price.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a1_0xebd9(_0x5663cc,_0x133f58){const _0x1298f0=a1_0x1298();return a1_0xebd9=function(_0xebd910,_0x1a0eb2){_0xebd910=_0xebd910-0x10a;let _0x157f2f=_0x1298f0[_0xebd910];return _0x157f2f;},a1_0xebd9(_0x5663cc,_0x133f58);}function a1_0x1298(){const _0xfa37b7=['base','\x20*\x20','adult','name','附加服務','rylx','keys','max','money','childprice','isArray','childnum','length','push','2106816pLAXrm','adultnum','service','warn','兒童[占床]','filter','error','tax','10201873Wcnhhz','500625bfPamm','8XyZYvd','239346dmdhtk','totaltax','child','stringify','adultprice','8qEqfce','elder','price','vipdiscounted','people','trip','unitpricewb','vip','isShowTip','other','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','reduction','保險費用','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','forEach','fLsjUnit','split','人員費用','list','tip','552707wKoOFA','airtax','includes','users','機場稅','50BEVpqz','tipday','2810486IcUwck','附加行程','\x0a\x09\x09\x09正确参数:','會員充值','1000530ODublX','遊客優惠','unitprice','map','24OTURDs','tipuser','basechildprice','promotion','hasOwnProperty','unit','ftd\x20函数接收到无效的数字输入:\x20','point','viprecharge','strLx','2uxAieI','優惠券','object','coupon','floor','totalprice','toFixed','nRs','couponSign'];a1_0x1298=function(){return _0xfa37b7;};return a1_0x1298();}(function(_0x8d5fa7,_0x5cd032){const _0x3692b7=a1_0xebd9,_0x5d6840=_0x8d5fa7();while(!![]){try{const _0xab20d9=-parseInt(_0x3692b7(0x113))/0x1*(parseInt(_0x3692b7(0x12c))/0x2)+-parseInt(_0x3692b7(0x14c))/0x3*(parseInt(_0x3692b7(0x153))/0x4)+parseInt(_0x3692b7(0x11e))/0x5+-parseInt(_0x3692b7(0x143))/0x6+-parseInt(_0x3692b7(0x11a))/0x7*(parseInt(_0x3692b7(0x14d))/0x8)+parseInt(_0x3692b7(0x14e))/0x9*(parseInt(_0x3692b7(0x118))/0xa)+parseInt(_0x3692b7(0x14b))/0xb*(parseInt(_0x3692b7(0x122))/0xc);if(_0xab20d9===_0x5cd032)break;else _0x5d6840['push'](_0x5d6840['shift']());}catch(_0x8e0f84){_0x5d6840['push'](_0x5d6840['shift']());}}}(a1_0x1298,0x86007));function handleCosting(_0x4b985f,_0x29e86c='',_0x87855f={},_0x281aad,_0x5e6746){const _0x224018=a1_0xebd9;let _0x3c7c65=[];const _0x41f050=_0x224018(0x136),_0x326768={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x87855f=typeof _0x87855f==='object'&&!Array[_0x224018(0x13f)](_0x87855f)&&_0x87855f!==null?_0x87855f:{};const _0x28694e={..._0x326768,..._0x87855f},_0x1d4b1f=Object[_0x224018(0x13b)](_0x326768);Object['keys'](_0x87855f)[_0x224018(0x10d)](_0xb5d212=>{const _0x28b583=_0x224018;!_0x1d4b1f['includes'](_0xb5d212)&&console[_0x28b583(0x146)](_0x28b583(0x10c)+_0xb5d212);});let _0x3929ce=_0x28694e[_0x224018(0x134)]||'-',_0x551917=_0x28694e['dp']||0x2;const _0x307a36=(_0x296a6b,_0x3efc2a=_0x551917)=>{const _0x2bb634=_0x224018;if(typeof _0x296a6b!=='number'&&isNaN(Number(_0x296a6b)))return console[_0x2bb634(0x149)](_0x2bb634(0x128)+_0x296a6b),_0x296a6b;if(isNaN(_0x3efc2a)||_0x3efc2a<0x0)return _0x296a6b;let _0x227b01=Number(_0x296a6b);if(!isFinite(_0x227b01))return _0x296a6b;return _0x3efc2a=Math[_0x2bb634(0x13c)](0x0,Math[_0x2bb634(0x130)](_0x3efc2a)),_0x227b01[_0x2bb634(0x132)](_0x3efc2a);},_0x4c1c1d=(_0xf8ae37,_0x30adc8)=>{const _0x216b3b=_0x224018;if(_0x30adc8&&typeof _0x30adc8===_0x216b3b(0x12e)&&!Array[_0x216b3b(0x13f)](_0x30adc8))for(const _0x575c14 in _0xf8ae37){_0xf8ae37[_0x216b3b(0x126)](_0x575c14)&&_0x30adc8[_0x216b3b(0x126)](_0x575c14)&&(_0xf8ae37[_0x575c14]=_0x30adc8[_0x575c14]);}else console[_0x216b3b(0x149)]((_0x216b3b(0x15d)+JSON['stringify'](_0x30adc8,null,0x2)+_0x216b3b(0x11c)+JSON[_0x216b3b(0x151)](_0xf8ae37,null,0x2))['trim']());return _0xf8ae37;};let _0x28fd7c={'people':_0x224018(0x110),'service':_0x224018(0x139),'trip':_0x224018(0x11b),'other':'其他費用','reduction':'減免費用','totalprice':'總計','airtax':_0x224018(0x117)},_0x37a3ba={'adult':'成人','child':'兒童','childusebed':_0x224018(0x147),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x224018(0x11f),'vip':'會員減免','promotion':'促銷','insure':_0x224018(0x10b),'coupon':_0x224018(0x12d),'point':'積分','tax':'稅金','viprecharge':_0x224018(0x11d),'r':'人','t':'天'};_0x28fd7c=_0x4c1c1d(_0x28fd7c,_0x281aad),_0x37a3ba=_0x4c1c1d(_0x37a3ba,_0x5e6746);const _0x405f05=_0x4b985f[_0x224018(0x148)](_0x2637f5=>_0x2637f5['strLx']==_0x224018(0x135));if(_0x405f05['length']){let _0x3c6225={'title':_0x28fd7c[_0x224018(0x157)],'type':'base','list':[]};_0x405f05[_0x224018(0x121)](_0x501d21=>{const _0x2272c7=_0x224018;_0x3c6225['list'][_0x2272c7(0x142)]({'title':_0x37a3ba[_0x501d21['strJgbm']],'info':_0x29e86c+_0x307a36(_0x501d21[_0x2272c7(0x10e)])+_0x41f050+_0x501d21[_0x2272c7(0x133)],'nRs':_0x501d21[_0x2272c7(0x133)],'unit':_0x501d21[_0x2272c7(0x10e)],'cb':_0x501d21['fJcbzlsjUnit'],'type':_0x2272c7(0x135)});}),_0x3c7c65['push'](_0x3c6225);}const _0x38daef=_0x4b985f[_0x224018(0x148)](_0x22e731=>_0x22e731[_0x224018(0x12b)]=='service');if(_0x38daef[_0x224018(0x141)]){let _0x50c8af={'title':_0x28fd7c[_0x224018(0x145)],'type':_0x224018(0x145),'list':[]};_0x38daef[_0x224018(0x121)](_0x326ed7=>{const _0x702213=_0x224018;_0x50c8af[_0x702213(0x111)][_0x702213(0x142)]({'title':_0x326ed7[_0x702213(0x138)]+('['+_0x326ed7['itemname']+']'),'info':_0x29e86c+_0x307a36(_0x326ed7[_0x702213(0x120)])+_0x41f050+_0x326ed7['num'],'nRs':_0x326ed7['num'],'unit':_0x326ed7[_0x702213(0x120)],'cb':_0x326ed7['baseprice'],'type':'service'});}),_0x3c7c65[_0x224018(0x142)](_0x50c8af);}const _0x291acb=_0x4b985f[_0x224018(0x148)](_0x4424da=>_0x4424da[_0x224018(0x12b)]==_0x224018(0x158));if(_0x291acb[_0x224018(0x141)]){let _0x158887={'title':_0x28fd7c[_0x224018(0x158)],'type':_0x224018(0x158),'list':[]};_0x291acb['map'](_0x4e6435=>{const _0x5b7c72=_0x224018;_0x4e6435['adultnum']!='0'&&_0x158887['list'][_0x5b7c72(0x142)]({'title':_0x4e6435[_0x5b7c72(0x138)]+('['+_0x37a3ba[_0x5b7c72(0x137)]+']'),'info':_0x29e86c+_0x307a36(_0x4e6435[_0x5b7c72(0x152)])+_0x41f050+_0x4e6435[_0x5b7c72(0x144)],'nRs':_0x4e6435[_0x5b7c72(0x144)],'unit':_0x4e6435[_0x5b7c72(0x152)],'cb':_0x4e6435['baseadultprice'],'type':_0x5b7c72(0x158)}),_0x4e6435[_0x5b7c72(0x140)]!='0'&&_0x158887[_0x5b7c72(0x111)][_0x5b7c72(0x142)]({'title':_0x4e6435[_0x5b7c72(0x138)]+('['+_0x37a3ba[_0x5b7c72(0x150)]+']'),'info':_0x29e86c+_0x307a36(_0x4e6435[_0x5b7c72(0x13e)])+_0x41f050+_0x4e6435[_0x5b7c72(0x140)],'nRs':_0x4e6435['childnum'],'unit':_0x4e6435['childprice'],'cb':_0x4e6435[_0x5b7c72(0x124)],'type':_0x5b7c72(0x158)});}),_0x3c7c65[_0x224018(0x142)](_0x158887);}let _0x75c0e0=[];const _0x7fe6b4=_0x4b985f[_0x224018(0x148)](_0x228308=>_0x228308[_0x224018(0x12b)]=='elder');_0x7fe6b4['length']&&_0x7fe6b4['map'](_0x4e82e6=>{const _0x698a9a=_0x224018,_0x564da7=_0x4e82e6[_0x698a9a(0x138)][_0x698a9a(0x10f)]('|')||[''];_0x75c0e0[_0x698a9a(0x142)]({'title':_0x37a3ba[_0x698a9a(0x154)]+('['+_0x564da7[0x0]+']'),'info':_0x29e86c+_0x3929ce+_0x307a36(_0x4e82e6['money']),'unit':_0x4e82e6['money'],'cb':_0x4e82e6[_0x698a9a(0x13d)],'type':_0x698a9a(0x154)});});const _0x4818d3=_0x4b985f[_0x224018(0x148)](_0x380475=>_0x380475['strLx']==_0x224018(0x156));_0x4818d3[_0x224018(0x141)]&&_0x4818d3[_0x224018(0x121)](_0x109b27=>{const _0x5ecaaf=_0x224018;_0x75c0e0[_0x5ecaaf(0x142)]({'title':_0x37a3ba['vip']+('['+_0x109b27[_0x5ecaaf(0x138)]+']'),'info':_0x29e86c+_0x3929ce+_0x307a36(_0x109b27[_0x5ecaaf(0x13d)]),'unit':_0x109b27[_0x5ecaaf(0x13d)],'cb':_0x109b27[_0x5ecaaf(0x13d)],'type':_0x5ecaaf(0x15a)});});const _0xc6e2bf=_0x4b985f[_0x224018(0x148)](_0x12c017=>_0x12c017[_0x224018(0x12b)]==_0x224018(0x125));_0xc6e2bf[_0x224018(0x141)]&&_0xc6e2bf[_0x224018(0x121)](_0x24eae8=>{const _0x59e515=_0x224018;_0x75c0e0[_0x59e515(0x142)]({'title':_0x37a3ba[_0x59e515(0x125)],'info':_0x29e86c+_0x3929ce+_0x307a36(_0x24eae8[_0x59e515(0x13d)]),'unit':_0x24eae8[_0x59e515(0x13d)],'cb':_0x24eae8[_0x59e515(0x13d)],'type':_0x59e515(0x125)});});_0x75c0e0[_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)]({'title':_0x28fd7c['reduction'],'type':_0x224018(0x10a),'list':_0x75c0e0});const _0x4fe258=_0x4b985f[_0x224018(0x148)](_0x403f45=>_0x403f45[_0x224018(0x12b)]==_0x224018(0x114));if(_0x4fe258[_0x224018(0x141)]){let _0x415688={'title':_0x28fd7c[_0x224018(0x114)],'type':_0x224018(0x114),'list':[]};_0x4fe258[_0x224018(0x121)](_0x20b1f9=>{const _0x193eb6=_0x224018;_0x415688['list'][_0x193eb6(0x142)]({'title':_0x37a3ba[_0x20b1f9[_0x193eb6(0x13a)]],'info':_0x29e86c+_0x307a36(_0x20b1f9[_0x193eb6(0x120)])+_0x41f050+_0x20b1f9['sl'],'nRs':_0x20b1f9['sl'],'unit':_0x20b1f9[_0x193eb6(0x120)],'cb':_0x20b1f9[_0x193eb6(0x159)],'type':_0x20b1f9[_0x193eb6(0x13a)]});}),_0x3c7c65[_0x224018(0x142)](_0x415688);}const _0x22fda3=[_0x224018(0x135),_0x224018(0x145),_0x224018(0x158),_0x224018(0x154),_0x224018(0x156),_0x224018(0x125),_0x224018(0x114)],_0x2c18b6=_0x4b985f['filter'](_0x1ba656=>!_0x22fda3[_0x224018(0x115)](_0x1ba656[_0x224018(0x12b)]));let _0x2c988d={'title':_0x28fd7c[_0x224018(0x15c)],'type':_0x224018(0x15c),'list':[]};for(var _0x3d1104=0x0;_0x3d1104<_0x2c18b6['length'];_0x3d1104++){const _0x5cde47=_0x2c18b6[_0x3d1104];_0x5cde47[_0x224018(0x12b)]==_0x224018(0x12a)&&_0x2c988d['list'][_0x224018(0x142)]({'title':_0x37a3ba['viprecharge']+('['+_0x5cde47[_0x224018(0x138)]+']'),'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x13d)]),'unit':_0x5cde47[_0x224018(0x13d)],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]=='insure'&&_0x2c988d[_0x224018(0x111)][_0x224018(0x142)]({'title':_0x37a3ba['insure']+('['+_0x5cde47[_0x224018(0x138)]+']'),'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x127)])+_0x41f050+_0x5cde47[_0x224018(0x116)]+_0x37a3ba['r'],'nRs':_0x5cde47[_0x224018(0x116)],'unit':_0x5cde47[_0x224018(0x127)],'cb':_0x5cde47[_0x224018(0x127)],'type':'insure'}),(_0x5cde47[_0x224018(0x12b)]==_0x224018(0x12f)||_0x5cde47[_0x224018(0x12b)]==_0x224018(0x129))&&_0x2c988d[_0x224018(0x111)][_0x224018(0x142)]({'title':_0x37a3ba[_0x5cde47['strLx']],'info':_0x29e86c+_0x3929ce+_0x307a36(_0x5cde47[_0x224018(0x13d)]),'unit':_0x5cde47[_0x224018(0x13d)],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]==_0x224018(0x112)&&_0x28694e[_0x224018(0x15b)]&&_0x2c988d[_0x224018(0x111)]['push']({'title':_0x37a3ba[_0x5cde47[_0x224018(0x12b)]],'info':_0x29e86c+_0x307a36(_0x5cde47['tip'])+_0x41f050+_0x5cde47[_0x224018(0x123)]+_0x37a3ba['r']+_0x41f050+_0x5cde47[_0x224018(0x119)]+_0x37a3ba['t'],'nRs':_0x5cde47[_0x224018(0x123)],'count':_0x5cde47['tipday'],'unit':_0x5cde47['tip'],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]==_0x224018(0x14a)&&_0x2c988d[_0x224018(0x111)]['push']({'title':_0x37a3ba[_0x5cde47['strLx']],'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x14f)]),'unit':_0x5cde47['totaltax'],'type':_0x5cde47[_0x224018(0x12b)]});}_0x2c988d[_0x224018(0x111)][_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)](_0x2c988d);const _0x29db38=_0x4b985f['filter'](_0x242584=>_0x242584[_0x224018(0x12b)]==_0x224018(0x131));return _0x29db38[_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)]({'title':_0x28fd7c['totalprice'],'type':_0x224018(0x131),'list':[{'title':_0x28fd7c[_0x224018(0x131)],'info':_0x29e86c+_0x307a36(_0x29db38[0x0][_0x224018(0x155)])}]}),_0x3c7c65;}export default{'handleCosting':handleCosting};
|
|
1
|
+
(function(_0x42b68f,_0x51e118){const _0x270bf1=a1_0x31a5,_0x3a99d6=_0x42b68f();while(!![]){try{const _0x42443c=parseInt(_0x270bf1(0xcf))/0x1*(parseInt(_0x270bf1(0x110))/0x2)+-parseInt(_0x270bf1(0xd2))/0x3*(parseInt(_0x270bf1(0xe6))/0x4)+parseInt(_0x270bf1(0x100))/0x5*(-parseInt(_0x270bf1(0x120))/0x6)+-parseInt(_0x270bf1(0xd8))/0x7+-parseInt(_0x270bf1(0xe2))/0x8*(parseInt(_0x270bf1(0xe4))/0x9)+-parseInt(_0x270bf1(0xea))/0xa*(parseInt(_0x270bf1(0xdd))/0xb)+parseInt(_0x270bf1(0x115))/0xc;if(_0x42443c===_0x51e118)break;else _0x3a99d6['push'](_0x3a99d6['shift']());}catch(_0x4302f3){_0x3a99d6['push'](_0x3a99d6['shift']());}}}(a1_0x4c66,0xa3605));function a1_0x31a5(_0x334bc4,_0x5d6bc2){const _0x4c661a=a1_0x4c66();return a1_0x31a5=function(_0x31a5a3,_0x5ac8a7){_0x31a5a3=_0x31a5a3-0xcd;let _0x1cdb2d=_0x4c661a[_0x31a5a3];return _0x1cdb2d;},a1_0x31a5(_0x334bc4,_0x5d6bc2);}function a1_0x4c66(){const _0x37e9d5=['vipdiscounted','其他費用','filter','1192qpuSmh','airtax','37863QsxsfP','includes','556zLVifk','strLx','base','優惠券','10cderqr','num','stringify','basechildprice','人員費用','map','money','object','childprice','couponSign','isShowTip','error','附加行程','length','number','insure','adult','adultnum','childnum','service','baseprice','people','624615dOjpDi','toFixed','strJgbm','fLsjUnit','trim','機場稅','附加服務','會員減免','遊客優惠','name','users','tip','tipday','兒童[占床]','forEach','elder','2XpViiR','trip','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','\x0a\x09\x09\x09正确参数:','vip','39206028DtKIPi','unitprice','nRs','viprecharge','itemname','hasOwnProperty','reduction','rylx','point','promotion','會員充值','54CpZcvq','tipuser','push','932605ALuMrL','fJcbzlsjUnit','isArray','22647hHMMQv','max','other','baseadultprice','減免費用','adultprice','2485329plNAaz','list','totaltax','keys','totalprice','4125847BnMnGJ','unit'];a1_0x4c66=function(){return _0x37e9d5;};return a1_0x4c66();}function handleCosting(_0x1f0f50,_0x473f47='',_0xd79275={},_0x3b7321,_0x223b44){const _0x13248a=a1_0x31a5;let _0x5cf982=[];const _0x414ea9='\x20*\x20',_0x12b063={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0xd79275=typeof _0xd79275===_0x13248a(0xf1)&&!Array[_0x13248a(0xd1)](_0xd79275)&&_0xd79275!==null?_0xd79275:{};const _0x378cf6={..._0x12b063,..._0xd79275},_0x26f2de=Object[_0x13248a(0xdb)](_0x12b063);Object['keys'](_0xd79275)[_0x13248a(0x10e)](_0xd5d0de=>{!_0x26f2de['includes'](_0xd5d0de)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0xd5d0de);});let _0x1362f6=_0x378cf6[_0x13248a(0xf3)]||'-',_0x26a5f6=_0x378cf6['dp']||0x2;const _0x325de7=(_0x3edcf9,_0x387992=_0x26a5f6)=>{const _0x55eafb=_0x13248a;if(typeof _0x3edcf9!==_0x55eafb(0xf8)&&isNaN(Number(_0x3edcf9)))return console[_0x55eafb(0xf5)]('ftd\x20函数接收到无效的数字输入:\x20'+_0x3edcf9),_0x3edcf9;if(isNaN(_0x387992)||_0x387992<0x0)return _0x3edcf9;let _0x1b3f32=Number(_0x3edcf9);if(!isFinite(_0x1b3f32))return _0x3edcf9;return _0x387992=Math[_0x55eafb(0xd3)](0x0,Math['floor'](_0x387992)),_0x1b3f32[_0x55eafb(0x101)](_0x387992);},_0x87cbff=(_0x575dfe,_0x3d4ec9)=>{const _0x3c0711=_0x13248a;if(_0x3d4ec9&&typeof _0x3d4ec9===_0x3c0711(0xf1)&&!Array[_0x3c0711(0xd1)](_0x3d4ec9))for(const _0x16606a in _0x575dfe){_0x575dfe[_0x3c0711(0x11a)](_0x16606a)&&_0x3d4ec9[_0x3c0711(0x11a)](_0x16606a)&&(_0x575dfe[_0x16606a]=_0x3d4ec9[_0x16606a]);}else console[_0x3c0711(0xf5)]((_0x3c0711(0x112)+JSON[_0x3c0711(0xec)](_0x3d4ec9,null,0x2)+_0x3c0711(0x113)+JSON[_0x3c0711(0xec)](_0x575dfe,null,0x2))[_0x3c0711(0x104)]());return _0x575dfe;};let _0x14497a={'people':_0x13248a(0xee),'service':_0x13248a(0x106),'trip':_0x13248a(0xf6),'other':_0x13248a(0xe0),'reduction':_0x13248a(0xd6),'totalprice':'總計','airtax':_0x13248a(0x105)},_0x34b704={'adult':'成人','child':'兒童','childusebed':_0x13248a(0x10d),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x13248a(0x108),'vip':_0x13248a(0x107),'promotion':'促銷','insure':'保險費用','coupon':_0x13248a(0xe9),'point':'積分','tax':'稅金','viprecharge':_0x13248a(0x11f),'r':'人','t':'天'};_0x14497a=_0x87cbff(_0x14497a,_0x3b7321),_0x34b704=_0x87cbff(_0x34b704,_0x223b44);const _0x536c3e=_0x1f0f50['filter'](_0x205bea=>_0x205bea[_0x13248a(0xe7)]==_0x13248a(0xe8));if(_0x536c3e[_0x13248a(0xf7)]){let _0x2a2fa5={'title':_0x14497a[_0x13248a(0xff)],'type':'base','list':[]};_0x536c3e[_0x13248a(0xef)](_0x53fa49=>{const _0x35a786=_0x13248a;_0x2a2fa5[_0x35a786(0xd9)][_0x35a786(0xce)]({'title':_0x34b704[_0x53fa49[_0x35a786(0x102)]],'info':_0x473f47+_0x325de7(_0x53fa49[_0x35a786(0x103)])+_0x414ea9+_0x53fa49[_0x35a786(0x117)],'nRs':_0x53fa49['nRs'],'unit':_0x53fa49['fLsjUnit'],'cb':_0x53fa49[_0x35a786(0xd0)],'type':_0x35a786(0xe8)});}),_0x5cf982[_0x13248a(0xce)](_0x2a2fa5);}const _0x274880=_0x1f0f50[_0x13248a(0xe1)](_0x1f16a9=>_0x1f16a9[_0x13248a(0xe7)]==_0x13248a(0xfd));if(_0x274880[_0x13248a(0xf7)]){let _0x4722b5={'title':_0x14497a[_0x13248a(0xfd)],'type':'service','list':[]};_0x274880[_0x13248a(0xef)](_0x19ad9d=>{const _0x2e35a9=_0x13248a;_0x4722b5[_0x2e35a9(0xd9)]['push']({'title':_0x19ad9d['name']+('['+_0x19ad9d[_0x2e35a9(0x119)]+']'),'info':_0x473f47+_0x325de7(_0x19ad9d[_0x2e35a9(0x116)])+_0x414ea9+_0x19ad9d[_0x2e35a9(0xeb)],'nRs':_0x19ad9d['num'],'unit':_0x19ad9d[_0x2e35a9(0x116)],'cb':_0x19ad9d[_0x2e35a9(0xfe)],'type':_0x2e35a9(0xfd)});}),_0x5cf982[_0x13248a(0xce)](_0x4722b5);}const _0x4d8d22=_0x1f0f50[_0x13248a(0xe1)](_0x2e947d=>_0x2e947d[_0x13248a(0xe7)]=='trip');if(_0x4d8d22[_0x13248a(0xf7)]){let _0x2f71f4={'title':_0x14497a[_0x13248a(0x111)],'type':_0x13248a(0x111),'list':[]};_0x4d8d22[_0x13248a(0xef)](_0x2ddd17=>{const _0x317969=_0x13248a;_0x2ddd17[_0x317969(0xfb)]!='0'&&_0x2f71f4[_0x317969(0xd9)][_0x317969(0xce)]({'title':_0x2ddd17[_0x317969(0x109)]+('['+_0x34b704[_0x317969(0xfa)]+']'),'info':_0x473f47+_0x325de7(_0x2ddd17[_0x317969(0xd7)])+_0x414ea9+_0x2ddd17[_0x317969(0xfb)],'nRs':_0x2ddd17[_0x317969(0xfb)],'unit':_0x2ddd17[_0x317969(0xd7)],'cb':_0x2ddd17[_0x317969(0xd5)],'type':_0x317969(0x111)}),_0x2ddd17[_0x317969(0xfc)]!='0'&&_0x2f71f4[_0x317969(0xd9)][_0x317969(0xce)]({'title':_0x2ddd17[_0x317969(0x109)]+('['+_0x34b704['child']+']'),'info':_0x473f47+_0x325de7(_0x2ddd17[_0x317969(0xf2)])+_0x414ea9+_0x2ddd17['childnum'],'nRs':_0x2ddd17[_0x317969(0xfc)],'unit':_0x2ddd17[_0x317969(0xf2)],'cb':_0x2ddd17[_0x317969(0xed)],'type':'trip'});}),_0x5cf982['push'](_0x2f71f4);}let _0x1b5a64=[];const _0x568c5a=_0x1f0f50['filter'](_0x1e4faf=>_0x1e4faf[_0x13248a(0xe7)]==_0x13248a(0x10f));_0x568c5a[_0x13248a(0xf7)]&&_0x568c5a[_0x13248a(0xef)](_0xb2e1e5=>{const _0x539b0a=_0x13248a,_0x2c7e9f=_0xb2e1e5['name']['split']('|')||[''];_0x1b5a64[_0x539b0a(0xce)]({'title':_0x34b704[_0x539b0a(0x10f)]+('['+_0x2c7e9f[0x0]+']'),'info':_0x473f47+_0x1362f6+_0x325de7(_0xb2e1e5[_0x539b0a(0xf0)]),'unit':_0xb2e1e5[_0x539b0a(0xf0)],'cb':_0xb2e1e5['money'],'type':_0x539b0a(0x10f)});});const _0xfac087=_0x1f0f50['filter'](_0x2f71a4=>_0x2f71a4[_0x13248a(0xe7)]==_0x13248a(0xdf));_0xfac087['length']&&_0xfac087[_0x13248a(0xef)](_0x330179=>{const _0x4e8f86=_0x13248a;_0x1b5a64[_0x4e8f86(0xce)]({'title':_0x34b704[_0x4e8f86(0x114)]+('['+_0x330179[_0x4e8f86(0x109)]+']'),'info':_0x473f47+_0x1362f6+_0x325de7(_0x330179[_0x4e8f86(0xf0)]),'unit':_0x330179['money'],'cb':_0x330179[_0x4e8f86(0xf0)],'type':'vip'});});const _0x3317c8=_0x1f0f50[_0x13248a(0xe1)](_0x2f860e=>_0x2f860e['strLx']==_0x13248a(0x11e));_0x3317c8[_0x13248a(0xf7)]&&_0x3317c8[_0x13248a(0xef)](_0x745d7e=>{const _0x5926d4=_0x13248a;_0x1b5a64['push']({'title':_0x34b704[_0x5926d4(0x11e)],'info':_0x473f47+_0x1362f6+_0x325de7(_0x745d7e[_0x5926d4(0xf0)]),'unit':_0x745d7e[_0x5926d4(0xf0)],'cb':_0x745d7e[_0x5926d4(0xf0)],'type':_0x5926d4(0x11e)});});_0x1b5a64[_0x13248a(0xf7)]&&_0x5cf982[_0x13248a(0xce)]({'title':_0x14497a[_0x13248a(0x11b)],'type':'reduction','list':_0x1b5a64});const _0x3a459c=_0x1f0f50[_0x13248a(0xe1)](_0x1c4acb=>_0x1c4acb[_0x13248a(0xe7)]==_0x13248a(0xe3));if(_0x3a459c['length']){let _0x565fd2={'title':_0x14497a[_0x13248a(0xe3)],'type':_0x13248a(0xe3),'list':[]};_0x3a459c[_0x13248a(0xef)](_0x5d4e73=>{const _0x4fd616=_0x13248a;_0x565fd2[_0x4fd616(0xd9)][_0x4fd616(0xce)]({'title':_0x34b704[_0x5d4e73[_0x4fd616(0x11c)]],'info':_0x473f47+_0x325de7(_0x5d4e73[_0x4fd616(0x116)])+_0x414ea9+_0x5d4e73['sl'],'nRs':_0x5d4e73['sl'],'unit':_0x5d4e73['unitprice'],'cb':_0x5d4e73['unitpricewb'],'type':_0x5d4e73[_0x4fd616(0x11c)]});}),_0x5cf982['push'](_0x565fd2);}const _0x367d6c=[_0x13248a(0xe8),_0x13248a(0xfd),_0x13248a(0x111),_0x13248a(0x10f),_0x13248a(0xdf),_0x13248a(0x11e),'airtax'],_0x137900=_0x1f0f50['filter'](_0x296dd0=>!_0x367d6c[_0x13248a(0xe5)](_0x296dd0[_0x13248a(0xe7)]));let _0xadfcba={'title':_0x14497a[_0x13248a(0xd4)],'type':_0x13248a(0xd4),'list':[]};for(var _0x4de6ae=0x0;_0x4de6ae<_0x137900[_0x13248a(0xf7)];_0x4de6ae++){const _0xe5300b=_0x137900[_0x4de6ae];_0xe5300b['strLx']==_0x13248a(0x118)&&_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xce)]({'title':_0x34b704[_0x13248a(0x118)]+('['+_0xe5300b[_0x13248a(0x109)]+']'),'info':_0x473f47+_0x325de7(_0xe5300b['money']),'unit':_0xe5300b[_0x13248a(0xf0)],'type':_0xe5300b[_0x13248a(0xe7)]}),_0xe5300b[_0x13248a(0xe7)]==_0x13248a(0xf9)&&_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xce)]({'title':_0x34b704[_0x13248a(0xf9)]+('['+_0xe5300b['name']+']'),'info':_0x473f47+_0x325de7(_0xe5300b[_0x13248a(0xde)])+_0x414ea9+_0xe5300b[_0x13248a(0x10a)]+_0x34b704['r'],'nRs':_0xe5300b[_0x13248a(0x10a)],'unit':_0xe5300b[_0x13248a(0xde)],'cb':_0xe5300b['unit'],'type':_0x13248a(0xf9)}),(_0xe5300b[_0x13248a(0xe7)]=='coupon'||_0xe5300b[_0x13248a(0xe7)]==_0x13248a(0x11d))&&_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xce)]({'title':_0x34b704[_0xe5300b[_0x13248a(0xe7)]],'info':_0x473f47+_0x1362f6+_0x325de7(_0xe5300b[_0x13248a(0xf0)]),'unit':_0xe5300b[_0x13248a(0xf0)],'type':_0xe5300b[_0x13248a(0xe7)]}),_0xe5300b[_0x13248a(0xe7)]==_0x13248a(0x10b)&&_0x378cf6[_0x13248a(0xf4)]&&_0xadfcba['list']['push']({'title':_0x34b704[_0xe5300b[_0x13248a(0xe7)]],'info':_0x473f47+_0x325de7(_0xe5300b[_0x13248a(0x10b)])+_0x414ea9+_0xe5300b['tipuser']+_0x34b704['r']+_0x414ea9+_0xe5300b[_0x13248a(0x10c)]+_0x34b704['t'],'nRs':_0xe5300b[_0x13248a(0xcd)],'count':_0xe5300b[_0x13248a(0x10c)],'unit':_0xe5300b[_0x13248a(0x10b)],'type':_0xe5300b[_0x13248a(0xe7)]}),_0xe5300b['strLx']=='tax'&&_0xadfcba['list']['push']({'title':_0x34b704[_0xe5300b[_0x13248a(0xe7)]],'info':_0x473f47+_0x325de7(_0xe5300b['totaltax']),'unit':_0xe5300b[_0x13248a(0xda)],'type':_0xe5300b[_0x13248a(0xe7)]});}_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xf7)]&&_0x5cf982[_0x13248a(0xce)](_0xadfcba);const _0x2bd8ea=_0x1f0f50[_0x13248a(0xe1)](_0x1ac50f=>_0x1ac50f['strLx']==_0x13248a(0xdc));return _0x2bd8ea[_0x13248a(0xf7)]&&_0x5cf982[_0x13248a(0xce)]({'title':_0x14497a[_0x13248a(0xdc)],'type':_0x13248a(0xdc),'list':[{'title':_0x14497a['totalprice'],'info':_0x473f47+_0x325de7(_0x2bd8ea[0x0]['price'])}]}),_0x5cf982;}export default{'handleCosting':handleCosting};
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b7ea0,_0x23e383){const _0x52181a=a2_0x3efa,_0x2bcd2a=_0x3b7ea0();while(!![]){try{const _0x203146=-parseInt(_0x52181a(0x180))/0x1+parseInt(_0x52181a(0x182))/0x2*(-parseInt(_0x52181a(0x186))/0x3)+parseInt(_0x52181a(0x16d))/0x4*(parseInt(_0x52181a(0x175))/0x5)+-parseInt(_0x52181a(0x179))/0x6+parseInt(_0x52181a(0x184))/0x7*(parseInt(_0x52181a(0x17c))/0x8)+parseInt(_0x52181a(0x16b))/0x9+parseInt(_0x52181a(0x17f))/0xa;if(_0x203146===_0x23e383)break;else _0x2bcd2a['push'](_0x2bcd2a['shift']());}catch(_0x136128){_0x2bcd2a['push'](_0x2bcd2a['shift']());}}}(a2_0x5de4,0xce74d));function getRoomCount(_0x516d82,_0x3bdc56){const _0x32293d=a2_0x3efa,_0xdaf88e=Array['isArray'](_0x516d82);if(!_0xdaf88e)_0x516d82=[_0x516d82];let _0x3212c1=[];return _0x516d82[_0x32293d(0x185)](_0x28f688=>{const _0x2dcebf=_0x32293d;let _0x578f96=![];if(!_0x28f688[_0x2dcebf(0x181)]){let _0x2a68db=_0x28f688['adultnum'];if(_0x28f688[_0x2dcebf(0x16f)]||!_0x3bdc56[_0x2dcebf(0x17d)])_0x2a68db+=_0x28f688[_0x2dcebf(0x176)];const _0x3d307f=_0x3bdc56[_0x2dcebf(0x178)][_0x2dcebf(0x170)](_0x1d7c12=>Number(_0x1d7c12[_0x2dcebf(0x16c)])===_0x2a68db);if(!_0x3d307f)_0x578f96=!![];else{let _0x2205b0=_0x28f688[_0x2dcebf(0x16e)]+_0x28f688['childrennum']+_0x28f688[_0x2dcebf(0x177)];_0x2205b0>_0x3d307f[_0x2dcebf(0x16a)]&&(_0x578f96=!![]);}}_0x3212c1[_0x2dcebf(0x171)](_0x578f96);}),_0xdaf88e?_0x3212c1:_0x3212c1[0x0];}function a2_0x5de4(){const _0xda7fbc=['find','push','filter','map','some','10195WBOsDV','childrennum','infantnum','list','1284096JtejwF','length','max','50376IiXsbr','child','half','4719170xrzXVB','1151796QIXtSZ','isalotment','27184tKfZZH','infant','1617QXboCy','forEach','99uSvLsZ','nMaxIn','3463200XpmKPR','strCode','684FhRJHm','adultnum','childusebed'];a2_0x5de4=function(){return _0xda7fbc;};return a2_0x5de4();}function getRoomConfig(_0x2cce0f){const _0x235618=a2_0x3efa;let _0x2c37d1=_0x2cce0f[_0x235618(0x174)](_0x321a66=>_0x321a66[_0x235618(0x16c)]===_0x235618(0x16f)),_0x3fdaa7=_0x2cce0f[_0x235618(0x174)](_0x42b35a=>_0x42b35a[_0x235618(0x16c)]===_0x235618(0x17e));const _0x10b3dd=_0x2cce0f[_0x235618(0x174)](_0x29dc4f=>_0x29dc4f[_0x235618(0x16c)]===_0x235618(0x183)),_0x3d4c65=_0x2cce0f['some'](_0x5c965b=>_0x5c965b['strCode']===_0x235618(0x17d)),_0x5a1981=_0x2cce0f[_0x235618(0x173)](_0x1a5a7a=>{const _0x15bd71=_0x235618;return{'strCode':_0x1a5a7a[_0x15bd71(0x16c)],'nMaxIn':_0x1a5a7a['nMaxIn']};});if(_0x3fdaa7){const _0x5c3f7e=_0x2cce0f['some'](_0x3843e3=>_0x3843e3['strCode']=='2');_0x3fdaa7=_0x3fdaa7&&_0x5c3f7e;}if(_0x2c37d1)_0x2c37d1=_0x2c37d1&&_0x3d4c65;return{'childusebed':_0x2c37d1,'half':_0x3fdaa7,'infant':_0x10b3dd,'child':_0x3d4c65,'list':_0x5a1981};}function isRoomPiece(_0x23991f,_0x4dd5ab){const _0x51f178=a2_0x3efa;return _0x4dd5ab&&_0x23991f['adultnum']===0x1&&_0x23991f[_0x51f178(0x176)]===0x0&&_0x23991f[_0x51f178(0x177)]===0x0;}function getRoomItemRange(_0x5dfda0,_0x1fa124,_0x31d31e={'child':'兒童','infant':'嬰兒'}){const _0x28f846=a2_0x3efa;if(!_0x1fa124[_0x28f846(0x17a)])return{'childList':[],'infantList':[]};const _0x1f5fbd=Math[_0x28f846(0x17b)](..._0x1fa124[_0x28f846(0x173)](_0x34d7d4=>Number(_0x34d7d4['nMaxIn']))),_0x14b20f=_0x1f5fbd-_0x5dfda0[_0x28f846(0x16e)]-_0x5dfda0[_0x28f846(0x177)];let _0x1c31ff=_0x1f5fbd-_0x5dfda0[_0x28f846(0x16e)]-_0x5dfda0[_0x28f846(0x176)];if(_0x1c31ff>0x2)_0x1c31ff=0x2;const _0x643592=(_0x279d46,_0x11e6a9)=>{const _0x352eab=_0x28f846,_0x448b3c=[];_0x448b3c['push']({'value':0x0,'label':'0\x20'+_0x11e6a9});for(let _0x5c82b0=0x0;_0x5c82b0<_0x279d46;_0x5c82b0++){_0x448b3c[_0x352eab(0x171)]({'value':_0x5c82b0+0x1,'label':_0x5c82b0+0x1+'\x20'+_0x11e6a9});}return _0x448b3c;};return{'childList':_0x643592(_0x14b20f,_0x31d31e['child']),'infantList':_0x643592(_0x1c31ff,_0x31d31e[_0x28f846(0x183)])};}function getAdultRange(_0x3b159f,_0x3a9df4='成人'){const _0x18c0e3=a2_0x3efa;let _0x4c6715=Math['max'](..._0x3b159f['map'](_0x23f568=>Number(_0x23f568[_0x18c0e3(0x16c)]))[_0x18c0e3(0x172)](_0x51fda2=>!isNaN(_0x51fda2)));if(!_0x4c6715)_0x4c6715=0x4;let _0x4b915d=[];for(var _0x18c130=0x1;_0x18c130<_0x4c6715+0x1;_0x18c130++){_0x4b915d['push']({'value':_0x18c130,'label':_0x18c130+'\x20'+_0x3a9df4});}return _0x4b915d;}function a2_0x3efa(_0x3c8ef3,_0x51adf2){const _0x5de493=a2_0x5de4();return a2_0x3efa=function(_0x3efa3c,_0x1c5810){_0x3efa3c=_0x3efa3c-0x16a;let _0x41c1aa=_0x5de493[_0x3efa3c];return _0x41c1aa;},a2_0x3efa(_0x3c8ef3,_0x51adf2);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a3_0x5354(_0x34cedb,_0x1e221d){const _0x27004b=a3_0x2700();return a3_0x5354=function(_0x53540f,_0x1f8023){_0x53540f=_0x53540f-0x81;let _0x33ef88=_0x27004b[_0x53540f];return _0x33ef88;},a3_0x5354(_0x34cedb,_0x1e221d);}(function(_0x2c1852,_0x15457d){const _0x591f74=a3_0x5354,_0x27f1a8=_0x2c1852();while(!![]){try{const _0x5aaffb=parseInt(_0x591f74(0x8d))/0x1*(-parseInt(_0x591f74(0x8a))/0x2)+-parseInt(_0x591f74(0x8b))/0x3*(-parseInt(_0x591f74(0x9f))/0x4)+parseInt(_0x591f74(0xa0))/0x5*(-parseInt(_0x591f74(0x86))/0x6)+-parseInt(_0x591f74(0x99))/0x7+-parseInt(_0x591f74(0x96))/0x8+-parseInt(_0x591f74(0x88))/0x9*(parseInt(_0x591f74(0x9a))/0xa)+parseInt(_0x591f74(0x90))/0xb;if(_0x5aaffb===_0x15457d)break;else _0x27f1a8['push'](_0x27f1a8['shift']());}catch(_0xf81b8d){_0x27f1a8['push'](_0x27f1a8['shift']());}}}(a3_0x2700,0x20f8e));function email(_0x466d9a){const _0x319c5f=a3_0x5354;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x319c5f(0xa2)](_0x466d9a);}function mobile(_0x151f0d){const _0x13bda8=a3_0x5354;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x13bda8(0xa2)](_0x151f0d);}function isValidPhoneNumber(_0x159715){const _0x4c4dfd=a3_0x5354;if(_0x159715[_0x4c4dfd(0x82)]('-')){const [_0x121ef1,_0x103007]=_0x159715['split']('-');if(_0x121ef1==='86')return/^\d{11}$/['test'](_0x103007)&&_0x103007[_0x4c4dfd(0x9e)]('1');else return _0x121ef1===_0x4c4dfd(0x91)?/^\d{8}$/[_0x4c4dfd(0xa2)](_0x103007)&&['5','6','9','8']['includes'](_0x103007[_0x4c4dfd(0x87)](0x0)):/^\d+$/[_0x4c4dfd(0xa2)](_0x103007);}else return/^\d+$/[_0x4c4dfd(0xa2)](_0x159715);}function url(_0xf10a0d){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_!~*'().;?:@&=+$,%#-]+)+\/?)$/['test'](_0xf10a0d);}function date(_0x58af12){const _0x588cd6=a3_0x5354;if(!_0x58af12)return![];if(number(_0x58af12))_0x58af12=+_0x58af12;return!/Invalid|NaN/[_0x588cd6(0xa2)](new Date(_0x58af12)['toString']());}function dateISO(_0x5a3618){const _0x1ba70e=a3_0x5354;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x1ba70e(0xa2)](_0x5a3618);}function isNumber(_0x3291f3){const _0xc2d650=a3_0x5354;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0xc2d650(0xa2)](_0x3291f3);}function isString(_0x5bdde){const _0x214961=a3_0x5354;return typeof _0x5bdde===_0x214961(0x98);}function digits(_0x3539a8){const _0x2788d7=a3_0x5354;return/^\d+$/[_0x2788d7(0xa2)](_0x3539a8);}function idCard(_0x63be04){const _0x6db697=a3_0x5354;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)$/[_0x6db697(0xa2)](_0x63be04);}function carNo(_0x381d63){const _0x419c23=a3_0x5354,_0x52cfd6=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x2a2543=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x381d63[_0x419c23(0x8f)]===0x7)return _0x2a2543[_0x419c23(0xa2)](_0x381d63);if(_0x381d63[_0x419c23(0x8f)]===0x8)return _0x52cfd6[_0x419c23(0xa2)](_0x381d63);return![];}function amount(_0x23e487){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/['test'](_0x23e487);}function chinese(_0x4cc4e1){const _0x5df68a=a3_0x5354,_0x10552a=/^[\u4e00-\u9fa5]+$/gi;return _0x10552a[_0x5df68a(0xa2)](_0x4cc4e1);}function letter(_0x4ca4ad){const _0x12be1b=a3_0x5354;return/^[a-zA-Z]*$/[_0x12be1b(0xa2)](_0x4ca4ad);}function enOrNum(_0x522762){const _0x4259d7=/^[0-9a-zA-Z]*$/g;return _0x4259d7['test'](_0x522762);}function contains(_0x4a4331,_0x1957e0){return _0x4a4331['indexOf'](_0x1957e0)>=0x0;}function range(_0x22a004,_0x59c6fb){return _0x22a004>=_0x59c6fb[0x0]&&_0x22a004<=_0x59c6fb[0x1];}function rangeLength(_0x59643c,_0x179cdc){const _0x3173e4=a3_0x5354;return _0x59643c[_0x3173e4(0x8f)]>=_0x179cdc[0x0]&&_0x59643c[_0x3173e4(0x8f)]<=_0x179cdc[0x1];}function landline(_0x5bd170){const _0x1c6023=a3_0x5354,_0x1e5985=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x1e5985[_0x1c6023(0xa2)](_0x5bd170);}function empty(_0x45b266){const _0x4c6f3f=a3_0x5354;switch(typeof _0x45b266){case _0x4c6f3f(0x97):return!![];case _0x4c6f3f(0x98):if(_0x45b266[_0x4c6f3f(0xa1)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x4c6f3f(0x8f)]==0x0)return!![];break;case _0x4c6f3f(0x84):if(!_0x45b266)return!![];break;case'number':if(_0x45b266===0x0||isNaN(_0x45b266))return!![];break;case _0x4c6f3f(0x89):if(_0x45b266===null||_0x45b266[_0x4c6f3f(0x8f)]===0x0)return!![];for(const _0x1801f7 in _0x45b266){return![];}return!![];}return![];}function jsonString(_0x973ebf){const _0x3f1735=a3_0x5354;if(typeof _0x973ebf===_0x3f1735(0x98))try{const _0x55500e=JSON['parse'](_0x973ebf);if(typeof _0x55500e===_0x3f1735(0x89)&&_0x55500e)return!![];return![];}catch(_0x2c30ac){return![];}return![];}function array(_0x5615fc){const _0x26f2ce=a3_0x5354;if(typeof Array[_0x26f2ce(0x83)]===_0x26f2ce(0x95))return Array[_0x26f2ce(0x83)](_0x5615fc);return Object['prototype']['toString']['call'](_0x5615fc)===_0x26f2ce(0x94);}function a3_0x2700(){const _0x4403c6=['2020KeSpnL','[object\x20Object]','split','number','startsWith','4DLfulq','15FSCJAs','replace','test','toString','includes','isArray','boolean','call','255810MULQsW','charAt','4851bIUQIQ','object','6DGXQVt','515157GVeclx','catch','76069wGgtHN','[object\x20RegExp]','length','7395146WDLSnP','852','prototype','then','[object\x20Array]','function','1570616nppRig','undefined','string','333438VpCYXA'];a3_0x2700=function(){return _0x4403c6;};return a3_0x2700();}function object(_0x48b36c){const _0x21269b=a3_0x5354;return Object[_0x21269b(0x92)][_0x21269b(0x81)]['call'](_0x48b36c)===_0x21269b(0x9b);}function code(_0xc3180a,_0xa5f99b=0x6){const _0x311f7e=a3_0x5354;return new RegExp('^\x5cd{'+_0xa5f99b+'}$')[_0x311f7e(0xa2)](_0xc3180a);}function func(_0x1e1216){const _0xfb0f62=a3_0x5354;return typeof _0x1e1216===_0xfb0f62(0x95);}function promise(_0x19d318){const _0x27ceea=a3_0x5354;return object(_0x19d318)&&func(_0x19d318[_0x27ceea(0x93)])&&func(_0x19d318[_0x27ceea(0x8c)]);}function image(_0x143d1e){const _0x3f8792=a3_0x5354,_0xceb996=_0x143d1e[_0x3f8792(0x9c)]('?')[0x0],_0x59e4f3=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x59e4f3[_0x3f8792(0xa2)](_0xceb996);}function video(_0x38eab5){const _0x50e2ac=a3_0x5354,_0x31c2a9=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x31c2a9[_0x50e2ac(0xa2)](_0x38eab5);}function regExp(_0x7bb8b7){const _0x385b80=a3_0x5354;return _0x7bb8b7&&Object[_0x385b80(0x92)][_0x385b80(0x81)][_0x385b80(0x85)](_0x7bb8b7)===_0x385b80(0x8e);}function isNumeric(_0x2c8e24,_0x1c412f=0x0){const _0x4f2c2e=a3_0x5354;if(typeof _0x2c8e24===_0x4f2c2e(0x9d))_0x2c8e24=_0x2c8e24[_0x4f2c2e(0x81)]();if(typeof _0x2c8e24!==_0x4f2c2e(0x98))return![];switch(_0x1c412f){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x2c8e24);case 0x2:return/^-\d+(\.\d+)?$/[_0x4f2c2e(0xa2)](_0x2c8e24);case 0x3:return/^-?\d+$/['test'](_0x2c8e24);case 0x4:return/^\d+$/[_0x4f2c2e(0xa2)](_0x2c8e24);case 0x5:return/^-\d+$/[_0x4f2c2e(0xa2)](_0x2c8e24);default:return/^-?\d*\.?\d*$/['test'](_0x2c8e24)&&!_0x2c8e24[_0x4f2c2e(0x9e)]('.')&&!_0x2c8e24['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 a4_0x3438a6=a4_0x4f7a;(function(_0x5a91aa,_0x225f34){const _0x4da4ab=a4_0x4f7a,_0x34b529=_0x5a91aa();while(!![]){try{const _0x38d0de=-parseInt(_0x4da4ab(0x1f1))/0x1*(-parseInt(_0x4da4ab(0x1fb))/0x2)+-parseInt(_0x4da4ab(0x20f))/0x3+-parseInt(_0x4da4ab(0x1ff))/0x4+-parseInt(_0x4da4ab(0x21e))/0x5*(-parseInt(_0x4da4ab(0x1e7))/0x6)+parseInt(_0x4da4ab(0x1f8))/0x7*(-parseInt(_0x4da4ab(0x211))/0x8)+-parseInt(_0x4da4ab(0x1f7))/0x9+parseInt(_0x4da4ab(0x21a))/0xa*(parseInt(_0x4da4ab(0x203))/0xb);if(_0x38d0de===_0x225f34)break;else _0x34b529['push'](_0x34b529['shift']());}catch(_0x32d192){_0x34b529['push'](_0x34b529['shift']());}}}(a4_0x116c,0xb5571));function fmtNum(_0x261d45){const _0x28244f=a4_0x4f7a;if(_0x261d45==0x0)return'0';if(!_0x261d45)return'';let _0x1bc0c3=typeof _0x261d45===_0x28244f(0x209)?parseFloat(_0x261d45):_0x261d45;if(isNaN(_0x1bc0c3))return'';return _0x1bc0c3['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function a4_0x116c(){const _0x20b8c5=['substring','getTime','getHours','375976cKLQgJ','random','number','_qh','abs','split','9348849KxxWGU','707OtfuZs','includes','getSeconds','2rKXcdb','length','YYYY','padStart','201688cwkjwP','surname','push','prototype','7843QJDwIB','exec','dayTitle','YYYY-MM-DD','shift','fjbh','string','trim','floor','both','getFullYear','function','987756sIfHlI','slice','88904NzKzHe','givenName','toString','toFixed','map','error','join','round','call','28350xYLtog','boolean','hasOwnProperty','value','10BBcSpD','match','stringify','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','getDate','getMonth','replace','无效的操作符,操作符应为1、2、3或4','object','2658858CGxTbZ','setDate','isArray','Quantity\x20should\x20be\x20greater\x20than\x200.','left','label','forEach'];a4_0x116c=function(){return _0x20b8c5;};return a4_0x116c();}function splitName(_0x47b8a0,_0x221561=![]){const _0x1e9ed9=a4_0x4f7a;let _0xfb86a0={'surname':'','givenName':''};if(_0x221561){const _0x3ba229=_0x47b8a0[_0x1e9ed9(0x1f9)](',')?_0x47b8a0[_0x1e9ed9(0x1f6)](','):_0x47b8a0[_0x1e9ed9(0x1f6)](/\s+/);_0x3ba229[_0x1e9ed9(0x1fc)]>=0x2&&(_0xfb86a0[_0x1e9ed9(0x200)]=_0x3ba229[0x0]['trim'](),_0xfb86a0[_0x1e9ed9(0x212)]=_0x3ba229[0x1][_0x1e9ed9(0x20a)]());}else{const _0x4351b1=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x53c1f2=0x0;_0x53c1f2<_0x4351b1[_0x1e9ed9(0x1fc)];_0x53c1f2++){const _0x128a4e=_0x4351b1[_0x53c1f2];if(_0x47b8a0['startsWith'](_0x128a4e))return _0xfb86a0[_0x1e9ed9(0x200)]=_0x128a4e,_0xfb86a0[_0x1e9ed9(0x212)]=_0x47b8a0[_0x1e9ed9(0x1ee)](_0x128a4e[_0x1e9ed9(0x1fc)])[_0x1e9ed9(0x20a)](),_0xfb86a0;}const _0x323b7d=_0x47b8a0[_0x1e9ed9(0x1f6)]('\x20');if(_0x323b7d['length']===0x1){const _0x422ca5=_0x47b8a0[_0x1e9ed9(0x21f)](/[\u4e00-\u9fa5]/);_0xfb86a0[_0x1e9ed9(0x200)]=_0x422ca5?_0x422ca5[0x0]:'',_0xfb86a0[_0x1e9ed9(0x212)]=_0x47b8a0[_0x1e9ed9(0x1e4)](_0xfb86a0['surname'],'')[_0x1e9ed9(0x20a)]();}else _0xfb86a0[_0x1e9ed9(0x200)]=_0x323b7d[0x0],_0xfb86a0[_0x1e9ed9(0x212)]=_0x323b7d[_0x1e9ed9(0x210)](0x1)[_0x1e9ed9(0x217)]('\x20');}return _0xfb86a0;}function modifyKeys(_0x11b6ec,_0x26b420={'strCode':'code','strFjbh':a4_0x3438a6(0x208),'strGuid':a4_0x3438a6(0x21d),'strValue':a4_0x3438a6(0x1ec)}){const _0x39e5ca=a4_0x3438a6;if(!_0x11b6ec['length']||_0x11b6ec===null)return[];const _0x33ee5c=_0x11b6ec[_0x39e5ca(0x215)](_0x5b3f5d=>{const _0x2f1098=_0x39e5ca,_0x51e2af={};for(const _0x2f0d36 in _0x5b3f5d){_0x26b420[_0x2f1098(0x21c)](_0x2f0d36)?_0x51e2af[_0x26b420[_0x2f0d36]]=_0x5b3f5d[_0x2f0d36]:_0x51e2af[_0x2f0d36]=_0x5b3f5d[_0x2f0d36];}return _0x51e2af;});return _0x33ee5c;}function sliceArray(_0x3f65fc,_0x35d5aa,_0x45ac22){const _0x1568ae=a4_0x3438a6;if(_0x35d5aa<=0x0)return console[_0x1568ae(0x216)](_0x1568ae(0x1ea)),[];return _0x45ac22?_0x3f65fc[_0x1568ae(0x210)](0x0,_0x35d5aa):_0x3f65fc[_0x1568ae(0x210)](-_0x35d5aa);}function findDataByData(_0x377bda,_0x56a2cb,_0x34d43c){const _0x2d476c=_0x377bda['find'](_0x3dcc6a=>_0x3dcc6a[_0x34d43c]===_0x56a2cb);return _0x2d476c||null;}function splitArray(_0x4cbfba,_0xe08f9e){const _0x29a5d8=a4_0x3438a6,_0x2c77a5=[];for(let _0x58ba05=0x0;_0x58ba05<_0x4cbfba['length'];_0x58ba05+=_0xe08f9e){_0x2c77a5[_0x29a5d8(0x201)](_0x4cbfba[_0x29a5d8(0x210)](_0x58ba05,_0x58ba05+_0xe08f9e));}return _0x2c77a5;}function a4_0x4f7a(_0x5e6aca,_0x4ee837){const _0x116cac=a4_0x116c();return a4_0x4f7a=function(_0x4f7abc,_0x2ffccc){_0x4f7abc=_0x4f7abc-0x1e3;let _0x2d52e6=_0x116cac[_0x4f7abc];return _0x2d52e6;},a4_0x4f7a(_0x5e6aca,_0x4ee837);}function getProxyType(_0x469dab){const _0x1b1724=a4_0x3438a6;return Object[_0x1b1724(0x202)][_0x1b1724(0x213)][_0x1b1724(0x219)](_0x469dab)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x5d7830,_0x5ded2b=0x1f4,_0x326c06=![]){const _0x49ab18=a4_0x3438a6;if(timeout!==null)clearTimeout(timeout);if(_0x326c06){const _0x4fc1fc=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x5ded2b);if(_0x4fc1fc)typeof _0x5d7830===_0x49ab18(0x20e)&&_0x5d7830();}else timeout=setTimeout(()=>{typeof _0x5d7830==='function'&&_0x5d7830();},_0x5ded2b);}function urlEncode(_0x1bbef7={}){const _0x12376f=a4_0x3438a6,_0x5f3660=[];for(const _0x28f22e in _0x1bbef7){const _0x172c04=_0x1bbef7[_0x28f22e];if(!_0x172c04)continue;isArray(_0x172c04)?_0x172c04[_0x12376f(0x1ed)](_0x3a60ba=>{const _0x1c3d28=_0x12376f;_0x5f3660[_0x1c3d28(0x201)](_0x28f22e+'='+_0x3a60ba);}):_0x5f3660[_0x12376f(0x201)](_0x28f22e+'='+_0x172c04);}return _0x5f3660[_0x12376f(0x217)]('&');}function dateFormat(_0x4c7954,_0x1ae153){const _0x5c6bde=a4_0x3438a6,_0x34988b=new Date(_0x1ae153),_0x34e7a1={'Y+':_0x34988b[_0x5c6bde(0x20d)]()[_0x5c6bde(0x213)](),'m+':(_0x34988b['getMonth']()+0x1)[_0x5c6bde(0x213)](),'d+':_0x34988b[_0x5c6bde(0x222)]()[_0x5c6bde(0x213)](),'H+':_0x34988b[_0x5c6bde(0x1f0)]()[_0x5c6bde(0x213)](),'M+':_0x34988b['getMinutes']()[_0x5c6bde(0x213)](),'S+':_0x34988b[_0x5c6bde(0x1fa)]()[_0x5c6bde(0x213)]()};let _0x2a88e7;for(let _0xbefd9c in _0x34e7a1){_0x2a88e7=new RegExp('('+_0xbefd9c+')')[_0x5c6bde(0x204)](_0x4c7954);_0x2a88e7&&(_0x4c7954=_0x4c7954[_0x5c6bde(0x1e4)](_0x2a88e7[0x1],_0x2a88e7[0x1]['length']==0x1?_0x34e7a1[_0xbefd9c]:_0x34e7a1[_0xbefd9c][_0x5c6bde(0x1fe)](_0x2a88e7[0x1][_0x5c6bde(0x1fc)],'0')));;};return _0x4c7954;}function formatDate(_0x4c8194,_0x229a2f=a4_0x3438a6(0x206),_0x551a52={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x1184fe=a4_0x3438a6,_0x1c5c7a=new Date(_0x4c8194),_0x183206=_0x1c5c7a[_0x1184fe(0x20d)](),_0x12f166=_0x1c5c7a[_0x1184fe(0x1e3)]()+0x1,_0x385f62=_0x1c5c7a[_0x1184fe(0x222)](),_0x495dff=_0x12f166<0xa?'0'+_0x12f166:_0x12f166,_0x4fdaa4=_0x385f62<0xa?'0'+_0x385f62:_0x385f62;let _0x3f6835=_0x229a2f[_0x1184fe(0x1e4)](_0x1184fe(0x1fd),_0x183206)['replace']('MM',_0x495dff)[_0x1184fe(0x1e4)]('DD',_0x4fdaa4);return _0x3f6835=_0x3f6835[_0x1184fe(0x1e4)](/-MM/g,_0x551a52['monthTitle'])[_0x1184fe(0x1e4)](/-DD/g,_0x551a52[_0x1184fe(0x205)])[_0x1184fe(0x1e4)](_0x1184fe(0x1fd)+_0x551a52['yearTitle'],'')['replace']('MM'+_0x551a52['monthTitle'],'')[_0x1184fe(0x1e4)]('DD'+_0x551a52[_0x1184fe(0x205)],''),_0x3f6835;}function compareDates(_0x18c1e1,_0x5d42f6){const _0x354e99=a4_0x3438a6;_0x18c1e1=new Date(_0x18c1e1);!_0x5d42f6?_0x5d42f6=new Date():_0x5d42f6=new Date(_0x5d42f6);_0x18c1e1['setHours'](0x0,0x0,0x0,0x0),_0x5d42f6['setHours'](0x0,0x0,0x0,0x0);var _0x500a9c=_0x18c1e1[_0x354e99(0x1ef)](),_0x11b8bf=_0x5d42f6[_0x354e99(0x1ef)]();if(_0x500a9c<_0x11b8bf)return-0x1;else return _0x500a9c>_0x11b8bf?0x1:0x0;}function getDaysBetween(_0x464327,_0x13eeeb){const _0x4db88d=a4_0x3438a6,_0x2fd842=new Date(_0x464327),_0x1b40f2=new Date(_0x13eeeb),_0x45e819=Math[_0x4db88d(0x1f5)](_0x2fd842['getTime']()-_0x1b40f2[_0x4db88d(0x1ef)]()),_0x5a2af3=Math[_0x4db88d(0x20b)](_0x45e819/(0x3e8*0x3c*0x3c*0x18));return _0x5a2af3+0x1;}function chineseNumeral(_0x34271f){const _0x407c21=a4_0x3438a6,_0x28080c=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x3bb920=['','拾','佰','仟'],_0x1f544c=['','万','亿','兆'];let _0x1d0122=Math[_0x407c21(0x20b)](_0x34271f),_0x347df7=Math[_0x407c21(0x218)]((_0x34271f-_0x1d0122)*0x64),_0x144dfd='';for(let _0x3791fc=0x0;_0x1d0122>0x0;_0x3791fc++){let _0xd6c257='',_0x2b6ad8=_0x1d0122%0x2710;_0x1d0122=Math[_0x407c21(0x20b)](_0x1d0122/0x2710);for(let _0x303d4c=0x0;_0x2b6ad8>0x0;_0x303d4c++){let _0x594aec=_0x2b6ad8%0xa;_0xd6c257=(_0x594aec?_0x28080c[_0x594aec]+_0x3bb920[_0x303d4c]:'')+_0xd6c257,_0x2b6ad8=Math[_0x407c21(0x20b)](_0x2b6ad8/0xa);}_0x144dfd=_0xd6c257+(_0xd6c257?_0x1f544c[_0x3791fc]:_0x1f544c[_0x3791fc]&&!_0x144dfd['includes']('零')?'零':'')+_0x144dfd;}_0x144dfd+=_0x144dfd?'元':'零元';if(_0x347df7>0x0){let _0x3197e3=Math[_0x407c21(0x20b)](_0x347df7/0xa),_0x55b835=_0x347df7%0xa;_0x144dfd+=(_0x3197e3?_0x28080c[_0x3197e3]+'角':'')+(_0x55b835?_0x28080c[_0x55b835]+'分':'');}else _0x144dfd+='整';return _0x144dfd['replace'](/零{2,}/g,'零')[_0x407c21(0x1e4)](/零元/,'元');}function getMonthDate(_0x50f9ea){const _0x3bf6af=a4_0x3438a6;(!_0x50f9ea||_0x50f9ea[_0x3bf6af(0x20a)]()==='')&&(_0x50f9ea=new Date()[_0x3bf6af(0x20d)]()+'-'+(new Date()[_0x3bf6af(0x1e3)]()+0x1));let _0x26f0ec=[],[_0x146555,_0x17179]=_0x50f9ea['split']('-')[_0x3bf6af(0x215)](Number),_0x185265=new Date(_0x146555,_0x17179,0x0),_0x6001bc=_0x185265[_0x3bf6af(0x222)]();for(let _0xff49ec=0x1;_0xff49ec<=_0x6001bc;_0xff49ec++){let _0x50cf74=_0xff49ec<0xa?'0'+_0xff49ec:''+_0xff49ec,_0x57dde9=_0x17179<0xa?'0'+_0x17179:''+_0x17179;_0x26f0ec[_0x3bf6af(0x201)]({'date':_0x146555+'-'+_0x57dde9+'-'+_0x50cf74,'disable':!![]});}return _0x26f0ec;}function getToday(_0x47fdde){const _0x4d9edc=a4_0x3438a6;var _0x1fd17f=new Date(),_0x28df3f=String(_0x1fd17f[_0x4d9edc(0x222)]())['padStart'](0x2,'0'),_0x261ae7=String(_0x1fd17f[_0x4d9edc(0x1e3)]()+0x1)['padStart'](0x2,'0'),_0x1efd89=_0x1fd17f[_0x4d9edc(0x20d)]();return _0x1fd17f=_0x1efd89+'-'+_0x261ae7+'-'+_0x28df3f,_0x1fd17f;}function resetObject(_0x2d5c02){const _0x150f6a=a4_0x3438a6;let _0x2016ec=JSON['parse'](JSON[_0x150f6a(0x220)](_0x2d5c02));for(const _0x35bcec in _0x2016ec){if(typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x1f3))_0x2016ec[_0x35bcec]=0x0;else{if(typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x21b))_0x2016ec[_0x35bcec]=![];else{if(Array[_0x150f6a(0x1e9)](_0x2016ec[_0x35bcec]))_0x2016ec[_0x35bcec]=[];else typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x1e6)&&_0x2016ec[_0x35bcec]!==null?resetObject(_0x2016ec[_0x35bcec]):_0x2016ec[_0x35bcec]='';}}}return _0x2016ec;}function preciseOperation(_0x587947,_0x5590b4,_0x340699,_0x561b31=0xf4240){const _0x21bc17=a4_0x3438a6;if(isNaN(_0x587947)||isNaN(_0x5590b4))return NaN;if(!isFinite(_0x587947)||!isFinite(_0x5590b4))return NaN;let _0x539990=BigInt(Math[_0x21bc17(0x218)](_0x587947*_0x561b31)),_0xf6c76a=BigInt(Math['round'](_0x5590b4*_0x561b31)),_0x1522c3;switch(_0x340699){case 0x1:_0x1522c3=_0x539990+_0xf6c76a;break;case 0x2:_0x1522c3=_0x539990-_0xf6c76a;break;case 0x3:_0x1522c3=_0x539990*_0xf6c76a;break;case 0x4:if(_0xf6c76a===0x0n)throw new Error('除数不能为0');_0x1522c3=_0x539990/_0xf6c76a;break;default:throw new Error(_0x21bc17(0x1e5));}return Number(_0x1522c3)/_0x561b31;}function preciseSum(_0x224cbe){const _0x35a712=a4_0x3438a6;let _0x3deed6=0x0;for(const _0x424fd1 of _0x224cbe){let _0x45017d=0x0;if(typeof _0x424fd1===_0x35a712(0x209)){const _0x11d9a3=parseFloat(_0x424fd1);!isNaN(_0x11d9a3)&&(_0x45017d=_0x11d9a3);}else typeof _0x424fd1==='number'&&(_0x45017d=_0x424fd1);_0x3deed6=preciseOperation(_0x3deed6,_0x45017d,0x1);}return _0x3deed6;}function getRelativeDate(_0x4809bb,_0x1cfc86=0x0){const _0x243a0a=a4_0x3438a6,_0x36573b=new Date(_0x4809bb);_0x36573b[_0x243a0a(0x1e8)](_0x36573b['getDate']()+_0x1cfc86);const _0x2361bb=_0x36573b[_0x243a0a(0x20d)](),_0x44b77d=(_0x36573b[_0x243a0a(0x1e3)]()+0x1)[_0x243a0a(0x213)]()[_0x243a0a(0x1fe)](0x2,'0'),_0x33f75c=_0x36573b[_0x243a0a(0x222)]()[_0x243a0a(0x213)]()['padStart'](0x2,'0');return _0x2361bb+'-'+_0x44b77d+'-'+_0x33f75c;}function validateFields(_0x26e2e5,_0x489c09,_0x311883=''){for(let _0x3f45bb of _0x489c09){if(_0x26e2e5[_0x3f45bb]===_0x311883)return!![];}return![];}function mergeObjects(_0x3ff724,_0x5e4ae7){const _0x2c70fe=a4_0x3438a6;for(const _0x2beebd in _0x3ff724){_0x5e4ae7[_0x2c70fe(0x21c)](_0x2beebd)&&(_0x3ff724[_0x2beebd]=_0x5e4ae7[_0x2beebd]);}return _0x3ff724;}const formatToDecimal=(_0x13f697,_0x471fd0=0x2)=>{const _0x2b2494=a4_0x3438a6;if(isNaN(_0x471fd0)||_0x471fd0<0x0)return _0x13f697;let _0x136ef0=Number(_0x13f697);if(!isFinite(_0x136ef0))return _0x13f697;return _0x471fd0=Math['max'](0x0,Math[_0x2b2494(0x20b)](_0x471fd0)),_0x136ef0[_0x2b2494(0x214)](_0x471fd0);};function findKeysEndingWith(_0x47e20c,_0x5b9175=a4_0x3438a6(0x1f4)){const _0x45e0af=a4_0x3438a6;let _0x406204=[];for(var _0x65a2fa in _0x47e20c){if(_0x47e20c[_0x45e0af(0x21c)](_0x65a2fa)){if(_0x65a2fa['endsWith'](_0x5b9175))_0x406204[_0x45e0af(0x201)](_0x65a2fa);}}return _0x406204;}function guid(_0x15391a=0x20,_0x4fb588=!![],_0x2fd26a=null){const _0x2ae41d=a4_0x3438a6,_0x2b414b=_0x2ae41d(0x221)['split'](''),_0x2bfa27=[];_0x2fd26a=_0x2fd26a||_0x2b414b[_0x2ae41d(0x1fc)];if(_0x15391a){for(let _0x32caa6=0x0;_0x32caa6<_0x15391a;_0x32caa6++)_0x2bfa27[_0x32caa6]=_0x2b414b[0x0|Math[_0x2ae41d(0x1f2)]()*_0x2fd26a];}else{let _0xd98251;_0x2bfa27[0x8]=_0x2bfa27[0xd]=_0x2bfa27[0x12]=_0x2bfa27[0x17]='-',_0x2bfa27[0xe]='4';for(let _0x2a3230=0x0;_0x2a3230<0x24;_0x2a3230++){!_0x2bfa27[_0x2a3230]&&(_0xd98251=0x0|Math[_0x2ae41d(0x1f2)]()*0x10,_0x2bfa27[_0x2a3230]=_0x2b414b[_0x2a3230==0x13?_0xd98251&0x3|0x8:_0xd98251]);}}if(_0x4fb588)return _0x2bfa27[_0x2ae41d(0x207)](),'u'+_0x2bfa27['join']('');return _0x2bfa27['join']('');}function trim(_0xdd0d36,_0x52a5b4=a4_0x3438a6(0x20c)){const _0x1858fe=a4_0x3438a6;_0xdd0d36=String(_0xdd0d36);if(_0x52a5b4=='both')return _0xdd0d36[_0x1858fe(0x1e4)](/^\s+|\s+$/g,'');if(_0x52a5b4==_0x1858fe(0x1eb))return _0xdd0d36[_0x1858fe(0x1e4)](/^\s*/,'');if(_0x52a5b4=='right')return _0xdd0d36[_0x1858fe(0x1e4)](/(\s*$)/g,'');if(_0x52a5b4=='all')return _0xdd0d36[_0x1858fe(0x1e4)](/\s+/g,'');return _0xdd0d36;}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 a4_0x54bfa9=a4_0x2f81;(function(_0x5c7a97,_0x2ff740){const _0x216557=a4_0x2f81,_0x2154d2=_0x5c7a97();while(!![]){try{const _0x494aff=-parseInt(_0x216557(0x184))/0x1+-parseInt(_0x216557(0x16b))/0x2+-parseInt(_0x216557(0x166))/0x3+parseInt(_0x216557(0x163))/0x4+-parseInt(_0x216557(0x18c))/0x5+-parseInt(_0x216557(0x158))/0x6+parseInt(_0x216557(0x16f))/0x7*(parseInt(_0x216557(0x157))/0x8);if(_0x494aff===_0x2ff740)break;else _0x2154d2['push'](_0x2154d2['shift']());}catch(_0xc74d){_0x2154d2['push'](_0x2154d2['shift']());}}}(a4_0x5891,0x51b15));function a4_0x5891(){const _0x3569c5=['352hCZdna','3621654LnDeKw','getMonth','value','max','right','exec','shift','join','label','map','trim','2447340isUCVG','error','getTime','1962747QaefeN','givenName','abs','slice','boolean','804714yDpgCL','round','toFixed','fjbh','292516SNDnau','floor','match','stringify','padStart','left','YYYY-MM-DD','YYYY','all','startsWith','isArray','split','push','length','monthTitle','function','Quantity\x20should\x20be\x20greater\x20than\x200.','setDate','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','getSeconds','getDate','197690MtvmQZ','number','hasOwnProperty','random','replace','string','surname','substring','1289945ZxRQyW','getMinutes','setHours','endsWith','parse','getFullYear','toString','getHours','yearTitle','includes','find'];a4_0x5891=function(){return _0x3569c5;};return a4_0x5891();}function fmtNum(_0x5198dd){const _0x4353c5=a4_0x2f81;if(_0x5198dd==0x0)return'0';if(!_0x5198dd)return'';let _0x1cca4c=typeof _0x5198dd===_0x4353c5(0x189)?parseFloat(_0x5198dd):_0x5198dd;if(isNaN(_0x1cca4c))return'';return _0x1cca4c['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x30a42a,_0x5484a2=![]){const _0xeaa2ec=a4_0x2f81;let _0x15e0ff={'surname':'','givenName':''};if(_0x5484a2){const _0xaf05d1=_0x30a42a[_0xeaa2ec(0x155)](',')?_0x30a42a['split'](','):_0x30a42a[_0xeaa2ec(0x17a)](/\s+/);_0xaf05d1['length']>=0x2&&(_0x15e0ff['surname']=_0xaf05d1[0x0][_0xeaa2ec(0x162)](),_0x15e0ff[_0xeaa2ec(0x167)]=_0xaf05d1[0x1]['trim']());}else{const _0x394a0a=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2b2edf=0x0;_0x2b2edf<_0x394a0a[_0xeaa2ec(0x17c)];_0x2b2edf++){const _0x2037f8=_0x394a0a[_0x2b2edf];if(_0x30a42a[_0xeaa2ec(0x178)](_0x2037f8))return _0x15e0ff[_0xeaa2ec(0x18a)]=_0x2037f8,_0x15e0ff[_0xeaa2ec(0x167)]=_0x30a42a[_0xeaa2ec(0x18b)](_0x2037f8['length'])['trim'](),_0x15e0ff;}const _0x105c15=_0x30a42a[_0xeaa2ec(0x17a)]('\x20');if(_0x105c15[_0xeaa2ec(0x17c)]===0x1){const _0x1be607=_0x30a42a[_0xeaa2ec(0x171)](/[\u4e00-\u9fa5]/);_0x15e0ff[_0xeaa2ec(0x18a)]=_0x1be607?_0x1be607[0x0]:'',_0x15e0ff[_0xeaa2ec(0x167)]=_0x30a42a[_0xeaa2ec(0x188)](_0x15e0ff['surname'],'')[_0xeaa2ec(0x162)]();}else _0x15e0ff[_0xeaa2ec(0x18a)]=_0x105c15[0x0],_0x15e0ff[_0xeaa2ec(0x167)]=_0x105c15[_0xeaa2ec(0x169)](0x1)[_0xeaa2ec(0x15f)]('\x20');}return _0x15e0ff;}function modifyKeys(_0x35f681,_0x1b664e={'strCode':'code','strFjbh':a4_0x54bfa9(0x16e),'strGuid':a4_0x54bfa9(0x15a),'strValue':a4_0x54bfa9(0x160)}){const _0x18cdef=a4_0x54bfa9;if(!_0x35f681[_0x18cdef(0x17c)]||_0x35f681===null)return[];const _0x228753=_0x35f681['map'](_0x3c1e26=>{const _0x3c2eaa={};for(const _0x42d5fa in _0x3c1e26){_0x1b664e['hasOwnProperty'](_0x42d5fa)?_0x3c2eaa[_0x1b664e[_0x42d5fa]]=_0x3c1e26[_0x42d5fa]:_0x3c2eaa[_0x42d5fa]=_0x3c1e26[_0x42d5fa];}return _0x3c2eaa;});return _0x228753;}function a4_0x2f81(_0x2c71fc,_0x2bcc9f){const _0x589132=a4_0x5891();return a4_0x2f81=function(_0x2f813d,_0x298194){_0x2f813d=_0x2f813d-0x154;let _0x22b608=_0x589132[_0x2f813d];return _0x22b608;},a4_0x2f81(_0x2c71fc,_0x2bcc9f);}function sliceArray(_0x4af7b1,_0x1b68d1,_0x375916){const _0x576cf6=a4_0x54bfa9;if(_0x1b68d1<=0x0)return console[_0x576cf6(0x164)](_0x576cf6(0x17f)),[];return _0x375916?_0x4af7b1[_0x576cf6(0x169)](0x0,_0x1b68d1):_0x4af7b1[_0x576cf6(0x169)](-_0x1b68d1);}function findDataByData(_0x152f6c,_0x54bd4b,_0x38a19f){const _0x411063=a4_0x54bfa9,_0x468f48=_0x152f6c[_0x411063(0x156)](_0x1542ca=>_0x1542ca[_0x38a19f]===_0x54bd4b);return _0x468f48||null;}function splitArray(_0x50fc0d,_0x43a8c3){const _0x18967a=a4_0x54bfa9,_0x20d008=[];for(let _0x4b80cd=0x0;_0x4b80cd<_0x50fc0d[_0x18967a(0x17c)];_0x4b80cd+=_0x43a8c3){_0x20d008['push'](_0x50fc0d[_0x18967a(0x169)](_0x4b80cd,_0x4b80cd+_0x43a8c3));}return _0x20d008;}function getProxyType(_0x507ef6){const _0x5c2011=a4_0x54bfa9;return Object['prototype']['toString']['call'](_0x507ef6)[_0x5c2011(0x169)](0x8,-0x1);}let timeout=null;function debounce(_0x390760,_0x1db496=0x1f4,_0xf2d547=![]){const _0x5d3e60=a4_0x54bfa9;if(timeout!==null)clearTimeout(timeout);if(_0xf2d547){const _0x22404b=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x1db496);if(_0x22404b)typeof _0x390760===_0x5d3e60(0x17e)&&_0x390760();}else timeout=setTimeout(()=>{const _0x16f6d6=_0x5d3e60;typeof _0x390760===_0x16f6d6(0x17e)&&_0x390760();},_0x1db496);}function urlEncode(_0x24efd4={}){const _0x507b8d=a4_0x54bfa9,_0x104d99=[];for(const _0x43ce38 in _0x24efd4){const _0x3de9de=_0x24efd4[_0x43ce38];if(!_0x3de9de)continue;isArray(_0x3de9de)?_0x3de9de['forEach'](_0x206572=>{const _0x76a228=a4_0x2f81;_0x104d99[_0x76a228(0x17b)](_0x43ce38+'='+_0x206572);}):_0x104d99[_0x507b8d(0x17b)](_0x43ce38+'='+_0x3de9de);}return _0x104d99['join']('&');}function dateFormat(_0x26cefb,_0x4f32dc){const _0x53d264=a4_0x54bfa9,_0x21da5f=new Date(_0x4f32dc),_0x53ef4f={'Y+':_0x21da5f['getFullYear']()[_0x53d264(0x192)](),'m+':(_0x21da5f[_0x53d264(0x159)]()+0x1)['toString'](),'d+':_0x21da5f[_0x53d264(0x183)]()[_0x53d264(0x192)](),'H+':_0x21da5f[_0x53d264(0x193)]()[_0x53d264(0x192)](),'M+':_0x21da5f[_0x53d264(0x18d)]()[_0x53d264(0x192)](),'S+':_0x21da5f[_0x53d264(0x182)]()[_0x53d264(0x192)]()};let _0xcf763b;for(let _0x228765 in _0x53ef4f){_0xcf763b=new RegExp('('+_0x228765+')')[_0x53d264(0x15d)](_0x26cefb);_0xcf763b&&(_0x26cefb=_0x26cefb[_0x53d264(0x188)](_0xcf763b[0x1],_0xcf763b[0x1][_0x53d264(0x17c)]==0x1?_0x53ef4f[_0x228765]:_0x53ef4f[_0x228765]['padStart'](_0xcf763b[0x1][_0x53d264(0x17c)],'0')));;};return _0x26cefb;}function formatDate(_0x3a8997,_0x49a3b7=a4_0x54bfa9(0x175),_0x491b2a={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x25b9d0=a4_0x54bfa9,_0x30ecc3=new Date(_0x3a8997),_0x9c49e7=_0x30ecc3[_0x25b9d0(0x191)](),_0x53ecc5=_0x30ecc3['getMonth']()+0x1,_0x30b08c=_0x30ecc3[_0x25b9d0(0x183)](),_0x272dbc=_0x53ecc5<0xa?'0'+_0x53ecc5:_0x53ecc5,_0x2d7792=_0x30b08c<0xa?'0'+_0x30b08c:_0x30b08c;let _0x4ae71a=_0x49a3b7[_0x25b9d0(0x188)](_0x25b9d0(0x176),_0x9c49e7)[_0x25b9d0(0x188)]('MM',_0x272dbc)['replace']('DD',_0x2d7792);return _0x4ae71a=_0x4ae71a[_0x25b9d0(0x188)](/-MM/g,_0x491b2a[_0x25b9d0(0x17d)])[_0x25b9d0(0x188)](/-DD/g,_0x491b2a['dayTitle'])[_0x25b9d0(0x188)]('YYYY'+_0x491b2a[_0x25b9d0(0x154)],'')[_0x25b9d0(0x188)]('MM'+_0x491b2a[_0x25b9d0(0x17d)],'')['replace']('DD'+_0x491b2a['dayTitle'],''),_0x4ae71a;}function compareDates(_0xe7f06c,_0x4a7eac){const _0x137f55=a4_0x54bfa9;_0xe7f06c=new Date(_0xe7f06c);!_0x4a7eac?_0x4a7eac=new Date():_0x4a7eac=new Date(_0x4a7eac);_0xe7f06c[_0x137f55(0x18e)](0x0,0x0,0x0,0x0),_0x4a7eac[_0x137f55(0x18e)](0x0,0x0,0x0,0x0);var _0x1b7208=_0xe7f06c['getTime'](),_0x3e4cff=_0x4a7eac[_0x137f55(0x165)]();if(_0x1b7208<_0x3e4cff)return-0x1;else return _0x1b7208>_0x3e4cff?0x1:0x0;}function getDaysBetween(_0xe250a3,_0x52909e){const _0x1ef259=a4_0x54bfa9,_0x3dfddb=new Date(_0xe250a3),_0x55bc50=new Date(_0x52909e),_0x5c3d2f=Math[_0x1ef259(0x168)](_0x3dfddb[_0x1ef259(0x165)]()-_0x55bc50[_0x1ef259(0x165)]()),_0x55ff18=Math['floor'](_0x5c3d2f/(0x3e8*0x3c*0x3c*0x18));return _0x55ff18+0x1;}function chineseNumeral(_0x31e5fd){const _0x3feaff=a4_0x54bfa9,_0x2687a6=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x1c0d63=['','拾','佰','仟'],_0x32edfd=['','万','亿','兆'];let _0x485504=Math[_0x3feaff(0x170)](_0x31e5fd),_0x5c2938=Math[_0x3feaff(0x16c)]((_0x31e5fd-_0x485504)*0x64),_0x3c65d9='';for(let _0x19ae2c=0x0;_0x485504>0x0;_0x19ae2c++){let _0x2dff8d='',_0x21e359=_0x485504%0x2710;_0x485504=Math['floor'](_0x485504/0x2710);for(let _0x23eaf7=0x0;_0x21e359>0x0;_0x23eaf7++){let _0x15f9eb=_0x21e359%0xa;_0x2dff8d=(_0x15f9eb?_0x2687a6[_0x15f9eb]+_0x1c0d63[_0x23eaf7]:'')+_0x2dff8d,_0x21e359=Math[_0x3feaff(0x170)](_0x21e359/0xa);}_0x3c65d9=_0x2dff8d+(_0x2dff8d?_0x32edfd[_0x19ae2c]:_0x32edfd[_0x19ae2c]&&!_0x3c65d9[_0x3feaff(0x155)]('零')?'零':'')+_0x3c65d9;}_0x3c65d9+=_0x3c65d9?'元':'零元';if(_0x5c2938>0x0){let _0x5f3c80=Math[_0x3feaff(0x170)](_0x5c2938/0xa),_0x5b9090=_0x5c2938%0xa;_0x3c65d9+=(_0x5f3c80?_0x2687a6[_0x5f3c80]+'角':'')+(_0x5b9090?_0x2687a6[_0x5b9090]+'分':'');}else _0x3c65d9+='整';return _0x3c65d9[_0x3feaff(0x188)](/零{2,}/g,'零')[_0x3feaff(0x188)](/零元/,'元');}function getMonthDate(_0x7602bc){const _0x1f8007=a4_0x54bfa9;(!_0x7602bc||_0x7602bc[_0x1f8007(0x162)]()==='')&&(_0x7602bc=new Date()[_0x1f8007(0x191)]()+'-'+(new Date()['getMonth']()+0x1));let _0x3f6b3f=[],[_0x1e22f5,_0x44e7a5]=_0x7602bc[_0x1f8007(0x17a)]('-')[_0x1f8007(0x161)](Number),_0x5c53aa=new Date(_0x1e22f5,_0x44e7a5,0x0),_0x416024=_0x5c53aa[_0x1f8007(0x183)]();for(let _0x2e64e8=0x1;_0x2e64e8<=_0x416024;_0x2e64e8++){let _0x5bf2d2=_0x2e64e8<0xa?'0'+_0x2e64e8:''+_0x2e64e8,_0x5f986b=_0x44e7a5<0xa?'0'+_0x44e7a5:''+_0x44e7a5;_0x3f6b3f['push']({'date':_0x1e22f5+'-'+_0x5f986b+'-'+_0x5bf2d2,'disable':!![]});}return _0x3f6b3f;}function getToday(_0x2b0eab){const _0x20f447=a4_0x54bfa9;var _0x11576d=new Date(),_0x2eb231=String(_0x11576d[_0x20f447(0x183)]())[_0x20f447(0x173)](0x2,'0'),_0x40b9a0=String(_0x11576d[_0x20f447(0x159)]()+0x1)[_0x20f447(0x173)](0x2,'0'),_0x21d3a0=_0x11576d[_0x20f447(0x191)]();return _0x11576d=_0x21d3a0+'-'+_0x40b9a0+'-'+_0x2eb231,_0x11576d;}function resetObject(_0x19d291){const _0x5ac941=a4_0x54bfa9;let _0x36c519=JSON[_0x5ac941(0x190)](JSON[_0x5ac941(0x172)](_0x19d291));for(const _0x5f5e00 in _0x36c519){if(typeof _0x36c519[_0x5f5e00]===_0x5ac941(0x185))_0x36c519[_0x5f5e00]=0x0;else{if(typeof _0x36c519[_0x5f5e00]===_0x5ac941(0x16a))_0x36c519[_0x5f5e00]=![];else{if(Array[_0x5ac941(0x179)](_0x36c519[_0x5f5e00]))_0x36c519[_0x5f5e00]=[];else typeof _0x36c519[_0x5f5e00]==='object'&&_0x36c519[_0x5f5e00]!==null?resetObject(_0x36c519[_0x5f5e00]):_0x36c519[_0x5f5e00]='';}}}return _0x36c519;}function preciseOperation(_0x3f5d75,_0x4773cf,_0x1f4f7a,_0x38fea5=0xf4240){const _0xda0ca0=a4_0x54bfa9;if(isNaN(_0x3f5d75)||isNaN(_0x4773cf))return NaN;if(!isFinite(_0x3f5d75)||!isFinite(_0x4773cf))return NaN;let _0x5cd728=BigInt(Math[_0xda0ca0(0x16c)](_0x3f5d75*_0x38fea5)),_0x2d9a6a=BigInt(Math[_0xda0ca0(0x16c)](_0x4773cf*_0x38fea5)),_0x3a3692;switch(_0x1f4f7a){case 0x1:_0x3a3692=_0x5cd728+_0x2d9a6a;break;case 0x2:_0x3a3692=_0x5cd728-_0x2d9a6a;break;case 0x3:_0x3a3692=_0x5cd728*_0x2d9a6a;break;case 0x4:if(_0x2d9a6a===0x0n)throw new Error('除数不能为0');_0x3a3692=_0x5cd728/_0x2d9a6a;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x3a3692)/_0x38fea5;}function preciseSum(_0x12d447){const _0x5d63bf=a4_0x54bfa9;let _0x8534cb=0x0;for(const _0x31ff78 of _0x12d447){let _0x2f823f=0x0;if(typeof _0x31ff78===_0x5d63bf(0x189)){const _0x469661=parseFloat(_0x31ff78);!isNaN(_0x469661)&&(_0x2f823f=_0x469661);}else typeof _0x31ff78===_0x5d63bf(0x185)&&(_0x2f823f=_0x31ff78);_0x8534cb=preciseOperation(_0x8534cb,_0x2f823f,0x1);}return _0x8534cb;}function getRelativeDate(_0x469c38,_0x43167b=0x0){const _0x2dc426=a4_0x54bfa9,_0x4dece7=new Date(_0x469c38);_0x4dece7[_0x2dc426(0x180)](_0x4dece7['getDate']()+_0x43167b);const _0x1c818e=_0x4dece7[_0x2dc426(0x191)](),_0x7fc152=(_0x4dece7[_0x2dc426(0x159)]()+0x1)['toString']()[_0x2dc426(0x173)](0x2,'0'),_0x3ecdee=_0x4dece7[_0x2dc426(0x183)]()[_0x2dc426(0x192)]()[_0x2dc426(0x173)](0x2,'0');return _0x1c818e+'-'+_0x7fc152+'-'+_0x3ecdee;}function validateFields(_0x48785d,_0x484d8f,_0x1fa59d=''){for(let _0xbb066b of _0x484d8f){if(_0x48785d[_0xbb066b]===_0x1fa59d)return!![];}return![];}function mergeObjects(_0x134125,_0x142f73){for(const _0x432ed2 in _0x134125){_0x142f73['hasOwnProperty'](_0x432ed2)&&(_0x134125[_0x432ed2]=_0x142f73[_0x432ed2]);}return _0x134125;}const formatToDecimal=(_0x3ef069,_0x174ef1=0x2)=>{const _0x1e78cb=a4_0x54bfa9;if(isNaN(_0x174ef1)||_0x174ef1<0x0)return _0x3ef069;let _0x2e2fb7=Number(_0x3ef069);if(!isFinite(_0x2e2fb7))return _0x3ef069;return _0x174ef1=Math[_0x1e78cb(0x15b)](0x0,Math[_0x1e78cb(0x170)](_0x174ef1)),_0x2e2fb7[_0x1e78cb(0x16d)](_0x174ef1);};function findKeysEndingWith(_0x1c3f5a,_0x2c7a7f='_qh'){const _0x2c6126=a4_0x54bfa9;let _0x244599=[];for(var _0x5350b9 in _0x1c3f5a){if(_0x1c3f5a[_0x2c6126(0x186)](_0x5350b9)){if(_0x5350b9[_0x2c6126(0x18f)](_0x2c7a7f))_0x244599[_0x2c6126(0x17b)](_0x5350b9);}}return _0x244599;}function guid(_0x36e876=0x20,_0x97bb2a=!![],_0x1b9a40=null){const _0xf86797=a4_0x54bfa9,_0x34ec1c=_0xf86797(0x181)[_0xf86797(0x17a)](''),_0x2df409=[];_0x1b9a40=_0x1b9a40||_0x34ec1c[_0xf86797(0x17c)];if(_0x36e876){for(let _0x324bc9=0x0;_0x324bc9<_0x36e876;_0x324bc9++)_0x2df409[_0x324bc9]=_0x34ec1c[0x0|Math[_0xf86797(0x187)]()*_0x1b9a40];}else{let _0x130d04;_0x2df409[0x8]=_0x2df409[0xd]=_0x2df409[0x12]=_0x2df409[0x17]='-',_0x2df409[0xe]='4';for(let _0x5040ae=0x0;_0x5040ae<0x24;_0x5040ae++){!_0x2df409[_0x5040ae]&&(_0x130d04=0x0|Math['random']()*0x10,_0x2df409[_0x5040ae]=_0x34ec1c[_0x5040ae==0x13?_0x130d04&0x3|0x8:_0x130d04]);}}if(_0x97bb2a)return _0x2df409[_0xf86797(0x15e)](),'u'+_0x2df409[_0xf86797(0x15f)]('');return _0x2df409['join']('');}function trim(_0x2ce8a2,_0xbdb90f='both'){const _0xab19c3=a4_0x54bfa9;_0x2ce8a2=String(_0x2ce8a2);if(_0xbdb90f=='both')return _0x2ce8a2['replace'](/^\s+|\s+$/g,'');if(_0xbdb90f==_0xab19c3(0x174))return _0x2ce8a2[_0xab19c3(0x188)](/^\s*/,'');if(_0xbdb90f==_0xab19c3(0x15c))return _0x2ce8a2[_0xab19c3(0x188)](/(\s*$)/g,'');if(_0xbdb90f==_0xab19c3(0x177))return _0x2ce8a2[_0xab19c3(0x188)](/\s+/g,'');return _0x2ce8a2;}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};
|