yunlin 1.0.36 → 1.0.37

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(_0xff44f1,_0x5b172a){var _0x1ca6dd=a0_0xcc4d,_0x231ce1=_0xff44f1();while(!![]){try{var _0x2eb77a=-parseInt(_0x1ca6dd(0x178))/0x1+parseInt(_0x1ca6dd(0x177))/0x2+-parseInt(_0x1ca6dd(0x17c))/0x3+-parseInt(_0x1ca6dd(0x179))/0x4*(-parseInt(_0x1ca6dd(0x17b))/0x5)+parseInt(_0x1ca6dd(0x176))/0x6*(parseInt(_0x1ca6dd(0x17a))/0x7)+parseInt(_0x1ca6dd(0x17e))/0x8+parseInt(_0x1ca6dd(0x17d))/0x9;if(_0x2eb77a===_0x5b172a)break;else _0x231ce1['push'](_0x231ce1['shift']());}catch(_0x30e476){_0x231ce1['push'](_0x231ce1['shift']());}}}(a0_0x3cfc,0x9be09));import a0_0x1a46b3 from'./utils';function a0_0xcc4d(_0x39b35f,_0x3a7ccf){var _0x3cfcd4=a0_0x3cfc();return a0_0xcc4d=function(_0xcc4d64,_0xb57b3d){_0xcc4d64=_0xcc4d64-0x176;var _0x4c6a6e=_0x3cfcd4[_0xcc4d64];return _0x4c6a6e;},a0_0xcc4d(_0x39b35f,_0x3a7ccf);}import a0_0x5113cf from'./price';import a0_0x16b2b8 from'./test';import a0_0x24baaa from'./room';function a0_0x3cfc(){var _0x4a49ba=['2173914CjwyGs','5765724GBCNKR','1092536OVYFoI','21636tKAlHz','598622aGtryk','1189885dNiHkI','104lDeKMr','1120AefphT','172985xXUjAx'];a0_0x3cfc=function(){return _0x4a49ba;};return a0_0x3cfc();}export default{'test':a0_0x16b2b8,'utils':a0_0x1a46b3,'price':a0_0x5113cf,'room':a0_0x24baaa};
1
+ (function(_0x246c63,_0xf2e490){var _0x16e27a=a0_0x1e17,_0x523294=_0x246c63();while(!![]){try{var _0x49f4a6=parseInt(_0x16e27a(0x163))/0x1+parseInt(_0x16e27a(0x162))/0x2*(-parseInt(_0x16e27a(0x159))/0x3)+-parseInt(_0x16e27a(0x15e))/0x4*(-parseInt(_0x16e27a(0x15b))/0x5)+-parseInt(_0x16e27a(0x161))/0x6*(parseInt(_0x16e27a(0x15d))/0x7)+-parseInt(_0x16e27a(0x158))/0x8*(parseInt(_0x16e27a(0x15c))/0x9)+parseInt(_0x16e27a(0x160))/0xa+parseInt(_0x16e27a(0x15a))/0xb*(-parseInt(_0x16e27a(0x15f))/0xc);if(_0x49f4a6===_0xf2e490)break;else _0x523294['push'](_0x523294['shift']());}catch(_0x30d073){_0x523294['push'](_0x523294['shift']());}}}(a0_0x29ab,0x1d493));import a0_0x338552 from'./utils';import a0_0x15aa51 from'./price';function a0_0x1e17(_0x2465ca,_0x4741be){var _0x29ab88=a0_0x29ab();return a0_0x1e17=function(_0x1e17f8,_0x3614b8){_0x1e17f8=_0x1e17f8-0x158;var _0x1470a7=_0x29ab88[_0x1e17f8];return _0x1470a7;},a0_0x1e17(_0x2465ca,_0x4741be);}import a0_0x3c530b from'./test';import a0_0x4b3c90 from'./room';function a0_0x29ab(){var _0x3b0b94=['189996OQUHXc','2036060qvVveH','6pEIqUY','10IeCnFv','2108gcuFtj','961992BtKysA','65877QypWyb','11jmPKcx','955085cHqkFt','9LAIzYe','216293YavTxP','4XyiDmZ'];a0_0x29ab=function(){return _0x3b0b94;};return a0_0x29ab();}export default{'test':a0_0x3c530b,'utils':a0_0x338552,'price':a0_0x15aa51,'room':a0_0x4b3c90};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3aa503,_0x5d75b4){const _0x2c219d=a1_0x48fb,_0x27cfc4=_0x3aa503();while(!![]){try{const _0x21810d=-parseInt(_0x2c219d(0x19b))/0x1+parseInt(_0x2c219d(0x190))/0x2+-parseInt(_0x2c219d(0x1bd))/0x3+-parseInt(_0x2c219d(0x18d))/0x4*(-parseInt(_0x2c219d(0x191))/0x5)+-parseInt(_0x2c219d(0x1a6))/0x6*(-parseInt(_0x2c219d(0x183))/0x7)+parseInt(_0x2c219d(0x19e))/0x8+-parseInt(_0x2c219d(0x187))/0x9;if(_0x21810d===_0x5d75b4)break;else _0x27cfc4['push'](_0x27cfc4['shift']());}catch(_0x260246){_0x27cfc4['push'](_0x27cfc4['shift']());}}}(a1_0x55bc,0x95109));function a1_0x48fb(_0x230c45,_0x5f4d35){const _0x55bc2f=a1_0x55bc();return a1_0x48fb=function(_0x48fbe3,_0x1dd2c9){_0x48fbe3=_0x48fbe3-0x175;let _0x2b4841=_0x55bc2f[_0x48fbe3];return _0x2b4841;},a1_0x48fb(_0x230c45,_0x5f4d35);}function handleCosting(_0x4fc607,_0x8dad94='',_0x2713d2={},_0x42f083,_0x2f4901){const _0x2166e2=a1_0x48fb;let _0x3452cd=[];const _0x2b4cbd=_0x2166e2(0x17b),_0x272a8a={'couponSign':'-','dp':0x2};_0x2713d2=typeof _0x2713d2===_0x2166e2(0x178)&&!Array[_0x2166e2(0x18b)](_0x2713d2)&&_0x2713d2!==null?_0x2713d2:{};const _0x4916bc={..._0x272a8a,..._0x2713d2},_0x2bf40a=Object[_0x2166e2(0x185)](_0x272a8a);Object[_0x2166e2(0x185)](_0x2713d2)[_0x2166e2(0x175)](_0x94f66=>{const _0x346703=_0x2166e2;!_0x2bf40a['includes'](_0x94f66)&&console[_0x346703(0x179)]('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x94f66);});let _0x2507e5=_0x4916bc[_0x2166e2(0x19f)]||'-',_0x127fcb=_0x4916bc['dp']||0x2;const _0xf1d592=(_0x117ec4,_0x2d13c9=_0x127fcb)=>{const _0x1c429e=_0x2166e2;if(typeof _0x117ec4!==_0x1c429e(0x1c2)&&isNaN(Number(_0x117ec4)))return console[_0x1c429e(0x1be)](_0x1c429e(0x184)+_0x117ec4),_0x117ec4;if(isNaN(_0x2d13c9)||_0x2d13c9<0x0)return _0x117ec4;let _0x330c9c=Number(_0x117ec4);if(!isFinite(_0x330c9c))return _0x117ec4;return _0x2d13c9=Math[_0x1c429e(0x194)](0x0,Math[_0x1c429e(0x18c)](_0x2d13c9)),_0x330c9c[_0x1c429e(0x186)](_0x2d13c9);},_0x593227=(_0x143f3b,_0x1de126)=>{const _0x15aedf=_0x2166e2;if(_0x1de126&&typeof _0x1de126===_0x15aedf(0x178)&&!Array[_0x15aedf(0x18b)](_0x1de126))for(const _0x2d1952 in _0x143f3b){_0x143f3b[_0x15aedf(0x1b2)](_0x2d1952)&&_0x1de126[_0x15aedf(0x1b2)](_0x2d1952)&&(_0x143f3b[_0x2d1952]=_0x1de126[_0x2d1952]);}else console[_0x15aedf(0x1be)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0x15aedf(0x1ae)](_0x1de126,null,0x2)+_0x15aedf(0x182)+JSON[_0x15aedf(0x1ae)](_0x143f3b,null,0x2))[_0x15aedf(0x176)]());return _0x143f3b;};let _0x21f9fc={'people':_0x2166e2(0x19c),'service':_0x2166e2(0x177),'trip':_0x2166e2(0x17f),'other':'其他費用','reduction':_0x2166e2(0x197),'totalprice':'總計','airtax':_0x2166e2(0x1bb)},_0x24cce6={'adult':'成人','child':'兒童','childusebed':_0x2166e2(0x19d),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x2166e2(0x18e),'vip':'會員減免','promotion':'促銷','insure':'保險費用','coupon':_0x2166e2(0x1a5),'point':'積分','tax':'稅金','viprecharge':_0x2166e2(0x1b8),'r':'人','t':'天'};_0x21f9fc=_0x593227(_0x21f9fc,_0x42f083),_0x24cce6=_0x593227(_0x24cce6,_0x2f4901);const _0x248f5=_0x4fc607[_0x2166e2(0x1c3)](_0x36ad2c=>_0x36ad2c[_0x2166e2(0x1ba)]==_0x2166e2(0x1a8));if(_0x248f5[_0x2166e2(0x1b4)]){let _0x212ec2={'title':_0x21f9fc['people'],'type':_0x2166e2(0x1a8),'list':[]};_0x248f5['map'](_0x51fad9=>{const _0xaf9545=_0x2166e2;_0x212ec2[_0xaf9545(0x17d)][_0xaf9545(0x1a3)]({'title':_0x24cce6[_0x51fad9[_0xaf9545(0x1c1)]],'info':_0x8dad94+_0xf1d592(_0x51fad9[_0xaf9545(0x193)])+_0x2b4cbd+_0x51fad9[_0xaf9545(0x1b7)],'nRs':_0x51fad9[_0xaf9545(0x1b7)],'unit':_0x51fad9['fLsjUnit'],'cb':_0x51fad9[_0xaf9545(0x1b0)],'type':'base'});}),_0x3452cd['push'](_0x212ec2);}const _0x3b79d4=_0x4fc607['filter'](_0x72ffc1=>_0x72ffc1['strLx']==_0x2166e2(0x1b6));if(_0x3b79d4[_0x2166e2(0x1b4)]){let _0x1db8c5={'title':_0x21f9fc[_0x2166e2(0x1b6)],'type':_0x2166e2(0x1b6),'list':[]};_0x3b79d4[_0x2166e2(0x189)](_0x475096=>{const _0x3ce36e=_0x2166e2;_0x1db8c5['list'][_0x3ce36e(0x1a3)]({'title':_0x475096[_0x3ce36e(0x1bc)]+('['+_0x475096[_0x3ce36e(0x1bf)]+']'),'info':_0x8dad94+_0xf1d592(_0x475096[_0x3ce36e(0x1a2)])+_0x2b4cbd+_0x475096['num'],'nRs':_0x475096[_0x3ce36e(0x188)],'unit':_0x475096[_0x3ce36e(0x1a2)],'cb':_0x475096['baseprice'],'type':_0x3ce36e(0x1b6)});}),_0x3452cd['push'](_0x1db8c5);}const _0xceb8bc=_0x4fc607[_0x2166e2(0x1c3)](_0x5db410=>_0x5db410['strLx']==_0x2166e2(0x1b5));if(_0xceb8bc[_0x2166e2(0x1b4)]){let _0x23ca01={'title':_0x21f9fc[_0x2166e2(0x1b5)],'type':_0x2166e2(0x1b5),'list':[]};_0xceb8bc['map'](_0x314fa3=>{const _0x43af5d=_0x2166e2;_0x314fa3[_0x43af5d(0x1ad)]!='0'&&_0x23ca01[_0x43af5d(0x17d)]['push']({'title':_0x314fa3[_0x43af5d(0x1bc)]+('['+_0x24cce6[_0x43af5d(0x1a1)]+']'),'info':_0x8dad94+_0xf1d592(_0x314fa3['adultprice'])+_0x2b4cbd+_0x314fa3[_0x43af5d(0x1ad)],'nRs':_0x314fa3['adultnum'],'unit':_0x314fa3[_0x43af5d(0x192)],'cb':_0x314fa3[_0x43af5d(0x1af)],'type':_0x43af5d(0x1b5)}),_0x314fa3[_0x43af5d(0x1b9)]!='0'&&_0x23ca01['list'][_0x43af5d(0x1a3)]({'title':_0x314fa3['name']+('['+_0x24cce6[_0x43af5d(0x196)]+']'),'info':_0x8dad94+_0xf1d592(_0x314fa3[_0x43af5d(0x198)])+_0x2b4cbd+_0x314fa3[_0x43af5d(0x1b9)],'nRs':_0x314fa3[_0x43af5d(0x1b9)],'unit':_0x314fa3[_0x43af5d(0x198)],'cb':_0x314fa3['basechildprice'],'type':_0x43af5d(0x1b5)});}),_0x3452cd[_0x2166e2(0x1a3)](_0x23ca01);}let _0xd32b57=[];const _0x12bbd8=_0x4fc607[_0x2166e2(0x1c3)](_0x12cb13=>_0x12cb13[_0x2166e2(0x1ba)]==_0x2166e2(0x1b1));_0x12bbd8[_0x2166e2(0x1b4)]&&_0x12bbd8[_0x2166e2(0x189)](_0x8a5dc4=>{const _0x22462d=_0x2166e2,_0x438202=_0x8a5dc4[_0x22462d(0x1bc)][_0x22462d(0x1ac)]('|')||[''];_0xd32b57[_0x22462d(0x1a3)]({'title':_0x24cce6[_0x22462d(0x1b1)]+('['+_0x438202[0x0]+']'),'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x8a5dc4['money']),'unit':_0x8a5dc4[_0x22462d(0x181)],'cb':_0x8a5dc4[_0x22462d(0x181)],'type':'elder'});});const _0x3637d0=_0x4fc607[_0x2166e2(0x1c3)](_0x37a3b5=>_0x37a3b5[_0x2166e2(0x1ba)]=='vipdiscounted');_0x3637d0[_0x2166e2(0x1b4)]&&_0x3637d0[_0x2166e2(0x189)](_0x3d2b38=>{const _0x2cbfaf=_0x2166e2;_0xd32b57[_0x2cbfaf(0x1a3)]({'title':_0x24cce6[_0x2cbfaf(0x18a)]+('['+_0x3d2b38[_0x2cbfaf(0x1bc)]+']'),'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x3d2b38['money']),'unit':_0x3d2b38[_0x2cbfaf(0x181)],'cb':_0x3d2b38[_0x2cbfaf(0x181)],'type':_0x2cbfaf(0x18a)});});const _0x1bf7fb=_0x4fc607[_0x2166e2(0x1c3)](_0xf15dd0=>_0xf15dd0['strLx']==_0x2166e2(0x195));_0x1bf7fb['length']&&_0x1bf7fb[_0x2166e2(0x189)](_0x1ede1b=>{const _0x183d3e=_0x2166e2;_0xd32b57[_0x183d3e(0x1a3)]({'title':_0x24cce6[_0x183d3e(0x195)],'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x1ede1b[_0x183d3e(0x181)]),'unit':_0x1ede1b[_0x183d3e(0x181)],'cb':_0x1ede1b[_0x183d3e(0x181)],'type':_0x183d3e(0x195)});});_0xd32b57[_0x2166e2(0x1b4)]&&_0x3452cd[_0x2166e2(0x1a3)]({'title':_0x21f9fc[_0x2166e2(0x1aa)],'type':'reduction','list':_0xd32b57});const _0xa8a70=_0x4fc607[_0x2166e2(0x1c3)](_0x981b13=>_0x981b13['strLx']=='airtax');if(_0xa8a70[_0x2166e2(0x1b4)]){let _0x4968c0={'title':_0x21f9fc[_0x2166e2(0x17e)],'type':_0x2166e2(0x17e),'list':[]};_0xa8a70[_0x2166e2(0x189)](_0x5293ff=>{const _0xeeddb3=_0x2166e2;_0x4968c0[_0xeeddb3(0x17d)][_0xeeddb3(0x1a3)]({'title':_0x24cce6[_0x5293ff[_0xeeddb3(0x1a9)]],'info':_0x8dad94+_0xf1d592(_0x5293ff[_0xeeddb3(0x1a2)])+_0x2b4cbd+_0x5293ff['sl'],'nRs':_0x5293ff['sl'],'unit':_0x5293ff[_0xeeddb3(0x1a2)],'cb':_0x5293ff['unitpricewb'],'type':_0x5293ff[_0xeeddb3(0x1a9)]});}),_0x3452cd[_0x2166e2(0x1a3)](_0x4968c0);}const _0x3bbb61=[_0x2166e2(0x1a8),'service','trip',_0x2166e2(0x1b1),'vipdiscounted','promotion',_0x2166e2(0x17e)],_0x5db973=_0x4fc607[_0x2166e2(0x1c3)](_0x3f04d9=>!_0x3bbb61[_0x2166e2(0x1a0)](_0x3f04d9[_0x2166e2(0x1ba)]));let _0x42be8f={'title':_0x21f9fc[_0x2166e2(0x1c0)],'type':_0x2166e2(0x1c0),'list':[]};for(var _0x1c9b05=0x0;_0x1c9b05<_0x5db973['length'];_0x1c9b05++){const _0xb37333=_0x5db973[_0x1c9b05];_0xb37333['strLx']==_0x2166e2(0x1ab)&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0x2166e2(0x1ab)]+('['+_0xb37333[_0x2166e2(0x1bc)]+']'),'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x181)]),'unit':_0xb37333[_0x2166e2(0x181)],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333[_0x2166e2(0x1ba)]==_0x2166e2(0x1b3)&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0x2166e2(0x1b3)]+('['+_0xb37333['name']+']'),'info':_0x8dad94+_0xf1d592(_0xb37333['unit'])+_0x2b4cbd+_0xb37333[_0x2166e2(0x17c)]+_0x24cce6['r'],'nRs':_0xb37333[_0x2166e2(0x17c)],'unit':_0xb37333[_0x2166e2(0x17a)],'cb':_0xb37333[_0x2166e2(0x17a)],'type':'insure'}),(_0xb37333[_0x2166e2(0x1ba)]==_0x2166e2(0x1a7)||_0xb37333[_0x2166e2(0x1ba)]=='point')&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0xb37333['strLx']],'info':_0x8dad94+_0x2507e5+_0xf1d592(_0xb37333[_0x2166e2(0x181)]),'unit':_0xb37333['money'],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333['strLx']=='tip'&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0xb37333[_0x2166e2(0x1ba)]],'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x19a)])+_0x2b4cbd+_0xb37333['tipuser']+_0x24cce6['r']+_0x2b4cbd+_0xb37333[_0x2166e2(0x199)]+_0x24cce6['t'],'nRs':_0xb37333[_0x2166e2(0x1a4)],'count':_0xb37333['tipday'],'unit':_0xb37333[_0x2166e2(0x19a)],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333[_0x2166e2(0x1ba)]=='tax'&&_0x42be8f[_0x2166e2(0x17d)]['push']({'title':_0x24cce6[_0xb37333[_0x2166e2(0x1ba)]],'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x180)]),'unit':_0xb37333[_0x2166e2(0x180)],'type':_0xb37333['strLx']});}_0x42be8f['list'][_0x2166e2(0x1b4)]&&_0x3452cd['push'](_0x42be8f);const _0x405073=_0x4fc607['filter'](_0x34aa7c=>_0x34aa7c[_0x2166e2(0x1ba)]=='totalprice');return _0x405073[_0x2166e2(0x1b4)]&&_0x3452cd[_0x2166e2(0x1a3)]({'title':_0x21f9fc['totalprice'],'type':_0x2166e2(0x18f),'list':[{'title':_0x21f9fc[_0x2166e2(0x18f)],'info':_0x8dad94+_0xf1d592(_0x405073[0x0]['price'])}]}),_0x3452cd;}export default{'handleCosting':handleCosting};function a1_0x55bc(){const _0x4ae16f=['totaltax','money','\x0a\x09\x09\x09正确参数:','28oBDfyP','ftd\x20函数接收到无效的数字输入:\x20','keys','toFixed','16044930GgZLRU','num','map','vip','isArray','floor','167644TuexYx','遊客優惠','totalprice','565780wCNXDL','135PgZZhk','adultprice','fLsjUnit','max','promotion','child','減免費用','childprice','tipday','tip','578271HToLcq','人員費用','兒童[占床]','7193384qsjDJr','couponSign','includes','adult','unitprice','push','tipuser','優惠券','1689678QExTnh','coupon','base','rylx','reduction','viprecharge','split','adultnum','stringify','baseadultprice','fJcbzlsjUnit','elder','hasOwnProperty','insure','length','trip','service','nRs','會員充值','childnum','strLx','機場稅','name','1405506yTthFX','error','itemname','other','strJgbm','number','filter','forEach','trim','附加服務','object','warn','unit','\x20*\x20','users','list','airtax','附加行程'];a1_0x55bc=function(){return _0x4ae16f;};return a1_0x55bc();}
1
+ function a1_0x45b6(_0x480448,_0x5e93a1){const _0x84f380=a1_0x84f3();return a1_0x45b6=function(_0x45b6ba,_0x1a0ef1){_0x45b6ba=_0x45b6ba-0x73;let _0x552dbf=_0x84f380[_0x45b6ba];return _0x552dbf;},a1_0x45b6(_0x480448,_0x5e93a1);}(function(_0x499e5e,_0x5a7409){const _0x5beb5c=a1_0x45b6,_0x1f7fe0=_0x499e5e();while(!![]){try{const _0x1495ba=-parseInt(_0x5beb5c(0xb8))/0x1+-parseInt(_0x5beb5c(0xa6))/0x2+-parseInt(_0x5beb5c(0xac))/0x3+parseInt(_0x5beb5c(0x77))/0x4*(parseInt(_0x5beb5c(0x96))/0x5)+parseInt(_0x5beb5c(0x7c))/0x6+-parseInt(_0x5beb5c(0x8c))/0x7+-parseInt(_0x5beb5c(0x9a))/0x8*(-parseInt(_0x5beb5c(0x8e))/0x9);if(_0x1495ba===_0x5a7409)break;else _0x1f7fe0['push'](_0x1f7fe0['shift']());}catch(_0x1f739d){_0x1f7fe0['push'](_0x1f7fe0['shift']());}}}(a1_0x84f3,0x804d3));function handleCosting(_0x18d0a6,_0x32cb4c='',_0x37c517={},_0x50d3e1,_0x337e22){const _0x1d0b61=a1_0x45b6;let _0x29c94c=[];const _0x1ed7af=_0x1d0b61(0xc0),_0x284fe2={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x37c517=typeof _0x37c517==='object'&&!Array[_0x1d0b61(0x78)](_0x37c517)&&_0x37c517!==null?_0x37c517:{};const _0x343427={..._0x284fe2,..._0x37c517},_0x2f7f5c=Object['keys'](_0x284fe2);Object['keys'](_0x37c517)['forEach'](_0x5a62cd=>{const _0x5d919c=_0x1d0b61;!_0x2f7f5c['includes'](_0x5a62cd)&&console[_0x5d919c(0xa8)](_0x5d919c(0x99)+_0x5a62cd);});let _0x192d53=_0x343427[_0x1d0b61(0x76)]||'-',_0x1e1265=_0x343427['dp']||0x2;const _0x2e6bf6=(_0x173be2,_0x45dad2=_0x1e1265)=>{const _0x31d4b7=_0x1d0b61;if(typeof _0x173be2!=='number'&&isNaN(Number(_0x173be2)))return console[_0x31d4b7(0x75)](_0x31d4b7(0xae)+_0x173be2),_0x173be2;if(isNaN(_0x45dad2)||_0x45dad2<0x0)return _0x173be2;let _0x59601b=Number(_0x173be2);if(!isFinite(_0x59601b))return _0x173be2;return _0x45dad2=Math['max'](0x0,Math['floor'](_0x45dad2)),_0x59601b[_0x31d4b7(0xb5)](_0x45dad2);},_0x560412=(_0x6cfbad,_0x5e42ed)=>{const _0x2474aa=_0x1d0b61;if(_0x5e42ed&&typeof _0x5e42ed==='object'&&!Array[_0x2474aa(0x78)](_0x5e42ed))for(const _0xdb6b6f in _0x6cfbad){_0x6cfbad[_0x2474aa(0x7b)](_0xdb6b6f)&&_0x5e42ed[_0x2474aa(0x7b)](_0xdb6b6f)&&(_0x6cfbad[_0xdb6b6f]=_0x5e42ed[_0xdb6b6f]);}else console[_0x2474aa(0x75)]((_0x2474aa(0xa7)+JSON[_0x2474aa(0x8d)](_0x5e42ed,null,0x2)+'\x0a\x09\x09\x09正确参数:'+JSON[_0x2474aa(0x8d)](_0x6cfbad,null,0x2))[_0x2474aa(0xab)]());return _0x6cfbad;};let _0x4771e3={'people':_0x1d0b61(0x89),'service':_0x1d0b61(0x98),'trip':_0x1d0b61(0xbe),'other':'其他費用','reduction':'減免費用','totalprice':'總計','airtax':_0x1d0b61(0x80)},_0x1ebc92={'adult':'成人','child':'兒童','childusebed':_0x1d0b61(0x8f),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x1d0b61(0xbf),'vip':_0x1d0b61(0x9b),'promotion':'促銷','insure':_0x1d0b61(0x8a),'coupon':_0x1d0b61(0xa3),'point':'積分','tax':'稅金','viprecharge':_0x1d0b61(0xb0),'r':'人','t':'天'};_0x4771e3=_0x560412(_0x4771e3,_0x50d3e1),_0x1ebc92=_0x560412(_0x1ebc92,_0x337e22);const _0x3c388c=_0x18d0a6['filter'](_0x9c216c=>_0x9c216c[_0x1d0b61(0x74)]=='base');if(_0x3c388c[_0x1d0b61(0xa9)]){let _0x2fc8bd={'title':_0x4771e3[_0x1d0b61(0xbd)],'type':_0x1d0b61(0x7a),'list':[]};_0x3c388c[_0x1d0b61(0xb9)](_0x37340b=>{const _0x39f223=_0x1d0b61;_0x2fc8bd[_0x39f223(0x86)]['push']({'title':_0x1ebc92[_0x37340b[_0x39f223(0x83)]],'info':_0x32cb4c+_0x2e6bf6(_0x37340b[_0x39f223(0x94)])+_0x1ed7af+_0x37340b[_0x39f223(0xbc)],'nRs':_0x37340b[_0x39f223(0xbc)],'unit':_0x37340b['fLsjUnit'],'cb':_0x37340b[_0x39f223(0x97)],'type':_0x39f223(0x7a)});}),_0x29c94c[_0x1d0b61(0x87)](_0x2fc8bd);}const _0x89706f=_0x18d0a6['filter'](_0x37b301=>_0x37b301['strLx']==_0x1d0b61(0xaf));if(_0x89706f[_0x1d0b61(0xa9)]){let _0x4765e7={'title':_0x4771e3[_0x1d0b61(0xaf)],'type':'service','list':[]};_0x89706f['map'](_0x2400b9=>{const _0x391d70=_0x1d0b61;_0x4765e7[_0x391d70(0x86)]['push']({'title':_0x2400b9['name']+('['+_0x2400b9[_0x391d70(0xc2)]+']'),'info':_0x32cb4c+_0x2e6bf6(_0x2400b9[_0x391d70(0xad)])+_0x1ed7af+_0x2400b9['num'],'nRs':_0x2400b9[_0x391d70(0x73)],'unit':_0x2400b9[_0x391d70(0xad)],'cb':_0x2400b9[_0x391d70(0xb6)],'type':_0x391d70(0xaf)});}),_0x29c94c[_0x1d0b61(0x87)](_0x4765e7);}const _0x4e5e5f=_0x18d0a6[_0x1d0b61(0x79)](_0x378477=>_0x378477[_0x1d0b61(0x74)]=='trip');if(_0x4e5e5f['length']){let _0x45dfd3={'title':_0x4771e3['trip'],'type':_0x1d0b61(0xb2),'list':[]};_0x4e5e5f['map'](_0x15d2b4=>{const _0x47a6f2=_0x1d0b61;_0x15d2b4[_0x47a6f2(0xa4)]!='0'&&_0x45dfd3['list'][_0x47a6f2(0x87)]({'title':_0x15d2b4[_0x47a6f2(0x7f)]+('['+_0x1ebc92['adult']+']'),'info':_0x32cb4c+_0x2e6bf6(_0x15d2b4[_0x47a6f2(0x81)])+_0x1ed7af+_0x15d2b4[_0x47a6f2(0xa4)],'nRs':_0x15d2b4['adultnum'],'unit':_0x15d2b4[_0x47a6f2(0x81)],'cb':_0x15d2b4[_0x47a6f2(0x84)],'type':'trip'}),_0x15d2b4[_0x47a6f2(0xa5)]!='0'&&_0x45dfd3[_0x47a6f2(0x86)][_0x47a6f2(0x87)]({'title':_0x15d2b4[_0x47a6f2(0x7f)]+('['+_0x1ebc92[_0x47a6f2(0x7d)]+']'),'info':_0x32cb4c+_0x2e6bf6(_0x15d2b4['childprice'])+_0x1ed7af+_0x15d2b4['childnum'],'nRs':_0x15d2b4[_0x47a6f2(0xa5)],'unit':_0x15d2b4[_0x47a6f2(0x88)],'cb':_0x15d2b4['basechildprice'],'type':_0x47a6f2(0xb2)});}),_0x29c94c[_0x1d0b61(0x87)](_0x45dfd3);}let _0x2b8e97=[];const _0x5ebdd0=_0x18d0a6[_0x1d0b61(0x79)](_0x5c1fd7=>_0x5c1fd7[_0x1d0b61(0x74)]=='elder');_0x5ebdd0[_0x1d0b61(0xa9)]&&_0x5ebdd0['map'](_0x3d4308=>{const _0x2e309b=_0x1d0b61,_0x227a9c=_0x3d4308['name'][_0x2e309b(0x9f)]('|')||[''];_0x2b8e97[_0x2e309b(0x87)]({'title':_0x1ebc92[_0x2e309b(0x9c)]+('['+_0x227a9c[0x0]+']'),'info':_0x32cb4c+_0x192d53+_0x2e6bf6(_0x3d4308['money']),'unit':_0x3d4308[_0x2e309b(0x9e)],'cb':_0x3d4308['money'],'type':_0x2e309b(0x9c)});});const _0x2ee91f=_0x18d0a6[_0x1d0b61(0x79)](_0x441561=>_0x441561[_0x1d0b61(0x74)]=='vipdiscounted');_0x2ee91f[_0x1d0b61(0xa9)]&&_0x2ee91f['map'](_0x396fc7=>{const _0x4dc12d=_0x1d0b61;_0x2b8e97['push']({'title':_0x1ebc92[_0x4dc12d(0x91)]+('['+_0x396fc7[_0x4dc12d(0x7f)]+']'),'info':_0x32cb4c+_0x192d53+_0x2e6bf6(_0x396fc7[_0x4dc12d(0x9e)]),'unit':_0x396fc7[_0x4dc12d(0x9e)],'cb':_0x396fc7[_0x4dc12d(0x9e)],'type':_0x4dc12d(0x91)});});const _0x5e1e52=_0x18d0a6[_0x1d0b61(0x79)](_0x94f9d6=>_0x94f9d6['strLx']==_0x1d0b61(0xa2));_0x5e1e52['length']&&_0x5e1e52[_0x1d0b61(0xb9)](_0x41f973=>{const _0x22cada=_0x1d0b61;_0x2b8e97['push']({'title':_0x1ebc92[_0x22cada(0xa2)],'info':_0x32cb4c+_0x192d53+_0x2e6bf6(_0x41f973[_0x22cada(0x9e)]),'unit':_0x41f973[_0x22cada(0x9e)],'cb':_0x41f973[_0x22cada(0x9e)],'type':'promotion'});});_0x2b8e97[_0x1d0b61(0xa9)]&&_0x29c94c['push']({'title':_0x4771e3[_0x1d0b61(0x7e)],'type':_0x1d0b61(0x7e),'list':_0x2b8e97});const _0x28952a=_0x18d0a6['filter'](_0x4c24e9=>_0x4c24e9['strLx']==_0x1d0b61(0x90));if(_0x28952a[_0x1d0b61(0xa9)]){let _0x392b4b={'title':_0x4771e3['airtax'],'type':_0x1d0b61(0x90),'list':[]};_0x28952a[_0x1d0b61(0xb9)](_0x45b71f=>{const _0xc87842=_0x1d0b61;_0x392b4b[_0xc87842(0x86)]['push']({'title':_0x1ebc92[_0x45b71f['rylx']],'info':_0x32cb4c+_0x2e6bf6(_0x45b71f[_0xc87842(0xad)])+_0x1ed7af+_0x45b71f['sl'],'nRs':_0x45b71f['sl'],'unit':_0x45b71f[_0xc87842(0xad)],'cb':_0x45b71f[_0xc87842(0x8b)],'type':_0x45b71f[_0xc87842(0x93)]});}),_0x29c94c[_0x1d0b61(0x87)](_0x392b4b);}const _0x3c1aff=[_0x1d0b61(0x7a),_0x1d0b61(0xaf),_0x1d0b61(0xb2),_0x1d0b61(0x9c),_0x1d0b61(0xb4),_0x1d0b61(0xa2),'airtax'],_0x145dcc=_0x18d0a6[_0x1d0b61(0x79)](_0x1a53c7=>!_0x3c1aff['includes'](_0x1a53c7['strLx']));let _0xb645b6={'title':_0x4771e3[_0x1d0b61(0xba)],'type':_0x1d0b61(0xba),'list':[]};for(var _0xab2ec5=0x0;_0xab2ec5<_0x145dcc[_0x1d0b61(0xa9)];_0xab2ec5++){const _0x488ade=_0x145dcc[_0xab2ec5];_0x488ade['strLx']==_0x1d0b61(0xc1)&&_0xb645b6[_0x1d0b61(0x86)][_0x1d0b61(0x87)]({'title':_0x1ebc92[_0x1d0b61(0xc1)]+('['+_0x488ade[_0x1d0b61(0x7f)]+']'),'info':_0x32cb4c+_0x2e6bf6(_0x488ade[_0x1d0b61(0x9e)]),'unit':_0x488ade[_0x1d0b61(0x9e)],'type':_0x488ade[_0x1d0b61(0x74)]}),_0x488ade[_0x1d0b61(0x74)]=='insure'&&_0xb645b6[_0x1d0b61(0x86)][_0x1d0b61(0x87)]({'title':_0x1ebc92['insure']+('['+_0x488ade[_0x1d0b61(0x7f)]+']'),'info':_0x32cb4c+_0x2e6bf6(_0x488ade['unit'])+_0x1ed7af+_0x488ade[_0x1d0b61(0xaa)]+_0x1ebc92['r'],'nRs':_0x488ade[_0x1d0b61(0xaa)],'unit':_0x488ade[_0x1d0b61(0xb7)],'cb':_0x488ade[_0x1d0b61(0xb7)],'type':_0x1d0b61(0x82)}),(_0x488ade[_0x1d0b61(0x74)]==_0x1d0b61(0x85)||_0x488ade['strLx']==_0x1d0b61(0xb1))&&_0xb645b6['list'][_0x1d0b61(0x87)]({'title':_0x1ebc92[_0x488ade['strLx']],'info':_0x32cb4c+_0x192d53+_0x2e6bf6(_0x488ade[_0x1d0b61(0x9e)]),'unit':_0x488ade['money'],'type':_0x488ade['strLx']}),_0x488ade[_0x1d0b61(0x74)]=='tip'&&_0x343427[_0x1d0b61(0x92)]&&_0xb645b6[_0x1d0b61(0x86)]['push']({'title':_0x1ebc92[_0x488ade['strLx']],'info':_0x32cb4c+_0x2e6bf6(_0x488ade[_0x1d0b61(0xb3)])+_0x1ed7af+_0x488ade[_0x1d0b61(0xa0)]+_0x1ebc92['r']+_0x1ed7af+_0x488ade[_0x1d0b61(0xa1)]+_0x1ebc92['t'],'nRs':_0x488ade['tipuser'],'count':_0x488ade['tipday'],'unit':_0x488ade[_0x1d0b61(0xb3)],'type':_0x488ade[_0x1d0b61(0x74)]}),_0x488ade[_0x1d0b61(0x74)]=='tax'&&_0xb645b6[_0x1d0b61(0x86)][_0x1d0b61(0x87)]({'title':_0x1ebc92[_0x488ade[_0x1d0b61(0x74)]],'info':_0x32cb4c+_0x2e6bf6(_0x488ade[_0x1d0b61(0xbb)]),'unit':_0x488ade[_0x1d0b61(0xbb)],'type':_0x488ade[_0x1d0b61(0x74)]});}_0xb645b6[_0x1d0b61(0x86)]['length']&&_0x29c94c[_0x1d0b61(0x87)](_0xb645b6);const _0x335914=_0x18d0a6[_0x1d0b61(0x79)](_0x7e6c22=>_0x7e6c22[_0x1d0b61(0x74)]=='totalprice');return _0x335914[_0x1d0b61(0xa9)]&&_0x29c94c[_0x1d0b61(0x87)]({'title':_0x4771e3['totalprice'],'type':_0x1d0b61(0x9d),'list':[{'title':_0x4771e3[_0x1d0b61(0x9d)],'info':_0x32cb4c+_0x2e6bf6(_0x335914[0x0][_0x1d0b61(0x95)])}]}),_0x29c94c;}export default{'handleCosting':handleCosting};function a1_0x84f3(){const _0x207ed8=['name','機場稅','adultprice','insure','strJgbm','baseadultprice','coupon','list','push','childprice','人員費用','保險費用','unitpricewb','4824295FARqPq','stringify','9ahipcm','兒童[占床]','airtax','vip','isShowTip','rylx','fLsjUnit','price','5CkXkpW','fJcbzlsjUnit','附加服務','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','23560688KbnzXh','會員減免','elder','totalprice','money','split','tipuser','tipday','promotion','優惠券','adultnum','childnum','1371070lAbEbb','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','warn','length','users','trim','2023638MutFLx','unitprice','ftd\x20函数接收到无效的数字输入:\x20','service','會員充值','point','trip','tip','vipdiscounted','toFixed','baseprice','unit','802541nXnvwY','map','other','totaltax','nRs','people','附加行程','遊客優惠','\x20*\x20','viprecharge','itemname','num','strLx','error','couponSign','578620GVJupG','isArray','filter','base','hasOwnProperty','1725534KmlWRB','child','reduction'];a1_0x84f3=function(){return _0x207ed8;};return a1_0x84f3();}
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5249d2,_0x27ee9a){const _0x48043c=a2_0x3334,_0x6ee360=_0x5249d2();while(!![]){try{const _0x330ea9=parseInt(_0x48043c(0x105))/0x1*(-parseInt(_0x48043c(0x109))/0x2)+parseInt(_0x48043c(0x120))/0x3*(-parseInt(_0x48043c(0x114))/0x4)+parseInt(_0x48043c(0x108))/0x5+-parseInt(_0x48043c(0x116))/0x6*(parseInt(_0x48043c(0x113))/0x7)+parseInt(_0x48043c(0x11e))/0x8+-parseInt(_0x48043c(0x107))/0x9+-parseInt(_0x48043c(0x121))/0xa*(-parseInt(_0x48043c(0x11d))/0xb);if(_0x330ea9===_0x27ee9a)break;else _0x6ee360['push'](_0x6ee360['shift']());}catch(_0x5494bd){_0x6ee360['push'](_0x6ee360['shift']());}}}(a2_0x51eb,0x2f5c6));function getRoomCount(_0x31ebea,_0xcfa9f0){const _0x3a523f=a2_0x3334,_0x3693f1=Array[_0x3a523f(0x115)](_0x31ebea);if(!_0x3693f1)_0x31ebea=[_0x31ebea];let _0x407899=[];return _0x31ebea[_0x3a523f(0x10c)](_0x1bc361=>{const _0x34e809=_0x3a523f;let _0x44e4a9=![];if(!_0x1bc361[_0x34e809(0x118)]){let _0x5d7652=_0x1bc361[_0x34e809(0x10a)];if(_0x1bc361[_0x34e809(0x11b)]||!_0xcfa9f0[_0x34e809(0x122)])_0x5d7652+=_0x1bc361[_0x34e809(0x110)];const _0x104bb0=_0xcfa9f0[_0x34e809(0x11a)]['find'](_0x1c3e4d=>Number(_0x1c3e4d[_0x34e809(0x10e)])===_0x5d7652);if(!_0x104bb0)_0x44e4a9=!![];else{let _0x5c32b3=_0x1bc361[_0x34e809(0x10a)]+_0x1bc361[_0x34e809(0x110)]+_0x1bc361['infantnum'];_0x5c32b3>_0x104bb0[_0x34e809(0x111)]&&(_0x44e4a9=!![]);}}_0x407899[_0x34e809(0x10b)](_0x44e4a9);}),_0x3693f1?_0x407899:_0x407899[0x0];}function getRoomConfig(_0x2640ab){const _0x3b30b2=a2_0x3334;let _0x119996=_0x2640ab[_0x3b30b2(0x106)](_0x30dd3c=>_0x30dd3c[_0x3b30b2(0x10e)]===_0x3b30b2(0x11b)),_0x270aab=_0x2640ab[_0x3b30b2(0x106)](_0x4b79fd=>_0x4b79fd[_0x3b30b2(0x10e)]===_0x3b30b2(0x119));const _0x24fb42=_0x2640ab['some'](_0x273589=>_0x273589[_0x3b30b2(0x10e)]===_0x3b30b2(0x10d)),_0x2a3df2=_0x2640ab['some'](_0x5a9397=>_0x5a9397[_0x3b30b2(0x10e)]===_0x3b30b2(0x122)),_0xbc998c=_0x2640ab[_0x3b30b2(0x117)](_0x38cfd3=>{const _0x145246=_0x3b30b2;return{'strCode':_0x38cfd3[_0x145246(0x10e)],'nMaxIn':_0x38cfd3[_0x145246(0x111)]};});if(_0x270aab){const _0x48daba=_0x2640ab[_0x3b30b2(0x106)](_0x5d7b27=>_0x5d7b27['strCode']=='2');_0x270aab=_0x270aab&&_0x48daba;}if(_0x119996)_0x119996=_0x119996&&_0x2a3df2;return{'childusebed':_0x119996,'half':_0x270aab,'infant':_0x24fb42,'child':_0x2a3df2,'list':_0xbc998c};}function a2_0x51eb(){const _0x155335=['max','23518AmjLEf','2820032nwjwQj','filter','3jWoOSa','2850jMgknl','child','409QkYKYw','some','136476tytlbC','513240NjzSYq','1214QKpKdy','adultnum','push','forEach','infant','strCode','length','childrennum','nMaxIn','infantnum','154091evbxwI','1019428gHlHUm','isArray','96yNdLej','map','isalotment','half','list','childusebed'];a2_0x51eb=function(){return _0x155335;};return a2_0x51eb();}function isRoomPiece(_0x4975a7,_0x20bca9){const _0x470c27=a2_0x3334;return _0x20bca9&&_0x4975a7[_0x470c27(0x10a)]===0x1&&_0x4975a7[_0x470c27(0x110)]===0x0&&_0x4975a7[_0x470c27(0x112)]===0x0;}function getRoomItemRange(_0x231511,_0x3fac4d,_0x54e84e={'child':'兒童','infant':'嬰兒'}){const _0x18351b=a2_0x3334;if(!_0x3fac4d[_0x18351b(0x10f)])return{'list':[],'yelist':[]};const _0xd93e44=Math[_0x18351b(0x11c)](..._0x3fac4d[_0x18351b(0x117)](_0x5e2b30=>Number(_0x5e2b30['nMaxIn']))),_0x4382fa=_0xd93e44-_0x231511[_0x18351b(0x10a)]-_0x231511['infantnum'];let _0x3d550c=_0xd93e44-_0x231511[_0x18351b(0x10a)]-_0x231511[_0x18351b(0x110)];if(_0x3d550c>0x2)_0x3d550c=0x2;const _0x169df1=(_0x2689df,_0x118307)=>{const _0x228682=_0x18351b,_0x3df840=[];_0x3df840[_0x228682(0x10b)]({'value':0x0,'text':'0\x20'+_0x118307});for(let _0x4d02e3=0x0;_0x4d02e3<_0x2689df;_0x4d02e3++){_0x3df840['push']({'value':_0x4d02e3+0x1,'text':_0x4d02e3+0x1+'\x20'+_0x118307});}return _0x3df840;};return{'list':_0x169df1(_0x4382fa,_0x54e84e[_0x18351b(0x122)]),'yelist':_0x169df1(_0x3d550c,_0x54e84e['infant'])};}function a2_0x3334(_0x495e92,_0x55cf14){const _0x51eb16=a2_0x51eb();return a2_0x3334=function(_0x33345b,_0x2cdc58){_0x33345b=_0x33345b-0x105;let _0x247d98=_0x51eb16[_0x33345b];return _0x247d98;},a2_0x3334(_0x495e92,_0x55cf14);}function getAdultRange(_0x1526c3,_0x16e154='成人'){const _0x5ec510=a2_0x3334;let _0x5f2e20=Math[_0x5ec510(0x11c)](..._0x1526c3[_0x5ec510(0x117)](_0x95806f=>Number(_0x95806f['strCode']))[_0x5ec510(0x11f)](_0x4e3018=>!isNaN(_0x4e3018)));if(!_0x5f2e20)_0x5f2e20=0x4;let _0x415861=[];for(var _0x2c1fe8=0x1;_0x2c1fe8<_0x5f2e20+0x1;_0x2c1fe8++){_0x415861['push']({'value':_0x2c1fe8,'text':_0x2c1fe8+'\x20'+_0x16e154});}return _0x415861;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
1
+ function a2_0x1613(){const _0x1d0f08=['half','some','child','map','list','length','adultnum','push','8937648XpySEw','infantnum','100777NSFdRv','find','childrennum','nMaxIn','8798855vAxmLS','forEach','3638236OHqEWJ','5797392niScQc','64244NanDHA','strCode','max','infant','childusebed','159IITlgz','isalotment','34TvLrAW','13658229tztdOl'];a2_0x1613=function(){return _0x1d0f08;};return a2_0x1613();}function a2_0x141d(_0x27f7ec,_0x413b40){const _0x161343=a2_0x1613();return a2_0x141d=function(_0x141d96,_0x3845a){_0x141d96=_0x141d96-0x6f;let _0x59cb21=_0x161343[_0x141d96];return _0x59cb21;},a2_0x141d(_0x27f7ec,_0x413b40);}(function(_0x2c601e,_0x2443c4){const _0x4c7038=a2_0x141d,_0x5d2e8b=_0x2c601e();while(!![]){try{const _0x338eb1=parseInt(_0x4c7038(0x7a))/0x1*(-parseInt(_0x4c7038(0x89))/0x2)+-parseInt(_0x4c7038(0x87))/0x3*(-parseInt(_0x4c7038(0x82))/0x4)+parseInt(_0x4c7038(0x7e))/0x5+parseInt(_0x4c7038(0x81))/0x6+-parseInt(_0x4c7038(0x80))/0x7+parseInt(_0x4c7038(0x78))/0x8+-parseInt(_0x4c7038(0x6f))/0x9;if(_0x338eb1===_0x2443c4)break;else _0x5d2e8b['push'](_0x5d2e8b['shift']());}catch(_0x44be71){_0x5d2e8b['push'](_0x5d2e8b['shift']());}}}(a2_0x1613,0xe6720));function getRoomCount(_0x1881fd,_0x1458e5){const _0x19b1b8=a2_0x141d,_0x3a1cdc=Array['isArray'](_0x1881fd);if(!_0x3a1cdc)_0x1881fd=[_0x1881fd];let _0x4cca22=[];return _0x1881fd[_0x19b1b8(0x7f)](_0x186a9d=>{const _0x37b9bf=_0x19b1b8;let _0x256453=![];if(!_0x186a9d[_0x37b9bf(0x88)]){let _0x3febc3=_0x186a9d['adultnum'];if(_0x186a9d['childusebed']||!_0x1458e5[_0x37b9bf(0x72)])_0x3febc3+=_0x186a9d[_0x37b9bf(0x7c)];const _0x2c8a76=_0x1458e5[_0x37b9bf(0x74)][_0x37b9bf(0x7b)](_0x5a546a=>Number(_0x5a546a[_0x37b9bf(0x83)])===_0x3febc3);if(!_0x2c8a76)_0x256453=!![];else{let _0x1e057c=_0x186a9d['adultnum']+_0x186a9d[_0x37b9bf(0x7c)]+_0x186a9d[_0x37b9bf(0x79)];_0x1e057c>_0x2c8a76[_0x37b9bf(0x7d)]&&(_0x256453=!![]);}}_0x4cca22[_0x37b9bf(0x77)](_0x256453);}),_0x3a1cdc?_0x4cca22:_0x4cca22[0x0];}function getRoomConfig(_0x1107f7){const _0x37d290=a2_0x141d;let _0x2dfec3=_0x1107f7['some'](_0x33a37b=>_0x33a37b[_0x37d290(0x83)]===_0x37d290(0x86)),_0x3c0562=_0x1107f7[_0x37d290(0x71)](_0x27d564=>_0x27d564[_0x37d290(0x83)]===_0x37d290(0x70));const _0x4afdb4=_0x1107f7[_0x37d290(0x71)](_0x40e904=>_0x40e904[_0x37d290(0x83)]==='infant'),_0x474e6a=_0x1107f7[_0x37d290(0x71)](_0x16c99c=>_0x16c99c['strCode']===_0x37d290(0x72)),_0x1b3a53=_0x1107f7[_0x37d290(0x73)](_0x559199=>{const _0x106cce=_0x37d290;return{'strCode':_0x559199[_0x106cce(0x83)],'nMaxIn':_0x559199['nMaxIn']};});if(_0x3c0562){const _0x422c1d=_0x1107f7['some'](_0x32c58d=>_0x32c58d[_0x37d290(0x83)]=='2');_0x3c0562=_0x3c0562&&_0x422c1d;}if(_0x2dfec3)_0x2dfec3=_0x2dfec3&&_0x474e6a;return{'childusebed':_0x2dfec3,'half':_0x3c0562,'infant':_0x4afdb4,'child':_0x474e6a,'list':_0x1b3a53};}function isRoomPiece(_0x1901bd,_0x366b18){const _0x3b10a6=a2_0x141d;return _0x366b18&&_0x1901bd[_0x3b10a6(0x76)]===0x1&&_0x1901bd[_0x3b10a6(0x7c)]===0x0&&_0x1901bd[_0x3b10a6(0x79)]===0x0;}function getRoomItemRange(_0x3d0a99,_0x4fe4ff,_0xd89e7a={'child':'兒童','infant':'嬰兒'}){const _0x4f9f45=a2_0x141d;if(!_0x4fe4ff[_0x4f9f45(0x75)])return{'list':[],'yelist':[]};const _0x5c64bd=Math[_0x4f9f45(0x84)](..._0x4fe4ff[_0x4f9f45(0x73)](_0x8b380f=>Number(_0x8b380f['nMaxIn']))),_0x2cb1f6=_0x5c64bd-_0x3d0a99[_0x4f9f45(0x76)]-_0x3d0a99[_0x4f9f45(0x79)];let _0x44a501=_0x5c64bd-_0x3d0a99[_0x4f9f45(0x76)]-_0x3d0a99[_0x4f9f45(0x7c)];if(_0x44a501>0x2)_0x44a501=0x2;const _0x15f9f1=(_0x3f97ee,_0x5efd69)=>{const _0x3abe67=[];_0x3abe67['push']({'value':0x0,'text':'0\x20'+_0x5efd69});for(let _0x2b7675=0x0;_0x2b7675<_0x3f97ee;_0x2b7675++){_0x3abe67['push']({'value':_0x2b7675+0x1,'text':_0x2b7675+0x1+'\x20'+_0x5efd69});}return _0x3abe67;};return{'list':_0x15f9f1(_0x2cb1f6,_0xd89e7a[_0x4f9f45(0x72)]),'yelist':_0x15f9f1(_0x44a501,_0xd89e7a[_0x4f9f45(0x85)])};}function getAdultRange(_0x1319f,_0x320130='成人'){const _0x100a4b=a2_0x141d;let _0x600fc0=Math[_0x100a4b(0x84)](..._0x1319f[_0x100a4b(0x73)](_0x3cdab4=>Number(_0x3cdab4[_0x100a4b(0x83)]))['filter'](_0x1c8a67=>!isNaN(_0x1c8a67)));if(!_0x600fc0)_0x600fc0=0x4;let _0x1b78f2=[];for(var _0x2f539d=0x1;_0x2f539d<_0x600fc0+0x1;_0x2f539d++){_0x1b78f2[_0x100a4b(0x77)]({'value':_0x2f539d,'text':_0x2f539d+'\x20'+_0x320130});}return _0x1b78f2;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x370fa3,_0x51f4d6){const _0x51071f=a3_0x2e73,_0x54f2b7=_0x370fa3();while(!![]){try{const _0x41c488=-parseInt(_0x51071f(0x77))/0x1+-parseInt(_0x51071f(0x97))/0x2*(parseInt(_0x51071f(0x79))/0x3)+-parseInt(_0x51071f(0x8c))/0x4*(parseInt(_0x51071f(0x87))/0x5)+-parseInt(_0x51071f(0x8a))/0x6+-parseInt(_0x51071f(0x83))/0x7*(-parseInt(_0x51071f(0x92))/0x8)+parseInt(_0x51071f(0x86))/0x9+parseInt(_0x51071f(0x89))/0xa*(parseInt(_0x51071f(0x8d))/0xb);if(_0x41c488===_0x51f4d6)break;else _0x54f2b7['push'](_0x54f2b7['shift']());}catch(_0x1094a5){_0x54f2b7['push'](_0x54f2b7['shift']());}}}(a3_0x29fe,0x538a7));function email(_0x133120){const _0x45c54a=a3_0x2e73;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x45c54a(0x80)](_0x133120);}function a3_0x2e73(_0x52a47e,_0x30d5ae){const _0x29fea7=a3_0x29fe();return a3_0x2e73=function(_0x2e7357,_0x5ebd0a){_0x2e7357=_0x2e7357-0x76;let _0xd2b65c=_0x29fea7[_0x2e7357];return _0xd2b65c;},a3_0x2e73(_0x52a47e,_0x30d5ae);}function mobile(_0x3de062){const _0x1fa0fe=a3_0x2e73;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x1fa0fe(0x80)](_0x3de062);}function isValidPhoneNumber(_0x5c7743){const _0x4fefd5=a3_0x2e73;if(_0x5c7743[_0x4fefd5(0x94)]('-')){const [_0x27bce8,_0x28bba0]=_0x5c7743[_0x4fefd5(0x8e)]('-');if(_0x27bce8==='86')return/^\d{11}$/[_0x4fefd5(0x80)](_0x28bba0)&&_0x28bba0[_0x4fefd5(0x7e)]('1');else return _0x27bce8==='852'?/^\d{8}$/['test'](_0x28bba0)&&['5','6','9','8'][_0x4fefd5(0x94)](_0x28bba0[_0x4fefd5(0x88)](0x0)):/^\d+$/[_0x4fefd5(0x80)](_0x28bba0);}else return/^\d+$/[_0x4fefd5(0x80)](_0x5c7743);}function url(_0x393342){const _0x4ee758=a3_0x2e73;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x4ee758(0x80)](_0x393342);}function date(_0x399bfe){const _0x40394e=a3_0x2e73;if(!_0x399bfe)return![];if(number(_0x399bfe))_0x399bfe=+_0x399bfe;return!/Invalid|NaN/['test'](new Date(_0x399bfe)[_0x40394e(0x81)]());}function dateISO(_0x35bfb6){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x35bfb6);}function isNumber(_0x2cbaad){const _0x206f2e=a3_0x2e73;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x206f2e(0x80)](_0x2cbaad);}function isString(_0x2839fc){const _0xf70dbe=a3_0x2e73;return typeof _0x2839fc===_0xf70dbe(0x7d);}function digits(_0xd3cdc4){const _0x2dd2cb=a3_0x2e73;return/^\d+$/[_0x2dd2cb(0x80)](_0xd3cdc4);}function idCard(_0x535541){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'](_0x535541);}function carNo(_0x148d06){const _0x2421b0=a3_0x2e73,_0x4c125b=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x259f92=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x148d06[_0x2421b0(0x8b)]===0x7)return _0x259f92['test'](_0x148d06);if(_0x148d06[_0x2421b0(0x8b)]===0x8)return _0x4c125b[_0x2421b0(0x80)](_0x148d06);return![];}function amount(_0x4ec42f){const _0x3465b0=a3_0x2e73;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x3465b0(0x80)](_0x4ec42f);}function a3_0x29fe(){const _0x5987b7=['string','startsWith','number','test','toString','parse','21jauqvK','[object\x20Array]','prototype','50562ljpcQl','892140hIezPK','charAt','149360HFkCTU','2733354CfVjAj','length','4mHnAJv','1122BMPhfE','split','undefined','[object\x20Object]','indexOf','589240GPfzNM','call','includes','object','then','1008vXtrEQ','function','220997abNwQy','isArray','3291OwYHnZ','^\x5cd{','boolean','catch'];a3_0x29fe=function(){return _0x5987b7;};return a3_0x29fe();}function chinese(_0x4c8f2f){const _0x5edc37=a3_0x2e73,_0x40b6e9=/^[\u4e00-\u9fa5]+$/gi;return _0x40b6e9[_0x5edc37(0x80)](_0x4c8f2f);}function letter(_0x15dce0){const _0x1a0ed6=a3_0x2e73;return/^[a-zA-Z]*$/[_0x1a0ed6(0x80)](_0x15dce0);}function enOrNum(_0x46ddf9){const _0x2d592b=/^[0-9a-zA-Z]*$/g;return _0x2d592b['test'](_0x46ddf9);}function contains(_0x15a374,_0x3c4565){const _0x5cec4b=a3_0x2e73;return _0x15a374[_0x5cec4b(0x91)](_0x3c4565)>=0x0;}function range(_0x432e67,_0x5c3888){return _0x432e67>=_0x5c3888[0x0]&&_0x432e67<=_0x5c3888[0x1];}function rangeLength(_0x5be0fb,_0x58b8ef){const _0x2db09a=a3_0x2e73;return _0x5be0fb['length']>=_0x58b8ef[0x0]&&_0x5be0fb[_0x2db09a(0x8b)]<=_0x58b8ef[0x1];}function landline(_0x8dc6ce){const _0x96f519=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x96f519['test'](_0x8dc6ce);}function empty(_0xbd4ed0){const _0x289034=a3_0x2e73;switch(typeof _0xbd4ed0){case _0x289034(0x8f):return!![];case _0x289034(0x7d):if(_0xbd4ed0['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case _0x289034(0x7b):if(!_0xbd4ed0)return!![];break;case _0x289034(0x7f):if(_0xbd4ed0===0x0||isNaN(_0xbd4ed0))return!![];break;case _0x289034(0x95):if(_0xbd4ed0===null||_0xbd4ed0[_0x289034(0x8b)]===0x0)return!![];for(const _0x195fdf in _0xbd4ed0){return![];}return!![];}return![];}function jsonString(_0x1c4e19){const _0x2e46d9=a3_0x2e73;if(typeof _0x1c4e19===_0x2e46d9(0x7d))try{const _0xcb663c=JSON[_0x2e46d9(0x82)](_0x1c4e19);if(typeof _0xcb663c===_0x2e46d9(0x95)&&_0xcb663c)return!![];return![];}catch(_0x41a296){return![];}return![];}function array(_0x164576){const _0x1e6651=a3_0x2e73;if(typeof Array['isArray']===_0x1e6651(0x76))return Array[_0x1e6651(0x78)](_0x164576);return Object[_0x1e6651(0x85)][_0x1e6651(0x81)]['call'](_0x164576)===_0x1e6651(0x84);}function object(_0x36bb25){const _0x230379=a3_0x2e73;return Object['prototype'][_0x230379(0x81)][_0x230379(0x93)](_0x36bb25)===_0x230379(0x90);}function code(_0x40fa24,_0x167bce=0x6){const _0x381f1d=a3_0x2e73;return new RegExp(_0x381f1d(0x7a)+_0x167bce+'}$')[_0x381f1d(0x80)](_0x40fa24);}function func(_0x2fd4cd){return typeof _0x2fd4cd==='function';}function promise(_0x381fe1){const _0x2754d0=a3_0x2e73;return object(_0x381fe1)&&func(_0x381fe1[_0x2754d0(0x96)])&&func(_0x381fe1[_0x2754d0(0x7c)]);}function image(_0x4ed577){const _0x32e0f2=a3_0x2e73,_0x23af36=_0x4ed577[_0x32e0f2(0x8e)]('?')[0x0],_0x11836b=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x11836b[_0x32e0f2(0x80)](_0x23af36);}function video(_0x178d08){const _0x55eb29=a3_0x2e73,_0x12c978=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x12c978[_0x55eb29(0x80)](_0x178d08);}function regExp(_0x2fd03d){const _0x3860aa=a3_0x2e73;return _0x2fd03d&&Object[_0x3860aa(0x85)][_0x3860aa(0x81)][_0x3860aa(0x93)](_0x2fd03d)==='[object\x20RegExp]';}function isNumeric(_0x422b85,_0x48e896=0x0){const _0x283396=a3_0x2e73;if(typeof _0x422b85===_0x283396(0x7f))_0x422b85=_0x422b85[_0x283396(0x81)]();if(typeof _0x422b85!=='string')return![];switch(_0x48e896){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x422b85);case 0x2:return/^-\d+(\.\d+)?$/[_0x283396(0x80)](_0x422b85);case 0x3:return/^-?\d+$/[_0x283396(0x80)](_0x422b85);case 0x4:return/^\d+$/['test'](_0x422b85);case 0x5:return/^-\d+$/['test'](_0x422b85);default:return/^-?\d*\.?\d*$/[_0x283396(0x80)](_0x422b85)&&!_0x422b85[_0x283396(0x7e)]('.')&&!_0x422b85[_0x283396(0x94)]('--');}}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(_0x1b15b4,_0x417d8c){const _0x1110c5=a3_0x3451,_0x26d4ba=_0x1b15b4();while(!![]){try{const _0x699b23=parseInt(_0x1110c5(0x1dc))/0x1+-parseInt(_0x1110c5(0x1e4))/0x2+-parseInt(_0x1110c5(0x1e8))/0x3+-parseInt(_0x1110c5(0x1e3))/0x4*(-parseInt(_0x1110c5(0x1ea))/0x5)+parseInt(_0x1110c5(0x1ed))/0x6+-parseInt(_0x1110c5(0x1de))/0x7+-parseInt(_0x1110c5(0x1db))/0x8*(-parseInt(_0x1110c5(0x1d7))/0x9);if(_0x699b23===_0x417d8c)break;else _0x26d4ba['push'](_0x26d4ba['shift']());}catch(_0x5f2f4d){_0x26d4ba['push'](_0x26d4ba['shift']());}}}(a3_0x5de9,0x2c6bd));function email(_0x5b8992){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/['test'](_0x5b8992);}function mobile(_0x3f2d98){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x3f2d98);}function isValidPhoneNumber(_0x260052){const _0x5dc142=a3_0x3451;if(_0x260052[_0x5dc142(0x1d4)]('-')){const [_0x1ddbb4,_0x5ea6e1]=_0x260052['split']('-');if(_0x1ddbb4==='86')return/^\d{11}$/['test'](_0x5ea6e1)&&_0x5ea6e1['startsWith']('1');else return _0x1ddbb4===_0x5dc142(0x1d8)?/^\d{8}$/[_0x5dc142(0x1d0)](_0x5ea6e1)&&['5','6','9','8'][_0x5dc142(0x1d4)](_0x5ea6e1[_0x5dc142(0x1ee)](0x0)):/^\d+$/[_0x5dc142(0x1d0)](_0x5ea6e1);}else return/^\d+$/['test'](_0x260052);}function url(_0x16f294){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'](_0x16f294);}function date(_0x3fed6b){const _0x22d96e=a3_0x3451;if(!_0x3fed6b)return![];if(number(_0x3fed6b))_0x3fed6b=+_0x3fed6b;return!/Invalid|NaN/['test'](new Date(_0x3fed6b)[_0x22d96e(0x1d6)]());}function dateISO(_0x6c65a6){const _0x542521=a3_0x3451;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x542521(0x1d0)](_0x6c65a6);}function isNumber(_0x466ef8){const _0x53d73c=a3_0x3451;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x53d73c(0x1d0)](_0x466ef8);}function isString(_0x529789){const _0x2e8414=a3_0x3451;return typeof _0x529789===_0x2e8414(0x1e5);}function digits(_0x4abfa2){const _0x1eab87=a3_0x3451;return/^\d+$/[_0x1eab87(0x1d0)](_0x4abfa2);}function idCard(_0x357749){const _0x378511=a3_0x3451;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)$/[_0x378511(0x1d0)](_0x357749);}function carNo(_0x48d144){const _0x3a9f03=a3_0x3451,_0x53adaf=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x148436=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x48d144[_0x3a9f03(0x1d5)]===0x7)return _0x148436[_0x3a9f03(0x1d0)](_0x48d144);if(_0x48d144[_0x3a9f03(0x1d5)]===0x8)return _0x53adaf[_0x3a9f03(0x1d0)](_0x48d144);return![];}function amount(_0x29a86b){const _0x38825f=a3_0x3451;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x38825f(0x1d0)](_0x29a86b);}function chinese(_0x41a9fc){const _0x37939d=a3_0x3451,_0x1d3411=/^[\u4e00-\u9fa5]+$/gi;return _0x1d3411[_0x37939d(0x1d0)](_0x41a9fc);}function letter(_0x17b469){const _0x2d67a5=a3_0x3451;return/^[a-zA-Z]*$/[_0x2d67a5(0x1d0)](_0x17b469);}function enOrNum(_0x564ff3){const _0x4e1fe2=a3_0x3451,_0x52bb57=/^[0-9a-zA-Z]*$/g;return _0x52bb57[_0x4e1fe2(0x1d0)](_0x564ff3);}function contains(_0x5071b1,_0x5cb226){const _0x606d48=a3_0x3451;return _0x5071b1[_0x606d48(0x1e7)](_0x5cb226)>=0x0;}function range(_0x5f5373,_0x3782ce){return _0x5f5373>=_0x3782ce[0x0]&&_0x5f5373<=_0x3782ce[0x1];}function rangeLength(_0xb9afa,_0x1d56fd){const _0x38e392=a3_0x3451;return _0xb9afa['length']>=_0x1d56fd[0x0]&&_0xb9afa[_0x38e392(0x1d5)]<=_0x1d56fd[0x1];}function landline(_0x119093){const _0x328029=a3_0x3451,_0x163994=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x163994[_0x328029(0x1d0)](_0x119093);}function empty(_0x28b591){const _0x4103b2=a3_0x3451;switch(typeof _0x28b591){case'undefined':return!![];case'string':if(_0x28b591['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x4103b2(0x1d5)]==0x0)return!![];break;case _0x4103b2(0x1cf):if(!_0x28b591)return!![];break;case'number':if(_0x28b591===0x0||isNaN(_0x28b591))return!![];break;case _0x4103b2(0x1e6):if(_0x28b591===null||_0x28b591[_0x4103b2(0x1d5)]===0x0)return!![];for(const _0x3b0f25 in _0x28b591){return![];}return!![];}return![];}function a3_0x3451(_0x191ccf,_0x583032){const _0x5de998=a3_0x5de9();return a3_0x3451=function(_0x3451ed,_0x399a1a){_0x3451ed=_0x3451ed-0x1cf;let _0x3d5356=_0x5de998[_0x3451ed];return _0x3d5356;},a3_0x3451(_0x191ccf,_0x583032);}function jsonString(_0x49660d){const _0x378e0a=a3_0x3451;if(typeof _0x49660d===_0x378e0a(0x1e5))try{const _0x4cc2d5=JSON[_0x378e0a(0x1da)](_0x49660d);if(typeof _0x4cc2d5===_0x378e0a(0x1e6)&&_0x4cc2d5)return!![];return![];}catch(_0x5c6ffb){return![];}return![];}function array(_0x1e85c2){const _0xde235=a3_0x3451;if(typeof Array[_0xde235(0x1d1)]==='function')return Array[_0xde235(0x1d1)](_0x1e85c2);return Object['prototype'][_0xde235(0x1d6)][_0xde235(0x1d9)](_0x1e85c2)===_0xde235(0x1e1);}function object(_0x2acb4c){const _0x4114bd=a3_0x3451;return Object[_0x4114bd(0x1e0)]['toString'][_0x4114bd(0x1d9)](_0x2acb4c)===_0x4114bd(0x1ef);}function code(_0x244c6c,_0xba6e47=0x6){const _0x5df107=a3_0x3451;return new RegExp(_0x5df107(0x1d3)+_0xba6e47+'}$')['test'](_0x244c6c);}function func(_0x2d229c){const _0x1b0062=a3_0x3451;return typeof _0x2d229c===_0x1b0062(0x1eb);}function promise(_0x1e2f99){const _0xabceef=a3_0x3451;return object(_0x1e2f99)&&func(_0x1e2f99[_0xabceef(0x1df)])&&func(_0x1e2f99[_0xabceef(0x1dd)]);}function image(_0x164377){const _0x266d23=a3_0x3451,_0x38d051=_0x164377[_0x266d23(0x1e9)]('?')[0x0],_0x189ba2=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x189ba2[_0x266d23(0x1d0)](_0x38d051);}function video(_0x4882d4){const _0x39674c=a3_0x3451,_0x392e58=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x392e58[_0x39674c(0x1d0)](_0x4882d4);}function regExp(_0x2c4334){const _0x29014d=a3_0x3451;return _0x2c4334&&Object['prototype'][_0x29014d(0x1d6)][_0x29014d(0x1d9)](_0x2c4334)===_0x29014d(0x1ec);}function isNumeric(_0x4bd927,_0x44b683=0x0){const _0x156440=a3_0x3451;if(typeof _0x4bd927===_0x156440(0x1d2))_0x4bd927=_0x4bd927[_0x156440(0x1d6)]();if(typeof _0x4bd927!==_0x156440(0x1e5))return![];switch(_0x44b683){case 0x1:return/^\d+(\.\d+)?$/[_0x156440(0x1d0)](_0x4bd927);case 0x2:return/^-\d+(\.\d+)?$/[_0x156440(0x1d0)](_0x4bd927);case 0x3:return/^-?\d+$/[_0x156440(0x1d0)](_0x4bd927);case 0x4:return/^\d+$/['test'](_0x4bd927);case 0x5:return/^-\d+$/[_0x156440(0x1d0)](_0x4bd927);default:return/^-?\d*\.?\d*$/['test'](_0x4bd927)&&!_0x4bd927[_0x156440(0x1e2)]('.')&&!_0x4bd927[_0x156440(0x1d4)]('--');}}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};function a3_0x5de9(){const _0xcde159=['isArray','number','^\x5cd{','includes','length','toString','4394835VGGNuC','852','call','parse','8IfQZIm','137252kpnGde','catch','1868517gsPrWm','then','prototype','[object\x20Array]','startsWith','848ItMcTg','662006olhmOO','string','object','indexOf','981516RSBRiC','split','3365BPRsVy','function','[object\x20RegExp]','2032872iVoZbw','charAt','[object\x20Object]','boolean','test'];a3_0x5de9=function(){return _0xcde159;};return a3_0x5de9();}
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- const a4_0x2d371c=a4_0x116d;(function(_0x402a17,_0x5b9cd4){const _0x36b746=a4_0x116d,_0x4ca3b0=_0x402a17();while(!![]){try{const _0x43e087=-parseInt(_0x36b746(0x172))/0x1+-parseInt(_0x36b746(0x171))/0x2*(parseInt(_0x36b746(0x173))/0x3)+-parseInt(_0x36b746(0x18c))/0x4+-parseInt(_0x36b746(0x164))/0x5+parseInt(_0x36b746(0x18f))/0x6+-parseInt(_0x36b746(0x189))/0x7*(parseInt(_0x36b746(0x169))/0x8)+parseInt(_0x36b746(0x16e))/0x9*(parseInt(_0x36b746(0x15d))/0xa);if(_0x43e087===_0x5b9cd4)break;else _0x4ca3b0['push'](_0x4ca3b0['shift']());}catch(_0x35f3de){_0x4ca3b0['push'](_0x4ca3b0['shift']());}}}(a4_0x2754,0xc5147));function fmtNum(_0x498f30){const _0x7ca6a=a4_0x116d;if(_0x498f30==0x0)return'0';if(!_0x498f30)return'';let _0x348579=typeof _0x498f30===_0x7ca6a(0x184)?parseFloat(_0x498f30):_0x498f30;if(isNaN(_0x348579))return'';return _0x348579['toLocaleString'](_0x7ca6a(0x170),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x53eb52,_0x2bc1f6=![]){const _0x4c48dc=a4_0x116d;let _0x1962a3={'surname':'','givenName':''};if(_0x2bc1f6){const _0x41a0ca=_0x53eb52[_0x4c48dc(0x179)](',')?_0x53eb52[_0x4c48dc(0x16f)](','):_0x53eb52[_0x4c48dc(0x16f)](/\s+/);_0x41a0ca[_0x4c48dc(0x190)]>=0x2&&(_0x1962a3['surname']=_0x41a0ca[0x0][_0x4c48dc(0x188)](),_0x1962a3[_0x4c48dc(0x174)]=_0x41a0ca[0x1][_0x4c48dc(0x188)]());}else{const _0x4cc18c=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x382aa8=0x0;_0x382aa8<_0x4cc18c[_0x4c48dc(0x190)];_0x382aa8++){const _0x370ed8=_0x4cc18c[_0x382aa8];if(_0x53eb52[_0x4c48dc(0x17b)](_0x370ed8))return _0x1962a3[_0x4c48dc(0x16a)]=_0x370ed8,_0x1962a3['givenName']=_0x53eb52[_0x4c48dc(0x15a)](_0x370ed8[_0x4c48dc(0x190)])[_0x4c48dc(0x188)](),_0x1962a3;}const _0x3129ec=_0x53eb52[_0x4c48dc(0x16f)]('\x20');if(_0x3129ec['length']===0x1){const _0x3a0928=_0x53eb52[_0x4c48dc(0x162)](/[\u4e00-\u9fa5]/);_0x1962a3[_0x4c48dc(0x16a)]=_0x3a0928?_0x3a0928[0x0]:'',_0x1962a3['givenName']=_0x53eb52[_0x4c48dc(0x168)](_0x1962a3[_0x4c48dc(0x16a)],'')[_0x4c48dc(0x188)]();}else _0x1962a3['surname']=_0x3129ec[0x0],_0x1962a3['givenName']=_0x3129ec[_0x4c48dc(0x17d)](0x1)[_0x4c48dc(0x16d)]('\x20');}return _0x1962a3;}function modifyKeys(_0x101ed7,_0x324032={'strCode':'code','strFjbh':a4_0x2d371c(0x163),'strGuid':a4_0x2d371c(0x157),'strValue':a4_0x2d371c(0x18a)}){const _0x3134f0=a4_0x2d371c;if(!_0x101ed7[_0x3134f0(0x190)]||_0x101ed7===null)return[];const _0x205473=_0x101ed7[_0x3134f0(0x178)](_0xfd4c10=>{const _0x2e6db3=_0x3134f0,_0x4f1e6d={};for(const _0x3e549d in _0xfd4c10){_0x324032[_0x2e6db3(0x176)](_0x3e549d)?_0x4f1e6d[_0x324032[_0x3e549d]]=_0xfd4c10[_0x3e549d]:_0x4f1e6d[_0x3e549d]=_0xfd4c10[_0x3e549d];}return _0x4f1e6d;});return _0x205473;}function sliceArray(_0x58621b,_0x322900,_0x286ee2){const _0x553e6c=a4_0x2d371c;if(_0x322900<=0x0)return console[_0x553e6c(0x15f)](_0x553e6c(0x17c)),[];return _0x286ee2?_0x58621b[_0x553e6c(0x17d)](0x0,_0x322900):_0x58621b[_0x553e6c(0x17d)](-_0x322900);}function findDataByData(_0x5a6abc,_0x20b2fa,_0x3187a5){const _0x4bc759=a4_0x2d371c,_0x113d85=_0x5a6abc[_0x4bc759(0x18b)](_0x33288c=>_0x33288c[_0x3187a5]===_0x20b2fa);return _0x113d85||null;}function splitArray(_0x14fae8,_0x4b0d9c){const _0x2c2119=a4_0x2d371c,_0x3e8ca9=[];for(let _0x30867d=0x0;_0x30867d<_0x14fae8[_0x2c2119(0x190)];_0x30867d+=_0x4b0d9c){_0x3e8ca9[_0x2c2119(0x175)](_0x14fae8[_0x2c2119(0x17d)](_0x30867d,_0x30867d+_0x4b0d9c));}return _0x3e8ca9;}function getProxyType(_0xfab32e){const _0xad6661=a4_0x2d371c;return Object[_0xad6661(0x159)][_0xad6661(0x160)][_0xad6661(0x185)](_0xfab32e)[_0xad6661(0x17d)](0x8,-0x1);}let timeout=null;function debounce(_0x3e4ecf,_0x1ce0e6=0x1f4,_0x5c6af1=![]){const _0x19b3b6=a4_0x2d371c;if(timeout!==null)clearTimeout(timeout);if(_0x5c6af1){const _0x35d378=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x1ce0e6);if(_0x35d378)typeof _0x3e4ecf===_0x19b3b6(0x18d)&&_0x3e4ecf();}else timeout=setTimeout(()=>{const _0x30c4ba=_0x19b3b6;typeof _0x3e4ecf===_0x30c4ba(0x18d)&&_0x3e4ecf();},_0x1ce0e6);}function urlEncode(_0x47e321={}){const _0xc30eb3=a4_0x2d371c,_0x566a61=[];for(const _0x44d96f in _0x47e321){const _0x568ab3=_0x47e321[_0x44d96f];if(!_0x568ab3)continue;isArray(_0x568ab3)?_0x568ab3[_0xc30eb3(0x161)](_0x116df5=>{const _0x5b017d=_0xc30eb3;_0x566a61[_0x5b017d(0x175)](_0x44d96f+'='+_0x116df5);}):_0x566a61['push'](_0x44d96f+'='+_0x568ab3);}return _0x566a61[_0xc30eb3(0x16d)]('&');}function a4_0x116d(_0x3cbc43,_0x34a96c){const _0x275424=a4_0x2754();return a4_0x116d=function(_0x116dc5,_0xee62dd){_0x116dc5=_0x116dc5-0x150;let _0x52127a=_0x275424[_0x116dc5];return _0x52127a;},a4_0x116d(_0x3cbc43,_0x34a96c);}function dateFormat(_0x2c3c7f,_0x4488b7){const _0x240a63=a4_0x2d371c,_0xcf2806=new Date(_0x4488b7),_0x24ba40={'Y+':_0xcf2806[_0x240a63(0x167)]()[_0x240a63(0x160)](),'m+':(_0xcf2806[_0x240a63(0x183)]()+0x1)[_0x240a63(0x160)](),'d+':_0xcf2806[_0x240a63(0x15c)]()[_0x240a63(0x160)](),'H+':_0xcf2806['getHours']()[_0x240a63(0x160)](),'M+':_0xcf2806['getMinutes']()[_0x240a63(0x160)](),'S+':_0xcf2806[_0x240a63(0x158)]()[_0x240a63(0x160)]()};let _0x1abd0d;for(let _0x1cac34 in _0x24ba40){_0x1abd0d=new RegExp('('+_0x1cac34+')')[_0x240a63(0x153)](_0x2c3c7f);_0x1abd0d&&(_0x2c3c7f=_0x2c3c7f[_0x240a63(0x168)](_0x1abd0d[0x1],_0x1abd0d[0x1][_0x240a63(0x190)]==0x1?_0x24ba40[_0x1cac34]:_0x24ba40[_0x1cac34]['padStart'](_0x1abd0d[0x1][_0x240a63(0x190)],'0')));;};return _0x2c3c7f;}function formatDate(_0x5068be,_0x5d8e76='YYYY-MM-DD',_0x4a83eb={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x5a9138=a4_0x2d371c,_0x10185c=new Date(_0x5068be),_0x4995bf=_0x10185c[_0x5a9138(0x167)](),_0x316068=_0x10185c['getMonth']()+0x1,_0x4c2743=_0x10185c[_0x5a9138(0x15c)](),_0x1fff0b=_0x316068<0xa?'0'+_0x316068:_0x316068,_0x438902=_0x4c2743<0xa?'0'+_0x4c2743:_0x4c2743;let _0x4cb5ff=_0x5d8e76[_0x5a9138(0x168)](_0x5a9138(0x154),_0x4995bf)[_0x5a9138(0x168)]('MM',_0x1fff0b)['replace']('DD',_0x438902);return _0x4cb5ff=_0x4cb5ff[_0x5a9138(0x168)](/-MM/g,_0x4a83eb[_0x5a9138(0x17a)])[_0x5a9138(0x168)](/-DD/g,_0x4a83eb['dayTitle'])[_0x5a9138(0x168)]('YYYY'+_0x4a83eb[_0x5a9138(0x151)],'')[_0x5a9138(0x168)]('MM'+_0x4a83eb[_0x5a9138(0x17a)],'')[_0x5a9138(0x168)]('DD'+_0x4a83eb['dayTitle'],''),_0x4cb5ff;}function compareDates(_0x4c4525,_0x3606fd){const _0x2b84e4=a4_0x2d371c;_0x4c4525=new Date(_0x4c4525);!_0x3606fd?_0x3606fd=new Date():_0x3606fd=new Date(_0x3606fd);_0x4c4525['setHours'](0x0,0x0,0x0,0x0),_0x3606fd[_0x2b84e4(0x182)](0x0,0x0,0x0,0x0);var _0x1c53aa=_0x4c4525['getTime'](),_0x930553=_0x3606fd[_0x2b84e4(0x16b)]();if(_0x1c53aa<_0x930553)return-0x1;else return _0x1c53aa>_0x930553?0x1:0x0;}function getDaysBetween(_0x37ae6d,_0xee3057){const _0x56e4fb=a4_0x2d371c,_0x479845=new Date(_0x37ae6d),_0x19a749=new Date(_0xee3057),_0x576f70=Math['abs'](_0x479845[_0x56e4fb(0x16b)]()-_0x19a749[_0x56e4fb(0x16b)]()),_0x568441=Math[_0x56e4fb(0x187)](_0x576f70/(0x3e8*0x3c*0x3c*0x18));return _0x568441+0x1;}function chineseNumeral(_0x216c94){const _0x1d41d7=a4_0x2d371c,_0x590680=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x4f9b70=['','拾','佰','仟'],_0x3815e=['','万','亿','兆'];let _0xeeff8f=Math[_0x1d41d7(0x187)](_0x216c94),_0x53183b=Math[_0x1d41d7(0x17f)]((_0x216c94-_0xeeff8f)*0x64),_0x3e8991='';for(let _0x232d85=0x0;_0xeeff8f>0x0;_0x232d85++){let _0x57c8c8='',_0x25408a=_0xeeff8f%0x2710;_0xeeff8f=Math[_0x1d41d7(0x187)](_0xeeff8f/0x2710);for(let _0x1ce047=0x0;_0x25408a>0x0;_0x1ce047++){let _0x3a646c=_0x25408a%0xa;_0x57c8c8=(_0x3a646c?_0x590680[_0x3a646c]+_0x4f9b70[_0x1ce047]:'')+_0x57c8c8,_0x25408a=Math[_0x1d41d7(0x187)](_0x25408a/0xa);}_0x3e8991=_0x57c8c8+(_0x57c8c8?_0x3815e[_0x232d85]:_0x3815e[_0x232d85]&&!_0x3e8991['includes']('零')?'零':'')+_0x3e8991;}_0x3e8991+=_0x3e8991?'元':'零元';if(_0x53183b>0x0){let _0x5cd802=Math[_0x1d41d7(0x187)](_0x53183b/0xa),_0x360714=_0x53183b%0xa;_0x3e8991+=(_0x5cd802?_0x590680[_0x5cd802]+'角':'')+(_0x360714?_0x590680[_0x360714]+'分':'');}else _0x3e8991+='整';return _0x3e8991[_0x1d41d7(0x168)](/零{2,}/g,'零')[_0x1d41d7(0x168)](/零元/,'元');}function getMonthDate(_0x9b1f77){const _0x292cd6=a4_0x2d371c;(!_0x9b1f77||_0x9b1f77[_0x292cd6(0x188)]()==='')&&(_0x9b1f77=new Date()[_0x292cd6(0x167)]()+'-'+(new Date()[_0x292cd6(0x183)]()+0x1));let _0x5223a0=[],[_0xf8a5c9,_0x1ce7c6]=_0x9b1f77[_0x292cd6(0x16f)]('-')[_0x292cd6(0x178)](Number),_0x39cdaf=new Date(_0xf8a5c9,_0x1ce7c6,0x0),_0x204eb8=_0x39cdaf[_0x292cd6(0x15c)]();for(let _0x577d03=0x1;_0x577d03<=_0x204eb8;_0x577d03++){let _0x4888d8=_0x577d03<0xa?'0'+_0x577d03:''+_0x577d03,_0x4516ff=_0x1ce7c6<0xa?'0'+_0x1ce7c6:''+_0x1ce7c6;_0x5223a0[_0x292cd6(0x175)]({'date':_0xf8a5c9+'-'+_0x4516ff+'-'+_0x4888d8,'disable':!![]});}return _0x5223a0;}function a4_0x2754(){const _0x4ae44a=['Quantity\x20should\x20be\x20greater\x20than\x200.','slice','shift','round','isArray','max','setHours','getMonth','string','call','setDate','floor','trim','1603wfRjId','label','find','5518004VFOnXK','function','除数不能为0','974496IcGHot','length','_qh','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','yearTitle','right','exec','YYYY','number','toFixed','value','getSeconds','prototype','substring','both','getDate','4088740bFsOpn','random','error','toString','forEach','match','fjbh','7217035tcpHlT','stringify','object','getFullYear','replace','19344fdvPuW','surname','getTime','padStart','join','135IfgmeA','split','en-US','2LDKYwl','919142whZbcL','3577545nEZusU','givenName','push','hasOwnProperty','endsWith','map','includes','monthTitle','startsWith'];a4_0x2754=function(){return _0x4ae44a;};return a4_0x2754();}function getToday(_0x33fc44){const _0x3d1d44=a4_0x2d371c;var _0xb1dbaa=new Date(),_0x330109=String(_0xb1dbaa[_0x3d1d44(0x15c)]())[_0x3d1d44(0x16c)](0x2,'0'),_0x4614c2=String(_0xb1dbaa[_0x3d1d44(0x183)]()+0x1)[_0x3d1d44(0x16c)](0x2,'0'),_0x2c67c1=_0xb1dbaa[_0x3d1d44(0x167)]();return _0xb1dbaa=_0x2c67c1+'-'+_0x4614c2+'-'+_0x330109,_0xb1dbaa;}function resetObject(_0x45da8f){const _0x20bfea=a4_0x2d371c;let _0x1ffc8e=JSON['parse'](JSON[_0x20bfea(0x165)](_0x45da8f));for(const _0xbadfce in _0x1ffc8e){if(typeof _0x1ffc8e[_0xbadfce]===_0x20bfea(0x155))_0x1ffc8e[_0xbadfce]=0x0;else{if(typeof _0x1ffc8e[_0xbadfce]==='boolean')_0x1ffc8e[_0xbadfce]=![];else{if(Array[_0x20bfea(0x180)](_0x1ffc8e[_0xbadfce]))_0x1ffc8e[_0xbadfce]=[];else typeof _0x1ffc8e[_0xbadfce]===_0x20bfea(0x166)&&_0x1ffc8e[_0xbadfce]!==null?resetObject(_0x1ffc8e[_0xbadfce]):_0x1ffc8e[_0xbadfce]='';}}}return _0x1ffc8e;}function preciseOperation(_0xb14ce3,_0x1769b4,_0x6a6be9,_0x3811c7=0xf4240){const _0x70e2e6=a4_0x2d371c;if(isNaN(_0xb14ce3)||isNaN(_0x1769b4))return NaN;if(!isFinite(_0xb14ce3)||!isFinite(_0x1769b4))return NaN;let _0xa493bd=BigInt(Math[_0x70e2e6(0x17f)](_0xb14ce3*_0x3811c7)),_0x43c341=BigInt(Math[_0x70e2e6(0x17f)](_0x1769b4*_0x3811c7)),_0x32b42c;switch(_0x6a6be9){case 0x1:_0x32b42c=_0xa493bd+_0x43c341;break;case 0x2:_0x32b42c=_0xa493bd-_0x43c341;break;case 0x3:_0x32b42c=_0xa493bd*_0x43c341;break;case 0x4:if(_0x43c341===0x0n)throw new Error(_0x70e2e6(0x18e));_0x32b42c=_0xa493bd/_0x43c341;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x32b42c)/_0x3811c7;}function preciseSum(_0x3cec5e){const _0x5da7c7=a4_0x2d371c;let _0x7e9f2f=0x0;for(const _0x55f992 of _0x3cec5e){let _0x3226d2=0x0;if(typeof _0x55f992==='string'){const _0x48f47a=parseFloat(_0x55f992);!isNaN(_0x48f47a)&&(_0x3226d2=_0x48f47a);}else typeof _0x55f992===_0x5da7c7(0x155)&&(_0x3226d2=_0x55f992);_0x7e9f2f=preciseOperation(_0x7e9f2f,_0x3226d2,0x1);}return _0x7e9f2f;}function getRelativeDate(_0x1f2db4,_0x58106f=0x0){const _0x1631d1=a4_0x2d371c,_0x517808=new Date(_0x1f2db4);_0x517808[_0x1631d1(0x186)](_0x517808[_0x1631d1(0x15c)]()+_0x58106f);const _0x27bcd5=_0x517808[_0x1631d1(0x167)](),_0x5ac993=(_0x517808[_0x1631d1(0x183)]()+0x1)['toString']()[_0x1631d1(0x16c)](0x2,'0'),_0x1acaba=_0x517808[_0x1631d1(0x15c)]()[_0x1631d1(0x160)]()[_0x1631d1(0x16c)](0x2,'0');return _0x27bcd5+'-'+_0x5ac993+'-'+_0x1acaba;}function validateFields(_0x2351a1,_0x438c74,_0x122f00=''){for(let _0x122535 of _0x438c74){if(_0x2351a1[_0x122535]===_0x122f00)return!![];}return![];}function mergeObjects(_0x1c46d2,_0x3ccea8){const _0x2fe06a=a4_0x2d371c;for(const _0x5711ec in _0x1c46d2){_0x3ccea8[_0x2fe06a(0x176)](_0x5711ec)&&(_0x1c46d2[_0x5711ec]=_0x3ccea8[_0x5711ec]);}return _0x1c46d2;}const formatToDecimal=(_0x3639a4,_0x3a8452=0x2)=>{const _0x41e70e=a4_0x2d371c;if(isNaN(_0x3a8452)||_0x3a8452<0x0)return _0x3639a4;let _0x2e7902=Number(_0x3639a4);if(!isFinite(_0x2e7902))return _0x3639a4;return _0x3a8452=Math[_0x41e70e(0x181)](0x0,Math[_0x41e70e(0x187)](_0x3a8452)),_0x2e7902[_0x41e70e(0x156)](_0x3a8452);};function findKeysEndingWith(_0x5964f8,_0x172bd4=a4_0x2d371c(0x191)){const _0xa90e9c=a4_0x2d371c;let _0x244d1b=[];for(var _0x939038 in _0x5964f8){if(_0x5964f8['hasOwnProperty'](_0x939038)){if(_0x939038[_0xa90e9c(0x177)](_0x172bd4))_0x244d1b[_0xa90e9c(0x175)](_0x939038);}}return _0x244d1b;}function guid(_0x10664b=0x20,_0x3209be=!![],_0x5306d4=null){const _0x3fc371=a4_0x2d371c,_0x24abf5=_0x3fc371(0x150)[_0x3fc371(0x16f)](''),_0x26504b=[];_0x5306d4=_0x5306d4||_0x24abf5[_0x3fc371(0x190)];if(_0x10664b){for(let _0x443bee=0x0;_0x443bee<_0x10664b;_0x443bee++)_0x26504b[_0x443bee]=_0x24abf5[0x0|Math[_0x3fc371(0x15e)]()*_0x5306d4];}else{let _0x3e172e;_0x26504b[0x8]=_0x26504b[0xd]=_0x26504b[0x12]=_0x26504b[0x17]='-',_0x26504b[0xe]='4';for(let _0x2788b7=0x0;_0x2788b7<0x24;_0x2788b7++){!_0x26504b[_0x2788b7]&&(_0x3e172e=0x0|Math['random']()*0x10,_0x26504b[_0x2788b7]=_0x24abf5[_0x2788b7==0x13?_0x3e172e&0x3|0x8:_0x3e172e]);}}if(_0x3209be)return _0x26504b[_0x3fc371(0x17e)](),'u'+_0x26504b[_0x3fc371(0x16d)]('');return _0x26504b['join']('');}function trim(_0x15d6c6,_0xf18a19=a4_0x2d371c(0x15b)){const _0x125415=a4_0x2d371c;_0x15d6c6=String(_0x15d6c6);if(_0xf18a19==_0x125415(0x15b))return _0x15d6c6[_0x125415(0x168)](/^\s+|\s+$/g,'');if(_0xf18a19=='left')return _0x15d6c6[_0x125415(0x168)](/^\s*/,'');if(_0xf18a19==_0x125415(0x152))return _0x15d6c6[_0x125415(0x168)](/(\s*$)/g,'');if(_0xf18a19=='all')return _0x15d6c6[_0x125415(0x168)](/\s+/g,'');return _0x15d6c6;}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_0x47670d=a4_0x4960;(function(_0x39f101,_0xb648e){const _0x31c9a4=a4_0x4960,_0x56cbe5=_0x39f101();while(!![]){try{const _0x3680bf=-parseInt(_0x31c9a4(0x125))/0x1*(parseInt(_0x31c9a4(0x130))/0x2)+parseInt(_0x31c9a4(0x119))/0x3*(parseInt(_0x31c9a4(0x159))/0x4)+-parseInt(_0x31c9a4(0x121))/0x5+-parseInt(_0x31c9a4(0x131))/0x6*(-parseInt(_0x31c9a4(0x12f))/0x7)+parseInt(_0x31c9a4(0x14e))/0x8+parseInt(_0x31c9a4(0x120))/0x9+-parseInt(_0x31c9a4(0x128))/0xa*(parseInt(_0x31c9a4(0x145))/0xb);if(_0x3680bf===_0xb648e)break;else _0x56cbe5['push'](_0x56cbe5['shift']());}catch(_0xa374d3){_0x56cbe5['push'](_0x56cbe5['shift']());}}}(a4_0x5d32,0x3c58a));function fmtNum(_0x2da2bd){const _0x5d4ad8=a4_0x4960;if(_0x2da2bd==0x0)return'0';if(!_0x2da2bd)return'';let _0x2b4be2=typeof _0x2da2bd===_0x5d4ad8(0x154)?parseFloat(_0x2da2bd):_0x2da2bd;if(isNaN(_0x2b4be2))return'';return _0x2b4be2[_0x5d4ad8(0x12d)]('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x22e7cc,_0x16b1cf=![]){const _0x354327=a4_0x4960;let _0x2f7b56={'surname':'','givenName':''};if(_0x16b1cf){const _0xfef86f=_0x22e7cc[_0x354327(0x12b)](',')?_0x22e7cc[_0x354327(0x140)](','):_0x22e7cc[_0x354327(0x140)](/\s+/);_0xfef86f[_0x354327(0x13e)]>=0x2&&(_0x2f7b56[_0x354327(0x123)]=_0xfef86f[0x0]['trim'](),_0x2f7b56['givenName']=_0xfef86f[0x1][_0x354327(0x149)]());}else{const _0x3c0b0d=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x10182a=0x0;_0x10182a<_0x3c0b0d['length'];_0x10182a++){const _0x4e72c1=_0x3c0b0d[_0x10182a];if(_0x22e7cc['startsWith'](_0x4e72c1))return _0x2f7b56[_0x354327(0x123)]=_0x4e72c1,_0x2f7b56[_0x354327(0x144)]=_0x22e7cc[_0x354327(0x12a)](_0x4e72c1[_0x354327(0x13e)])['trim'](),_0x2f7b56;}const _0x108a14=_0x22e7cc[_0x354327(0x140)]('\x20');if(_0x108a14[_0x354327(0x13e)]===0x1){const _0x2fe5d2=_0x22e7cc[_0x354327(0x138)](/[\u4e00-\u9fa5]/);_0x2f7b56[_0x354327(0x123)]=_0x2fe5d2?_0x2fe5d2[0x0]:'',_0x2f7b56['givenName']=_0x22e7cc[_0x354327(0x11c)](_0x2f7b56[_0x354327(0x123)],'')[_0x354327(0x149)]();}else _0x2f7b56[_0x354327(0x123)]=_0x108a14[0x0],_0x2f7b56[_0x354327(0x144)]=_0x108a14[_0x354327(0x13a)](0x1)[_0x354327(0x11a)]('\x20');}return _0x2f7b56;}function modifyKeys(_0x2189a5,_0x2f4833={'strCode':'code','strFjbh':a4_0x47670d(0x150),'strGuid':'value','strValue':a4_0x47670d(0x157)}){const _0x27bd1c=a4_0x47670d;if(!_0x2189a5['length']||_0x2189a5===null)return[];const _0x53885d=_0x2189a5[_0x27bd1c(0x11f)](_0x106634=>{const _0x4abb6b=_0x27bd1c,_0x2a9b7a={};for(const _0xbf5b59 in _0x106634){_0x2f4833[_0x4abb6b(0x146)](_0xbf5b59)?_0x2a9b7a[_0x2f4833[_0xbf5b59]]=_0x106634[_0xbf5b59]:_0x2a9b7a[_0xbf5b59]=_0x106634[_0xbf5b59];}return _0x2a9b7a;});return _0x53885d;}function sliceArray(_0x265cbd,_0x314bc4,_0x18ed68){const _0x2950e5=a4_0x47670d;if(_0x314bc4<=0x0)return console[_0x2950e5(0x137)](_0x2950e5(0x14d)),[];return _0x18ed68?_0x265cbd[_0x2950e5(0x13a)](0x0,_0x314bc4):_0x265cbd[_0x2950e5(0x13a)](-_0x314bc4);}function a4_0x5d32(){const _0x26c087=['yearTitle','getTime','length','floor','split','find','除数不能为0','getFullYear','givenName','79717FeAPVv','hasOwnProperty','padStart','getMinutes','trim','isArray','round','dayTitle','Quantity\x20should\x20be\x20greater\x20than\x200.','2604928fNyMJD','endsWith','fjbh','both','abs','forEach','string','shift','setHours','label','YYYY-MM-DD','662276PczytL','prototype','3vsMbin','join','push','replace','getDate','无效的操作符,操作符应为1、2、3或4','map','3021165vgBBnQ','169835UBOByJ','YYYY','surname','call','35ZdKWYC','stringify','getMonth','1060VQoqEG','parse','substring','includes','left','toLocaleString','getSeconds','28yAAXXH','4098TFzbhV','441258agdCmg','setDate','all','object','random','number','error','match','toString','slice','monthTitle'];a4_0x5d32=function(){return _0x26c087;};return a4_0x5d32();}function findDataByData(_0x54eb7f,_0x488603,_0xad4636){const _0x2afd53=a4_0x47670d,_0xb4180e=_0x54eb7f[_0x2afd53(0x141)](_0x241d02=>_0x241d02[_0xad4636]===_0x488603);return _0xb4180e||null;}function splitArray(_0x17c9e1,_0x3b2a8a){const _0x248910=a4_0x47670d,_0x2c48e8=[];for(let _0x3f793c=0x0;_0x3f793c<_0x17c9e1['length'];_0x3f793c+=_0x3b2a8a){_0x2c48e8[_0x248910(0x11b)](_0x17c9e1[_0x248910(0x13a)](_0x3f793c,_0x3f793c+_0x3b2a8a));}return _0x2c48e8;}function getProxyType(_0x41f6a6){const _0x4a704d=a4_0x47670d;return Object[_0x4a704d(0x118)][_0x4a704d(0x139)][_0x4a704d(0x124)](_0x41f6a6)[_0x4a704d(0x13a)](0x8,-0x1);}let timeout=null;function debounce(_0xc1e8e5,_0x117db2=0x1f4,_0x400e4b=![]){if(timeout!==null)clearTimeout(timeout);if(_0x400e4b){const _0x54a595=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x117db2);if(_0x54a595)typeof _0xc1e8e5==='function'&&_0xc1e8e5();}else timeout=setTimeout(()=>{typeof _0xc1e8e5==='function'&&_0xc1e8e5();},_0x117db2);}function urlEncode(_0x59b5c2={}){const _0x48e272=a4_0x47670d,_0x584b88=[];for(const _0x48531d in _0x59b5c2){const _0x5038ed=_0x59b5c2[_0x48531d];if(!_0x5038ed)continue;isArray(_0x5038ed)?_0x5038ed[_0x48e272(0x153)](_0x2f8ea0=>{const _0x1697c1=_0x48e272;_0x584b88[_0x1697c1(0x11b)](_0x48531d+'='+_0x2f8ea0);}):_0x584b88[_0x48e272(0x11b)](_0x48531d+'='+_0x5038ed);}return _0x584b88[_0x48e272(0x11a)]('&');}function dateFormat(_0x213a6e,_0x2ffad9){const _0x489673=a4_0x47670d,_0x21323f=new Date(_0x2ffad9),_0x1d2a29={'Y+':_0x21323f[_0x489673(0x143)]()[_0x489673(0x139)](),'m+':(_0x21323f[_0x489673(0x127)]()+0x1)['toString'](),'d+':_0x21323f[_0x489673(0x11d)]()[_0x489673(0x139)](),'H+':_0x21323f['getHours']()[_0x489673(0x139)](),'M+':_0x21323f[_0x489673(0x148)]()[_0x489673(0x139)](),'S+':_0x21323f[_0x489673(0x12e)]()[_0x489673(0x139)]()};let _0x209da5;for(let _0xaf191d in _0x1d2a29){_0x209da5=new RegExp('('+_0xaf191d+')')['exec'](_0x213a6e);_0x209da5&&(_0x213a6e=_0x213a6e['replace'](_0x209da5[0x1],_0x209da5[0x1]['length']==0x1?_0x1d2a29[_0xaf191d]:_0x1d2a29[_0xaf191d][_0x489673(0x147)](_0x209da5[0x1][_0x489673(0x13e)],'0')));;};return _0x213a6e;}function formatDate(_0x13474e,_0xcf4e2f=a4_0x47670d(0x158),_0x546c86={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x4df53b=a4_0x47670d,_0x47d9c8=new Date(_0x13474e),_0x42209b=_0x47d9c8[_0x4df53b(0x143)](),_0x33a07a=_0x47d9c8['getMonth']()+0x1,_0x4c47fd=_0x47d9c8[_0x4df53b(0x11d)](),_0x390eac=_0x33a07a<0xa?'0'+_0x33a07a:_0x33a07a,_0x5d019a=_0x4c47fd<0xa?'0'+_0x4c47fd:_0x4c47fd;let _0x44701b=_0xcf4e2f[_0x4df53b(0x11c)](_0x4df53b(0x122),_0x42209b)[_0x4df53b(0x11c)]('MM',_0x390eac)[_0x4df53b(0x11c)]('DD',_0x5d019a);return _0x44701b=_0x44701b[_0x4df53b(0x11c)](/-MM/g,_0x546c86['monthTitle'])['replace'](/-DD/g,_0x546c86[_0x4df53b(0x14c)])['replace'](_0x4df53b(0x122)+_0x546c86[_0x4df53b(0x13c)],'')[_0x4df53b(0x11c)]('MM'+_0x546c86[_0x4df53b(0x13b)],'')['replace']('DD'+_0x546c86[_0x4df53b(0x14c)],''),_0x44701b;}function compareDates(_0x57ff07,_0x46548c){const _0x19d0e8=a4_0x47670d;_0x57ff07=new Date(_0x57ff07);!_0x46548c?_0x46548c=new Date():_0x46548c=new Date(_0x46548c);_0x57ff07['setHours'](0x0,0x0,0x0,0x0),_0x46548c[_0x19d0e8(0x156)](0x0,0x0,0x0,0x0);var _0x4fa43c=_0x57ff07[_0x19d0e8(0x13d)](),_0x2463e9=_0x46548c[_0x19d0e8(0x13d)]();if(_0x4fa43c<_0x2463e9)return-0x1;else return _0x4fa43c>_0x2463e9?0x1:0x0;}function getDaysBetween(_0x4e8bd7,_0x3c915f){const _0xe624b7=a4_0x47670d,_0x520aef=new Date(_0x4e8bd7),_0xb10829=new Date(_0x3c915f),_0x55b2f4=Math[_0xe624b7(0x152)](_0x520aef[_0xe624b7(0x13d)]()-_0xb10829[_0xe624b7(0x13d)]()),_0x414954=Math['floor'](_0x55b2f4/(0x3e8*0x3c*0x3c*0x18));return _0x414954+0x1;}function chineseNumeral(_0x26c5ca){const _0x5920d2=a4_0x47670d,_0x38f07f=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x6220de=['','拾','佰','仟'],_0x2a7377=['','万','亿','兆'];let _0x24fab1=Math[_0x5920d2(0x13f)](_0x26c5ca),_0x5f036a=Math['round']((_0x26c5ca-_0x24fab1)*0x64),_0x4ba64e='';for(let _0x1c1213=0x0;_0x24fab1>0x0;_0x1c1213++){let _0x587ae5='',_0x58541c=_0x24fab1%0x2710;_0x24fab1=Math[_0x5920d2(0x13f)](_0x24fab1/0x2710);for(let _0x5aace6=0x0;_0x58541c>0x0;_0x5aace6++){let _0x21190f=_0x58541c%0xa;_0x587ae5=(_0x21190f?_0x38f07f[_0x21190f]+_0x6220de[_0x5aace6]:'')+_0x587ae5,_0x58541c=Math[_0x5920d2(0x13f)](_0x58541c/0xa);}_0x4ba64e=_0x587ae5+(_0x587ae5?_0x2a7377[_0x1c1213]:_0x2a7377[_0x1c1213]&&!_0x4ba64e[_0x5920d2(0x12b)]('零')?'零':'')+_0x4ba64e;}_0x4ba64e+=_0x4ba64e?'元':'零元';if(_0x5f036a>0x0){let _0x4b569f=Math[_0x5920d2(0x13f)](_0x5f036a/0xa),_0x40961a=_0x5f036a%0xa;_0x4ba64e+=(_0x4b569f?_0x38f07f[_0x4b569f]+'角':'')+(_0x40961a?_0x38f07f[_0x40961a]+'分':'');}else _0x4ba64e+='整';return _0x4ba64e[_0x5920d2(0x11c)](/零{2,}/g,'零')[_0x5920d2(0x11c)](/零元/,'元');}function getMonthDate(_0x4082c0){const _0x3fa362=a4_0x47670d;(!_0x4082c0||_0x4082c0[_0x3fa362(0x149)]()==='')&&(_0x4082c0=new Date()[_0x3fa362(0x143)]()+'-'+(new Date()[_0x3fa362(0x127)]()+0x1));let _0x5994eb=[],[_0x51549a,_0x265e36]=_0x4082c0['split']('-')[_0x3fa362(0x11f)](Number),_0x10e435=new Date(_0x51549a,_0x265e36,0x0),_0xb90970=_0x10e435[_0x3fa362(0x11d)]();for(let _0xff9161=0x1;_0xff9161<=_0xb90970;_0xff9161++){let _0x45b0ab=_0xff9161<0xa?'0'+_0xff9161:''+_0xff9161,_0x4a85ee=_0x265e36<0xa?'0'+_0x265e36:''+_0x265e36;_0x5994eb[_0x3fa362(0x11b)]({'date':_0x51549a+'-'+_0x4a85ee+'-'+_0x45b0ab,'disable':!![]});}return _0x5994eb;}function getToday(_0x25519a){const _0x191ca4=a4_0x47670d;var _0x27b303=new Date(),_0x372e10=String(_0x27b303[_0x191ca4(0x11d)]())[_0x191ca4(0x147)](0x2,'0'),_0x11d628=String(_0x27b303[_0x191ca4(0x127)]()+0x1)[_0x191ca4(0x147)](0x2,'0'),_0x49a053=_0x27b303[_0x191ca4(0x143)]();return _0x27b303=_0x49a053+'-'+_0x11d628+'-'+_0x372e10,_0x27b303;}function resetObject(_0x533411){const _0x5b62ec=a4_0x47670d;let _0x36fef8=JSON[_0x5b62ec(0x129)](JSON[_0x5b62ec(0x126)](_0x533411));for(const _0x2f933d in _0x36fef8){if(typeof _0x36fef8[_0x2f933d]==='number')_0x36fef8[_0x2f933d]=0x0;else{if(typeof _0x36fef8[_0x2f933d]==='boolean')_0x36fef8[_0x2f933d]=![];else{if(Array[_0x5b62ec(0x14a)](_0x36fef8[_0x2f933d]))_0x36fef8[_0x2f933d]=[];else typeof _0x36fef8[_0x2f933d]===_0x5b62ec(0x134)&&_0x36fef8[_0x2f933d]!==null?resetObject(_0x36fef8[_0x2f933d]):_0x36fef8[_0x2f933d]='';}}}return _0x36fef8;}function preciseOperation(_0x3d1fca,_0x5bd891,_0x26b09e,_0x1a6eb1=0xf4240){const _0x16fb5d=a4_0x47670d;if(isNaN(_0x3d1fca)||isNaN(_0x5bd891))return NaN;if(!isFinite(_0x3d1fca)||!isFinite(_0x5bd891))return NaN;let _0x5058ea=BigInt(Math[_0x16fb5d(0x14b)](_0x3d1fca*_0x1a6eb1)),_0x46ad62=BigInt(Math['round'](_0x5bd891*_0x1a6eb1)),_0x2ffcd7;switch(_0x26b09e){case 0x1:_0x2ffcd7=_0x5058ea+_0x46ad62;break;case 0x2:_0x2ffcd7=_0x5058ea-_0x46ad62;break;case 0x3:_0x2ffcd7=_0x5058ea*_0x46ad62;break;case 0x4:if(_0x46ad62===0x0n)throw new Error(_0x16fb5d(0x142));_0x2ffcd7=_0x5058ea/_0x46ad62;break;default:throw new Error(_0x16fb5d(0x11e));}return Number(_0x2ffcd7)/_0x1a6eb1;}function preciseSum(_0x495670){const _0x2baace=a4_0x47670d;let _0x2d0ebd=0x0;for(const _0x4bb81a of _0x495670){let _0x5e00a5=0x0;if(typeof _0x4bb81a===_0x2baace(0x154)){const _0x355322=parseFloat(_0x4bb81a);!isNaN(_0x355322)&&(_0x5e00a5=_0x355322);}else typeof _0x4bb81a===_0x2baace(0x136)&&(_0x5e00a5=_0x4bb81a);_0x2d0ebd=preciseOperation(_0x2d0ebd,_0x5e00a5,0x1);}return _0x2d0ebd;}function getRelativeDate(_0xff1ebd,_0xdb4ba0=0x0){const _0x84c9a0=a4_0x47670d,_0x3dfcd1=new Date(_0xff1ebd);_0x3dfcd1[_0x84c9a0(0x132)](_0x3dfcd1[_0x84c9a0(0x11d)]()+_0xdb4ba0);const _0x247793=_0x3dfcd1[_0x84c9a0(0x143)](),_0x48478c=(_0x3dfcd1[_0x84c9a0(0x127)]()+0x1)[_0x84c9a0(0x139)]()[_0x84c9a0(0x147)](0x2,'0'),_0x2513d9=_0x3dfcd1[_0x84c9a0(0x11d)]()[_0x84c9a0(0x139)]()[_0x84c9a0(0x147)](0x2,'0');return _0x247793+'-'+_0x48478c+'-'+_0x2513d9;}function a4_0x4960(_0x3c14cf,_0x37797b){const _0x5d32a4=a4_0x5d32();return a4_0x4960=function(_0x496097,_0x35786e){_0x496097=_0x496097-0x118;let _0x70a9c=_0x5d32a4[_0x496097];return _0x70a9c;},a4_0x4960(_0x3c14cf,_0x37797b);}function validateFields(_0x247ba4,_0x24e964,_0x558b78=''){for(let _0xc50dcb of _0x24e964){if(_0x247ba4[_0xc50dcb]===_0x558b78)return!![];}return![];}function mergeObjects(_0x84056a,_0x398c1f){for(const _0x5f5d41 in _0x84056a){_0x398c1f['hasOwnProperty'](_0x5f5d41)&&(_0x84056a[_0x5f5d41]=_0x398c1f[_0x5f5d41]);}return _0x84056a;}const formatToDecimal=(_0xd1dd56,_0x2117a2=0x2)=>{const _0x5e2a7b=a4_0x47670d;if(isNaN(_0x2117a2)||_0x2117a2<0x0)return _0xd1dd56;let _0x5bc42c=Number(_0xd1dd56);if(!isFinite(_0x5bc42c))return _0xd1dd56;return _0x2117a2=Math['max'](0x0,Math[_0x5e2a7b(0x13f)](_0x2117a2)),_0x5bc42c['toFixed'](_0x2117a2);};function findKeysEndingWith(_0x4a13ed,_0x10df0a='_qh'){const _0x48ad2f=a4_0x47670d;let _0x244f98=[];for(var _0x2440d4 in _0x4a13ed){if(_0x4a13ed['hasOwnProperty'](_0x2440d4)){if(_0x2440d4[_0x48ad2f(0x14f)](_0x10df0a))_0x244f98[_0x48ad2f(0x11b)](_0x2440d4);}}return _0x244f98;}function guid(_0x244f85=0x20,_0x4802c5=!![],_0x1ac624=null){const _0x1f863e=a4_0x47670d,_0x1b793c='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'[_0x1f863e(0x140)](''),_0x56efe4=[];_0x1ac624=_0x1ac624||_0x1b793c[_0x1f863e(0x13e)];if(_0x244f85){for(let _0x30950d=0x0;_0x30950d<_0x244f85;_0x30950d++)_0x56efe4[_0x30950d]=_0x1b793c[0x0|Math[_0x1f863e(0x135)]()*_0x1ac624];}else{let _0xd20325;_0x56efe4[0x8]=_0x56efe4[0xd]=_0x56efe4[0x12]=_0x56efe4[0x17]='-',_0x56efe4[0xe]='4';for(let _0x3326cd=0x0;_0x3326cd<0x24;_0x3326cd++){!_0x56efe4[_0x3326cd]&&(_0xd20325=0x0|Math['random']()*0x10,_0x56efe4[_0x3326cd]=_0x1b793c[_0x3326cd==0x13?_0xd20325&0x3|0x8:_0xd20325]);}}if(_0x4802c5)return _0x56efe4[_0x1f863e(0x155)](),'u'+_0x56efe4[_0x1f863e(0x11a)]('');return _0x56efe4[_0x1f863e(0x11a)]('');}function trim(_0x5aedac,_0x598f25=a4_0x47670d(0x151)){const _0x5f5077=a4_0x47670d;_0x5aedac=String(_0x5aedac);if(_0x598f25=='both')return _0x5aedac[_0x5f5077(0x11c)](/^\s+|\s+$/g,'');if(_0x598f25==_0x5f5077(0x12c))return _0x5aedac[_0x5f5077(0x11c)](/^\s*/,'');if(_0x598f25=='right')return _0x5aedac[_0x5f5077(0x11c)](/(\s*$)/g,'');if(_0x598f25==_0x5f5077(0x133))return _0x5aedac[_0x5f5077(0x11c)](/\s+/g,'');return _0x5aedac;}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};
package/package.json CHANGED
@@ -1,19 +1,26 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {
7
7
  ".": {
8
8
  "require": "./dist/index.js",
9
9
  "import": "./dist/index.js"
10
- }
10
+ },
11
+ "./*": "./*"
11
12
  },
12
13
  "files": [
13
14
  "dist"
14
15
  ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
15
19
  "type": "module",
16
20
  "scripts": {
21
+ "patch": "npm version patch",
22
+ "minor": "npm version minor",
23
+ "major": "npm version major",
17
24
  "test": "echo \"Error: no test specified\" && exit 1",
18
25
  "clean": "rimraf dist || rm -rf dist",
19
26
  "build:babel": "npm run clean && babel src --out-dir dist",