const _0x47cb43=_0x5a11;(function(_0x35595a,_0x5b9c35){const _0x2a029f=_0x5a11,_0x34e697=_0x35595a();while(!![]){try{const _0x920b80=parseInt(_0x2a029f(0x174))/0x1+parseInt(_0x2a029f(0x13f))/0x2+-parseInt(_0x2a029f(0x145))/0x3+parseInt(_0x2a029f(0x15f))/0x4+parseInt(_0x2a029f(0x13b))/0x5+-parseInt(_0x2a029f(0x152))/0x6+parseInt(_0x2a029f(0x15a))/0x7;if(_0x920b80===_0x5b9c35)break;else _0x34e697['push'](_0x34e697['shift']());}catch(_0x169d2f){_0x34e697['push'](_0x34e697['shift']());}}}(_0x14a0,0xd6379));const projectId=_0x47cb43(0x129),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl='https://t.formstory.io',clientIP=_0x47cb43(0x13e);function _0x14a0(){const _0x470a54=[';domain=.','uuid','toString','location','catch','formElements','[type=\x22submit\x22]','toLowerCase','type','click','254758VaZLsA','cookie','hidden','fb52afb6-bf85-4f56-aaa3-05f649f7d244','preventDefault','attributes','querySelector','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','data','tagName','join','POST','recaptcha','now','addEventListener','then','some','includes','toUTCString','method','>0x1&&(currentPath=currentPath[_0x47cb43(0x14f)](0x0,-0x1));currentPath=currentPath[_0x47cb43(0x162)](/\//g,'_');const sendData=_0x52e0ce=>{const _0x33ef43=_0x47cb43;fetch(trackingUrl,{'method':_0x33ef43(0x131),'headers':{'Content-Type':_0x33ef43(0x161)},'body':JSON[_0x33ef43(0x149)](_0x52e0ce)})[_0x33ef43(0x135)](_0x13414b=>{const _0x486bdb=_0x33ef43;if(!_0x13414b['ok'])throw new Error(_0x486bdb(0x141));})[_0x33ef43(0x16e)](_0xcacb2e=>{const _0x22d5c2=_0x33ef43;console[_0x22d5c2(0x154)](_0xcacb2e);});},addFormFields=(_0x11ba93,_0x565d3a)=>{const _0x3bd4b0=_0x47cb43;let _0x540268=_0x11ba93['elements'],_0x47a279={};for(let _0x3f09a7=0x0;_0x3f09a7<_0x540268['length'];_0x3f09a7++){let _0x41765d=_0x540268[_0x3f09a7],_0x27ab50=_0x41765d[_0x3bd4b0(0x157)]!==''?_0x41765d['name']:_0x41765d['id'];if(_0x41765d['type']===_0x3bd4b0(0x176)||_0x41765d[_0x3bd4b0(0x172)]===_0x3bd4b0(0x169)||_0x27ab50==='')continue;if(_0x27ab50[_0x3bd4b0(0x153)]('[]')){let _0x33afc=_0x27ab50['slice'](0x0,-0x2),_0x3092ba=_0x41765d['value']||'';!_0x47a279[_0x33afc]?_0x47a279[_0x33afc]={'label':_0x33afc,'value':_0x3092ba}:_0x47a279[_0x33afc][_0x3bd4b0(0x14a)]+=_0x3092ba['length']>0x0?',\x20'+_0x3092ba:'';}else _0x565d3a[_0x3bd4b0(0x12e)]['push']({'label':_0x27ab50,'value':_0x41765d[_0x3bd4b0(0x14a)]||''});}for(let _0x5043ee in _0x47a279){_0x565d3a[_0x3bd4b0(0x12e)][_0x3bd4b0(0x160)](_0x47a279[_0x5043ee]);}},handleFormSubmit=(_0x51a6b3,_0x51c64b,_0x45d114)=>{const _0x588e01=_0x47cb43,_0x148e43=getCookieValue(_0x588e01(0x166)+_0x45d114);let _0x52db51={'projectId':projectId,'jobId':_0x51c64b,'uuid':_0x148e43,'data':[],'timestamp':Date[_0x588e01(0x133)](),'ip':clientIP,'event_type':_0x588e01(0x13d)};addFormFields(_0x51a6b3,_0x52db51),sendData(_0x52db51);},handleFormChange=(_0x55b1fa,_0x116c44,_0x5c5d37)=>_0x831dd5=>{const _0x2322ee=_0x47cb43;_0x831dd5[_0x2322ee(0x12a)]();const _0xd82faa=getCookieValue(_0x2322ee(0x166)+_0x5c5d37),_0x38dbc5={'projectId':projectId,'jobId':_0x116c44,'uuid':_0xd82faa,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':_0x2322ee(0x144)};addFormFields(_0x55b1fa,_0x38dbc5),sendData(_0x38dbc5);};function _0x5a11(_0x1608ba,_0x398430){const _0x14a07a=_0x14a0();return _0x5a11=function(_0x5a112a,_0x147db4){_0x5a112a=_0x5a112a-0x129;let _0x551ab5=_0x14a07a[_0x5a112a];return _0x551ab5;},_0x5a11(_0x1608ba,_0x398430);}function fetchData(){const _0x241f65=_0x47cb43;return fetch(scriptUrl+_0x241f65(0x155)+projectId+'/'+currentPath,{'method':'GET','headers':{'Content-Type':_0x241f65(0x161)}})[_0x241f65(0x135)](_0x5d0a3c=>{const _0x138fad=_0x241f65;if(!_0x5d0a3c['ok'])return _0x5d0a3c[_0x138fad(0x147)]();return _0x5d0a3c[_0x138fad(0x147)]();})[_0x241f65(0x135)](_0x255708=>{return _0x255708;})[_0x241f65(0x16e)](_0x2aa238=>{return{'success':![],'message':_0x2aa238['message']};});}function setCookie(_0x220b42,_0x478fbf,_0x4afe5c){const _0x333f44=_0x47cb43;let _0x45b98a=_0x220b42+'='+encodeURIComponent(_0x478fbf);document['cookie']=_0x45b98a+_0x333f44(0x16a)+getRootDomain()+_0x333f44(0x14e)+_0x4afe5c[_0x333f44(0x138)]()+_0x333f44(0x15e);}function getCookieValue(_0x5c3ad8){const _0x2a719f=_0x47cb43,_0x35d74f=document[_0x2a719f(0x175)][_0x2a719f(0x143)](';'),_0x3eacae=_0x35d74f[_0x2a719f(0x15d)](function(_0x363f0a){const _0x1f5061=_0x2a719f;return _0x363f0a[_0x1f5061(0x148)]()[_0x1f5061(0x15b)](_0x5c3ad8+'=');});if(_0x3eacae)return decodeURIComponent(_0x3eacae[_0x2a719f(0x143)]('=')[0x1]);return null;}function deleteCookie(_0x1f3333){const _0x254737=_0x47cb43;document[_0x254737(0x175)]=_0x1f3333+_0x254737(0x14c)+getRootDomain()+_0x254737(0x168);}function getRootDomain(){const _0x3bd413=_0x47cb43,_0x38004f=host['split']('.')[_0x3bd413(0x14b)]();return _0x38004f[0x1]+'.'+_0x38004f[0x0];}const formAttributes=['action',_0x47cb43(0x139)],inputAttributes=['name','type'];function tagFomBase64(_0x368d20){const _0xc42881=_0x47cb43,_0x4c5b00=_0x368d20?_0xc42881(0x142)+Array[_0xc42881(0x140)](_0x368d20[_0xc42881(0x12b)])[_0xc42881(0x15c)](_0x26bc02=>formAttributes[_0xc42881(0x137)](_0x26bc02[_0xc42881(0x157)]))[_0xc42881(0x165)](_0x29236d=>'\x20'+_0x29236d[_0xc42881(0x157)]+'=\x22'+_0x29236d[_0xc42881(0x14a)]+'\x22')[_0xc42881(0x130)]('')+'>':'';return encodeBase64(_0x4c5b00);}const formElements=[_0x47cb43(0x12d)],excludeKeywords=[_0x47cb43(0x132)];function simplifyForm(_0x50d1d7){const _0x4d28d4=_0x47cb43,_0x496a15=_0x50d1d7['querySelectorAll'](formElements),_0x190a83={},_0x5b96e8=({name:_0x1b711c,id:_0x485fc6})=>!excludeKeywords[_0x4d28d4(0x136)](_0x5a19dc=>_0x1b711c?.['toLowerCase']()['includes'](_0x5a19dc)||_0x485fc6?.['toLowerCase']()[_0x4d28d4(0x137)](_0x5a19dc)),_0x4298ad=_0x28a91b=>{const _0x2e54cc=_0x4d28d4,_0x4c5e91=_0x28a91b[_0x2e54cc(0x12f)][_0x2e54cc(0x171)](),_0x56fb4e=inputAttributes[_0x2e54cc(0x15c)](_0x26daa2=>_0x28a91b[_0x2e54cc(0x167)](_0x26daa2))[_0x2e54cc(0x165)](_0x7ba6aa=>'\x20'+_0x7ba6aa+'=\x22'+_0x28a91b['getAttribute'](_0x7ba6aa)+'\x22')[_0x2e54cc(0x130)]('');return'<'+_0x4c5e91+_0x56fb4e+_0x2e54cc(0x13a)+_0x4c5e91+'>';};return Array[_0x4d28d4(0x140)](_0x496a15)[_0x4d28d4(0x15c)](_0x5b96e8)['forEach']((_0x35aeed,_0x1f1c5c)=>{_0x190a83[_0x1f1c5c]=_0x4298ad(_0x35aeed);}),encodeBase64(JSON[_0x4d28d4(0x149)](_0x190a83));}function encodeBase64(_0x1215ff){return btoa(unescape(encodeURIComponent(_0x1215ff)));}function identicalForms(_0x210c95,_0x44d337){const _0x50dedc=simplifyForm(_0x210c95),_0x2e5576=tagFomBase64(_0x210c95);if(_0x50dedc===_0x44d337['elements']&&_0x2e5576===_0x44d337['tagForm'])return!![];return![];}function generateUUID(){const _0x5dc60f=_0x47cb43;return _0x5dc60f(0x151)[_0x5dc60f(0x162)](/[xy]/g,function(_0x2862de){const _0x2948c2=_0x5dc60f;var _0x21c94a=Math[_0x2948c2(0x163)]()*0x10|0x0,_0x591612=_0x2862de==='x'?_0x21c94a:_0x21c94a&0x3|0x8;return _0x591612[_0x2948c2(0x16c)](0x10);});}document['addEventListener']('DOMContentLoaded',function(){const _0xd056cb=_0x47cb43;fetchData()[_0xd056cb(0x135)](_0x34bfac=>{const _0x5af2f7=_0xd056cb;_0x34bfac['success']&&(_0x34bfac&&_0x34bfac['data']&&_0x34bfac[_0x5af2f7(0x12e)][_0x5af2f7(0x165)]((_0x49b7c3,_0x5b4c74)=>{const _0x618325=_0x5af2f7;let _0xa7413d=generateUUID(),_0x54d4ce=getCookieValue('fstory_session_'+_0x5b4c74);if(!_0x54d4ce){const _0x413d2e=new Date();_0x413d2e[_0x618325(0x14d)](_0x413d2e[_0x618325(0x158)]()+0xf*0x3c*0x3e8),setCookie(_0x618325(0x166)+_0x5b4c74,_0xa7413d,_0x413d2e),_0x54d4ce=_0xa7413d;}else _0xa7413d=_0x54d4ce;const _0x535b1a=_0x49b7c3[_0x618325(0x16f)],_0x19d34b=document['querySelectorAll'](_0x618325(0x13c)),_0x4d0a97=_0x19d34b[_0x535b1a[_0x618325(0x156)]];if(identicalForms(_0x4d0a97,_0x535b1a)){const _0x352c21={'timestamp':Date[_0x618325(0x133)](),'projectId':projectId,'jobId':_0x49b7c3[_0x618325(0x16b)],'uuid':_0x54d4ce,'data':[],'ip':clientIP,'event_type':_0x618325(0x164)};sendData(_0x352c21),_0x4d0a97[_0x618325(0x134)](_0x618325(0x144),handleFormChange(_0x4d0a97,_0x49b7c3[_0x618325(0x16b)],_0x5b4c74));const _0x19419b=_0x4d0a97[_0x618325(0x12c)](_0x618325(0x170));_0x19419b[_0x618325(0x134)](_0x618325(0x173),_0x801636=>{const _0x495328=_0x618325,_0x345d18=_0x4d0a97[_0x495328(0x146)];let _0x4f40e1=!![];for(let _0x55067b=0x0;_0x55067b<_0x345d18[_0x495328(0x150)];_0x55067b++){_0x345d18[_0x55067b][_0x495328(0x167)]('required')&&!_0x345d18[_0x55067b][_0x495328(0x14a)]&&(_0x4f40e1=![]);}if(_0x4f40e1){handleFormSubmit(_0x4d0a97,_0x49b7c3['uuid'],_0x5b4c74),deleteCookie('fstory_session_'+_0x5b4c74);const _0x1a9f49=generateUUID(),_0x1079c5=new Date();_0x1079c5['setTime'](_0x1079c5[_0x495328(0x158)]()+0xf*0x3c*0x3e8),setCookie(_0x495328(0x166)+_0x5b4c74,_0x1a9f49,_0x1079c5);}});}}));});});