yunlin 1.0.31 → 1.0.32

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(_0x5307eb,_0x38f305){var _0x543684=a0_0xc605,_0x41d7dc=_0x5307eb();while(!![]){try{var _0x250ee0=parseInt(_0x543684(0x8b))/0x1+-parseInt(_0x543684(0x85))/0x2+parseInt(_0x543684(0x86))/0x3+-parseInt(_0x543684(0x83))/0x4*(-parseInt(_0x543684(0x84))/0x5)+parseInt(_0x543684(0x87))/0x6*(-parseInt(_0x543684(0x82))/0x7)+parseInt(_0x543684(0x88))/0x8*(-parseInt(_0x543684(0x81))/0x9)+parseInt(_0x543684(0x89))/0xa*(-parseInt(_0x543684(0x8a))/0xb);if(_0x250ee0===_0x38f305)break;else _0x41d7dc['push'](_0x41d7dc['shift']());}catch(_0x5da411){_0x41d7dc['push'](_0x41d7dc['shift']());}}}(a0_0x12c1,0x7e6a1));import a0_0x53234b from'./utils';import a0_0x246047 from'./price';function a0_0x12c1(){var _0xa7e00b=['10uSxGKu','66055qobQjM','629370bCITbK','2979TVHjsZ','469Vhvnzm','55376AaFAzu','275UcTKMg','363748zeQeFg','2455083MUnjNd','58668tkiATy','20504CtmjcP'];a0_0x12c1=function(){return _0xa7e00b;};return a0_0x12c1();}function a0_0xc605(_0x8b191f,_0x1762ee){var _0x12c13b=a0_0x12c1();return a0_0xc605=function(_0xc6054c,_0x1e0f51){_0xc6054c=_0xc6054c-0x81;var _0x1c865d=_0x12c13b[_0xc6054c];return _0x1c865d;},a0_0xc605(_0x8b191f,_0x1762ee);}import a0_0x3fee7b from'./test';import a0_0x5804fd from'./room';export default{'test':a0_0x3fee7b,'utils':a0_0x53234b,'price':a0_0x246047,'room':a0_0x5804fd};
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();}
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- const a1_0x1a1a80=a1_0x35f4;(function(_0x3d2da9,_0x310cd2){const _0x265caf=a1_0x35f4,_0x27d37d=_0x3d2da9();while(!![]){try{const _0x147ee1=parseInt(_0x265caf(0x14c))/0x1+-parseInt(_0x265caf(0x158))/0x2+parseInt(_0x265caf(0x159))/0x3+parseInt(_0x265caf(0x142))/0x4+parseInt(_0x265caf(0x12e))/0x5*(parseInt(_0x265caf(0x157))/0x6)+parseInt(_0x265caf(0x15c))/0x7*(parseInt(_0x265caf(0x14e))/0x8)+-parseInt(_0x265caf(0x15f))/0x9*(parseInt(_0x265caf(0x12d))/0xa);if(_0x147ee1===_0x310cd2)break;else _0x27d37d['push'](_0x27d37d['shift']());}catch(_0xb28735){_0x27d37d['push'](_0x27d37d['shift']());}}}(a1_0x471d,0x3412c));function handleCosting(_0x537c94,_0x7a796d='',_0x425ef2='-',_0x12bc2d={'people':a1_0x1a1a80(0x12b),'service':'附加服務','trip':a1_0x1a1a80(0x13c),'other':a1_0x1a1a80(0x140),'reduction':a1_0x1a1a80(0x14b),'totalprice':'總計','airtax':a1_0x1a1a80(0x131)},_0x3a4a0d={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':'遊客優惠','vip':a1_0x1a1a80(0x162),'promotion':'促銷','insure':'保險費用','coupon':a1_0x1a1a80(0x146),'point':'積分','tax':'稅金','viprecharge':a1_0x1a1a80(0x137),'r':'人','t':'天'}){const _0x52edf7=a1_0x1a1a80;let _0x4f1065=[];const _0x1c8d04='\x20*\x20',_0x875e65=_0x537c94[_0x52edf7(0x152)](_0x256a6b=>_0x256a6b['strLx']=='base');if(_0x875e65[_0x52edf7(0x151)]){let _0x55b014={'title':_0x12bc2d[_0x52edf7(0x165)],'type':_0x52edf7(0x145),'list':[]};_0x875e65[_0x52edf7(0x13e)](_0x38b55d=>{const _0x36d753=_0x52edf7;_0x55b014['list'][_0x36d753(0x12f)]({'title':_0x3a4a0d[_0x38b55d[_0x36d753(0x148)]],'info':_0x7a796d+_0x38b55d[_0x36d753(0x160)]+_0x1c8d04+_0x38b55d[_0x36d753(0x130)],'nRs':_0x38b55d[_0x36d753(0x130)],'unit':_0x38b55d[_0x36d753(0x160)],'cb':_0x38b55d[_0x36d753(0x12c)],'type':'base'});}),_0x4f1065[_0x52edf7(0x12f)](_0x55b014);}const _0x254a6e=_0x537c94[_0x52edf7(0x152)](_0x4643af=>_0x4643af[_0x52edf7(0x138)]=='service');if(_0x254a6e[_0x52edf7(0x151)]){let _0x5bacdb={'title':_0x12bc2d[_0x52edf7(0x141)],'type':'service','list':[]};_0x254a6e['map'](_0x5c3160=>{const _0x13a524=_0x52edf7;_0x5bacdb[_0x13a524(0x14d)]['push']({'title':_0x5c3160[_0x13a524(0x13f)]+('['+_0x5c3160['itemname']+']'),'info':_0x7a796d+_0x5c3160[_0x13a524(0x133)]+_0x1c8d04+_0x5c3160['num'],'nRs':_0x5c3160[_0x13a524(0x150)],'unit':_0x5c3160[_0x13a524(0x133)],'cb':_0x5c3160['baseprice'],'type':'service'});}),_0x4f1065[_0x52edf7(0x12f)](_0x5bacdb);}const _0x500705=_0x537c94['filter'](_0x270141=>_0x270141['strLx']==_0x52edf7(0x139));if(_0x500705[_0x52edf7(0x151)]){let _0x252f16={'title':_0x12bc2d[_0x52edf7(0x139)],'type':_0x52edf7(0x139),'list':[]};_0x500705[_0x52edf7(0x13e)](_0xc03bfb=>{const _0x302756=_0x52edf7;_0xc03bfb['adultnum']!='0'&&_0x252f16[_0x302756(0x14d)][_0x302756(0x12f)]({'title':_0xc03bfb[_0x302756(0x13f)]+('['+_0x3a4a0d[_0x302756(0x164)]+']'),'info':_0x7a796d+_0xc03bfb[_0x302756(0x15d)]+_0x1c8d04+_0xc03bfb['adultnum'],'nRs':_0xc03bfb[_0x302756(0x136)],'unit':_0xc03bfb[_0x302756(0x15d)],'cb':_0xc03bfb[_0x302756(0x132)],'type':'trip'}),_0xc03bfb[_0x302756(0x166)]!='0'&&_0x252f16[_0x302756(0x14d)][_0x302756(0x12f)]({'title':_0xc03bfb[_0x302756(0x13f)]+('['+_0x3a4a0d[_0x302756(0x144)]+']'),'info':_0x7a796d+_0xc03bfb[_0x302756(0x13d)]+_0x1c8d04+_0xc03bfb[_0x302756(0x166)],'nRs':_0xc03bfb['childnum'],'unit':_0xc03bfb[_0x302756(0x13d)],'cb':_0xc03bfb['basechildprice'],'type':'trip'});}),_0x4f1065[_0x52edf7(0x12f)](_0x252f16);}let _0x401023=[];const _0x260168=_0x537c94[_0x52edf7(0x152)](_0x280d14=>_0x280d14[_0x52edf7(0x138)]=='elder');_0x260168[_0x52edf7(0x151)]&&_0x260168['map'](_0x5a2cd8=>{const _0x304f24=_0x52edf7,_0x36cf30=_0x5a2cd8[_0x304f24(0x13f)][_0x304f24(0x14f)]('|')||[''];_0x401023[_0x304f24(0x12f)]({'title':_0x3a4a0d[_0x304f24(0x14a)]+('['+_0x36cf30[0x0]+']'),'info':_0x7a796d+_0x425ef2+_0x5a2cd8['money'],'unit':_0x5a2cd8[_0x304f24(0x149)],'cb':_0x5a2cd8[_0x304f24(0x149)],'type':_0x304f24(0x14a)});});const _0x4ef73c=_0x537c94['filter'](_0xec3b2b=>_0xec3b2b[_0x52edf7(0x138)]==_0x52edf7(0x15b));_0x4ef73c[_0x52edf7(0x151)]&&_0x4ef73c[_0x52edf7(0x13e)](_0x266330=>{const _0xabc7ef=_0x52edf7;_0x401023[_0xabc7ef(0x12f)]({'title':_0x3a4a0d[_0xabc7ef(0x15a)]+('['+_0x266330[_0xabc7ef(0x13f)]+']'),'info':_0x7a796d+_0x425ef2+_0x266330[_0xabc7ef(0x149)],'unit':_0x266330[_0xabc7ef(0x149)],'cb':_0x266330[_0xabc7ef(0x149)],'type':'vip'});});const _0x1ec54b=_0x537c94[_0x52edf7(0x152)](_0x13b2e9=>_0x13b2e9[_0x52edf7(0x138)]=='promotion');_0x1ec54b[_0x52edf7(0x151)]&&_0x1ec54b[_0x52edf7(0x13e)](_0x287adc=>{const _0x3a7beb=_0x52edf7;_0x401023[_0x3a7beb(0x12f)]({'title':_0x3a4a0d[_0x3a7beb(0x156)],'info':_0x7a796d+_0x425ef2+_0x287adc[_0x3a7beb(0x149)],'unit':_0x287adc[_0x3a7beb(0x149)],'cb':_0x287adc[_0x3a7beb(0x149)],'type':'promotion'});});_0x401023['length']&&_0x4f1065[_0x52edf7(0x12f)]({'title':_0x12bc2d['reduction'],'type':'reduction','list':_0x401023});const _0x2075e2=_0x537c94[_0x52edf7(0x152)](_0x2dfb2f=>_0x2dfb2f[_0x52edf7(0x138)]==_0x52edf7(0x147));if(_0x2075e2['length']){let _0x4e71d5={'title':_0x12bc2d['airtax'],'type':_0x52edf7(0x147),'list':[]};_0x2075e2[_0x52edf7(0x13e)](_0x22a6da=>{const _0x4ffa35=_0x52edf7;_0x4e71d5[_0x4ffa35(0x14d)][_0x4ffa35(0x12f)]({'title':_0x3a4a0d[_0x22a6da[_0x4ffa35(0x154)]],'info':_0x7a796d+_0x22a6da['unitprice']+_0x1c8d04+_0x22a6da['sl'],'nRs':_0x22a6da['sl'],'unit':_0x22a6da['unitprice'],'cb':_0x22a6da[_0x4ffa35(0x13b)],'type':_0x22a6da[_0x4ffa35(0x154)]});}),_0x4f1065[_0x52edf7(0x12f)](_0x4e71d5);}const _0x30c7f2=[_0x52edf7(0x145),'service',_0x52edf7(0x139),_0x52edf7(0x14a),_0x52edf7(0x15b),'promotion','airtax'],_0x49bf5d=_0x537c94[_0x52edf7(0x152)](_0x47a7c9=>!_0x30c7f2[_0x52edf7(0x134)](_0x47a7c9['strLx']));let _0x21d480={'title':_0x12bc2d[_0x52edf7(0x135)],'type':_0x52edf7(0x135),'list':[]};for(var _0x4ec39f=0x0;_0x4ec39f<_0x49bf5d['length'];_0x4ec39f++){const _0x5432a2=_0x49bf5d[_0x4ec39f];_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x169)&&_0x21d480[_0x52edf7(0x14d)]['push']({'title':_0x3a4a0d[_0x52edf7(0x169)]+('['+_0x5432a2[_0x52edf7(0x13f)]+']'),'info':_0x7a796d+_0x5432a2[_0x52edf7(0x149)],'unit':_0x5432a2[_0x52edf7(0x149)],'type':_0x5432a2[_0x52edf7(0x138)]}),_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x163)&&_0x21d480['list'][_0x52edf7(0x12f)]({'title':_0x3a4a0d['insure']+('['+_0x5432a2[_0x52edf7(0x13f)]+']'),'info':_0x7a796d+_0x5432a2[_0x52edf7(0x15e)]+_0x1c8d04+_0x5432a2['users']+_0x3a4a0d['r'],'nRs':_0x5432a2['users'],'unit':_0x5432a2[_0x52edf7(0x15e)],'cb':_0x5432a2[_0x52edf7(0x15e)],'type':_0x52edf7(0x163)}),(_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x161)||_0x5432a2[_0x52edf7(0x138)]=='point')&&_0x21d480['list'][_0x52edf7(0x12f)]({'title':_0x3a4a0d[_0x5432a2[_0x52edf7(0x138)]],'info':_0x7a796d+_0x425ef2+_0x5432a2[_0x52edf7(0x149)],'unit':_0x5432a2[_0x52edf7(0x149)],'type':_0x5432a2[_0x52edf7(0x138)]}),_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x153)&&_0x21d480[_0x52edf7(0x14d)][_0x52edf7(0x12f)]({'title':_0x3a4a0d[_0x5432a2[_0x52edf7(0x138)]],'info':_0x7a796d+_0x5432a2[_0x52edf7(0x153)]+_0x1c8d04+_0x5432a2[_0x52edf7(0x12a)]+_0x3a4a0d['r']+_0x1c8d04+_0x5432a2['tipday']+_0x3a4a0d['t'],'nRs':_0x5432a2['tipuser'],'count':_0x5432a2[_0x52edf7(0x168)],'unit':_0x5432a2[_0x52edf7(0x153)],'type':_0x5432a2[_0x52edf7(0x138)]}),_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x13a)&&_0x21d480['list']['push']({'title':_0x3a4a0d[_0x5432a2[_0x52edf7(0x138)]],'info':_0x7a796d+_0x5432a2['totaltax'],'unit':_0x5432a2[_0x52edf7(0x155)],'type':_0x5432a2[_0x52edf7(0x138)]});}_0x21d480['list'][_0x52edf7(0x151)]&&_0x4f1065[_0x52edf7(0x12f)](_0x21d480);const _0xee25d0=_0x537c94[_0x52edf7(0x152)](_0x3bb26a=>_0x3bb26a['strLx']==_0x52edf7(0x143));return _0xee25d0['length']&&_0x4f1065[_0x52edf7(0x12f)]({'title':_0x12bc2d[_0x52edf7(0x143)],'type':_0x52edf7(0x143),'list':[{'title':_0x12bc2d[_0x52edf7(0x143)],'info':_0x7a796d+_0xee25d0[0x0][_0x52edf7(0x167)]}]}),_0x4f1065;}function a1_0x35f4(_0xd71cc3,_0x275bb9){const _0x471d3f=a1_0x471d();return a1_0x35f4=function(_0x35f470,_0x16ca3c){_0x35f470=_0x35f470-0x12a;let _0x4541c3=_0x471d3f[_0x35f470];return _0x4541c3;},a1_0x35f4(_0xd71cc3,_0x275bb9);}export default{'handleCosting':handleCosting};function a1_0x471d(){const _0x473a9f=['price','tipday','viprecharge','tipuser','人員費用','fJcbzlsjUnit','10ehAgpm','5Brmvwx','push','nRs','機場稅','baseadultprice','unitprice','includes','other','adultnum','會員充值','strLx','trip','tax','unitpricewb','附加行程','childprice','map','name','其他費用','service','88624iIcINA','totalprice','child','base','優惠券','airtax','strJgbm','money','elder','減免費用','317634SJtrMX','list','248Pckwaq','split','num','length','filter','tip','rylx','totaltax','promotion','2461902slloki','446620BgfZjx','426543DqbyMk','vip','vipdiscounted','54453FfDVaL','adultprice','unit','6271515FYyyAh','fLsjUnit','coupon','會員減免','insure','adult','people','childnum'];a1_0x471d=function(){return _0x473a9f;};return a1_0x471d();}
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};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4199da,_0x3061d3){const _0x53a439=a2_0x3900,_0x2e1300=_0x4199da();while(!![]){try{const _0x200b82=parseInt(_0x53a439(0x1a4))/0x1+-parseInt(_0x53a439(0x1aa))/0x2+parseInt(_0x53a439(0x19b))/0x3*(-parseInt(_0x53a439(0x1a1))/0x4)+-parseInt(_0x53a439(0x1a8))/0x5*(parseInt(_0x53a439(0x192))/0x6)+parseInt(_0x53a439(0x194))/0x7*(-parseInt(_0x53a439(0x1a9))/0x8)+parseInt(_0x53a439(0x190))/0x9*(parseInt(_0x53a439(0x18f))/0xa)+parseInt(_0x53a439(0x193))/0xb*(parseInt(_0x53a439(0x19a))/0xc);if(_0x200b82===_0x3061d3)break;else _0x2e1300['push'](_0x2e1300['shift']());}catch(_0x199014){_0x2e1300['push'](_0x2e1300['shift']());}}}(a2_0x2334,0x9b591));function getRoomCount(_0x24839d,_0x202bbd){const _0x1ad731=a2_0x3900,_0x1b7856=Array['isArray'](_0x24839d);if(!_0x1b7856)_0x24839d=[_0x24839d];let _0x642ace=[];return _0x24839d[_0x1ad731(0x197)](_0x36f96d=>{const _0x54dc4d=_0x1ad731;let _0x1852f4=![];if(!_0x36f96d[_0x54dc4d(0x1a5)]){let _0x59499b=_0x36f96d['adultnum'];if(_0x36f96d['childusebed']||!_0x202bbd[_0x54dc4d(0x19d)])_0x59499b+=_0x36f96d[_0x54dc4d(0x1a7)];const _0x4335e5=_0x202bbd[_0x54dc4d(0x1a3)][_0x54dc4d(0x1ac)](_0x4b9fff=>Number(_0x4b9fff[_0x54dc4d(0x1a0)])===_0x59499b);if(!_0x4335e5)_0x1852f4=!![];else{let _0x100e7a=_0x36f96d[_0x54dc4d(0x198)]+_0x36f96d['childrennum']+_0x36f96d[_0x54dc4d(0x1a2)];_0x100e7a>_0x4335e5['nMaxIn']&&(_0x1852f4=!![]);}}_0x642ace['push'](_0x1852f4);}),_0x1b7856?_0x642ace:_0x642ace[0x0];}function a2_0x3900(_0x3f9ccb,_0x2e6e0c){const _0x233436=a2_0x2334();return a2_0x3900=function(_0x3900ec,_0xb82a53){_0x3900ec=_0x3900ec-0x18f;let _0x5a14ec=_0x233436[_0x3900ec];return _0x5a14ec;},a2_0x3900(_0x3f9ccb,_0x2e6e0c);}function getRoomConfig(_0x51eab8){const _0x3cff35=a2_0x3900;let _0x1478b7=_0x51eab8[_0x3cff35(0x199)](_0x4fde7=>_0x4fde7[_0x3cff35(0x1a0)]===_0x3cff35(0x19e)),_0x26a3ca=_0x51eab8[_0x3cff35(0x199)](_0xfaf42e=>_0xfaf42e[_0x3cff35(0x1a0)]===_0x3cff35(0x1ab));const _0x9643a6=_0x51eab8['some'](_0x53c180=>_0x53c180['strCode']==='infant'),_0x351736=_0x51eab8[_0x3cff35(0x199)](_0x1c2f6e=>_0x1c2f6e[_0x3cff35(0x1a0)]===_0x3cff35(0x19d)),_0x3d8dd3=_0x51eab8[_0x3cff35(0x19c)](_0x9c9071=>{const _0x1cfdb5=_0x3cff35;return{'strCode':_0x9c9071[_0x1cfdb5(0x1a0)],'nMaxIn':_0x9c9071[_0x1cfdb5(0x196)]};});if(_0x26a3ca){const _0xd596d7=_0x51eab8[_0x3cff35(0x199)](_0x222abb=>_0x222abb[_0x3cff35(0x1a0)]=='2');_0x26a3ca=_0x26a3ca&&_0xd596d7;}if(_0x1478b7)_0x1478b7=_0x1478b7&&_0x351736;return{'childusebed':_0x1478b7,'half':_0x26a3ca,'infant':_0x9643a6,'child':_0x351736,'list':_0x3d8dd3};}function isRoomPiece(_0x3a40ac,_0x229936){const _0x81871d=a2_0x3900;return _0x229936&&_0x3a40ac[_0x81871d(0x198)]===0x1&&_0x3a40ac[_0x81871d(0x1a7)]===0x0&&_0x3a40ac[_0x81871d(0x1a2)]===0x0;}function a2_0x2334(){const _0x335493=['9179489oIIFnq','4094034eYxWfw','push','nMaxIn','forEach','adultnum','some','36lZORnE','1414563mVDkVz','map','child','childusebed','infant','strCode','4JCDEvE','infantnum','list','154409erpeKf','isalotment','filter','childrennum','5tLcoBW','8UvaOin','1066968FCwEGv','half','find','70wHgdYX','370413QJNPxA','max','4318998gCmeoE'];a2_0x2334=function(){return _0x335493;};return a2_0x2334();}function getRoomItemRange(_0x30c6a2,_0x34e88d,_0x29d75d={'child':'兒童','infant':'嬰兒'}){const _0x101e57=a2_0x3900;if(!_0x34e88d['length'])return{'list':[],'yelist':[]};const _0x4f1ee0=Math['max'](..._0x34e88d[_0x101e57(0x19c)](_0x1fe5b8=>Number(_0x1fe5b8[_0x101e57(0x196)]))),_0x3b5dd2=_0x4f1ee0-_0x30c6a2[_0x101e57(0x198)]-_0x30c6a2[_0x101e57(0x1a2)];let _0x2038c0=_0x4f1ee0-_0x30c6a2[_0x101e57(0x198)]-_0x30c6a2[_0x101e57(0x1a7)];if(_0x2038c0>0x2)_0x2038c0=0x2;const _0x4e1a63=(_0x524fb9,_0x43f633)=>{const _0x203f7e=_0x101e57,_0xdd271c=[];_0xdd271c['push']({'value':0x0,'text':'0\x20'+_0x43f633});for(let _0x3c87ba=0x0;_0x3c87ba<_0x524fb9;_0x3c87ba++){_0xdd271c[_0x203f7e(0x195)]({'value':_0x3c87ba+0x1,'text':_0x3c87ba+0x1+'\x20'+_0x43f633});}return _0xdd271c;};return{'list':_0x4e1a63(_0x3b5dd2,_0x29d75d['child']),'yelist':_0x4e1a63(_0x2038c0,_0x29d75d[_0x101e57(0x19f)])};}function getAdultRange(_0x33b1d1,_0x1ebb33='成人'){const _0xecdd44=a2_0x3900;let _0xaf9393=Math[_0xecdd44(0x191)](..._0x33b1d1[_0xecdd44(0x19c)](_0x494b00=>Number(_0x494b00[_0xecdd44(0x1a0)]))[_0xecdd44(0x1a6)](_0x88c62b=>!isNaN(_0x88c62b)));if(!_0xaf9393)_0xaf9393=0x4;let _0x401d61=[];for(var _0x1f2132=0x1;_0x1f2132<_0xaf9393+0x1;_0x1f2132++){_0x401d61[_0xecdd44(0x195)]({'value':_0x1f2132,'text':_0x1f2132+'\x20'+_0x1ebb33});}return _0x401d61;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
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};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0xfb9939,_0x13f596){const _0x1490eb=a3_0x11ee,_0x49f962=_0xfb9939();while(!![]){try{const _0x190a32=-parseInt(_0x1490eb(0x92))/0x1+parseInt(_0x1490eb(0x84))/0x2+parseInt(_0x1490eb(0x8a))/0x3*(parseInt(_0x1490eb(0x90))/0x4)+parseInt(_0x1490eb(0x8b))/0x5+parseInt(_0x1490eb(0x94))/0x6+parseInt(_0x1490eb(0x85))/0x7*(parseInt(_0x1490eb(0x8e))/0x8)+parseInt(_0x1490eb(0x93))/0x9*(-parseInt(_0x1490eb(0x9a))/0xa);if(_0x190a32===_0x13f596)break;else _0x49f962['push'](_0x49f962['shift']());}catch(_0x133aea){_0x49f962['push'](_0x49f962['shift']());}}}(a3_0x8e8e,0x3e675));function email(_0x30332d){const _0x4c4322=a3_0x11ee;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x4c4322(0x8d)](_0x30332d);}function mobile(_0x2e4ba6){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x2e4ba6);}function isValidPhoneNumber(_0x1626b6){const _0x9a5a20=a3_0x11ee;if(_0x1626b6['includes']('-')){const [_0x34429f,_0x952b36]=_0x1626b6['split']('-');if(_0x34429f==='86')return/^\d{11}$/[_0x9a5a20(0x8d)](_0x952b36)&&_0x952b36['startsWith']('1');else return _0x34429f===_0x9a5a20(0x91)?/^\d{8}$/[_0x9a5a20(0x8d)](_0x952b36)&&['5','6','9','8']['includes'](_0x952b36[_0x9a5a20(0x82)](0x0)):/^\d+$/[_0x9a5a20(0x8d)](_0x952b36);}else return/^\d+$/[_0x9a5a20(0x8d)](_0x1626b6);}function url(_0x1de984){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'](_0x1de984);}function a3_0x8e8e(){const _0x2d3ae3=['undefined','[object\x20RegExp]','indexOf','boolean','charAt','split','526036bEEWip','120029wKBaPM','[object\x20Object]','[object\x20Array]','prototype','object','54600UWObqe','2375150cAMCpt','isArray','test','88UAfGfI','toString','52riMcvv','852','250729vDoKXy','6249303rPXcMc','224616tOeCKR','call','startsWith','then','function','^\x5cd{','10sjGfof','string','length','includes','number'];a3_0x8e8e=function(){return _0x2d3ae3;};return a3_0x8e8e();}function date(_0x2b6130){const _0xc0d363=a3_0x11ee;if(!_0x2b6130)return![];if(number(_0x2b6130))_0x2b6130=+_0x2b6130;return!/Invalid|NaN/['test'](new Date(_0x2b6130)[_0xc0d363(0x8f)]());}function dateISO(_0x4a485b){const _0x3c7235=a3_0x11ee;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x3c7235(0x8d)](_0x4a485b);}function isNumber(_0x221508){const _0x7e2058=a3_0x11ee;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x7e2058(0x8d)](_0x221508);}function isString(_0x2e5eb7){const _0x4fc13c=a3_0x11ee;return typeof _0x2e5eb7===_0x4fc13c(0x9b);}function digits(_0x453d46){const _0x3ea45f=a3_0x11ee;return/^\d+$/[_0x3ea45f(0x8d)](_0x453d46);}function idCard(_0x10e41f){const _0x52a43d=a3_0x11ee;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)$/[_0x52a43d(0x8d)](_0x10e41f);}function carNo(_0x51ecb3){const _0x144340=a3_0x11ee,_0x249fe7=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x2ae9ff=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x51ecb3[_0x144340(0x9c)]===0x7)return _0x2ae9ff[_0x144340(0x8d)](_0x51ecb3);if(_0x51ecb3[_0x144340(0x9c)]===0x8)return _0x249fe7[_0x144340(0x8d)](_0x51ecb3);return![];}function amount(_0x5da113){const _0x1c62a9=a3_0x11ee;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x1c62a9(0x8d)](_0x5da113);}function chinese(_0x521ed8){const _0x1bc6da=/^[\u4e00-\u9fa5]+$/gi;return _0x1bc6da['test'](_0x521ed8);}function letter(_0x347e85){return/^[a-zA-Z]*$/['test'](_0x347e85);}function enOrNum(_0x2e759c){const _0xcffca8=a3_0x11ee,_0x125804=/^[0-9a-zA-Z]*$/g;return _0x125804[_0xcffca8(0x8d)](_0x2e759c);}function contains(_0x313cb2,_0x25325e){const _0x36d9a9=a3_0x11ee;return _0x313cb2[_0x36d9a9(0x80)](_0x25325e)>=0x0;}function range(_0x789c9e,_0x5d9dfd){return _0x789c9e>=_0x5d9dfd[0x0]&&_0x789c9e<=_0x5d9dfd[0x1];}function rangeLength(_0x4072cc,_0x5d0b6d){const _0x112cb1=a3_0x11ee;return _0x4072cc[_0x112cb1(0x9c)]>=_0x5d0b6d[0x0]&&_0x4072cc[_0x112cb1(0x9c)]<=_0x5d0b6d[0x1];}function landline(_0x154e76){const _0x2dd6d4=a3_0x11ee,_0x3cc47d=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x3cc47d[_0x2dd6d4(0x8d)](_0x154e76);}function empty(_0x33d93a){const _0x49ae3b=a3_0x11ee;switch(typeof _0x33d93a){case _0x49ae3b(0x7e):return!![];case'string':if(_0x33d93a['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x49ae3b(0x9c)]==0x0)return!![];break;case _0x49ae3b(0x81):if(!_0x33d93a)return!![];break;case _0x49ae3b(0x7d):if(_0x33d93a===0x0||isNaN(_0x33d93a))return!![];break;case _0x49ae3b(0x89):if(_0x33d93a===null||_0x33d93a[_0x49ae3b(0x9c)]===0x0)return!![];for(const _0x25b4eb in _0x33d93a){return![];}return!![];}return![];}function jsonString(_0x4080dc){const _0x1793ff=a3_0x11ee;if(typeof _0x4080dc===_0x1793ff(0x9b))try{const _0x54fb38=JSON['parse'](_0x4080dc);if(typeof _0x54fb38==='object'&&_0x54fb38)return!![];return![];}catch(_0x242f23){return![];}return![];}function array(_0x4b68a2){const _0x269862=a3_0x11ee;if(typeof Array[_0x269862(0x8c)]===_0x269862(0x98))return Array[_0x269862(0x8c)](_0x4b68a2);return Object[_0x269862(0x88)][_0x269862(0x8f)][_0x269862(0x95)](_0x4b68a2)===_0x269862(0x87);}function object(_0x16e600){const _0x1be3d9=a3_0x11ee;return Object[_0x1be3d9(0x88)][_0x1be3d9(0x8f)][_0x1be3d9(0x95)](_0x16e600)===_0x1be3d9(0x86);}function code(_0x321d99,_0x5611e6=0x6){const _0xcbb98a=a3_0x11ee;return new RegExp(_0xcbb98a(0x99)+_0x5611e6+'}$')[_0xcbb98a(0x8d)](_0x321d99);}function func(_0x19ff97){const _0x2735a2=a3_0x11ee;return typeof _0x19ff97===_0x2735a2(0x98);}function a3_0x11ee(_0x21bca7,_0x4e000e){const _0x8e8e3f=a3_0x8e8e();return a3_0x11ee=function(_0x11eea7,_0x6d4f45){_0x11eea7=_0x11eea7-0x7c;let _0x37aa0f=_0x8e8e3f[_0x11eea7];return _0x37aa0f;},a3_0x11ee(_0x21bca7,_0x4e000e);}function promise(_0x303b5d){const _0x3b947c=a3_0x11ee;return object(_0x303b5d)&&func(_0x303b5d[_0x3b947c(0x97)])&&func(_0x303b5d['catch']);}function image(_0x2209bd){const _0x2c5372=a3_0x11ee,_0x19848c=_0x2209bd[_0x2c5372(0x83)]('?')[0x0],_0x1d3593=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x1d3593[_0x2c5372(0x8d)](_0x19848c);}function video(_0x331bd4){const _0x4724f6=a3_0x11ee,_0x31268f=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x31268f[_0x4724f6(0x8d)](_0x331bd4);}function regExp(_0x7ed89f){const _0x174623=a3_0x11ee;return _0x7ed89f&&Object['prototype'][_0x174623(0x8f)][_0x174623(0x95)](_0x7ed89f)===_0x174623(0x7f);}function isNumeric(_0x3ca6ec,_0x1e7f17=0x0){const _0x3e4116=a3_0x11ee;if(typeof _0x3ca6ec==='number')_0x3ca6ec=_0x3ca6ec[_0x3e4116(0x8f)]();if(typeof _0x3ca6ec!==_0x3e4116(0x9b))return![];switch(_0x1e7f17){case 0x1:return/^\d+(\.\d+)?$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x2:return/^-\d+(\.\d+)?$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x3:return/^-?\d+$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x4:return/^\d+$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x5:return/^-\d+$/[_0x3e4116(0x8d)](_0x3ca6ec);default:return/^-?\d*\.?\d*$/[_0x3e4116(0x8d)](_0x3ca6ec)&&!_0x3ca6ec[_0x3e4116(0x96)]('.')&&!_0x3ca6ec[_0x3e4116(0x7c)]('--');}}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(_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};
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- const a4_0x56987c=a4_0x3c82;(function(_0xc2bb8f,_0x1e051c){const _0x2a6193=a4_0x3c82,_0x190876=_0xc2bb8f();while(!![]){try{const _0x3fdcc4=parseInt(_0x2a6193(0x1ea))/0x1*(-parseInt(_0x2a6193(0x1f4))/0x2)+parseInt(_0x2a6193(0x1e1))/0x3*(parseInt(_0x2a6193(0x1d9))/0x4)+parseInt(_0x2a6193(0x1ef))/0x5+parseInt(_0x2a6193(0x1e9))/0x6+-parseInt(_0x2a6193(0x1d3))/0x7*(parseInt(_0x2a6193(0x1d0))/0x8)+parseInt(_0x2a6193(0x1de))/0x9+-parseInt(_0x2a6193(0x1f6))/0xa;if(_0x3fdcc4===_0x1e051c)break;else _0x190876['push'](_0x190876['shift']());}catch(_0x101064){_0x190876['push'](_0x190876['shift']());}}}(a4_0x4b73,0xa7afe));function fmtNum(_0x4aa812){const _0x25d35c=a4_0x3c82;if(_0x4aa812==0x0)return'0';if(!_0x4aa812)return'';let _0x594906=typeof _0x4aa812===_0x25d35c(0x1eb)?parseFloat(_0x4aa812):_0x4aa812;if(isNaN(_0x594906))return'';return _0x594906[_0x25d35c(0x1e0)]('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x20e7f6,_0x51c5ce=![]){const _0x4e5719=a4_0x3c82;let _0x83e720={'surname':'','givenName':''};if(_0x51c5ce){const _0x5ce332=_0x20e7f6['includes'](',')?_0x20e7f6['split'](','):_0x20e7f6['split'](/\s+/);_0x5ce332['length']>=0x2&&(_0x83e720['surname']=_0x5ce332[0x0]['trim'](),_0x83e720['givenName']=_0x5ce332[0x1][_0x4e5719(0x1f2)]());}else{const _0x5c7a7d=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x1782bb=0x0;_0x1782bb<_0x5c7a7d['length'];_0x1782bb++){const _0x42bcc2=_0x5c7a7d[_0x1782bb];if(_0x20e7f6[_0x4e5719(0x1e5)](_0x42bcc2))return _0x83e720['surname']=_0x42bcc2,_0x83e720[_0x4e5719(0x1d2)]=_0x20e7f6[_0x4e5719(0x1d5)](_0x42bcc2[_0x4e5719(0x1da)])[_0x4e5719(0x1f2)](),_0x83e720;}const _0x3c7480=_0x20e7f6[_0x4e5719(0x1f3)]('\x20');if(_0x3c7480[_0x4e5719(0x1da)]===0x1){const _0x3bc074=_0x20e7f6[_0x4e5719(0x1e8)](/[\u4e00-\u9fa5]/);_0x83e720[_0x4e5719(0x1d8)]=_0x3bc074?_0x3bc074[0x0]:'',_0x83e720['givenName']=_0x20e7f6[_0x4e5719(0x1d4)](_0x83e720[_0x4e5719(0x1d8)],'')[_0x4e5719(0x1f2)]();}else _0x83e720[_0x4e5719(0x1d8)]=_0x3c7480[0x0],_0x83e720['givenName']=_0x3c7480[_0x4e5719(0x1d1)](0x1)['join']('\x20');}return _0x83e720;}function modifyKeys(_0x10ac71,_0x479866={'strCode':a4_0x56987c(0x1df),'strFjbh':a4_0x56987c(0x1ce),'strGuid':a4_0x56987c(0x1cf),'strValue':a4_0x56987c(0x1e2)}){const _0x4cda48=a4_0x56987c;if(!_0x10ac71['length']||_0x10ac71===null)return[];const _0x4a9566=_0x10ac71[_0x4cda48(0x1dc)](_0x4e5cd=>{const _0x5650b1=_0x4cda48,_0x1d816d={};for(const _0x61e0d5 in _0x4e5cd){_0x479866[_0x5650b1(0x1f9)](_0x61e0d5)?_0x1d816d[_0x479866[_0x61e0d5]]=_0x4e5cd[_0x61e0d5]:_0x1d816d[_0x61e0d5]=_0x4e5cd[_0x61e0d5];}return _0x1d816d;});return _0x4a9566;}function sliceArray(_0x3ba014,_0x3f9f12,_0xce4e2c){const _0x513dec=a4_0x56987c;if(_0x3f9f12<=0x0)return console['error'](_0x513dec(0x1ee)),[];return _0xce4e2c?_0x3ba014['slice'](0x0,_0x3f9f12):_0x3ba014[_0x513dec(0x1d1)](-_0x3f9f12);}function findDataByData(_0x41461f,_0x658c0,_0x3ff6fb){const _0x5b52c6=_0x41461f['find'](_0x553f40=>_0x553f40[_0x3ff6fb]===_0x658c0);return _0x5b52c6||null;}function splitArray(_0x236b8d,_0x2b045d){const _0x20aad2=a4_0x56987c,_0x4304b1=[];for(let _0xa59f6=0x0;_0xa59f6<_0x236b8d[_0x20aad2(0x1da)];_0xa59f6+=_0x2b045d){_0x4304b1[_0x20aad2(0x1f7)](_0x236b8d['slice'](_0xa59f6,_0xa59f6+_0x2b045d));}return _0x4304b1;}function getProxyType(_0x5d5edf){const _0x36c55c=a4_0x56987c;return Object['prototype'][_0x36c55c(0x1cc)]['call'](_0x5d5edf)[_0x36c55c(0x1d1)](0x8,-0x1);}function a4_0x4b73(){const _0x5dd270=['trim','split','5342YBLMXI','stringify','14246920eeopJx','push','function','hasOwnProperty','round','padStart','除数不能为0','includes','toString','boolean','fjbh','value','72HzmPpj','slice','givenName','589806OimLhM','replace','substring','getTime','无效的操作符,操作符应为1、2、3或4','surname','12CPuPuz','length','setHours','map','forEach','10420452BjYPHS','code','toLocaleString','693054dztTWl','label','isArray','getDate','startsWith','getMonth','setDate','match','3985890PGxtzx','74PiepnK','string','floor','abs','Quantity\x20should\x20be\x20greater\x20than\x200.','2761585wXgogR','number','getFullYear'];a4_0x4b73=function(){return _0x5dd270;};return a4_0x4b73();}let timeout=null;function debounce(_0x508d8d,_0xd996e8=0x1f4,_0xdc9a12=![]){if(timeout!==null)clearTimeout(timeout);if(_0xdc9a12){const _0x1e493b=!timeout;timeout=setTimeout(()=>{timeout=null;},_0xd996e8);if(_0x1e493b)typeof _0x508d8d==='function'&&_0x508d8d();}else timeout=setTimeout(()=>{const _0x25ffe8=a4_0x3c82;typeof _0x508d8d===_0x25ffe8(0x1f8)&&_0x508d8d();},_0xd996e8);}function urlEncode(_0x3255aa={}){const _0x109234=a4_0x56987c,_0x1c0cb0=[];for(const _0x233d59 in _0x3255aa){const _0x3f2b67=_0x3255aa[_0x233d59];if(!_0x3f2b67)continue;isArray(_0x3f2b67)?_0x3f2b67[_0x109234(0x1dd)](_0x3f99da=>{const _0x53b001=_0x109234;_0x1c0cb0[_0x53b001(0x1f7)](_0x233d59+'='+_0x3f99da);}):_0x1c0cb0[_0x109234(0x1f7)](_0x233d59+'='+_0x3f2b67);}return _0x1c0cb0['join']('&');}function a4_0x3c82(_0x2f6635,_0x475def){const _0x4b73b3=a4_0x4b73();return a4_0x3c82=function(_0x3c8291,_0x241d7a){_0x3c8291=_0x3c8291-0x1c9;let _0x5ec959=_0x4b73b3[_0x3c8291];return _0x5ec959;},a4_0x3c82(_0x2f6635,_0x475def);}function compareDates(_0x4ecd05,_0x416766){const _0x4ce346=a4_0x56987c;_0x4ecd05=new Date(_0x4ecd05);!_0x416766?_0x416766=new Date():_0x416766=new Date(_0x416766);_0x4ecd05[_0x4ce346(0x1db)](0x0,0x0,0x0,0x0),_0x416766[_0x4ce346(0x1db)](0x0,0x0,0x0,0x0);var _0x12f2c5=_0x4ecd05[_0x4ce346(0x1d6)](),_0xfb118=_0x416766[_0x4ce346(0x1d6)]();if(_0x12f2c5<_0xfb118)return-0x1;else return _0x12f2c5>_0xfb118?0x1:0x0;}function getDaysBetween(_0x172348,_0x1acc6d){const _0x5f11cf=a4_0x56987c,_0x3276e8=new Date(_0x172348),_0xa92636=new Date(_0x1acc6d),_0x424b2b=Math[_0x5f11cf(0x1ed)](_0x3276e8[_0x5f11cf(0x1d6)]()-_0xa92636[_0x5f11cf(0x1d6)]()),_0x2af9f2=Math[_0x5f11cf(0x1ec)](_0x424b2b/(0x3e8*0x3c*0x3c*0x18));return _0x2af9f2+0x1;}function chineseNumeral(_0x2356c1){const _0x533e18=a4_0x56987c,_0x4297a2=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x5d1382=['','拾','佰','仟'],_0x119508=['','万','亿','兆'];let _0x32b399=Math[_0x533e18(0x1ec)](_0x2356c1),_0x3aa1c9=Math[_0x533e18(0x1fa)]((_0x2356c1-_0x32b399)*0x64),_0x2695b2='';for(let _0x439007=0x0;_0x32b399>0x0;_0x439007++){let _0x5f5d4c='',_0x1d74fb=_0x32b399%0x2710;_0x32b399=Math[_0x533e18(0x1ec)](_0x32b399/0x2710);for(let _0x273595=0x0;_0x1d74fb>0x0;_0x273595++){let _0x2d20a9=_0x1d74fb%0xa;_0x5f5d4c=(_0x2d20a9?_0x4297a2[_0x2d20a9]+_0x5d1382[_0x273595]:'')+_0x5f5d4c,_0x1d74fb=Math[_0x533e18(0x1ec)](_0x1d74fb/0xa);}_0x2695b2=_0x5f5d4c+(_0x5f5d4c?_0x119508[_0x439007]:_0x119508[_0x439007]&&!_0x2695b2[_0x533e18(0x1cb)]('零')?'零':'')+_0x2695b2;}_0x2695b2+=_0x2695b2?'元':'零元';if(_0x3aa1c9>0x0){let _0x48c156=Math[_0x533e18(0x1ec)](_0x3aa1c9/0xa),_0x5723d4=_0x3aa1c9%0xa;_0x2695b2+=(_0x48c156?_0x4297a2[_0x48c156]+'角':'')+(_0x5723d4?_0x4297a2[_0x5723d4]+'分':'');}else _0x2695b2+='整';return _0x2695b2[_0x533e18(0x1d4)](/零{2,}/g,'零')[_0x533e18(0x1d4)](/零元/,'元');}function getMonthDate(_0x232e5d){const _0x24ed38=a4_0x56987c;(!_0x232e5d||_0x232e5d[_0x24ed38(0x1f2)]()==='')&&(_0x232e5d=new Date()[_0x24ed38(0x1f1)]()+'-'+(new Date()[_0x24ed38(0x1e6)]()+0x1));let _0x2821a8=[],[_0x4cf3b1,_0x6025ab]=_0x232e5d[_0x24ed38(0x1f3)]('-')[_0x24ed38(0x1dc)](Number),_0x3d5b24=new Date(_0x4cf3b1,_0x6025ab,0x0),_0x9ac21b=_0x3d5b24[_0x24ed38(0x1e4)]();for(let _0x418072=0x1;_0x418072<=_0x9ac21b;_0x418072++){let _0x286c06=_0x418072<0xa?'0'+_0x418072:''+_0x418072,_0x3b5acc=_0x6025ab<0xa?'0'+_0x6025ab:''+_0x6025ab;_0x2821a8[_0x24ed38(0x1f7)]({'date':_0x4cf3b1+'-'+_0x3b5acc+'-'+_0x286c06,'disable':!![]});}return _0x2821a8;}function getToday(_0x5b28a7){const _0x14fbae=a4_0x56987c;var _0x36db38=new Date(),_0x575bc1=String(_0x36db38[_0x14fbae(0x1e4)]())[_0x14fbae(0x1c9)](0x2,'0'),_0xc8ccdc=String(_0x36db38['getMonth']()+0x1)[_0x14fbae(0x1c9)](0x2,'0'),_0xc951de=_0x36db38[_0x14fbae(0x1f1)]();return _0x36db38=_0xc951de+'-'+_0xc8ccdc+'-'+_0x575bc1,_0x36db38;}function resetObject(_0x275152){const _0x352296=a4_0x56987c;let _0x1279cf=JSON['parse'](JSON[_0x352296(0x1f5)](_0x275152));for(const _0x276222 in _0x1279cf){if(typeof _0x1279cf[_0x276222]===_0x352296(0x1f0))_0x1279cf[_0x276222]=0x0;else{if(typeof _0x1279cf[_0x276222]===_0x352296(0x1cd))_0x1279cf[_0x276222]=![];else{if(Array[_0x352296(0x1e3)](_0x1279cf[_0x276222]))_0x1279cf[_0x276222]=[];else typeof _0x1279cf[_0x276222]==='object'&&_0x1279cf[_0x276222]!==null?resetObject(_0x1279cf[_0x276222]):_0x1279cf[_0x276222]='';}}}return _0x1279cf;}function preciseOperation(_0x389d63,_0x585baa,_0x927f03,_0x5e0a1c=0xf4240){const _0x5ab8e6=a4_0x56987c;if(isNaN(_0x389d63)||isNaN(_0x585baa))return NaN;if(!isFinite(_0x389d63)||!isFinite(_0x585baa))return NaN;let _0x4f9d31=BigInt(Math[_0x5ab8e6(0x1fa)](_0x389d63*_0x5e0a1c)),_0x1cc99b=BigInt(Math[_0x5ab8e6(0x1fa)](_0x585baa*_0x5e0a1c)),_0x38c6fe;switch(_0x927f03){case 0x1:_0x38c6fe=_0x4f9d31+_0x1cc99b;break;case 0x2:_0x38c6fe=_0x4f9d31-_0x1cc99b;break;case 0x3:_0x38c6fe=_0x4f9d31*_0x1cc99b;break;case 0x4:if(_0x1cc99b===0x0n)throw new Error(_0x5ab8e6(0x1ca));_0x38c6fe=_0x4f9d31/_0x1cc99b;break;default:throw new Error(_0x5ab8e6(0x1d7));}return Number(_0x38c6fe)/_0x5e0a1c;}function preciseSum(_0x4702de){const _0x4ef186=a4_0x56987c;let _0x347843=0x0;for(const _0xeba46e of _0x4702de){let _0x4f639b=0x0;if(typeof _0xeba46e===_0x4ef186(0x1eb)){const _0x4e2378=parseFloat(_0xeba46e);!isNaN(_0x4e2378)&&(_0x4f639b=_0x4e2378);}else typeof _0xeba46e===_0x4ef186(0x1f0)&&(_0x4f639b=_0xeba46e);_0x347843=preciseOperation(_0x347843,_0x4f639b,0x1);}return _0x347843;}function getRelativeDate(_0x497340,_0x1d2c62=0x0){const _0x168b11=a4_0x56987c,_0x3fdff5=new Date(_0x497340);_0x3fdff5[_0x168b11(0x1e7)](_0x3fdff5[_0x168b11(0x1e4)]()+_0x1d2c62);const _0x55754d=_0x3fdff5[_0x168b11(0x1f1)](),_0x3e2438=(_0x3fdff5[_0x168b11(0x1e6)]()+0x1)[_0x168b11(0x1cc)]()[_0x168b11(0x1c9)](0x2,'0'),_0xf6cfa1=_0x3fdff5[_0x168b11(0x1e4)]()[_0x168b11(0x1cc)]()[_0x168b11(0x1c9)](0x2,'0');return _0x55754d+'-'+_0x3e2438+'-'+_0xf6cfa1;}function validateFields(_0x4a4fe7,_0x1c468d,_0xf7719=''){for(let _0x60cc33 of _0x1c468d){if(_0x4a4fe7[_0x60cc33]===_0xf7719)return!![];}return![];}function mergeObjects(_0x4c87c4,_0x440e84){const _0x34aaeb=a4_0x56987c;for(const _0xbb5633 in _0x4c87c4){_0x440e84[_0x34aaeb(0x1f9)](_0xbb5633)&&(_0x4c87c4[_0xbb5633]=_0x440e84[_0xbb5633]);}return _0x4c87c4;}export default{'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_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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {