yunlin 1.0.49 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/price.js +1 -1
- package/dist/room.js +1 -1
- package/dist/roomOld.js +1 -1
- package/dist/system.js +1 -1
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5870c0,_0x1e4e09){var _0x54eccf=a0_0x44ea,_0x11322a=_0x5870c0();while(!![]){try{var _0x3d1c7d=parseInt(_0x54eccf(0x8c))/0x1+parseInt(_0x54eccf(0x93))/0x2*(parseInt(_0x54eccf(0x8a))/0x3)+-parseInt(_0x54eccf(0x92))/0x4*(parseInt(_0x54eccf(0x8f))/0x5)+parseInt(_0x54eccf(0x8e))/0x6+parseInt(_0x54eccf(0x91))/0x7+parseInt(_0x54eccf(0x94))/0x8*(parseInt(_0x54eccf(0x8b))/0x9)+parseInt(_0x54eccf(0x90))/0xa*(-parseInt(_0x54eccf(0x8d))/0xb);if(_0x3d1c7d===_0x1e4e09)break;else _0x11322a['push'](_0x11322a['shift']());}catch(_0x439391){_0x11322a['push'](_0x11322a['shift']());}}}(a0_0x4999,0x47cc4));import a0_0x4511fe from'./utils';import a0_0xcba78 from'./price';import a0_0x418190 from'./test';import a0_0x533258 from'./room';import a0_0x4bd288 from'./roomOld';function a0_0x44ea(_0x51d8a2,_0x4ebe49){var _0x499930=a0_0x4999();return a0_0x44ea=function(_0x44eaab,_0x29f882){_0x44eaab=_0x44eaab-0x8a;var _0x141e01=_0x499930[_0x44eaab];return _0x141e01;},a0_0x44ea(_0x51d8a2,_0x4ebe49);}import a0_0x26f22d from'./system';export default{'test':a0_0x418190,'utils':a0_0x4511fe,'price':a0_0xcba78,'room':a0_0x533258,'roomOld':a0_0x4bd288,'system':a0_0x26f22d};function a0_0x4999(){var _0x2a33be=['13284HUznxb','464906IFDWgM','22GOgNiI','1589232GjBppG','10PAqWYh','4276590jYaRUa','796565ssPnak','1146364HMOvjj','710062PbxBZG','2840viJgEI','3jJHJNJ'];a0_0x4999=function(){return _0x2a33be;};return a0_0x4999();}
|
package/dist/price.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x516ac6,_0x50e231){const _0x9329d7=a1_0x1dc9,_0x2e0aff=_0x516ac6();while(!![]){try{const _0x531aa3=parseInt(_0x9329d7(0x12e))/0x1+parseInt(_0x9329d7(0x14d))/0x2*(parseInt(_0x9329d7(0x128))/0x3)+parseInt(_0x9329d7(0x103))/0x4*(-parseInt(_0x9329d7(0x101))/0x5)+parseInt(_0x9329d7(0x14b))/0x6*(parseInt(_0x9329d7(0x11f))/0x7)+parseInt(_0x9329d7(0x145))/0x8*(parseInt(_0x9329d7(0x122))/0x9)+-parseInt(_0x9329d7(0x121))/0xa*(-parseInt(_0x9329d7(0x102))/0xb)+parseInt(_0x9329d7(0xfa))/0xc*(-parseInt(_0x9329d7(0x10c))/0xd);if(_0x531aa3===_0x50e231)break;else _0x2e0aff['push'](_0x2e0aff['shift']());}catch(_0x35219f){_0x2e0aff['push'](_0x2e0aff['shift']());}}}(a1_0x1ed2,0x42eb5));function a1_0x1ed2(){const _0x47c238=['isArray','25oZgTkf','88ntjOMr','138508FkBzvZ','會員充值','strLx','tipuser','fLsjUnit','error','num','promotion','isShowTip','182lXwjxw','會員減免','push','insure','fJcbzlsjUnit','\x0a\x09\x09\x09正确参数:','money','people','list','adultnum','減免費用','totaltax','keys','nRs','point','附加行程','map','優惠券','forEach','3646937TmwOoo','filter','276860KIYQjy','2769363fxjEks','max','trim','basechildprice','unitprice','service','1338411SaiPqg','tip','附加服務','hasOwnProperty','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','trip','256595pDpXgc','coupon','vipdiscounted','strJgbm','base','viprecharge','baseadultprice','points','changeprice','includes','人員費用','name','unitpricewb','childunitprice','totalprice','stringify','遊客優惠','object','adultunitprice','vip','tipday','unit','child','8EuoMQM','commission','elder','rylx','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','adult','6iXkHcx','couponSign','2XohHYF','users','length','split','other','baseprice','1119156XKLSTu','price','ftd\x20函数接收到无效的数字输入:\x20','airtax','reduction','childnum'];a1_0x1ed2=function(){return _0x47c238;};return a1_0x1ed2();}function handleCosting(_0x13810c,_0x5ae13a='',_0x581dd6={},_0x312fd4,_0x596aef){const _0x4077fb=a1_0x1dc9;let _0x368053=[];const _0x3d877f='\x20*\x20',_0x6e34e9={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x581dd6=typeof _0x581dd6===_0x4077fb(0x13f)&&!Array[_0x4077fb(0x100)](_0x581dd6)&&_0x581dd6!==null?_0x581dd6:{};const _0xb0850a={..._0x6e34e9,..._0x581dd6},_0x3c0454=Object[_0x4077fb(0x118)](_0x6e34e9);Object[_0x4077fb(0x118)](_0x581dd6)[_0x4077fb(0x11e)](_0x425621=>{const _0x54e583=_0x4077fb;!_0x3c0454[_0x54e583(0x137)](_0x425621)&&console['warn'](_0x54e583(0x149)+_0x425621);});let _0x4ec100=_0xb0850a[_0x4077fb(0x14c)]||'-',_0x42a64c=_0xb0850a['dp']||0x2;const _0x667748=(_0x1a9b94,_0x1b0c92=_0x42a64c)=>{const _0x5870ec=_0x4077fb;if(typeof _0x1a9b94!=='number'&&isNaN(Number(_0x1a9b94)))return console[_0x5870ec(0x108)](_0x5870ec(0xfc)+_0x1a9b94),_0x1a9b94;if(isNaN(_0x1b0c92)||_0x1b0c92<0x0)return _0x1a9b94;let _0x16b3b9=Number(_0x1a9b94);if(!isFinite(_0x16b3b9))return _0x1a9b94;return _0x1b0c92=Math[_0x5870ec(0x123)](0x0,Math['floor'](_0x1b0c92)),_0x16b3b9['toFixed'](_0x1b0c92);},_0x31d7c5=(_0x2ef489,_0x1f1c27)=>{const _0x4fc6c4=_0x4077fb;if(_0x1f1c27&&typeof _0x1f1c27===_0x4fc6c4(0x13f)&&!Array['isArray'](_0x1f1c27))for(const _0x4e2102 in _0x2ef489){_0x2ef489['hasOwnProperty'](_0x4e2102)&&_0x1f1c27[_0x4fc6c4(0x12b)](_0x4e2102)&&(_0x2ef489[_0x4e2102]=_0x1f1c27[_0x4e2102]);}else console[_0x4fc6c4(0x108)]((_0x4fc6c4(0x12c)+JSON['stringify'](_0x1f1c27,null,0x2)+_0x4fc6c4(0x111)+JSON[_0x4fc6c4(0x13d)](_0x2ef489,null,0x2))[_0x4fc6c4(0x124)]());return _0x2ef489;};let _0x56d9fd={'people':_0x4077fb(0x138),'service':_0x4077fb(0x12a),'trip':_0x4077fb(0x11b),'other':'其他費用','reduction':_0x4077fb(0x116),'totalprice':'總計','airtax':'機場稅'},_0x6ca283={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x4077fb(0x13e),'vip':_0x4077fb(0x10d),'promotion':'促銷','insure':'保險費用','coupon':_0x4077fb(0x11d),'point':'積分','tax':'稅金','viprecharge':_0x4077fb(0x104),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x56d9fd=_0x31d7c5(_0x56d9fd,_0x312fd4),_0x6ca283=_0x31d7c5(_0x6ca283,_0x596aef);const _0x368c82=_0x13810c[_0x4077fb(0x120)](_0xa7fbac=>_0xa7fbac[_0x4077fb(0x105)]==_0x4077fb(0x132));if(_0x368c82[_0x4077fb(0x14f)]){let _0x428d16={'title':_0x56d9fd[_0x4077fb(0x113)],'type':_0x4077fb(0x132),'list':[]};_0x368c82[_0x4077fb(0x11c)](_0x3578a4=>{const _0x19428f=_0x4077fb;_0x428d16[_0x19428f(0x114)][_0x19428f(0x10e)]({'title':_0x6ca283[_0x3578a4[_0x19428f(0x131)]],'info':_0x5ae13a+_0x667748(_0x3578a4['fLsjUnit'])+_0x3d877f+_0x3578a4[_0x19428f(0x119)],'nRs':_0x3578a4[_0x19428f(0x119)],'unit':_0x3578a4[_0x19428f(0x107)],'cb':_0x3578a4[_0x19428f(0x110)],'type':_0x19428f(0x132)});}),_0x368053['push'](_0x428d16);}const _0xddbd67=_0x13810c['filter'](_0x21c641=>_0x21c641[_0x4077fb(0x105)]==_0x4077fb(0x127));if(_0xddbd67[_0x4077fb(0x14f)]){let _0x4fc78f={'title':_0x56d9fd[_0x4077fb(0x127)],'type':_0x4077fb(0x127),'list':[]};_0xddbd67[_0x4077fb(0x11c)](_0x37a114=>{const _0xa32a73=_0x4077fb;_0x4fc78f['list'][_0xa32a73(0x10e)]({'title':_0x37a114['name']+('['+_0x37a114['itemname']+']'),'info':_0x5ae13a+_0x667748(_0x37a114[_0xa32a73(0x126)])+_0x3d877f+_0x37a114[_0xa32a73(0x109)],'nRs':_0x37a114['num'],'unit':_0x37a114[_0xa32a73(0x126)],'cb':_0x37a114[_0xa32a73(0xf9)],'type':_0xa32a73(0x127)});}),_0x368053[_0x4077fb(0x10e)](_0x4fc78f);}const _0xf71f80=_0x13810c[_0x4077fb(0x120)](_0x50437a=>_0x50437a['strLx']==_0x4077fb(0x12d));if(_0xf71f80['length']){let _0x50af7f={'title':_0x56d9fd[_0x4077fb(0x12d)],'type':_0x4077fb(0x12d),'list':[]};_0xf71f80['map'](_0x208d5e=>{const _0x45704b=_0x4077fb;_0x208d5e[_0x45704b(0x115)]!='0'&&_0x50af7f[_0x45704b(0x114)]['push']({'title':_0x208d5e[_0x45704b(0x139)]+('['+_0x6ca283[_0x45704b(0x14a)]+']'),'info':_0x5ae13a+_0x667748(_0x208d5e[_0x45704b(0x140)])+_0x3d877f+_0x208d5e[_0x45704b(0x115)],'nRs':_0x208d5e[_0x45704b(0x115)],'unit':_0x208d5e[_0x45704b(0x140)],'cb':_0x208d5e[_0x45704b(0x134)],'type':_0x45704b(0x12d)}),_0x208d5e[_0x45704b(0xff)]!='0'&&_0x50af7f[_0x45704b(0x114)][_0x45704b(0x10e)]({'title':_0x208d5e[_0x45704b(0x139)]+('['+_0x6ca283[_0x45704b(0x144)]+']'),'info':_0x5ae13a+_0x667748(_0x208d5e['childunitprice'])+_0x3d877f+_0x208d5e[_0x45704b(0xff)],'nRs':_0x208d5e[_0x45704b(0xff)],'unit':_0x208d5e[_0x45704b(0x13b)],'cb':_0x208d5e[_0x45704b(0x125)],'type':_0x45704b(0x12d)});}),_0x368053['push'](_0x50af7f);}let _0x47d552=[];const _0xe4cb23=_0x13810c[_0x4077fb(0x120)](_0x515938=>_0x515938[_0x4077fb(0x105)]==_0x4077fb(0x147));_0xe4cb23[_0x4077fb(0x14f)]&&_0xe4cb23[_0x4077fb(0x11c)](_0xb39358=>{const _0x2ee220=_0x4077fb,_0xab6ef7=_0xb39358['name'][_0x2ee220(0x150)]('|')||[''];_0x47d552[_0x2ee220(0x10e)]({'title':_0x6ca283[_0x2ee220(0x147)]+('['+_0xab6ef7[0x0]+']'),'info':_0x5ae13a+_0x4ec100+_0x667748(_0xb39358['money']),'unit':_0xb39358[_0x2ee220(0x112)],'cb':_0xb39358[_0x2ee220(0x112)],'type':_0x2ee220(0x147)});});const _0x3fc8b0=_0x13810c[_0x4077fb(0x120)](_0x1fcb50=>_0x1fcb50[_0x4077fb(0x105)]==_0x4077fb(0x130));_0x3fc8b0[_0x4077fb(0x14f)]&&_0x3fc8b0['map'](_0x8650e6=>{const _0x3bc25b=_0x4077fb;_0x47d552[_0x3bc25b(0x10e)]({'title':_0x6ca283['vip']+('['+_0x8650e6[_0x3bc25b(0x139)]+']'),'info':_0x5ae13a+_0x4ec100+_0x667748(_0x8650e6[_0x3bc25b(0x112)]),'unit':_0x8650e6[_0x3bc25b(0x112)],'cb':_0x8650e6[_0x3bc25b(0x112)],'type':_0x3bc25b(0x141)});});const _0x2ebdf5=_0x13810c[_0x4077fb(0x120)](_0xb184fe=>_0xb184fe['strLx']==_0x4077fb(0x10a));_0x2ebdf5[_0x4077fb(0x14f)]&&_0x2ebdf5[_0x4077fb(0x11c)](_0x22984f=>{const _0x30e980=_0x4077fb;_0x47d552[_0x30e980(0x10e)]({'title':_0x6ca283['promotion'],'info':_0x5ae13a+_0x4ec100+_0x667748(_0x22984f[_0x30e980(0x112)]),'unit':_0x22984f[_0x30e980(0x112)],'cb':_0x22984f[_0x30e980(0x112)],'type':_0x30e980(0x10a)});});_0x47d552[_0x4077fb(0x14f)]&&_0x368053[_0x4077fb(0x10e)]({'title':_0x56d9fd[_0x4077fb(0xfe)],'type':_0x4077fb(0xfe),'list':_0x47d552});const _0x2f7c61=_0x13810c[_0x4077fb(0x120)](_0x21ff95=>_0x21ff95[_0x4077fb(0x105)]==_0x4077fb(0xfd));if(_0x2f7c61['length']){let _0xbdd81={'title':_0x56d9fd[_0x4077fb(0xfd)],'type':_0x4077fb(0xfd),'list':[]};_0x2f7c61[_0x4077fb(0x11c)](_0x3bd68c=>{const _0x33ac89=_0x4077fb;_0xbdd81[_0x33ac89(0x114)][_0x33ac89(0x10e)]({'title':_0x6ca283[_0x3bd68c['rylx']],'info':_0x5ae13a+_0x667748(_0x3bd68c[_0x33ac89(0x126)])+_0x3d877f+_0x3bd68c['sl'],'nRs':_0x3bd68c['sl'],'unit':_0x3bd68c[_0x33ac89(0x126)],'cb':_0x3bd68c[_0x33ac89(0x13a)],'type':_0x3bd68c[_0x33ac89(0x148)]});}),_0x368053[_0x4077fb(0x10e)](_0xbdd81);}const _0x5f07b9=[_0x4077fb(0x132),_0x4077fb(0x127),'trip',_0x4077fb(0x147),'vipdiscounted',_0x4077fb(0x10a),'airtax'],_0x4a6449=_0x13810c[_0x4077fb(0x120)](_0x526840=>!_0x5f07b9[_0x4077fb(0x137)](_0x526840[_0x4077fb(0x105)]));let _0x2fdccf={'title':_0x56d9fd[_0x4077fb(0xf8)],'type':_0x4077fb(0xf8),'list':[]};for(var _0x2c287d=0x0;_0x2c287d<_0x4a6449[_0x4077fb(0x14f)];_0x2c287d++){const _0x38745e=_0x4a6449[_0x2c287d];_0x38745e['strLx']=='viprecharge'&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x4077fb(0x133)]+('['+_0x38745e[_0x4077fb(0x139)]+']'),'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0x112)]),'unit':_0x38745e[_0x4077fb(0x112)],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x10f)&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x4077fb(0x10f)]+('['+_0x38745e[_0x4077fb(0x139)]+']'),'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0x143)])+_0x3d877f+_0x38745e[_0x4077fb(0x14e)]+_0x6ca283['r'],'nRs':_0x38745e[_0x4077fb(0x14e)],'unit':_0x38745e[_0x4077fb(0x143)],'cb':_0x38745e[_0x4077fb(0x143)],'type':_0x4077fb(0x10f)}),(_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x12f)||_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x11a))&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x38745e['couponmc']||_0x6ca283[_0x38745e[_0x4077fb(0x105)]],'info':_0x5ae13a+_0x4ec100+_0x667748(_0x38745e[_0x4077fb(0x112)]),'unit':_0x38745e[_0x4077fb(0x112)],'cb':_0x38745e[_0x4077fb(0x135)]||0x0,'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]=='tip'&&_0xb0850a[_0x4077fb(0x10b)]&&_0x2fdccf['list'][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x38745e[_0x4077fb(0x105)]],'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0x129)])+_0x3d877f+_0x38745e[_0x4077fb(0x106)]+_0x6ca283['r']+_0x3d877f+_0x38745e[_0x4077fb(0x142)]+_0x6ca283['t'],'nRs':_0x38745e[_0x4077fb(0x106)],'count':_0x38745e[_0x4077fb(0x142)],'unit':_0x38745e['tip'],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x136)&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x4077fb(0x136)],'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0xfb)]),'unit':_0x38745e[_0x4077fb(0xfb)],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x146)&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283['commission'],'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0xfb)]),'unit':_0x38745e[_0x4077fb(0xfb)],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]=='tax'&&_0x2fdccf['list'][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x38745e[_0x4077fb(0x105)]],'info':_0x5ae13a+_0x667748(_0x38745e['totaltax']),'unit':_0x38745e[_0x4077fb(0x117)],'type':_0x38745e[_0x4077fb(0x105)]});}_0x2fdccf['list']['length']&&_0x368053['push'](_0x2fdccf);const _0x8f9ade=_0x13810c[_0x4077fb(0x120)](_0x2c4adf=>_0x2c4adf['strLx']==_0x4077fb(0x13c));return _0x8f9ade['length']&&_0x368053[_0x4077fb(0x10e)]({'title':_0x56d9fd[_0x4077fb(0x13c)],'type':_0x4077fb(0x13c),'list':[{'title':_0x56d9fd[_0x4077fb(0x13c)],'info':_0x5ae13a+_0x667748(_0x8f9ade[0x0]['price'])}]}),_0x368053;}function a1_0x1dc9(_0x36e6f1,_0x1af142){const _0x1ed25c=a1_0x1ed2();return a1_0x1dc9=function(_0x1dc901,_0x21e48c){_0x1dc901=_0x1dc901-0xf8;let _0x446185=_0x1ed25c[_0x1dc901];return _0x446185;},a1_0x1dc9(_0x36e6f1,_0x1af142);}export default{'handleCosting':handleCosting};
|
|
1
|
+
(function(_0x2302fe,_0x5eca71){const _0x3d6eaa=a1_0x5e6e,_0x10f82a=_0x2302fe();while(!![]){try{const _0x2582f8=parseInt(_0x3d6eaa(0xf7))/0x1*(parseInt(_0x3d6eaa(0xd8))/0x2)+parseInt(_0x3d6eaa(0xcb))/0x3*(parseInt(_0x3d6eaa(0xc3))/0x4)+parseInt(_0x3d6eaa(0xe2))/0x5*(-parseInt(_0x3d6eaa(0xf8))/0x6)+parseInt(_0x3d6eaa(0x103))/0x7+-parseInt(_0x3d6eaa(0x109))/0x8+-parseInt(_0x3d6eaa(0x101))/0x9+parseInt(_0x3d6eaa(0xc4))/0xa;if(_0x2582f8===_0x5eca71)break;else _0x10f82a['push'](_0x10f82a['shift']());}catch(_0x454777){_0x10f82a['push'](_0x10f82a['shift']());}}}(a1_0x121c,0xd91d2));function a1_0x121c(){const _0x3a2520=['elder','ftd\x20函数接收到无效的数字输入:\x20','tipday','strLx','insure','commission','14331609TuloMs','totaltax','2252194oRpuJw','unit','unitprice','fJcbzlsjUnit','遊客優惠','points','6580368yDzBam','viprecharge','promotion','附加服務','other','會員減免','rylx','push','price','isArray','warn','length','changeprice','keys','unitpricewb','childnum','284zrVAAZ','28882530nSjvpT','child','num','\x0a\x09\x09\x09正确参数:','優惠券','strJglxtxt','coupon','38346EydDsU','vip','兒童[占床]','附加行程','機場稅','point','couponmc','trip','vipdiscounted','max','airtax','includes','object','2TRGVkl','people','money','adultnum','floor','\x20*\x20','nRs','basechildprice','stringify','service','145AOlvrt','baseprice','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','list','name','isShowTip','error','tip','base','filter','baseadultprice','childunitprice','couponSign','map','減免費用','tipuser','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','adult','人員費用','hasOwnProperty','fLsjUnit','107913syzIyG','190590OKZpuo','totalprice','strJgbm'];a1_0x121c=function(){return _0x3a2520;};return a1_0x121c();}function handleCosting(_0x21a88d,_0x9fca24='',_0x477592={},_0x3ec7bf,_0x4cb4ca){const _0x476e46=a1_0x5e6e;let _0x2be401=[];const _0x309a5d=_0x476e46(0xdd),_0x48d4b8={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x477592=typeof _0x477592===_0x476e46(0xd7)&&!Array[_0x476e46(0x112)](_0x477592)&&_0x477592!==null?_0x477592:{};const _0x3bc953={..._0x48d4b8,..._0x477592},_0x3594fd=Object[_0x476e46(0x116)](_0x48d4b8);Object['keys'](_0x477592)['forEach'](_0x4a2b03=>{const _0x5e77cd=_0x476e46;!_0x3594fd[_0x5e77cd(0xd6)](_0x4a2b03)&&console[_0x5e77cd(0x113)](_0x5e77cd(0xf2)+_0x4a2b03);});let _0x40f9a2=_0x3bc953[_0x476e46(0xee)]||'-',_0x498881=_0x3bc953['dp']||0x2;const _0x368ab2=(_0x47b474,_0x2a2fa0=_0x498881)=>{const _0x465a1a=_0x476e46;if(typeof _0x47b474!=='number'&&isNaN(Number(_0x47b474)))return console[_0x465a1a(0xe8)](_0x465a1a(0xfc)+_0x47b474),_0x47b474;if(isNaN(_0x2a2fa0)||_0x2a2fa0<0x0)return _0x47b474;let _0x2f7c20=Number(_0x47b474);if(!isFinite(_0x2f7c20))return _0x47b474;return _0x2a2fa0=Math[_0x465a1a(0xd4)](0x0,Math[_0x465a1a(0xdc)](_0x2a2fa0)),_0x2f7c20['toFixed'](_0x2a2fa0);},_0x33d064=(_0x934e88,_0x1ec022)=>{const _0x193b7c=_0x476e46;if(_0x1ec022&&typeof _0x1ec022===_0x193b7c(0xd7)&&!Array[_0x193b7c(0x112)](_0x1ec022))for(const _0x417302 in _0x934e88){_0x934e88[_0x193b7c(0xf5)](_0x417302)&&_0x1ec022[_0x193b7c(0xf5)](_0x417302)&&(_0x934e88[_0x417302]=_0x1ec022[_0x417302]);}else console[_0x193b7c(0xe8)]((_0x193b7c(0xe4)+JSON[_0x193b7c(0xe0)](_0x1ec022,null,0x2)+_0x193b7c(0xc7)+JSON['stringify'](_0x934e88,null,0x2))['trim']());return _0x934e88;};let _0x48052a={'people':_0x476e46(0xf4),'service':_0x476e46(0x10c),'trip':_0x476e46(0xce),'other':'其他費用','reduction':_0x476e46(0xf0),'totalprice':'總計','airtax':_0x476e46(0xcf)},_0x293949={'adult':'成人','child':'兒童','childusebed':_0x476e46(0xcd),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x476e46(0x107),'vip':_0x476e46(0x10e),'promotion':'促銷','insure':'保險費用','coupon':_0x476e46(0xc8),'point':'積分','tax':'稅金','viprecharge':'會員充值','changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x48052a=_0x33d064(_0x48052a,_0x3ec7bf),_0x293949=_0x33d064(_0x293949,_0x4cb4ca);const _0x41ed0c=_0x21a88d[_0x476e46(0xeb)](_0x1f0f9d=>_0x1f0f9d[_0x476e46(0xfe)]==_0x476e46(0xea));if(_0x41ed0c['length']){let _0x1d5c9d={'title':_0x48052a[_0x476e46(0xd9)],'type':_0x476e46(0xea),'list':[]};_0x41ed0c[_0x476e46(0xef)](_0x29566a=>{const _0xe1949a=_0x476e46;_0x1d5c9d[_0xe1949a(0xe5)][_0xe1949a(0x110)]({'title':_0x293949[_0x29566a[_0xe1949a(0xfa)]],'subTitle':_0x29566a[_0xe1949a(0xc9)],'info':_0x9fca24+_0x368ab2(_0x29566a[_0xe1949a(0xf6)])+_0x309a5d+_0x29566a[_0xe1949a(0xde)],'nRs':_0x29566a['nRs'],'unit':_0x29566a[_0xe1949a(0xf6)],'cb':_0x29566a[_0xe1949a(0x106)],'type':_0xe1949a(0xea)});}),_0x2be401[_0x476e46(0x110)](_0x1d5c9d);}const _0x590ed=_0x21a88d['filter'](_0x8e5f40=>_0x8e5f40['strLx']=='service');if(_0x590ed['length']){let _0x3bc4b5={'title':_0x48052a[_0x476e46(0xe1)],'type':_0x476e46(0xe1),'list':[]};_0x590ed[_0x476e46(0xef)](_0x5b42ad=>{const _0xac79dd=_0x476e46;_0x3bc4b5[_0xac79dd(0xe5)][_0xac79dd(0x110)]({'title':_0x5b42ad[_0xac79dd(0xe6)]+('['+_0x5b42ad['itemname']+']'),'subTitle':'','info':_0x9fca24+_0x368ab2(_0x5b42ad[_0xac79dd(0x105)])+_0x309a5d+_0x5b42ad[_0xac79dd(0xc6)],'nRs':_0x5b42ad[_0xac79dd(0xc6)],'unit':_0x5b42ad[_0xac79dd(0x105)],'cb':_0x5b42ad[_0xac79dd(0xe3)],'type':_0xac79dd(0xe1)});}),_0x2be401[_0x476e46(0x110)](_0x3bc4b5);}const _0x5775a0=_0x21a88d['filter'](_0x538930=>_0x538930[_0x476e46(0xfe)]==_0x476e46(0xd2));if(_0x5775a0[_0x476e46(0x114)]){let _0x31163b={'title':_0x48052a[_0x476e46(0xd2)],'type':_0x476e46(0xd2),'list':[]};_0x5775a0[_0x476e46(0xef)](_0x52eb24=>{const _0x58398e=_0x476e46;_0x52eb24['adultnum']!='0'&&_0x31163b[_0x58398e(0xe5)][_0x58398e(0x110)]({'title':_0x52eb24[_0x58398e(0xe6)]+('['+_0x293949[_0x58398e(0xf3)]+']'),'subTitle':'','info':_0x9fca24+_0x368ab2(_0x52eb24['adultunitprice'])+_0x309a5d+_0x52eb24['adultnum'],'nRs':_0x52eb24[_0x58398e(0xdb)],'unit':_0x52eb24['adultunitprice'],'cb':_0x52eb24[_0x58398e(0xec)],'type':_0x58398e(0xd2)}),_0x52eb24[_0x58398e(0x118)]!='0'&&_0x31163b[_0x58398e(0xe5)][_0x58398e(0x110)]({'title':_0x52eb24['name']+('['+_0x293949[_0x58398e(0xc5)]+']'),'info':_0x9fca24+_0x368ab2(_0x52eb24[_0x58398e(0xed)])+_0x309a5d+_0x52eb24['childnum'],'nRs':_0x52eb24['childnum'],'unit':_0x52eb24['childunitprice'],'cb':_0x52eb24[_0x58398e(0xdf)],'type':'trip'});}),_0x2be401[_0x476e46(0x110)](_0x31163b);}let _0x568b98=[];const _0x48a6af=_0x21a88d[_0x476e46(0xeb)](_0x2c583b=>_0x2c583b[_0x476e46(0xfe)]==_0x476e46(0xfb));_0x48a6af[_0x476e46(0x114)]&&_0x48a6af[_0x476e46(0xef)](_0x42ad24=>{const _0x378ffc=_0x476e46,_0x55e1e3=_0x42ad24[_0x378ffc(0xe6)]['split']('|')||[''];_0x568b98[_0x378ffc(0x110)]({'title':_0x293949[_0x378ffc(0xfb)]+('['+_0x55e1e3[0x0]+']'),'subTitle':'','info':_0x9fca24+_0x40f9a2+_0x368ab2(_0x42ad24[_0x378ffc(0xda)]),'unit':_0x42ad24[_0x378ffc(0xda)],'cb':_0x42ad24[_0x378ffc(0xda)],'type':_0x378ffc(0xfb)});});const _0x3df110=_0x21a88d['filter'](_0x594509=>_0x594509[_0x476e46(0xfe)]=='vipdiscounted');_0x3df110[_0x476e46(0x114)]&&_0x3df110[_0x476e46(0xef)](_0x392e02=>{const _0xd7ff28=_0x476e46;_0x568b98[_0xd7ff28(0x110)]({'title':_0x293949['vip']+('['+_0x392e02[_0xd7ff28(0xe6)]+']'),'subTitle':'','info':_0x9fca24+_0x40f9a2+_0x368ab2(_0x392e02[_0xd7ff28(0xda)]),'unit':_0x392e02[_0xd7ff28(0xda)],'cb':_0x392e02[_0xd7ff28(0xda)],'type':_0xd7ff28(0xcc)});});const _0x1e7fc1=_0x21a88d[_0x476e46(0xeb)](_0x56a5d0=>_0x56a5d0[_0x476e46(0xfe)]==_0x476e46(0x10b));_0x1e7fc1['length']&&_0x1e7fc1[_0x476e46(0xef)](_0xb6dfec=>{const _0x35411b=_0x476e46;_0x568b98[_0x35411b(0x110)]({'title':_0x293949[_0x35411b(0x10b)],'subTitle':'','info':_0x9fca24+_0x40f9a2+_0x368ab2(_0xb6dfec[_0x35411b(0xda)]),'unit':_0xb6dfec['money'],'cb':_0xb6dfec['money'],'type':_0x35411b(0x10b)});});_0x568b98[_0x476e46(0x114)]&&_0x2be401['push']({'title':_0x48052a['reduction'],'subTitle':'','type':'reduction','list':_0x568b98});const _0x2f72e1=_0x21a88d[_0x476e46(0xeb)](_0x2b1a37=>_0x2b1a37['strLx']==_0x476e46(0xd5));if(_0x2f72e1[_0x476e46(0x114)]){let _0xf24046={'title':_0x48052a[_0x476e46(0xd5)],'subTitle':'','type':_0x476e46(0xd5),'list':[]};_0x2f72e1['map'](_0x406577=>{const _0x20faaa=_0x476e46;_0xf24046['list'][_0x20faaa(0x110)]({'title':_0x293949[_0x406577[_0x20faaa(0x10f)]],'subTitle':'','info':_0x9fca24+_0x368ab2(_0x406577['unitprice'])+_0x309a5d+_0x406577['sl'],'nRs':_0x406577['sl'],'unit':_0x406577[_0x20faaa(0x105)],'cb':_0x406577[_0x20faaa(0x117)],'type':_0x406577[_0x20faaa(0x10f)]});}),_0x2be401[_0x476e46(0x110)](_0xf24046);}const _0x2d00e8=[_0x476e46(0xea),_0x476e46(0xe1),_0x476e46(0xd2),_0x476e46(0xfb),_0x476e46(0xd3),_0x476e46(0x10b),_0x476e46(0xd5)],_0x3c7708=_0x21a88d[_0x476e46(0xeb)](_0x2adcc1=>!_0x2d00e8[_0x476e46(0xd6)](_0x2adcc1[_0x476e46(0xfe)]));let _0x510a46={'title':_0x48052a[_0x476e46(0x10d)],'type':_0x476e46(0x10d),'list':[]};for(var _0x28baaa=0x0;_0x28baaa<_0x3c7708['length'];_0x28baaa++){const _0x53a92c=_0x3c7708[_0x28baaa];_0x53a92c[_0x476e46(0xfe)]=='viprecharge'&&_0x510a46[_0x476e46(0xe5)][_0x476e46(0x110)]({'title':_0x293949[_0x476e46(0x10a)]+('['+_0x53a92c['name']+']'),'subTitle':'','info':_0x9fca24+_0x368ab2(_0x53a92c[_0x476e46(0xda)]),'unit':_0x53a92c[_0x476e46(0xda)],'type':_0x53a92c[_0x476e46(0xfe)]}),_0x53a92c['strLx']==_0x476e46(0xff)&&_0x510a46[_0x476e46(0xe5)]['push']({'title':_0x293949['insure']+('['+_0x53a92c['name']+']'),'subTitle':'','info':_0x9fca24+_0x368ab2(_0x53a92c[_0x476e46(0x104)])+_0x309a5d+_0x53a92c['users']+_0x293949['r'],'nRs':_0x53a92c['users'],'unit':_0x53a92c[_0x476e46(0x104)],'cb':_0x53a92c[_0x476e46(0x104)],'type':_0x476e46(0xff)}),(_0x53a92c[_0x476e46(0xfe)]==_0x476e46(0xca)||_0x53a92c[_0x476e46(0xfe)]==_0x476e46(0xd0))&&_0x510a46['list'][_0x476e46(0x110)]({'title':_0x53a92c[_0x476e46(0xd1)]||_0x293949[_0x53a92c[_0x476e46(0xfe)]],'subTitle':'','info':_0x9fca24+_0x40f9a2+_0x368ab2(_0x53a92c[_0x476e46(0xda)]),'unit':_0x53a92c[_0x476e46(0xda)],'cb':_0x53a92c[_0x476e46(0x108)]||0x0,'type':_0x53a92c[_0x476e46(0xfe)]}),_0x53a92c[_0x476e46(0xfe)]==_0x476e46(0xe9)&&_0x3bc953[_0x476e46(0xe7)]&&_0x510a46[_0x476e46(0xe5)]['push']({'title':_0x293949[_0x53a92c['strLx']],'subTitle':'','info':_0x9fca24+_0x368ab2(_0x53a92c[_0x476e46(0xe9)])+_0x309a5d+_0x53a92c['tipuser']+_0x293949['r']+_0x309a5d+_0x53a92c[_0x476e46(0xfd)]+_0x293949['t'],'nRs':_0x53a92c[_0x476e46(0xf1)],'count':_0x53a92c[_0x476e46(0xfd)],'unit':_0x53a92c[_0x476e46(0xe9)],'type':_0x53a92c[_0x476e46(0xfe)]}),_0x53a92c[_0x476e46(0xfe)]==_0x476e46(0x115)&&_0x510a46[_0x476e46(0xe5)][_0x476e46(0x110)]({'title':_0x293949[_0x476e46(0x115)],'subTitle':'','info':_0x9fca24+_0x368ab2(_0x53a92c[_0x476e46(0x111)]),'unit':_0x53a92c[_0x476e46(0x111)],'type':_0x53a92c['strLx']}),_0x53a92c[_0x476e46(0xfe)]==_0x476e46(0x100)&&_0x510a46['list'][_0x476e46(0x110)]({'title':_0x293949['commission'],'subTitle':'','info':_0x9fca24+_0x368ab2(_0x53a92c[_0x476e46(0x111)]),'unit':_0x53a92c[_0x476e46(0x111)],'type':_0x53a92c['strLx']}),_0x53a92c[_0x476e46(0xfe)]=='tax'&&_0x510a46[_0x476e46(0xe5)][_0x476e46(0x110)]({'title':_0x293949[_0x53a92c[_0x476e46(0xfe)]],'subTitle':'','info':_0x9fca24+_0x368ab2(_0x53a92c[_0x476e46(0x102)]),'unit':_0x53a92c['totaltax'],'type':_0x53a92c[_0x476e46(0xfe)]});}_0x510a46[_0x476e46(0xe5)][_0x476e46(0x114)]&&_0x2be401[_0x476e46(0x110)](_0x510a46);const _0x3ab2a1=_0x21a88d[_0x476e46(0xeb)](_0x523fc4=>_0x523fc4['strLx']==_0x476e46(0xf9));return _0x3ab2a1['length']&&_0x2be401['push']({'title':_0x48052a[_0x476e46(0xf9)],'type':_0x476e46(0xf9),'list':[{'title':_0x48052a[_0x476e46(0xf9)],'subTitle':'','info':_0x9fca24+_0x368ab2(_0x3ab2a1[0x0][_0x476e46(0x111)])}]}),_0x2be401;}function a1_0x5e6e(_0x178a1a,_0x29ab08){const _0x121c88=a1_0x121c();return a1_0x5e6e=function(_0x5e6e1f,_0x2365d2){_0x5e6e1f=_0x5e6e1f-0xc3;let _0x3f655a=_0x121c88[_0x5e6e1f];return _0x3f655a;},a1_0x5e6e(_0x178a1a,_0x29ab08);}export default{'handleCosting':handleCosting};
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25aba2,_0x2cae4b){const _0x2459b7=a2_0x586f,_0x169423=_0x25aba2();while(!![]){try{const _0x5b640e=parseInt(_0x2459b7(0x196))/0x1*(-parseInt(_0x2459b7(0x18a))/0x2)+-parseInt(_0x2459b7(0x17d))/0x3*(parseInt(_0x2459b7(0x18b))/0x4)+parseInt(_0x2459b7(0x17e))/0x5*(parseInt(_0x2459b7(0x184))/0x6)+-parseInt(_0x2459b7(0x188))/0x7*(-parseInt(_0x2459b7(0x195))/0x8)+-parseInt(_0x2459b7(0x189))/0x9+-parseInt(_0x2459b7(0x194))/0xa*(parseInt(_0x2459b7(0x19c))/0xb)+parseInt(_0x2459b7(0x181))/0xc;if(_0x5b640e===_0x2cae4b)break;else _0x169423['push'](_0x169423['shift']());}catch(_0x568fb1){_0x169423['push'](_0x169423['shift']());}}}(a2_0x2c4a,0x35da9));function getRoomCount(_0x4a7e35,_0x1e14be){const _0x292254=a2_0x586f,_0x1f12d8=Array[_0x292254(0x19b)](_0x4a7e35);if(!_0x1f12d8)_0x4a7e35=[_0x4a7e35];let _0x14596d=[];return _0x4a7e35[_0x292254(0x18f)](_0x4c32d4=>{const _0x43b427=_0x292254;let _0x23bdf9=![];if(!_0x4c32d4[_0x43b427(0x18c)]){let _0x400896=_0x4c32d4[_0x43b427(0x19a)];if(_0x4c32d4[_0x43b427(0x185)]||!_0x1e14be[_0x43b427(0x183)])_0x400896+=_0x4c32d4[_0x43b427(0x199)];const _0x2d5dd0=_0x1e14be[_0x43b427(0x197)][_0x43b427(0x186)](_0x387b0f=>Number(_0x387b0f[_0x43b427(0x192)])===_0x400896);if(!_0x2d5dd0)_0x23bdf9=!![];else{let _0x345777=_0x4c32d4[_0x43b427(0x19a)]+_0x4c32d4[_0x43b427(0x199)]+_0x4c32d4[_0x43b427(0x191)];_0x345777>_0x2d5dd0[_0x43b427(0x18d)]&&(_0x23bdf9=!![]);}}_0x14596d[_0x43b427(0x187)](_0x23bdf9);}),_0x1f12d8?_0x14596d:_0x14596d[0x0];}function getRoomConfig(_0x1fa3e5){const _0x2dac27=a2_0x586f;let _0x37c81c=_0x1fa3e5['some'](_0x3d1504=>_0x3d1504[_0x2dac27(0x192)]===_0x2dac27(0x185)),_0x35dc72=_0x1fa3e5[_0x2dac27(0x17f)](_0x267ac3=>_0x267ac3[_0x2dac27(0x192)]==='isAlotment');const _0x5828cc=_0x1fa3e5['some'](_0x18d87f=>_0x18d87f[_0x2dac27(0x192)]===_0x2dac27(0x182)),_0xb52a6d=_0x1fa3e5[_0x2dac27(0x17f)](_0x7cf0b9=>_0x7cf0b9[_0x2dac27(0x192)]===_0x2dac27(0x183)),_0x5e39cb=_0x1fa3e5[_0x2dac27(0x198)](_0x48d55c=>{const _0x2aae7a=_0x2dac27;return{'strCode':_0x48d55c[_0x2aae7a(0x192)],'nMaxIn':_0x48d55c[_0x2aae7a(0x18d)]};});if(_0x35dc72){const _0x546752=_0x1fa3e5[_0x2dac27(0x17f)](_0x54b5bd=>_0x54b5bd[_0x2dac27(0x192)]=='2');_0x35dc72=_0x35dc72&&_0x546752;}if(_0x37c81c)_0x37c81c=_0x37c81c&&_0xb52a6d;return{'childUseBed':_0x37c81c,'isAlotment':_0x35dc72,'infant':_0x5828cc,'child':_0xb52a6d,'list':_0x5e39cb};}function isRoomPiece(_0x598b85,_0x49f5ed){const _0x382154=a2_0x586f;return _0x49f5ed&&_0x598b85['adultNum']===0x1&&_0x598b85[_0x382154(0x199)]===0x0&&_0x598b85[_0x382154(0x191)]===0x0;}function getRoomItemRange(_0x9e4864,_0x24fe81,_0x52f6ba={'child':'儿童','infant':'婴儿'}){const _0x2e4687=a2_0x586f;if(!_0x24fe81[_0x2e4687(0x18e)])return{'childList':[],'infantList':[]};const _0x554511=Math['max'](..._0x24fe81[_0x2e4687(0x198)](_0x1b4709=>Number(_0x1b4709['nMaxIn']))),_0x4c3e44=_0x554511-_0x9e4864[_0x2e4687(0x19a)]-_0x9e4864[_0x2e4687(0x191)];let _0x1234f3=_0x554511-_0x9e4864[_0x2e4687(0x19a)]-_0x9e4864[_0x2e4687(0x199)];if(_0x1234f3>0x2)_0x1234f3=0x2;const _0x1fb5b0=(_0x86b62,_0x41318f)=>{const _0x19bae5=_0x2e4687,_0x2d15a9=[];_0x2d15a9[_0x19bae5(0x187)]({'value':0x0,'label':'0\x20'+_0x41318f});for(let _0xb4e095=0x0;_0xb4e095<_0x86b62;_0xb4e095++){_0x2d15a9[_0x19bae5(0x187)]({'value':_0xb4e095+0x1,'label':''+(_0xb4e095+0x1)+_0x41318f});}return _0x2d15a9;};return{'childList':_0x1fb5b0(_0x4c3e44,_0x52f6ba[_0x2e4687(0x183)]),'infantList':_0x1fb5b0(_0x1234f3,_0x52f6ba['infant'])};}function a2_0x586f(_0x15817d,_0x2bab16){const _0x2c4af9=a2_0x2c4a();return a2_0x586f=function(_0x586fc9,_0x52e12f){_0x586fc9=_0x586fc9-0x17c;let _0x2ee25d=_0x2c4af9[_0x586fc9];return _0x2ee25d;},a2_0x586f(_0x15817d,_0x2bab16);}function getAdultRange(_0x2946e3,_0x366feb='成人'){const _0x3412b7=a2_0x586f;let _0x2256e1=Math[_0x3412b7(0x17c)](..._0x2946e3[_0x3412b7(0x198)](_0x551486=>Number(_0x551486['strCode']))[_0x3412b7(0x190)](_0x5590d7=>!isNaN(_0x5590d7)));if(!_0x2256e1)_0x2256e1=0x4;let _0x33b1a5=[];for(var _0x4b867a=0x1;_0x4b867a<_0x2256e1+0x1;_0x4b867a++){_0x33b1a5[_0x3412b7(0x187)]({'value':_0x4b867a,'label':''+_0x4b867a+_0x366feb});}return _0x33b1a5;}const getTotalPeople=_0x4858e3=>{const _0x56c901=a2_0x586f,_0x498b3=_0x4858e3[_0x56c901(0x193)]((_0x538916,_0x475266)=>{const _0x5b388e=_0x56c901;return _0x538916+(_0x475266[_0x5b388e(0x19a)]||0x0)+(_0x475266[_0x5b388e(0x199)]||0x0)+(_0x475266[_0x5b388e(0x191)]||0x0);},0x0);return _0x498b3;},getRoomType=(_0x4d0a35,_0x129309)=>{const _0x4c4806=a2_0x586f;if(_0x4d0a35===_0x4c4806(0x180)||_0x4d0a35==='d9319e13-3211-4958-ba32-d66aeac35d31'||_0x129309===0x1||_0x129309==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};function a2_0x2c4a(){const _0x407664=['forEach','filter','infantNum','strCode','reduce','10SLHhQV','8PGTCWt','185386VdKZJI','list','map','childrenNum','adultNum','isArray','602437TnRuNE','max','30udAkSn','1038845gtGWKT','some','type','8328456zYrKJA','infant','child','6VRrRqF','childUseBed','find','push','1765022GrQfVG','935631HAzoyJ','4ndOGNm','161548DGbrbU','isalotment','nMaxIn','length'];a2_0x2c4a=function(){return _0x407664;};return a2_0x2c4a();}
|
package/dist/roomOld.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21144e,_0x55426a){const _0x28dcb1=a3_0x43f3,_0xec5e4b=_0x21144e();while(!![]){try{const _0x407a3b=-parseInt(_0x28dcb1(0x10f))/0x1*(parseInt(_0x28dcb1(0x117))/0x2)+parseInt(_0x28dcb1(0x107))/0x3*(-parseInt(_0x28dcb1(0x112))/0x4)+-parseInt(_0x28dcb1(0x10a))/0x5+-parseInt(_0x28dcb1(0x10c))/0x6+parseInt(_0x28dcb1(0x10e))/0x7*(-parseInt(_0x28dcb1(0x124))/0x8)+parseInt(_0x28dcb1(0x115))/0x9*(-parseInt(_0x28dcb1(0x11b))/0xa)+-parseInt(_0x28dcb1(0x116))/0xb*(-parseInt(_0x28dcb1(0x11d))/0xc);if(_0x407a3b===_0x55426a)break;else _0xec5e4b['push'](_0xec5e4b['shift']());}catch(_0x3a3667){_0xec5e4b['push'](_0xec5e4b['shift']());}}}(a3_0x2e02,0x9e456));function getRoomCount(_0x4e3f49,_0x26f16f){const _0x4c13ca=a3_0x43f3,_0x4b00c1=Array['isArray'](_0x4e3f49);if(!_0x4b00c1)_0x4e3f49=[_0x4e3f49];let _0x23c86a=[];return _0x4e3f49[_0x4c13ca(0x111)](_0x45f7ea=>{const _0xa8edef=_0x4c13ca;let _0x546bee=![];if(!_0x45f7ea[_0xa8edef(0x11e)]){let _0x260e5b=_0x45f7ea[_0xa8edef(0x108)];if(_0x45f7ea['childusebed']||!_0x26f16f[_0xa8edef(0x120)])_0x260e5b+=_0x45f7ea[_0xa8edef(0x110)];const _0x6c4795=_0x26f16f[_0xa8edef(0x11a)][_0xa8edef(0x121)](_0x386b8c=>Number(_0x386b8c[_0xa8edef(0x118)])===_0x260e5b);if(!_0x6c4795)_0x546bee=!![];else{let _0x5567fa=_0x45f7ea['adultnum']+_0x45f7ea['childrennum']+_0x45f7ea[_0xa8edef(0x109)];_0x5567fa>_0x6c4795[_0xa8edef(0x113)]&&(_0x546bee=!![]);}}_0x23c86a[_0xa8edef(0x119)](_0x546bee);}),_0x4b00c1?_0x23c86a:_0x23c86a[0x0];}function a3_0x43f3(_0x42e184,_0x4e8cd2){const _0x2e0226=a3_0x2e02();return a3_0x43f3=function(_0x43f3f2,_0x4c9ff6){_0x43f3f2=_0x43f3f2-0x107;let _0x3c89c9=_0x2e0226[_0x43f3f2];return _0x3c89c9;},a3_0x43f3(_0x42e184,_0x4e8cd2);}function getRoomConfig(_0x288a78){const _0x4c4899=a3_0x43f3;let _0x253b40=_0x288a78[_0x4c4899(0x123)](_0x185091=>_0x185091[_0x4c4899(0x118)]===_0x4c4899(0x10d)),_0x3c203b=_0x288a78[_0x4c4899(0x123)](_0x1aceb7=>_0x1aceb7[_0x4c4899(0x118)]==='half');const _0x952b5e=_0x288a78['some'](_0x4eb5ad=>_0x4eb5ad[_0x4c4899(0x118)]===_0x4c4899(0x11c)),_0x6b883b=_0x288a78[_0x4c4899(0x123)](_0x5e8658=>_0x5e8658[_0x4c4899(0x118)]===_0x4c4899(0x120)),_0x2d1bba=_0x288a78[_0x4c4899(0x11f)](_0x2d78e1=>{const _0x401388=_0x4c4899;return{'strCode':_0x2d78e1[_0x401388(0x118)],'nMaxIn':_0x2d78e1[_0x401388(0x113)]};});if(_0x3c203b){const _0x57952e=_0x288a78['some'](_0x3208ed=>_0x3208ed[_0x4c4899(0x118)]=='2');_0x3c203b=_0x3c203b&&_0x57952e;}if(_0x253b40)_0x253b40=_0x253b40&&_0x6b883b;return{'childusebed':_0x253b40,'half':_0x3c203b,'infant':_0x952b5e,'child':_0x6b883b,'list':_0x2d1bba};}function a3_0x2e02(){const _0x5464c8=['infant','1287348vZnxEe','isalotment','map','child','find','filter','some','2513192VvaekH','411234SwjOxy','adultnum','infantnum','5730580kUrnKg','max','2747814UACSAG','childusebed','28MsdbpY','621yZXrne','childrennum','forEach','16cxFNpo','nMaxIn','length','1216485ghcYzX','605EmBXvx','2018hPyRQH','strCode','push','list','90Yeyiep'];a3_0x2e02=function(){return _0x5464c8;};return a3_0x2e02();}function isRoomPiece(_0x1b97de,_0xb7357f){const _0x4eb66e=a3_0x43f3;return _0xb7357f&&_0x1b97de['adultnum']===0x1&&_0x1b97de[_0x4eb66e(0x110)]===0x0&&_0x1b97de[_0x4eb66e(0x109)]===0x0;}function getRoomItemRange(_0x175396,_0x1b2afd,_0x20faf5={'child':'儿童','infant':'婴儿'}){const _0x558494=a3_0x43f3;if(!_0x1b2afd[_0x558494(0x114)])return{'childList':[],'infantList':[]};const _0x20fb4d=Math[_0x558494(0x10b)](..._0x1b2afd[_0x558494(0x11f)](_0x5a6075=>Number(_0x5a6075['nMaxIn']))),_0x297cda=_0x20fb4d-_0x175396[_0x558494(0x108)]-_0x175396[_0x558494(0x109)];let _0x502216=_0x20fb4d-_0x175396[_0x558494(0x108)]-_0x175396[_0x558494(0x110)];if(_0x502216>0x2)_0x502216=0x2;const _0x536d0c=(_0x2c85d3,_0x3e6f72)=>{const _0x504ffd=_0x558494,_0x14b64d=[];_0x14b64d[_0x504ffd(0x119)]({'value':0x0,'label':'0\x20'+_0x3e6f72});for(let _0x36a3e1=0x0;_0x36a3e1<_0x2c85d3;_0x36a3e1++){_0x14b64d[_0x504ffd(0x119)]({'value':_0x36a3e1+0x1,'label':''+(_0x36a3e1+0x1)+_0x3e6f72});}return _0x14b64d;};return{'childList':_0x536d0c(_0x297cda,_0x20faf5['child']),'infantList':_0x536d0c(_0x502216,_0x20faf5['infant'])};}function getAdultRange(_0x1af54c,_0x848e67='成人'){const _0x4a2267=a3_0x43f3;let _0x1bd959=Math[_0x4a2267(0x10b)](..._0x1af54c['map'](_0x38f3c7=>Number(_0x38f3c7['strCode']))[_0x4a2267(0x122)](_0x187d8a=>!isNaN(_0x187d8a)));if(!_0x1bd959)_0x1bd959=0x4;let _0x2d9267=[];for(var _0x5956c0=0x1;_0x5956c0<_0x1bd959+0x1;_0x5956c0++){_0x2d9267['push']({'value':_0x5956c0,'label':''+_0x5956c0+_0x848e67});}return _0x2d9267;}const getTotalPeople=_0x207465=>{const _0x2a5221=_0x207465['reduce']((_0x1304b6,_0x2f8f34)=>{const _0x4e74b1=a3_0x43f3;return _0x1304b6+(_0x2f8f34[_0x4e74b1(0x108)]||0x0)+(_0x2f8f34[_0x4e74b1(0x110)]||0x0)+(_0x2f8f34[_0x4e74b1(0x109)]||0x0);},0x0);return _0x2a5221;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
|
package/dist/system.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a4_0x3e9f(){const _0x3c69f7=['5050oAVYHs','strfirstname','15741FaVXLk','strlxdh','strmz','name','561048GCbzle','4619288azoKZJ','458556Dogxhh','lastName','20TJwboE','1345674ZlDfEF','phone','3253820cDVFDG','firstName','strdhhm','strlxfs','6DKmeCC','strhzbh','strlastname','strggtxz','join','trim','5253689oXFgbn','strxm','strhxz','filter'];a4_0x3e9f=function(){return _0x3c69f7;};return a4_0x3e9f();}(function(_0x5ad75e,_0x506bb6){const _0x4f8066=a4_0x3f55,_0x2f53e4=_0x5ad75e();while(!![]){try{const _0x147141=parseInt(_0x4f8066(0xaf))/0x1+parseInt(_0x4f8066(0xb4))/0x2+-parseInt(_0x4f8066(0xb1))/0x3*(parseInt(_0x4f8066(0xb3))/0x4)+parseInt(_0x4f8066(0xb6))/0x5+-parseInt(_0x4f8066(0xba))/0x6*(-parseInt(_0x4f8066(0xc0))/0x7)+-parseInt(_0x4f8066(0xb0))/0x8+-parseInt(_0x4f8066(0xab))/0x9*(parseInt(_0x4f8066(0xc4))/0xa);if(_0x147141===_0x506bb6)break;else _0x2f53e4['push'](_0x2f53e4['shift']());}catch(_0x2d7789){_0x2f53e4['push'](_0x2f53e4['shift']());}}}(a4_0x3e9f,0x64294));function a4_0x3f55(_0x5ea352,_0x2248e7){const _0x3e9f08=a4_0x3e9f();return a4_0x3f55=function(_0x3f55b3,_0x8b9a43){_0x3f55b3=_0x3f55b3-0xab;let _0x5a9502=_0x3e9f08[_0x3f55b3];return _0x5a9502;},a4_0x3f55(_0x5ea352,_0x2248e7);}function getDocInfo(_0x3d533f,_0x567fde='idNumber',_0x2faa4e=![]){const _0x202f50=a4_0x3f55;let _0x4e8ed9=_0x2faa4e?'\x20':'';if(_0x567fde==='idNumber')return _0x3d533f['strsfzh']||_0x3d533f[_0x202f50(0xbb)]||_0x3d533f[_0x202f50(0xc2)]||_0x3d533f[_0x202f50(0xbd)]||_0x3d533f['strzjhm']||'';if(_0x567fde===_0x202f50(0xae)){if(_0x3d533f['strxm'])return _0x3d533f[_0x202f50(0xc1)];const _0x2f9598=_0x3d533f[_0x202f50(0xc5)]||_0x3d533f[_0x202f50(0xb7)]||_0x3d533f['strxs']||'',_0x5bd553=_0x3d533f[_0x202f50(0xbc)]||_0x3d533f[_0x202f50(0xb2)]||_0x3d533f[_0x202f50(0xad)]||'';return[_0x2f9598,_0x5bd553][_0x202f50(0xc3)](Boolean)[_0x202f50(0xbe)](_0x4e8ed9)[_0x202f50(0xbf)]()||'';}if(_0x567fde===_0x202f50(0xb5))return _0x3d533f[_0x202f50(0xac)]||_0x3d533f[_0x202f50(0xb9)]||_0x3d533f[_0x202f50(0xb8)]||'';return'';}export default{'getDocInfo':getDocInfo};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10adec,_0x323a0b){const _0x28cc0f=a5_0x40e2,_0x5bd404=_0x10adec();while(!![]){try{const _0x592744=-parseInt(_0x28cc0f(0x126))/0x1+parseInt(_0x28cc0f(0x12c))/0x2*(parseInt(_0x28cc0f(0x12d))/0x3)+-parseInt(_0x28cc0f(0x114))/0x4*(parseInt(_0x28cc0f(0x120))/0x5)+parseInt(_0x28cc0f(0x115))/0x6+-parseInt(_0x28cc0f(0x122))/0x7+-parseInt(_0x28cc0f(0x118))/0x8+parseInt(_0x28cc0f(0x124))/0x9;if(_0x592744===_0x323a0b)break;else _0x5bd404['push'](_0x5bd404['shift']());}catch(_0x2d07a6){_0x5bd404['push'](_0x5bd404['shift']());}}}(a5_0x54cf,0xe4d2b));function email(_0xc5193f){const _0x5e2314=a5_0x40e2;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x5e2314(0x129)](_0xc5193f);}function mobile(_0x28c55e){const _0x5c85fb=a5_0x40e2;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x5c85fb(0x129)](_0x28c55e);}function isValidPhoneNumber(_0x586a60){const _0x14bde5=a5_0x40e2;if(_0x586a60[_0x14bde5(0x128)]('-')){const [_0x187c3e,_0x9c1066]=_0x586a60[_0x14bde5(0x112)]('-');if(_0x187c3e==='86')return/^\d{11}$/[_0x14bde5(0x129)](_0x9c1066)&&_0x9c1066[_0x14bde5(0x12a)]('1');else return _0x187c3e==='852'?/^\d{8}$/[_0x14bde5(0x129)](_0x9c1066)&&['5','6','9','8'][_0x14bde5(0x128)](_0x9c1066[_0x14bde5(0x11e)](0x0)):/^\d+$/[_0x14bde5(0x129)](_0x9c1066);}else return/^\d+$/[_0x14bde5(0x129)](_0x586a60);}function url(_0x180e0e){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'](_0x180e0e);}function a5_0x40e2(_0x1d7d3c,_0x17fe25){const _0x54cff6=a5_0x54cf();return a5_0x40e2=function(_0x40e2b3,_0x1da0c3){_0x40e2b3=_0x40e2b3-0x110;let _0xafe018=_0x54cff6[_0x40e2b3];return _0xafe018;},a5_0x40e2(_0x1d7d3c,_0x17fe25);}function date(_0x382c7b){const _0xa8e142=a5_0x40e2;if(!_0x382c7b)return![];if(number(_0x382c7b))_0x382c7b=+_0x382c7b;return!/Invalid|NaN/['test'](new Date(_0x382c7b)[_0xa8e142(0x125)]());}function dateISO(_0x130f84){const _0x2abd83=a5_0x40e2;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x2abd83(0x129)](_0x130f84);}function isNumber(_0x59149a){const _0x236117=a5_0x40e2;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x236117(0x129)](_0x59149a);}function isString(_0xa2dacf){return typeof _0xa2dacf==='string';}function digits(_0x365a17){const _0x12b5c0=a5_0x40e2;return/^\d+$/[_0x12b5c0(0x129)](_0x365a17);}function idCard(_0x1b2bea){const _0x1e1f21=a5_0x40e2,_0x10610c=/^[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)$/,_0x4bef8b=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x10610c[_0x1e1f21(0x129)](_0x1b2bea)||_0x4bef8b[_0x1e1f21(0x129)](_0x1b2bea);}function carNo(_0xe7b676){const _0x24b161=a5_0x40e2,_0x1e6f81=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x570ac0=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0xe7b676[_0x24b161(0x11a)]===0x7)return _0x570ac0[_0x24b161(0x129)](_0xe7b676);if(_0xe7b676[_0x24b161(0x11a)]===0x8)return _0x1e6f81[_0x24b161(0x129)](_0xe7b676);return![];}function amount(_0xe0a10e){const _0x2826d3=a5_0x40e2;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x2826d3(0x129)](_0xe0a10e);}function chinese(_0x1afda0){const _0x3fd06d=a5_0x40e2,_0x53b2b4=/^[\u4e00-\u9fa5]+$/gi;return _0x53b2b4[_0x3fd06d(0x129)](_0x1afda0);}function letter(_0x3af7c7){const _0x5a6d4e=a5_0x40e2;return/^[a-zA-Z]*$/[_0x5a6d4e(0x129)](_0x3af7c7);}function enOrNum(_0x4b0bbc){const _0x542358=a5_0x40e2,_0x3f6b66=/^[0-9a-zA-Z]*$/g;return _0x3f6b66[_0x542358(0x129)](_0x4b0bbc);}function contains(_0x1f6e9d,_0x2dd353){return _0x1f6e9d['indexOf'](_0x2dd353)>=0x0;}function a5_0x54cf(){const _0x5743c6=['7271012JCJDOK','2745570ADrYkt','number','undefined','10368336DVXTzE','then','length','prototype','call','string','charAt','function','5GdpZIv','catch','3610404bekXtn','replace','42889608yhkXVm','toString','1796703cxbFJv','[object\x20Object]','includes','test','startsWith','[object\x20RegExp]','1140422mYNCrN','6RDIvnA','boolean','object','isArray','split','^\x5cd{'];a5_0x54cf=function(){return _0x5743c6;};return a5_0x54cf();}function range(_0x1733d8,_0x1e3d63){return _0x1733d8>=_0x1e3d63[0x0]&&_0x1733d8<=_0x1e3d63[0x1];}function rangeLength(_0x14a81a,_0xb514fc){const _0x1309da=a5_0x40e2;return _0x14a81a[_0x1309da(0x11a)]>=_0xb514fc[0x0]&&_0x14a81a['length']<=_0xb514fc[0x1];}function landline(_0x18f230){const _0xa0e4f2=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0xa0e4f2['test'](_0x18f230);}function empty(_0x5361ec){const _0x2f8ed5=a5_0x40e2;switch(typeof _0x5361ec){case _0x2f8ed5(0x117):return!![];case _0x2f8ed5(0x11d):if(_0x5361ec[_0x2f8ed5(0x123)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case _0x2f8ed5(0x12e):if(!_0x5361ec)return!![];break;case _0x2f8ed5(0x116):if(_0x5361ec===0x0||isNaN(_0x5361ec))return!![];break;case _0x2f8ed5(0x110):if(_0x5361ec===null||_0x5361ec[_0x2f8ed5(0x11a)]===0x0)return!![];for(const _0x44b488 in _0x5361ec){return![];}return!![];}return![];}function jsonString(_0x3e3d77){const _0x2a7a8a=a5_0x40e2;if(typeof _0x3e3d77===_0x2a7a8a(0x11d))try{const _0x6de585=JSON['parse'](_0x3e3d77);if(typeof _0x6de585===_0x2a7a8a(0x110)&&_0x6de585)return!![];return![];}catch(_0x176fa2){return![];}return![];}function array(_0x4e6bee){const _0x1bbbd7=a5_0x40e2;if(typeof Array[_0x1bbbd7(0x111)]==='function')return Array['isArray'](_0x4e6bee);return Object[_0x1bbbd7(0x11b)][_0x1bbbd7(0x125)][_0x1bbbd7(0x11c)](_0x4e6bee)==='[object\x20Array]';}function object(_0xff4ac6){const _0xe07cbb=a5_0x40e2;return Object[_0xe07cbb(0x11b)]['toString'][_0xe07cbb(0x11c)](_0xff4ac6)===_0xe07cbb(0x127);}function code(_0x25151a,_0x4f4364=0x6){const _0x4b56aa=a5_0x40e2;return new RegExp(_0x4b56aa(0x113)+_0x4f4364+'}$')['test'](_0x25151a);}function func(_0x208c45){const _0x282b16=a5_0x40e2;return typeof _0x208c45===_0x282b16(0x11f);}function promise(_0x57173c){const _0x49e65d=a5_0x40e2;return object(_0x57173c)&&func(_0x57173c[_0x49e65d(0x119)])&&func(_0x57173c[_0x49e65d(0x121)]);}function image(_0x299756){const _0x4527c5=a5_0x40e2,_0x2a3242=_0x299756[_0x4527c5(0x112)]('?')[0x0],_0x40363e=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x40363e[_0x4527c5(0x129)](_0x2a3242);}function video(_0x5e7b63){const _0x447b6c=a5_0x40e2,_0x1187e7=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x1187e7[_0x447b6c(0x129)](_0x5e7b63);}function regExp(_0x3fe32c){const _0x4404e8=a5_0x40e2;return _0x3fe32c&&Object['prototype'][_0x4404e8(0x125)][_0x4404e8(0x11c)](_0x3fe32c)===_0x4404e8(0x12b);}function isNumeric(_0x1a7259,_0x550474=0x0){const _0x1074a1=a5_0x40e2;if(typeof _0x1a7259===_0x1074a1(0x116))_0x1a7259=_0x1a7259['toString']();if(typeof _0x1a7259!==_0x1074a1(0x11d))return![];switch(_0x550474){case 0x1:return/^\d+(\.\d+)?$/[_0x1074a1(0x129)](_0x1a7259);case 0x2:return/^-\d+(\.\d+)?$/[_0x1074a1(0x129)](_0x1a7259);case 0x3:return/^-?\d+$/[_0x1074a1(0x129)](_0x1a7259);case 0x4:return/^\d+$/['test'](_0x1a7259);case 0x5:return/^-\d+$/[_0x1074a1(0x129)](_0x1a7259);default:return/^-?\d*\.?\d*$/['test'](_0x1a7259)&&!_0x1a7259[_0x1074a1(0x12a)]('.')&&!_0x1a7259[_0x1074a1(0x128)]('--');}}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 a6_0x4dc164=a6_0x18eb;(function(_0x214b1e,_0x439743){const _0x22f1c4=a6_0x18eb,_0x3a9432=_0x214b1e();while(!![]){try{const _0x3a22d7=parseInt(_0x22f1c4(0x8f))/0x1*(parseInt(_0x22f1c4(0xca))/0x2)+parseInt(_0x22f1c4(0x9f))/0x3+-parseInt(_0x22f1c4(0x94))/0x4+-parseInt(_0x22f1c4(0x91))/0x5+-parseInt(_0x22f1c4(0xad))/0x6+parseInt(_0x22f1c4(0xc7))/0x7+-parseInt(_0x22f1c4(0xcc))/0x8*(-parseInt(_0x22f1c4(0x90))/0x9);if(_0x3a22d7===_0x439743)break;else _0x3a9432['push'](_0x3a9432['shift']());}catch(_0xe4cf8e){_0x3a9432['push'](_0x3a9432['shift']());}}}(a6_0x22f5,0xa5921));function fmtNum(_0x59deb6,_0x6350d0=!![]){const _0x103ca8=a6_0x18eb;if(_0x59deb6==0x0)return _0x6350d0?_0x103ca8(0xbb):'0';if(!_0x59deb6)return'';let _0x18aa80=typeof _0x59deb6===_0x103ca8(0xb0)?parseFloat(_0x59deb6):_0x59deb6;if(isNaN(_0x18aa80))return'';return _0x18aa80[_0x103ca8(0xbf)](_0x103ca8(0xb7),{'minimumFractionDigits':_0x6350d0?0x2:0x0,'maximumFractionDigits':_0x6350d0?0x2:0x0});}function splitName(_0x24c811,_0x2d5ea5=![]){const _0x2291a7=a6_0x18eb;let _0x545261={'surname':'','givenName':''};if(_0x2d5ea5){const _0x5c0035=_0x24c811['includes'](',')?_0x24c811[_0x2291a7(0x99)](','):_0x24c811['split'](/\s+/);_0x5c0035[_0x2291a7(0x84)]>=0x2&&(_0x545261['surname']=_0x5c0035[0x0][_0x2291a7(0x8d)](),_0x545261[_0x2291a7(0x88)]=_0x5c0035[0x1][_0x2291a7(0x8d)]());}else{const _0x51d66e=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x23f5fc=0x0;_0x23f5fc<_0x51d66e[_0x2291a7(0x84)];_0x23f5fc++){const _0x29e89e=_0x51d66e[_0x23f5fc];if(_0x24c811['startsWith'](_0x29e89e))return _0x545261['surname']=_0x29e89e,_0x545261[_0x2291a7(0x88)]=_0x24c811[_0x2291a7(0xc2)](_0x29e89e[_0x2291a7(0x84)])[_0x2291a7(0x8d)](),_0x545261;}const _0x51349d=_0x24c811['split']('\x20');if(_0x51349d[_0x2291a7(0x84)]===0x1){const _0x27fd5c=_0x24c811[_0x2291a7(0xb1)](/[\u4e00-\u9fa5]/);_0x545261[_0x2291a7(0x92)]=_0x27fd5c?_0x27fd5c[0x0]:'',_0x545261[_0x2291a7(0x88)]=_0x24c811[_0x2291a7(0xda)](_0x545261[_0x2291a7(0x92)],'')['trim']();}else _0x545261[_0x2291a7(0x92)]=_0x51349d[0x0],_0x545261[_0x2291a7(0x88)]=_0x51349d['slice'](0x1)[_0x2291a7(0x8e)]('\x20');}return _0x545261;}function timeFormat(_0x2a2a55=null,_0x44d83a=a6_0x4dc164(0xbc)){const _0x5688be=a6_0x4dc164;let _0x3ff189;if(!_0x2a2a55)_0x3ff189=new Date();else{if(/^\d{10}$/[_0x5688be(0xc1)](_0x2a2a55?.['toString']()[_0x5688be(0x8d)]()))_0x3ff189=new Date(_0x2a2a55*0x3e8);else{if(typeof _0x2a2a55===_0x5688be(0xb0)&&/^\d+$/[_0x5688be(0xc1)](_0x2a2a55[_0x5688be(0x8d)]()))_0x3ff189=new Date(Number(_0x2a2a55));else typeof _0x2a2a55==='string'&&_0x2a2a55[_0x5688be(0x9a)]('-')&&!_0x2a2a55[_0x5688be(0x9a)]('T')?_0x3ff189=new Date(_0x2a2a55[_0x5688be(0xda)](/-/g,'/')):_0x3ff189=new Date(_0x2a2a55);}}const _0x554215={'y':_0x3ff189[_0x5688be(0xc0)]()['toString'](),'m':(_0x3ff189[_0x5688be(0xb8)]()+0x1)[_0x5688be(0xde)]()['padStart'](0x2,'0'),'d':_0x3ff189[_0x5688be(0xab)]()['toString']()[_0x5688be(0x97)](0x2,'0'),'h':_0x3ff189['getHours']()[_0x5688be(0xde)]()[_0x5688be(0x97)](0x2,'0'),'M':_0x3ff189[_0x5688be(0xdb)]()[_0x5688be(0xde)]()[_0x5688be(0x97)](0x2,'0'),'s':_0x3ff189[_0x5688be(0xb6)]()[_0x5688be(0xde)]()[_0x5688be(0x97)](0x2,'0')};for(const _0x3ae649 in _0x554215){const [_0x1865dd]=new RegExp(_0x3ae649+'+')['exec'](_0x44d83a)||[];if(_0x1865dd){const _0x46641c=_0x3ae649==='y'&&_0x1865dd[_0x5688be(0x84)]===0x2?0x2:0x0;_0x44d83a=_0x44d83a['replace'](_0x1865dd,_0x554215[_0x3ae649][_0x5688be(0xb9)](_0x46641c));}}return _0x44d83a;}function handleOCRData(_0x18ed53,_0x55625c){const _0x309194=a6_0x4dc164,_0x230e20=_0x531d63=>{const _0x3a385c=a6_0x18eb,_0x3ca1f7=_0x531d63[_0x3a385c(0xc2)](0x0,0x4),_0x5e6401=_0x531d63[_0x3a385c(0xc2)](0x4,0x6),_0xcb7e67=_0x531d63[_0x3a385c(0xc2)](0x6,0x8);return _0x3ca1f7+'-'+_0x5e6401+'-'+_0xcb7e67;};let _0xc9697f={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x18ed53===0x0||_0x18ed53===0x1||_0x18ed53===0x2){if(_0x55625c[_0x309194(0xba)]==='M')_0xc9697f['sex']='男';else _0xc9697f['sex']='女';}debugger;_0x18ed53===0x0&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f[_0x309194(0x92)]=_0x55625c[_0x309194(0x95)],_0xc9697f[_0x309194(0x88)]=_0x55625c['FirstName'],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xd6)],_0xc9697f['birthDate']=_0x55625c['BirthDate'],_0xc9697f[_0x309194(0xa9)]=_0x55625c['Nationality'],_0xc9697f['number']=_0x55625c[_0x309194(0x89)]);if(_0x18ed53===0x1){_0xc9697f['name']=_0x55625c[_0x309194(0xae)],_0xc9697f['surname']=_0x55625c[_0x309194(0xc9)],_0xc9697f[_0x309194(0x88)]=_0x55625c[_0x309194(0xaf)],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xa6)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xa1)],_0xc9697f[_0x309194(0xa9)]=_0x55625c['Nationality'],_0xc9697f['number']=_0x55625c['ID'];if(!_0x55625c[_0x309194(0xc9)]&&!_0x55625c[_0x309194(0xaf)]){const _0x52d153=splitName(_0x55625c[_0x309194(0xae)]);_0xc9697f[_0x309194(0x92)]=_0x52d153[_0x309194(0x92)],_0xc9697f['givenName']=_0x52d153['givenName'];}if(!_0x55625c[_0x309194(0xd5)])_0xc9697f[_0x309194(0xa4)]=_0x55625c['Name'];}_0x18ed53===0x2&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c[_0x309194(0xa5)],_0xc9697f[_0x309194(0xa4)]=_0x55625c[_0x309194(0xa3)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xd2)],_0xc9697f['number']=_0x55625c[_0x309194(0x93)]);_0x18ed53===0x3&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f[_0x309194(0x8c)]=_0x55625c[_0x309194(0xba)],_0xc9697f['expDate']=_0x55625c[_0x309194(0xa7)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xdd)],_0xc9697f[_0x309194(0x9e)]=_0x55625c['IdNum']);_0x18ed53===0x4&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f['englishName']=_0x55625c[_0x309194(0xd5)],_0xc9697f[_0x309194(0x8c)]=_0x55625c[_0x309194(0xba)],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xa7)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xd2)],_0xc9697f[_0x309194(0x9e)]=_0x55625c[_0x309194(0xcf)]);_0x18ed53===0x5&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f['englishName']=_0x55625c['EnglishName'],_0xc9697f[_0x309194(0x8c)]=_0x55625c[_0x309194(0xba)],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xa7)],_0xc9697f[_0x309194(0xc3)]=_0x55625c['Birthday'],_0xc9697f[_0x309194(0x9e)]=_0x55625c[_0x309194(0xcf)]);if(_0x18ed53===0x2||_0x18ed53===0x3||_0x18ed53===0x4||_0x18ed53===0x5){const _0x8ce598=splitName(_0xc9697f[_0x309194(0xb3)]);_0xc9697f[_0x309194(0x92)]=_0x8ce598[_0x309194(0x92)],_0xc9697f[_0x309194(0x88)]=_0x8ce598[_0x309194(0x88)];}if(_0x18ed53===0x2||_0x18ed53===0x4||_0x18ed53===0x5){const _0x199e4b=splitName(_0xc9697f['englishName'],!![]);_0xc9697f[_0x309194(0x8a)]=_0x199e4b[_0x309194(0x92)],_0xc9697f[_0x309194(0xa8)]=_0x199e4b['givenName'];}if(_0x18ed53===0x0||_0x18ed53===0x1){if(_0xc9697f['birthDate']!=='')_0xc9697f[_0x309194(0xc3)]=_0x230e20(_0xc9697f['birthDate']);if(_0xc9697f[_0x309194(0x98)]!=='')_0xc9697f['expDate']=_0x230e20(_0xc9697f[_0x309194(0x98)]);}if(_0x18ed53===0x2||_0x18ed53===0x3){if(_0xc9697f[_0x309194(0xc3)]!=='')_0xc9697f[_0x309194(0xc3)]=timeFormat(_0xc9697f[_0x309194(0xc3)]);if(_0xc9697f[_0x309194(0x98)]!=='')_0xc9697f[_0x309194(0x98)]=timeFormat(_0xc9697f[_0x309194(0x98)]);}if(_0x18ed53===0x4||_0x18ed53===0x5){if(_0xc9697f[_0x309194(0xc3)]!=='')_0xc9697f[_0x309194(0xc3)]=timeFormat(_0xc9697f[_0x309194(0xc3)]);if(_0xc9697f[_0x309194(0x98)]!==''){let _0x521aca=_0xc9697f[_0x309194(0x98)][_0x309194(0x99)]('-');_0xc9697f[_0x309194(0x98)]=timeFormat(_0x521aca[0x1]);}}return{'type':_0x18ed53,'data':_0xc9697f};}function modifyKeys(_0x202c27,_0x261e0a={'strCode':a6_0x4dc164(0x9c),'strFjbh':a6_0x4dc164(0xc8),'strGuid':a6_0x4dc164(0xb2),'strValue':a6_0x4dc164(0x85)}){const _0x285bcc=a6_0x4dc164;if(!_0x202c27[_0x285bcc(0x84)]||_0x202c27===null)return[];const _0xa50d3c=_0x202c27[_0x285bcc(0x9d)](_0x5bb8e3=>{const _0x541b5b=_0x285bcc,_0x17416a={};for(const _0x8c259c in _0x5bb8e3){_0x261e0a[_0x541b5b(0xd7)](_0x8c259c)?_0x17416a[_0x261e0a[_0x8c259c]]=_0x5bb8e3[_0x8c259c]:_0x17416a[_0x8c259c]=_0x5bb8e3[_0x8c259c];}return _0x17416a;});return _0xa50d3c;}function sliceArray(_0x1dd05e,_0x6d76ca,_0x526d1e){const _0x21d72f=a6_0x4dc164;if(_0x6d76ca<=0x0)return console[_0x21d72f(0x96)](_0x21d72f(0xc5)),[];return _0x526d1e?_0x1dd05e['slice'](0x0,_0x6d76ca):_0x1dd05e['slice'](-_0x6d76ca);}function findDataByData(_0x3bb230,_0x391cf0,_0x48a038){const _0x3f4e9e=_0x3bb230['find'](_0x2e2e3a=>_0x2e2e3a[_0x48a038]===_0x391cf0);return _0x3f4e9e||null;}function splitArray(_0x30d811,_0x3ec6ef){const _0x1d0cd8=a6_0x4dc164,_0x768667=[];for(let _0x144113=0x0;_0x144113<_0x30d811[_0x1d0cd8(0x84)];_0x144113+=_0x3ec6ef){_0x768667['push'](_0x30d811[_0x1d0cd8(0xb9)](_0x144113,_0x144113+_0x3ec6ef));}return _0x768667;}function getProxyType(_0x5bc263){const _0x1868e2=a6_0x4dc164;return Object[_0x1868e2(0xd4)][_0x1868e2(0xde)][_0x1868e2(0xcd)](_0x5bc263)[_0x1868e2(0xb9)](0x8,-0x1);}let timeout=null;function debounce(_0x1c784b,_0x44e4f0=0x1f4,_0x801e94=![]){const _0x20ce05=a6_0x4dc164;if(timeout!==null)clearTimeout(timeout);if(_0x801e94){const _0x45bd97=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x44e4f0);if(_0x45bd97)typeof _0x1c784b===_0x20ce05(0x8b)&&_0x1c784b();}else timeout=setTimeout(()=>{const _0x105b91=_0x20ce05;typeof _0x1c784b===_0x105b91(0x8b)&&_0x1c784b();},_0x44e4f0);}function urlEncode(_0x3d88a1={}){const _0x30c411=a6_0x4dc164,_0x931dfb=[];for(const _0x35f33e in _0x3d88a1){const _0x50e164=_0x3d88a1[_0x35f33e];if(!_0x50e164)continue;isArray(_0x50e164)?_0x50e164[_0x30c411(0xaa)](_0x17f11c=>{const _0x5bd3e0=_0x30c411;_0x931dfb[_0x5bd3e0(0xd8)](_0x35f33e+'='+_0x17f11c);}):_0x931dfb[_0x30c411(0xd8)](_0x35f33e+'='+_0x50e164);}return _0x931dfb[_0x30c411(0x8e)]('&');}function dateFormat(_0x49fdfa,_0x4a045c){const _0xe406b7=a6_0x4dc164,_0x5184c3=new Date(_0x4a045c),_0x414c30={'Y+':_0x5184c3[_0xe406b7(0xc0)]()[_0xe406b7(0xde)](),'m+':(_0x5184c3[_0xe406b7(0xb8)]()+0x1)[_0xe406b7(0xde)](),'d+':_0x5184c3[_0xe406b7(0xab)]()[_0xe406b7(0xde)](),'H+':_0x5184c3['getHours']()[_0xe406b7(0xde)](),'M+':_0x5184c3[_0xe406b7(0xdb)]()[_0xe406b7(0xde)](),'S+':_0x5184c3[_0xe406b7(0xb6)]()['toString']()};let _0x3c6980;for(let _0x1b2040 in _0x414c30){_0x3c6980=new RegExp('('+_0x1b2040+')')[_0xe406b7(0xd1)](_0x49fdfa);_0x3c6980&&(_0x49fdfa=_0x49fdfa[_0xe406b7(0xda)](_0x3c6980[0x1],_0x3c6980[0x1]['length']==0x1?_0x414c30[_0x1b2040]:_0x414c30[_0x1b2040]['padStart'](_0x3c6980[0x1][_0xe406b7(0x84)],'0')));;};return _0x49fdfa;}function formatDate(_0x443b88,_0x527cfd=a6_0x4dc164(0xc4),_0x503d67={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x4b1554=a6_0x4dc164,_0x476191=new Date(_0x443b88),_0x1e3367=_0x476191['getFullYear'](),_0x109b7d=_0x476191[_0x4b1554(0xb8)]()+0x1,_0x3b7784=_0x476191[_0x4b1554(0xab)](),_0x3681dc=_0x109b7d<0xa?'0'+_0x109b7d:_0x109b7d,_0x25de90=_0x3b7784<0xa?'0'+_0x3b7784:_0x3b7784;let _0x5a68f5=_0x527cfd['replace'](_0x4b1554(0xd9),_0x1e3367)[_0x4b1554(0xda)]('MM',_0x3681dc)[_0x4b1554(0xda)]('DD',_0x25de90);return _0x5a68f5=_0x5a68f5['replace'](/-MM/g,_0x503d67[_0x4b1554(0xcb)])['replace'](/-DD/g,_0x503d67['dayTitle'])['replace'](_0x4b1554(0xd9)+_0x503d67[_0x4b1554(0xb5)],'')[_0x4b1554(0xda)]('MM'+_0x503d67['monthTitle'],'')['replace']('DD'+_0x503d67['dayTitle'],''),_0x5a68f5;}function compareDates(_0x2b8aad,_0x5cc882){const _0xd664b0=a6_0x4dc164;_0x2b8aad=new Date(_0x2b8aad);!_0x5cc882?_0x5cc882=new Date():_0x5cc882=new Date(_0x5cc882);_0x2b8aad[_0xd664b0(0xdf)](0x0,0x0,0x0,0x0),_0x5cc882[_0xd664b0(0xdf)](0x0,0x0,0x0,0x0);var _0xcfb20f=_0x2b8aad[_0xd664b0(0x87)](),_0x4bb620=_0x5cc882[_0xd664b0(0x87)]();if(_0xcfb20f<_0x4bb620)return-0x1;else return _0xcfb20f>_0x4bb620?0x1:0x0;}function getDaysBetween(_0x244c79,_0x14051a){const _0x1f4ca2=a6_0x4dc164,_0x1d2bcc=new Date(_0x244c79),_0x5d6cfc=new Date(_0x14051a),_0x2aff5a=Math[_0x1f4ca2(0xd0)](_0x1d2bcc[_0x1f4ca2(0x87)]()-_0x5d6cfc[_0x1f4ca2(0x87)]()),_0x332a9d=Math[_0x1f4ca2(0x9b)](_0x2aff5a/(0x3e8*0x3c*0x3c*0x18));return _0x332a9d+0x1;}function chineseNumeral(_0x3663bf){const _0x1a7906=a6_0x4dc164,_0x1f1141=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x47f41b=['','拾','佰','仟'],_0x80a3e0=['','万','亿','兆'];let _0x7e6f62=Math[_0x1a7906(0x9b)](_0x3663bf),_0x50a6c6=Math[_0x1a7906(0xa0)]((_0x3663bf-_0x7e6f62)*0x64),_0x29e378='';for(let _0x4c2abf=0x0;_0x7e6f62>0x0;_0x4c2abf++){let _0x15a809='',_0x435aef=_0x7e6f62%0x2710;_0x7e6f62=Math[_0x1a7906(0x9b)](_0x7e6f62/0x2710);for(let _0x127d9e=0x0;_0x435aef>0x0;_0x127d9e++){let _0x3884f2=_0x435aef%0xa;_0x15a809=(_0x3884f2?_0x1f1141[_0x3884f2]+_0x47f41b[_0x127d9e]:'')+_0x15a809,_0x435aef=Math[_0x1a7906(0x9b)](_0x435aef/0xa);}_0x29e378=_0x15a809+(_0x15a809?_0x80a3e0[_0x4c2abf]:_0x80a3e0[_0x4c2abf]&&!_0x29e378['includes']('零')?'零':'')+_0x29e378;}_0x29e378+=_0x29e378?'元':'零元';if(_0x50a6c6>0x0){let _0x365f93=Math[_0x1a7906(0x9b)](_0x50a6c6/0xa),_0x31cede=_0x50a6c6%0xa;_0x29e378+=(_0x365f93?_0x1f1141[_0x365f93]+'角':'')+(_0x31cede?_0x1f1141[_0x31cede]+'分':'');}else _0x29e378+='整';return _0x29e378[_0x1a7906(0xda)](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x537817){const _0x1845bf=a6_0x4dc164;(!_0x537817||_0x537817[_0x1845bf(0x8d)]()==='')&&(_0x537817=new Date()[_0x1845bf(0xc0)]()+'-'+(new Date()[_0x1845bf(0xb8)]()+0x1));let _0x14f7fd=[],[_0x46aa80,_0x35d149]=_0x537817[_0x1845bf(0x99)]('-')['map'](Number),_0x36313c=new Date(_0x46aa80,_0x35d149,0x0),_0x4ba187=_0x36313c[_0x1845bf(0xab)]();for(let _0x5e3277=0x1;_0x5e3277<=_0x4ba187;_0x5e3277++){let _0x50295c=_0x5e3277<0xa?'0'+_0x5e3277:''+_0x5e3277,_0x28c46b=_0x35d149<0xa?'0'+_0x35d149:''+_0x35d149;_0x14f7fd[_0x1845bf(0xd8)]({'date':_0x46aa80+'-'+_0x28c46b+'-'+_0x50295c,'disable':!![]});}return _0x14f7fd;}function getToday(_0x48e775){const _0x58e1f3=a6_0x4dc164;var _0x195fc8=new Date(),_0x44a0e2=String(_0x195fc8[_0x58e1f3(0xab)]())[_0x58e1f3(0x97)](0x2,'0'),_0x42651a=String(_0x195fc8[_0x58e1f3(0xb8)]()+0x1)[_0x58e1f3(0x97)](0x2,'0'),_0xdcd081=_0x195fc8[_0x58e1f3(0xc0)]();return _0x195fc8=_0xdcd081+'-'+_0x42651a+'-'+_0x44a0e2,_0x195fc8;}function a6_0x18eb(_0x4e1c0b,_0x2a70a0){const _0x22f566=a6_0x22f5();return a6_0x18eb=function(_0x18ebbf,_0x43d44b){_0x18ebbf=_0x18ebbf-0x84;let _0x41888f=_0x22f566[_0x18ebbf];return _0x41888f;},a6_0x18eb(_0x4e1c0b,_0x2a70a0);}function resetObject(_0x31437b){const _0x54231f=a6_0x4dc164;let _0x5e5b59=JSON['parse'](JSON[_0x54231f(0xa2)](_0x31437b));for(const _0x188df5 in _0x5e5b59){if(typeof _0x5e5b59[_0x188df5]===_0x54231f(0x9e))_0x5e5b59[_0x188df5]=0x0;else{if(typeof _0x5e5b59[_0x188df5]===_0x54231f(0xb4))_0x5e5b59[_0x188df5]=![];else{if(Array[_0x54231f(0xe0)](_0x5e5b59[_0x188df5]))_0x5e5b59[_0x188df5]=[];else typeof _0x5e5b59[_0x188df5]===_0x54231f(0xdc)&&_0x5e5b59[_0x188df5]!==null?resetObject(_0x5e5b59[_0x188df5]):_0x5e5b59[_0x188df5]='';}}}return _0x5e5b59;}function preciseOperation(_0x1292ea,_0x1b03c1,_0xfc977c,_0x39b277=0xf4240){const _0x1cc446=a6_0x4dc164;if(isNaN(_0x1292ea)||isNaN(_0x1b03c1))return NaN;if(!isFinite(_0x1292ea)||!isFinite(_0x1b03c1))return NaN;let _0x1a0413=BigInt(Math[_0x1cc446(0xa0)](_0x1292ea*_0x39b277)),_0x136294=BigInt(Math[_0x1cc446(0xa0)](_0x1b03c1*_0x39b277)),_0x2a346e;switch(_0xfc977c){case 0x1:_0x2a346e=_0x1a0413+_0x136294;break;case 0x2:_0x2a346e=_0x1a0413-_0x136294;break;case 0x3:_0x2a346e=_0x1a0413*_0x136294;break;case 0x4:if(_0x136294===0x0n)throw new Error('除数不能为0');_0x2a346e=_0x1a0413/_0x136294;break;default:throw new Error(_0x1cc446(0xd3));}return Number(_0x2a346e)/_0x39b277;}function preciseSum(_0x52634f){const _0x15658c=a6_0x4dc164;let _0x4608d8=0x0;for(const _0x2b488b of _0x52634f){let _0x566ed3=0x0;if(typeof _0x2b488b===_0x15658c(0xb0)){const _0x21cd11=parseFloat(_0x2b488b);!isNaN(_0x21cd11)&&(_0x566ed3=_0x21cd11);}else typeof _0x2b488b===_0x15658c(0x9e)&&(_0x566ed3=_0x2b488b);_0x4608d8=preciseOperation(_0x4608d8,_0x566ed3,0x1);}return _0x4608d8;}function getRelativeDate(_0x1f6001,_0x454b1f=0x0){const _0x1606b3=a6_0x4dc164,_0x96af31=new Date(_0x1f6001);_0x96af31['setDate'](_0x96af31[_0x1606b3(0xab)]()+_0x454b1f);const _0x1156e3=_0x96af31[_0x1606b3(0xc0)](),_0x4ca31c=(_0x96af31[_0x1606b3(0xb8)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x1a981c=_0x96af31[_0x1606b3(0xab)]()[_0x1606b3(0xde)]()[_0x1606b3(0x97)](0x2,'0');return _0x1156e3+'-'+_0x4ca31c+'-'+_0x1a981c;}function validateFields(_0x495ec0,_0x5eebb4,_0x2c67c9=''){for(let _0xbca27b of _0x5eebb4){if(_0x495ec0[_0xbca27b]===_0x2c67c9)return!![];}return![];}function mergeObjects(_0x4fa563,_0x1a6aca){const _0x205e19=a6_0x4dc164;for(const _0x5119c8 in _0x4fa563){_0x1a6aca[_0x205e19(0xd7)](_0x5119c8)&&(_0x4fa563[_0x5119c8]=_0x1a6aca[_0x5119c8]);}return _0x4fa563;}const formatToDecimal=(_0x2ce194,_0x39e8ae=0x2)=>{const _0x18e40b=a6_0x4dc164;if(isNaN(_0x39e8ae)||_0x39e8ae<0x0)return _0x2ce194;let _0x505ebf=Number(_0x2ce194);if(!isFinite(_0x505ebf))return _0x2ce194;return _0x39e8ae=Math['max'](0x0,Math['floor'](_0x39e8ae)),_0x505ebf[_0x18e40b(0x86)](_0x39e8ae);};function findKeysEndingWith(_0x3e723e,_0x1337f3='_qh'){const _0x4a6167=a6_0x4dc164;let _0xe32119=[];for(var _0x5ebf05 in _0x3e723e){if(_0x3e723e['hasOwnProperty'](_0x5ebf05)){if(_0x5ebf05[_0x4a6167(0xbe)](_0x1337f3))_0xe32119[_0x4a6167(0xd8)](_0x5ebf05);}}return _0xe32119;}function a6_0x22f5(){const _0x4fe292=['toString','setHours','isArray','length','label','toFixed','getTime','givenName','PassportNo','surnameEn','function','sex','trim','join','13299zwLyvs','39933zmelIr','4464845mIEGJQ','surname','IdNum','1772512ktYqXt','FamilyName','error','padStart','expDate','split','includes','floor','code','map','number','3935082eaXjNM','round','DateOfBirth','stringify','EnName','englishName','CnName','DateOfExpiration','ValidDate','givenNameEn','nationality','forEach','getDate','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','5888784pznbIz','Name','GivenName','string','match','value','name','boolean','yearTitle','getSeconds','en-US','getMonth','slice','Sex','0.00','yyyy-mm-dd','both','endsWith','toLocaleString','getFullYear','test','substring','birthDate','YYYY-MM-DD','Quantity\x20should\x20be\x20greater\x20than\x200.','random','7379694ghjKWz','fjbh','Surname','42cauFtp','monthTitle','632sfacJl','call','right','Number','abs','exec','Birthday','无效的操作符,操作符应为1、2、3或4','prototype','EnglishName','ExpiryDate','hasOwnProperty','push','YYYY','replace','getMinutes','object','Birth'];a6_0x22f5=function(){return _0x4fe292;};return a6_0x22f5();}function guid(_0x2d3f43=0x20,_0x64d048=!![],_0x5336e7=null){const _0x5ad0c0=a6_0x4dc164,_0x1b5faf=_0x5ad0c0(0xac)['split'](''),_0x3215a5=[];_0x5336e7=_0x5336e7||_0x1b5faf[_0x5ad0c0(0x84)];if(_0x2d3f43){for(let _0x5a75db=0x0;_0x5a75db<_0x2d3f43;_0x5a75db++)_0x3215a5[_0x5a75db]=_0x1b5faf[0x0|Math[_0x5ad0c0(0xc6)]()*_0x5336e7];}else{let _0x4ec03a;_0x3215a5[0x8]=_0x3215a5[0xd]=_0x3215a5[0x12]=_0x3215a5[0x17]='-',_0x3215a5[0xe]='4';for(let _0x3e6295=0x0;_0x3e6295<0x24;_0x3e6295++){!_0x3215a5[_0x3e6295]&&(_0x4ec03a=0x0|Math[_0x5ad0c0(0xc6)]()*0x10,_0x3215a5[_0x3e6295]=_0x1b5faf[_0x3e6295==0x13?_0x4ec03a&0x3|0x8:_0x4ec03a]);}}if(_0x64d048)return _0x3215a5['shift'](),'u'+_0x3215a5[_0x5ad0c0(0x8e)]('');return _0x3215a5[_0x5ad0c0(0x8e)]('');}function trim(_0x1c78af,_0x336f9e=a6_0x4dc164(0xbd)){const _0x114e9b=a6_0x4dc164;_0x1c78af=String(_0x1c78af);if(_0x336f9e=='both')return _0x1c78af['replace'](/^\s+|\s+$/g,'');if(_0x336f9e=='left')return _0x1c78af['replace'](/^\s*/,'');if(_0x336f9e==_0x114e9b(0xce))return _0x1c78af[_0x114e9b(0xda)](/(\s*$)/g,'');if(_0x336f9e=='all')return _0x1c78af[_0x114e9b(0xda)](/\s+/g,'');return _0x1c78af;}export default{'handleOCRData':handleOCRData,'timeFormat':timeFormat,'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|
|
1
|
+
const a6_0x525c55=a6_0x38d2;(function(_0x2bba12,_0x2b69ce){const _0x14c27c=a6_0x38d2,_0xa644a1=_0x2bba12();while(!![]){try{const _0x2ed7dd=parseInt(_0x14c27c(0x182))/0x1+-parseInt(_0x14c27c(0x15d))/0x2*(parseInt(_0x14c27c(0x17e))/0x3)+-parseInt(_0x14c27c(0x17a))/0x4*(-parseInt(_0x14c27c(0x180))/0x5)+parseInt(_0x14c27c(0x162))/0x6+parseInt(_0x14c27c(0x16f))/0x7+parseInt(_0x14c27c(0x17d))/0x8+-parseInt(_0x14c27c(0x190))/0x9;if(_0x2ed7dd===_0x2b69ce)break;else _0xa644a1['push'](_0xa644a1['shift']());}catch(_0x5c8d54){_0xa644a1['push'](_0xa644a1['shift']());}}}(a6_0x3d35,0x3e0a1));function fmtNum(_0x1533da,_0x257647=!![]){const _0x59ad7e=a6_0x38d2;if(_0x1533da==0x0)return _0x257647?_0x59ad7e(0x174):'0';if(!_0x1533da)return'';let _0x13821f=typeof _0x1533da===_0x59ad7e(0x197)?parseFloat(_0x1533da):_0x1533da;if(isNaN(_0x13821f))return'';return _0x13821f[_0x59ad7e(0x178)](_0x59ad7e(0x163),{'minimumFractionDigits':_0x257647?0x2:0x0,'maximumFractionDigits':_0x257647?0x2:0x0});}function splitName(_0x240168,_0x1386d4=![]){const _0x6cd6b1=a6_0x38d2;let _0x31ff2b={'surname':'','givenName':''};if(_0x1386d4){const _0x46326c=_0x240168[_0x6cd6b1(0x1a7)](',')?_0x240168[_0x6cd6b1(0x165)](','):_0x240168['split'](/\s+/);_0x46326c[_0x6cd6b1(0x194)]>=0x2&&(_0x31ff2b[_0x6cd6b1(0x198)]=_0x46326c[0x0][_0x6cd6b1(0x18d)](),_0x31ff2b[_0x6cd6b1(0x18b)]=_0x46326c[0x1][_0x6cd6b1(0x18d)]());}else{const _0x1d0b2e=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x5178da=0x0;_0x5178da<_0x1d0b2e[_0x6cd6b1(0x194)];_0x5178da++){const _0x36e99e=_0x1d0b2e[_0x5178da];if(_0x240168[_0x6cd6b1(0x1a0)](_0x36e99e))return _0x31ff2b[_0x6cd6b1(0x198)]=_0x36e99e,_0x31ff2b['givenName']=_0x240168[_0x6cd6b1(0x19e)](_0x36e99e['length'])[_0x6cd6b1(0x18d)](),_0x31ff2b;}const _0x31d873=_0x240168[_0x6cd6b1(0x165)]('\x20');if(_0x31d873['length']===0x1){const _0x42b230=_0x240168['match'](/[\u4e00-\u9fa5]/);_0x31ff2b[_0x6cd6b1(0x198)]=_0x42b230?_0x42b230[0x0]:'',_0x31ff2b[_0x6cd6b1(0x18b)]=_0x240168[_0x6cd6b1(0x173)](_0x31ff2b[_0x6cd6b1(0x198)],'')[_0x6cd6b1(0x18d)]();}else _0x31ff2b[_0x6cd6b1(0x198)]=_0x31d873[0x0],_0x31ff2b['givenName']=_0x31d873[_0x6cd6b1(0x155)](0x1)[_0x6cd6b1(0x191)]('\x20');}return _0x31ff2b;}function timeFormat(_0x620423=null,_0x29b6f3=a6_0x525c55(0x196)){const _0x6029a3=a6_0x525c55;let _0x127474;if(!_0x620423)_0x127474=new Date();else{if(/^\d{10}$/[_0x6029a3(0x18c)](_0x620423?.['toString']()[_0x6029a3(0x18d)]()))_0x127474=new Date(_0x620423*0x3e8);else{if(typeof _0x620423==='string'&&/^\d+$/[_0x6029a3(0x18c)](_0x620423[_0x6029a3(0x18d)]()))_0x127474=new Date(Number(_0x620423));else typeof _0x620423==='string'&&_0x620423['includes']('-')&&!_0x620423[_0x6029a3(0x1a7)]('T')?_0x127474=new Date(_0x620423[_0x6029a3(0x173)](/-/g,'/')):_0x127474=new Date(_0x620423);}}const _0x52eec1={'y':_0x127474[_0x6029a3(0x16e)]()[_0x6029a3(0x175)](),'m':(_0x127474['getMonth']()+0x1)['toString']()[_0x6029a3(0x186)](0x2,'0'),'d':_0x127474['getDate']()[_0x6029a3(0x175)]()[_0x6029a3(0x186)](0x2,'0'),'h':_0x127474['getHours']()[_0x6029a3(0x175)]()[_0x6029a3(0x186)](0x2,'0'),'M':_0x127474[_0x6029a3(0x17c)]()[_0x6029a3(0x175)]()[_0x6029a3(0x186)](0x2,'0'),'s':_0x127474[_0x6029a3(0x16b)]()['toString']()[_0x6029a3(0x186)](0x2,'0')};for(const _0x4712a2 in _0x52eec1){const [_0x416cc3]=new RegExp(_0x4712a2+'+')[_0x6029a3(0x189)](_0x29b6f3)||[];if(_0x416cc3){const _0x508d18=_0x4712a2==='y'&&_0x416cc3[_0x6029a3(0x194)]===0x2?0x2:0x0;_0x29b6f3=_0x29b6f3[_0x6029a3(0x173)](_0x416cc3,_0x52eec1[_0x4712a2][_0x6029a3(0x155)](_0x508d18));}}return _0x29b6f3;}function handleOCRData(_0x46851a,_0x2fc3cf){const _0x48938d=a6_0x525c55,_0x4db0e4=_0x3cbfb5=>{const _0x4c2874=a6_0x38d2,_0x304030=_0x3cbfb5[_0x4c2874(0x19e)](0x0,0x4),_0x167d31=_0x3cbfb5[_0x4c2874(0x19e)](0x4,0x6),_0x192329=_0x3cbfb5['substring'](0x6,0x8);return _0x304030+'-'+_0x167d31+'-'+_0x192329;};let _0x5950c1={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x46851a===0x0||_0x46851a===0x1||_0x46851a===0x2){if(_0x2fc3cf[_0x48938d(0x168)]==='M')_0x5950c1[_0x48938d(0x192)]='男';else _0x5950c1[_0x48938d(0x192)]='女';}debugger;_0x46851a===0x0&&(_0x5950c1[_0x48938d(0x18f)]=_0x2fc3cf['Name'],_0x5950c1['surname']=_0x2fc3cf[_0x48938d(0x152)],_0x5950c1['givenName']=_0x2fc3cf[_0x48938d(0x1a2)],_0x5950c1[_0x48938d(0x167)]=_0x2fc3cf[_0x48938d(0x199)],_0x5950c1[_0x48938d(0x188)]=_0x2fc3cf[_0x48938d(0x169)],_0x5950c1[_0x48938d(0x193)]=_0x2fc3cf[_0x48938d(0x1af)],_0x5950c1[_0x48938d(0x15a)]=_0x2fc3cf[_0x48938d(0x1ab)]);if(_0x46851a===0x1){_0x5950c1['name']=_0x2fc3cf[_0x48938d(0x166)],_0x5950c1[_0x48938d(0x198)]=_0x2fc3cf[_0x48938d(0x172)],_0x5950c1[_0x48938d(0x18b)]=_0x2fc3cf[_0x48938d(0x179)],_0x5950c1[_0x48938d(0x167)]=_0x2fc3cf['DateOfExpiration'],_0x5950c1['birthDate']=_0x2fc3cf['DateOfBirth'],_0x5950c1['nationality']=_0x2fc3cf[_0x48938d(0x1af)],_0x5950c1[_0x48938d(0x15a)]=_0x2fc3cf['ID'];if(!_0x2fc3cf[_0x48938d(0x172)]&&!_0x2fc3cf[_0x48938d(0x179)]){const _0x2fbfea=splitName(_0x2fc3cf['Name']);_0x5950c1['surname']=_0x2fbfea[_0x48938d(0x198)],_0x5950c1[_0x48938d(0x18b)]=_0x2fbfea['givenName'];}if(!_0x2fc3cf[_0x48938d(0x181)])_0x5950c1[_0x48938d(0x16d)]=_0x2fc3cf[_0x48938d(0x166)];}_0x46851a===0x2&&(_0x5950c1[_0x48938d(0x18f)]=_0x2fc3cf[_0x48938d(0x1a1)],_0x5950c1[_0x48938d(0x16d)]=_0x2fc3cf[_0x48938d(0x19a)],_0x5950c1[_0x48938d(0x188)]=_0x2fc3cf['Birthday'],_0x5950c1[_0x48938d(0x15a)]=_0x2fc3cf['IdNum']);_0x46851a===0x3&&(_0x5950c1[_0x48938d(0x18f)]=_0x2fc3cf['Name'],_0x5950c1['sex']=_0x2fc3cf[_0x48938d(0x168)],_0x5950c1['expDate']=_0x2fc3cf[_0x48938d(0x1a3)],_0x5950c1['birthDate']=_0x2fc3cf[_0x48938d(0x1ad)],_0x5950c1[_0x48938d(0x15a)]=_0x2fc3cf['IdNum']);_0x46851a===0x4&&(_0x5950c1[_0x48938d(0x18f)]=_0x2fc3cf['Name'],_0x5950c1[_0x48938d(0x16d)]=_0x2fc3cf[_0x48938d(0x181)],_0x5950c1[_0x48938d(0x192)]=_0x2fc3cf[_0x48938d(0x168)],_0x5950c1[_0x48938d(0x167)]=_0x2fc3cf['ValidDate'],_0x5950c1[_0x48938d(0x188)]=_0x2fc3cf[_0x48938d(0x15c)],_0x5950c1['number']=_0x2fc3cf[_0x48938d(0x153)]);_0x46851a===0x5&&(_0x5950c1[_0x48938d(0x18f)]=_0x2fc3cf[_0x48938d(0x166)],_0x5950c1['englishName']=_0x2fc3cf[_0x48938d(0x181)],_0x5950c1['sex']=_0x2fc3cf[_0x48938d(0x168)],_0x5950c1[_0x48938d(0x167)]=_0x2fc3cf[_0x48938d(0x1a3)],_0x5950c1['birthDate']=_0x2fc3cf[_0x48938d(0x15c)],_0x5950c1[_0x48938d(0x15a)]=_0x2fc3cf[_0x48938d(0x153)]);if(_0x46851a===0x2||_0x46851a===0x3||_0x46851a===0x4||_0x46851a===0x5){const _0x5e2cb8=splitName(_0x5950c1[_0x48938d(0x18f)]);_0x5950c1[_0x48938d(0x198)]=_0x5e2cb8[_0x48938d(0x198)],_0x5950c1['givenName']=_0x5e2cb8[_0x48938d(0x18b)];}if(_0x46851a===0x2||_0x46851a===0x4||_0x46851a===0x5){const _0x38084c=splitName(_0x5950c1[_0x48938d(0x16d)],!![]);_0x5950c1[_0x48938d(0x1a5)]=_0x38084c[_0x48938d(0x198)],_0x5950c1[_0x48938d(0x171)]=_0x38084c[_0x48938d(0x18b)];}if(_0x46851a===0x0||_0x46851a===0x1){if(_0x5950c1[_0x48938d(0x188)]!=='')_0x5950c1['birthDate']=_0x4db0e4(_0x5950c1[_0x48938d(0x188)]);if(_0x5950c1[_0x48938d(0x167)]!=='')_0x5950c1[_0x48938d(0x167)]=_0x4db0e4(_0x5950c1[_0x48938d(0x167)]);}if(_0x46851a===0x2||_0x46851a===0x3){if(_0x5950c1['birthDate']!=='')_0x5950c1[_0x48938d(0x188)]=timeFormat(_0x5950c1[_0x48938d(0x188)]);if(_0x5950c1[_0x48938d(0x167)]!=='')_0x5950c1[_0x48938d(0x167)]=timeFormat(_0x5950c1[_0x48938d(0x167)]);}if(_0x46851a===0x4||_0x46851a===0x5){if(_0x5950c1[_0x48938d(0x188)]!=='')_0x5950c1[_0x48938d(0x188)]=timeFormat(_0x5950c1[_0x48938d(0x188)]);if(_0x5950c1[_0x48938d(0x167)]!==''){let _0x2ec018=_0x5950c1[_0x48938d(0x167)][_0x48938d(0x165)]('-');_0x5950c1[_0x48938d(0x167)]=timeFormat(_0x2ec018[0x1]);}}return{'type':_0x46851a,'data':_0x5950c1};}function modifyKeys(_0xbc99c8,_0x37dbed={'strCode':a6_0x525c55(0x1ac),'strFjbh':a6_0x525c55(0x19b),'strGuid':a6_0x525c55(0x187),'strValue':'label'}){const _0x26fbe4=a6_0x525c55;if(!_0xbc99c8[_0x26fbe4(0x194)]||_0xbc99c8===null)return[];const _0x595191=_0xbc99c8[_0x26fbe4(0x19f)](_0xf82021=>{const _0x4278cc=_0x26fbe4,_0x27dc14={};for(const _0x4fc7df in _0xf82021){_0x37dbed[_0x4278cc(0x161)](_0x4fc7df)?_0x27dc14[_0x37dbed[_0x4fc7df]]=_0xf82021[_0x4fc7df]:_0x27dc14[_0x4fc7df]=_0xf82021[_0x4fc7df];}return _0x27dc14;});return _0x595191;}function sliceArray(_0x3a32f4,_0x55ef8a,_0x357e8d){const _0x3059e2=a6_0x525c55;if(_0x55ef8a<=0x0)return console[_0x3059e2(0x177)](_0x3059e2(0x185)),[];return _0x357e8d?_0x3a32f4[_0x3059e2(0x155)](0x0,_0x55ef8a):_0x3a32f4[_0x3059e2(0x155)](-_0x55ef8a);}function findDataByData(_0x545ee2,_0xb80486,_0x11efa3){const _0x2f850d=a6_0x525c55,_0x2dd39f=_0x545ee2[_0x2f850d(0x158)](_0x41a115=>_0x41a115[_0x11efa3]===_0xb80486);return _0x2dd39f||null;}function splitArray(_0x580c19,_0x12166e){const _0x24d6c9=a6_0x525c55,_0x2e5fcf=[];for(let _0x5ca94f=0x0;_0x5ca94f<_0x580c19[_0x24d6c9(0x194)];_0x5ca94f+=_0x12166e){_0x2e5fcf['push'](_0x580c19[_0x24d6c9(0x155)](_0x5ca94f,_0x5ca94f+_0x12166e));}return _0x2e5fcf;}function getProxyType(_0x1e4af5){const _0x4fe202=a6_0x525c55;return Object[_0x4fe202(0x156)][_0x4fe202(0x175)]['call'](_0x1e4af5)[_0x4fe202(0x155)](0x8,-0x1);}let timeout=null;function debounce(_0x431269,_0x40db32=0x1f4,_0x58c34a=![]){const _0x1664ef=a6_0x525c55;if(timeout!==null)clearTimeout(timeout);if(_0x58c34a){const _0x9db500=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x40db32);if(_0x9db500)typeof _0x431269===_0x1664ef(0x170)&&_0x431269();}else timeout=setTimeout(()=>{const _0x5b3c99=_0x1664ef;typeof _0x431269===_0x5b3c99(0x170)&&_0x431269();},_0x40db32);}function urlEncode(_0xd07950={}){const _0x1c78fc=a6_0x525c55,_0x3a4b76=[];for(const _0x29fb5a in _0xd07950){const _0xd247ee=_0xd07950[_0x29fb5a];if(!_0xd247ee)continue;isArray(_0xd247ee)?_0xd247ee[_0x1c78fc(0x19c)](_0x5dc641=>{const _0x3ee2b1=_0x1c78fc;_0x3a4b76[_0x3ee2b1(0x16a)](_0x29fb5a+'='+_0x5dc641);}):_0x3a4b76[_0x1c78fc(0x16a)](_0x29fb5a+'='+_0xd247ee);}return _0x3a4b76[_0x1c78fc(0x191)]('&');}function dateFormat(_0x2dd1e2,_0x7fed41){const _0x5ce319=a6_0x525c55,_0x5f3468=new Date(_0x7fed41),_0x418a54={'Y+':_0x5f3468[_0x5ce319(0x16e)]()[_0x5ce319(0x175)](),'m+':(_0x5f3468[_0x5ce319(0x195)]()+0x1)[_0x5ce319(0x175)](),'d+':_0x5f3468[_0x5ce319(0x19d)]()[_0x5ce319(0x175)](),'H+':_0x5f3468[_0x5ce319(0x1aa)]()[_0x5ce319(0x175)](),'M+':_0x5f3468[_0x5ce319(0x17c)]()[_0x5ce319(0x175)](),'S+':_0x5f3468[_0x5ce319(0x16b)]()[_0x5ce319(0x175)]()};let _0x30ed02;for(let _0x7c83cf in _0x418a54){_0x30ed02=new RegExp('('+_0x7c83cf+')')[_0x5ce319(0x189)](_0x2dd1e2);_0x30ed02&&(_0x2dd1e2=_0x2dd1e2['replace'](_0x30ed02[0x1],_0x30ed02[0x1][_0x5ce319(0x194)]==0x1?_0x418a54[_0x7c83cf]:_0x418a54[_0x7c83cf][_0x5ce319(0x186)](_0x30ed02[0x1][_0x5ce319(0x194)],'0')));;};return _0x2dd1e2;}function formatDate(_0x3a537e,_0x4ea34b=a6_0x525c55(0x15f),_0xf7fa69={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x4668b2=a6_0x525c55,_0x21b2f7=new Date(_0x3a537e),_0x2dc77c=_0x21b2f7[_0x4668b2(0x16e)](),_0x24e6bb=_0x21b2f7[_0x4668b2(0x195)]()+0x1,_0x3b0aed=_0x21b2f7['getDate'](),_0x32a166=_0x24e6bb<0xa?'0'+_0x24e6bb:_0x24e6bb,_0x178652=_0x3b0aed<0xa?'0'+_0x3b0aed:_0x3b0aed;let _0xa10996=_0x4ea34b['replace']('YYYY',_0x2dc77c)['replace']('MM',_0x32a166)['replace']('DD',_0x178652);return _0xa10996=_0xa10996['replace'](/-MM/g,_0xf7fa69[_0x4668b2(0x1ae)])['replace'](/-DD/g,_0xf7fa69[_0x4668b2(0x1a6)])[_0x4668b2(0x173)](_0x4668b2(0x151)+_0xf7fa69[_0x4668b2(0x159)],'')[_0x4668b2(0x173)]('MM'+_0xf7fa69[_0x4668b2(0x1ae)],'')[_0x4668b2(0x173)]('DD'+_0xf7fa69[_0x4668b2(0x1a6)],''),_0xa10996;}function compareDates(_0x3e5b15,_0x45ceba){const _0x33c4ee=a6_0x525c55;_0x3e5b15=new Date(_0x3e5b15);!_0x45ceba?_0x45ceba=new Date():_0x45ceba=new Date(_0x45ceba);_0x3e5b15[_0x33c4ee(0x15e)](0x0,0x0,0x0,0x0),_0x45ceba['setHours'](0x0,0x0,0x0,0x0);var _0x25536f=_0x3e5b15[_0x33c4ee(0x154)](),_0x812874=_0x45ceba['getTime']();if(_0x25536f<_0x812874)return-0x1;else return _0x25536f>_0x812874?0x1:0x0;}function getDaysBetween(_0x37b166,_0x12c2c8){const _0x3e25e9=a6_0x525c55,_0x2a13eb=new Date(_0x37b166),_0x3b92ee=new Date(_0x12c2c8),_0x218161=Math[_0x3e25e9(0x18a)](_0x2a13eb['getTime']()-_0x3b92ee[_0x3e25e9(0x154)]()),_0x4aba94=Math['floor'](_0x218161/(0x3e8*0x3c*0x3c*0x18));return _0x4aba94+0x1;}function chineseNumeral(_0x203dd0){const _0x14e267=a6_0x525c55,_0x2450f1=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x43ca62=['','拾','佰','仟'],_0x28b63e=['','万','亿','兆'];let _0x3af4f8=Math[_0x14e267(0x164)](_0x203dd0),_0x139717=Math[_0x14e267(0x176)]((_0x203dd0-_0x3af4f8)*0x64),_0x5a890f='';for(let _0xb025d8=0x0;_0x3af4f8>0x0;_0xb025d8++){let _0x87a0ea='',_0x18942a=_0x3af4f8%0x2710;_0x3af4f8=Math[_0x14e267(0x164)](_0x3af4f8/0x2710);for(let _0x14bebf=0x0;_0x18942a>0x0;_0x14bebf++){let _0x2afee6=_0x18942a%0xa;_0x87a0ea=(_0x2afee6?_0x2450f1[_0x2afee6]+_0x43ca62[_0x14bebf]:'')+_0x87a0ea,_0x18942a=Math[_0x14e267(0x164)](_0x18942a/0xa);}_0x5a890f=_0x87a0ea+(_0x87a0ea?_0x28b63e[_0xb025d8]:_0x28b63e[_0xb025d8]&&!_0x5a890f[_0x14e267(0x1a7)]('零')?'零':'')+_0x5a890f;}_0x5a890f+=_0x5a890f?'元':'零元';if(_0x139717>0x0){let _0x30be94=Math[_0x14e267(0x164)](_0x139717/0xa),_0x4e4447=_0x139717%0xa;_0x5a890f+=(_0x30be94?_0x2450f1[_0x30be94]+'角':'')+(_0x4e4447?_0x2450f1[_0x4e4447]+'分':'');}else _0x5a890f+='整';return _0x5a890f[_0x14e267(0x173)](/零{2,}/g,'零')[_0x14e267(0x173)](/零元/,'元');}function getMonthDate(_0x284725){const _0x335eb0=a6_0x525c55;(!_0x284725||_0x284725[_0x335eb0(0x18d)]()==='')&&(_0x284725=new Date()[_0x335eb0(0x16e)]()+'-'+(new Date()[_0x335eb0(0x195)]()+0x1));let _0x284f0f=[],[_0x37f434,_0x47dd34]=_0x284725['split']('-')[_0x335eb0(0x19f)](Number),_0x3fd117=new Date(_0x37f434,_0x47dd34,0x0),_0x39b690=_0x3fd117[_0x335eb0(0x19d)]();for(let _0x128c34=0x1;_0x128c34<=_0x39b690;_0x128c34++){let _0x40629c=_0x128c34<0xa?'0'+_0x128c34:''+_0x128c34,_0x445bf3=_0x47dd34<0xa?'0'+_0x47dd34:''+_0x47dd34;_0x284f0f[_0x335eb0(0x16a)]({'date':_0x37f434+'-'+_0x445bf3+'-'+_0x40629c,'disable':!![]});}return _0x284f0f;}function getToday(_0x718403){const _0x1bd322=a6_0x525c55;var _0x189c22=new Date(),_0x457e17=String(_0x189c22[_0x1bd322(0x19d)]())[_0x1bd322(0x186)](0x2,'0'),_0x2dddc2=String(_0x189c22[_0x1bd322(0x195)]()+0x1)[_0x1bd322(0x186)](0x2,'0'),_0x3a0a0c=_0x189c22[_0x1bd322(0x16e)]();return _0x189c22=_0x3a0a0c+'-'+_0x2dddc2+'-'+_0x457e17,_0x189c22;}function resetObject(_0x19746){const _0x1381ce=a6_0x525c55;let _0x241721=JSON[_0x1381ce(0x18e)](JSON['stringify'](_0x19746));for(const _0x46a967 in _0x241721){if(typeof _0x241721[_0x46a967]===_0x1381ce(0x15a))_0x241721[_0x46a967]=0x0;else{if(typeof _0x241721[_0x46a967]===_0x1381ce(0x184))_0x241721[_0x46a967]=![];else{if(Array['isArray'](_0x241721[_0x46a967]))_0x241721[_0x46a967]=[];else typeof _0x241721[_0x46a967]==='object'&&_0x241721[_0x46a967]!==null?resetObject(_0x241721[_0x46a967]):_0x241721[_0x46a967]='';}}}return _0x241721;}function preciseOperation(_0x4ab227,_0x55de8c,_0x467df6,_0x5d83a6=0xf4240){const _0x22481f=a6_0x525c55;if(isNaN(_0x4ab227)||isNaN(_0x55de8c))return NaN;if(!isFinite(_0x4ab227)||!isFinite(_0x55de8c))return NaN;let _0x3f5997=BigInt(Math[_0x22481f(0x176)](_0x4ab227*_0x5d83a6)),_0x54e393=BigInt(Math[_0x22481f(0x176)](_0x55de8c*_0x5d83a6)),_0x538d1b;switch(_0x467df6){case 0x1:_0x538d1b=_0x3f5997+_0x54e393;break;case 0x2:_0x538d1b=_0x3f5997-_0x54e393;break;case 0x3:_0x538d1b=_0x3f5997*_0x54e393;break;case 0x4:if(_0x54e393===0x0n)throw new Error('除数不能为0');_0x538d1b=_0x3f5997/_0x54e393;break;default:throw new Error(_0x22481f(0x160));}return Number(_0x538d1b)/_0x5d83a6;}function preciseSum(_0x114692){const _0x34cc51=a6_0x525c55;let _0x4262e7=0x0;for(const _0x443bba of _0x114692){let _0x5f5936=0x0;if(typeof _0x443bba===_0x34cc51(0x197)){const _0xbcf607=parseFloat(_0x443bba);!isNaN(_0xbcf607)&&(_0x5f5936=_0xbcf607);}else typeof _0x443bba==='number'&&(_0x5f5936=_0x443bba);_0x4262e7=preciseOperation(_0x4262e7,_0x5f5936,0x1);}return _0x4262e7;}function getRelativeDate(_0x3dced5,_0x5668b9=0x0){const _0x3b9a4a=a6_0x525c55,_0x4dfca2=new Date(_0x3dced5);_0x4dfca2[_0x3b9a4a(0x17f)](_0x4dfca2[_0x3b9a4a(0x19d)]()+_0x5668b9);const _0x934e0c=_0x4dfca2[_0x3b9a4a(0x16e)](),_0x1c3cae=(_0x4dfca2['getMonth']()+0x1)[_0x3b9a4a(0x175)]()[_0x3b9a4a(0x186)](0x2,'0'),_0x2ec6de=_0x4dfca2[_0x3b9a4a(0x19d)]()[_0x3b9a4a(0x175)]()[_0x3b9a4a(0x186)](0x2,'0');return _0x934e0c+'-'+_0x1c3cae+'-'+_0x2ec6de;}function a6_0x38d2(_0x2b09ef,_0x4e7725){const _0x3d3568=a6_0x3d35();return a6_0x38d2=function(_0x38d21e,_0x442c32){_0x38d21e=_0x38d21e-0x151;let _0x47e345=_0x3d3568[_0x38d21e];return _0x47e345;},a6_0x38d2(_0x2b09ef,_0x4e7725);}function a6_0x3d35(){const _0x7fb505=['length','getMonth','yyyy-mm-dd','string','surname','ExpiryDate','EnName','fjbh','forEach','getDate','substring','map','startsWith','CnName','FirstName','ValidDate','right','surnameEn','dayTitle','includes','left','random','getHours','PassportNo','code','Birth','monthTitle','Nationality','YYYY','FamilyName','Number','getTime','slice','prototype','endsWith','find','yearTitle','number','all','Birthday','658234hQGOdq','setHours','YYYY-MM-DD','无效的操作符,操作符应为1、2、3或4','hasOwnProperty','2501286bTvXUv','en-US','floor','split','Name','expDate','Sex','BirthDate','push','getSeconds','_qh','englishName','getFullYear','3024385FTjLQg','function','givenNameEn','Surname','replace','0.00','toString','round','error','toLocaleString','GivenName','412DsjNtG','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','getMinutes','1751888PvkWSy','3ZpWrwF','setDate','14685IKynrI','EnglishName','268201cDIPnG','max','boolean','Quantity\x20should\x20be\x20greater\x20than\x200.','padStart','value','birthDate','exec','abs','givenName','test','trim','parse','name','9498636qXhwbR','join','sex','nationality'];a6_0x3d35=function(){return _0x7fb505;};return a6_0x3d35();}function validateFields(_0x47cf9c,_0x50f14b,_0x8dc1ff=''){for(let _0x473607 of _0x50f14b){if(_0x47cf9c[_0x473607]===_0x8dc1ff)return!![];}return![];}function mergeObjects(_0x246edf,_0x3c0800){for(const _0x8fd5a6 in _0x246edf){_0x3c0800['hasOwnProperty'](_0x8fd5a6)&&(_0x246edf[_0x8fd5a6]=_0x3c0800[_0x8fd5a6]);}return _0x246edf;}const formatToDecimal=(_0x5cf0b9,_0x594bab=0x2)=>{const _0x46ad27=a6_0x525c55;if(isNaN(_0x594bab)||_0x594bab<0x0)return _0x5cf0b9;let _0xe8305c=Number(_0x5cf0b9);if(!isFinite(_0xe8305c))return _0x5cf0b9;return _0x594bab=Math[_0x46ad27(0x183)](0x0,Math[_0x46ad27(0x164)](_0x594bab)),_0xe8305c['toFixed'](_0x594bab);};function findKeysEndingWith(_0x3d5f55,_0x305339=a6_0x525c55(0x16c)){const _0x214e6d=a6_0x525c55;let _0x2c53e7=[];for(var _0x4f094d in _0x3d5f55){if(_0x3d5f55[_0x214e6d(0x161)](_0x4f094d)){if(_0x4f094d[_0x214e6d(0x157)](_0x305339))_0x2c53e7[_0x214e6d(0x16a)](_0x4f094d);}}return _0x2c53e7;}function guid(_0xa1cb6e=0x20,_0x52d71a=!![],_0x49a298=null){const _0x1e00cb=a6_0x525c55,_0x4d899c=_0x1e00cb(0x17b)['split'](''),_0x5bb15e=[];_0x49a298=_0x49a298||_0x4d899c[_0x1e00cb(0x194)];if(_0xa1cb6e){for(let _0x3808f3=0x0;_0x3808f3<_0xa1cb6e;_0x3808f3++)_0x5bb15e[_0x3808f3]=_0x4d899c[0x0|Math[_0x1e00cb(0x1a9)]()*_0x49a298];}else{let _0x1c8112;_0x5bb15e[0x8]=_0x5bb15e[0xd]=_0x5bb15e[0x12]=_0x5bb15e[0x17]='-',_0x5bb15e[0xe]='4';for(let _0x413c2d=0x0;_0x413c2d<0x24;_0x413c2d++){!_0x5bb15e[_0x413c2d]&&(_0x1c8112=0x0|Math[_0x1e00cb(0x1a9)]()*0x10,_0x5bb15e[_0x413c2d]=_0x4d899c[_0x413c2d==0x13?_0x1c8112&0x3|0x8:_0x1c8112]);}}if(_0x52d71a)return _0x5bb15e['shift'](),'u'+_0x5bb15e[_0x1e00cb(0x191)]('');return _0x5bb15e[_0x1e00cb(0x191)]('');}function trim(_0x2d85a8,_0x15a19f='both'){const _0x25bedf=a6_0x525c55;_0x2d85a8=String(_0x2d85a8);if(_0x15a19f=='both')return _0x2d85a8[_0x25bedf(0x173)](/^\s+|\s+$/g,'');if(_0x15a19f==_0x25bedf(0x1a8))return _0x2d85a8[_0x25bedf(0x173)](/^\s*/,'');if(_0x15a19f==_0x25bedf(0x1a4))return _0x2d85a8[_0x25bedf(0x173)](/(\s*$)/g,'');if(_0x15a19f==_0x25bedf(0x15b))return _0x2d85a8['replace'](/\s+/g,'');return _0x2d85a8;}export default{'handleOCRData':handleOCRData,'timeFormat':timeFormat,'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|