yunlin 1.0.44 → 1.0.46
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(_0x2d0c4f,_0x7467d8){var _0x2a64e0=a0_0x3bd3,_0x17469d=_0x2d0c4f();while(!![]){try{var _0x405f3a=-parseInt(_0x2a64e0(0x107))/0x1+-parseInt(_0x2a64e0(0x103))/0x2*(-parseInt(_0x2a64e0(0x106))/0x3)+-parseInt(_0x2a64e0(0x101))/0x4+parseInt(_0x2a64e0(0x104))/0x5*(-parseInt(_0x2a64e0(0x109))/0x6)+parseInt(_0x2a64e0(0x102))/0x7+parseInt(_0x2a64e0(0x10b))/0x8*(-parseInt(_0x2a64e0(0x108))/0x9)+parseInt(_0x2a64e0(0x10a))/0xa*(parseInt(_0x2a64e0(0x105))/0xb);if(_0x405f3a===_0x7467d8)break;else _0x17469d['push'](_0x17469d['shift']());}catch(_0x412563){_0x17469d['push'](_0x17469d['shift']());}}}(a0_0x3626,0x5773d));import a0_0x35d6c3 from'./utils';import a0_0x9215b3 from'./price';import a0_0x270bbf from'./test';import a0_0x3e28bf from'./room';import a0_0x172a14 from'./roomOld';import a0_0x5bc9db from'./system';function a0_0x3bd3(_0x1fd874,_0x59e8f9){var _0x362693=a0_0x3626();return a0_0x3bd3=function(_0x3bd3e4,_0x3fffc4){_0x3bd3e4=_0x3bd3e4-0x101;var _0x218d67=_0x362693[_0x3bd3e4];return _0x218d67;},a0_0x3bd3(_0x1fd874,_0x59e8f9);}function a0_0x3626(){var _0x536313=['91555WUKOnL','28683ThVdaZ','78OOvDkD','47470uvgkfu','472BJioAS','1448636kJohrk','727041HbQAfc','2sVeSZT','193555ZNNFhI','3223hUMoVy','25383aiGQJO'];a0_0x3626=function(){return _0x536313;};return a0_0x3626();}export default{'test':a0_0x270bbf,'utils':a0_0x35d6c3,'price':a0_0x9215b3,'room':a0_0x3e28bf,'roomOld':a0_0x172a14,'system':a0_0x5bc9db};
|
package/dist/price.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a1_0x2832(){const _0x5866eb=['減免費用','max','3126870Liirua','baseadultprice','tipuser','adult','other','rylx','vipdiscounted','object','4XfRVrC','\x0a\x09\x09\x09正确参数:','15115659wttMXH','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','viprecharge','20XuqFlt','elder','number','money','promotion','287aIjMti','forEach','strJgbm','附加行程','其他費用','isArray','map','unit','人員費用','baseprice','機場稅','adultnum','優惠券','floor','tip','fLsjUnit','keys','vip','15HpAchc','base','name','9469801NoBUTn','airtax','itemname','12TGxtmS','unitprice','reduction','service','stringify','price','split','223378TgNbqe','people','childprice','filter','list','push','tipday','tax','basechildprice','adultprice','276616jzWzIv','error','includes','insure','4218675TFfmKK','couponSign','point','ftd\x20函数接收到无效的数字输入:\x20','num','trim','trip','\x20*\x20','length','遊客優惠','totaltax','toFixed','users','strLx','childnum','12jauvmU','nRs','fJcbzlsjUnit','totalprice','會員充值','保險費用','isShowTip','unitpricewb','2913305SulTTP'];a1_0x2832=function(){return _0x5866eb;};return a1_0x2832();}function a1_0x9cd3(_0x505f6a,_0x505274){const _0x28329f=a1_0x2832();return a1_0x9cd3=function(_0x9cd30c,_0x4a78ac){_0x9cd30c=_0x9cd30c-0x168;let _0x3084c2=_0x28329f[_0x9cd30c];return _0x3084c2;},a1_0x9cd3(_0x505f6a,_0x505274);}(function(_0x5e2e7a,_0x140352){const _0xf69941=a1_0x9cd3,_0x3faf73=_0x5e2e7a();while(!![]){try{const _0x46a0aa=parseInt(_0xf69941(0x18f))/0x1*(-parseInt(_0xf69941(0x19c))/0x2)+parseInt(_0xf69941(0x1aa))/0x3*(parseInt(_0xf69941(0x173))/0x4)+parseInt(_0xf69941(0x168))/0x5*(-parseInt(_0xf69941(0x195))/0x6)+parseInt(_0xf69941(0x17d))/0x7*(parseInt(_0xf69941(0x1a6))/0x8)+parseInt(_0xf69941(0x16b))/0x9+-parseInt(_0xf69941(0x178))/0xa*(-parseInt(_0xf69941(0x192))/0xb)+-parseInt(_0xf69941(0x1b9))/0xc*(parseInt(_0xf69941(0x175))/0xd);if(_0x46a0aa===_0x140352)break;else _0x3faf73['push'](_0x3faf73['shift']());}catch(_0x41e32e){_0x3faf73['push'](_0x3faf73['shift']());}}}(a1_0x2832,0xd935e));function handleCosting(_0xfc0af8,_0x40e1b6='',_0x3352ec={},_0x1f2ca5,_0x459463){const _0x12a08d=a1_0x9cd3;let _0x446299=[];const _0x3eb2ae=_0x12a08d(0x1b1),_0x9b7336={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x3352ec=typeof _0x3352ec===_0x12a08d(0x172)&&!Array[_0x12a08d(0x182)](_0x3352ec)&&_0x3352ec!==null?_0x3352ec:{};const _0x1a9a61={..._0x9b7336,..._0x3352ec},_0x43d22a=Object[_0x12a08d(0x18d)](_0x9b7336);Object['keys'](_0x3352ec)[_0x12a08d(0x17e)](_0x2f30a6=>{const _0x45af1a=_0x12a08d;!_0x43d22a[_0x45af1a(0x1a8)](_0x2f30a6)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x2f30a6);});let _0x4ca52b=_0x1a9a61[_0x12a08d(0x1ab)]||'-',_0x5e518f=_0x1a9a61['dp']||0x2;const _0x9ee8bb=(_0x57eeee,_0x3b2203=_0x5e518f)=>{const _0x5888af=_0x12a08d;if(typeof _0x57eeee!==_0x5888af(0x17a)&&isNaN(Number(_0x57eeee)))return console[_0x5888af(0x1a7)](_0x5888af(0x1ad)+_0x57eeee),_0x57eeee;if(isNaN(_0x3b2203)||_0x3b2203<0x0)return _0x57eeee;let _0x213c25=Number(_0x57eeee);if(!isFinite(_0x213c25))return _0x57eeee;return _0x3b2203=Math[_0x5888af(0x16a)](0x0,Math[_0x5888af(0x18a)](_0x3b2203)),_0x213c25[_0x5888af(0x1b5)](_0x3b2203);},_0x44ce0b=(_0x517cd3,_0xe1baa7)=>{const _0x17b1b6=_0x12a08d;if(_0xe1baa7&&typeof _0xe1baa7==='object'&&!Array[_0x17b1b6(0x182)](_0xe1baa7))for(const _0x373ff7 in _0x517cd3){_0x517cd3['hasOwnProperty'](_0x373ff7)&&_0xe1baa7['hasOwnProperty'](_0x373ff7)&&(_0x517cd3[_0x373ff7]=_0xe1baa7[_0x373ff7]);}else console[_0x17b1b6(0x1a7)]((_0x17b1b6(0x176)+JSON[_0x17b1b6(0x199)](_0xe1baa7,null,0x2)+_0x17b1b6(0x174)+JSON[_0x17b1b6(0x199)](_0x517cd3,null,0x2))[_0x17b1b6(0x1af)]());return _0x517cd3;};let _0xdc7df={'people':_0x12a08d(0x185),'service':'附加服務','trip':_0x12a08d(0x180),'other':_0x12a08d(0x181),'reduction':_0x12a08d(0x169),'totalprice':'總計','airtax':_0x12a08d(0x187)},_0x875e66={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x12a08d(0x1b3),'vip':'會員減免','promotion':'促銷','insure':_0x12a08d(0x1be),'coupon':_0x12a08d(0x189),'point':'積分','tax':'稅金','viprecharge':_0x12a08d(0x1bd),'r':'人','t':'天'};_0xdc7df=_0x44ce0b(_0xdc7df,_0x1f2ca5),_0x875e66=_0x44ce0b(_0x875e66,_0x459463);const _0xee7fd=_0xfc0af8[_0x12a08d(0x19f)](_0x274b7b=>_0x274b7b[_0x12a08d(0x1b7)]==_0x12a08d(0x190));if(_0xee7fd['length']){let _0x2dc2c0={'title':_0xdc7df[_0x12a08d(0x19d)],'type':_0x12a08d(0x190),'list':[]};_0xee7fd[_0x12a08d(0x183)](_0x453d83=>{const _0x2f0915=_0x12a08d;_0x2dc2c0[_0x2f0915(0x1a0)]['push']({'title':_0x875e66[_0x453d83[_0x2f0915(0x17f)]],'info':_0x40e1b6+_0x9ee8bb(_0x453d83['fLsjUnit'])+_0x3eb2ae+_0x453d83[_0x2f0915(0x1ba)],'nRs':_0x453d83[_0x2f0915(0x1ba)],'unit':_0x453d83[_0x2f0915(0x18c)],'cb':_0x453d83[_0x2f0915(0x1bb)],'type':_0x2f0915(0x190)});}),_0x446299[_0x12a08d(0x1a1)](_0x2dc2c0);}const _0x105f20=_0xfc0af8[_0x12a08d(0x19f)](_0x438cda=>_0x438cda[_0x12a08d(0x1b7)]==_0x12a08d(0x198));if(_0x105f20[_0x12a08d(0x1b2)]){let _0x3e7a01={'title':_0xdc7df[_0x12a08d(0x198)],'type':_0x12a08d(0x198),'list':[]};_0x105f20[_0x12a08d(0x183)](_0x56aa2a=>{const _0x4fc6bf=_0x12a08d;_0x3e7a01[_0x4fc6bf(0x1a0)][_0x4fc6bf(0x1a1)]({'title':_0x56aa2a['name']+('['+_0x56aa2a[_0x4fc6bf(0x194)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x56aa2a[_0x4fc6bf(0x196)])+_0x3eb2ae+_0x56aa2a[_0x4fc6bf(0x1ae)],'nRs':_0x56aa2a['num'],'unit':_0x56aa2a['unitprice'],'cb':_0x56aa2a[_0x4fc6bf(0x186)],'type':_0x4fc6bf(0x198)});}),_0x446299[_0x12a08d(0x1a1)](_0x3e7a01);}const _0x176b75=_0xfc0af8[_0x12a08d(0x19f)](_0x497ddf=>_0x497ddf[_0x12a08d(0x1b7)]=='trip');if(_0x176b75[_0x12a08d(0x1b2)]){let _0x4829d6={'title':_0xdc7df[_0x12a08d(0x1b0)],'type':_0x12a08d(0x1b0),'list':[]};_0x176b75[_0x12a08d(0x183)](_0x11553e=>{const _0x5dfc3b=_0x12a08d;_0x11553e[_0x5dfc3b(0x188)]!='0'&&_0x4829d6[_0x5dfc3b(0x1a0)][_0x5dfc3b(0x1a1)]({'title':_0x11553e[_0x5dfc3b(0x191)]+('['+_0x875e66[_0x5dfc3b(0x16e)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x11553e[_0x5dfc3b(0x1a5)])+_0x3eb2ae+_0x11553e[_0x5dfc3b(0x188)],'nRs':_0x11553e['adultnum'],'unit':_0x11553e['adultprice'],'cb':_0x11553e[_0x5dfc3b(0x16c)],'type':_0x5dfc3b(0x1b0)}),_0x11553e[_0x5dfc3b(0x1b8)]!='0'&&_0x4829d6[_0x5dfc3b(0x1a0)][_0x5dfc3b(0x1a1)]({'title':_0x11553e[_0x5dfc3b(0x191)]+('['+_0x875e66['child']+']'),'info':_0x40e1b6+_0x9ee8bb(_0x11553e[_0x5dfc3b(0x19e)])+_0x3eb2ae+_0x11553e['childnum'],'nRs':_0x11553e['childnum'],'unit':_0x11553e['childprice'],'cb':_0x11553e[_0x5dfc3b(0x1a4)],'type':'trip'});}),_0x446299['push'](_0x4829d6);}let _0x580514=[];const _0x4afa93=_0xfc0af8['filter'](_0x4af91c=>_0x4af91c[_0x12a08d(0x1b7)]==_0x12a08d(0x179));_0x4afa93['length']&&_0x4afa93[_0x12a08d(0x183)](_0x8e517e=>{const _0x33ab35=_0x12a08d,_0x4e9e63=_0x8e517e[_0x33ab35(0x191)][_0x33ab35(0x19b)]('|')||[''];_0x580514[_0x33ab35(0x1a1)]({'title':_0x875e66[_0x33ab35(0x179)]+('['+_0x4e9e63[0x0]+']'),'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x8e517e['money']),'unit':_0x8e517e[_0x33ab35(0x17b)],'cb':_0x8e517e[_0x33ab35(0x17b)],'type':_0x33ab35(0x179)});});const _0x145ea6=_0xfc0af8[_0x12a08d(0x19f)](_0x53af37=>_0x53af37[_0x12a08d(0x1b7)]==_0x12a08d(0x171));_0x145ea6[_0x12a08d(0x1b2)]&&_0x145ea6[_0x12a08d(0x183)](_0x3ef6d9=>{const _0x31e811=_0x12a08d;_0x580514[_0x31e811(0x1a1)]({'title':_0x875e66['vip']+('['+_0x3ef6d9[_0x31e811(0x191)]+']'),'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x3ef6d9[_0x31e811(0x17b)]),'unit':_0x3ef6d9[_0x31e811(0x17b)],'cb':_0x3ef6d9[_0x31e811(0x17b)],'type':_0x31e811(0x18e)});});const _0x28806c=_0xfc0af8[_0x12a08d(0x19f)](_0x9b62b9=>_0x9b62b9[_0x12a08d(0x1b7)]=='promotion');_0x28806c[_0x12a08d(0x1b2)]&&_0x28806c['map'](_0xb8e5e0=>{const _0x7c86d0=_0x12a08d;_0x580514['push']({'title':_0x875e66['promotion'],'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0xb8e5e0[_0x7c86d0(0x17b)]),'unit':_0xb8e5e0[_0x7c86d0(0x17b)],'cb':_0xb8e5e0[_0x7c86d0(0x17b)],'type':_0x7c86d0(0x17c)});});_0x580514[_0x12a08d(0x1b2)]&&_0x446299[_0x12a08d(0x1a1)]({'title':_0xdc7df[_0x12a08d(0x197)],'type':'reduction','list':_0x580514});const _0x55f95d=_0xfc0af8[_0x12a08d(0x19f)](_0x511e5c=>_0x511e5c[_0x12a08d(0x1b7)]=='airtax');if(_0x55f95d[_0x12a08d(0x1b2)]){let _0xb14bfb={'title':_0xdc7df[_0x12a08d(0x193)],'type':'airtax','list':[]};_0x55f95d[_0x12a08d(0x183)](_0x34972d=>{const _0x277b00=_0x12a08d;_0xb14bfb[_0x277b00(0x1a0)][_0x277b00(0x1a1)]({'title':_0x875e66[_0x34972d[_0x277b00(0x170)]],'info':_0x40e1b6+_0x9ee8bb(_0x34972d['unitprice'])+_0x3eb2ae+_0x34972d['sl'],'nRs':_0x34972d['sl'],'unit':_0x34972d[_0x277b00(0x196)],'cb':_0x34972d[_0x277b00(0x1c0)],'type':_0x34972d[_0x277b00(0x170)]});}),_0x446299[_0x12a08d(0x1a1)](_0xb14bfb);}const _0x56bfc5=['base',_0x12a08d(0x198),_0x12a08d(0x1b0),_0x12a08d(0x179),_0x12a08d(0x171),_0x12a08d(0x17c),_0x12a08d(0x193)],_0x5aa553=_0xfc0af8[_0x12a08d(0x19f)](_0x58ef70=>!_0x56bfc5[_0x12a08d(0x1a8)](_0x58ef70[_0x12a08d(0x1b7)]));let _0x1949df={'title':_0xdc7df[_0x12a08d(0x16f)],'type':'other','list':[]};for(var _0x1c3b36=0x0;_0x1c3b36<_0x5aa553[_0x12a08d(0x1b2)];_0x1c3b36++){const _0x15b5d8=_0x5aa553[_0x1c3b36];_0x15b5d8['strLx']==_0x12a08d(0x177)&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x12a08d(0x177)]+('['+_0x15b5d8[_0x12a08d(0x191)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x17b)]),'unit':_0x15b5d8[_0x12a08d(0x17b)],'type':_0x15b5d8['strLx']}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1a9)&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x12a08d(0x1a9)]+('['+_0x15b5d8[_0x12a08d(0x191)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x184)])+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x1b6)]+_0x875e66['r'],'nRs':_0x15b5d8[_0x12a08d(0x1b6)],'unit':_0x15b5d8[_0x12a08d(0x184)],'cb':_0x15b5d8[_0x12a08d(0x184)],'type':_0x12a08d(0x1a9)}),(_0x15b5d8[_0x12a08d(0x1b7)]=='coupon'||_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1ac))&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x15b5d8['couponmc']||_0x875e66[_0x15b5d8[_0x12a08d(0x1b7)]],'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x17b)]),'unit':_0x15b5d8[_0x12a08d(0x17b)],'type':_0x15b5d8['strLx']}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x18b)&&_0x1a9a61[_0x12a08d(0x1bf)]&&_0x1949df['list'][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x15b5d8['strLx']],'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x18b)])+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x16d)]+_0x875e66['r']+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x1a2)]+_0x875e66['t'],'nRs':_0x15b5d8[_0x12a08d(0x16d)],'count':_0x15b5d8[_0x12a08d(0x1a2)],'unit':_0x15b5d8[_0x12a08d(0x18b)],'type':_0x15b5d8[_0x12a08d(0x1b7)]}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1a3)&&_0x1949df['list']['push']({'title':_0x875e66[_0x15b5d8['strLx']],'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x1b4)]),'unit':_0x15b5d8[_0x12a08d(0x1b4)],'type':_0x15b5d8['strLx']});}_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1b2)]&&_0x446299['push'](_0x1949df);const _0x20d359=_0xfc0af8['filter'](_0x2cae05=>_0x2cae05[_0x12a08d(0x1b7)]==_0x12a08d(0x1bc));return _0x20d359[_0x12a08d(0x1b2)]&&_0x446299[_0x12a08d(0x1a1)]({'title':_0xdc7df[_0x12a08d(0x1bc)],'type':_0x12a08d(0x1bc),'list':[{'title':_0xdc7df[_0x12a08d(0x1bc)],'info':_0x40e1b6+_0x9ee8bb(_0x20d359[0x0][_0x12a08d(0x19a)])}]}),_0x446299;}export default{'handleCosting':handleCosting};
|
|
1
|
+
function a1_0x53a3(){const _0x1d0aa1=['5GkumQC','hasOwnProperty','totaltax','users','優惠券','object','9189147xQwXwm','totalprice','childprice','coupon','error','airtax','number','5041568hKMdPY','10GORKla','basechildprice','vip','baseprice','toFixed','filter','2231136VVZZCW','baseadultprice','childnum','52gGyphb','trim','promotion','遊客優惠','4278432lGJbEp','人員費用','viprecharge','points','num','name','strJgbm','other','push','減免費用','1677738lCPEHw','\x20*\x20','service','list','includes','elder','itemname','money','1123272VLDODg','unit','insure','tipuser','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','couponSign','strLx','保險費用','unitprice','price','isShowTip','max','rylx','floor','trip','會員充值','36bjGDDB','214836jAKxpV','\x0a\x09\x09\x09正确参数:','tipday','stringify','split','兒童[占床]','tip','adultnum','base','fLsjUnit','reduction','16cuqYgR','其他費用','keys','nRs','fJcbzlsjUnit','附加行程','length','map'];a1_0x53a3=function(){return _0x1d0aa1;};return a1_0x53a3();}(function(_0x5d1fb9,_0xc5500){const _0x33fd5f=a1_0x2559,_0x46faeb=_0x5d1fb9();while(!![]){try{const _0x13ed08=-parseInt(_0x33fd5f(0x8b))/0x1+-parseInt(_0x33fd5f(0x7d))/0x2*(parseInt(_0x33fd5f(0xa4))/0x3)+parseInt(_0x33fd5f(0x81))/0x4+-parseInt(_0x33fd5f(0xb7))/0x5*(parseInt(_0x33fd5f(0x7a))/0x6)+-parseInt(_0x33fd5f(0x73))/0x7*(-parseInt(_0x33fd5f(0xaf))/0x8)+-parseInt(_0x33fd5f(0x93))/0x9*(parseInt(_0x33fd5f(0x74))/0xa)+-parseInt(_0x33fd5f(0xbd))/0xb*(-parseInt(_0x33fd5f(0xa3))/0xc);if(_0x13ed08===_0xc5500)break;else _0x46faeb['push'](_0x46faeb['shift']());}catch(_0x5e6b53){_0x46faeb['push'](_0x46faeb['shift']());}}}(a1_0x53a3,0xef3a1));function handleCosting(_0x260e1f,_0x3df259='',_0x11b842={},_0x365681,_0x34e8f9){const _0x519d31=a1_0x2559;let _0x3d7124=[];const _0x589664=_0x519d31(0x8c),_0x117dd2={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x11b842=typeof _0x11b842===_0x519d31(0xbc)&&!Array['isArray'](_0x11b842)&&_0x11b842!==null?_0x11b842:{};const _0x504381={..._0x117dd2,..._0x11b842},_0x37148b=Object[_0x519d31(0xb1)](_0x117dd2);Object[_0x519d31(0xb1)](_0x11b842)['forEach'](_0x40d162=>{const _0x26671b=_0x519d31;!_0x37148b[_0x26671b(0x8f)](_0x40d162)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x40d162);});let _0x2a060c=_0x504381[_0x519d31(0x98)]||'-',_0x37ae6e=_0x504381['dp']||0x2;const _0x4d9605=(_0x5ba25a,_0x469899=_0x37ae6e)=>{const _0x289047=_0x519d31;if(typeof _0x5ba25a!==_0x289047(0x72)&&isNaN(Number(_0x5ba25a)))return console[_0x289047(0x70)]('ftd\x20函数接收到无效的数字输入:\x20'+_0x5ba25a),_0x5ba25a;if(isNaN(_0x469899)||_0x469899<0x0)return _0x5ba25a;let _0x44ce10=Number(_0x5ba25a);if(!isFinite(_0x44ce10))return _0x5ba25a;return _0x469899=Math[_0x289047(0x9e)](0x0,Math[_0x289047(0xa0)](_0x469899)),_0x44ce10[_0x289047(0x78)](_0x469899);},_0x37ba99=(_0x58cf27,_0x35455b)=>{const _0xe5ced6=_0x519d31;if(_0x35455b&&typeof _0x35455b===_0xe5ced6(0xbc)&&!Array['isArray'](_0x35455b))for(const _0x2c9e5e in _0x58cf27){_0x58cf27[_0xe5ced6(0xb8)](_0x2c9e5e)&&_0x35455b['hasOwnProperty'](_0x2c9e5e)&&(_0x58cf27[_0x2c9e5e]=_0x35455b[_0x2c9e5e]);}else console[_0xe5ced6(0x70)]((_0xe5ced6(0x97)+JSON[_0xe5ced6(0xa7)](_0x35455b,null,0x2)+_0xe5ced6(0xa5)+JSON[_0xe5ced6(0xa7)](_0x58cf27,null,0x2))[_0xe5ced6(0x7e)]());return _0x58cf27;};let _0x37bfa9={'people':_0x519d31(0x82),'service':'附加服務','trip':_0x519d31(0xb4),'other':_0x519d31(0xb0),'reduction':_0x519d31(0x8a),'totalprice':'總計','airtax':'機場稅'},_0x43baff={'adult':'成人','child':'兒童','childusebed':_0x519d31(0xa9),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x519d31(0x80),'vip':'會員減免','promotion':'促銷','insure':_0x519d31(0x9a),'coupon':_0x519d31(0xbb),'point':'積分','tax':'稅金','viprecharge':_0x519d31(0xa2),'r':'人','t':'天'};_0x37bfa9=_0x37ba99(_0x37bfa9,_0x365681),_0x43baff=_0x37ba99(_0x43baff,_0x34e8f9);const _0xf04ffc=_0x260e1f[_0x519d31(0x79)](_0x59b61a=>_0x59b61a[_0x519d31(0x99)]==_0x519d31(0xac));if(_0xf04ffc[_0x519d31(0xb5)]){let _0x5935e5={'title':_0x37bfa9['people'],'type':_0x519d31(0xac),'list':[]};_0xf04ffc[_0x519d31(0xb6)](_0x218911=>{const _0x13317e=_0x519d31;_0x5935e5[_0x13317e(0x8e)][_0x13317e(0x89)]({'title':_0x43baff[_0x218911[_0x13317e(0x87)]],'info':_0x3df259+_0x4d9605(_0x218911[_0x13317e(0xad)])+_0x589664+_0x218911[_0x13317e(0xb2)],'nRs':_0x218911[_0x13317e(0xb2)],'unit':_0x218911[_0x13317e(0xad)],'cb':_0x218911[_0x13317e(0xb3)],'type':'base'});}),_0x3d7124[_0x519d31(0x89)](_0x5935e5);}const _0x143ded=_0x260e1f[_0x519d31(0x79)](_0x5ba915=>_0x5ba915[_0x519d31(0x99)]==_0x519d31(0x8d));if(_0x143ded[_0x519d31(0xb5)]){let _0x171e7f={'title':_0x37bfa9[_0x519d31(0x8d)],'type':_0x519d31(0x8d),'list':[]};_0x143ded[_0x519d31(0xb6)](_0x5aea75=>{const _0x590afc=_0x519d31;_0x171e7f[_0x590afc(0x8e)][_0x590afc(0x89)]({'title':_0x5aea75[_0x590afc(0x86)]+('['+_0x5aea75[_0x590afc(0x91)]+']'),'info':_0x3df259+_0x4d9605(_0x5aea75['unitprice'])+_0x589664+_0x5aea75[_0x590afc(0x85)],'nRs':_0x5aea75[_0x590afc(0x85)],'unit':_0x5aea75[_0x590afc(0x9b)],'cb':_0x5aea75[_0x590afc(0x77)],'type':'service'});}),_0x3d7124[_0x519d31(0x89)](_0x171e7f);}const _0x1a0824=_0x260e1f['filter'](_0x271b08=>_0x271b08[_0x519d31(0x99)]==_0x519d31(0xa1));if(_0x1a0824[_0x519d31(0xb5)]){let _0x5a4d41={'title':_0x37bfa9[_0x519d31(0xa1)],'type':'trip','list':[]};_0x1a0824[_0x519d31(0xb6)](_0x10f753=>{const _0x257947=_0x519d31;_0x10f753['adultnum']!='0'&&_0x5a4d41[_0x257947(0x8e)][_0x257947(0x89)]({'title':_0x10f753[_0x257947(0x86)]+('['+_0x43baff['adult']+']'),'info':_0x3df259+_0x4d9605(_0x10f753['adultprice'])+_0x589664+_0x10f753[_0x257947(0xab)],'nRs':_0x10f753[_0x257947(0xab)],'unit':_0x10f753['adultprice'],'cb':_0x10f753[_0x257947(0x7b)],'type':'trip'}),_0x10f753[_0x257947(0x7c)]!='0'&&_0x5a4d41[_0x257947(0x8e)][_0x257947(0x89)]({'title':_0x10f753['name']+('['+_0x43baff['child']+']'),'info':_0x3df259+_0x4d9605(_0x10f753[_0x257947(0xbf)])+_0x589664+_0x10f753[_0x257947(0x7c)],'nRs':_0x10f753[_0x257947(0x7c)],'unit':_0x10f753[_0x257947(0xbf)],'cb':_0x10f753[_0x257947(0x75)],'type':_0x257947(0xa1)});}),_0x3d7124[_0x519d31(0x89)](_0x5a4d41);}let _0x19d6ad=[];const _0x54d6f8=_0x260e1f[_0x519d31(0x79)](_0x52c9b7=>_0x52c9b7[_0x519d31(0x99)]==_0x519d31(0x90));_0x54d6f8[_0x519d31(0xb5)]&&_0x54d6f8[_0x519d31(0xb6)](_0x394ddd=>{const _0x2c124d=_0x519d31,_0x225eda=_0x394ddd[_0x2c124d(0x86)][_0x2c124d(0xa8)]('|')||[''];_0x19d6ad[_0x2c124d(0x89)]({'title':_0x43baff[_0x2c124d(0x90)]+('['+_0x225eda[0x0]+']'),'info':_0x3df259+_0x2a060c+_0x4d9605(_0x394ddd['money']),'unit':_0x394ddd[_0x2c124d(0x92)],'cb':_0x394ddd[_0x2c124d(0x92)],'type':_0x2c124d(0x90)});});const _0x1e6b66=_0x260e1f[_0x519d31(0x79)](_0x337bbf=>_0x337bbf['strLx']=='vipdiscounted');_0x1e6b66[_0x519d31(0xb5)]&&_0x1e6b66[_0x519d31(0xb6)](_0x22e786=>{const _0x467839=_0x519d31;_0x19d6ad[_0x467839(0x89)]({'title':_0x43baff[_0x467839(0x76)]+('['+_0x22e786['name']+']'),'info':_0x3df259+_0x2a060c+_0x4d9605(_0x22e786[_0x467839(0x92)]),'unit':_0x22e786[_0x467839(0x92)],'cb':_0x22e786[_0x467839(0x92)],'type':_0x467839(0x76)});});const _0x2626b9=_0x260e1f[_0x519d31(0x79)](_0x2dde99=>_0x2dde99[_0x519d31(0x99)]==_0x519d31(0x7f));_0x2626b9[_0x519d31(0xb5)]&&_0x2626b9[_0x519d31(0xb6)](_0x208b7b=>{const _0x484875=_0x519d31;_0x19d6ad[_0x484875(0x89)]({'title':_0x43baff[_0x484875(0x7f)],'info':_0x3df259+_0x2a060c+_0x4d9605(_0x208b7b[_0x484875(0x92)]),'unit':_0x208b7b['money'],'cb':_0x208b7b[_0x484875(0x92)],'type':_0x484875(0x7f)});});_0x19d6ad[_0x519d31(0xb5)]&&_0x3d7124[_0x519d31(0x89)]({'title':_0x37bfa9[_0x519d31(0xae)],'type':_0x519d31(0xae),'list':_0x19d6ad});const _0x2ee218=_0x260e1f[_0x519d31(0x79)](_0x575e41=>_0x575e41[_0x519d31(0x99)]==_0x519d31(0x71));if(_0x2ee218[_0x519d31(0xb5)]){let _0x30d303={'title':_0x37bfa9[_0x519d31(0x71)],'type':'airtax','list':[]};_0x2ee218[_0x519d31(0xb6)](_0x12d253=>{const _0x5682aa=_0x519d31;_0x30d303['list'][_0x5682aa(0x89)]({'title':_0x43baff[_0x12d253['rylx']],'info':_0x3df259+_0x4d9605(_0x12d253[_0x5682aa(0x9b)])+_0x589664+_0x12d253['sl'],'nRs':_0x12d253['sl'],'unit':_0x12d253[_0x5682aa(0x9b)],'cb':_0x12d253['unitpricewb'],'type':_0x12d253[_0x5682aa(0x9f)]});}),_0x3d7124[_0x519d31(0x89)](_0x30d303);}const _0x224058=[_0x519d31(0xac),_0x519d31(0x8d),_0x519d31(0xa1),_0x519d31(0x90),'vipdiscounted',_0x519d31(0x7f),_0x519d31(0x71)],_0x4e3f91=_0x260e1f[_0x519d31(0x79)](_0x3a9e58=>!_0x224058[_0x519d31(0x8f)](_0x3a9e58[_0x519d31(0x99)]));let _0x4a3d86={'title':_0x37bfa9[_0x519d31(0x88)],'type':'other','list':[]};for(var _0x4b5cfa=0x0;_0x4b5cfa<_0x4e3f91[_0x519d31(0xb5)];_0x4b5cfa++){const _0x537c22=_0x4e3f91[_0x4b5cfa];_0x537c22[_0x519d31(0x99)]==_0x519d31(0x83)&&_0x4a3d86[_0x519d31(0x8e)][_0x519d31(0x89)]({'title':_0x43baff[_0x519d31(0x83)]+('['+_0x537c22[_0x519d31(0x86)]+']'),'info':_0x3df259+_0x4d9605(_0x537c22[_0x519d31(0x92)]),'unit':_0x537c22[_0x519d31(0x92)],'type':_0x537c22[_0x519d31(0x99)]}),_0x537c22[_0x519d31(0x99)]==_0x519d31(0x95)&&_0x4a3d86[_0x519d31(0x8e)][_0x519d31(0x89)]({'title':_0x43baff['insure']+('['+_0x537c22[_0x519d31(0x86)]+']'),'info':_0x3df259+_0x4d9605(_0x537c22['unit'])+_0x589664+_0x537c22[_0x519d31(0xba)]+_0x43baff['r'],'nRs':_0x537c22[_0x519d31(0xba)],'unit':_0x537c22[_0x519d31(0x94)],'cb':_0x537c22['unit'],'type':_0x519d31(0x95)}),(_0x537c22[_0x519d31(0x99)]==_0x519d31(0x6f)||_0x537c22[_0x519d31(0x99)]=='point')&&_0x4a3d86['list'][_0x519d31(0x89)]({'title':_0x537c22['couponmc']||_0x43baff[_0x537c22[_0x519d31(0x99)]],'info':_0x3df259+_0x2a060c+_0x4d9605(_0x537c22['money']),'unit':_0x537c22['money'],'cb':_0x537c22[_0x519d31(0x84)]||0x0,'type':_0x537c22[_0x519d31(0x99)]}),_0x537c22[_0x519d31(0x99)]==_0x519d31(0xaa)&&_0x504381[_0x519d31(0x9d)]&&_0x4a3d86[_0x519d31(0x8e)][_0x519d31(0x89)]({'title':_0x43baff[_0x537c22[_0x519d31(0x99)]],'info':_0x3df259+_0x4d9605(_0x537c22['tip'])+_0x589664+_0x537c22[_0x519d31(0x96)]+_0x43baff['r']+_0x589664+_0x537c22[_0x519d31(0xa6)]+_0x43baff['t'],'nRs':_0x537c22[_0x519d31(0x96)],'count':_0x537c22['tipday'],'unit':_0x537c22[_0x519d31(0xaa)],'type':_0x537c22['strLx']}),_0x537c22['strLx']=='tax'&&_0x4a3d86[_0x519d31(0x8e)][_0x519d31(0x89)]({'title':_0x43baff[_0x537c22[_0x519d31(0x99)]],'info':_0x3df259+_0x4d9605(_0x537c22['totaltax']),'unit':_0x537c22[_0x519d31(0xb9)],'type':_0x537c22[_0x519d31(0x99)]});}_0x4a3d86[_0x519d31(0x8e)][_0x519d31(0xb5)]&&_0x3d7124[_0x519d31(0x89)](_0x4a3d86);const _0x2b0da9=_0x260e1f[_0x519d31(0x79)](_0x179780=>_0x179780[_0x519d31(0x99)]==_0x519d31(0xbe));return _0x2b0da9['length']&&_0x3d7124['push']({'title':_0x37bfa9[_0x519d31(0xbe)],'type':'totalprice','list':[{'title':_0x37bfa9[_0x519d31(0xbe)],'info':_0x3df259+_0x4d9605(_0x2b0da9[0x0][_0x519d31(0x9c)])}]}),_0x3d7124;}function a1_0x2559(_0x2a92b9,_0xdb466c){const _0x53a378=a1_0x53a3();return a1_0x2559=function(_0x2559f3,_0x100c68){_0x2559f3=_0x2559f3-0x6f;let _0x2a14f5=_0x53a378[_0x2559f3];return _0x2a14f5;},a1_0x2559(_0x2a92b9,_0xdb466c);}export default{'handleCosting':handleCosting};
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52d109,_0xb48c47){const _0xfb1969=a2_0x4b97,_0x339de0=_0x52d109();while(!![]){try{const _0x18d665=-parseInt(_0xfb1969(0x15b))/0x1+-parseInt(_0xfb1969(0x152))/0x2+parseInt(_0xfb1969(0x164))/0x3+parseInt(_0xfb1969(0x162))/0x4+parseInt(_0xfb1969(0x158))/0x5+-parseInt(_0xfb1969(0x157))/0x6*(parseInt(_0xfb1969(0x14b))/0x7)+-parseInt(_0xfb1969(0x160))/0x8*(parseInt(_0xfb1969(0x15e))/0x9);if(_0x18d665===_0xb48c47)break;else _0x339de0['push'](_0x339de0['shift']());}catch(_0x3e468e){_0x339de0['push'](_0x339de0['shift']());}}}(a2_0x1354,0x3b8db));function getRoomCount(_0x17b608,_0x37f62e){const _0x1df91c=a2_0x4b97,_0x1f9cf7=Array[_0x1df91c(0x167)](_0x17b608);if(!_0x1f9cf7)_0x17b608=[_0x17b608];let _0x3b562f=[];return _0x17b608[_0x1df91c(0x165)](_0x922621=>{const _0x14f830=_0x1df91c;let _0x27dc6c=![];if(!_0x922621[_0x14f830(0x153)]){let _0x4be69d=_0x922621[_0x14f830(0x15d)];if(_0x922621[_0x14f830(0x156)]||!_0x37f62e[_0x14f830(0x150)])_0x4be69d+=_0x922621[_0x14f830(0x166)];const _0x3ac616=_0x37f62e['list'][_0x14f830(0x159)](_0x75c205=>Number(_0x75c205[_0x14f830(0x15a)])===_0x4be69d);if(!_0x3ac616)_0x27dc6c=!![];else{let _0x476b44=_0x922621[_0x14f830(0x15d)]+_0x922621[_0x14f830(0x166)]+_0x922621['infantNum'];_0x476b44>_0x3ac616[_0x14f830(0x154)]&&(_0x27dc6c=!![]);}}_0x3b562f[_0x14f830(0x155)](_0x27dc6c);}),_0x1f9cf7?_0x3b562f:_0x3b562f[0x0];}function a2_0x1354(){const _0xddab20=['isArray','1621277tgpyze','infant','map','infantNum','isAlotment','child','filter','340270AdkUjn','isalotment','nMaxIn','push','childUseBed','6NGPTzg','1204490MWTJWp','find','strCode','332241nkvzKE','max','adultNum','243GXJqzK','length','28872sJbjOI','type','1490112OaScGz','some','1385805SBxVTG','forEach','childrenNum'];a2_0x1354=function(){return _0xddab20;};return a2_0x1354();}function a2_0x4b97(_0x8f3acd,_0x1e4aef){const _0x1354f3=a2_0x1354();return a2_0x4b97=function(_0x4b9796,_0x41e629){_0x4b9796=_0x4b9796-0x14b;let _0x49dc33=_0x1354f3[_0x4b9796];return _0x49dc33;},a2_0x4b97(_0x8f3acd,_0x1e4aef);}function getRoomConfig(_0x4181fb){const _0x2ce7e6=a2_0x4b97;let _0x44c244=_0x4181fb['some'](_0x54a4b4=>_0x54a4b4[_0x2ce7e6(0x15a)]===_0x2ce7e6(0x156)),_0xc1d18d=_0x4181fb['some'](_0x526956=>_0x526956['strCode']===_0x2ce7e6(0x14f));const _0x4a9243=_0x4181fb[_0x2ce7e6(0x163)](_0x1fdc9a=>_0x1fdc9a[_0x2ce7e6(0x15a)]==='infant'),_0x257352=_0x4181fb[_0x2ce7e6(0x163)](_0x190e0e=>_0x190e0e[_0x2ce7e6(0x15a)]===_0x2ce7e6(0x150)),_0xb7b76a=_0x4181fb['map'](_0x33a23a=>{const _0x577403=_0x2ce7e6;return{'strCode':_0x33a23a[_0x577403(0x15a)],'nMaxIn':_0x33a23a['nMaxIn']};});if(_0xc1d18d){const _0x32d58c=_0x4181fb[_0x2ce7e6(0x163)](_0x336953=>_0x336953['strCode']=='2');_0xc1d18d=_0xc1d18d&&_0x32d58c;}if(_0x44c244)_0x44c244=_0x44c244&&_0x257352;return{'childUseBed':_0x44c244,'isAlotment':_0xc1d18d,'infant':_0x4a9243,'child':_0x257352,'list':_0xb7b76a};}function isRoomPiece(_0x5014a3,_0x10c9c0){const _0x1511c8=a2_0x4b97;return _0x10c9c0&&_0x5014a3[_0x1511c8(0x15d)]===0x1&&_0x5014a3['childrenNum']===0x0&&_0x5014a3[_0x1511c8(0x14e)]===0x0;}function getRoomItemRange(_0x4096cc,_0xfa265e,_0x39c730={'child':'儿童','infant':'婴儿'}){const _0x6fbca0=a2_0x4b97;if(!_0xfa265e[_0x6fbca0(0x15f)])return{'childList':[],'infantList':[]};const _0x57d82b=Math[_0x6fbca0(0x15c)](..._0xfa265e[_0x6fbca0(0x14d)](_0x36a049=>Number(_0x36a049[_0x6fbca0(0x154)]))),_0x23b330=_0x57d82b-_0x4096cc[_0x6fbca0(0x15d)]-_0x4096cc[_0x6fbca0(0x14e)];let _0xf77868=_0x57d82b-_0x4096cc[_0x6fbca0(0x15d)]-_0x4096cc[_0x6fbca0(0x166)];if(_0xf77868>0x2)_0xf77868=0x2;const _0x52b7be=(_0x3999bf,_0x540cb9)=>{const _0x45f1e8=_0x6fbca0,_0x2ea6b0=[];_0x2ea6b0[_0x45f1e8(0x155)]({'value':0x0,'label':'0\x20'+_0x540cb9});for(let _0xf57509=0x0;_0xf57509<_0x3999bf;_0xf57509++){_0x2ea6b0['push']({'value':_0xf57509+0x1,'label':''+(_0xf57509+0x1)+_0x540cb9});}return _0x2ea6b0;};return{'childList':_0x52b7be(_0x23b330,_0x39c730[_0x6fbca0(0x150)]),'infantList':_0x52b7be(_0xf77868,_0x39c730[_0x6fbca0(0x14c)])};}function getAdultRange(_0x385af9,_0x8884a6='成人'){const _0x4bc833=a2_0x4b97;let _0x5f1e55=Math[_0x4bc833(0x15c)](..._0x385af9[_0x4bc833(0x14d)](_0x44f4e4=>Number(_0x44f4e4['strCode']))[_0x4bc833(0x151)](_0x2b7ca2=>!isNaN(_0x2b7ca2)));if(!_0x5f1e55)_0x5f1e55=0x4;let _0x4a4473=[];for(var _0x1fc589=0x1;_0x1fc589<_0x5f1e55+0x1;_0x1fc589++){_0x4a4473[_0x4bc833(0x155)]({'value':_0x1fc589,'label':''+_0x1fc589+_0x8884a6});}return _0x4a4473;}const getTotalPeople=_0x13b16b=>{const _0x37a539=_0x13b16b['reduce']((_0x2e7f63,_0x39e85c)=>{const _0x286bee=a2_0x4b97;return _0x2e7f63+(_0x39e85c['adultNum']||0x0)+(_0x39e85c[_0x286bee(0x166)]||0x0)+(_0x39e85c[_0x286bee(0x14e)]||0x0);},0x0);return _0x37a539;},getRoomType=(_0x217d78,_0x2d25a8)=>{const _0x2e5e1a=a2_0x4b97;if(_0x217d78===_0x2e5e1a(0x161)||_0x2d25a8===0x1||_0x2d25a8==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
|
package/dist/roomOld.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2abec5,_0x5476b4){const _0xdd12e3=a3_0x494c,_0x4fe0f4=_0x2abec5();while(!![]){try{const _0x407846=-parseInt(_0xdd12e3(0xaf))/0x1+-parseInt(_0xdd12e3(0xb0))/0x2*(parseInt(_0xdd12e3(0xb9))/0x3)+parseInt(_0xdd12e3(0xbc))/0x4+parseInt(_0xdd12e3(0xc5))/0x5*(-parseInt(_0xdd12e3(0xbd))/0x6)+-parseInt(_0xdd12e3(0xc7))/0x7*(parseInt(_0xdd12e3(0xb8))/0x8)+parseInt(_0xdd12e3(0xb3))/0x9+-parseInt(_0xdd12e3(0xc1))/0xa*(parseInt(_0xdd12e3(0xbe))/0xb);if(_0x407846===_0x5476b4)break;else _0x4fe0f4['push'](_0x4fe0f4['shift']());}catch(_0x50379d){_0x4fe0f4['push'](_0x4fe0f4['shift']());}}}(a3_0x64d8,0x38632));function getRoomCount(_0x392ca7,_0x12793e){const _0x43f7f0=Array['isArray'](_0x392ca7);if(!_0x43f7f0)_0x392ca7=[_0x392ca7];let _0x9161fa=[];return _0x392ca7['forEach'](_0x29db80=>{const _0x53b4f2=a3_0x494c;let _0x549e07=![];if(!_0x29db80['isalotment']){let _0x22d562=_0x29db80[_0x53b4f2(0xae)];if(_0x29db80[_0x53b4f2(0xc8)]||!_0x12793e['child'])_0x22d562+=_0x29db80[_0x53b4f2(0xb4)];const _0x1e2e6c=_0x12793e[_0x53b4f2(0xc4)][_0x53b4f2(0xc0)](_0x47b275=>Number(_0x47b275[_0x53b4f2(0xb6)])===_0x22d562);if(!_0x1e2e6c)_0x549e07=!![];else{let _0x42e3df=_0x29db80['adultnum']+_0x29db80['childrennum']+_0x29db80[_0x53b4f2(0xc9)];_0x42e3df>_0x1e2e6c[_0x53b4f2(0xc6)]&&(_0x549e07=!![]);}}_0x9161fa[_0x53b4f2(0xb2)](_0x549e07);}),_0x43f7f0?_0x9161fa:_0x9161fa[0x0];}function a3_0x494c(_0x28ec3f,_0x2ab161){const _0x64d890=a3_0x64d8();return a3_0x494c=function(_0x494c04,_0x12dc7b){_0x494c04=_0x494c04-0xae;let _0x373383=_0x64d890[_0x494c04];return _0x373383;},a3_0x494c(_0x28ec3f,_0x2ab161);}function a3_0x64d8(){const _0x43f2ff=['some','map','1454172enaVzw','6VgqBFY','696861QqkQBk','child','find','10twkQYY','infant','half','list','119680KvYjMO','nMaxIn','7JeCoFX','childusebed','infantnum','adultnum','127610QrQgsj','59694xzqOMl','length','push','3388158yAxKup','childrennum','max','strCode','reduce','2114392GMrMSg','3weWYVS'];a3_0x64d8=function(){return _0x43f2ff;};return a3_0x64d8();}function getRoomConfig(_0x49a6c5){const _0x5598d5=a3_0x494c;let _0x5b465b=_0x49a6c5[_0x5598d5(0xba)](_0x1c104f=>_0x1c104f[_0x5598d5(0xb6)]===_0x5598d5(0xc8)),_0x919a45=_0x49a6c5[_0x5598d5(0xba)](_0x5533f4=>_0x5533f4['strCode']===_0x5598d5(0xc3));const _0x5b3d1e=_0x49a6c5[_0x5598d5(0xba)](_0x5d7d0d=>_0x5d7d0d['strCode']==='infant'),_0xc8f800=_0x49a6c5['some'](_0x1ed7e5=>_0x1ed7e5[_0x5598d5(0xb6)]==='child'),_0x1eaa8a=_0x49a6c5['map'](_0x5b755a=>{const _0x1d78cc=_0x5598d5;return{'strCode':_0x5b755a[_0x1d78cc(0xb6)],'nMaxIn':_0x5b755a[_0x1d78cc(0xc6)]};});if(_0x919a45){const _0x5ef69e=_0x49a6c5['some'](_0x3b8119=>_0x3b8119[_0x5598d5(0xb6)]=='2');_0x919a45=_0x919a45&&_0x5ef69e;}if(_0x5b465b)_0x5b465b=_0x5b465b&&_0xc8f800;return{'childusebed':_0x5b465b,'half':_0x919a45,'infant':_0x5b3d1e,'child':_0xc8f800,'list':_0x1eaa8a};}function isRoomPiece(_0x4c481a,_0x475550){const _0x25f93f=a3_0x494c;return _0x475550&&_0x4c481a[_0x25f93f(0xae)]===0x1&&_0x4c481a[_0x25f93f(0xb4)]===0x0&&_0x4c481a['infantnum']===0x0;}function getRoomItemRange(_0x55437b,_0x115b4b,_0x12dbc7={'child':'儿童','infant':'婴儿'}){const _0x11c52e=a3_0x494c;if(!_0x115b4b[_0x11c52e(0xb1)])return{'childList':[],'infantList':[]};const _0x4fd903=Math['max'](..._0x115b4b['map'](_0x485be8=>Number(_0x485be8[_0x11c52e(0xc6)]))),_0x54a15e=_0x4fd903-_0x55437b[_0x11c52e(0xae)]-_0x55437b[_0x11c52e(0xc9)];let _0x5bb2b0=_0x4fd903-_0x55437b['adultnum']-_0x55437b[_0x11c52e(0xb4)];if(_0x5bb2b0>0x2)_0x5bb2b0=0x2;const _0x4403c8=(_0x3ca09e,_0x5344f4)=>{const _0x1850bf=_0x11c52e,_0x29ab62=[];_0x29ab62[_0x1850bf(0xb2)]({'value':0x0,'label':'0\x20'+_0x5344f4});for(let _0x5b77bd=0x0;_0x5b77bd<_0x3ca09e;_0x5b77bd++){_0x29ab62[_0x1850bf(0xb2)]({'value':_0x5b77bd+0x1,'label':''+(_0x5b77bd+0x1)+_0x5344f4});}return _0x29ab62;};return{'childList':_0x4403c8(_0x54a15e,_0x12dbc7[_0x11c52e(0xbf)]),'infantList':_0x4403c8(_0x5bb2b0,_0x12dbc7[_0x11c52e(0xc2)])};}function getAdultRange(_0x3ca74a,_0x2642ef='成人'){const _0x3b5d7a=a3_0x494c;let _0x3eb609=Math[_0x3b5d7a(0xb5)](..._0x3ca74a[_0x3b5d7a(0xbb)](_0x3b2659=>Number(_0x3b2659[_0x3b5d7a(0xb6)]))['filter'](_0x1e34e1=>!isNaN(_0x1e34e1)));if(!_0x3eb609)_0x3eb609=0x4;let _0xf53f13=[];for(var _0x3d78c0=0x1;_0x3d78c0<_0x3eb609+0x1;_0x3d78c0++){_0xf53f13[_0x3b5d7a(0xb2)]({'value':_0x3d78c0,'label':''+_0x3d78c0+_0x2642ef});}return _0xf53f13;}const getTotalPeople=_0x210806=>{const _0x57b81f=a3_0x494c,_0x1533be=_0x210806[_0x57b81f(0xb7)]((_0x5cfad0,_0x1c67a4)=>{const _0x334f6d=_0x57b81f;return _0x5cfad0+(_0x1c67a4[_0x334f6d(0xae)]||0x0)+(_0x1c67a4[_0x334f6d(0xb4)]||0x0)+(_0x1c67a4[_0x334f6d(0xc9)]||0x0);},0x0);return _0x1533be;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
|
package/dist/system.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a4_0x56b583=a4_0x2749;function a4_0x2749(_0x3ad136,_0x306809){const _0x43b668=a4_0x43b6();return a4_0x2749=function(_0x2749ed,_0x3356e2){_0x2749ed=_0x2749ed-0x6c;let _0x1b16e3=_0x43b668[_0x2749ed];return _0x1b16e3;},a4_0x2749(_0x3ad136,_0x306809);}(function(_0x2d7d67,_0x209f62){const _0x562ab8=a4_0x2749,_0x3b7e0d=_0x2d7d67();while(!![]){try{const _0x33af41=-parseInt(_0x562ab8(0x81))/0x1+-parseInt(_0x562ab8(0x6e))/0x2*(-parseInt(_0x562ab8(0x7f))/0x3)+parseInt(_0x562ab8(0x6f))/0x4*(-parseInt(_0x562ab8(0x70))/0x5)+parseInt(_0x562ab8(0x7e))/0x6+parseInt(_0x562ab8(0x72))/0x7+-parseInt(_0x562ab8(0x83))/0x8+parseInt(_0x562ab8(0x79))/0x9;if(_0x33af41===_0x209f62)break;else _0x3b7e0d['push'](_0x3b7e0d['shift']());}catch(_0x51a221){_0x3b7e0d['push'](_0x3b7e0d['shift']());}}}(a4_0x43b6,0x3ff7b));function getDocInfo(_0x11c9c5,_0x2b2ba5=a4_0x56b583(0x76),_0x1c342d=![]){const _0x6437c1=a4_0x56b583;let _0x3880d3=_0x1c342d?'\x20':'';if(_0x2b2ba5===_0x6437c1(0x76))return _0x11c9c5['strsfzh']||_0x11c9c5[_0x6437c1(0x82)]||_0x11c9c5[_0x6437c1(0x75)]||_0x11c9c5[_0x6437c1(0x6d)]||_0x11c9c5[_0x6437c1(0x7b)]||'';if(_0x2b2ba5===_0x6437c1(0x7d)){if(_0x11c9c5[_0x6437c1(0x71)])return _0x11c9c5[_0x6437c1(0x71)];const _0x6053a0=_0x11c9c5['strfirstname']||_0x11c9c5['firstName']||_0x11c9c5[_0x6437c1(0x73)]||'',_0x4cb4db=_0x11c9c5[_0x6437c1(0x74)]||_0x11c9c5['lastName']||_0x11c9c5[_0x6437c1(0x77)]||'';return[_0x6053a0,_0x4cb4db][_0x6437c1(0x7a)](Boolean)['join'](_0x3880d3)[_0x6437c1(0x78)]()||'';}if(_0x2b2ba5===_0x6437c1(0x80))return _0x11c9c5['strlxdh']||_0x11c9c5[_0x6437c1(0x6c)]||_0x11c9c5[_0x6437c1(0x7c)]||'';return'';}export default{'getDocInfo':getDocInfo};function a4_0x43b6(){const _0x9fcb8f=['strzjhm','strdhhm','name','2450682Azmphz','17976KGQXGF','phone','68142IHGDkG','strhzbh','4005968FNoRAe','strlxfs','strggtxz','32Vdklow','8648LBZgLI','145iOAqNr','strxm','2288090liooWi','strxs','strlastname','strhxz','idNumber','strmz','trim','561672OQzNbA','filter'];a4_0x43b6=function(){return _0x9fcb8f;};return a4_0x43b6();}
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42c4d5,_0x16397f){const _0x1d0383=a5_0x5895,_0x5e9ea0=_0x42c4d5();while(!![]){try{const _0x3e26d7=-parseInt(_0x1d0383(0x17e))/0x1+-parseInt(_0x1d0383(0x17b))/0x2*(-parseInt(_0x1d0383(0x17d))/0x3)+parseInt(_0x1d0383(0x184))/0x4+-parseInt(_0x1d0383(0x18c))/0x5+parseInt(_0x1d0383(0x186))/0x6+parseInt(_0x1d0383(0x18a))/0x7+parseInt(_0x1d0383(0x197))/0x8*(-parseInt(_0x1d0383(0x189))/0x9);if(_0x3e26d7===_0x16397f)break;else _0x5e9ea0['push'](_0x5e9ea0['shift']());}catch(_0x56dab4){_0x5e9ea0['push'](_0x5e9ea0['shift']());}}}(a5_0x2a35,0x4679b));function email(_0x790326){const _0x4128cf=a5_0x5895;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x4128cf(0x198)](_0x790326);}function mobile(_0x267aa5){const _0x2d72c0=a5_0x5895;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x2d72c0(0x198)](_0x267aa5);}function isValidPhoneNumber(_0x122da4){const _0x34c5fc=a5_0x5895;if(_0x122da4[_0x34c5fc(0x181)]('-')){const [_0x362bbb,_0x42907b]=_0x122da4['split']('-');if(_0x362bbb==='86')return/^\d{11}$/['test'](_0x42907b)&&_0x42907b[_0x34c5fc(0x179)]('1');else return _0x362bbb===_0x34c5fc(0x185)?/^\d{8}$/[_0x34c5fc(0x198)](_0x42907b)&&['5','6','9','8']['includes'](_0x42907b[_0x34c5fc(0x195)](0x0)):/^\d+$/[_0x34c5fc(0x198)](_0x42907b);}else return/^\d+$/[_0x34c5fc(0x198)](_0x122da4);}function url(_0x29e831){const _0x19f134=a5_0x5895;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x19f134(0x198)](_0x29e831);}function date(_0x426e83){const _0x12a161=a5_0x5895;if(!_0x426e83)return![];if(number(_0x426e83))_0x426e83=+_0x426e83;return!/Invalid|NaN/[_0x12a161(0x198)](new Date(_0x426e83)[_0x12a161(0x182)]());}function a5_0x5895(_0x5ca532,_0x4857a1){const _0x2a3552=a5_0x2a35();return a5_0x5895=function(_0x589550,_0x3b165f){_0x589550=_0x589550-0x177;let _0x32114c=_0x2a3552[_0x589550];return _0x32114c;},a5_0x5895(_0x5ca532,_0x4857a1);}function dateISO(_0x220f73){const _0x36f4be=a5_0x5895;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x36f4be(0x198)](_0x220f73);}function isNumber(_0xf7d100){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0xf7d100);}function isString(_0x416a4f){const _0xc1f404=a5_0x5895;return typeof _0x416a4f===_0xc1f404(0x192);}function a5_0x2a35(){const _0xc8df81=['9nBwyHL','2388687LMqQyP','undefined','1041855wgCvFm','replace','catch','[object\x20Array]','[object\x20RegExp]','call','string','indexOf','number','charAt','object','2718512Gwjykh','test','split','length','startsWith','parse','4zTDgAu','then','663141kRsWGf','84879zFvjHI','boolean','^\x5cd{','includes','toString','isArray','430864bTcQfW','852','184080kHoRLJ','prototype','function'];a5_0x2a35=function(){return _0xc8df81;};return a5_0x2a35();}function digits(_0x15b0f0){const _0x13692f=a5_0x5895;return/^\d+$/[_0x13692f(0x198)](_0x15b0f0);}function idCard(_0x155d24){const _0x1feff3=a5_0x5895,_0x4de1b9=/^[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)$/,_0x35c318=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x4de1b9[_0x1feff3(0x198)](_0x155d24)||_0x35c318[_0x1feff3(0x198)](_0x155d24);}function carNo(_0x393679){const _0x209ba3=a5_0x5895,_0x22aa99=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x399716=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x393679[_0x209ba3(0x178)]===0x7)return _0x399716[_0x209ba3(0x198)](_0x393679);if(_0x393679[_0x209ba3(0x178)]===0x8)return _0x22aa99[_0x209ba3(0x198)](_0x393679);return![];}function amount(_0x470ef7){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/['test'](_0x470ef7);}function chinese(_0x2b2e04){const _0x11f7c5=/^[\u4e00-\u9fa5]+$/gi;return _0x11f7c5['test'](_0x2b2e04);}function letter(_0xfaef45){const _0x57437c=a5_0x5895;return/^[a-zA-Z]*$/[_0x57437c(0x198)](_0xfaef45);}function enOrNum(_0x37fc6f){const _0x8009de=/^[0-9a-zA-Z]*$/g;return _0x8009de['test'](_0x37fc6f);}function contains(_0x50099d,_0x4e68dd){const _0x35b6d2=a5_0x5895;return _0x50099d[_0x35b6d2(0x193)](_0x4e68dd)>=0x0;}function range(_0x297ae5,_0x4d32e7){return _0x297ae5>=_0x4d32e7[0x0]&&_0x297ae5<=_0x4d32e7[0x1];}function rangeLength(_0x4145ab,_0x2b2b6c){const _0x2d5f60=a5_0x5895;return _0x4145ab[_0x2d5f60(0x178)]>=_0x2b2b6c[0x0]&&_0x4145ab[_0x2d5f60(0x178)]<=_0x2b2b6c[0x1];}function landline(_0x174e85){const _0x21287d=a5_0x5895,_0x3c5488=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x3c5488[_0x21287d(0x198)](_0x174e85);}function empty(_0x1f6bb2){const _0x2aa169=a5_0x5895;switch(typeof _0x1f6bb2){case _0x2aa169(0x18b):return!![];case'string':if(_0x1f6bb2[_0x2aa169(0x18d)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case _0x2aa169(0x17f):if(!_0x1f6bb2)return!![];break;case _0x2aa169(0x194):if(_0x1f6bb2===0x0||isNaN(_0x1f6bb2))return!![];break;case _0x2aa169(0x196):if(_0x1f6bb2===null||_0x1f6bb2[_0x2aa169(0x178)]===0x0)return!![];for(const _0x58b61e in _0x1f6bb2){return![];}return!![];}return![];}function jsonString(_0x2219f6){const _0x31004e=a5_0x5895;if(typeof _0x2219f6===_0x31004e(0x192))try{const _0x47626d=JSON[_0x31004e(0x17a)](_0x2219f6);if(typeof _0x47626d===_0x31004e(0x196)&&_0x47626d)return!![];return![];}catch(_0x1c9a14){return![];}return![];}function array(_0x43f04b){const _0x33f325=a5_0x5895;if(typeof Array['isArray']===_0x33f325(0x188))return Array[_0x33f325(0x183)](_0x43f04b);return Object[_0x33f325(0x187)][_0x33f325(0x182)][_0x33f325(0x191)](_0x43f04b)===_0x33f325(0x18f);}function object(_0x2988da){const _0x36bf9=a5_0x5895;return Object[_0x36bf9(0x187)][_0x36bf9(0x182)][_0x36bf9(0x191)](_0x2988da)==='[object\x20Object]';}function code(_0x20b73d,_0x558cec=0x6){const _0x2cee61=a5_0x5895;return new RegExp(_0x2cee61(0x180)+_0x558cec+'}$')[_0x2cee61(0x198)](_0x20b73d);}function func(_0x3c4b95){const _0x32271f=a5_0x5895;return typeof _0x3c4b95===_0x32271f(0x188);}function promise(_0x39e9fc){const _0x471656=a5_0x5895;return object(_0x39e9fc)&&func(_0x39e9fc[_0x471656(0x17c)])&&func(_0x39e9fc[_0x471656(0x18e)]);}function image(_0x27f580){const _0x54349=a5_0x5895,_0x10c55a=_0x27f580[_0x54349(0x177)]('?')[0x0],_0x2980c8=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x2980c8[_0x54349(0x198)](_0x10c55a);}function video(_0x16c82f){const _0xf04411=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0xf04411['test'](_0x16c82f);}function regExp(_0x576bf7){const _0x190c59=a5_0x5895;return _0x576bf7&&Object[_0x190c59(0x187)][_0x190c59(0x182)][_0x190c59(0x191)](_0x576bf7)===_0x190c59(0x190);}function isNumeric(_0x53cbde,_0x34725c=0x0){const _0x29f200=a5_0x5895;if(typeof _0x53cbde===_0x29f200(0x194))_0x53cbde=_0x53cbde['toString']();if(typeof _0x53cbde!==_0x29f200(0x192))return![];switch(_0x34725c){case 0x1:return/^\d+(\.\d+)?$/[_0x29f200(0x198)](_0x53cbde);case 0x2:return/^-\d+(\.\d+)?$/[_0x29f200(0x198)](_0x53cbde);case 0x3:return/^-?\d+$/[_0x29f200(0x198)](_0x53cbde);case 0x4:return/^\d+$/[_0x29f200(0x198)](_0x53cbde);case 0x5:return/^-\d+$/[_0x29f200(0x198)](_0x53cbde);default:return/^-?\d*\.?\d*$/[_0x29f200(0x198)](_0x53cbde)&&!_0x53cbde[_0x29f200(0x179)]('.')&&!_0x53cbde[_0x29f200(0x181)]('--');}}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_0x3625e3=a6_0x2219;(function(_0x6f0a20,_0x4254e1){const _0x5dfa05=a6_0x2219,_0x48af7e=_0x6f0a20();while(!![]){try{const _0x1fad82=-parseInt(_0x5dfa05(0x212))/0x1+-parseInt(_0x5dfa05(0x1cd))/0x2*(parseInt(_0x5dfa05(0x1d8))/0x3)+-parseInt(_0x5dfa05(0x1fe))/0x4*(-parseInt(_0x5dfa05(0x1c7))/0x5)+parseInt(_0x5dfa05(0x1f4))/0x6*(-parseInt(_0x5dfa05(0x1cc))/0x7)+-parseInt(_0x5dfa05(0x1fd))/0x8*(-parseInt(_0x5dfa05(0x21f))/0x9)+parseInt(_0x5dfa05(0x1e3))/0xa+parseInt(_0x5dfa05(0x21e))/0xb;if(_0x1fad82===_0x4254e1)break;else _0x48af7e['push'](_0x48af7e['shift']());}catch(_0x9df004){_0x48af7e['push'](_0x48af7e['shift']());}}}(a6_0x1412,0x1992c));function a6_0x1412(){const _0x2ab517=['除数不能为0','getTime','parse','hasOwnProperty','Nationality','getHours','stringify','360gTMiAL','setHours','无效的操作符,操作符应为1、2、3或4','split','EnName','GivenName','value','number','fjbh','slice','right','1924590bjnfEn','match','trim','forEach','Birth','Surname','DateOfBirth','getMinutes','dayTitle','nationality','code','ExpiryDate','startsWith','EnglishName','getDate','endsWith','Quantity\x20should\x20be\x20greater\x20than\x200.','10158HHbKNH','string','getSeconds','BirthDate','YYYY','toLocaleString','includes','FamilyName','CnName','32knZgqW','10732lZEVEg','label','givenNameEn','givenName','object','sex','isArray','exec','toString','find','padStart','setDate','getFullYear','ValidDate','FirstName','max','Number','substring','DateOfExpiration','all','26419bHOfOx','boolean','Birthday','monthTitle','IdNum','getMonth','test','error','round','expDate','en-US','name','1260501xzgMma','15876KBJjqw','prototype','floor','birthDate','shift','surname','length','abs','call','both','Sex','_qh','surnameEn','englishName','25qZYrbi','function','Name','join','map','406DKOpsX','1636oUeQtJ','yyyy-mm-dd','push','replace'];a6_0x1412=function(){return _0x2ab517;};return a6_0x1412();}function fmtNum(_0x111d49){const _0x32dfaa=a6_0x2219;if(_0x111d49==0x0)return'0';if(!_0x111d49)return'';let _0x431c34=typeof _0x111d49===_0x32dfaa(0x1f5)?parseFloat(_0x111d49):_0x111d49;if(isNaN(_0x431c34))return'';return _0x431c34[_0x32dfaa(0x1f9)](_0x32dfaa(0x21c),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x107939,_0xfdd8f=![]){const _0x3df20c=a6_0x2219;let _0x4b8c96={'surname':'','givenName':''};if(_0xfdd8f){const _0x3c804a=_0x107939[_0x3df20c(0x1fa)](',')?_0x107939['split'](','):_0x107939[_0x3df20c(0x1db)](/\s+/);_0x3c804a[_0x3df20c(0x1bf)]>=0x2&&(_0x4b8c96[_0x3df20c(0x224)]=_0x3c804a[0x0][_0x3df20c(0x1e5)](),_0x4b8c96['givenName']=_0x3c804a[0x1][_0x3df20c(0x1e5)]());}else{const _0x2a3a27=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x53bd57=0x0;_0x53bd57<_0x2a3a27[_0x3df20c(0x1bf)];_0x53bd57++){const _0x4a4419=_0x2a3a27[_0x53bd57];if(_0x107939[_0x3df20c(0x1ef)](_0x4a4419))return _0x4b8c96[_0x3df20c(0x224)]=_0x4a4419,_0x4b8c96[_0x3df20c(0x201)]=_0x107939['substring'](_0x4a4419[_0x3df20c(0x1bf)])[_0x3df20c(0x1e5)](),_0x4b8c96;}const _0x5efb40=_0x107939[_0x3df20c(0x1db)]('\x20');if(_0x5efb40[_0x3df20c(0x1bf)]===0x1){const _0x298394=_0x107939[_0x3df20c(0x1e4)](/[\u4e00-\u9fa5]/);_0x4b8c96['surname']=_0x298394?_0x298394[0x0]:'',_0x4b8c96[_0x3df20c(0x201)]=_0x107939['replace'](_0x4b8c96[_0x3df20c(0x224)],'')['trim']();}else _0x4b8c96[_0x3df20c(0x224)]=_0x5efb40[0x0],_0x4b8c96[_0x3df20c(0x201)]=_0x5efb40['slice'](0x1)[_0x3df20c(0x1ca)]('\x20');}return _0x4b8c96;}function timeFormat(_0x4b05cd=null,_0x50cccb=a6_0x3625e3(0x1ce)){const _0x3ffefe=a6_0x3625e3;let _0x33280a;if(!_0x4b05cd)_0x33280a=new Date();else{if(/^\d{10}$/[_0x3ffefe(0x218)](_0x4b05cd?.['toString']()[_0x3ffefe(0x1e5)]()))_0x33280a=new Date(_0x4b05cd*0x3e8);else{if(typeof _0x4b05cd===_0x3ffefe(0x1f5)&&/^\d+$/[_0x3ffefe(0x218)](_0x4b05cd['trim']()))_0x33280a=new Date(Number(_0x4b05cd));else typeof _0x4b05cd===_0x3ffefe(0x1f5)&&_0x4b05cd[_0x3ffefe(0x1fa)]('-')&&!_0x4b05cd[_0x3ffefe(0x1fa)]('T')?_0x33280a=new Date(_0x4b05cd[_0x3ffefe(0x1d0)](/-/g,'/')):_0x33280a=new Date(_0x4b05cd);}}const _0x31b4e4={'y':_0x33280a['getFullYear']()[_0x3ffefe(0x206)](),'m':(_0x33280a[_0x3ffefe(0x217)]()+0x1)[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0'),'d':_0x33280a['getDate']()['toString']()['padStart'](0x2,'0'),'h':_0x33280a[_0x3ffefe(0x1d6)]()['toString']()['padStart'](0x2,'0'),'M':_0x33280a[_0x3ffefe(0x1ea)]()[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0'),'s':_0x33280a[_0x3ffefe(0x1f6)]()[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0')};for(const _0x25dcd5 in _0x31b4e4){const [_0x57efdb]=new RegExp(_0x25dcd5+'+')[_0x3ffefe(0x205)](_0x50cccb)||[];if(_0x57efdb){const _0x2ea4ae=_0x25dcd5==='y'&&_0x57efdb[_0x3ffefe(0x1bf)]===0x2?0x2:0x0;_0x50cccb=_0x50cccb[_0x3ffefe(0x1d0)](_0x57efdb,_0x31b4e4[_0x25dcd5]['slice'](_0x2ea4ae));}}return _0x50cccb;}function handleOCRData(_0x30892e,_0x440e72){const _0x202759=a6_0x3625e3,_0x498cf8=_0x4b81a6=>{const _0x1662a1=a6_0x2219,_0x118f1d=_0x4b81a6[_0x1662a1(0x20f)](0x0,0x4),_0x10d4c3=_0x4b81a6[_0x1662a1(0x20f)](0x4,0x6),_0x197e87=_0x4b81a6[_0x1662a1(0x20f)](0x6,0x8);return _0x118f1d+'-'+_0x10d4c3+'-'+_0x197e87;};let _0x1832cb={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x30892e===0x0||_0x30892e===0x1||_0x30892e===0x2){if(_0x440e72[_0x202759(0x1c3)]==='M')_0x1832cb['sex']='男';else _0x1832cb['sex']='女';}debugger;_0x30892e===0x0&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x224)]=_0x440e72[_0x202759(0x1fb)],_0x1832cb[_0x202759(0x201)]=_0x440e72[_0x202759(0x20c)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x1ee)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x1f7)],_0x1832cb['nationality']=_0x440e72[_0x202759(0x1d5)],_0x1832cb[_0x202759(0x1df)]=_0x440e72['PassportNo']);if(_0x30892e===0x1){_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x224)]=_0x440e72[_0x202759(0x1e8)],_0x1832cb[_0x202759(0x201)]=_0x440e72[_0x202759(0x1dd)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x210)],_0x1832cb['birthDate']=_0x440e72[_0x202759(0x1e9)],_0x1832cb[_0x202759(0x1ec)]=_0x440e72[_0x202759(0x1d5)],_0x1832cb[_0x202759(0x1df)]=_0x440e72['ID'];if(!_0x440e72[_0x202759(0x1e8)]&&!_0x440e72[_0x202759(0x1dd)]){const _0x395a0a=splitName(_0x440e72['Name']);_0x1832cb['surname']=_0x395a0a['surname'],_0x1832cb[_0x202759(0x201)]=_0x395a0a[_0x202759(0x201)];}if(!_0x440e72[_0x202759(0x1f0)])_0x1832cb[_0x202759(0x1c6)]=_0x440e72[_0x202759(0x1c9)];}_0x30892e===0x2&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1fc)],_0x1832cb['englishName']=_0x440e72[_0x202759(0x1dc)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb[_0x202759(0x1df)]=_0x440e72[_0x202759(0x216)]);_0x30892e===0x3&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x203)]=_0x440e72[_0x202759(0x1c3)],_0x1832cb['expDate']=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x1e7)],_0x1832cb['number']=_0x440e72[_0x202759(0x216)]);_0x30892e===0x4&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x1c6)]=_0x440e72[_0x202759(0x1f0)],_0x1832cb['sex']=_0x440e72[_0x202759(0x1c3)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb['number']=_0x440e72[_0x202759(0x20e)]);_0x30892e===0x5&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72['Name'],_0x1832cb[_0x202759(0x1c6)]=_0x440e72['EnglishName'],_0x1832cb[_0x202759(0x203)]=_0x440e72[_0x202759(0x1c3)],_0x1832cb['expDate']=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb[_0x202759(0x1df)]=_0x440e72[_0x202759(0x20e)]);if(_0x30892e===0x2||_0x30892e===0x3||_0x30892e===0x4||_0x30892e===0x5){const _0x5c64b2=splitName(_0x1832cb[_0x202759(0x21d)]);_0x1832cb[_0x202759(0x224)]=_0x5c64b2['surname'],_0x1832cb[_0x202759(0x201)]=_0x5c64b2['givenName'];}if(_0x30892e===0x2||_0x30892e===0x4||_0x30892e===0x5){const _0x23807e=splitName(_0x1832cb[_0x202759(0x1c6)],!![]);_0x1832cb[_0x202759(0x1c5)]=_0x23807e[_0x202759(0x224)],_0x1832cb[_0x202759(0x200)]=_0x23807e[_0x202759(0x201)];}if(_0x30892e===0x0||_0x30892e===0x1){if(_0x1832cb['birthDate']!=='')_0x1832cb[_0x202759(0x222)]=_0x498cf8(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb['expDate']!=='')_0x1832cb[_0x202759(0x21b)]=_0x498cf8(_0x1832cb[_0x202759(0x21b)]);}if(_0x30892e===0x2||_0x30892e===0x3){if(_0x1832cb[_0x202759(0x222)]!=='')_0x1832cb['birthDate']=timeFormat(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb[_0x202759(0x21b)]!=='')_0x1832cb['expDate']=timeFormat(_0x1832cb[_0x202759(0x21b)]);}if(_0x30892e===0x4||_0x30892e===0x5){if(_0x1832cb[_0x202759(0x222)]!=='')_0x1832cb[_0x202759(0x222)]=timeFormat(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb[_0x202759(0x21b)]!==''){let _0x32f4f2=_0x1832cb['expDate'][_0x202759(0x1db)]('-');_0x1832cb['expDate']=timeFormat(_0x32f4f2[0x1]);}}return{'type':_0x30892e,'data':_0x1832cb};}function modifyKeys(_0x307c02,_0x4b5947={'strCode':a6_0x3625e3(0x1ed),'strFjbh':a6_0x3625e3(0x1e0),'strGuid':a6_0x3625e3(0x1de),'strValue':a6_0x3625e3(0x1ff)}){const _0x3459f9=a6_0x3625e3;if(!_0x307c02[_0x3459f9(0x1bf)]||_0x307c02===null)return[];const _0x1fe738=_0x307c02[_0x3459f9(0x1cb)](_0x1ff070=>{const _0xf0da6b=_0x3459f9,_0x2fee13={};for(const _0x5d871a in _0x1ff070){_0x4b5947[_0xf0da6b(0x1d4)](_0x5d871a)?_0x2fee13[_0x4b5947[_0x5d871a]]=_0x1ff070[_0x5d871a]:_0x2fee13[_0x5d871a]=_0x1ff070[_0x5d871a];}return _0x2fee13;});return _0x1fe738;}function sliceArray(_0x4b192e,_0x2f9f5a,_0x3015c7){const _0x118065=a6_0x3625e3;if(_0x2f9f5a<=0x0)return console[_0x118065(0x219)](_0x118065(0x1f3)),[];return _0x3015c7?_0x4b192e['slice'](0x0,_0x2f9f5a):_0x4b192e['slice'](-_0x2f9f5a);}function findDataByData(_0x1d4409,_0x5ba7da,_0x4298ec){const _0x5513df=a6_0x3625e3,_0x9f2c05=_0x1d4409[_0x5513df(0x207)](_0x1f67a2=>_0x1f67a2[_0x4298ec]===_0x5ba7da);return _0x9f2c05||null;}function splitArray(_0x30a4bb,_0x52d10f){const _0x108290=a6_0x3625e3,_0x57310d=[];for(let _0x39ca9e=0x0;_0x39ca9e<_0x30a4bb[_0x108290(0x1bf)];_0x39ca9e+=_0x52d10f){_0x57310d[_0x108290(0x1cf)](_0x30a4bb[_0x108290(0x1e1)](_0x39ca9e,_0x39ca9e+_0x52d10f));}return _0x57310d;}function getProxyType(_0x344a07){const _0x30d72b=a6_0x3625e3;return Object[_0x30d72b(0x220)][_0x30d72b(0x206)][_0x30d72b(0x1c1)](_0x344a07)[_0x30d72b(0x1e1)](0x8,-0x1);}let timeout=null;function debounce(_0x34d297,_0x127b7b=0x1f4,_0x5218f5=![]){const _0x5dce28=a6_0x3625e3;if(timeout!==null)clearTimeout(timeout);if(_0x5218f5){const _0x4e54bf=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x127b7b);if(_0x4e54bf)typeof _0x34d297===_0x5dce28(0x1c8)&&_0x34d297();}else timeout=setTimeout(()=>{const _0x2c06fb=_0x5dce28;typeof _0x34d297===_0x2c06fb(0x1c8)&&_0x34d297();},_0x127b7b);}function urlEncode(_0x3c8ce8={}){const _0x2265ed=a6_0x3625e3,_0x29b480=[];for(const _0x241be0 in _0x3c8ce8){const _0x130cd8=_0x3c8ce8[_0x241be0];if(!_0x130cd8)continue;isArray(_0x130cd8)?_0x130cd8[_0x2265ed(0x1e6)](_0x4fcca2=>{const _0x3816e9=_0x2265ed;_0x29b480[_0x3816e9(0x1cf)](_0x241be0+'='+_0x4fcca2);}):_0x29b480[_0x2265ed(0x1cf)](_0x241be0+'='+_0x130cd8);}return _0x29b480[_0x2265ed(0x1ca)]('&');}function dateFormat(_0x5a746e,_0x33a732){const _0x28d850=a6_0x3625e3,_0x45d1f0=new Date(_0x33a732),_0x42ee38={'Y+':_0x45d1f0[_0x28d850(0x20a)]()[_0x28d850(0x206)](),'m+':(_0x45d1f0[_0x28d850(0x217)]()+0x1)[_0x28d850(0x206)](),'d+':_0x45d1f0['getDate']()['toString'](),'H+':_0x45d1f0[_0x28d850(0x1d6)]()[_0x28d850(0x206)](),'M+':_0x45d1f0[_0x28d850(0x1ea)]()[_0x28d850(0x206)](),'S+':_0x45d1f0['getSeconds']()[_0x28d850(0x206)]()};let _0x390f98;for(let _0x201222 in _0x42ee38){_0x390f98=new RegExp('('+_0x201222+')')[_0x28d850(0x205)](_0x5a746e);_0x390f98&&(_0x5a746e=_0x5a746e['replace'](_0x390f98[0x1],_0x390f98[0x1][_0x28d850(0x1bf)]==0x1?_0x42ee38[_0x201222]:_0x42ee38[_0x201222][_0x28d850(0x208)](_0x390f98[0x1][_0x28d850(0x1bf)],'0')));;};return _0x5a746e;}function formatDate(_0x377503,_0x22699e='YYYY-MM-DD',_0x4c2124={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x4faf78=a6_0x3625e3,_0x5f81c0=new Date(_0x377503),_0x1e175a=_0x5f81c0[_0x4faf78(0x20a)](),_0x113ed0=_0x5f81c0['getMonth']()+0x1,_0x2a9207=_0x5f81c0[_0x4faf78(0x1f1)](),_0x284d18=_0x113ed0<0xa?'0'+_0x113ed0:_0x113ed0,_0x4a445f=_0x2a9207<0xa?'0'+_0x2a9207:_0x2a9207;let _0x47b107=_0x22699e[_0x4faf78(0x1d0)](_0x4faf78(0x1f8),_0x1e175a)['replace']('MM',_0x284d18)[_0x4faf78(0x1d0)]('DD',_0x4a445f);return _0x47b107=_0x47b107['replace'](/-MM/g,_0x4c2124['monthTitle'])[_0x4faf78(0x1d0)](/-DD/g,_0x4c2124[_0x4faf78(0x1eb)])[_0x4faf78(0x1d0)](_0x4faf78(0x1f8)+_0x4c2124['yearTitle'],'')['replace']('MM'+_0x4c2124[_0x4faf78(0x215)],'')[_0x4faf78(0x1d0)]('DD'+_0x4c2124[_0x4faf78(0x1eb)],''),_0x47b107;}function compareDates(_0x5c0255,_0x5e2e85){const _0x511498=a6_0x3625e3;_0x5c0255=new Date(_0x5c0255);!_0x5e2e85?_0x5e2e85=new Date():_0x5e2e85=new Date(_0x5e2e85);_0x5c0255[_0x511498(0x1d9)](0x0,0x0,0x0,0x0),_0x5e2e85['setHours'](0x0,0x0,0x0,0x0);var _0x31cd29=_0x5c0255[_0x511498(0x1d2)](),_0x131d6e=_0x5e2e85['getTime']();if(_0x31cd29<_0x131d6e)return-0x1;else return _0x31cd29>_0x131d6e?0x1:0x0;}function getDaysBetween(_0x5a2ecc,_0x838fb5){const _0x13b8c0=a6_0x3625e3,_0x271996=new Date(_0x5a2ecc),_0x478aba=new Date(_0x838fb5),_0x1ce3a2=Math[_0x13b8c0(0x1c0)](_0x271996[_0x13b8c0(0x1d2)]()-_0x478aba[_0x13b8c0(0x1d2)]()),_0x14e346=Math['floor'](_0x1ce3a2/(0x3e8*0x3c*0x3c*0x18));return _0x14e346+0x1;}function chineseNumeral(_0x249d64){const _0x231a83=a6_0x3625e3,_0x49903d=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x254971=['','拾','佰','仟'],_0x563326=['','万','亿','兆'];let _0x455296=Math[_0x231a83(0x221)](_0x249d64),_0x4aeda4=Math[_0x231a83(0x21a)]((_0x249d64-_0x455296)*0x64),_0x4faf83='';for(let _0x4c9913=0x0;_0x455296>0x0;_0x4c9913++){let _0x5cb2cd='',_0x233a39=_0x455296%0x2710;_0x455296=Math[_0x231a83(0x221)](_0x455296/0x2710);for(let _0x2bb02a=0x0;_0x233a39>0x0;_0x2bb02a++){let _0x27a66b=_0x233a39%0xa;_0x5cb2cd=(_0x27a66b?_0x49903d[_0x27a66b]+_0x254971[_0x2bb02a]:'')+_0x5cb2cd,_0x233a39=Math[_0x231a83(0x221)](_0x233a39/0xa);}_0x4faf83=_0x5cb2cd+(_0x5cb2cd?_0x563326[_0x4c9913]:_0x563326[_0x4c9913]&&!_0x4faf83[_0x231a83(0x1fa)]('零')?'零':'')+_0x4faf83;}_0x4faf83+=_0x4faf83?'元':'零元';if(_0x4aeda4>0x0){let _0x467b08=Math[_0x231a83(0x221)](_0x4aeda4/0xa),_0x208da7=_0x4aeda4%0xa;_0x4faf83+=(_0x467b08?_0x49903d[_0x467b08]+'角':'')+(_0x208da7?_0x49903d[_0x208da7]+'分':'');}else _0x4faf83+='整';return _0x4faf83[_0x231a83(0x1d0)](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x5adb99){const _0x1bb367=a6_0x3625e3;(!_0x5adb99||_0x5adb99[_0x1bb367(0x1e5)]()==='')&&(_0x5adb99=new Date()[_0x1bb367(0x20a)]()+'-'+(new Date()[_0x1bb367(0x217)]()+0x1));let _0x4868eb=[],[_0x11d778,_0x5d864c]=_0x5adb99[_0x1bb367(0x1db)]('-')['map'](Number),_0x1cddfa=new Date(_0x11d778,_0x5d864c,0x0),_0x59dce4=_0x1cddfa[_0x1bb367(0x1f1)]();for(let _0x31d657=0x1;_0x31d657<=_0x59dce4;_0x31d657++){let _0x1c8420=_0x31d657<0xa?'0'+_0x31d657:''+_0x31d657,_0x49f72c=_0x5d864c<0xa?'0'+_0x5d864c:''+_0x5d864c;_0x4868eb[_0x1bb367(0x1cf)]({'date':_0x11d778+'-'+_0x49f72c+'-'+_0x1c8420,'disable':!![]});}return _0x4868eb;}function getToday(_0x3905d4){const _0x33deb3=a6_0x3625e3;var _0x5d6171=new Date(),_0x4d1a53=String(_0x5d6171[_0x33deb3(0x1f1)]())['padStart'](0x2,'0'),_0x2356a0=String(_0x5d6171[_0x33deb3(0x217)]()+0x1)['padStart'](0x2,'0'),_0x15d457=_0x5d6171[_0x33deb3(0x20a)]();return _0x5d6171=_0x15d457+'-'+_0x2356a0+'-'+_0x4d1a53,_0x5d6171;}function resetObject(_0x177fd6){const _0x36292b=a6_0x3625e3;let _0x28418d=JSON[_0x36292b(0x1d3)](JSON[_0x36292b(0x1d7)](_0x177fd6));for(const _0x3f5b77 in _0x28418d){if(typeof _0x28418d[_0x3f5b77]===_0x36292b(0x1df))_0x28418d[_0x3f5b77]=0x0;else{if(typeof _0x28418d[_0x3f5b77]===_0x36292b(0x213))_0x28418d[_0x3f5b77]=![];else{if(Array[_0x36292b(0x204)](_0x28418d[_0x3f5b77]))_0x28418d[_0x3f5b77]=[];else typeof _0x28418d[_0x3f5b77]===_0x36292b(0x202)&&_0x28418d[_0x3f5b77]!==null?resetObject(_0x28418d[_0x3f5b77]):_0x28418d[_0x3f5b77]='';}}}return _0x28418d;}function preciseOperation(_0x52e8b,_0x2ea197,_0x5e511c,_0x4ded06=0xf4240){const _0x7b2c6d=a6_0x3625e3;if(isNaN(_0x52e8b)||isNaN(_0x2ea197))return NaN;if(!isFinite(_0x52e8b)||!isFinite(_0x2ea197))return NaN;let _0x577625=BigInt(Math['round'](_0x52e8b*_0x4ded06)),_0x2142e9=BigInt(Math['round'](_0x2ea197*_0x4ded06)),_0x5c0ea0;switch(_0x5e511c){case 0x1:_0x5c0ea0=_0x577625+_0x2142e9;break;case 0x2:_0x5c0ea0=_0x577625-_0x2142e9;break;case 0x3:_0x5c0ea0=_0x577625*_0x2142e9;break;case 0x4:if(_0x2142e9===0x0n)throw new Error(_0x7b2c6d(0x1d1));_0x5c0ea0=_0x577625/_0x2142e9;break;default:throw new Error(_0x7b2c6d(0x1da));}return Number(_0x5c0ea0)/_0x4ded06;}function preciseSum(_0x543983){const _0x4a601d=a6_0x3625e3;let _0x3577bb=0x0;for(const _0x209d2d of _0x543983){let _0x5c287d=0x0;if(typeof _0x209d2d===_0x4a601d(0x1f5)){const _0x454750=parseFloat(_0x209d2d);!isNaN(_0x454750)&&(_0x5c287d=_0x454750);}else typeof _0x209d2d==='number'&&(_0x5c287d=_0x209d2d);_0x3577bb=preciseOperation(_0x3577bb,_0x5c287d,0x1);}return _0x3577bb;}function getRelativeDate(_0x3dbf2a,_0x303a5e=0x0){const _0xe7a7d0=a6_0x3625e3,_0x201651=new Date(_0x3dbf2a);_0x201651[_0xe7a7d0(0x209)](_0x201651[_0xe7a7d0(0x1f1)]()+_0x303a5e);const _0xdbad97=_0x201651['getFullYear'](),_0x566a25=(_0x201651['getMonth']()+0x1)['toString']()[_0xe7a7d0(0x208)](0x2,'0'),_0x2e215b=_0x201651[_0xe7a7d0(0x1f1)]()[_0xe7a7d0(0x206)]()[_0xe7a7d0(0x208)](0x2,'0');return _0xdbad97+'-'+_0x566a25+'-'+_0x2e215b;}function a6_0x2219(_0x3f5614,_0x2a1ee3){const _0x141244=a6_0x1412();return a6_0x2219=function(_0x221943,_0x387bd9){_0x221943=_0x221943-0x1bf;let _0x5ab642=_0x141244[_0x221943];return _0x5ab642;},a6_0x2219(_0x3f5614,_0x2a1ee3);}function validateFields(_0x265a09,_0x4c7f4a,_0x51b5f3=''){for(let _0x32a919 of _0x4c7f4a){if(_0x265a09[_0x32a919]===_0x51b5f3)return!![];}return![];}function mergeObjects(_0x4de6eb,_0x2f096a){for(const _0x162381 in _0x4de6eb){_0x2f096a['hasOwnProperty'](_0x162381)&&(_0x4de6eb[_0x162381]=_0x2f096a[_0x162381]);}return _0x4de6eb;}const formatToDecimal=(_0x5ab6d8,_0xfa1584=0x2)=>{const _0x30826c=a6_0x3625e3;if(isNaN(_0xfa1584)||_0xfa1584<0x0)return _0x5ab6d8;let _0x8e55ee=Number(_0x5ab6d8);if(!isFinite(_0x8e55ee))return _0x5ab6d8;return _0xfa1584=Math[_0x30826c(0x20d)](0x0,Math[_0x30826c(0x221)](_0xfa1584)),_0x8e55ee['toFixed'](_0xfa1584);};function findKeysEndingWith(_0x588cef,_0x47be07=a6_0x3625e3(0x1c4)){const _0x5bef18=a6_0x3625e3;let _0x1c9f7d=[];for(var _0x3600ac in _0x588cef){if(_0x588cef['hasOwnProperty'](_0x3600ac)){if(_0x3600ac[_0x5bef18(0x1f2)](_0x47be07))_0x1c9f7d[_0x5bef18(0x1cf)](_0x3600ac);}}return _0x1c9f7d;}function guid(_0x1226a5=0x20,_0x53e32a=!![],_0x5b8808=null){const _0x28f361=a6_0x3625e3,_0x5e3158='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'[_0x28f361(0x1db)](''),_0x54b4f4=[];_0x5b8808=_0x5b8808||_0x5e3158[_0x28f361(0x1bf)];if(_0x1226a5){for(let _0x17cc91=0x0;_0x17cc91<_0x1226a5;_0x17cc91++)_0x54b4f4[_0x17cc91]=_0x5e3158[0x0|Math['random']()*_0x5b8808];}else{let _0x31bb42;_0x54b4f4[0x8]=_0x54b4f4[0xd]=_0x54b4f4[0x12]=_0x54b4f4[0x17]='-',_0x54b4f4[0xe]='4';for(let _0xd9104b=0x0;_0xd9104b<0x24;_0xd9104b++){!_0x54b4f4[_0xd9104b]&&(_0x31bb42=0x0|Math['random']()*0x10,_0x54b4f4[_0xd9104b]=_0x5e3158[_0xd9104b==0x13?_0x31bb42&0x3|0x8:_0x31bb42]);}}if(_0x53e32a)return _0x54b4f4[_0x28f361(0x223)](),'u'+_0x54b4f4[_0x28f361(0x1ca)]('');return _0x54b4f4[_0x28f361(0x1ca)]('');}function trim(_0x16b1b4,_0x233d32=a6_0x3625e3(0x1c2)){const _0x321c6a=a6_0x3625e3;_0x16b1b4=String(_0x16b1b4);if(_0x233d32==_0x321c6a(0x1c2))return _0x16b1b4['replace'](/^\s+|\s+$/g,'');if(_0x233d32=='left')return _0x16b1b4[_0x321c6a(0x1d0)](/^\s*/,'');if(_0x233d32==_0x321c6a(0x1e2))return _0x16b1b4[_0x321c6a(0x1d0)](/(\s*$)/g,'');if(_0x233d32==_0x321c6a(0x211))return _0x16b1b4[_0x321c6a(0x1d0)](/\s+/g,'');return _0x16b1b4;}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_0xc5e223=a6_0x723c;(function(_0x2b384e,_0x5ce3ef){const _0x150928=a6_0x723c,_0x45621d=_0x2b384e();while(!![]){try{const _0x38e0f9=parseInt(_0x150928(0xe1))/0x1+parseInt(_0x150928(0x107))/0x2*(-parseInt(_0x150928(0x10f))/0x3)+-parseInt(_0x150928(0xe8))/0x4*(parseInt(_0x150928(0xd6))/0x5)+parseInt(_0x150928(0xb6))/0x6*(parseInt(_0x150928(0xc6))/0x7)+-parseInt(_0x150928(0xb7))/0x8+parseInt(_0x150928(0xe5))/0x9*(parseInt(_0x150928(0xd9))/0xa)+parseInt(_0x150928(0xe9))/0xb;if(_0x38e0f9===_0x5ce3ef)break;else _0x45621d['push'](_0x45621d['shift']());}catch(_0x1560ae){_0x45621d['push'](_0x45621d['shift']());}}}(a6_0x3693,0xd37d5));function fmtNum(_0x38c2af,_0x1ab282=!![]){const _0x56574a=a6_0x723c;if(_0x38c2af==0x0)return _0x1ab282?_0x56574a(0xdd):'0';if(!_0x38c2af)return'';let _0x5c69c9=typeof _0x38c2af==='string'?parseFloat(_0x38c2af):_0x38c2af;if(isNaN(_0x5c69c9))return'';return _0x5c69c9[_0x56574a(0x104)](_0x56574a(0xb8),{'minimumFractionDigits':_0x1ab282?0x2:0x0,'maximumFractionDigits':_0x1ab282?0x2:0x0});}function splitName(_0x25acb2,_0x4ab0e6=![]){const _0x3afc6e=a6_0x723c;let _0x2ca260={'surname':'','givenName':''};if(_0x4ab0e6){const _0x15e698=_0x25acb2[_0x3afc6e(0xf7)](',')?_0x25acb2[_0x3afc6e(0xf2)](','):_0x25acb2[_0x3afc6e(0xf2)](/\s+/);_0x15e698[_0x3afc6e(0xda)]>=0x2&&(_0x2ca260[_0x3afc6e(0xb9)]=_0x15e698[0x0]['trim'](),_0x2ca260[_0x3afc6e(0x114)]=_0x15e698[0x1]['trim']());}else{const _0x3218b9=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x10c229=0x0;_0x10c229<_0x3218b9[_0x3afc6e(0xda)];_0x10c229++){const _0x148584=_0x3218b9[_0x10c229];if(_0x25acb2[_0x3afc6e(0xd8)](_0x148584))return _0x2ca260[_0x3afc6e(0xb9)]=_0x148584,_0x2ca260['givenName']=_0x25acb2[_0x3afc6e(0xe0)](_0x148584[_0x3afc6e(0xda)])[_0x3afc6e(0x10b)](),_0x2ca260;}const _0x2235b3=_0x25acb2['split']('\x20');if(_0x2235b3['length']===0x1){const _0x30d4aa=_0x25acb2[_0x3afc6e(0xba)](/[\u4e00-\u9fa5]/);_0x2ca260[_0x3afc6e(0xb9)]=_0x30d4aa?_0x30d4aa[0x0]:'',_0x2ca260[_0x3afc6e(0x114)]=_0x25acb2[_0x3afc6e(0xc3)](_0x2ca260['surname'],'')[_0x3afc6e(0x10b)]();}else _0x2ca260[_0x3afc6e(0xb9)]=_0x2235b3[0x0],_0x2ca260[_0x3afc6e(0x114)]=_0x2235b3[_0x3afc6e(0x112)](0x1)[_0x3afc6e(0xfc)]('\x20');}return _0x2ca260;}function timeFormat(_0x3357fb=null,_0x29085e='yyyy-mm-dd'){const _0x114e19=a6_0x723c;let _0x27f471;if(!_0x3357fb)_0x27f471=new Date();else{if(/^\d{10}$/['test'](_0x3357fb?.[_0x114e19(0x10d)]()[_0x114e19(0x10b)]()))_0x27f471=new Date(_0x3357fb*0x3e8);else{if(typeof _0x3357fb===_0x114e19(0xe7)&&/^\d+$/[_0x114e19(0xbc)](_0x3357fb[_0x114e19(0x10b)]()))_0x27f471=new Date(Number(_0x3357fb));else typeof _0x3357fb===_0x114e19(0xe7)&&_0x3357fb[_0x114e19(0xf7)]('-')&&!_0x3357fb['includes']('T')?_0x27f471=new Date(_0x3357fb[_0x114e19(0xc3)](/-/g,'/')):_0x27f471=new Date(_0x3357fb);}}const _0x3559b1={'y':_0x27f471[_0x114e19(0x109)]()[_0x114e19(0x10d)](),'m':(_0x27f471['getMonth']()+0x1)[_0x114e19(0x10d)]()[_0x114e19(0xd5)](0x2,'0'),'d':_0x27f471[_0x114e19(0x103)]()['toString']()[_0x114e19(0xd5)](0x2,'0'),'h':_0x27f471['getHours']()['toString']()[_0x114e19(0xd5)](0x2,'0'),'M':_0x27f471[_0x114e19(0xf8)]()[_0x114e19(0x10d)]()['padStart'](0x2,'0'),'s':_0x27f471[_0x114e19(0xbf)]()[_0x114e19(0x10d)]()[_0x114e19(0xd5)](0x2,'0')};for(const _0x119ba8 in _0x3559b1){const [_0x4ca03b]=new RegExp(_0x119ba8+'+')[_0x114e19(0xc4)](_0x29085e)||[];if(_0x4ca03b){const _0x10012a=_0x119ba8==='y'&&_0x4ca03b['length']===0x2?0x2:0x0;_0x29085e=_0x29085e[_0x114e19(0xc3)](_0x4ca03b,_0x3559b1[_0x119ba8][_0x114e19(0x112)](_0x10012a));}}return _0x29085e;}function handleOCRData(_0x12c935,_0x29bd4c){const _0x1fe986=a6_0x723c,_0x5608e8=_0x518380=>{const _0x40aa95=a6_0x723c,_0x47cc9e=_0x518380[_0x40aa95(0xe0)](0x0,0x4),_0x13e8de=_0x518380[_0x40aa95(0xe0)](0x4,0x6),_0x204c81=_0x518380[_0x40aa95(0xe0)](0x6,0x8);return _0x47cc9e+'-'+_0x13e8de+'-'+_0x204c81;};let _0x5743b7={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x12c935===0x0||_0x12c935===0x1||_0x12c935===0x2){if(_0x29bd4c['Sex']==='M')_0x5743b7[_0x1fe986(0x113)]='男';else _0x5743b7[_0x1fe986(0x113)]='女';}debugger;_0x12c935===0x0&&(_0x5743b7['name']=_0x29bd4c[_0x1fe986(0xfd)],_0x5743b7[_0x1fe986(0xb9)]=_0x29bd4c['FamilyName'],_0x5743b7[_0x1fe986(0x114)]=_0x29bd4c['FirstName'],_0x5743b7['expDate']=_0x29bd4c[_0x1fe986(0xd0)],_0x5743b7[_0x1fe986(0xf3)]=_0x29bd4c['BirthDate'],_0x5743b7[_0x1fe986(0xe4)]=_0x29bd4c[_0x1fe986(0xf6)],_0x5743b7[_0x1fe986(0x116)]=_0x29bd4c[_0x1fe986(0xf9)]);if(_0x12c935===0x1){_0x5743b7['name']=_0x29bd4c[_0x1fe986(0xfd)],_0x5743b7[_0x1fe986(0xb9)]=_0x29bd4c[_0x1fe986(0xcb)],_0x5743b7[_0x1fe986(0x114)]=_0x29bd4c[_0x1fe986(0x10a)],_0x5743b7[_0x1fe986(0xc5)]=_0x29bd4c['DateOfExpiration'],_0x5743b7['birthDate']=_0x29bd4c[_0x1fe986(0xca)],_0x5743b7[_0x1fe986(0xe4)]=_0x29bd4c['Nationality'],_0x5743b7[_0x1fe986(0x116)]=_0x29bd4c['ID'];if(!_0x29bd4c['Surname']&&!_0x29bd4c[_0x1fe986(0x10a)]){const _0x1a1ea1=splitName(_0x29bd4c['Name']);_0x5743b7[_0x1fe986(0xb9)]=_0x1a1ea1[_0x1fe986(0xb9)],_0x5743b7[_0x1fe986(0x114)]=_0x1a1ea1[_0x1fe986(0x114)];}if(!_0x29bd4c[_0x1fe986(0xde)])_0x5743b7[_0x1fe986(0xd1)]=_0x29bd4c[_0x1fe986(0xfd)];}_0x12c935===0x2&&(_0x5743b7[_0x1fe986(0x101)]=_0x29bd4c['CnName'],_0x5743b7[_0x1fe986(0xd1)]=_0x29bd4c[_0x1fe986(0xdc)],_0x5743b7[_0x1fe986(0xf3)]=_0x29bd4c[_0x1fe986(0xcd)],_0x5743b7[_0x1fe986(0x116)]=_0x29bd4c['IdNum']);_0x12c935===0x3&&(_0x5743b7[_0x1fe986(0x101)]=_0x29bd4c[_0x1fe986(0xfd)],_0x5743b7[_0x1fe986(0x113)]=_0x29bd4c[_0x1fe986(0xef)],_0x5743b7[_0x1fe986(0xc5)]=_0x29bd4c[_0x1fe986(0x106)],_0x5743b7[_0x1fe986(0xf3)]=_0x29bd4c['Birth'],_0x5743b7[_0x1fe986(0x116)]=_0x29bd4c[_0x1fe986(0x102)]);_0x12c935===0x4&&(_0x5743b7[_0x1fe986(0x101)]=_0x29bd4c['Name'],_0x5743b7[_0x1fe986(0xd1)]=_0x29bd4c[_0x1fe986(0xde)],_0x5743b7[_0x1fe986(0x113)]=_0x29bd4c[_0x1fe986(0xef)],_0x5743b7[_0x1fe986(0xc5)]=_0x29bd4c[_0x1fe986(0x106)],_0x5743b7[_0x1fe986(0xf3)]=_0x29bd4c[_0x1fe986(0xcd)],_0x5743b7['number']=_0x29bd4c['Number']);_0x12c935===0x5&&(_0x5743b7[_0x1fe986(0x101)]=_0x29bd4c[_0x1fe986(0xfd)],_0x5743b7[_0x1fe986(0xd1)]=_0x29bd4c[_0x1fe986(0xde)],_0x5743b7['sex']=_0x29bd4c['Sex'],_0x5743b7[_0x1fe986(0xc5)]=_0x29bd4c['ValidDate'],_0x5743b7[_0x1fe986(0xf3)]=_0x29bd4c['Birthday'],_0x5743b7[_0x1fe986(0x116)]=_0x29bd4c[_0x1fe986(0xe6)]);if(_0x12c935===0x2||_0x12c935===0x3||_0x12c935===0x4||_0x12c935===0x5){const _0x4dc801=splitName(_0x5743b7[_0x1fe986(0x101)]);_0x5743b7[_0x1fe986(0xb9)]=_0x4dc801[_0x1fe986(0xb9)],_0x5743b7[_0x1fe986(0x114)]=_0x4dc801[_0x1fe986(0x114)];}if(_0x12c935===0x2||_0x12c935===0x4||_0x12c935===0x5){const _0x3c01e2=splitName(_0x5743b7['englishName'],!![]);_0x5743b7[_0x1fe986(0xea)]=_0x3c01e2[_0x1fe986(0xb9)],_0x5743b7[_0x1fe986(0xec)]=_0x3c01e2[_0x1fe986(0x114)];}if(_0x12c935===0x0||_0x12c935===0x1){if(_0x5743b7[_0x1fe986(0xf3)]!=='')_0x5743b7['birthDate']=_0x5608e8(_0x5743b7[_0x1fe986(0xf3)]);if(_0x5743b7[_0x1fe986(0xc5)]!=='')_0x5743b7['expDate']=_0x5608e8(_0x5743b7['expDate']);}if(_0x12c935===0x2||_0x12c935===0x3){if(_0x5743b7['birthDate']!=='')_0x5743b7[_0x1fe986(0xf3)]=timeFormat(_0x5743b7[_0x1fe986(0xf3)]);if(_0x5743b7[_0x1fe986(0xc5)]!=='')_0x5743b7[_0x1fe986(0xc5)]=timeFormat(_0x5743b7[_0x1fe986(0xc5)]);}if(_0x12c935===0x4||_0x12c935===0x5){if(_0x5743b7[_0x1fe986(0xf3)]!=='')_0x5743b7[_0x1fe986(0xf3)]=timeFormat(_0x5743b7[_0x1fe986(0xf3)]);if(_0x5743b7[_0x1fe986(0xc5)]!==''){let _0x24b87d=_0x5743b7[_0x1fe986(0xc5)][_0x1fe986(0xf2)]('-');_0x5743b7[_0x1fe986(0xc5)]=timeFormat(_0x24b87d[0x1]);}}return{'type':_0x12c935,'data':_0x5743b7};}function modifyKeys(_0x47721d,_0x5d7b98={'strCode':a6_0xc5e223(0xe2),'strFjbh':a6_0xc5e223(0x111),'strGuid':a6_0xc5e223(0x105),'strValue':a6_0xc5e223(0xc0)}){const _0x3e4cde=a6_0xc5e223;if(!_0x47721d[_0x3e4cde(0xda)]||_0x47721d===null)return[];const _0x406885=_0x47721d[_0x3e4cde(0xf5)](_0x456133=>{const _0xc8aa7f=_0x3e4cde,_0x595269={};for(const _0x48a7cd in _0x456133){_0x5d7b98[_0xc8aa7f(0xc1)](_0x48a7cd)?_0x595269[_0x5d7b98[_0x48a7cd]]=_0x456133[_0x48a7cd]:_0x595269[_0x48a7cd]=_0x456133[_0x48a7cd];}return _0x595269;});return _0x406885;}function a6_0x3693(){const _0xac455a=['10DAiAFb','length','Quantity\x20should\x20be\x20greater\x20than\x200.','EnName','0.00','EnglishName','prototype','substring','802148zyTozc','code','floor','nationality','12077514SutKHk','Number','string','20RpeCKB','11393228pchxty','surnameEn','round','givenNameEn','endsWith','right','Sex','yearTitle','getTime','split','birthDate','monthTitle','map','Nationality','includes','getMinutes','PassportNo','forEach','error','join','Name','parse','random','无效的操作符,操作符应为1、2、3或4','name','IdNum','getDate','toLocaleString','value','ValidDate','40NxZruA','object','getFullYear','GivenName','trim','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','toString','push','138153JbyUIN','setDate','fjbh','slice','sex','givenName','max','number','6mUZUCr','8715688DDBVJl','en-US','surname','match','boolean','test','both','call','getSeconds','label','hasOwnProperty','YYYY-MM-DD','replace','exec','expDate','8869210OhtBWA','dayTitle','_qh','function','DateOfBirth','Surname','setHours','Birthday','shift','all','ExpiryDate','englishName','abs','left','YYYY','padStart','1570130FbqShh','getMonth','startsWith'];a6_0x3693=function(){return _0xac455a;};return a6_0x3693();}function sliceArray(_0x458fd9,_0x56ea0d,_0x55fca1){const _0x51ea62=a6_0xc5e223;if(_0x56ea0d<=0x0)return console[_0x51ea62(0xfb)](_0x51ea62(0xdb)),[];return _0x55fca1?_0x458fd9[_0x51ea62(0x112)](0x0,_0x56ea0d):_0x458fd9[_0x51ea62(0x112)](-_0x56ea0d);}function findDataByData(_0xd6490e,_0x536e08,_0x557c32){const _0x633761=_0xd6490e['find'](_0x1d5639=>_0x1d5639[_0x557c32]===_0x536e08);return _0x633761||null;}function splitArray(_0x3b2bcf,_0x2a9f64){const _0x571cda=a6_0xc5e223,_0x6658a7=[];for(let _0x208eed=0x0;_0x208eed<_0x3b2bcf['length'];_0x208eed+=_0x2a9f64){_0x6658a7[_0x571cda(0x10e)](_0x3b2bcf[_0x571cda(0x112)](_0x208eed,_0x208eed+_0x2a9f64));}return _0x6658a7;}function getProxyType(_0x1bb5fa){const _0x1c1a56=a6_0xc5e223;return Object[_0x1c1a56(0xdf)][_0x1c1a56(0x10d)][_0x1c1a56(0xbe)](_0x1bb5fa)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x562e95,_0x4a9a2c=0x1f4,_0x4af168=![]){if(timeout!==null)clearTimeout(timeout);if(_0x4af168){const _0xb1070e=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x4a9a2c);if(_0xb1070e)typeof _0x562e95==='function'&&_0x562e95();}else timeout=setTimeout(()=>{const _0x256a23=a6_0x723c;typeof _0x562e95===_0x256a23(0xc9)&&_0x562e95();},_0x4a9a2c);}function urlEncode(_0x27a8fd={}){const _0x5716ff=a6_0xc5e223,_0x44cf49=[];for(const _0x5943de in _0x27a8fd){const _0x424a32=_0x27a8fd[_0x5943de];if(!_0x424a32)continue;isArray(_0x424a32)?_0x424a32[_0x5716ff(0xfa)](_0x24051a=>{const _0x16bc00=_0x5716ff;_0x44cf49[_0x16bc00(0x10e)](_0x5943de+'='+_0x24051a);}):_0x44cf49[_0x5716ff(0x10e)](_0x5943de+'='+_0x424a32);}return _0x44cf49['join']('&');}function dateFormat(_0x99b81,_0x7292ea){const _0x591991=a6_0xc5e223,_0x4a3eb0=new Date(_0x7292ea),_0x2e0bf0={'Y+':_0x4a3eb0[_0x591991(0x109)]()[_0x591991(0x10d)](),'m+':(_0x4a3eb0['getMonth']()+0x1)[_0x591991(0x10d)](),'d+':_0x4a3eb0['getDate']()['toString'](),'H+':_0x4a3eb0['getHours']()[_0x591991(0x10d)](),'M+':_0x4a3eb0['getMinutes']()[_0x591991(0x10d)](),'S+':_0x4a3eb0[_0x591991(0xbf)]()['toString']()};let _0x51c1d8;for(let _0xbdd174 in _0x2e0bf0){_0x51c1d8=new RegExp('('+_0xbdd174+')')['exec'](_0x99b81);_0x51c1d8&&(_0x99b81=_0x99b81[_0x591991(0xc3)](_0x51c1d8[0x1],_0x51c1d8[0x1][_0x591991(0xda)]==0x1?_0x2e0bf0[_0xbdd174]:_0x2e0bf0[_0xbdd174][_0x591991(0xd5)](_0x51c1d8[0x1][_0x591991(0xda)],'0')));;};return _0x99b81;}function formatDate(_0x58aeaf,_0x1d0ee4=a6_0xc5e223(0xc2),_0xb986a2={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x111cdf=a6_0xc5e223,_0xa19f94=new Date(_0x58aeaf),_0x11cc98=_0xa19f94['getFullYear'](),_0x16aa7a=_0xa19f94['getMonth']()+0x1,_0xd2d0f=_0xa19f94[_0x111cdf(0x103)](),_0x2cdd12=_0x16aa7a<0xa?'0'+_0x16aa7a:_0x16aa7a,_0x1f2f8c=_0xd2d0f<0xa?'0'+_0xd2d0f:_0xd2d0f;let _0xd89408=_0x1d0ee4[_0x111cdf(0xc3)](_0x111cdf(0xd4),_0x11cc98)[_0x111cdf(0xc3)]('MM',_0x2cdd12)[_0x111cdf(0xc3)]('DD',_0x1f2f8c);return _0xd89408=_0xd89408[_0x111cdf(0xc3)](/-MM/g,_0xb986a2[_0x111cdf(0xf4)])[_0x111cdf(0xc3)](/-DD/g,_0xb986a2[_0x111cdf(0xc7)])['replace']('YYYY'+_0xb986a2[_0x111cdf(0xf0)],'')[_0x111cdf(0xc3)]('MM'+_0xb986a2[_0x111cdf(0xf4)],'')['replace']('DD'+_0xb986a2['dayTitle'],''),_0xd89408;}function compareDates(_0x555822,_0x2f8605){const _0x692b3e=a6_0xc5e223;_0x555822=new Date(_0x555822);!_0x2f8605?_0x2f8605=new Date():_0x2f8605=new Date(_0x2f8605);_0x555822[_0x692b3e(0xcc)](0x0,0x0,0x0,0x0),_0x2f8605[_0x692b3e(0xcc)](0x0,0x0,0x0,0x0);var _0x6bc141=_0x555822['getTime'](),_0x2f2312=_0x2f8605['getTime']();if(_0x6bc141<_0x2f2312)return-0x1;else return _0x6bc141>_0x2f2312?0x1:0x0;}function getDaysBetween(_0x2f2fbb,_0x4fdfd8){const _0xed7b0e=a6_0xc5e223,_0x2e0e47=new Date(_0x2f2fbb),_0x28a364=new Date(_0x4fdfd8),_0x1a3935=Math[_0xed7b0e(0xd2)](_0x2e0e47['getTime']()-_0x28a364[_0xed7b0e(0xf1)]()),_0x313d23=Math[_0xed7b0e(0xe3)](_0x1a3935/(0x3e8*0x3c*0x3c*0x18));return _0x313d23+0x1;}function chineseNumeral(_0xb04f75){const _0x4a1f42=a6_0xc5e223,_0x1bab94=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x299ae3=['','拾','佰','仟'],_0x3ecb8b=['','万','亿','兆'];let _0x9fadec=Math[_0x4a1f42(0xe3)](_0xb04f75),_0x2ae4d7=Math['round']((_0xb04f75-_0x9fadec)*0x64),_0x1e86fc='';for(let _0x5e4709=0x0;_0x9fadec>0x0;_0x5e4709++){let _0x18f118='',_0xdf3fa4=_0x9fadec%0x2710;_0x9fadec=Math[_0x4a1f42(0xe3)](_0x9fadec/0x2710);for(let _0x1ce88a=0x0;_0xdf3fa4>0x0;_0x1ce88a++){let _0x2028ee=_0xdf3fa4%0xa;_0x18f118=(_0x2028ee?_0x1bab94[_0x2028ee]+_0x299ae3[_0x1ce88a]:'')+_0x18f118,_0xdf3fa4=Math[_0x4a1f42(0xe3)](_0xdf3fa4/0xa);}_0x1e86fc=_0x18f118+(_0x18f118?_0x3ecb8b[_0x5e4709]:_0x3ecb8b[_0x5e4709]&&!_0x1e86fc[_0x4a1f42(0xf7)]('零')?'零':'')+_0x1e86fc;}_0x1e86fc+=_0x1e86fc?'元':'零元';if(_0x2ae4d7>0x0){let _0x2515a3=Math['floor'](_0x2ae4d7/0xa),_0xff0d0e=_0x2ae4d7%0xa;_0x1e86fc+=(_0x2515a3?_0x1bab94[_0x2515a3]+'角':'')+(_0xff0d0e?_0x1bab94[_0xff0d0e]+'分':'');}else _0x1e86fc+='整';return _0x1e86fc[_0x4a1f42(0xc3)](/零{2,}/g,'零')[_0x4a1f42(0xc3)](/零元/,'元');}function getMonthDate(_0x312f99){const _0x5e0603=a6_0xc5e223;(!_0x312f99||_0x312f99[_0x5e0603(0x10b)]()==='')&&(_0x312f99=new Date()[_0x5e0603(0x109)]()+'-'+(new Date()['getMonth']()+0x1));let _0x4a53df=[],[_0x1518be,_0x156031]=_0x312f99[_0x5e0603(0xf2)]('-')[_0x5e0603(0xf5)](Number),_0x1686b5=new Date(_0x1518be,_0x156031,0x0),_0x3dcd01=_0x1686b5['getDate']();for(let _0x5626ce=0x1;_0x5626ce<=_0x3dcd01;_0x5626ce++){let _0x46ab6a=_0x5626ce<0xa?'0'+_0x5626ce:''+_0x5626ce,_0x59a2b1=_0x156031<0xa?'0'+_0x156031:''+_0x156031;_0x4a53df[_0x5e0603(0x10e)]({'date':_0x1518be+'-'+_0x59a2b1+'-'+_0x46ab6a,'disable':!![]});}return _0x4a53df;}function getToday(_0x32c140){const _0x580543=a6_0xc5e223;var _0xb77a5e=new Date(),_0x410dee=String(_0xb77a5e[_0x580543(0x103)]())[_0x580543(0xd5)](0x2,'0'),_0x55920c=String(_0xb77a5e[_0x580543(0xd7)]()+0x1)[_0x580543(0xd5)](0x2,'0'),_0x3fd8c1=_0xb77a5e[_0x580543(0x109)]();return _0xb77a5e=_0x3fd8c1+'-'+_0x55920c+'-'+_0x410dee,_0xb77a5e;}function resetObject(_0x21958c){const _0x4ac09e=a6_0xc5e223;let _0x2c6635=JSON[_0x4ac09e(0xfe)](JSON['stringify'](_0x21958c));for(const _0x3f33d1 in _0x2c6635){if(typeof _0x2c6635[_0x3f33d1]===_0x4ac09e(0x116))_0x2c6635[_0x3f33d1]=0x0;else{if(typeof _0x2c6635[_0x3f33d1]===_0x4ac09e(0xbb))_0x2c6635[_0x3f33d1]=![];else{if(Array['isArray'](_0x2c6635[_0x3f33d1]))_0x2c6635[_0x3f33d1]=[];else typeof _0x2c6635[_0x3f33d1]===_0x4ac09e(0x108)&&_0x2c6635[_0x3f33d1]!==null?resetObject(_0x2c6635[_0x3f33d1]):_0x2c6635[_0x3f33d1]='';}}}return _0x2c6635;}function preciseOperation(_0x2fa371,_0x3153bc,_0x3155d3,_0x4a7210=0xf4240){const _0x530c57=a6_0xc5e223;if(isNaN(_0x2fa371)||isNaN(_0x3153bc))return NaN;if(!isFinite(_0x2fa371)||!isFinite(_0x3153bc))return NaN;let _0x8b996f=BigInt(Math[_0x530c57(0xeb)](_0x2fa371*_0x4a7210)),_0x9fedae=BigInt(Math[_0x530c57(0xeb)](_0x3153bc*_0x4a7210)),_0x52e9d3;switch(_0x3155d3){case 0x1:_0x52e9d3=_0x8b996f+_0x9fedae;break;case 0x2:_0x52e9d3=_0x8b996f-_0x9fedae;break;case 0x3:_0x52e9d3=_0x8b996f*_0x9fedae;break;case 0x4:if(_0x9fedae===0x0n)throw new Error('除数不能为0');_0x52e9d3=_0x8b996f/_0x9fedae;break;default:throw new Error(_0x530c57(0x100));}return Number(_0x52e9d3)/_0x4a7210;}function preciseSum(_0xdcf59){const _0x52ae49=a6_0xc5e223;let _0x5651ec=0x0;for(const _0x18cd20 of _0xdcf59){let _0x25d3f3=0x0;if(typeof _0x18cd20===_0x52ae49(0xe7)){const _0x3656e9=parseFloat(_0x18cd20);!isNaN(_0x3656e9)&&(_0x25d3f3=_0x3656e9);}else typeof _0x18cd20===_0x52ae49(0x116)&&(_0x25d3f3=_0x18cd20);_0x5651ec=preciseOperation(_0x5651ec,_0x25d3f3,0x1);}return _0x5651ec;}function a6_0x723c(_0x5c518e,_0x10a3c9){const _0x369326=a6_0x3693();return a6_0x723c=function(_0x723c5e,_0x469fe8){_0x723c5e=_0x723c5e-0xb6;let _0x313a0c=_0x369326[_0x723c5e];return _0x313a0c;},a6_0x723c(_0x5c518e,_0x10a3c9);}function getRelativeDate(_0x2f0134,_0x1b7a1d=0x0){const _0x1d9c0d=a6_0xc5e223,_0x370128=new Date(_0x2f0134);_0x370128[_0x1d9c0d(0x110)](_0x370128[_0x1d9c0d(0x103)]()+_0x1b7a1d);const _0xc4a9=_0x370128[_0x1d9c0d(0x109)](),_0x48a5cb=(_0x370128['getMonth']()+0x1)[_0x1d9c0d(0x10d)]()[_0x1d9c0d(0xd5)](0x2,'0'),_0x169496=_0x370128[_0x1d9c0d(0x103)]()['toString']()[_0x1d9c0d(0xd5)](0x2,'0');return _0xc4a9+'-'+_0x48a5cb+'-'+_0x169496;}function validateFields(_0x1f8459,_0x5b4a5a,_0x3ec83b=''){for(let _0x1b9e87 of _0x5b4a5a){if(_0x1f8459[_0x1b9e87]===_0x3ec83b)return!![];}return![];}function mergeObjects(_0x150f82,_0x5b21f5){const _0x3b1fc1=a6_0xc5e223;for(const _0x21b8eb in _0x150f82){_0x5b21f5[_0x3b1fc1(0xc1)](_0x21b8eb)&&(_0x150f82[_0x21b8eb]=_0x5b21f5[_0x21b8eb]);}return _0x150f82;}const formatToDecimal=(_0x417c6f,_0xc436f9=0x2)=>{const _0x40b078=a6_0xc5e223;if(isNaN(_0xc436f9)||_0xc436f9<0x0)return _0x417c6f;let _0x2751ba=Number(_0x417c6f);if(!isFinite(_0x2751ba))return _0x417c6f;return _0xc436f9=Math[_0x40b078(0x115)](0x0,Math[_0x40b078(0xe3)](_0xc436f9)),_0x2751ba['toFixed'](_0xc436f9);};function findKeysEndingWith(_0x5765e5,_0x1b4581=a6_0xc5e223(0xc8)){const _0x3aefc8=a6_0xc5e223;let _0x4d74a5=[];for(var _0x64d420 in _0x5765e5){if(_0x5765e5['hasOwnProperty'](_0x64d420)){if(_0x64d420[_0x3aefc8(0xed)](_0x1b4581))_0x4d74a5[_0x3aefc8(0x10e)](_0x64d420);}}return _0x4d74a5;}function guid(_0xa83a26=0x20,_0x3c1851=!![],_0x40c6e0=null){const _0x58c61b=a6_0xc5e223,_0x65d156=_0x58c61b(0x10c)['split'](''),_0xb335ed=[];_0x40c6e0=_0x40c6e0||_0x65d156['length'];if(_0xa83a26){for(let _0x5ba04e=0x0;_0x5ba04e<_0xa83a26;_0x5ba04e++)_0xb335ed[_0x5ba04e]=_0x65d156[0x0|Math[_0x58c61b(0xff)]()*_0x40c6e0];}else{let _0x712d71;_0xb335ed[0x8]=_0xb335ed[0xd]=_0xb335ed[0x12]=_0xb335ed[0x17]='-',_0xb335ed[0xe]='4';for(let _0x575d95=0x0;_0x575d95<0x24;_0x575d95++){!_0xb335ed[_0x575d95]&&(_0x712d71=0x0|Math[_0x58c61b(0xff)]()*0x10,_0xb335ed[_0x575d95]=_0x65d156[_0x575d95==0x13?_0x712d71&0x3|0x8:_0x712d71]);}}if(_0x3c1851)return _0xb335ed[_0x58c61b(0xce)](),'u'+_0xb335ed[_0x58c61b(0xfc)]('');return _0xb335ed[_0x58c61b(0xfc)]('');}function trim(_0xc314a6,_0x242958=a6_0xc5e223(0xbd)){const _0xb1902a=a6_0xc5e223;_0xc314a6=String(_0xc314a6);if(_0x242958==_0xb1902a(0xbd))return _0xc314a6[_0xb1902a(0xc3)](/^\s+|\s+$/g,'');if(_0x242958==_0xb1902a(0xd3))return _0xc314a6['replace'](/^\s*/,'');if(_0x242958==_0xb1902a(0xee))return _0xc314a6[_0xb1902a(0xc3)](/(\s*$)/g,'');if(_0x242958==_0xb1902a(0xcf))return _0xc314a6[_0xb1902a(0xc3)](/\s+/g,'');return _0xc314a6;}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};
|