const _0x5bf443=_0x10f2;(function(_0x266812,_0x226569){const _0x3f3b91=_0x10f2,_0x374917=_0x266812();while(!![]){try{const _0x4dd066=parseInt(_0x3f3b91(0x1a4))/0x1+parseInt(_0x3f3b91(0x17a))/0x2*(-parseInt(_0x3f3b91(0x18a))/0x3)+parseInt(_0x3f3b91(0x19f))/0x4*(-parseInt(_0x3f3b91(0x19c))/0x5)+-parseInt(_0x3f3b91(0x17d))/0x6*(parseInt(_0x3f3b91(0x181))/0x7)+parseInt(_0x3f3b91(0x16f))/0x8*(-parseInt(_0x3f3b91(0x15b))/0x9)+-parseInt(_0x3f3b91(0x1a1))/0xa+parseInt(_0x3f3b91(0x196))/0xb;if(_0x4dd066===_0x226569)break;else _0x374917['push'](_0x374917['shift']());}catch(_0x5da56b){_0x374917['push'](_0x374917['shift']());}}}(_0x4f49,0x612cf));const projectId=_0x5bf443(0x18c),trackingUrl=_0x5bf443(0x180),scriptUrl='https://t.formstory.io',clientIP='216.73.216.171';let currentPath=window['location'][_0x5bf443(0x182)],host=window[_0x5bf443(0x18f)][_0x5bf443(0x175)];currentPath[_0x5bf443(0x19b)]('/')&¤tPath['length']>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath['replace'](/\//g,'_');const sendData=_0x1dcfa6=>{const _0xd00392=_0x5bf443;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':_0xd00392(0x173)},'body':JSON[_0xd00392(0x195)](_0x1dcfa6)})['then'](_0x3f4ced=>{const _0x284c22=_0xd00392;if(!_0x3f4ced['ok'])throw new Error(_0x284c22(0x198));})[_0xd00392(0x190)](_0x89f2f=>{console['error'](_0x89f2f);});},addFormFields=(_0x239813,_0x27eddf)=>{const _0x33208a=_0x5bf443;let _0x5ae827=_0x239813['elements'],_0x21aa75={};for(let _0x397924=0x0;_0x397924<_0x5ae827[_0x33208a(0x159)];_0x397924++){let _0x509879=_0x5ae827[_0x397924],_0x5a7c91=_0x509879[_0x33208a(0x16d)]!==''?_0x509879['name']:_0x509879['id'];if(_0x509879[_0x33208a(0x19d)]===_0x33208a(0x188)||_0x509879['type']==='password'||_0x5a7c91==='')continue;if(_0x5a7c91[_0x33208a(0x19b)]('[]')){let _0x28a19c=_0x5a7c91[_0x33208a(0x155)](0x0,-0x2),_0xa2a0a0=_0x509879[_0x33208a(0x15a)]||'';!_0x21aa75[_0x28a19c]?_0x21aa75[_0x28a19c]={'label':_0x28a19c,'value':_0xa2a0a0}:_0x21aa75[_0x28a19c][_0x33208a(0x15a)]+=_0xa2a0a0[_0x33208a(0x159)]>0x0?',\x20'+_0xa2a0a0:'';}else _0x27eddf[_0x33208a(0x167)][_0x33208a(0x17e)]({'label':_0x5a7c91,'value':_0x509879[_0x33208a(0x15a)]||''});}for(let _0x2c976b in _0x21aa75){_0x27eddf[_0x33208a(0x167)]['push'](_0x21aa75[_0x2c976b]);}},handleFormSubmit=(_0x1bf4b1,_0x365a3e,_0x2cacaf)=>{const _0x3815bf=_0x5bf443,_0x184e89=getCookieValue('fstory_session_'+_0x2cacaf);let _0x2f4cae={'projectId':projectId,'jobId':_0x365a3e,'uuid':_0x184e89,'data':[],'timestamp':Date[_0x3815bf(0x158)](),'ip':clientIP,'event_type':_0x3815bf(0x15d)};addFormFields(_0x1bf4b1,_0x2f4cae),sendData(_0x2f4cae);},handleFormChange=(_0x37e17f,_0x4f6db6,_0x1a8069)=>_0xfe8b02=>{const _0xf7eedc=_0x5bf443;_0xfe8b02[_0xf7eedc(0x162)]();const _0x303594=getCookieValue('fstory_session_'+_0x1a8069),_0x4c63be={'projectId':projectId,'jobId':_0x4f6db6,'uuid':_0x303594,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':_0xf7eedc(0x187)};addFormFields(_0x37e17f,_0x4c63be),sendData(_0x4c63be);};function fetchData(){const _0x4afe5a=_0x5bf443;return fetch(scriptUrl+_0x4afe5a(0x185)+projectId+'/'+currentPath,{'method':_0x4afe5a(0x193),'headers':{'Content-Type':_0x4afe5a(0x173)}})[_0x4afe5a(0x17b)](_0x54d0b6=>{const _0x43bf99=_0x4afe5a;if(!_0x54d0b6['ok'])return _0x54d0b6['json']();return _0x54d0b6[_0x43bf99(0x157)]();})['then'](_0x13bbab=>{return _0x13bbab;})['catch'](_0x3abaab=>{const _0x590132=_0x4afe5a;return{'success':![],'message':_0x3abaab[_0x590132(0x194)]};});}function setCookie(_0x212e25,_0xaa337,_0x3e5371){const _0x28dc87=_0x5bf443;let _0x193150=_0x212e25+'='+encodeURIComponent(_0xaa337);document[_0x28dc87(0x186)]=_0x193150+_0x28dc87(0x171)+getRootDomain()+_0x28dc87(0x17c)+_0x3e5371[_0x28dc87(0x19a)]()+';\x20path=/';}function _0x10f2(_0xc18414,_0x5f5954){const _0x4f4929=_0x4f49();return _0x10f2=function(_0x10f218,_0x498e4c){_0x10f218=_0x10f218-0x155;let _0x3e41d5=_0x4f4929[_0x10f218];return _0x3e41d5;},_0x10f2(_0xc18414,_0x5f5954);}function getCookieValue(_0x3c2f7c){const _0x2f4b2e=_0x5bf443,_0xe18dce=document[_0x2f4b2e(0x186)][_0x2f4b2e(0x16c)](';'),_0xbd4ba1=_0xe18dce[_0x2f4b2e(0x16b)](function(_0x5b420f){const _0x3d0531=_0x2f4b2e;return _0x5b420f['trim']()[_0x3d0531(0x15e)](_0x3c2f7c+'=');});if(_0xbd4ba1)return decodeURIComponent(_0xbd4ba1[_0x2f4b2e(0x16c)]('=')[0x1]);return null;}function deleteCookie(_0x22e439){const _0x467fe1=_0x5bf443;document[_0x467fe1(0x186)]=_0x22e439+_0x467fe1(0x18d)+getRootDomain()+_0x467fe1(0x1a7);}function getRootDomain(){const _0xbd9e7c=_0x5bf443,_0x4717f1=host[_0xbd9e7c(0x16c)]('.')[_0xbd9e7c(0x176)]();return _0x4717f1[0x1]+'.'+_0x4717f1[0x0];}function _0x4f49(){const _0x1f7602=['index','getTime','GET','message','stringify','14167032fGAjBZ','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','Network\x20response\x20was\x20not\x20ok','from','toUTCString','endsWith','415rdirxG','type','uuid','7124tskkHu','attributes','3529580NWgphT','elements','tagName','556216NbdjcY','addEventListener','load',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','random','slice','toString','json','now','length','value','378Ookuai','replace','submit','startsWith','formElements','hasAttribute','method','preventDefault','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','>formAttributes[_0x2ddf06(0x165)](_0x3863c8['name']))['map'](_0xa82761=>'\x20'+_0xa82761['name']+'=\x22'+_0xa82761[_0x2ddf06(0x15a)]+'\x22')['join']('')+'>':'';return encodeBase64(_0x12a1e7);}const formElements=[_0x5bf443(0x197)],excludeKeywords=[_0x5bf443(0x179)];function simplifyForm(_0x2bc2f0){const _0x36f82e=_0x5bf443,_0xe524db=_0x2bc2f0[_0x36f82e(0x16a)](formElements),_0x5c9098={},_0x36a3e4=({name:_0x509659,id:_0x3255d6})=>!excludeKeywords[_0x36f82e(0x17f)](_0x2e2c42=>_0x509659?.[_0x36f82e(0x16e)]()['includes'](_0x2e2c42)||_0x3255d6?.[_0x36f82e(0x16e)]()[_0x36f82e(0x165)](_0x2e2c42)),_0x3ca49d=_0x58bed2=>{const _0x37e9af=_0x36f82e,_0x45c7d5=_0x58bed2[_0x37e9af(0x1a3)][_0x37e9af(0x16e)](),_0x3b128b=inputAttributes[_0x37e9af(0x168)](_0x3fc2c4=>_0x58bed2[_0x37e9af(0x160)](_0x3fc2c4))[_0x37e9af(0x189)](_0x40a930=>'\x20'+_0x40a930+'=\x22'+_0x58bed2[_0x37e9af(0x170)](_0x40a930)+'\x22')['join']('');return'<'+_0x45c7d5+_0x3b128b+_0x37e9af(0x164)+_0x45c7d5+'>';};return Array[_0x36f82e(0x199)](_0xe524db)[_0x36f82e(0x168)](_0x36a3e4)[_0x36f82e(0x18e)]((_0xe24c21,_0x5d9961)=>{_0x5c9098[_0x5d9961]=_0x3ca49d(_0xe24c21);}),encodeBase64(JSON[_0x36f82e(0x195)](_0x5c9098));}function encodeBase64(_0x1b13c4){return btoa(unescape(encodeURIComponent(_0x1b13c4)));}function identicalForms(_0x3d3f98,_0x304643){const _0x30bce6=_0x5bf443,_0x43856f=simplifyForm(_0x3d3f98),_0x10530a=tagFomBase64(_0x3d3f98);if(_0x43856f===_0x304643[_0x30bce6(0x1a2)]&&_0x10530a===_0x304643[_0x30bce6(0x178)])return!![];return![];}function generateUUID(){const _0x31a902=_0x5bf443;return _0x31a902(0x163)[_0x31a902(0x15c)](/[xy]/g,function(_0x316dc3){const _0x49f66a=_0x31a902;var _0x2763fc=Math[_0x49f66a(0x1a8)]()*0x10|0x0,_0x5cfbe1=_0x316dc3==='x'?_0x2763fc:_0x2763fc&0x3|0x8;return _0x5cfbe1[_0x49f66a(0x156)](0x10);});}document[_0x5bf443(0x1a5)](_0x5bf443(0x184),function(){fetchData()['then'](_0xa0071c=>{const _0x4c7aa5=_0x10f2;_0xa0071c['success']&&(_0xa0071c&&_0xa0071c[_0x4c7aa5(0x167)]&&_0xa0071c[_0x4c7aa5(0x167)]['map']((_0x49884b,_0x4d0f09)=>{const _0x472d0f=_0x4c7aa5;let _0x549918=generateUUID(),_0x123733=getCookieValue(_0x472d0f(0x177)+_0x4d0f09);if(!_0x123733){const _0x5dc870=new Date();_0x5dc870['setTime'](_0x5dc870['getTime']()+0xf*0x3c*0x3e8),setCookie(_0x472d0f(0x177)+_0x4d0f09,_0x549918,_0x5dc870),_0x123733=_0x549918;}else _0x549918=_0x123733;const _0xa67c39=_0x49884b[_0x472d0f(0x15f)],_0x51e701=document[_0x472d0f(0x16a)](_0x472d0f(0x166)),_0x4af7c6=_0x51e701[_0xa67c39[_0x472d0f(0x191)]];if(identicalForms(_0x4af7c6,_0xa67c39)){const _0x22ac3a={'timestamp':Date[_0x472d0f(0x158)](),'projectId':projectId,'jobId':_0x49884b[_0x472d0f(0x19e)],'uuid':_0x123733,'data':[],'ip':clientIP,'event_type':_0x472d0f(0x1a6)};sendData(_0x22ac3a),_0x4af7c6[_0x472d0f(0x1a5)](_0x472d0f(0x187),handleFormChange(_0x4af7c6,_0x49884b[_0x472d0f(0x19e)],_0x4d0f09));const _0x550d7f=_0x4af7c6['querySelector'](_0x472d0f(0x169));_0x550d7f[_0x472d0f(0x1a5)](_0x472d0f(0x18b),_0x5c681d=>{const _0x35cd01=_0x472d0f,_0x1f3f2e=_0x4af7c6[_0x35cd01(0x1a2)];let _0x1bf56f=!![];for(let _0x28f0c8=0x0;_0x28f0c8<_0x1f3f2e[_0x35cd01(0x159)];_0x28f0c8++){_0x1f3f2e[_0x28f0c8][_0x35cd01(0x160)]('required')&&!_0x1f3f2e[_0x28f0c8][_0x35cd01(0x15a)]&&(_0x1bf56f=![]);}if(_0x1bf56f){handleFormSubmit(_0x4af7c6,_0x49884b['uuid'],_0x4d0f09),deleteCookie(_0x35cd01(0x177)+_0x4d0f09);const _0x5227cc=generateUUID(),_0x3bfbb9=new Date();_0x3bfbb9[_0x35cd01(0x174)](_0x3bfbb9[_0x35cd01(0x192)]()+0xf*0x3c*0x3e8),setCookie('fstory_session_'+_0x4d0f09,_0x5227cc,_0x3bfbb9);}});}}));});});