const _0x5071e5=_0x161b;(function(_0x228912,_0x4a7fb5){const _0x932acd=_0x161b,_0x139626=_0x228912();while(!![]){try{const _0x311bdb=parseInt(_0x932acd(0x11a))/0x1+-parseInt(_0x932acd(0x104))/0x2*(-parseInt(_0x932acd(0x10a))/0x3)+-parseInt(_0x932acd(0x109))/0x4*(-parseInt(_0x932acd(0x113))/0x5)+-parseInt(_0x932acd(0x10f))/0x6*(parseInt(_0x932acd(0xfa))/0x7)+parseInt(_0x932acd(0xf7))/0x8*(parseInt(_0x932acd(0x125))/0x9)+parseInt(_0x932acd(0x133))/0xa*(-parseInt(_0x932acd(0xf8))/0xb)+-parseInt(_0x932acd(0xfc))/0xc*(parseInt(_0x932acd(0x120))/0xd);if(_0x311bdb===_0x4a7fb5)break;else _0x139626['push'](_0x139626['shift']());}catch(_0x4d77a7){_0x139626['push'](_0x139626['shift']());}}}(_0x1bc0,0x94be6));const projectId='09137259-91a9-42da-9edb-dd7f8e0ab24f',trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x5071e5(0x12b),uuid='feac4f12-bcf1-48f9-829f-1c1766fd7ace',clientIP=_0x5071e5(0x11b);let currentPath=window['location']['pathname'],host=window[_0x5071e5(0x139)][_0x5071e5(0x123)];currentPath[_0x5071e5(0x108)]('/')&¤tPath[_0x5071e5(0x10b)]>0x1&&(currentPath=currentPath[_0x5071e5(0x112)](0x0,-0x1));currentPath=currentPath['replace'](/\//g,'_');function _0x1bc0(){const _0x4bd537=['19640604rSAaIq','name','submit','now','message','cookie','GET','type','158586MKpNro','POST','FIRST_ORDERED_NODE_TYPE','getTime','endsWith','4XxDWsT','3CjMSBV','length','json','value',';\x20path=/','521718eWRIeD','querySelector',';domain=.','slice','552845rgvdDI','preventDefault','success',';\x20expires=','uuid','push','[type=\x22submit\x22]','1126587aQEldG','3.149.249.68','data','catch','toUTCString','click','13JKncPQ','reverse','load','hostname','then','8271KAQPcN','=;\x20domain=.','split','Network\x20response\x20was\x20not\x20ok','required','error','https://t.formstory.io','addEventListener','DOMContentLoaded','/projects/','application/json','fstory_session','evaluate',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','94810GVSXVY','trim','startsWith','find','change','hasAttribute','location','9688uppDIz','11xkoHLt','xpath','14Qlkaut','stringify'];_0x1bc0=function(){return _0x4bd537;};return _0x1bc0();}let jobId='';const sendData=_0x46d8f4=>{const _0x24c963=_0x5071e5;fetch(trackingUrl,{'method':_0x24c963(0x105),'headers':{'Content-Type':_0x24c963(0x12f)},'body':JSON[_0x24c963(0xfb)](_0x46d8f4)})[_0x24c963(0x124)](_0x11d7ba=>{const _0x315190=_0x24c963;if(!_0x11d7ba['ok'])throw new Error(_0x315190(0x128));})['catch'](_0x36d436=>{const _0x46e39e=_0x24c963;console[_0x46e39e(0x12a)](_0x36d436);});},addFormFields=(_0x230ac9,_0x196fd9)=>{const _0x168402=_0x5071e5;let _0x1eb30a=_0x230ac9['elements'];for(let _0x29d291=0x0;_0x29d291<_0x1eb30a[_0x168402(0x10b)];_0x29d291++){let _0x590378=_0x1eb30a[_0x29d291]['name']!==''?_0x1eb30a[_0x29d291][_0x168402(0xfd)]:_0x1eb30a[_0x29d291]['id'];if(_0x1eb30a[_0x29d291][_0x168402(0x103)]==='hidden'||_0x590378==='')continue;_0x196fd9['data'][_0x168402(0x118)]({'label':_0x590378,'value':_0x1eb30a[_0x29d291][_0x168402(0x10d)]});}},handleFormSubmit=(_0x67d9b,_0xc31c32)=>{const _0x4c0e64=_0x5071e5;let _0x535b72={'projectId':projectId,'jobId':jobId,'uuid':_0xc31c32,'data':[],'timestamp':Date[_0x4c0e64(0xff)](),'ip':clientIP,'event_type':_0x4c0e64(0xfe)};addFormFields(_0x67d9b,_0x535b72),sendData(_0x535b72);},handleFormChange=(_0x36fca4,_0x50797f)=>_0xfd0963=>{const _0x3e0e52=_0x5071e5;_0xfd0963[_0x3e0e52(0x114)]();const _0x1b515f={'projectId':projectId,'jobId':jobId,'uuid':_0x50797f,'timestamp':Date[_0x3e0e52(0xff)](),'data':[],'ip':clientIP,'event_type':_0x3e0e52(0x137)};addFormFields(_0x36fca4,_0x1b515f),sendData(_0x1b515f);};function _0x161b(_0xcd67bd,_0x154931){const _0x1bc0d9=_0x1bc0();return _0x161b=function(_0x161b5a,_0x3c53ea){_0x161b5a=_0x161b5a-0xf7;let _0x141c2d=_0x1bc0d9[_0x161b5a];return _0x141c2d;},_0x161b(_0xcd67bd,_0x154931);}function fetchData(){const _0x3d8e1a=_0x5071e5;return fetch(scriptUrl+_0x3d8e1a(0x12e)+projectId+'/'+currentPath,{'method':_0x3d8e1a(0x102),'headers':{'Content-Type':_0x3d8e1a(0x12f)}})[_0x3d8e1a(0x124)](_0x14051f=>{const _0x418a3e=_0x3d8e1a;if(!_0x14051f['ok'])return _0x14051f[_0x418a3e(0x10c)]();return _0x14051f[_0x418a3e(0x10c)]();})[_0x3d8e1a(0x124)](_0x3bc88e=>{return _0x3bc88e;})[_0x3d8e1a(0x11d)](_0x13e553=>{const _0x5b7cb7=_0x3d8e1a;return{'success':![],'message':_0x13e553[_0x5b7cb7(0x100)]};});}function setCookie(_0x546fbe,_0x26eb92,_0x21bf1a){const _0x2aa2c9=_0x5071e5;let _0x1b8520=_0x546fbe+'='+encodeURIComponent(_0x26eb92);document[_0x2aa2c9(0x101)]=_0x1b8520+_0x2aa2c9(0x111)+getRootDomain()+_0x2aa2c9(0x116)+_0x21bf1a[_0x2aa2c9(0x11e)]()+_0x2aa2c9(0x10e);}function getCookieValue(_0x41bfeb){const _0x29ceec=_0x5071e5,_0x1ab0df=document[_0x29ceec(0x101)][_0x29ceec(0x127)](';'),_0x5d94c9=_0x1ab0df[_0x29ceec(0x136)](function(_0x68fdd9){const _0x381a83=_0x29ceec;return _0x68fdd9[_0x381a83(0x134)]()[_0x381a83(0x135)](_0x41bfeb+'=');});if(_0x5d94c9)return decodeURIComponent(_0x5d94c9[_0x29ceec(0x127)]('=')[0x1]);return null;}function deleteCookie(_0x4b1989){const _0x477fa5=_0x5071e5;document[_0x477fa5(0x101)]=_0x4b1989+_0x477fa5(0x126)+getRootDomain()+_0x477fa5(0x132);}function getRootDomain(){const _0x24549a=_0x5071e5,_0x197180=host[_0x24549a(0x127)]('.')[_0x24549a(0x121)]();return _0x197180[0x1]+'.'+_0x197180[0x0];}document['addEventListener'](_0x5071e5(0x12d),function(){const _0x331de6=_0x5071e5;fetchData()[_0x331de6(0x124)](_0x17dd3e=>{const _0x22e429=_0x331de6;if(_0x17dd3e[_0x22e429(0x115)]){if(_0x17dd3e&&_0x17dd3e['data']){let _0x458830=getCookieValue('fstory_session');if(!_0x458830){const _0x5f1ac0=new Date();_0x5f1ac0['setTime'](_0x5f1ac0[_0x22e429(0x107)]()+0x5*0x3c*0x3e8),setCookie(_0x22e429(0x130),uuid,_0x5f1ac0),_0x458830=uuid;}jobId=_0x17dd3e[_0x22e429(0x11c)][_0x22e429(0x117)];const _0x10de75=document[_0x22e429(0x131)](_0x17dd3e[_0x22e429(0x11c)][_0x22e429(0xf9)],document,null,XPathResult[_0x22e429(0x106)],null)['singleNodeValue'];if(_0x10de75){const _0x25d13f={'timestamp':Date[_0x22e429(0xff)](),'projectId':projectId,'jobId':jobId,'uuid':_0x458830,'data':[],'ip':clientIP,'event_type':_0x22e429(0x122)};sendData(_0x25d13f),_0x10de75[_0x22e429(0x12c)](_0x22e429(0x137),handleFormChange(_0x10de75,_0x458830));const _0x44906c=_0x10de75[_0x22e429(0x110)](_0x22e429(0x119));_0x44906c[_0x22e429(0x12c)](_0x22e429(0x11f),_0x106c31=>{const _0x3fea71=_0x22e429,_0x21b790=_0x10de75['elements'];let _0x5b4582=!![];for(let _0xa98605=0x0;_0xa98605<_0x21b790[_0x3fea71(0x10b)];_0xa98605++){_0x21b790[_0xa98605][_0x3fea71(0x138)](_0x3fea71(0x129))&&!_0x21b790[_0xa98605]['value']&&(_0x5b4582=![]);}_0x5b4582&&(deleteCookie(_0x3fea71(0x130)),handleFormSubmit(_0x10de75,_0x458830));});}}}});});