yunlin 1.0.30 → 1.0.31

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(_0x10c383,_0x175bd5){var _0x2feaec=a1_0x20bb,_0x5f38ea=_0x10c383();while(!![]){try{var _0x7f147e=parseInt(_0x2feaec(0x12d))/0x1+-parseInt(_0x2feaec(0x128))/0x2*(-parseInt(_0x2feaec(0x125))/0x3)+parseInt(_0x2feaec(0x123))/0x4*(parseInt(_0x2feaec(0x129))/0x5)+-parseInt(_0x2feaec(0x127))/0x6*(parseInt(_0x2feaec(0x12c))/0x7)+parseInt(_0x2feaec(0x122))/0x8*(-parseInt(_0x2feaec(0x124))/0x9)+-parseInt(_0x2feaec(0x126))/0xa+-parseInt(_0x2feaec(0x12a))/0xb*(parseInt(_0x2feaec(0x12b))/0xc);if(_0x7f147e===_0x175bd5)break;else _0x5f38ea['push'](_0x5f38ea['shift']());}catch(_0x146c3e){_0x5f38ea['push'](_0x5f38ea['shift']());}}}(a1_0x5a12,0xcc536));function a1_0x20bb(_0x437b97,_0x111150){var _0x5a1240=a1_0x5a12();return a1_0x20bb=function(_0x20bb08,_0x35351b){_0x20bb08=_0x20bb08-0x122;var _0x269285=_0x5a1240[_0x20bb08];return _0x269285;},a1_0x20bb(_0x437b97,_0x111150);}import a1_0x188e4d from'./utils';import a1_0x5a9d06 from'./func';function a1_0x5a12(){var _0x4de215=['9565836CTiAuo','16mOrUKi','2545480ImkbKc','11RYMjtI','12329808xqlFrk','7bTInoU','1524773dvASLC','16vqRnKO','12wkwtIx','2209041PHSvHO','620751JoxsyX','7577910EzKrnP'];a1_0x5a12=function(){return _0x4de215;};return a1_0x5a12();}import a1_0x41c944 from'./test';import a1_0x571caa from'./room';export default{'test':a1_0x41c944,'utils':a1_0x188e4d,'func':a1_0x5a9d06,'room':a1_0x571caa};
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};
package/dist/price.js ADDED
@@ -0,0 +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();}
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- function a2_0x246e(_0x139d78,_0x14ebd5){const _0x201ce7=a2_0x201c();return a2_0x246e=function(_0x246ecb,_0x475c55){_0x246ecb=_0x246ecb-0x1e7;let _0xec27e3=_0x201ce7[_0x246ecb];return _0xec27e3;},a2_0x246e(_0x139d78,_0x14ebd5);}(function(_0x1df78d,_0x9f254e){const _0x514a4b=a2_0x246e,_0x1c2e54=_0x1df78d();while(!![]){try{const _0x5f510f=parseInt(_0x514a4b(0x1fc))/0x1+parseInt(_0x514a4b(0x1ed))/0x2+-parseInt(_0x514a4b(0x1fd))/0x3+-parseInt(_0x514a4b(0x1f3))/0x4+-parseInt(_0x514a4b(0x1e8))/0x5+parseInt(_0x514a4b(0x1ee))/0x6*(-parseInt(_0x514a4b(0x1f1))/0x7)+parseInt(_0x514a4b(0x1fb))/0x8;if(_0x5f510f===_0x9f254e)break;else _0x1c2e54['push'](_0x1c2e54['shift']());}catch(_0x358c0f){_0x1c2e54['push'](_0x1c2e54['shift']());}}}(a2_0x201c,0x78141));function getRoomCount(_0x205a56,_0x39c8e0){const _0x1a2724=a2_0x246e,_0x243b4c=Array[_0x1a2724(0x1f8)](_0x205a56);if(!_0x243b4c)_0x205a56=[_0x205a56];let _0x54076c=[];return _0x205a56['forEach'](_0x1be2d5=>{const _0x295797=_0x1a2724;let _0x11ccdf=![];if(!_0x1be2d5[_0x295797(0x1f0)]){let _0x1a1098=_0x1be2d5['adultnum'];if(_0x1be2d5['childusebed']||!_0x39c8e0[_0x295797(0x1e9)])_0x1a1098+=_0x1be2d5[_0x295797(0x1f5)];const _0x441d85=_0x39c8e0[_0x295797(0x1f9)][_0x295797(0x1f2)](_0x563e4e=>Number(_0x563e4e[_0x295797(0x1ff)])===_0x1a1098);if(!_0x441d85)_0x11ccdf=!![];else{let _0x252eaa=_0x1be2d5[_0x295797(0x1ea)]+_0x1be2d5['childrennum']+_0x1be2d5[_0x295797(0x1ef)];_0x252eaa>_0x441d85['nMaxIn']&&(_0x11ccdf=!![]);}}_0x54076c['push'](_0x11ccdf);}),_0x243b4c?_0x54076c:_0x54076c[0x0];}function getRoomConfig(_0x45ed5f){const _0x407612=a2_0x246e;let _0x53b913=_0x45ed5f[_0x407612(0x200)](_0x5cb85e=>_0x5cb85e['strCode']===_0x407612(0x1eb)),_0x199fd5=_0x45ed5f[_0x407612(0x200)](_0x393505=>_0x393505[_0x407612(0x1ff)]===_0x407612(0x1f6));const _0x4d941b=_0x45ed5f[_0x407612(0x200)](_0x49ef55=>_0x49ef55[_0x407612(0x1ff)]===_0x407612(0x201)),_0x13b95=_0x45ed5f[_0x407612(0x200)](_0x1d4b15=>_0x1d4b15[_0x407612(0x1ff)]===_0x407612(0x1e9)),_0x5363a7=_0x45ed5f[_0x407612(0x1fe)](_0x476a62=>{const _0x42e258=_0x407612;return{'strCode':_0x476a62['strCode'],'nMaxIn':_0x476a62[_0x42e258(0x1fa)]};});if(_0x199fd5){const _0x513e8a=_0x45ed5f[_0x407612(0x200)](_0x58b220=>_0x58b220[_0x407612(0x1ff)]=='2');_0x199fd5=_0x199fd5&&_0x513e8a;}if(_0x53b913)_0x53b913=_0x53b913&&_0x13b95;return{'childusebed':_0x53b913,'half':_0x199fd5,'infant':_0x4d941b,'child':_0x13b95,'list':_0x5363a7};}function a2_0x201c(){const _0x39da99=['19211816PQUPAU','297469SYUeFY','2382333EqEzEI','map','strCode','some','infant','push','2215245eBdvAT','child','adultnum','childusebed','length','412276BDsjFP','2946wcKNBx','infantnum','isalotment','12740eGivMa','find','1129852JPKOVk','max','childrennum','half','filter','isArray','list','nMaxIn'];a2_0x201c=function(){return _0x39da99;};return a2_0x201c();}function isRoomPiece(_0x5a9390,_0x272ad3){const _0x314704=a2_0x246e;return _0x272ad3&&_0x5a9390['adultnum']===0x1&&_0x5a9390['childrennum']===0x0&&_0x5a9390[_0x314704(0x1ef)]===0x0;}function getRoomItemRange(_0x62c9df,_0x3e6773,_0x53007e={'child':'兒童','infant':'嬰兒'}){const _0x28bc35=a2_0x246e;if(!_0x3e6773[_0x28bc35(0x1ec)])return{'list':[],'yelist':[]};const _0x520351=Math[_0x28bc35(0x1f4)](..._0x3e6773[_0x28bc35(0x1fe)](_0x10dda3=>Number(_0x10dda3[_0x28bc35(0x1fa)]))),_0x1e5342=_0x520351-_0x62c9df[_0x28bc35(0x1ea)]-_0x62c9df[_0x28bc35(0x1ef)];let _0x1ce45c=_0x520351-_0x62c9df['adultnum']-_0x62c9df[_0x28bc35(0x1f5)];if(_0x1ce45c>0x2)_0x1ce45c=0x2;const _0x2e4776=(_0x276359,_0x5821ae)=>{const _0x10e40e=[];_0x10e40e['push']({'value':0x0,'text':'0\x20'+_0x5821ae});for(let _0x4633af=0x0;_0x4633af<_0x276359;_0x4633af++){_0x10e40e['push']({'value':_0x4633af+0x1,'text':_0x4633af+0x1+'\x20'+_0x5821ae});}return _0x10e40e;};return{'list':_0x2e4776(_0x1e5342,_0x53007e[_0x28bc35(0x1e9)]),'yelist':_0x2e4776(_0x1ce45c,_0x53007e['infant'])};}function getAdultRange(_0x532540,_0xfed35c='成人'){const _0x28e036=a2_0x246e;let _0x4659cd=Math[_0x28e036(0x1f4)](..._0x532540[_0x28e036(0x1fe)](_0x2309aa=>Number(_0x2309aa[_0x28e036(0x1ff)]))[_0x28e036(0x1f7)](_0x3d1cd6=>!isNaN(_0x3d1cd6)));if(!_0x4659cd)_0x4659cd=0x4;let _0x13b8f6=[];for(var _0x3630ac=0x1;_0x3630ac<_0x4659cd+0x1;_0x3630ac++){_0x13b8f6[_0x28e036(0x1e7)]({'value':_0x3630ac,'text':_0x3630ac+'\x20'+_0xfed35c});}return _0x13b8f6;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
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};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x31a2da,_0x3ce898){const _0x4128ac=a3_0x2efd,_0x29220b=_0x31a2da();while(!![]){try{const _0x3d40ed=-parseInt(_0x4128ac(0xa1))/0x1+parseInt(_0x4128ac(0x9a))/0x2*(parseInt(_0x4128ac(0xa3))/0x3)+parseInt(_0x4128ac(0x8b))/0x4*(-parseInt(_0x4128ac(0x99))/0x5)+parseInt(_0x4128ac(0x8e))/0x6*(-parseInt(_0x4128ac(0x8c))/0x7)+-parseInt(_0x4128ac(0x87))/0x8+-parseInt(_0x4128ac(0x86))/0x9*(parseInt(_0x4128ac(0xa2))/0xa)+parseInt(_0x4128ac(0x8a))/0xb;if(_0x3d40ed===_0x3ce898)break;else _0x29220b['push'](_0x29220b['shift']());}catch(_0x320a22){_0x29220b['push'](_0x29220b['shift']());}}}(a3_0x3a01,0x3fcdf));function email(_0x3b32b2){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/['test'](_0x3b32b2);}function mobile(_0x2d9ea7){const _0x131bed=a3_0x2efd;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x131bed(0x9b)](_0x2d9ea7);}function isValidPhoneNumber(_0x3b5709){const _0x26b71c=a3_0x2efd;if(_0x3b5709[_0x26b71c(0x90)]('-')){const [_0x26e4f5,_0x22b7f0]=_0x3b5709[_0x26b71c(0x98)]('-');if(_0x26e4f5==='86')return/^\d{11}$/[_0x26b71c(0x9b)](_0x22b7f0)&&_0x22b7f0[_0x26b71c(0xa6)]('1');else return _0x26e4f5===_0x26b71c(0x89)?/^\d{8}$/[_0x26b71c(0x9b)](_0x22b7f0)&&['5','6','9','8'][_0x26b71c(0x90)](_0x22b7f0[_0x26b71c(0x96)](0x0)):/^\d+$/[_0x26b71c(0x9b)](_0x22b7f0);}else return/^\d+$/[_0x26b71c(0x9b)](_0x3b5709);}function url(_0x2a8de2){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'](_0x2a8de2);}function a3_0x3a01(){const _0xcae0ef=['308410ODyqwN','789PjsrAN','undefined','call','startsWith','then','object','9xhHIug','2931416QRGAIX','number','852','10456237WxCiOR','178212hMFZcF','1209509YRZCfJ','length','12YwNZKQ','^\x5cd{','includes','catch','[object\x20Array]','toString','isArray','[object\x20RegExp]','charAt','function','split','10zLWrBs','3490cxNbTs','test','string','prototype','[object\x20Object]','boolean','parse','316211JbJsfQ'];a3_0x3a01=function(){return _0xcae0ef;};return a3_0x3a01();}function date(_0x422fc1){const _0xc5e61a=a3_0x2efd;if(!_0x422fc1)return![];if(number(_0x422fc1))_0x422fc1=+_0x422fc1;return!/Invalid|NaN/[_0xc5e61a(0x9b)](new Date(_0x422fc1)[_0xc5e61a(0x93)]());}function dateISO(_0x23a3a4){const _0x22af5f=a3_0x2efd;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x22af5f(0x9b)](_0x23a3a4);}function isNumber(_0x18b42f){const _0x47a764=a3_0x2efd;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x47a764(0x9b)](_0x18b42f);}function isString(_0x1bc845){const _0x3ff238=a3_0x2efd;return typeof _0x1bc845===_0x3ff238(0x9c);}function digits(_0x4ed8c6){const _0x23f877=a3_0x2efd;return/^\d+$/[_0x23f877(0x9b)](_0x4ed8c6);}function idCard(_0x3601c6){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/['test'](_0x3601c6);}function carNo(_0x16c6c0){const _0xfa8812=a3_0x2efd,_0x5b3e6b=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4e6ebb=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x16c6c0['length']===0x7)return _0x4e6ebb['test'](_0x16c6c0);if(_0x16c6c0[_0xfa8812(0x8d)]===0x8)return _0x5b3e6b[_0xfa8812(0x9b)](_0x16c6c0);return![];}function amount(_0x9f3f51){const _0x1f3ce3=a3_0x2efd;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x1f3ce3(0x9b)](_0x9f3f51);}function chinese(_0x45e86e){const _0x4cae48=/^[\u4e00-\u9fa5]+$/gi;return _0x4cae48['test'](_0x45e86e);}function letter(_0x30c1e1){const _0x3f4508=a3_0x2efd;return/^[a-zA-Z]*$/[_0x3f4508(0x9b)](_0x30c1e1);}function enOrNum(_0x2acd59){const _0xc637b9=a3_0x2efd,_0x37ca61=/^[0-9a-zA-Z]*$/g;return _0x37ca61[_0xc637b9(0x9b)](_0x2acd59);}function contains(_0x27f76a,_0x397f25){return _0x27f76a['indexOf'](_0x397f25)>=0x0;}function range(_0x184474,_0xc8e31){return _0x184474>=_0xc8e31[0x0]&&_0x184474<=_0xc8e31[0x1];}function rangeLength(_0x521d14,_0x3de914){const _0x43e54d=a3_0x2efd;return _0x521d14[_0x43e54d(0x8d)]>=_0x3de914[0x0]&&_0x521d14[_0x43e54d(0x8d)]<=_0x3de914[0x1];}function landline(_0x4497d7){const _0x52dd30=a3_0x2efd,_0x352a73=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x352a73[_0x52dd30(0x9b)](_0x4497d7);}function empty(_0x1e8ab6){const _0x5f42a9=a3_0x2efd;switch(typeof _0x1e8ab6){case _0x5f42a9(0xa4):return!![];case _0x5f42a9(0x9c):if(_0x1e8ab6['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x5f42a9(0x8d)]==0x0)return!![];break;case _0x5f42a9(0x9f):if(!_0x1e8ab6)return!![];break;case'number':if(_0x1e8ab6===0x0||isNaN(_0x1e8ab6))return!![];break;case _0x5f42a9(0xa8):if(_0x1e8ab6===null||_0x1e8ab6[_0x5f42a9(0x8d)]===0x0)return!![];for(const _0x2b48eb in _0x1e8ab6){return![];}return!![];}return![];}function a3_0x2efd(_0x2433ce,_0x545229){const _0x3a0155=a3_0x3a01();return a3_0x2efd=function(_0x2efde8,_0x2f149e){_0x2efde8=_0x2efde8-0x86;let _0x33753a=_0x3a0155[_0x2efde8];return _0x33753a;},a3_0x2efd(_0x2433ce,_0x545229);}function jsonString(_0x29883a){const _0x20fda0=a3_0x2efd;if(typeof _0x29883a===_0x20fda0(0x9c))try{const _0x26b32e=JSON[_0x20fda0(0xa0)](_0x29883a);if(typeof _0x26b32e==='object'&&_0x26b32e)return!![];return![];}catch(_0x3c13f5){return![];}return![];}function array(_0x5d17fc){const _0x127aad=a3_0x2efd;if(typeof Array['isArray']===_0x127aad(0x97))return Array[_0x127aad(0x94)](_0x5d17fc);return Object['prototype'][_0x127aad(0x93)][_0x127aad(0xa5)](_0x5d17fc)===_0x127aad(0x92);}function object(_0x4c2251){const _0x18f0c9=a3_0x2efd;return Object['prototype'][_0x18f0c9(0x93)]['call'](_0x4c2251)===_0x18f0c9(0x9e);}function code(_0x106c7a,_0x53d029=0x6){const _0x5a5338=a3_0x2efd;return new RegExp(_0x5a5338(0x8f)+_0x53d029+'}$')[_0x5a5338(0x9b)](_0x106c7a);}function func(_0x4f31c9){return typeof _0x4f31c9==='function';}function promise(_0xd920a0){const _0x452ec8=a3_0x2efd;return object(_0xd920a0)&&func(_0xd920a0[_0x452ec8(0xa7)])&&func(_0xd920a0[_0x452ec8(0x91)]);}function image(_0x59cfc8){const _0x15f5bf=a3_0x2efd,_0x2d099b=_0x59cfc8[_0x15f5bf(0x98)]('?')[0x0],_0x2e0043=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x2e0043[_0x15f5bf(0x9b)](_0x2d099b);}function video(_0x2f1f8c){const _0x99acac=a3_0x2efd,_0x45777e=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x45777e[_0x99acac(0x9b)](_0x2f1f8c);}function regExp(_0x46ddb6){const _0x382d8b=a3_0x2efd;return _0x46ddb6&&Object[_0x382d8b(0x9d)]['toString']['call'](_0x46ddb6)===_0x382d8b(0x95);}function isNumeric(_0x1f9313,_0x2258d9=0x0){const _0x30b84f=a3_0x2efd;if(typeof _0x1f9313===_0x30b84f(0x88))_0x1f9313=_0x1f9313[_0x30b84f(0x93)]();if(typeof _0x1f9313!==_0x30b84f(0x9c))return![];switch(_0x2258d9){case 0x1:return/^\d+(\.\d+)?$/[_0x30b84f(0x9b)](_0x1f9313);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x1f9313);case 0x3:return/^-?\d+$/[_0x30b84f(0x9b)](_0x1f9313);case 0x4:return/^\d+$/[_0x30b84f(0x9b)](_0x1f9313);case 0x5:return/^-\d+$/['test'](_0x1f9313);default:return/^-?\d*\.?\d*$/['test'](_0x1f9313)&&!_0x1f9313[_0x30b84f(0xa6)]('.')&&!_0x1f9313[_0x30b84f(0x90)]('--');}}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(_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};
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- const a4_0x1ce016=a4_0x58c5;(function(_0x485f44,_0x37e6b3){const _0x1ad7c0=a4_0x58c5,_0x2ae301=_0x485f44();while(!![]){try{const _0x4051d0=-parseInt(_0x1ad7c0(0xf9))/0x1+parseInt(_0x1ad7c0(0x11b))/0x2*(-parseInt(_0x1ad7c0(0xf4))/0x3)+parseInt(_0x1ad7c0(0x103))/0x4*(-parseInt(_0x1ad7c0(0x10d))/0x5)+parseInt(_0x1ad7c0(0x122))/0x6+parseInt(_0x1ad7c0(0x10a))/0x7*(-parseInt(_0x1ad7c0(0x10e))/0x8)+-parseInt(_0x1ad7c0(0x10b))/0x9*(parseInt(_0x1ad7c0(0x112))/0xa)+parseInt(_0x1ad7c0(0x106))/0xb;if(_0x4051d0===_0x37e6b3)break;else _0x2ae301['push'](_0x2ae301['shift']());}catch(_0x41ac6f){_0x2ae301['push'](_0x2ae301['shift']());}}}(a4_0x18a7,0xee70c));function fmtNum(_0x1522cf){const _0x28ba86=a4_0x58c5;if(_0x1522cf==0x0)return'0';if(!_0x1522cf)return'';let _0xca46d=typeof _0x1522cf===_0x28ba86(0x108)?parseFloat(_0x1522cf):_0x1522cf;if(isNaN(_0xca46d))return'';return _0xca46d[_0x28ba86(0x128)](_0x28ba86(0x126),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x361cc3,_0xccaef1=![]){const _0x114010=a4_0x58c5;let _0x32bd1e={'surname':'','givenName':''};if(_0xccaef1){const _0x2a0498=_0x361cc3[_0x114010(0x116)](',')?_0x361cc3[_0x114010(0x11c)](','):_0x361cc3['split'](/\s+/);_0x2a0498[_0x114010(0xf3)]>=0x2&&(_0x32bd1e[_0x114010(0xf8)]=_0x2a0498[0x0][_0x114010(0xf6)](),_0x32bd1e['givenName']=_0x2a0498[0x1][_0x114010(0xf6)]());}else{const _0x12ee88=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x5e3a2d=0x0;_0x5e3a2d<_0x12ee88[_0x114010(0xf3)];_0x5e3a2d++){const _0x3fd102=_0x12ee88[_0x5e3a2d];if(_0x361cc3[_0x114010(0xfc)](_0x3fd102))return _0x32bd1e['surname']=_0x3fd102,_0x32bd1e['givenName']=_0x361cc3[_0x114010(0x124)](_0x3fd102['length'])['trim'](),_0x32bd1e;}const _0x3e3c9f=_0x361cc3['split']('\x20');if(_0x3e3c9f['length']===0x1){const _0x7b8c7a=_0x361cc3[_0x114010(0x120)](/[\u4e00-\u9fa5]/);_0x32bd1e[_0x114010(0xf8)]=_0x7b8c7a?_0x7b8c7a[0x0]:'',_0x32bd1e[_0x114010(0x123)]=_0x361cc3[_0x114010(0x115)](_0x32bd1e[_0x114010(0xf8)],'')['trim']();}else _0x32bd1e['surname']=_0x3e3c9f[0x0],_0x32bd1e['givenName']=_0x3e3c9f[_0x114010(0x118)](0x1)[_0x114010(0x119)]('\x20');}return _0x32bd1e;}function modifyKeys(_0x4210ff,_0x2f943f={'strCode':a4_0x1ce016(0x11f),'strFjbh':a4_0x1ce016(0xfd),'strGuid':a4_0x1ce016(0xf7),'strValue':a4_0x1ce016(0x109)}){const _0x2060b4=a4_0x1ce016;if(!_0x4210ff[_0x2060b4(0xf3)]||_0x4210ff===null)return[];const _0x4cec7f=_0x4210ff[_0x2060b4(0x11a)](_0x441fc0=>{const _0x1d90ac={};for(const _0x96d1a4 in _0x441fc0){_0x2f943f['hasOwnProperty'](_0x96d1a4)?_0x1d90ac[_0x2f943f[_0x96d1a4]]=_0x441fc0[_0x96d1a4]:_0x1d90ac[_0x96d1a4]=_0x441fc0[_0x96d1a4];}return _0x1d90ac;});return _0x4cec7f;}function sliceArray(_0x163400,_0x491783,_0x150c0b){const _0x7969=a4_0x1ce016;if(_0x491783<=0x0)return console[_0x7969(0x10f)](_0x7969(0x125)),[];return _0x150c0b?_0x163400[_0x7969(0x118)](0x0,_0x491783):_0x163400[_0x7969(0x118)](-_0x491783);}function findDataByData(_0x20743a,_0x63ce12,_0x2d1199){const _0x2a9610=a4_0x1ce016,_0x36f4bb=_0x20743a[_0x2a9610(0x110)](_0x381e48=>_0x381e48[_0x2d1199]===_0x63ce12);return _0x36f4bb||null;}function splitArray(_0x101d51,_0x32ccaa){const _0x446b6f=a4_0x1ce016,_0x28e1ce=[];for(let _0x2a41fb=0x0;_0x2a41fb<_0x101d51[_0x446b6f(0xf3)];_0x2a41fb+=_0x32ccaa){_0x28e1ce[_0x446b6f(0x127)](_0x101d51[_0x446b6f(0x118)](_0x2a41fb,_0x2a41fb+_0x32ccaa));}return _0x28e1ce;}function getProxyType(_0x5af452){const _0x5340ee=a4_0x1ce016;return Object[_0x5340ee(0x101)]['toString'][_0x5340ee(0xfb)](_0x5af452)[_0x5340ee(0x118)](0x8,-0x1);}let timeout=null;function debounce(_0x4b8c10,_0x205c9e=0x1f4,_0x5df112=![]){const _0x168a70=a4_0x1ce016;if(timeout!==null)clearTimeout(timeout);if(_0x5df112){const _0x190fb6=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x205c9e);if(_0x190fb6)typeof _0x4b8c10===_0x168a70(0xfa)&&_0x4b8c10();}else timeout=setTimeout(()=>{const _0x5ff321=_0x168a70;typeof _0x4b8c10===_0x5ff321(0xfa)&&_0x4b8c10();},_0x205c9e);}function matchKeyValueInArray(_0x3109d9,_0x29479d,_0x180e0d){const _0x48effd=a4_0x1ce016;for(let _0x186f48=0x0;_0x186f48<_0x3109d9[_0x48effd(0xf3)];_0x186f48++){if(_0x3109d9[_0x186f48][_0x29479d]===_0x180e0d)return!![];}return![];}function urlEncode(_0x2edbd7={}){const _0x481b9b=a4_0x1ce016,_0x4a2401=[];for(const _0x51a41f in _0x2edbd7){const _0xffadf1=_0x2edbd7[_0x51a41f];if(!_0xffadf1)continue;isArray(_0xffadf1)?_0xffadf1[_0x481b9b(0x129)](_0x4b2cac=>{const _0x337861=_0x481b9b;_0x4a2401[_0x337861(0x127)](_0x51a41f+'='+_0x4b2cac);}):_0x4a2401[_0x481b9b(0x127)](_0x51a41f+'='+_0xffadf1);}return _0x4a2401[_0x481b9b(0x119)]('&');}function compareDates(_0x43e312,_0x254311){const _0x485831=a4_0x1ce016;_0x43e312=new Date(_0x43e312);!_0x254311?_0x254311=new Date():_0x254311=new Date(_0x254311);_0x43e312[_0x485831(0x11d)](0x0,0x0,0x0,0x0),_0x254311['setHours'](0x0,0x0,0x0,0x0);var _0x3cd99e=_0x43e312[_0x485831(0x111)](),_0x13120a=_0x254311[_0x485831(0x111)]();if(_0x3cd99e<_0x13120a)return-0x1;else return _0x3cd99e>_0x13120a?0x1:0x0;}function getDaysBetween(_0x49fd0f,_0x32a2ba){const _0x2455ca=a4_0x1ce016,_0x38d69c=new Date(_0x49fd0f),_0xb2af1=new Date(_0x32a2ba),_0x9a3aea=Math[_0x2455ca(0xf5)](_0x38d69c[_0x2455ca(0x111)]()-_0xb2af1['getTime']()),_0x2c11b2=Math[_0x2455ca(0x114)](_0x9a3aea/(0x3e8*0x3c*0x3c*0x18));return _0x2c11b2+0x1;}function chineseNumeral(_0x3c2960){const _0x1fa990=a4_0x1ce016,_0x100cdd=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x4d2341=['','拾','佰','仟'],_0x2b7f05=['','万','亿','兆'];let _0x3e44e7=Math[_0x1fa990(0x114)](_0x3c2960),_0x330ab5=Math[_0x1fa990(0x117)]((_0x3c2960-_0x3e44e7)*0x64),_0x7f7b18='';for(let _0x198b00=0x0;_0x3e44e7>0x0;_0x198b00++){let _0x204573='',_0x1a72b0=_0x3e44e7%0x2710;_0x3e44e7=Math['floor'](_0x3e44e7/0x2710);for(let _0x37e90c=0x0;_0x1a72b0>0x0;_0x37e90c++){let _0x4f3ffa=_0x1a72b0%0xa;_0x204573=(_0x4f3ffa?_0x100cdd[_0x4f3ffa]+_0x4d2341[_0x37e90c]:'')+_0x204573,_0x1a72b0=Math['floor'](_0x1a72b0/0xa);}_0x7f7b18=_0x204573+(_0x204573?_0x2b7f05[_0x198b00]:_0x2b7f05[_0x198b00]&&!_0x7f7b18[_0x1fa990(0x116)]('零')?'零':'')+_0x7f7b18;}_0x7f7b18+=_0x7f7b18?'元':'零元';if(_0x330ab5>0x0){let _0x5cb7e1=Math['floor'](_0x330ab5/0xa),_0xc88f69=_0x330ab5%0xa;_0x7f7b18+=(_0x5cb7e1?_0x100cdd[_0x5cb7e1]+'角':'')+(_0xc88f69?_0x100cdd[_0xc88f69]+'分':'');}else _0x7f7b18+='整';return _0x7f7b18[_0x1fa990(0x115)](/零{2,}/g,'零')[_0x1fa990(0x115)](/零元/,'元');}function getMonthDate(_0x765a67){const _0x56f503=a4_0x1ce016;(!_0x765a67||_0x765a67[_0x56f503(0xf6)]()==='')&&(_0x765a67=new Date()[_0x56f503(0xf2)]()+'-'+(new Date()[_0x56f503(0x102)]()+0x1));let _0x530541=[],[_0x5072c7,_0x56c76a]=_0x765a67[_0x56f503(0x11c)]('-')[_0x56f503(0x11a)](Number),_0x4a3ac1=new Date(_0x5072c7,_0x56c76a,0x0),_0x288c7d=_0x4a3ac1['getDate']();for(let _0x5e5184=0x1;_0x5e5184<=_0x288c7d;_0x5e5184++){let _0x1b3d50=_0x5e5184<0xa?'0'+_0x5e5184:''+_0x5e5184,_0x372d2c=_0x56c76a<0xa?'0'+_0x56c76a:''+_0x56c76a;_0x530541[_0x56f503(0x127)]({'date':_0x5072c7+'-'+_0x372d2c+'-'+_0x1b3d50,'disable':!![]});}return _0x530541;}function getToday(_0x27fe1e){const _0x474eb5=a4_0x1ce016;var _0x135191=new Date(),_0x46b7aa=String(_0x135191[_0x474eb5(0x105)]())[_0x474eb5(0x100)](0x2,'0'),_0x21a6e6=String(_0x135191['getMonth']()+0x1)[_0x474eb5(0x100)](0x2,'0'),_0x218f62=_0x135191['getFullYear']();return _0x135191=_0x218f62+'-'+_0x21a6e6+'-'+_0x46b7aa,_0x135191;}function a4_0x58c5(_0x4f0ca5,_0x4d6d35){const _0x18a731=a4_0x18a7();return a4_0x58c5=function(_0x58c539,_0x125fea){_0x58c539=_0x58c539-0xf2;let _0x533c5c=_0x18a731[_0x58c539];return _0x533c5c;},a4_0x58c5(_0x4f0ca5,_0x4d6d35);}function resetObject(_0x18f4a6){const _0x4c4f4e=a4_0x1ce016;let _0x3d0727=JSON[_0x4c4f4e(0x11e)](JSON[_0x4c4f4e(0x121)](_0x18f4a6));for(const _0x1c4de3 in _0x3d0727){if(typeof _0x3d0727[_0x1c4de3]===_0x4c4f4e(0x107))_0x3d0727[_0x1c4de3]=0x0;else{if(typeof _0x3d0727[_0x1c4de3]===_0x4c4f4e(0x113))_0x3d0727[_0x1c4de3]=![];else{if(Array[_0x4c4f4e(0xff)](_0x3d0727[_0x1c4de3]))_0x3d0727[_0x1c4de3]=[];else typeof _0x3d0727[_0x1c4de3]==='object'&&_0x3d0727[_0x1c4de3]!==null?resetObject(_0x3d0727[_0x1c4de3]):_0x3d0727[_0x1c4de3]='';}}}return _0x3d0727;}function preciseOperation(_0x14f4de,_0x1f06dd,_0x321d32,_0x2784fd=0xf4240){const _0x7cad6c=a4_0x1ce016;if(isNaN(_0x14f4de)||isNaN(_0x1f06dd))return NaN;if(!isFinite(_0x14f4de)||!isFinite(_0x1f06dd))return NaN;let _0x3ab224=BigInt(Math[_0x7cad6c(0x117)](_0x14f4de*_0x2784fd)),_0x2a6aeb=BigInt(Math['round'](_0x1f06dd*_0x2784fd)),_0x5f2b0c;switch(_0x321d32){case 0x1:_0x5f2b0c=_0x3ab224+_0x2a6aeb;break;case 0x2:_0x5f2b0c=_0x3ab224-_0x2a6aeb;break;case 0x3:_0x5f2b0c=_0x3ab224*_0x2a6aeb;break;case 0x4:if(_0x2a6aeb===0x0n)throw new Error('除数不能为0');_0x5f2b0c=_0x3ab224/_0x2a6aeb;break;default:throw new Error(_0x7cad6c(0x10c));}return Number(_0x5f2b0c)/_0x2784fd;}function preciseSum(_0x1641d4){const _0x4161fa=a4_0x1ce016;let _0x2c5239=0x0;for(const _0x43677c of _0x1641d4){let _0x5cab0e=0x0;if(typeof _0x43677c===_0x4161fa(0x108)){const _0x6aa51d=parseFloat(_0x43677c);!isNaN(_0x6aa51d)&&(_0x5cab0e=_0x6aa51d);}else typeof _0x43677c==='number'&&(_0x5cab0e=_0x43677c);_0x2c5239=preciseOperation(_0x2c5239,_0x5cab0e,0x1);}return _0x2c5239;}function getRelativeDate(_0x3cba4c,_0x1eb7e2=0x0){const _0x55ddf7=a4_0x1ce016,_0x5579b5=new Date(_0x3cba4c);_0x5579b5['setDate'](_0x5579b5[_0x55ddf7(0x105)]()+_0x1eb7e2);const _0x1c7fe2=_0x5579b5[_0x55ddf7(0xf2)](),_0x557ad8=(_0x5579b5[_0x55ddf7(0x102)]()+0x1)[_0x55ddf7(0xfe)]()[_0x55ddf7(0x100)](0x2,'0'),_0x3241c4=_0x5579b5[_0x55ddf7(0x105)]()['toString']()[_0x55ddf7(0x100)](0x2,'0');return _0x1c7fe2+'-'+_0x557ad8+'-'+_0x3241c4;}function a4_0x18a7(){const _0x1b2f60=['3089300EhKMrn','3489656eemdXG','error','find','getTime','10bUaIiV','boolean','floor','replace','includes','round','slice','join','map','751844eooZlX','split','setHours','parse','code','match','stringify','396600rCumus','givenName','substring','Quantity\x20should\x20be\x20greater\x20than\x200.','en-US','push','toLocaleString','forEach','getFullYear','length','6xWPffR','abs','trim','value','surname','658865xakXzD','function','call','startsWith','fjbh','toString','isArray','padStart','prototype','getMonth','12dTbIeH','hasOwnProperty','getDate','56564321lKkipn','number','string','label','7NtSqXm','4780467heFmvf','无效的操作符,操作符应为1、2、3或4'];a4_0x18a7=function(){return _0x1b2f60;};return a4_0x18a7();}function validateFields(_0x330001,_0x1771a1,_0x23b298=''){for(let _0x20bf98 of _0x1771a1){if(_0x330001[_0x20bf98]===_0x23b298)return!![];}return![];}function mergeObjects(_0x56be58,_0x24ed7b){const _0x407726=a4_0x1ce016;for(const _0x23110b in _0x56be58){_0x24ed7b[_0x407726(0x104)](_0x23110b)&&(_0x56be58[_0x23110b]=_0x24ed7b[_0x23110b]);}return _0x56be58;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'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_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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {
package/dist/func.js DELETED
@@ -1 +0,0 @@
1
- const a0_0x1b3cfe=a0_0x21c1;(function(_0x4f69fa,_0x1b9f33){const _0x2a9a31=a0_0x21c1,_0x53e7a3=_0x4f69fa();while(!![]){try{const _0x4fd22c=parseInt(_0x2a9a31(0xd0))/0x1+parseInt(_0x2a9a31(0xd9))/0x2+-parseInt(_0x2a9a31(0xf7))/0x3+parseInt(_0x2a9a31(0xe5))/0x4+-parseInt(_0x2a9a31(0x101))/0x5*(-parseInt(_0x2a9a31(0x103))/0x6)+-parseInt(_0x2a9a31(0xd6))/0x7*(-parseInt(_0x2a9a31(0xef))/0x8)+-parseInt(_0x2a9a31(0xee))/0x9;if(_0x4fd22c===_0x1b9f33)break;else _0x53e7a3['push'](_0x53e7a3['shift']());}catch(_0x2303d1){_0x53e7a3['push'](_0x53e7a3['shift']());}}}(a0_0x1579,0xc8011));function a0_0x1579(){const _0x4f7a56=['tipuser','其他費用','unit','tip','childprice','service','filter','保險費用','basechildprice','insure','984196ojZGMZ','unitprice','strLx','viprecharge','兒童[占床]','附加行程','減免費用','baseprice','money','29528730AiLMAY','9832quxGKc','fJcbzlsjUnit','name','push','other','promotion','vipdiscounted','fLsjUnit','1086636MTVMQH','reduction','adultprice','price','point','itemname','vip','totaltax','map','人員費用','5pZcLPP','airtax','3041238NwfFGg','people','機場稅','nRs','list','trip','users','length','base','遊客優惠','unitpricewb','childnum','\x20*\x20','adultnum','1322686JouoVZ','rylx','num','child','totalprice','tipday','5509UKKhio','會員充值','優惠券','2839136odUVxW','elder'];a0_0x1579=function(){return _0x4f7a56;};return a0_0x1579();}function handleCosting(_0x5847c9,_0x4296f3='',_0x144553='-',_0x8a64c9={'people':a0_0x1b3cfe(0x100),'service':'附加服務','trip':a0_0x1b3cfe(0xea),'other':a0_0x1b3cfe(0xdc),'reduction':a0_0x1b3cfe(0xeb),'totalprice':'總計','airtax':a0_0x1b3cfe(0x105)},_0x167b5a={'adult':'成人','child':'兒童','childusebed':a0_0x1b3cfe(0xe9),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x1b3cfe(0xcb),'vip':'會員減免','promotion':'促銷','insure':a0_0x1b3cfe(0xe2),'coupon':a0_0x1b3cfe(0xd8),'point':'積分','tax':'稅金','viprecharge':a0_0x1b3cfe(0xd7),'r':'人','t':'天'}){const _0x4660aa=a0_0x1b3cfe;let _0xcade4c=[];const _0x15cbb7=_0x4660aa(0xce),_0x4c4a98=_0x5847c9[_0x4660aa(0xe1)](_0x270f0b=>_0x270f0b[_0x4660aa(0xe7)]=='base');if(_0x4c4a98[_0x4660aa(0xc9)]){let _0x2382f1={'title':_0x8a64c9[_0x4660aa(0x104)],'type':_0x4660aa(0xca),'list':[]};_0x4c4a98[_0x4660aa(0xff)](_0x415671=>{const _0x43a654=_0x4660aa;_0x2382f1[_0x43a654(0x107)]['push']({'title':_0x167b5a[_0x415671['strJgbm']],'info':_0x4296f3+_0x415671['fLsjUnit']+_0x15cbb7+_0x415671[_0x43a654(0x106)],'nRs':_0x415671['nRs'],'unit':_0x415671[_0x43a654(0xf6)],'cb':_0x415671[_0x43a654(0xf0)],'type':_0x43a654(0xca)});}),_0xcade4c['push'](_0x2382f1);}const _0x2fa7ce=_0x5847c9[_0x4660aa(0xe1)](_0x3bc9e3=>_0x3bc9e3[_0x4660aa(0xe7)]=='service');if(_0x2fa7ce['length']){let _0x4d1cea={'title':_0x8a64c9['service'],'type':'service','list':[]};_0x2fa7ce[_0x4660aa(0xff)](_0x619e22=>{const _0x1b30c8=_0x4660aa;_0x4d1cea['list'][_0x1b30c8(0xf2)]({'title':_0x619e22[_0x1b30c8(0xf1)]+('['+_0x619e22[_0x1b30c8(0xfc)]+']'),'info':_0x4296f3+_0x619e22[_0x1b30c8(0xe6)]+_0x15cbb7+_0x619e22['num'],'nRs':_0x619e22[_0x1b30c8(0xd2)],'unit':_0x619e22[_0x1b30c8(0xe6)],'cb':_0x619e22[_0x1b30c8(0xec)],'type':_0x1b30c8(0xe0)});}),_0xcade4c['push'](_0x4d1cea);}const _0xf3818f=_0x5847c9[_0x4660aa(0xe1)](_0x5a37a5=>_0x5a37a5[_0x4660aa(0xe7)]==_0x4660aa(0x108));if(_0xf3818f['length']){let _0x416477={'title':_0x8a64c9[_0x4660aa(0x108)],'type':_0x4660aa(0x108),'list':[]};_0xf3818f[_0x4660aa(0xff)](_0x1faffd=>{const _0x15d172=_0x4660aa;_0x1faffd[_0x15d172(0xcf)]!='0'&&_0x416477[_0x15d172(0x107)]['push']({'title':_0x1faffd[_0x15d172(0xf1)]+('['+_0x167b5a['adult']+']'),'info':_0x4296f3+_0x1faffd[_0x15d172(0xf9)]+_0x15cbb7+_0x1faffd[_0x15d172(0xcf)],'nRs':_0x1faffd[_0x15d172(0xcf)],'unit':_0x1faffd['adultprice'],'cb':_0x1faffd['baseadultprice'],'type':_0x15d172(0x108)}),_0x1faffd[_0x15d172(0xcd)]!='0'&&_0x416477[_0x15d172(0x107)][_0x15d172(0xf2)]({'title':_0x1faffd[_0x15d172(0xf1)]+('['+_0x167b5a[_0x15d172(0xd3)]+']'),'info':_0x4296f3+_0x1faffd[_0x15d172(0xdf)]+_0x15cbb7+_0x1faffd[_0x15d172(0xcd)],'nRs':_0x1faffd['childnum'],'unit':_0x1faffd['childprice'],'cb':_0x1faffd[_0x15d172(0xe3)],'type':_0x15d172(0x108)});}),_0xcade4c[_0x4660aa(0xf2)](_0x416477);}let _0x48b3d2=[];const _0x1b55ab=_0x5847c9[_0x4660aa(0xe1)](_0x8e440d=>_0x8e440d[_0x4660aa(0xe7)]=='elder');_0x1b55ab[_0x4660aa(0xc9)]&&_0x1b55ab[_0x4660aa(0xff)](_0x4e0439=>{const _0x324941=_0x4660aa,_0x53e22e=_0x4e0439[_0x324941(0xf1)]['split']('|')||[''];_0x48b3d2[_0x324941(0xf2)]({'title':_0x167b5a[_0x324941(0xda)]+('['+_0x53e22e[0x0]+']'),'info':_0x4296f3+_0x144553+_0x4e0439[_0x324941(0xed)],'unit':_0x4e0439[_0x324941(0xed)],'cb':_0x4e0439[_0x324941(0xed)],'type':'elder'});});const _0x3ad8ec=_0x5847c9[_0x4660aa(0xe1)](_0x48dcf5=>_0x48dcf5['strLx']==_0x4660aa(0xf5));_0x3ad8ec[_0x4660aa(0xc9)]&&_0x3ad8ec[_0x4660aa(0xff)](_0x11d3d5=>{const _0x2af805=_0x4660aa;_0x48b3d2[_0x2af805(0xf2)]({'title':_0x167b5a[_0x2af805(0xfd)]+('['+_0x11d3d5[_0x2af805(0xf1)]+']'),'info':_0x4296f3+_0x144553+_0x11d3d5['money'],'unit':_0x11d3d5['money'],'cb':_0x11d3d5['money'],'type':'vip'});});const _0xbcadf1=_0x5847c9['filter'](_0x58f5d8=>_0x58f5d8[_0x4660aa(0xe7)]==_0x4660aa(0xf4));_0xbcadf1[_0x4660aa(0xc9)]&&_0xbcadf1['map'](_0x39d7c7=>{const _0x1fcc25=_0x4660aa;_0x48b3d2[_0x1fcc25(0xf2)]({'title':_0x167b5a['promotion'],'info':_0x4296f3+_0x144553+_0x39d7c7['money'],'unit':_0x39d7c7['money'],'cb':_0x39d7c7[_0x1fcc25(0xed)],'type':_0x1fcc25(0xf4)});});_0x48b3d2[_0x4660aa(0xc9)]&&_0xcade4c[_0x4660aa(0xf2)]({'title':_0x8a64c9[_0x4660aa(0xf8)],'type':_0x4660aa(0xf8),'list':_0x48b3d2});const _0x356fc2=_0x5847c9[_0x4660aa(0xe1)](_0x228fdc=>_0x228fdc[_0x4660aa(0xe7)]==_0x4660aa(0x102));if(_0x356fc2['length']){let _0xec2ac4={'title':_0x8a64c9[_0x4660aa(0x102)],'type':_0x4660aa(0x102),'list':[]};_0x356fc2[_0x4660aa(0xff)](_0x4b8b7b=>{const _0x3fe617=_0x4660aa;_0xec2ac4[_0x3fe617(0x107)][_0x3fe617(0xf2)]({'title':_0x167b5a[_0x4b8b7b['rylx']],'info':_0x4296f3+_0x4b8b7b[_0x3fe617(0xe6)]+_0x15cbb7+_0x4b8b7b['sl'],'nRs':_0x4b8b7b['sl'],'unit':_0x4b8b7b[_0x3fe617(0xe6)],'cb':_0x4b8b7b[_0x3fe617(0xcc)],'type':_0x4b8b7b[_0x3fe617(0xd1)]});}),_0xcade4c[_0x4660aa(0xf2)](_0xec2ac4);}const _0x23dbf3=[_0x4660aa(0xca),_0x4660aa(0xe0),_0x4660aa(0x108),_0x4660aa(0xda),_0x4660aa(0xf5),_0x4660aa(0xf4),_0x4660aa(0x102)],_0x266ded=_0x5847c9[_0x4660aa(0xe1)](_0x3ef3f4=>!_0x23dbf3['includes'](_0x3ef3f4[_0x4660aa(0xe7)]));let _0x4a7aa2={'title':_0x8a64c9[_0x4660aa(0xf3)],'type':'other','list':[]};for(var _0x21a39b=0x0;_0x21a39b<_0x266ded[_0x4660aa(0xc9)];_0x21a39b++){const _0x186f2b=_0x266ded[_0x21a39b];_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xe8)&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x4660aa(0xe8)]+('['+_0x186f2b[_0x4660aa(0xf1)]+']'),'info':_0x4296f3+_0x186f2b[_0x4660aa(0xed)],'unit':_0x186f2b[_0x4660aa(0xed)],'type':_0x186f2b['strLx']}),_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xe4)&&_0x4a7aa2['list'][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x4660aa(0xe4)]+('['+_0x186f2b[_0x4660aa(0xf1)]+']'),'info':_0x4296f3+_0x186f2b[_0x4660aa(0xdd)]+_0x15cbb7+_0x186f2b[_0x4660aa(0x109)]+_0x167b5a['r'],'nRs':_0x186f2b[_0x4660aa(0x109)],'unit':_0x186f2b[_0x4660aa(0xdd)],'cb':_0x186f2b[_0x4660aa(0xdd)],'type':_0x4660aa(0xe4)}),(_0x186f2b[_0x4660aa(0xe7)]=='coupon'||_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xfb))&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b['strLx']],'info':_0x4296f3+_0x144553+_0x186f2b[_0x4660aa(0xed)],'unit':_0x186f2b[_0x4660aa(0xed)],'type':_0x186f2b[_0x4660aa(0xe7)]}),_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xde)&&_0x4a7aa2['list'][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b[_0x4660aa(0xe7)]],'info':_0x4296f3+_0x186f2b[_0x4660aa(0xde)]+_0x15cbb7+_0x186f2b[_0x4660aa(0xdb)]+_0x167b5a['r']+_0x15cbb7+_0x186f2b[_0x4660aa(0xd5)]+_0x167b5a['t'],'nRs':_0x186f2b['tipuser'],'count':_0x186f2b[_0x4660aa(0xd5)],'unit':_0x186f2b[_0x4660aa(0xde)],'type':_0x186f2b[_0x4660aa(0xe7)]}),_0x186f2b[_0x4660aa(0xe7)]=='tax'&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b['strLx']],'info':_0x4296f3+_0x186f2b[_0x4660aa(0xfe)],'unit':_0x186f2b['totaltax'],'type':_0x186f2b[_0x4660aa(0xe7)]});}_0x4a7aa2['list']['length']&&_0xcade4c[_0x4660aa(0xf2)](_0x4a7aa2);const _0x1c95c8=_0x5847c9[_0x4660aa(0xe1)](_0x3542f4=>_0x3542f4[_0x4660aa(0xe7)]==_0x4660aa(0xd4));return _0x1c95c8['length']&&_0xcade4c['push']({'title':_0x8a64c9[_0x4660aa(0xd4)],'type':'totalprice','list':[{'title':_0x8a64c9[_0x4660aa(0xd4)],'info':_0x4296f3+_0x1c95c8[0x0][_0x4660aa(0xfa)]}]}),_0xcade4c;}function a0_0x21c1(_0x8f09d3,_0x3fc339){const _0x1579b3=a0_0x1579();return a0_0x21c1=function(_0x21c1df,_0xa195a0){_0x21c1df=_0x21c1df-0xc9;let _0x25341e=_0x1579b3[_0x21c1df];return _0x25341e;},a0_0x21c1(_0x8f09d3,_0x3fc339);}export default{'handleCosting':handleCosting};