const _0x34be4f=_0x2357;(function(_0x440335,_0x35ad98){const _0x22045a=_0x2357,_0x2b6d29=_0x440335();while(!![]){try{const _0xc4141d=-parseInt(_0x22045a(0xbb))/0x1+-parseInt(_0x22045a(0xa8))/0x2+-parseInt(_0x22045a(0x9c))/0x3+-parseInt(_0x22045a(0x9b))/0x4+-parseInt(_0x22045a(0x94))/0x5*(-parseInt(_0x22045a(0xb1))/0x6)+-parseInt(_0x22045a(0xa0))/0x7*(parseInt(_0x22045a(0xa5))/0x8)+parseInt(_0x22045a(0x99))/0x9;if(_0xc4141d===_0x35ad98)break;else _0x2b6d29['push'](_0x2b6d29['shift']());}catch(_0x3d393f){_0x2b6d29['push'](_0x2b6d29['shift']());}}}(_0x5251,0x6c288));const projectId=_0x34be4f(0xbe),trackingUrl=_0x34be4f(0xba),scriptUrl=_0x34be4f(0x9e),clientIP=_0x34be4f(0xb6);let currentPath=window['location'][_0x34be4f(0x76)],host=window[_0x34be4f(0xa4)]['hostname'];function _0x5251(){const _0x4368b3=['some','638310XrtVzI','random','toLowerCase','forEach','POST','3.16.160.142','push','toString','Network\x20response\x20was\x20not\x20ok','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','577374oJAxqv','action','querySelector','a55dbe3e-20b9-4dc2-9551-e9c2856c797e','endsWith','change','now','includes',';\x20path=/','length','/projects/','pathname','trim','0x1&&(currentPath=currentPath[_0x34be4f(0x8b)](0x0,-0x1));currentPath=currentPath[_0x34be4f(0xaa)](/\//g,'_');const sendData=_0x289d59=>{const _0x5632b8=_0x34be4f;fetch(trackingUrl,{'method':_0x5632b8(0xb5),'headers':{'Content-Type':_0x5632b8(0x82)},'body':JSON['stringify'](_0x289d59)})[_0x5632b8(0xa6)](_0x379541=>{const _0x15d35f=_0x5632b8;if(!_0x379541['ok'])throw new Error(_0x15d35f(0xb9));})[_0x5632b8(0xac)](_0x3e1e17=>{const _0x49bbf9=_0x5632b8;console[_0x49bbf9(0x95)](_0x3e1e17);});},addFormFields=(_0x552ad6,_0x37337f)=>{const _0x159150=_0x34be4f;let _0x3e834c=_0x552ad6['elements'],_0x2e91ac={};for(let _0x17d5d0=0x0;_0x17d5d0<_0x3e834c[_0x159150(0x74)];_0x17d5d0++){let _0x13af5f=_0x3e834c[_0x17d5d0],_0x576a87=_0x13af5f[_0x159150(0x7d)]!==''?_0x13af5f[_0x159150(0x7d)]:_0x13af5f['id'];if(_0x13af5f['type']==='hidden'||_0x13af5f[_0x159150(0x88)]===_0x159150(0xa9)||_0x576a87==='')continue;if(_0x576a87['endsWith']('[]')){let _0x2be21d=_0x576a87[_0x159150(0x8b)](0x0,-0x2),_0x22de6d=_0x13af5f[_0x159150(0xae)]||'';!_0x2e91ac[_0x2be21d]?_0x2e91ac[_0x2be21d]={'label':_0x2be21d,'value':_0x22de6d}:_0x2e91ac[_0x2be21d][_0x159150(0xae)]+=_0x22de6d['length']>0x0?',\x20'+_0x22de6d:'';}else _0x37337f[_0x159150(0x7c)][_0x159150(0xb7)]({'label':_0x576a87,'value':_0x13af5f['value']||''});}for(let _0x1481c7 in _0x2e91ac){_0x37337f[_0x159150(0x7c)][_0x159150(0xb7)](_0x2e91ac[_0x1481c7]);}},handleFormSubmit=(_0x4e8a32,_0x5f31ea,_0x1f27e4)=>{const _0x16dcc3=_0x34be4f,_0x27acd4=getCookieValue(_0x16dcc3(0x80)+_0x1f27e4);let _0x31c152={'projectId':projectId,'jobId':_0x5f31ea,'uuid':_0x27acd4,'data':[],'timestamp':Date[_0x16dcc3(0xc1)](),'ip':clientIP,'event_type':'submit'};addFormFields(_0x4e8a32,_0x31c152),sendData(_0x31c152);},handleFormChange=(_0x4164da,_0x4b5884,_0x19c128)=>_0x4fa686=>{const _0x40674a=_0x34be4f;_0x4fa686['preventDefault']();const _0x438121=getCookieValue(_0x40674a(0x80)+_0x19c128),_0x163b5c={'projectId':projectId,'jobId':_0x4b5884,'uuid':_0x438121,'timestamp':Date[_0x40674a(0xc1)](),'data':[],'ip':clientIP,'event_type':_0x40674a(0xc0)};addFormFields(_0x4164da,_0x163b5c),sendData(_0x163b5c);};function fetchData(){const _0x2e6ef2=_0x34be4f;return fetch(scriptUrl+_0x2e6ef2(0x75)+projectId+'/'+currentPath,{'method':_0x2e6ef2(0x8e),'headers':{'Content-Type':_0x2e6ef2(0x82)}})[_0x2e6ef2(0xa6)](_0x4476d5=>{const _0x168bed=_0x2e6ef2;if(!_0x4476d5['ok'])return _0x4476d5[_0x168bed(0x79)]();return _0x4476d5['json']();})[_0x2e6ef2(0xa6)](_0x145eb6=>{return _0x145eb6;})[_0x2e6ef2(0xac)](_0x3e2913=>{const _0x17c04=_0x2e6ef2;return{'success':![],'message':_0x3e2913[_0x17c04(0x85)]};});}function setCookie(_0x23e49b,_0x35d141,_0x3538ed){const _0x1ae3c1=_0x34be4f;let _0x553819=_0x23e49b+'='+encodeURIComponent(_0x35d141);document[_0x1ae3c1(0x97)]=_0x553819+_0x1ae3c1(0xa3)+getRootDomain()+_0x1ae3c1(0x86)+_0x3538ed['toUTCString']()+_0x1ae3c1(0xc3);}function getCookieValue(_0x4e5e02){const _0x1c9670=_0x34be4f,_0x138f26=document[_0x1c9670(0x97)][_0x1c9670(0xab)](';'),_0x195c42=_0x138f26[_0x1c9670(0x96)](function(_0x126403){const _0x1cfe4b=_0x1c9670;return _0x126403[_0x1cfe4b(0x77)]()[_0x1cfe4b(0x84)](_0x4e5e02+'=');});if(_0x195c42)return decodeURIComponent(_0x195c42[_0x1c9670(0xab)]('=')[0x1]);return null;}function deleteCookie(_0x361968){const _0x30a131=_0x34be4f;document[_0x30a131(0x97)]=_0x361968+_0x30a131(0x7f)+getRootDomain()+_0x30a131(0x8c);}function _0x2357(_0x33bc47,_0x2f73bc){const _0x52518b=_0x5251();return _0x2357=function(_0x235771,_0x350bba){_0x235771=_0x235771-0x74;let _0x53d884=_0x52518b[_0x235771];return _0x53d884;},_0x2357(_0x33bc47,_0x2f73bc);}function getRootDomain(){const _0x5d4831=_0x34be4f,_0x13db2d=host[_0x5d4831(0xab)]('.')['reverse']();return _0x13db2d[0x1]+'.'+_0x13db2d[0x0];}const formAttributes=[_0x34be4f(0xbc),_0x34be4f(0x98)],inputAttributes=[_0x34be4f(0x7d),_0x34be4f(0x88)];function tagFomBase64(_0x568e50){const _0x54fe64=_0x34be4f,_0x55e11e=_0x568e50?_0x54fe64(0x78)+Array['from'](_0x568e50[_0x54fe64(0x91)])['filter'](_0x1b4e43=>formAttributes[_0x54fe64(0xc2)](_0x1b4e43[_0x54fe64(0x7d)]))[_0x54fe64(0x81)](_0x502189=>'\x20'+_0x502189[_0x54fe64(0x7d)]+'=\x22'+_0x502189['value']+'\x22')[_0x54fe64(0xa2)]('')+'>':'';return encodeBase64(_0x55e11e);}const formElements=['input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output'],excludeKeywords=[_0x34be4f(0xaf)];function simplifyForm(_0x5230c8){const _0x48f665=_0x34be4f,_0x1de93c=_0x5230c8[_0x48f665(0x9a)](formElements),_0x4d4721={},_0x3e4e66=({name:_0x574d14,id:_0x144d87})=>!excludeKeywords[_0x48f665(0xb0)](_0x428951=>_0x574d14?.[_0x48f665(0xb3)]()[_0x48f665(0xc2)](_0x428951)||_0x144d87?.[_0x48f665(0xb3)]()['includes'](_0x428951)),_0x4599bf=_0x594c22=>{const _0x3906f1=_0x48f665,_0x4ed436=_0x594c22[_0x3906f1(0x7a)]['toLowerCase'](),_0x1a7590=inputAttributes[_0x3906f1(0x93)](_0x5a6b5d=>_0x594c22[_0x3906f1(0x9f)](_0x5a6b5d))[_0x3906f1(0x81)](_0x2c7e0d=>'\x20'+_0x2c7e0d+'=\x22'+_0x594c22['getAttribute'](_0x2c7e0d)+'\x22')[_0x3906f1(0xa2)]('');return'<'+_0x4ed436+_0x1a7590+_0x3906f1(0x8a)+_0x4ed436+'>';};return Array[_0x48f665(0x9d)](_0x1de93c)[_0x48f665(0x93)](_0x3e4e66)[_0x48f665(0xb4)]((_0x54df28,_0x489ddd)=>{_0x4d4721[_0x489ddd]=_0x4599bf(_0x54df28);}),encodeBase64(JSON[_0x48f665(0x83)](_0x4d4721));}function encodeBase64(_0x36b9b3){return btoa(unescape(encodeURIComponent(_0x36b9b3)));}function identicalForms(_0x67b9c4,_0x371f73){const _0x44b649=_0x34be4f,_0x5c87af=simplifyForm(_0x67b9c4),_0x248dbc=tagFomBase64(_0x67b9c4);if(_0x5c87af===_0x371f73[_0x44b649(0xa1)]&&_0x248dbc===_0x371f73[_0x44b649(0x8d)])return!![];return![];}function generateUUID(){const _0x300835=_0x34be4f;return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[_0x300835(0xaa)](/[xy]/g,function(_0x5eeab4){const _0x280709=_0x300835;var _0x16cc45=Math[_0x280709(0xb2)]()*0x10|0x0,_0x212077=_0x5eeab4==='x'?_0x16cc45:_0x16cc45&0x3|0x8;return _0x212077[_0x280709(0xb8)](0x10);});}document[_0x34be4f(0xad)]('DOMContentLoaded',function(){const _0x252c68=_0x34be4f;fetchData()[_0x252c68(0xa6)](_0x400c24=>{const _0x2f56e2=_0x252c68;_0x400c24['success']&&(_0x400c24&&_0x400c24['data']&&_0x400c24[_0x2f56e2(0x7c)]['map']((_0x1fad09,_0x324f1d)=>{const _0x4e9973=_0x2f56e2;let _0x2201d9=generateUUID(),_0x1c1163=getCookieValue(_0x4e9973(0x80)+_0x324f1d);if(!_0x1c1163){const _0xc8b7fc=new Date();_0xc8b7fc['setTime'](_0xc8b7fc[_0x4e9973(0x8f)]()+0x5*0x3c*0x3e8),setCookie(_0x4e9973(0x80)+_0x324f1d,_0x2201d9,_0xc8b7fc),_0x1c1163=_0x2201d9;}else _0x2201d9=_0x1c1163;const _0x23d8e4=_0x1fad09['formElements'],_0x13f354=document[_0x4e9973(0x9a)](_0x4e9973(0x89)),_0x1ae498=_0x13f354[_0x23d8e4[_0x4e9973(0xa7)]];if(identicalForms(_0x1ae498,_0x23d8e4)){const _0x52f2be={'timestamp':Date[_0x4e9973(0xc1)](),'projectId':projectId,'jobId':_0x1fad09[_0x4e9973(0x87)],'uuid':_0x1c1163,'data':[],'ip':clientIP,'event_type':_0x4e9973(0x7b)};sendData(_0x52f2be),_0x1ae498[_0x4e9973(0xad)](_0x4e9973(0xc0),handleFormChange(_0x1ae498,_0x1fad09[_0x4e9973(0x87)],_0x324f1d));const _0x26c755=_0x1ae498[_0x4e9973(0xbd)]('[type=\x22submit\x22]');_0x26c755[_0x4e9973(0xad)](_0x4e9973(0x92),_0x125934=>{const _0x245173=_0x4e9973,_0x564aac=_0x1ae498[_0x245173(0xa1)];let _0x196a49=!![];for(let _0x26f854=0x0;_0x26f854<_0x564aac['length'];_0x26f854++){_0x564aac[_0x26f854]['hasAttribute'](_0x245173(0x7e))&&!_0x564aac[_0x26f854][_0x245173(0xae)]&&(_0x196a49=![]);}if(_0x196a49){handleFormSubmit(_0x1ae498,_0x1fad09[_0x245173(0x87)],_0x324f1d),deleteCookie(_0x245173(0x80)+_0x324f1d);const _0x298dfa=generateUUID(),_0x5e17d6=new Date();_0x5e17d6[_0x245173(0x90)](_0x5e17d6[_0x245173(0x8f)]()+0x5*0x3c*0x3e8),setCookie(_0x245173(0x80)+_0x324f1d,_0x298dfa,_0x5e17d6);}});}}));});});