const _0x563ec5=_0x33e0;(function(_0x461bf7,_0x4f96a5){const _0x2a491f=_0x33e0,_0x57f050=_0x461bf7();while(!![]){try{const _0x11cc1e=-parseInt(_0x2a491f(0x1bb))/0x1*(-parseInt(_0x2a491f(0x1d1))/0x2)+parseInt(_0x2a491f(0x1be))/0x3*(-parseInt(_0x2a491f(0x18a))/0x4)+-parseInt(_0x2a491f(0x1b2))/0x5*(parseInt(_0x2a491f(0x198))/0x6)+parseInt(_0x2a491f(0x189))/0x7+-parseInt(_0x2a491f(0x19d))/0x8*(parseInt(_0x2a491f(0x1d2))/0x9)+parseInt(_0x2a491f(0x1d4))/0xa+-parseInt(_0x2a491f(0x1b3))/0xb*(-parseInt(_0x2a491f(0x1ae))/0xc);if(_0x11cc1e===_0x4f96a5)break;else _0x57f050['push'](_0x57f050['shift']());}catch(_0x357052){_0x57f050['push'](_0x57f050['shift']());}}}(_0x1f37,0x90f77));const projectId='e8085330-d6fd-46b2-a3f4-034beb3053d5',trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x563ec5(0x1d6),clientIP=_0x563ec5(0x1c4);let currentPath=window['location'][_0x563ec5(0x1c0)],host=window[_0x563ec5(0x1ce)][_0x563ec5(0x1ca)];currentPath[_0x563ec5(0x1d7)]('/')&¤tPath[_0x563ec5(0x1b1)]>0x1&&(currentPath=currentPath[_0x563ec5(0x1b6)](0x0,-0x1));currentPath=currentPath[_0x563ec5(0x1d0)](/\//g,'_');const sendData=_0x4ec744=>{const _0x5f0b14=_0x563ec5;fetch(trackingUrl,{'method':_0x5f0b14(0x19a),'headers':{'Content-Type':_0x5f0b14(0x1b9)},'body':JSON['stringify'](_0x4ec744)})['then'](_0x3f82d3=>{const _0x3250c2=_0x5f0b14;if(!_0x3f82d3['ok'])throw new Error(_0x3250c2(0x1c7));})[_0x5f0b14(0x1c6)](_0x4234fd=>{const _0x3d08d1=_0x5f0b14;console[_0x3d08d1(0x1a1)](_0x4234fd);});},addFormFields=(_0x5576e6,_0x1397c3)=>{const _0x467704=_0x563ec5;let _0x58f281=_0x5576e6[_0x467704(0x196)],_0x2eacdf={};for(let _0x383520=0x0;_0x383520<_0x58f281[_0x467704(0x1b1)];_0x383520++){let _0x414fa3=_0x58f281[_0x383520],_0x44c5af=_0x414fa3['name']!==''?_0x414fa3['name']:_0x414fa3['id'];if(_0x414fa3[_0x467704(0x18e)]===_0x467704(0x1d3)||_0x414fa3[_0x467704(0x18e)]===_0x467704(0x1a3)||_0x44c5af==='')continue;if(_0x44c5af[_0x467704(0x1d7)]('[]')){let _0x143da8=_0x44c5af[_0x467704(0x1b6)](0x0,-0x2),_0x35a436=_0x414fa3[_0x467704(0x185)]||'';!_0x2eacdf[_0x143da8]?_0x2eacdf[_0x143da8]={'label':_0x143da8,'value':_0x35a436}:_0x2eacdf[_0x143da8][_0x467704(0x185)]+=_0x35a436[_0x467704(0x1b1)]>0x0?',\x20'+_0x35a436:'';}else _0x1397c3[_0x467704(0x1ba)][_0x467704(0x19c)]({'label':_0x44c5af,'value':_0x414fa3[_0x467704(0x185)]||''});}for(let _0x37ccce in _0x2eacdf){_0x1397c3['data']['push'](_0x2eacdf[_0x37ccce]);}},handleFormSubmit=(_0xd3234,_0x319014,_0x374413)=>{const _0x15852a=_0x563ec5;let _0x48219e={'projectId':projectId,'jobId':_0x319014,'uuid':_0x374413,'data':[],'timestamp':Date[_0x15852a(0x19e)](),'ip':clientIP,'event_type':_0x15852a(0x1cb)};addFormFields(_0xd3234,_0x48219e),sendData(_0x48219e);},handleFormChange=(_0x275452,_0x51e1bd,_0x4fe825)=>_0x5d9521=>{const _0x61f0b6=_0x563ec5;_0x5d9521['preventDefault']();const _0x330a52={'projectId':projectId,'jobId':_0x51e1bd,'uuid':_0x4fe825,'timestamp':Date[_0x61f0b6(0x19e)](),'data':[],'ip':clientIP,'event_type':_0x61f0b6(0x1cd)};addFormFields(_0x275452,_0x330a52),sendData(_0x330a52);};function fetchData(){const _0x2e90b3=_0x563ec5;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x2e90b3(0x1c9),'headers':{'Content-Type':_0x2e90b3(0x1b9)}})[_0x2e90b3(0x1af)](_0x210391=>{const _0x23609a=_0x2e90b3;if(!_0x210391['ok'])return _0x210391[_0x23609a(0x18b)]();return _0x210391[_0x23609a(0x18b)]();})[_0x2e90b3(0x1af)](_0x410703=>{return _0x410703;})[_0x2e90b3(0x1c6)](_0x19dc00=>{const _0x182cdf=_0x2e90b3;return{'success':![],'message':_0x19dc00[_0x182cdf(0x187)]};});}function setCookie(_0x25635b,_0x4f89a0,_0x398bbf){const _0x52a2e7=_0x563ec5;let _0x349f87=_0x25635b+'='+encodeURIComponent(_0x4f89a0);document[_0x52a2e7(0x1b4)]=_0x349f87+_0x52a2e7(0x1a6)+getRootDomain()+_0x52a2e7(0x1a2)+_0x398bbf[_0x52a2e7(0x1a4)]()+_0x52a2e7(0x188);}function getCookieValue(_0x508dc0){const _0x5cd93a=_0x563ec5,_0x414343=document[_0x5cd93a(0x1b4)][_0x5cd93a(0x1bd)](';'),_0x4b6bd9=_0x414343[_0x5cd93a(0x194)](function(_0x52053d){const _0x3a844d=_0x5cd93a;return _0x52053d[_0x3a844d(0x190)]()[_0x3a844d(0x19f)](_0x508dc0+'=');});if(_0x4b6bd9)return decodeURIComponent(_0x4b6bd9[_0x5cd93a(0x1bd)]('=')[0x1]);return null;}function deleteCookie(_0x3417db){const _0x405265=_0x563ec5;document[_0x405265(0x1b4)]=_0x3417db+'=;\x20domain=.'+getRootDomain()+_0x405265(0x199);}function getRootDomain(){const _0x53a401=_0x563ec5,_0x54ff09=host[_0x53a401(0x1bd)]('.')[_0x53a401(0x18c)]();return _0x54ff09[0x1]+'.'+_0x54ff09[0x0];}function _0x1f37(){const _0x2e2a12=['fstory_session_','application/json','data','9598ItBXYu','from','split','11838VWhIRg','join','pathname','index','formAttributes[_0x4134af(0x1b5)](_0x4714c7[_0x4134af(0x197)]))[_0x4134af(0x1ab)](_0x32c145=>'\x20'+_0x32c145['name']+'=\x22'+_0x32c145[_0x4134af(0x185)]+'\x22')[_0x4134af(0x1bf)]('')+'>':'';return encodeBase64(_0x338979);}const formElements=[_0x563ec5(0x1c5)],excludeKeywords=[_0x563ec5(0x1a0)];function simplifyForm(_0x3e312a){const _0x186c95=_0x563ec5,_0x2a77ca=_0x3e312a[_0x186c95(0x1ad)](formElements),_0x41e216={},_0x246fd3=({name:_0x4a32cb,id:_0x2f4a24})=>!excludeKeywords[_0x186c95(0x19b)](_0x38712b=>_0x4a32cb?.[_0x186c95(0x195)]()[_0x186c95(0x1b5)](_0x38712b)||_0x2f4a24?.[_0x186c95(0x195)]()[_0x186c95(0x1b5)](_0x38712b)),_0xa1ecc3=_0x10d166=>{const _0x26ac3e=_0x186c95,_0x3cb60e=_0x10d166[_0x26ac3e(0x1b0)][_0x26ac3e(0x195)](),_0x2b849c=inputAttributes[_0x26ac3e(0x191)](_0x3e56af=>_0x10d166[_0x26ac3e(0x1b7)](_0x3e56af))[_0x26ac3e(0x1ab)](_0x2f28ab=>'\x20'+_0x2f28ab+'=\x22'+_0x10d166[_0x26ac3e(0x1c8)](_0x2f28ab)+'\x22')[_0x26ac3e(0x1bf)]('');return'<'+_0x3cb60e+_0x2b849c+_0x26ac3e(0x1a8)+_0x3cb60e+'>';};return Array[_0x186c95(0x1bc)](_0x2a77ca)[_0x186c95(0x191)](_0x246fd3)[_0x186c95(0x192)]((_0x1b77e4,_0x27ef91)=>{_0x41e216[_0x27ef91]=_0xa1ecc3(_0x1b77e4);}),encodeBase64(JSON[_0x186c95(0x186)](_0x41e216));}function encodeBase64(_0xc6253e){return btoa(unescape(encodeURIComponent(_0xc6253e)));}function identicalForms(_0x3fd8c6,_0x4c0c12){const _0x5d3f1f=_0x563ec5,_0x2740ac=simplifyForm(_0x3fd8c6),_0x56af8f=tagFomBase64(_0x3fd8c6);if(_0x2740ac===_0x4c0c12['elements']&&_0x56af8f===_0x4c0c12[_0x5d3f1f(0x1cc)])return!![];return![];}function generateUUID(){const _0x3e0f87=_0x563ec5;return _0x3e0f87(0x1aa)['replace'](/[xy]/g,function(_0x28bca2){const _0x25aaab=_0x3e0f87;var _0x4d1065=Math[_0x25aaab(0x193)]()*0x10|0x0,_0x4d6888=_0x28bca2==='x'?_0x4d1065:_0x4d1065&0x3|0x8;return _0x4d6888[_0x25aaab(0x1a9)](0x10);});}document[_0x563ec5(0x1d8)]('DOMContentLoaded',function(){const _0x497e31=_0x563ec5;fetchData()[_0x497e31(0x1af)](_0x86ee3d=>{const _0x3a8ca=_0x497e31;_0x86ee3d['success']&&(_0x86ee3d&&_0x86ee3d[_0x3a8ca(0x1ba)]&&_0x86ee3d[_0x3a8ca(0x1ba)][_0x3a8ca(0x1ab)]((_0x579c93,_0x2bc5cc)=>{const _0x4608b4=_0x3a8ca;let _0x3ca9e8=generateUUID(),_0x51f3e9=getCookieValue(_0x4608b4(0x1b8)+_0x2bc5cc);if(!_0x51f3e9){const _0x157c59=new Date();_0x157c59[_0x4608b4(0x1c3)](_0x157c59[_0x4608b4(0x1d5)]()+0x5*0x3c*0x3e8),setCookie(_0x4608b4(0x1b8)+_0x2bc5cc,_0x3ca9e8,_0x157c59),_0x51f3e9=_0x3ca9e8;}else _0x3ca9e8=_0x51f3e9;const _0x4331b2=_0x579c93[_0x4608b4(0x18d)],_0x4fbda6=document[_0x4608b4(0x1ad)]('form'),_0x3b2d0=_0x4fbda6[_0x4331b2[_0x4608b4(0x1c1)]];if(identicalForms(_0x3b2d0,_0x4331b2)){const _0x476cdf={'timestamp':Date[_0x4608b4(0x19e)](),'projectId':projectId,'jobId':_0x579c93[_0x4608b4(0x1ac)],'uuid':_0x51f3e9,'data':[],'ip':clientIP,'event_type':_0x4608b4(0x1a7)};sendData(_0x476cdf),_0x3b2d0[_0x4608b4(0x1d8)](_0x4608b4(0x1cd),handleFormChange(_0x3b2d0,_0x579c93[_0x4608b4(0x1ac)],_0x3ca9e8));const _0x46010c=_0x3b2d0['querySelector'](_0x4608b4(0x1d9));_0x46010c[_0x4608b4(0x1d8)]('click',_0x752359=>{const _0x3d169c=_0x4608b4,_0x5c6b7f=_0x3b2d0[_0x3d169c(0x196)];let _0x121db9=!![];for(let _0x4dece2=0x0;_0x4dece2<_0x5c6b7f['length'];_0x4dece2++){_0x5c6b7f[_0x4dece2][_0x3d169c(0x1b7)](_0x3d169c(0x1cf))&&!_0x5c6b7f[_0x4dece2][_0x3d169c(0x185)]&&(_0x121db9=![]);}if(_0x121db9){deleteCookie(_0x3d169c(0x1b8)+_0x2bc5cc),handleFormSubmit(_0x3b2d0,_0x579c93['uuid'],_0x3ca9e8),_0x3ca9e8=generateUUID();const _0x3bc7bd=new Date();_0x3bc7bd[_0x3d169c(0x1c3)](_0x3bc7bd[_0x3d169c(0x1d5)]()+0x5*0x3c*0x3e8),setCookie('fstory_session_'+_0x2bc5cc,_0x3ca9e8,_0x3bc7bd),_0x51f3e9=_0x3ca9e8;}});}}));});});