yunlin 1.0.44 → 1.0.45
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(_0x55b64c,_0x27fbb7){var _0x20179a=a0_0x5c24,_0x135345=_0x55b64c();while(!![]){try{var _0x3bfe5f=parseInt(_0x20179a(0x125))/0x1*(-parseInt(_0x20179a(0x124))/0x2)+-parseInt(_0x20179a(0x120))/0x3*(-parseInt(_0x20179a(0x122))/0x4)+parseInt(_0x20179a(0x128))/0x5*(-parseInt(_0x20179a(0x11e))/0x6)+-parseInt(_0x20179a(0x11f))/0x7+parseInt(_0x20179a(0x123))/0x8*(parseInt(_0x20179a(0x11d))/0x9)+-parseInt(_0x20179a(0x126))/0xa*(parseInt(_0x20179a(0x127))/0xb)+parseInt(_0x20179a(0x129))/0xc*(parseInt(_0x20179a(0x121))/0xd);if(_0x3bfe5f===_0x27fbb7)break;else _0x135345['push'](_0x135345['shift']());}catch(_0x2fd2d2){_0x135345['push'](_0x135345['shift']());}}}(a0_0x1edb,0x9ce9d));import a0_0x1724bb from'./utils';import a0_0x1236ff from'./price';import a0_0x1cf2d2 from'./test';import a0_0x653e2e from'./room';import a0_0x15c620 from'./roomOld';function a0_0x5c24(_0x43e1c6,_0x3f55b6){var _0x1edbad=a0_0x1edb();return a0_0x5c24=function(_0x5c2401,_0xacbcc7){_0x5c2401=_0x5c2401-0x11d;var _0x78dcbb=_0x1edbad[_0x5c2401];return _0x78dcbb;},a0_0x5c24(_0x43e1c6,_0x3f55b6);}import a0_0x46eb14 from'./system';export default{'test':a0_0x1cf2d2,'utils':a0_0x1724bb,'price':a0_0x1236ff,'room':a0_0x653e2e,'roomOld':a0_0x15c620,'system':a0_0x46eb14};function a0_0x1edb(){var _0x12c98a=['72qmZHXo','1262862Fanqgz','5894394nLyQhR','5553583JbkYgi','2834883AcoFiu','5878483HowRZr','4wjkGFp','8BEZDgc','130JKuDmk','19259ufRnTs','1281050YnJiYj','11neRtdF','5YgGAJh'];a0_0x1edb=function(){return _0x12c98a;};return a0_0x1edb();}
|
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(_0x32bad9,_0x51aa8f){const _0x50944e=a1_0x4f5d,_0x4f7754=_0x32bad9();while(!![]){try{const _0xd68d1c=parseInt(_0x50944e(0x1cc))/0x1+-parseInt(_0x50944e(0x1f0))/0x2+parseInt(_0x50944e(0x1e2))/0x3+parseInt(_0x50944e(0x1c6))/0x4*(parseInt(_0x50944e(0x1bb))/0x5)+-parseInt(_0x50944e(0x1b6))/0x6*(parseInt(_0x50944e(0x1b8))/0x7)+parseInt(_0x50944e(0x1c4))/0x8*(-parseInt(_0x50944e(0x1c7))/0x9)+-parseInt(_0x50944e(0x1ca))/0xa*(-parseInt(_0x50944e(0x1df))/0xb);if(_0xd68d1c===_0x51aa8f)break;else _0x4f7754['push'](_0x4f7754['shift']());}catch(_0x527822){_0x4f7754['push'](_0x4f7754['shift']());}}}(a1_0xd3c4,0x716bd));function handleCosting(_0x2ff378,_0x1ae8ef='',_0x597161={},_0x11f825,_0x260a81){const _0x425fab=a1_0x4f5d;let _0x2e8827=[];const _0x4cc1be='\x20*\x20',_0x47e55f={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x597161=typeof _0x597161===_0x425fab(0x1f1)&&!Array[_0x425fab(0x1d7)](_0x597161)&&_0x597161!==null?_0x597161:{};const _0x215365={..._0x47e55f,..._0x597161},_0x126069=Object[_0x425fab(0x1c0)](_0x47e55f);Object[_0x425fab(0x1c0)](_0x597161)['forEach'](_0x48afd8=>{const _0x2584c3=_0x425fab;!_0x126069[_0x2584c3(0x1c5)](_0x48afd8)&&console[_0x2584c3(0x1af)](_0x2584c3(0x1e1)+_0x48afd8);});let _0x411231=_0x215365['couponSign']||'-',_0xbbbc60=_0x215365['dp']||0x2;const _0x2dee95=(_0x3d42bb,_0x2d4d1e=_0xbbbc60)=>{const _0xbd43c=_0x425fab;if(typeof _0x3d42bb!=='number'&&isNaN(Number(_0x3d42bb)))return console[_0xbd43c(0x1a5)](_0xbd43c(0x1aa)+_0x3d42bb),_0x3d42bb;if(isNaN(_0x2d4d1e)||_0x2d4d1e<0x0)return _0x3d42bb;let _0x3855c4=Number(_0x3d42bb);if(!isFinite(_0x3855c4))return _0x3d42bb;return _0x2d4d1e=Math[_0xbd43c(0x1a6)](0x0,Math[_0xbd43c(0x1e0)](_0x2d4d1e)),_0x3855c4[_0xbd43c(0x1e7)](_0x2d4d1e);},_0x32b6ed=(_0x500dde,_0x2a083a)=>{const _0x1042cd=_0x425fab;if(_0x2a083a&&typeof _0x2a083a==='object'&&!Array[_0x1042cd(0x1d7)](_0x2a083a))for(const _0x465abd in _0x500dde){_0x500dde[_0x1042cd(0x1f2)](_0x465abd)&&_0x2a083a[_0x1042cd(0x1f2)](_0x465abd)&&(_0x500dde[_0x465abd]=_0x2a083a[_0x465abd]);}else console[_0x1042cd(0x1a5)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0x1042cd(0x1b2)](_0x2a083a,null,0x2)+'\x0a\x09\x09\x09正确参数:'+JSON[_0x1042cd(0x1b2)](_0x500dde,null,0x2))['trim']());return _0x500dde;};let _0x1e75ba={'people':_0x425fab(0x1e4),'service':_0x425fab(0x1b4),'trip':'附加行程','other':_0x425fab(0x1ab),'reduction':_0x425fab(0x1ad),'totalprice':'總計','airtax':'機場稅'},_0x11518e={'adult':'成人','child':'兒童','childusebed':_0x425fab(0x1bf),'infant':'嬰兒','half':'拼房','tip':'小費','elder':'遊客優惠','vip':'會員減免','promotion':'促銷','insure':_0x425fab(0x1c9),'coupon':_0x425fab(0x1ef),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'};_0x1e75ba=_0x32b6ed(_0x1e75ba,_0x11f825),_0x11518e=_0x32b6ed(_0x11518e,_0x260a81);const _0x57e909=_0x2ff378[_0x425fab(0x1d1)](_0x50f89a=>_0x50f89a[_0x425fab(0x1ac)]==_0x425fab(0x1cd));if(_0x57e909[_0x425fab(0x1b5)]){let _0x34f603={'title':_0x1e75ba[_0x425fab(0x1ce)],'type':_0x425fab(0x1cd),'list':[]};_0x57e909[_0x425fab(0x1ea)](_0x288445=>{const _0x3a8079=_0x425fab;_0x34f603[_0x3a8079(0x1a9)][_0x3a8079(0x1d2)]({'title':_0x11518e[_0x288445[_0x3a8079(0x1a8)]],'info':_0x1ae8ef+_0x2dee95(_0x288445[_0x3a8079(0x1cf)])+_0x4cc1be+_0x288445['nRs'],'nRs':_0x288445[_0x3a8079(0x1e5)],'unit':_0x288445[_0x3a8079(0x1cf)],'cb':_0x288445['fJcbzlsjUnit'],'type':_0x3a8079(0x1cd)});}),_0x2e8827['push'](_0x34f603);}const _0x278e44=_0x2ff378['filter'](_0x5b8388=>_0x5b8388[_0x425fab(0x1ac)]==_0x425fab(0x1ae));if(_0x278e44['length']){let _0x44a23a={'title':_0x1e75ba['service'],'type':_0x425fab(0x1ae),'list':[]};_0x278e44[_0x425fab(0x1ea)](_0x506673=>{const _0x413299=_0x425fab;_0x44a23a[_0x413299(0x1a9)][_0x413299(0x1d2)]({'title':_0x506673[_0x413299(0x1b0)]+('['+_0x506673[_0x413299(0x1c1)]+']'),'info':_0x1ae8ef+_0x2dee95(_0x506673[_0x413299(0x1a4)])+_0x4cc1be+_0x506673['num'],'nRs':_0x506673[_0x413299(0x1ed)],'unit':_0x506673[_0x413299(0x1a4)],'cb':_0x506673[_0x413299(0x1e9)],'type':_0x413299(0x1ae)});}),_0x2e8827['push'](_0x44a23a);}const _0x5dde3b=_0x2ff378[_0x425fab(0x1d1)](_0x18f635=>_0x18f635[_0x425fab(0x1ac)]==_0x425fab(0x1d9));if(_0x5dde3b[_0x425fab(0x1b5)]){let _0x3d8750={'title':_0x1e75ba[_0x425fab(0x1d9)],'type':_0x425fab(0x1d9),'list':[]};_0x5dde3b[_0x425fab(0x1ea)](_0x385c0c=>{const _0x236b8c=_0x425fab;_0x385c0c[_0x236b8c(0x1bc)]!='0'&&_0x3d8750[_0x236b8c(0x1a9)][_0x236b8c(0x1d2)]({'title':_0x385c0c[_0x236b8c(0x1b0)]+('['+_0x11518e[_0x236b8c(0x1b9)]+']'),'info':_0x1ae8ef+_0x2dee95(_0x385c0c[_0x236b8c(0x1d6)])+_0x4cc1be+_0x385c0c[_0x236b8c(0x1bc)],'nRs':_0x385c0c[_0x236b8c(0x1bc)],'unit':_0x385c0c[_0x236b8c(0x1d6)],'cb':_0x385c0c[_0x236b8c(0x1d8)],'type':_0x236b8c(0x1d9)}),_0x385c0c[_0x236b8c(0x1ec)]!='0'&&_0x3d8750['list'][_0x236b8c(0x1d2)]({'title':_0x385c0c[_0x236b8c(0x1b0)]+('['+_0x11518e[_0x236b8c(0x1c2)]+']'),'info':_0x1ae8ef+_0x2dee95(_0x385c0c[_0x236b8c(0x1d4)])+_0x4cc1be+_0x385c0c['childnum'],'nRs':_0x385c0c[_0x236b8c(0x1ec)],'unit':_0x385c0c[_0x236b8c(0x1d4)],'cb':_0x385c0c[_0x236b8c(0x1e8)],'type':'trip'});}),_0x2e8827['push'](_0x3d8750);}let _0x4c8565=[];const _0x5d323e=_0x2ff378[_0x425fab(0x1d1)](_0x595a72=>_0x595a72['strLx']==_0x425fab(0x1dd));_0x5d323e[_0x425fab(0x1b5)]&&_0x5d323e['map'](_0x357570=>{const _0x2f271f=_0x425fab,_0x44d7e6=_0x357570[_0x2f271f(0x1b0)][_0x2f271f(0x1c8)]('|')||[''];_0x4c8565['push']({'title':_0x11518e[_0x2f271f(0x1dd)]+('['+_0x44d7e6[0x0]+']'),'info':_0x1ae8ef+_0x411231+_0x2dee95(_0x357570[_0x2f271f(0x1eb)]),'unit':_0x357570['money'],'cb':_0x357570[_0x2f271f(0x1eb)],'type':_0x2f271f(0x1dd)});});const _0x147445=_0x2ff378[_0x425fab(0x1d1)](_0x889cc=>_0x889cc['strLx']==_0x425fab(0x1cb));_0x147445[_0x425fab(0x1b5)]&&_0x147445[_0x425fab(0x1ea)](_0x5e2f23=>{const _0x24360b=_0x425fab;_0x4c8565['push']({'title':_0x11518e[_0x24360b(0x1da)]+('['+_0x5e2f23[_0x24360b(0x1b0)]+']'),'info':_0x1ae8ef+_0x411231+_0x2dee95(_0x5e2f23[_0x24360b(0x1eb)]),'unit':_0x5e2f23['money'],'cb':_0x5e2f23[_0x24360b(0x1eb)],'type':_0x24360b(0x1da)});});const _0x11ac29=_0x2ff378[_0x425fab(0x1d1)](_0x4809a8=>_0x4809a8['strLx']=='promotion');_0x11ac29[_0x425fab(0x1b5)]&&_0x11ac29[_0x425fab(0x1ea)](_0x3923ff=>{const _0x553a9d=_0x425fab;_0x4c8565[_0x553a9d(0x1d2)]({'title':_0x11518e[_0x553a9d(0x1ee)],'info':_0x1ae8ef+_0x411231+_0x2dee95(_0x3923ff['money']),'unit':_0x3923ff[_0x553a9d(0x1eb)],'cb':_0x3923ff[_0x553a9d(0x1eb)],'type':_0x553a9d(0x1ee)});});_0x4c8565[_0x425fab(0x1b5)]&&_0x2e8827[_0x425fab(0x1d2)]({'title':_0x1e75ba[_0x425fab(0x1b3)],'type':'reduction','list':_0x4c8565});const _0x5baf97=_0x2ff378[_0x425fab(0x1d1)](_0x502e63=>_0x502e63[_0x425fab(0x1ac)]==_0x425fab(0x1db));if(_0x5baf97['length']){let _0xb46733={'title':_0x1e75ba[_0x425fab(0x1db)],'type':_0x425fab(0x1db),'list':[]};_0x5baf97[_0x425fab(0x1ea)](_0x7c41f5=>{const _0x220ced=_0x425fab;_0xb46733[_0x220ced(0x1a9)][_0x220ced(0x1d2)]({'title':_0x11518e[_0x7c41f5[_0x220ced(0x1d0)]],'info':_0x1ae8ef+_0x2dee95(_0x7c41f5[_0x220ced(0x1a4)])+_0x4cc1be+_0x7c41f5['sl'],'nRs':_0x7c41f5['sl'],'unit':_0x7c41f5[_0x220ced(0x1a4)],'cb':_0x7c41f5[_0x220ced(0x1de)],'type':_0x7c41f5['rylx']});}),_0x2e8827[_0x425fab(0x1d2)](_0xb46733);}const _0x52cf24=[_0x425fab(0x1cd),_0x425fab(0x1ae),_0x425fab(0x1d9),'elder','vipdiscounted',_0x425fab(0x1ee),_0x425fab(0x1db)],_0x268924=_0x2ff378['filter'](_0x31a8a2=>!_0x52cf24['includes'](_0x31a8a2[_0x425fab(0x1ac)]));let _0x5a62fc={'title':_0x1e75ba[_0x425fab(0x1e6)],'type':'other','list':[]};for(var _0x2f5d61=0x0;_0x2f5d61<_0x268924['length'];_0x2f5d61++){const _0x5718e1=_0x268924[_0x2f5d61];_0x5718e1[_0x425fab(0x1ac)]==_0x425fab(0x1b7)&&_0x5a62fc[_0x425fab(0x1a9)][_0x425fab(0x1d2)]({'title':_0x11518e['viprecharge']+('['+_0x5718e1[_0x425fab(0x1b0)]+']'),'info':_0x1ae8ef+_0x2dee95(_0x5718e1[_0x425fab(0x1eb)]),'unit':_0x5718e1[_0x425fab(0x1eb)],'type':_0x5718e1[_0x425fab(0x1ac)]}),_0x5718e1[_0x425fab(0x1ac)]==_0x425fab(0x1d3)&&_0x5a62fc[_0x425fab(0x1a9)][_0x425fab(0x1d2)]({'title':_0x11518e['insure']+('['+_0x5718e1[_0x425fab(0x1b0)]+']'),'info':_0x1ae8ef+_0x2dee95(_0x5718e1[_0x425fab(0x1be)])+_0x4cc1be+_0x5718e1['users']+_0x11518e['r'],'nRs':_0x5718e1['users'],'unit':_0x5718e1['unit'],'cb':_0x5718e1[_0x425fab(0x1be)],'type':_0x425fab(0x1d3)}),(_0x5718e1[_0x425fab(0x1ac)]==_0x425fab(0x1d5)||_0x5718e1[_0x425fab(0x1ac)]=='point')&&_0x5a62fc['list'][_0x425fab(0x1d2)]({'title':_0x5718e1[_0x425fab(0x1bd)]||_0x11518e[_0x5718e1[_0x425fab(0x1ac)]],'info':_0x1ae8ef+_0x411231+_0x2dee95(_0x5718e1['money']),'unit':_0x5718e1[_0x425fab(0x1eb)],'type':_0x5718e1[_0x425fab(0x1ac)]}),_0x5718e1['strLx']==_0x425fab(0x1dc)&&_0x215365[_0x425fab(0x1b1)]&&_0x5a62fc[_0x425fab(0x1a9)][_0x425fab(0x1d2)]({'title':_0x11518e[_0x5718e1[_0x425fab(0x1ac)]],'info':_0x1ae8ef+_0x2dee95(_0x5718e1['tip'])+_0x4cc1be+_0x5718e1[_0x425fab(0x1ba)]+_0x11518e['r']+_0x4cc1be+_0x5718e1['tipday']+_0x11518e['t'],'nRs':_0x5718e1[_0x425fab(0x1ba)],'count':_0x5718e1['tipday'],'unit':_0x5718e1[_0x425fab(0x1dc)],'type':_0x5718e1['strLx']}),_0x5718e1[_0x425fab(0x1ac)]==_0x425fab(0x1a7)&&_0x5a62fc[_0x425fab(0x1a9)]['push']({'title':_0x11518e[_0x5718e1[_0x425fab(0x1ac)]],'info':_0x1ae8ef+_0x2dee95(_0x5718e1['totaltax']),'unit':_0x5718e1[_0x425fab(0x1e3)],'type':_0x5718e1['strLx']});}_0x5a62fc[_0x425fab(0x1a9)][_0x425fab(0x1b5)]&&_0x2e8827[_0x425fab(0x1d2)](_0x5a62fc);const _0x56cb4e=_0x2ff378['filter'](_0x25a728=>_0x25a728[_0x425fab(0x1ac)]==_0x425fab(0x1c3));return _0x56cb4e[_0x425fab(0x1b5)]&&_0x2e8827[_0x425fab(0x1d2)]({'title':_0x1e75ba[_0x425fab(0x1c3)],'type':_0x425fab(0x1c3),'list':[{'title':_0x1e75ba[_0x425fab(0x1c3)],'info':_0x1ae8ef+_0x2dee95(_0x56cb4e[0x0]['price'])}]}),_0x2e8827;}function a1_0x4f5d(_0x2745bd,_0x28f2bf){const _0xd3c4dd=a1_0xd3c4();return a1_0x4f5d=function(_0x4f5d36,_0x4b1560){_0x4f5d36=_0x4f5d36-0x1a4;let _0x4a2cf6=_0xd3c4dd[_0x4f5d36];return _0x4a2cf6;},a1_0x4f5d(_0x2745bd,_0x28f2bf);}function a1_0xd3c4(){const _0x5128cd=['includes','680308MefatG','45FOhqjs','split','保險費用','1900870LynvCS','vipdiscounted','827172QhnmNx','base','people','fLsjUnit','rylx','filter','push','insure','childprice','coupon','adultprice','isArray','baseadultprice','trip','vip','airtax','tip','elder','unitpricewb','11qliBjC','floor','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','2468457UvfjSQ','totaltax','人員費用','nRs','other','toFixed','basechildprice','baseprice','map','money','childnum','num','promotion','優惠券','666690RWCZKp','object','hasOwnProperty','unitprice','error','max','tax','strJgbm','list','ftd\x20函数接收到无效的数字输入:\x20','其他費用','strLx','減免費用','service','warn','name','isShowTip','stringify','reduction','附加服務','length','6iIplLj','viprecharge','3447514XOnySk','adult','tipuser','5XFDEGE','adultnum','couponmc','unit','兒童[占床]','keys','itemname','child','totalprice','1151576AtiWCl'];a1_0xd3c4=function(){return _0x5128cd;};return a1_0xd3c4();}export default{'handleCosting':handleCosting};
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x521ceb,_0x53754d){const _0x41a56b=a2_0x12ab,_0x43c3e1=_0x521ceb();while(!![]){try{const _0xd702d9=-parseInt(_0x41a56b(0x15c))/0x1+-parseInt(_0x41a56b(0x169))/0x2+-parseInt(_0x41a56b(0x163))/0x3*(-parseInt(_0x41a56b(0x162))/0x4)+parseInt(_0x41a56b(0x171))/0x5+parseInt(_0x41a56b(0x16b))/0x6*(parseInt(_0x41a56b(0x164))/0x7)+-parseInt(_0x41a56b(0x16c))/0x8+parseInt(_0x41a56b(0x15e))/0x9;if(_0xd702d9===_0x53754d)break;else _0x43c3e1['push'](_0x43c3e1['shift']());}catch(_0x17088a){_0x43c3e1['push'](_0x43c3e1['shift']());}}}(a2_0x7829,0x30f81));function getRoomCount(_0x2b418c,_0x592ebd){const _0x1441d3=a2_0x12ab,_0x43a68=Array['isArray'](_0x2b418c);if(!_0x43a68)_0x2b418c=[_0x2b418c];let _0x1e0f46=[];return _0x2b418c[_0x1441d3(0x167)](_0x4bb9ad=>{const _0x427000=_0x1441d3;let _0x12a932=![];if(!_0x4bb9ad['isalotment']){let _0x349a85=_0x4bb9ad[_0x427000(0x173)];if(_0x4bb9ad[_0x427000(0x16e)]||!_0x592ebd[_0x427000(0x16a)])_0x349a85+=_0x4bb9ad['childrenNum'];const _0x428737=_0x592ebd['list'][_0x427000(0x168)](_0x11b86a=>Number(_0x11b86a[_0x427000(0x15f)])===_0x349a85);if(!_0x428737)_0x12a932=!![];else{let _0x37d0cb=_0x4bb9ad[_0x427000(0x173)]+_0x4bb9ad[_0x427000(0x165)]+_0x4bb9ad[_0x427000(0x172)];_0x37d0cb>_0x428737[_0x427000(0x160)]&&(_0x12a932=!![]);}}_0x1e0f46[_0x427000(0x16d)](_0x12a932);}),_0x43a68?_0x1e0f46:_0x1e0f46[0x0];}function getRoomConfig(_0xdef6ef){const _0x4f1bf5=a2_0x12ab;let _0x520d8e=_0xdef6ef[_0x4f1bf5(0x170)](_0x3e7d88=>_0x3e7d88[_0x4f1bf5(0x15f)]==='childUseBed'),_0x19e2e3=_0xdef6ef[_0x4f1bf5(0x170)](_0x241590=>_0x241590[_0x4f1bf5(0x15f)]===_0x4f1bf5(0x16f));const _0x145640=_0xdef6ef[_0x4f1bf5(0x170)](_0x2d9a92=>_0x2d9a92[_0x4f1bf5(0x15f)]===_0x4f1bf5(0x15d)),_0x416c0a=_0xdef6ef[_0x4f1bf5(0x170)](_0x2b35d9=>_0x2b35d9[_0x4f1bf5(0x15f)]===_0x4f1bf5(0x16a)),_0x103363=_0xdef6ef[_0x4f1bf5(0x15b)](_0x8d9861=>{const _0x1513f4=_0x4f1bf5;return{'strCode':_0x8d9861['strCode'],'nMaxIn':_0x8d9861[_0x1513f4(0x160)]};});if(_0x19e2e3){const _0x2caf19=_0xdef6ef[_0x4f1bf5(0x170)](_0x4b6295=>_0x4b6295[_0x4f1bf5(0x15f)]=='2');_0x19e2e3=_0x19e2e3&&_0x2caf19;}if(_0x520d8e)_0x520d8e=_0x520d8e&&_0x416c0a;return{'childUseBed':_0x520d8e,'isAlotment':_0x19e2e3,'infant':_0x145640,'child':_0x416c0a,'list':_0x103363};}function isRoomPiece(_0x14854f,_0x3f7cd8){const _0x545ea4=a2_0x12ab;return _0x3f7cd8&&_0x14854f[_0x545ea4(0x173)]===0x1&&_0x14854f[_0x545ea4(0x165)]===0x0&&_0x14854f[_0x545ea4(0x172)]===0x0;}function a2_0x12ab(_0x2cbb46,_0x59d795){const _0x782972=a2_0x7829();return a2_0x12ab=function(_0x12abc0,_0x22ba58){_0x12abc0=_0x12abc0-0x15b;let _0x1bee51=_0x782972[_0x12abc0];return _0x1bee51;},a2_0x12ab(_0x2cbb46,_0x59d795);}function getRoomItemRange(_0x22d851,_0x13f2bd,_0x118665={'child':'儿童','infant':'婴儿'}){const _0x819902=a2_0x12ab;if(!_0x13f2bd['length'])return{'childList':[],'infantList':[]};const _0x21ec38=Math['max'](..._0x13f2bd[_0x819902(0x15b)](_0x583d9b=>Number(_0x583d9b[_0x819902(0x160)]))),_0x29c3a2=_0x21ec38-_0x22d851['adultNum']-_0x22d851[_0x819902(0x172)];let _0x11d9a9=_0x21ec38-_0x22d851[_0x819902(0x173)]-_0x22d851[_0x819902(0x165)];if(_0x11d9a9>0x2)_0x11d9a9=0x2;const _0x5d009f=(_0x37505e,_0x14d728)=>{const _0x341ed9=_0x819902,_0x59e34f=[];_0x59e34f[_0x341ed9(0x16d)]({'value':0x0,'label':'0\x20'+_0x14d728});for(let _0x5229e8=0x0;_0x5229e8<_0x37505e;_0x5229e8++){_0x59e34f['push']({'value':_0x5229e8+0x1,'label':''+(_0x5229e8+0x1)+_0x14d728});}return _0x59e34f;};return{'childList':_0x5d009f(_0x29c3a2,_0x118665['child']),'infantList':_0x5d009f(_0x11d9a9,_0x118665[_0x819902(0x15d)])};}function getAdultRange(_0x1d143d,_0x1a1586='成人'){const _0x30e290=a2_0x12ab;let _0x521f9d=Math['max'](..._0x1d143d[_0x30e290(0x15b)](_0x5668c3=>Number(_0x5668c3[_0x30e290(0x15f)]))[_0x30e290(0x166)](_0x1847a3=>!isNaN(_0x1847a3)));if(!_0x521f9d)_0x521f9d=0x4;let _0x581159=[];for(var _0xeaecff=0x1;_0xeaecff<_0x521f9d+0x1;_0xeaecff++){_0x581159['push']({'value':_0xeaecff,'label':''+_0xeaecff+_0x1a1586});}return _0x581159;}const getTotalPeople=_0x514f35=>{const _0x1922fe=a2_0x12ab,_0x5e6674=_0x514f35[_0x1922fe(0x161)]((_0x22a660,_0xed8e98)=>{const _0x4e1551=_0x1922fe;return _0x22a660+(_0xed8e98[_0x4e1551(0x173)]||0x0)+(_0xed8e98['childrenNum']||0x0)+(_0xed8e98[_0x4e1551(0x172)]||0x0);},0x0);return _0x5e6674;},getRoomType=(_0x13b81b,_0x56b5c9)=>{if(_0x13b81b==='type'||_0x56b5c9===0x1||_0x56b5c9==='1')return![];return!![];};function a2_0x7829(){const _0x3613ef=['child','6QaQFJH','2826784MRnwqP','push','childUseBed','isAlotment','some','547755Clvbnp','infantNum','adultNum','map','6520kWrcnD','infant','6598989tVRMRX','strCode','nMaxIn','reduce','10372snkcKf','12iurczQ','755846XfyYTz','childrenNum','filter','forEach','find','801354XYzcUk'];a2_0x7829=function(){return _0x3613ef;};return a2_0x7829();}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(_0x1f86a7,_0x1cfb8f){const _0x40db61=a3_0x2f02,_0x53d2bf=_0x1f86a7();while(!![]){try{const _0x632dc5=-parseInt(_0x40db61(0x1cf))/0x1+-parseInt(_0x40db61(0x1ce))/0x2*(-parseInt(_0x40db61(0x1cc))/0x3)+-parseInt(_0x40db61(0x1c5))/0x4*(-parseInt(_0x40db61(0x1dd))/0x5)+-parseInt(_0x40db61(0x1c7))/0x6*(parseInt(_0x40db61(0x1c8))/0x7)+parseInt(_0x40db61(0x1c6))/0x8*(parseInt(_0x40db61(0x1d5))/0x9)+parseInt(_0x40db61(0x1d2))/0xa+-parseInt(_0x40db61(0x1d4))/0xb;if(_0x632dc5===_0x1cfb8f)break;else _0x53d2bf['push'](_0x53d2bf['shift']());}catch(_0x18937e){_0x53d2bf['push'](_0x53d2bf['shift']());}}}(a3_0x37fb,0x4270d));function getRoomCount(_0x13b1e3,_0x2b0dad){const _0x3ffd0d=a3_0x2f02,_0x180336=Array[_0x3ffd0d(0x1c4)](_0x13b1e3);if(!_0x180336)_0x13b1e3=[_0x13b1e3];let _0x57f3ee=[];return _0x13b1e3[_0x3ffd0d(0x1c9)](_0x2cc2b7=>{const _0x402a45=_0x3ffd0d;let _0x1069e0=![];if(!_0x2cc2b7['isalotment']){let _0x4558e5=_0x2cc2b7[_0x402a45(0x1d7)];if(_0x2cc2b7['childusebed']||!_0x2b0dad['child'])_0x4558e5+=_0x2cc2b7[_0x402a45(0x1d6)];const _0x12d032=_0x2b0dad['list'][_0x402a45(0x1ca)](_0x32b0d7=>Number(_0x32b0d7[_0x402a45(0x1d1)])===_0x4558e5);if(!_0x12d032)_0x1069e0=!![];else{let _0x4e6ee7=_0x2cc2b7[_0x402a45(0x1d7)]+_0x2cc2b7[_0x402a45(0x1d6)]+_0x2cc2b7[_0x402a45(0x1da)];_0x4e6ee7>_0x12d032['nMaxIn']&&(_0x1069e0=!![]);}}_0x57f3ee[_0x402a45(0x1d0)](_0x1069e0);}),_0x180336?_0x57f3ee:_0x57f3ee[0x0];}function getRoomConfig(_0x16d3b5){const _0x34ea73=a3_0x2f02;let _0x27dea1=_0x16d3b5[_0x34ea73(0x1cb)](_0x4a37b5=>_0x4a37b5[_0x34ea73(0x1d1)]===_0x34ea73(0x1cd)),_0x4e286a=_0x16d3b5[_0x34ea73(0x1cb)](_0x54dd47=>_0x54dd47[_0x34ea73(0x1d1)]===_0x34ea73(0x1c3));const _0x213403=_0x16d3b5[_0x34ea73(0x1cb)](_0x2ce92c=>_0x2ce92c[_0x34ea73(0x1d1)]===_0x34ea73(0x1c1)),_0x198553=_0x16d3b5['some'](_0x5b528c=>_0x5b528c[_0x34ea73(0x1d1)]===_0x34ea73(0x1db)),_0x31bc42=_0x16d3b5[_0x34ea73(0x1dc)](_0x119bb7=>{const _0x3f2831=_0x34ea73;return{'strCode':_0x119bb7[_0x3f2831(0x1d1)],'nMaxIn':_0x119bb7[_0x3f2831(0x1d9)]};});if(_0x4e286a){const _0x420e61=_0x16d3b5[_0x34ea73(0x1cb)](_0x5c7f56=>_0x5c7f56[_0x34ea73(0x1d1)]=='2');_0x4e286a=_0x4e286a&&_0x420e61;}if(_0x27dea1)_0x27dea1=_0x27dea1&&_0x198553;return{'childusebed':_0x27dea1,'half':_0x4e286a,'infant':_0x213403,'child':_0x198553,'list':_0x31bc42};}function isRoomPiece(_0x2343b4,_0xf4f5f6){const _0x369bf5=a3_0x2f02;return _0xf4f5f6&&_0x2343b4['adultnum']===0x1&&_0x2343b4[_0x369bf5(0x1d6)]===0x0&&_0x2343b4['infantnum']===0x0;}function getRoomItemRange(_0x402afa,_0x4573ed,_0x59887b={'child':'儿童','infant':'婴儿'}){const _0x2a614d=a3_0x2f02;if(!_0x4573ed['length'])return{'childList':[],'infantList':[]};const _0x389034=Math[_0x2a614d(0x1d8)](..._0x4573ed['map'](_0x3d7e91=>Number(_0x3d7e91[_0x2a614d(0x1d9)]))),_0x5586fd=_0x389034-_0x402afa[_0x2a614d(0x1d7)]-_0x402afa[_0x2a614d(0x1da)];let _0xfbe866=_0x389034-_0x402afa[_0x2a614d(0x1d7)]-_0x402afa[_0x2a614d(0x1d6)];if(_0xfbe866>0x2)_0xfbe866=0x2;const _0x32b89b=(_0x57d875,_0x1a1499)=>{const _0x47f1f6=_0x2a614d,_0x80f0f9=[];_0x80f0f9[_0x47f1f6(0x1d0)]({'value':0x0,'label':'0\x20'+_0x1a1499});for(let _0x5c75a5=0x0;_0x5c75a5<_0x57d875;_0x5c75a5++){_0x80f0f9[_0x47f1f6(0x1d0)]({'value':_0x5c75a5+0x1,'label':''+(_0x5c75a5+0x1)+_0x1a1499});}return _0x80f0f9;};return{'childList':_0x32b89b(_0x5586fd,_0x59887b[_0x2a614d(0x1db)]),'infantList':_0x32b89b(_0xfbe866,_0x59887b['infant'])};}function getAdultRange(_0x38dae4,_0x2f7bd5='成人'){const _0x21b525=a3_0x2f02;let _0x39b015=Math[_0x21b525(0x1d8)](..._0x38dae4[_0x21b525(0x1dc)](_0x50e7ca=>Number(_0x50e7ca[_0x21b525(0x1d1)]))[_0x21b525(0x1d3)](_0x97a192=>!isNaN(_0x97a192)));if(!_0x39b015)_0x39b015=0x4;let _0x2ed5d3=[];for(var _0x2691bb=0x1;_0x2691bb<_0x39b015+0x1;_0x2691bb++){_0x2ed5d3[_0x21b525(0x1d0)]({'value':_0x2691bb,'label':''+_0x2691bb+_0x2f7bd5});}return _0x2ed5d3;}const getTotalPeople=_0x284b80=>{const _0x547b99=a3_0x2f02,_0x558ab5=_0x284b80[_0x547b99(0x1c2)]((_0x3f9241,_0x42c56c)=>{const _0x3ef34b=_0x547b99;return _0x3f9241+(_0x42c56c[_0x3ef34b(0x1d7)]||0x0)+(_0x42c56c[_0x3ef34b(0x1d6)]||0x0)+(_0x42c56c['infantnum']||0x0);},0x0);return _0x558ab5;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};function a3_0x2f02(_0x33d40a,_0x23b062){const _0x37fb89=a3_0x37fb();return a3_0x2f02=function(_0x2f02f7,_0x2cd67a){_0x2f02f7=_0x2f02f7-0x1c1;let _0x4a9f2d=_0x37fb89[_0x2f02f7];return _0x4a9f2d;},a3_0x2f02(_0x33d40a,_0x23b062);}function a3_0x37fb(){const _0x3e8dc1=['460CtvImB','95032xOpjPD','42QFqOQW','195629Leuhck','forEach','find','some','223620wqlbVp','childusebed','2RDVPtt','150545QuFmmE','push','strCode','4737750IfItFJ','filter','8878078IPEojL','333jmhyPI','childrennum','adultnum','max','nMaxIn','infantnum','child','map','19025LerdXW','infant','reduce','half','isArray'];a3_0x37fb=function(){return _0x3e8dc1;};return a3_0x37fb();}
|
package/dist/system.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a4_0x5e68(_0x3ad565,_0x342882){const _0x2c3fe6=a4_0x2c3f();return a4_0x5e68=function(_0x5e6879,_0x3cf78f){_0x5e6879=_0x5e6879-0x142;let _0x410a5d=_0x2c3fe6[_0x5e6879];return _0x410a5d;},a4_0x5e68(_0x3ad565,_0x342882);}function a4_0x2c3f(){const _0x56a455=['name','filter','strxm','join','strmz','365410zdPZTZ','2801530dqdeVp','18tifGPR','strlxfs','firstName','lastName','16lFvDQx','strlxdh','strlastname','4tMjZKf','1082627tyEZZJ','idNumber','strxs','2282109ecChwE','strggtxz','432577bSjtIJ','strfirstname','1992IvxnjB','strhxz','phone','10014312itBXQm','33DaTmkJ','7002mClYWe','strzjhm'];a4_0x2c3f=function(){return _0x56a455;};return a4_0x2c3f();}const a4_0x4ea1c0=a4_0x5e68;(function(_0x143a8f,_0x508130){const _0x207b3c=a4_0x5e68,_0x275e36=_0x143a8f();while(!![]){try{const _0x2bc5ab=parseInt(_0x207b3c(0x152))/0x1*(-parseInt(_0x207b3c(0x14c))/0x2)+parseInt(_0x207b3c(0x150))/0x3+-parseInt(_0x207b3c(0x149))/0x4*(-parseInt(_0x207b3c(0x143))/0x5)+-parseInt(_0x207b3c(0x145))/0x6*(-parseInt(_0x207b3c(0x14d))/0x7)+-parseInt(_0x207b3c(0x154))/0x8*(parseInt(_0x207b3c(0x159))/0x9)+-parseInt(_0x207b3c(0x144))/0xa*(-parseInt(_0x207b3c(0x158))/0xb)+-parseInt(_0x207b3c(0x157))/0xc;if(_0x2bc5ab===_0x508130)break;else _0x275e36['push'](_0x275e36['shift']());}catch(_0x42d0f7){_0x275e36['push'](_0x275e36['shift']());}}}(a4_0x2c3f,0x714c7));function getDocInfo(_0x514d84,_0x2c96f1=a4_0x4ea1c0(0x14e),_0x3435f3=![]){const _0x1592c3=a4_0x4ea1c0;let _0xe3a928=_0x3435f3?'\x20':'';if(_0x2c96f1==='idNumber')return _0x514d84['strsfzh']||_0x514d84['strhzbh']||_0x514d84[_0x1592c3(0x155)]||_0x514d84[_0x1592c3(0x151)]||_0x514d84[_0x1592c3(0x15a)]||'';if(_0x2c96f1===_0x1592c3(0x15b)){if(_0x514d84[_0x1592c3(0x15d)])return _0x514d84[_0x1592c3(0x15d)];const _0x20ec61=_0x514d84[_0x1592c3(0x153)]||_0x514d84[_0x1592c3(0x147)]||_0x514d84[_0x1592c3(0x14f)]||'',_0x177f63=_0x514d84[_0x1592c3(0x14b)]||_0x514d84[_0x1592c3(0x148)]||_0x514d84[_0x1592c3(0x142)]||'';return[_0x20ec61,_0x177f63][_0x1592c3(0x15c)](Boolean)[_0x1592c3(0x15e)](_0xe3a928)['trim']()||'';}if(_0x2c96f1===_0x1592c3(0x156))return _0x514d84[_0x1592c3(0x14a)]||_0x514d84[_0x1592c3(0x146)]||_0x514d84['strdhhm']||'';return'';}export default{'getDocInfo':getDocInfo};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x293e22,_0x55830b){const _0x577006=a5_0x4331,_0x1cdb5e=_0x293e22();while(!![]){try{const _0x2c75b8=parseInt(_0x577006(0x199))/0x1+-parseInt(_0x577006(0x197))/0x2*(parseInt(_0x577006(0x19f))/0x3)+-parseInt(_0x577006(0x19c))/0x4+parseInt(_0x577006(0x186))/0x5+-parseInt(_0x577006(0x19a))/0x6+-parseInt(_0x577006(0x18c))/0x7+parseInt(_0x577006(0x198))/0x8*(parseInt(_0x577006(0x182))/0x9);if(_0x2c75b8===_0x55830b)break;else _0x1cdb5e['push'](_0x1cdb5e['shift']());}catch(_0x36e64b){_0x1cdb5e['push'](_0x1cdb5e['shift']());}}}(a5_0x5994,0x79ba5));function email(_0x206bb0){const _0x554c45=a5_0x4331;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x554c45(0x193)](_0x206bb0);}function mobile(_0x156088){const _0x500ff6=a5_0x4331;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x500ff6(0x193)](_0x156088);}function isValidPhoneNumber(_0x55a766){const _0x446170=a5_0x4331;if(_0x55a766[_0x446170(0x195)]('-')){const [_0x298658,_0x55b66b]=_0x55a766[_0x446170(0x184)]('-');if(_0x298658==='86')return/^\d{11}$/[_0x446170(0x193)](_0x55b66b)&&_0x55b66b[_0x446170(0x194)]('1');else return _0x298658===_0x446170(0x19e)?/^\d{8}$/[_0x446170(0x193)](_0x55b66b)&&['5','6','9','8'][_0x446170(0x195)](_0x55b66b[_0x446170(0x192)](0x0)):/^\d+$/['test'](_0x55b66b);}else return/^\d+$/[_0x446170(0x193)](_0x55a766);}function url(_0x525323){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'](_0x525323);}function date(_0x37a685){const _0x5f0cfe=a5_0x4331;if(!_0x37a685)return![];if(number(_0x37a685))_0x37a685=+_0x37a685;return!/Invalid|NaN/[_0x5f0cfe(0x193)](new Date(_0x37a685)[_0x5f0cfe(0x19d)]());}function dateISO(_0x546c33){const _0x2853bf=a5_0x4331;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x2853bf(0x193)](_0x546c33);}function isNumber(_0x5c5a05){const _0x3c6151=a5_0x4331;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x3c6151(0x193)](_0x5c5a05);}function a5_0x5994(){const _0x5e200b=['includes','boolean','4zUUzKN','1088VgNojt','206400vxKbZP','771258rRrjHP','string','1156828nOvXwh','toString','852','1046649mmPicM','62109uJakrS','function','split','isArray','3479965dAhuSH','call','prototype','object','^\x5cd{','number','1587712ODNdfe','[object\x20Array]','parse','length','then','[object\x20Object]','charAt','test','startsWith'];a5_0x5994=function(){return _0x5e200b;};return a5_0x5994();}function isString(_0x1efdf3){const _0x544903=a5_0x4331;return typeof _0x1efdf3===_0x544903(0x19b);}function a5_0x4331(_0xdc37e4,_0x47b997){const _0x59942b=a5_0x5994();return a5_0x4331=function(_0x43318c,_0x4a0fa9){_0x43318c=_0x43318c-0x182;let _0x21962e=_0x59942b[_0x43318c];return _0x21962e;},a5_0x4331(_0xdc37e4,_0x47b997);}function digits(_0x29c8f2){const _0x4dffa3=a5_0x4331;return/^\d+$/[_0x4dffa3(0x193)](_0x29c8f2);}function idCard(_0x16f39b){const _0x8650cb=a5_0x4331,_0xdfb35c=/^[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)$/,_0x7d99f3=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0xdfb35c[_0x8650cb(0x193)](_0x16f39b)||_0x7d99f3['test'](_0x16f39b);}function carNo(_0x54b6ca){const _0x120d02=a5_0x4331,_0x1ff562=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x501666=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x54b6ca[_0x120d02(0x18f)]===0x7)return _0x501666[_0x120d02(0x193)](_0x54b6ca);if(_0x54b6ca['length']===0x8)return _0x1ff562[_0x120d02(0x193)](_0x54b6ca);return![];}function amount(_0xf005d8){const _0x573117=a5_0x4331;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x573117(0x193)](_0xf005d8);}function chinese(_0x7c20e2){const _0x383eca=a5_0x4331,_0x38d6fd=/^[\u4e00-\u9fa5]+$/gi;return _0x38d6fd[_0x383eca(0x193)](_0x7c20e2);}function letter(_0x183a78){const _0xaca55f=a5_0x4331;return/^[a-zA-Z]*$/[_0xaca55f(0x193)](_0x183a78);}function enOrNum(_0x567db9){const _0x13e89c=a5_0x4331,_0x577039=/^[0-9a-zA-Z]*$/g;return _0x577039[_0x13e89c(0x193)](_0x567db9);}function contains(_0x227927,_0x42bfa8){return _0x227927['indexOf'](_0x42bfa8)>=0x0;}function range(_0x45e6ac,_0x564437){return _0x45e6ac>=_0x564437[0x0]&&_0x45e6ac<=_0x564437[0x1];}function rangeLength(_0x5b4f4b,_0x3acce7){const _0x472c4f=a5_0x4331;return _0x5b4f4b[_0x472c4f(0x18f)]>=_0x3acce7[0x0]&&_0x5b4f4b['length']<=_0x3acce7[0x1];}function landline(_0x66f7cb){const _0x1f4f75=a5_0x4331,_0x4cf684=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4cf684[_0x1f4f75(0x193)](_0x66f7cb);}function empty(_0x32ba8b){const _0x3a2c14=a5_0x4331;switch(typeof _0x32ba8b){case'undefined':return!![];case _0x3a2c14(0x19b):if(_0x32ba8b['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x3a2c14(0x18f)]==0x0)return!![];break;case _0x3a2c14(0x196):if(!_0x32ba8b)return!![];break;case _0x3a2c14(0x18b):if(_0x32ba8b===0x0||isNaN(_0x32ba8b))return!![];break;case _0x3a2c14(0x189):if(_0x32ba8b===null||_0x32ba8b[_0x3a2c14(0x18f)]===0x0)return!![];for(const _0x70f410 in _0x32ba8b){return![];}return!![];}return![];}function jsonString(_0x504371){const _0x3c9833=a5_0x4331;if(typeof _0x504371===_0x3c9833(0x19b))try{const _0x4bb1f6=JSON[_0x3c9833(0x18e)](_0x504371);if(typeof _0x4bb1f6===_0x3c9833(0x189)&&_0x4bb1f6)return!![];return![];}catch(_0x3b0d74){return![];}return![];}function array(_0x1534b3){const _0xaf7778=a5_0x4331;if(typeof Array[_0xaf7778(0x185)]==='function')return Array[_0xaf7778(0x185)](_0x1534b3);return Object['prototype'][_0xaf7778(0x19d)][_0xaf7778(0x187)](_0x1534b3)===_0xaf7778(0x18d);}function object(_0x14cc4a){const _0x27e628=a5_0x4331;return Object[_0x27e628(0x188)][_0x27e628(0x19d)]['call'](_0x14cc4a)===_0x27e628(0x191);}function code(_0x5655d5,_0x290657=0x6){const _0x1c104d=a5_0x4331;return new RegExp(_0x1c104d(0x18a)+_0x290657+'}$')[_0x1c104d(0x193)](_0x5655d5);}function func(_0x144d85){const _0xbb57e4=a5_0x4331;return typeof _0x144d85===_0xbb57e4(0x183);}function promise(_0x5f1bb0){const _0x2cabae=a5_0x4331;return object(_0x5f1bb0)&&func(_0x5f1bb0[_0x2cabae(0x190)])&&func(_0x5f1bb0['catch']);}function image(_0x408ff6){const _0x1c70b0=a5_0x4331,_0x3e13ac=_0x408ff6[_0x1c70b0(0x184)]('?')[0x0],_0x819ae1=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x819ae1[_0x1c70b0(0x193)](_0x3e13ac);}function video(_0x4fa5e7){const _0xe9e8e6=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0xe9e8e6['test'](_0x4fa5e7);}function regExp(_0x4e5be9){const _0x121310=a5_0x4331;return _0x4e5be9&&Object[_0x121310(0x188)][_0x121310(0x19d)][_0x121310(0x187)](_0x4e5be9)==='[object\x20RegExp]';}function isNumeric(_0x42d6d7,_0x5bb6be=0x0){const _0xfe5296=a5_0x4331;if(typeof _0x42d6d7===_0xfe5296(0x18b))_0x42d6d7=_0x42d6d7[_0xfe5296(0x19d)]();if(typeof _0x42d6d7!==_0xfe5296(0x19b))return![];switch(_0x5bb6be){case 0x1:return/^\d+(\.\d+)?$/[_0xfe5296(0x193)](_0x42d6d7);case 0x2:return/^-\d+(\.\d+)?$/[_0xfe5296(0x193)](_0x42d6d7);case 0x3:return/^-?\d+$/[_0xfe5296(0x193)](_0x42d6d7);case 0x4:return/^\d+$/[_0xfe5296(0x193)](_0x42d6d7);case 0x5:return/^-\d+$/[_0xfe5296(0x193)](_0x42d6d7);default:return/^-?\d*\.?\d*$/[_0xfe5296(0x193)](_0x42d6d7)&&!_0x42d6d7[_0xfe5296(0x194)]('.')&&!_0x42d6d7[_0xfe5296(0x195)]('--');}}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_0x4127ba=a6_0x35bc;(function(_0xffd546,_0x563522){const _0x46f895=a6_0x35bc,_0xf65a70=_0xffd546();while(!![]){try{const _0x3295c=-parseInt(_0x46f895(0xfe))/0x1*(parseInt(_0x46f895(0xe7))/0x2)+parseInt(_0x46f895(0xc3))/0x3+-parseInt(_0x46f895(0xc7))/0x4*(parseInt(_0x46f895(0x111))/0x5)+-parseInt(_0x46f895(0x109))/0x6*(-parseInt(_0x46f895(0xd7))/0x7)+parseInt(_0x46f895(0xef))/0x8+parseInt(_0x46f895(0x117))/0x9*(-parseInt(_0x46f895(0xff))/0xa)+parseInt(_0x46f895(0xd6))/0xb;if(_0x3295c===_0x563522)break;else _0xf65a70['push'](_0xf65a70['shift']());}catch(_0x1c3ab4){_0xf65a70['push'](_0xf65a70['shift']());}}}(a6_0x1a0f,0x5c54a));function fmtNum(_0x35e34d,_0xf94c6e=!![]){const _0x14b66e=a6_0x35bc;if(_0x35e34d==0x0)return _0xf94c6e?_0x14b66e(0x10c):'0';if(!_0x35e34d)return'';let _0x183c61=typeof _0x35e34d===_0x14b66e(0x104)?parseFloat(_0x35e34d):_0x35e34d;if(isNaN(_0x183c61))return'';return _0x183c61['toLocaleString'](_0x14b66e(0xe4),{'minimumFractionDigits':_0xf94c6e?0x2:0x0,'maximumFractionDigits':_0xf94c6e?0x2:0x0});}function splitName(_0x59a952,_0x2ac785=![]){const _0x33dc36=a6_0x35bc;let _0x2779e3={'surname':'','givenName':''};if(_0x2ac785){const _0x17921a=_0x59a952['includes'](',')?_0x59a952[_0x33dc36(0xeb)](','):_0x59a952['split'](/\s+/);_0x17921a[_0x33dc36(0xc9)]>=0x2&&(_0x2779e3[_0x33dc36(0xe3)]=_0x17921a[0x0][_0x33dc36(0xf4)](),_0x2779e3['givenName']=_0x17921a[0x1][_0x33dc36(0xf4)]());}else{const _0x2167e6=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x5ba236=0x0;_0x5ba236<_0x2167e6[_0x33dc36(0xc9)];_0x5ba236++){const _0x178b64=_0x2167e6[_0x5ba236];if(_0x59a952[_0x33dc36(0xb9)](_0x178b64))return _0x2779e3[_0x33dc36(0xe3)]=_0x178b64,_0x2779e3[_0x33dc36(0xc8)]=_0x59a952[_0x33dc36(0x105)](_0x178b64[_0x33dc36(0xc9)])['trim'](),_0x2779e3;}const _0x4ff68b=_0x59a952[_0x33dc36(0xeb)]('\x20');if(_0x4ff68b[_0x33dc36(0xc9)]===0x1){const _0x27ae6c=_0x59a952['match'](/[\u4e00-\u9fa5]/);_0x2779e3[_0x33dc36(0xe3)]=_0x27ae6c?_0x27ae6c[0x0]:'',_0x2779e3[_0x33dc36(0xc8)]=_0x59a952[_0x33dc36(0xfb)](_0x2779e3[_0x33dc36(0xe3)],'')[_0x33dc36(0xf4)]();}else _0x2779e3['surname']=_0x4ff68b[0x0],_0x2779e3['givenName']=_0x4ff68b[_0x33dc36(0xbf)](0x1)[_0x33dc36(0xbc)]('\x20');}return _0x2779e3;}function timeFormat(_0x1d1f11=null,_0x352723=a6_0x4127ba(0x10f)){const _0x21ce29=a6_0x4127ba;let _0xd9de2d;if(!_0x1d1f11)_0xd9de2d=new Date();else{if(/^\d{10}$/[_0x21ce29(0xe1)](_0x1d1f11?.[_0x21ce29(0xf0)]()[_0x21ce29(0xf4)]()))_0xd9de2d=new Date(_0x1d1f11*0x3e8);else{if(typeof _0x1d1f11===_0x21ce29(0x104)&&/^\d+$/[_0x21ce29(0xe1)](_0x1d1f11[_0x21ce29(0xf4)]()))_0xd9de2d=new Date(Number(_0x1d1f11));else typeof _0x1d1f11==='string'&&_0x1d1f11[_0x21ce29(0xe6)]('-')&&!_0x1d1f11[_0x21ce29(0xe6)]('T')?_0xd9de2d=new Date(_0x1d1f11[_0x21ce29(0xfb)](/-/g,'/')):_0xd9de2d=new Date(_0x1d1f11);}}const _0x276f1b={'y':_0xd9de2d[_0x21ce29(0xdd)]()[_0x21ce29(0xf0)](),'m':(_0xd9de2d[_0x21ce29(0xf7)]()+0x1)[_0x21ce29(0xf0)]()[_0x21ce29(0xd8)](0x2,'0'),'d':_0xd9de2d['getDate']()['toString']()[_0x21ce29(0xd8)](0x2,'0'),'h':_0xd9de2d[_0x21ce29(0x119)]()['toString']()['padStart'](0x2,'0'),'M':_0xd9de2d['getMinutes']()[_0x21ce29(0xf0)]()[_0x21ce29(0xd8)](0x2,'0'),'s':_0xd9de2d['getSeconds']()[_0x21ce29(0xf0)]()[_0x21ce29(0xd8)](0x2,'0')};for(const _0x1458ad in _0x276f1b){const [_0x42c595]=new RegExp(_0x1458ad+'+')[_0x21ce29(0x115)](_0x352723)||[];if(_0x42c595){const _0x4b9ee0=_0x1458ad==='y'&&_0x42c595[_0x21ce29(0xc9)]===0x2?0x2:0x0;_0x352723=_0x352723[_0x21ce29(0xfb)](_0x42c595,_0x276f1b[_0x1458ad][_0x21ce29(0xbf)](_0x4b9ee0));}}return _0x352723;}function handleOCRData(_0x4a5dbd,_0x5b5b42){const _0x3f7c5c=a6_0x4127ba,_0x30b126=_0x1e793b=>{const _0x482164=a6_0x35bc,_0x1d8205=_0x1e793b['substring'](0x0,0x4),_0x1a5b52=_0x1e793b[_0x482164(0x105)](0x4,0x6),_0x4cd020=_0x1e793b[_0x482164(0x105)](0x6,0x8);return _0x1d8205+'-'+_0x1a5b52+'-'+_0x4cd020;};let _0x208e68={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x4a5dbd===0x0||_0x4a5dbd===0x1||_0x4a5dbd===0x2){if(_0x5b5b42[_0x3f7c5c(0x10b)]==='M')_0x208e68[_0x3f7c5c(0xfd)]='男';else _0x208e68[_0x3f7c5c(0xfd)]='女';}debugger;_0x4a5dbd===0x0&&(_0x208e68[_0x3f7c5c(0x103)]=_0x5b5b42['Name'],_0x208e68[_0x3f7c5c(0xe3)]=_0x5b5b42[_0x3f7c5c(0x101)],_0x208e68['givenName']=_0x5b5b42[_0x3f7c5c(0xda)],_0x208e68[_0x3f7c5c(0xcf)]=_0x5b5b42[_0x3f7c5c(0xf1)],_0x208e68['birthDate']=_0x5b5b42[_0x3f7c5c(0xcb)],_0x208e68[_0x3f7c5c(0x100)]=_0x5b5b42[_0x3f7c5c(0xe9)],_0x208e68[_0x3f7c5c(0xcc)]=_0x5b5b42[_0x3f7c5c(0xe8)]);if(_0x4a5dbd===0x1){_0x208e68[_0x3f7c5c(0x103)]=_0x5b5b42[_0x3f7c5c(0xb7)],_0x208e68[_0x3f7c5c(0xe3)]=_0x5b5b42[_0x3f7c5c(0xf9)],_0x208e68[_0x3f7c5c(0xc8)]=_0x5b5b42[_0x3f7c5c(0x107)],_0x208e68[_0x3f7c5c(0xcf)]=_0x5b5b42[_0x3f7c5c(0xf3)],_0x208e68['birthDate']=_0x5b5b42['DateOfBirth'],_0x208e68['nationality']=_0x5b5b42['Nationality'],_0x208e68[_0x3f7c5c(0xcc)]=_0x5b5b42['ID'];if(!_0x5b5b42['Surname']&&!_0x5b5b42[_0x3f7c5c(0x107)]){const _0x2e9789=splitName(_0x5b5b42['Name']);_0x208e68[_0x3f7c5c(0xe3)]=_0x2e9789['surname'],_0x208e68[_0x3f7c5c(0xc8)]=_0x2e9789['givenName'];}if(!_0x5b5b42['EnglishName'])_0x208e68[_0x3f7c5c(0xd4)]=_0x5b5b42[_0x3f7c5c(0xb7)];}_0x4a5dbd===0x2&&(_0x208e68[_0x3f7c5c(0x103)]=_0x5b5b42[_0x3f7c5c(0xc0)],_0x208e68[_0x3f7c5c(0xd4)]=_0x5b5b42[_0x3f7c5c(0xd5)],_0x208e68[_0x3f7c5c(0xf2)]=_0x5b5b42[_0x3f7c5c(0xdc)],_0x208e68[_0x3f7c5c(0xcc)]=_0x5b5b42[_0x3f7c5c(0x106)]);_0x4a5dbd===0x3&&(_0x208e68[_0x3f7c5c(0x103)]=_0x5b5b42[_0x3f7c5c(0xb7)],_0x208e68[_0x3f7c5c(0xfd)]=_0x5b5b42[_0x3f7c5c(0x10b)],_0x208e68['expDate']=_0x5b5b42['ValidDate'],_0x208e68[_0x3f7c5c(0xf2)]=_0x5b5b42['Birth'],_0x208e68[_0x3f7c5c(0xcc)]=_0x5b5b42[_0x3f7c5c(0x106)]);_0x4a5dbd===0x4&&(_0x208e68[_0x3f7c5c(0x103)]=_0x5b5b42[_0x3f7c5c(0xb7)],_0x208e68[_0x3f7c5c(0xd4)]=_0x5b5b42[_0x3f7c5c(0xc2)],_0x208e68[_0x3f7c5c(0xfd)]=_0x5b5b42[_0x3f7c5c(0x10b)],_0x208e68[_0x3f7c5c(0xcf)]=_0x5b5b42[_0x3f7c5c(0xd2)],_0x208e68[_0x3f7c5c(0xf2)]=_0x5b5b42[_0x3f7c5c(0xdc)],_0x208e68[_0x3f7c5c(0xcc)]=_0x5b5b42['Number']);_0x4a5dbd===0x5&&(_0x208e68[_0x3f7c5c(0x103)]=_0x5b5b42[_0x3f7c5c(0xb7)],_0x208e68['englishName']=_0x5b5b42[_0x3f7c5c(0xc2)],_0x208e68['sex']=_0x5b5b42[_0x3f7c5c(0x10b)],_0x208e68[_0x3f7c5c(0xcf)]=_0x5b5b42['ValidDate'],_0x208e68[_0x3f7c5c(0xf2)]=_0x5b5b42[_0x3f7c5c(0xdc)],_0x208e68[_0x3f7c5c(0xcc)]=_0x5b5b42[_0x3f7c5c(0xd1)]);if(_0x4a5dbd===0x2||_0x4a5dbd===0x3||_0x4a5dbd===0x4||_0x4a5dbd===0x5){const _0x2c29e7=splitName(_0x208e68['name']);_0x208e68[_0x3f7c5c(0xe3)]=_0x2c29e7['surname'],_0x208e68[_0x3f7c5c(0xc8)]=_0x2c29e7[_0x3f7c5c(0xc8)];}if(_0x4a5dbd===0x2||_0x4a5dbd===0x4||_0x4a5dbd===0x5){const _0x36984f=splitName(_0x208e68['englishName'],!![]);_0x208e68['surnameEn']=_0x36984f[_0x3f7c5c(0xe3)],_0x208e68[_0x3f7c5c(0x112)]=_0x36984f[_0x3f7c5c(0xc8)];}if(_0x4a5dbd===0x0||_0x4a5dbd===0x1){if(_0x208e68[_0x3f7c5c(0xf2)]!=='')_0x208e68['birthDate']=_0x30b126(_0x208e68[_0x3f7c5c(0xf2)]);if(_0x208e68[_0x3f7c5c(0xcf)]!=='')_0x208e68['expDate']=_0x30b126(_0x208e68[_0x3f7c5c(0xcf)]);}if(_0x4a5dbd===0x2||_0x4a5dbd===0x3){if(_0x208e68[_0x3f7c5c(0xf2)]!=='')_0x208e68[_0x3f7c5c(0xf2)]=timeFormat(_0x208e68[_0x3f7c5c(0xf2)]);if(_0x208e68[_0x3f7c5c(0xcf)]!=='')_0x208e68[_0x3f7c5c(0xcf)]=timeFormat(_0x208e68['expDate']);}if(_0x4a5dbd===0x4||_0x4a5dbd===0x5){if(_0x208e68[_0x3f7c5c(0xf2)]!=='')_0x208e68[_0x3f7c5c(0xf2)]=timeFormat(_0x208e68[_0x3f7c5c(0xf2)]);if(_0x208e68[_0x3f7c5c(0xcf)]!==''){let _0x44a7bf=_0x208e68[_0x3f7c5c(0xcf)][_0x3f7c5c(0xeb)]('-');_0x208e68[_0x3f7c5c(0xcf)]=timeFormat(_0x44a7bf[0x1]);}}return{'type':_0x4a5dbd,'data':_0x208e68};}function modifyKeys(_0x3e7da4,_0x3c430d={'strCode':a6_0x4127ba(0xea),'strFjbh':'fjbh','strGuid':'value','strValue':a6_0x4127ba(0xe5)}){const _0x100a84=a6_0x4127ba;if(!_0x3e7da4[_0x100a84(0xc9)]||_0x3e7da4===null)return[];const _0x1ce5e5=_0x3e7da4[_0x100a84(0xf6)](_0x5db7a8=>{const _0x2a8d41=_0x100a84,_0x5e43bd={};for(const _0x58897b in _0x5db7a8){_0x3c430d[_0x2a8d41(0xbd)](_0x58897b)?_0x5e43bd[_0x3c430d[_0x58897b]]=_0x5db7a8[_0x58897b]:_0x5e43bd[_0x58897b]=_0x5db7a8[_0x58897b];}return _0x5e43bd;});return _0x1ce5e5;}function sliceArray(_0x51a6f6,_0xc4cb65,_0x575cae){const _0x368343=a6_0x4127ba;if(_0xc4cb65<=0x0)return console[_0x368343(0xe2)](_0x368343(0xba)),[];return _0x575cae?_0x51a6f6[_0x368343(0xbf)](0x0,_0xc4cb65):_0x51a6f6[_0x368343(0xbf)](-_0xc4cb65);}function findDataByData(_0x18bb78,_0x4bdd43,_0x177521){const _0x3064a2=a6_0x4127ba,_0x533450=_0x18bb78[_0x3064a2(0xfa)](_0x33f871=>_0x33f871[_0x177521]===_0x4bdd43);return _0x533450||null;}function splitArray(_0x205888,_0x551e74){const _0x585f5f=a6_0x4127ba,_0x2952ee=[];for(let _0x4963af=0x0;_0x4963af<_0x205888[_0x585f5f(0xc9)];_0x4963af+=_0x551e74){_0x2952ee[_0x585f5f(0x108)](_0x205888['slice'](_0x4963af,_0x4963af+_0x551e74));}return _0x2952ee;}function getProxyType(_0x49e023){const _0x22936e=a6_0x4127ba;return Object[_0x22936e(0xd3)][_0x22936e(0xf0)][_0x22936e(0x118)](_0x49e023)[_0x22936e(0xbf)](0x8,-0x1);}let timeout=null;function a6_0x1a0f(){const _0x57501e=['floor','4PuVKgY','givenName','length','getTime','BirthDate','number','boolean','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','expDate','function','Number','ValidDate','prototype','englishName','EnName','6114867xziXhr','1801576TAYHrL','padStart','stringify','FirstName','除数不能为0','Birthday','getFullYear','getMinutes','object','forEach','test','error','surname','en-US','label','includes','1500242WklRxe','PassportNo','Nationality','code','split','setDate','dayTitle','abs','4874432HRygIU','toString','ExpiryDate','birthDate','DateOfExpiration','trim','isArray','map','getMonth','both','Surname','find','replace','_qh','sex','1RIoCkM','1415670ZCebvi','nationality','FamilyName','round','name','string','substring','IdNum','GivenName','push','12MGxxcS','getDate','Sex','0.00','setHours','random','yyyy-mm-dd','YYYY','1396075AqpySp','givenNameEn','parse','无效的操作符,操作符应为1、2、3或4','exec','endsWith','27yloasB','call','getHours','yearTitle','Name','monthTitle','startsWith','Quantity\x20should\x20be\x20greater\x20than\x200.','toFixed','join','hasOwnProperty','getSeconds','slice','CnName','right','EnglishName','456858tSwSHs','shift','max'];a6_0x1a0f=function(){return _0x57501e;};return a6_0x1a0f();}function debounce(_0x4d45f2,_0x570ba5=0x1f4,_0x44484d=![]){const _0x58b67c=a6_0x4127ba;if(timeout!==null)clearTimeout(timeout);if(_0x44484d){const _0xdcea01=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x570ba5);if(_0xdcea01)typeof _0x4d45f2===_0x58b67c(0xd0)&&_0x4d45f2();}else timeout=setTimeout(()=>{typeof _0x4d45f2==='function'&&_0x4d45f2();},_0x570ba5);}function a6_0x35bc(_0x1db97b,_0x5cec6d){const _0x1a0f63=a6_0x1a0f();return a6_0x35bc=function(_0x35bceb,_0x48932b){_0x35bceb=_0x35bceb-0xb6;let _0x187950=_0x1a0f63[_0x35bceb];return _0x187950;},a6_0x35bc(_0x1db97b,_0x5cec6d);}function urlEncode(_0x4c286b={}){const _0x4ef0f9=a6_0x4127ba,_0x3517a8=[];for(const _0x242a47 in _0x4c286b){const _0x274e4f=_0x4c286b[_0x242a47];if(!_0x274e4f)continue;isArray(_0x274e4f)?_0x274e4f[_0x4ef0f9(0xe0)](_0x1b7079=>{const _0x5e7751=_0x4ef0f9;_0x3517a8[_0x5e7751(0x108)](_0x242a47+'='+_0x1b7079);}):_0x3517a8['push'](_0x242a47+'='+_0x274e4f);}return _0x3517a8[_0x4ef0f9(0xbc)]('&');}function dateFormat(_0x217eee,_0x1f1b86){const _0x471c36=a6_0x4127ba,_0x57e70e=new Date(_0x1f1b86),_0x3c6ba={'Y+':_0x57e70e[_0x471c36(0xdd)]()[_0x471c36(0xf0)](),'m+':(_0x57e70e[_0x471c36(0xf7)]()+0x1)[_0x471c36(0xf0)](),'d+':_0x57e70e['getDate']()[_0x471c36(0xf0)](),'H+':_0x57e70e['getHours']()[_0x471c36(0xf0)](),'M+':_0x57e70e[_0x471c36(0xde)]()[_0x471c36(0xf0)](),'S+':_0x57e70e[_0x471c36(0xbe)]()['toString']()};let _0x4b6d12;for(let _0x70c99e in _0x3c6ba){_0x4b6d12=new RegExp('('+_0x70c99e+')')['exec'](_0x217eee);_0x4b6d12&&(_0x217eee=_0x217eee[_0x471c36(0xfb)](_0x4b6d12[0x1],_0x4b6d12[0x1][_0x471c36(0xc9)]==0x1?_0x3c6ba[_0x70c99e]:_0x3c6ba[_0x70c99e][_0x471c36(0xd8)](_0x4b6d12[0x1][_0x471c36(0xc9)],'0')));;};return _0x217eee;}function formatDate(_0x52e449,_0x476a68='YYYY-MM-DD',_0x34dd07={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x352bec=a6_0x4127ba,_0xe29e3a=new Date(_0x52e449),_0x3d0aba=_0xe29e3a[_0x352bec(0xdd)](),_0x3e5541=_0xe29e3a[_0x352bec(0xf7)]()+0x1,_0x53870f=_0xe29e3a[_0x352bec(0x10a)](),_0x4eb704=_0x3e5541<0xa?'0'+_0x3e5541:_0x3e5541,_0x3ad1af=_0x53870f<0xa?'0'+_0x53870f:_0x53870f;let _0x3c21ca=_0x476a68['replace'](_0x352bec(0x110),_0x3d0aba)[_0x352bec(0xfb)]('MM',_0x4eb704)[_0x352bec(0xfb)]('DD',_0x3ad1af);return _0x3c21ca=_0x3c21ca['replace'](/-MM/g,_0x34dd07[_0x352bec(0xb8)])[_0x352bec(0xfb)](/-DD/g,_0x34dd07[_0x352bec(0xed)])[_0x352bec(0xfb)]('YYYY'+_0x34dd07[_0x352bec(0xb6)],'')[_0x352bec(0xfb)]('MM'+_0x34dd07['monthTitle'],'')['replace']('DD'+_0x34dd07[_0x352bec(0xed)],''),_0x3c21ca;}function compareDates(_0xbd5cd9,_0x2a4b39){const _0x3dbf6f=a6_0x4127ba;_0xbd5cd9=new Date(_0xbd5cd9);!_0x2a4b39?_0x2a4b39=new Date():_0x2a4b39=new Date(_0x2a4b39);_0xbd5cd9[_0x3dbf6f(0x10d)](0x0,0x0,0x0,0x0),_0x2a4b39[_0x3dbf6f(0x10d)](0x0,0x0,0x0,0x0);var _0x148b94=_0xbd5cd9[_0x3dbf6f(0xca)](),_0x5606e3=_0x2a4b39[_0x3dbf6f(0xca)]();if(_0x148b94<_0x5606e3)return-0x1;else return _0x148b94>_0x5606e3?0x1:0x0;}function getDaysBetween(_0x28c917,_0x2db57c){const _0x42c827=a6_0x4127ba,_0xf89149=new Date(_0x28c917),_0x5dc6a8=new Date(_0x2db57c),_0x423cc5=Math[_0x42c827(0xee)](_0xf89149['getTime']()-_0x5dc6a8[_0x42c827(0xca)]()),_0xd073b1=Math[_0x42c827(0xc6)](_0x423cc5/(0x3e8*0x3c*0x3c*0x18));return _0xd073b1+0x1;}function chineseNumeral(_0x32db65){const _0x3b4638=a6_0x4127ba,_0x3d7c79=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x2f4eaa=['','拾','佰','仟'],_0x3bb47f=['','万','亿','兆'];let _0x472bd9=Math[_0x3b4638(0xc6)](_0x32db65),_0x3b264a=Math[_0x3b4638(0x102)]((_0x32db65-_0x472bd9)*0x64),_0x6036df='';for(let _0x117a80=0x0;_0x472bd9>0x0;_0x117a80++){let _0x48343b='',_0x5603b5=_0x472bd9%0x2710;_0x472bd9=Math[_0x3b4638(0xc6)](_0x472bd9/0x2710);for(let _0x5d8d12=0x0;_0x5603b5>0x0;_0x5d8d12++){let _0x5c2d0b=_0x5603b5%0xa;_0x48343b=(_0x5c2d0b?_0x3d7c79[_0x5c2d0b]+_0x2f4eaa[_0x5d8d12]:'')+_0x48343b,_0x5603b5=Math[_0x3b4638(0xc6)](_0x5603b5/0xa);}_0x6036df=_0x48343b+(_0x48343b?_0x3bb47f[_0x117a80]:_0x3bb47f[_0x117a80]&&!_0x6036df['includes']('零')?'零':'')+_0x6036df;}_0x6036df+=_0x6036df?'元':'零元';if(_0x3b264a>0x0){let _0x53ee1c=Math[_0x3b4638(0xc6)](_0x3b264a/0xa),_0x5cfb66=_0x3b264a%0xa;_0x6036df+=(_0x53ee1c?_0x3d7c79[_0x53ee1c]+'角':'')+(_0x5cfb66?_0x3d7c79[_0x5cfb66]+'分':'');}else _0x6036df+='整';return _0x6036df[_0x3b4638(0xfb)](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x9b9283){const _0x24f48d=a6_0x4127ba;(!_0x9b9283||_0x9b9283[_0x24f48d(0xf4)]()==='')&&(_0x9b9283=new Date()['getFullYear']()+'-'+(new Date()[_0x24f48d(0xf7)]()+0x1));let _0x48a63a=[],[_0x1beb51,_0x4374b9]=_0x9b9283[_0x24f48d(0xeb)]('-')['map'](Number),_0x5de0f0=new Date(_0x1beb51,_0x4374b9,0x0),_0x2bdc17=_0x5de0f0[_0x24f48d(0x10a)]();for(let _0x2dee57=0x1;_0x2dee57<=_0x2bdc17;_0x2dee57++){let _0x1b6cc8=_0x2dee57<0xa?'0'+_0x2dee57:''+_0x2dee57,_0x25256b=_0x4374b9<0xa?'0'+_0x4374b9:''+_0x4374b9;_0x48a63a[_0x24f48d(0x108)]({'date':_0x1beb51+'-'+_0x25256b+'-'+_0x1b6cc8,'disable':!![]});}return _0x48a63a;}function getToday(_0x28cbce){const _0x51260d=a6_0x4127ba;var _0x2f6b0a=new Date(),_0x5c2074=String(_0x2f6b0a[_0x51260d(0x10a)]())[_0x51260d(0xd8)](0x2,'0'),_0x2de6b8=String(_0x2f6b0a['getMonth']()+0x1)[_0x51260d(0xd8)](0x2,'0'),_0x1f20fa=_0x2f6b0a[_0x51260d(0xdd)]();return _0x2f6b0a=_0x1f20fa+'-'+_0x2de6b8+'-'+_0x5c2074,_0x2f6b0a;}function resetObject(_0x2686f4){const _0x17a40b=a6_0x4127ba;let _0x269ca5=JSON[_0x17a40b(0x113)](JSON[_0x17a40b(0xd9)](_0x2686f4));for(const _0x27a0f4 in _0x269ca5){if(typeof _0x269ca5[_0x27a0f4]===_0x17a40b(0xcc))_0x269ca5[_0x27a0f4]=0x0;else{if(typeof _0x269ca5[_0x27a0f4]===_0x17a40b(0xcd))_0x269ca5[_0x27a0f4]=![];else{if(Array[_0x17a40b(0xf5)](_0x269ca5[_0x27a0f4]))_0x269ca5[_0x27a0f4]=[];else typeof _0x269ca5[_0x27a0f4]===_0x17a40b(0xdf)&&_0x269ca5[_0x27a0f4]!==null?resetObject(_0x269ca5[_0x27a0f4]):_0x269ca5[_0x27a0f4]='';}}}return _0x269ca5;}function preciseOperation(_0x222724,_0x36f529,_0x3e2969,_0x512e22=0xf4240){const _0x5a5604=a6_0x4127ba;if(isNaN(_0x222724)||isNaN(_0x36f529))return NaN;if(!isFinite(_0x222724)||!isFinite(_0x36f529))return NaN;let _0xfc49c4=BigInt(Math['round'](_0x222724*_0x512e22)),_0xa0c74b=BigInt(Math['round'](_0x36f529*_0x512e22)),_0x2e4423;switch(_0x3e2969){case 0x1:_0x2e4423=_0xfc49c4+_0xa0c74b;break;case 0x2:_0x2e4423=_0xfc49c4-_0xa0c74b;break;case 0x3:_0x2e4423=_0xfc49c4*_0xa0c74b;break;case 0x4:if(_0xa0c74b===0x0n)throw new Error(_0x5a5604(0xdb));_0x2e4423=_0xfc49c4/_0xa0c74b;break;default:throw new Error(_0x5a5604(0x114));}return Number(_0x2e4423)/_0x512e22;}function preciseSum(_0x26e57e){let _0x11472a=0x0;for(const _0x3af98a of _0x26e57e){let _0x888a91=0x0;if(typeof _0x3af98a==='string'){const _0xc6c84a=parseFloat(_0x3af98a);!isNaN(_0xc6c84a)&&(_0x888a91=_0xc6c84a);}else typeof _0x3af98a==='number'&&(_0x888a91=_0x3af98a);_0x11472a=preciseOperation(_0x11472a,_0x888a91,0x1);}return _0x11472a;}function getRelativeDate(_0xd5364,_0x339ede=0x0){const _0x4dba90=a6_0x4127ba,_0xc71dad=new Date(_0xd5364);_0xc71dad[_0x4dba90(0xec)](_0xc71dad[_0x4dba90(0x10a)]()+_0x339ede);const _0x2020b0=_0xc71dad[_0x4dba90(0xdd)](),_0x3d318f=(_0xc71dad['getMonth']()+0x1)['toString']()[_0x4dba90(0xd8)](0x2,'0'),_0xae28e3=_0xc71dad['getDate']()[_0x4dba90(0xf0)]()[_0x4dba90(0xd8)](0x2,'0');return _0x2020b0+'-'+_0x3d318f+'-'+_0xae28e3;}function validateFields(_0x3b3d8e,_0x4651ea,_0x1e391e=''){for(let _0x5e3d49 of _0x4651ea){if(_0x3b3d8e[_0x5e3d49]===_0x1e391e)return!![];}return![];}function mergeObjects(_0x3ec1dc,_0x4f069d){const _0x3c732d=a6_0x4127ba;for(const _0x52b196 in _0x3ec1dc){_0x4f069d[_0x3c732d(0xbd)](_0x52b196)&&(_0x3ec1dc[_0x52b196]=_0x4f069d[_0x52b196]);}return _0x3ec1dc;}const formatToDecimal=(_0x452862,_0x153e2e=0x2)=>{const _0x20fbc3=a6_0x4127ba;if(isNaN(_0x153e2e)||_0x153e2e<0x0)return _0x452862;let _0x590253=Number(_0x452862);if(!isFinite(_0x590253))return _0x452862;return _0x153e2e=Math[_0x20fbc3(0xc5)](0x0,Math['floor'](_0x153e2e)),_0x590253[_0x20fbc3(0xbb)](_0x153e2e);};function findKeysEndingWith(_0x18d222,_0x4c4f4d=a6_0x4127ba(0xfc)){const _0x3f56fe=a6_0x4127ba;let _0x42853c=[];for(var _0x42b2d1 in _0x18d222){if(_0x18d222['hasOwnProperty'](_0x42b2d1)){if(_0x42b2d1[_0x3f56fe(0x116)](_0x4c4f4d))_0x42853c[_0x3f56fe(0x108)](_0x42b2d1);}}return _0x42853c;}function guid(_0xd4f525=0x20,_0x2c365b=!![],_0x188ab2=null){const _0x4f8068=a6_0x4127ba,_0x3631f5=_0x4f8068(0xce)['split'](''),_0x10e688=[];_0x188ab2=_0x188ab2||_0x3631f5[_0x4f8068(0xc9)];if(_0xd4f525){for(let _0x5ab3a0=0x0;_0x5ab3a0<_0xd4f525;_0x5ab3a0++)_0x10e688[_0x5ab3a0]=_0x3631f5[0x0|Math[_0x4f8068(0x10e)]()*_0x188ab2];}else{let _0x50e061;_0x10e688[0x8]=_0x10e688[0xd]=_0x10e688[0x12]=_0x10e688[0x17]='-',_0x10e688[0xe]='4';for(let _0x44205c=0x0;_0x44205c<0x24;_0x44205c++){!_0x10e688[_0x44205c]&&(_0x50e061=0x0|Math[_0x4f8068(0x10e)]()*0x10,_0x10e688[_0x44205c]=_0x3631f5[_0x44205c==0x13?_0x50e061&0x3|0x8:_0x50e061]);}}if(_0x2c365b)return _0x10e688[_0x4f8068(0xc4)](),'u'+_0x10e688[_0x4f8068(0xbc)]('');return _0x10e688['join']('');}function trim(_0x5c945f,_0x4b4a8c=a6_0x4127ba(0xf8)){const _0x26a58e=a6_0x4127ba;_0x5c945f=String(_0x5c945f);if(_0x4b4a8c==_0x26a58e(0xf8))return _0x5c945f[_0x26a58e(0xfb)](/^\s+|\s+$/g,'');if(_0x4b4a8c=='left')return _0x5c945f[_0x26a58e(0xfb)](/^\s*/,'');if(_0x4b4a8c==_0x26a58e(0xc1))return _0x5c945f[_0x26a58e(0xfb)](/(\s*$)/g,'');if(_0x4b4a8c=='all')return _0x5c945f[_0x26a58e(0xfb)](/\s+/g,'');return _0x5c945f;}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};
|