const _0x1f03c2=_0x19e7;(function(_0x369473,_0x4c2e16){const _0x2d1d81=_0x19e7,_0x150008=_0x369473();while(!![]){try{const _0x3bf854=parseInt(_0x2d1d81(0xe4))/0x1+-parseInt(_0x2d1d81(0x123))/0x2+parseInt(_0x2d1d81(0x126))/0x3+-parseInt(_0x2d1d81(0xf3))/0x4+-parseInt(_0x2d1d81(0x129))/0x5*(parseInt(_0x2d1d81(0x128))/0x6)+parseInt(_0x2d1d81(0x103))/0x7+parseInt(_0x2d1d81(0x125))/0x8;if(_0x3bf854===_0x4c2e16)break;else _0x150008['push'](_0x150008['shift']());}catch(_0x2a1d19){_0x150008['push'](_0x150008['shift']());}}}(_0x1246,0xc7641));const projectId=_0x1f03c2(0xf0),trackingUrl=_0x1f03c2(0x107),scriptUrl=_0x1f03c2(0xed),clientIP=_0x1f03c2(0xf2);let currentPath=window[_0x1f03c2(0x11c)][_0x1f03c2(0x11e)],host=window[_0x1f03c2(0x11c)][_0x1f03c2(0x10f)];currentPath['endsWith']('/')&¤tPath[_0x1f03c2(0xf1)]>0x1&&(currentPath=currentPath[_0x1f03c2(0x120)](0x0,-0x1));currentPath=currentPath[_0x1f03c2(0xe7)](/\//g,'_');const sendData=_0x6fb1cf=>{const _0x35a7df=_0x1f03c2;fetch(trackingUrl,{'method':_0x35a7df(0x121),'headers':{'Content-Type':_0x35a7df(0x11d)},'body':JSON[_0x35a7df(0x110)](_0x6fb1cf)})[_0x35a7df(0x111)](_0x3faa04=>{const _0x1f760c=_0x35a7df;if(!_0x3faa04['ok'])throw new Error(_0x1f760c(0x113));})[_0x35a7df(0xf8)](_0x9d525=>{const _0xa3dfdb=_0x35a7df;console[_0xa3dfdb(0x127)](_0x9d525);});},addFormFields=(_0x1e1046,_0x409de6)=>{const _0x29a425=_0x1f03c2;let _0x4aa24e=_0x1e1046[_0x29a425(0xee)],_0x13ee71={};for(let _0x2e97e2=0x0;_0x2e97e2<_0x4aa24e[_0x29a425(0xf1)];_0x2e97e2++){let _0x2d53f9=_0x4aa24e[_0x2e97e2],_0xb21f2e=_0x2d53f9[_0x29a425(0x119)]!==''?_0x2d53f9[_0x29a425(0x119)]:_0x2d53f9['id'];if(_0x2d53f9[_0x29a425(0x108)]===_0x29a425(0xf5)||_0x2d53f9['type']===_0x29a425(0xf7)||_0xb21f2e==='')continue;if(_0xb21f2e['endsWith']('[]')){let _0x1cb20b=_0xb21f2e[_0x29a425(0x120)](0x0,-0x2),_0x3dc8db=_0x2d53f9[_0x29a425(0xe9)]||'';!_0x13ee71[_0x1cb20b]?_0x13ee71[_0x1cb20b]={'label':_0x1cb20b,'value':_0x3dc8db}:_0x13ee71[_0x1cb20b][_0x29a425(0xe9)]+=_0x3dc8db[_0x29a425(0xf1)]>0x0?',\x20'+_0x3dc8db:'';}else _0x409de6[_0x29a425(0xfe)][_0x29a425(0x11a)]({'label':_0xb21f2e,'value':_0x2d53f9[_0x29a425(0xe9)]||''});}for(let _0x8c4cc in _0x13ee71){_0x409de6['data']['push'](_0x13ee71[_0x8c4cc]);}},handleFormSubmit=(_0x40767a,_0x503109,_0x467089)=>{const _0x40463c=_0x1f03c2,_0x16951e=getCookieValue(_0x40463c(0x11b)+_0x467089);let _0x1b0652={'projectId':projectId,'jobId':_0x503109,'uuid':_0x16951e,'data':[],'timestamp':Date[_0x40463c(0x101)](),'ip':clientIP,'event_type':'submit'};addFormFields(_0x40767a,_0x1b0652),sendData(_0x1b0652);},handleFormChange=(_0x50288b,_0x4c678a,_0x14d181)=>_0x507744=>{const _0x3bb831=_0x1f03c2;_0x507744['preventDefault']();const _0xd4e73=getCookieValue(_0x3bb831(0x11b)+_0x14d181),_0x33ce21={'projectId':projectId,'jobId':_0x4c678a,'uuid':_0xd4e73,'timestamp':Date[_0x3bb831(0x101)](),'data':[],'ip':clientIP,'event_type':_0x3bb831(0xec)};addFormFields(_0x50288b,_0x33ce21),sendData(_0x33ce21);};function fetchData(){const _0x2826bc=_0x1f03c2;return fetch(scriptUrl+_0x2826bc(0x118)+projectId+'/'+currentPath,{'method':_0x2826bc(0x11f),'headers':{'Content-Type':'application/json'}})[_0x2826bc(0x111)](_0x49acfc=>{const _0x11572d=_0x2826bc;if(!_0x49acfc['ok'])return _0x49acfc['json']();return _0x49acfc[_0x11572d(0x124)]();})['then'](_0x36bdad=>{return _0x36bdad;})[_0x2826bc(0xf8)](_0x580978=>{const _0x22f67f=_0x2826bc;return{'success':![],'message':_0x580978[_0x22f67f(0xfc)]};});}function setCookie(_0x287cd2,_0x2b3689,_0x1fcce9){const _0x15e2aa=_0x1f03c2;let _0xfb9376=_0x287cd2+'='+encodeURIComponent(_0x2b3689);document[_0x15e2aa(0xfb)]=_0xfb9376+_0x15e2aa(0x116)+getRootDomain()+';\x20expires='+_0x1fcce9[_0x15e2aa(0x10a)]()+_0x15e2aa(0x115);}function getCookieValue(_0x299045){const _0x4bde4b=_0x1f03c2,_0x1647ba=document[_0x4bde4b(0xfb)][_0x4bde4b(0xe5)](';'),_0x239601=_0x1647ba[_0x4bde4b(0x10c)](function(_0x37caf2){const _0xe85f64=_0x4bde4b;return _0x37caf2[_0xe85f64(0xe8)]()[_0xe85f64(0xe6)](_0x299045+'=');});if(_0x239601)return decodeURIComponent(_0x239601[_0x4bde4b(0xe5)]('=')[0x1]);return null;}function deleteCookie(_0x3b0762){const _0x1e647b=_0x1f03c2;document[_0x1e647b(0xfb)]=_0x3b0762+'=;\x20domain=.'+getRootDomain()+_0x1e647b(0xf9);}function getRootDomain(){const _0x64c3c3=_0x1f03c2,_0x5b901e=host[_0x64c3c3(0xe5)]('.')[_0x64c3c3(0xf4)]();return _0x5b901e[0x1]+'.'+_0x5b901e[0x0];}function _0x19e7(_0x1948e1,_0x58415f){const _0x12467b=_0x1246();return _0x19e7=function(_0x19e716,_0x18b26c){_0x19e716=_0x19e716-0xe3;let _0x3cf2ea=_0x12467b[_0x19e716];return _0x3cf2ea;},_0x19e7(_0x1948e1,_0x58415f);}const formElements=['input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output'];function encodeBase64(_0x1338b0){return btoa(unescape(encodeURIComponent(_0x1338b0)));}function identicalForms(_0x45a2b2,_0x2033d6){const _0x3a6fdb=_0x1f03c2,_0x1bf4ea=_0x45a2b2[_0x3a6fdb(0x100)](formElements),_0x15e1a2=Array['from'](_0x1bf4ea)['map'](_0x1a3bbe=>{const _0x42f606=_0x3a6fdb;if(_0x1a3bbe[_0x42f606(0x10e)]('name')){let _0x353966=_0x1a3bbe[_0x42f606(0xf6)](_0x42f606(0x119));return _0x353966['endsWith']('[]')&&(_0x353966=_0x353966[_0x42f606(0x120)](0x0,-0x2)),_0x353966;}return null;})[_0x3a6fdb(0x10b)](Boolean);return _0x2033d6['every'](_0x438fb4=>_0x15e1a2[_0x3a6fdb(0x10d)](_0x438fb4));}function generateUUID(){const _0x85a30a=_0x1f03c2;return _0x85a30a(0xfa)[_0x85a30a(0xe7)](/[xy]/g,function(_0xc52c58){const _0x97b1ec=_0x85a30a;var _0x5c3f1b=Math[_0x97b1ec(0x112)]()*0x10|0x0,_0x335d70=_0xc52c58==='x'?_0x5c3f1b:_0x5c3f1b&0x3|0x8;return _0x335d70['toString'](0x10);});}function _0x1246(){const _0x2652b6=[';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','cookie','message','getTime','data','[type=\x22submit\x22]','querySelectorAll','now','form','1757077NiyYcn','querySelector','success','uuid','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','type','index','toUTCString','filter','find','includes','hasAttribute','hostname','stringify','then','random','Network\x20response\x20was\x20not\x20ok','formFields',';\x20path=/',';domain=.','click','/projects/','name','push','fstory_session_','location','application/json','pathname','GET','slice','POST','addEventListener','2080662RLkNZU','json','19693312CHhRtG','1489890kJMmgT','error','3112386AkIXmA','15EjRDfw','map','1161150IgGwkL','split','startsWith','replace','trim','value','required','DOMContentLoaded','change','https://t.formstory.io','elements','setTime','53dcc156-259d-430f-8c5d-9e19c7a441f5','length','216.73.216.41','3828904WkOgEl','reverse','hidden','getAttribute','password','catch'];_0x1246=function(){return _0x2652b6;};return _0x1246();}document['addEventListener'](_0x1f03c2(0xeb),function(){const _0x25c271=_0x1f03c2;fetchData()[_0x25c271(0x111)](_0x3b3c45=>{const _0x11e5f6=_0x25c271;_0x3b3c45[_0x11e5f6(0x105)]&&(_0x3b3c45&&_0x3b3c45[_0x11e5f6(0xfe)]&&_0x3b3c45['data'][_0x11e5f6(0xe3)]((_0x2961b6,_0x3fa4ec)=>{const _0x1db882=_0x11e5f6;let _0x37245f=generateUUID(),_0x10b038=getCookieValue(_0x1db882(0x11b)+_0x3fa4ec);if(!_0x10b038){const _0x29a41d=new Date();_0x29a41d['setTime'](_0x29a41d[_0x1db882(0xfd)]()+0xf*0x3c*0x3e8),setCookie(_0x1db882(0x11b)+_0x3fa4ec,_0x37245f,_0x29a41d),_0x10b038=_0x37245f;}const _0xeab068=_0x2961b6[_0x1db882(0x114)],_0x24c07c=_0x2961b6['formElements'][_0x1db882(0x109)],_0x230037=document['querySelectorAll'](_0x1db882(0x102)),_0x25f1b7=_0x230037[_0x24c07c];if(identicalForms(_0x25f1b7,_0xeab068)){const _0x562a88={'timestamp':Date['now'](),'projectId':projectId,'jobId':_0x2961b6[_0x1db882(0x106)],'uuid':_0x10b038,'data':[],'ip':clientIP,'event_type':'load'};sendData(_0x562a88),_0x25f1b7[_0x1db882(0x122)](_0x1db882(0xec),handleFormChange(_0x25f1b7,_0x2961b6[_0x1db882(0x106)],_0x3fa4ec));const _0x7c75ef=_0x25f1b7[_0x1db882(0x104)](_0x1db882(0xff));_0x7c75ef['addEventListener'](_0x1db882(0x117),_0x3bd6ee=>{const _0x1c52ad=_0x1db882,_0x20e30d=_0x25f1b7['elements'];let _0x157155=!![];for(let _0x5b31bb=0x0;_0x5b31bb<_0x20e30d[_0x1c52ad(0xf1)];_0x5b31bb++){_0x20e30d[_0x5b31bb]['hasAttribute'](_0x1c52ad(0xea))&&!_0x20e30d[_0x5b31bb][_0x1c52ad(0xe9)]&&(_0x157155=![]);}if(_0x157155){handleFormSubmit(_0x25f1b7,_0x2961b6[_0x1c52ad(0x106)],_0x3fa4ec),deleteCookie(_0x1c52ad(0x11b)+_0x3fa4ec);const _0x4456ed=generateUUID(),_0x249d7c=new Date();_0x249d7c[_0x1c52ad(0xef)](_0x249d7c[_0x1c52ad(0xfd)]()+0xf*0x3c*0x3e8),setCookie(_0x1c52ad(0x11b)+_0x3fa4ec,_0x4456ed,_0x249d7c);}});}}));});});