function _0x4e7e(){const _0x3ef665=[';\x20path=/','form','GET',';\x20expires=','filter','1117330RIlzVW','elements','now','split','formElements','trim','click','application/json','2630808uhxCZS','uuid','random','message','replace','32124kPHuAd','addEventListener','pathname','preventDefault','required','hasAttribute','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','stringify','da065b23-e259-423f-a54b-c3c91fef2d51','submit','cookie','78EWWxRW','value','2259952NgIJJL','784406Vwpqxi','push','POST','change','name','fstory_session_','formFields','DOMContentLoaded','every','includes','from','json','hostname','126712qQeKgK','setTime',';domain=.','success','Network\x20response\x20was\x20not\x20ok','error','endsWith',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','4925298yIzkyU','find','type','then','toString','657Pivdtk','querySelectorAll','catch','getTime','startsWith','map','slice','location','=;\x20domain=.','length','index'];_0x4e7e=function(){return _0x3ef665;};return _0x4e7e();}const _0x1c56c5=_0x5ac8;(function(_0x528ca5,_0xb3e7e3){const _0x5c1fcb=_0x5ac8,_0x43cf20=_0x528ca5();while(!![]){try{const _0x46734b=-parseInt(_0x5c1fcb(0xdf))/0x1+-parseInt(_0x5c1fcb(0xdc))/0x2*(-parseInt(_0x5c1fcb(0xd1))/0x3)+parseInt(_0x5c1fcb(0xde))/0x4+parseInt(_0x5c1fcb(0xc4))/0x5+-parseInt(_0x5c1fcb(0xcc))/0x6+-parseInt(_0x5c1fcb(0xf4))/0x7+-parseInt(_0x5c1fcb(0xec))/0x8*(-parseInt(_0x5c1fcb(0xf9))/0x9);if(_0x46734b===_0xb3e7e3)break;else _0x43cf20['push'](_0x43cf20['shift']());}catch(_0x3163a5){_0x43cf20['push'](_0x43cf20['shift']());}}}(_0x4e7e,0x6a671));const projectId=_0x1c56c5(0xd9),trackingUrl=_0x1c56c5(0xd7),scriptUrl='https://t.formstory.io',clientIP='216.73.216.141';let currentPath=window[_0x1c56c5(0xbb)][_0x1c56c5(0xd3)],host=window[_0x1c56c5(0xbb)][_0x1c56c5(0xeb)];currentPath[_0x1c56c5(0xf2)]('/')&¤tPath[_0x1c56c5(0xbd)]>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath['replace'](/\//g,'_');const sendData=_0x50196=>{const _0x659cf3=_0x1c56c5;fetch(trackingUrl,{'method':_0x659cf3(0xe1),'headers':{'Content-Type':_0x659cf3(0xcb)},'body':JSON[_0x659cf3(0xd8)](_0x50196)})['then'](_0x302394=>{const _0x203e51=_0x659cf3;if(!_0x302394['ok'])throw new Error(_0x203e51(0xf0));})['catch'](_0x5962e4=>{const _0xf9ae47=_0x659cf3;console[_0xf9ae47(0xf1)](_0x5962e4);});},addFormFields=(_0x1962fd,_0x56abac)=>{const _0x5b3cf4=_0x1c56c5;let _0x48cf71=_0x1962fd[_0x5b3cf4(0xc5)],_0x400d44={};for(let _0x496799=0x0;_0x496799<_0x48cf71[_0x5b3cf4(0xbd)];_0x496799++){let _0x4f9327=_0x48cf71[_0x496799],_0xf3ffb2=_0x4f9327[_0x5b3cf4(0xe3)]!==''?_0x4f9327[_0x5b3cf4(0xe3)]:_0x4f9327['id'];if(_0x4f9327[_0x5b3cf4(0xf6)]==='hidden'||_0x4f9327[_0x5b3cf4(0xf6)]==='password'||_0xf3ffb2==='')continue;if(_0xf3ffb2['endsWith']('[]')){let _0x1973b9=_0xf3ffb2[_0x5b3cf4(0xba)](0x0,-0x2),_0x25d277=_0x4f9327[_0x5b3cf4(0xdd)]||'';!_0x400d44[_0x1973b9]?_0x400d44[_0x1973b9]={'label':_0x1973b9,'value':_0x25d277}:_0x400d44[_0x1973b9]['value']+=_0x25d277[_0x5b3cf4(0xbd)]>0x0?',\x20'+_0x25d277:'';}else _0x56abac['data']['push']({'label':_0xf3ffb2,'value':_0x4f9327['value']||''});}for(let _0x3b52f9 in _0x400d44){_0x56abac['data'][_0x5b3cf4(0xe0)](_0x400d44[_0x3b52f9]);}},handleFormSubmit=(_0x59d164,_0x2f7e43,_0x45f7f4)=>{const _0xef76fe=_0x1c56c5,_0x241ad9=getCookieValue(_0xef76fe(0xe4)+_0x45f7f4);let _0x5ce614={'projectId':projectId,'jobId':_0x2f7e43,'uuid':_0x241ad9,'data':[],'timestamp':Date[_0xef76fe(0xc6)](),'ip':clientIP,'event_type':_0xef76fe(0xda)};addFormFields(_0x59d164,_0x5ce614),sendData(_0x5ce614);},handleFormChange=(_0x132725,_0xf34d4d,_0x513889)=>_0x171966=>{const _0x798bae=_0x1c56c5;_0x171966[_0x798bae(0xd4)]();const _0x3f18e8=getCookieValue(_0x798bae(0xe4)+_0x513889),_0x3da692={'projectId':projectId,'jobId':_0xf34d4d,'uuid':_0x3f18e8,'timestamp':Date[_0x798bae(0xc6)](),'data':[],'ip':clientIP,'event_type':_0x798bae(0xe2)};addFormFields(_0x132725,_0x3da692),sendData(_0x3da692);};function fetchData(){const _0x5be7f8=_0x1c56c5;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x5be7f8(0xc1),'headers':{'Content-Type':'application/json'}})[_0x5be7f8(0xf7)](_0x465cc5=>{const _0x464fc0=_0x5be7f8;if(!_0x465cc5['ok'])return _0x465cc5[_0x464fc0(0xea)]();return _0x465cc5[_0x464fc0(0xea)]();})['then'](_0x299f26=>{return _0x299f26;})[_0x5be7f8(0xb6)](_0x3f6642=>{const _0x416a14=_0x5be7f8;return{'success':![],'message':_0x3f6642[_0x416a14(0xcf)]};});}function setCookie(_0x4af445,_0x38067c,_0x28e5d8){const _0x124f61=_0x1c56c5;let _0x3452b9=_0x4af445+'='+encodeURIComponent(_0x38067c);document[_0x124f61(0xdb)]=_0x3452b9+_0x124f61(0xee)+getRootDomain()+_0x124f61(0xc2)+_0x28e5d8['toUTCString']()+_0x124f61(0xbf);}function getCookieValue(_0xa82859){const _0x3cc37d=_0x1c56c5,_0x181766=document[_0x3cc37d(0xdb)][_0x3cc37d(0xc7)](';'),_0x46be3b=_0x181766[_0x3cc37d(0xf5)](function(_0x5b3b08){const _0x21f780=_0x3cc37d;return _0x5b3b08[_0x21f780(0xc9)]()[_0x21f780(0xb8)](_0xa82859+'=');});if(_0x46be3b)return decodeURIComponent(_0x46be3b[_0x3cc37d(0xc7)]('=')[0x1]);return null;}function deleteCookie(_0x5949ee){const _0x320b1d=_0x1c56c5;document[_0x320b1d(0xdb)]=_0x5949ee+_0x320b1d(0xbc)+getRootDomain()+_0x320b1d(0xf3);}function getRootDomain(){const _0xa4e171=host['split']('.')['reverse']();return _0xa4e171[0x1]+'.'+_0xa4e171[0x0];}const formElements=['input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output'];function encodeBase64(_0x32a718){return btoa(unescape(encodeURIComponent(_0x32a718)));}function identicalForms(_0x1e3b65,_0x59a01c){const _0x46c3f0=_0x1c56c5,_0x967dac=_0x1e3b65[_0x46c3f0(0xfa)](formElements),_0x28ef0b=Array[_0x46c3f0(0xe9)](_0x967dac)[_0x46c3f0(0xb9)](_0x1500bc=>{const _0x553d34=_0x46c3f0;if(_0x1500bc[_0x553d34(0xd6)](_0x553d34(0xe3))){let _0x393c74=_0x1500bc['getAttribute'](_0x553d34(0xe3));return _0x393c74['endsWith']('[]')&&(_0x393c74=_0x393c74['slice'](0x0,-0x2)),_0x393c74;}return null;})[_0x46c3f0(0xc3)](Boolean);return _0x59a01c[_0x46c3f0(0xe7)](_0x4a5190=>_0x28ef0b[_0x46c3f0(0xe8)](_0x4a5190));}function generateUUID(){const _0x56e75b=_0x1c56c5;return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[_0x56e75b(0xd0)](/[xy]/g,function(_0x1c9021){const _0x40b2ff=_0x56e75b;var _0x3c603a=Math[_0x40b2ff(0xce)]()*0x10|0x0,_0x551eb4=_0x1c9021==='x'?_0x3c603a:_0x3c603a&0x3|0x8;return _0x551eb4[_0x40b2ff(0xf8)](0x10);});}function _0x5ac8(_0x25b78b,_0x3a6aca){const _0x4e7ea4=_0x4e7e();return _0x5ac8=function(_0x5ac84a,_0x33cd74){_0x5ac84a=_0x5ac84a-0xb6;let _0x254b34=_0x4e7ea4[_0x5ac84a];return _0x254b34;},_0x5ac8(_0x25b78b,_0x3a6aca);}document['addEventListener'](_0x1c56c5(0xe6),function(){fetchData()['then'](_0x557b80=>{const _0xa2840f=_0x5ac8;_0x557b80[_0xa2840f(0xef)]&&(_0x557b80&&_0x557b80['data']&&_0x557b80['data'][_0xa2840f(0xb9)]((_0x407171,_0x2ce70f)=>{const _0x28b70c=_0xa2840f;let _0x33fc07=generateUUID(),_0x99d6b7=getCookieValue('fstory_session_'+_0x2ce70f);if(!_0x99d6b7){const _0x3989e5=new Date();_0x3989e5[_0x28b70c(0xed)](_0x3989e5[_0x28b70c(0xb7)]()+0xf*0x3c*0x3e8),setCookie(_0x28b70c(0xe4)+_0x2ce70f,_0x33fc07,_0x3989e5),_0x99d6b7=_0x33fc07;}const _0x318817=_0x407171[_0x28b70c(0xe5)],_0x3904f1=_0x407171[_0x28b70c(0xc8)][_0x28b70c(0xbe)],_0x40a4fe=document[_0x28b70c(0xfa)](_0x28b70c(0xc0)),_0x489b23=_0x40a4fe[_0x3904f1];if(identicalForms(_0x489b23,_0x318817)){const _0x18f5ab={'timestamp':Date[_0x28b70c(0xc6)](),'projectId':projectId,'jobId':_0x407171[_0x28b70c(0xcd)],'uuid':_0x99d6b7,'data':[],'ip':clientIP,'event_type':'load'};sendData(_0x18f5ab),_0x489b23[_0x28b70c(0xd2)](_0x28b70c(0xe2),handleFormChange(_0x489b23,_0x407171['uuid'],_0x2ce70f));const _0x463d6e=_0x489b23['querySelector']('[type=\x22submit\x22]');_0x463d6e[_0x28b70c(0xd2)](_0x28b70c(0xca),_0x5cfa24=>{const _0x3f3fa7=_0x28b70c,_0x2a4453=_0x489b23[_0x3f3fa7(0xc5)];let _0x2a32b7=!![];for(let _0x16ef97=0x0;_0x16ef97<_0x2a4453[_0x3f3fa7(0xbd)];_0x16ef97++){_0x2a4453[_0x16ef97][_0x3f3fa7(0xd6)](_0x3f3fa7(0xd5))&&!_0x2a4453[_0x16ef97][_0x3f3fa7(0xdd)]&&(_0x2a32b7=![]);}if(_0x2a32b7){handleFormSubmit(_0x489b23,_0x407171['uuid'],_0x2ce70f),deleteCookie(_0x3f3fa7(0xe4)+_0x2ce70f);const _0x469212=generateUUID(),_0x31f330=new Date();_0x31f330['setTime'](_0x31f330['getTime']()+0xf*0x3c*0x3e8),setCookie(_0x3f3fa7(0xe4)+_0x2ce70f,_0x469212,_0x31f330);}});}}));});});