yunlin 1.0.32 → 1.0.34

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(_0x3db729,_0xe51095){var _0x520286=a0_0x39c9,_0x37f2ae=_0x3db729();while(!![]){try{var _0x475a19=-parseInt(_0x520286(0x161))/0x1+-parseInt(_0x520286(0x15a))/0x2*(parseInt(_0x520286(0x159))/0x3)+-parseInt(_0x520286(0x15b))/0x4*(parseInt(_0x520286(0x15c))/0x5)+parseInt(_0x520286(0x157))/0x6*(parseInt(_0x520286(0x15e))/0x7)+-parseInt(_0x520286(0x158))/0x8*(-parseInt(_0x520286(0x160))/0x9)+-parseInt(_0x520286(0x15f))/0xa*(parseInt(_0x520286(0x156))/0xb)+-parseInt(_0x520286(0x15d))/0xc*(-parseInt(_0x520286(0x155))/0xd);if(_0x475a19===_0xe51095)break;else _0x37f2ae['push'](_0x37f2ae['shift']());}catch(_0x41748e){_0x37f2ae['push'](_0x37f2ae['shift']());}}}(a0_0x4f73,0x71c28));import a0_0x3720c2 from'./utils';import a0_0x4c9bf8 from'./price';import a0_0x6effad from'./test';function a0_0x39c9(_0xddb7b6,_0x566350){var _0x4f7379=a0_0x4f73();return a0_0x39c9=function(_0x39c9d7,_0xe6c87a){_0x39c9d7=_0x39c9d7-0x155;var _0x2a1fa9=_0x4f7379[_0x39c9d7];return _0x2a1fa9;},a0_0x39c9(_0xddb7b6,_0x566350);}import a0_0x5cbc30 from'./room';export default{'test':a0_0x6effad,'utils':a0_0x3720c2,'price':a0_0x4c9bf8,'room':a0_0x5cbc30};function a0_0x4f73(){var _0x6cd279=['70932luRtIx','376vGnWOU','2467167dKpORS','2pETexH','3209116ksHySw','5FoZXsY','12afhopg','126sLuYdX','2648930PIdKAY','5301fzfRGI','406231dpRhBb','32776549FmYmcN','11AcgjPP'];a0_0x4f73=function(){return _0x6cd279;};return a0_0x4f73();}
1
+ (function(_0x415da4,_0x46aae3){var _0x5dd192=a0_0x2d15,_0x18aebf=_0x415da4();while(!![]){try{var _0xf42f77=parseInt(_0x5dd192(0x8d))/0x1*(-parseInt(_0x5dd192(0x91))/0x2)+-parseInt(_0x5dd192(0x8c))/0x3*(parseInt(_0x5dd192(0x8f))/0x4)+-parseInt(_0x5dd192(0x90))/0x5*(parseInt(_0x5dd192(0x94))/0x6)+parseInt(_0x5dd192(0x95))/0x7+parseInt(_0x5dd192(0x93))/0x8+-parseInt(_0x5dd192(0x8e))/0x9+parseInt(_0x5dd192(0x92))/0xa*(parseInt(_0x5dd192(0x8b))/0xb);if(_0xf42f77===_0x46aae3)break;else _0x18aebf['push'](_0x18aebf['shift']());}catch(_0x1755fb){_0x18aebf['push'](_0x18aebf['shift']());}}}(a0_0x4511,0x2690b));import a0_0x458238 from'./utils';import a0_0xc454ac from'./price';function a0_0x2d15(_0x56e13b,_0x415c81){var _0x4511d1=a0_0x4511();return a0_0x2d15=function(_0x2d1585,_0x49893c){_0x2d1585=_0x2d1585-0x8b;var _0x45197b=_0x4511d1[_0x2d1585];return _0x45197b;},a0_0x2d15(_0x56e13b,_0x415c81);}import a0_0x1203c6 from'./test';import a0_0x1e7d59 from'./room';export default{'test':a0_0x1203c6,'utils':a0_0x458238,'price':a0_0xc454ac,'room':a0_0x1e7d59};function a0_0x4511(){var _0x3347b8=['30390DkuDuv','58560UGMGve','786SLLmGF','1327312zwEfuK','2728fyqHUI','719412quFyLk','3eNwTYa','2638602EWRPSA','4tqeBCG','520lsSyui','164026GodBRH'];a0_0x4511=function(){return _0x3347b8;};return a0_0x4511();}
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- const a1_0x2ec395=a1_0x454b;function a1_0x38b5(){const _0x122ce4=['money','fLsjUnit','baseprice','length','6999hnvQns','人員費用','tipday','price','rylx','30ZKoNKJ','includes','374855vPqHrK','max','其他費用','baseadultprice','減免費用','viprecharge','other','toFixed','vipdiscounted','4223694FnsCew','promotion','coupon','map','airtax','1014676szDXVD','split','totaltax','base','itemname','round','basechildprice','6151775rmZSXW','vip','fJcbzlsjUnit','adultprice','childnum','reduction','8895537JIZIfV','\x20*\x20','優惠券','766znfGKE','push','unitprice','附加服務','insure','totalprice','tip','strJgbm','tipuser','strLx','name','trip','service','會員減免','child','nRs','unitpricewb','tax','保險費用','childprice','filter','num','遊客優惠','機場稅','floor','adultnum','兒童[占床]','unit','elder','people','9559600QAPGjP','32CXHPcy','附加行程','list'];a1_0x38b5=function(){return _0x122ce4;};return a1_0x38b5();}(function(_0x317d93,_0x41bacf){const _0x17d98b=a1_0x454b,_0x167d58=_0x317d93();while(!![]){try{const _0x4e535b=-parseInt(_0x17d98b(0x1c8))/0x1+parseInt(_0x17d98b(0x1d8))/0x2*(-parseInt(_0x17d98b(0x1b3))/0x3)+-parseInt(_0x17d98b(0x1ac))/0x4*(-parseInt(_0x17d98b(0x1ba))/0x5)+-parseInt(_0x17d98b(0x1c3))/0x6+parseInt(_0x17d98b(0x1cf))/0x7+-parseInt(_0x17d98b(0x1ab))/0x8+parseInt(_0x17d98b(0x1d5))/0x9*(parseInt(_0x17d98b(0x1b8))/0xa);if(_0x4e535b===_0x41bacf)break;else _0x167d58['push'](_0x167d58['shift']());}catch(_0x29b2de){_0x167d58['push'](_0x167d58['shift']());}}}(a1_0x38b5,0x9b6f2));function handleCosting(_0x474cf0,_0x33ff17='',_0x85a4aa='-',_0x54a844=0x2,_0x3ea7ec={'people':a1_0x2ec395(0x1b4),'service':a1_0x2ec395(0x190),'trip':a1_0x2ec395(0x1ad),'other':a1_0x2ec395(0x1bc),'reduction':a1_0x2ec395(0x1be),'totalprice':'總計','airtax':a1_0x2ec395(0x1a4)},_0x3d78b3={'adult':'成人','child':'兒童','childusebed':a1_0x2ec395(0x1a7),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a1_0x2ec395(0x1a3),'vip':a1_0x2ec395(0x19a),'promotion':'促銷','insure':a1_0x2ec395(0x19f),'coupon':a1_0x2ec395(0x1d7),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'}){const _0x59dc1e=a1_0x2ec395;let _0x1bf485=[];const _0x3409a4=_0x59dc1e(0x1d6),_0x256dee=(_0x3de75c,_0x5cb638=_0x54a844)=>{const _0x31dfeb=_0x59dc1e;if(_0x3de75c==null||isNaN(_0x5cb638)||_0x5cb638<0x0)return'';let _0x17961d=Number(_0x3de75c);if(!isFinite(_0x17961d))return'';return _0x5cb638=Math[_0x31dfeb(0x1bb)](0x0,Math[_0x31dfeb(0x1a5)](_0x5cb638)),_0x5cb638===0x0?Math[_0x31dfeb(0x1cd)](_0x17961d):Number(_0x17961d[_0x31dfeb(0x1c1)](_0x5cb638));},_0x189bd3=_0x474cf0[_0x59dc1e(0x1a1)](_0xce53f8=>_0xce53f8[_0x59dc1e(0x196)]==_0x59dc1e(0x1cb));if(_0x189bd3[_0x59dc1e(0x1b2)]){let _0x1a0d0d={'title':_0x3ea7ec[_0x59dc1e(0x1aa)],'type':_0x59dc1e(0x1cb),'list':[]};_0x189bd3[_0x59dc1e(0x1c6)](_0x1e019e=>{const _0x15e47f=_0x59dc1e;_0x1a0d0d[_0x15e47f(0x1ae)][_0x15e47f(0x1d9)]({'title':_0x3d78b3[_0x1e019e[_0x15e47f(0x194)]],'info':_0x33ff17+_0x1e019e['fLsjUnit']+_0x3409a4+_0x1e019e[_0x15e47f(0x19c)],'nRs':_0x1e019e[_0x15e47f(0x19c)],'unit':_0x1e019e[_0x15e47f(0x1b0)],'cb':_0x1e019e[_0x15e47f(0x1d1)],'type':'base'});}),_0x1bf485[_0x59dc1e(0x1d9)](_0x1a0d0d);}const _0x356d73=_0x474cf0[_0x59dc1e(0x1a1)](_0x3b0a36=>_0x3b0a36[_0x59dc1e(0x196)]=='service');if(_0x356d73['length']){let _0x36853f={'title':_0x3ea7ec[_0x59dc1e(0x199)],'type':_0x59dc1e(0x199),'list':[]};_0x356d73[_0x59dc1e(0x1c6)](_0xb53b58=>{const _0x333647=_0x59dc1e;_0x36853f['list'][_0x333647(0x1d9)]({'title':_0xb53b58[_0x333647(0x197)]+('['+_0xb53b58[_0x333647(0x1cc)]+']'),'info':_0x33ff17+_0xb53b58['unitprice']+_0x3409a4+_0xb53b58[_0x333647(0x1a2)],'nRs':_0xb53b58[_0x333647(0x1a2)],'unit':_0xb53b58[_0x333647(0x18f)],'cb':_0xb53b58[_0x333647(0x1b1)],'type':_0x333647(0x199)});}),_0x1bf485[_0x59dc1e(0x1d9)](_0x36853f);}const _0x24a870=_0x474cf0['filter'](_0x24209c=>_0x24209c[_0x59dc1e(0x196)]==_0x59dc1e(0x198));if(_0x24a870[_0x59dc1e(0x1b2)]){let _0x2e4d72={'title':_0x3ea7ec[_0x59dc1e(0x198)],'type':_0x59dc1e(0x198),'list':[]};_0x24a870['map'](_0x30a132=>{const _0x408355=_0x59dc1e;_0x30a132[_0x408355(0x1a6)]!='0'&&_0x2e4d72[_0x408355(0x1ae)][_0x408355(0x1d9)]({'title':_0x30a132[_0x408355(0x197)]+('['+_0x3d78b3['adult']+']'),'info':_0x33ff17+_0x30a132[_0x408355(0x1d2)]+_0x3409a4+_0x30a132[_0x408355(0x1a6)],'nRs':_0x30a132['adultnum'],'unit':_0x30a132[_0x408355(0x1d2)],'cb':_0x30a132[_0x408355(0x1bd)],'type':'trip'}),_0x30a132['childnum']!='0'&&_0x2e4d72[_0x408355(0x1ae)][_0x408355(0x1d9)]({'title':_0x30a132['name']+('['+_0x3d78b3[_0x408355(0x19b)]+']'),'info':_0x33ff17+_0x30a132[_0x408355(0x1a0)]+_0x3409a4+_0x30a132['childnum'],'nRs':_0x30a132[_0x408355(0x1d3)],'unit':_0x30a132[_0x408355(0x1a0)],'cb':_0x30a132[_0x408355(0x1ce)],'type':_0x408355(0x198)});}),_0x1bf485[_0x59dc1e(0x1d9)](_0x2e4d72);}let _0x59fbdd=[];const _0x34536b=_0x474cf0[_0x59dc1e(0x1a1)](_0xb024b8=>_0xb024b8[_0x59dc1e(0x196)]==_0x59dc1e(0x1a9));_0x34536b['length']&&_0x34536b[_0x59dc1e(0x1c6)](_0x21516e=>{const _0x599e18=_0x59dc1e,_0x4d12f0=_0x21516e[_0x599e18(0x197)][_0x599e18(0x1c9)]('|')||[''];_0x59fbdd['push']({'title':_0x3d78b3[_0x599e18(0x1a9)]+('['+_0x4d12f0[0x0]+']'),'info':_0x33ff17+_0x85a4aa+_0x21516e['money'],'unit':_0x21516e[_0x599e18(0x1af)],'cb':_0x21516e[_0x599e18(0x1af)],'type':_0x599e18(0x1a9)});});const _0x27a644=_0x474cf0[_0x59dc1e(0x1a1)](_0x4313cf=>_0x4313cf[_0x59dc1e(0x196)]==_0x59dc1e(0x1c2));_0x27a644[_0x59dc1e(0x1b2)]&&_0x27a644['map'](_0xee105b=>{const _0x283899=_0x59dc1e;_0x59fbdd[_0x283899(0x1d9)]({'title':_0x3d78b3[_0x283899(0x1d0)]+('['+_0xee105b[_0x283899(0x197)]+']'),'info':_0x33ff17+_0x85a4aa+_0xee105b['money'],'unit':_0xee105b[_0x283899(0x1af)],'cb':_0xee105b[_0x283899(0x1af)],'type':_0x283899(0x1d0)});});const _0xf8ed54=_0x474cf0['filter'](_0x4a7362=>_0x4a7362[_0x59dc1e(0x196)]==_0x59dc1e(0x1c4));_0xf8ed54[_0x59dc1e(0x1b2)]&&_0xf8ed54[_0x59dc1e(0x1c6)](_0x203896=>{const _0x26be7a=_0x59dc1e;_0x59fbdd[_0x26be7a(0x1d9)]({'title':_0x3d78b3['promotion'],'info':_0x33ff17+_0x85a4aa+_0x203896[_0x26be7a(0x1af)],'unit':_0x203896[_0x26be7a(0x1af)],'cb':_0x203896[_0x26be7a(0x1af)],'type':_0x26be7a(0x1c4)});});_0x59fbdd[_0x59dc1e(0x1b2)]&&_0x1bf485[_0x59dc1e(0x1d9)]({'title':_0x3ea7ec[_0x59dc1e(0x1d4)],'type':'reduction','list':_0x59fbdd});const _0x1515b9=_0x474cf0[_0x59dc1e(0x1a1)](_0x1b7779=>_0x1b7779['strLx']==_0x59dc1e(0x1c7));if(_0x1515b9[_0x59dc1e(0x1b2)]){let _0x491336={'title':_0x3ea7ec[_0x59dc1e(0x1c7)],'type':_0x59dc1e(0x1c7),'list':[]};_0x1515b9[_0x59dc1e(0x1c6)](_0xd102a=>{const _0x68f7e1=_0x59dc1e;_0x491336[_0x68f7e1(0x1ae)]['push']({'title':_0x3d78b3[_0xd102a[_0x68f7e1(0x1b7)]],'info':_0x33ff17+_0xd102a[_0x68f7e1(0x18f)]+_0x3409a4+_0xd102a['sl'],'nRs':_0xd102a['sl'],'unit':_0xd102a[_0x68f7e1(0x18f)],'cb':_0xd102a[_0x68f7e1(0x19d)],'type':_0xd102a[_0x68f7e1(0x1b7)]});}),_0x1bf485['push'](_0x491336);}const _0x148a70=[_0x59dc1e(0x1cb),_0x59dc1e(0x199),'trip','elder',_0x59dc1e(0x1c2),_0x59dc1e(0x1c4),_0x59dc1e(0x1c7)],_0x3343ef=_0x474cf0[_0x59dc1e(0x1a1)](_0x374b95=>!_0x148a70[_0x59dc1e(0x1b9)](_0x374b95[_0x59dc1e(0x196)]));let _0x2592f0={'title':_0x3ea7ec[_0x59dc1e(0x1c0)],'type':_0x59dc1e(0x1c0),'list':[]};for(var _0x3d2e85=0x0;_0x3d2e85<_0x3343ef[_0x59dc1e(0x1b2)];_0x3d2e85++){const _0x53f086=_0x3343ef[_0x3d2e85];_0x53f086['strLx']==_0x59dc1e(0x1bf)&&_0x2592f0[_0x59dc1e(0x1ae)]['push']({'title':_0x3d78b3[_0x59dc1e(0x1bf)]+('['+_0x53f086['name']+']'),'info':_0x33ff17+_0x53f086['money'],'unit':_0x53f086[_0x59dc1e(0x1af)],'type':_0x53f086['strLx']}),_0x53f086['strLx']==_0x59dc1e(0x191)&&_0x2592f0[_0x59dc1e(0x1ae)]['push']({'title':_0x3d78b3[_0x59dc1e(0x191)]+('['+_0x53f086[_0x59dc1e(0x197)]+']'),'info':_0x33ff17+_0x53f086['unit']+_0x3409a4+_0x53f086['users']+_0x3d78b3['r'],'nRs':_0x53f086['users'],'unit':_0x53f086[_0x59dc1e(0x1a8)],'cb':_0x53f086['unit'],'type':_0x59dc1e(0x191)}),(_0x53f086['strLx']==_0x59dc1e(0x1c5)||_0x53f086[_0x59dc1e(0x196)]=='point')&&_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1d9)]({'title':_0x3d78b3[_0x53f086[_0x59dc1e(0x196)]],'info':_0x33ff17+_0x85a4aa+_0x256dee(_0x53f086[_0x59dc1e(0x1af)],_0x54a844),'unit':_0x53f086['money'],'type':_0x53f086[_0x59dc1e(0x196)]}),_0x53f086['strLx']==_0x59dc1e(0x193)&&_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1d9)]({'title':_0x3d78b3[_0x53f086[_0x59dc1e(0x196)]],'info':_0x33ff17+_0x53f086[_0x59dc1e(0x193)]+_0x3409a4+_0x53f086[_0x59dc1e(0x195)]+_0x3d78b3['r']+_0x3409a4+_0x53f086[_0x59dc1e(0x1b5)]+_0x3d78b3['t'],'nRs':_0x53f086['tipuser'],'count':_0x53f086[_0x59dc1e(0x1b5)],'unit':_0x53f086['tip'],'type':_0x53f086[_0x59dc1e(0x196)]}),_0x53f086[_0x59dc1e(0x196)]==_0x59dc1e(0x19e)&&_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1d9)]({'title':_0x3d78b3[_0x53f086[_0x59dc1e(0x196)]],'info':_0x33ff17+_0x256dee(_0x53f086[_0x59dc1e(0x1ca)],_0x54a844),'unit':_0x53f086[_0x59dc1e(0x1ca)],'type':_0x53f086['strLx']});}_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1b2)]&&_0x1bf485[_0x59dc1e(0x1d9)](_0x2592f0);const _0x671f00=_0x474cf0['filter'](_0x12a648=>_0x12a648[_0x59dc1e(0x196)]==_0x59dc1e(0x192));return _0x671f00[_0x59dc1e(0x1b2)]&&_0x1bf485[_0x59dc1e(0x1d9)]({'title':_0x3ea7ec['totalprice'],'type':_0x59dc1e(0x192),'list':[{'title':_0x3ea7ec['totalprice'],'info':_0x33ff17+_0x671f00[0x0][_0x59dc1e(0x1b6)]}]}),_0x1bf485;}function a1_0x454b(_0x48ebd6,_0x1b51ca){const _0x38b542=a1_0x38b5();return a1_0x454b=function(_0x454b7f,_0x2d64f3){_0x454b7f=_0x454b7f-0x18f;let _0x43a4db=_0x38b542[_0x454b7f];return _0x43a4db;},a1_0x454b(_0x48ebd6,_0x1b51ca);}export default{'handleCosting':handleCosting};
1
+ const a1_0x2bdf66=a1_0x2435;function a1_0x48a0(){const _0x4d6351=['coupon','childnum','減免費用','5MZYESz','671thVQOP','push','4250vcqQZd','baseadultprice','base','757463rAWbBN','機場稅','insure','people','保險費用','adult','floor','adultprice','split','promotion','includes','trip','money','tipuser','childprice','tipday','length','other','reduction','unit','viprecharge','3fRZRsJ','fJcbzlsjUnit','人員費用','num','821040OkDwyK','19752lTDbmA','child','elder','list','unitprice','8829ltDIEA','name','totaltax','nRs','872796wyrogi','rylx','service','8gyUWyo','優惠券','遊客優惠','vipdiscounted','兒童[占床]','users','unitpricewb','931082DsIfLJ','89995lUIcyT','max','filter','vip','totalprice','strLx','map','tip','附加服務','itemname','adultnum','fLsjUnit','其他費用'];a1_0x48a0=function(){return _0x4d6351;};return a1_0x48a0();}(function(_0x59f8fb,_0xae407){const _0x31b1b8=a1_0x2435,_0x31a643=_0x59f8fb();while(!![]){try{const _0x4e1b50=parseInt(_0x31b1b8(0x106))/0x1+-parseInt(_0x31b1b8(0x105))/0x2*(parseInt(_0x31b1b8(0x131))/0x3)+parseInt(_0x31b1b8(0xfb))/0x4*(parseInt(_0x31b1b8(0x116))/0x5)+-parseInt(_0x31b1b8(0x135))/0x6+parseInt(_0x31b1b8(0x11c))/0x7*(parseInt(_0x31b1b8(0xfe))/0x8)+-parseInt(_0x31b1b8(0x13b))/0x9*(-parseInt(_0x31b1b8(0x119))/0xa)+parseInt(_0x31b1b8(0x117))/0xb*(parseInt(_0x31b1b8(0x136))/0xc);if(_0x4e1b50===_0xae407)break;else _0x31a643['push'](_0x31a643['shift']());}catch(_0x118d59){_0x31a643['push'](_0x31a643['shift']());}}}(a1_0x48a0,0x50e59));function handleCosting(_0x591dac,_0x10c7d3='',_0x1d2f0a='-',_0x46eeb2=0x2,_0xddfd98={'people':a1_0x2bdf66(0x133),'service':a1_0x2bdf66(0x10e),'trip':'附加行程','other':a1_0x2bdf66(0x112),'reduction':a1_0x2bdf66(0x115),'totalprice':'總計','airtax':a1_0x2bdf66(0x11d)},_0x2f1286={'adult':'成人','child':'兒童','childusebed':a1_0x2bdf66(0x102),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a1_0x2bdf66(0x100),'vip':'會員減免','promotion':'促銷','insure':a1_0x2bdf66(0x120),'coupon':a1_0x2bdf66(0xff),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'}){const _0x3778f8=a1_0x2bdf66;let _0x411eb0=[];const _0x1aa351='\x20*\x20',_0x6b2a6a=(_0x4c6cc8,_0x21cba1=_0x46eeb2)=>{const _0xef00f6=a1_0x2435;if(isNaN(_0x21cba1)||_0x21cba1<0x0)return _0x4c6cc8;let _0x411657=Number(_0x4c6cc8);if(!isFinite(_0x411657))return _0x4c6cc8;return _0x21cba1=Math[_0xef00f6(0x107)](0x0,Math[_0xef00f6(0x122)](_0x21cba1)),_0x411657['toFixed'](_0x21cba1);},_0x5c9d58=_0x591dac[_0x3778f8(0x108)](_0x41e4fb=>_0x41e4fb[_0x3778f8(0x10b)]=='base');if(_0x5c9d58[_0x3778f8(0x12c)]){let _0x3291c7={'title':_0xddfd98[_0x3778f8(0x11f)],'type':'base','list':[]};_0x5c9d58[_0x3778f8(0x10c)](_0x361aa0=>{const _0x49e53e=_0x3778f8;_0x3291c7['list'][_0x49e53e(0x118)]({'title':_0x2f1286[_0x361aa0['strJgbm']],'info':_0x10c7d3+_0x6b2a6a(_0x361aa0[_0x49e53e(0x111)])+_0x1aa351+_0x361aa0[_0x49e53e(0xfa)],'nRs':_0x361aa0['nRs'],'unit':_0x361aa0[_0x49e53e(0x111)],'cb':_0x361aa0[_0x49e53e(0x132)],'type':_0x49e53e(0x11b)});}),_0x411eb0[_0x3778f8(0x118)](_0x3291c7);}const _0x3bb1cf=_0x591dac['filter'](_0x33a245=>_0x33a245[_0x3778f8(0x10b)]=='service');if(_0x3bb1cf[_0x3778f8(0x12c)]){let _0x594d9c={'title':_0xddfd98[_0x3778f8(0xfd)],'type':_0x3778f8(0xfd),'list':[]};_0x3bb1cf[_0x3778f8(0x10c)](_0x462061=>{const _0x405715=_0x3778f8;_0x594d9c[_0x405715(0x139)][_0x405715(0x118)]({'title':_0x462061[_0x405715(0x13c)]+('['+_0x462061[_0x405715(0x10f)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x462061[_0x405715(0x13a)])+_0x1aa351+_0x462061[_0x405715(0x134)],'nRs':_0x462061[_0x405715(0x134)],'unit':_0x462061[_0x405715(0x13a)],'cb':_0x462061['baseprice'],'type':_0x405715(0xfd)});}),_0x411eb0[_0x3778f8(0x118)](_0x594d9c);}const _0x4df8f0=_0x591dac['filter'](_0x1106c2=>_0x1106c2['strLx']==_0x3778f8(0x127));if(_0x4df8f0[_0x3778f8(0x12c)]){let _0x305434={'title':_0xddfd98[_0x3778f8(0x127)],'type':_0x3778f8(0x127),'list':[]};_0x4df8f0['map'](_0x513706=>{const _0x438f74=_0x3778f8;_0x513706[_0x438f74(0x110)]!='0'&&_0x305434[_0x438f74(0x139)][_0x438f74(0x118)]({'title':_0x513706[_0x438f74(0x13c)]+('['+_0x2f1286[_0x438f74(0x121)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x513706[_0x438f74(0x123)])+_0x1aa351+_0x513706['adultnum'],'nRs':_0x513706[_0x438f74(0x110)],'unit':_0x513706['adultprice'],'cb':_0x513706[_0x438f74(0x11a)],'type':_0x438f74(0x127)}),_0x513706[_0x438f74(0x114)]!='0'&&_0x305434[_0x438f74(0x139)][_0x438f74(0x118)]({'title':_0x513706['name']+('['+_0x2f1286[_0x438f74(0x137)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x513706[_0x438f74(0x12a)])+_0x1aa351+_0x513706[_0x438f74(0x114)],'nRs':_0x513706['childnum'],'unit':_0x513706[_0x438f74(0x12a)],'cb':_0x513706['basechildprice'],'type':_0x438f74(0x127)});}),_0x411eb0['push'](_0x305434);}let _0x3560fc=[];const _0x38f97d=_0x591dac[_0x3778f8(0x108)](_0x46efc1=>_0x46efc1['strLx']==_0x3778f8(0x138));_0x38f97d['length']&&_0x38f97d[_0x3778f8(0x10c)](_0x13eefa=>{const _0x459d6e=_0x3778f8,_0x403d3f=_0x13eefa[_0x459d6e(0x13c)][_0x459d6e(0x124)]('|')||[''];_0x3560fc[_0x459d6e(0x118)]({'title':_0x2f1286[_0x459d6e(0x138)]+('['+_0x403d3f[0x0]+']'),'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x13eefa[_0x459d6e(0x128)]),'unit':_0x13eefa['money'],'cb':_0x13eefa[_0x459d6e(0x128)],'type':_0x459d6e(0x138)});});const _0x58bf1d=_0x591dac['filter'](_0x35ad3b=>_0x35ad3b[_0x3778f8(0x10b)]=='vipdiscounted');_0x58bf1d[_0x3778f8(0x12c)]&&_0x58bf1d[_0x3778f8(0x10c)](_0x269e6e=>{const _0x3446cf=_0x3778f8;_0x3560fc['push']({'title':_0x2f1286[_0x3446cf(0x109)]+('['+_0x269e6e[_0x3446cf(0x13c)]+']'),'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x269e6e[_0x3446cf(0x128)]),'unit':_0x269e6e['money'],'cb':_0x269e6e[_0x3446cf(0x128)],'type':_0x3446cf(0x109)});});const _0x33fa7a=_0x591dac[_0x3778f8(0x108)](_0x4f6d02=>_0x4f6d02[_0x3778f8(0x10b)]==_0x3778f8(0x125));_0x33fa7a[_0x3778f8(0x12c)]&&_0x33fa7a[_0x3778f8(0x10c)](_0x3f55f6=>{const _0x4d8165=_0x3778f8;_0x3560fc['push']({'title':_0x2f1286[_0x4d8165(0x125)],'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x3f55f6['money']),'unit':_0x3f55f6[_0x4d8165(0x128)],'cb':_0x3f55f6[_0x4d8165(0x128)],'type':_0x4d8165(0x125)});});_0x3560fc['length']&&_0x411eb0[_0x3778f8(0x118)]({'title':_0xddfd98[_0x3778f8(0x12e)],'type':'reduction','list':_0x3560fc});const _0x306fd7=_0x591dac[_0x3778f8(0x108)](_0x4d868a=>_0x4d868a['strLx']=='airtax');if(_0x306fd7['length']){let _0x5d2c84={'title':_0xddfd98['airtax'],'type':'airtax','list':[]};_0x306fd7[_0x3778f8(0x10c)](_0x1c8378=>{const _0x4e2baa=_0x3778f8;_0x5d2c84[_0x4e2baa(0x139)][_0x4e2baa(0x118)]({'title':_0x2f1286[_0x1c8378[_0x4e2baa(0xfc)]],'info':_0x10c7d3+_0x6b2a6a(_0x1c8378[_0x4e2baa(0x13a)])+_0x1aa351+_0x1c8378['sl'],'nRs':_0x1c8378['sl'],'unit':_0x1c8378['unitprice'],'cb':_0x1c8378[_0x4e2baa(0x104)],'type':_0x1c8378[_0x4e2baa(0xfc)]});}),_0x411eb0[_0x3778f8(0x118)](_0x5d2c84);}const _0x15addb=[_0x3778f8(0x11b),_0x3778f8(0xfd),_0x3778f8(0x127),_0x3778f8(0x138),_0x3778f8(0x101),_0x3778f8(0x125),'airtax'],_0x1f9888=_0x591dac[_0x3778f8(0x108)](_0x47651d=>!_0x15addb[_0x3778f8(0x126)](_0x47651d[_0x3778f8(0x10b)]));let _0x3278cc={'title':_0xddfd98['other'],'type':_0x3778f8(0x12d),'list':[]};for(var _0x288e21=0x0;_0x288e21<_0x1f9888[_0x3778f8(0x12c)];_0x288e21++){const _0x45d1aa=_0x1f9888[_0x288e21];_0x45d1aa[_0x3778f8(0x10b)]=='viprecharge'&&_0x3278cc['list'][_0x3778f8(0x118)]({'title':_0x2f1286[_0x3778f8(0x130)]+('['+_0x45d1aa[_0x3778f8(0x13c)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x128)]),'unit':_0x45d1aa[_0x3778f8(0x128)],'type':_0x45d1aa[_0x3778f8(0x10b)]}),_0x45d1aa[_0x3778f8(0x10b)]==_0x3778f8(0x11e)&&_0x3278cc[_0x3778f8(0x139)][_0x3778f8(0x118)]({'title':_0x2f1286[_0x3778f8(0x11e)]+('['+_0x45d1aa[_0x3778f8(0x13c)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x12f)])+_0x1aa351+_0x45d1aa[_0x3778f8(0x103)]+_0x2f1286['r'],'nRs':_0x45d1aa['users'],'unit':_0x45d1aa['unit'],'cb':_0x45d1aa[_0x3778f8(0x12f)],'type':_0x3778f8(0x11e)}),(_0x45d1aa['strLx']==_0x3778f8(0x113)||_0x45d1aa['strLx']=='point')&&_0x3278cc['list']['push']({'title':_0x2f1286[_0x45d1aa[_0x3778f8(0x10b)]],'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x45d1aa['money']),'unit':_0x45d1aa['money'],'type':_0x45d1aa[_0x3778f8(0x10b)]}),_0x45d1aa[_0x3778f8(0x10b)]==_0x3778f8(0x10d)&&_0x3278cc[_0x3778f8(0x139)][_0x3778f8(0x118)]({'title':_0x2f1286[_0x45d1aa[_0x3778f8(0x10b)]],'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x10d)])+_0x1aa351+_0x45d1aa[_0x3778f8(0x129)]+_0x2f1286['r']+_0x1aa351+_0x45d1aa[_0x3778f8(0x12b)]+_0x2f1286['t'],'nRs':_0x45d1aa['tipuser'],'count':_0x45d1aa[_0x3778f8(0x12b)],'unit':_0x45d1aa['tip'],'type':_0x45d1aa[_0x3778f8(0x10b)]}),_0x45d1aa[_0x3778f8(0x10b)]=='tax'&&_0x3278cc['list']['push']({'title':_0x2f1286[_0x45d1aa[_0x3778f8(0x10b)]],'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x13d)]),'unit':_0x45d1aa[_0x3778f8(0x13d)],'type':_0x45d1aa[_0x3778f8(0x10b)]});}_0x3278cc[_0x3778f8(0x139)]['length']&&_0x411eb0['push'](_0x3278cc);const _0x3955d5=_0x591dac[_0x3778f8(0x108)](_0x1bc2c7=>_0x1bc2c7[_0x3778f8(0x10b)]==_0x3778f8(0x10a));return _0x3955d5[_0x3778f8(0x12c)]&&_0x411eb0[_0x3778f8(0x118)]({'title':_0xddfd98['totalprice'],'type':_0x3778f8(0x10a),'list':[{'title':_0xddfd98[_0x3778f8(0x10a)],'info':_0x10c7d3+_0x6b2a6a(_0x3955d5[0x0]['price'])}]}),_0x411eb0;}function a1_0x2435(_0xbc52cf,_0x367f4b){const _0x48a00d=a1_0x48a0();return a1_0x2435=function(_0x243522,_0x1325d){_0x243522=_0x243522-0xfa;let _0x2fb67d=_0x48a00d[_0x243522];return _0x2fb67d;},a1_0x2435(_0xbc52cf,_0x367f4b);}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- function a2_0x36f8(_0x5c6d98,_0x69aed2){const _0x1f2f5e=a2_0x1f2f();return a2_0x36f8=function(_0x36f8b5,_0x11b4a1){_0x36f8b5=_0x36f8b5-0x120;let _0x5b8c90=_0x1f2f5e[_0x36f8b5];return _0x5b8c90;},a2_0x36f8(_0x5c6d98,_0x69aed2);}(function(_0x3d3031,_0x33a2dc){const _0x1e13a1=a2_0x36f8,_0x553709=_0x3d3031();while(!![]){try{const _0x254a1f=parseInt(_0x1e13a1(0x135))/0x1*(-parseInt(_0x1e13a1(0x12d))/0x2)+parseInt(_0x1e13a1(0x12b))/0x3+-parseInt(_0x1e13a1(0x136))/0x4+-parseInt(_0x1e13a1(0x123))/0x5+parseInt(_0x1e13a1(0x122))/0x6*(-parseInt(_0x1e13a1(0x12c))/0x7)+-parseInt(_0x1e13a1(0x137))/0x8+parseInt(_0x1e13a1(0x127))/0x9;if(_0x254a1f===_0x33a2dc)break;else _0x553709['push'](_0x553709['shift']());}catch(_0xe15346){_0x553709['push'](_0x553709['shift']());}}}(a2_0x1f2f,0x9c08a));function getRoomCount(_0x2a338b,_0x1f6e7a){const _0xdf006e=a2_0x36f8,_0x40ca06=Array['isArray'](_0x2a338b);if(!_0x40ca06)_0x2a338b=[_0x2a338b];let _0x1f021c=[];return _0x2a338b[_0xdf006e(0x125)](_0x2e5f78=>{const _0x2f0c60=_0xdf006e;let _0x5ae864=![];if(!_0x2e5f78['isalotment']){let _0x5182a7=_0x2e5f78[_0x2f0c60(0x129)];if(_0x2e5f78[_0x2f0c60(0x133)]||!_0x1f6e7a[_0x2f0c60(0x12a)])_0x5182a7+=_0x2e5f78[_0x2f0c60(0x128)];const _0x541ad0=_0x1f6e7a['list'][_0x2f0c60(0x138)](_0x1d6b88=>Number(_0x1d6b88[_0x2f0c60(0x132)])===_0x5182a7);if(!_0x541ad0)_0x5ae864=!![];else{let _0x3faa87=_0x2e5f78[_0x2f0c60(0x129)]+_0x2e5f78['childrennum']+_0x2e5f78[_0x2f0c60(0x12f)];_0x3faa87>_0x541ad0[_0x2f0c60(0x134)]&&(_0x5ae864=!![]);}}_0x1f021c[_0x2f0c60(0x12e)](_0x5ae864);}),_0x40ca06?_0x1f021c:_0x1f021c[0x0];}function getRoomConfig(_0x1545b4){const _0x21752d=a2_0x36f8;let _0x50ed6c=_0x1545b4[_0x21752d(0x120)](_0x59b0c7=>_0x59b0c7[_0x21752d(0x132)]==='childusebed'),_0x533829=_0x1545b4['some'](_0xd232b3=>_0xd232b3[_0x21752d(0x132)]===_0x21752d(0x130));const _0x4f16b0=_0x1545b4[_0x21752d(0x120)](_0x59ff91=>_0x59ff91['strCode']===_0x21752d(0x139)),_0x59c3aa=_0x1545b4[_0x21752d(0x120)](_0x1a2e3a=>_0x1a2e3a[_0x21752d(0x132)]==='child'),_0x27bb5b=_0x1545b4[_0x21752d(0x124)](_0x15b5f5=>{const _0x265db6=_0x21752d;return{'strCode':_0x15b5f5[_0x265db6(0x132)],'nMaxIn':_0x15b5f5[_0x265db6(0x134)]};});if(_0x533829){const _0x3808b7=_0x1545b4[_0x21752d(0x120)](_0x44934c=>_0x44934c[_0x21752d(0x132)]=='2');_0x533829=_0x533829&&_0x3808b7;}if(_0x50ed6c)_0x50ed6c=_0x50ed6c&&_0x59c3aa;return{'childusebed':_0x50ed6c,'half':_0x533829,'infant':_0x4f16b0,'child':_0x59c3aa,'list':_0x27bb5b};}function a2_0x1f2f(){const _0x109ffc=['strCode','childusebed','nMaxIn','204235TviUEn','4767636nOgDot','9390304fuyDlW','find','infant','some','length','4900098zvDjvZ','755435XIaKld','map','forEach','filter','26748972INDcbF','childrennum','adultnum','child','3614124ZkZRmT','7YVwEfq','2aLnpGX','push','infantnum','half','max'];a2_0x1f2f=function(){return _0x109ffc;};return a2_0x1f2f();}function isRoomPiece(_0x49c906,_0x54d415){const _0x481178=a2_0x36f8;return _0x54d415&&_0x49c906[_0x481178(0x129)]===0x1&&_0x49c906[_0x481178(0x128)]===0x0&&_0x49c906['infantnum']===0x0;}function getRoomItemRange(_0x6c10b8,_0x57b3d4,_0x20685a={'child':'兒童','infant':'嬰兒'}){const _0x23f969=a2_0x36f8;if(!_0x57b3d4[_0x23f969(0x121)])return{'list':[],'yelist':[]};const _0x5c2458=Math[_0x23f969(0x131)](..._0x57b3d4[_0x23f969(0x124)](_0x24f39f=>Number(_0x24f39f['nMaxIn']))),_0x93a7e=_0x5c2458-_0x6c10b8[_0x23f969(0x129)]-_0x6c10b8[_0x23f969(0x12f)];let _0x3ddd9c=_0x5c2458-_0x6c10b8[_0x23f969(0x129)]-_0x6c10b8[_0x23f969(0x128)];if(_0x3ddd9c>0x2)_0x3ddd9c=0x2;const _0x1ce4d1=(_0x482d91,_0x5e3458)=>{const _0x5c534a=_0x23f969,_0x3b4bc1=[];_0x3b4bc1[_0x5c534a(0x12e)]({'value':0x0,'text':'0\x20'+_0x5e3458});for(let _0x5b53e1=0x0;_0x5b53e1<_0x482d91;_0x5b53e1++){_0x3b4bc1[_0x5c534a(0x12e)]({'value':_0x5b53e1+0x1,'text':_0x5b53e1+0x1+'\x20'+_0x5e3458});}return _0x3b4bc1;};return{'list':_0x1ce4d1(_0x93a7e,_0x20685a[_0x23f969(0x12a)]),'yelist':_0x1ce4d1(_0x3ddd9c,_0x20685a['infant'])};}function getAdultRange(_0x3255e3,_0x1bb623='成人'){const _0x26bab8=a2_0x36f8;let _0x4eaee5=Math['max'](..._0x3255e3[_0x26bab8(0x124)](_0x205b41=>Number(_0x205b41['strCode']))[_0x26bab8(0x126)](_0x287bed=>!isNaN(_0x287bed)));if(!_0x4eaee5)_0x4eaee5=0x4;let _0x42959a=[];for(var _0xc409e2=0x1;_0xc409e2<_0x4eaee5+0x1;_0xc409e2++){_0x42959a['push']({'value':_0xc409e2,'text':_0xc409e2+'\x20'+_0x1bb623});}return _0x42959a;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
1
+ (function(_0x5384f0,_0x5969a0){const _0x2b0a68=a2_0x59b1,_0x1d1c63=_0x5384f0();while(!![]){try{const _0x1e598c=-parseInt(_0x2b0a68(0x162))/0x1+-parseInt(_0x2b0a68(0x16e))/0x2*(-parseInt(_0x2b0a68(0x15f))/0x3)+parseInt(_0x2b0a68(0x15c))/0x4*(parseInt(_0x2b0a68(0x173))/0x5)+parseInt(_0x2b0a68(0x165))/0x6*(parseInt(_0x2b0a68(0x176))/0x7)+parseInt(_0x2b0a68(0x178))/0x8+parseInt(_0x2b0a68(0x163))/0x9+-parseInt(_0x2b0a68(0x15d))/0xa*(parseInt(_0x2b0a68(0x15e))/0xb);if(_0x1e598c===_0x5969a0)break;else _0x1d1c63['push'](_0x1d1c63['shift']());}catch(_0xa216b3){_0x1d1c63['push'](_0x1d1c63['shift']());}}}(a2_0x16d9,0xebc9e));function a2_0x16d9(){const _0x50c90c=['half','childusebed','2572295qxleIE','childrennum','isalotment','14fkHapM','nMaxIn','2565960gnySab','4hFtIvh','710SeGiNv','288893MSoSve','1325802lVHOJS','list','strCode','398393WsIAvD','5699196YHIYCv','forEach','3955422ifMJFV','max','adultnum','some','map','child','infant','push','filter','2TnWqML','infantnum','length'];a2_0x16d9=function(){return _0x50c90c;};return a2_0x16d9();}function getRoomCount(_0x2e8337,_0xcd3828){const _0x52d579=a2_0x59b1,_0x35d2a1=Array['isArray'](_0x2e8337);if(!_0x35d2a1)_0x2e8337=[_0x2e8337];let _0x2f41b2=[];return _0x2e8337[_0x52d579(0x164)](_0x1ffc97=>{const _0x17cf27=_0x52d579;let _0x35ddf6=![];if(!_0x1ffc97[_0x17cf27(0x175)]){let _0x30bb85=_0x1ffc97['adultnum'];if(_0x1ffc97[_0x17cf27(0x172)]||!_0xcd3828[_0x17cf27(0x16a)])_0x30bb85+=_0x1ffc97[_0x17cf27(0x174)];const _0x31dff3=_0xcd3828[_0x17cf27(0x160)]['find'](_0x3c4162=>Number(_0x3c4162[_0x17cf27(0x161)])===_0x30bb85);if(!_0x31dff3)_0x35ddf6=!![];else{let _0xd9dddd=_0x1ffc97[_0x17cf27(0x167)]+_0x1ffc97[_0x17cf27(0x174)]+_0x1ffc97[_0x17cf27(0x16f)];_0xd9dddd>_0x31dff3[_0x17cf27(0x177)]&&(_0x35ddf6=!![]);}}_0x2f41b2[_0x17cf27(0x16c)](_0x35ddf6);}),_0x35d2a1?_0x2f41b2:_0x2f41b2[0x0];}function getRoomConfig(_0x13849b){const _0x38f02e=a2_0x59b1;let _0x535d52=_0x13849b[_0x38f02e(0x168)](_0x576f25=>_0x576f25[_0x38f02e(0x161)]==='childusebed'),_0x148b99=_0x13849b[_0x38f02e(0x168)](_0x4a1cd8=>_0x4a1cd8[_0x38f02e(0x161)]===_0x38f02e(0x171));const _0x334eb8=_0x13849b['some'](_0x1482e3=>_0x1482e3[_0x38f02e(0x161)]===_0x38f02e(0x16b)),_0x20281a=_0x13849b[_0x38f02e(0x168)](_0xfe2872=>_0xfe2872[_0x38f02e(0x161)]===_0x38f02e(0x16a)),_0x376159=_0x13849b[_0x38f02e(0x169)](_0x412a8a=>{const _0x1c0e5d=_0x38f02e;return{'strCode':_0x412a8a[_0x1c0e5d(0x161)],'nMaxIn':_0x412a8a[_0x1c0e5d(0x177)]};});if(_0x148b99){const _0x52749d=_0x13849b[_0x38f02e(0x168)](_0x3ea624=>_0x3ea624[_0x38f02e(0x161)]=='2');_0x148b99=_0x148b99&&_0x52749d;}if(_0x535d52)_0x535d52=_0x535d52&&_0x20281a;return{'childusebed':_0x535d52,'half':_0x148b99,'infant':_0x334eb8,'child':_0x20281a,'list':_0x376159};}function a2_0x59b1(_0x56d317,_0x580d28){const _0x16d9bd=a2_0x16d9();return a2_0x59b1=function(_0x59b11b,_0x89d3d3){_0x59b11b=_0x59b11b-0x15c;let _0x5f25b1=_0x16d9bd[_0x59b11b];return _0x5f25b1;},a2_0x59b1(_0x56d317,_0x580d28);}function isRoomPiece(_0x283a4e,_0x27da3d){const _0x51fe44=a2_0x59b1;return _0x27da3d&&_0x283a4e['adultnum']===0x1&&_0x283a4e[_0x51fe44(0x174)]===0x0&&_0x283a4e[_0x51fe44(0x16f)]===0x0;}function getRoomItemRange(_0x2b2c03,_0x3be908,_0x340833={'child':'兒童','infant':'嬰兒'}){const _0x240675=a2_0x59b1;if(!_0x3be908[_0x240675(0x170)])return{'list':[],'yelist':[]};const _0x3af5d4=Math[_0x240675(0x166)](..._0x3be908[_0x240675(0x169)](_0x1963f6=>Number(_0x1963f6[_0x240675(0x177)]))),_0x1460c6=_0x3af5d4-_0x2b2c03[_0x240675(0x167)]-_0x2b2c03[_0x240675(0x16f)];let _0x2da528=_0x3af5d4-_0x2b2c03['adultnum']-_0x2b2c03[_0x240675(0x174)];if(_0x2da528>0x2)_0x2da528=0x2;const _0x2a46f6=(_0x450f49,_0x2f40af)=>{const _0x10836f=_0x240675,_0x5230df=[];_0x5230df[_0x10836f(0x16c)]({'value':0x0,'text':'0\x20'+_0x2f40af});for(let _0x1f14b8=0x0;_0x1f14b8<_0x450f49;_0x1f14b8++){_0x5230df['push']({'value':_0x1f14b8+0x1,'text':_0x1f14b8+0x1+'\x20'+_0x2f40af});}return _0x5230df;};return{'list':_0x2a46f6(_0x1460c6,_0x340833[_0x240675(0x16a)]),'yelist':_0x2a46f6(_0x2da528,_0x340833[_0x240675(0x16b)])};}function getAdultRange(_0x1b5471,_0x142d01='成人'){const _0x140920=a2_0x59b1;let _0x5d774c=Math[_0x140920(0x166)](..._0x1b5471[_0x140920(0x169)](_0x3a0d22=>Number(_0x3a0d22[_0x140920(0x161)]))[_0x140920(0x16d)](_0xf33463=>!isNaN(_0xf33463)));if(!_0x5d774c)_0x5d774c=0x4;let _0x321faa=[];for(var _0x1acbff=0x1;_0x1acbff<_0x5d774c+0x1;_0x1acbff++){_0x321faa[_0x140920(0x16c)]({'value':_0x1acbff,'text':_0x1acbff+'\x20'+_0x142d01});}return _0x321faa;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x851596,_0x2814fc){const _0x53423b=a3_0x2a6f,_0x3793d6=_0x851596();while(!![]){try{const _0x1eda10=-parseInt(_0x53423b(0x11f))/0x1*(parseInt(_0x53423b(0x121))/0x2)+parseInt(_0x53423b(0x11d))/0x3+parseInt(_0x53423b(0x11b))/0x4*(-parseInt(_0x53423b(0x117))/0x5)+-parseInt(_0x53423b(0x115))/0x6+-parseInt(_0x53423b(0x12b))/0x7*(parseInt(_0x53423b(0x12e))/0x8)+-parseInt(_0x53423b(0x123))/0x9*(parseInt(_0x53423b(0x130))/0xa)+parseInt(_0x53423b(0x127))/0xb*(parseInt(_0x53423b(0x11a))/0xc);if(_0x1eda10===_0x2814fc)break;else _0x3793d6['push'](_0x3793d6['shift']());}catch(_0x3948d0){_0x3793d6['push'](_0x3793d6['shift']());}}}(a3_0xd3e4,0x677d3));function email(_0x28e222){const _0x3b787d=a3_0x2a6f;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x3b787d(0x11c)](_0x28e222);}function mobile(_0x6e7141){const _0x485c87=a3_0x2a6f;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x485c87(0x11c)](_0x6e7141);}function isValidPhoneNumber(_0x1d25bd){const _0x49b994=a3_0x2a6f;if(_0x1d25bd[_0x49b994(0x114)]('-')){const [_0x15c583,_0x3aee61]=_0x1d25bd[_0x49b994(0x122)]('-');if(_0x15c583==='86')return/^\d{11}$/['test'](_0x3aee61)&&_0x3aee61[_0x49b994(0x113)]('1');else return _0x15c583===_0x49b994(0x118)?/^\d{8}$/[_0x49b994(0x11c)](_0x3aee61)&&['5','6','9','8'][_0x49b994(0x114)](_0x3aee61['charAt'](0x0)):/^\d+$/['test'](_0x3aee61);}else return/^\d+$/[_0x49b994(0x11c)](_0x1d25bd);}function url(_0x4e564f){const _0x3f4f70=a3_0x2a6f;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x3f4f70(0x11c)](_0x4e564f);}function date(_0x3a3712){const _0x55206f=a3_0x2a6f;if(!_0x3a3712)return![];if(number(_0x3a3712))_0x3a3712=+_0x3a3712;return!/Invalid|NaN/['test'](new Date(_0x3a3712)[_0x55206f(0x11e)]());}function dateISO(_0x4c98ca){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x4c98ca);}function isNumber(_0x30ef27){const _0x4559af=a3_0x2a6f;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x4559af(0x11c)](_0x30ef27);}function isString(_0x25dce9){const _0x53360f=a3_0x2a6f;return typeof _0x25dce9===_0x53360f(0x110);}function digits(_0x3b244f){return/^\d+$/['test'](_0x3b244f);}function idCard(_0x15b920){const _0x3b1d19=a3_0x2a6f;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)$/[_0x3b1d19(0x11c)](_0x15b920);}function carNo(_0x36bec2){const _0x55afeb=a3_0x2a6f,_0x35f39e=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x518b01=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x36bec2[_0x55afeb(0x12a)]===0x7)return _0x518b01[_0x55afeb(0x11c)](_0x36bec2);if(_0x36bec2[_0x55afeb(0x12a)]===0x8)return _0x35f39e[_0x55afeb(0x11c)](_0x36bec2);return![];}function amount(_0x38f685){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/['test'](_0x38f685);}function chinese(_0x334cbe){const _0x2e09df=a3_0x2a6f,_0xc46ea5=/^[\u4e00-\u9fa5]+$/gi;return _0xc46ea5[_0x2e09df(0x11c)](_0x334cbe);}function letter(_0x2729c9){const _0x488e8e=a3_0x2a6f;return/^[a-zA-Z]*$/[_0x488e8e(0x11c)](_0x2729c9);}function enOrNum(_0x4862d4){const _0x40b2cd=/^[0-9a-zA-Z]*$/g;return _0x40b2cd['test'](_0x4862d4);}function contains(_0x2e978a,_0x509a6e){const _0x2c2e68=a3_0x2a6f;return _0x2e978a[_0x2c2e68(0x116)](_0x509a6e)>=0x0;}function range(_0xf44076,_0x177960){return _0xf44076>=_0x177960[0x0]&&_0xf44076<=_0x177960[0x1];}function rangeLength(_0x48056c,_0x133f8b){const _0x47272e=a3_0x2a6f;return _0x48056c[_0x47272e(0x12a)]>=_0x133f8b[0x0]&&_0x48056c[_0x47272e(0x12a)]<=_0x133f8b[0x1];}function landline(_0x39b4cc){const _0x12653c=a3_0x2a6f,_0x4953dd=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4953dd[_0x12653c(0x11c)](_0x39b4cc);}function a3_0xd3e4(){const _0x46acb2=['162PAcXsc','call','object','undefined','27214XtDNOf','prototype','[object\x20Object]','length','5754707IZjNAh','parse','[object\x20Array]','8faMdsF','replace','230280eFyTIF','string','number','isArray','startsWith','includes','3040506KixjtG','indexOf','1195450YofIxq','852','catch','14916zggDlV','12djSmCl','test','1630068jEpHEj','toString','1IjXVxL','[object\x20RegExp]','1468042tuLKZt','split'];a3_0xd3e4=function(){return _0x46acb2;};return a3_0xd3e4();}function a3_0x2a6f(_0x83f201,_0x12e8b5){const _0xd3e497=a3_0xd3e4();return a3_0x2a6f=function(_0x2a6f7e,_0x2e85d4){_0x2a6f7e=_0x2a6f7e-0x110;let _0x25ac89=_0xd3e497[_0x2a6f7e];return _0x25ac89;},a3_0x2a6f(_0x83f201,_0x12e8b5);}function empty(_0x32ac64){const _0x393526=a3_0x2a6f;switch(typeof _0x32ac64){case _0x393526(0x126):return!![];case _0x393526(0x110):if(_0x32ac64[_0x393526(0x12f)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x393526(0x12a)]==0x0)return!![];break;case'boolean':if(!_0x32ac64)return!![];break;case _0x393526(0x111):if(_0x32ac64===0x0||isNaN(_0x32ac64))return!![];break;case _0x393526(0x125):if(_0x32ac64===null||_0x32ac64['length']===0x0)return!![];for(const _0x28e2b9 in _0x32ac64){return![];}return!![];}return![];}function jsonString(_0x498c1e){const _0x33c24f=a3_0x2a6f;if(typeof _0x498c1e==='string')try{const _0x40b5b2=JSON[_0x33c24f(0x12c)](_0x498c1e);if(typeof _0x40b5b2==='object'&&_0x40b5b2)return!![];return![];}catch(_0x4998fe){return![];}return![];}function array(_0x3eb019){const _0x5c2ce0=a3_0x2a6f;if(typeof Array[_0x5c2ce0(0x112)]==='function')return Array[_0x5c2ce0(0x112)](_0x3eb019);return Object['prototype'][_0x5c2ce0(0x11e)][_0x5c2ce0(0x124)](_0x3eb019)===_0x5c2ce0(0x12d);}function object(_0x517a11){const _0x186cbe=a3_0x2a6f;return Object[_0x186cbe(0x128)][_0x186cbe(0x11e)][_0x186cbe(0x124)](_0x517a11)===_0x186cbe(0x129);}function code(_0x46d7da,_0x3c815c=0x6){const _0xc3da7c=a3_0x2a6f;return new RegExp('^\x5cd{'+_0x3c815c+'}$')[_0xc3da7c(0x11c)](_0x46d7da);}function func(_0x3f1e55){return typeof _0x3f1e55==='function';}function promise(_0x83c1ab){const _0x24a4fa=a3_0x2a6f;return object(_0x83c1ab)&&func(_0x83c1ab['then'])&&func(_0x83c1ab[_0x24a4fa(0x119)]);}function image(_0x4d48ac){const _0x3a67a7=a3_0x2a6f,_0x31a68d=_0x4d48ac['split']('?')[0x0],_0x20737b=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x20737b[_0x3a67a7(0x11c)](_0x31a68d);}function video(_0x5cdb86){const _0x3ef2bc=a3_0x2a6f,_0x3f092a=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x3f092a[_0x3ef2bc(0x11c)](_0x5cdb86);}function regExp(_0x1a1d96){const _0x524bb=a3_0x2a6f;return _0x1a1d96&&Object[_0x524bb(0x128)][_0x524bb(0x11e)][_0x524bb(0x124)](_0x1a1d96)===_0x524bb(0x120);}function isNumeric(_0x3263e1,_0x458822=0x0){const _0x5c556a=a3_0x2a6f;if(typeof _0x3263e1===_0x5c556a(0x111))_0x3263e1=_0x3263e1['toString']();if(typeof _0x3263e1!==_0x5c556a(0x110))return![];switch(_0x458822){case 0x1:return/^\d+(\.\d+)?$/[_0x5c556a(0x11c)](_0x3263e1);case 0x2:return/^-\d+(\.\d+)?$/[_0x5c556a(0x11c)](_0x3263e1);case 0x3:return/^-?\d+$/[_0x5c556a(0x11c)](_0x3263e1);case 0x4:return/^\d+$/['test'](_0x3263e1);case 0x5:return/^-\d+$/[_0x5c556a(0x11c)](_0x3263e1);default:return/^-?\d*\.?\d*$/['test'](_0x3263e1)&&!_0x3263e1[_0x5c556a(0x113)]('.')&&!_0x3263e1[_0x5c556a(0x114)]('--');}}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(_0x338a86,_0x34175f){const _0x114644=a3_0x4c8c,_0x50a0c7=_0x338a86();while(!![]){try{const _0xfaa5d3=parseInt(_0x114644(0x11a))/0x1*(parseInt(_0x114644(0x106))/0x2)+parseInt(_0x114644(0x103))/0x3*(-parseInt(_0x114644(0xfe))/0x4)+-parseInt(_0x114644(0x11b))/0x5+parseInt(_0x114644(0x111))/0x6*(parseInt(_0x114644(0x10a))/0x7)+parseInt(_0x114644(0x104))/0x8*(parseInt(_0x114644(0x115))/0x9)+parseInt(_0x114644(0x10f))/0xa+-parseInt(_0x114644(0x107))/0xb;if(_0xfaa5d3===_0x34175f)break;else _0x50a0c7['push'](_0x50a0c7['shift']());}catch(_0x5a08db){_0x50a0c7['push'](_0x50a0c7['shift']());}}}(a3_0x3c28,0xc5ad4));function email(_0x5f54f6){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/['test'](_0x5f54f6);}function a3_0x3c28(){const _0x2bd0a8=['7915000eEyLQZ','[object\x20RegExp]','12VOZjzn','split','prototype','number','1269126ptSXoB','catch','indexOf','isArray','[object\x20Array]','930604OYIVLL','4017355WaoCzR','charAt','startsWith','1164652tNtGRU','object','string','test','function','15JUpQFv','64oiivsA','then','2FFJOFh','4114550dIboOH','includes','undefined','2074814AfBKac','call','[object\x20Object]','toString','length'];a3_0x3c28=function(){return _0x2bd0a8;};return a3_0x3c28();}function mobile(_0x13fb81){const _0x4e12d8=a3_0x4c8c;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x4e12d8(0x101)](_0x13fb81);}function isValidPhoneNumber(_0x5b7c77){const _0x2c37e1=a3_0x4c8c;if(_0x5b7c77['includes']('-')){const [_0x2c91ab,_0x333895]=_0x5b7c77[_0x2c37e1(0x112)]('-');if(_0x2c91ab==='86')return/^\d{11}$/[_0x2c37e1(0x101)](_0x333895)&&_0x333895[_0x2c37e1(0xfd)]('1');else return _0x2c91ab==='852'?/^\d{8}$/[_0x2c37e1(0x101)](_0x333895)&&['5','6','9','8'][_0x2c37e1(0x108)](_0x333895[_0x2c37e1(0x11c)](0x0)):/^\d+$/[_0x2c37e1(0x101)](_0x333895);}else return/^\d+$/[_0x2c37e1(0x101)](_0x5b7c77);}function url(_0x599e38){const _0x1ebabe=a3_0x4c8c;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x1ebabe(0x101)](_0x599e38);}function date(_0x70aa7c){if(!_0x70aa7c)return![];if(number(_0x70aa7c))_0x70aa7c=+_0x70aa7c;return!/Invalid|NaN/['test'](new Date(_0x70aa7c)['toString']());}function dateISO(_0x36c427){const _0x347e3e=a3_0x4c8c;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x347e3e(0x101)](_0x36c427);}function isNumber(_0x263bb7){const _0x3123ce=a3_0x4c8c;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x3123ce(0x101)](_0x263bb7);}function isString(_0x207d27){const _0x3ea7ee=a3_0x4c8c;return typeof _0x207d27===_0x3ea7ee(0x100);}function digits(_0x26b7ca){return/^\d+$/['test'](_0x26b7ca);}function idCard(_0x101593){const _0x597196=a3_0x4c8c;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)$/[_0x597196(0x101)](_0x101593);}function carNo(_0x321092){const _0x306371=a3_0x4c8c,_0x5d24c2=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4de0bc=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x321092[_0x306371(0x10e)]===0x7)return _0x4de0bc[_0x306371(0x101)](_0x321092);if(_0x321092[_0x306371(0x10e)]===0x8)return _0x5d24c2[_0x306371(0x101)](_0x321092);return![];}function amount(_0x4d0174){const _0x197f25=a3_0x4c8c;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x197f25(0x101)](_0x4d0174);}function chinese(_0x4ca1dd){const _0x4c6d35=/^[\u4e00-\u9fa5]+$/gi;return _0x4c6d35['test'](_0x4ca1dd);}function letter(_0xb9efe8){const _0x558e0f=a3_0x4c8c;return/^[a-zA-Z]*$/[_0x558e0f(0x101)](_0xb9efe8);}function enOrNum(_0x25dda2){const _0xbc5a45=/^[0-9a-zA-Z]*$/g;return _0xbc5a45['test'](_0x25dda2);}function contains(_0x27f649,_0x4be9a2){const _0x23c78d=a3_0x4c8c;return _0x27f649[_0x23c78d(0x117)](_0x4be9a2)>=0x0;}function range(_0x214952,_0x3c25ec){return _0x214952>=_0x3c25ec[0x0]&&_0x214952<=_0x3c25ec[0x1];}function rangeLength(_0x37d8c1,_0x1fdd7f){const _0x2138f2=a3_0x4c8c;return _0x37d8c1[_0x2138f2(0x10e)]>=_0x1fdd7f[0x0]&&_0x37d8c1[_0x2138f2(0x10e)]<=_0x1fdd7f[0x1];}function landline(_0x34b2e9){const _0x1defd9=a3_0x4c8c,_0x1a9135=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x1a9135[_0x1defd9(0x101)](_0x34b2e9);}function empty(_0x296d8b){const _0x3be47c=a3_0x4c8c;switch(typeof _0x296d8b){case _0x3be47c(0x109):return!![];case _0x3be47c(0x100):if(_0x296d8b['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case'boolean':if(!_0x296d8b)return!![];break;case _0x3be47c(0x114):if(_0x296d8b===0x0||isNaN(_0x296d8b))return!![];break;case _0x3be47c(0xff):if(_0x296d8b===null||_0x296d8b['length']===0x0)return!![];for(const _0x115745 in _0x296d8b){return![];}return!![];}return![];}function jsonString(_0x496ab9){const _0x20f868=a3_0x4c8c;if(typeof _0x496ab9===_0x20f868(0x100))try{const _0x214943=JSON['parse'](_0x496ab9);if(typeof _0x214943===_0x20f868(0xff)&&_0x214943)return!![];return![];}catch(_0x1afa63){return![];}return![];}function array(_0x4c2abb){const _0x22229e=a3_0x4c8c;if(typeof Array[_0x22229e(0x118)]===_0x22229e(0x102))return Array['isArray'](_0x4c2abb);return Object[_0x22229e(0x113)][_0x22229e(0x10d)][_0x22229e(0x10b)](_0x4c2abb)===_0x22229e(0x119);}function object(_0x3c825d){const _0x257838=a3_0x4c8c;return Object[_0x257838(0x113)]['toString'][_0x257838(0x10b)](_0x3c825d)===_0x257838(0x10c);}function code(_0xa0b730,_0x4b9ece=0x6){const _0x4fb0ce=a3_0x4c8c;return new RegExp('^\x5cd{'+_0x4b9ece+'}$')[_0x4fb0ce(0x101)](_0xa0b730);}function func(_0x8895b){const _0x146151=a3_0x4c8c;return typeof _0x8895b===_0x146151(0x102);}function promise(_0x1a6d11){const _0x250203=a3_0x4c8c;return object(_0x1a6d11)&&func(_0x1a6d11[_0x250203(0x105)])&&func(_0x1a6d11[_0x250203(0x116)]);}function image(_0x4e5cb7){const _0x4d580f=a3_0x4c8c,_0x55e1a2=_0x4e5cb7[_0x4d580f(0x112)]('?')[0x0],_0x389033=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x389033['test'](_0x55e1a2);}function video(_0x5103c1){const _0x50a605=a3_0x4c8c,_0x62d631=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x62d631[_0x50a605(0x101)](_0x5103c1);}function regExp(_0x396290){const _0x241cf7=a3_0x4c8c;return _0x396290&&Object[_0x241cf7(0x113)][_0x241cf7(0x10d)][_0x241cf7(0x10b)](_0x396290)===_0x241cf7(0x110);}function isNumeric(_0x2cc373,_0x3e3d67=0x0){const _0x46472b=a3_0x4c8c;if(typeof _0x2cc373===_0x46472b(0x114))_0x2cc373=_0x2cc373[_0x46472b(0x10d)]();if(typeof _0x2cc373!==_0x46472b(0x100))return![];switch(_0x3e3d67){case 0x1:return/^\d+(\.\d+)?$/[_0x46472b(0x101)](_0x2cc373);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x2cc373);case 0x3:return/^-?\d+$/[_0x46472b(0x101)](_0x2cc373);case 0x4:return/^\d+$/[_0x46472b(0x101)](_0x2cc373);case 0x5:return/^-\d+$/[_0x46472b(0x101)](_0x2cc373);default:return/^-?\d*\.?\d*$/[_0x46472b(0x101)](_0x2cc373)&&!_0x2cc373['startsWith']('.')&&!_0x2cc373[_0x46472b(0x108)]('--');}}function a3_0x4c8c(_0x2d609b,_0x30b3dc){const _0x3c2848=a3_0x3c28();return a3_0x4c8c=function(_0x4c8cc7,_0x3f142d){_0x4c8cc7=_0x4c8cc7-0xfd;let _0x48190b=_0x3c2848[_0x4c8cc7];return _0x48190b;},a3_0x4c8c(_0x2d609b,_0x30b3dc);}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_0x541ce4=a4_0x2541;(function(_0x30acc1,_0x2a0bbd){const _0x413916=a4_0x2541,_0x219c39=_0x30acc1();while(!![]){try{const _0x1efe68=-parseInt(_0x413916(0x113))/0x1*(-parseInt(_0x413916(0xfb))/0x2)+-parseInt(_0x413916(0x10b))/0x3+parseInt(_0x413916(0x119))/0x4+-parseInt(_0x413916(0xef))/0x5+parseInt(_0x413916(0xeb))/0x6*(-parseInt(_0x413916(0x11c))/0x7)+-parseInt(_0x413916(0x10f))/0x8+-parseInt(_0x413916(0xff))/0x9*(-parseInt(_0x413916(0xf2))/0xa);if(_0x1efe68===_0x2a0bbd)break;else _0x219c39['push'](_0x219c39['shift']());}catch(_0x4b4976){_0x219c39['push'](_0x219c39['shift']());}}}(a4_0x234b,0x6eb5e));function fmtNum(_0x560aaf){const _0x474869=a4_0x2541;if(_0x560aaf==0x0)return'0';if(!_0x560aaf)return'';let _0x222682=typeof _0x560aaf===_0x474869(0xf4)?parseFloat(_0x560aaf):_0x560aaf;if(isNaN(_0x222682))return'';return _0x222682['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x8f8939,_0x4186be=![]){const _0x34358e=a4_0x2541;let _0x37aad6={'surname':'','givenName':''};if(_0x4186be){const _0x38f1dc=_0x8f8939[_0x34358e(0xe7)](',')?_0x8f8939[_0x34358e(0x117)](','):_0x8f8939[_0x34358e(0x117)](/\s+/);_0x38f1dc[_0x34358e(0x100)]>=0x2&&(_0x37aad6[_0x34358e(0xe9)]=_0x38f1dc[0x0][_0x34358e(0x10c)](),_0x37aad6[_0x34358e(0xec)]=_0x38f1dc[0x1][_0x34358e(0x10c)]());}else{const _0x206ba5=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x3f236c=0x0;_0x3f236c<_0x206ba5[_0x34358e(0x100)];_0x3f236c++){const _0x135aac=_0x206ba5[_0x3f236c];if(_0x8f8939[_0x34358e(0xee)](_0x135aac))return _0x37aad6[_0x34358e(0xe9)]=_0x135aac,_0x37aad6[_0x34358e(0xec)]=_0x8f8939[_0x34358e(0x109)](_0x135aac[_0x34358e(0x100)])['trim'](),_0x37aad6;}const _0xfbfafb=_0x8f8939[_0x34358e(0x117)]('\x20');if(_0xfbfafb[_0x34358e(0x100)]===0x1){const _0x276918=_0x8f8939[_0x34358e(0x108)](/[\u4e00-\u9fa5]/);_0x37aad6[_0x34358e(0xe9)]=_0x276918?_0x276918[0x0]:'',_0x37aad6['givenName']=_0x8f8939[_0x34358e(0x105)](_0x37aad6[_0x34358e(0xe9)],'')[_0x34358e(0x10c)]();}else _0x37aad6[_0x34358e(0xe9)]=_0xfbfafb[0x0],_0x37aad6[_0x34358e(0xec)]=_0xfbfafb[_0x34358e(0x115)](0x1)[_0x34358e(0x114)]('\x20');}return _0x37aad6;}function modifyKeys(_0x28ad94,_0x56a65f={'strCode':a4_0x541ce4(0xf9),'strFjbh':a4_0x541ce4(0x102),'strGuid':a4_0x541ce4(0x10a),'strValue':a4_0x541ce4(0x11b)}){const _0x200c7b=a4_0x541ce4;if(!_0x28ad94[_0x200c7b(0x100)]||_0x28ad94===null)return[];const _0x429586=_0x28ad94['map'](_0x1ebf31=>{const _0x33347e={};for(const _0x36ba8e in _0x1ebf31){_0x56a65f['hasOwnProperty'](_0x36ba8e)?_0x33347e[_0x56a65f[_0x36ba8e]]=_0x1ebf31[_0x36ba8e]:_0x33347e[_0x36ba8e]=_0x1ebf31[_0x36ba8e];}return _0x33347e;});return _0x429586;}function sliceArray(_0x373821,_0x4e3a30,_0x283ae4){const _0x372501=a4_0x541ce4;if(_0x4e3a30<=0x0)return console[_0x372501(0xf3)](_0x372501(0x10d)),[];return _0x283ae4?_0x373821[_0x372501(0x115)](0x0,_0x4e3a30):_0x373821[_0x372501(0x115)](-_0x4e3a30);}function findDataByData(_0x116917,_0x243dc7,_0x3a1a63){const _0x2e9e6a=a4_0x541ce4,_0x1f0664=_0x116917[_0x2e9e6a(0xf5)](_0x1c6378=>_0x1c6378[_0x3a1a63]===_0x243dc7);return _0x1f0664||null;}function splitArray(_0x4346e0,_0x56ff93){const _0xbcecfb=a4_0x541ce4,_0x3816c6=[];for(let _0x1905af=0x0;_0x1905af<_0x4346e0['length'];_0x1905af+=_0x56ff93){_0x3816c6['push'](_0x4346e0[_0xbcecfb(0x115)](_0x1905af,_0x1905af+_0x56ff93));}return _0x3816c6;}function getProxyType(_0x23fee3){const _0x177a0a=a4_0x541ce4;return Object[_0x177a0a(0xfe)][_0x177a0a(0xf7)][_0x177a0a(0xfa)](_0x23fee3)[_0x177a0a(0x115)](0x8,-0x1);}let timeout=null;function debounce(_0x9e96be,_0x1c568f=0x1f4,_0x11a776=![]){const _0x10b033=a4_0x541ce4;if(timeout!==null)clearTimeout(timeout);if(_0x11a776){const _0x130df2=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x1c568f);if(_0x130df2)typeof _0x9e96be===_0x10b033(0xed)&&_0x9e96be();}else timeout=setTimeout(()=>{const _0x198a4d=_0x10b033;typeof _0x9e96be===_0x198a4d(0xed)&&_0x9e96be();},_0x1c568f);}function urlEncode(_0x4236a2={}){const _0x10793a=a4_0x541ce4,_0x9c0b7b=[];for(const _0x3df7d3 in _0x4236a2){const _0xf7542d=_0x4236a2[_0x3df7d3];if(!_0xf7542d)continue;isArray(_0xf7542d)?_0xf7542d[_0x10793a(0xf6)](_0x365152=>{const _0x1ff20c=_0x10793a;_0x9c0b7b[_0x1ff20c(0x101)](_0x3df7d3+'='+_0x365152);}):_0x9c0b7b[_0x10793a(0x101)](_0x3df7d3+'='+_0xf7542d);}return _0x9c0b7b[_0x10793a(0x114)]('&');}function compareDates(_0x280615,_0x34dd2d){const _0x5cd74f=a4_0x541ce4;_0x280615=new Date(_0x280615);!_0x34dd2d?_0x34dd2d=new Date():_0x34dd2d=new Date(_0x34dd2d);_0x280615['setHours'](0x0,0x0,0x0,0x0),_0x34dd2d[_0x5cd74f(0xea)](0x0,0x0,0x0,0x0);var _0x4bab93=_0x280615[_0x5cd74f(0xf8)](),_0xdfc700=_0x34dd2d[_0x5cd74f(0xf8)]();if(_0x4bab93<_0xdfc700)return-0x1;else return _0x4bab93>_0xdfc700?0x1:0x0;}function getDaysBetween(_0x370d35,_0x25a020){const _0x205365=a4_0x541ce4,_0x5f32a2=new Date(_0x370d35),_0x141d09=new Date(_0x25a020),_0xae920e=Math['abs'](_0x5f32a2[_0x205365(0xf8)]()-_0x141d09['getTime']()),_0x38e16a=Math[_0x205365(0xf0)](_0xae920e/(0x3e8*0x3c*0x3c*0x18));return _0x38e16a+0x1;}function chineseNumeral(_0x108063){const _0x4d2ff2=a4_0x541ce4,_0xf40537=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x548008=['','拾','佰','仟'],_0xe02b74=['','万','亿','兆'];let _0xcc8080=Math[_0x4d2ff2(0xf0)](_0x108063),_0x136143=Math[_0x4d2ff2(0x11d)]((_0x108063-_0xcc8080)*0x64),_0x4feecf='';for(let _0x3e0839=0x0;_0xcc8080>0x0;_0x3e0839++){let _0x3d66fa='',_0x1e26ed=_0xcc8080%0x2710;_0xcc8080=Math['floor'](_0xcc8080/0x2710);for(let _0x2383f0=0x0;_0x1e26ed>0x0;_0x2383f0++){let _0x12d59a=_0x1e26ed%0xa;_0x3d66fa=(_0x12d59a?_0xf40537[_0x12d59a]+_0x548008[_0x2383f0]:'')+_0x3d66fa,_0x1e26ed=Math[_0x4d2ff2(0xf0)](_0x1e26ed/0xa);}_0x4feecf=_0x3d66fa+(_0x3d66fa?_0xe02b74[_0x3e0839]:_0xe02b74[_0x3e0839]&&!_0x4feecf['includes']('零')?'零':'')+_0x4feecf;}_0x4feecf+=_0x4feecf?'元':'零元';if(_0x136143>0x0){let _0x3ba7fe=Math[_0x4d2ff2(0xf0)](_0x136143/0xa),_0x32d9bc=_0x136143%0xa;_0x4feecf+=(_0x3ba7fe?_0xf40537[_0x3ba7fe]+'角':'')+(_0x32d9bc?_0xf40537[_0x32d9bc]+'分':'');}else _0x4feecf+='整';return _0x4feecf[_0x4d2ff2(0x105)](/零{2,}/g,'零')[_0x4d2ff2(0x105)](/零元/,'元');}function getMonthDate(_0x20a901){const _0x655566=a4_0x541ce4;(!_0x20a901||_0x20a901[_0x655566(0x10c)]()==='')&&(_0x20a901=new Date()['getFullYear']()+'-'+(new Date()[_0x655566(0x110)]()+0x1));let _0x2eef4e=[],[_0x1f265a,_0x325593]=_0x20a901[_0x655566(0x117)]('-')[_0x655566(0xf1)](Number),_0xab6162=new Date(_0x1f265a,_0x325593,0x0),_0x717ab6=_0xab6162['getDate']();for(let _0x407d69=0x1;_0x407d69<=_0x717ab6;_0x407d69++){let _0x166863=_0x407d69<0xa?'0'+_0x407d69:''+_0x407d69,_0x56efe8=_0x325593<0xa?'0'+_0x325593:''+_0x325593;_0x2eef4e[_0x655566(0x101)]({'date':_0x1f265a+'-'+_0x56efe8+'-'+_0x166863,'disable':!![]});}return _0x2eef4e;}function a4_0x2541(_0x2603b6,_0x4a48d7){const _0x234b89=a4_0x234b();return a4_0x2541=function(_0x25415c,_0x681807){_0x25415c=_0x25415c-0xe7;let _0x44ed8b=_0x234b89[_0x25415c];return _0x44ed8b;},a4_0x2541(_0x2603b6,_0x4a48d7);}function getToday(_0x453382){const _0x1efa96=a4_0x541ce4;var _0x5cb66e=new Date(),_0xedaca9=String(_0x5cb66e[_0x1efa96(0xe8)]())[_0x1efa96(0xfc)](0x2,'0'),_0x2ed26b=String(_0x5cb66e[_0x1efa96(0x110)]()+0x1)[_0x1efa96(0xfc)](0x2,'0'),_0x3235cb=_0x5cb66e[_0x1efa96(0x10e)]();return _0x5cb66e=_0x3235cb+'-'+_0x2ed26b+'-'+_0xedaca9,_0x5cb66e;}function resetObject(_0x423726){const _0x3e8631=a4_0x541ce4;let _0x41ea3a=JSON[_0x3e8631(0xfd)](JSON[_0x3e8631(0x107)](_0x423726));for(const _0x47646b in _0x41ea3a){if(typeof _0x41ea3a[_0x47646b]===_0x3e8631(0x116))_0x41ea3a[_0x47646b]=0x0;else{if(typeof _0x41ea3a[_0x47646b]===_0x3e8631(0x118))_0x41ea3a[_0x47646b]=![];else{if(Array[_0x3e8631(0x111)](_0x41ea3a[_0x47646b]))_0x41ea3a[_0x47646b]=[];else typeof _0x41ea3a[_0x47646b]==='object'&&_0x41ea3a[_0x47646b]!==null?resetObject(_0x41ea3a[_0x47646b]):_0x41ea3a[_0x47646b]='';}}}return _0x41ea3a;}function a4_0x234b(){const _0x3f798c=['floor','map','920xSBnPS','error','string','find','forEach','toString','getTime','code','call','1376vTgtjF','padStart','parse','prototype','131418aDZbSq','length','push','fjbh','除数不能为0','max','replace','无效的操作符,操作符应为1、2、3或4','stringify','match','substring','value','201891CQYBCo','trim','Quantity\x20should\x20be\x20greater\x20than\x200.','getFullYear','5557784AQTwWi','getMonth','isArray','endsWith','923MoZuvu','join','slice','number','split','boolean','1507972qbwSEb','_qh','label','7fgCIri','round','includes','getDate','surname','setHours','3725838jOTLzk','givenName','function','startsWith','2594690sKcoKr'];a4_0x234b=function(){return _0x3f798c;};return a4_0x234b();}function preciseOperation(_0x2e994,_0x1f4732,_0x1c5218,_0x144f4c=0xf4240){const _0x154f29=a4_0x541ce4;if(isNaN(_0x2e994)||isNaN(_0x1f4732))return NaN;if(!isFinite(_0x2e994)||!isFinite(_0x1f4732))return NaN;let _0x135634=BigInt(Math[_0x154f29(0x11d)](_0x2e994*_0x144f4c)),_0x3d8350=BigInt(Math[_0x154f29(0x11d)](_0x1f4732*_0x144f4c)),_0xc19cf8;switch(_0x1c5218){case 0x1:_0xc19cf8=_0x135634+_0x3d8350;break;case 0x2:_0xc19cf8=_0x135634-_0x3d8350;break;case 0x3:_0xc19cf8=_0x135634*_0x3d8350;break;case 0x4:if(_0x3d8350===0x0n)throw new Error(_0x154f29(0x103));_0xc19cf8=_0x135634/_0x3d8350;break;default:throw new Error(_0x154f29(0x106));}return Number(_0xc19cf8)/_0x144f4c;}function preciseSum(_0x3baa95){const _0x19d491=a4_0x541ce4;let _0x57b09f=0x0;for(const _0x56c11a of _0x3baa95){let _0x167f72=0x0;if(typeof _0x56c11a===_0x19d491(0xf4)){const _0x54a138=parseFloat(_0x56c11a);!isNaN(_0x54a138)&&(_0x167f72=_0x54a138);}else typeof _0x56c11a===_0x19d491(0x116)&&(_0x167f72=_0x56c11a);_0x57b09f=preciseOperation(_0x57b09f,_0x167f72,0x1);}return _0x57b09f;}function getRelativeDate(_0x32fb27,_0x3275f2=0x0){const _0x157f1f=a4_0x541ce4,_0x364114=new Date(_0x32fb27);_0x364114['setDate'](_0x364114[_0x157f1f(0xe8)]()+_0x3275f2);const _0x3cb198=_0x364114['getFullYear'](),_0x47ddf9=(_0x364114[_0x157f1f(0x110)]()+0x1)[_0x157f1f(0xf7)]()[_0x157f1f(0xfc)](0x2,'0'),_0x4e4f05=_0x364114['getDate']()[_0x157f1f(0xf7)]()[_0x157f1f(0xfc)](0x2,'0');return _0x3cb198+'-'+_0x47ddf9+'-'+_0x4e4f05;}function validateFields(_0x47636f,_0x449669,_0x4f0a25=''){for(let _0x167c9b of _0x449669){if(_0x47636f[_0x167c9b]===_0x4f0a25)return!![];}return![];}function mergeObjects(_0xa71403,_0xf4df50){for(const _0x2d5894 in _0xa71403){_0xf4df50['hasOwnProperty'](_0x2d5894)&&(_0xa71403[_0x2d5894]=_0xf4df50[_0x2d5894]);}return _0xa71403;}function formatToDecimal(_0x426f3e,_0x5871fb=0x2){const _0x1afd63=a4_0x541ce4;if(_0x426f3e==null||isNaN(_0x5871fb)||_0x5871fb<0x0)return'';let _0x594ce4=Number(_0x426f3e);if(!isFinite(_0x594ce4))return'';return _0x5871fb=Math[_0x1afd63(0x104)](0x0,Math[_0x1afd63(0xf0)](_0x5871fb)),_0x5871fb===0x0?Math['round'](_0x594ce4):Number(_0x594ce4['toFixed'](_0x5871fb));}function findKeysEndingWith(_0x2fa879,_0x4f25e4=a4_0x541ce4(0x11a)){const _0x11f98d=a4_0x541ce4;let _0x79e2c1=[];for(var _0x35eab2 in _0x2fa879){if(_0x2fa879['hasOwnProperty'](_0x35eab2)){if(_0x35eab2[_0x11f98d(0x112)](_0x4f25e4))_0x79e2c1[_0x11f98d(0x101)](_0x35eab2);}}return _0x79e2c1;}export default{'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
1
+ const a4_0x2172d9=a4_0xe5d6;(function(_0x13f726,_0x2e8c43){const _0x2b0b17=a4_0xe5d6,_0x3e2162=_0x13f726();while(!![]){try{const _0x14479c=-parseInt(_0x2b0b17(0xd9))/0x1+-parseInt(_0x2b0b17(0xdf))/0x2*(parseInt(_0x2b0b17(0xe2))/0x3)+-parseInt(_0x2b0b17(0xf7))/0x4+parseInt(_0x2b0b17(0x106))/0x5*(-parseInt(_0x2b0b17(0xf5))/0x6)+-parseInt(_0x2b0b17(0xd7))/0x7*(parseInt(_0x2b0b17(0xfe))/0x8)+-parseInt(_0x2b0b17(0xe9))/0x9*(-parseInt(_0x2b0b17(0xfc))/0xa)+-parseInt(_0x2b0b17(0xe4))/0xb*(-parseInt(_0x2b0b17(0xe8))/0xc);if(_0x14479c===_0x2e8c43)break;else _0x3e2162['push'](_0x3e2162['shift']());}catch(_0x528d74){_0x3e2162['push'](_0x3e2162['shift']());}}}(a4_0x5428,0x20094));function fmtNum(_0xe956){const _0x1f7b0b=a4_0xe5d6;if(_0xe956==0x0)return'0';if(!_0xe956)return'';let _0x32f7ad=typeof _0xe956===_0x1f7b0b(0x10d)?parseFloat(_0xe956):_0xe956;if(isNaN(_0x32f7ad))return'';return _0x32f7ad[_0x1f7b0b(0xdb)](_0x1f7b0b(0x105),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x4533b9,_0x57dece=![]){const _0x4f0c2e=a4_0xe5d6;let _0x24e96b={'surname':'','givenName':''};if(_0x57dece){const _0x119895=_0x4533b9['includes'](',')?_0x4533b9[_0x4f0c2e(0xe5)](','):_0x4533b9['split'](/\s+/);_0x119895[_0x4f0c2e(0xf8)]>=0x2&&(_0x24e96b[_0x4f0c2e(0xdc)]=_0x119895[0x0][_0x4f0c2e(0xd6)](),_0x24e96b[_0x4f0c2e(0xef)]=_0x119895[0x1][_0x4f0c2e(0xd6)]());}else{const _0x57ac89=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2e35ff=0x0;_0x2e35ff<_0x57ac89[_0x4f0c2e(0xf8)];_0x2e35ff++){const _0x5332b6=_0x57ac89[_0x2e35ff];if(_0x4533b9[_0x4f0c2e(0xd8)](_0x5332b6))return _0x24e96b[_0x4f0c2e(0xdc)]=_0x5332b6,_0x24e96b[_0x4f0c2e(0xef)]=_0x4533b9[_0x4f0c2e(0xdd)](_0x5332b6[_0x4f0c2e(0xf8)])[_0x4f0c2e(0xd6)](),_0x24e96b;}const _0xd56ce6=_0x4533b9[_0x4f0c2e(0xe5)]('\x20');if(_0xd56ce6[_0x4f0c2e(0xf8)]===0x1){const _0x4d9e52=_0x4533b9[_0x4f0c2e(0x108)](/[\u4e00-\u9fa5]/);_0x24e96b[_0x4f0c2e(0xdc)]=_0x4d9e52?_0x4d9e52[0x0]:'',_0x24e96b[_0x4f0c2e(0xef)]=_0x4533b9[_0x4f0c2e(0xff)](_0x24e96b[_0x4f0c2e(0xdc)],'')[_0x4f0c2e(0xd6)]();}else _0x24e96b[_0x4f0c2e(0xdc)]=_0xd56ce6[0x0],_0x24e96b[_0x4f0c2e(0xef)]=_0xd56ce6[_0x4f0c2e(0x104)](0x1)[_0x4f0c2e(0xde)]('\x20');}return _0x24e96b;}function modifyKeys(_0x3d08b0,_0x5d0c6b={'strCode':a4_0x2172d9(0xe1),'strFjbh':a4_0x2172d9(0xf9),'strGuid':a4_0x2172d9(0x103),'strValue':a4_0x2172d9(0xea)}){const _0x658933=a4_0x2172d9;if(!_0x3d08b0[_0x658933(0xf8)]||_0x3d08b0===null)return[];const _0x40d911=_0x3d08b0[_0x658933(0x100)](_0x3d2e2e=>{const _0x2f1821=_0x658933,_0x567fa1={};for(const _0x297302 in _0x3d2e2e){_0x5d0c6b[_0x2f1821(0x10a)](_0x297302)?_0x567fa1[_0x5d0c6b[_0x297302]]=_0x3d2e2e[_0x297302]:_0x567fa1[_0x297302]=_0x3d2e2e[_0x297302];}return _0x567fa1;});return _0x40d911;}function sliceArray(_0x16833c,_0x5413a3,_0x40fee3){const _0x126679=a4_0x2172d9;if(_0x5413a3<=0x0)return console['error'](_0x126679(0xe7)),[];return _0x40fee3?_0x16833c[_0x126679(0x104)](0x0,_0x5413a3):_0x16833c[_0x126679(0x104)](-_0x5413a3);}function findDataByData(_0x5cc1a1,_0x294053,_0x2aa553){const _0x488260=_0x5cc1a1['find'](_0x8419dc=>_0x8419dc[_0x2aa553]===_0x294053);return _0x488260||null;}function splitArray(_0x5165fb,_0x2c1ac9){const _0x139999=a4_0x2172d9,_0x28d71b=[];for(let _0xc76067=0x0;_0xc76067<_0x5165fb[_0x139999(0xf8)];_0xc76067+=_0x2c1ac9){_0x28d71b[_0x139999(0xe6)](_0x5165fb['slice'](_0xc76067,_0xc76067+_0x2c1ac9));}return _0x28d71b;}function getProxyType(_0x16a368){const _0x341b12=a4_0x2172d9;return Object[_0x341b12(0x10b)][_0x341b12(0xed)]['call'](_0x16a368)[_0x341b12(0x104)](0x8,-0x1);}let timeout=null;function debounce(_0x4f9656,_0x268d34=0x1f4,_0x359e00=![]){if(timeout!==null)clearTimeout(timeout);if(_0x359e00){const _0x322184=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x268d34);if(_0x322184)typeof _0x4f9656==='function'&&_0x4f9656();}else timeout=setTimeout(()=>{typeof _0x4f9656==='function'&&_0x4f9656();},_0x268d34);}function a4_0xe5d6(_0x5e5db8,_0x49f39a){const _0x5428e3=a4_0x5428();return a4_0xe5d6=function(_0xe5d6c9,_0x41299d){_0xe5d6c9=_0xe5d6c9-0xd6;let _0x9607df=_0x5428e3[_0xe5d6c9];return _0x9607df;},a4_0xe5d6(_0x5e5db8,_0x49f39a);}function urlEncode(_0x33a60b={}){const _0x31530e=a4_0x2172d9,_0xab0a08=[];for(const _0x2f00ee in _0x33a60b){const _0x22ea7b=_0x33a60b[_0x2f00ee];if(!_0x22ea7b)continue;isArray(_0x22ea7b)?_0x22ea7b[_0x31530e(0xfb)](_0x1f8c7e=>{const _0x485d58=_0x31530e;_0xab0a08[_0x485d58(0xe6)](_0x2f00ee+'='+_0x1f8c7e);}):_0xab0a08[_0x31530e(0xe6)](_0x2f00ee+'='+_0x22ea7b);}return _0xab0a08[_0x31530e(0xde)]('&');}function compareDates(_0x287b37,_0x3fbacb){const _0x1c24bd=a4_0x2172d9;_0x287b37=new Date(_0x287b37);!_0x3fbacb?_0x3fbacb=new Date():_0x3fbacb=new Date(_0x3fbacb);_0x287b37[_0x1c24bd(0xe3)](0x0,0x0,0x0,0x0),_0x3fbacb[_0x1c24bd(0xe3)](0x0,0x0,0x0,0x0);var _0x1c29c3=_0x287b37['getTime'](),_0x1f3202=_0x3fbacb[_0x1c24bd(0x10e)]();if(_0x1c29c3<_0x1f3202)return-0x1;else return _0x1c29c3>_0x1f3202?0x1:0x0;}function getDaysBetween(_0x224065,_0x4f804c){const _0xb47dcf=a4_0x2172d9,_0x15cf69=new Date(_0x224065),_0x3ca0fc=new Date(_0x4f804c),_0x4c8c87=Math['abs'](_0x15cf69[_0xb47dcf(0x10e)]()-_0x3ca0fc[_0xb47dcf(0x10e)]()),_0xf18d92=Math[_0xb47dcf(0xec)](_0x4c8c87/(0x3e8*0x3c*0x3c*0x18));return _0xf18d92+0x1;}function chineseNumeral(_0x51b93b){const _0x521b36=a4_0x2172d9,_0x63d4b1=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x1c48c4=['','拾','佰','仟'],_0x413c56=['','万','亿','兆'];let _0x39b220=Math[_0x521b36(0xec)](_0x51b93b),_0x251a82=Math[_0x521b36(0xf0)]((_0x51b93b-_0x39b220)*0x64),_0x4afd9b='';for(let _0x9bfe1c=0x0;_0x39b220>0x0;_0x9bfe1c++){let _0x433411='',_0x4c774f=_0x39b220%0x2710;_0x39b220=Math['floor'](_0x39b220/0x2710);for(let _0x4c8745=0x0;_0x4c774f>0x0;_0x4c8745++){let _0x3ce8e6=_0x4c774f%0xa;_0x433411=(_0x3ce8e6?_0x63d4b1[_0x3ce8e6]+_0x1c48c4[_0x4c8745]:'')+_0x433411,_0x4c774f=Math[_0x521b36(0xec)](_0x4c774f/0xa);}_0x4afd9b=_0x433411+(_0x433411?_0x413c56[_0x9bfe1c]:_0x413c56[_0x9bfe1c]&&!_0x4afd9b[_0x521b36(0x107)]('零')?'零':'')+_0x4afd9b;}_0x4afd9b+=_0x4afd9b?'元':'零元';if(_0x251a82>0x0){let _0x18476d=Math['floor'](_0x251a82/0xa),_0x25e51a=_0x251a82%0xa;_0x4afd9b+=(_0x18476d?_0x63d4b1[_0x18476d]+'角':'')+(_0x25e51a?_0x63d4b1[_0x25e51a]+'分':'');}else _0x4afd9b+='整';return _0x4afd9b[_0x521b36(0xff)](/零{2,}/g,'零')[_0x521b36(0xff)](/零元/,'元');}function getMonthDate(_0x227bcf){const _0x58def0=a4_0x2172d9;(!_0x227bcf||_0x227bcf[_0x58def0(0xd6)]()==='')&&(_0x227bcf=new Date()[_0x58def0(0xf6)]()+'-'+(new Date()[_0x58def0(0x101)]()+0x1));let _0x1941cb=[],[_0x39f60d,_0x82d4bd]=_0x227bcf[_0x58def0(0xe5)]('-')[_0x58def0(0x100)](Number),_0x9f8660=new Date(_0x39f60d,_0x82d4bd,0x0),_0x484cef=_0x9f8660['getDate']();for(let _0x2c1184=0x1;_0x2c1184<=_0x484cef;_0x2c1184++){let _0x154390=_0x2c1184<0xa?'0'+_0x2c1184:''+_0x2c1184,_0x398356=_0x82d4bd<0xa?'0'+_0x82d4bd:''+_0x82d4bd;_0x1941cb[_0x58def0(0xe6)]({'date':_0x39f60d+'-'+_0x398356+'-'+_0x154390,'disable':!![]});}return _0x1941cb;}function getToday(_0x3e9ad2){const _0x23dfd1=a4_0x2172d9;var _0x228fa0=new Date(),_0x32446f=String(_0x228fa0['getDate']())[_0x23dfd1(0xfd)](0x2,'0'),_0x4a2b0e=String(_0x228fa0['getMonth']()+0x1)['padStart'](0x2,'0'),_0x1b09eb=_0x228fa0['getFullYear']();return _0x228fa0=_0x1b09eb+'-'+_0x4a2b0e+'-'+_0x32446f,_0x228fa0;}function resetObject(_0xb70d2f){const _0x36b4d1=a4_0x2172d9;let _0x38c171=JSON[_0x36b4d1(0x10c)](JSON[_0x36b4d1(0xfa)](_0xb70d2f));for(const _0x553d32 in _0x38c171){if(typeof _0x38c171[_0x553d32]===_0x36b4d1(0x102))_0x38c171[_0x553d32]=0x0;else{if(typeof _0x38c171[_0x553d32]===_0x36b4d1(0xf2))_0x38c171[_0x553d32]=![];else{if(Array[_0x36b4d1(0xee)](_0x38c171[_0x553d32]))_0x38c171[_0x553d32]=[];else typeof _0x38c171[_0x553d32]===_0x36b4d1(0xf3)&&_0x38c171[_0x553d32]!==null?resetObject(_0x38c171[_0x553d32]):_0x38c171[_0x553d32]='';}}}return _0x38c171;}function preciseOperation(_0x2c5852,_0x2bf780,_0x456412,_0x4dcbd1=0xf4240){const _0x4196fc=a4_0x2172d9;if(isNaN(_0x2c5852)||isNaN(_0x2bf780))return NaN;if(!isFinite(_0x2c5852)||!isFinite(_0x2bf780))return NaN;let _0x402ccb=BigInt(Math[_0x4196fc(0xf0)](_0x2c5852*_0x4dcbd1)),_0x7508b5=BigInt(Math['round'](_0x2bf780*_0x4dcbd1)),_0x1323d3;switch(_0x456412){case 0x1:_0x1323d3=_0x402ccb+_0x7508b5;break;case 0x2:_0x1323d3=_0x402ccb-_0x7508b5;break;case 0x3:_0x1323d3=_0x402ccb*_0x7508b5;break;case 0x4:if(_0x7508b5===0x0n)throw new Error(_0x4196fc(0xf4));_0x1323d3=_0x402ccb/_0x7508b5;break;default:throw new Error(_0x4196fc(0xeb));}return Number(_0x1323d3)/_0x4dcbd1;}function preciseSum(_0x57d9c0){const _0x4cf936=a4_0x2172d9;let _0x9d0eaf=0x0;for(const _0x35f0e5 of _0x57d9c0){let _0x8a35d9=0x0;if(typeof _0x35f0e5===_0x4cf936(0x10d)){const _0x4dea57=parseFloat(_0x35f0e5);!isNaN(_0x4dea57)&&(_0x8a35d9=_0x4dea57);}else typeof _0x35f0e5===_0x4cf936(0x102)&&(_0x8a35d9=_0x35f0e5);_0x9d0eaf=preciseOperation(_0x9d0eaf,_0x8a35d9,0x1);}return _0x9d0eaf;}function getRelativeDate(_0x198f9c,_0x192d2a=0x0){const _0x5763c4=a4_0x2172d9,_0x2731a0=new Date(_0x198f9c);_0x2731a0[_0x5763c4(0xda)](_0x2731a0[_0x5763c4(0xe0)]()+_0x192d2a);const _0x89b12e=_0x2731a0[_0x5763c4(0xf6)](),_0x587ca6=(_0x2731a0[_0x5763c4(0x101)]()+0x1)[_0x5763c4(0xed)]()[_0x5763c4(0xfd)](0x2,'0'),_0x789312=_0x2731a0['getDate']()['toString']()[_0x5763c4(0xfd)](0x2,'0');return _0x89b12e+'-'+_0x587ca6+'-'+_0x789312;}function validateFields(_0x36fa63,_0x2e120,_0x24dc5a=''){for(let _0x496a30 of _0x2e120){if(_0x36fa63[_0x496a30]===_0x24dc5a)return!![];}return![];}function mergeObjects(_0x4dcd31,_0x27e85a){const _0x20f57f=a4_0x2172d9;for(const _0x36b302 in _0x4dcd31){_0x27e85a[_0x20f57f(0x10a)](_0x36b302)&&(_0x4dcd31[_0x36b302]=_0x27e85a[_0x36b302]);}return _0x4dcd31;}const formatToDecimal=(_0x1b4692,_0x3b4382=0x2)=>{const _0x5edade=a4_0x2172d9;if(isNaN(_0x3b4382)||_0x3b4382<0x0)return _0x1b4692;let _0xee70f2=Number(_0x1b4692);if(!isFinite(_0xee70f2))return _0x1b4692;return _0x3b4382=Math[_0x5edade(0xf1)](0x0,Math[_0x5edade(0xec)](_0x3b4382)),_0xee70f2['toFixed'](_0x3b4382);};function a4_0x5428(){const _0x3111b9=['max','boolean','object','除数不能为0','444396JjbOqo','getFullYear','449952zTTxpQ','length','fjbh','stringify','forEach','2770QyDZBz','padStart','15840BTGPRF','replace','map','getMonth','number','value','slice','en-US','5kJibJL','includes','match','endsWith','hasOwnProperty','prototype','parse','string','getTime','trim','329JAyYUc','startsWith','56854fLOUTP','setDate','toLocaleString','surname','substring','join','14PwdEyW','getDate','code','20838cZZqLY','setHours','4640383VVZumO','split','push','Quantity\x20should\x20be\x20greater\x20than\x200.','12ukHGes','3069vAmPOz','label','无效的操作符,操作符应为1、2、3或4','floor','toString','isArray','givenName','round'];a4_0x5428=function(){return _0x3111b9;};return a4_0x5428();}function findKeysEndingWith(_0x3e9ecc,_0x553631='_qh'){const _0x21b3a9=a4_0x2172d9;let _0x3fea6b=[];for(var _0x3ae38b in _0x3e9ecc){if(_0x3e9ecc[_0x21b3a9(0x10a)](_0x3ae38b)){if(_0x3ae38b[_0x21b3a9(0x109)](_0x553631))_0x3fea6b[_0x21b3a9(0xe6)](_0x3ae38b);}}return _0x3fea6b;}export default{'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {