![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/claquemagazineawards.com/wp-content/plugins/typeform/dist/ |
(()=>{var e={3949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3196),i=function(){function e(){this.errorCount=0}return e.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*n.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT[Math.min(n.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT.length-1,this.errorCount)]+Math.round(1e3*Math.random())},e.prototype.countError=function(){this.errorCount<n.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT.length-1&&this.errorCount++},e.prototype.reset=function(){this.errorCount=0},e}();t.default=i},731: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)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(64),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.makeGetRequest=function(e,t){return a.makeGetRequest(e,t)},t.prototype.getConfigDefaults=function(){return{autoUpdate:!1}},t}(o(r(377)).default);t.default=s},64:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3196),i=r(8125).getLogger("DatafileManager");t.makeGetRequest=function(e,t){var r=new XMLHttpRequest,o=new Promise((function(o,a){r.open("GET",e,!0),function(e,t){Object.keys(e).forEach((function(r){var n=e[r];t.setRequestHeader(r,n)}))}(t,r),r.onreadystatechange=function(){if(4===r.readyState){if(0===r.status)return void a(new Error("Request error"));var e=function(e){var t=e.getAllResponseHeaders();if(null===t)return{};var r=t.split("\r\n"),n={};return r.forEach((function(e){var t=e.indexOf(": ");if(t>-1){var r=e.slice(0,t),i=e.slice(t+2);i.length>0&&(n[r]=i)}})),n}(r),t={statusCode:r.status,body:r.responseText,headers:e};o(t)}},r.timeout=n.REQUEST_TIMEOUT_MS,r.ontimeout=function(){i.error("Request timed out")},r.send()}));return{responsePromise:o,abort:function(){r.abort()}}}},3196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_UPDATE_INTERVAL=3e5,t.MIN_UPDATE_INTERVAL=1e3,t.DEFAULT_URL_TEMPLATE="https://cdn.optimizely.com/datafiles/%s.json",t.DEFAULT_AUTHENTICATED_URL_TEMPLATE="https://config.optimizely.com/datafiles/auth/%s.json",t.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT=[0,8,16,32,64,128,256,512],t.REQUEST_TIMEOUT_MS=6e4},181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.listeners={},this.listenerId=1}return e.prototype.on=function(e,t){var r=this;this.listeners[e]||(this.listeners[e]={});var n=String(this.listenerId);return this.listenerId++,this.listeners[e][n]=t,function(){r.listeners[e]&&delete r.listeners[e][n]}},e.prototype.emit=function(e,t){var r=this.listeners[e];r&&Object.keys(r).forEach((function(e){(0,r[e])(t)}))},e.prototype.removeAllListeners=function(){this.listeners={}},e}();t.default=r},377: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});var o=r(8125),a=r(7378),s=i(r(181)),u=r(3196),c=i(r(3949)),l=o.getLogger("DatafileManager");function f(e){return e>=200&&e<400}var d={get:function(){return Promise.resolve("")},set:function(){return Promise.resolve()},contains:function(){return Promise.resolve(!1)},remove:function(){return Promise.resolve()}},p=function(){function e(e){var t=this,r=n(n({},this.getConfigDefaults()),e),i=r.datafile,o=r.autoUpdate,f=void 0!==o&&o,p=r.sdkKey,h=r.updateInterval,g=void 0===h?u.DEFAULT_UPDATE_INTERVAL:h,v=r.urlTemplate,y=void 0===v?u.DEFAULT_URL_TEMPLATE:v,m=r.cache,E=void 0===m?d:m;this.cache=E,this.cacheKey="opt-datafile-"+p,this.isReadyPromiseSettled=!1,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise((function(e,r){t.readyPromiseResolver=e,t.readyPromiseRejecter=r})),i?(this.currentDatafile=i,p||this.resolveReadyPromise()):this.currentDatafile="",this.isStarted=!1,this.datafileUrl=a.sprintf(y,p),this.emitter=new s.default,this.autoUpdate=f,function(e){return e>=u.MIN_UPDATE_INTERVAL}(g)?this.updateInterval=g:(l.warn("Invalid updateInterval %s, defaulting to %s",g,u.DEFAULT_UPDATE_INTERVAL),this.updateInterval=u.DEFAULT_UPDATE_INTERVAL),this.currentTimeout=null,this.currentRequest=null,this.backoffController=new c.default,this.syncOnCurrentRequestComplete=!1}return e.prototype.get=function(){return this.currentDatafile},e.prototype.start=function(){this.isStarted||(l.debug("Datafile manager started"),this.isStarted=!0,this.backoffController.reset(),this.setDatafileFromCacheIfAvailable(),this.syncDatafile())},e.prototype.stop=function(){return l.debug("Datafile manager stopped"),this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.emitter.removeAllListeners(),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},e.prototype.onReady=function(){return this.readyPromise},e.prototype.on=function(e,t){return this.emitter.on(e,t)},e.prototype.onRequestRejected=function(e){this.isStarted&&(this.backoffController.countError(),e instanceof Error?l.error("Error fetching datafile: %s",e.message,e):"string"==typeof e?l.error("Error fetching datafile: %s",e):l.error("Error fetching datafile"))},e.prototype.onRequestResolved=function(e){if(this.isStarted){void 0!==e.statusCode&&f(e.statusCode)?this.backoffController.reset():this.backoffController.countError(),this.trySavingLastModified(e.headers);var t=this.getNextDatafileFromResponse(e);if(""!==t)if(l.info("Updating datafile from response"),this.currentDatafile=t,this.cache.set(this.cacheKey,t),this.isReadyPromiseSettled){var r={datafile:t};this.emitter.emit("update",r)}else this.resolveReadyPromise()}},e.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.isReadyPromiseSettled||this.autoUpdate||this.rejectReadyPromise(new Error("Failed to become ready")),this.autoUpdate&&this.syncOnCurrentRequestComplete&&this.syncDatafile(),this.syncOnCurrentRequestComplete=!1)},e.prototype.syncDatafile=function(){var e=this,t={};this.lastResponseLastModified&&(t["if-modified-since"]=this.lastResponseLastModified),l.debug("Making datafile request to url %s with headers: %s",this.datafileUrl,(function(){return JSON.stringify(t)})),this.currentRequest=this.makeGetRequest(this.datafileUrl,t);var r=function(){e.onRequestComplete()};this.currentRequest.responsePromise.then((function(t){e.onRequestResolved(t)}),(function(t){e.onRequestRejected(t)})).then(r,r),this.autoUpdate&&this.scheduleNextUpdate()},e.prototype.resolveReadyPromise=function(){this.readyPromiseResolver(),this.isReadyPromiseSettled=!0},e.prototype.rejectReadyPromise=function(e){this.readyPromiseRejecter(e),this.isReadyPromiseSettled=!0},e.prototype.scheduleNextUpdate=function(){var e=this,t=this.backoffController.getDelay(),r=Math.max(t,this.updateInterval);l.debug("Scheduling sync in %s ms",r),this.currentTimeout=setTimeout((function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.syncDatafile()}),r)},e.prototype.getNextDatafileFromResponse=function(e){return l.debug("Response status code: %s",e.statusCode),void 0===e.statusCode||304===e.statusCode?"":f(e.statusCode)?e.body:""},e.prototype.trySavingLastModified=function(e){var t=e["last-modified"]||e["Last-Modified"];void 0!==t&&(this.lastResponseLastModified=t,l.debug("Saved last modified header value from response: %s",this.lastResponseLastModified))},e.prototype.setDatafileFromCacheIfAvailable=function(){var e=this;this.cache.get(this.cacheKey).then((function(t){e.isStarted&&!e.isReadyPromiseSettled&&""!==t&&(l.debug("Using datafile from cache"),e.currentDatafile=t,e.resolveReadyPromise())}))},e}();t.default=p},2002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(731);t.HttpPollingDatafileManager=n.default},7473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendEventNotification=t.getQueue=t.validateAndGetBatchSize=t.validateAndGetFlushInterval=t.DEFAULT_BATCH_SIZE=t.DEFAULT_FLUSH_INTERVAL=void 0;var n=r(1459),i=r(8125),o=r(7378);t.DEFAULT_FLUSH_INTERVAL=3e4,t.DEFAULT_BATCH_SIZE=10;var a=i.getLogger("EventProcessor");t.validateAndGetFlushInterval=function(e){return e<=0&&(a.warn("Invalid flushInterval "+e+", defaulting to "+t.DEFAULT_FLUSH_INTERVAL),e=t.DEFAULT_FLUSH_INTERVAL),e},t.validateAndGetBatchSize=function(e){return(e=Math.floor(e))<1&&(a.warn("Invalid batchSize "+e+", defaulting to "+t.DEFAULT_BATCH_SIZE),e=t.DEFAULT_BATCH_SIZE),Math.max(1,e)},t.getQueue=function(e,t,r,i){return e>1?new n.DefaultEventQueue({flushInterval:t,maxQueueSize:e,sink:r,batchComparator:i}):new n.SingleEventQueue({sink:r})},t.sendEventNotification=function(e,t){e&&e.sendNotifications(o.NOTIFICATION_TYPES.LOG_EVENT,t)}},1459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultEventQueue=t.SingleEventQueue=void 0;var n=r(8125).getLogger("EventProcessor"),i=function(){function e(e){var t=e.timeout,r=e.callback;this.timeout=Math.max(t,0),this.callback=r}return e.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},e.prototype.refresh=function(){this.stop(),this.start()},e.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},e}(),o=function(){function e(e){var t=e.sink;this.sink=t}return e.prototype.start=function(){},e.prototype.stop=function(){return Promise.resolve()},e.prototype.enqueue=function(e){this.sink([e])},e}();t.SingleEventQueue=o;var a=function(){function e(e){var t=e.flushInterval,r=e.maxQueueSize,n=e.sink,o=e.batchComparator;this.buffer=[],this.maxQueueSize=Math.max(r,1),this.sink=n,this.batchComparator=o,this.timer=new i({callback:this.flush.bind(this),timeout:t}),this.started=!1}return e.prototype.start=function(){this.started=!0},e.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer);return this.buffer=[],this.timer.stop(),e},e.prototype.enqueue=function(e){if(this.started){var t=this.buffer[0];t&&!this.batchComparator(t,e)&&this.flush(),0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush()}else n.warn("Queue is stopped, not accepting event")},e.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},e}();t.DefaultEventQueue=a},1074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areEventContextsEqual=void 0,t.areEventContextsEqual=function(e,t){var r=e.context,n=t.context;return r.accountId===n.accountId&&r.projectId===n.projectId&&r.clientName===n.clientName&&r.clientVersion===n.clientVersion&&r.revision===n.revision&&r.anonymizeIP===n.anonymizeIP&&r.botFiltering===n.botFiltering}},5001:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(1074),t),i(r(4909),t),i(r(7473),t),i(r(1310),t),i(r(6896),t),i(r(7168),t),i(r(8994),t)},1310:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6896: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){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStoragePendingEventsDispatcher=t.PendingEventsDispatcher=void 0;var o=r(8125),a=r(6587),s=r(7378),u=o.getLogger("EventProcessor"),c=function(){function e(e){var t=e.eventDispatcher,r=e.store;this.dispatcher=t,this.store=r}return e.prototype.dispatchEvent=function(e,t){this.send({uuid:s.generateUUID(),timestamp:s.getTimestamp(),request:e},t)},e.prototype.sendPendingEvents=function(){var e=this,t=this.store.values();u.debug("Sending %s pending events from previous page",t.length),t.forEach((function(t){try{e.send(t,(function(){}))}catch(e){}}))},e.prototype.send=function(e,t){var r=this;this.store.set(e.uuid,e),this.dispatcher.dispatchEvent(e.request,(function(n){r.store.remove(e.uuid),t(n)}))},e}();t.PendingEventsDispatcher=c;var l=function(e){function t(t){var r=t.eventDispatcher;return e.call(this,{eventDispatcher:r,store:new a.LocalStorageStore({maxValues:100,key:"fs_optly_pending_events"})})||this}return i(t,e),t}(c);t.LocalStoragePendingEventsDispatcher=l},6587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageStore=void 0;var n=r(7378),i=r(8125).getLogger("EventProcessor"),o=function(){function e(e){var t=e.key,r=e.maxValues,n=void 0===r?1e3:r;this.LS_KEY=t,this.maxValues=n}return e.prototype.get=function(e){return this.getMap()[e]||null},e.prototype.set=function(e,t){var r=this.getMap();r[e]=t,this.replace(r)},e.prototype.remove=function(e){var t=this.getMap();delete t[e],this.replace(t)},e.prototype.values=function(){return n.objectValues(this.getMap())},e.prototype.clear=function(){this.replace({})},e.prototype.replace=function(e){try{window.localStorage&&localStorage.setItem(this.LS_KEY,JSON.stringify(e)),this.clean()}catch(e){i.error(e)}},e.prototype.clean=function(){var e=this.getMap(),t=Object.keys(e),r=t.length-this.maxValues;if(!(r<1)){var n=t.map((function(t){return{key:t,value:e[t]}}));n.sort((function(e,t){return e.value.timestamp-t.value.timestamp}));for(var i=0;i<r;i++)delete e[n[i].key];this.replace(e)}},e.prototype.getMap=function(){try{var e=window.localStorage&&localStorage.getItem(this.LS_KEY);if(e)return JSON.parse(e)||{}}catch(e){i.error(e)}return{}},e}();t.LocalStorageStore=o},522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.reqsInFlightCount=0,this.reqsCompleteResolvers=[]}return e.prototype.trackRequest=function(e){var t=this;this.reqsInFlightCount++;var r=function(){t.reqsInFlightCount--,0===t.reqsInFlightCount&&(t.reqsCompleteResolvers.forEach((function(e){return e()})),t.reqsCompleteResolvers=[])};e.then(r,r)},e.prototype.onRequestsComplete=function(){var e=this;return new Promise((function(t){0===e.reqsInFlightCount?t():e.reqsCompleteResolvers.push(t)}))},e}();t.default=r},7168:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatEvents=t.buildConversionEventV1=t.buildImpressionEventV1=t.makeBatchedEventV1=void 0;var n="$opt_bot_filtering";function i(e){var t=[],r=e[0];return e.forEach((function(e){if("conversion"===e.type||"impression"===e.type){var r=s(e);"impression"===e.type?r.snapshots.push(a(e)):"conversion"===e.type&&r.snapshots.push(o(e)),t.push(r)}})),{client_name:r.context.clientName,client_version:r.context.clientVersion,account_id:r.context.accountId,project_id:r.context.projectId,revision:r.context.revision,anonymize_ip:r.context.anonymizeIP,enrich_decisions:!0,visitors:t}}function o(e){var t=r({},e.tags);delete t.revenue,delete t.value;var n={entity_id:e.event.id,key:e.event.key,timestamp:e.timestamp,uuid:e.uuid};return e.tags&&(n.tags=e.tags),null!=e.value&&(n.value=e.value),null!=e.revenue&&(n.revenue=e.revenue),{events:[n]}}function a(e){var t,r,n=e.layer,i=e.experiment,o=e.variation,a=e.ruleKey,s=e.flagKey,u=e.ruleType,c=e.enabled,l=n?n.id:null;return{decisions:[{campaign_id:l,experiment_id:null!==(t=null==i?void 0:i.id)&&void 0!==t?t:"",variation_id:null!==(r=null==o?void 0:o.id)&&void 0!==r?r:"",metadata:{flag_key:s,rule_key:a,rule_type:u,variation_key:o?o.key:"",enabled:c}}],events:[{entity_id:l,timestamp:e.timestamp,key:"campaign_activated",uuid:e.uuid}]}}function s(e){var t={snapshots:[],visitor_id:e.user.id,attributes:[]};return e.user.attributes.forEach((function(e){t.attributes.push({entity_id:e.entityId,key:e.key,type:"custom",value:e.value})})),"boolean"==typeof e.context.botFiltering&&t.attributes.push({entity_id:n,key:n,type:"custom",value:e.context.botFiltering}),t}t.makeBatchedEventV1=i,t.buildImpressionEventV1=function(e){var t=s(e);return t.snapshots.push(a(e)),{client_name:e.context.clientName,client_version:e.context.clientVersion,account_id:e.context.accountId,project_id:e.context.projectId,revision:e.context.revision,anonymize_ip:e.context.anonymizeIP,enrich_decisions:!0,visitors:[t]}},t.buildConversionEventV1=function(e){var t=s(e);return t.snapshots.push(o(e)),{client_name:e.context.clientName,client_version:e.context.clientVersion,account_id:e.context.accountId,project_id:e.context.projectId,revision:e.context.revision,anonymize_ip:e.context.anonymizeIP,enrich_decisions:!0,visitors:[t]}},t.formatEvents=function(e){return{url:"https://logx.optimizely.com/v1/events",httpVerb:"POST",params:i(e)}}},8994:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogTierV1EventProcessor=void 0;var a=r(8125),s=r(4909),u=o(r(522)),c=r(1074),l=r(7168),f=a.getLogger("LogTierV1EventProcessor"),d=function(){function e(e){var t=e.dispatcher,r=e.flushInterval,n=void 0===r?s.DEFAULT_FLUSH_INTERVAL:r,i=e.batchSize,o=void 0===i?s.DEFAULT_BATCH_SIZE:i,a=e.notificationCenter;this.dispatcher=t,this.notificationCenter=a,this.requestTracker=new u.default,n=s.validateAndGetFlushInterval(n),o=s.validateAndGetBatchSize(o),this.queue=s.getQueue(o,n,this.drainQueue.bind(this),c.areEventContextsEqual)}return e.prototype.drainQueue=function(e){var t=this,r=new Promise((function(r){if(f.debug("draining queue with %s events",e.length),0!==e.length){var n=l.formatEvents(e);t.dispatcher.dispatchEvent(n,(function(){r()})),s.sendEventNotification(t.notificationCenter,n)}else r()}));return this.requestTracker.trackRequest(r),r},e.prototype.process=function(e){this.queue.enqueue(e)},e.prototype.stop=function(){try{return this.queue.stop(),this.requestTracker.onRequestsComplete()}catch(e){f.error('Error stopping EventProcessor: "%s"',e.message,e)}return Promise.resolve()},e.prototype.start=function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return this.queue.start(),[2]}))}))},e}();t.LogTierV1EventProcessor=d},7987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.handleError=function(e){},e}();t.NoopErrorHandler=r;var n=new r;t.setErrorHandler=function(e){n=e},t.getErrorHandler=function(){return n},t.resetErrorHandler=function(){n=new r}},8125:(e,t,r)=>{"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(7987)),n(r(9623)),n(r(6773))},6773:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n};Object.defineProperty(t,"__esModule",{value:!0});var i=r(7987),o=r(7378),a=r(9623),s={NOTSET:0,DEBUG:1,INFO:2,WARNING:3,ERROR:4};function u(e){return"string"!=typeof e?e:("WARN"===(e=e.toUpperCase())&&(e="WARNING"),s[e]?s[e]:e)}var c=function(){function e(){this.defaultLoggerFacade=new p,this.loggers={}}return e.prototype.getLogger=function(e){return e?(this.loggers[e]||(this.loggers[e]=new p({messagePrefix:e})),this.loggers[e]):this.defaultLoggerFacade},e}(),l=function(){function e(e){void 0===e&&(e={}),this.logLevel=a.LogLevel.NOTSET,void 0!==e.logLevel&&o.isValidEnum(a.LogLevel,e.logLevel)&&this.setLogLevel(e.logLevel),this.logToConsole=void 0===e.logToConsole||!!e.logToConsole,this.prefix=void 0!==e.prefix?e.prefix:"[OPTIMIZELY]"}return e.prototype.log=function(e,t){if(this.shouldLog(e)&&this.logToConsole){var r=this.prefix+" - "+this.getLogLevelName(e)+" "+this.getTime()+" "+t;this.consoleLog(e,[r])}},e.prototype.setLogLevel=function(e){e=u(e),o.isValidEnum(a.LogLevel,e)&&void 0!==e?this.logLevel=e:this.logLevel=a.LogLevel.ERROR},e.prototype.getTime=function(){return(new Date).toISOString()},e.prototype.shouldLog=function(e){return e>=this.logLevel},e.prototype.getLogLevelName=function(e){switch(e){case a.LogLevel.DEBUG:return"DEBUG";case a.LogLevel.INFO:return"INFO ";case a.LogLevel.WARNING:return"WARN ";case a.LogLevel.ERROR:return"ERROR";default:return"NOTSET"}},e.prototype.consoleLog=function(e,t){switch(e){case a.LogLevel.DEBUG:console.log.apply(console,t);break;case a.LogLevel.INFO:console.info.apply(console,t);break;case a.LogLevel.WARNING:console.warn.apply(console,t);break;case a.LogLevel.ERROR:console.error.apply(console,t);break;default:console.log.apply(console,t)}},e}();t.ConsoleLogHandler=l;var f=a.LogLevel.NOTSET,d=null,p=function(){function e(e){void 0===e&&(e={}),this.messagePrefix="",e.messagePrefix&&(this.messagePrefix=e.messagePrefix)}return e.prototype.log=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.internalLog(u(e),{message:t,splat:r})},e.prototype.info=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(a.LogLevel.INFO,e,t)},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(a.LogLevel.DEBUG,e,t)},e.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(a.LogLevel.WARNING,e,t)},e.prototype.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(a.LogLevel.ERROR,e,t)},e.prototype.format=function(e){return(this.messagePrefix?this.messagePrefix+": ":"")+o.sprintf.apply(void 0,n([e.message],e.splat))},e.prototype.internalLog=function(e,t){d&&(e<f||(d.log(e,this.format(t)),t.error&&t.error instanceof Error&&i.getErrorHandler().handleError(t.error)))},e.prototype.namedLog=function(e,t,r){var n;if(t instanceof Error)return t=(n=t).message,void this.internalLog(e,{error:n,message:t,splat:r});if(0!==r.length){var i=r[r.length-1];i instanceof Error&&(n=i,r.splice(-1)),this.internalLog(e,{message:t,error:n,splat:r})}else this.internalLog(e,{message:t,splat:r})},e}(),h=new c;t.getLogger=function(e){return h.getLogger(e)},t.setLogHandler=function(e){d=e},t.setLogLevel=function(e){e=u(e),f=o.isValidEnum(a.LogLevel,e)&&void 0!==e?e:a.LogLevel.ERROR},t.getLogLevel=function(){return f},t.resetLogger=function(){h=new c,f=a.LogLevel.NOTSET}},9623:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.LogLevel||(t.LogLevel={}))[r.NOTSET=0]="NOTSET",r[r.DEBUG=1]="DEBUG",r[r.INFO=2]="INFO",r[r.WARNING=3]="WARNING",r[r.ERROR=4]="ERROR"},7378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(9799);function o(e){return Object.keys(e).map((function(t){return e[t]}))}t.generateUUID=function(){return i.v4()},t.getTimestamp=function(){return(new Date).getTime()},t.isValidEnum=function(e,t){for(var r=!1,n=Object.keys(e),i=0;i<n.length;i++)if(t===e[n[i]]){r=!0;break}return r},t.groupBy=function(e,t){var r={};return e.forEach((function(e){var n=t(e);r[n]=r[n]||[],r[n].push(e)})),o(r)},t.objectValues=o,t.objectEntries=function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))},t.find=function(e,t){for(var r,n=0,i=e;n<i.length;n++){var o=i[n];if(t(o)){r=o;break}}return r},t.keyBy=function(e,t){var r={};return e.forEach((function(e){var n=t(e);r[n]=e})),r},t.sprintf=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=0;return e.replace(/%s/g,(function(){var e=t[n++],r=typeof e;return"function"===r?e():"string"===r?e:String(e)}))},(n=t.NOTIFICATION_TYPES||(t.NOTIFICATION_TYPES={})).ACTIVATE="ACTIVATE:experiment, user_id,attributes, variation, event",n.DECISION="DECISION:type, userId, attributes, decisionInfo",n.LOG_EVENT="LOG_EVENT:logEvent",n.OPTIMIZELY_CONFIG_UPDATE="OPTIMIZELY_CONFIG_UPDATE",n.TRACK="TRACK:event_key, user_id, attributes, event_tags, event"},9799:(e,t,r)=>{var n=r(3805),i=r(7385),o=i;o.v1=n,o.v4=i,e.exports=o},3577:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},9694:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},3805:(e,t,r)=>{var n,i,o=r(9694),a=r(3577),s=0,u=0;e.exports=function(e,t,r){var c=t&&r||0,l=t||[],f=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==d){var p=o();null==f&&(f=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=i=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(g-u)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=g,i=d;var y=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var E=0;E<6;++E)l[c+E]=f[E];return t||a(l)}},7385:(e,t,r)=>{var n=r(9694),i=r(3577);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},9889:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(8125),o=r(5001),a=n(r(9364)),s=n(r(8053)),u=r(2002),c=function(){return(c=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}).apply(this,arguments)};function l(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}var f=Math.pow(2,53);function d(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!e)return{};if("function"==typeof Object.assign)return Object.assign.apply(Object,l([e],t));for(var n=Object(e),i=0;i<t.length;i++){var o=t[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n}function p(e,t){return e?y(e,(function(e){return e[t]})):{}}function h(e){return Object.keys(e).map((function(t){return e[t]}))}function g(e){return Object.keys(e).map((function(t){return[t,e[t]]}))}function v(e,t){for(var r,n=0,i=e;n<i.length;n++){var o=i[n];if(t(o)){r=o;break}}return r}function y(e,t){var r={};return e.forEach((function(e){var n=t(e);r[n]=e})),r}function m(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=0;return e.replace(/%s/g,(function(){var e=t[n++],r=typeof e;return"function"===r?e():"string"===r?e:String(e)}))}var E,b={assign:d,currentTimestamp:function(){return Math.round((new Date).getTime())},isSafeInteger:function(e){return"number"==typeof e&&Math.abs(e)<=f},keyBy:p,uuid:function(){return a()},isNumber:function(e){return"number"==typeof e},getTimestamp:function(){return(new Date).getTime()},isValidEnum:function(e,t){for(var r=!1,n=Object.keys(e),i=0;i<n.length;i++)if(t===e[n[i]]){r=!0;break}return r},groupBy:function(e,t){var r={};return e.forEach((function(e){var n=t(e);r[n]=r[n]||[],r[n].push(e)})),h(r)},objectValues:h,objectEntries:g,find:v,keyByUtil:y,sprintf:m},_={NOTSET:0,DEBUG:1,INFO:2,WARNING:3,ERROR:4},O={CONDITION_EVALUATOR_ERROR:"%s: Error evaluating audience condition of type %s: %s",DATAFILE_AND_SDK_KEY_MISSING:"%s: You must provide at least one of sdkKey or datafile. Cannot start Optimizely",EXPERIMENT_KEY_NOT_IN_DATAFILE:"%s: Experiment key %s is not in datafile.",FEATURE_NOT_IN_DATAFILE:"%s: Feature key %s is not in datafile.",IMPROPERLY_FORMATTED_EXPERIMENT:"%s: Experiment key %s is improperly formatted.",INVALID_ATTRIBUTES:"%s: Provided attributes are in an invalid format.",INVALID_BUCKETING_ID:"%s: Unable to generate hash for bucketing ID %s: %s",INVALID_DATAFILE:"%s: Datafile is invalid - property %s: %s",INVALID_DATAFILE_MALFORMED:"%s: Datafile is invalid because it is malformed.",INVALID_CONFIG:"%s: Provided Optimizely config is in an invalid format.",INVALID_JSON:"%s: JSON object is not valid.",INVALID_ERROR_HANDLER:'%s: Provided "errorHandler" is in an invalid format.',INVALID_EVENT_DISPATCHER:'%s: Provided "eventDispatcher" is in an invalid format.',INVALID_EVENT_TAGS:"%s: Provided event tags are in an invalid format.",INVALID_EXPERIMENT_KEY:"%s: Experiment key %s is not in datafile. It is either invalid, paused, or archived.",INVALID_EXPERIMENT_ID:"%s: Experiment ID %s is not in datafile.",INVALID_GROUP_ID:"%s: Group ID %s is not in datafile.",INVALID_LOGGER:'%s: Provided "logger" is in an invalid format.',INVALID_ROLLOUT_ID:"%s: Invalid rollout ID %s attached to feature %s",INVALID_USER_ID:"%s: Provided user ID is in an invalid format.",INVALID_USER_PROFILE_SERVICE:"%s: Provided user profile service instance is in an invalid format: %s.",NO_DATAFILE_SPECIFIED:"%s: No datafile specified. Cannot start optimizely.",NO_JSON_PROVIDED:"%s: No JSON object to validate against schema.",NO_VARIATION_FOR_EXPERIMENT_KEY:"%s: No variation key %s defined in datafile for experiment %s.",UNDEFINED_ATTRIBUTE:"%s: Provided attribute: %s has an undefined value.",UNRECOGNIZED_ATTRIBUTE:"%s: Unrecognized attribute %s provided. Pruning before sending event to Optimizely.",UNABLE_TO_CAST_VALUE:"%s: Unable to cast value %s to type %s, returning null.",USER_NOT_IN_FORCED_VARIATION:"%s: User %s is not in the forced variation map. Cannot remove their forced variation.",USER_PROFILE_LOOKUP_ERROR:'%s: Error while looking up user profile for user ID "%s": %s.',USER_PROFILE_SAVE_ERROR:'%s: Error while saving user profile for user ID "%s": %s.',VARIABLE_KEY_NOT_IN_DATAFILE:'%s: Variable with key "%s" associated with feature with key "%s" is not in datafile.',VARIATION_ID_NOT_IN_DATAFILE:"%s: No variation ID %s defined in datafile for experiment %s.",VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT:"%s: Variation ID %s is not in the datafile.",INVALID_INPUT_FORMAT:"%s: Provided %s is in an invalid format.",INVALID_DATAFILE_VERSION:"%s: This version of the JavaScript SDK does not support the given datafile version: %s",INVALID_VARIATION_KEY:"%s: Provided variation key is in an invalid format."},I={ACTIVATE_USER:"%s: Activating user %s in experiment %s.",DISPATCH_CONVERSION_EVENT:"%s: Dispatching conversion event to URL %s with params %s.",DISPATCH_IMPRESSION_EVENT:"%s: Dispatching impression event to URL %s with params %s.",DEPRECATED_EVENT_VALUE:"%s: Event value is deprecated in %s call.",EVENT_KEY_NOT_FOUND:"%s: Event key %s is not in datafile.",EXPERIMENT_NOT_RUNNING:"%s: Experiment %s is not running.",FEATURE_ENABLED_FOR_USER:"%s: Feature %s is enabled for user %s.",FEATURE_NOT_ENABLED_FOR_USER:"%s: Feature %s is not enabled for user %s.",FEATURE_HAS_NO_EXPERIMENTS:"%s: Feature %s is not attached to any experiments.",FAILED_TO_PARSE_VALUE:'%s: Failed to parse event value "%s" from event tags.',FAILED_TO_PARSE_REVENUE:'%s: Failed to parse revenue value "%s" from event tags.',FORCED_BUCKETING_FAILED:"%s: Variation key %s is not in datafile. Not activating user %s.",INVALID_OBJECT:"%s: Optimizely object is not valid. Failing %s.",INVALID_CLIENT_ENGINE:"%s: Invalid client engine passed: %s. Defaulting to node-sdk.",INVALID_DEFAULT_DECIDE_OPTIONS:"%s: Provided default decide options is not an array.",INVALID_DECIDE_OPTIONS:"%s: Provided decide options is not an array. Using default decide options.",INVALID_VARIATION_ID:"%s: Bucketed into an invalid variation ID. Returning null.",NOTIFICATION_LISTENER_EXCEPTION:"%s: Notification listener for (%s) threw exception: %s",NO_ROLLOUT_EXISTS:"%s: There is no rollout of feature %s.",NOT_ACTIVATING_USER:"%s: Not activating user %s for experiment %s.",NOT_TRACKING_USER:"%s: Not tracking user %s.",PARSED_REVENUE_VALUE:'%s: Parsed revenue value "%s" from event tags.',PARSED_NUMERIC_VALUE:'%s: Parsed event value "%s" from event tags.',RETURNING_STORED_VARIATION:'%s: Returning previously activated variation "%s" of experiment "%s" for user "%s" from user profile.',ROLLOUT_HAS_NO_EXPERIMENTS:"%s: Rollout of feature %s has no experiments",SAVED_VARIATION:'%s: Saved variation "%s" of experiment "%s" for user "%s".',SAVED_VARIATION_NOT_FOUND:"%s: User %s was previously bucketed into variation with ID %s for experiment %s, but no matching variation was found.",SHOULD_NOT_DISPATCH_ACTIVATE:'%s: Experiment %s is not in "Running" state. Not activating user.',SKIPPING_JSON_VALIDATION:"%s: Skipping JSON schema validation.",TRACK_EVENT:"%s: Tracking event %s for user %s.",UNRECOGNIZED_DECIDE_OPTION:"%s: Unrecognized decide option %s provided.",USER_ASSIGNED_TO_EXPERIMENT_BUCKET:"%s: Assigned bucket %s to user with bucketing ID %s.",USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP:"%s: User %s is in experiment %s of group %s.",USER_BUCKETED_INTO_TARGETING_RULE:"%s: User %s bucketed into targeting rule %s.",USER_IN_FEATURE_EXPERIMENT:"%s: User %s is in variation %s of experiment %s on the feature %s.",USER_IN_ROLLOUT:"%s: User %s is in rollout of feature %s.",USER_NOT_BUCKETED_INTO_EVERYONE_TARGETING_RULE:"%s: User %s not bucketed into everyone targeting rule due to traffic allocation.",USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP:"%s: User %s is not in experiment %s of group %s.",USER_NOT_BUCKETED_INTO_ANY_EXPERIMENT_IN_GROUP:"%s: User %s is not in any experiment of group %s.",USER_NOT_BUCKETED_INTO_TARGETING_RULE:"%s User %s not bucketed into targeting rule %s due to traffic allocation. Trying everyone rule.",USER_NOT_IN_FEATURE_EXPERIMENT:"%s: User %s is not in any experiment on the feature %s.",USER_NOT_IN_ROLLOUT:"%s: User %s is not in rollout of feature %s.",USER_FORCED_IN_VARIATION:"%s: User %s is forced in variation %s.",USER_MAPPED_TO_FORCED_VARIATION:"%s: Set variation %s for experiment %s and user %s in the forced variation map.",USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE:"%s: User %s does not meet conditions for targeting rule %s.",USER_MEETS_CONDITIONS_FOR_TARGETING_RULE:"%s: User %s meets conditions for targeting rule %s.",USER_HAS_VARIATION:"%s: User %s is in variation %s of experiment %s.",USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED:"Variation (%s) is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED:"Variation (%s) is mapped to flag (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID:"Invalid variation is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID:"Invalid variation is mapped to flag (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_VARIATION:"%s: Variation %s is mapped to experiment %s and user %s in the forced variation map.",USER_HAS_NO_VARIATION:"%s: User %s is in no variation of experiment %s.",USER_HAS_NO_FORCED_VARIATION:"%s: User %s is not in the forced variation map.",USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT:"%s: No experiment %s mapped to user %s in the forced variation map.",USER_NOT_IN_ANY_EXPERIMENT:"%s: User %s is not in any experiment of group %s.",USER_NOT_IN_EXPERIMENT:"%s: User %s does not meet conditions to be in experiment %s.",USER_RECEIVED_DEFAULT_VARIABLE_VALUE:'%s: User "%s" is not in any variation or rollout rule. Returning default value for variable "%s" of feature flag "%s".',FEATURE_NOT_ENABLED_RETURN_DEFAULT_VARIABLE_VALUE:'%s: Feature "%s" is not enabled for user %s. Returning the default variable value "%s".',VARIABLE_NOT_USED_RETURN_DEFAULT_VARIABLE_VALUE:'%s: Variable "%s" is not used in variation "%s". Returning default value.',USER_RECEIVED_VARIABLE_VALUE:'%s: Got variable value "%s" for variable "%s" of feature flag "%s"',VALID_DATAFILE:"%s: Datafile is valid.",VALID_USER_PROFILE_SERVICE:"%s: Valid user profile service provided.",VARIATION_REMOVED_FOR_USER:"%s: Variation mapped to experiment %s has been removed for user %s.",VARIABLE_REQUESTED_WITH_WRONG_TYPE:'%s: Requested variable type "%s", but variable is of type "%s". Use correct API to retrieve value. Returning None.',VALID_BUCKETING_ID:'%s: BucketingId is valid: "%s"',BUCKETING_ID_NOT_STRING:"%s: BucketingID attribute is not a string. Defaulted to userId",EVALUATING_AUDIENCE:'%s: Starting to evaluate audience "%s" with conditions: %s.',EVALUATING_AUDIENCES_COMBINED:'%s: Evaluating audiences for %s "%s": %s.',AUDIENCE_EVALUATION_RESULT:'%s: Audience "%s" evaluated to %s.',AUDIENCE_EVALUATION_RESULT_COMBINED:"%s: Audiences for %s %s collectively evaluated to %s.",MISSING_ATTRIBUTE_VALUE:'%s: Audience condition %s evaluated to UNKNOWN because no value was passed for user attribute "%s".',UNEXPECTED_CONDITION_VALUE:"%s: Audience condition %s evaluated to UNKNOWN because the condition value is not supported.",UNEXPECTED_TYPE:'%s: Audience condition %s evaluated to UNKNOWN because a value of type "%s" was passed for user attribute "%s".',UNEXPECTED_TYPE_NULL:'%s: Audience condition %s evaluated to UNKNOWN because a null value was passed for user attribute "%s".',UNKNOWN_CONDITION_TYPE:"%s: Audience condition %s has an unknown condition type. You may need to upgrade to a newer release of the Optimizely SDK.",UNKNOWN_MATCH_TYPE:"%s: Audience condition %s uses an unknown match type. You may need to upgrade to a newer release of the Optimizely SDK.",UPDATED_OPTIMIZELY_CONFIG:"%s: Updated Optimizely config to revision %s (project id %s)",OUT_OF_BOUNDS:'%s: Audience condition %s evaluated to UNKNOWN because the number value for user attribute "%s" is not in the range [-2^53, +2^53].',UNABLE_TO_ATTACH_UNLOAD:'%s: unable to bind optimizely.close() to page unload event: "%s"'},T={BOT_FILTERING:"$opt_bot_filtering",BUCKETING_ID:"$opt_bucketing_id",STICKY_BUCKETING_KEY:"$opt_experiment_bucket_map",USER_AGENT:"$opt_user_agent",FORCED_DECISION_NULL_RULE_KEY:"$opt_null_rule_key"},S={AB_TEST:"ab-test",FEATURE:"feature",FEATURE_TEST:"feature-test",FEATURE_VARIABLE:"feature-variable",ALL_FEATURE_VARIABLES:"all-feature-variables",FLAG:"flag"},w={FEATURE_TEST:"feature-test",ROLLOUT:"rollout",EXPERIMENT:"experiment"},R={RULE:"rule",EXPERIMENT:"experiment"},x={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string",JSON:"json"},A={V2:"2",V3:"3",V4:"4"},N={SDK_NOT_READY:"Optimizely SDK not configured properly yet.",FLAG_KEY_INVALID:'No flag was found for key "%s".',VARIABLE_VALUE_INVALID:'Variable value for key "%s" is invalid or wrong type.'};!function(e){e.ACTIVATE="ACTIVATE:experiment, user_id,attributes, variation, event",e.DECISION="DECISION:type, userId, attributes, decisionInfo",e.LOG_EVENT="LOG_EVENT:logEvent",e.OPTIMIZELY_CONFIG_UPDATE="OPTIMIZELY_CONFIG_UPDATE",e.TRACK="TRACK:event_key, user_id, attributes, event_tags, event"}(E||(E={}));var C=Object.freeze({__proto__:null,LOG_LEVEL:_,ERROR_MESSAGES:O,LOG_MESSAGES:I,CONTROL_ATTRIBUTES:T,JAVASCRIPT_CLIENT_ENGINE:"javascript-sdk",NODE_CLIENT_ENGINE:"node-sdk",REACT_CLIENT_ENGINE:"react-sdk",REACT_NATIVE_CLIENT_ENGINE:"react-native-sdk",REACT_NATIVE_JS_CLIENT_ENGINE:"react-native-js-sdk",NODE_CLIENT_VERSION:"4.9.2",DECISION_NOTIFICATION_TYPES:S,DECISION_SOURCES:w,AUDIENCE_EVALUATION_TYPES:R,FEATURE_VARIABLE_TYPES:x,DATAFILE_VERSIONS:A,DECISION_MESSAGES:N,get NOTIFICATION_TYPES(){return E}}),P="CONFIG_VALIDATOR",k=[A.V2,A.V3,A.V4],D={handleError:function(){}},L={dispatchEvent:function(e,t){var r,n=e.params,i=e.url;"POST"===e.httpVerb?((r=new XMLHttpRequest).open("POST",i,!0),r.setRequestHeader("Content-Type","application/json"),r.onreadystatechange=function(){if(4===r.readyState&&t&&"function"==typeof t)try{t({statusCode:r.status})}catch(e){}},r.send(JSON.stringify(n))):(i+="?wxhr=true",n&&(i+="&"+function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}(n)),(r=new XMLHttpRequest).open("GET",i,!0),r.onreadystatechange=function(){if(4===r.readyState&&t&&"function"==typeof t)try{t({statusCode:r.status})}catch(e){}},r.send())}},j=function(){function e(){}return e.prototype.log=function(){},e}();function M(e){return new i.ConsoleLogHandler(e)}var U,F,V=Object.freeze({__proto__:null,NoOpLogger:j,createLogger:M,createNoOpLogger:function(){return new j}});function B(e,t,r){return{variationKey:null,enabled:!1,variables:{},ruleKey:null,flagKey:e,userContext:t,reasons:r}}!function(e){e.BOOLEAN="boolean",e.DOUBLE="double",e.INTEGER="integer",e.STRING="string",e.JSON="json"}(U||(U={})),(F=t.OptimizelyDecideOption||(t.OptimizelyDecideOption={})).DISABLE_DECISION_EVENT="DISABLE_DECISION_EVENT",F.ENABLED_FLAGS_ONLY="ENABLED_FLAGS_ONLY",F.IGNORE_USER_PROFILE_SERVICE="IGNORE_USER_PROFILE_SERVICE",F.INCLUDE_REASONS="INCLUDE_REASONS",F.EXCLUDE_VARIABLES="EXCLUDE_VARIABLES";var G=function(){function e(e){var t,r=e.optimizely,n=e.userId,i=e.attributes;this.optimizely=r,this.userId=n,this.attributes=null!==(t=c({},i))&&void 0!==t?t:{},this.forcedDecisionsMap={}}return e.prototype.setAttribute=function(e,t){this.attributes[e]=t},e.prototype.getUserId=function(){return this.userId},e.prototype.getAttributes=function(){return c({},this.attributes)},e.prototype.getOptimizely=function(){return this.optimizely},e.prototype.decide=function(e,t){return void 0===t&&(t=[]),this.optimizely.decide(this.cloneUserContext(),e,t)},e.prototype.decideForKeys=function(e,t){return void 0===t&&(t=[]),this.optimizely.decideForKeys(this.cloneUserContext(),e,t)},e.prototype.decideAll=function(e){return void 0===e&&(e=[]),this.optimizely.decideAll(this.cloneUserContext(),e)},e.prototype.trackEvent=function(e,t){this.optimizely.track(e,this.userId,this.attributes,t)},e.prototype.setForcedDecision=function(e,t){var r,n=e.flagKey,i=null!==(r=e.ruleKey)&&void 0!==r?r:T.FORCED_DECISION_NULL_RULE_KEY,o={variationKey:t.variationKey};return this.forcedDecisionsMap[n]||(this.forcedDecisionsMap[n]={}),this.forcedDecisionsMap[n][i]=o,!0},e.prototype.getForcedDecision=function(e){return this.findForcedDecision(e)},e.prototype.removeForcedDecision=function(e){var t,r=null!==(t=e.ruleKey)&&void 0!==t?t:T.FORCED_DECISION_NULL_RULE_KEY,n=e.flagKey,i=!1;return this.forcedDecisionsMap.hasOwnProperty(n)&&(this.forcedDecisionsMap[n].hasOwnProperty(r)&&(delete this.forcedDecisionsMap[n][r],i=!0),0===Object.keys(this.forcedDecisionsMap[n]).length&&delete this.forcedDecisionsMap[n]),i},e.prototype.removeAllForcedDecisions=function(){return this.forcedDecisionsMap={},!0},e.prototype.findForcedDecision=function(e){var t,r=null!==(t=e.ruleKey)&&void 0!==t?t:T.FORCED_DECISION_NULL_RULE_KEY,n=e.flagKey;if(this.forcedDecisionsMap.hasOwnProperty(e.flagKey)){var i=this.forcedDecisionsMap[n];if(i.hasOwnProperty(r))return{variationKey:i[r].variationKey}}return null},e.prototype.cloneUserContext=function(){var t=new e({optimizely:this.getOptimizely(),userId:this.getUserId(),attributes:this.getAttributes()});return Object.keys(this.forcedDecisionsMap).length>0&&(t.forcedDecisionsMap=c({},this.forcedDecisionsMap)),t},e}(),K=["and","or","not"];function z(e,t){if(Array.isArray(e)){var r=e[0],n=e.slice(1);switch("string"==typeof r&&-1===K.indexOf(r)&&(r="or",n=e),r){case"and":return function(e,t){var r=!1;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var i=z(e[n],t);if(!1===i)return!1;null===i&&(r=!0)}return!r||null}return null}(n,t);case"not":return function(e,t){if(Array.isArray(e)&&e.length>0){var r=z(e[0],t);return null===r?null:!r}return null}(n,t);default:return function(e,t){var r=!1;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var i=z(e[n],t);if(!0===i)return!0;null===i&&(r=!0)}return!!r&&null}return null}(n,t)}}return t(e)}var H=function(){function e(t,r){var n,i;this.sdkKey=null!==(n=t.sdkKey)&&void 0!==n?n:"",this.environmentKey=null!==(i=t.environmentKey)&&void 0!==i?i:"",this.attributes=t.attributes,this.audiences=e.getAudiences(t),this.events=t.events,this.revision=t.revision;var o=(t.featureFlags||[]).reduce((function(e,t){return e[t.id]=t.variables,e}),{}),a=e.getExperimentsMapById(t,o);this.experimentsMap=e.getExperimentsKeyMap(a),this.featuresMap=e.getFeaturesMap(t,o,a),this.datafile=r}return e.prototype.getDatafile=function(){return this.datafile},e.getAudiences=function(e){var t=[],r=[];return(e.typedAudiences||[]).forEach((function(e){t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name}),r.push(e.id)})),(e.audiences||[]).forEach((function(e){-1===r.indexOf(e.id)&&"$opt_dummy_audience"!=e.id&&t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name})})),t},e.getSerializedAudiences=function(t,r){var n="";if(t){var i="";t.forEach((function(t){var o="";if(t instanceof Array)o="("+(o=e.getSerializedAudiences(t,r))+")";else if(K.indexOf(t)>-1)i=t.toUpperCase();else{var a=r[t]?r[t].name:t;n||"NOT"===i?(i=""===i?"OR":i,n=""===n?i+' "'+r[t].name+'"':n.concat(" "+i+' "'+a+'"')):n='"'+a+'"'}""!==o&&(""!==n||"NOT"===i?(i=""===i?"OR":i,n=""===n?i+" "+o:n.concat(" "+i+" "+o)):n=n.concat(o))}))}return n},e.getExperimentAudiences=function(t,r){return t.audienceConditions?e.getSerializedAudiences(t.audienceConditions,r.audiencesById):""},e.mergeFeatureVariables=function(e,t,r,n,i){var o=(e[r]||[]).reduce((function(e,t){return e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e}),{});return(n||[]).forEach((function(e){var r=t[e.id],n={id:e.id,key:r.key,type:r.type,value:i?e.value:r.defaultValue};o[r.key]=n})),o},e.getVariationsMap=function(t,r,n,i){return t.reduce((function(t,o){var a=e.mergeFeatureVariables(r,n,i,o.variables,o.featureEnabled);return t[o.key]={id:o.id,key:o.key,featureEnabled:o.featureEnabled,variablesMap:a},t}),{})},e.getVariableIdMap=function(e){return(e.featureFlags||[]).reduce((function(e,t){return t.variables.forEach((function(t){e[t.id]=t})),e}),{})},e.getDeliveryRules=function(t,r,n,i){var o=e.getVariableIdMap(t);return i.map((function(i){return{id:i.id,key:i.key,audiences:e.getExperimentAudiences(i,t),variationsMap:e.getVariationsMap(i.variations,r,o,n)}}))},e.getRolloutExperimentIds=function(e){var t=[];return(e||[]).forEach((function(e){e.experiments.forEach((function(e){t.push(e.id)}))})),t},e.getExperimentsMapById=function(t,r){var n=e.getVariableIdMap(t),i=this.getRolloutExperimentIds(t.rollouts);return(t.experiments||[]).reduce((function(o,a){if(-1===i.indexOf(a.id)){var s=t.experimentFeatureMap[a.id],u="";s&&s.length>0&&(u=s[0]);var c=e.getVariationsMap(a.variations,r,n,u.toString());o[a.id]={id:a.id,key:a.key,audiences:e.getExperimentAudiences(a,t),variationsMap:c}}return o}),{})},e.getExperimentsKeyMap=function(e){var t={};for(var r in e){var n=e[r];t[n.key]=n}return t},e.getFeaturesMap=function(t,r,n){var i={};return t.featureFlags.forEach((function(o){var a={},s=[];o.experimentIds.forEach((function(e){var t=n[e];t&&(a[t.key]=t),s.push(n[e])}));var u=(o.variables||[]).reduce((function(e,t){return e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e}),{}),c=[],l=t.rolloutIdMap[o.rolloutId];l&&(c=e.getDeliveryRules(t,r,o.id,l.experiments)),i[o.key]={id:o.id,key:o.key,experimentRules:s,deliveryRules:c,experimentsMap:a,variablesMap:u}})),i},e}(),Y="PROJECT_CONFIG",W=function(e,t){void 0===t&&(t=null);var r,n,i,o,a=((o=d({},r=e)).audiences=(r.audiences||[]).map((function(e){return d({},e)})),o.experiments=(r.experiments||[]).map((function(e){return d({},e)})),o.featureFlags=(r.featureFlags||[]).map((function(e){return d({},e)})),o.groups=(r.groups||[]).map((function(e){var t=d({},e);return t.experiments=(e.experiments||[]).map((function(e){return d({},e)})),t})),o.rollouts=(r.rollouts||[]).map((function(e){var t=d({},e);return t.experiments=(e.experiments||[]).map((function(e){return d({},e)})),t})),o.environmentKey=null!==(n=r.environmentKey)&&void 0!==n?n:"",o.sdkKey=null!==(i=r.sdkKey)&&void 0!==i?i:"",o);return a.__datafileStr=null===t?JSON.stringify(e):t,(a.audiences||[]).forEach((function(e){e.conditions=JSON.parse(e.conditions)})),a.audiencesById=p(a.audiences,"id"),d(a.audiencesById,p(a.typedAudiences,"id")),a.attributeKeyMap=p(a.attributes,"key"),a.eventKeyMap=p(a.events,"key"),a.groupIdMap=p(a.groups,"id"),Object.keys(a.groupIdMap||{}).forEach((function(e){(a.groupIdMap[e].experiments||[]).forEach((function(t){a.experiments.push(d(t,{groupId:e}))}))})),a.rolloutIdMap=p(a.rollouts||[],"id"),h(a.rolloutIdMap||{}).forEach((function(e){(e.experiments||[]).forEach((function(e){a.experiments.push(e),e.variationKeyMap=p(e.variations,"key")}))})),a.experimentKeyMap=p(a.experiments,"key"),a.experimentIdMap=p(a.experiments,"id"),a.variationIdMap={},a.variationVariableUsageMap={},(a.experiments||[]).forEach((function(e){e.variationKeyMap=p(e.variations,"key"),d(a.variationIdMap,p(e.variations,"id")),h(e.variationKeyMap||{}).forEach((function(e){e.variables&&(a.variationVariableUsageMap[e.id]=p(e.variables,"id"))}))})),a.experimentFeatureMap={},a.featureKeyMap=p(a.featureFlags||[],"key"),h(a.featureKeyMap||{}).forEach((function(e){e.variables.forEach((function(e){e.type===x.STRING&&e.subType===x.JSON&&(e.type=x.JSON,delete e.subType)})),e.variableKeyMap=p(e.variables,"key"),(e.experimentIds||[]).forEach((function(t){a.experimentFeatureMap[t]?a.experimentFeatureMap[t].push(e.id):a.experimentFeatureMap[t]=[e.id]}))})),a.flagRulesMap={},(a.featureFlags||[]).forEach((function(e){var t=[];e.experimentIds.forEach((function(e){var r=a.experimentIdMap[e];r&&t.push(r)}));var r=a.rolloutIdMap[e.rolloutId];r&&t.push.apply(t,r.experiments),a.flagRulesMap[e.key]=t})),a.flagVariationsMap={},g(a.flagRulesMap||{}).forEach((function(e){var t=e[0],r=e[1],n=[];r.forEach((function(e){e.variations.forEach((function(e){v(n,(function(t){return t.id===e.id}))||n.push(e)}))})),a.flagVariationsMap[t]=n})),a},q=function(e,t){var r=e.experimentIdMap[t];if(!r)throw new Error(m(O.INVALID_EXPERIMENT_ID,Y,t));return r.layerId},Z=function(e,t,r){var n=e.attributeKeyMap[t],i=0===t.indexOf("$opt_");return n?(i&&r.log(_.WARNING,"Attribute %s unexpectedly has reserved prefix %s; using attribute ID instead of reserved attribute name.",t,"$opt_"),n.id):i?t:(r.log(_.DEBUG,O.UNRECOGNIZED_ATTRIBUTE,Y,t),null)},$=function(e,t){var r=e.eventKeyMap[t];return r?r.id:null},X=function(e,t){var r=e.experimentKeyMap[t];if(!r)throw new Error(m(O.INVALID_EXPERIMENT_KEY,Y,t));return r.status},J=function(e,t){return e.variationIdMap.hasOwnProperty(t)?e.variationIdMap[t].key:null},Q=function(e,t){if(e.experimentKeyMap.hasOwnProperty(t)){var r=e.experimentKeyMap[t];if(r)return r}throw new Error(m(O.EXPERIMENT_KEY_NOT_IN_DATAFILE,Y,t))},ee=function(e,t){var r=e.experimentIdMap[t];if(!r)throw new Error(m(O.INVALID_EXPERIMENT_ID,Y,t));return r.trafficAllocation},te=function(e,t,r){if(e.experimentIdMap.hasOwnProperty(t)){var n=e.experimentIdMap[t];if(n)return n}return r.log(_.ERROR,O.INVALID_EXPERIMENT_ID,Y,t),null},re=function(e,t,r){if(!e)return null;var n=v(e.flagVariationsMap[t],(function(e){return e.key===r}));return n||null},ne=function(e,t,r){if(e.featureKeyMap.hasOwnProperty(t)){var n=e.featureKeyMap[t];if(n)return n}return r.log(_.ERROR,O.FEATURE_NOT_IN_DATAFILE,Y,t),null},ie=function(e){return e.__datafileStr},oe=function(e){var t;try{t=function(e){if(!e)throw new Error(m(O.NO_DATAFILE_SPECIFIED,P));if("string"==typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(m(O.INVALID_DATAFILE_MALFORMED,P))}if("object"==typeof e&&!Array.isArray(e)&&null!==e&&-1===k.indexOf(e.version))throw new Error(m(O.INVALID_DATAFILE_VERSION,P,e.version));return e}(e.datafile)}catch(e){return{configObj:null,error:e}}if(e.jsonSchemaValidator)try{e.jsonSchemaValidator.validate(t),e.logger.log(_.INFO,I.VALID_DATAFILE,Y)}catch(e){return{configObj:null,error:e}}else e.logger.log(_.INFO,I.SKIPPING_JSON_VALIDATION,Y);var r=[t];return"string"==typeof e.datafile&&r.push(e.datafile),{configObj:W.apply(void 0,r),error:null}},ae=function(e){return!!e.sendFlagDecisions},se=i.getLogger();function ue(e,t){return e instanceof Error?e.message:t||"Unknown error"}var ce=function(){function e(e){this.updateListeners=[],this.configObj=null,this.optimizelyConfigObj=null,this.datafileManager=null;try{if(this.jsonSchemaValidator=e.jsonSchemaValidator,!e.datafile&&!e.sdkKey){var t=new Error(m(O.DATAFILE_AND_SDK_KEY_MISSING,"PROJECT_CONFIG_MANAGER"));return this.readyPromise=Promise.resolve({success:!1,reason:ue(t)}),void se.error(t)}var r=null;e.datafile&&(r=this.handleNewDatafile(e.datafile)),e.sdkKey&&e.datafileManager?(this.datafileManager=e.datafileManager,this.datafileManager.start(),this.readyPromise=this.datafileManager.onReady().then(this.onDatafileManagerReadyFulfill.bind(this),this.onDatafileManagerReadyReject.bind(this)),this.datafileManager.on("update",this.onDatafileManagerUpdate.bind(this))):this.configObj?this.readyPromise=Promise.resolve({success:!0}):this.readyPromise=Promise.resolve({success:!1,reason:ue(r,"Invalid datafile")})}catch(e){se.error(e),this.readyPromise=Promise.resolve({success:!1,reason:ue(e,"Error in initialize")})}}return e.prototype.onDatafileManagerReadyFulfill=function(){if(this.datafileManager){var e=this.handleNewDatafile(this.datafileManager.get());return e?{success:!1,reason:ue(e)}:{success:!0}}return{success:!1,reason:ue(null,"Datafile manager is not provided")}},e.prototype.onDatafileManagerReadyReject=function(e){return{success:!1,reason:ue(e,"Failed to become ready")}},e.prototype.onDatafileManagerUpdate=function(){this.datafileManager&&this.handleNewDatafile(this.datafileManager.get())},e.prototype.handleNewDatafile=function(e){var t=oe({datafile:e,jsonSchemaValidator:this.jsonSchemaValidator,logger:se}),r=t.configObj,n=t.error;if(n)se.error(n);else{var i=this.configObj?this.configObj.revision:"null";r&&i!==r.revision&&(this.configObj=r,this.optimizelyConfigObj=null,this.updateListeners.forEach((function(e){return e(r)})))}return n},e.prototype.getConfig=function(){return this.configObj},e.prototype.getOptimizelyConfig=function(){var e,t;return!this.optimizelyConfigObj&&this.configObj&&(this.optimizelyConfigObj=(e=this.configObj,t=ie(this.configObj),new H(e,t))),this.optimizelyConfigObj},e.prototype.onReady=function(){return this.readyPromise},e.prototype.onUpdate=function(e){var t=this;return this.updateListeners.push(e),function(){var r=t.updateListeners.indexOf(e);r>-1&&t.updateListeners.splice(r,1)}},e.prototype.stop=function(){this.datafileManager&&this.datafileManager.stop(),this.updateListeners=[]},e}(),le=Math.pow(2,32),fe=function(e){var t=[],r=e.experimentIdMap[e.experimentId].groupId;if(r){var n=e.groupIdMap[r];if(!n)throw new Error(m(O.INVALID_GROUP_ID,"BUCKETER",r));if("random"===n.policy){var i=de(n,e.bucketingId,e.userId,e.logger);if(null===i)return e.logger.log(_.INFO,I.USER_NOT_IN_ANY_EXPERIMENT,"BUCKETER",e.userId,r),t.push([I.USER_NOT_IN_ANY_EXPERIMENT,"BUCKETER",e.userId,r]),{result:null,reasons:t};if(i!==e.experimentId)return e.logger.log(_.INFO,I.USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,r),t.push([I.USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,r]),{result:null,reasons:t};e.logger.log(_.INFO,I.USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,r),t.push([I.USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,r])}}var o=""+e.bucketingId+e.experimentId,a=he(o);e.logger.log(_.DEBUG,I.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,"BUCKETER",a,e.userId),t.push([I.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,"BUCKETER",a,e.userId]);var s=pe(a,e.trafficAllocationConfig);return null===s||e.variationIdMap[s]?{result:s,reasons:t}:(s&&(e.logger.log(_.WARNING,I.INVALID_VARIATION_ID,"BUCKETER"),t.push([I.INVALID_VARIATION_ID,"BUCKETER"])),{result:null,reasons:t})},de=function(e,t,r,n){var i=""+t+e.id,o=he(i);n.log(_.DEBUG,I.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,"BUCKETER",o,r);var a=e.trafficAllocation;return pe(o,a)},pe=function(e,t){for(var r=0;r<t.length;r++)if(e<t[r].endOfRange)return t[r].entityId;return null},he=function(e){try{var t=s.v3(e,1)/le;return Math.floor(1e4*t)}catch(t){throw new Error(m(O.INVALID_BUCKETING_ID,"BUCKETER",e,t.message))}},ge=i.getLogger();function ve(e){return/^\d+$/.test(e)}function ye(e){var t=e.indexOf("-"),r=e.indexOf("+");return!(t<0)&&(r<0||t<r)}function me(e){var t=e.indexOf("-"),r=e.indexOf("+");return!(r<0)&&(t<0||r<t)}function Ee(e){var t=e,r="";if(function(e){return/\s/.test(e)}(e))return ge.warn(I.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;if(ye(e)?(t=e.substring(0,e.indexOf("-")),r=e.substring(e.indexOf("-")+1)):me(e)&&(t=e.substring(0,e.indexOf("+")),r=e.substring(e.indexOf("+")+1)),"string"!=typeof t||"string"!=typeof r)return null;var n=t.split(".").length-1;if(n>2)return ge.warn(I.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;var i=t.split(".");if(i.length!=n+1)return ge.warn(I.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;for(var o=0,a=i;o<a.length;o++)if(!ve(a[o]))return ge.warn(I.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;return r&&i.push(r),i}var be="CUSTOM_ATTRIBUTE_CONDITION_EVALUATOR",_e=i.getLogger(),Oe=["exact","exists","gt","ge","lt","le","substring","semver_eq","semver_lt","semver_le","semver_gt","semver_ge"],Ie={};function Te(e){return"string"==typeof e||"boolean"==typeof e||b.isNumber(e)}function Se(e,t){var r=e.value,n=typeof r,i=e.name,o=t[i],a=typeof o;return!Te(r)||b.isNumber(r)&&!b.isSafeInteger(r)?(_e.warn(I.UNEXPECTED_CONDITION_VALUE,be,JSON.stringify(e)),null):null===o?(_e.debug(I.UNEXPECTED_TYPE_NULL,be,JSON.stringify(e),i),null):Te(o)&&n===a?b.isNumber(o)&&!b.isSafeInteger(o)?(_e.warn(I.OUT_OF_BOUNDS,be,JSON.stringify(e),i),null):r===o:(_e.warn(I.UNEXPECTED_TYPE,be,JSON.stringify(e),a,i),null)}function we(e,t){var r=e.name,n=t[r],i=typeof n,o=e.value;return null!==o&&b.isSafeInteger(o)?null===n?(_e.debug(I.UNEXPECTED_TYPE_NULL,be,JSON.stringify(e),r),!1):b.isNumber(n)?!!b.isSafeInteger(n)||(_e.warn(I.OUT_OF_BOUNDS,be,JSON.stringify(e),r),!1):(_e.warn(I.UNEXPECTED_TYPE,be,JSON.stringify(e),i,r),!1):(_e.warn(I.UNEXPECTED_CONDITION_VALUE,be,JSON.stringify(e)),!1)}function Re(e,t){var r=e.name,n=t[r],i=typeof n,o=e.value;return"string"!=typeof o?(_e.warn(I.UNEXPECTED_CONDITION_VALUE,be,JSON.stringify(e)),null):null===n?(_e.debug(I.UNEXPECTED_TYPE_NULL,be,JSON.stringify(e),r),null):"string"!=typeof n?(_e.warn(I.UNEXPECTED_TYPE,be,JSON.stringify(e),i,r),null):function(e,t){var r=Ee(t),n=Ee(e);if(!r||!n)return null;for(var i=r.length,o=0;o<n.length;o++){if(i<=o)return ye(e)||me(e)?1:-1;if(ve(r[o])){var a=parseInt(r[o]),s=parseInt(n[o]);if(a>s)return 1;if(a<s)return-1}else{if(r[o]<n[o])return ye(e)&&!ye(t)?1:-1;if(r[o]>n[o])return!ye(e)&&ye(t)?-1:1}}return ye(t)&&!ye(e)?-1:0}(o,n)}Ie.exact=Se,Ie.exists=function(e,t){return null!=t[e.name]},Ie.gt=function(e,t){var r=t[e.name],n=e.value;return we(e,t)&&null!==n?r>n:null},Ie.ge=function(e,t){var r=t[e.name],n=e.value;return we(e,t)&&null!==n?r>=n:null},Ie.lt=function(e,t){var r=t[e.name],n=e.value;return we(e,t)&&null!==n?r<n:null},Ie.le=function(e,t){var r=t[e.name],n=e.value;return we(e,t)&&null!==n?r<=n:null},Ie.substring=function(e,t){var r=e.name,n=t[e.name],i=typeof n,o=e.value;return"string"!=typeof o?(_e.warn(I.UNEXPECTED_CONDITION_VALUE,be,JSON.stringify(e)),null):null===n?(_e.debug(I.UNEXPECTED_TYPE_NULL,be,JSON.stringify(e),r),null):"string"!=typeof n?(_e.warn(I.UNEXPECTED_TYPE,be,JSON.stringify(e),i,r),null):-1!==n.indexOf(o)},Ie.semver_eq=function(e,t){var r=Re(e,t);return null===r?null:0===r},Ie.semver_gt=function(e,t){var r=Re(e,t);return null===r?null:r>0},Ie.semver_ge=function(e,t){var r=Re(e,t);return null===r?null:r>=0},Ie.semver_lt=function(e,t){var r=Re(e,t);return null===r?null:r<0},Ie.semver_le=function(e,t){var r=Re(e,t);return null===r?null:r<=0};var xe=Object.freeze({__proto__:null,evaluate:function(e,t){var r=e.match;if(void 0!==r&&-1===Oe.indexOf(r))return _e.warn(I.UNKNOWN_MATCH_TYPE,be,JSON.stringify(e)),null;var n=e.name;return t.hasOwnProperty(n)||"exists"==r?(r&&Ie[r]||Se)(e,t):(_e.debug(I.MISSING_ATTRIBUTE_VALUE,be,JSON.stringify(e),n),null)}}),Ae=i.getLogger(),Ne=function(){function e(e){this.typeToEvaluatorMap=b.assign({},e,{custom_attribute:xe})}return e.prototype.evaluate=function(e,t,r){var n=this;return void 0===r&&(r={}),!e||0===e.length||!!z(e,(function(e){var i=t[e];if(i){Ae.log(_.DEBUG,I.EVALUATING_AUDIENCE,"AUDIENCE_EVALUATOR",e,JSON.stringify(i.conditions));var o=z(i.conditions,n.evaluateConditionWithUserAttributes.bind(n,r)),a=null===o?"UNKNOWN":o.toString().toUpperCase();return Ae.log(_.DEBUG,I.AUDIENCE_EVALUATION_RESULT,"AUDIENCE_EVALUATOR",e,a),o}return null}))},e.prototype.evaluateConditionWithUserAttributes=function(e,t){var r=this.typeToEvaluatorMap[t.type];if(!r)return Ae.log(_.WARNING,I.UNKNOWN_CONDITION_TYPE,"AUDIENCE_EVALUATOR",JSON.stringify(t)),null;try{return r.evaluate(t,e)}catch(e){Ae.log(_.ERROR,O.CONDITION_EVALUATOR_ERROR,"AUDIENCE_EVALUATOR",t.type,e.message)}return null},e}();function Ce(e){return"string"==typeof e&&""!==e}var Pe="DECISION_SERVICE",ke=function(){function e(e){var t;this.audienceEvaluator=(t=e.UNSTABLE_conditionEvaluators,new Ne(t)),this.forcedVariationMap={},this.logger=e.logger,this.userProfileService=e.userProfileService||null}return e.prototype.getVariation=function(e,r,n,i){void 0===i&&(i={});var o=n.getUserId(),a=n.getAttributes(),s=this.getBucketingId(o,a),u=[],c=r.key;if(!this.checkIfExperimentIsActive(e,c))return this.logger.log(_.INFO,I.EXPERIMENT_NOT_RUNNING,Pe,c),u.push([I.EXPERIMENT_NOT_RUNNING,Pe,c]),{result:null,reasons:u};var l=this.getForcedVariation(e,c,o);u.push.apply(u,l.reasons);var f=l.result;if(f)return{result:f,reasons:u};var d=this.getWhitelistedVariation(r,o);u.push.apply(u,d.reasons);var p=d.result;if(p)return{result:p.key,reasons:u};var h=i[t.OptimizelyDecideOption.IGNORE_USER_PROFILE_SERVICE],g=this.resolveExperimentBucketMap(o,a);if(!h&&(p=this.getStoredVariation(e,r,o,g)))return this.logger.log(_.INFO,I.RETURNING_STORED_VARIATION,Pe,p.key,c,o),u.push([I.RETURNING_STORED_VARIATION,Pe,p.key,c,o]),{result:p.key,reasons:u};var v=this.checkIfUserIsInAudience(e,r,R.EXPERIMENT,a,"");if(u.push.apply(u,v.reasons),!v.result)return this.logger.log(_.INFO,I.USER_NOT_IN_EXPERIMENT,Pe,o,c),u.push([I.USER_NOT_IN_EXPERIMENT,Pe,o,c]),{result:null,reasons:u};var y=this.buildBucketerParams(e,r,s,o),m=fe(y);u.push.apply(u,m.reasons);var E=m.result;return E&&(p=e.variationIdMap[E]),p?(this.logger.log(_.INFO,I.USER_HAS_VARIATION,Pe,o,p.key,c),u.push([I.USER_HAS_VARIATION,Pe,o,p.key,c]),h||this.saveUserProfile(r,p,o,g),{result:p.key,reasons:u}):(this.logger.log(_.DEBUG,I.USER_HAS_NO_VARIATION,Pe,o,c),u.push([I.USER_HAS_NO_VARIATION,Pe,o,c]),{result:null,reasons:u})},e.prototype.resolveExperimentBucketMap=function(e,t){t=t||{};var r=this.getUserProfile(e)||{},n=t[T.STICKY_BUCKETING_KEY];return b.assign({},r.experiment_bucket_map,n)},e.prototype.checkIfExperimentIsActive=function(e,t){return function(e,t){return"Running"===X(e,t)}(e,t)},e.prototype.getWhitelistedVariation=function(e,t){var r=[];if(e.forcedVariations&&e.forcedVariations.hasOwnProperty(t)){var n=e.forcedVariations[t];return e.variationKeyMap.hasOwnProperty(n)?(this.logger.log(_.INFO,I.USER_FORCED_IN_VARIATION,Pe,t,n),r.push([I.USER_FORCED_IN_VARIATION,Pe,t,n]),{result:e.variationKeyMap[n],reasons:r}):(this.logger.log(_.ERROR,I.FORCED_BUCKETING_FAILED,Pe,n,t),r.push([I.FORCED_BUCKETING_FAILED,Pe,n,t]),{result:null,reasons:r})}return{result:null,reasons:r}},e.prototype.checkIfUserIsInAudience=function(e,t,r,n,i){var o=[],a=function(e,t){var r=e.experimentIdMap[t];if(!r)throw new Error(m(O.INVALID_EXPERIMENT_ID,Y,t));return r.audienceConditions||r.audienceIds}(e,t.id),s=e.audiencesById;this.logger.log(_.DEBUG,I.EVALUATING_AUDIENCES_COMBINED,Pe,r,i||t.key,JSON.stringify(a)),o.push([I.EVALUATING_AUDIENCES_COMBINED,Pe,r,i||t.key,JSON.stringify(a)]);var u=this.audienceEvaluator.evaluate(a,s,n);return this.logger.log(_.INFO,I.AUDIENCE_EVALUATION_RESULT_COMBINED,Pe,r,i||t.key,u.toString().toUpperCase()),o.push([I.AUDIENCE_EVALUATION_RESULT_COMBINED,Pe,r,i||t.key,u.toString().toUpperCase()]),{result:u,reasons:o}},e.prototype.buildBucketerParams=function(e,t,r,n){return{bucketingId:r,experimentId:t.id,experimentKey:t.key,experimentIdMap:e.experimentIdMap,experimentKeyMap:e.experimentKeyMap,groupIdMap:e.groupIdMap,logger:this.logger,trafficAllocationConfig:ee(e,t.id),userId:n,variationIdMap:e.variationIdMap}},e.prototype.getStoredVariation=function(e,t,r,n){if(n.hasOwnProperty(t.id)){var i=n[t.id],o=i.variation_id;if(e.variationIdMap.hasOwnProperty(o))return e.variationIdMap[i.variation_id];this.logger.log(_.INFO,I.SAVED_VARIATION_NOT_FOUND,Pe,r,o,t.key)}return null},e.prototype.getUserProfile=function(e){var t={user_id:e,experiment_bucket_map:{}};if(!this.userProfileService)return t;try{return this.userProfileService.lookup(e)}catch(t){this.logger.log(_.ERROR,O.USER_PROFILE_LOOKUP_ERROR,Pe,e,t.message)}return null},e.prototype.saveUserProfile=function(e,t,r,n){if(this.userProfileService)try{n[e.id]={variation_id:t.id},this.userProfileService.save({user_id:r,experiment_bucket_map:n}),this.logger.log(_.INFO,I.SAVED_VARIATION,Pe,t.key,e.key,r)}catch(e){this.logger.log(_.ERROR,O.USER_PROFILE_SAVE_ERROR,Pe,r,e.message)}},e.prototype.getVariationForFeature=function(e,t,r,n){void 0===n&&(n={});var i=[],o=this.getVariationForFeatureExperiment(e,t,r,n);i.push.apply(i,o.reasons);var a=o.result;if(null!==a.variation)return{result:a,reasons:i};var s=this.getVariationForRollout(e,t,r);i.push.apply(i,s.reasons);var u=s.result,c=r.getUserId();return u.variation?(this.logger.log(_.DEBUG,I.USER_IN_ROLLOUT,Pe,c,t.key),i.push([I.USER_IN_ROLLOUT,Pe,c,t.key]),{result:u,reasons:i}):(this.logger.log(_.DEBUG,I.USER_NOT_IN_ROLLOUT,Pe,c,t.key),i.push([I.USER_NOT_IN_ROLLOUT,Pe,c,t.key]),{result:u,reasons:i})},e.prototype.getVariationForFeatureExperiment=function(e,t,r,n){void 0===n&&(n={});var i,o,a=[],s=null;if(t.experimentIds.length>0)for(o=0;o<t.experimentIds.length;o++){var u=te(e,t.experimentIds[o],this.logger);if(u&&(i=this.getVariationFromExperimentRule(e,t.key,u,r,n),a.push.apply(a,i.reasons),s=i.result)){var c=null;return(c=u.variationKeyMap[s])||(c=re(e,t.key,s)),{result:{experiment:u,variation:c,decisionSource:w.FEATURE_TEST},reasons:a}}}else this.logger.log(_.DEBUG,I.FEATURE_HAS_NO_EXPERIMENTS,Pe,t.key),a.push([I.FEATURE_HAS_NO_EXPERIMENTS,Pe,t.key]);return{result:{experiment:null,variation:null,decisionSource:w.FEATURE_TEST},reasons:a}},e.prototype.getVariationForRollout=function(e,t,r){var n=[];if(!t.rolloutId)return this.logger.log(_.DEBUG,I.NO_ROLLOUT_EXISTS,Pe,t.key),n.push([I.NO_ROLLOUT_EXISTS,Pe,t.key]),{result:{experiment:null,variation:null,decisionSource:w.ROLLOUT},reasons:n};var i=e.rolloutIdMap[t.rolloutId];if(!i)return this.logger.log(_.ERROR,O.INVALID_ROLLOUT_ID,Pe,t.rolloutId,t.key),n.push([O.INVALID_ROLLOUT_ID,Pe,t.rolloutId,t.key]),{result:{experiment:null,variation:null,decisionSource:w.ROLLOUT},reasons:n};var o,a,s,u=i.experiments;if(0===u.length)return this.logger.log(_.ERROR,I.ROLLOUT_HAS_NO_EXPERIMENTS,Pe,t.rolloutId),n.push([I.ROLLOUT_HAS_NO_EXPERIMENTS,Pe,t.rolloutId]),{result:{experiment:null,variation:null,decisionSource:w.ROLLOUT},reasons:n};for(var c=0;c<u.length;){if(o=this.getVariationFromDeliveryRule(e,t.key,u,c,r),n.push.apply(n,o.reasons),s=o.result,a=o.skipToEveryoneElse,s)return{result:{experiment:e.experimentIdMap[u[c].id],variation:s,decisionSource:w.ROLLOUT},reasons:n};c=a?u.length-1:c+1}return{result:{experiment:null,variation:null,decisionSource:w.ROLLOUT},reasons:n}},e.prototype.getBucketingId=function(e,t){var r=e;return null!=t&&"object"==typeof t&&t.hasOwnProperty(T.BUCKETING_ID)&&("string"==typeof t[T.BUCKETING_ID]?(r=t[T.BUCKETING_ID],this.logger.log(_.DEBUG,I.VALID_BUCKETING_ID,Pe,r)):this.logger.log(_.WARNING,I.BUCKETING_ID_NOT_STRING,Pe)),r},e.prototype.findValidatedForcedDecision=function(e,t,r,n){var i,o=[],a=t.getForcedDecision({flagKey:r,ruleKey:n}),s=null,u=t.getUserId();return e&&a&&(i=a.variationKey,(s=re(e,r,i))?n?(this.logger.log(_.INFO,I.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED,i,r,n,u),o.push([I.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED,i,r,n,u])):(this.logger.log(_.INFO,I.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED,i,r,u),o.push([I.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED,i,r,u])):n?(this.logger.log(_.INFO,I.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID,r,n,u),o.push([I.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID,r,n,u])):(this.logger.log(_.INFO,I.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID,r,u),o.push([I.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID,r,u]))),{result:s,reasons:o}},e.prototype.removeForcedVariation=function(e,t,r){if(!e)throw new Error(m(O.INVALID_USER_ID,Pe));if(!this.forcedVariationMap.hasOwnProperty(e))throw new Error(m(O.USER_NOT_IN_FORCED_VARIATION,Pe,e));delete this.forcedVariationMap[e][t],this.logger.log(_.DEBUG,I.VARIATION_REMOVED_FOR_USER,Pe,r,e)},e.prototype.setInForcedVariationMap=function(e,t,r){this.forcedVariationMap.hasOwnProperty(e)||(this.forcedVariationMap[e]={}),this.forcedVariationMap[e][t]=r,this.logger.log(_.DEBUG,I.USER_MAPPED_TO_FORCED_VARIATION,Pe,r,t,e)},e.prototype.getForcedVariation=function(e,t,r){var n,i=[],o=this.forcedVariationMap[r];if(!o)return this.logger.log(_.DEBUG,I.USER_HAS_NO_FORCED_VARIATION,Pe,r),{result:null,reasons:i};try{var a=Q(e,t);if(!a.hasOwnProperty("id"))return this.logger.log(_.ERROR,O.IMPROPERLY_FORMATTED_EXPERIMENT,Pe,t),i.push([O.IMPROPERLY_FORMATTED_EXPERIMENT,Pe,t]),{result:null,reasons:i};n=a.id}catch(e){return this.logger.log(_.ERROR,e.message),i.push(e.message),{result:null,reasons:i}}var s=o[n];if(!s)return this.logger.log(_.DEBUG,I.USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT,Pe,t,r),{result:null,reasons:i};var u=J(e,s);return u?(this.logger.log(_.DEBUG,I.USER_HAS_FORCED_VARIATION,Pe,u,t,r),i.push([I.USER_HAS_FORCED_VARIATION,Pe,u,t,r])):this.logger.log(_.DEBUG,I.USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT,Pe,t,r),{result:u,reasons:i}},e.prototype.setForcedVariation=function(e,t,r,n){if(null!=n&&!Ce(n))return this.logger.log(_.ERROR,O.INVALID_VARIATION_KEY,Pe),!1;var i;try{var o=Q(e,t);if(!o.hasOwnProperty("id"))return this.logger.log(_.ERROR,O.IMPROPERLY_FORMATTED_EXPERIMENT,Pe,t),!1;i=o.id}catch(e){return this.logger.log(_.ERROR,e.message),!1}if(null==n)try{return this.removeForcedVariation(r,i,t),!0}catch(e){return this.logger.log(_.ERROR,e.message),!1}var a=function(e,t,r){var n=e.experimentKeyMap[t];return n.variationKeyMap.hasOwnProperty(r)?n.variationKeyMap[r].id:null}(e,t,n);if(!a)return this.logger.log(_.ERROR,O.NO_VARIATION_FOR_EXPERIMENT_KEY,Pe,n,t),!1;try{return this.setInForcedVariationMap(r,i,a),!0}catch(e){return this.logger.log(_.ERROR,e.message),!1}},e.prototype.getVariationFromExperimentRule=function(e,t,r,n,i){void 0===i&&(i={});var o=[],a=this.findValidatedForcedDecision(e,n,t,r.key);o.push.apply(o,a.reasons);var s=a.result;if(s)return{result:s.key,reasons:o};var u=this.getVariation(e,r,n,i);return o.push.apply(o,u.reasons),{result:u.result,reasons:o}},e.prototype.getVariationFromDeliveryRule=function(e,t,r,n,i){var o=[],a=!1,s=r[n],u=this.findValidatedForcedDecision(e,i,t,s.key);o.push.apply(o,u.reasons);var c=u.result;if(c)return{result:c,reasons:o,skipToEveryoneElse:a};var l,f,d,p,h,g=i.getUserId(),v=i.getAttributes(),y=this.getBucketingId(g,v),m=n===r.length-1,E=m?"Everyone Else":n+1,b=null,O=this.checkIfUserIsInAudience(e,s,R.RULE,v,E);return o.push.apply(o,O.reasons),O.result?(this.logger.log(_.DEBUG,I.USER_MEETS_CONDITIONS_FOR_TARGETING_RULE,Pe,g,E),o.push([I.USER_MEETS_CONDITIONS_FOR_TARGETING_RULE,Pe,g,E]),f=this.buildBucketerParams(e,s,y,g),d=fe(f),o.push.apply(o,d.reasons),(l=d.result)&&(h=l,b=(p=e).variationIdMap.hasOwnProperty(h)?p.variationIdMap[h]:null),b?(this.logger.log(_.DEBUG,I.USER_BUCKETED_INTO_TARGETING_RULE,Pe,g,E),o.push([I.USER_BUCKETED_INTO_TARGETING_RULE,Pe,g,E])):m||(this.logger.log(_.DEBUG,I.USER_NOT_BUCKETED_INTO_TARGETING_RULE,Pe,g,E),o.push([I.USER_NOT_BUCKETED_INTO_TARGETING_RULE,Pe,g,E]),a=!0)):(this.logger.log(_.DEBUG,I.USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE,Pe,g,E),o.push([I.USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE,Pe,g,E])),{result:b,reasons:o,skipToEveryoneElse:a}},e}();function De(e,t){if(e.hasOwnProperty("revenue")){var r=e.revenue,n=void 0;return"string"==typeof r?(n=parseInt(r),isNaN(n)?(t.log(_.INFO,I.FAILED_TO_PARSE_REVENUE,"EVENT_TAG_UTILS",r),null):(t.log(_.INFO,I.PARSED_REVENUE_VALUE,"EVENT_TAG_UTILS",n),n)):"number"==typeof r?(n=r,t.log(_.INFO,I.PARSED_REVENUE_VALUE,"EVENT_TAG_UTILS",n),n):null}return null}function Le(e,t){if(e.hasOwnProperty("value")){var r=e.value,n=void 0;return"string"==typeof r?(n=parseFloat(r),isNaN(n)?(t.log(_.INFO,I.FAILED_TO_PARSE_VALUE,"EVENT_TAG_UTILS",r),null):(t.log(_.INFO,I.PARSED_NUMERIC_VALUE,"EVENT_TAG_UTILS",n),n)):"number"==typeof r?(n=r,t.log(_.INFO,I.PARSED_NUMERIC_VALUE,"EVENT_TAG_UTILS",n),n):null}return null}function je(e,t){return"string"==typeof e&&("string"==typeof t||"boolean"==typeof t||b.isNumber(t)&&b.isSafeInteger(t))}var Me="https://logx.optimizely.com/v1/events";function Ue(e){var t=e.attributes,r=e.userId,n=e.clientEngine,i=e.clientVersion,o=e.configObj,a=e.logger,s=!!o.anonymizeIP&&o.anonymizeIP,u=o.botFiltering,c={snapshots:[],visitor_id:r,attributes:[]},l={account_id:o.accountId,project_id:o.projectId,visitors:[c],revision:o.revision,client_name:n,client_version:i,anonymize_ip:s,enrich_decisions:!0};return t&&Object.keys(t||{}).forEach((function(e){if(je(e,t[e])){var r=Z(o,e,a);r&&l.visitors[0].attributes.push({entity_id:r,key:e,type:"custom",value:t[e]})}})),"boolean"==typeof u&&l.visitors[0].attributes.push({entity_id:T.BOT_FILTERING,key:T.BOT_FILTERING,type:"custom",value:u}),l}function Fe(e){var t,r;return null!==(r=null===(t=e.experiment)||void 0===t?void 0:t.key)&&void 0!==r?r:""}function Ve(e){var t,r;return null!==(r=null===(t=e.variation)||void 0===t?void 0:t.key)&&void 0!==r?r:""}function Be(e){var t,r;return null!==(r=null===(t=e.variation)||void 0===t?void 0:t.featureEnabled)&&void 0!==r&&r}function Ge(e){var t,r;return null!==(r=null===(t=e.experiment)||void 0===t?void 0:t.id)&&void 0!==r?r:null}function Ke(e){var t,r;return null!==(r=null===(t=e.variation)||void 0===t?void 0:t.id)&&void 0!==r?r:null}var ze=i.getLogger("EVENT_BUILDER");function He(e,t){var r=[];return t&&Object.keys(t||{}).forEach((function(n){if(je(n,t[n])){var i=Z(e,n,ze);i&&r.push({entityId:i,key:n,value:t[n]})}})),r}var Ye="USER_PROFILE_SERVICE_VALIDATOR",We=function(){function e(e){var r,n=this,i=e.clientEngine;i||(e.logger.log(_.INFO,I.INVALID_CLIENT_ENGINE,"OPTIMIZELY",i),i="node-sdk"),this.clientEngine=i,this.clientVersion=e.clientVersion||"4.9.2",this.errorHandler=e.errorHandler,this.isOptimizelyConfigValid=e.isValidInstance,this.logger=e.logger;var o=null!==(r=e.defaultDecideOptions)&&void 0!==r?r:[];Array.isArray(o)||(this.logger.log(_.DEBUG,I.INVALID_DEFAULT_DECIDE_OPTIONS,"OPTIMIZELY"),o=[]);var a={};o.forEach((function(e){t.OptimizelyDecideOption[e]?a[e]=!0:n.logger.log(_.WARNING,I.UNRECOGNIZED_DECIDE_OPTION,"OPTIMIZELY",e)})),this.defaultDecideOptions=a,this.projectConfigManager=function(e){return new ce(e)}({datafile:e.datafile,jsonSchemaValidator:e.jsonSchemaValidator,sdkKey:e.sdkKey,datafileManager:e.datafileManager}),this.disposeOnUpdate=this.projectConfigManager.onUpdate((function(e){n.logger.log(_.INFO,I.UPDATED_OPTIMIZELY_CONFIG,"OPTIMIZELY",e.revision,e.projectId),n.notificationCenter.sendNotifications(E.OPTIMIZELY_CONFIG_UPDATE)}));var s,u=this.projectConfigManager.onReady(),c=null;if(e.userProfileService)try{(function(e){if("object"==typeof e&&null!==e){if("function"!=typeof e.lookup)throw new Error(m(O.INVALID_USER_PROFILE_SERVICE,Ye,"Missing function 'lookup'"));if("function"!=typeof e.save)throw new Error(m(O.INVALID_USER_PROFILE_SERVICE,Ye,"Missing function 'save'"));return!0}throw new Error(m(O.INVALID_USER_PROFILE_SERVICE,Ye))})(e.userProfileService)&&(c=e.userProfileService,this.logger.log(_.INFO,I.VALID_USER_PROFILE_SERVICE,"OPTIMIZELY"))}catch(e){this.logger.log(_.WARNING,e.message)}this.decisionService=(s={userProfileService:c,logger:this.logger,UNSTABLE_conditionEvaluators:e.UNSTABLE_conditionEvaluators},new ke(s)),this.notificationCenter=e.notificationCenter,this.eventProcessor=e.eventProcessor;var l=this.eventProcessor.start();this.readyPromise=Promise.all([u,l]).then((function(e){return e[0]})),this.readyTimeouts={},this.nextReadyTimeoutId=0}return e.prototype.isValidInstance=function(){return this.isOptimizelyConfigValid&&!!this.projectConfigManager.getConfig()},e.prototype.activate=function(e,t,r){try{if(!this.isValidInstance())return this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","activate"),null;if(!this.validateInputs({experiment_key:e,user_id:t},r))return this.notActivatingExperiment(e,t);var n=this.projectConfigManager.getConfig();if(!n)return null;try{var i=this.getVariation(e,t,r);if(null===i)return this.notActivatingExperiment(e,t);if(!function(e,t){return"Running"===X(e,t)}(n,e))return this.logger.log(_.DEBUG,I.SHOULD_NOT_DISPATCH_ACTIVATE,"OPTIMIZELY",e),i;var o=Q(n,e),a={experiment:o,variation:o.variationKeyMap[i],decisionSource:w.EXPERIMENT};return this.sendImpressionEvent(a,"",t,!0,r),i}catch(r){return this.logger.log(_.ERROR,r.message),this.logger.log(_.INFO,I.NOT_ACTIVATING_USER,"OPTIMIZELY",t,e),this.errorHandler.handleError(r),null}}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.sendImpressionEvent=function(e,t,r,n,i){var o=this.projectConfigManager.getConfig();if(o){var a=function(e){var t=e.configObj,r=e.decisionObj,n=e.userId,i=e.flagKey,o=e.enabled,a=e.userAttributes,s=e.clientEngine,u=e.clientVersion,c=r.decisionSource,l=Fe(r),f=Ge(r),d=Ve(r),p=Ke(r),h=null!==f?q(t,f):null;return{type:"impression",timestamp:b.currentTimestamp(),uuid:b.uuid(),user:{id:n,attributes:He(t,a)},context:{accountId:t.accountId,projectId:t.projectId,revision:t.revision,clientName:s,clientVersion:u,anonymizeIP:t.anonymizeIP||!1,botFiltering:t.botFiltering},layer:{id:h},experiment:{id:f,key:l},variation:{id:p,key:d},ruleKey:l,flagKey:i,ruleType:c,enabled:o}}({decisionObj:e,flagKey:t,enabled:n,userId:r,userAttributes:i,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:o});this.eventProcessor.process(a),this.emitNotificationCenterActivate(e,t,r,n,i)}},e.prototype.emitNotificationCenterActivate=function(e,t,r,n,i){var o=this.projectConfigManager.getConfig();if(o){var a,s=e.decisionSource,u=Fe(e),c=Ge(e),l=Ve(e),f=Ke(e);null!==c&&""!==l&&(a=o.experimentIdMap[c]);var d,p=function(e){var t,r,n,i,o,a,s,u,c=Ue(e),l=(t=e.configObj,n=e.variationId,i=e.ruleKey,o=e.ruleType,a=e.flagKey,s=e.enabled,{decisions:[{campaign_id:u=(r=e.experimentId)?q(t,r):null,experiment_id:r,variation_id:n,metadata:{flag_key:a,rule_key:i,rule_type:o,variation_key:(n?J(t,n):null)||"",enabled:s}}],events:[{entity_id:u,timestamp:b.currentTimestamp(),key:"campaign_activated",uuid:b.uuid()}]});return c.visitors[0].snapshots.push(l),{httpVerb:"POST",url:Me,params:c}}({attributes:i,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:o,experimentId:c,ruleKey:u,flagKey:t,ruleType:s,userId:r,enabled:n,variationId:f,logger:this.logger});a&&a.variationKeyMap&&""!==l&&(d=a.variationKeyMap[l]),this.notificationCenter.sendNotifications(E.ACTIVATE,{experiment:a,userId:r,attributes:i,variation:d,logEvent:p})}},e.prototype.track=function(e,t,r,n){try{if(!this.isValidInstance())return void this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","track");if(!this.validateInputs({user_id:t,event_key:e},r,n))return;var i=this.projectConfigManager.getConfig();if(!i)return;if(!function(e,t){return e.eventKeyMap.hasOwnProperty(t)}(i,e))return this.logger.log(_.WARNING,I.EVENT_KEY_NOT_FOUND,"OPTIMIZELY",e),void this.logger.log(_.WARNING,I.NOT_TRACKING_USER,"OPTIMIZELY",t);var o=function(e){var t=e.configObj,r=e.userId,n=e.userAttributes,i=e.clientEngine,o=e.clientVersion,a=e.eventKey,s=e.eventTags,u=$(t,a),c=s?De(s,ze):null,l=s?Le(s,ze):null;return{type:"conversion",timestamp:b.currentTimestamp(),uuid:b.uuid(),user:{id:r,attributes:He(t,n)},context:{accountId:t.accountId,projectId:t.projectId,revision:t.revision,clientName:i,clientVersion:o,anonymizeIP:t.anonymizeIP||!1,botFiltering:t.botFiltering},event:{id:u,key:a},revenue:c,value:l,tags:s}}({eventKey:e,eventTags:n=this.filterEmptyValues(n),userId:t,userAttributes:r,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:i});this.logger.log(_.INFO,I.TRACK_EVENT,"OPTIMIZELY",e,t),this.eventProcessor.process(o),this.emitNotificationCenterTrack(e,t,r,n)}catch(e){this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),this.logger.log(_.ERROR,I.NOT_TRACKING_USER,"OPTIMIZELY",t)}},e.prototype.emitNotificationCenterTrack=function(e,t,r,n){try{var i=this.projectConfigManager.getConfig();if(!i)return;var o=function(e){var t=Ue(e),r=function(e,t,r,n){var i={events:[]},o={entity_id:$(e,t),timestamp:b.currentTimestamp(),uuid:b.uuid(),key:t};if(n){var a=De(n,r);null!==a&&(o.revenue=a);var s=Le(n,r);null!==s&&(o.value=s),o.tags=n}return i.events.push(o),i}(e.configObj,e.eventKey,e.logger,e.eventTags);return t.visitors[0].snapshots=[r],{httpVerb:"POST",url:Me,params:t}}({attributes:r,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:i,eventKey:e,eventTags:n,logger:this.logger,userId:t});this.notificationCenter.sendNotifications(E.TRACK,{eventKey:e,userId:t,attributes:r,eventTags:n,logEvent:o})}catch(e){this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.getVariation=function(e,t,r){try{if(!this.isValidInstance())return this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getVariation"),null;try{if(!this.validateInputs({experiment_key:e,user_id:t},r))return null;var n=this.projectConfigManager.getConfig();if(!n)return null;var i=n.experimentKeyMap[e];if(!i)return this.logger.log(_.DEBUG,O.INVALID_EXPERIMENT_KEY,"OPTIMIZELY",e),null;var o=this.decisionService.getVariation(n,i,this.createUserContext(t,r)).result,a=(s=n,u=i.id,s.experimentFeatureMap.hasOwnProperty(u)?S.FEATURE_TEST:S.AB_TEST);return this.notificationCenter.sendNotifications(E.DECISION,{type:a,userId:t,attributes:r||{},decisionInfo:{experimentKey:e,variationKey:o}}),o}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}var s,u},e.prototype.setForcedVariation=function(e,t,r){if(!this.validateInputs({experiment_key:e,user_id:t}))return!1;var n=this.projectConfigManager.getConfig();if(!n)return!1;try{return this.decisionService.setForcedVariation(n,e,t,r)}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.getForcedVariation=function(e,t){if(!this.validateInputs({experiment_key:e,user_id:t}))return null;var r=this.projectConfigManager.getConfig();if(!r)return null;try{return this.decisionService.getForcedVariation(r,e,t).result}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.validateInputs=function(e,t,r){try{if(e.hasOwnProperty("user_id")){var n=e.user_id;if("string"!=typeof n||null===n||"undefined"===n)throw new Error(m(O.INVALID_INPUT_FORMAT,"OPTIMIZELY","user_id"));delete e.user_id}return Object.keys(e).forEach((function(t){if(!Ce(e[t]))throw new Error(m(O.INVALID_INPUT_FORMAT,"OPTIMIZELY",t))})),t&&function(e){if("object"!=typeof e||Array.isArray(e)||null===e)throw new Error(m(O.INVALID_ATTRIBUTES,"ATTRIBUTES_VALIDATOR"));Object.keys(e).forEach((function(t){if(void 0===e[t])throw new Error(m(O.UNDEFINED_ATTRIBUTE,"ATTRIBUTES_VALIDATOR",t))}))}(t),r&&function(e){if("object"!=typeof e||Array.isArray(e)||null===e)throw new Error(m(O.INVALID_EVENT_TAGS,"EVENT_TAGS_VALIDATOR"))}(r),!0}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.notActivatingExperiment=function(e,t){return this.logger.log(_.INFO,I.NOT_ACTIVATING_USER,"OPTIMIZELY",t,e),null},e.prototype.filterEmptyValues=function(e){for(var t in e)!e.hasOwnProperty(t)||null!==e[t]&&void 0!==e[t]||delete e[t];return e},e.prototype.isFeatureEnabled=function(e,t,r){try{if(!this.isValidInstance())return this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","isFeatureEnabled"),!1;if(!this.validateInputs({feature_key:e,user_id:t},r))return!1;var n=this.projectConfigManager.getConfig();if(!n)return!1;var i=ne(n,e,this.logger);if(!i)return!1;var o={},a=this.createUserContext(t,r),s=this.decisionService.getVariationForFeature(n,i,a).result,u=s.decisionSource,c=Fe(s),l=Ve(s),f=Be(s);u===w.FEATURE_TEST&&(o={experimentKey:c,variationKey:l}),(u===w.FEATURE_TEST||u===w.ROLLOUT&&ae(n))&&this.sendImpressionEvent(s,i.key,t,f,r),!0===f?this.logger.log(_.INFO,I.FEATURE_ENABLED_FOR_USER,"OPTIMIZELY",e,t):(this.logger.log(_.INFO,I.FEATURE_NOT_ENABLED_FOR_USER,"OPTIMIZELY",e,t),f=!1);var d={featureKey:e,featureEnabled:f,source:s.decisionSource,sourceInfo:o};return this.notificationCenter.sendNotifications(E.DECISION,{type:S.FEATURE,userId:t,attributes:r||{},decisionInfo:d}),f}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.getEnabledFeatures=function(e,t){var r=this;try{var n=[];if(!this.isValidInstance())return this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getEnabledFeatures"),n;if(!this.validateInputs({user_id:e}))return n;var i=this.projectConfigManager.getConfig();return i?(h(i.featureKeyMap).forEach((function(i){r.isFeatureEnabled(i.key,e,t)&&n.push(i.key)})),n):n}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),[]}},e.prototype.getFeatureVariable=function(e,t,r,n){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,null,r,n):(this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariable"),null)}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableForType=function(e,t,r,n,i){if(!this.validateInputs({feature_key:e,variable_key:t,user_id:n},i))return null;var o=this.projectConfigManager.getConfig();if(!o)return null;var a=ne(o,e,this.logger);if(!a)return null;var s=function(e,t,r,n){var i=e.featureKeyMap[t];return i?i.variableKeyMap[r]||(n.log(_.ERROR,O.VARIABLE_KEY_NOT_IN_DATAFILE,Y,r,t),null):(n.log(_.ERROR,O.FEATURE_NOT_IN_DATAFILE,Y,t),null)}(o,e,t,this.logger);if(!s)return null;if(r&&s.type!==r)return this.logger.log(_.WARNING,I.VARIABLE_REQUESTED_WITH_WRONG_TYPE,"OPTIMIZELY",r,s.type),null;var u=this.createUserContext(n,i),c=this.decisionService.getVariationForFeature(o,a,u).result,l=Be(c),f=this.getFeatureVariableValueFromVariation(e,l,c.variation,s,n),d={};return c.decisionSource===w.FEATURE_TEST&&null!==c.experiment&&null!==c.variation&&(d={experimentKey:c.experiment.key,variationKey:c.variation.key}),this.notificationCenter.sendNotifications(E.DECISION,{type:S.FEATURE_VARIABLE,userId:n,attributes:i||{},decisionInfo:{featureKey:e,featureEnabled:l,source:c.decisionSource,variableKey:t,variableValue:f,variableType:s.type,sourceInfo:d}}),f},e.prototype.getFeatureVariableValueFromVariation=function(e,t,r,n,i){var o=this.projectConfigManager.getConfig();if(!o)return null;var a=n.defaultValue;if(null!==r){var s=function(e,t,r,n){if(!t||!r)return null;if(!e.variationVariableUsageMap.hasOwnProperty(r.id))return n.log(_.ERROR,O.VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT,Y,r.id),null;var i=e.variationVariableUsageMap[r.id][t.id];return i?i.value:null}(o,n,r,this.logger);null!==s?t?(a=s,this.logger.log(_.INFO,I.USER_RECEIVED_VARIABLE_VALUE,"OPTIMIZELY",a,n.key,e)):this.logger.log(_.INFO,I.FEATURE_NOT_ENABLED_RETURN_DEFAULT_VARIABLE_VALUE,"OPTIMIZELY",e,i,a):this.logger.log(_.INFO,I.VARIABLE_NOT_USED_RETURN_DEFAULT_VARIABLE_VALUE,"OPTIMIZELY",n.key,r.key)}else this.logger.log(_.INFO,I.USER_RECEIVED_DEFAULT_VARIABLE_VALUE,"OPTIMIZELY",i,n.key,e);return function(e,t,r){var n;switch(t){case x.BOOLEAN:"true"!==e&&"false"!==e?(r.log(_.ERROR,O.UNABLE_TO_CAST_VALUE,Y,e,t),n=null):n="true"===e;break;case x.INTEGER:n=parseInt(e,10),isNaN(n)&&(r.log(_.ERROR,O.UNABLE_TO_CAST_VALUE,Y,e,t),n=null);break;case x.DOUBLE:n=parseFloat(e),isNaN(n)&&(r.log(_.ERROR,O.UNABLE_TO_CAST_VALUE,Y,e,t),n=null);break;case x.JSON:try{n=JSON.parse(e)}catch(i){r.log(_.ERROR,O.UNABLE_TO_CAST_VALUE,Y,e,t),n=null}break;default:n=e}return n}(a,n.type,this.logger)},e.prototype.getFeatureVariableBoolean=function(e,t,r,n){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,x.BOOLEAN,r,n):(this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableBoolean"),null)}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableDouble=function(e,t,r,n){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,x.DOUBLE,r,n):(this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableDouble"),null)}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableInteger=function(e,t,r,n){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,x.INTEGER,r,n):(this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableInteger"),null)}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableString=function(e,t,r,n){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,x.STRING,r,n):(this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableString"),null)}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableJSON=function(e,t,r,n){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,x.JSON,r,n):(this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableJSON"),null)}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getAllFeatureVariables=function(e,t,r){var n=this;try{if(!this.isValidInstance())return this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","getAllFeatureVariables"),null;if(!this.validateInputs({feature_key:e,user_id:t},r))return null;var i=this.projectConfigManager.getConfig();if(!i)return null;var o=ne(i,e,this.logger);if(!o)return null;var a=this.createUserContext(t,r),s=this.decisionService.getVariationForFeature(i,o,a).result,u=Be(s),c={};o.variables.forEach((function(r){c[r.key]=n.getFeatureVariableValueFromVariation(e,u,s.variation,r,t)}));var l={};return s.decisionSource===w.FEATURE_TEST&&null!==s.experiment&&null!==s.variation&&(l={experimentKey:s.experiment.key,variationKey:s.variation.key}),this.notificationCenter.sendNotifications(E.DECISION,{type:S.ALL_FEATURE_VARIABLES,userId:t,attributes:r||{},decisionInfo:{featureKey:e,featureEnabled:u,source:s.decisionSource,variableValues:c,sourceInfo:l}}),c}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getOptimizelyConfig=function(){try{return this.projectConfigManager.getConfig()?this.projectConfigManager.getOptimizelyConfig():null}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.close=function(){var e=this;try{var t=this.eventProcessor.stop();return this.disposeOnUpdate&&(this.disposeOnUpdate(),this.disposeOnUpdate=null),this.projectConfigManager&&this.projectConfigManager.stop(),Object.keys(this.readyTimeouts).forEach((function(t){var r=e.readyTimeouts[t];clearTimeout(r.readyTimeout),r.onClose()})),this.readyTimeouts={},t.then((function(){return{success:!0}}),(function(e){return{success:!1,reason:String(e)}}))}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),Promise.resolve({success:!1,reason:String(e)})}},e.prototype.onReady=function(e){var t,r,n=this;"object"==typeof e&&null!==e&&void 0!==e.timeout&&(t=e.timeout),b.isSafeInteger(t)||(t=3e4);var i=new Promise((function(e){r=e})),o=this.nextReadyTimeoutId;this.nextReadyTimeoutId++;var a=setTimeout((function(){delete n.readyTimeouts[o],r({success:!1,reason:m("onReady timeout expired after %s ms",t)})}),t);return this.readyTimeouts[o]={readyTimeout:a,onClose:function(){r({success:!1,reason:"Instance closed"})}},this.readyPromise.then((function(){clearTimeout(a),delete n.readyTimeouts[o],r({success:!0})})),Promise.race([this.readyPromise,i])},e.prototype.createUserContext=function(e,t){return this.validateInputs({user_id:e},t)?new G({optimizely:this,userId:e,attributes:t}):null},e.prototype.decide=function(e,r,n){var i,o,a,s,u=this;void 0===n&&(n=[]);var c,f=e.getUserId(),d=e.getAttributes(),p=this.projectConfigManager.getConfig(),h=[];if(!this.isValidInstance()||!p)return this.logger.log(_.INFO,I.INVALID_OBJECT,"OPTIMIZELY","decide"),B(r,e,[N.SDK_NOT_READY]);var g=p.featureKeyMap[r];if(!g)return this.logger.log(_.ERROR,O.FEATURE_NOT_IN_DATAFILE,"OPTIMIZELY",r),B(r,e,[m(N.FLAG_KEY_INVALID,r)]);var v=this.getAllDecideOptions(n),y=this.decisionService.findValidatedForcedDecision(p,e,r);h.push.apply(h,y.reasons);var b=y.result;if(b)c={experiment:null,variation:b,decisionSource:w.FEATURE_TEST};else{var T=this.decisionService.getVariationForFeature(p,g,e,v);h.push.apply(h,T.reasons),c=T.result}var R=c.decisionSource,x=null!==(o=null===(i=c.experiment)||void 0===i?void 0:i.key)&&void 0!==o?o:null,A=null!==(s=null===(a=c.variation)||void 0===a?void 0:a.key)&&void 0!==s?s:null,C=Be(c);!0===C?this.logger.log(_.INFO,I.FEATURE_ENABLED_FOR_USER,"OPTIMIZELY",r,f):this.logger.log(_.INFO,I.FEATURE_NOT_ENABLED_FOR_USER,"OPTIMIZELY",r,f);var P={},k=!1;v[t.OptimizelyDecideOption.EXCLUDE_VARIABLES]||g.variables.forEach((function(e){P[e.key]=u.getFeatureVariableValueFromVariation(r,C,c.variation,e,f)})),!v[t.OptimizelyDecideOption.DISABLE_DECISION_EVENT]&&(R===w.FEATURE_TEST||R===w.ROLLOUT&&ae(p))&&(this.sendImpressionEvent(c,r,f,C,d),k=!0);var D=[];v[t.OptimizelyDecideOption.INCLUDE_REASONS]&&(D=h.map((function(e){return m.apply(void 0,l([e[0]],e.slice(1)))})));var L={flagKey:r,enabled:C,variationKey:A,ruleKey:x,variables:P,reasons:D,decisionEventDispatched:k};return this.notificationCenter.sendNotifications(E.DECISION,{type:S.FLAG,userId:f,attributes:d,decisionInfo:L}),{variationKey:A,enabled:C,variables:P,ruleKey:x,flagKey:r,userContext:e,reasons:D}},e.prototype.getAllDecideOptions=function(e){var r=this,n=c({},this.defaultDecideOptions);return Array.isArray(e)?e.forEach((function(e){t.OptimizelyDecideOption[e]?n[e]=!0:r.logger.log(_.WARNING,I.UNRECOGNIZED_DECIDE_OPTION,"OPTIMIZELY",e)})):this.logger.log(_.DEBUG,I.INVALID_DECIDE_OPTIONS,"OPTIMIZELY"),n},e.prototype.decideForKeys=function(e,r,n){var i=this;void 0===n&&(n=[]);var o={};if(!this.isValidInstance())return this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","decideForKeys"),o;if(0===r.length)return o;var a=this.getAllDecideOptions(n);return r.forEach((function(r){var s=i.decide(e,r,n);a[t.OptimizelyDecideOption.ENABLED_FLAGS_ONLY]&&!s.enabled||(o[r]=s)})),o},e.prototype.decideAll=function(e,t){void 0===t&&(t=[]);var r=this.projectConfigManager.getConfig();if(!this.isValidInstance()||!r)return this.logger.log(_.ERROR,I.INVALID_OBJECT,"OPTIMIZELY","decideAll"),{};var n=Object.keys(r.featureKeyMap);return this.decideForKeys(e,n,t)},e}(),qe=function(){function e(e){var t=this;this.logger=e.logger,this.errorHandler=e.errorHandler,this.notificationListeners={},h(E).forEach((function(e){t.notificationListeners[e]=[]})),this.listenerId=1}return e.prototype.addNotificationListener=function(e,t){try{if(!(h(E).indexOf(e)>-1))return-1;this.notificationListeners[e]||(this.notificationListeners[e]=[]);var r=!1;if((this.notificationListeners[e]||[]).forEach((function(e){e.callback!==t||(r=!0)})),r)return-1;this.notificationListeners[e].push({id:this.listenerId,callback:t});var n=this.listenerId;return this.listenerId+=1,n}catch(e){return this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e),-1}},e.prototype.removeNotificationListener=function(e){var t=this;try{var r,n;if(Object.keys(this.notificationListeners).some((function(i){return(t.notificationListeners[i]||[]).every((function(t,o){return t.id!==e||(r=o,n=i,!1)})),void 0!==r&&void 0!==n})),void 0!==r&&void 0!==n)return this.notificationListeners[n].splice(r,1),!0}catch(e){this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e)}return!1},e.prototype.clearAllNotificationListeners=function(){var e=this;try{h(E).forEach((function(t){e.notificationListeners[t]=[]}))}catch(e){this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.clearNotificationListeners=function(e){try{this.notificationListeners[e]=[]}catch(e){this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.sendNotifications=function(e,t){var r=this;try{(this.notificationListeners[e]||[]).forEach((function(n){var i=n.callback;try{i(t)}catch(t){r.logger.log(_.ERROR,I.NOTIFICATION_LISTENER_EXCEPTION,"NOTIFICATION_CENTER",e,t.message)}}))}catch(e){this.logger.log(_.ERROR,e.message),this.errorHandler.handleError(e)}},e}(),Ze=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(o.LogTierV1EventProcessor.bind.apply(o.LogTierV1EventProcessor,l([void 0],e)))};function $e(e,t,r,n){var i={sdkKey:e};if((void 0===n||"object"==typeof n&&null!==n)&&b.assign(i,n),r){var o=oe({datafile:r,jsonSchemaValidator:void 0,logger:t}),a=o.configObj,s=o.error;s&&t.error(s),a&&(i.datafile=ie(a))}return new u.HttpPollingDatafileManager(i)}o.LocalStoragePendingEventsDispatcher;var Xe=i.getLogger();i.setLogHandler(M()),i.setLogLevel(i.LogLevel.INFO);var Je=!1,Qe=function(e){try{var t=!1;e.errorHandler&&i.setErrorHandler(e.errorHandler),e.logger&&(i.setLogHandler(e.logger),i.setLogLevel(i.LogLevel.NOTSET)),void 0!==e.logLevel&&i.setLogLevel(e.logLevel);try{(function(e){if("object"==typeof e&&null!==e){var t=e,r=t.errorHandler,n=t.eventDispatcher,i=t.logger;if(r&&"function"!=typeof r.handleError)throw new Error(m(O.INVALID_ERROR_HANDLER,P));if(n&&"function"!=typeof n.dispatchEvent)throw new Error(m(O.INVALID_EVENT_DISPATCHER,P));if(i&&"function"!=typeof i.log)throw new Error(m(O.INVALID_LOGGER,P));return!0}throw new Error(m(O.INVALID_CONFIG,P))})(e),t=!0}catch(e){Xe.error(e)}var r=void 0;null==e.eventDispatcher?(r=new o.LocalStoragePendingEventsDispatcher({eventDispatcher:L}),Je||(r.sendPendingEvents(),Je=!0)):r=e.eventDispatcher;var n=e.eventBatchSize,a=e.eventFlushInterval;(function(e){return!("number"!=typeof e||!b.isSafeInteger(e))&&e>=1})(e.eventBatchSize)||(Xe.warn("Invalid eventBatchSize %s, defaulting to %s",e.eventBatchSize,10),n=10),function(e){return!("number"!=typeof e||!b.isSafeInteger(e))&&e>0}(e.eventFlushInterval)||(Xe.warn("Invalid eventFlushInterval %s, defaulting to %s",e.eventFlushInterval,1e3),a=1e3);var s=i.getErrorHandler(),u=new qe({logger:Xe,errorHandler:s}),l={dispatcher:r,flushInterval:a,batchSize:n,maxQueueSize:e.eventMaxQueueSize||1e4,notificationCenter:u},f=c(c({clientEngine:"javascript-sdk"},e),{eventProcessor:Ze(l),logger:Xe,errorHandler:s,datafileManager:e.sdkKey?$e(e.sdkKey,Xe,e.datafile,e.datafileOptions):void 0,notificationCenter:u,isValidInstance:t}),d=new We(f);try{if("function"==typeof window.addEventListener){var p="onpagehide"in window?"pagehide":"unload";window.addEventListener(p,(function(){d.close()}),!1)}}catch(e){Xe.error(I.UNABLE_TO_ATTACH_UNLOAD,"INDEX_BROWSER",e.message)}return d}catch(e){return Xe.error(e),null}},et=function(){Je=!1},tt={logging:V,errorHandler:D,eventDispatcher:L,enums:C,setLogger:i.setLogHandler,setLogLevel:i.setLogLevel,createInstance:Qe,__internalResetRetryState:et,OptimizelyDecideOption:t.OptimizelyDecideOption};Object.defineProperty(t,"setLogLevel",{enumerable:!0,get:function(){return i.setLogLevel}}),Object.defineProperty(t,"setLogger",{enumerable:!0,get:function(){return i.setLogHandler}}),t.__internalResetRetryState=et,t.createInstance=Qe,t.default=tt,t.enums=C,t.errorHandler=D,t.eventDispatcher=L,t.logging=V},9364:(e,t,r)=>{var n=r(605),i=r(6925),o=i;o.v1=n,o.v4=i,e.exports=o},8152:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},1020:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},605:(e,t,r)=>{var n,i,o=r(1020),a=r(8152),s=0,u=0;e.exports=function(e,t,r){var c=t&&r||0,l=t||[],f=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==d){var p=o();null==f&&(f=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=i=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(g-u)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=g,i=d;var y=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var E=0;E<6;++E)l[c+E]=f[E];return t||a(l)}},6925:(e,t,r)=>{var n=r(1020),i=r(8152);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},2606:function(e,t,r){var n;e.exports=(n=r(9196),function(){var e={378:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},145:function(e,t,r){"use strict";r.r(t),t.default="@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-popover{bottom:96px;position:fixed;right:16px;z-index:10001}.tf-v1-popover.open{max-width:100%;min-height:360px;min-width:360px}.tf-v1-popover-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;opacity:0;transition:opacity 0.25s ease-in-out;border-radius:4px;box-shadow:rgba(0,0,0,0.08) 0 2px 4px,rgba(0,0,0,0.06) 0 2px 12px}.tf-v1-popover-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-popover-close{display:none}.tf-v1-popover-button{width:54px;height:54px;position:fixed;box-shadow:0 2px 12px rgba(0,0,0,0.06),0 2px 4px rgba(0,0,0,0.08);color:white;right:26px;bottom:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#3a7685;line-height:0;border:none;padding:0}.tf-v1-popover-button-icon{width:54px;height:54px;font-size:24px;border-radius:50%;overflow:hidden;display:flex;justify-content:center;align-items:center}.tf-v1-popover-button-icon svg.default{margin-top:6px}.tf-v1-popover-button-icon svg,.tf-v1-popover-button-icon img{max-width:54px;max-height:54px}.tf-v1-popover-button-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.tf-v1-popover-tooltip{position:fixed;right:94px;bottom:33px;max-width:240px;padding:10px 25px 10px 10px;border-radius:8px;background:#ffffff;box-shadow:0 2px 4px rgba(0,0,0,0.08),0 2px 12px rgba(0,0,0,0.06);font-size:14px;font-family:Helvetica, Arial, sans-serif;line-height:22px}.tf-v1-popover-tooltip::before{background-color:#ffffff;content:'';display:block;width:12px;height:12px;position:absolute;right:-4px;bottom:15px;transform:rotate(45deg);box-shadow:2px -2px 2px 0 rgba(0,0,0,0.06)}.tf-v1-popover-tooltip-text{overflow:hidden}.tf-v1-popover-tooltip-close{color:rgba(0,0,0,0.2);cursor:pointer;margin-left:4px;display:inline-block;width:20px;height:20px;font-size:18px;text-align:center;position:absolute;top:8px;right:6px}.tf-v1-popover-tooltip-close:hover{color:rgba(0,0,0,0.3)}.tf-v1-popover-tooltip.closing{transition:opacity 0.25s ease-in-out;opacity:0}.tf-v1-popover-unread-dot{width:8px;height:8px;border-radius:50%;background-color:#fa6b05;border:2px solid #fff;position:absolute;top:2px;right:2px}.tf-v1-popover-unread-dot.closing{transition:opacity 0.25s ease-in-out;opacity:0}.tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media (max-width: 480px){.tf-v1-popover.open{top:0;left:0;bottom:0;right:0;width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-popover.open .tf-v1-popover-close{display:block}.tf-v1-popover-wrapper{border-radius:0;box-shadow:none}.tf-v1-popover-wrapper iframe{border-radius:0}.tf-v1-popover-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:0.5rem;right:0.5rem;z-index:1;opacity:0}.tf-v1-popover-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-popover-close{color:#fff !important}}@media (max-width: 480px){.tf-v1-popover-button{width:44px;height:44px;right:8px;bottom:8px}.tf-v1-popover-button-icon{font-size:20px}.tf-v1-popover-button-icon svg{margin-top:4px;max-height:24px;max-width:24px}.tf-v1-popover-button-icon img{max-width:44px;max-height:44px}.tf-v1-popover-tooltip{position:fixed;right:66px;bottom:8px;left:auto;font-size:12px}.tf-v1-popover-tooltip::before{bottom:14px}.tf-v1-popover-unread-dot{top:0;right:0}.tf-v1-spinner{border:3px solid #aaa;font-size:32px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px}}\n"},792:function(e,t,r){"use strict";r.r(t),t.default="@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.75);transition:opacity 0.25s ease-in-out;z-index:10001;display:flex;align-items:center;justify-content:center}.tf-v1-popup .tf-v1-iframe-wrapper{position:relative;transition:opacity 0.25s ease-in-out;min-width:360px;min-height:360px}.tf-v1-popup .tf-v1-iframe-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-popup .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:-34px;right:0}.tf-v1-popup .tf-v1-close:hover{opacity:1}@media (min-width: 481px){.tf-v1-popup .tf-v1-close{color:#fff !important}}.tf-v1-popup .tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media (max-width: 480px){.tf-v1-popup{width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-popup .tf-v1-iframe-wrapper{position:relative;transition:opacity 0.25s ease-in-out;min-width:100%;min-height:100%}.tf-v1-popup .tf-v1-iframe-wrapper iframe{border-radius:0}.tf-v1-popup .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px}.tf-v1-popup .tf-v1-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-popup .tf-v1-close{color:#fff !important}}\n"},838:function(e,t,r){"use strict";r.r(t),t.default="@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-sidetab{position:fixed;top:50%;right:0;width:400px;height:580px;transform:translate(100%, -50%);box-shadow:0 2px 4px rgba(0,0,0,0.08),0 2px 12px rgba(0,0,0,0.06);z-index:10001;will-change:transform}.tf-v1-sidetab.ready{transition:transform 250ms ease-in-out}.tf-v1-sidetab iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px 0 0 8px}.tf-v1-sidetab.open{transform:translate(0, -50%)}.tf-v1-sidetab-wrapper{position:relative;height:100%}.tf-v1-sidetab-button{position:absolute;top:50%;left:-48px;transform:rotate(-90deg) translateX(-50%);transform-origin:left top;min-width:100px;max-width:540px;height:48px;display:flex;align-items:center;padding:0 16px;border-radius:8px 8px 0 0;color:white;box-shadow:0 2px 4px rgba(0,0,0,0.08),0 2px 12px rgba(0,0,0,0.06);background-color:#3a7685;cursor:pointer;border:0;text-decoration:none;outline:none}.tf-v1-sidetab-button-text{flex:1;font-size:18px;font-family:Helvetica, Arial, sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tf-v1-sidetab-button-icon{width:24px;height:24px;font-size:24px;transform:rotate(90deg);margin-right:12px;position:relative;order:-1}.tf-v1-sidetab-button-icon>img{width:100%;height:100%;object-fit:contain}.tf-v1-sidetab-close{display:none}.tf-v1-sidetab .tf-v1-spinner{border:3px solid #aaa;font-size:24px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;top:0;left:0;margin:0}@media (max-width: 480px){.tf-v1-sidetab{transition:unset}.tf-v1-sidetab.ready{transition:unset}.tf-v1-sidetab.open{top:0;left:0;right:0;bottom:0;transform:translate(0, 0);width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-sidetab-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;display:block;top:6px;right:8px;z-index:1}.tf-v1-sidetab-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-sidetab-close{color:#fff !important}}\n"},630:function(e,t,r){"use strict";r.r(t),t.default="@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-slider{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.75);transition:opacity 0.25s ease-in-out;z-index:10001}.tf-v1-slider .tf-v1-iframe-wrapper{height:100%;position:absolute;top:0;transition:right 0.5s ease-in-out, left 0.5s ease-in-out}.tf-v1-slider .tf-v1-iframe-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden}@media (min-width: 481px){.tf-v1-slider .tf-v1-iframe-wrapper iframe{border-radius:8px 0 0 8px}}.tf-v1-slider .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000}.tf-v1-slider .tf-v1-close:hover{opacity:1}@media (min-width: 481px){.tf-v1-slider .tf-v1-close{color:#fff !important}}@media (min-width: 481px){.tf-v1-slider .tf-v1-close{top:4px;left:-24px}}.tf-v1-slider .tf-v1-close:hover{opacity:1}.tf-v1-slider .tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media (min-width: 481px){.tf-v1-slider.left .tf-v1-iframe-wrapper iframe{border-radius:0 8px 8px 0}.tf-v1-slider.left .tf-v1-close{left:auto;right:-24px}}@media (max-width: 480px){.tf-v1-slider{width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-slider .tf-v1-iframe-wrapper{width:100% !important;height:100%;transition:unset}.tf-v1-slider .tf-v1-iframe-wrapper iframe{border-radius:none}.tf-v1-slider .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;left:auto}.tf-v1-slider .tf-v1-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-slider .tf-v1-close{color:#fff !important}}\n"},684:function(e,t,r){"use strict";r.r(t),t.default=".tf-v1-widget{width:100%;height:100%;position:relative}.tf-v1-widget iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-widget-close{display:none}.tf-v1-widget-iframe-overlay{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px;position:absolute;top:0;left:0}.tf-v1-widget-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10001;width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-widget-fullscreen .tf-v1-widget-close{display:block;position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:4px;right:6px;z-index:1}.tf-v1-widget-fullscreen .tf-v1-widget-close:hover{opacity:1}@media (min-width: 481px){.tf-v1-widget-fullscreen .tf-v1-widget-close{color:#fff !important}}.tf-v1-widget-fullscreen iframe{border-radius:0}\n"},281:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(11),t),i(r(739),t),i(r(860),t)},794: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}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineStyle=void 0;var o=i(r(297)),a=i(r(52));t.InlineStyle=function(e){var t=e.filename,i=r(367)("./"+t+".css"),s=a.default();return o.default.createElement("style",n({},s?{nonce:s}:{}),i.default)}},11: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}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=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.makeButtonComponent=void 0;var u=a(r(297)),c=r(794),l={unmount:function(){},open:function(){}};t.makeButtonComponent=function(e,t){return function(r){var i=r.id,o=r.children,a=r.as,f=void 0===a?"button":a,d=r.style,p=void 0===d?{}:d,h=r.className,g=void 0===h?"":h,v=r.buttonProps,y=s(r,["id","children","as","style","className","buttonProps"]),m=u.useRef(l);u.useEffect((function(){return m.current=e(i,y),function(){return m.current.unmount()}}),[i,y]);var E=u.useMemo((function(){return function(){return m.current.open()}}),[]),b=u.default.createElement(f,n({style:p,className:g,onClick:E,"data-testid":"tf-v1-"+t,children:o},v));return u.default.createElement(u.default.Fragment,null,u.default.createElement(c.InlineStyle,{filename:t}),b)}}},739:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=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.makeInitializerComponent=void 0;var s=o(r(297)),u=r(794);t.makeInitializerComponent=function(e,t){return function(r){var n=r.id,i=a(r,["id"]);return s.useEffect((function(){var t=e(n,i);return function(){t.unmount()}}),[n,i]),s.default.createElement(u.InlineStyle,{filename:t})}}},860: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}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=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.Widget=void 0;var u=a(r(297)),c=r(611),l=r(794);t.Widget=function(e){var t=e.id,r=e.style,i=void 0===r?{}:r,o=e.className,a=void 0===o?"":o,f=s(e,["id","style","className"]),d=u.useRef(null);return u.useEffect((function(){if(d.current){var e=c.createWidget(t,n(n({},f),{container:d.current}));return function(){e.unmount()}}}),[t,f]),u.default.createElement(u.default.Fragment,null,u.default.createElement(l.InlineStyle,{filename:"widget"}),u.default.createElement("div",{style:i,className:a,ref:d}))}},582:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sidetab=t.Popover=t.SliderButton=t.PopupButton=t.Widget=void 0;var n=r(611),i=r(281),o=r(797),a=o.memoComponent(i.Widget);t.Widget=a;var s=o.memoComponent(i.makeButtonComponent(n.createPopup,"popup"));t.PopupButton=s;var u=o.memoComponent(i.makeButtonComponent(n.createSlider,"slider"));t.SliderButton=u;var c=o.memoComponent(i.makeInitializerComponent(n.createPopover,"popover"));t.Popover=c;var l=o.memoComponent(i.makeInitializerComponent(n.createSidetab,"sidetab"));t.Sidetab=l},797:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(553),t)},553: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.memoComponent=t.propsAreEqual=void 0;var i=r(297),o=n(r(378));t.propsAreEqual=function(e,t){return o.default(e,t)},t.memoComponent=function(e){return i.memo(e,t.propsAreEqual)}},52:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return void 0!==r.g.__webpack_nonce__?r.g.__webpack_nonce__:null}},367:function(e,t,r){var n={"./popover.css":145,"./popup.css":792,"./sidetab.css":838,"./slider.css":630,"./widget.css":684};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=367},611:function(e){e.exports=function(){"use strict";var e={27:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORM_BASE_URL=t.POPUP_SIZE=t.SLIDER_WIDTH=t.SLIDER_POSITION=t.SIDETAB_ATTRIBUTE=t.WIDGET_ATTRIBUTE=t.SLIDER_ATTRIBUTE=t.POPUP_ATTRIBUTE=t.POPOVER_ATTRIBUTE=void 0,t.POPOVER_ATTRIBUTE="data-tf-popover",t.POPUP_ATTRIBUTE="data-tf-popup",t.SLIDER_ATTRIBUTE="data-tf-slider",t.WIDGET_ATTRIBUTE="data-tf-widget",t.SIDETAB_ATTRIBUTE="data-tf-sidetab",t.SLIDER_POSITION="right",t.SLIDER_WIDTH=800,t.POPUP_SIZE=100,t.FORM_BASE_URL="https://form.typeform.com"},528:function(e,t,r){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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPopover=void 0;var i=r(747),o=r(320),a=function(e,t){var r=e.parentNode;r&&(r.removeChild(e),r.appendChild(t))},s=function(e,t){void 0===e&&(e="div"),void 0===t&&(t="tf-v1-popover-button-icon");var r=document.createElement(e);return r.className=t+" tf-v1-close-icon",r.innerHTML="×",r.dataset.testid=t,r},u={buttonColor:"#3a7685"};t.createPopover=function(e,t){void 0===t&&(t={});var r,c,l,f=n(n({},u),t),d=i.createIframe(e,"popover",f),p=d.iframe,h=d.embedId,g=d.refresh,v=function(e,t){var r=document.createElement("div");return r.className="tf-v1-popover",r.dataset.testid="tf-v1-popover",i.setElementSize(r,{width:e,height:t})}(f.width,f.height),y=function(){var e=document.createElement("div");return e.className="tf-v1-popover-wrapper",e.dataset.testid="tf-v1-popover-wrapper",e}(),m=function(e,t){var r=i.getTextColor(t),n=document.createElement("div");n.className="tf-v1-popover-button-icon";var o='<svg class="default" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M21 0H0V9L10.5743 24V16.5H21C22.6567 16.5 24 15.1567 24 13.5V3C24 1.34325 22.6567 0 21 0ZM7.5\n 9.75C6.672 9.75 6 9.07875 6 8.25C6 7.42125 6.672 6.75 7.5 6.75C8.328 6.75 9 7.42125 9 8.25C9 9.07875 8.328 9.75\n 7.5 9.75ZM12.75 9.75C11.922 9.75 11.25 9.07875 11.25 8.25C11.25 7.42125 11.922 6.75 12.75 6.75C13.578 6.75 14.25\n 7.42125 14.25 8.25C14.25 9.07875 13.578 9.75 12.75 9.75ZM18 9.75C17.172 9.75 16.5 9.07875 16.5 8.25C16.5 7.42125\n 17.172 6.75 18 6.75C18.828 6.75 19.5 7.42125 19.5 8.25C19.5 9.07875 18.828 9.75 18 9.75Z" fill="'+r+'"></path>\n </svg>',a=null==e?void 0:e.startsWith("http");return n.innerHTML=a?"<img alt='popover trigger icon button' src='"+e+"'/>":null!=e?e:o,n.dataset.testid="default-icon",n}(f.customIcon,f.buttonColor||u.buttonColor),E=function(){var e=document.createElement("div");e.className="tf-v1-spinner";var t=document.createElement("div");return t.className="tf-v1-popover-button-icon",t.dataset.testid="spinner-icon",t.append(e),t}(),b=s(),_=s("a","tf-v1-popover-close"),O=function(e){var t=i.getTextColor(e),r=document.createElement("button");return r.className="tf-v1-popover-button",r.dataset.testid="tf-v1-popover-button",r.style.backgroundColor=e,r.style.color=t,r}(f.buttonColor||u.buttonColor);(f.container||document.body).append(v),y.append(p),v.append(O),v.append(_),O.append(m);var I=function(){c&&c.parentNode&&(c.classList.add("closing"),setTimeout((function(){i.unmountElement(c)}),250))};f.tooltip&&f.tooltip.length>0&&(c=function(e,t){var r=document.createElement("span");r.className="tf-v1-popover-tooltip-close",r.dataset.testid="tf-v1-popover-tooltip-close",r.innerHTML="×",r.onclick=t;var n=document.createElement("div");n.className="tf-v1-popover-tooltip-text",n.innerHTML=e;var i=document.createElement("div");return i.className="tf-v1-popover-tooltip",i.dataset.testid="tf-v1-popover-tooltip",i.appendChild(n),i.appendChild(r),i}(f.tooltip,I),v.append(c)),f.notificationDays&&(f.enableSandbox||o.canBuildNotificationDot(e))&&(l=o.buildNotificationDot(),O.append(l)),p.onload=function(){v.classList.add("open"),y.style.opacity="1",_.style.opacity="1",a(E,b),i.addCustomKeyboardListener(w)};var T=i.makeAutoResize(v),S=function(){i.isOpen(y)||(I(),l&&(l.classList.add("closing"),f.notificationDays&&!f.enableSandbox&&o.saveNotificationDotHideUntilTime(e,f.notificationDays),setTimeout((function(){i.unmountElement(l)}),250)),T(),window.addEventListener("resize",T),setTimeout((function(){i.isInPage(y)?(y.style.opacity="0",_.style.opacity="0",y.style.display="flex",setTimeout((function(){v.classList.add("open"),y.style.opacity="1",_.style.opacity="1"})),a(m,b)):(v.append(y),a(m,E),y.style.opacity="0",_.style.opacity="0")})))},w=function(){var e;i.isOpen(v)&&(null===(e=t.onClose)||void 0===e||e.call(t),setTimeout((function(){f.keepSession?y.style.display="none":i.unmountElement(y),v.classList.remove("open"),a(b,m)}),250))};i.setAutoClose(h,f.autoClose,w);var R=function(){i.isOpen(y)?w():S()};return O.onclick=R,_.onclick=w,f.open&&!i.isOpen(y)&&(r=i.handleCustomOpen(S,f.open,f.openValue)),{open:S,close:w,toggle:R,refresh:g,unmount:function(){i.unmountElement(v),window.removeEventListener("resize",T),f.open&&(null==r?void 0:r.remove)&&r.remove()}}}},797:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(528),t),i(r(100),t)},320:function(e,t){var r=this&&this.__assign||function(){return(r=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.buildNotificationDot=t.canBuildNotificationDot=t.saveNotificationDotHideUntilTime=void 0;var n="tfNotificationData",i=function(){var e=localStorage.getItem(n);return e?JSON.parse(e):{}},o=function(e){e&&localStorage.setItem(n,JSON.stringify(e))};t.saveNotificationDotHideUntilTime=function(e,t){var n,a=new Date;a.setDate(a.getDate()+t),o(r(r({},i()),((n={})[e]={hideUntilTime:a.getTime()},n)))},t.canBuildNotificationDot=function(e){var t=function(e){var t;return(null===(t=i()[e])||void 0===t?void 0:t.hideUntilTime)||0}(e);return(new Date).getTime()>t&&(t&&function(e){var t=i();delete t[e],o(t)}(e),!0)},t.buildNotificationDot=function(){var e=document.createElement("span");return e.className="tf-v1-popover-unread-dot",e.dataset.testid="tf-v1-popover-unread-dot",e}},100:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},630:function(e,t,r){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.createPopup=void 0;var i=r(747),o=r(27),a=r(747);t.createPopup=function(e,t){if(void 0===t&&(t={}),!i.hasDom())return{open:function(){},close:function(){},toggle:function(){},refresh:function(){},unmount:function(){}};var r,s=t.width,u=t.height,c=t.size,l=void 0===c?o.POPUP_SIZE:c,f=t.onClose,d=n(t,["width","height","size","onClose"]),p=i.createIframe(e,"popup",d),h=p.iframe,g=p.embedId,v=p.refresh,y=document.body.style.overflow,m=function(){var e=document.createElement("div");return e.className="tf-v1-popup",e.dataset.testid="tf-v1-popup",e.style.opacity="0",e}(),E=function(){var e=document.createElement("div");return e.className="tf-v1-spinner",e}(),b=function(e,t,r){var n=document.createElement("div");return n.className="tf-v1-iframe-wrapper",n.style.opacity="0",i.isDefined(e)&&i.isDefined(t)?i.setElementSize(n,{width:e,height:t}):(n.style.width="calc("+r+"% - 80px)",n.style.height="calc("+r+"% - 80px)",n)}(s,u,l);b.append(h),m.append(E),m.append(b);var _=d.container||document.body;h.onload=function(){b.style.opacity="1",setTimeout((function(){E.style.display="none"}),250),i.addCustomKeyboardListener(T)};var O=a.makeAutoResize(m),I=function(){a.isOpen(m)||(a.isInPage(m)?m.style.display="flex":(E.style.display="block",_.append(m)),document.body.style.overflow="hidden",O(),window.addEventListener("resize",O),setTimeout((function(){m.style.opacity="1"})))},T=function(){a.isOpen(m)&&(null==f||f(),m.style.opacity="0",document.body.style.overflow=y,setTimeout((function(){d.keepSession?m.style.display="none":S()}),250))};b.append(function(e){var t=document.createElement("a");return t.className="tf-v1-close tf-v1-close-icon",t.innerHTML="×",t.onclick=e,t}(T)),i.setAutoClose(g,d.autoClose,T),d.open&&!a.isOpen(m)&&(r=i.handleCustomOpen(I,d.open,d.openValue));var S=function(){i.unmountElement(m),window.removeEventListener("resize",O),d.open&&(null==r?void 0:r.remove)&&r.remove()};return{open:I,close:T,toggle:function(){a.isOpen(m)?T():I()},refresh:v,unmount:S}}},970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(630),t),i(r(394),t)},394:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},382:function(e,t,r){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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createSidetab=void 0;var i=r(747),o={buttonColor:"#3a7685",buttonText:"Launch me"},a=function(e,t){void 0===e&&(e="div"),void 0===t&&(t="tf-v1-sidetab-button-icon");var r=document.createElement(e);return r.className=t+" tf-v1-close-icon",r.innerHTML="×",r.dataset.testid=t,r},s=function(e,t){var r=e.parentNode;r&&(r.removeChild(e),r.appendChild(t))};t.createSidetab=function(e,t){void 0===t&&(t={});var r,u=n(n({},o),t),c=i.createIframe(e,"side-tab",u),l=c.iframe,f=c.embedId,d=c.refresh,p=function(e,t){var r=document.createElement("div");return r.className="tf-v1-sidetab",r.dataset.testid="tf-v1-sidetab",i.setElementSize(r,{width:e,height:t})}(u.width,u.height),h=function(){var e=document.createElement("div");return e.className="tf-v1-sidetab-wrapper",e.dataset.testid="tf-v1-sidetab-wrapper",e}(),g=function(){var e=document.createElement("div");e.className="tf-v1-spinner";var t=document.createElement("div");return t.className="tf-v1-sidetab-button-icon",t.dataset.testid="spinner-icon",t.append(e),t}(),v=function(e){var t=i.getTextColor(e),r=document.createElement("button");return r.className="tf-v1-sidetab-button",r.style.backgroundColor=e,r.style.color=t,r}(u.buttonColor||o.buttonColor),y=function(e){var t=document.createElement("span");return t.className="tf-v1-sidetab-button-text",t.innerHTML=e,t}(u.buttonText||o.buttonText),m=function(e,t){var r=i.getTextColor(t),n=document.createElement("div");n.className="tf-v1-sidetab-button-icon";var o='<svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M21 0H0V9L10.5743 24V16.5H21C22.6567 16.5 24 15.1567 24 13.5V3C24 1.34325 22.6567 0 21 0ZM7.5 9.75C6.672 9.75 6 9.07875 6 8.25C6 7.42125 6.672 6.75 7.5 6.75C8.328 6.75 9 7.42125 9 8.25C9 9.07875 8.328 9.75 7.5 9.75ZM12.75 9.75C11.922 9.75 11.25 9.07875 11.25 8.25C11.25 7.42125 11.922 6.75 12.75 6.75C13.578 6.75 14.25 7.42125 14.25 8.25C14.25 9.07875 13.578 9.75 12.75 9.75ZM18 9.75C17.172 9.75 16.5 9.07875 16.5 8.25C16.5 7.42125 17.172 6.75 18 6.75C18.828 6.75 19.5 7.42125 19.5 8.25C19.5 9.07875 18.828 9.75 18 9.75Z" fill="'+r+'"></path>\n </svg>',a=null==e?void 0:e.startsWith("http");return n.innerHTML=a?"<img alt='popover trigger icon button' src='"+e+"'/>":null!=e?e:o,n.dataset.testid="default-icon",n}(u.customIcon,u.buttonColor||o.buttonColor),E=a(),b=a("a","tf-v1-sidetab-close");(u.container||document.body).append(p),h.append(l),p.append(v),p.append(b),v.append(m),v.append(y),setTimeout((function(){p.classList.add("ready")}),250),l.onload=function(){p.classList.add("open"),s(g,E),i.addCustomKeyboardListener(I)};var _=i.makeAutoResize(p),O=function(){i.isOpen(h)||(_(),window.addEventListener("resize",_),i.isInPage(h)?(h.style.display="flex",p.classList.add("open"),s(m,E)):(p.append(h),s(m,g)))},I=function(){var e;i.isOpen(h)&&(null===(e=u.onClose)||void 0===e||e.call(u),p.classList.remove("open"),setTimeout((function(){u.keepSession?h.style.display="none":i.unmountElement(h),s(E,m)}),250))};i.setAutoClose(f,u.autoClose,I);var T=function(){i.isOpen(h)?I():O()};return v.onclick=T,b.onclick=I,u.open&&!i.isOpen(h)&&(r=i.handleCustomOpen(O,u.open,u.openValue)),{open:O,close:I,toggle:T,refresh:d,unmount:function(){i.unmountElement(p),window.removeEventListener("resize",_),u.open&&(null==r?void 0:r.remove)&&r.remove()}}}},434:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(382),t),i(r(668),t)},668:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},603:function(e,t,r){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.createSlider=void 0;var i=r(747),o=r(27);t.createSlider=function(e,t){if(void 0===t&&(t={}),!i.hasDom())return{open:function(){},close:function(){},toggle:function(){},refresh:function(){},unmount:function(){}};var r,a=t.position,s=void 0===a?o.SLIDER_POSITION:a,u=t.width,c=void 0===u?o.SLIDER_WIDTH:u,l=t.onClose,f=n(t,["position","width","onClose"]),d=i.createIframe(e,"slider",f),p=d.iframe,h=d.embedId,g=d.refresh,v=document.body.style.overflow,y=function(e){var t=document.createElement("div");return t.className="tf-v1-slider "+e,t.dataset.testid="tf-v1-slider",t.style.opacity="0",t}(s),m=function(){var e=document.createElement("div");return e.className="tf-v1-spinner",e}(),E=function(e,t){var r=document.createElement("div");return r.className="tf-v1-iframe-wrapper",r.style[e]="-100%",i.setElementSize(r,{width:t})}(s,c);E.append(p),y.append(m),y.append(E);var b=f.container||document.body;p.onload=function(){E.style[s]="0",setTimeout((function(){m.style.display="none"}),500),i.addCustomKeyboardListener(I)};var _=i.makeAutoResize(y),O=function(){i.isOpen(y)||(_(),window.addEventListener("resize",_),i.isInPage(y)?(y.style.display="flex",setTimeout((function(){E.style[s]="0"}))):(b.append(y),m.style.display="block"),document.body.style.overflow="hidden",setTimeout((function(){y.style.opacity="1"})))},I=function(){i.isOpen(y)&&(null==l||l(),y.style.opacity="0",E.style[s]="-100%",document.body.style.overflow=v,setTimeout((function(){f.keepSession?y.style.display="none":T()}),500))};i.setAutoClose(h,f.autoClose,I),E.append(function(e){var t=document.createElement("a");return t.className="tf-v1-close tf-v1-close-icon",t.innerHTML="×",t.onclick=e,t}(I)),f.open&&!i.isOpen(y)&&(r=i.handleCustomOpen(O,f.open,f.openValue));var T=function(){i.unmountElement(y),window.removeEventListener("resize",_),f.open&&(null==r?void 0:r.remove)&&r.remove()};return{open:O,close:I,toggle:function(){i.isOpen(y)?I():O()},refresh:g,unmount:T}}},331:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(603),t),i(r(162),t)},162:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},718:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.createWidget=void 0;var n=r(747),i=r(554),o=r(313);t.createWidget=function(e,t){if(!n.hasDom())return{refresh:function(){},unmount:function(){}};var r=t;t.inlineOnMobile||!t.forceTouch&&!n.isFullscreen()||(r.enableFullscreen=!0,r.forceTouch=!0);var a=n.createIframe(e,"widget",r),s=a.embedId,u=a.iframe,c=a.refresh,l=o.buildWidget(u,t.width,t.height);if(r.autoResize){var f="string"==typeof r.autoResize?r.autoResize.split(",").map((function(e){return parseInt(e)})):[],d=f[0],p=f[1];window.addEventListener("message",i.getFormHeightChangedHandler(s,(function(e){var r=Math.max(e.height+20,d||0);p&&(r=Math.min(r,p)),t.container.style.height=r+"px"})))}var h,g=function(){return t.container.append(l)};if(t.container.innerHTML="",t.lazy?n.lazyInitialize(t.container,g):g(),r.enableFullscreen){var v="",y=t.container,m=n.makeAutoResize(y),E=y.style.height;window.addEventListener("message",i.getWelcomeScreenHiddenHandler(s,(function(){y.classList.add("tf-v1-widget-fullscreen"),void 0!==t.opacity&&(y.style.backgroundColor=v),m(),window.addEventListener("resize",m)}))),window.addEventListener("message",i.getFormThemeHandler(s,(function(e){var t;v=n.changeColorOpacity(null===(t=null==e?void 0:e.theme)||void 0===t?void 0:t.backgroundColor)})));var b=((h=document.createElement("a")).className="tf-v1-widget-close tf-v1-close-icon",h.innerHTML="×",h);b.onclick=function(){var e;if(window.removeEventListener("resize",m),y.style.height=E,null===(e=t.onClose)||void 0===e||e.call(t),y.classList.remove("tf-v1-widget-fullscreen"),y.style.backgroundColor="",t.keepSession){var r=document.createElement("div");r.className="tf-v1-widget-iframe-overlay",r.onclick=function(){y.classList.add("tf-v1-widget-fullscreen"),n.unmountElement(r)},l.append(r)}else t.container.innerHTML="",g(),y.append(b)},y.append(b)}return{refresh:c,unmount:function(){return n.unmountElement(l)}}}},419:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.buildWidget=void 0;var n=r(747);t.buildWidget=function(e,t,r){var i=document.createElement("div");return i.className="tf-v1-widget",i.dataset.testid="tf-v1-widget",i.append(e),n.setElementSize(i,{width:t,height:r})}},313:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(419),t)},321:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(718),t),i(r(58),t)},58:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},920:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(797),t),i(r(970),t),i(r(331),t),i(r(321),t),i(r(434),t)},626:function(e,t,r){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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.buildIframeSrc=void 0;var i=r(27),o=r(527),a=r(346),s=r(698),u={widget:"embed-widget",popup:"popup-blank",slider:"popup-drawer",popover:"popup-popover","side-tab":"popup-side-panel"};t.buildIframeSrc=function(e){var t=e.formId,r=e.type,c=e.embedId,l=e.options,f=function(e,t,r){var i=r.transitiveSearchParams,o=r.source,a=r.medium,c=r.mediumVersion,l=r.hideFooter,f=r.hideHeaders,d=r.opacity,p=r.disableTracking,h=r.enableSandbox,g=r.disableAutoFocus,v=r.shareGaInstance,y=r.forceTouch,m=r.enableFullscreen,E=r.tracking,b=r.redirectTarget,_=s.getTransitiveSearchParams(i);return n(n(n({},{"typeform-embed-id":t,"typeform-embed":u[e],"typeform-source":o,"typeform-medium":a,"typeform-medium-version":c,"embed-hide-footer":l?"true":void 0,"embed-hide-headers":f?"true":void 0,"embed-opacity":d,"disable-tracking":p||h?"true":void 0,"disable-auto-focus":g?"true":void 0,"__dangerous-disable-submissions":h?"true":void 0,"share-ga-instance":v?"true":void 0,"force-touch":y?"true":void 0,"add-placeholder-ws":"widget"===e&&m?"true":void 0,"typeform-embed-redirect-target":b}),_),E)}(r,c,function(e){return n(n({},{source:null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.hostname.replace(/^www\./,""),medium:"embed-sdk",mediumVersion:"next"}),o.removeUndefinedKeys(e));var t}(l)),d=function(e,t){void 0===t&&(t=!1);var r=t?"c":"to";return new URL(e.startsWith("http://")||e.startsWith("https://")?e:i.FORM_BASE_URL+"/"+r+"/"+e)}(t,l.chat);if(Object.entries(f).filter((function(e){var t=e[1];return a.isDefined(t)})).forEach((function(e){var t=e[0],r=e[1];d.searchParams.set(t,r)})),l.hidden){var p=new URL(i.FORM_BASE_URL);Object.entries(l.hidden).filter((function(e){var t=e[1];return a.isDefined(t)})).forEach((function(e){var t=e[0],r=e[1];p.searchParams.set(t,r)}));var h=p.searchParams.toString();h&&(d.hash=h)}return d.href}},391:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.changeColorOpacity=void 0,t.changeColorOpacity=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=255),e.startsWith("rgba(")?null==e?void 0:e.replace(/, [\d.]+\)$/,", "+t+")"):e}},972:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.handleCustomOpen=void 0;var r={remove:function(){}};t.handleCustomOpen=function(e,t,n){switch(t){case"load":return e(),r;case"exit":return n?function(e,t){var r=0,n=function(i){i.clientY<e&&i.clientY<r?(document.removeEventListener("mousemove",n,!0),t()):r=i.clientY};return document.addEventListener("mousemove",n,!0),{remove:function(){return document.removeEventListener("mousemove",n,!0)}}}(n,e):r;case"time":return setTimeout((function(){e()}),n),r;case"scroll":return n?function(e,t){function r(){var n=window.pageYOffset||document.documentElement.scrollTop,i=document.documentElement.clientTop||0,o=document.documentElement.scrollHeight,a=n-i,s=a/o*100,u=a+window.innerHeight>=o;(s>=e||u)&&(t(),document.removeEventListener("scroll",r))}return document.addEventListener("scroll",r),{remove:function(){return document.removeEventListener("scroll",r)}}}(n,e):r;default:return r}}},553:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.createIframe=void 0;var n=r(626),i=r(747),o=r(866),a=r(554),s=r(256),u=r(144),c=r(511);t.createIframe=function(e,t,r){var l=o.generateEmbedId(),f=r.iframeProps,d=void 0===f?{}:f,p=r.onReady,h=r.onQuestionChanged,g=r.onHeightChanged,v=r.onSubmit,y=r.onEndingButtonClick,m=r.shareGaInstance,E=n.buildIframeSrc({formId:e,embedId:l,type:t,options:r}),b=document.createElement("iframe");return b.src=E,b.dataset.testid="iframe",b.style.border="0px",b.allow="microphone; camera",Object.keys(d).forEach((function(e){b.setAttribute(e,d[e])})),b.addEventListener("load",s.triggerIframeRedraw,{once:!0}),window.addEventListener("message",a.getFormReadyHandler(l,p)),window.addEventListener("message",a.getFormQuestionChangedHandler(l,h)),window.addEventListener("message",a.getFormHeightChangedHandler(l,g)),window.addEventListener("message",a.getFormSubmitHandler(l,v)),window.addEventListener("message",a.getFormThemeHandler(l,(function(e){var t;if(null==e?void 0:e.theme){var r=document.querySelector(".tf-v1-close-icon");r&&(r.style.color=null===(t=e.theme)||void 0===t?void 0:t.color)}}))),window.addEventListener("message",a.getThankYouScreenButtonClickHandler(l,y)),"widget"!==t&&window.addEventListener("message",u.dispatchCustomKeyEventFromIframe),m&&window.addEventListener("message",a.getFormReadyHandler(l,(function(){i.setupGaInstance(b,l,m)}))),{iframe:b,embedId:l,refresh:function(){return c.refreshIframe(b)}}}},866:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.generateEmbedId=void 0,t.generateEmbedId=function(){var e=Math.random();return String(e).split(".")[1]}},554:function(e,t){var r=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};function n(e,t,n){return function(i){var o=i.data,a=o.type,s=o.embedId,u=r(o,["type","embedId"]);a===e&&s===t&&(null==n||n(u))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getThankYouScreenButtonClickHandler=t.getFormThemeHandler=t.getWelcomeScreenHiddenHandler=t.getFormSubmitHandler=t.getFormHeightChangedHandler=t.getFormQuestionChangedHandler=t.getFormReadyHandler=void 0,t.getFormReadyHandler=function(e,t){return n("form-ready",e,t)},t.getFormQuestionChangedHandler=function(e,t){return n("form-screen-changed",e,t)},t.getFormHeightChangedHandler=function(e,t){return n("form-height-changed",e,t)},t.getFormSubmitHandler=function(e,t){return n("form-submit",e,t)},t.getWelcomeScreenHiddenHandler=function(e,t){return n("welcome-screen-hidden",e,t)},t.getFormThemeHandler=function(e,t){return n("form-theme",e,t)},t.getThankYouScreenButtonClickHandler=function(e,t){return n("thank-you-screen-button-click",e,t)}},339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(553),t),i(r(144),t)},511:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.refreshIframe=void 0,t.refreshIframe=function(e){if(e){var t=e.src;if(t.includes("&refresh")){var r=t.split("&refresh#");e.src=r.join("#")}else(r=t.split("#"))[0]=r[0]+"&refresh",e.src=r.join("#")}}},144:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.dispatchCustomKeyEventFromIframe=t.removeCustomKeyboardListener=t.addCustomKeyboardListener=void 0;var i="Escape",o=function(e,o){return r(void 0,void 0,void 0,(function(){return n(this,(function(r){return e.code===i&&"function"==typeof o&&(o(),t.removeCustomKeyboardListener()),[2]}))}))};t.addCustomKeyboardListener=function(e){return window.document.addEventListener("keydown",(function(t){return o(t,e)}))},t.removeCustomKeyboardListener=function(){return window.document.removeEventListener("keydown",o)},t.dispatchCustomKeyEventFromIframe=function(e){"form-close"===e.data.type&&window.document.dispatchEvent(new KeyboardEvent("keydown",{code:i}))}},256:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.triggerIframeRedraw=void 0,t.triggerIframeRedraw=function(){this.style.transform="translateZ(0)"}},939:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getTextColor=void 0;var n=r(938);t.getTextColor=function(e){if(!e)return"#FFFFFF";var t=e.startsWith("#")?n.hexRgb(e):function(e){var t={red:0,green:0,blue:0},r=e.match(/\d+/g);return r&&(t.red=parseInt(r[0],10),t.green=parseInt(r[0],10),t.blue=parseInt(r[0],10)),t}(e),r=t.red,i=t.green,o=t.blue;return Math.round((299*r+587*i+114*o)/1e3)>125?"#000000":"#FFFFFF"}},698:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitiveSearchParams=void 0,t.getTransitiveSearchParams=function(e){var t=new URL(window.location.href),r={};return e&&e.length>0&&e.forEach((function(e){t.searchParams.has(e)&&(r[e]=t.searchParams.get(e))})),r}},252:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasDom=void 0,t.hasDom=function(){return"undefined"!=typeof document&&"undefined"!=typeof window}},938:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hexRgb=void 0;var r=new RegExp("[^#a-f\\d]","gi"),n=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");t.hexRgb=function(e){if("string"!=typeof e||r.test(e)||!n.test(e))throw new TypeError("Expected a valid hex string");8===(e=e.replace(/^#/,"")).length&&(e=e.slice(0,6)),4===e.length&&(e=e.slice(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=Number.parseInt(e,16);return{red:t>>16,green:t>>8&255,blue:255&t}}},71:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.includeCss=void 0,t.includeCss=function(e){var t=function(e){return"https://embed.typeform.com/next/css/"+e}(e);if(!document.querySelector('link[href="'+t+'"]')){var r=document.createElement("link");r.rel="stylesheet",r.href=t,document.head.append(r)}}},747:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(626),t),i(r(339),t),i(r(252),t),i(r(71),t),i(r(346),t),i(r(377),t),i(r(563),t),i(r(527),t),i(r(533),t),i(r(451),t),i(r(972),t),i(r(748),t),i(r(392),t),i(r(939),t),i(r(917),t),i(r(987),t),i(r(318),t),i(r(391),t)},346:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isDefined=void 0,t.isDefined=function(e){return null!=e}},987:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isVisible=t.isInPage=t.isOpen=void 0,t.isOpen=function(e){return t.isInPage(e)&&t.isVisible(e)},t.isInPage=function(e){return!!e.parentNode},t.isVisible=function(e){return"none"!==e.style.display}},917:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.lazyInitialize=void 0,t.lazyInitialize=function(e,t){var r=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(t(),r.unobserve(e.target))}))}));r.observe(e)}},377:function(e,t){var r=this&&this.__assign||function(){return(r=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.loadOptionsFromAttributes=t.transformAttributeValue=t.camelCaseToKebabCase=void 0,t.camelCaseToKebabCase=function(e){return e.split("").map((function(e,t){return e.toUpperCase()===e?(0!==t?"-":"")+e.toLowerCase():e})).join("")};var n=function(e){return e||void 0},i=function(e){return""===e||"yes"===e||"true"===e},o=function(e){var t=e?parseInt(e,10):NaN;return isNaN(t)?void 0:t},a="%ESCAPED_COMMA%";t.transformAttributeValue=function(e,t){var s,u;switch(t){case"string":return n(e);case"boolean":return i(e);case"integer":return o(e);case"function":return function(e){var t=e&&e in window?window[e]:void 0;return"function"==typeof t?t:void 0}(e);case"array":return function(e){if(e)return e.replace(/\s/g,"").replace(/\\,/g,a).split(",").filter((function(e){return!!e})).map((function(e){return e.replace(a,",")}))}(e);case"record":return function(e){if(e)return e.replace(/\\,/g,a).split(",").filter((function(e){return!!e})).map((function(e){return e.replace(a,",")})).reduce((function(e,t){var n,i=t.match(/^([^=]+)=(.*)$/);if(i){var o=i[1],a=i[2];return r(r({},e),((n={})[o.trim()]=a,n))}return e}),{})}(e);case"integerOrBoolean":return null!==(s=o(e))&&void 0!==s?s:i(e);case"stringOrBoolean":return null!==(u=n(e))&&void 0!==u?u:i(e);default:throw new Error("Invalid attribute transformation "+t)}},t.loadOptionsFromAttributes=function(e,n){return Object.keys(n).reduce((function(i,o){var a;return r(r({},i),((a={})[o]=t.transformAttributeValue(e.getAttribute("data-tf-"+t.camelCaseToKebabCase(o)),n[o]),a))}),{})}},318:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.makeAutoResize=void 0;var n=r(563);t.makeAutoResize=function(e){return function(){e&&n.isMobile()&&e.style.setProperty("height",window.innerHeight+"px","important")}}},563:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isFullscreen=t.isMobile=t.isBigScreen=void 0,t.isBigScreen=function(){return window.screen.width>=1024&&window.screen.height>=768},t.isMobile=function(){return/mobile|tablet|android/i.test(navigator.userAgent.toLowerCase())},t.isFullscreen=function(){return t.isMobile()&&!t.isBigScreen()}},527:function(e,t,r){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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.removeUndefinedKeys=void 0;var i=r(346);t.removeUndefinedKeys=function(e){return Object.entries(e).filter((function(e){var t=e[1];return i.isDefined(t)})).reduce((function(e,t){var r,i=t[0],o=t[1];return n(n({},e),((r={})[i]=o,r))}),{})}},748:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.setAutoClose=void 0;var n=r(554);t.setAutoClose=function(e,t,r){if(t&&r){var i="number"==typeof t?t:0;window.addEventListener("message",n.getFormSubmitHandler(e,(function(){return setTimeout(r,i)})))}}},533:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setElementSize=void 0,t.setElementSize=function(e,t){var r=t.width,n=t.height;return r&&(e.style.width=r+"px"),n&&(e.style.height=n+"px"),e}},392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setupGaInstance=t.sendGaIdMessage=void 0,t.sendGaIdMessage=function(e,t,r){var n={embedId:e,gaClientId:t};setTimeout((function(){r&&r.contentWindow&&r.contentWindow.postMessage({type:"ga-client-id",data:n},"*")}),0)};var r=function(e){console.error(e)};t.setupGaInstance=function(e,n,i){try{var o=window[window.GoogleAnalyticsObject],a="string"==typeof i?i:void 0,s=function(e,t){return t?e.find((function(e){return e.get("trackingId")===t})):e[0]}(o.getAll(),a);s?t.sendGaIdMessage(n,s.get("clientId"),e):r("Whoops! You enabled the shareGaInstance feature in your typeform embed but the tracker with ID "+a+" was not found. Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page and use correct tracker ID. ")}catch(e){r("Whoops! You enabled the shareGaInstance feature in your typeform embed but the Google Analytics object has not been found. Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page. "),r(e)}}},451:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.unmountElement=void 0,t.unmountElement=function(e){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}},t={};return function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(920)}()},297:function(e){"use strict";e.exports=n}},t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(582)}())},5747:(e,t,r)=>{"use strict";var n=r(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.getMandatoryProperties=T,t.setCollectUntrackedEvents=function(e){b.collectUntrackedEvents=e},t.updateMandatoryProperties=A,t.isInitialized=N,t.isLoading=C,t.identify=P,t.group=k,t.reset=D,t.collectEvent=j,t.sendEvent=M,t.sendPage=U,t.setUserProperties=F,t.incrementUserProperty=V,t.updateWidget=B,t.sendOrder=G,t.trackPresentConversation=K,t.trackStartConversation=z,t.trackAbTest=H,t.trackCreateTypeform=Y,t.trackTypeformDeleted=W,t.trackPublishTypeform=q,t.trackChangeDesign=Z,t.trackUseFeature=$,t.trackIntegrationSetup=X,t.trackIntegrationUsed=J,t.trackItemClicked=Q,t.trackSaveFailed=ee,t.trackViewPageSection=te,t.trackPopupOpened=re,t.trackPopupClosed=ne,t.trackMenuOpened=ie,t.trackAccountSwitched=oe,t.trackBlockDefined=ae,t.trackBlockDeleted=se,t.trackWorkspaceCreated=ue,t.trackPanelOpened=ce,t.trackProTrialStarted=le,t.trackAnswerChanged=fe,t.sendEventWithCache=de,t.trackSurfaceOpened=pe,t.trackSearchQueryEntered=he,t.trackSearchQueryRemoved=ge,t.trackTmpUseFeature=ve,t.trackTmpPopupOpened=ye,t.trackTmpItemClicked=me,t.trackTmpViewPageSection=Ee,t.trackTmpMessageShown=be,t.onTrackingDataReady=_e,t.trackMessageShown=Ie,t.trackTmpPageNavigated=Te,t.trackPageNavigated=Se,t.trackPageClosed=we,t.default=t.SUPPORTED_PROVIDERS=void 0;var i,o=n(r(1284)),a=n(r(7156)),s=n(r(215)),u=n(r(8698)),c=n(r(861)),l=n(r(8416)),f=n(r(6808)),d=r(2807),p=n(r(3831)),h=r(454),g=r(1066);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){(0,l.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m={RUDDERSTACK:d.RUDDERSTACK,SEGMENT:d.SEGMENT};t.SUPPORTED_PROVIDERS=m,"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[]);var E,b={dataLayerPush:!1,optimizelyIntegration:!1,providers:(i={},(0,l.default)(i,d.SEGMENT,{isLoading:function(){return!!window.analytics&&!N(d.SEGMENT)},initialized:function(){var e,t,r;return(null===(e=window)||void 0===e||null===(t=e.analytics)||void 0===t?void 0:t.invoked)||(null===(r=window.analytics)||void 0===r?void 0:r.initialized)}}),(0,l.default)(i,d.RUDDERSTACK,{isLoading:function(){return!!window.rudderanalytics&&!N(d.RUDDERSTACK)},initialized:function(){var e,t;return null===(e=window)||void 0===e||null===(t=e.rudderanalytics)||void 0===t?void 0:t.initialized}}),i),collectUntrackedEvents:!0},_={email:null},O={},I=[];function T(){return O}function S(){var e=(0,c.default)(I);I=[],e.forEach((function(e){e()}))}function w(e,t){var r="init was not called with mandatoryProperties. Cannot call ".concat(e,". Please call init with the mandatoryProperties.");p.default.warn(r),t&&t({error:r})}function R(e){var t=e.key,n=e.options;N(m.SEGMENT)||(r(2948),window.analytics.load(t,n),window.dataLayer.push({event:"segment_loaded"}),b.collectUntrackedEvents&&window.analytics.ready(S))}function x(e){var t=e.name,n=e.config;if(!N(t))if(n)if(n.key)try{switch(t){case d.RUDDERSTACK:!function(e){if(e.dataPlaneUrl){if(!N(m.RUDDERSTACK)){r(788),r(4529);var t=e.dataPlaneUrl,n=e.key,i=e.options;window.rudderanalytics.load(n,t,i),b.collectUntrackedEvents&&window.rudderanalytics.ready(S)}}else p.default.warn("Rudderstack tracking could not be initialised because 'config.dataPlaneUrl' is not valid.")}(n);break;case d.SEGMENT:default:R(n)}}catch(e){return void p.default.error("There was an error when initialising ".concat(t," tracking. Please report this error to the library maintainers: "),e)}else p.default.warn("".concat(t," tracking cannot be initialised because 'config.key' is not valid"));else p.default.warn("".concat(t," tracking cannot be initialised because no config was provided"))}function A(e){e&&(O=y(y({},O),e))}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.SEGMENT;return b.providers[e].initialized()}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.SEGMENT;return b.providers[e].isLoading()}function P(e,t,r,n){N(d.SEGMENT)?(t&&t.email&&(_.email=t.email),window.analytics.identify(e,t,r,n)):n&&n()}function k(e,t,r,n){N(d.SEGMENT)?window.analytics.group(e,t,r,n):n&&n()}function D(){N(d.SEGMENT)&&window.analytics.reset(),N(d.RUDDERSTACK)&&window.rudderanalytics.reset()}function L(e,t,r,n){!function(e){e&&!e.email&&(null===_.email&&(_.email=function(){var e=window.analytics.user;if(void 0!==e)return e().traits().email||null}()||null),null!==_.email&&(e.email=_.email))}(t);var i=r;b.optimizelyIntegration&&!d.EVENTS_BLOCKED_FROM_OPTIMIZELY.includes(e)&&(i=function(e){var t=f.default.get(d.OPTIMIZELY_USER_COOKIE_ID),r="function"!=typeof e&&e||{};if(t){var n={Optimizely:y({userId:t},r.Optimizely)};r=y(y({},r),n)}return r}(r),"function"==typeof r&&(n=r)),window.analytics.track(e,t,i,n)}function j(e,t,r,n){I.push((function(){M(e,t,r,n)}))}function M(e,t,r,n){var i,o=Object.values(m).filter(N),a=o.length>0,s=Object.values(m).some(C);return a?("object"!==(0,u.default)(t)&&p.default.warn("sendEvent called without properties"),b.dataLayerPush&&window.dataLayer.push(y({event:e},t)),Promise.all(o.map((function(n){return new Promise((function(i,o){try{switch(n){case d.RUDDERSTACK:!function(e,t,r,n){window.rudderanalytics.track(e,t,r,n)}(e,t,r,i);break;case d.SEGMENT:default:L(e,t,r,i)}}catch(e){p.default.warn("An error occurred while tracking on ".concat(n,": ").concat(e)),o(e)}}))}))).finally((function(){n&&n()}))):(s||p.default.warn("sendEvent was called when trackingService has not been initialized",{eventName:e,properties:t,options:r}),"function"==typeof t&&(n=t),"function"==typeof r&&(n=r),null===(i=n)||void 0===i||i(),void(b.collectUntrackedEvents&&j(e,t,r,n)))}function U(e,t){N(d.SEGMENT)&&window.analytics.page(e,t)}function F(e,t,r){N(d.SEGMENT)?(t&&t.email&&(_.email=t.email),window.analytics.identify(e,t,{},r)):r&&r()}function V(e,t){N(d.SEGMENT)&&window.analytics.identify(e,{},{integrations:{Intercom:{increments:t}}})}function B(){N(d.SEGMENT)&&void 0!==window.Intercom&&window.Intercom("update")}function G(e){N(d.SEGMENT)&&(window.analytics.track("Added Product",e.product),window.analytics.track("Completed Order",{orderId:e.transactionId,total:e.total,revenue:e.total,currency:e.currency,label:e.sku,products:[e.product]}))}function K(e,t,r){var n=e.attribution_uid,i=e.distribution_channel,o=void 0===i?"standard":i,a=(0,s.default)(e,["attribution_uid","distribution_channel"]);if(!n){var u="The attribution_uid property is mandatory. Cannot call trackPresentConversation. Please send with the attribution_uid property";return p.default.warn(u),void(r&&r({error:u}))}M("present_conversation",y({attribution_uid:n,distribution_channel:o},a),t,r)}function z(e,t,r){var n=e.attribution_uid,i=e.distribution_channel,o=void 0===i?"standard":i,a=(0,s.default)(e,["attribution_uid","distribution_channel"]);if(!n){var u="The attribution_uid property is mandatory. Cannot call trackStartConversation. Please send with the attribution_uid property";return p.default.warn(u),void(r&&r({error:u}))}M("start_conversation",y({attribution_uid:n,distribution_channel:o},a),t,r)}function H(e,t,r){var n=e.test_id,i=e.variant_id,o=e.variant_label,a=(0,s.default)(e,["test_id","variant_id","variant_label"]);if(!o){if(!i){var u="trackAbTest was called without a variant_label. Cannot call trackAbTest. Please call with a variant_label.";return p.default.warn(u),void(r&&r({error:u}))}p.default.warn("trackAbTest was called with variant_id instead of variant_label. Please call with a variant_label."),o=i.toString()}o!==d.OUT_OF_EXPERIMENT?M("ab_test",y(y({test_id:n,variant_label:o},O),a),t,r):r&&r()}function Y(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackCreateTypeform",r);M("create_typeform",y(y({category:i},O),o),t,r)}function W(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackTypeformDeleted",r);M("typeform_deleted",y(y({category:i},O),o),t,r)}function q(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackPublishTypeform",r);M("publish_typeform",y(y({category:i},O),o),t,r)}function Z(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackChangeDesign",r);M("change_design",y(y({category:i},O),o),t,r)}function $(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackUseFeature",r);M("use_feature",y(y({category:i},O),o),t,r)}function X(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackIntegrationSetup",r);M("integration_setup",y(y({category:i},O),o),t,r)}function J(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackIntegrationUsed",r);M("integration_used",y(y({category:i},O),o),t,r)}function Q(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackItemClicked",r);M("item_clicked",y(y({category:i},O),o),t,r)}function ee(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackSaveFailed",r);M("form_save_failed",y(y({category:i},O),o),t,r)}function te(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackViewPageSection",r);M("view_page_section",y(y({category:i},O),o),t,r)}function re(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackPopupOpened",r);M("popup_opened",y(y({category:i},O),o),t,r)}function ne(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackPopupClosed",r);M("popup_closed",y(y({category:i},O),o),t,r)}function ie(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackMenuOpened",r);M("menu_opened",y(y({category:i},O),o),t,r)}function oe(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackAccountSwitched",r);M("account_switched",y(y({category:i},O),o),t,r)}function ae(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackBlockDefined",r);M("block_defined",y(y({category:i},O),o),t,r)}function se(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackBlockDeleted",r);M("block_deleted",y(y({category:i},O),o),t,r)}function ue(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackWorkspaceCreated",r);M("workspace_created",y(y({category:i},O),o),t,r)}function ce(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackPanelOpened",r);M("panel_opened",y(y({category:i},O),o),t,r)}function le(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackProTrialStarted",r);M("pro_trial_started",y(y({category:i},O),o),t,r)}function fe(e,t,r){if(!Object.keys(O).length)return w("trackAnswerChanged",r);M("answer_changed",y(y({},O),e),t,r)}function de(e,t,r,n){if(!Object.keys(O).length)return w("sendEventWithCache",n);M(e,y(y({category:t.category||"admin"},O),t),r,n)}function pe(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackSurfaceOpened",r);M("surface_opened",y(y({category:i},O),o),t,r)}function he(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackSearchQueryEntered",r);M("search_query_entered",y(y({category:i},O),o),t,r)}function ge(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackSearchQueryRemoved",r);M("search_query_removed",y(y({category:i},O),o),t,r)}function ve(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=e.test_id,a=e.feature,u=(0,s.default)(e,["category","test_id","feature"]);if(!Object.keys(O).length)return w("trackTmpUseFeature",r);if(!o||!a){var c='"test_id" and "feature" properties are mandatory. Cannot call trackTmpUseFeature.';return p.default.warn(c),void(r&&r({error:c}))}M("tmp_use_feature",y(y({category:i,test_id:o,feature:a},O),u),t,r)}function ye(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=e.test_id,a=e.popup,u=(0,s.default)(e,["category","test_id","popup"]);if(!Object.keys(O).length)return w("trackTmpPopupOpened",r);if(!o||!a){var c='"test_id" and "popup" properties are mandatory. Cannot call trackTmpPopupOpened.';return p.default.warn(c),void(r&&r({error:c}))}M("tmp_popup_opened",y(y({category:i,test_id:o,popup:a},O),u),t,r)}function me(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=e.test_id,a=e.item,u=(0,s.default)(e,["category","test_id","item"]);if(!Object.keys(O).length)return w("trackTmpItemClicked",r);if(!o||!a){var c='"test_id" and "item" properties are mandatory. Cannot call trackTmpItemClicked.';return p.default.warn(c),void(r&&r({error:c}))}M("tmp_item_clicked",y(y({category:i,test_id:o,item:a},O),u),t,r)}function Ee(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=e.test_id,a=e.page,u=e.section,c=(0,s.default)(e,["category","test_id","page","section"]);if(!Object.keys(O).length)return w("trackTmpViewPageSection",r);if(!o||!a||!u){var l='"test_id", "page" and "section" properties are mandatory. Cannot call trackTmpViewPageSection.';return p.default.warn(l),void(r&&r({error:l}))}M("tmp_view_page_section",y(y({category:i,test_id:o,page:a,section:u},O),c),t,r)}function be(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=e.test_id,a=e.message,u=(0,s.default)(e,["category","test_id","message"]);if(!Object.keys(O).length)return w("trackTmpMessageShown",r);if(!o||!a){var c='"test_id" and "message" properties are mandatory. Cannot call trackTmpMessageShown.';return p.default.warn(c),void(r&&r({error:c}))}M("tmp_message_shown",y(y({category:i,test_id:o,message:a},O),u),t,r)}function _e(_x){return Oe.apply(this,arguments)}function Oe(){return(Oe=(0,a.default)(o.default.mark((function e(t){var r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=E)||void 0===r||null===(n=r.onReady)||void 0===n?void 0:n.call(r);case 2:null==t||t();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(e,t,r){var n=e.category,i=void 0===n?"admin":n,o=(0,s.default)(e,["category"]);if(!Object.keys(O).length)return w("trackMessageShown",r);M("message_shown",y(y({category:i},O),o),t,r)}function Te(e,t,r){var n=e.test_id,i=e.item,o=e.value,a=e.location,u=(0,s.default)(e,["test_id","item","value","location"]);if(!Object.keys(O).length)return w("trackTmpPageNavigated",r);if(!(n&&i&&o&&a)){var c='"test_id", "item", "value" and "location" properties are mandatory. Cannot call trackTmpPageNavigated.';return p.default.warn(c),void(r&&r({error:c}))}M("tmp_page_navigated",y(y(y({},O),u),{},{item:i,location:a,test_id:n,value:o}),t,r)}function Se(e,t,r){var n=e.item,i=e.value,o=e.location,a=e.page,u=e.section,c=(0,s.default)(e,["item","value","location","page","section"]);if(!Object.keys(O).length)return w("trackPageNavigated",r);if(!(n&&i&&o&&a&&u)){var l='"item", "value", "location", "page" and "section" properties are mandatory. Cannot call trackPageNavigated.';return p.default.warn(l),void(r&&r({error:l}))}M("page_navigated",y(y(y({},O),c),{},{item:n,location:o,value:i,page:a,section:u}),t,r)}function we(e,t,r){var n=e.page,i=e.section,o=e.category,a=void 0===o?"admin":o,u=(0,s.default)(e,["page","section","category"]);if(!Object.keys(O).length)return w("trackPageClosed",r);M("page_closed",y(y({page:n,section:i,category:a},O),u),t,r)}var Re={init:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.GTM_ID,o=arguments.length>4?arguments[4]:void 0;(0,g.hasLoaded)(i)||(0,g.load)(i),b.dataLayerPush=!0,t&&A(t);var a=(0,h.hasConsentCookie)(),s=(0,h.hasFunctionalConsent)(),u=a&&s;if(u){if(o){var c=r(9889);E=c.createInstance({sdkKey:o.sdkKey||d.OPTIMIZELY_FS_SDK_KEY,eventBatchSize:10,eventFlushInterval:1e3}),window.optimizelyClientInstance=E,b.optimizelyIntegration=!0}var l=y({},n||{});(0,h.hasConsentCookie)()&&(l.integrations=y(y({},null==l?void 0:l.integrations),{},{"Actions Amplitude":!0,FullStory:(0,h.hasTargetingConsent)()})),R({key:e,options:l})}},initRenderer:function(e,t){!e||Array.isArray(e)&&!e.length?p.default.error("There was an error when initialising tracking. No tracking providers were provided"):(t&&A(t),Array.isArray(e)?e.forEach((function(e){e&&x(e)})):x(e))},onTrackingDataReady:_e,identify:P,group:k,reset:D,isInitialized:N,sendEvent:M,getMandatoryProperties:T,sendPage:U,setUserProperties:F,incrementUserProperty:V,updateWidget:B,sendOrder:G,trackPresentConversation:K,trackStartConversation:z,trackAbTest:H,trackCreateTypeform:Y,trackTypeformDeleted:W,trackPublishTypeform:q,trackChangeDesign:Z,trackUseFeature:$,trackIntegrationSetup:X,trackIntegrationUsed:J,trackItemClicked:Q,trackSaveFailed:ee,trackViewPageSection:te,trackPopupOpened:re,trackPopupClosed:ne,trackBlockDefined:ae,trackBlockDeleted:se,trackWorkspaceCreated:ue,trackPanelOpened:ce,trackProTrialStarted:le,trackAnswerChanged:fe,sendEventWithCache:de,trackSurfaceOpened:pe,trackMenuOpened:ie,trackAccountSwitched:oe,trackSearchQueryEntered:he,trackSearchQueryRemoved:ge,trackTmpItemClicked:me,trackTmpPopupOpened:ye,trackTmpUseFeature:ve,trackTmpViewPageSection:Ee,trackTmpMessageShown:be,trackMessageShown:Ie,trackTmpPageNavigated:Te,trackPageNavigated:Se,updateMandatoryProperties:A,trackPageClosed:we};t.default=Re},454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasConsentCookie=function(){var e=s(o),t=s("OptanonAlertBoxClosed");return!!e&&!!t},t.hasPerformanceConsent=function(){return c().includes("2:1")},t.hasFunctionalConsent=function(){return c().includes(u)||function(){if("undefined"==typeof window)return[];var e=s(a);if(e){var t=decodeURIComponent(e);return JSON.parse(t).groups}return[]}().includes("SC")},t.hasTargetingConsent=function(){return c().includes("4:1")},t.gtag=function(){return"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('".concat(i,"', 'default', { '").concat(r,"': 'denied'});\n gtag('").concat(i,"', 'default', { '").concat(n,"': 'denied', 'wait_for_update': 500 });")},t.TARGETING_CATEGORY=t.FUNCTIONAL_CATEGORY=t.PERFORMANCE_CATEGORY=t.REQUIRED_CATEGORY=t.CONSENT=t.AD_STORAGE=t.ANALYTICS_STORAGE=t.ONETRUST_EVENT=t.defaultDataDomainScript=t.scriptSrc=void 0,t.scriptSrc="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",t.defaultDataDomainScript="dc37179a-4de5-4648-bd8f-2f087ec53cbd",t.ONETRUST_EVENT="OneTrustGroupsUpdated";var r="analytics_storage";t.ANALYTICS_STORAGE=r;var n="ad_storage";t.AD_STORAGE=n;var i="consent";t.CONSENT=i;var o="OptanonConsent",a="tf_respondent_cc";function s(e){return(e=new RegExp("(?:^|;\\s*)".concat("".concat(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"=([^;]*)")).exec(document.cookie))&&e[1]}t.REQUIRED_CATEGORY="1:1",t.PERFORMANCE_CATEGORY="2:1";var u="3:1";function c(){if("undefined"==typeof window)return[];var e=s(o);if(e){var t=decodeURIComponent(e);return(new URLSearchParams(t).get("groups")||"").split(",")}return[]}t.FUNCTIONAL_CATEGORY=u,t.TARGETING_CATEGORY="4:1"},2807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RUDDERSTACK=t.SEGMENT=t.EVENTS_BLOCKED_FROM_OPTIMIZELY=t.TEAMS=t.OPTIMIZELY_FS_SDK_KEY=t.OPTIMIZELY_USER_COOKIE_ID=t.GTM_ID=t.OUT_OF_EXPERIMENT=t.VARIANT=t.CONTROL=t.ATTRIBUTION_COOKIE_NAME=void 0,t.ATTRIBUTION_COOKIE_NAME="attribution_user_id",t.CONTROL="control",t.VARIANT="variant",t.OUT_OF_EXPERIMENT="out_of_experiment",t.GTM_ID="GTM-TZXJTPF",t.OPTIMIZELY_USER_COOKIE_ID="experiments-fingerprint",t.OPTIMIZELY_FS_SDK_KEY="SBm6ntFeCh5gmK2jtrxfw",t.TEAMS={DATA:"Data",DATA_ENABLERS:"data_enablers",DATA_PEOPLE:"data_people",DATA_SCIENCE:"data_science",MACHINE_LEARNING:"machine_learning",DEVELOPER_TOWN:"developer_town_developers",DEVELOPERS:"developers",ACTIONABLE_DATA:"actionable_data",PERFORMANCE_ANALYTICS:"perfomance_nalytics",RESPONSE_INSIGHTS:"response_insights",CONVERSATIONS:"conversations",CREATE:"create",PERSONALIZATION:"personalization",RESPOND:"respond",CORPORATE:"corporate",CORPORATE_INFRASTRUCTURE:"corporate_infrastructure",ENTERPRISE_TOOLS:"enterprise_tools",CUSTOMER_ENGAGEMENT:"customer_engagement",DATA_PLATFORM:"data_platform",DATA_ENGINEERING:"data_engineering",DATA_TRACKING:"data_tracking",DEVELOPER_RELATIONS:"developer_relations",ECOSYSTEMS:"ecosystems",BLOCKS:"blocks",CHANNEL_EXPERIENCE:"channel_experience",PARTNERSHIPS:"partnerships",SURFACES:"surfaces",GROWTH:"growth",REVENUE:"revenue",SUBSCRIPTIONS:"subscriptions",WEB:"web",WEB_OPS:"web_ops",SELF_SERVE:"self_serve",HORIZON_3:"horizon_3",PLATFORM:"platform",BACKEND_ARCHITECTURE:"backend_architecture",DEVTOOLS:"devtools",FRONTEND_ARCHITECTURE:"frontend_architecture",SHARED_SERVICES:"shared_services",PRODUCT_INFRAESTRUCTRE:"product_infrastructure",QUALITY:"quality",ENGINEERING_INTELLIGENCE:"engineering_intelligence",QUALITY_ASSISTANCE:"quality_assistance",R_AND_D:"r&d",TEAMS_AND_ENTERPRISE:"teams_and_enterprise",USERS_AND_COLLABORATION:"users_and_collaboration",VIDEOASK:"videoask",VIDEOASK_CORE:"videoask_core",VIDEOASK_FRONTEND:"videoask_frontend",VIDEOASK_GROWTH:"videoask_growth",FINANCE:"finance",GLOBANT_DEVELOPERS:"globant_developers",SECURITY:"security",STICKYEYES:"stickyeyes_developers",THOUGHTWORKS_DEVELOPERS:"thoughtworks_developers",DEFAULT:"no_owner"},t.EVENTS_BLOCKED_FROM_OPTIMIZELY=["experiment_viewed","view_page_section"],t.SEGMENT="segment",t.RUDDERSTACK="rudderstack"},9714:(e,t,r)=>{"use strict";var n=r(5263);Object.defineProperty(t,"__esModule",{value:!0});var i={};t.default=void 0;var o=n(r(5747));Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(4325);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(5785);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=o.default;t.default=u},3831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={warn:function(){var e;(e=console).warn.apply(e,arguments)},error:function(){var e;(e=console).error.apply(e,arguments)}};t.default=r},788:()=>{"use strict";!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://cdn.rudderlabs.com/v1/rudder-analytics.min.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()},4529:()=>{"use strict";!function(){for(var e=window.rudderanalytics=window.rudderanalytics||[],t=["load","page","track","identify","alias","group","ready","reset","getAnonymousId","setAnonymousId"],r=0;r<t.length;r++){var n=t[r];e[n]=function(t){return function(){e.push([t].concat(Array.prototype.slice.call(arguments)))}}(n)}}()},1066:(e,t)=>{"use strict";function r(e){return"gtm-no-script-".concat(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.load=function(e){var t,n=document.createElement("iframe");n.src="https://www.googletagmanager.com/ns.html?id=".concat(e),n.setAttribute("style","display:none;visibility:hidden"),n.setAttribute("height","0"),n.setAttribute("width","0");var i=document.createElement("noscript");i.id=r(e),i.appendChild(n);var o=document.getElementsByTagName("script")[0];null===(t=o.parentNode)||void 0===t||t.insertBefore(i,o)},t.hasLoaded=function(e){var t=r(e);return null!==document.getElementById(t)}},2948:()=>{"use strict";!function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){var r=Array.prototype.slice.call(arguments);return r.unshift(t),e.push(r),e}};for(var t=0;t<e.methods.length;t++){var r=e.methods[t];e[r]=e.factory(r)}e.load=function(t,r){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i),e._loadOptions=r},e._writeKey="YOUR_API_KEY",e.SNIPPET_VERSION="4.15.3"}}()},4325:()=>{},5785:(e,t,r)=>{"use strict";var n=r(2807);Object.values(n.TEAMS)},4226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureTogglerContext=void 0;var n=r(9196);t.FeatureTogglerContext=n.createContext(null)},2722:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.featureTogglerDefaults=t.featureFlagDefaults=void 0,t.featureFlagDefaults={allowUrlOverride:!0},t.featureTogglerDefaults=r(r({},t.featureFlagDefaults),{default:!1})},2452: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.FeatureTogglerProvider=void 0;var i=n(r(9196)),o=n(r(5697)),a=r(4226);t.FeatureTogglerProvider=function(e){return!e.value&&e.skipRenderForEmptyValue?null:i.default.createElement(a.FeatureTogglerContext.Provider,{value:e.value},e.children)},t.FeatureTogglerProvider.displayName="FeatureTogglerProvider",t.FeatureTogglerProvider.propTypes={value:o.default.any,skipRenderForEmptyValue:o.default.bool,children:o.default.any},t.FeatureTogglerProvider.defaultProps={skipRenderForEmptyValue:!0}},4906: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.FeatureToggler=void 0;var i=n(r(9196)),o=n(r(5697)),a=r(9885),s=r(2722);t.FeatureToggler=function(e){return a.useFeatureToggler(e)?i.default.createElement(i.default.Fragment,null,e.children):null},t.FeatureToggler.propTypes={children:o.default.any,flagId:o.default.string.isRequired,flagValue:o.default.any.isRequired,allowUrlOverride:o.default.bool,default:o.default.bool},t.FeatureToggler.defaultProps=s.featureTogglerDefaults},2216:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(9965),t),i(r(9885),t),i(r(2452),t),i(r(4906),t)},9965: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)};Object.defineProperty(t,"__esModule",{value:!0}),t.useFeatureFlag=void 0;var i=r(9196),o=r(4226),a=r(2722);t.useFeatureFlag=function(e){var t=n(n({},a.featureFlagDefaults),e),r=i.useContext(o.FeatureTogglerContext),s=null==r?void 0:r[t.flagId];if(t.allowUrlOverride){var u=new URL(window.location.href).searchParams.get(t.flagId);null!=u&&(s=u)}return s}},9885: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)};Object.defineProperty(t,"__esModule",{value:!0}),t.useFeatureToggler=void 0;var i=r(2722),o=r(9965);t.useFeatureToggler=function(e){var t=n(n({},i.featureTogglerDefaults),e),r=o.useFeatureFlag(t);return null==r?t.default:String(r)===String(t.flagValue)}},8633:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.buildHref=void 0;var i=r(3417);t.buildHref=function(e){return function(t){return n(n([],(r=t.origin,o=t.pathname,a=e.displayLink,a?[a]:["https://",r,o])),[i.buildParamsString(t.queryParams,"?"),i.buildParamsString(t.hashParams,"#")]).join("");var r,o,a}}},3548:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(7930),t)},7930:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardSubdomains=void 0,t.standardSubdomains=["form","survey","quiz","research"]},7302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGenerateFormUrlParams=void 0,t.defaultGenerateFormUrlParams={disableTracking:!1,enableSubmissions:!0,hiddenFields:[],isConversation:!1,includeMedium:!0,forceTouch:!1,alias:null,domain:null,subdomain:"form",omitAliasNamespace:!0,displayLink:null}},8912: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.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generateFormUrl=void 0;var s=a(r(9614)),u=r(7302),c=r(8633),l=r(8958),f=r(1687),d=r(7426),p=r(2028),h=r(4431);t.generateFormUrl=function(e){var t=n(n({},u.defaultGenerateFormUrlParams),e);return s.compose(c.buildHref(t),l.setHashParams(t),f.setSystemQueryParams(t),d.setQueryParams(t),p.setPathname(t),h.setOrigin(t))({})}},8958:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setHashParams=void 0;var a=o(r(9614)),s=r(3417),u=a.pickBy(a.complement(s.isUtmField));t.setHashParams=function(e){return function(t){return t.hashParams=a.compose(u,a.mapObjIndexed(s.parseHiddenFieldValue),s.getObjMap)(e.hiddenFields),t}}},4431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setOrigin=void 0;var n=r(3417);t.setOrigin=function(e){return function(t){return t.origin=n.getOrigin(e),t}}},2028:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setPathname=void 0;var a=o(r(9614)),s=r(3417);t.setPathname=function(e){return function(t){var r=s.getNamespace(e),n=s.getFormIdentifier(e);return t.pathname=["/",[r,n].filter(a.identity).join("/")].join(""),t}}},7426:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setQueryParams=void 0;var a=o(r(9614)),s=r(3417),u=a.pickBy(s.isUtmField);t.setQueryParams=function(e){return function(t){return t.queryParams=a.compose(u,a.mapObjIndexed(s.parseHiddenFieldValue),s.getObjMap)(e.hiddenFields),t}}},1687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSystemQueryParams=void 0,t.setSystemQueryParams=function(e){return function(t){return t.queryParams||(t.queryParams={}),e.includeMedium&&(t.queryParams["typeform-medium"]="embed-snippet"),e.disableTracking&&(t.queryParams["disable-tracking"]="true"),e.forceTouch&&(t.queryParams["force-touch"]="true"),e.enableSubmissions||(t.queryParams["__dangerous-disable-submissions"]=""),t}}},9530:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.buildParamsString=void 0;var a=o(r(9614));t.buildParamsString=function(e,t){return void 0===t&&(t=""),a.compose((function(e){return e?""+t+e:e}),a.join("&"),a.map(a.join("=")),a.map(a.filter(a.identity)),a.toPairs)(e||{})}},9980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnvironment=void 0,t.getEnvironment=function(){var e;try{var t=window.location.hostname.split(".");t.shift(),e=t.join(".")}catch(e){}return e||"typeform.com"}},7234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormIdentifier=void 0;var n=r(8302);t.getFormIdentifier=function(e){if(n.isAliasApplicable(e)){if(!e.alias)throw new Error("Alias is not set");return e.alias}if(!e.formId)throw new Error("Form ID is not set");return e.formId}},3431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNamespace=void 0;var n=r(8302);t.getNamespace=function(e){var t=n.isAliasApplicable(e);return e.isConversation?t?"s":"c":t?e.omitAliasNamespace?"":"a":"to"}},4150:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getObjMap=void 0,t.getObjMap=function(e){var t={};return Array.isArray(e)?e.forEach((function(e){t[e]="xxxxx"})):t=e,t}},6447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrigin=void 0;var n=r(9980);t.getOrigin=function(e){if(e.domain)return e.domain;var t=n.getEnvironment();return e.subdomain+"."+t}},3417:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(9980),t),i(r(7234),t),i(r(3431),t),i(r(4150),t),i(r(6447),t),i(r(4559),t),i(r(8843),t),i(r(9530),t),i(r(8302),t)},8302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAliasApplicable=void 0;var n=r(3548),i=r(6447);t.isAliasApplicable=function(e){if(!e.alias)return!1;if(!e.subdomain&&!e.domain)return!1;var t=i.getOrigin(e);return!(t.endsWith("typeform.com")&&n.standardSubdomains.some((function(e){return t.split(".")[0]===e})))}},4559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtmField=void 0,t.isUtmField=function(e,t){return t.toString().toLowerCase().startsWith("utm_")}},8843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseHiddenFieldValue=void 0,t.parseHiddenFieldValue=function(e){var t={iterable:/^\{.+\}$/,mailchimp:/^\*\|.+\|\*$/,marketo:/^\{\{.+\}\}$/,braze:/^\$\{.+\}$/,salesforce:/^\{!.+\}$/,activecampaign:/^%.+%$/};for(var r in t)if(t[r].test(e))return e;return encodeURIComponent(e)}},6960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildFullpage=void 0,t.buildFullpage=function(e){var t=e.title,r=e.formId,n=e.hideHeaders,i=e.hideFooter,o=e.hiddenFieldsString,a=e.medium,s=[" data-tf-inline-on-mobile"];return n&&s.push("data-tf-hide-headers"),i&&s.push("data-tf-hide-footer"),a&&s.push('data-tf-medium="'+a+'"'),'<!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n <title>'+t+'</title>\n <style>*{margin:0;padding:0;} html,body,#wrapper{width:100%;height:100%;} iframe{border-radius:0 !important;}</style>\n </head>\n <body>\n <div id="wrapper" data-tf-widget="'+r+'"'+s.join(" ")+" "+o+'></div>\n <script src="//embed.typeform.com/next/embed.js"><\/script>\n </body>\n </html>'}},4003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildMarkup=void 0,t.buildMarkup=function(e){var t=e.element,r=void 0===t?"div":t,n=e.embedType,i=e.formId,o=e.stringOptions,a=e.hiddenFieldsString,s=e.styles,u=e.text;return"<"+r+" data-tf-"+n+'="'+i+'" '+o+a+' style="'+s+'">'+(void 0===u?"":u)+"</"+r+'><script src="//embed.typeform.com/next/embed.js"><\/script>'}},1666: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)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSnippet=void 0;var i=r(6960),o=r(4003),a=r(1544);t.getSnippet=function(e){var t=e.embedType,r=e.formId,s=e.hiddenFields,u=void 0===s?{}:s,c=e.embedOptions,l=void 0===c?{}:c,f=e.styleOptions,d=void 0===f?{}:f,p=e.extraOptions,h=void 0===p?{}:p,g=e.previewOptions,v=void 0===g?{}:g,y=d.popupType,m=h.fullpage,E=h.showLaunchButton,b=h.label,_=v.isPreview,O=a.stringifyOptions(a.addPreviewSettings(l,v)),I=Object.keys(u).length?" "+a.buildHiddenFields(u):"";if(m&&!_)return i.buildFullpage(n(n({formId:r,hiddenFieldsString:I},l),h));var T=a.buildStyles(a.pickStyles(t,d,E));if("popup"===t||"slider"===t){var S="link"===y?"a":"button",w=E&&b?b:"";return o.buildMarkup({element:S,embedType:t,formId:r,hiddenFieldsString:I,stringOptions:O,styles:T,text:w})}return o.buildMarkup({embedType:t,formId:r,hiddenFieldsString:I,stringOptions:O,styles:T})}},4021:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(1666),t)},1544: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.pickStyles=t.stringifyOptions=t.buildStyles=t.buildHiddenFields=t.addPreviewSettings=void 0;var o=i(r(5683)),a=i(r(9722));t.addPreviewSettings=function(e,t){var r=t.isPreview,i=t.forceTouch;return n(n(n({},e),r?{enableSandbox:!0,disableAutoFocus:!0}:{}),i?{forceTouch:!0}:{})},t.buildHiddenFields=function(e){return'data-tf-hidden="'+Object.entries(e).map((function(e){return e[0]+"="+e[1]})).join(",")+'"'},t.buildStyles=function(e){return Object.entries(e).filter((function(e){var t=e[1];return!a.default(t)})).map((function(e){var t=e[0],r=e[1];return o.default(t)+":"+r+";"})).join("")},t.stringifyOptions=function(e){return e&&Object.entries(e).filter((function(e){var t=e[1];return!1!==t&&!a.default(t)})).map((function(e){var t=e[0],r=e[1],n=!0===r?"":'="'+function(e){return"string"==typeof e?e.replace(/"/g,"""):e}(r)+'"';return"data-tf-"+o.default(t)+n})).join(" ")},t.pickStyles=function(e,t,r){if(void 0===r&&(r=!0),!Object.keys(t).length)return{all:"unset"};var n=t.popupType,i=t.fontSize,o=void 0===i?20:i,a=t.color,s=void 0===a?"#FFFFFF":a,u=t.backgroundColor,c=t.borderRadius,l=void 0===c?0:c;if("widget"===e)return t;if("popover"===e)return{all:"unset"};if("sidetab"===e)return{all:"unset"};if(("popup"===e||"slider"===e)&&!r)return{all:"unset"};if(("popup"===e||"slider"===e)&&"button"===n){var f=2.5*o;return{all:"unset",fontFamily:"Helvetica,Arial,sans-serif",display:"inline-block",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",backgroundColor:u,color:s,fontSize:o+"px",borderRadius:Math.floor(f*(l/200))+"px",padding:"0 "+Math.floor(f/1.5)+"px",fontWeight:"bold",height:f+"px",cursor:"pointer",lineHeight:f+"px",textAlign:"center",margin:"0",textDecoration:"none"}}return{color:u,textDecoration:"underline",fontSize:o+"px",cursor:"pointer"}}},556:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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(8912),t),i(r(4021),t),i(r(2216),t)},9960:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},7915: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.DomHandler=void 0;var o=r(9960),a=r(7790);i(r(7790),t);var s=/\s+/g,u={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=u),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:u,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(s," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},7790: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 __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=r(9960),s=new Map([[a.ElementType.Tag,1],[a.ElementType.Script,1],[a.ElementType.Style,1],[a.ElementType.Directive,1],[a.ElementType.Text,3],[a.ElementType.CDATA,4],[a.ElementType.Comment,8],[a.ElementType.Root,9]]),u=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=s.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=u;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(u);t.DataNode=c;var l=function(e){function t(t){return e.call(this,a.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=l;var f=function(e){function t(t){return e.call(this,a.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=f;var d=function(e){function t(t,r){var n=e.call(this,a.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var p=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(u);t.NodeWithChildren=p;var h=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(p);t.Document=h;var g=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function m(e){return e.type===a.ElementType.Text}function E(e){return e.type===a.ElementType.Comment}function b(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),m(e))r=new l(e.data);else if(E(e))r=new f(e.data);else if(v(e)){var n=t?I(e.children):[],i=new g(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(y(e)){n=t?I(e.children):[];var s=new p(a.ElementType.CDATA,n);n.forEach((function(e){return e.parent=s})),r=s}else if(_(e)){n=t?I(e.children):[];var u=new h(n);n.forEach((function(e){return e.parent=u})),e["x-mode"]&&(u["x-mode"]=e["x-mode"]),r=u}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function I(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=g,t.isTag=v,t.isCDATA=y,t.isText=m,t.isComment=E,t.isDirective=b,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},8679:(e,t,r)=>{"use strict";var n=r(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=u(t),g=u(r),v=0;v<a.length;++v){var y=a[v];if(!(o[y]||n&&n[y]||g&&g[y]||s&&s[y])){var m=d(r,y);try{c(t,y,m)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,E=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case g:case u:return e;default:return t}}case i:return t}}}function O(e){return _(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||_(e)===l},t.isConcurrentMode=O,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===m||e.$$typeof===E||e.$$typeof===b||e.$$typeof===y)},t.typeOf=_},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},885:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},8276:(e,t,r)=>{var n="html",i="head",o="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head.*>/i,u=/<body.*>/i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var f=new window.DOMParser;c=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),f.parseFromString(e,"text/html")}}if(document.implementation){var d=r(1507).isIE,p=document.implementation.createHTMLDocument(d()?"html-dom-parser":void 0);c=function(e,t){return t?(p.documentElement.getElementsByTagName(t)[0].innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var h,g=document.createElement("template");g.content&&(h=function(e){return g.innerHTML=e,g.content.childNodes}),e.exports=function(e){var t,r,f,d,p=e.match(a);switch(p&&p[1]&&(t=p[1].toLowerCase()),t){case n:return r=l(e),s.test(e)||(f=r.getElementsByTagName(i)[0])&&f.parentNode.removeChild(f),u.test(e)||(f=r.getElementsByTagName(o)[0])&&f.parentNode.removeChild(f),r.getElementsByTagName(n);case i:case o:return d=c(e).getElementsByTagName(t),u.test(e)&&s.test(e)?d[0].parentNode.childNodes:d;default:return h?h(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},4152:(e,t,r)=>{var n=r(8276),i=r(1507).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(o);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},1507:(e,t,r)=>{for(var n,i=r(885),o=r(7790),a=i.CASE_SENSITIVE_TAG_NAMES,s=o.Comment,u=o.Element,c=o.ProcessingInstruction,l=o.Text,f={},d=0,p=a.length;d<p;d++)n=a[d],f[n.toLowerCase()]=n;function h(e){for(var t,r={},n=0,i=e.length;n<i;n++)r[(t=e[n]).name]=t.value;return r}function g(e){return function(e){return f[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:h,formatDOM:function e(t,r,n){r=r||null;for(var i=[],o=0,a=t.length;o<a;o++){var f,d=t[o];switch(d.nodeType){case 1:(f=new u(g(d.nodeName),h(d.attributes))).children=e(d.childNodes,f);break;case 3:f=new l(d.nodeValue);break;case 8:f=new s(d.nodeValue);break;default:continue}var p=i[o-1]||null;p&&(p.next=f),f.parent=r,f.prev=p,f.next=null,i.push(f)}return n&&((f=new c(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=i[0]||null,f.parent=r,i.unshift(f),i[1]&&(i[1].prev=i[0])),i},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},488:(e,t,r)=>{var n=r(3670),i=r(484),o=r(4152);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(o(e,(t=t||{}).htmlparser2||a),t)}s.domToReact=n,s.htmlToDOM=o,s.attributesToProps=i,s.Element=r(7915).Element,e.exports=s,e.exports.default=s},484:(e,t,r)=>{var n=r(5726),i=r(4606);function o(e){return n.possibleStandardNames[e]}e.exports=function(e){var t,r,a,s,u,c={},l=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(a=e[t],n.isCustomAttribute(t))c[t]=a;else if(s=o(r=t.toLowerCase()))switch(u=n.getPropertyInfo(s),"checked"!==s&&"value"!==s||l||(s=o("default"+r)),c[s]=a,u&&u.type){case n.BOOLEAN:c[s]=!0;break;case n.OVERLOADED_BOOLEAN:""===a&&(c[s]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=a);return i.setStyleProp(e.style,c),c}},3670:(e,t,r)=>{var n=r(9196),i=r(484),o=r(4606),a=o.setStyleProp,s=o.canTextBeChildOfNode;function u(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var o,c,l,f,d,p=(r=r||{}).library||n,h=p.cloneElement,g=p.createElement,v=p.isValidElement,y=[],m="function"==typeof r.replace,E=r.trim,b=0,_=t.length;b<_;b++)if(o=t[b],m&&v(l=r.replace(o)))_>1&&(l=h(l,{key:l.key||b})),y.push(l);else if("text"!==o.type){switch(f=o.attribs,u(o)?a(f.style,f):f&&(f=i(f)),d=null,o.type){case"script":case"style":o.children[0]&&(f.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?f.defaultValue=o.children[0].data:o.children&&o.children.length&&(d=e(o.children,r));break;default:continue}_>1&&(f.key=b),y.push(g(o.name,f,d))}else{if((c=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(E&&c)continue;y.push(o.data)}return 1===y.length?y[0]:y}},4606:(e,t,r)=>{var n=r(9196),i=r(1476).default,o={reactCompat:!0},a=n.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,i="function"==typeof t,o={},a={};for(r in e)n=e[r],i&&(o=t(r,n))&&2===o.length?a[o[0]]=o[1]:"string"==typeof n&&(a[n]=r);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(u,c):c}e.exports=function(e,u){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var f=1,d=1;function p(e){var t=e.match(r);t&&(f+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function h(){var e={line:f,column:d};return function(t){return t.position=new g(e),E(),t}}function g(e){this.start=e,this.end={line:f,column:d},this.source=u.source}g.prototype.content=e;var v=[];function y(t){var r=new Error(u.source+":"+f+":"+d+": "+t);if(r.reason=t,r.filename=u.source,r.line=f,r.column=d,r.source=e,!u.silent)throw r;v.push(r)}function m(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function E(){m(n)}function b(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return y("End of comment missing");var n=e.slice(2,r-2);return d+=2,p(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}function O(){var e=h(),r=m(i);if(r){if(_(),!m(o))return y("property missing ':'");var n=m(a),u=e({type:"declaration",property:l(r[0].replace(t,c)),value:n?l(n[0].replace(t,c)):c});return m(s),u}}return E(),function(){var e,t=[];for(b(t);e=O();)!1!==e&&(t.push(e),b(t));return t}()}},6808:(e,t,r)=>{var n,i,o;o=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function i(){}function o(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),u=s.slice(1).join("=");r||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(s[0]);if(u=(n.read||n)(u,c)||t(u),r)try{u=JSON.parse(u)}catch(e){}if(i[c]=u,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,r){o(t,"",e(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}((function(){}))},void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i),e.exports=o()},9722:e=>{e.exports=function(e){return null==e}},5683:(e,t,r)=>{var n,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="a-z\\xdf-\\xf6\\xf8-\\xff",s="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="["+u+"]",l="\\d+",f="["+a+"]",d="[^\\ud800-\\udfff"+u+l+"\\u2700-\\u27bf"+a+s+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+s+"]",v="(?:"+f+"|"+d+")",y="(?:"+g+"|"+d+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",E="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",_="[\\ufe0e\\ufe0f]?",O=_+b+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",p,h].join("|")+")"+_+b+")*",I="(?:"+["[\\u2700-\\u27bf]",p,h].join("|")+")"+O,T=RegExp("['’]","g"),S=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]","g"),w=RegExp([g+"?"+f+"+"+m+"(?="+[c,g,"$"].join("|")+")",y+"+"+E+"(?="+[c,g+v,"$"].join("|")+")",g+"?"+v+"+"+m,g+"+"+E,l,I].join("|"),"g"),R=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,x="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,A="object"==typeof self&&self&&self.Object===Object&&self,N=x||A||Function("return this")(),C=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),P=Object.prototype.toString,k=N.Symbol,D=k?k.prototype:void 0,L=D?D.toString:void 0;function j(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==P.call(e)}(e))return L?L.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var M,U=(M=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r,n){for(var i=-1,o=e?e.length:0;++i<o;)r=t(r,e[i],i,e);return r}(function(e,t,r){return e=j(e),void 0===t?function(e){return R.test(e)}(e)?function(e){return e.match(w)||[]}(e):function(e){return e.match(i)||[]}(e):e.match(t)||[]}(function(e){return(e=j(e))&&e.replace(o,C).replace(S,"")}(e).replace(T,"")),M,"")});e.exports=U},8053:e=>{!function(){function t(e,t){var r,n,i,o,a,s,u,c;for(r=3&e.length,n=e.length-r,i=t,a=3432918353,s=461845907,c=0;c<n;)u=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,i=27492+(65535&(o=5*(65535&(i=(i^=u=(65535&(u=(u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,r){case 3:u^=(255&e.charCodeAt(c+2))<<16;case 2:u^=(255&e.charCodeAt(c+1))<<8;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}var r=t;r.v2=function(e,t){for(var r,n=e.length,i=t^n,o=0;n>=4;)r=1540483477*(65535&(r=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0},r.v3=t,e.exports=r}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,u=i(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},2703:(e,t,r)=>{"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9614:(e,t,r)=>{"use strict";r.r(t),r.d(t,{F:()=>n,T:()=>i,__:()=>o,add:()=>c,addIndex:()=>h,adjust:()=>v,all:()=>I,allPass:()=>Q,always:()=>ee,and:()=>te,andThen:()=>Wi,any:()=>ne,anyPass:()=>ie,ap:()=>oe,aperture:()=>ue,append:()=>ce,apply:()=>le,applySpec:()=>pe,applyTo:()=>he,ascend:()=>ge,assoc:()=>ve,assocPath:()=>me,binary:()=>be,bind:()=>N,both:()=>Te,call:()=>we,chain:()=>xe,clamp:()=>Ae,clone:()=>ke,comparator:()=>De,complement:()=>je,compose:()=>Ke,composeK:()=>ze,composeP:()=>We,composeWith:()=>Je,concat:()=>mt,cond:()=>Et,construct:()=>_t,constructN:()=>bt,contains:()=>Ot,converge:()=>It,countBy:()=>wt,curry:()=>Se,curryN:()=>p,dec:()=>Rt,defaultTo:()=>xt,descend:()=>At,difference:()=>Pt,differenceWith:()=>kt,dissoc:()=>Dt,dissocPath:()=>Mt,divide:()=>Ut,drop:()=>Vt,dropLast:()=>Ht,dropLastWhile:()=>qt,dropRepeats:()=>Qt,dropRepeatsWith:()=>Jt,dropWhile:()=>tr,either:()=>nr,empty:()=>ir,endsWith:()=>ar,eqBy:()=>sr,eqProps:()=>ur,equals:()=>it,evolve:()=>cr,filter:()=>ht,find:()=>fr,findIndex:()=>pr,findLast:()=>gr,findLastIndex:()=>yr,flatten:()=>mr,flip:()=>Er,forEach:()=>br,forEachObjIndexed:()=>_r,fromPairs:()=>Or,groupBy:()=>Ir,groupWith:()=>Tr,gt:()=>Sr,gte:()=>wr,has:()=>xr,hasIn:()=>Ar,hasPath:()=>Rr,head:()=>qe,identical:()=>Nr,identity:()=>$e,ifElse:()=>Cr,inc:()=>Pr,includes:()=>kr,indexBy:()=>Dr,indexOf:()=>Lr,init:()=>jr,innerJoin:()=>Mr,insert:()=>Ur,insertAll:()=>Fr,intersection:()=>Kr,intersperse:()=>zr,into:()=>$r,invert:()=>Xr,invertObj:()=>Jr,invoker:()=>Qr,is:()=>en,isEmpty:()=>tn,isNil:()=>ye,join:()=>rn,juxt:()=>nn,keys:()=>z,keysIn:()=>on,last:()=>Xt,lastIndexOf:()=>an,length:()=>un,lens:()=>cn,lensIndex:()=>ln,lensPath:()=>fn,lensProp:()=>dn,lift:()=>Ie,liftN:()=>Oe,lt:()=>pn,lte:()=>hn,map:()=>H,mapAccum:()=>gn,mapAccumRight:()=>vn,mapObjIndexed:()=>yn,match:()=>mn,mathMod:()=>En,max:()=>T,maxBy:()=>bn,mean:()=>In,median:()=>Tn,memoizeWith:()=>Sn,merge:()=>wn,mergeAll:()=>Rn,mergeDeepLeft:()=>Nn,mergeDeepRight:()=>Cn,mergeDeepWith:()=>Pn,mergeDeepWithKey:()=>An,mergeLeft:()=>kn,mergeRight:()=>Dn,mergeWith:()=>Ln,mergeWithKey:()=>xn,min:()=>jn,minBy:()=>Mn,modulo:()=>Un,move:()=>Fn,multiply:()=>Vn,nAry:()=>Ee,negate:()=>Bn,none:()=>Gn,not:()=>Le,nth:()=>W,nthArg:()=>Kn,o:()=>zn,objOf:()=>Yr,of:()=>Yn,omit:()=>Wn,once:()=>qn,or:()=>rr,otherwise:()=>$n,over:()=>Jn,pair:()=>Qn,partial:()=>ti,partialRight:()=>ri,partition:()=>ni,path:()=>Z,pathEq:()=>ii,pathOr:()=>oi,pathSatisfies:()=>ai,paths:()=>q,pick:()=>si,pickAll:()=>ui,pickBy:()=>ci,pipe:()=>Be,pipeK:()=>li,pipeP:()=>Ye,pipeWith:()=>Xe,pluck:()=>X,prepend:()=>fi,product:()=>di,project:()=>hi,prop:()=>$,propEq:()=>gi,propIs:()=>vi,propOr:()=>yi,propSatisfies:()=>mi,props:()=>Ei,range:()=>bi,reduce:()=>J,reduceBy:()=>St,reduceRight:()=>_i,reduceWhile:()=>Oi,reduced:()=>Ii,reject:()=>gt,remove:()=>Lt,repeat:()=>Si,replace:()=>wi,reverse:()=>Ge,scan:()=>Ri,sequence:()=>xi,set:()=>Ai,slice:()=>Fe,sort:()=>Ni,sortBy:()=>Ci,sortWith:()=>Pi,split:()=>ki,splitAt:()=>Di,splitEvery:()=>Li,splitWhen:()=>ji,startsWith:()=>Mi,subtract:()=>Ui,sum:()=>On,symmetricDifference:()=>Fi,symmetricDifferenceWith:()=>Vi,tail:()=>Ve,take:()=>Gt,takeLast:()=>or,takeLastWhile:()=>Bi,takeWhile:()=>Ki,tap:()=>Hi,test:()=>Yi,thunkify:()=>xo,times:()=>Ti,toLower:()=>qi,toPairs:()=>Zi,toPairsIn:()=>$i,toString:()=>yt,toUpper:()=>Xi,transduce:()=>Ji,transpose:()=>Qi,traverse:()=>eo,trim:()=>ro,tryCatch:()=>no,type:()=>Ce,unapply:()=>io,unary:()=>oo,uncurryN:()=>ao,unfold:()=>so,union:()=>uo,unionWith:()=>lo,uniq:()=>Gr,uniqBy:()=>Br,uniqWith:()=>co,unless:()=>fo,unnest:()=>po,until:()=>ho,update:()=>jt,useWith:()=>pi,values:()=>fe,valuesIn:()=>go,view:()=>yo,when:()=>mo,where:()=>Eo,whereEq:()=>bo,without:()=>_o,xor:()=>Oo,xprod:()=>Io,zip:()=>To,zipObj:()=>wo,zipWith:()=>Ro});const n=function(){return!1},i=function(){return!0},o={"@@functional/placeholder":!0};function a(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function s(e){return function t(r){return 0===arguments.length||a(r)?t:e.apply(this,arguments)}}function u(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return a(r)?t:s((function(t){return e(r,t)}));default:return a(r)&&a(n)?t:a(r)?s((function(t){return e(t,n)})):a(n)?s((function(t){return e(r,t)})):e(r,n)}}}const c=u((function(e,t){return Number(e)+Number(t)}));function l(e,t){var r;t=t||[];var n=(e=e||[]).length,i=t.length,o=[];for(r=0;r<n;)o[o.length]=e[r],r+=1;for(r=0;r<i;)o[o.length]=t[r],r+=1;return o}function f(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,i){return t.apply(this,arguments)};case 5:return function(e,r,n,i,o){return t.apply(this,arguments)};case 6:return function(e,r,n,i,o,a){return t.apply(this,arguments)};case 7:return function(e,r,n,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,r,n,i,o,a,s,u){return t.apply(this,arguments)};case 9:return function(e,r,n,i,o,a,s,u,c){return t.apply(this,arguments)};case 10:return function(e,r,n,i,o,a,s,u,c,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function d(e,t,r){return function(){for(var n=[],i=0,o=e,s=0;s<t.length||i<arguments.length;){var u;s<t.length&&(!a(t[s])||i>=arguments.length)?u=t[s]:(u=arguments[i],i+=1),n[s]=u,a(u)||(o-=1),s+=1}return o<=0?r.apply(this,n):f(o,d(e,n,r))}}const p=u((function(e,t){return 1===e?s(t):f(e,d(e,[],t))})),h=s((function(e){return p(e.length,(function(){var t=0,r=arguments[0],n=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=r.apply(this,l(arguments,[t,n]));return t+=1,e},e.apply(this,i)}))}));function g(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return a(r)?t:u((function(t,n){return e(r,t,n)}));case 2:return a(r)&&a(n)?t:a(r)?u((function(t,r){return e(t,n,r)})):a(n)?u((function(t,n){return e(r,t,n)})):s((function(t){return e(r,n,t)}));default:return a(r)&&a(n)&&a(i)?t:a(r)&&a(n)?u((function(t,r){return e(t,r,i)})):a(r)&&a(i)?u((function(t,r){return e(t,n,r)})):a(n)&&a(i)?u((function(t,n){return e(r,t,n)})):a(r)?s((function(t){return e(t,n,i)})):a(n)?s((function(t){return e(r,t,i)})):a(i)?s((function(t){return e(r,n,t)})):e(r,n,i)}}}const v=g((function(e,t,r){if(e>=r.length||e<-r.length)return r;var n=(e<0?r.length:0)+e,i=l(r);return i[n]=t(r[n]),i})),y=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function m(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function E(e,t,r){return function(){if(0===arguments.length)return r();var n=Array.prototype.slice.call(arguments,0),i=n.pop();if(!y(i)){for(var o=0;o<e.length;){if("function"==typeof i[e[o]])return i[e[o]].apply(i,n);o+=1}if(m(i)){var a=t.apply(null,n);return a(i)}}return r.apply(this,arguments)}}function b(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const _={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var O=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=b(this.xf["@@transducer/step"](e,!1))),e},e}();const I=u(E(["all"],u((function(e,t){return new O(e,t)})),(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),T=u((function(e,t){return t>e?t:e}));function S(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}function w(e){return"[object String]"===Object.prototype.toString.call(e)}const R=s((function(e){return!!y(e)||!!e&&"object"==typeof e&&!w(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var x=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function A(e){return new x(e)}const N=u((function(e,t){return f(e.length,(function(){return e.apply(t,arguments)}))}));function C(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function P(e,t,r,n){return e["@@transducer/result"](r[n](N(e["@@transducer/step"],e),t))}var k="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function D(e,t,r){if("function"==typeof e&&(e=A(e)),R(r))return function(e,t,r){for(var n=0,i=r.length;n<i;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}(e,t,r);if("function"==typeof r["fantasy-land/reduce"])return P(e,t,r,"fantasy-land/reduce");if(null!=r[k])return C(e,t,r[k]());if("function"==typeof r.next)return C(e,t,r);if("function"==typeof r.reduce)return P(e,t,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}var L=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const j=u((function(e,t){return new L(e,t)}));function M(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var U=Object.prototype.toString;const F=function(){return"[object Arguments]"===U.call(arguments)?function(e){return"[object Arguments]"===U.call(e)}:function(e){return M("callee",e)}}();var V=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=function(){return arguments.propertyIsEnumerable("length")}(),K=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const z="function"!=typeof Object.keys||G?s((function(e){if(Object(e)!==e)return[];var t,r,n=[],i=G&&F(e);for(t in e)!M(t,e)||i&&"length"===t||(n[n.length]=t);if(V)for(r=B.length-1;r>=0;)M(t=B[r],e)&&!K(n,t)&&(n[n.length]=t),r-=1;return n})):s((function(e){return Object(e)!==e?[]:Object.keys(e)})),H=u(E(["fantasy-land/map","map"],j,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return p(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return D((function(r,n){return r[n]=e(t[n]),r}),{},z(t));default:return S(e,t)}}))),Y=Number.isInteger||function(e){return e<<0===e},W=u((function(e,t){var r=e<0?t.length+e:e;return w(t)?t.charAt(r):t[r]})),q=u((function(e,t){return e.map((function(e){for(var r,n=t,i=0;i<e.length;){if(null==n)return;r=e[i],n=Y(r)?W(r,n):n[r],i+=1}return n}))})),Z=u((function(e,t){return q([e],t)[0]})),$=u((function(e,t){return Z([e],t)})),X=u((function(e,t){return H($(e),t)})),J=g(D),Q=s((function(e){return p(J(T,0,X("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),ee=s((function(e){return function(){return e}})),te=u((function(e,t){return e&&t}));var re=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=b(this.xf["@@transducer/step"](e,!0))),e},e}();const ne=u(E(["any"],u((function(e,t){return new re(e,t)})),(function(e,t){for(var r=0;r<t.length;){if(e(t[r]))return!0;r+=1}return!1}))),ie=s((function(e){return p(J(T,0,X("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))})),oe=u((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:D((function(e,r){return l(e,H(r,t))}),[],e)}));function ae(e,t){for(var r=0,n=t.length-(e-1),i=new Array(n>=0?n:0);r<n;)i[r]=Array.prototype.slice.call(t,r,r+e),r+=1;return i}var se=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return l(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},e}();const ue=u(E([],u((function(e,t){return new se(e,t)})),ae)),ce=u((function(e,t){return l(t,[e])})),le=u((function(e,t){return e.apply(this,t)}));const fe=s((function(e){for(var t=z(e),r=t.length,n=[],i=0;i<r;)n[i]=e[t[i]],i+=1;return n}));function de(e,t){return z(t).reduce((function(r,n){return r[n]=e(t[n]),r}),{})}const pe=s((function e(t){return t=de((function(t){return"function"==typeof t?t:e(t)}),t),p(J(T,0,X("length",fe(t))),(function(){var e=arguments;return de((function(t){return le(t,e)}),t)}))})),he=u((function(e,t){return t(e)})),ge=g((function(e,t,r){var n=e(t),i=e(r);return n<i?-1:n>i?1:0}));const ve=g((function(e,t,r){var n={};for(var i in r)n[i]=r[i];return n[e]=t,n})),ye=s((function(e){return null==e}));const me=g((function e(t,r,n){if(0===t.length)return r;var i=t[0];if(t.length>1){var o=!ye(n)&&M(i,n)?n[i]:Y(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,o)}if(Y(i)&&y(n)){var a=[].concat(n);return a[i]=r,a}return ve(i,r,n)})),Ee=u((function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,r){return t.call(this,e,r)};case 3:return function(e,r,n){return t.call(this,e,r,n)};case 4:return function(e,r,n,i){return t.call(this,e,r,n,i)};case 5:return function(e,r,n,i,o){return t.call(this,e,r,n,i,o)};case 6:return function(e,r,n,i,o,a){return t.call(this,e,r,n,i,o,a)};case 7:return function(e,r,n,i,o,a,s){return t.call(this,e,r,n,i,o,a,s)};case 8:return function(e,r,n,i,o,a,s,u){return t.call(this,e,r,n,i,o,a,s,u)};case 9:return function(e,r,n,i,o,a,s,u,c){return t.call(this,e,r,n,i,o,a,s,u,c)};case 10:return function(e,r,n,i,o,a,s,u,c,l){return t.call(this,e,r,n,i,o,a,s,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})),be=s((function(e){return Ee(2,e)}));function _e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Oe=u((function(e,t){var r=p(e,t);return p(e,(function(){return D(oe,H(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Ie=s((function(e){return Oe(e.length,e)})),Te=u((function(e,t){return _e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ie(te)(e,t)})),Se=s((function(e){return p(e.length,e)})),we=Se((function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))}));function Re(e){return function t(r){for(var n,i,o,a=[],s=0,u=r.length;s<u;){if(R(r[s]))for(o=0,i=(n=e?t(r[s]):r[s]).length;o<i;)a[a.length]=n[o],o+=1;else a[a.length]=r[s];s+=1}return a}}const xe=u(E(["fantasy-land/chain","chain"],u((function(e,t){return H(e,function(e){var t=function(e){return{"@@transducer/init":_.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,r){var n=e["@@transducer/step"](t,r);return n["@@transducer/reduced"]?{"@@transducer/value":n,"@@transducer/reduced":!0}:n}}}(e);return{"@@transducer/init":_.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,r){return R(r)?D(t,e,r):D(t,e,[r])}}}(t))})),(function(e,t){return"function"==typeof t?function(r){return e(t(r))(r)}:Re(!1)(H(e,t))})));const Ae=g((function(e,t,r){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return r<e?e:r>t?t:r}));function Ne(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}const Ce=s((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Pe(e,t,r,n){var i=function(i){for(var o=t.length,a=0;a<o;){if(e===t[a])return r[a];a+=1}for(var s in t[a+1]=e,r[a+1]=i,e)i[s]=n?Pe(e[s],t,r,!0):e[s];return i};switch(Ce(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return Ne(e);default:return e}}const ke=s((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Pe(e,[],[],!0)})),De=s((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}})),Le=s((function(e){return!e})),je=Ie(Le);function Me(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Ue(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return y(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Fe=g(Ue("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)}))),Ve=s(Ue("tail",Fe(1,1/0)));function Be(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return f(arguments[0].length,J(Me,arguments[0],Ve(arguments)))}const Ge=s((function(e){return w(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Ke(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Be.apply(this,Ge(arguments))}function ze(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return Ke(Ke.apply(this,H(xe,e)),t)}function He(e,t){return function(){var r=this;return e.apply(r,arguments).then((function(e){return t.call(r,e)}))}}function Ye(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return f(arguments[0].length,J(He,arguments[0],Ve(arguments)))}function We(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return Ye.apply(this,Ge(arguments))}const qe=W(0);function Ze(e){return e}const $e=s(Ze),Xe=u((function(e,t){if(t.length<=0)return $e;var r=qe(t),n=Ve(t);return f(r.length,(function(){return D((function(t,r){return e.call(this,r,t)}),r.apply(this,arguments),n)}))})),Je=u((function(e,t){return Xe.apply(this,[e,Ge(t)])}));function Qe(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function et(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}const tt="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};function rt(e,t,r,n){var i=Qe(e);function o(e,t){return nt(e,t,r.slice(),n.slice())}return!et((function(e,t){return!et(o,t,e)}),Qe(t),i)}function nt(e,t,r,n){if(tt(e,t))return!0;var i,o,a=Ce(e);if(a!==Ce(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!tt(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!tt(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var s=r.length-1;s>=0;){if(r[s]===e)return n[s]===t;s-=1}switch(a){case"Map":return e.size===t.size&&rt(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&rt(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=z(e);if(u.length!==z(t).length)return!1;var c=r.concat([e]),l=n.concat([t]);for(s=u.length-1;s>=0;){var f=u[s];if(!M(f,t)||!nt(t[f],e[f],c,l))return!1;s-=1}return!0}const it=u((function(e,t){return nt(e,t,[],[])}));function ot(e,t,r){var n,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(i=e[r])&&1/i===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(i=e[r])&&i!=i)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(it(e[r],t))return r;r+=1}return-1}function at(e,t){return ot(t,e,0)>=0}function st(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ut=function(e){return(e<10?"0":"")+e};const ct="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ut(e.getUTCMonth()+1)+"-"+ut(e.getUTCDate())+"T"+ut(e.getUTCHours())+":"+ut(e.getUTCMinutes())+":"+ut(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function lt(e){return function(){return!e.apply(this,arguments)}}function ft(e,t){for(var r=0,n=t.length,i=[];r<n;)e(t[r])&&(i[i.length]=t[r]),r+=1;return i}function dt(e){return"[object Object]"===Object.prototype.toString.call(e)}var pt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();const ht=u(E(["filter"],u((function(e,t){return new pt(e,t)})),(function(e,t){return dt(t)?D((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},z(t)):ft(e,t)}))),gt=u((function(e,t){return ht(lt(e),t)}));function vt(e,t){var r=function(r){var n=t.concat([e]);return at(r,n)?"<Circular>":vt(r,n)},n=function(e,t){return S((function(t){return st(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+S(r,e).join(", ")+"))";case"[object Array]":return"["+S(r,e).concat(n(e,gt((function(e){return/^\d+$/.test(e)}),z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):st(ct(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":st(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+n(e,z(e)).join(", ")+"}"}}const yt=s((function(e){return vt(e,[])})),mt=u((function(e,t){if(y(e)){if(y(t))return e.concat(t);throw new TypeError(yt(t)+" is not an array")}if(w(e)){if(w(t))return e+t;throw new TypeError(yt(t)+" is not a string")}if(null!=e&&_e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&_e(e.concat))return e.concat(t);throw new TypeError(yt(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Et=s((function(e){return f(J(T,0,H((function(e){return e[0].length}),e)),(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))})),bt=u((function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:Se(Ee(e,(function(e,r,n,i,o,a,s,u,c,l){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,r);case 3:return new t(e,r,n);case 4:return new t(e,r,n,i);case 5:return new t(e,r,n,i,o);case 6:return new t(e,r,n,i,o,a);case 7:return new t(e,r,n,i,o,a,s);case 8:return new t(e,r,n,i,o,a,s,u);case 9:return new t(e,r,n,i,o,a,s,u,c);case 10:return new t(e,r,n,i,o,a,s,u,c,l)}})))})),_t=s((function(e){return bt(e.length,e)})),Ot=u(at),It=u((function(e,t){return p(J(T,0,X("length",t)),(function(){var r=arguments,n=this;return e.apply(n,S((function(e){return e.apply(n,r)}),t))}))}));var Tt=function(){function e(e,t,r,n){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(M(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();const St=d(4,[],E([],d(4,[],(function(e,t,r,n){return new Tt(e,t,r,n)})),(function(e,t,r,n){return D((function(n,i){var o=r(i);return n[o]=e(M(o,n)?n[o]:Pe(t,[],[],!1),i),n}),{},n)}))),wt=St((function(e,t){return e+1}),0),Rt=c(-1),xt=u((function(e,t){return null==t||t!=t?e:t})),At=g((function(e,t,r){var n=e(t),i=e(r);return n>i?-1:n<i?1:0}));function Nt(e,t,r){var n,i=typeof e;switch(i){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):i in r._items?e in r._items[i]||(t&&(r._items[i][e]=!0),!1):(t&&(r._items[i]={},r._items[i][e]=!0),!1);case"boolean":if(i in r._items){var o=e?1:0;return!!r._items[i][o]||(t&&(r._items[i][o]=!0),!1)}return t&&(r._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):i in r._items?!!at(e,r._items[i])||(t&&r._items[i].push(e),!1):(t&&(r._items[i]=[e]),!1);case"undefined":return!!r._items[i]||(t&&(r._items[i]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in r._items?!!at(e,r._items[i])||(t&&r._items[i].push(e),!1):(t&&(r._items[i]=[e]),!1)}}const Ct=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Nt(e,!0,this)},e.prototype.has=function(e){return Nt(e,!1,this)},e}(),Pt=u((function(e,t){for(var r=[],n=0,i=e.length,o=t.length,a=new Ct,s=0;s<o;s+=1)a.add(t[s]);for(;n<i;)a.add(e[n])&&(r[r.length]=e[n]),n+=1;return r})),kt=g((function(e,t,r){for(var n=[],i=0,o=t.length;i<o;)et(e,t[i],r)||et(e,t[i],n)||n.push(t[i]),i+=1;return n}));const Dt=u((function(e,t){var r={};for(var n in t)r[n]=t[n];return delete r[e],r})),Lt=g((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n})),jt=g((function(e,t,r){return v(e,ee(t),r)}));const Mt=u((function e(t,r){switch(t.length){case 0:return r;case 1:return Y(t[0])&&y(r)?Lt(t[0],1,r):Dt(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return null==r[n]?r:Y(n)&&y(r)?jt(n,e(i,r[n]),r):ve(n,e(i,r[n]),r)}})),Ut=u((function(e,t){return e/t}));var Ft=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}();const Vt=u(E(["drop"],u((function(e,t){return new Ft(e,t)})),(function(e,t){return Fe(Math.max(0,e),1/0,t)})));var Bt=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?b(r):r},e}();const Gt=u(E(["take"],u((function(e,t){return new Bt(e,t)})),(function(e,t){return Fe(0,e<0?1/0:e,t)})));function Kt(e,t){return Gt(e<t.length?t.length-e:0,t)}var zt=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}();const Ht=u(E([],u((function(e,t){return new zt(e,t)})),Kt));function Yt(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Fe(0,r+1,t)}var Wt=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=D(this.xf["@@transducer/step"],e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();const qt=u(E([],u((function(e,t){return new Wt(e,t)})),Yt));var Zt=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(r=!0):this.seenFirstValue=!0,this.lastValue=t,r?e:this.xf["@@transducer/step"](e,t)},e}();const $t=u((function(e,t){return new Zt(e,t)})),Xt=W(-1),Jt=u(E([],$t,(function(e,t){var r=[],n=1,i=t.length;if(0!==i)for(r[0]=t[0];n<i;)e(Xt(r),t[n])||(r[r.length]=t[n]),n+=1;return r}))),Qt=s(E([],$t(it),Jt(it)));var er=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();const tr=u(E(["dropWhile"],u((function(e,t){return new er(e,t)})),(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Fe(r,1/0,t)}))),rr=u((function(e,t){return e||t})),nr=u((function(e,t){return _e(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ie(rr)(e,t)})),ir=s((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():y(e)?[]:w(e)?"":dt(e)?{}:F(e)?function(){return arguments}():void 0})),or=u((function(e,t){return Vt(e>=0?t.length-e:0,t)})),ar=u((function(e,t){return it(or(e.length,t),e)})),sr=g((function(e,t,r){return it(e(t),e(r))}));const ur=g((function(e,t,r){return it(t[e],r[e])}));const cr=u((function e(t,r){var n,i,o,a=r instanceof Array?[]:{};for(i in r)o=typeof(n=t[i]),a[i]="function"===o?n(r[i]):n&&"object"===o?e(n,r[i]):r[i];return a}));var lr=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=b(this.xf["@@transducer/step"](e,t))),e},e}();const fr=u(E(["find"],u((function(e,t){return new lr(e,t)})),(function(e,t){for(var r=0,n=t.length;r<n;){if(e(t[r]))return t[r];r+=1}})));var dr=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=b(this.xf["@@transducer/step"](e,this.idx))),e},e}();const pr=u(E([],u((function(e,t){return new dr(e,t)})),(function(e,t){for(var r=0,n=t.length;r<n;){if(e(t[r]))return r;r+=1}return-1})));var hr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},e}();const gr=u(E([],u((function(e,t){return new hr(e,t)})),(function(e,t){for(var r=t.length-1;r>=0;){if(e(t[r]))return t[r];r-=1}})));var vr=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}();const yr=u(E([],u((function(e,t){return new vr(e,t)})),(function(e,t){for(var r=t.length-1;r>=0;){if(e(t[r]))return r;r-=1}return-1}))),mr=s(Re(!0)),Er=s((function(e){return p(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))})),br=u(Ue("forEach",(function(e,t){for(var r=t.length,n=0;n<r;)e(t[n]),n+=1;return t}))),_r=u((function(e,t){for(var r=z(t),n=0;n<r.length;){var i=r[n];e(t[i],i,t),n+=1}return t})),Or=s((function(e){for(var t={},r=0;r<e.length;)t[e[r][0]]=e[r][1],r+=1;return t})),Ir=u(Ue("groupBy",St((function(e,t){return null==e&&(e=[]),e.push(t),e}),null))),Tr=u((function(e,t){for(var r=[],n=0,i=t.length;n<i;){for(var o=n+1;o<i&&e(t[o-1],t[o]);)o+=1;r.push(t.slice(n,o)),n=o}return r})),Sr=u((function(e,t){return e>t})),wr=u((function(e,t){return e>=t})),Rr=u((function(e,t){if(0===e.length||ye(t))return!1;for(var r=t,n=0;n<e.length;){if(ye(r)||!M(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const xr=u((function(e,t){return Rr([e],t)}));const Ar=u((function(e,t){return e in t})),Nr=u(tt),Cr=g((function(e,t,r){return p(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))})),Pr=c(1),kr=u(at),Dr=St((function(e,t){return t}),null),Lr=u((function(e,t){return"function"!=typeof t.indexOf||y(t)?ot(t,e,0):t.indexOf(e)})),jr=Fe(0,-1),Mr=g((function(e,t,r){return ft((function(t){return et(e,t,r)}),t)})),Ur=g((function(e,t,r){e=e<r.length&&e>=0?e:r.length;var n=Array.prototype.slice.call(r,0);return n.splice(e,0,t),n})),Fr=g((function(e,t,r){return e=e<r.length&&e>=0?e:r.length,[].concat(Array.prototype.slice.call(r,0,e),t,Array.prototype.slice.call(r,e))}));var Vr=u((function(e,t){for(var r,n,i=new Ct,o=[],a=0;a<t.length;)r=e(n=t[a]),i.add(r)&&o.push(n),a+=1;return o}));const Br=Vr,Gr=Br($e),Kr=u((function(e,t){var r,n;return e.length>t.length?(r=e,n=t):(r=t,n=e),Gr(ft(Er(at)(r),n))})),zr=u(Ue("intersperse",(function(e,t){for(var r=[],n=0,i=t.length;n<i;)n===i-1?r.push(t[n]):r.push(t[n],e),n+=1;return r}))),Hr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var i=arguments[r];if(null!=i)for(var o in i)M(o,i)&&(t[o]=i[o]);r+=1}return t},Yr=u((function(e,t){var r={};return r[e]=t,r}));var Wr={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":Ze},qr={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":Ze},Zr={"@@transducer/init":Object,"@@transducer/step":function(e,t){return Hr(e,R(t)?Yr(t[0],t[1]):t)},"@@transducer/result":Ze};const $r=g((function(e,t,r){return m(e)?D(t(e),e["@@transducer/init"](),r):D(t(function(e){if(m(e))return e;if(R(e))return Wr;if("string"==typeof e)return qr;if("object"==typeof e)return Zr;throw new Error("Cannot create transformer for "+e)}(e)),Pe(e,[],[],!1),r)}));const Xr=s((function(e){for(var t=z(e),r=t.length,n=0,i={};n<r;){var o=t[n],a=e[o],s=M(a,i)?i[a]:i[a]=[];s[s.length]=o,n+=1}return i}));const Jr=s((function(e){for(var t=z(e),r=t.length,n=0,i={};n<r;){var o=t[n];i[e[o]]=o,n+=1}return i})),Qr=u((function(e,t){return p(e+1,(function(){var r=arguments[e];if(null!=r&&_e(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(yt(r)+' does not have a method named "'+t+'"')}))})),en=u((function(e,t){return null!=t&&t.constructor===e||t instanceof e})),tn=s((function(e){return null!=e&&it(e,ir(e))})),rn=Qr(1,"join"),nn=s((function(e){return It((function(){return Array.prototype.slice.call(arguments,0)}),e)}));const on=s((function(e){var t,r=[];for(t in e)r[r.length]=t;return r})),an=u((function(e,t){if("function"!=typeof t.lastIndexOf||y(t)){for(var r=t.length-1;r>=0;){if(it(t[r],e))return r;r-=1}return-1}return t.lastIndexOf(e)}));function sn(e){return"[object Number]"===Object.prototype.toString.call(e)}const un=s((function(e){return null!=e&&sn(e.length)?e.length:NaN})),cn=u((function(e,t){return function(r){return function(n){return H((function(e){return t(e,n)}),r(e(n)))}}})),ln=s((function(e){return cn(W(e),jt(e))})),fn=s((function(e){return cn(Z(e),me(e))})),dn=s((function(e){return cn($(e),ve(e))})),pn=u((function(e,t){return e<t})),hn=u((function(e,t){return e<=t})),gn=g((function(e,t,r){for(var n=0,i=r.length,o=[],a=[t];n<i;)a=e(a[0],r[n]),o[n]=a[1],n+=1;return[a[0],o]})),vn=g((function(e,t,r){for(var n=r.length-1,i=[],o=[t];n>=0;)o=e(o[0],r[n]),i[n]=o[1],n-=1;return[o[0],i]})),yn=u((function(e,t){return D((function(r,n){return r[n]=e(t[n],n,t),r}),{},z(t))})),mn=u((function(e,t){return t.match(e)||[]})),En=u((function(e,t){return Y(e)?!Y(t)||t<1?NaN:(e%t+t)%t:NaN})),bn=g((function(e,t,r){return e(r)>e(t)?r:t})),On=J(c,0),In=s((function(e){return On(e)/e.length})),Tn=s((function(e){var t=e.length;if(0===t)return NaN;var r=2-t%2,n=(t-r)/2;return In(Array.prototype.slice.call(e,0).sort((function(e,t){return e<t?-1:e>t?1:0})).slice(n,n+r))})),Sn=u((function(e,t){var r={};return f(t.length,(function(){var n=e.apply(this,arguments);return M(n,r)||(r[n]=t.apply(this,arguments)),r[n]}))})),wn=u((function(e,t){return Hr({},e,t)})),Rn=s((function(e){return Hr.apply(null,[{}].concat(e))})),xn=g((function(e,t,r){var n,i={};for(n in t)M(n,t)&&(i[n]=M(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)M(n,r)&&!M(n,i)&&(i[n]=r[n]);return i})),An=g((function e(t,r,n){return xn((function(r,n,i){return dt(n)&&dt(i)?e(t,n,i):t(r,n,i)}),r,n)})),Nn=u((function(e,t){return An((function(e,t,r){return t}),e,t)})),Cn=u((function(e,t){return An((function(e,t,r){return r}),e,t)})),Pn=g((function(e,t,r){return An((function(t,r,n){return e(r,n)}),t,r)})),kn=u((function(e,t){return Hr({},t,e)})),Dn=u((function(e,t){return Hr({},e,t)})),Ln=g((function(e,t,r){return xn((function(t,r,n){return e(r,n)}),t,r)})),jn=u((function(e,t){return t<e?t:e})),Mn=g((function(e,t,r){return e(r)<e(t)?r:t})),Un=u((function(e,t){return e%t})),Fn=g((function(e,t,r){var n=r.length,i=r.slice(),o=e<0?n+e:e,a=t<0?n+t:t,s=i.splice(o,1);return o<0||o>=r.length||a<0||a>=r.length?r:[].concat(i.slice(0,a)).concat(s).concat(i.slice(a,r.length))})),Vn=u((function(e,t){return e*t})),Bn=s((function(e){return-e})),Gn=u((function(e,t){return I(lt(e),t)})),Kn=s((function(e){return p(e<0?1:e+1,(function(){return W(e,arguments)}))})),zn=g((function(e,t,r){return e(t(r))}));function Hn(e){return[e]}const Yn=s(Hn);const Wn=u((function(e,t){for(var r={},n={},i=0,o=e.length;i<o;)n[e[i]]=1,i+=1;for(var a in t)n.hasOwnProperty(a)||(r[a]=t[a]);return r})),qn=s((function(e){var t,r=!1;return f(e.length,(function(){return r?t:(r=!0,t=e.apply(this,arguments))}))}));function Zn(e,t){if(null==t||!_e(t.then))throw new TypeError("`"+e+"` expected a Promise, received "+vt(t,[]))}const $n=u((function(e,t){return Zn("otherwise",t),t.then(null,e)}));var Xn=function(e){return{value:e,map:function(t){return Xn(t(e))}}};const Jn=g((function(e,t,r){return e((function(e){return Xn(t(e))}))(r).value})),Qn=u((function(e,t){return[e,t]}));function ei(e){return u((function(t,r){return f(Math.max(0,t.length-r.length),(function(){return t.apply(this,e(r,arguments))}))}))}const ti=ei(l),ri=ei(Er(l)),ni=nn([ht,gt]),ii=g((function(e,t,r){return it(Z(e,r),t)})),oi=g((function(e,t,r){return xt(e,Z(t,r))})),ai=g((function(e,t,r){return e(Z(t,r))})),si=u((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})),ui=u((function(e,t){for(var r={},n=0,i=e.length;n<i;){var o=e[n];r[o]=t[o],n+=1}return r}));const ci=u((function(e,t){var r={};for(var n in t)e(t[n],n,t)&&(r[n]=t[n]);return r}));function li(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return ze.apply(this,Ge(arguments))}const fi=u((function(e,t){return l([e],t)})),di=J(Vn,1),pi=u((function(e,t){return p(t.length,(function(){for(var r=[],n=0;n<t.length;)r.push(t[n].call(this,arguments[n])),n+=1;return e.apply(this,r.concat(Array.prototype.slice.call(arguments,t.length)))}))})),hi=pi(S,[ui,$e]),gi=g((function(e,t,r){return it(t,r[e])}));const vi=g((function(e,t,r){return en(e,r[t])})),yi=g((function(e,t,r){return oi(e,[t],r)})),mi=g((function(e,t,r){return e(r[t])})),Ei=u((function(e,t){return e.map((function(e){return Z([e],t)}))})),bi=u((function(e,t){if(!sn(e)||!sn(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r})),_i=g((function(e,t,r){for(var n=r.length-1;n>=0;)t=e(r[n],t),n-=1;return t})),Oi=d(4,[],(function(e,t,r,n){return D((function(r,n){return e(r,n)?t(r,n):b(r)}),r,n)})),Ii=s(b),Ti=u((function(e,t){var r,n=Number(t),i=0;if(n<0||isNaN(n))throw new RangeError("n must be a non-negative number");for(r=new Array(n);i<n;)r[i]=e(i),i+=1;return r})),Si=u((function(e,t){return Ti(ee(e),t)})),wi=g((function(e,t,r){return r.replace(e,t)})),Ri=g((function(e,t,r){for(var n=0,i=r.length,o=[t];n<i;)t=e(t,r[n]),o[n+1]=t,n+=1;return o}));const xi=u((function(e,t){return"function"==typeof t.sequence?t.sequence(e):_i((function(e,t){return oe(H(fi,e),t)}),e([]),t)}));const Ai=g((function(e,t,r){return Jn(e,ee(t),r)}));const Ni=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),Ci=u((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,r){var n=e(t),i=e(r);return n<i?-1:n>i?1:0}))})),Pi=u((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,r){for(var n=0,i=0;0===n&&i<e.length;)n=e[i](t,r),i+=1;return n}))})),ki=Qr(1,"split"),Di=u((function(e,t){return[Fe(0,e,t),Fe(e,un(t),t)]})),Li=u((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],n=0;n<t.length;)r.push(Fe(n,n+=e,t));return r})),ji=u((function(e,t){for(var r=0,n=t.length,i=[];r<n&&!e(t[r]);)i.push(t[r]),r+=1;return[i,Array.prototype.slice.call(t,r)]})),Mi=u((function(e,t){return it(Gt(e.length,t),e)})),Ui=u((function(e,t){return Number(e)-Number(t)})),Fi=u((function(e,t){return mt(Pt(e,t),Pt(t,e))})),Vi=g((function(e,t,r){return mt(kt(e,t,r),kt(e,r,t))})),Bi=u((function(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Fe(r+1,1/0,t)}));var Gi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):b(e)},e}();const Ki=u(E(["takeWhile"],u((function(e,t){return new Gi(e,t)})),(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Fe(0,r,t)})));var zi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_.init,e.prototype["@@transducer/result"]=_.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t),this.xf["@@transducer/step"](e,t)},e}();const Hi=u(E([],u((function(e,t){return new zi(e,t)})),(function(e,t){return e(t),t}))),Yi=u((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+yt(e));var r;return Ne(e).test(t)})),Wi=u((function(e,t){return Zn("andThen",t),t.then(e)})),qi=Qr(0,"toLowerCase");const Zi=s((function(e){var t=[];for(var r in e)M(r,e)&&(t[t.length]=[r,e[r]]);return t}));const $i=s((function(e){var t=[];for(var r in e)t[t.length]=[r,e[r]];return t})),Xi=Qr(0,"toUpperCase"),Ji=p(4,(function(e,t,r,n){return D(e("function"==typeof t?A(t):t),r,n)})),Qi=s((function(e){for(var t=0,r=[];t<e.length;){for(var n=e[t],i=0;i<n.length;)void 0===r[i]&&(r[i]=[]),r[i].push(n[i]),i+=1;t+=1}return r}));const eo=g((function(e,t,r){return"function"==typeof r["fantasy-land/traverse"]?r["fantasy-land/traverse"](t,e):xi(e,H(t,r))}));var to="\t\n\v\f\r \u2028\u2029\ufeff";const ro=s("function"==typeof String.prototype.trim&&!to.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+to+"]["+to+"]*"),r=new RegExp("["+to+"]["+to+"]*$");return e.replace(t,"").replace(r,"")}),no=u((function(e,t){return f(e.length,(function(){try{return e.apply(this,arguments)}catch(e){return t.apply(this,l([e],arguments))}}))})),io=s((function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}})),oo=s((function(e){return Ee(1,e)})),ao=u((function(e,t){return p(e,(function(){for(var r,n=1,i=t,o=0;n<=e&&"function"==typeof i;)r=n===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,r)),n+=1,o=r;return i}))}));const so=u((function(e,t){for(var r=e(t),n=[];r&&r.length;)n[n.length]=r[0],r=e(r[1]);return n})),uo=u(Ke(Gr,l)),co=u((function(e,t){for(var r,n=0,i=t.length,o=[];n<i;)et(e,r=t[n],o)||(o[o.length]=r),n+=1;return o})),lo=g((function(e,t,r){return co(e,l(t,r))})),fo=g((function(e,t,r){return e(r)?r:t(r)})),po=xe(Ze);const ho=g((function(e,t,r){for(var n=r;!e(n);)n=t(n);return n}));const go=s((function(e){var t,r=[];for(t in e)r[r.length]=e[t];return r}));var vo=function(e){return{value:e,"fantasy-land/map":function(){return this}}};const yo=u((function(e,t){return e(vo)(t).value})),mo=g((function(e,t,r){return e(r)?t(r):r}));const Eo=u((function(e,t){for(var r in e)if(M(r,e)&&!e[r](t[r]))return!1;return!0})),bo=u((function(e,t){return Eo(H(it,e),t)})),_o=u((function(e,t){return gt(Er(at)(e),t)})),Oo=u((function(e,t){return Boolean(!e^!t)})),Io=u((function(e,t){for(var r,n=0,i=e.length,o=t.length,a=[];n<i;){for(r=0;r<o;)a[a.length]=[e[n],t[r]],r+=1;n+=1}return a})),To=u((function(e,t){for(var r=[],n=0,i=Math.min(e.length,t.length);n<i;)r[n]=[e[n],t[n]],n+=1;return r}));var So=u((function(e,t){for(var r=0,n=Math.min(e.length,t.length),i={};r<n;)i[e[r]]=t[r],r+=1;return i}));const wo=So,Ro=g((function(e,t,r){for(var n=[],i=0,o=Math.min(t.length,r.length);i<o;)n[i]=e(t[i],r[i]),i+=1;return n})),xo=s((function(e){return p(e.length,(function(){var t=arguments;return function(){return e.apply(this,t)}}))}))},9921:(e,t)=>{"use strict";var r=60103,n=60106,i=60107,o=60108,a=60114,s=60109,u=60110,c=60112,l=60113,f=60120,d=60115,p=60116,h=60121,g=60122,v=60117,y=60129,m=60131;if("function"==typeof Symbol&&Symbol.for){var E=Symbol.for;r=E("react.element"),n=E("react.portal"),i=E("react.fragment"),o=E("react.strict_mode"),a=E("react.profiler"),s=E("react.provider"),u=E("react.context"),c=E("react.forward_ref"),l=E("react.suspense"),f=E("react.suspense_list"),d=E("react.memo"),p=E("react.lazy"),h=E("react.block"),g=E("react.server.block"),v=E("react.fundamental"),y=E("react.debug_trace_mode"),m=E("react.legacy_hidden")}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===y||e===o||e===l||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===v||e.$$typeof===h||e[0]===g)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case l:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case p:case d:case s:return e;default:return t}}case n:return t}}}},9864:(e,t,r)=>{"use strict";e.exports=r(9921)},5726:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}Object.defineProperty(t,"__esModule",{value:!0});var o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){o[e]=new i(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,r,a=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],_n=!0,a=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);_n=!0);}catch(e){a=!0,i=e}finally{try{_n||null==r.return||r.return()}finally{if(a)throw i}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],u=a[1];o[s]=new i(s,1,!1,u,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){o[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){o[e]=new i(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){o[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){o[e]=new i(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){o[e]=new i(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){o[e]=new i(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){o[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,s=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,s);o[t]=new i(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,s);o[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,s);o[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)}));var u=r(8229),c=u.CAMELCASE,l=u.SAME,f=u.possibleStandardNames,d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),p=Object.keys(f).reduce((function(e,t){var r=f[t];return r===l?e[t]=t:r===c?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=p},8229:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5251:(e,t,r)=>{"use strict";r(7418);var n=r(9196),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.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:c,ref:l,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},5893:(e,t,r)=>{"use strict";e.exports=r(5251)},6774:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},1476:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(7848)),o=r(6678);t.default=function(e,t){var r={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}},6678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(o,u)).replace(n,s))}},7848:(e,t,r)=>{var n=r(8139);e.exports=function(e,t){var r,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=n(e),u="function"==typeof t,c=0,l=s.length;c<l;c++)o=(r=s[c]).property,a=r.value,u?t(o,a,r):a&&(i||(i={}),i[o]=a);return i}},9196:e=>{"use strict";e.exports=window.React},1284:e=>{"use strict";e.exports=window.regeneratorRuntime},3897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},3405:(e,t,r)=>{var n=r(3897);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7156:e=>{function t(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},8416:e=>{e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5263:(e,t,r)=>{var n=r(8698).default;function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports},9498:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},2281:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},215:(e,t,r)=>{var n=r(7071);e.exports=function(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},7071:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},861:(e,t,r)=>{var n=r(3405),i=r(9498),o=r(6116),a=r(2281);e.exports=function(e){return n(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:(e,t,r)=>{var n=r(3897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}},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.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,(()=>{"use strict";const e=window.wp.blocks,t=window.wp.element,n=window.wp.components;var i=r(9864),o=r(9196),a=r.n(o),s=r(6774),u=r.n(s);const c=function(e){function t(e,n,u,c,d){for(var p,h,g,v,b,O=0,I=0,T=0,S=0,w=0,P=0,D=g=p=0,j=0,M=0,U=0,F=0,V=u.length,B=V-1,G="",K="",z="",H="";j<V;){if(h=u.charCodeAt(j),j===B&&0!==I+S+T+O&&(0!==I&&(h=47===I?10:47),S=T=O=0,V++,B++),0===I+S+T+O){if(j===B&&(0<M&&(G=G.replace(f,"")),0<G.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:G+=u.charAt(j)}h=59}switch(h){case 123:for(p=(G=G.trim()).charCodeAt(0),g=1,F=++j;j<V;){switch(h=u.charCodeAt(j)){case 123:g++;break;case 125:g--;break;case 47:switch(h=u.charCodeAt(j+1)){case 42:case 47:e:{for(D=j+1;D<B;++D)switch(u.charCodeAt(D)){case 47:if(42===h&&42===u.charCodeAt(D-1)&&j+2!==D){j=D+1;break e}break;case 10:if(47===h){j=D+1;break e}}j=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<B&&u.charCodeAt(j)!==h;);}if(0===g)break;j++}if(g=u.substring(F,j),0===p&&(p=(G=G.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<M&&(G=G.replace(f,"")),h=G.charCodeAt(1)){case 100:case 109:case 115:case 45:M=n;break;default:M=C}if(F=(g=t(n,M,g,h,d+1)).length,0<k&&(b=s(3,g,M=r(C,G,U),n,x,R,F,h,d,c),G=M.join(""),void 0!==b&&0===(F=(g=b.trim()).length)&&(h=0,g="")),0<F)switch(h){case 115:G=G.replace(_,a);case 100:case 109:case 45:g=G+"{"+g+"}";break;case 107:g=(G=G.replace(y,"$1 $2"))+"{"+g+"}",g=1===N||2===N&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=G+g,112===c&&(K+=g,g="")}else g=""}else g=t(n,r(n,G,U),g,c,d+1);z+=g,g=U=M=D=p=0,G="",h=u.charCodeAt(++j);break;case 125:case 59:if(1<(F=(G=(0<M?G.replace(f,""):G).trim()).length))switch(0===D&&(p=G.charCodeAt(0),45===p||96<p&&123>p)&&(F=(G=G.replace(" ",":")).length),0<k&&void 0!==(b=s(1,G,n,e,x,R,K.length,c,d,c))&&0===(F=(G=b.trim()).length)&&(G="\0\0"),p=G.charCodeAt(0),h=G.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=G+u.charAt(j);break}default:58!==G.charCodeAt(F-1)&&(K+=i(G,p,h,G.charCodeAt(2)))}U=M=D=p=0,G="",h=u.charCodeAt(++j)}}switch(h){case 13:case 10:47===I?I=0:0===1+p&&107!==c&&0<G.length&&(M=1,G+="\0"),0<k*L&&s(0,G,n,e,x,R,K.length,c,d,c),R=1,x++;break;case 59:case 125:if(0===I+S+T+O){R++;break}default:switch(R++,v=u.charAt(j),h){case 9:case 32:if(0===S+O+I)switch(w){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===S+I+O&&(M=U=1,v="\f"+v);break;case 108:if(0===S+I+O+A&&0<D)switch(j-D){case 2:112===w&&58===u.charCodeAt(j-3)&&(A=w);case 8:111===P&&(A=P)}break;case 58:0===S+I+O&&(D=j);break;case 44:0===I+T+S+O&&(M=1,v+="\r");break;case 34:case 39:0===I&&(S=S===h?0:0===S?h:S);break;case 91:0===S+I+T&&O++;break;case 93:0===S+I+T&&O--;break;case 41:0===S+I+O&&T--;break;case 40:0===S+I+O&&(0===p&&(2*w+3*P==533||(p=1)),T++);break;case 64:0===I+T+S+O+D+g&&(g=1);break;case 42:case 47:if(!(0<S+O+T))switch(I){case 0:switch(2*h+3*u.charCodeAt(j+1)){case 235:I=47;break;case 220:F=j,I=42}break;case 42:47===h&&42===w&&F+2!==j&&(33===u.charCodeAt(F+2)&&(K+=u.substring(F,j+1)),v="",I=0)}}0===I&&(G+=v)}P=w,w=h,j++}if(0<(F=K.length)){if(M=n,0<k&&void 0!==(b=s(2,K,M,e,x,R,F,c,d,c))&&0===(K=b).length)return H+K+z;if(K=M.join(",")+"{"+K+"}",0!=N*A){switch(2!==N||o(K,2)||(A=0),A){case 111:K=K.replace(E,":-moz-$1")+K;break;case 112:K=K.replace(m,"::-webkit-input-$1")+K.replace(m,"::-moz-$1")+K.replace(m,":-ms-input-$1")+K}A=0}}return H+K+z}function r(e,t,r){var i=t.trim().split(g);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[u++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===N||2===N&&o(u,1)?"-webkit-"+u+u:u}if(0===N||2===N&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(w,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(I,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(I,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),D(2!==t?n:n.replace(T,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,l){for(var f,d=0,p=t;d<k;++d)switch(f=P[d].call(c,e,p,r,n,i,o,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function u(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?N=1:(N=2,D=e):N=0),u}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<k){var i=s(-1,r,n,n,x,R,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(C,n,r,0,0);return 0<k&&void 0!==(i=s(-2,o,n,n,x,R,o.length,0,0,0))&&(o=i),A=0,R=x=1,o}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,g=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,E=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,I=/-self|flex-/g,T=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,w=/([^-])(image-set\()/,R=1,x=1,A=0,N=1,C=[],P=[],k=0,D=null,L=0;return c.use=function e(t){switch(t){case void 0:case null:k=P.length=0;break;default:if("function"==typeof t)P[k++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else L=0|!!t}return e},c.set=u,void 0!==e&&u(e),c},l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const d=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=(r=e,f.test(r)||111===r.charCodeAt(0)&&110===r.charCodeAt(1)&&r.charCodeAt(2)<91)),t[e];var r}}();var p=r(8679),h=r.n(p);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var v=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},y=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,i.typeOf)(e)},m=Object.freeze([]),E=Object.freeze({});function b(e){return"function"==typeof e}function _(e){return e.displayName||e.name||"Component"}function O(e){return e&&"string"==typeof e.styledComponentId}var I=void 0!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}&&({SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.REACT_APP_SC_ATTR||{SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.SC_ATTR)||"data-styled",T="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}&&(void 0!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.REACT_APP_SC_DISABLE_SPEEDY&&{SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.SC_DISABLE_SPEEDY&&""!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.SC_DISABLE_SPEEDY&&"false"!=={SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.SC_DISABLE_SPEEDY&&{SEGMENT_KEY:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}.SC_DISABLE_SPEEDY));function w(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var R=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&w(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),x=new Map,A=new Map,N=1,C=function(e){if(x.has(e))return x.get(e);for(;A.has(N);)N++;var t=N++;return x.set(e,t),A.set(t,e),t},P=function(e){return A.get(e)},k=function(e,t){t>=N&&(N=t+1),x.set(e,t),A.set(t,e)},D="style["+I+'][data-styled-version="5.3.8"]',L=new RegExp("^"+I+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),j=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},M=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(L);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(k(c,u),j(e,c,s[3]),e.getTag().insertRules(u,n)),n.length=0}else n.push(a)}}},U=function(){return r.nc},F=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(I))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(I,"active"),n.setAttribute("data-styled-version","5.3.8");var a=U();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},V=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}w(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),G=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),K=T,z={isServer:!T,useCSSOMInjection:!S},H=function(){function e(e,t,r){void 0===e&&(e=E),void 0===t&&(t={}),this.options=g({},z,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&T&&K&&(K=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(I)&&(M(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return C(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(g({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,i=t.target,e=r?new G(i):n?new V(i):new B(i),new R(e)));var e,t,r,n,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(C(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(C(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(C(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o=P(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var u=I+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Y=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=W(t%52)+r;return(W(t%52)+r).replace(Y,"$1-$2")}var Z=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},$=function(e){return Z(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(b(r)&&!O(r))return!1}return!0}var J=$("5.3.8"),Q=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&X(e),this.componentId=t,this.baseHash=Z(J,t),this.baseStyle=r,H.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=ve(this.rules,e,t,r).join(""),a=q(Z(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=Z(this.baseHash,r.hash),l="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)l+=d;else if(d){var p=ve(d,e,t,r),h=Array.isArray(p)?p.join(""):p;c=Z(c,h+f),l+=h}}if(l){var g=q(c>>>0);if(!t.hasNameForId(n,g)){var v=r(l,"."+g,void 0,n);t.insertRules(n,g,v)}i.push(g)}}return i.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function re(e){var t,r,n,i,o=void 0===e?E:e,a=o.options,s=void 0===a?E:a,u=o.plugins,l=void 0===u?m:u,f=new c(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,n,o){return 0===n&&-1!==te.indexOf(o[r.length])||o.match(i)?e:"."+t};function g(e,o,a,s){void 0===s&&(s="&");var u=e.replace(ee,""),c=o&&a?a+" "+o+" { "+u+" }":u;return t=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),f(a||!o?"":o,c)}return f.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=l.length?l.reduce((function(e,t){return t.name||w(15),Z(e,t.name)}),5381).toString():"",g}var ne=a().createContext(),ie=(ne.Consumer,a().createContext()),oe=(ie.Consumer,new H),ae=re();function se(){return(0,o.useContext)(ne)||oe}function ue(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=se(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),a().createElement(ne.Provider,{value:s},a().createElement(ie.Provider,{value:c},e.children))}var ce=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ae);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return w(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ae),this.name+e.hash},e}(),le=/([A-Z])/,fe=/([A-Z])/g,de=/^ms-/,pe=function(e){return"-"+e.toLowerCase()};function he(e){return le.test(e)?e.replace(fe,pe).replace(de,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function ve(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ve(e[a],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return ge(e)?"":O(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,r,n):e instanceof ce?r?(e.inject(r,n),e.getName(n)):e:y(e)?function e(t,r){var n,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!ge(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?o.push(he(a)+":",t[a],";"):y(t[a])?o.push.apply(o,e(t[a],a)):o.push(he(a)+": "+(n=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in l?String(i).trim():i+"px")+";")));return r?[r+" {"].concat(o,["}"]):o}(e):e.toString();var u}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function me(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return b(e)||y(e)?ye(ve(v(m,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:ye(ve(v(e,r)))}new Set;var Ee=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function _e(e){return e.replace(Ee,"-").replace(be,"")}function Oe(e){return"string"==typeof e&&!0}var Ie=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Se(e,t,r){var n=e[r];Ie(t)&&Ie(n)?we(n,t):e[r]=t}function we(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Ie(a))for(var s in a)Te(s)&&Se(e,a[s],s)}return e}var Re=a().createContext();Re.Consumer;var xe={};function Ae(e,t,r){var n=O(e),i=!Oe(e),s=t.attrs,u=void 0===s?m:s,c=t.componentId,l=void 0===c?function(e,t){var r="string"!=typeof e?"sc":_e(e);xe[r]=(xe[r]||0)+1;var n=r+"-"+function(e){return q($(e)>>>0)}("5.3.8"+r+xe[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,f=t.displayName,p=void 0===f?function(e){return Oe(e)?"styled."+e:"Styled("+_(e)+")"}(e):f,v=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||l,y=n&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,I=t.shouldForwardProp;n&&e.shouldForwardProp&&(I=t.shouldForwardProp?function(r,n,i){return e.shouldForwardProp(r,n,i)&&t.shouldForwardProp(r,n,i)}:e.shouldForwardProp);var T,S=new Q(r,v,n?e.componentStyle:void 0),w=S.isStatic&&0===u.length,R=function(e,t){return function(e,t,r,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.shouldForwardProp,l=e.styledComponentId,f=e.target,p=function(e,t,r){void 0===e&&(e=E);var n=g({},t,{theme:e}),i={};return r.forEach((function(e){var t,r,o,a=e;for(t in b(a)&&(a=a(n)),a)n[t]=i[t]="className"===t?(r=i[t],o=a[t],r&&o?r+" "+o:r||o):a[t]})),[n,i]}(function(e,t,r){return void 0===r&&(r=E),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,o.useContext)(Re),s)||E,t,i),h=p[0],v=p[1],y=function(e,t,r,n){var i=se(),a=(0,o.useContext)(ie)||ae;return t?e.generateAndInjectStyles(E,i,a):e.generateAndInjectStyles(r,i,a)}(a,n,h),m=r,_=v.$as||t.$as||v.as||t.as||f,O=Oe(_),I=v!==t?g({},t,{},v):t,T={};for(var S in I)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?T.as=I[S]:(c?c(S,d,_):!O||d(S))&&(T[S]=I[S]));return t.style&&v.style!==t.style&&(T.style=g({},t.style,{},v.style)),T.className=Array.prototype.concat(u,l,y!==l?y:null,t.className,v.className).filter(Boolean).join(" "),T.ref=m,(0,o.createElement)(_,T)}(T,e,t,w)};return R.displayName=p,(T=a().forwardRef(R)).attrs=y,T.componentStyle=S,T.displayName=p,T.shouldForwardProp=I,T.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,T.styledComponentId=v,T.target=n?e.target:e,T.withComponent=function(e){var n=t.componentId,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["componentId"]),o=n&&n+"-"+(Oe(e)?e:_e(_(e)));return Ae(e,g({},i,{attrs:y,componentId:o}),r)},Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?we({},e.defaultProps,t):t}}),T.toString=function(){return"."+T.styledComponentId},i&&h()(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),T}var Ne,Ce=function(e){return function e(t,r,n){if(void 0===n&&(n=E),!(0,i.isValidElementType)(r))return w(1,String(r));var o=function(){return t(r,n,me.apply(void 0,arguments))};return o.withConfig=function(i){return e(t,r,g({},n,{},i))},o.attrs=function(i){return e(t,r,g({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},o}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ce[e]=Ce(e)})),Ne=function(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),H.registerId(this.componentId+1)}.prototype,Ne.createStyles=function(e,t,r,n){var i=n(ve(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},Ne.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Ne.renderStyles=function(e,t,r,n){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=U();return"<style "+[r&&'nonce="'+r+'"',I+'="true"','data-styled-version="5.3.8"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?w(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return w(2);var r=((t={})[I]="",t["data-styled-version"]="5.3.8",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=U();return n&&(r.nonce=n),[a().createElement("style",g({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?w(2):a().createElement(ue,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return w(3)}}();const Pe=Ce;var ke=r(2606),De=function(e){return"popup"===e||"slider"===e};function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ue={display:"inline-block",border:"none",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"0 33px",fontWeight:"bold",cursor:"pointer",lineHeight:"50px",height:50,textAlign:"center",margin:0,textDecoration:"none"},Fe=function(e){try{var t=new URL(e),r=t.pathname.split("/").filter((function(e){return e}));if(!t.host.endsWith("typeform.com"))return{error:"Invalid form URL ".concat(e,": form must be hosted on a .typeform.com domain.")};if(!["c","to"].includes(r[0]))return{error:"Unknown Typeform form URL structure: expected /to/ or /c/ route in the URL."};var n=r[1];return n?{formId:n}:{error:"Cannot find form ID in a seemingly Typeform form URL: ".concat(e,".")}}catch(e){return{error:"Please use a valid URL"}}},Ve=function(e){switch(e){case"widget":return"standard";case"sidetab":return"side_panel";default:return e}},Be=r(9714),Ge=r.n(Be);const Ke=window.wp.data;function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var He=function(e){var r,n,i,o,a,s,u=(r="(max-width: ".concat("782px",")"),a=(0,t.useState)(!1),s=2,n=function(e){if(Array.isArray(e))return e}(a)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],_n=!0,a=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);_n=!0);}catch(e){a=!0,i=e}finally{try{_n||null==r.return||r.return()}finally{if(a)throw i}}return o}}(a,s)||function(e,t){if(e){if("string"==typeof e)return ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ze(e,t):void 0}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],o=n[1],(0,t.useEffect)((function(){var e=window.matchMedia(r);e.matches!==i&&o(e.matches);var t=function(){return o(e.matches)};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[i,r]),i),c=(0,Ke.useSelect)((function(e){var t;return null===(t=e("core/edit-post"))||void 0===t?void 0:t.isEditorSidebarOpened()}));(0,t.useEffect)((function(){if("popover"===e||"sidetab"===e){var t=document.querySelector(".tf-v1-sidetab"),r=document.querySelector(".tf-v1-popover-button");t&&(t.style.right=c?"":"0",t.style.display=u&&c?"none":""),r&&(r.style.right=c?"306px":"26px",r.style.display=u&&c?"none":"")}}),[u,c,e])},Ye=r(5893);function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Ze(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $e=function(e){var r,n,i=e.attributes,o=i.url,a=i.type,s=i.buttonText,u=i.buttonAsText,c=i.hideHeaders,l=i.opacity,f=i.popupSize,d=i.sliderPosition,p=i.showLaunchButton,h=i.closeOnSubmit,g=i.closeOnSubmitDelay,v=i.customIcon,y=i.buttonColor,m=(0,t.useMemo)((function(){return function(e){switch(e){case"widget":default:return ke.Widget;case"popup":return ke.PopupButton;case"slider":return ke.SliderButton;case"popover":return ke.Popover;case"sidetab":return ke.Sidetab}}(a)}),[a]),E=function(e){var t=e.fontSize,r=e.buttonColor,n=e.buttonTextColor,i=e.width,o=e.height,a=e.widthType,s=e.heightType,u=e.buttonRoundedCorner,c=e.type,l=e.buttonAsText,f=e.showLaunchButton,d="".concat(i).concat(a),p="".concat(o).concat(s),h=De(c);if(h&&!f)return{all:"unset"};var g,v=(g=u,Math.round(g/100*25)),y=je(je({},Ue),{},{borderRadius:h?v:null});return je(je(je({width:h||l?void 0:d,height:h||l?void 0:p,fontSize:t,backgroundColor:h&&!l?r:void 0,color:h?n:void 0},h&&!l&&y),h&&{cursor:"pointer"}),{},{textDecoration:h&&l?"underline":void 0})}(i),b="popup"===a?parseInt(f,10):void 0,_="slider"===a&&d,O=document.querySelector('iframe[name="editor-canvas"]'),I={id:o,style:E,hideHeaders:c,opacity:l,container:null==O||null===(r=O.contentWindow)||void 0===r||null===(n=r.document)||void 0===n?void 0:n.body};(0,t.useEffect)((function(){var e,t=((null==O||null===(e=O.contentWindow)||void 0===e?void 0:e.document)||{}).body;t&&(t.style.overflowX="sidetab"===a?"hidden":"")}),[O,a]);var T={autoClose:g?1e3*g:h,customIcon:v,buttonColor:y,buttonText:"sidetab"===a?s:null},S=qe(qe(qe(qe({},I),T),"popup"===a&&{size:b,as:u?"a":"button"}),"slider"===a&&{position:_,as:u?"a":"button"});return(0,Ye.jsx)(m,qe(qe({},S),{},{children:p&&De(a)&&s}))};var Xe=function(e){var t=e.setErrorModal,r=e.message;return(0,Ye.jsxs)(n.Modal,{isDismissible:!0,shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,closeButtonLabel:"Close",onRequestClose:function(){return t(!1)},title:"URL Error",children:[(0,Ye.jsx)("p",{children:r}),(0,Ye.jsx)(n.Button,{isSecondary:!0,onClick:function(){return t(!1)},children:"Close"})]})},Je="wordpress.com",Qe="localhost",et=function(e){if("popup"===e)return!0;var t=window.location.hostname;return[Je,Qe].some((function(e){return t===e||t.endsWith(".".concat(e))}))},tt=function(){return"iframe"===new URLSearchParams(window.location.search).get("embedMode")?"iframe":"popup"};const rt=window.ReactDOM;var nt,it,ot,at;function st(e,t){if(e){if("string"==typeof e)return ut(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ut(e,t):void 0}}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ct(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var lt,ft,dt=Pe.div(nt||(nt=ct(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.75);\n"]))),pt=Pe.div(it||(it=ct(["\n position: absolute;\n top: 40px;\n left: 40px;\n right: 40px;\n bottom: 40px;\n z-index: 999999;\n"]))),ht=Pe.a(ot||(ot=ct(["\n width: 40px;\n height: 40px;\n line-height: 40px;\n font-size: 32px;\n text-align: center;\n color: white;\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n"]))),gt=Pe.iframe(at||(at=ct(["\n width: 100%;\n height: 100%;\n border: 0;\n"]))),vt=["https://embed-admin.typeform.com","http://embed-admin.localhost:9000","https://admin.typeform.com"],yt=function(e){var t,r,i=e.variant,a=void 0===i?"primary":i,s=e.text,u=void 0===s?"Select form":s,c=e.onSelectForm,l=e.embedMode,f=(0,o.useRef)(null),d=(t=(0,o.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],_n=!0,a=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);_n=!0);}catch(e){a=!0,i=e}finally{try{_n||null==r.return||r.return()}finally{if(a)throw i}}return o}}(t,r)||st(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],h=d[1],g=(0,o.useRef)(null),v=(0,o.useCallback)((function(){h(!1)}),[]),y=(0,o.useCallback)((function(){if("popup"!==l){var e,t,r,n,i,o,a,s,u,c;h(!0)}else{var f=["popup","titlebar=no","directories=0","location=no","toolbar=no","menubar=no","resizable=yes"].concat(function(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||st(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((n=void 0===(r=(t=(null===(e=window)||void 0===e?void 0:e.screen)||{}).availWidth)?1200:r,o=void 0===(i=t.availHeight)?900:i,u=(n-(a=Math.min(n-40,1120)))/2,c=(o-(s=Math.min(o-40,650)))/2,["width=".concat(a),"height=".concat(s),"left=".concat(u),"top=".concat(c)])));g.current=window.open("https://admin.typeform.com/?isEmbedAdmin=wordpress","_blank",f.join(","))}}),[l]);return(0,o.useEffect)((function(){var e=function(e){var t;if(vt.includes(e.origin)&&!("popup"===l&&e.source!==g.current||"iframe"===l&&e.source!==(null===(t=f.current)||void 0===t?void 0:t.contentWindow))){var r=e.data||{},n=r.type,i=r.payload,o=i.id,a=i.link;"embedFormSelect"===n&&o&&a&&c({formId:o,url:a})}};return window.addEventListener("message",e,!1),function(){window.removeEventListener("message",e,!1)}}),[c,v,l]),(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(n.Button,{"data-testid":"embed-admin-button",variant:a,onClick:y,text:u}),"iframe"===l&&(0,rt.createPortal)(p?(0,Ye.jsxs)(dt,{className:"modal","data-testid":"embed-admin-modal",children:[(0,Ye.jsx)(pt,{children:(0,Ye.jsx)(gt,{ref:f,"data-testid":"embed-admin-iframe",src:"https://embed-admin.typeform.com"})}),(0,Ye.jsx)(ht,{"data-testid":"close-embed-admin-modal",className:"close",onClick:v,children:"×"})]}):null,document.body)]})};function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],_n=!0,a=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);_n=!0);}catch(e){a=!0,i=e}finally{try{_n||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _t=Pe(n.TextControl)(lt||(lt=bt(["\n height: 36px;\n\n > div {\n margin-bottom: 0;\n height: 36px;\n\n > input {\n height: 36px;\n box-sizing: border-box;\n }\n }\n"]))),Ot=Pe.div(ft||(ft=bt(["\n height: 36px;\n"])));const It=function(e){var r=mt((0,t.useState)(e.attributes.url),2),i=r[0],o=r[1],a=mt((0,t.useState)(!1),2),s=a[0],u=a[1],c=mt((0,t.useState)(""),2),l=c[0],f=c[1],d=e.setAttributes,p=e.attributes,h=(0,t.useCallback)((function(e){return o(e)}),[]),g=(0,t.useCallback)((function(){var e;if(p.url||null===(e=Fe(i))||void 0===e||!e.formId){var t=Fe(i).error;u(!0),t&&f(t)}else{u(!1);var r=Fe(i).formId;d({url:i,formId:r}),r&&Ge().trackItemClicked({item:"embed_form",item_type:"button",form_uid:r,label:"embed"})}}),[i,d,p.url]),v=tt();return(0,Ye.jsxs)("div",{"data-testid":"form-url",children:[s&&(0,Ye.jsx)(Xe,{message:l,setErrorModal:u}),(0,Ye.jsx)("h5",{children:"Typeform URL"}),(0,Ye.jsx)("p",{children:"Paste a link to the form you'd like to display on your site."}),(0,Ye.jsxs)(n.Flex,{align:"baseline",children:[(0,Ye.jsx)(n.FlexBlock,{children:(0,Ye.jsx)(_t,{placeholder:"Enter URL to embed here...",value:i,onChange:h})}),(0,Ye.jsx)(n.FlexItem,{children:(0,Ye.jsx)(n.Button,{variant:"primary",onClick:g,children:"Embed"})})]}),et(v)&&(0,Ye.jsxs)(n.Flex,{direction:"column",children:[(0,Ye.jsx)(Ot,{}),(0,Ye.jsxs)(n.Flex,{gap:1,children:[(0,Ye.jsx)(n.FlexItem,{children:"Or just select one of your forms directly here"}),(0,Ye.jsx)(n.FlexBlock,{children:(0,Ye.jsx)(yt,{onSelectForm:d,embedMode:v})})]})]}),(0,Ye.jsxs)(n.Flex,{direction:"column",children:[(0,Ye.jsx)(Ot,{}),(0,Ye.jsx)(n.ExternalLink,{href:"https://github.com/Typeform/embed",children:"Learn more about embeds"})]})]})},Tt=window.wp.blockEditor;var St,wt,Rt;function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],_n=!0,a=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);_n=!0);}catch(e){a=!0,i=e}finally{try{_n||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return At(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?At(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ct=Pe.input(St||(St=Nt(["\n border: 1px solid #949494;\n padding: 9px 8px;\n"]))),Pt=Pe.a(wt||(wt=Nt(["\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n display: inline-block;\n ",")\n"])),(function(e){return e.inline&&"width: 180px;"})),kt=Pe.div(Rt||(Rt=Nt(["\n display: ",";\n ","\n"])),(function(e){return e.inline?"flex":"block"}),(function(e){return e.inline?"gap: 10px;":" button { margin: 10px 10px 0 0; }"})),Dt=function(e){var r=e.attributes,i=e.setAttributes,o=r.url,a=r.formId,s=xt((0,t.useState)(o),2),u=s[0],c=s[1],l=xt((0,t.useState)(!1),2),f=l[0],d=l[1],p=xt((0,t.useState)(""),2),h=p[0],g=p[1],v=xt((0,t.useState)(!1),2),y=v[0],m=v[1];(0,t.useEffect)((function(){return c(r.url)}),[r.url]);var E=(0,t.useCallback)((function(){m(!0),o&&a&&Ge().trackItemClicked({item:"embed_form",item_type:"button",form_uid:a,label:"edit"})}),[m,o,a]),b=(0,t.useCallback)((function(){if(Ge().trackItemClicked({item:"embed_form",item_type:"button",form_uid:a,label:"save"}),Fe(u).error){var e=Fe(u).error;e&&(d(!0),g(e))}else{var t=Fe(u).formId;i({url:u,formId:t}),m(!1)}}),[u,i,a]),_=tt(),O=et(_);return(0,Ye.jsxs)("div",{"data-testid":"edit-url",children:[f&&(0,Ye.jsx)(Xe,{message:h,setErrorModal:d}),(0,Ye.jsx)(Ye.Fragment,{children:(0,Ye.jsx)(kt,{inline:!O,children:y?(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(n.Flex,{direction:"column",gap:0,children:(0,Ye.jsx)(Ct,{"data-testid":"form-edit-url",defaultValue:o,onChange:function(e){var t;c(null===(t=e.currentTarget)||void 0===t?void 0:t.value)}})}),(0,Ye.jsx)(n.Button,{isPrimary:!0,"data-testid":"form-edit-url-button",onClick:b,children:"Save"}),O&&(0,Ye.jsx)(yt,{variant:"secondary",onSelectForm:i})]}):(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsxs)(n.Flex,{direction:"column",gap:0,children:[(0,Ye.jsx)("span",{children:"Typeform URL"}),(0,Ye.jsx)(Pt,{target:"_blank",href:o,inline:!O,children:o})]}),(0,Ye.jsx)(n.Button,{isPrimary:!0,onClick:E,children:"Edit"}),O&&(0,Ye.jsx)(yt,{variant:"secondary",onSelectForm:i,embedMode:_})]})})})]})};function Lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ut=[{label:"Standard",value:"widget"},{label:"Popup",value:"popup"},{label:"Slider",value:"slider"},{label:"Popover",value:"popover"},{label:"Sidetab",value:"sidetab"}],Ft={width:void 0,height:void 0,customLaunch:!1,customLaunchType:"load",customLaunchTime:0,customLaunchScroll:30,buttonText:"Launch me"},Vt=function(e){var r=e.attributes,i=e.setAttributes,o=r.type;He(o);var a=(0,t.useCallback)((function(e){i(jt(jt({},function(e,t){switch(e){case"widget":return jt(jt({},t),{},{width:100,height:400,widthType:"%",heightType:"px",customLaunch:!1,buttonText:""});case"popup":return jt(jt(jt({},t),Ft),{},{popupSize:"100",fontSize:20,sliderPosition:void 0,showLaunchButton:!0});case"slider":return jt(jt(jt({},t),{},{sliderPosition:"right"},Ft),{},{showLaunchButton:!0});case"sidetab":case"popover":return jt(jt({},t),{},{customLaunch:!1,showLaunchButton:!0})}}(e,r)),{},{type:e})),Ge().trackItemClicked({item:"form_embed_format",item_type:"radio",form_uid:r.formId,label:Ve(e)})}),[i,r]);return(0,Ye.jsx)(n.RadioControl,{selected:r.type,options:Ut,onChange:a})};function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(r),!0).forEach((function(t){Kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zt,Ht,Yt,Wt=function(e){return(0,Ye.jsxs)(n.PanelBody,{title:"Mode",initialOpen:!0,children:[(0,Ye.jsx)(Vt,Gt({},e)),(0,Ye.jsx)(Dt,Gt({},e))]})};function qt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Zt=Pe.div(zt||(zt=qt(["\n display: flex;\n align-items: center;\n margin: 12px 0;\n"]))),$t=Pe(n.Button)(Ht||(Ht=qt(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: rgb(227, 227, 227);\n color: rgb(38, 38, 39);\n position: relative;\n outline: none;\n border: 0px;\n cursor: pointer;\n white-space: nowrap;\n text-decoration: none;\n border-radius: 4px;\n font-size: 12px;\n line-height: 18px;\n margin-right: 12px;\n"]))),Xt=Pe.label(Yt||(Yt=qt(["\n flex: 1;\n"]))),Jt=function(e){var r=e.open,n=e.value,i=e.onChange,o=(0,t.useCallback)((function(){n?i(void 0):r()}),[i,r,n]);return(0,Ye.jsx)(Zt,{children:(0,Ye.jsxs)(Xt,{children:[(0,Ye.jsx)($t,{onClick:o,children:n?"Remove":"Add"}),"Custom Icon"]})})},Qt=function(e){var r=e.onChange,n=e.value,i=(0,t.useCallback)((function(e){r(e.url)}),[r]);return(0,Ye.jsx)(Tt.MediaUploadCheck,{children:(0,Ye.jsx)(Tt.MediaUpload,{onSelect:i,render:function(e){var t=e.open;return(0,Ye.jsx)(Jt,{value:n,onChange:r,open:t})}})})},er=[{label:"%",value:"%"},{label:"px",value:"px"}],tr={popup:[{label:"Large",value:"100"},{label:"Medium",value:"70"},{label:"Small",value:"50"}],slider:[{label:"Right",value:"right"},{label:"Left",value:"left"}]},rr=function(e){var r=function(e){var t=e.attributes,r=e.setAttributes,i=t.type,o=t.hideHeaders,a=t.width,s=t.widthType,u=t.height,c=t.heightType,l=t.opacity,f=t.popupSize,d=t.buttonText,p=t.buttonTextColor,h=t.fontSize,g=t.buttonColor,v=t.buttonRoundedCorner,y=t.buttonAsText,m=t.sliderPosition,E=t.customIcon,b=[(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)("p",{children:"Button color"}),(0,Ye.jsx)(n.ColorPalette,{colors:[],value:g,onChange:function(e){return r({buttonColor:e})},clearable:!1})]}),(0,Ye.jsx)(Qt,{value:E,onChange:function(e){return r({customIcon:e})},children:"Custom icon"}),(0,Ye.jsx)(n.ToggleControl,{label:"Hide headers",checked:o,onChange:function(){return r({hideHeaders:!o})}})];switch(i){case"widget":return[(0,Ye.jsx)(n.TextControl,{label:"Width",value:null!=a?a:"",help:a?"":"Please add a width to your Typeform",onChange:function(e){return r({width:e?+e:void 0})}}),(0,Ye.jsx)(n.SelectControl,{value:s,options:er,onChange:function(e){return r({widthType:e})}}),(0,Ye.jsx)(n.TextControl,{label:"Height",help:u?"":"Please add a height to your Typeform",value:null!=u?u:"",onChange:function(e){return r({height:e?+e:void 0})}}),(0,Ye.jsx)(n.SelectControl,{value:c,options:er,onChange:function(e){return r({heightType:e})}}),(0,Ye.jsx)(n.RangeControl,{label:"Background transparency",value:l,onChange:function(e){return r({opacity:e})}}),(0,Ye.jsx)(n.ToggleControl,{label:"Hide headers",checked:o,onChange:function(){return r({hideHeaders:!o})}})];case"popup":case"slider":return[(0,Ye.jsx)(n.SelectControl,{label:"popup"===i?"Popup size":"Slider position",value:"popup"===i?f:m,options:tr[i],onChange:function(e){r(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},"popup"===i?"popupSize":"sliderPosition",e))}}),(0,Ye.jsx)(n.TextControl,{label:"Button text",value:d,onChange:function(e){return r({buttonText:e})}}),(0,Ye.jsx)(n.RangeControl,{label:"Font Size",value:h,onChange:function(e){return r({fontSize:e})}}),(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)("p",{children:"Button color"}),(0,Ye.jsx)(n.ColorPalette,{colors:[],value:g,disableCustomColors:y,onChange:function(e){return r({buttonColor:e})},clearable:!1})]}),(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)("p",{children:"Button text color"}),(0,Ye.jsx)(n.ColorPalette,{colors:[],value:p,onChange:function(e){return r({buttonTextColor:e})},clearable:!1})]}),(0,Ye.jsx)(n.RangeControl,{label:"Border Radius",value:v,disabled:y,onChange:function(e){return r({buttonRoundedCorner:e})}}),(0,Ye.jsx)(n.ToggleControl,{label:"Change button to text",checked:y,onChange:function(){return r({buttonAsText:!y})}}),(0,Ye.jsx)(n.ToggleControl,{label:"Hide headers",checked:o,onChange:function(){return r({hideHeaders:!o})}})];case"popover":return b;case"sidetab":return[].concat(b,[(0,Ye.jsx)(n.TextControl,{label:"Button text",value:d,onChange:function(e){return r({buttonText:e})}})]);default:return[]}}(e);return(0,Ye.jsx)(n.PanelBody,{title:"Design",children:r.map((function(e,r){return(0,Ye.jsx)(t.Fragment,{children:e},r)}))})};function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ir=[{label:"On page load",value:"load"},{label:"On exit intent",value:"exit"},{label:"After a set time",value:"time"},{label:"After scrolling",value:"scroll"}],or=function(e){var t=e.attributes,r=e.setAttributes,i=t.type,o=t.customLaunch,a=t.customLaunchType,s=t.customLaunchTime,u=t.customLaunchScroll,c=t.showLaunchButton,l=t.closeOnSubmit,f=t.closeOnSubmitDelay,d=De(i),p=function(e,t){return function(){return r(nr({},e,!t))}},h=function(e,t){return function(n){r(nr({},e,"number"===t?+n:n))}};return(0,Ye.jsx)(n.PanelBody,{title:"Options",children:"widget"!==i?(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(n.ToggleControl,{label:"Custom launch options",checked:o,onChange:function(){r({customLaunch:!o})}}),o&&(0,Ye.jsx)(n.SelectControl,{options:ir,value:a,onChange:h("customLaunchType","string")}),o&&"time"===a&&(0,Ye.jsx)(n.TextControl,{label:"Time (seconds)",type:"number",placeholder:"0",min:0,value:s,onChange:h("customLaunchTime","number")}),o&&"scroll"===a&&(0,Ye.jsx)(n.TextControl,{label:"Scroll (%)",type:"number",min:0,max:100,value:u,onChange:h("customLaunchScroll","number")}),o&&d&&(0,Ye.jsx)(n.ToggleControl,{label:"Show launch button",checked:c,onChange:p("showLaunchButton",c)}),(0,Ye.jsx)(n.ToggleControl,{label:"Close on submit",checked:l,onChange:p("closeOnSubmit",l)}),l&&(0,Ye.jsx)(n.TextControl,{label:"Delay (seconds)",type:"number",placeholder:"0",min:0,value:f,onChange:h("closeOnSubmitDelay","number")})]}):(0,Ye.jsx)(n.PanelRow,{children:"There are no behaviour settings for this embed mode"})})};function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cr,lr=function(e){return(0,Ye.jsxs)(Tt.InspectorControls,{children:[(0,Ye.jsx)(Wt,sr({},e)),(0,Ye.jsx)(rr,sr({},e)),(0,Ye.jsx)(or,sr({},e))]})};function fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(r),!0).forEach((function(t){pr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hr,gr,vr=Pe(n.Placeholder)(cr||(hr=["\n .components-placeholder__label,\n .components-placeholder__instructions {\n margin: auto;\n text-align: center;\n }\n"],gr||(gr=hr.slice(0)),cr=Object.freeze(Object.defineProperties(hr,{raw:{value:Object.freeze(gr)}})))),yr=function(e){return["popover","sidetab"].includes(e)},mr=r(556),Er=r(488);Er.domToReact,Er.htmlToDOM,Er.attributesToProps,Er.Element;const br=Er;function _r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ir={url:{type:"string",default:""},formId:{type:"string",default:""},type:{type:"string",default:"widget"},hidden:{type:"object",default:void 0},chat:{type:"boolean",default:!1},width:{type:"number",default:100},widthType:{type:"string",default:"%"},height:{type:"number",default:500},heightType:{type:"string",default:"px"},autoResize:{type:"boolean",default:!1},hideFooter:{type:"boolean",default:!1},hideHeaders:{type:"boolean",default:!1},opacity:{type:"number",default:100},buttonText:{type:"string",default:"Launch me"},buttonColor:{type:"string",default:"#0445AF"},buttonTextColor:{type:"string",default:"#ffffff"},popupSize:{type:"string",default:"100"},fontSize:{type:"number",default:20},buttonRoundedCorner:{type:"number",default:100},buttonAsText:{type:"boolean",default:!1},sliderPosition:{type:"string",default:"right"},style:{type:"object",default:void 0},customLaunch:{type:"boolean",default:!1},customLaunchType:{type:"string",default:"load"},customLaunchTime:{type:"number",default:0},customLaunchScroll:{type:"number",default:30},showLaunchButton:{type:"boolean",default:!0},closeOnSubmit:{type:"boolean",default:!1},closeOnSubmitDelay:{type:"number",default:0},customIcon:{type:"string",default:""}};(0,e.registerBlockType)("typeform/embed-plugin",{title:"Typeform",description:"Create beautiful online forms, surveys, quizzes, and much more.",icon:function(){return(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"17",viewBox:"0 0 26 17","data-state":"symbol","data-palette":"positive","data-background":"#f1eCe3",children:(0,Ye.jsx)("g",{children:(0,Ye.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 4.25505C0 1.45248 1.10863 0 2.9771 0C4.84527 0 5.9542 1.45248 5.9542 4.25505V12.745C5.9542 15.5475 4.84557 17 2.9771 17C1.10863 17 0 15.5475 0 12.745V4.25505ZM20.055 0H13.9016C8.38127 0 7.94616 2.37439 7.94616 5.54025L7.93894 11.4515C7.93894 14.7522 8.35474 17 13.9231 17H20.055C25.5931 17 26 14.6339 26 11.468V5.5485C26 2.37439 25.5754 0 20.055 0Z",fill:"#1A1A19"})})})},category:"embed",attributes:Ir,edit:function(e){var r=e.attributes,n=r.type,i=r.url;return He(n),(0,t.useEffect)((function(){!function(e,t){var r=document.querySelector(e),n="widget"===t;r&&(r.style.padding=n?"24px":"")}("#block-".concat(e.clientId),n)}),[e.clientId,n]),(0,t.useEffect)((function(){var e;e={name:Be.SUPPORTED_PROVIDERS.SEGMENT,config:{key:"andUWamJKt0MHfe7QOZgKDG1ArqDFyMf"}},Ge().initRenderer(e,{category:"partner_integration",typeform_property:"wordpress_embed_plugin"})}),[]),(0,Ye.jsx)(Ye.Fragment,{children:i?(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(lr,dr({},e)),yr(n)?(0,Ye.jsx)(vr,{label:"Click here to select your Typeform ".concat(e.attributes.type),instructions:"This message is just for your convenience. You won't see it after you publish the page.",children:(0,Ye.jsx)($e,dr({},e))}):(0,Ye.jsx)($e,dr({},e))]}):(0,Ye.jsx)(It,dr({},e))})},save:function(e){var t=e.attributes,r=t.type,n=t.width,i=t.widthType,o=t.height,a=t.heightType,s=t.buttonColor,u=t.sliderPosition,c=t.popupSize,l=t.customLaunch,f=t.closeOnSubmit,d=t.closeOnSubmitDelay,p=t.customLaunchType,h=t.customLaunchTime,g=t.customLaunchScroll,v=t.customIcon,y=t.hideFooter,m=t.hideHeaders,E=t.opacity,b=t.buttonText,_=t.buttonAsText,O=t.hidden,I=t.buttonTextColor,T=t.fontSize,S=t.buttonRoundedCorner,w=t.showLaunchButton,R=t.formId,x=_?"link":"button",A={opacity:E,hideHeaders:m,hideFooter:y,buttonColor:s,customIcon:v,autoClose:f?d:void 0,buttonText:b,medium:"embed-wordpress",open:l&&p,openValue:l&&("time"===p?1e3*h:"scroll"===p?g:"exit"===p?50:void 0),position:"slider"===r?u:void 0,size:"popup"===r?parseInt(c):void 0},N="slider"===r||"popup"===r,C={borderRadius:S||void 0,backgroundColor:s||void 0,color:I||void 0,fontSize:T,popupType:x},P=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach((function(t){Or(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({width:n&&"".concat(n.toString()).concat(i)||void 0,height:o&&"".concat(o.toString()).concat(a)||void 0},N?C:{}),k={showLaunchButton:w,label:b},D=(0,mr.getSnippet)({embedType:r,formId:R,hiddenFields:O||void 0,embedOptions:A,styleOptions:P,extraOptions:k}),L=br(D);return N?(0,Ye.jsx)("p",{children:L}):(0,Ye.jsx)(Ye.Fragment,{children:L})}})})()})();