const _0x1caba2=_0x3ba1;(function(_0x4c7908,_0x27f9ef){const _0x4d8e94=_0x3ba1,_0x4eb22d=_0x4c7908();while(!![]){try{const _0x25864c=-parseInt(_0x4d8e94(0x128))/0x1*(parseInt(_0x4d8e94(0x135))/0x2)+parseInt(_0x4d8e94(0x114))/0x3*(parseInt(_0x4d8e94(0x12c))/0x4)+parseInt(_0x4d8e94(0xf8))/0x5+parseInt(_0x4d8e94(0x118))/0x6*(parseInt(_0x4d8e94(0x129))/0x7)+-parseInt(_0x4d8e94(0x10f))/0x8+-parseInt(_0x4d8e94(0x119))/0x9+parseInt(_0x4d8e94(0xff))/0xa;if(_0x25864c===_0x27f9ef)break;else _0x4eb22d['push'](_0x4eb22d['shift']());}catch(_0x5c908e){_0x4eb22d['push'](_0x4eb22d['shift']());}}}(_0xb281,0x4d423));function _0xb281(){const _0x2a90c5=['4ce50621-e344-4b15-93df-fec74013a720','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','index','length','trim','3393990gFlcWD','fstory_session_','formElements','querySelectorAll','split','map','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','hasAttribute','endsWith','now','json',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','change','uuid','addEventListener','click','274072UGcbib','error','Network\x20response\x20was\x20not\x20ok','elements','https://t.formstory.io','3JwkHaQ','GET','cookie','filter','18hMrspb','2198448CuOaXk',';\x20expires=','setTime','form','location','=;\x20domain=.','[type=\x22submit\x22]','find','random','getTime','load','type','toUTCString','DOMContentLoaded','getAttribute','1yRBGoP','450100qUgbmO',';\x20path=/','POST','410716NJGNgi','then','from','hostname','replace','submit','preventDefault','data','push','935798SNErps','name','application/json','value','2139515ZIKyOg','stringify'];_0xb281=function(){return _0x2a90c5;};return _0xb281();}const projectId=_0x1caba2(0xfa),trackingUrl=_0x1caba2(0x105),scriptUrl=_0x1caba2(0x113),clientIP='216.73.216.187';let currentPath=window[_0x1caba2(0x11d)]['pathname'],host=window[_0x1caba2(0x11d)][_0x1caba2(0x12f)];function _0x3ba1(_0x56a2ae,_0x2b0fbb){const _0xb28179=_0xb281();return _0x3ba1=function(_0x3ba105,_0x525174){_0x3ba105=_0x3ba105-0xf5;let _0x5a2ddd=_0xb28179[_0x3ba105];return _0x5a2ddd;},_0x3ba1(_0x56a2ae,_0x2b0fbb);}currentPath[_0x1caba2(0x107)]('/')&¤tPath[_0x1caba2(0xfd)]>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath[_0x1caba2(0x130)](/\//g,'_');const sendData=_0x22e52f=>{const _0xe9ed9d=_0x1caba2;fetch(trackingUrl,{'method':_0xe9ed9d(0x12b),'headers':{'Content-Type':_0xe9ed9d(0xf6)},'body':JSON[_0xe9ed9d(0xf9)](_0x22e52f)})[_0xe9ed9d(0x12d)](_0x96a2c2=>{const _0x1e59a3=_0xe9ed9d;if(!_0x96a2c2['ok'])throw new Error(_0x1e59a3(0x111));})['catch'](_0x15ad0b=>{const _0x4f9dd6=_0xe9ed9d;console[_0x4f9dd6(0x110)](_0x15ad0b);});},addFormFields=(_0xa780e0,_0x362c8a)=>{const _0x48a68f=_0x1caba2;let _0x2ecf43=_0xa780e0['elements'],_0x1bb5a4={};for(let _0xd58c68=0x0;_0xd58c68<_0x2ecf43['length'];_0xd58c68++){let _0x2ef95e=_0x2ecf43[_0xd58c68],_0x3de8b5=_0x2ef95e[_0x48a68f(0xf5)]!==''?_0x2ef95e['name']:_0x2ef95e['id'];if(_0x2ef95e[_0x48a68f(0x124)]==='hidden'||_0x2ef95e[_0x48a68f(0x124)]==='password'||_0x3de8b5==='')continue;if(_0x3de8b5[_0x48a68f(0x107)]('[]')){let _0x433335=_0x3de8b5['slice'](0x0,-0x2),_0x261787=_0x2ef95e[_0x48a68f(0xf7)]||'';!_0x1bb5a4[_0x433335]?_0x1bb5a4[_0x433335]={'label':_0x433335,'value':_0x261787}:_0x1bb5a4[_0x433335]['value']+=_0x261787[_0x48a68f(0xfd)]>0x0?',\x20'+_0x261787:'';}else _0x362c8a[_0x48a68f(0x133)][_0x48a68f(0x134)]({'label':_0x3de8b5,'value':_0x2ef95e[_0x48a68f(0xf7)]||''});}for(let _0x75465b in _0x1bb5a4){_0x362c8a[_0x48a68f(0x133)][_0x48a68f(0x134)](_0x1bb5a4[_0x75465b]);}},handleFormSubmit=(_0x425f25,_0x338746,_0x59a9ae)=>{const _0x3f4abd=_0x1caba2,_0x59b0d9=getCookieValue(_0x3f4abd(0x100)+_0x59a9ae);let _0x232912={'projectId':projectId,'jobId':_0x338746,'uuid':_0x59b0d9,'data':[],'timestamp':Date[_0x3f4abd(0x108)](),'ip':clientIP,'event_type':_0x3f4abd(0x131)};addFormFields(_0x425f25,_0x232912),sendData(_0x232912);},handleFormChange=(_0x4a7208,_0x3dd131,_0x17e625)=>_0x411994=>{const _0x1a844b=_0x1caba2;_0x411994[_0x1a844b(0x132)]();const _0x2dae61=getCookieValue(_0x1a844b(0x100)+_0x17e625),_0xc40465={'projectId':projectId,'jobId':_0x3dd131,'uuid':_0x2dae61,'timestamp':Date[_0x1a844b(0x108)](),'data':[],'ip':clientIP,'event_type':_0x1a844b(0x10b)};addFormFields(_0x4a7208,_0xc40465),sendData(_0xc40465);};function fetchData(){const _0x47e4a7=_0x1caba2;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x47e4a7(0x115),'headers':{'Content-Type':_0x47e4a7(0xf6)}})[_0x47e4a7(0x12d)](_0x3dc61d=>{const _0xc5b2a0=_0x47e4a7;if(!_0x3dc61d['ok'])return _0x3dc61d[_0xc5b2a0(0x109)]();return _0x3dc61d[_0xc5b2a0(0x109)]();})[_0x47e4a7(0x12d)](_0x206729=>{return _0x206729;})['catch'](_0x41b2e2=>{return{'success':![],'message':_0x41b2e2['message']};});}function setCookie(_0x10b5a4,_0xeb5454,_0x5cbfa9){const _0x32e28c=_0x1caba2;let _0x488589=_0x10b5a4+'='+encodeURIComponent(_0xeb5454);document[_0x32e28c(0x116)]=_0x488589+';domain=.'+getRootDomain()+_0x32e28c(0x11a)+_0x5cbfa9[_0x32e28c(0x125)]()+_0x32e28c(0x12a);}function getCookieValue(_0x59271e){const _0x49ac7f=_0x1caba2,_0x40a76d=document[_0x49ac7f(0x116)][_0x49ac7f(0x103)](';'),_0x134fe1=_0x40a76d[_0x49ac7f(0x120)](function(_0x3a9aa8){const _0x35d2d7=_0x49ac7f;return _0x3a9aa8[_0x35d2d7(0xfe)]()['startsWith'](_0x59271e+'=');});if(_0x134fe1)return decodeURIComponent(_0x134fe1['split']('=')[0x1]);return null;}function deleteCookie(_0x134677){const _0x135b5d=_0x1caba2;document['cookie']=_0x134677+_0x135b5d(0x11e)+getRootDomain()+_0x135b5d(0x10a);}function getRootDomain(){const _0x4e27cc=_0x1caba2,_0x53140a=host[_0x4e27cc(0x103)]('.')['reverse']();return _0x53140a[0x1]+'.'+_0x53140a[0x0];}const formElements=[_0x1caba2(0xfb)];function encodeBase64(_0x516493){return btoa(unescape(encodeURIComponent(_0x516493)));}function identicalForms(_0x47bdd9,_0x5527ab){const _0x5a1852=_0x1caba2,_0x195b6c=_0x47bdd9[_0x5a1852(0x102)](formElements),_0xd345d7=Array[_0x5a1852(0x12e)](_0x195b6c)[_0x5a1852(0x104)](_0x523d3e=>{const _0x4a2e5f=_0x5a1852;if(_0x523d3e['hasAttribute']('name')){let _0x50a008=_0x523d3e[_0x4a2e5f(0x127)](_0x4a2e5f(0xf5));return _0x50a008[_0x4a2e5f(0x107)]('[]')&&(_0x50a008=_0x50a008['slice'](0x0,-0x2)),_0x50a008;}return null;})[_0x5a1852(0x117)](Boolean);return _0x5527ab['every'](_0x43b721=>_0xd345d7['includes'](_0x43b721));}function generateUUID(){const _0x31eb9a=_0x1caba2;return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[_0x31eb9a(0x130)](/[xy]/g,function(_0x5b011f){const _0x2c6b5e=_0x31eb9a;var _0xccb41c=Math[_0x2c6b5e(0x121)]()*0x10|0x0,_0x15a1fa=_0x5b011f==='x'?_0xccb41c:_0xccb41c&0x3|0x8;return _0x15a1fa['toString'](0x10);});}document[_0x1caba2(0x10d)](_0x1caba2(0x126),function(){const _0x4532f4=_0x1caba2;fetchData()[_0x4532f4(0x12d)](_0x50b5e9=>{const _0x46bbf9=_0x4532f4;_0x50b5e9['success']&&(_0x50b5e9&&_0x50b5e9[_0x46bbf9(0x133)]&&_0x50b5e9[_0x46bbf9(0x133)]['map']((_0x46634a,_0x50fe9a)=>{const _0x3ebe51=_0x46bbf9;let _0x3eda87=generateUUID(),_0x3a31ad=getCookieValue(_0x3ebe51(0x100)+_0x50fe9a);if(!_0x3a31ad){const _0x4dbdee=new Date();_0x4dbdee['setTime'](_0x4dbdee[_0x3ebe51(0x122)]()+0xf*0x3c*0x3e8),setCookie('fstory_session_'+_0x50fe9a,_0x3eda87,_0x4dbdee),_0x3a31ad=_0x3eda87;}const _0x51b865=_0x46634a['formFields'],_0x47d299=_0x46634a[_0x3ebe51(0x101)][_0x3ebe51(0xfc)],_0x50921b=document['querySelectorAll'](_0x3ebe51(0x11c)),_0x30c5c3=_0x50921b[_0x47d299];if(identicalForms(_0x30c5c3,_0x51b865)){const _0x23c59f={'timestamp':Date['now'](),'projectId':projectId,'jobId':_0x46634a['uuid'],'uuid':_0x3a31ad,'data':[],'ip':clientIP,'event_type':_0x3ebe51(0x123)};sendData(_0x23c59f),_0x30c5c3[_0x3ebe51(0x10d)](_0x3ebe51(0x10b),handleFormChange(_0x30c5c3,_0x46634a[_0x3ebe51(0x10c)],_0x50fe9a));const _0x564001=_0x30c5c3['querySelector'](_0x3ebe51(0x11f));_0x564001[_0x3ebe51(0x10d)](_0x3ebe51(0x10e),_0x5b91cb=>{const _0x39a62b=_0x3ebe51,_0x556e68=_0x30c5c3[_0x39a62b(0x112)];let _0x12fd08=!![];for(let _0x5aaee0=0x0;_0x5aaee0<_0x556e68[_0x39a62b(0xfd)];_0x5aaee0++){_0x556e68[_0x5aaee0][_0x39a62b(0x106)]('required')&&!_0x556e68[_0x5aaee0][_0x39a62b(0xf7)]&&(_0x12fd08=![]);}if(_0x12fd08){handleFormSubmit(_0x30c5c3,_0x46634a[_0x39a62b(0x10c)],_0x50fe9a),deleteCookie(_0x39a62b(0x100)+_0x50fe9a);const _0xc7a99d=generateUUID(),_0x3d5102=new Date();_0x3d5102[_0x39a62b(0x11b)](_0x3d5102[_0x39a62b(0x122)]()+0xf*0x3c*0x3e8),setCookie(_0x39a62b(0x100)+_0x50fe9a,_0xc7a99d,_0x3d5102);}});}}));});});