@formo/analytics 1.19.1 → 1.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +32 -4
  2. package/dist/cjs/src/FormoAnalytics.d.ts.map +1 -1
  3. package/dist/cjs/src/FormoAnalytics.js +14 -8
  4. package/dist/cjs/src/FormoAnalytics.js.map +1 -1
  5. package/dist/cjs/src/FormoAnalyticsProvider.js +2 -2
  6. package/dist/cjs/src/FormoAnalyticsProvider.js.map +1 -1
  7. package/dist/cjs/src/index.js +2 -1
  8. package/dist/cjs/src/index.js.map +1 -1
  9. package/dist/cjs/src/lib/event/EventFactory.js +1 -1
  10. package/dist/cjs/src/lib/event/EventFactory.js.map +1 -1
  11. package/dist/cjs/src/lib/version.d.ts +1 -1
  12. package/dist/cjs/src/lib/version.js +1 -1
  13. package/dist/cjs/test/utils/address.spec.js +28 -0
  14. package/dist/cjs/test/utils/address.spec.js.map +1 -1
  15. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  16. package/dist/esm/src/FormoAnalytics.d.ts.map +1 -1
  17. package/dist/esm/src/FormoAnalytics.js +14 -8
  18. package/dist/esm/src/FormoAnalytics.js.map +1 -1
  19. package/dist/esm/src/FormoAnalyticsProvider.js +2 -2
  20. package/dist/esm/src/FormoAnalyticsProvider.js.map +1 -1
  21. package/dist/esm/src/index.js +2 -1
  22. package/dist/esm/src/index.js.map +1 -1
  23. package/dist/esm/src/lib/event/EventFactory.js +1 -1
  24. package/dist/esm/src/lib/event/EventFactory.js.map +1 -1
  25. package/dist/esm/src/lib/version.d.ts +1 -1
  26. package/dist/esm/src/lib/version.js +1 -1
  27. package/dist/esm/test/utils/address.spec.js +28 -0
  28. package/dist/esm/test/utils/address.spec.js.map +1 -1
  29. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  30. package/dist/index.umd.min.js +1 -1
  31. package/dist/index.umd.min.js.map +1 -1
  32. package/package.json +35 -35
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.umd.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("FormoAnalytics",[],t):"object"==typeof exports?exports.FormoAnalytics=t():e.FormoAnalytics=t()}(self,(()=>(()=>{var e={15:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseChainId=function(e){return"string"!=typeof e?0:e.startsWith("0x")||e.startsWith("0X")?parseInt(e,16):parseInt(e,10)}},80:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},654:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return(0,o.default)(r)?t:(0,i.default)((function(t){return e(r,t)}));default:return(0,o.default)(r)&&(0,o.default)(n)?t:(0,o.default)(r)?(0,i.default)((function(t){return e(t,n)})):(0,o.default)(n)?(0,i.default)((function(t){return e(r,t)})):e(r,n)}}};var i=n(r(4323)),o=n(r(80))},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},689:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventQueue=void 0;var s=r(9754),c=r(9266),u=r(8177),l=r(6450),f=a(r(4364)),d=function(){},h=function(){function e(e,t){var r=this;this.queue=[],this.payloadHashes=new Set,this.onPageLeave=function(e){var t=!1,r=!1;function n(){t||(t=!0,e(r),setTimeout((function(){t=!1}),0))}globalThis.addEventListener("beforeunload",(function(){r=!1,n()})),globalThis.addEventListener("blur",(function(){r=!0,n()})),globalThis.addEventListener("focus",(function(){t=!1})),document.addEventListener("pagehide",(function(){r="hidden"===document.visibilityState,n()})),document.addEventListener("visibilitychange",(function(){r=!0,"hidden"===document.visibilityState?n():t=!1}))},t=t||{},this.queue=[],this.writeKey=e,this.url=t.url,this.retryCount=(0,c.clampNumber)(t.retryCount||3,5,1),this.flushAt=(0,c.clampNumber)(t.flushAt||20,20,1),this.maxQueueSize=(0,c.clampNumber)(t.maxQueueSize||512e3,512e3,200),this.flushIntervalMs=(0,c.clampNumber)(t.flushInterval||3e4,3e5,1e4),this.flushed=!0,this.errorHandler=t.errorHandler,this.pendingFlush=null,this.timer=null,this.onPageLeave((function(e){return i(r,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return!1!==e?[3,2]:[4,this.flush()];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))}return e.prototype.generateMessageId=function(e){return i(this,void 0,void 0,(function(){var t,r,i;return o(this,(function(o){return t=(0,c.toDateHourMinute)(new Date(e.original_timestamp)),r=n(n({},e),{original_timestamp:t}),i=JSON.stringify(r),[2,(0,c.hash)(i)]}))}))},e.prototype.enqueue=function(e,t){return i(this,void 0,void 0,(function(){var r,i,a;return o(this,(function(o){switch(o.label){case 0:return t=t||d,[4,this.generateMessageId(e)];case 1:return r=o.sent(),[4,this.isDuplicate(r)];case 2:return o.sent()?(u.logger.warn("Event already enqueued, try again after ".concat((0,c.millisecondsToSecond)(this.flushIntervalMs)," seconds.")),[2]):(this.queue.push({message:n(n({},e),{message_id:r}),callback:t}),u.logger.log("Event enqueued: ".concat((0,c.getActionDescriptor)(e.type,e.properties))),this.flushed?(i=this.queue.length>=this.flushAt,a=this.queue.reduce((function(e,t){return e+JSON.stringify(t).length}),0)>=this.maxQueueSize,i||a?(this.flush(),[2]):(this.flushIntervalMs&&!this.timer&&(this.timer=setTimeout(this.flush.bind(this),this.flushIntervalMs)),[2])):(this.flushed=!0,this.flush(),[2]))}}))}))},e.prototype.flush=function(e){return i(this,void 0,void 0,(function(){var t,r,i,a,s,c=this;return o(this,(function(o){switch(o.label){case 0:if(e=e||d,this.timer&&(clearTimeout(this.timer),this.timer=null),!this.queue.length)return e(),[2,Promise.resolve()];o.label=1;case 1:return o.trys.push([1,4,,5]),this.pendingFlush?[4,this.pendingFlush]:[3,3];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:throw t=o.sent(),this.pendingFlush=null,t;case 5:return r=this.queue.splice(0,this.flushAt),this.payloadHashes.clear(),i=(new Date).toISOString(),a=r.map((function(e){return n(n({},e.message),{sent_at:i})})),s=function(t){r.forEach((function(e){var r=e.message;return(0,e.callback)(t,r,a)})),e(t,a)},[2,this.pendingFlush=(0,f.default)("".concat(this.url),{headers:(0,l.EVENTS_API_REQUEST_HEADER)(this.writeKey),method:"POST",body:JSON.stringify(a),keepalive:!0,retries:this.retryCount,retryDelay:function(e){return 1e3*Math.pow(2,e)},retryOn:function(e,t){return c.isErrorRetryable(t)}}).then((function(){return s(),Promise.resolve(a)})).catch((function(e){if("function"==typeof c.errorHandler)return s(e),c.errorHandler(e);if(e.response){var t=new Error(e.response.statusText);throw s(t),t}throw s(e),e}))]}}))}))},e.prototype.isErrorRetryable=function(e){var t,r,n;return!!(0,s.isNetworkError)(e)||!!(null==e?void 0:e.response)&&((null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)>=500&&(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.status)<=599||429===(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status))},e.prototype.isDuplicate=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){return this.payloadHashes.has(e)?[2,!0]:(this.payloadHashes.add(e),[2,!1])}))}))},e}();t.EventQueue=h},724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=function(e){return!(!e||!n(e)||"TypeError"!==e.name||"string"!=typeof e.message)&&("Load failed"===e.message?void 0===e.stack:i.has(e.message))};var r=Object.prototype.toString,n=function(e){return"[object Error]"===r.call(e)},i=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"])},879:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormoAnalytics=void 0;var a=r(4228),s=r(6450),c=r(8568),u=r(3574),l=r(9754),f=r(15),d=function(){function e(e,t){var r,n;void 0===t&&(t={}),this.writeKey=e,this.options=t,this._providerListeners={},this._providers=[],this.currentAddress="",this.currentUserId="",this.config={writeKey:e},this.options=t,this.session=new h,this.currentUserId=(0,c.cookie)().get(s.SESSION_USER_ID_KEY)||void 0,this.identify=this.identify.bind(this),this.connect=this.connect.bind(this),this.disconnect=this.disconnect.bind(this),this.chain=this.chain.bind(this),this.signature=this.signature.bind(this),this.transaction=this.transaction.bind(this),this.detect=this.detect.bind(this),this.track=this.track.bind(this),c.Logger.init({enabled:(null===(r=t.logger)||void 0===r?void 0:r.enabled)||!1,enabledLevels:(null===(n=t.logger)||void 0===n?void 0:n.levels)||[]}),this.eventManager=new c.EventManager(new c.EventQueue(this.config.writeKey,{url:s.EVENTS_API_URL,flushAt:t.flushAt,retryCount:t.retryCount,maxQueueSize:t.maxQueueSize,flushInterval:t.flushInterval}));var i=t.provider||(null===window||void 0===window?void 0:window.ethereum);i&&this.trackProvider(i),this.trackPageHit(),this.trackPageHits()}return e.init=function(t,r){return i(this,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return(0,c.initStorageManager)(t),n=new e(t,r),i=n,[4,n.getProviders()];case 1:return i._providers=o.sent(),[4,n.detectWallets(n._providers)];case 2:return o.sent(),[2,n]}}))}))},e.prototype.page=function(e,t,r,n,a){return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.trackPageHit(e,t,r,n,a)];case 1:return i.sent(),[2]}}))}))},e.prototype.reset=function(){this.currentUserId=void 0,(0,c.cookie)().remove(s.LOCAL_ANONYMOUS_ID_KEY),(0,c.cookie)().remove(s.SESSION_USER_ID_KEY)},e.prototype.connect=function(e,t,r,n){return i(this,arguments,void 0,(function(e,t,r,n){var i=e.chainId,a=e.address;return o(this,(function(e){switch(e.label){case 0:return i||c.logger.warn("Connect: Chain ID cannot be empty"),a||c.logger.warn("Connect: Address cannot be empty"),this.currentChainId=i,this.currentAddress=a,[4,this.trackEvent(s.EventType.CONNECT,{chainId:i,address:a},t,r,n)];case 1:return e.sent(),[2]}}))}))},e.prototype.disconnect=function(e,t,r,n){return i(this,void 0,void 0,(function(){var i,a;return o(this,(function(o){switch(o.label){case 0:return i=(null==e?void 0:e.chainId)||this.currentChainId,a=(null==e?void 0:e.address)||this.currentAddress,[4,this.trackEvent(s.EventType.DISCONNECT,{chainId:i,address:a},t,r,n)];case 1:return o.sent(),this.currentAddress=void 0,this.currentChainId=void 0,c.logger.info("Wallet disconnected: Cleared currentAddress and currentChainId"),[2]}}))}))},e.prototype.chain=function(e,t,r,n){return i(this,arguments,void 0,(function(e,t,r,n){var i=e.chainId,a=e.address;return o(this,(function(e){switch(e.label){case 0:if(!i||0===Number(i))throw new Error("FormoAnalytics::chain: chainId cannot be empty or 0");if(isNaN(Number(i)))throw new Error("FormoAnalytics::chain: chainId must be a valid decimal number");if(!a&&!this.currentAddress)throw new Error("FormoAnalytics::chain: address was empty and no previous address has been recorded");return this.currentChainId=i,[4,this.trackEvent(s.EventType.CHAIN,{chainId:i,address:a||this.currentAddress},t,r,n)];case 1:return e.sent(),[2]}}))}))},e.prototype.signature=function(e,t,r,a){return i(this,arguments,void 0,(function(e,t,r,i){var a=e.status,c=e.chainId,u=e.address,l=e.message,f=e.signatureHash;return o(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(s.EventType.SIGNATURE,n({status:a,chainId:c,address:u,message:l},f&&{signatureHash:f}),t,r,i)];case 1:return e.sent(),[2]}}))}))},e.prototype.transaction=function(e,t,r,a){return i(this,arguments,void 0,(function(e,t,r,i){var a=e.status,c=e.chainId,u=e.address,l=e.data,f=e.to,d=e.value,h=e.transactionHash;return o(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(s.EventType.TRANSACTION,n({status:a,chainId:c,address:u,data:l,to:f,value:d},h&&{transactionHash:h}),t,r,i)];case 1:return e.sent(),[2]}}))}))},e.prototype.identify=function(e,t,r,n){return i(this,void 0,void 0,(function(){var i,a,u,l,f,d,h,p,y,v,g;return o(this,(function(o){switch(o.label){case 0:if(o.trys.push([0,11,,12]),e)return[3,9];c.logger.info("Auto-identifying with providers:",this._providers.map((function(e){return e.info.name}))),i=0,a=this._providers,o.label=1;case 1:if(!(i<a.length))return[3,8];if(u=a[i],!(l=u.provider))return[3,7];o.label=2;case 2:return o.trys.push([2,6,,7]),[4,this.getAddress(l)];case 3:return(f=o.sent())?(c.logger.info("Auto-identifying",f,u.info.name,u.info.rdns),[4,this.identify({address:f,providerName:u.info.name,rdns:u.info.rdns},t,r,n)]):[3,5];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:return d=o.sent(),c.logger.error("Failed to identify provider ".concat(u.info.name,":"),d),[3,7];case 7:return i++,[3,1];case 8:return[2];case 9:return h=e.userId,p=e.address,y=e.providerName,v=e.rdns,c.logger.info("Identify",p,h,y,v),p&&(this.currentAddress=p),h&&(this.currentUserId=h,(0,c.cookie)().set(s.SESSION_USER_ID_KEY,h)),[4,this.trackEvent(s.EventType.IDENTIFY,{address:p,providerName:y,userId:h,rdns:v},t,r,n)];case 10:return o.sent(),[3,12];case 11:return g=o.sent(),c.logger.log("identify error",g),[3,12];case 12:return[2]}}))}))},e.prototype.detect=function(e,t,r,n){return i(this,arguments,void 0,(function(e,t,r,n){var i=e.providerName,a=e.rdns;return o(this,(function(e){switch(e.label){case 0:return this.session.isWalletDetected(a)?[2,c.logger.warn("Detect: Wallet ".concat(i," already detected in this session"))]:(this.session.markWalletDetected(a),[4,this.trackEvent(s.EventType.DETECT,{providerName:i,rdns:a},t,r,n)]);case 1:return e.sent(),[2]}}))}))},e.prototype.track=function(e,t,r,n){return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.trackEvent(s.EventType.TRACK,{event:e},t,r,n)];case 1:return i.sent(),[2]}}))}))},e.prototype.trackProvider=function(e){c.logger.info("trackProvider",e);try{if(e===this._provider)return void c.logger.warn("TrackProvider: Provider already tracked.");if(this.currentChainId=void 0,this.currentAddress=void 0,this._provider)for(var t=Object.keys(this._providerListeners),r=0,n=t;r<n.length;r++){var i=n[r];this._provider.removeListener(i,this._providerListeners[i]),delete this._providerListeners[i]}this._provider=e,this.registerAccountsChangedListener(),this.registerChainChangedListener(),this.registerConnectListener(),this.registerRequestListeners()}catch(e){c.logger.error("Error tracking provider:",e)}},e.prototype.registerAccountsChangedListener=function(){var e,t=this;c.logger.info("registerAccountsChangedListener");var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.onAccountsChanged(e[0])};null===(e=this._provider)||void 0===e||e.on("accountsChanged",r),this._providerListeners.accountsChanged=r},e.prototype.onAccountsChanged=function(e){return i(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:return c.logger.info("onAccountsChanged",e),0!==e.length?[3,2]:[4,this.disconnect()];case 1:return n.sent(),[2];case 2:return(t=e[0])===this.currentAddress?[2]:(this.currentAddress=t,r=this,[4,this.getCurrentChainId()]);case 3:return r.currentChainId=n.sent(),this.connect({chainId:this.currentChainId,address:t}),[2]}}))}))},e.prototype.registerChainChangedListener=function(){var e,t=this;c.logger.info("registerChainChangedListener");var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.onChainChanged(e[0])};null===(e=this.provider)||void 0===e||e.on("chainChanged",r),this._providerListeners.chainChanged=r},e.prototype.onChainChanged=function(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return c.logger.info("onChainChanged",e),this.currentChainId=(0,f.parseChainId)(e),this.currentAddress?[3,2]:this.provider?[4,this.getAddress()]:(c.logger.info("OnChainChanged: Provider not found. CHAIN_CHANGED not reported"),[2,Promise.resolve()]);case 1:if(!(t=r.sent()))return c.logger.info("OnChainChanged: Unable to fetch or store connected address"),[2,Promise.resolve()];this.currentAddress=t,r.label=2;case 2:return this.currentAddress?[2,this.chain({chainId:this.currentChainId,address:this.currentAddress})]:(c.logger.info("OnChainChanged: Current connected address is null despite fetch attempt"),[2])}}))}))},e.prototype.registerConnectListener=function(){var e,t=this;c.logger.info("registerConnectListener");var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[0];t.onConnected(n)};null===(e=this._provider)||void 0===e||e.on("connect",r),this._providerListeners.connect=r},e.prototype.onConnected=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(i){switch(i.label){case 0:c.logger.info("onConnected",e),i.label=1;case 1:return i.trys.push([1,3,,4]),e&&"string"==typeof e.chainId?(t=(0,f.parseChainId)(e.chainId),[4,this.getAddress()]):[2];case 2:return r=i.sent(),null!=t&&r&&this.connect({chainId:t,address:r}),[3,4];case 3:return n=i.sent(),c.logger.error("Error handling connect event",n),[3,4];case 4:return[2]}}))}))},e.prototype.registerRequestListeners=function(){var e,t=this;if(c.logger.info("registerRequestListeners"),this.provider)if(!1!==(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable)){var r=this.provider.request.bind(this.provider);this.provider.request=function(e){return i(t,[e],void 0,(function(e){var t,a,s,l,f=this,d=e.method,h=e.params;return o(this,(function(e){switch(e.label){case 0:if(!Array.isArray(h)||!["eth_signTypedData_v4","personal_sign"].includes(d))return[3,4];i(f,void 0,void 0,(function(){return o(this,(function(e){try{this.signature(n({status:u.SignatureStatus.REQUESTED},this.buildSignatureEventPayload(d,h)))}catch(e){c.logger.error("Formo: Failed to track signature request",e)}return[2]}))})),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r({method:d,params:h})];case 2:return t=e.sent(),i(f,void 0,void 0,(function(){return o(this,(function(e){try{t&&this.signature(n({status:u.SignatureStatus.CONFIRMED},this.buildSignatureEventPayload(d,h,t)))}catch(e){c.logger.error("Formo: Failed to track signature confirmation",e)}return[2]}))})),[2,t];case 3:throw a=e.sent(),i(f,void 0,void 0,(function(){var e;return o(this,(function(t){try{(e=a)&&4001===(null==e?void 0:e.code)&&this.signature(n({status:u.SignatureStatus.REJECTED},this.buildSignatureEventPayload(d,h)))}catch(e){c.logger.error("Formo: Failed to track signature rejection",e)}return[2]}))})),a;case 4:if(!Array.isArray(h)||"eth_sendTransaction"!==d||!h[0])return[3,8];i(f,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.buildTransactionEventPayload(h)];case 1:return e=r.sent(),this.transaction(n({status:u.TransactionStatus.STARTED},e)),[3,3];case 2:return t=r.sent(),c.logger.error("Formo: Failed to track transaction start",t),[3,3];case 3:return[2]}}))})),e.label=5;case 5:return e.trys.push([5,7,,8]),[4,r({method:d,params:h})];case 6:return s=e.sent(),i(f,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.buildTransactionEventPayload(h)];case 1:return e=r.sent(),this.transaction(n(n({status:u.TransactionStatus.BROADCASTED},e),{transactionHash:s})),this.pollTransactionReceipt(s,e),[3,3];case 2:return t=r.sent(),c.logger.error("Formo: Failed to track transaction broadcast",t),[3,3];case 3:return[2]}}))})),[2,s];case 7:throw l=e.sent(),i(f,void 0,void 0,(function(){var e,t,r;return o(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),(e=l)&&4001===(null==e?void 0:e.code)?[4,this.buildTransactionEventPayload(h)]:[3,2];case 1:t=i.sent(),this.transaction(n({status:u.TransactionStatus.REJECTED},t)),i.label=2;case 2:return[3,4];case 3:return r=i.sent(),c.logger.error("Formo: Failed to track transaction rejection",r),[3,4];case 4:return[2]}}))})),l;case 8:return[2,r({method:d,params:h})]}}))}))}}else c.logger.warn("Provider.request is not writable");else c.logger.error("Provider not found for request (signature, transaction) tracking")},e.prototype.onLocationChange=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return(0,c.cookie)().get(s.SESSION_CURRENT_URL_KEY)!==window.location.href&&((0,c.cookie)().set(s.SESSION_CURRENT_URL_KEY,window.location.href),this.trackPageHit()),[2]}))}))},e.prototype.trackPageHits=function(){return i(this,void 0,void 0,(function(){var e,t,r=this;return o(this,(function(n){return e=history.pushState,history.pushState=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,t);return window.dispatchEvent(new window.Event("locationchange")),n},t=history.replaceState,history.replaceState=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e);return window.dispatchEvent(new window.Event("locationchange")),n},window.addEventListener("popstate",(function(){return r.onLocationChange()})),window.addEventListener("locationchange",(function(){return r.onLocationChange()})),[2]}))}))},e.prototype.trackPageHit=function(e,t,r,n,a){return i(this,void 0,void 0,(function(){var u=this;return o(this,(function(l){return this.shouldTrack()?(setTimeout((function(){return i(u,void 0,void 0,(function(){return o(this,(function(i){return this.trackEvent(s.EventType.PAGE,{category:e,name:t},r,n,a),[2]}))}))}),300),[2]):(c.logger.info("Track page hit: Skipping event due to tracking configuration"),[2])}))}))},e.prototype.trackEvent=function(e,t,r,a,s){return i(this,void 0,void 0,(function(){return o(this,(function(i){try{if(!this.shouldTrack())return c.logger.info("Skipping ".concat(e," event due to tracking configuration")),[2];this.eventManager.addEvent(n(n({type:e},t),{properties:r,context:a,callback:s}),this.currentAddress,this.currentUserId)}catch(e){c.logger.error("Error tracking event:",e)}return[2]}))}))},e.prototype.shouldTrack=function(){if("boolean"==typeof this.options.tracking)return this.options.tracking;if(null!==this.options.tracking&&"object"==typeof this.options.tracking&&!Array.isArray(this.options.tracking)){var e=this.options.tracking,t=e.excludeHosts,r=void 0===t?[]:t,n=e.excludePaths,i=void 0===n?[]:n,o=e.excludeChains,a=void 0===o?[]:o;if(r.length>0&&"undefined"!=typeof window){var s=window.location.hostname;if(r.includes(s))return!1}if(i.length>0&&"undefined"!=typeof window){var c=window.location.pathname;if(i.includes(c))return!1}return!(a.length>0&&this.currentChainId&&a.includes(this.currentChainId))}return!(0,l.isLocalhost)()},e.prototype.getProviders=function(){return i(this,void 0,void 0,(function(){var e,t,r=this;return o(this,(function(n){return e=(0,a.createStore)(),t=e.getProviders(),e.subscribe((function(e){t=e,r._providers=t})),0===t.length?(this._providers=(null===window||void 0===window?void 0:window.ethereum)?[window.ethereum]:[],[2,this._providers]):(this._providers=t,[2,t])}))}))},Object.defineProperty(e.prototype,"providers",{get:function(){return this._providers},enumerable:!1,configurable:!0}),e.prototype.detectWallets=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,,6]),t=0,r=e,o.label=1;case 1:return t<r.length?(n=r[t],[4,this.detect({providerName:null==n?void 0:n.info.name,rdns:null==n?void 0:n.info.rdns})]):[3,4];case 2:o.sent(),o.label=3;case 3:return t++,[3,1];case 4:return[3,6];case 5:return i=o.sent(),c.logger.error("Error detect all wallets:",i),[3,6];case 6:return[2]}}))}))},Object.defineProperty(e.prototype,"provider",{get:function(){return this._provider},enumerable:!1,configurable:!0}),e.prototype.getAddress=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(i){switch(i.label){case 0:if(this.currentAddress)return[2,this.currentAddress];if(!(t=e||this.provider))return c.logger.info("The provider is not set"),[2,null];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.getAccounts(t)];case 2:return(r=i.sent())&&r.length>0&&(0,l.isAddress)(r[0])?[2,r[0]]:[3,4];case 3:return n=i.sent(),c.logger.error("Failed to fetch accounts from provider:",n),[2,null];case 4:return[2,null]}}))}))},e.prototype.getAccounts=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(i){switch(i.label){case 0:t=e||this.provider,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,null==t?void 0:t.request({method:"eth_accounts"})];case 2:return(r=i.sent())&&0!==r.length?[2,r.filter((function(e){return(0,l.isAddress)(e)}))]:[2,null];case 3:return 4001!==(n=i.sent()).code&&c.logger.error("FormoAnalytics::getAccounts: eth_accounts threw an error",n),[2,null];case 4:return[2]}}))}))},e.prototype.getCurrentChainId=function(){return i(this,void 0,void 0,(function(){var e,t,r;return o(this,(function(n){switch(n.label){case 0:this.provider||c.logger.error("Provider not set for chain ID"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,null===(r=this.provider)||void 0===r?void 0:r.request({method:"eth_chainId"})];case 2:return(e=n.sent())?[2,(0,f.parseChainId)(e)]:(c.logger.info("Chain id not found"),[2,0]);case 3:return t=n.sent(),c.logger.error("eth_chainId threw an error:",t),[2,0];case 4:return[2]}}))}))},e.prototype.buildSignatureEventPayload=function(e,t,r){var i={chainId:this.currentChainId,address:"personal_sign"===e?t[1]:t[0]};if("personal_sign"===e){var o=Buffer.from(t[0].slice(2),"hex").toString("utf8");return n(n(n({},i),{message:o}),r?{signatureHash:r}:{})}return n(n(n({},i),{message:t[1]}),r?{signatureHash:r}:{})},e.prototype.buildTransactionEventPayload=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:return t=e[0],r=t.data,n=t.from,i=t.to,a=t.value,c={},(s=this.currentChainId)?[3,2]:[4,this.getCurrentChainId()];case 1:s=o.sent(),o.label=2;case 2:return[2,(c.chainId=s,c.data=r,c.address=n,c.to=i,c.value=a,c)]}}))}))},e.prototype.pollTransactionReceipt=function(e,t){return i(this,arguments,void 0,(function(e,t,r,a){var s,l,f,d=this;return void 0===r&&(r=10),void 0===a&&(a=3e3),o(this,(function(h){return s=0,(l=this.provider)?(f=function(){return i(d,void 0,void 0,(function(){var i,d;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,l.request({method:"eth_getTransactionReceipt",params:[e]})];case 1:if(i=o.sent()){if("0x1"===i.status||1===i.status)return this.transaction(n(n({status:u.TransactionStatus.CONFIRMED},t),{transactionHash:e})),[2];if("0x0"===i.status||0===i.status)return this.transaction(n(n({status:u.TransactionStatus.REVERTED},t),{transactionHash:e})),[2]}return[3,3];case 2:return d=o.sent(),c.logger.error("Error polling transaction receipt",d),[3,3];case 3:return++s<r&&setTimeout(f,a),[2]}}))}))},f(),[2]):[2]}))}))},e}();t.FormoAnalytics=d;var h=function(){function e(){}return e.prototype.isWalletDetected=function(e){var t;return((null===(t=(0,c.cookie)().get(s.SESSION_WALLET_DETECTED_KEY))||void 0===t?void 0:t.split(","))||[]).includes(e)},e.prototype.markWalletDetected=function(e){var t,r=(null===(t=(0,c.cookie)().get(s.SESSION_WALLET_DETECTED_KEY))||void 0===t?void 0:t.split(","))||[];r.push(e),(0,c.cookie)().set(s.SESSION_WALLET_DETECTED_KEY,r.join(","),{expires:new Date(Date.now()+864e5).toUTCString(),path:"/"})},e}()},922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toChecksumAddress=void 0;var n=r(2019),i=r(2672),o=r(9754),a=r(4811);t.toChecksumAddress=function(e){if(!(0,o.isAddress)(e,!1))throw new Error("Invalid address "+e);var t=e.toLowerCase().replace(/^0x/i,""),r=(0,o.uint8ArrayToHexString)((0,n.keccak256)((0,o.ensureIfUint8Array)((0,i.utf8ToBytes)(t))));if((0,a.isNullish)(r)||"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"===r)return"";for(var s="0x",c=r.replace(/^0x/i,""),u=0;u<t.length;u+=1)parseInt(c[u],16)>7?s+=t[u].toUpperCase():s+=t[u];return s}},1020:(e,t,r)=>{"use strict";var n=r(6540),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:l,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},1371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1388:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StorageManager=void 0;var i=r(8177),o=n(r(8341)),a=n(r(1968)),s=n(r(6073)),c=["cookieStorage","localStorage","sessionStorage","memoryStorage"],u=function(){function e(e){this.writeKey=e,this.storages=new Map}return e.prototype.getStorage=function(e){if(!this.storages.has(e)){for(var t=this.createStorage(e);!t.isAvailable();){var r=c.indexOf(e);i.logger.warn("Storage ".concat(e," is not available, trying ").concat(c[r+1])),t=this.createStorage(c[r+1])}this.storages.set(e,t)}return this.storages.get(e)},e.prototype.createStorage=function(e){switch(e){case"cookieStorage":return new o.default(this.writeKey);case"localStorage":return new s.default(this.writeKey,localStorage);case"sessionStorage":return new s.default(this.writeKey,sessionStorage);default:return new a.default(this.writeKey)}},e}();t.StorageManager=u},1466:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(654)),o=n(r(9615)),a=(0,i.default)((function(e,t){return(0,o.default)((function(e,t,r){return r}),e,t)}));t.default=a},1484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=i,t.abytes=o,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=a,t.hexToNumber=s,t.bytesToHex=l,t.hexToBytes=h,t.bytesToNumberBE=function(e){return s(l(e))},t.bytesToNumberLE=function(e){return o(e),s(l(Uint8Array.from(e).reverse()))},t.numberToBytesBE=p,t.numberToBytesLE=function(e,t){return p(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(a(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=h(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!i(t))throw new Error(e+" must be hex string or Uint8Array");n=Uint8Array.from(t)}const o=n.length;if("number"==typeof r&&o!==r)throw new Error(e+" of length "+r+" expected, got "+o);return n},t.concatBytes=y,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))},t.inRange=g,t.aInRange=function(e,t,r,n){if(!g(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,i){return e|(i?n:r)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=A(e),i=A(e),o=0;const a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=A(0))=>{i=s(m([0]),e),n=s(),0!==e.length&&(i=s(m([1]),e),n=s())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){n=s();const t=n.slice();r.push(t),e+=n.length}return y(...r)};return(e,t)=>{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}},t.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const i=b[r];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};for(const[e,r]of Object.entries(t))n(e,r,!1);for(const[e,t]of Object.entries(r))n(e,t,!0);return e},t.memoized=function(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(void 0!==i)return i;const o=e(r,...n);return t.set(r,o),o}};const r=BigInt(0),n=BigInt(1);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!i(e))throw new Error("Uint8Array expected")}function a(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function s(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function l(e){if(o(e),c)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t}const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=f._0&&e<=f._9?e-f._0:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(c)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){const r=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(void 0===r||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}n[t]=16*r+o}return n}function p(e,t){return h(e.toString(16).padStart(2*t,"0"))}function y(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];o(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r}const v=e=>"bigint"==typeof e&&r<=e;function g(e,t,r){return v(e)&&v(t)&&v(r)&&t<=e&&e<r}t.bitMask=e=>(n<<BigInt(e))-n;const A=e=>new Uint8Array(e),m=e=>Uint8Array.from(e),b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||i(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw new Error("not implemented")}},1565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1934:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1968:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.memoryStorage={},t}return i(t,e),t.prototype.isAvailable=function(){return!0},t.prototype.set=function(e,t){this.memoryStorage[this.getKey(e)]=t},t.prototype.get=function(e){return this.memoryStorage[this.getKey(e)]||null},t.prototype.remove=function(e){delete this.memoryStorage[this.getKey(e)]},t}(o(r(2200)).default);t.default=a},2019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const n=r(2955),i=r(2672);t.keccak224=(0,i.wrapHash)(n.keccak_224),t.keccak256=(()=>{const e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),t.keccak384=(0,i.wrapHash)(n.keccak_384),t.keccak512=(0,i.wrapHash)(n.keccak_512)},2066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},2200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7532),i=function(){function e(e){this.writeKey=e}return e.prototype.getKey=function(e){return"".concat(n.KEY_PREFIX,"_").concat(this.writeKey,".").concat(e)},e}();t.default=i},2309:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.EventChannel=t.EventType=void 0,function(e){e.PAGE="page",e.IDENTIFY="identify",e.DETECT="detect",e.CONNECT="connect",e.DISCONNECT="disconnect",e.CHAIN="chain",e.SIGNATURE="signature",e.TRANSACTION="transaction",e.TRACK="track"}(r||(t.EventType=r={})),function(e){e.WEB="web",e.MOBILE="mobile",e.SERVER="server",e.SOURCE="source"}(n||(t.EventChannel=n={}))},2317:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=void 0,t.announceProvider=function(e){const t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t);const r=()=>window.dispatchEvent(t);return window.addEventListener("eip6963:requestProvider",r),()=>window.removeEventListener("eip6963:requestProvider",r)},t.requestProviders=function(e){if("undefined"==typeof window)return;const t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}},2318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=m,t.fromBig=i,t.split=o;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let a=0;a<r;a++){const{h:r,l:s}=i(e[a],t);[n[a],o[a]]=[r,s]}return[n,o]}const a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=a;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;const f=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=f;const d=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=d;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const y=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=y;const v=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=v;const g=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=g;const A=(e,t,r)=>e<<r-32|t>>>64-r;function m(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.rotlBL=A;const b=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=b;const _=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=_;const E=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=E;const w=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;t.add4H=w;const S=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=S;const T=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;t.add5H=T;const O={fromBig:i,split:o,toBig:a,shrSH:s,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:f,rotrBL:d,rotr32H:h,rotr32L:p,rotlSH:y,rotlSL:v,rotlBH:g,rotlBL:A,add:m,add3L:b,add3H:_,add4L:E,add4H:w,add5H:T,add5L:S};t.default=O},2672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertBytes=t.assertBool=t.utf8ToBytes=t.toHex=t.createView=t.concatBytes=t.bytesToHex=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.wrapHash=function(e){return t=>((0,i.abytes)(t),e(t))};const n=r(1484);Object.defineProperty(t,"assertBool",{enumerable:!0,get:function(){return n.abool}});const i=r(7557);Object.defineProperty(t,"assertBytes",{enumerable:!0,get:function(){return i.abytes}});const o=r(9175);var a=r(9175);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return a.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return a.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return a.createView}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return a.bytesToHex}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return a.utf8ToBytes}})},2865:function(e,t){"use strict";var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.Logger=void 0;var n=function(){function e(e,t){void 0===e&&(e=!1),void 0===t&&(t=[]),this.enabled=e,this.enabledLevels=new Set(t)}return e.init=function(t){var r=e.getInstance();void 0!==t.enabled&&r.setEnabled(t.enabled),void 0!==t.enabledLevels&&r.setEnabledLevels(t.enabledLevels)},e.getInstance=function(t){var r,n;return e.instance||(e.instance=new e(null!==(r=null==t?void 0:t.enabled)&&void 0!==r&&r,null!==(n=null==t?void 0:t.enabledLevels)&&void 0!==n?n:[])),e.instance},e.prototype.setEnabled=function(e){this.enabled=e},e.prototype.isLoggingEnabled=function(){return this.enabled},e.prototype.setEnabledLevels=function(e){this.enabledLevels=new Set(e)},e.prototype.getEnabledLevels=function(){return Array.from(this.enabledLevels)},e.prototype.shouldLog=function(e){return!!this.enabled&&this.enabledLevels.has(e)},e.prototype.formatMessage=function(e){var t=(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return"[Formo SDK][".concat(t,"] ").concat(e)},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("debug")&&console.debug.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("info")&&console.info.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("warn")&&console.warn.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("error")&&console.error.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("trace")&&console.trace.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.info.apply(this,r([e],t,!1))},e}();t.Logger=n,t.logger=n.getInstance()},2955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=m;const n=r(2318),i=r(9175),o=BigInt(0),a=BigInt(1),s=BigInt(2),c=BigInt(7),u=BigInt(256),l=BigInt(113),f=[],d=[],h=[];for(let e=0,t=a,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],f.push(2*(5*n+r)),d.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)t=(t<<a^(t>>c)*l)%u,t&s&&(i^=a<<(a<<BigInt(e))-a);h.push(i)}const p=(0,n.split)(h,!0),y=p[0],v=p[1],g=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),A=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function m(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=g(o,a,1)^r[n],c=A(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=d[r],o=g(t,i,n),a=A(t,i,n),s=f[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=y[n],e[1]^=v[n]}(0,i.clean)(r)}class b extends i.Hash{constructor(e,t,r,n=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=o,(0,i.anumber)(r),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.swap32IfBE)(this.state32),m(this.state32,this.rounds),(0,i.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.aexists)(this),e=(0,i.toBytes)(e),(0,i.abytes)(e);const{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){const o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,i.aexists)(this,!1),(0,i.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.clean)(this.state)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new b(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=b;const _=(e,t,r)=>(0,i.createHasher)((()=>new b(t,e,r)));t.sha3_224=_(6,144,28),t.sha3_256=_(6,136,32),t.sha3_384=_(6,104,48),t.sha3_512=_(6,72,64),t.keccak_224=_(1,144,28),t.keccak_256=_(1,136,32),t.keccak_384=_(1,104,48),t.keccak_512=_(1,72,64);const E=(e,t,r)=>(0,i.createXOFer)(((n={})=>new b(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},2970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formofy=function(e,t){e&&"undefined"!=typeof window?n.FormoAnalytics.init(e,t).then((function(e){window.formo=e})).catch((function(e){return console.error("Error initializing FormoAnalytics:",e)})):console.warn("FormoAnalytics not found")};var n=r(879)},3113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=function(e){var t,r;return e instanceof Uint8Array||"Uint8Array"===(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)||"Buffer"===(null===(r=null==e?void 0:e.constructor)||void 0===r?void 0:r.name)},t.uint8ArrayToHexString=function(e){for(var t="0x",r=0,n=e;r<n.length;r++){var i=n[r].toString(16);t+=1===i.length?"0".concat(i):i}return t}},3318:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(r,n){if(n=n||{},"function"!=typeof r)throw new t("fetch must be a function");if("object"!=typeof n)throw new t("defaults must be an object");if(void 0!==n.retries&&!e(n.retries))throw new t("retries must be a positive integer");if(void 0!==n.retryDelay&&!e(n.retryDelay)&&"function"!=typeof n.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==n.retryOn&&!Array.isArray(n.retryOn)&&"function"!=typeof n.retryOn)throw new t("retryOn property expects an array or function");return n=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},n),function(i,o){var a=n.retries,s=n.retryDelay,c=n.retryOn;if(o&&void 0!==o.retries){if(!e(o.retries))throw new t("retries must be a positive integer");a=o.retries}if(o&&void 0!==o.retryDelay){if(!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=o.retryDelay}if(o&&o.retryOn){if(!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");c=o.retryOn}return new Promise((function(e,t){var n=function(n){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;r(s,o).then((function(r){if(Array.isArray(c)&&-1===c.indexOf(r.status))e(r);else if("function"==typeof c)try{return Promise.resolve(c(n,null,r)).then((function(t){t?u(n,null,r):e(r)})).catch(t)}catch(e){t(e)}else n<a?u(n,null,r):e(r)})).catch((function(e){if("function"==typeof c)try{Promise.resolve(c(n,e,null)).then((function(r){r?u(n,e,null):t(e)})).catch((function(e){t(e)}))}catch(e){t(e)}else n<a?u(n,e,null):t(e)}))};function u(e,t,r){var i="function"==typeof s?s(e,t,r):s;setTimeout((function(){n(++e)}),i)}n(0)}))}}}()},3358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COUNTRY_LIST=t.EVENTS_API_REQUEST_HEADER=t.USER_API_URL=t.EVENTS_API_URL=t.EVENTS_API_HOST=void 0,t.EVENTS_API_HOST="https://events.formo.so",t.EVENTS_API_URL="".concat(t.EVENTS_API_HOST,"/v0/raw_events"),t.USER_API_URL="".concat(t.EVENTS_API_HOST,"/user"),t.EVENTS_API_REQUEST_HEADER=function(e){return{"Content-Type":"application/json",Authorization:"Basic ".concat(e)}},t.COUNTRY_LIST={"Africa/Abidjan":"CI","Africa/Accra":"GH","Africa/Addis_Ababa":"ET","Africa/Algiers":"DZ","Africa/Asmara":"ER","Africa/Asmera":"ER","Africa/Bamako":"ML","Africa/Bangui":"CF","Africa/Banjul":"GM","Africa/Bissau":"GW","Africa/Blantyre":"MW","Africa/Brazzaville":"CG","Africa/Bujumbura":"BI","Africa/Cairo":"EG","Africa/Casablanca":"MA","Africa/Ceuta":"ES","Africa/Conakry":"GN","Africa/Dakar":"SN","Africa/Dar_es_Salaam":"TZ","Africa/Djibouti":"DJ","Africa/Douala":"CM","Africa/El_Aaiun":"EH","Africa/Freetown":"SL","Africa/Gaborone":"BW","Africa/Harare":"ZW","Africa/Johannesburg":"ZA","Africa/Juba":"SS","Africa/Kampala":"UG","Africa/Khartoum":"SD","Africa/Kigali":"RW","Africa/Kinshasa":"CD","Africa/Lagos":"NG","Africa/Libreville":"GA","Africa/Lome":"TG","Africa/Luanda":"AO","Africa/Lubumbashi":"CD","Africa/Lusaka":"ZM","Africa/Malabo":"GQ","Africa/Maputo":"MZ","Africa/Maseru":"LS","Africa/Mbabane":"SZ","Africa/Mogadishu":"SO","Africa/Monrovia":"LR","Africa/Nairobi":"KE","Africa/Ndjamena":"TD","Africa/Niamey":"NE","Africa/Nouakchott":"MR","Africa/Ouagadougou":"BF","Africa/Porto-Novo":"BJ","Africa/Sao_Tome":"ST","Africa/Timbuktu":"ML","Africa/Tripoli":"LY","Africa/Tunis":"TN","Africa/Windhoek":"NA","America/Adak":"US","America/Anchorage":"US","America/Anguilla":"AI","America/Antigua":"AG","America/Araguaina":"BR","America/Argentina/Buenos_Aires":"AR","America/Argentina/Catamarca":"AR","America/Argentina/ComodRivadavia":"AR","America/Argentina/Cordoba":"AR","America/Argentina/Jujuy":"AR","America/Argentina/La_Rioja":"AR","America/Argentina/Mendoza":"AR","America/Argentina/Rio_Gallegos":"AR","America/Argentina/Salta":"AR","America/Argentina/San_Juan":"AR","America/Argentina/San_Luis":"AR","America/Argentina/Tucuman":"AR","America/Argentina/Ushuaia":"AR","America/Aruba":"AW","America/Asuncion":"PY","America/Atikokan":"CA","America/Atka":"US","America/Bahia":"BR","America/Bahia_Banderas":"MX","America/Barbados":"BB","America/Belem":"BR","America/Belize":"BZ","America/Blanc-Sablon":"CA","America/Boa_Vista":"BR","America/Bogota":"CO","America/Boise":"US","America/Buenos_Aires":"AR","America/Cambridge_Bay":"CA","America/Campo_Grande":"BR","America/Cancun":"MX","America/Caracas":"VE","America/Catamarca":"AR","America/Cayenne":"GF","America/Cayman":"KY","America/Chicago":"US","America/Chihuahua":"MX","America/Ciudad_Juarez":"MX","America/Coral_Harbour":"CA","America/Cordoba":"AR","America/Costa_Rica":"CR","America/Creston":"CA","America/Cuiaba":"BR","America/Curacao":"CW","America/Danmarkshavn":"GL","America/Dawson":"CA","America/Dawson_Creek":"CA","America/Denver":"US","America/Detroit":"US","America/Dominica":"DM","America/Edmonton":"CA","America/Eirunepe":"BR","America/El_Salvador":"SV","America/Ensenada":"MX","America/Fort_Nelson":"CA","America/Fort_Wayne":"US","America/Fortaleza":"BR","America/Glace_Bay":"CA","America/Godthab":"GL","America/Goose_Bay":"CA","America/Grand_Turk":"TC","America/Grenada":"GD","America/Guadeloupe":"GP","America/Guatemala":"GT","America/Guayaquil":"EC","America/Guyana":"GY","America/Halifax":"CA","America/Havana":"CU","America/Hermosillo":"MX","America/Indiana/Indianapoli":"US","America/Indiana/Knox":"US","America/Indiana/Marengo":"US","America/Indiana/Petersburg":"US","America/Indiana/Tell_City":"US","America/Indiana/Vevay":"US","America/Indiana/Vincennes":"US","America/Indiana/Winamac":"US","America/Indianapoli":"US","America/Inuvik":"CA","America/Iqaluit":"CA","America/Jamaica":"JM","America/Jujuy":"AR","America/Juneau":"US","America/Kentucky/Louisville":"US","America/Kentucky/Monticello":"US","America/Knox_IN":"US","America/Kralendijk":"BQ","America/La_Paz":"BO","America/Lima":"PE","America/Los_Angeles":"US","America/Louisville":"US","America/Lower_Princes":"SX","America/Maceio":"BR","America/Managua":"NI","America/Manaus":"BR","America/Marigot":"MF","America/Martinique":"MQ","America/Matamoros":"MX","America/Mazatlan":"MX","America/Mendoza":"AR","America/Menominee":"US","America/Merida":"MX","America/Metlakatla":"US","America/Mexico_City":"MX","America/Miquelon":"PM","America/Moncton":"CA","America/Monterrey":"MX","America/Montevideo":"UY","America/Montreal":"CA","America/Montserrat":"MS","America/Nassau":"BS","America/New_York":"US","America/Nipigon":"CA","America/Nome":"US","America/Noronha":"BR","America/North_Dakota/Beulah":"US","America/North_Dakota/Center":"US","America/North_Dakota/New_Salem":"US","America/Nuuk":"GL","America/Ojinaga":"MX","America/Panama":"PA","America/Pangnirtung":"CA","America/Paramaribo":"SR","America/Phoenix":"US,CA","America/Port-au-Prince":"HT","America/Port_of_Spain":"TT","America/Porto_Acre":"BR","America/Porto_Velho":"BR","America/Puerto_Rico":"PR","America/Punta_Arenas":"CL","America/Rainy_River":"CA","America/Rankin_Inlet":"CA","America/Recife":"BR","America/Regina":"CA","America/Resolute":"CA","America/Rio_Branco":"BR","America/Rosario":"AR","America/Santa_Isabel":"MX","America/Santarem":"BR","America/Santiago":"CL","America/Santo_Domingo":"DO","America/Sao_Paulo":"BR","America/Scoresbysund":"GL","America/Shiprock":"US","America/Sitka":"US","America/St_Barthelemy":"BL","America/St_Johns":"CA","America/St_Kitts":"KN","America/St_Lucia":"LC","America/St_Thomas":"VI","America/St_Vincent":"VC","America/Swift_Current":"CA","America/Tegucigalpa":"HN","America/Thule":"GL","America/Thunder_Bay":"CA","America/Tijuana":"MX","America/Toronto":"CA","America/Tortola":"VG","America/Vancouver":"CA","America/Virgin":"VI","America/Whitehorse":"CA","America/Winnipeg":"CA","America/Yakutat":"US","America/Yellowknife":"CA","Antarctica/Casey":"AQ","Antarctica/Davis":"AQ","Antarctica/DumontDUrville":"AQ","Antarctica/Macquarie":"AU","Antarctica/Mawson":"AQ","Antarctica/McMurdo":"AQ","Antarctica/Palmer":"AQ","Antarctica/Rothera":"AQ","Antarctica/South_Pole":"AQ","Antarctica/Syowa":"AQ","Antarctica/Troll":"AQ","Antarctica/Vostok":"AQ","Arctic/Longyearbyen":"SJ","Asia/Aden":"YE","Asia/Almaty":"KZ","Asia/Amman":"JO","Asia/Anadyr":"RU","Asia/Aqtau":"KZ","Asia/Aqtobe":"KZ","Asia/Ashgabat":"TM","Asia/Ashkhabad":"TM","Asia/Atyrau":"KZ","Asia/Baghdad":"IQ","Asia/Bahrain":"BH","Asia/Baku":"AZ","Asia/Bangkok":"TH","Asia/Barnaul":"RU","Asia/Beirut":"LB","Asia/Bishkek":"KG","Asia/Brunei":"BN","Asia/Calcutta":"IN","Asia/Chita":"RU","Asia/Choibalsan":"MN","Asia/Chongqing":"CN","Asia/Chungking":"CN","Asia/Colombo":"LK","Asia/Dacca":"BD","Asia/Damascus":"SY","Asia/Dhaka":"BD","Asia/Dili":"TL","Asia/Dubai":"AE","Asia/Dushanbe":"TJ","Asia/Famagusta":"CY","Asia/Gaza":"PS","Asia/Harbin":"CN","Asia/Hebron":"PS","Asia/Ho_Chi_Minh":"VN","Asia/Hong_Kong":"HK","Asia/Hovd":"MN","Asia/Irkutsk":"RU","Asia/Istanbul":"TR","Asia/Jakarta":"ID","Asia/Jayapura":"ID","Asia/Jerusalem":"IL","Asia/Kabul":"AF","Asia/Kamchatka":"RU","Asia/Karachi":"PK","Asia/Kashgar":"CN","Asia/Kathmandu":"NP","Asia/Katmandu":"NP","Asia/Khandyga":"RU","Asia/Kolkata":"IN","Asia/Krasnoyarsk":"RU","Asia/Kuala_Lumpur":"MY","Asia/Kuching":"MY","Asia/Kuwait":"KW","Asia/Macao":"MO","Asia/Macau":"MO","Asia/Magadan":"RU","Asia/Makassar":"ID","Asia/Manila":"PH","Asia/Muscat":"OM","Asia/Nicosia":"CY","Asia/Novokuznetsk":"RU","Asia/Novosibirsk":"RU","Asia/Omsk":"RU","Asia/Oral":"KZ","Asia/Phnom_Penh":"KH","Asia/Pontianak":"ID","Asia/Pyongyang":"KP","Asia/Qatar":"QA","Asia/Qostanay":"KZ","Asia/Qyzylorda":"KZ","Asia/Rangoon":"MM","Asia/Riyadh":"SA","Asia/Saigon":"VN","Asia/Sakhalin":"RU","Asia/Samarkand":"UZ","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Srednekolymsk":"RU","Asia/Taipei":"TW","Asia/Tashkent":"UZ","Asia/Tbilisi":"GE","Asia/Tehran":"IR","Asia/Tel_Aviv":"IL","Asia/Thimbu":"BT","Asia/Thimphu":"BT","Asia/Tokyo":"JP","Asia/Tomsk":"RU","Asia/Ujung_Pandang":"ID","Asia/Ulaanbaatar":"MN","Asia/Ulan_Bator":"MN","Asia/Urumqi":"CN","Asia/Ust-Nera":"RU","Asia/Vientiane":"LA","Asia/Vladivostok":"RU","Asia/Yakutsk":"RU","Asia/Yangon":"MM","Asia/Yekaterinburg":"RU","Asia/Yerevan":"AM","Atlantic/Azores":"PT","Atlantic/Bermuda":"BM","Atlantic/Canary":"ES","Atlantic/Cape_Verde":"CV","Atlantic/Faeroe":"FO","Atlantic/Faroe":"FO","Atlantic/Jan_Mayen":"SJ","Atlantic/Madeira":"PT","Atlantic/Reykjavik":"IS","Atlantic/South_Georgia":"GS","Atlantic/St_Helena":"SH","Atlantic/Stanley":"FK","Australia/ACT":"AU","Australia/Adelaide":"AU","Australia/Brisbane":"AU","Australia/Broken_Hill":"AU","Australia/Canberra":"AU","Australia/Currie":"AU","Australia/Darwin":"AU","Australia/Eucla":"AU","Australia/Hobart":"AU","Australia/LHI":"AU","Australia/Lindeman":"AU","Australia/Lord_Howe":"AU","Australia/Melbourne":"AU","Australia/North":"AU","Australia/NSW":"AU","Australia/Perth":"AU","Australia/Queensland":"AU","Australia/South":"AU","Australia/Sydney":"AU","Australia/Tasmania":"AU","Australia/Victoria":"AU","Australia/West":"AU","Australia/Yancowinna":"AU","Brazil/Acre":"BR","Brazil/DeNoronha":"BR","Brazil/East":"BR","Brazil/West":"BR","Canada/Atlantic":"CA","Canada/Central":"CA","Canada/Eastern":"CA","Canada/Mountain":"CA","Canada/Newfoundland":"CA","Canada/Pacific":"CA","Canada/Saskatchewan":"CA","Canada/Yukon":"CA",CET:"CET","Chile/Continental":"CL","Chile/EasterIsland":"CL",CST6CDT:"CST6CDT",Cuba:"CU",EET:"EET",Egypt:"EG",Eire:"IE",EST:"EST",EST5EDT:"EST5EDT","Etc/GMT":"Etc/GMT","Etc/GMT+0":"Etc/GMT+0","Etc/GMT+1":"Etc/GMT+1","Etc/GMT+10":"Etc/GMT+10","Etc/GMT+11":"Etc/GMT+11","Etc/GMT+12":"Etc/GMT+12","Etc/GMT+2":"Etc/GMT+2","Etc/GMT+3":"Etc/GMT+3","Etc/GMT+4":"Etc/GMT+4","Etc/GMT+5":"Etc/GMT+5","Etc/GMT+6":"Etc/GMT+6","Etc/GMT+7":"Etc/GMT+7","Etc/GMT+8":"Etc/GMT+8","Etc/GMT+9":"Etc/GMT+9","Etc/GMT-0":"Etc/GMT-0","Etc/GMT-1":"Etc/GMT-1","Etc/GMT-10":"Etc/GMT-10","Etc/GMT-11":"Etc/GMT-11","Etc/GMT-12":"Etc/GMT-12","Etc/GMT-13":"Etc/GMT-13","Etc/GMT-14":"Etc/GMT-14","Etc/GMT-2":"Etc/GMT-2","Etc/GMT-3":"Etc/GMT-3","Etc/GMT-4":"Etc/GMT-4","Etc/GMT-5":"Etc/GMT-5","Etc/GMT-6":"Etc/GMT-6","Etc/GMT-7":"Etc/GMT-7","Etc/GMT-8":"Etc/GMT-8","Etc/GMT-9":"Etc/GMT-9","Etc/GMT0":"Etc/GMT0","Etc/Greenwich":"Etc/Greenwich","Etc/UCT":"Etc/UCT","Etc/UTC":"Etc/UTC","Etc/Universal":"Etc/Universal","Etc/Zulu":"Etc/Zulu","Europe/Amsterdam":"NL","Europe/Andorra":"AD","Europe/Astrakhan":"RU","Europe/Athens":"GR","Europe/Belfast":"GB","Europe/Belgrade":"RS","Europe/Berlin":"DE","Europe/Bratislava":"SK","Europe/Brussels":"BE","Europe/Bucharest":"RO","Europe/Budapest":"HU","Europe/Busingen":"DE","Europe/Chisinau":"MD","Europe/Copenhagen":"DK","Europe/Dublin":"IE","Europe/Gibraltar":"GI","Europe/Guernsey":"GG","Europe/Helsinki":"FI","Europe/Isle_of_Man":"IM","Europe/Istanbul":"TR","Europe/Jersey":"JE","Europe/Kaliningrad":"RU","Europe/Kiev":"UA","Europe/Kirov":"RU","Europe/Kyiv":"UA","Europe/Lisbon":"PT","Europe/Ljubljana":"SI","Europe/London":"GB","Europe/Luxembourg":"LU","Europe/Madrid":"ES","Europe/Malta":"MT","Europe/Mariehamn":"AX","Europe/Minsk":"BY","Europe/Monaco":"MC","Europe/Moscow":"RU","Europe/Nicosia":"CY","Europe/Oslo":"NO","Europe/Paris":"FR","Europe/Podgorica":"ME","Europe/Prague":"CZ","Europe/Riga":"LV","Europe/Rome":"IT","Europe/Samara":"RU","Europe/San_Marino":"SM","Europe/Sarajevo":"BA","Europe/Saratov":"RU","Europe/Simferopol":"RU","Europe/Skopje":"MK","Europe/Sofia":"BG","Europe/Stockholm":"SE","Europe/Tallinn":"EE","Europe/Tirane":"AL","Europe/Tiraspol":"MD","Europe/Ulyanovsk":"RU","Europe/Uzhgorod":"UA","Europe/Vaduz":"LI","Europe/Vatican":"VA","Europe/Vienna":"AT","Europe/Vilnius":"LT","Europe/Volgograd":"RU","Europe/Warsaw":"PL","Europe/Zagreb":"HR","Europe/Zaporozhye":"UA","Europe/Zurich":"CH",Factory:"Factory",GB:"GB","GB-Eire":"GB",GMT:"GMT","GMT+0":"GMT+0","GMT-0":"GMT-0",GMT0:"GMT0",Greenwich:"Greenwich",Hongkong:"HK",HST:"HST",Iceland:"IS","Indian/Antananarivo":"MG","Indian/Chagos":"IO","Indian/Christmas":"CX","Indian/Cocos":"CC","Indian/Comoro":"KM","Indian/Kerguelen":"TF","Indian/Mahe":"SC","Indian/Maldives":"MV","Indian/Mauritius":"MU","Indian/Mayotte":"YT","Indian/Reunion":"RE",Iran:"IR",Israel:"IL",Jamaica:"JM",Japan:"JP",Kwajalein:"MH",Libya:"LY",MET:"MET","Mexico/BajaNorte":"MX","Mexico/BajaSur":"MX","Mexico/General":"MX",MST:"MST",MST7MDT:"MST7MDT",Navajo:"US",NZ:"NZ","NZ-CHAT":"NZ","Pacific/Apia":"WS","Pacific/Auckland":"NZ","Pacific/Bougainville":"PG","Pacific/Chatham":"NZ","Pacific/Chuuk":"FM","Pacific/Easter":"CL","Pacific/Efate":"VU","Pacific/Enderbury":"KI","Pacific/Fakaofo":"TK","Pacific/Fiji":"FJ","Pacific/Funafuti":"TV","Pacific/Galapagos":"EC","Pacific/Gambier":"PF","Pacific/Guadalcanal":"SB","Pacific/Guam":"GU,MP","Pacific/Honolulu":"US","Pacific/Johnston":"UM","Pacific/Kanton":"KI","Pacific/Kiritimati":"KI","Pacific/Kosrae":"FM","Pacific/Kwajalein":"MH","Pacific/Majuro":"MH","Pacific/Marquesas":"PF","Pacific/Midway":"UM","Pacific/Nauru":"NR","Pacific/Niue":"NU","Pacific/Norfolk":"NF","Pacific/Noumea":"NC","Pacific/Pago_Pago":"AS","Pacific/Palau":"PW","Pacific/Pitcairn":"PN","Pacific/Pohnpei":"FM","Pacific/Ponape":"FM","Pacific/Port_Moresby":"PG","Pacific/Rarotonga":"CK","Pacific/Saipan":"MP","Pacific/Samoa":"AS","Pacific/Tahiti":"PF","Pacific/Tarawa":"KI","Pacific/Tongatapu":"TO","Pacific/Truk":"FM","Pacific/Wake":"UM","Pacific/Wallis":"WF","Pacific/Yap":"FM",Poland:"PL",Portugal:"PT",PRC:"CN",PST8PDT:"PST8PDT",ROC:"TW",ROK:"KR",Singapore:"SG",Turkey:"TR",UCT:"UCT",Universal:"Universal","US/Alaska":"US","US/Aleutian":"US","US/Arizona":"US","US/Central":"US","US/East-Indiana":"US","US/Eastern":"US","US/Hawaii":"US","US/Indiana-Starke":"US","US/Michigan":"US","US/Mountain":"US","US/Pacific":"US","US/Samoa":"AS",UTC:"UTC","W-SU":"RU",WET:"WET",Zulu:"Zulu"}},3500:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(689),t),i(r(1934),t)},3574:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(7989),t),i(r(4465),t),i(r(7521),t)},3961:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4229)),o=n(r(661)),a=(0,i.default)((function(e,t,r){var n,i={};for(n in r=r||{},t=t||{})(0,o.default)(n,t)&&(i[n]=(0,o.default)(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)(0,o.default)(n,r)&&!(0,o.default)(n,i)&&(i[n]=r[n]);return i}));t.default=a},4228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=t.createStore=void 0;var n=r(6349);Object.defineProperty(t,"createStore",{enumerable:!0,get:function(){return n.createStore}});var i=r(2317);Object.defineProperty(t,"announceProvider",{enumerable:!0,get:function(){return i.announceProvider}}),Object.defineProperty(t,"requestProviders",{enumerable:!0,get:function(){return i.requestProviders}})},4229:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return(0,a.default)(r)?t:(0,o.default)((function(t,n){return e(r,t,n)}));case 2:return(0,a.default)(r)&&(0,a.default)(n)?t:(0,a.default)(r)?(0,o.default)((function(t,r){return e(t,n,r)})):(0,a.default)(n)?(0,o.default)((function(t,n){return e(r,t,n)})):(0,i.default)((function(t){return e(r,n,t)}));default:return(0,a.default)(r)&&(0,a.default)(n)&&(0,a.default)(s)?t:(0,a.default)(r)&&(0,a.default)(n)?(0,o.default)((function(t,r){return e(t,r,s)})):(0,a.default)(r)&&(0,a.default)(s)?(0,o.default)((function(t,r){return e(t,n,r)})):(0,a.default)(n)&&(0,a.default)(s)?(0,o.default)((function(t,n){return e(r,t,n)})):(0,a.default)(r)?(0,i.default)((function(t){return e(t,n,s)})):(0,a.default)(n)?(0,i.default)((function(t){return e(r,t,s)})):(0,a.default)(s)?(0,i.default)((function(t){return e(r,n,t)})):e(r,n,s)}}};var i=n(r(4323)),o=n(r(654)),a=n(r(80))},4262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clampNumber=t.toDateHourMinute=t.millisecondsToSecond=void 0,t.toSnakeCase=function(e,t){void 0===t&&(t=[]);var n=function(e){return Array.isArray(e)?e.map(n):null!==e&&"object"==typeof e?Object.keys(e).reduce((function(i,o){return i[t.includes(o)?o:r(o)]=t.includes(o)?e[o]:n(e[o]),i}),{}):e};return n(e)};var r=function(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase()};t.millisecondsToSecond=function(e){return Math.ceil(e/1e3)},t.toDateHourMinute=function(e){return e.getUTCFullYear()+"-"+("0"+(e.getUTCMonth()+1)).slice(-2)+"-"+("0"+e.getUTCDate()).slice(-2)+" "+("0"+e.getUTCHours()).slice(-2)+":"+("0"+e.getUTCMinutes()).slice(-2)},t.clampNumber=function(e,t,r){return Math.min(Math.max(e,r),t)}},4323:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function t(r){return 0===arguments.length||(0,i.default)(r)?t:e.apply(this,arguments)}};var i=n(r(80))},4364:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(3318));t.default=(0,i.default)(r.g.fetch)},4465:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=t.SignatureStatus=void 0,function(e){e.REQUESTED="requested",e.REJECTED="rejected",e.CONFIRMED="confirmed"}(r||(t.SignatureStatus=r={})),function(e){e.STARTED="started",e.REJECTED="rejected",e.BROADCASTED="broadcasted",e.CONFIRMED="confirmed",e.REVERTED="reverted"}(n||(t.TransactionStatus=n={}))},4476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.17.7"},4811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullish=void 0,t.isNullish=function(e){return null==e}},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},5145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5190:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFormo=t.FormoAnalyticsProvider=t.FormoAnalyticsContext=void 0;var a=r(4848),s=r(6540),c=r(879),u=r(8568),l={chain:function(){return Promise.resolve()},page:function(){return Promise.resolve()},reset:function(){return Promise.resolve()},detect:function(){return Promise.resolve()},connect:function(){return Promise.resolve()},disconnect:function(){return Promise.resolve()},signature:function(){return Promise.resolve()},transaction:function(){return Promise.resolve()},identify:function(){return Promise.resolve()},track:function(){return Promise.resolve()}};t.FormoAnalyticsContext=(0,s.createContext)(l),t.FormoAnalyticsProvider=function(e){var t=e.writeKey,r=e.disabled,i=void 0!==r&&r,o=e.children;return t?i?(u.logger.warn("FormoAnalytics is disabled"),(0,a.jsx)(a.Fragment,{children:o})):(0,a.jsx)(f,n({},e)):(u.logger.error("FormoAnalyticsProvider: No Write Key provided"),(0,a.jsx)(a.Fragment,{children:o}))};var f=function(e){var r=e.writeKey,n=e.options,f=e.children,d=(0,s.useState)(l),h=d[0],p=d[1],y=(0,s.useRef)(!1);return(0,u.initStorageManager)(r),(0,s.useEffect)((function(){i(void 0,void 0,void 0,(function(){var e,t;return o(this,(function(i){switch(i.label){case 0:if(y.current)return[2];y.current=!0,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,c.FormoAnalytics.init(r,n)];case 2:return e=i.sent(),p(e),u.logger.log("Successfully initialized :)"),[3,4];case 3:return t=i.sent(),u.logger.error("Failed to initialize :(",t),[3,4];case 4:return[2]}}))}))}),[r,n]),(0,a.jsx)(t.FormoAnalyticsContext.Provider,{value:h,children:f})};t.useFormo=function(){var e=(0,s.useContext)(t.FormoAnalyticsContext);return e||u.logger.warn("useFormo called without a valid context"),e}},5287:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}function A(){}function m(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=g.prototype;var b=m.prototype=new A;b.constructor=m,y(b,g.prototype),b.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===o[i]&&(o[i]=c[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:w.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var C=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return a=a(c=e),e=""===o?"."+P(c,0):o,_(a)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),M(a,t,i,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(c=0,o=""===o?".":o+":",_(e))for(var u=0;u<e.length;u++){var l=o+P(s=e[u],u);c+=M(s,t,i,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=M(s=s.value,t,i,l=o+P(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function k(e,t,r){if(null==e)return e;var n=[],i=0;return M(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var U={current:null},j={transition:null},R={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:j,ReactCurrentOwner:w};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:k,forEach:function(e,t,r){k(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=m,t.StrictMode=o,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=L,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=y({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)E.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return U.current.useCallback(e,t)},t.useContext=function(e){return U.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return U.current.useDeferredValue(e)},t.useEffect=function(e,t){return U.current.useEffect(e,t)},t.useId=function(){return U.current.useId()},t.useImperativeHandle=function(e,t,r){return U.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return U.current.useMemo(e,t)},t.useReducer=function(e,t,r){return U.current.useReducer(e,t,r)},t.useRef=function(e){return U.current.useRef(e)},t.useState=function(e){return U.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return U.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return U.current.useTransition()},t.version="18.3.1"},5467:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.hash=function(e){return r(this,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e))];case 1:return t=n.sent(),r=new Uint8Array(t),[2,Array.from(r).map((function(e){return e.toString(16).padStart(2,"0")})).join("")]}}))}))},t.generateNativeUUID=function(){return crypto.randomUUID()}},5686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateAnonymousId=void 0,t.getCookieDomain=o;var n=r(9266),i=r(6898);function o(e){if(void 0===e&&(e=window.location.hostname),e.includes("localhost")||/^\d{1,3}(\.\d{1,3}){3}$/.test(e))return"";var t=e.split(".");return t.includes("www")&&t.splice(t.indexOf("www"),1),".".concat(t.join("."))}t.generateAnonymousId=function(e){var t=(0,i.cookie)().get(e);if(t&&"string"==typeof t)return t;var r=(0,n.generateNativeUUID)();return(0,i.cookie)().set(e,r,{maxAge:Date.now()+31536e6,domain:o(),path:"/"}),r}},5925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToString=t.isPrimitive=t.isError=t.isDate=t.isRegExp=t.isObjectAndNotNull=t.isObject=t.isNumber=t.isBoolean=t.isArray=t.isBigInt=t.isDefinedNotNullAndNotEmptyString=t.isDefinedAndNotNull=t.isDefined=t.isTypeOfError=t.isNullOrUndefined=t.isUndefined=t.isNull=t.isString=t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e&&Boolean(e.constructor&&e.call&&e.apply)},t.isString=function(e){return"string"==typeof e};var r=function(e){return null===e};t.isNull=r;var n=function(e){return void 0===e};t.isUndefined=n;var i=function(e){return r(e)||n(e)};t.isNullOrUndefined=i,t.isBigInt=function(e){return"bigint"==typeof e},t.isDefined=function(e){return!n(e)};var o=function(e){return!i(e)};t.isDefinedAndNotNull=o,t.isDefinedNotNullAndNotEmptyString=function(e){return o(e)&&""!==e},t.isTypeOfError=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}};var a=function(e){return Array.isArray(e)};t.isArray=a,t.isBoolean=function(e){return"boolean"==typeof e},t.isNumber=function(e){return"number"==typeof e};var s=function(e){return"object"==typeof e};t.isObject=s,t.isObjectAndNotNull=function(e){return!r(e)&&s(e)&&!a(e)},t.isRegExp=function(e){return s(e)&&"[object RegExp]"===c(e)},t.isDate=function(e){return s(e)&&"[object Date]"===c(e)},t.isError=function(e){return s(e)&&("[object Error]"===c(e)||e instanceof Error)},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e};var c=function(e){return Object.prototype.toString.call(e)};t.objectToString=c},5938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddressChecksum=t.isAddress=void 0,t.ensureIfUint8Array=s;var n=r(3113),i=r(2019),o=r(2672),a=r(5953);function s(e){var t;return e instanceof Uint8Array||"Uint8Array"!==(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)?e:Uint8Array.from(e)}t.isAddress=function(e,r){return void 0===r&&(r=!0),!("string"!=typeof e&&!(0,n.isUint8Array)(e))&&(i=(0,n.isUint8Array)(e)?(0,n.uint8ArrayToHexString)(e):"string"!=typeof e||(0,a.isHexStrict)(e)||e.toLowerCase().startsWith("0x")?e:"0x".concat(e),!!/^(0x)?[0-9a-f]{40}$/i.test(i)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(i)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(i))||!r||(0,t.checkAddressChecksum)(i)));var i},t.checkAddressChecksum=function(e){if(!/^(0x)?[0-9a-f]{40}$/i.test(e))return!1;for(var t=e.slice(2),r=(0,o.utf8ToBytes)(t.toLowerCase()),a=(0,n.uint8ArrayToHexString)((0,i.keccak256)(s(r))).slice(2),c=0;c<40;c+=1)if(parseInt(a[c],16)>7&&t[c].toUpperCase()!==t[c]||parseInt(a[c],16)<=7&&t[c].toLowerCase()!==t[c])return!1;return!0}},5953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHexStrict=void 0,t.isHexStrict=function(e){return"string"==typeof e&&/^((-)?0x[0-9a-f]+|(0x))$/i.test(e)}},6073:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(8177),s=r(7532),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.backend=r,n}return i(t,e),t.prototype.isAvailable=function(){try{var e="__storage_test__";return this.backend.setItem(e,"1"),this.backend.removeItem(e),!0}catch(e){return!1}},t.prototype.set=function(e,t){"boolean"==typeof t&&(t=!0===t?"true":"false"),"object"==typeof t&&(t=s.JSON_PREFIX+JSON.stringify(t)),this.backend.setItem(this.getKey(e),t)},t.prototype.get=function(e){var t=this.backend.getItem(this.getKey(e));if(!t||"string"!=typeof t)return null;if(["null","undefined"].some((function(e){return e==t})))return null;if(t.startsWith(s.JSON_PREFIX))try{return JSON.parse(t.slice(s.JSON_PREFIX.length))}catch(e){return a.logger.error("[FORMO_ERROR] ".concat(this.backend.constructor.name," failed to parse JSON"),e),null}return["true","false"].some((function(e){return e==t}))?JSON.parse(t):t},t.prototype.remove=function(e){this.backend.removeItem(this.getKey(e))},t}(o(r(2200)).default);t.default=c},6138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormattedTimestamp=t.getCurrentTimeFormatted=void 0;var r=function(e){return e.toISOString()};t.getFormattedTimestamp=r,t.getCurrentTimeFormatted=function(){return r(new Date)}},6185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getActionDescriptor=void 0,t.getActionDescriptor=function(e,t){return"".concat(e).concat((null==t?void 0:t.status)?" ".concat(null==t?void 0:t.status):"")}},6349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;const n=r(2317);t.createStore=function(){const e=new Set;let t=[];const r=()=>(0,n.requestProviders)((r=>{t.some((({info:e})=>e.uuid===r.info.uuid))||(t=[...t,r],e.forEach((e=>e(t,{added:[r]}))))}));let i=r();return{_listeners:()=>e,clear(){e.forEach((e=>e([],{removed:[...t]}))),t=[]},destroy(){this.clear(),e.clear(),i?.()},findProvider:({rdns:e})=>t.find((t=>t.info.rdns===e)),getProviders:()=>t,reset(){this.clear(),i?.(),i=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}},6450:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6921),t),i(r(3358),t),i(r(2309),t)},6452:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.EventManager=void 0;var i=r(8177),o=r(8337),a=function(){function e(e){this.eventQueue=e,this.eventFactory=new o.EventFactory}return e.prototype.addEvent=function(e,t,r){var o=e.callback,a=n(e,["callback"]),s=this.eventFactory.create(a,t,r);this.eventQueue.enqueue(s,(function(e,t,r){e?i.logger.error("Error sending events:",e):i.logger.info("Events sent successfully: ".concat(r.length," events")),null==o||o(e,t,r)}))},e}();t.EventManager=a},6503:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLocalhost=void 0,t.isLocalhost=function(){return/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(window.location.hostname)||"file:"===window.location.protocol}},6540:(e,t,r)=>{"use strict";e.exports=r(5287)},6898:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.memory=t.session=t.local=t.cookie=void 0,t.initStorageManager=function(e){a||(a=new o.StorageManager(e))};var o=r(1388);i(r(7892),t);var a=null;function s(e){if(!a)throw new Error("StorageManager not initialized. Call initStorageManager(writeKey) first.");return a.getStorage(e)}t.cookie=function(){return s("cookieStorage")},t.local=function(){return s("localStorage")},t.session=function(){return s("sessionStorage")},t.memory=function(){return s("memoryStorage")}},6921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOCAL_ANONYMOUS_ID_KEY=t.SESSION_USER_ID_KEY=t.SESSION_CURRENT_URL_KEY=t.SESSION_WALLET_DETECTED_KEY=t.SESSION_TRAFFIC_SOURCE_KEY=void 0,t.SESSION_TRAFFIC_SOURCE_KEY="traffic-source",t.SESSION_WALLET_DETECTED_KEY="wallet-detected",t.SESSION_CURRENT_URL_KEY="analytics-current-url",t.SESSION_USER_ID_KEY="user-id",t.LOCAL_ANONYMOUS_ID_KEY="anonymous-id"},7034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.CHANNEL=void 0,t.CHANNEL="web",t.VERSION="0"},7521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_PREFIX=t.JSON_PREFIX=void 0,t.JSON_PREFIX="__json=",t.KEY_PREFIX="formo"},7557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aoutput=t.anumber=t.aexists=t.abytes=void 0;const n=r(9175);t.abytes=n.abytes,t.aexists=n.aexists,t.anumber=n.anumber,t.aoutput=n.aoutput},7892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7967:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(8337),t),i(r(6452),t),i(r(1371),t)},7989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8156:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(2970);i(r(5190),t),i(r(879),t),i(r(3574),t),window.formofy=o.formofy},8177:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(2865),t),i(r(1565),t)},8337:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventFactory=void 0;var o=r(6450),a=r(9266),s=r(6138),c=r(9754),u=r(8177),l=i(r(1466)),f=r(6898),d=r(4476),h=r(7034),p=r(5686),y=function(){function e(){var e=this;this.extractUTMParameters=function(e){var t={utm_campaign:"",utm_content:"",utm_medium:"",utm_source:"",utm_term:""};try{new URL(e).searchParams.forEach((function(e,r){r.startsWith("utm_")&&(t[r]=e.trim())}))}catch(e){}return t},this.extractReferralParameter=function(e){for(var t,r=0,n=["ref","referral","refcode"];r<n.length;r++){var i=n[r],o=null===(t=e.searchParams.get(i))||void 0===t?void 0:t.trim();if(o)return o}return""},this.getTrafficSources=function(t){var r=new URL(t),i=n(n({},e.extractUTMParameters(t)),{ref:e.extractReferralParameter(r),referrer:document.referrer}),a=(0,f.session)().get(o.SESSION_TRAFFIC_SOURCE_KEY)||{},s={ref:i.ref||(null==a?void 0:a.ref)||"",referrer:i.referrer||(null==a?void 0:a.referrer),utm_campaign:i.utm_campaign||(null==a?void 0:a.utm_campaign)||"",utm_content:i.utm_content||(null==a?void 0:a.utm_content)||"",utm_medium:i.utm_medium||(null==a?void 0:a.utm_medium)||"",utm_source:i.utm_source||(null==a?void 0:a.utm_source)||"",utm_term:i.utm_term||(null==a?void 0:a.utm_term)||""},u=Object.keys(s).reduce((function(e,t){var r=s[t];return(0,c.isUndefined)(r)||""===r||(e[t]=r),e}),{});return Object.keys(u).length&&(0,f.session)().set(o.SESSION_TRAFFIC_SOURCE_KEY,u),s},this.getPageProperties=function(e){var t=e;return(0,c.isUndefined)(t.url)&&(t.url=new URL(globalThis.location.href).href),(0,c.isUndefined)(t.path)&&(t.path=globalThis.location.pathname),(0,c.isUndefined)(t.hash)&&(t.hash=globalThis.location.hash),t},this.getEnrichedEvent=function(t,r){var n={context:e.generateContext(r),original_timestamp:(0,s.getCurrentTimeFormatted)(),user_id:t.user_id,type:t.type,channel:h.CHANNEL,version:h.VERSION};n.anonymous_id=(0,p.generateAnonymousId)(o.LOCAL_ANONYMOUS_ID_KEY),t.address?n.address=(0,a.toChecksumAddress)(t.address):n.address=t.address;var i=(0,l.default)(t,n);return void 0===i.event&&(i.event=null),void 0===i.properties&&(i.properties=null),(0,a.toSnakeCase)(i)}}return e.prototype.getTimezone=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return u.logger.error("Error resolving timezone:",e),""}},e.prototype.getLocation=function(){try{var e=this.getTimezone();return e in o.COUNTRY_LIST?o.COUNTRY_LIST[e]:e}catch(e){return u.logger.error("Error resolving location:",e),""}},e.prototype.getLanguage=function(){try{return(navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language)||"en"}catch(e){return u.logger.error("Error resolving language:",e),"en"}},e.prototype.getLibraryVersion=function(){return d.version},e.prototype.generateContext=function(e){var t=globalThis.location.pathname,r=this.getLanguage(),i=this.getTimezone(),o=this.getLocation(),a=this.getLibraryVersion(),s=n(n({user_agent:globalThis.navigator.userAgent,locale:r,timezone:i,location:o},this.getTrafficSources(globalThis.location.href)),{page_path:t,page_title:document.title,page_url:globalThis.location.href,library_name:"Formo Web SDK",library_version:a});return(0,l.default)(s,e||{})},e.prototype.generatePageEvent=function(e,t,r,n){var i=null!=r?r:{};i.category=e,i.name=t;var o={properties:i=this.getPageProperties(i),type:"page"};return this.getEnrichedEvent(o,n)},e.prototype.generateDetectWalletEvent=function(e,t,r,i){var o={properties:n({providerName:e,rdns:t},r),type:"detect"};return this.getEnrichedEvent(o,i)},e.prototype.generateIdentifyEvent=function(e,t,r,i,o,a){var s={properties:n({providerName:e,rdns:t},o),user_id:i,address:r,type:"identify"};return this.getEnrichedEvent(s,a)},e.prototype.generateConnectEvent=function(e,t,r,i){var o={properties:n({chainId:e},r),address:t,type:"connect"};return this.getEnrichedEvent(o,i)},e.prototype.generateDisconnectEvent=function(e,t,r,i){var o={properties:n({chainId:e},r),address:t,type:"disconnect"};return this.getEnrichedEvent(o,i)},e.prototype.generateChainChangedEvent=function(e,t,r,i){var o={properties:n({chainId:e},r),address:t,type:"chain"};return this.getEnrichedEvent(o,i)},e.prototype.generateSignatureEvent=function(e,t,r,i,o,a,s){var c={properties:n(n({status:e,chainId:t,message:i},o&&{signatureHash:o}),a),address:r,type:"signature"};return this.getEnrichedEvent(c,s)},e.prototype.generateTransactionEvent=function(e,t,r,i,o,a,s,c,u){var l={properties:n(n({status:e,chainId:t,data:i,to:o,value:a},s&&{transactionHash:s}),c),address:r,type:"transaction"};return this.getEnrichedEvent(l,u)},e.prototype.generateTrackEvent=function(e,t,r){var i={properties:n(n(n(n({},t),void 0!==(null==t?void 0:t.revenue)&&{revenue:Number(t.revenue),currency:("string"==typeof(null==t?void 0:t.currency)?t.currency:"USD").toLowerCase()}),void 0!==(null==t?void 0:t.points)&&{points:Number(t.points)}),void 0!==(null==t?void 0:t.volume)&&{volume:Number(t.volume)}),event:e,type:"track"};return this.getEnrichedEvent(i,r)},e.prototype.create=function(e,t,r){var n={};switch(e.type){case"page":n=this.generatePageEvent(e.category,e.name,e.properties,e.context);break;case"detect":n=this.generateDetectWalletEvent(e.providerName,e.rdns,e.properties,e.context);break;case"identify":n=this.generateIdentifyEvent(e.providerName,e.rdns,e.address,e.userId,e.properties,e.context);break;case"chain":n=this.generateChainChangedEvent(e.chainId,e.address,e.properties,e.context);break;case"connect":n=this.generateConnectEvent(e.chainId,e.address,e.properties,e.context);break;case"disconnect":n=this.generateDisconnectEvent(e.chainId,e.address,e.properties,e.context);break;case"signature":n=this.generateSignatureEvent(e.status,e.chainId,e.address,e.message,e.signatureHash,e.properties,e.context);break;case"transaction":n=this.generateTransactionEvent(e.status,e.chainId,e.address,e.data,e.to,e.value,e.transactionHash,e.properties,e.context);break;default:n=this.generateTrackEvent(e.event,e.properties,e.context)}return!n.address&&(n.address=t||null),n.user_id=r||null,n},e}();t.EventFactory=y},8341:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isAvailable=function(){return"undefined"!=typeof document&&"string"==typeof document.cookie},t.prototype.set=function(e,t,r){var n=null==r?void 0:r.expires,i=null==r?void 0:r.maxAge,o=(null==r?void 0:r.path)||"/",a=null==r?void 0:r.domain,s=null==r?void 0:r.sameSite,c=(null==r?void 0:r.secure)||!1,u="".concat(encodeURIComponent(this.getKey(e)),"=").concat(encodeURIComponent(t));i?u+="; max-age="+i:n&&(u+="; expires="+n),o&&(u+="; path="+o),a&&(u+="; domain="+a),s&&(u+="; samesite="+s),c&&(u+="; secure"),document.cookie=u},t.prototype.get=function(e){var t=document.cookie.match(new RegExp("(?:^|; )".concat(encodeURIComponent(this.getKey(e)),"=([^;]*)")));return t?decodeURIComponent(t[1]):null},t.prototype.remove=function(e){document.cookie="".concat(encodeURIComponent(this.getKey(e)),"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")},t}(o(r(2200)).default);t.default=a},8568:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=void 0,i(r(7967),t),i(r(8177),t),i(r(3500),t),i(r(6898),t);var a=r(4364);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return o(a).default}})},9175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=o,t.abytes=a,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){a(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=s,t.byteSwap32=c,t.bytesToHex=function(e){if(a(e),u)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){const r=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(void 0===r||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}n[t]=16*r+o}return n},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=h,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=p,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=h(e)),a(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];a(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=y,t.createOptHasher=v,t.createXOFer=g,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const n=r(5145);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function a(e,...t){if(!i(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=s(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>s(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),l=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0"))),f={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=f._0&&e<=f._9?e-f._0:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function p(e){return"string"==typeof e&&(e=h(e)),a(e),e}function y(e){const t=t=>e().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function v(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function g(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=y,t.wrapConstructorWithOpts=v,t.wrapXOFConstructorWithOpts=g},9266:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(922),t),i(r(6185),t),i(r(4262),t),i(r(5467),t)},9615:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4229)),o=n(r(2066)),a=n(r(3961)),s=(0,i.default)((function e(t,r,n){return(0,a.default)((function(r,n,i){return(0,o.default)(n)&&(0,o.default)(i)?e(t,n,i):t(r,n,i)}),r,n)}));t.default=s},9754:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(5938),t),i(r(6503),t),i(r(5925),t),i(r(724),t),i(r(4811),t),i(r(5953),t),i(r(3113),t)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var n=r(8156);return n.FormoAnalytics})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("FormoAnalytics",[],t):"object"==typeof exports?exports.FormoAnalytics=t():e.FormoAnalytics=t()}(self,(()=>(()=>{var e={15:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseChainId=function(e){return"string"!=typeof e?0:e.startsWith("0x")||e.startsWith("0X")?parseInt(e,16):parseInt(e,10)}},80:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},654:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return(0,o.default)(r)?t:(0,i.default)((function(t){return e(r,t)}));default:return(0,o.default)(r)&&(0,o.default)(n)?t:(0,o.default)(r)?(0,i.default)((function(t){return e(t,n)})):(0,o.default)(n)?(0,i.default)((function(t){return e(r,t)})):e(r,n)}}};var i=n(r(4323)),o=n(r(80))},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},689:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventQueue=void 0;var s=r(9754),c=r(9266),u=r(8177),l=r(6450),f=a(r(4364)),d=function(){},h=function(){function e(e,t){var r=this;this.queue=[],this.payloadHashes=new Set,this.onPageLeave=function(e){var t=!1,r=!1;function n(){t||(t=!0,e(r),setTimeout((function(){t=!1}),0))}globalThis.addEventListener("beforeunload",(function(){r=!1,n()})),globalThis.addEventListener("blur",(function(){r=!0,n()})),globalThis.addEventListener("focus",(function(){t=!1})),document.addEventListener("pagehide",(function(){r="hidden"===document.visibilityState,n()})),document.addEventListener("visibilitychange",(function(){r=!0,"hidden"===document.visibilityState?n():t=!1}))},t=t||{},this.queue=[],this.writeKey=e,this.url=t.url,this.retryCount=(0,c.clampNumber)(t.retryCount||3,5,1),this.flushAt=(0,c.clampNumber)(t.flushAt||20,20,1),this.maxQueueSize=(0,c.clampNumber)(t.maxQueueSize||512e3,512e3,200),this.flushIntervalMs=(0,c.clampNumber)(t.flushInterval||3e4,3e5,1e4),this.flushed=!0,this.errorHandler=t.errorHandler,this.pendingFlush=null,this.timer=null,this.onPageLeave((function(e){return i(r,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return!1!==e?[3,2]:[4,this.flush()];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))}return e.prototype.generateMessageId=function(e){return i(this,void 0,void 0,(function(){var t,r,i;return o(this,(function(o){return t=(0,c.toDateHourMinute)(new Date(e.original_timestamp)),r=n(n({},e),{original_timestamp:t}),i=JSON.stringify(r),[2,(0,c.hash)(i)]}))}))},e.prototype.enqueue=function(e,t){return i(this,void 0,void 0,(function(){var r,i,a;return o(this,(function(o){switch(o.label){case 0:return t=t||d,[4,this.generateMessageId(e)];case 1:return r=o.sent(),[4,this.isDuplicate(r)];case 2:return o.sent()?(u.logger.warn("Event already enqueued, try again after ".concat((0,c.millisecondsToSecond)(this.flushIntervalMs)," seconds.")),[2]):(this.queue.push({message:n(n({},e),{message_id:r}),callback:t}),u.logger.log("Event enqueued: ".concat((0,c.getActionDescriptor)(e.type,e.properties))),this.flushed?(i=this.queue.length>=this.flushAt,a=this.queue.reduce((function(e,t){return e+JSON.stringify(t).length}),0)>=this.maxQueueSize,i||a?(this.flush(),[2]):(this.flushIntervalMs&&!this.timer&&(this.timer=setTimeout(this.flush.bind(this),this.flushIntervalMs)),[2])):(this.flushed=!0,this.flush(),[2]))}}))}))},e.prototype.flush=function(e){return i(this,void 0,void 0,(function(){var t,r,i,a,s,c=this;return o(this,(function(o){switch(o.label){case 0:if(e=e||d,this.timer&&(clearTimeout(this.timer),this.timer=null),!this.queue.length)return e(),[2,Promise.resolve()];o.label=1;case 1:return o.trys.push([1,4,,5]),this.pendingFlush?[4,this.pendingFlush]:[3,3];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:throw t=o.sent(),this.pendingFlush=null,t;case 5:return r=this.queue.splice(0,this.flushAt),this.payloadHashes.clear(),i=(new Date).toISOString(),a=r.map((function(e){return n(n({},e.message),{sent_at:i})})),s=function(t){r.forEach((function(e){var r=e.message;return(0,e.callback)(t,r,a)})),e(t,a)},[2,this.pendingFlush=(0,f.default)("".concat(this.url),{headers:(0,l.EVENTS_API_REQUEST_HEADER)(this.writeKey),method:"POST",body:JSON.stringify(a),keepalive:!0,retries:this.retryCount,retryDelay:function(e){return 1e3*Math.pow(2,e)},retryOn:function(e,t){return c.isErrorRetryable(t)}}).then((function(){return s(),Promise.resolve(a)})).catch((function(e){if("function"==typeof c.errorHandler)return s(e),c.errorHandler(e);if(e.response){var t=new Error(e.response.statusText);throw s(t),t}throw s(e),e}))]}}))}))},e.prototype.isErrorRetryable=function(e){var t,r,n;return!!(0,s.isNetworkError)(e)||!!(null==e?void 0:e.response)&&((null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)>=500&&(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.status)<=599||429===(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status))},e.prototype.isDuplicate=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){return this.payloadHashes.has(e)?[2,!0]:(this.payloadHashes.add(e),[2,!1])}))}))},e}();t.EventQueue=h},724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=function(e){return!(!e||!n(e)||"TypeError"!==e.name||"string"!=typeof e.message)&&("Load failed"===e.message?void 0===e.stack:i.has(e.message))};var r=Object.prototype.toString,n=function(e){return"[object Error]"===r.call(e)},i=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"])},879:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormoAnalytics=void 0;var a=r(4228),s=r(6450),c=r(8568),u=r(3574),l=r(9266),f=r(9754),d=r(15),h=function(){function e(e,t){var r,n;void 0===t&&(t={}),this.writeKey=e,this.options=t,this._providerListeners={},this._providers=[],this.currentAddress="",this.currentUserId="",this.config={writeKey:e},this.options=t,this.session=new p,this.currentUserId=(0,c.cookie)().get(s.SESSION_USER_ID_KEY)||void 0,this.identify=this.identify.bind(this),this.connect=this.connect.bind(this),this.disconnect=this.disconnect.bind(this),this.chain=this.chain.bind(this),this.signature=this.signature.bind(this),this.transaction=this.transaction.bind(this),this.detect=this.detect.bind(this),this.track=this.track.bind(this),c.Logger.init({enabled:(null===(r=t.logger)||void 0===r?void 0:r.enabled)||!1,enabledLevels:(null===(n=t.logger)||void 0===n?void 0:n.levels)||[]}),this.eventManager=new c.EventManager(new c.EventQueue(this.config.writeKey,{url:s.EVENTS_API_URL,flushAt:t.flushAt,retryCount:t.retryCount,maxQueueSize:t.maxQueueSize,flushInterval:t.flushInterval}));var i=t.provider||(null===window||void 0===window?void 0:window.ethereum);i&&this.trackProvider(i),this.trackPageHit(),this.trackPageHits()}return e.init=function(t,r){return i(this,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return(0,c.initStorageManager)(t),n=new e(t,r),i=n,[4,n.getProviders()];case 1:return i._providers=o.sent(),[4,n.detectWallets(n._providers)];case 2:return o.sent(),[2,n]}}))}))},e.prototype.page=function(e,t,r,n,a){return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.trackPageHit(e,t,r,n,a)];case 1:return i.sent(),[2]}}))}))},e.prototype.reset=function(){this.currentUserId=void 0,(0,c.cookie)().remove(s.LOCAL_ANONYMOUS_ID_KEY),(0,c.cookie)().remove(s.SESSION_USER_ID_KEY)},e.prototype.connect=function(e,t,r,n){return i(this,arguments,void 0,(function(e,t,r,n){var i=e.chainId,a=e.address;return o(this,(function(e){switch(e.label){case 0:return i||c.logger.warn("Connect: Chain ID cannot be empty"),a||c.logger.warn("Connect: Address cannot be empty"),this.currentChainId=i,this.currentAddress=a?(0,l.toChecksumAddress)(a):void 0,[4,this.trackEvent(s.EventType.CONNECT,{chainId:i,address:this.currentAddress},t,r,n)];case 1:return e.sent(),[2]}}))}))},e.prototype.disconnect=function(e,t,r,n){return i(this,void 0,void 0,(function(){var i,a;return o(this,(function(o){switch(o.label){case 0:return i=(null==e?void 0:e.chainId)||this.currentChainId,a=(null==e?void 0:e.address)||this.currentAddress,[4,this.trackEvent(s.EventType.DISCONNECT,{chainId:i,address:a},t,r,n)];case 1:return o.sent(),this.currentAddress=void 0,this.currentChainId=void 0,c.logger.info("Wallet disconnected: Cleared currentAddress and currentChainId"),[2]}}))}))},e.prototype.chain=function(e,t,r,n){return i(this,arguments,void 0,(function(e,t,r,n){var i=e.chainId,a=e.address;return o(this,(function(e){switch(e.label){case 0:if(!i||0===Number(i))throw new Error("FormoAnalytics::chain: chainId cannot be empty or 0");if(isNaN(Number(i)))throw new Error("FormoAnalytics::chain: chainId must be a valid decimal number");if(!a&&!this.currentAddress)throw new Error("FormoAnalytics::chain: address was empty and no previous address has been recorded");return this.currentChainId=i,[4,this.trackEvent(s.EventType.CHAIN,{chainId:i,address:a||this.currentAddress},t,r,n)];case 1:return e.sent(),[2]}}))}))},e.prototype.signature=function(e,t,r,a){return i(this,arguments,void 0,(function(e,t,r,i){var a=e.status,c=e.chainId,u=e.address,l=e.message,f=e.signatureHash;return o(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(s.EventType.SIGNATURE,n({status:a,chainId:c,address:u,message:l},f&&{signatureHash:f}),t,r,i)];case 1:return e.sent(),[2]}}))}))},e.prototype.transaction=function(e,t,r,a){return i(this,arguments,void 0,(function(e,t,r,i){var a=e.status,c=e.chainId,u=e.address,l=e.data,f=e.to,d=e.value,h=e.transactionHash;return o(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(s.EventType.TRANSACTION,n({status:a,chainId:c,address:u,data:l,to:f,value:d},h&&{transactionHash:h}),t,r,i)];case 1:return e.sent(),[2]}}))}))},e.prototype.identify=function(e,t,r,n){return i(this,void 0,void 0,(function(){var i,a,u,f,d,h,p,y,v,g,A;return o(this,(function(o){switch(o.label){case 0:if(o.trys.push([0,11,,12]),e)return[3,9];c.logger.info("Auto-identifying with providers:",this._providers.map((function(e){return e.info.name}))),i=0,a=this._providers,o.label=1;case 1:if(!(i<a.length))return[3,8];if(u=a[i],!(f=u.provider))return[3,7];o.label=2;case 2:return o.trys.push([2,6,,7]),[4,this.getAddress(f)];case 3:return(d=o.sent())?(c.logger.info("Auto-identifying",d,u.info.name,u.info.rdns),[4,this.identify({address:d,providerName:u.info.name,rdns:u.info.rdns},t,r,n)]):[3,5];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:return h=o.sent(),c.logger.error("Failed to identify provider ".concat(u.info.name,":"),h),[3,7];case 7:return i++,[3,1];case 8:return[2];case 9:return p=e.userId,y=e.address,v=e.providerName,g=e.rdns,c.logger.info("Identify",y,p,v,g),y&&(this.currentAddress=(0,l.toChecksumAddress)(y)),p&&(this.currentUserId=p,(0,c.cookie)().set(s.SESSION_USER_ID_KEY,p)),[4,this.trackEvent(s.EventType.IDENTIFY,{address:y?(0,l.toChecksumAddress)(y):void 0,providerName:v,userId:p,rdns:g},t,r,n)];case 10:return o.sent(),[3,12];case 11:return A=o.sent(),c.logger.log("identify error",A),[3,12];case 12:return[2]}}))}))},e.prototype.detect=function(e,t,r,n){return i(this,arguments,void 0,(function(e,t,r,n){var i=e.providerName,a=e.rdns;return o(this,(function(e){switch(e.label){case 0:return this.session.isWalletDetected(a)?[2,c.logger.warn("Detect: Wallet ".concat(i," already detected in this session"))]:(this.session.markWalletDetected(a),[4,this.trackEvent(s.EventType.DETECT,{providerName:i,rdns:a},t,r,n)]);case 1:return e.sent(),[2]}}))}))},e.prototype.track=function(e,t,r,n){return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.trackEvent(s.EventType.TRACK,{event:e},t,r,n)];case 1:return i.sent(),[2]}}))}))},e.prototype.trackProvider=function(e){c.logger.info("trackProvider",e);try{if(e===this._provider)return void c.logger.warn("TrackProvider: Provider already tracked.");if(this.currentChainId=void 0,this.currentAddress=void 0,this._provider)for(var t=Object.keys(this._providerListeners),r=0,n=t;r<n.length;r++){var i=n[r];this._provider.removeListener(i,this._providerListeners[i]),delete this._providerListeners[i]}this._provider=e,this.registerAccountsChangedListener(),this.registerChainChangedListener(),this.registerConnectListener(),this.registerRequestListeners()}catch(e){c.logger.error("Error tracking provider:",e)}},e.prototype.registerAccountsChangedListener=function(){var e,t=this;c.logger.info("registerAccountsChangedListener");var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.onAccountsChanged(e[0])};null===(e=this._provider)||void 0===e||e.on("accountsChanged",r),this._providerListeners.accountsChanged=r},e.prototype.onAccountsChanged=function(e){return i(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:return c.logger.info("onAccountsChanged",e),0!==e.length?[3,2]:[4,this.disconnect()];case 1:return n.sent(),[2];case 2:return(0,f.isAddress)(e[0])?(t=(0,l.toChecksumAddress)(e[0]))===this.currentAddress?[2]:(this.currentAddress=t,r=this,[4,this.getCurrentChainId()]):(c.logger.warn("onAccountsChanged: Invalid address received",e[0]),[2]);case 3:return r.currentChainId=n.sent(),this.connect({chainId:this.currentChainId,address:t}),[2]}}))}))},e.prototype.registerChainChangedListener=function(){var e,t=this;c.logger.info("registerChainChangedListener");var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.onChainChanged(e[0])};null===(e=this.provider)||void 0===e||e.on("chainChanged",r),this._providerListeners.chainChanged=r},e.prototype.onChainChanged=function(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return c.logger.info("onChainChanged",e),this.currentChainId=(0,d.parseChainId)(e),this.currentAddress?[3,2]:this.provider?[4,this.getAddress()]:(c.logger.info("OnChainChanged: Provider not found. CHAIN_CHANGED not reported"),[2,Promise.resolve()]);case 1:if(!(t=r.sent()))return c.logger.info("OnChainChanged: Unable to fetch or store connected address"),[2,Promise.resolve()];this.currentAddress=(0,l.toChecksumAddress)(t),r.label=2;case 2:return this.currentAddress?[2,this.chain({chainId:this.currentChainId,address:this.currentAddress})]:(c.logger.info("OnChainChanged: Current connected address is null despite fetch attempt"),[2])}}))}))},e.prototype.registerConnectListener=function(){var e,t=this;c.logger.info("registerConnectListener");var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[0];t.onConnected(n)};null===(e=this._provider)||void 0===e||e.on("connect",r),this._providerListeners.connect=r},e.prototype.onConnected=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(i){switch(i.label){case 0:c.logger.info("onConnected",e),i.label=1;case 1:return i.trys.push([1,3,,4]),e&&"string"==typeof e.chainId?(t=(0,d.parseChainId)(e.chainId),[4,this.getAddress()]):[2];case 2:return r=i.sent(),null!=t&&r&&this.connect({chainId:t,address:r}),[3,4];case 3:return n=i.sent(),c.logger.error("Error handling connect event",n),[3,4];case 4:return[2]}}))}))},e.prototype.registerRequestListeners=function(){var e,t=this;if(c.logger.info("registerRequestListeners"),this.provider)if(!1!==(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable)){var r=this.provider.request.bind(this.provider);this.provider.request=function(e){return i(t,[e],void 0,(function(e){var t,a,s,l,f=this,d=e.method,h=e.params;return o(this,(function(e){switch(e.label){case 0:if(!Array.isArray(h)||!["eth_signTypedData_v4","personal_sign"].includes(d))return[3,4];i(f,void 0,void 0,(function(){return o(this,(function(e){try{this.signature(n({status:u.SignatureStatus.REQUESTED},this.buildSignatureEventPayload(d,h)))}catch(e){c.logger.error("Formo: Failed to track signature request",e)}return[2]}))})),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r({method:d,params:h})];case 2:return t=e.sent(),i(f,void 0,void 0,(function(){return o(this,(function(e){try{t&&this.signature(n({status:u.SignatureStatus.CONFIRMED},this.buildSignatureEventPayload(d,h,t)))}catch(e){c.logger.error("Formo: Failed to track signature confirmation",e)}return[2]}))})),[2,t];case 3:throw a=e.sent(),i(f,void 0,void 0,(function(){var e;return o(this,(function(t){try{(e=a)&&4001===(null==e?void 0:e.code)&&this.signature(n({status:u.SignatureStatus.REJECTED},this.buildSignatureEventPayload(d,h)))}catch(e){c.logger.error("Formo: Failed to track signature rejection",e)}return[2]}))})),a;case 4:if(!Array.isArray(h)||"eth_sendTransaction"!==d||!h[0])return[3,8];i(f,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.buildTransactionEventPayload(h)];case 1:return e=r.sent(),this.transaction(n({status:u.TransactionStatus.STARTED},e)),[3,3];case 2:return t=r.sent(),c.logger.error("Formo: Failed to track transaction start",t),[3,3];case 3:return[2]}}))})),e.label=5;case 5:return e.trys.push([5,7,,8]),[4,r({method:d,params:h})];case 6:return s=e.sent(),i(f,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.buildTransactionEventPayload(h)];case 1:return e=r.sent(),this.transaction(n(n({status:u.TransactionStatus.BROADCASTED},e),{transactionHash:s})),this.pollTransactionReceipt(s,e),[3,3];case 2:return t=r.sent(),c.logger.error("Formo: Failed to track transaction broadcast",t),[3,3];case 3:return[2]}}))})),[2,s];case 7:throw l=e.sent(),i(f,void 0,void 0,(function(){var e,t,r;return o(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),(e=l)&&4001===(null==e?void 0:e.code)?[4,this.buildTransactionEventPayload(h)]:[3,2];case 1:t=i.sent(),this.transaction(n({status:u.TransactionStatus.REJECTED},t)),i.label=2;case 2:return[3,4];case 3:return r=i.sent(),c.logger.error("Formo: Failed to track transaction rejection",r),[3,4];case 4:return[2]}}))})),l;case 8:return[2,r({method:d,params:h})]}}))}))}}else c.logger.warn("Provider.request is not writable");else c.logger.error("Provider not found for request (signature, transaction) tracking")},e.prototype.onLocationChange=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return(0,c.cookie)().get(s.SESSION_CURRENT_URL_KEY)!==window.location.href&&((0,c.cookie)().set(s.SESSION_CURRENT_URL_KEY,window.location.href),this.trackPageHit()),[2]}))}))},e.prototype.trackPageHits=function(){return i(this,void 0,void 0,(function(){var e,t,r=this;return o(this,(function(n){return e=history.pushState,history.pushState=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,t);return window.dispatchEvent(new window.Event("locationchange")),n},t=history.replaceState,history.replaceState=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e);return window.dispatchEvent(new window.Event("locationchange")),n},window.addEventListener("popstate",(function(){return r.onLocationChange()})),window.addEventListener("locationchange",(function(){return r.onLocationChange()})),[2]}))}))},e.prototype.trackPageHit=function(e,t,r,n,a){return i(this,void 0,void 0,(function(){var u=this;return o(this,(function(l){return this.shouldTrack()?(setTimeout((function(){return i(u,void 0,void 0,(function(){return o(this,(function(i){return this.trackEvent(s.EventType.PAGE,{category:e,name:t},r,n,a),[2]}))}))}),300),[2]):(c.logger.info("Track page hit: Skipping event due to tracking configuration"),[2])}))}))},e.prototype.trackEvent=function(e,t,r,a,s){return i(this,void 0,void 0,(function(){return o(this,(function(i){try{if(!this.shouldTrack())return c.logger.info("Skipping ".concat(e," event due to tracking configuration")),[2];this.eventManager.addEvent(n(n({type:e},t),{properties:r,context:a,callback:s}),this.currentAddress,this.currentUserId)}catch(e){c.logger.error("Error tracking event:",e)}return[2]}))}))},e.prototype.shouldTrack=function(){if("boolean"==typeof this.options.tracking)return this.options.tracking;if(null!==this.options.tracking&&"object"==typeof this.options.tracking&&!Array.isArray(this.options.tracking)){var e=this.options.tracking,t=e.excludeHosts,r=void 0===t?[]:t,n=e.excludePaths,i=void 0===n?[]:n,o=e.excludeChains,a=void 0===o?[]:o;if(r.length>0&&"undefined"!=typeof window){var s=window.location.hostname;if(r.includes(s))return!1}if(i.length>0&&"undefined"!=typeof window){var c=window.location.pathname;if(i.includes(c))return!1}return!(a.length>0&&this.currentChainId&&a.includes(this.currentChainId))}return!(0,f.isLocalhost)()},e.prototype.getProviders=function(){return i(this,void 0,void 0,(function(){var e,t,r=this;return o(this,(function(n){return e=(0,a.createStore)(),t=e.getProviders(),e.subscribe((function(e){t=e,r._providers=t})),0===t.length?(this._providers=(null===window||void 0===window?void 0:window.ethereum)?[window.ethereum]:[],[2,this._providers]):(this._providers=t,[2,t])}))}))},Object.defineProperty(e.prototype,"providers",{get:function(){return this._providers},enumerable:!1,configurable:!0}),e.prototype.detectWallets=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,,6]),t=0,r=e,o.label=1;case 1:return t<r.length?(n=r[t],[4,this.detect({providerName:null==n?void 0:n.info.name,rdns:null==n?void 0:n.info.rdns})]):[3,4];case 2:o.sent(),o.label=3;case 3:return t++,[3,1];case 4:return[3,6];case 5:return i=o.sent(),c.logger.error("Error detect all wallets:",i),[3,6];case 6:return[2]}}))}))},Object.defineProperty(e.prototype,"provider",{get:function(){return this._provider},enumerable:!1,configurable:!0}),e.prototype.getAddress=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(i){switch(i.label){case 0:if(this.currentAddress)return[2,this.currentAddress];if(!(t=e||this.provider))return c.logger.info("The provider is not set"),[2,null];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.getAccounts(t)];case 2:return(r=i.sent())&&r.length>0&&(0,f.isAddress)(r[0])?[2,(0,l.toChecksumAddress)(r[0])]:[3,4];case 3:return n=i.sent(),c.logger.error("Failed to fetch accounts from provider:",n),[2,null];case 4:return[2,null]}}))}))},e.prototype.getAccounts=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(i){switch(i.label){case 0:t=e||this.provider,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,null==t?void 0:t.request({method:"eth_accounts"})];case 2:return(r=i.sent())&&0!==r.length?[2,r.filter((function(e){return(0,f.isAddress)(e)})).map(l.toChecksumAddress)]:[2,null];case 3:return 4001!==(n=i.sent()).code&&c.logger.error("FormoAnalytics::getAccounts: eth_accounts threw an error",n),[2,null];case 4:return[2]}}))}))},e.prototype.getCurrentChainId=function(){return i(this,void 0,void 0,(function(){var e,t,r;return o(this,(function(n){switch(n.label){case 0:this.provider||c.logger.error("Provider not set for chain ID"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,null===(r=this.provider)||void 0===r?void 0:r.request({method:"eth_chainId"})];case 2:return(e=n.sent())?[2,(0,d.parseChainId)(e)]:(c.logger.info("Chain id not found"),[2,0]);case 3:return t=n.sent(),c.logger.error("eth_chainId threw an error:",t),[2,0];case 4:return[2]}}))}))},e.prototype.buildSignatureEventPayload=function(e,t,r){var i={chainId:this.currentChainId,address:"personal_sign"===e?t[1]:t[0]};if("personal_sign"===e){var o=Buffer.from(t[0].slice(2),"hex").toString("utf8");return n(n(n({},i),{message:o}),r?{signatureHash:r}:{})}return n(n(n({},i),{message:t[1]}),r?{signatureHash:r}:{})},e.prototype.buildTransactionEventPayload=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:return t=e[0],r=t.data,n=t.from,i=t.to,a=t.value,c={},(s=this.currentChainId)?[3,2]:[4,this.getCurrentChainId()];case 1:s=o.sent(),o.label=2;case 2:return[2,(c.chainId=s,c.data=r,c.address=n,c.to=i,c.value=a,c)]}}))}))},e.prototype.pollTransactionReceipt=function(e,t){return i(this,arguments,void 0,(function(e,t,r,a){var s,l,f,d=this;return void 0===r&&(r=10),void 0===a&&(a=3e3),o(this,(function(h){return s=0,(l=this.provider)?(f=function(){return i(d,void 0,void 0,(function(){var i,d;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,l.request({method:"eth_getTransactionReceipt",params:[e]})];case 1:if(i=o.sent()){if("0x1"===i.status||1===i.status)return this.transaction(n(n({status:u.TransactionStatus.CONFIRMED},t),{transactionHash:e})),[2];if("0x0"===i.status||0===i.status)return this.transaction(n(n({status:u.TransactionStatus.REVERTED},t),{transactionHash:e})),[2]}return[3,3];case 2:return d=o.sent(),c.logger.error("Error polling transaction receipt",d),[3,3];case 3:return++s<r&&setTimeout(f,a),[2]}}))}))},f(),[2]):[2]}))}))},e}();t.FormoAnalytics=h;var p=function(){function e(){}return e.prototype.isWalletDetected=function(e){var t;return((null===(t=(0,c.cookie)().get(s.SESSION_WALLET_DETECTED_KEY))||void 0===t?void 0:t.split(","))||[]).includes(e)},e.prototype.markWalletDetected=function(e){var t,r=(null===(t=(0,c.cookie)().get(s.SESSION_WALLET_DETECTED_KEY))||void 0===t?void 0:t.split(","))||[];r.push(e),(0,c.cookie)().set(s.SESSION_WALLET_DETECTED_KEY,r.join(","),{expires:new Date(Date.now()+864e5).toUTCString(),path:"/"})},e}()},922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toChecksumAddress=void 0;var n=r(2019),i=r(2672),o=r(9754),a=r(4811);t.toChecksumAddress=function(e){if(!(0,o.isAddress)(e,!1))throw new Error("Invalid address "+e);var t=e.toLowerCase().replace(/^0x/i,""),r=(0,o.uint8ArrayToHexString)((0,n.keccak256)((0,o.ensureIfUint8Array)((0,i.utf8ToBytes)(t))));if((0,a.isNullish)(r)||"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"===r)return"";for(var s="0x",c=r.replace(/^0x/i,""),u=0;u<t.length;u+=1)parseInt(c[u],16)>7?s+=t[u].toUpperCase():s+=t[u];return s}},1020:(e,t,r)=>{"use strict";var n=r(6540),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:l,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},1371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1388:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StorageManager=void 0;var i=r(8177),o=n(r(8341)),a=n(r(1968)),s=n(r(6073)),c=["cookieStorage","localStorage","sessionStorage","memoryStorage"],u=function(){function e(e){this.writeKey=e,this.storages=new Map}return e.prototype.getStorage=function(e){if(!this.storages.has(e)){for(var t=this.createStorage(e);!t.isAvailable();){var r=c.indexOf(e);i.logger.warn("Storage ".concat(e," is not available, trying ").concat(c[r+1])),t=this.createStorage(c[r+1])}this.storages.set(e,t)}return this.storages.get(e)},e.prototype.createStorage=function(e){switch(e){case"cookieStorage":return new o.default(this.writeKey);case"localStorage":return new s.default(this.writeKey,localStorage);case"sessionStorage":return new s.default(this.writeKey,sessionStorage);default:return new a.default(this.writeKey)}},e}();t.StorageManager=u},1466:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(654)),o=n(r(9615)),a=(0,i.default)((function(e,t){return(0,o.default)((function(e,t,r){return r}),e,t)}));t.default=a},1484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=i,t.abytes=o,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=a,t.hexToNumber=s,t.bytesToHex=l,t.hexToBytes=h,t.bytesToNumberBE=function(e){return s(l(e))},t.bytesToNumberLE=function(e){return o(e),s(l(Uint8Array.from(e).reverse()))},t.numberToBytesBE=p,t.numberToBytesLE=function(e,t){return p(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(a(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=h(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!i(t))throw new Error(e+" must be hex string or Uint8Array");n=Uint8Array.from(t)}const o=n.length;if("number"==typeof r&&o!==r)throw new Error(e+" of length "+r+" expected, got "+o);return n},t.concatBytes=y,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))},t.inRange=g,t.aInRange=function(e,t,r,n){if(!g(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,i){return e|(i?n:r)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=A(e),i=A(e),o=0;const a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=A(0))=>{i=s(m([0]),e),n=s(),0!==e.length&&(i=s(m([1]),e),n=s())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){n=s();const t=n.slice();r.push(t),e+=n.length}return y(...r)};return(e,t)=>{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}},t.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const i=b[r];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};for(const[e,r]of Object.entries(t))n(e,r,!1);for(const[e,t]of Object.entries(r))n(e,t,!0);return e},t.memoized=function(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(void 0!==i)return i;const o=e(r,...n);return t.set(r,o),o}};const r=BigInt(0),n=BigInt(1);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!i(e))throw new Error("Uint8Array expected")}function a(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function s(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function l(e){if(o(e),c)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t}const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=f._0&&e<=f._9?e-f._0:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(c)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){const r=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(void 0===r||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}n[t]=16*r+o}return n}function p(e,t){return h(e.toString(16).padStart(2*t,"0"))}function y(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];o(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r}const v=e=>"bigint"==typeof e&&r<=e;function g(e,t,r){return v(e)&&v(t)&&v(r)&&t<=e&&e<r}t.bitMask=e=>(n<<BigInt(e))-n;const A=e=>new Uint8Array(e),m=e=>Uint8Array.from(e),b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||i(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw new Error("not implemented")}},1565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1934:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1968:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.memoryStorage={},t}return i(t,e),t.prototype.isAvailable=function(){return!0},t.prototype.set=function(e,t){this.memoryStorage[this.getKey(e)]=t},t.prototype.get=function(e){return this.memoryStorage[this.getKey(e)]||null},t.prototype.remove=function(e){delete this.memoryStorage[this.getKey(e)]},t}(o(r(2200)).default);t.default=a},2019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const n=r(2955),i=r(2672);t.keccak224=(0,i.wrapHash)(n.keccak_224),t.keccak256=(()=>{const e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),t.keccak384=(0,i.wrapHash)(n.keccak_384),t.keccak512=(0,i.wrapHash)(n.keccak_512)},2066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},2200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7532),i=function(){function e(e){this.writeKey=e}return e.prototype.getKey=function(e){return"".concat(n.KEY_PREFIX,"_").concat(this.writeKey,".").concat(e)},e}();t.default=i},2309:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.EventChannel=t.EventType=void 0,function(e){e.PAGE="page",e.IDENTIFY="identify",e.DETECT="detect",e.CONNECT="connect",e.DISCONNECT="disconnect",e.CHAIN="chain",e.SIGNATURE="signature",e.TRANSACTION="transaction",e.TRACK="track"}(r||(t.EventType=r={})),function(e){e.WEB="web",e.MOBILE="mobile",e.SERVER="server",e.SOURCE="source"}(n||(t.EventChannel=n={}))},2317:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=void 0,t.announceProvider=function(e){const t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t);const r=()=>window.dispatchEvent(t);return window.addEventListener("eip6963:requestProvider",r),()=>window.removeEventListener("eip6963:requestProvider",r)},t.requestProviders=function(e){if("undefined"==typeof window)return;const t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}},2318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=m,t.fromBig=i,t.split=o;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let a=0;a<r;a++){const{h:r,l:s}=i(e[a],t);[n[a],o[a]]=[r,s]}return[n,o]}const a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=a;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;const f=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=f;const d=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=d;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const y=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=y;const v=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=v;const g=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=g;const A=(e,t,r)=>e<<r-32|t>>>64-r;function m(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.rotlBL=A;const b=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=b;const _=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=_;const E=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=E;const w=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;t.add4H=w;const S=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=S;const T=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;t.add5H=T;const C={fromBig:i,split:o,toBig:a,shrSH:s,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:f,rotrBL:d,rotr32H:h,rotr32L:p,rotlSH:y,rotlSL:v,rotlBH:g,rotlBL:A,add:m,add3L:b,add3H:_,add4L:E,add4H:w,add5H:T,add5L:S};t.default=C},2672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertBytes=t.assertBool=t.utf8ToBytes=t.toHex=t.createView=t.concatBytes=t.bytesToHex=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.wrapHash=function(e){return t=>((0,i.abytes)(t),e(t))};const n=r(1484);Object.defineProperty(t,"assertBool",{enumerable:!0,get:function(){return n.abool}});const i=r(7557);Object.defineProperty(t,"assertBytes",{enumerable:!0,get:function(){return i.abytes}});const o=r(9175);var a=r(9175);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return a.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return a.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return a.createView}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return a.bytesToHex}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return a.utf8ToBytes}})},2865:function(e,t){"use strict";var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.Logger=void 0;var n=function(){function e(e,t){void 0===e&&(e=!1),void 0===t&&(t=[]),this.enabled=e,this.enabledLevels=new Set(t)}return e.init=function(t){var r=e.getInstance();void 0!==t.enabled&&r.setEnabled(t.enabled),void 0!==t.enabledLevels&&r.setEnabledLevels(t.enabledLevels)},e.getInstance=function(t){var r,n;return e.instance||(e.instance=new e(null!==(r=null==t?void 0:t.enabled)&&void 0!==r&&r,null!==(n=null==t?void 0:t.enabledLevels)&&void 0!==n?n:[])),e.instance},e.prototype.setEnabled=function(e){this.enabled=e},e.prototype.isLoggingEnabled=function(){return this.enabled},e.prototype.setEnabledLevels=function(e){this.enabledLevels=new Set(e)},e.prototype.getEnabledLevels=function(){return Array.from(this.enabledLevels)},e.prototype.shouldLog=function(e){return!!this.enabled&&this.enabledLevels.has(e)},e.prototype.formatMessage=function(e){var t=(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return"[Formo SDK][".concat(t,"] ").concat(e)},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("debug")&&console.debug.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("info")&&console.info.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("warn")&&console.warn.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("error")&&console.error.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.shouldLog("trace")&&console.trace.apply(console,r([this.formatMessage(e)],t,!1))},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.info.apply(this,r([e],t,!1))},e}();t.Logger=n,t.logger=n.getInstance()},2955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=m;const n=r(2318),i=r(9175),o=BigInt(0),a=BigInt(1),s=BigInt(2),c=BigInt(7),u=BigInt(256),l=BigInt(113),f=[],d=[],h=[];for(let e=0,t=a,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],f.push(2*(5*n+r)),d.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)t=(t<<a^(t>>c)*l)%u,t&s&&(i^=a<<(a<<BigInt(e))-a);h.push(i)}const p=(0,n.split)(h,!0),y=p[0],v=p[1],g=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),A=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function m(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=g(o,a,1)^r[n],c=A(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=d[r],o=g(t,i,n),a=A(t,i,n),s=f[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=y[n],e[1]^=v[n]}(0,i.clean)(r)}class b extends i.Hash{constructor(e,t,r,n=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=o,(0,i.anumber)(r),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.swap32IfBE)(this.state32),m(this.state32,this.rounds),(0,i.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.aexists)(this),e=(0,i.toBytes)(e),(0,i.abytes)(e);const{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){const o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,i.aexists)(this,!1),(0,i.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.clean)(this.state)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new b(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=b;const _=(e,t,r)=>(0,i.createHasher)((()=>new b(t,e,r)));t.sha3_224=_(6,144,28),t.sha3_256=_(6,136,32),t.sha3_384=_(6,104,48),t.sha3_512=_(6,72,64),t.keccak_224=_(1,144,28),t.keccak_256=_(1,136,32),t.keccak_384=_(1,104,48),t.keccak_512=_(1,72,64);const E=(e,t,r)=>(0,i.createXOFer)(((n={})=>new b(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},2970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formofy=function(e,t){e&&"undefined"!=typeof window?n.FormoAnalytics.init(e,t).then((function(e){window.formo=e})).catch((function(e){return console.error("Error initializing FormoAnalytics:",e)})):console.warn("FormoAnalytics not found")};var n=r(879)},3113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=function(e){var t,r;return e instanceof Uint8Array||"Uint8Array"===(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)||"Buffer"===(null===(r=null==e?void 0:e.constructor)||void 0===r?void 0:r.name)},t.uint8ArrayToHexString=function(e){for(var t="0x",r=0,n=e;r<n.length;r++){var i=n[r].toString(16);t+=1===i.length?"0".concat(i):i}return t}},3318:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(r,n){if(n=n||{},"function"!=typeof r)throw new t("fetch must be a function");if("object"!=typeof n)throw new t("defaults must be an object");if(void 0!==n.retries&&!e(n.retries))throw new t("retries must be a positive integer");if(void 0!==n.retryDelay&&!e(n.retryDelay)&&"function"!=typeof n.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==n.retryOn&&!Array.isArray(n.retryOn)&&"function"!=typeof n.retryOn)throw new t("retryOn property expects an array or function");return n=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},n),function(i,o){var a=n.retries,s=n.retryDelay,c=n.retryOn;if(o&&void 0!==o.retries){if(!e(o.retries))throw new t("retries must be a positive integer");a=o.retries}if(o&&void 0!==o.retryDelay){if(!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=o.retryDelay}if(o&&o.retryOn){if(!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");c=o.retryOn}return new Promise((function(e,t){var n=function(n){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;r(s,o).then((function(r){if(Array.isArray(c)&&-1===c.indexOf(r.status))e(r);else if("function"==typeof c)try{return Promise.resolve(c(n,null,r)).then((function(t){t?u(n,null,r):e(r)})).catch(t)}catch(e){t(e)}else n<a?u(n,null,r):e(r)})).catch((function(e){if("function"==typeof c)try{Promise.resolve(c(n,e,null)).then((function(r){r?u(n,e,null):t(e)})).catch((function(e){t(e)}))}catch(e){t(e)}else n<a?u(n,e,null):t(e)}))};function u(e,t,r){var i="function"==typeof s?s(e,t,r):s;setTimeout((function(){n(++e)}),i)}n(0)}))}}}()},3358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COUNTRY_LIST=t.EVENTS_API_REQUEST_HEADER=t.USER_API_URL=t.EVENTS_API_URL=t.EVENTS_API_HOST=void 0,t.EVENTS_API_HOST="https://events.formo.so",t.EVENTS_API_URL="".concat(t.EVENTS_API_HOST,"/v0/raw_events"),t.USER_API_URL="".concat(t.EVENTS_API_HOST,"/user"),t.EVENTS_API_REQUEST_HEADER=function(e){return{"Content-Type":"application/json",Authorization:"Basic ".concat(e)}},t.COUNTRY_LIST={"Africa/Abidjan":"CI","Africa/Accra":"GH","Africa/Addis_Ababa":"ET","Africa/Algiers":"DZ","Africa/Asmara":"ER","Africa/Asmera":"ER","Africa/Bamako":"ML","Africa/Bangui":"CF","Africa/Banjul":"GM","Africa/Bissau":"GW","Africa/Blantyre":"MW","Africa/Brazzaville":"CG","Africa/Bujumbura":"BI","Africa/Cairo":"EG","Africa/Casablanca":"MA","Africa/Ceuta":"ES","Africa/Conakry":"GN","Africa/Dakar":"SN","Africa/Dar_es_Salaam":"TZ","Africa/Djibouti":"DJ","Africa/Douala":"CM","Africa/El_Aaiun":"EH","Africa/Freetown":"SL","Africa/Gaborone":"BW","Africa/Harare":"ZW","Africa/Johannesburg":"ZA","Africa/Juba":"SS","Africa/Kampala":"UG","Africa/Khartoum":"SD","Africa/Kigali":"RW","Africa/Kinshasa":"CD","Africa/Lagos":"NG","Africa/Libreville":"GA","Africa/Lome":"TG","Africa/Luanda":"AO","Africa/Lubumbashi":"CD","Africa/Lusaka":"ZM","Africa/Malabo":"GQ","Africa/Maputo":"MZ","Africa/Maseru":"LS","Africa/Mbabane":"SZ","Africa/Mogadishu":"SO","Africa/Monrovia":"LR","Africa/Nairobi":"KE","Africa/Ndjamena":"TD","Africa/Niamey":"NE","Africa/Nouakchott":"MR","Africa/Ouagadougou":"BF","Africa/Porto-Novo":"BJ","Africa/Sao_Tome":"ST","Africa/Timbuktu":"ML","Africa/Tripoli":"LY","Africa/Tunis":"TN","Africa/Windhoek":"NA","America/Adak":"US","America/Anchorage":"US","America/Anguilla":"AI","America/Antigua":"AG","America/Araguaina":"BR","America/Argentina/Buenos_Aires":"AR","America/Argentina/Catamarca":"AR","America/Argentina/ComodRivadavia":"AR","America/Argentina/Cordoba":"AR","America/Argentina/Jujuy":"AR","America/Argentina/La_Rioja":"AR","America/Argentina/Mendoza":"AR","America/Argentina/Rio_Gallegos":"AR","America/Argentina/Salta":"AR","America/Argentina/San_Juan":"AR","America/Argentina/San_Luis":"AR","America/Argentina/Tucuman":"AR","America/Argentina/Ushuaia":"AR","America/Aruba":"AW","America/Asuncion":"PY","America/Atikokan":"CA","America/Atka":"US","America/Bahia":"BR","America/Bahia_Banderas":"MX","America/Barbados":"BB","America/Belem":"BR","America/Belize":"BZ","America/Blanc-Sablon":"CA","America/Boa_Vista":"BR","America/Bogota":"CO","America/Boise":"US","America/Buenos_Aires":"AR","America/Cambridge_Bay":"CA","America/Campo_Grande":"BR","America/Cancun":"MX","America/Caracas":"VE","America/Catamarca":"AR","America/Cayenne":"GF","America/Cayman":"KY","America/Chicago":"US","America/Chihuahua":"MX","America/Ciudad_Juarez":"MX","America/Coral_Harbour":"CA","America/Cordoba":"AR","America/Costa_Rica":"CR","America/Creston":"CA","America/Cuiaba":"BR","America/Curacao":"CW","America/Danmarkshavn":"GL","America/Dawson":"CA","America/Dawson_Creek":"CA","America/Denver":"US","America/Detroit":"US","America/Dominica":"DM","America/Edmonton":"CA","America/Eirunepe":"BR","America/El_Salvador":"SV","America/Ensenada":"MX","America/Fort_Nelson":"CA","America/Fort_Wayne":"US","America/Fortaleza":"BR","America/Glace_Bay":"CA","America/Godthab":"GL","America/Goose_Bay":"CA","America/Grand_Turk":"TC","America/Grenada":"GD","America/Guadeloupe":"GP","America/Guatemala":"GT","America/Guayaquil":"EC","America/Guyana":"GY","America/Halifax":"CA","America/Havana":"CU","America/Hermosillo":"MX","America/Indiana/Indianapoli":"US","America/Indiana/Knox":"US","America/Indiana/Marengo":"US","America/Indiana/Petersburg":"US","America/Indiana/Tell_City":"US","America/Indiana/Vevay":"US","America/Indiana/Vincennes":"US","America/Indiana/Winamac":"US","America/Indianapoli":"US","America/Inuvik":"CA","America/Iqaluit":"CA","America/Jamaica":"JM","America/Jujuy":"AR","America/Juneau":"US","America/Kentucky/Louisville":"US","America/Kentucky/Monticello":"US","America/Knox_IN":"US","America/Kralendijk":"BQ","America/La_Paz":"BO","America/Lima":"PE","America/Los_Angeles":"US","America/Louisville":"US","America/Lower_Princes":"SX","America/Maceio":"BR","America/Managua":"NI","America/Manaus":"BR","America/Marigot":"MF","America/Martinique":"MQ","America/Matamoros":"MX","America/Mazatlan":"MX","America/Mendoza":"AR","America/Menominee":"US","America/Merida":"MX","America/Metlakatla":"US","America/Mexico_City":"MX","America/Miquelon":"PM","America/Moncton":"CA","America/Monterrey":"MX","America/Montevideo":"UY","America/Montreal":"CA","America/Montserrat":"MS","America/Nassau":"BS","America/New_York":"US","America/Nipigon":"CA","America/Nome":"US","America/Noronha":"BR","America/North_Dakota/Beulah":"US","America/North_Dakota/Center":"US","America/North_Dakota/New_Salem":"US","America/Nuuk":"GL","America/Ojinaga":"MX","America/Panama":"PA","America/Pangnirtung":"CA","America/Paramaribo":"SR","America/Phoenix":"US,CA","America/Port-au-Prince":"HT","America/Port_of_Spain":"TT","America/Porto_Acre":"BR","America/Porto_Velho":"BR","America/Puerto_Rico":"PR","America/Punta_Arenas":"CL","America/Rainy_River":"CA","America/Rankin_Inlet":"CA","America/Recife":"BR","America/Regina":"CA","America/Resolute":"CA","America/Rio_Branco":"BR","America/Rosario":"AR","America/Santa_Isabel":"MX","America/Santarem":"BR","America/Santiago":"CL","America/Santo_Domingo":"DO","America/Sao_Paulo":"BR","America/Scoresbysund":"GL","America/Shiprock":"US","America/Sitka":"US","America/St_Barthelemy":"BL","America/St_Johns":"CA","America/St_Kitts":"KN","America/St_Lucia":"LC","America/St_Thomas":"VI","America/St_Vincent":"VC","America/Swift_Current":"CA","America/Tegucigalpa":"HN","America/Thule":"GL","America/Thunder_Bay":"CA","America/Tijuana":"MX","America/Toronto":"CA","America/Tortola":"VG","America/Vancouver":"CA","America/Virgin":"VI","America/Whitehorse":"CA","America/Winnipeg":"CA","America/Yakutat":"US","America/Yellowknife":"CA","Antarctica/Casey":"AQ","Antarctica/Davis":"AQ","Antarctica/DumontDUrville":"AQ","Antarctica/Macquarie":"AU","Antarctica/Mawson":"AQ","Antarctica/McMurdo":"AQ","Antarctica/Palmer":"AQ","Antarctica/Rothera":"AQ","Antarctica/South_Pole":"AQ","Antarctica/Syowa":"AQ","Antarctica/Troll":"AQ","Antarctica/Vostok":"AQ","Arctic/Longyearbyen":"SJ","Asia/Aden":"YE","Asia/Almaty":"KZ","Asia/Amman":"JO","Asia/Anadyr":"RU","Asia/Aqtau":"KZ","Asia/Aqtobe":"KZ","Asia/Ashgabat":"TM","Asia/Ashkhabad":"TM","Asia/Atyrau":"KZ","Asia/Baghdad":"IQ","Asia/Bahrain":"BH","Asia/Baku":"AZ","Asia/Bangkok":"TH","Asia/Barnaul":"RU","Asia/Beirut":"LB","Asia/Bishkek":"KG","Asia/Brunei":"BN","Asia/Calcutta":"IN","Asia/Chita":"RU","Asia/Choibalsan":"MN","Asia/Chongqing":"CN","Asia/Chungking":"CN","Asia/Colombo":"LK","Asia/Dacca":"BD","Asia/Damascus":"SY","Asia/Dhaka":"BD","Asia/Dili":"TL","Asia/Dubai":"AE","Asia/Dushanbe":"TJ","Asia/Famagusta":"CY","Asia/Gaza":"PS","Asia/Harbin":"CN","Asia/Hebron":"PS","Asia/Ho_Chi_Minh":"VN","Asia/Hong_Kong":"HK","Asia/Hovd":"MN","Asia/Irkutsk":"RU","Asia/Istanbul":"TR","Asia/Jakarta":"ID","Asia/Jayapura":"ID","Asia/Jerusalem":"IL","Asia/Kabul":"AF","Asia/Kamchatka":"RU","Asia/Karachi":"PK","Asia/Kashgar":"CN","Asia/Kathmandu":"NP","Asia/Katmandu":"NP","Asia/Khandyga":"RU","Asia/Kolkata":"IN","Asia/Krasnoyarsk":"RU","Asia/Kuala_Lumpur":"MY","Asia/Kuching":"MY","Asia/Kuwait":"KW","Asia/Macao":"MO","Asia/Macau":"MO","Asia/Magadan":"RU","Asia/Makassar":"ID","Asia/Manila":"PH","Asia/Muscat":"OM","Asia/Nicosia":"CY","Asia/Novokuznetsk":"RU","Asia/Novosibirsk":"RU","Asia/Omsk":"RU","Asia/Oral":"KZ","Asia/Phnom_Penh":"KH","Asia/Pontianak":"ID","Asia/Pyongyang":"KP","Asia/Qatar":"QA","Asia/Qostanay":"KZ","Asia/Qyzylorda":"KZ","Asia/Rangoon":"MM","Asia/Riyadh":"SA","Asia/Saigon":"VN","Asia/Sakhalin":"RU","Asia/Samarkand":"UZ","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Srednekolymsk":"RU","Asia/Taipei":"TW","Asia/Tashkent":"UZ","Asia/Tbilisi":"GE","Asia/Tehran":"IR","Asia/Tel_Aviv":"IL","Asia/Thimbu":"BT","Asia/Thimphu":"BT","Asia/Tokyo":"JP","Asia/Tomsk":"RU","Asia/Ujung_Pandang":"ID","Asia/Ulaanbaatar":"MN","Asia/Ulan_Bator":"MN","Asia/Urumqi":"CN","Asia/Ust-Nera":"RU","Asia/Vientiane":"LA","Asia/Vladivostok":"RU","Asia/Yakutsk":"RU","Asia/Yangon":"MM","Asia/Yekaterinburg":"RU","Asia/Yerevan":"AM","Atlantic/Azores":"PT","Atlantic/Bermuda":"BM","Atlantic/Canary":"ES","Atlantic/Cape_Verde":"CV","Atlantic/Faeroe":"FO","Atlantic/Faroe":"FO","Atlantic/Jan_Mayen":"SJ","Atlantic/Madeira":"PT","Atlantic/Reykjavik":"IS","Atlantic/South_Georgia":"GS","Atlantic/St_Helena":"SH","Atlantic/Stanley":"FK","Australia/ACT":"AU","Australia/Adelaide":"AU","Australia/Brisbane":"AU","Australia/Broken_Hill":"AU","Australia/Canberra":"AU","Australia/Currie":"AU","Australia/Darwin":"AU","Australia/Eucla":"AU","Australia/Hobart":"AU","Australia/LHI":"AU","Australia/Lindeman":"AU","Australia/Lord_Howe":"AU","Australia/Melbourne":"AU","Australia/North":"AU","Australia/NSW":"AU","Australia/Perth":"AU","Australia/Queensland":"AU","Australia/South":"AU","Australia/Sydney":"AU","Australia/Tasmania":"AU","Australia/Victoria":"AU","Australia/West":"AU","Australia/Yancowinna":"AU","Brazil/Acre":"BR","Brazil/DeNoronha":"BR","Brazil/East":"BR","Brazil/West":"BR","Canada/Atlantic":"CA","Canada/Central":"CA","Canada/Eastern":"CA","Canada/Mountain":"CA","Canada/Newfoundland":"CA","Canada/Pacific":"CA","Canada/Saskatchewan":"CA","Canada/Yukon":"CA",CET:"CET","Chile/Continental":"CL","Chile/EasterIsland":"CL",CST6CDT:"CST6CDT",Cuba:"CU",EET:"EET",Egypt:"EG",Eire:"IE",EST:"EST",EST5EDT:"EST5EDT","Etc/GMT":"Etc/GMT","Etc/GMT+0":"Etc/GMT+0","Etc/GMT+1":"Etc/GMT+1","Etc/GMT+10":"Etc/GMT+10","Etc/GMT+11":"Etc/GMT+11","Etc/GMT+12":"Etc/GMT+12","Etc/GMT+2":"Etc/GMT+2","Etc/GMT+3":"Etc/GMT+3","Etc/GMT+4":"Etc/GMT+4","Etc/GMT+5":"Etc/GMT+5","Etc/GMT+6":"Etc/GMT+6","Etc/GMT+7":"Etc/GMT+7","Etc/GMT+8":"Etc/GMT+8","Etc/GMT+9":"Etc/GMT+9","Etc/GMT-0":"Etc/GMT-0","Etc/GMT-1":"Etc/GMT-1","Etc/GMT-10":"Etc/GMT-10","Etc/GMT-11":"Etc/GMT-11","Etc/GMT-12":"Etc/GMT-12","Etc/GMT-13":"Etc/GMT-13","Etc/GMT-14":"Etc/GMT-14","Etc/GMT-2":"Etc/GMT-2","Etc/GMT-3":"Etc/GMT-3","Etc/GMT-4":"Etc/GMT-4","Etc/GMT-5":"Etc/GMT-5","Etc/GMT-6":"Etc/GMT-6","Etc/GMT-7":"Etc/GMT-7","Etc/GMT-8":"Etc/GMT-8","Etc/GMT-9":"Etc/GMT-9","Etc/GMT0":"Etc/GMT0","Etc/Greenwich":"Etc/Greenwich","Etc/UCT":"Etc/UCT","Etc/UTC":"Etc/UTC","Etc/Universal":"Etc/Universal","Etc/Zulu":"Etc/Zulu","Europe/Amsterdam":"NL","Europe/Andorra":"AD","Europe/Astrakhan":"RU","Europe/Athens":"GR","Europe/Belfast":"GB","Europe/Belgrade":"RS","Europe/Berlin":"DE","Europe/Bratislava":"SK","Europe/Brussels":"BE","Europe/Bucharest":"RO","Europe/Budapest":"HU","Europe/Busingen":"DE","Europe/Chisinau":"MD","Europe/Copenhagen":"DK","Europe/Dublin":"IE","Europe/Gibraltar":"GI","Europe/Guernsey":"GG","Europe/Helsinki":"FI","Europe/Isle_of_Man":"IM","Europe/Istanbul":"TR","Europe/Jersey":"JE","Europe/Kaliningrad":"RU","Europe/Kiev":"UA","Europe/Kirov":"RU","Europe/Kyiv":"UA","Europe/Lisbon":"PT","Europe/Ljubljana":"SI","Europe/London":"GB","Europe/Luxembourg":"LU","Europe/Madrid":"ES","Europe/Malta":"MT","Europe/Mariehamn":"AX","Europe/Minsk":"BY","Europe/Monaco":"MC","Europe/Moscow":"RU","Europe/Nicosia":"CY","Europe/Oslo":"NO","Europe/Paris":"FR","Europe/Podgorica":"ME","Europe/Prague":"CZ","Europe/Riga":"LV","Europe/Rome":"IT","Europe/Samara":"RU","Europe/San_Marino":"SM","Europe/Sarajevo":"BA","Europe/Saratov":"RU","Europe/Simferopol":"RU","Europe/Skopje":"MK","Europe/Sofia":"BG","Europe/Stockholm":"SE","Europe/Tallinn":"EE","Europe/Tirane":"AL","Europe/Tiraspol":"MD","Europe/Ulyanovsk":"RU","Europe/Uzhgorod":"UA","Europe/Vaduz":"LI","Europe/Vatican":"VA","Europe/Vienna":"AT","Europe/Vilnius":"LT","Europe/Volgograd":"RU","Europe/Warsaw":"PL","Europe/Zagreb":"HR","Europe/Zaporozhye":"UA","Europe/Zurich":"CH",Factory:"Factory",GB:"GB","GB-Eire":"GB",GMT:"GMT","GMT+0":"GMT+0","GMT-0":"GMT-0",GMT0:"GMT0",Greenwich:"Greenwich",Hongkong:"HK",HST:"HST",Iceland:"IS","Indian/Antananarivo":"MG","Indian/Chagos":"IO","Indian/Christmas":"CX","Indian/Cocos":"CC","Indian/Comoro":"KM","Indian/Kerguelen":"TF","Indian/Mahe":"SC","Indian/Maldives":"MV","Indian/Mauritius":"MU","Indian/Mayotte":"YT","Indian/Reunion":"RE",Iran:"IR",Israel:"IL",Jamaica:"JM",Japan:"JP",Kwajalein:"MH",Libya:"LY",MET:"MET","Mexico/BajaNorte":"MX","Mexico/BajaSur":"MX","Mexico/General":"MX",MST:"MST",MST7MDT:"MST7MDT",Navajo:"US",NZ:"NZ","NZ-CHAT":"NZ","Pacific/Apia":"WS","Pacific/Auckland":"NZ","Pacific/Bougainville":"PG","Pacific/Chatham":"NZ","Pacific/Chuuk":"FM","Pacific/Easter":"CL","Pacific/Efate":"VU","Pacific/Enderbury":"KI","Pacific/Fakaofo":"TK","Pacific/Fiji":"FJ","Pacific/Funafuti":"TV","Pacific/Galapagos":"EC","Pacific/Gambier":"PF","Pacific/Guadalcanal":"SB","Pacific/Guam":"GU,MP","Pacific/Honolulu":"US","Pacific/Johnston":"UM","Pacific/Kanton":"KI","Pacific/Kiritimati":"KI","Pacific/Kosrae":"FM","Pacific/Kwajalein":"MH","Pacific/Majuro":"MH","Pacific/Marquesas":"PF","Pacific/Midway":"UM","Pacific/Nauru":"NR","Pacific/Niue":"NU","Pacific/Norfolk":"NF","Pacific/Noumea":"NC","Pacific/Pago_Pago":"AS","Pacific/Palau":"PW","Pacific/Pitcairn":"PN","Pacific/Pohnpei":"FM","Pacific/Ponape":"FM","Pacific/Port_Moresby":"PG","Pacific/Rarotonga":"CK","Pacific/Saipan":"MP","Pacific/Samoa":"AS","Pacific/Tahiti":"PF","Pacific/Tarawa":"KI","Pacific/Tongatapu":"TO","Pacific/Truk":"FM","Pacific/Wake":"UM","Pacific/Wallis":"WF","Pacific/Yap":"FM",Poland:"PL",Portugal:"PT",PRC:"CN",PST8PDT:"PST8PDT",ROC:"TW",ROK:"KR",Singapore:"SG",Turkey:"TR",UCT:"UCT",Universal:"Universal","US/Alaska":"US","US/Aleutian":"US","US/Arizona":"US","US/Central":"US","US/East-Indiana":"US","US/Eastern":"US","US/Hawaii":"US","US/Indiana-Starke":"US","US/Michigan":"US","US/Mountain":"US","US/Pacific":"US","US/Samoa":"AS",UTC:"UTC","W-SU":"RU",WET:"WET",Zulu:"Zulu"}},3500:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(689),t),i(r(1934),t)},3574:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(7989),t),i(r(4465),t),i(r(7521),t)},3961:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4229)),o=n(r(661)),a=(0,i.default)((function(e,t,r){var n,i={};for(n in r=r||{},t=t||{})(0,o.default)(n,t)&&(i[n]=(0,o.default)(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)(0,o.default)(n,r)&&!(0,o.default)(n,i)&&(i[n]=r[n]);return i}));t.default=a},4228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=t.createStore=void 0;var n=r(6349);Object.defineProperty(t,"createStore",{enumerable:!0,get:function(){return n.createStore}});var i=r(2317);Object.defineProperty(t,"announceProvider",{enumerable:!0,get:function(){return i.announceProvider}}),Object.defineProperty(t,"requestProviders",{enumerable:!0,get:function(){return i.requestProviders}})},4229:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return(0,a.default)(r)?t:(0,o.default)((function(t,n){return e(r,t,n)}));case 2:return(0,a.default)(r)&&(0,a.default)(n)?t:(0,a.default)(r)?(0,o.default)((function(t,r){return e(t,n,r)})):(0,a.default)(n)?(0,o.default)((function(t,n){return e(r,t,n)})):(0,i.default)((function(t){return e(r,n,t)}));default:return(0,a.default)(r)&&(0,a.default)(n)&&(0,a.default)(s)?t:(0,a.default)(r)&&(0,a.default)(n)?(0,o.default)((function(t,r){return e(t,r,s)})):(0,a.default)(r)&&(0,a.default)(s)?(0,o.default)((function(t,r){return e(t,n,r)})):(0,a.default)(n)&&(0,a.default)(s)?(0,o.default)((function(t,n){return e(r,t,n)})):(0,a.default)(r)?(0,i.default)((function(t){return e(t,n,s)})):(0,a.default)(n)?(0,i.default)((function(t){return e(r,t,s)})):(0,a.default)(s)?(0,i.default)((function(t){return e(r,n,t)})):e(r,n,s)}}};var i=n(r(4323)),o=n(r(654)),a=n(r(80))},4262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clampNumber=t.toDateHourMinute=t.millisecondsToSecond=void 0,t.toSnakeCase=function(e,t){void 0===t&&(t=[]);var n=function(e){return Array.isArray(e)?e.map(n):null!==e&&"object"==typeof e?Object.keys(e).reduce((function(i,o){return i[t.includes(o)?o:r(o)]=t.includes(o)?e[o]:n(e[o]),i}),{}):e};return n(e)};var r=function(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase()};t.millisecondsToSecond=function(e){return Math.ceil(e/1e3)},t.toDateHourMinute=function(e){return e.getUTCFullYear()+"-"+("0"+(e.getUTCMonth()+1)).slice(-2)+"-"+("0"+e.getUTCDate()).slice(-2)+" "+("0"+e.getUTCHours()).slice(-2)+":"+("0"+e.getUTCMinutes()).slice(-2)},t.clampNumber=function(e,t,r){return Math.min(Math.max(e,r),t)}},4323:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function t(r){return 0===arguments.length||(0,i.default)(r)?t:e.apply(this,arguments)}};var i=n(r(80))},4364:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(3318));t.default=(0,i.default)(r.g.fetch)},4465:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=t.SignatureStatus=void 0,function(e){e.REQUESTED="requested",e.REJECTED="rejected",e.CONFIRMED="confirmed"}(r||(t.SignatureStatus=r={})),function(e){e.STARTED="started",e.REJECTED="rejected",e.BROADCASTED="broadcasted",e.CONFIRMED="confirmed",e.REVERTED="reverted"}(n||(t.TransactionStatus=n={}))},4476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.19.2"},4811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullish=void 0,t.isNullish=function(e){return null==e}},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},5145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5190:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFormo=t.FormoAnalyticsProvider=t.FormoAnalyticsContext=void 0;var a=r(4848),s=r(6540),c=r(879),u=r(8568),l={chain:function(){return Promise.resolve()},page:function(){return Promise.resolve()},reset:function(){return Promise.resolve()},detect:function(){return Promise.resolve()},connect:function(){return Promise.resolve()},disconnect:function(){return Promise.resolve()},signature:function(){return Promise.resolve()},transaction:function(){return Promise.resolve()},identify:function(){return Promise.resolve()},track:function(){return Promise.resolve()}};t.FormoAnalyticsContext=(0,s.createContext)(l),t.FormoAnalyticsProvider=function(e){var t=e.writeKey,r=e.disabled,i=void 0!==r&&r,o=e.children;return t?i?(u.logger.warn("FormoAnalytics is disabled"),(0,a.jsx)(a.Fragment,{children:o})):(0,a.jsx)(f,n({},e)):(u.logger.error("FormoAnalyticsProvider: No Write Key provided"),(0,a.jsx)(a.Fragment,{children:o}))};var f=function(e){var r=e.writeKey,n=e.options,f=e.children,d=(0,s.useState)(l),h=d[0],p=d[1],y=(0,s.useRef)(!1);return(0,u.initStorageManager)(r),(0,s.useEffect)((function(){i(void 0,void 0,void 0,(function(){var e,t;return o(this,(function(i){switch(i.label){case 0:if(y.current)return[2];y.current=!0,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,c.FormoAnalytics.init(r,n)];case 2:return e=i.sent(),p(e),u.logger.log("Successfully initialized"),[3,4];case 3:return t=i.sent(),u.logger.error("Failed to initialize",t),[3,4];case 4:return[2]}}))}))}),[r,n]),(0,a.jsx)(t.FormoAnalyticsContext.Provider,{value:h,children:f})};t.useFormo=function(){var e=(0,s.useContext)(t.FormoAnalyticsContext);return e||u.logger.warn("useFormo called without a valid context"),e}},5287:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}function A(){}function m(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=g.prototype;var b=m.prototype=new A;b.constructor=m,y(b,g.prototype),b.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===o[i]&&(o[i]=c[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:w.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var O=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return a=a(c=e),e=""===o?"."+P(c,0):o,_(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),M(a,t,i,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(c=0,o=""===o?".":o+":",_(e))for(var u=0;u<e.length;u++){var l=o+P(s=e[u],u);c+=M(s,t,i,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=M(s=s.value,t,i,l=o+P(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function k(e,t,r){if(null==e)return e;var n=[],i=0;return M(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var U={current:null},j={transition:null},R={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:j,ReactCurrentOwner:w};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:k,forEach:function(e,t,r){k(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=m,t.StrictMode=o,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=L,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=y({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)E.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return U.current.useCallback(e,t)},t.useContext=function(e){return U.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return U.current.useDeferredValue(e)},t.useEffect=function(e,t){return U.current.useEffect(e,t)},t.useId=function(){return U.current.useId()},t.useImperativeHandle=function(e,t,r){return U.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return U.current.useMemo(e,t)},t.useReducer=function(e,t,r){return U.current.useReducer(e,t,r)},t.useRef=function(e){return U.current.useRef(e)},t.useState=function(e){return U.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return U.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return U.current.useTransition()},t.version="18.3.1"},5467:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.hash=function(e){return r(this,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e))];case 1:return t=n.sent(),r=new Uint8Array(t),[2,Array.from(r).map((function(e){return e.toString(16).padStart(2,"0")})).join("")]}}))}))},t.generateNativeUUID=function(){return crypto.randomUUID()}},5686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateAnonymousId=void 0,t.getCookieDomain=o;var n=r(9266),i=r(6898);function o(e){if(void 0===e&&(e=window.location.hostname),e.includes("localhost")||/^\d{1,3}(\.\d{1,3}){3}$/.test(e))return"";var t=e.split(".");return t.includes("www")&&t.splice(t.indexOf("www"),1),".".concat(t.join("."))}t.generateAnonymousId=function(e){var t=(0,i.cookie)().get(e);if(t&&"string"==typeof t)return t;var r=(0,n.generateNativeUUID)();return(0,i.cookie)().set(e,r,{maxAge:Date.now()+31536e6,domain:o(),path:"/"}),r}},5925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToString=t.isPrimitive=t.isError=t.isDate=t.isRegExp=t.isObjectAndNotNull=t.isObject=t.isNumber=t.isBoolean=t.isArray=t.isBigInt=t.isDefinedNotNullAndNotEmptyString=t.isDefinedAndNotNull=t.isDefined=t.isTypeOfError=t.isNullOrUndefined=t.isUndefined=t.isNull=t.isString=t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e&&Boolean(e.constructor&&e.call&&e.apply)},t.isString=function(e){return"string"==typeof e};var r=function(e){return null===e};t.isNull=r;var n=function(e){return void 0===e};t.isUndefined=n;var i=function(e){return r(e)||n(e)};t.isNullOrUndefined=i,t.isBigInt=function(e){return"bigint"==typeof e},t.isDefined=function(e){return!n(e)};var o=function(e){return!i(e)};t.isDefinedAndNotNull=o,t.isDefinedNotNullAndNotEmptyString=function(e){return o(e)&&""!==e},t.isTypeOfError=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}};var a=function(e){return Array.isArray(e)};t.isArray=a,t.isBoolean=function(e){return"boolean"==typeof e},t.isNumber=function(e){return"number"==typeof e};var s=function(e){return"object"==typeof e};t.isObject=s,t.isObjectAndNotNull=function(e){return!r(e)&&s(e)&&!a(e)},t.isRegExp=function(e){return s(e)&&"[object RegExp]"===c(e)},t.isDate=function(e){return s(e)&&"[object Date]"===c(e)},t.isError=function(e){return s(e)&&("[object Error]"===c(e)||e instanceof Error)},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e};var c=function(e){return Object.prototype.toString.call(e)};t.objectToString=c},5938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddressChecksum=t.isAddress=void 0,t.ensureIfUint8Array=s;var n=r(3113),i=r(2019),o=r(2672),a=r(5953);function s(e){var t;return e instanceof Uint8Array||"Uint8Array"!==(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)?e:Uint8Array.from(e)}t.isAddress=function(e,r){return void 0===r&&(r=!0),!("string"!=typeof e&&!(0,n.isUint8Array)(e))&&(i=(0,n.isUint8Array)(e)?(0,n.uint8ArrayToHexString)(e):"string"!=typeof e||(0,a.isHexStrict)(e)||e.toLowerCase().startsWith("0x")?e:"0x".concat(e),!!/^(0x)?[0-9a-f]{40}$/i.test(i)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(i)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(i))||!r||(0,t.checkAddressChecksum)(i)));var i},t.checkAddressChecksum=function(e){if(!/^(0x)?[0-9a-f]{40}$/i.test(e))return!1;for(var t=e.slice(2),r=(0,o.utf8ToBytes)(t.toLowerCase()),a=(0,n.uint8ArrayToHexString)((0,i.keccak256)(s(r))).slice(2),c=0;c<40;c+=1)if(parseInt(a[c],16)>7&&t[c].toUpperCase()!==t[c]||parseInt(a[c],16)<=7&&t[c].toLowerCase()!==t[c])return!1;return!0}},5953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHexStrict=void 0,t.isHexStrict=function(e){return"string"==typeof e&&/^((-)?0x[0-9a-f]+|(0x))$/i.test(e)}},6073:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(8177),s=r(7532),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.backend=r,n}return i(t,e),t.prototype.isAvailable=function(){try{var e="__storage_test__";return this.backend.setItem(e,"1"),this.backend.removeItem(e),!0}catch(e){return!1}},t.prototype.set=function(e,t){"boolean"==typeof t&&(t=!0===t?"true":"false"),"object"==typeof t&&(t=s.JSON_PREFIX+JSON.stringify(t)),this.backend.setItem(this.getKey(e),t)},t.prototype.get=function(e){var t=this.backend.getItem(this.getKey(e));if(!t||"string"!=typeof t)return null;if(["null","undefined"].some((function(e){return e==t})))return null;if(t.startsWith(s.JSON_PREFIX))try{return JSON.parse(t.slice(s.JSON_PREFIX.length))}catch(e){return a.logger.error("[FORMO_ERROR] ".concat(this.backend.constructor.name," failed to parse JSON"),e),null}return["true","false"].some((function(e){return e==t}))?JSON.parse(t):t},t.prototype.remove=function(e){this.backend.removeItem(this.getKey(e))},t}(o(r(2200)).default);t.default=c},6138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormattedTimestamp=t.getCurrentTimeFormatted=void 0;var r=function(e){return e.toISOString()};t.getFormattedTimestamp=r,t.getCurrentTimeFormatted=function(){return r(new Date)}},6185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getActionDescriptor=void 0,t.getActionDescriptor=function(e,t){return"".concat(e).concat((null==t?void 0:t.status)?" ".concat(null==t?void 0:t.status):"")}},6349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;const n=r(2317);t.createStore=function(){const e=new Set;let t=[];const r=()=>(0,n.requestProviders)((r=>{t.some((({info:e})=>e.uuid===r.info.uuid))||(t=[...t,r],e.forEach((e=>e(t,{added:[r]}))))}));let i=r();return{_listeners:()=>e,clear(){e.forEach((e=>e([],{removed:[...t]}))),t=[]},destroy(){this.clear(),e.clear(),i?.()},findProvider:({rdns:e})=>t.find((t=>t.info.rdns===e)),getProviders:()=>t,reset(){this.clear(),i?.(),i=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}},6450:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6921),t),i(r(3358),t),i(r(2309),t)},6452:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.EventManager=void 0;var i=r(8177),o=r(8337),a=function(){function e(e){this.eventQueue=e,this.eventFactory=new o.EventFactory}return e.prototype.addEvent=function(e,t,r){var o=e.callback,a=n(e,["callback"]),s=this.eventFactory.create(a,t,r);this.eventQueue.enqueue(s,(function(e,t,r){e?i.logger.error("Error sending events:",e):i.logger.info("Events sent successfully: ".concat(r.length," events")),null==o||o(e,t,r)}))},e}();t.EventManager=a},6503:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLocalhost=void 0,t.isLocalhost=function(){return/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(window.location.hostname)||"file:"===window.location.protocol}},6540:(e,t,r)=>{"use strict";e.exports=r(5287)},6898:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.memory=t.session=t.local=t.cookie=void 0,t.initStorageManager=function(e){a||(a=new o.StorageManager(e))};var o=r(1388);i(r(7892),t);var a=null;function s(e){if(!a)throw new Error("StorageManager not initialized. Call initStorageManager(writeKey) first.");return a.getStorage(e)}t.cookie=function(){return s("cookieStorage")},t.local=function(){return s("localStorage")},t.session=function(){return s("sessionStorage")},t.memory=function(){return s("memoryStorage")}},6921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOCAL_ANONYMOUS_ID_KEY=t.SESSION_USER_ID_KEY=t.SESSION_CURRENT_URL_KEY=t.SESSION_WALLET_DETECTED_KEY=t.SESSION_TRAFFIC_SOURCE_KEY=void 0,t.SESSION_TRAFFIC_SOURCE_KEY="traffic-source",t.SESSION_WALLET_DETECTED_KEY="wallet-detected",t.SESSION_CURRENT_URL_KEY="analytics-current-url",t.SESSION_USER_ID_KEY="user-id",t.LOCAL_ANONYMOUS_ID_KEY="anonymous-id"},7034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.CHANNEL=void 0,t.CHANNEL="web",t.VERSION="0"},7521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_PREFIX=t.JSON_PREFIX=void 0,t.JSON_PREFIX="__json=",t.KEY_PREFIX="formo"},7557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aoutput=t.anumber=t.aexists=t.abytes=void 0;const n=r(9175);t.abytes=n.abytes,t.aexists=n.aexists,t.anumber=n.anumber,t.aoutput=n.aoutput},7892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7967:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(8337),t),i(r(6452),t),i(r(1371),t)},7989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8156:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(2970);i(r(5190),t),i(r(879),t),i(r(3574),t),"undefined"!=typeof window&&(window.formofy=o.formofy)},8177:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(2865),t),i(r(1565),t)},8337:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventFactory=void 0;var o=r(6450),a=r(9266),s=r(6138),c=r(9754),u=r(8177),l=i(r(1466)),f=r(6898),d=r(4476),h=r(7034),p=r(5686),y=function(){function e(){var e=this;this.extractUTMParameters=function(e){var t={utm_campaign:"",utm_content:"",utm_medium:"",utm_source:"",utm_term:""};try{new URL(e).searchParams.forEach((function(e,r){r.startsWith("utm_")&&(t[r]=e.trim())}))}catch(e){}return t},this.extractReferralParameter=function(e){for(var t,r=0,n=["ref","referral","refcode"];r<n.length;r++){var i=n[r],o=null===(t=e.searchParams.get(i))||void 0===t?void 0:t.trim();if(o)return o}return""},this.getTrafficSources=function(t){var r=new URL(t),i=n(n({},e.extractUTMParameters(t)),{ref:e.extractReferralParameter(r),referrer:document.referrer}),a=(0,f.session)().get(o.SESSION_TRAFFIC_SOURCE_KEY)||{},s={ref:i.ref||(null==a?void 0:a.ref)||"",referrer:i.referrer||(null==a?void 0:a.referrer),utm_campaign:i.utm_campaign||(null==a?void 0:a.utm_campaign)||"",utm_content:i.utm_content||(null==a?void 0:a.utm_content)||"",utm_medium:i.utm_medium||(null==a?void 0:a.utm_medium)||"",utm_source:i.utm_source||(null==a?void 0:a.utm_source)||"",utm_term:i.utm_term||(null==a?void 0:a.utm_term)||""},u=Object.keys(s).reduce((function(e,t){var r=s[t];return(0,c.isUndefined)(r)||""===r||(e[t]=r),e}),{});return Object.keys(u).length&&(0,f.session)().set(o.SESSION_TRAFFIC_SOURCE_KEY,u),s},this.getPageProperties=function(e){var t=e;return(0,c.isUndefined)(t.url)&&(t.url=new URL(globalThis.location.href).href),(0,c.isUndefined)(t.path)&&(t.path=globalThis.location.pathname),(0,c.isUndefined)(t.hash)&&(t.hash=globalThis.location.hash),t},this.getEnrichedEvent=function(t,r){var n={context:e.generateContext(r),original_timestamp:(0,s.getCurrentTimeFormatted)(),user_id:t.user_id,type:t.type,channel:h.CHANNEL,version:h.VERSION};n.anonymous_id=(0,p.generateAnonymousId)(o.LOCAL_ANONYMOUS_ID_KEY),t.address?n.address=(0,a.toChecksumAddress)(t.address):n.address=t.address;var i=(0,l.default)(t,n);return void 0===i.event&&(i.event=null),void 0===i.properties&&(i.properties=null),(0,a.toSnakeCase)(i)}}return e.prototype.getTimezone=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return u.logger.error("Error resolving timezone:",e),""}},e.prototype.getLocation=function(){try{var e=this.getTimezone();return e in o.COUNTRY_LIST?o.COUNTRY_LIST[e]:e}catch(e){return u.logger.error("Error resolving location:",e),""}},e.prototype.getLanguage=function(){try{return(navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language)||"en"}catch(e){return u.logger.error("Error resolving language:",e),"en"}},e.prototype.getLibraryVersion=function(){return d.version},e.prototype.generateContext=function(e){var t=globalThis.location.pathname,r=this.getLanguage(),i=this.getTimezone(),o=this.getLocation(),a=this.getLibraryVersion(),s=n(n({user_agent:globalThis.navigator.userAgent,locale:r,timezone:i,location:o},this.getTrafficSources(globalThis.location.href)),{page_path:t,page_title:document.title,page_url:globalThis.location.href,library_name:"Formo Web SDK",library_version:a});return(0,l.default)(s,e||{})},e.prototype.generatePageEvent=function(e,t,r,n){var i=null!=r?r:{};i.category=e,i.name=t;var o={properties:i=this.getPageProperties(i),type:"page"};return this.getEnrichedEvent(o,n)},e.prototype.generateDetectWalletEvent=function(e,t,r,i){var o={properties:n({providerName:e,rdns:t},r),type:"detect"};return this.getEnrichedEvent(o,i)},e.prototype.generateIdentifyEvent=function(e,t,r,i,o,a){var s={properties:n({providerName:e,rdns:t},o),user_id:i,address:r,type:"identify"};return this.getEnrichedEvent(s,a)},e.prototype.generateConnectEvent=function(e,t,r,i){var o={properties:n({chainId:e},r),address:t,type:"connect"};return this.getEnrichedEvent(o,i)},e.prototype.generateDisconnectEvent=function(e,t,r,i){var o={properties:n({chainId:e},r),address:t,type:"disconnect"};return this.getEnrichedEvent(o,i)},e.prototype.generateChainChangedEvent=function(e,t,r,i){var o={properties:n({chainId:e},r),address:t,type:"chain"};return this.getEnrichedEvent(o,i)},e.prototype.generateSignatureEvent=function(e,t,r,i,o,a,s){var c={properties:n(n({status:e,chainId:t,message:i},o&&{signatureHash:o}),a),address:r,type:"signature"};return this.getEnrichedEvent(c,s)},e.prototype.generateTransactionEvent=function(e,t,r,i,o,a,s,c,u){var l={properties:n(n({status:e,chainId:t,data:i,to:o,value:a},s&&{transactionHash:s}),c),address:r,type:"transaction"};return this.getEnrichedEvent(l,u)},e.prototype.generateTrackEvent=function(e,t,r){var i={properties:n(n(n(n({},t),void 0!==(null==t?void 0:t.revenue)&&{revenue:Number(t.revenue),currency:("string"==typeof(null==t?void 0:t.currency)?t.currency:"USD").toLowerCase()}),void 0!==(null==t?void 0:t.points)&&{points:Number(t.points)}),void 0!==(null==t?void 0:t.volume)&&{volume:Number(t.volume)}),event:e,type:"track"};return this.getEnrichedEvent(i,r)},e.prototype.create=function(e,t,r){var n={};switch(e.type){case"page":n=this.generatePageEvent(e.category,e.name,e.properties,e.context);break;case"detect":n=this.generateDetectWalletEvent(e.providerName,e.rdns,e.properties,e.context);break;case"identify":n=this.generateIdentifyEvent(e.providerName,e.rdns,e.address,e.userId,e.properties,e.context);break;case"chain":n=this.generateChainChangedEvent(e.chainId,e.address,e.properties,e.context);break;case"connect":n=this.generateConnectEvent(e.chainId,e.address,e.properties,e.context);break;case"disconnect":n=this.generateDisconnectEvent(e.chainId,e.address,e.properties,e.context);break;case"signature":n=this.generateSignatureEvent(e.status,e.chainId,e.address,e.message,e.signatureHash,e.properties,e.context);break;case"transaction":n=this.generateTransactionEvent(e.status,e.chainId,e.address,e.data,e.to,e.value,e.transactionHash,e.properties,e.context);break;default:n=this.generateTrackEvent(e.event,e.properties,e.context)}return!n.address&&(n.address=t?(0,a.toChecksumAddress)(t):null),n.user_id=r||null,n},e}();t.EventFactory=y},8341:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isAvailable=function(){return"undefined"!=typeof document&&"string"==typeof document.cookie},t.prototype.set=function(e,t,r){var n=null==r?void 0:r.expires,i=null==r?void 0:r.maxAge,o=(null==r?void 0:r.path)||"/",a=null==r?void 0:r.domain,s=null==r?void 0:r.sameSite,c=(null==r?void 0:r.secure)||!1,u="".concat(encodeURIComponent(this.getKey(e)),"=").concat(encodeURIComponent(t));i?u+="; max-age="+i:n&&(u+="; expires="+n),o&&(u+="; path="+o),a&&(u+="; domain="+a),s&&(u+="; samesite="+s),c&&(u+="; secure"),document.cookie=u},t.prototype.get=function(e){var t=document.cookie.match(new RegExp("(?:^|; )".concat(encodeURIComponent(this.getKey(e)),"=([^;]*)")));return t?decodeURIComponent(t[1]):null},t.prototype.remove=function(e){document.cookie="".concat(encodeURIComponent(this.getKey(e)),"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")},t}(o(r(2200)).default);t.default=a},8568:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=void 0,i(r(7967),t),i(r(8177),t),i(r(3500),t),i(r(6898),t);var a=r(4364);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return o(a).default}})},9175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=o,t.abytes=a,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){a(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=s,t.byteSwap32=c,t.bytesToHex=function(e){if(a(e),u)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){const r=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(void 0===r||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}n[t]=16*r+o}return n},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=h,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=p,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=h(e)),a(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];a(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=y,t.createOptHasher=v,t.createXOFer=g,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const n=r(5145);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function a(e,...t){if(!i(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=s(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>s(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),l=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0"))),f={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=f._0&&e<=f._9?e-f._0:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function p(e){return"string"==typeof e&&(e=h(e)),a(e),e}function y(e){const t=t=>e().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function v(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function g(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=y,t.wrapConstructorWithOpts=v,t.wrapXOFConstructorWithOpts=g},9266:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(922),t),i(r(6185),t),i(r(4262),t),i(r(5467),t)},9615:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4229)),o=n(r(2066)),a=n(r(3961)),s=(0,i.default)((function e(t,r,n){return(0,a.default)((function(r,n,i){return(0,o.default)(n)&&(0,o.default)(i)?e(t,n,i):t(r,n,i)}),r,n)}));t.default=s},9754:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(5938),t),i(r(6503),t),i(r(5925),t),i(r(724),t),i(r(4811),t),i(r(5953),t),i(r(3113),t)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var n=r(8156);return n.FormoAnalytics})()));
3
3
  //# sourceMappingURL=index.umd.min.js.map