const _0x4b27d2=_0x4088;(function(_0x118d3b,_0x537a11){const _0x5870a4=_0x4088,_0x2381ea=_0x118d3b();while(!![]){try{const _0x4b7b14=parseInt(_0x5870a4(0x1a5))/0x1+parseInt(_0x5870a4(0x1b2))/0x2*(-parseInt(_0x5870a4(0x1a7))/0x3)+parseInt(_0x5870a4(0x1ce))/0x4*(parseInt(_0x5870a4(0x1c2))/0x5)+-parseInt(_0x5870a4(0x1bd))/0x6*(parseInt(_0x5870a4(0x194))/0x7)+-parseInt(_0x5870a4(0x1cb))/0x8*(-parseInt(_0x5870a4(0x1b9))/0x9)+-parseInt(_0x5870a4(0x1cc))/0xa+parseInt(_0x5870a4(0x1af))/0xb;if(_0x4b7b14===_0x537a11)break;else _0x2381ea['push'](_0x2381ea['shift']());}catch(_0x2fd692){_0x2381ea['push'](_0x2381ea['shift']());}}}(_0x33fc,0x64c56));const projectId=_0x4b27d2(0x1c8),trackingUrl=_0x4b27d2(0x1c0),scriptUrl=_0x4b27d2(0x1be),clientIP=_0x4b27d2(0x1cf);let currentPath=window['location'][_0x4b27d2(0x18e)],host=window[_0x4b27d2(0x1b7)]['hostname'];currentPath[_0x4b27d2(0x1c7)]('/')&¤tPath[_0x4b27d2(0x1a1)]>0x1&&(currentPath=currentPath[_0x4b27d2(0x1d2)](0x0,-0x1));function _0x4088(_0x13cd88,_0x3e3cc0){const _0x33fc9d=_0x33fc();return _0x4088=function(_0x4088c2,_0x224862){_0x4088c2=_0x4088c2-0x18e;let _0x1d432f=_0x33fc9d[_0x4088c2];return _0x1d432f;},_0x4088(_0x13cd88,_0x3e3cc0);}currentPath=currentPath[_0x4b27d2(0x1b6)](/\//g,'_');const sendData=_0x383255=>{const _0x4cc87a=_0x4b27d2;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x4cc87a(0x1a3)](_0x383255)})['then'](_0x14c2be=>{const _0x71e549=_0x4cc87a;if(!_0x14c2be['ok'])throw new Error(_0x71e549(0x1b1));})['catch'](_0x4a5c75=>{const _0x2de3d8=_0x4cc87a;console[_0x2de3d8(0x1d6)](_0x4a5c75);});},addFormFields=(_0x34efe2,_0x19e8c9)=>{const _0x324c6f=_0x4b27d2;let _0x19549a=_0x34efe2['elements'],_0x5e123f={};for(let _0x2e219e=0x0;_0x2e219e<_0x19549a[_0x324c6f(0x1a1)];_0x2e219e++){let _0x50ee91=_0x19549a[_0x2e219e],_0x410522=_0x50ee91[_0x324c6f(0x19f)]!==''?_0x50ee91[_0x324c6f(0x19f)]:_0x50ee91['id'];if(_0x50ee91[_0x324c6f(0x1ab)]===_0x324c6f(0x1c1)||_0x50ee91[_0x324c6f(0x1ab)]===_0x324c6f(0x19c)||_0x410522==='')continue;if(_0x410522[_0x324c6f(0x1c7)]('[]')){let _0x17ac77=_0x410522[_0x324c6f(0x1d2)](0x0,-0x2),_0x3b5c8b=_0x50ee91[_0x324c6f(0x1bb)]||'';!_0x5e123f[_0x17ac77]?_0x5e123f[_0x17ac77]={'label':_0x17ac77,'value':_0x3b5c8b}:_0x5e123f[_0x17ac77][_0x324c6f(0x1bb)]+=_0x3b5c8b[_0x324c6f(0x1a1)]>0x0?',\x20'+_0x3b5c8b:'';}else _0x19e8c9[_0x324c6f(0x1d1)][_0x324c6f(0x1b5)]({'label':_0x410522,'value':_0x50ee91[_0x324c6f(0x1bb)]||''});}for(let _0x192066 in _0x5e123f){_0x19e8c9['data'][_0x324c6f(0x1b5)](_0x5e123f[_0x192066]);}},handleFormSubmit=(_0x1cb787,_0x54ed07,_0xcf3cd9)=>{const _0x286d1f=_0x4b27d2,_0x29ab00=getCookieValue('fstory_session_'+_0xcf3cd9);let _0x397c36={'projectId':projectId,'jobId':_0x54ed07,'uuid':_0x29ab00,'data':[],'timestamp':Date[_0x286d1f(0x1ca)](),'ip':clientIP,'event_type':_0x286d1f(0x195)};addFormFields(_0x1cb787,_0x397c36),sendData(_0x397c36);},handleFormChange=(_0x3f7391,_0x523d56,_0x1fe3ab)=>_0x1da00d=>{const _0x271abd=_0x4b27d2;_0x1da00d[_0x271abd(0x1cd)]();const _0x594811=getCookieValue('fstory_session_'+_0x1fe3ab),_0x88eb21={'projectId':projectId,'jobId':_0x523d56,'uuid':_0x594811,'timestamp':Date[_0x271abd(0x1ca)](),'data':[],'ip':clientIP,'event_type':'change'};addFormFields(_0x3f7391,_0x88eb21),sendData(_0x88eb21);};function fetchData(){const _0x4ca12d=_0x4b27d2;return fetch(scriptUrl+_0x4ca12d(0x1c3)+projectId+'/'+currentPath,{'method':_0x4ca12d(0x1d5),'headers':{'Content-Type':_0x4ca12d(0x1d3)}})[_0x4ca12d(0x1bc)](_0x37d1cc=>{const _0x3c14cb=_0x4ca12d;if(!_0x37d1cc['ok'])return _0x37d1cc[_0x3c14cb(0x1a8)]();return _0x37d1cc[_0x3c14cb(0x1a8)]();})['then'](_0x4e38d4=>{return _0x4e38d4;})[_0x4ca12d(0x1d4)](_0xb59dbb=>{const _0x946630=_0x4ca12d;return{'success':![],'message':_0xb59dbb[_0x946630(0x1b3)]};});}function setCookie(_0x373b08,_0x2dd878,_0x5a13d9){const _0x4a44d4=_0x4b27d2;let _0x57f5a2=_0x373b08+'='+encodeURIComponent(_0x2dd878);document[_0x4a44d4(0x1c4)]=_0x57f5a2+_0x4a44d4(0x1a2)+getRootDomain()+_0x4a44d4(0x1bf)+_0x5a13d9['toUTCString']()+_0x4a44d4(0x1ba);}function getCookieValue(_0x31ba3b){const _0xcb09c0=_0x4b27d2,_0x4366bc=document[_0xcb09c0(0x1c4)][_0xcb09c0(0x1ad)](';'),_0x2611fb=_0x4366bc['find'](function(_0x128856){const _0x85b7ae=_0xcb09c0;return _0x128856[_0x85b7ae(0x1a6)]()[_0x85b7ae(0x197)](_0x31ba3b+'=');});if(_0x2611fb)return decodeURIComponent(_0x2611fb[_0xcb09c0(0x1ad)]('=')[0x1]);return null;}function deleteCookie(_0x477138){const _0x4400a2=_0x4b27d2;document[_0x4400a2(0x1c4)]=_0x477138+_0x4400a2(0x1b8)+getRootDomain()+_0x4400a2(0x1c5);}function getRootDomain(){const _0x41a665=_0x4b27d2,_0x3f4a10=host['split']('.')[_0x41a665(0x1ac)]();return _0x3f4a10[0x1]+'.'+_0x3f4a10[0x0];}function _0x33fc(){const _0x5418e8=[';domain=.','stringify','index','413376RNrVKw','trim','1829079NevCJJ','json','addEventListener','fstory_session_','type','reverse','split','setTime','13626118xPhbGU','elements','Network\x20response\x20was\x20not\x20ok','2cCyPng','message','querySelectorAll','push','replace','location','=;\x20domain=.','126tFRDWa',';\x20path=/','value','then','690618NpgwQq','https://t.formstory.io',';\x20expires=','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','hidden','5OzzYEV','/projects/','cookie',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','success','endsWith','20af6f6d-915e-488d-9cb8-51399b2ea9bf','required','now','153848URvuWA','7573050TkycHW','preventDefault','2656516VLiAjg','216.73.216.141','click','data','slice','application/json','catch','GET','error','pathname','getTime','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','from','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','hasAttribute','49ajLIHf','submit','formFields','startsWith','querySelector','map','getAttribute','form','password','change','uuid','name','includes','length'];_0x33fc=function(){return _0x5418e8;};return _0x33fc();}const formElements=[_0x4b27d2(0x192)];function encodeBase64(_0x10feb5){return btoa(unescape(encodeURIComponent(_0x10feb5)));}function identicalForms(_0x5ae129,_0x11fe6a){const _0x57ef0c=_0x4b27d2,_0x57c27b=_0x5ae129[_0x57ef0c(0x1b4)](formElements),_0x500141=Array[_0x57ef0c(0x191)](_0x57c27b)[_0x57ef0c(0x199)](_0x3466fc=>{const _0x55fd81=_0x57ef0c;if(_0x3466fc[_0x55fd81(0x193)]('name')){let _0x3aaafc=_0x3466fc[_0x55fd81(0x19a)](_0x55fd81(0x19f));return _0x3aaafc[_0x55fd81(0x1c7)]('[]')&&(_0x3aaafc=_0x3aaafc[_0x55fd81(0x1d2)](0x0,-0x2)),_0x3aaafc;}return null;})['filter'](Boolean);return _0x11fe6a['every'](_0x27b93a=>_0x500141[_0x57ef0c(0x1a0)](_0x27b93a));}function generateUUID(){const _0x468ed3=_0x4b27d2;return _0x468ed3(0x190)[_0x468ed3(0x1b6)](/[xy]/g,function(_0x59f246){var _0x531448=Math['random']()*0x10|0x0,_0x286e2e=_0x59f246==='x'?_0x531448:_0x531448&0x3|0x8;return _0x286e2e['toString'](0x10);});}document[_0x4b27d2(0x1a9)]('DOMContentLoaded',function(){const _0x59fd7d=_0x4b27d2;fetchData()[_0x59fd7d(0x1bc)](_0x3459e0=>{const _0x27c717=_0x59fd7d;_0x3459e0[_0x27c717(0x1c6)]&&(_0x3459e0&&_0x3459e0[_0x27c717(0x1d1)]&&_0x3459e0[_0x27c717(0x1d1)][_0x27c717(0x199)]((_0x33f8c6,_0x44627b)=>{const _0x33845a=_0x27c717;let _0x3c6083=generateUUID(),_0x3e1f3c=getCookieValue('fstory_session_'+_0x44627b);if(!_0x3e1f3c){const _0x563866=new Date();_0x563866['setTime'](_0x563866[_0x33845a(0x18f)]()+0xf*0x3c*0x3e8),setCookie(_0x33845a(0x1aa)+_0x44627b,_0x3c6083,_0x563866),_0x3e1f3c=_0x3c6083;}const _0x30b991=_0x33f8c6[_0x33845a(0x196)],_0x5a08b3=_0x33f8c6['formElements'][_0x33845a(0x1a4)],_0x5b7581=document[_0x33845a(0x1b4)](_0x33845a(0x19b)),_0x382a27=_0x5b7581[_0x5a08b3];if(identicalForms(_0x382a27,_0x30b991)){const _0x510c23={'timestamp':Date['now'](),'projectId':projectId,'jobId':_0x33f8c6[_0x33845a(0x19e)],'uuid':_0x3e1f3c,'data':[],'ip':clientIP,'event_type':'load'};sendData(_0x510c23),_0x382a27[_0x33845a(0x1a9)](_0x33845a(0x19d),handleFormChange(_0x382a27,_0x33f8c6[_0x33845a(0x19e)],_0x44627b));const _0x8137ff=_0x382a27[_0x33845a(0x198)]('[type=\x22submit\x22]');_0x8137ff[_0x33845a(0x1a9)](_0x33845a(0x1d0),_0x3a88f5=>{const _0x36376f=_0x33845a,_0x2573af=_0x382a27[_0x36376f(0x1b0)];let _0x105d54=!![];for(let _0x552c8d=0x0;_0x552c8d<_0x2573af[_0x36376f(0x1a1)];_0x552c8d++){_0x2573af[_0x552c8d][_0x36376f(0x193)](_0x36376f(0x1c9))&&!_0x2573af[_0x552c8d][_0x36376f(0x1bb)]&&(_0x105d54=![]);}if(_0x105d54){handleFormSubmit(_0x382a27,_0x33f8c6['uuid'],_0x44627b),deleteCookie(_0x36376f(0x1aa)+_0x44627b);const _0x20824e=generateUUID(),_0x3e0161=new Date();_0x3e0161[_0x36376f(0x1ae)](_0x3e0161[_0x36376f(0x18f)]()+0xf*0x3c*0x3e8),setCookie(_0x36376f(0x1aa)+_0x44627b,_0x20824e,_0x3e0161);}});}}));});});