const _0x4cc7d4=_0x35dc;(function(_0x396fbd,_0x15f4ac){const _0x534f50=_0x35dc,_0x92481d=_0x396fbd();while(!![]){try{const _0x3b5aa1=-parseInt(_0x534f50(0x12d))/0x1*(-parseInt(_0x534f50(0xfc))/0x2)+parseInt(_0x534f50(0x108))/0x3*(parseInt(_0x534f50(0x10b))/0x4)+parseInt(_0x534f50(0xf8))/0x5*(-parseInt(_0x534f50(0x123))/0x6)+-parseInt(_0x534f50(0x12e))/0x7*(parseInt(_0x534f50(0x105))/0x8)+parseInt(_0x534f50(0x121))/0x9+-parseInt(_0x534f50(0x10a))/0xa*(-parseInt(_0x534f50(0x122))/0xb)+parseInt(_0x534f50(0x127))/0xc*(parseInt(_0x534f50(0x112))/0xd);if(_0x3b5aa1===_0x15f4ac)break;else _0x92481d['push'](_0x92481d['shift']());}catch(_0x43e0c7){_0x92481d['push'](_0x92481d['shift']());}}}(_0x2b20,0x20c9f));const projectId=_0x4cc7d4(0x12a),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x4cc7d4(0x11e),uuid=_0x4cc7d4(0x118),clientIP='3.138.175.180';let currentPath=window[_0x4cc7d4(0xf9)][_0x4cc7d4(0x12b)],host=window[_0x4cc7d4(0xf9)]['hostname'];function _0x2b20(){const _0x4743c5=['1762974gSFKyz','128183DBqoxw','6cfniat','DOMContentLoaded','addEventListener','json','12RsgZoj','data','getTime','53dcc156-259d-430f-8c5d-9e19c7a441f5','pathname','FIRST_ORDERED_NODE_TYPE','326mQjFxh','7SMAKng','change','xpath','endsWith','type','name','message',';\x20expires=','replace','startsWith','stringify','890305qMjUZl','location',';domain=.','then','356YtIkCP','toUTCString','GET','split','cookie',';\x20path=/','application/json','reverse','setTime','1603592mwIdgJ','evaluate','uuid','410073AShGCn','now','70JAwiEU','4TXaFnL','required','push','value','submit','querySelector','Network\x20response\x20was\x20not\x20ok','528281pSqhkk','success',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','hasAttribute','elements','[type=\x22submit\x22]','cc6a47cd-32bd-4f24-9ded-4dc6471e4024','find','load','length','catch','fstory_session','https://t.formstory.io','trim','POST'];_0x2b20=function(){return _0x4743c5;};return _0x2b20();}currentPath[_0x4cc7d4(0x131)]('/')&¤tPath[_0x4cc7d4(0x11b)]>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath[_0x4cc7d4(0x136)](/\//g,'_');let jobId='';const sendData=_0x20f0dd=>{const _0xebd3e8=_0x4cc7d4;fetch(trackingUrl,{'method':_0xebd3e8(0x120),'headers':{'Content-Type':_0xebd3e8(0x102)},'body':JSON[_0xebd3e8(0xf7)](_0x20f0dd)})[_0xebd3e8(0xfb)](_0x51fa20=>{const _0x5c161e=_0xebd3e8;if(!_0x51fa20['ok'])throw new Error(_0x5c161e(0x111));})[_0xebd3e8(0x11c)](_0x21c8e7=>{console['error'](_0x21c8e7);});},addFormFields=(_0x37744c,_0x4eeb80)=>{const _0x1a5ce1=_0x4cc7d4;let _0x27ef23=_0x37744c[_0x1a5ce1(0x116)];for(let _0x4f20ef=0x0;_0x4f20ef<_0x27ef23[_0x1a5ce1(0x11b)];_0x4f20ef++){let _0x5199c8=_0x27ef23[_0x4f20ef][_0x1a5ce1(0x133)]!==''?_0x27ef23[_0x4f20ef]['name']:_0x27ef23[_0x4f20ef]['id'];if(_0x27ef23[_0x4f20ef][_0x1a5ce1(0x132)]==='hidden'||_0x5199c8==='')continue;_0x4eeb80[_0x1a5ce1(0x128)][_0x1a5ce1(0x10d)]({'label':_0x5199c8,'value':_0x27ef23[_0x4f20ef][_0x1a5ce1(0x10e)]});}},handleFormSubmit=(_0x5c7185,_0x444c86)=>{const _0x3c71ab=_0x4cc7d4;let _0x200a4d={'projectId':projectId,'jobId':jobId,'uuid':_0x444c86,'data':[],'timestamp':Date[_0x3c71ab(0x109)](),'ip':clientIP,'event_type':_0x3c71ab(0x10f)};addFormFields(_0x5c7185,_0x200a4d),sendData(_0x200a4d);},handleFormChange=(_0x50c23b,_0x28319a)=>_0x323c76=>{const _0x335f8f=_0x4cc7d4;_0x323c76['preventDefault']();const _0x2857a6={'projectId':projectId,'jobId':jobId,'uuid':_0x28319a,'timestamp':Date[_0x335f8f(0x109)](),'data':[],'ip':clientIP,'event_type':_0x335f8f(0x12f)};addFormFields(_0x50c23b,_0x2857a6),sendData(_0x2857a6);};function fetchData(){const _0x2a5641=_0x4cc7d4;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x2a5641(0xfe),'headers':{'Content-Type':_0x2a5641(0x102)}})[_0x2a5641(0xfb)](_0x28bac=>{const _0x34f12c=_0x2a5641;if(!_0x28bac['ok'])return _0x28bac[_0x34f12c(0x126)]();return _0x28bac[_0x34f12c(0x126)]();})[_0x2a5641(0xfb)](_0x172c02=>{return _0x172c02;})[_0x2a5641(0x11c)](_0x4019ab=>{const _0x3b34a7=_0x2a5641;return{'success':![],'message':_0x4019ab[_0x3b34a7(0x134)]};});}function setCookie(_0x135b51,_0x5038fb,_0x3dcc08){const _0x444297=_0x4cc7d4;let _0x3237b1=_0x135b51+'='+encodeURIComponent(_0x5038fb);document[_0x444297(0x100)]=_0x3237b1+_0x444297(0xfa)+getRootDomain()+_0x444297(0x135)+_0x3dcc08[_0x444297(0xfd)]()+_0x444297(0x101);}function getCookieValue(_0x4465f0){const _0x41bb3b=_0x4cc7d4,_0x3819cd=document[_0x41bb3b(0x100)]['split'](';'),_0xd6a1c9=_0x3819cd[_0x41bb3b(0x119)](function(_0x4c62c2){const _0x54e261=_0x41bb3b;return _0x4c62c2[_0x54e261(0x11f)]()[_0x54e261(0x137)](_0x4465f0+'=');});if(_0xd6a1c9)return decodeURIComponent(_0xd6a1c9[_0x41bb3b(0xff)]('=')[0x1]);return null;}function _0x35dc(_0x37f659,_0x46f0be){const _0x2b2013=_0x2b20();return _0x35dc=function(_0x35dc03,_0x562ab1){_0x35dc03=_0x35dc03-0xf7;let _0x557718=_0x2b2013[_0x35dc03];return _0x557718;},_0x35dc(_0x37f659,_0x46f0be);}function deleteCookie(_0x58bd7c){const _0x56e366=_0x4cc7d4;document[_0x56e366(0x100)]=_0x58bd7c+'=;\x20domain=.'+getRootDomain()+_0x56e366(0x114);}function getRootDomain(){const _0x41b4ce=_0x4cc7d4,_0x595b0b=host[_0x41b4ce(0xff)]('.')[_0x41b4ce(0x103)]();return _0x595b0b[0x1]+'.'+_0x595b0b[0x0];}document['addEventListener'](_0x4cc7d4(0x124),function(){const _0x33b5bd=_0x4cc7d4;fetchData()[_0x33b5bd(0xfb)](_0xe3a96a=>{const _0x117563=_0x33b5bd;if(_0xe3a96a[_0x117563(0x113)]){if(_0xe3a96a&&_0xe3a96a[_0x117563(0x128)]){let _0x30a4eb=getCookieValue(_0x117563(0x11d));if(!_0x30a4eb){const _0x570cbf=new Date();_0x570cbf[_0x117563(0x104)](_0x570cbf[_0x117563(0x129)]()+0x5*0x3c*0x3e8),setCookie(_0x117563(0x11d),uuid,_0x570cbf),_0x30a4eb=uuid;}jobId=_0xe3a96a[_0x117563(0x128)][_0x117563(0x107)];const _0x2a992c=document[_0x117563(0x106)](_0xe3a96a[_0x117563(0x128)][_0x117563(0x130)],document,null,XPathResult[_0x117563(0x12c)],null)['singleNodeValue'];if(_0x2a992c){const _0x4cea1e={'timestamp':Date[_0x117563(0x109)](),'projectId':projectId,'jobId':jobId,'uuid':_0x30a4eb,'data':[],'ip':clientIP,'event_type':_0x117563(0x11a)};sendData(_0x4cea1e),_0x2a992c[_0x117563(0x125)](_0x117563(0x12f),handleFormChange(_0x2a992c,_0x30a4eb));const _0x2091e8=_0x2a992c[_0x117563(0x110)](_0x117563(0x117));_0x2091e8[_0x117563(0x125)]('click',_0x387abe=>{const _0x5a16ce=_0x117563,_0x23a916=_0x2a992c[_0x5a16ce(0x116)];let _0x36227a=!![];for(let _0x17d268=0x0;_0x17d268<_0x23a916['length'];_0x17d268++){_0x23a916[_0x17d268][_0x5a16ce(0x115)](_0x5a16ce(0x10c))&&!_0x23a916[_0x17d268][_0x5a16ce(0x10e)]&&(_0x36227a=![]);}_0x36227a&&(deleteCookie('fstory_session'),handleFormSubmit(_0x2a992c,_0x30a4eb));});}}}});});