const _0x51eb5f=_0x9caf;(function(_0x1e76bf,_0x81f8c){const _0x2a3c22=_0x9caf,_0x69b093=_0x1e76bf();while(!![]){try{const _0x26adf3=parseInt(_0x2a3c22(0xb3))/0x1+parseInt(_0x2a3c22(0xa9))/0x2+-parseInt(_0x2a3c22(0xa1))/0x3*(parseInt(_0x2a3c22(0x9a))/0x4)+parseInt(_0x2a3c22(0xa4))/0x5*(-parseInt(_0x2a3c22(0xc5))/0x6)+-parseInt(_0x2a3c22(0xb8))/0x7*(parseInt(_0x2a3c22(0xb0))/0x8)+parseInt(_0x2a3c22(0x8b))/0x9*(parseInt(_0x2a3c22(0xb6))/0xa)+-parseInt(_0x2a3c22(0xa0))/0xb*(-parseInt(_0x2a3c22(0x92))/0xc);if(_0x26adf3===_0x81f8c)break;else _0x69b093['push'](_0x69b093['shift']());}catch(_0x17a081){_0x69b093['push'](_0x69b093['shift']());}}}(_0x564f,0xa5f5e));const projectId=_0x51eb5f(0xc9),trackingUrl=_0x51eb5f(0x87),scriptUrl='https://t.formstory.io',clientIP='216.73.216.138';function _0x564f(){const _0x58c505=['1027114JLLFMX','3ZUYBsH','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','name','13690LoQwUt','now',';\x20expires=','pathname','random','970268WvLQpS','required','password','from','formFields','hostname','form','83256RqSEQr','value','includes','569192pYGmPA','length','endsWith','10AZvTpW','toUTCString','749hQpBtx','application/json','uuid','[type=\x22submit\x22]','then','load','data',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','submit','addEventListener','stringify','push','startsWith','174osCfCE','hasAttribute','setTime','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','3102e7da-68e2-4c28-b32c-de712df81b06','DOMContentLoaded','Network\x20response\x20was\x20not\x20ok','toString','getAttribute','hidden','catch','formElements','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','fstory_session_','POST','querySelectorAll','4836537qmVXrS','map',';domain=.','error','find','cookie',';\x20path=/','144OMFnwZ','split','json','change','replace','index','location','preventDefault','3357928RHRKOD','getTime','=;\x20domain=.','elements','slice','querySelector'];_0x564f=function(){return _0x58c505;};return _0x564f();}let currentPath=window[_0x51eb5f(0x98)][_0x51eb5f(0xa7)],host=window['location'][_0x51eb5f(0xae)];currentPath[_0x51eb5f(0xb5)]('/')&¤tPath[_0x51eb5f(0xb4)]>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath[_0x51eb5f(0x96)](/\//g,'_');const sendData=_0x3a3fc3=>{const _0x57234e=_0x51eb5f;fetch(trackingUrl,{'method':_0x57234e(0x89),'headers':{'Content-Type':_0x57234e(0xb9)},'body':JSON[_0x57234e(0xc2)](_0x3a3fc3)})[_0x57234e(0xbc)](_0x4216a5=>{const _0x480e9f=_0x57234e;if(!_0x4216a5['ok'])throw new Error(_0x480e9f(0x81));})['catch'](_0x4f0f9a=>{const _0xfdfaeb=_0x57234e;console[_0xfdfaeb(0x8e)](_0x4f0f9a);});},addFormFields=(_0xb777db,_0xcd7dfd)=>{const _0x30e77c=_0x51eb5f;let _0x1cfd2a=_0xb777db[_0x30e77c(0x9d)],_0x26ae96={};for(let _0x3c9282=0x0;_0x3c9282<_0x1cfd2a[_0x30e77c(0xb4)];_0x3c9282++){let _0x3e4e71=_0x1cfd2a[_0x3c9282],_0x4bd278=_0x3e4e71[_0x30e77c(0xa3)]!==''?_0x3e4e71[_0x30e77c(0xa3)]:_0x3e4e71['id'];if(_0x3e4e71['type']===_0x30e77c(0x84)||_0x3e4e71['type']===_0x30e77c(0xab)||_0x4bd278==='')continue;if(_0x4bd278[_0x30e77c(0xb5)]('[]')){let _0x2f31a1=_0x4bd278[_0x30e77c(0x9e)](0x0,-0x2),_0x374252=_0x3e4e71[_0x30e77c(0xb1)]||'';!_0x26ae96[_0x2f31a1]?_0x26ae96[_0x2f31a1]={'label':_0x2f31a1,'value':_0x374252}:_0x26ae96[_0x2f31a1]['value']+=_0x374252[_0x30e77c(0xb4)]>0x0?',\x20'+_0x374252:'';}else _0xcd7dfd[_0x30e77c(0xbe)][_0x30e77c(0xc3)]({'label':_0x4bd278,'value':_0x3e4e71[_0x30e77c(0xb1)]||''});}for(let _0x2f7ea8 in _0x26ae96){_0xcd7dfd[_0x30e77c(0xbe)][_0x30e77c(0xc3)](_0x26ae96[_0x2f7ea8]);}},handleFormSubmit=(_0x57a11a,_0xdca00e,_0x2b6398)=>{const _0xcdd179=_0x51eb5f,_0x51f99a=getCookieValue(_0xcdd179(0x88)+_0x2b6398);let _0x578825={'projectId':projectId,'jobId':_0xdca00e,'uuid':_0x51f99a,'data':[],'timestamp':Date[_0xcdd179(0xa5)](),'ip':clientIP,'event_type':_0xcdd179(0xc0)};addFormFields(_0x57a11a,_0x578825),sendData(_0x578825);},handleFormChange=(_0x853c06,_0x541114,_0x53dd4e)=>_0x3ea24b=>{const _0x232ae7=_0x51eb5f;_0x3ea24b[_0x232ae7(0x99)]();const _0x468965=getCookieValue(_0x232ae7(0x88)+_0x53dd4e),_0x2b7968={'projectId':projectId,'jobId':_0x541114,'uuid':_0x468965,'timestamp':Date[_0x232ae7(0xa5)](),'data':[],'ip':clientIP,'event_type':_0x232ae7(0x95)};addFormFields(_0x853c06,_0x2b7968),sendData(_0x2b7968);};function fetchData(){const _0x4e3c94=_0x51eb5f;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':'GET','headers':{'Content-Type':_0x4e3c94(0xb9)}})[_0x4e3c94(0xbc)](_0x281b0c=>{const _0x321385=_0x4e3c94;if(!_0x281b0c['ok'])return _0x281b0c[_0x321385(0x94)]();return _0x281b0c[_0x321385(0x94)]();})[_0x4e3c94(0xbc)](_0x500053=>{return _0x500053;})[_0x4e3c94(0x85)](_0x3ea60f=>{return{'success':![],'message':_0x3ea60f['message']};});}function setCookie(_0x1acf2c,_0x1693ba,_0x5e6268){const _0x47e41a=_0x51eb5f;let _0x3c0718=_0x1acf2c+'='+encodeURIComponent(_0x1693ba);document[_0x47e41a(0x90)]=_0x3c0718+_0x47e41a(0x8d)+getRootDomain()+_0x47e41a(0xa6)+_0x5e6268[_0x47e41a(0xb7)]()+_0x47e41a(0x91);}function getCookieValue(_0x38688b){const _0x2248c7=_0x51eb5f,_0x19a597=document[_0x2248c7(0x90)][_0x2248c7(0x93)](';'),_0x5c3566=_0x19a597[_0x2248c7(0x8f)](function(_0xbc3710){const _0x14324f=_0x2248c7;return _0xbc3710['trim']()[_0x14324f(0xc4)](_0x38688b+'=');});if(_0x5c3566)return decodeURIComponent(_0x5c3566[_0x2248c7(0x93)]('=')[0x1]);return null;}function deleteCookie(_0x5b03a5){const _0x5a5b23=_0x51eb5f;document[_0x5a5b23(0x90)]=_0x5b03a5+_0x5a5b23(0x9c)+getRootDomain()+_0x5a5b23(0xbf);}function getRootDomain(){const _0x9e4e07=_0x51eb5f,_0x390b47=host[_0x9e4e07(0x93)]('.')['reverse']();return _0x390b47[0x1]+'.'+_0x390b47[0x0];}function _0x9caf(_0x516472,_0x4066da){const _0x564fc4=_0x564f();return _0x9caf=function(_0x9caf05,_0x559130){_0x9caf05=_0x9caf05-0x80;let _0x23024e=_0x564fc4[_0x9caf05];return _0x23024e;},_0x9caf(_0x516472,_0x4066da);}const formElements=[_0x51eb5f(0xa2)];function encodeBase64(_0x51b04d){return btoa(unescape(encodeURIComponent(_0x51b04d)));}function identicalForms(_0x21905d,_0x56f4ef){const _0x44fa37=_0x51eb5f,_0x3fd6a4=_0x21905d[_0x44fa37(0x8a)](formElements),_0x43b2ad=Array[_0x44fa37(0xac)](_0x3fd6a4)[_0x44fa37(0x8c)](_0x9eade4=>{const _0x3f6be3=_0x44fa37;if(_0x9eade4[_0x3f6be3(0xc6)](_0x3f6be3(0xa3))){let _0x2b3264=_0x9eade4[_0x3f6be3(0x83)]('name');return _0x2b3264[_0x3f6be3(0xb5)]('[]')&&(_0x2b3264=_0x2b3264[_0x3f6be3(0x9e)](0x0,-0x2)),_0x2b3264;}return null;})['filter'](Boolean);return _0x56f4ef['every'](_0x2463f9=>_0x43b2ad[_0x44fa37(0xb2)](_0x2463f9));}function generateUUID(){const _0x444101=_0x51eb5f;return _0x444101(0xc8)[_0x444101(0x96)](/[xy]/g,function(_0xec9125){const _0x15f60c=_0x444101;var _0x4fed27=Math[_0x15f60c(0xa8)]()*0x10|0x0,_0x35499d=_0xec9125==='x'?_0x4fed27:_0x4fed27&0x3|0x8;return _0x35499d[_0x15f60c(0x82)](0x10);});}document[_0x51eb5f(0xc1)](_0x51eb5f(0x80),function(){fetchData()['then'](_0xf3dce8=>{const _0x310f1b=_0x9caf;_0xf3dce8['success']&&(_0xf3dce8&&_0xf3dce8[_0x310f1b(0xbe)]&&_0xf3dce8['data']['map']((_0x36cb42,_0x579e59)=>{const _0x1e4ae6=_0x310f1b;let _0x543ffd=generateUUID(),_0x45288c=getCookieValue(_0x1e4ae6(0x88)+_0x579e59);if(!_0x45288c){const _0x5ccfa1=new Date();_0x5ccfa1[_0x1e4ae6(0xc7)](_0x5ccfa1[_0x1e4ae6(0x9b)]()+0xf*0x3c*0x3e8),setCookie(_0x1e4ae6(0x88)+_0x579e59,_0x543ffd,_0x5ccfa1),_0x45288c=_0x543ffd;}const _0x4fe7b4=_0x36cb42[_0x1e4ae6(0xad)],_0xd87bcf=_0x36cb42[_0x1e4ae6(0x86)][_0x1e4ae6(0x97)],_0x5a5501=document[_0x1e4ae6(0x8a)](_0x1e4ae6(0xaf)),_0x1b185a=_0x5a5501[_0xd87bcf];if(identicalForms(_0x1b185a,_0x4fe7b4)){const _0x4a8675={'timestamp':Date[_0x1e4ae6(0xa5)](),'projectId':projectId,'jobId':_0x36cb42[_0x1e4ae6(0xba)],'uuid':_0x45288c,'data':[],'ip':clientIP,'event_type':_0x1e4ae6(0xbd)};sendData(_0x4a8675),_0x1b185a['addEventListener'](_0x1e4ae6(0x95),handleFormChange(_0x1b185a,_0x36cb42[_0x1e4ae6(0xba)],_0x579e59));const _0x574cef=_0x1b185a[_0x1e4ae6(0x9f)](_0x1e4ae6(0xbb));_0x574cef['addEventListener']('click',_0x1b904b=>{const _0x4d00cc=_0x1e4ae6,_0x44cfd8=_0x1b185a[_0x4d00cc(0x9d)];let _0x497ec0=!![];for(let _0x2c622e=0x0;_0x2c622e<_0x44cfd8['length'];_0x2c622e++){_0x44cfd8[_0x2c622e]['hasAttribute'](_0x4d00cc(0xaa))&&!_0x44cfd8[_0x2c622e][_0x4d00cc(0xb1)]&&(_0x497ec0=![]);}if(_0x497ec0){handleFormSubmit(_0x1b185a,_0x36cb42[_0x4d00cc(0xba)],_0x579e59),deleteCookie('fstory_session_'+_0x579e59);const _0x3b8eda=generateUUID(),_0x5a141a=new Date();_0x5a141a['setTime'](_0x5a141a[_0x4d00cc(0x9b)]()+0xf*0x3c*0x3e8),setCookie(_0x4d00cc(0x88)+_0x579e59,_0x3b8eda,_0x5a141a);}});}}));});});