diff --git a/web-embeds/widget/index.js b/web-embeds/widget/index.js index f0fe7014..1a620182 100644 --- a/web-embeds/widget/index.js +++ b/web-embeds/widget/index.js @@ -1,3 +1,3 @@ /*! For license information please see index.js.LICENSE.txt */ -(()=>{var e={9839:function(e,t,a){var r;!function(n,l){"use strict";var o="function",i="undefined",c="object",s="string",p="model",m="name",u="type",f="vendor",h="version",d="architecture",b="console",y="mobile",g="tablet",v="smarttv",A="wearable",Z="embedded",H="Amazon",O="Apple",E="ASUS",w="BlackBerry",V="Browser",M="Chrome",j="Firefox",P="Google",L="Huawei",F="LG",S="Microsoft",C="Motorola",k="Opera",I="Samsung",x="Sharp",D="Sony",N="Xiaomi",R="Zebra",_="Facebook",T=function(e){for(var t={},a=0;a0?2===i.length?typeof i[1]==o?this[i[0]]=i[1].call(this,p):this[i[0]]=i[1]:3===i.length?typeof i[1]!==o||i[1].exec&&i[1].test?this[i[0]]=p?p.replace(i[1],i[2]):l:this[i[0]]=p?i[1].call(this,p,i[2]):l:4===i.length&&(this[i[0]]=p?i[3].call(this,p.replace(i[1],i[2])):l):this[i]=p||l;m+=2}},W=function(e,t){for(var a in t)if(typeof t[a]===c&&t[a].length>0){for(var r=0;r350?B(e,350):e,this},this.setUA(a),this};K.VERSION="0.7.33",K.BROWSER=T([m,h,"major"]),K.CPU=T([d]),K.DEVICE=T([p,f,u,b,y,v,g,A,Z]),K.ENGINE=K.OS=T([m,h]),typeof t!==i?(e.exports&&(t=e.exports=K),t.UAParser=K):a.amdO?(r=function(){return K}.call(t,a,t,e))===l||(e.exports=r):typeof n!==i&&(n.UAParser=K);var Y=typeof n!==i&&(n.jQuery||n.Zepto);if(Y&&!Y.ua){var $=new K;Y.ua=$.getResult(),Y.ua.get=function(){return $.getUA()},Y.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var a in t)Y.ua[a]=t[a]}}}("object"===typeof window?window:this)},6255:(e,t,a)=>{"use strict";function r(e,t){return new Promise((function(a,r){var n=setTimeout((function(){r(Error("Promise timed out"))}),t);e.then((function(e){return clearTimeout(n),a(e)})).catch(r)}))}function n(e,t,a){var n;return(n=a,new Promise((function(e){return setTimeout(e,n)}))).then((function(){return r(function(){try{return Promise.resolve(t(e))}catch(a){return Promise.reject(a)}}(),1e3)})).catch((function(t){null===e||void 0===e||e.log("warn","Callback Error",{error:t}),null===e||void 0===e||e.stats.increment("callback_error")})).then((function(){return e}))}a.d(t,{s2:()=>r,w_:()=>n})},4751:(e,t,a)=>{"use strict";a.d(t,{d:()=>c,j:()=>s});var r=a(2567),n=a(3559),l=a(2036),o=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,a){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:a})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce((function(e,t){var a,r,n,o=(0,l.Cl)((0,l.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete o.time;var i=null!==(n=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==n?n:"";return e[i]&&(i="".concat(i,"-").concat(Math.random())),(0,l.Cl)((0,l.Cl)({},e),((a={})[i]=o,a))}),{});console.table?console.table(e):console.log(e)}else this.logs.forEach((function(e){var t=e.level,a=e.message,r=e.extras;"info"===t||"debug"===t?console.log(a,null!==r&&void 0!==r?r:""):console[t](a,null!==r&&void 0!==r?r:"")}));this._logs=[]},e}(),i=a(527),c=function(e){var t,a,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(a=e.type)&&void 0!==a?a:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},s=function(){function e(e,t,a,n){void 0===t&&(t=(0,r.v4)()),void 0===a&&(a=new i.r),void 0===n&&(n=new o),this.attempts=0,this.event=e,this._id=t,this.logger=n,this.stats=a}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new c({reason:"Context Cancel"})},e.prototype.log=function(e,t,a){this.logger.log(e,t,a)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var a;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(a=this.event.integrations)||void 0===a?void 0:a[r]))return this.event}return(0,n.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},4663:(e,t,a)=>{"use strict";a.d(t,{g:()=>l,M:()=>o});var r=a(2036),n=a(7896);var l="onRemoveFromFuture",o=function(e){function t(t,a,r){var n=e.call(this)||this;return n.future=[],n.maxAttempts=t,n.queue=a,n.seen=null!==r&&void 0!==r?r:{},n}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],a=0;ae.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)}));return this.queue=this.queue.sort((function(t,a){return e.getAttempts(t)-e.getAttempts(a)})),r},t.prototype.pushWithBackoff=function(e){var t=this;if(0===this.getAttempts(e))return this.push(e)[0];var a=this.updateAttempts(e);if(a>this.maxAttempts||this.includes(e))return!1;var r=function(e){var t=Math.random()+1,a=e.minTimeout,r=void 0===a?500:a,n=e.factor,l=void 0===n?2:n,o=e.attempt,i=e.maxTimeout,c=void 0===i?1/0:i;return Math.min(t*r*Math.pow(l,o),c)}({attempt:a-1});return setTimeout((function(){t.queue.push(e),t.future=t.future.filter((function(t){return t.id!==e.id})),t.emit(l)}),r),this.future.push(e),!0},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find((function(t){return t.id===e.id})))||Boolean(this.future.find((function(t){return t.id===e.id})))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(n.v)},9919:(e,t,a)=>{"use strict";a.d(t,{C:()=>l,D:()=>o});var r=a(2036),n=a(4751);function l(e,t){e.log("debug","plugin",{plugin:t.name});var a=(new Date).getTime(),l=t[e.event.type];return void 0===l?Promise.resolve(e):function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e()];case 1:return[2,a.sent()];case 2:return t=a.sent(),[2,Promise.reject(t)];case 3:return[2]}}))}))}((function(){return l.apply(t,[e])})).then((function(e){var r=(new Date).getTime()-a;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e})).catch((function(a){if(a instanceof n.d&&"middleware_cancellation"===a.type)throw a;return a instanceof n.d?(e.log("warn",a.type,{plugin:t.name,error:a}),a):(e.log("error","plugin Error",{plugin:t.name,error:a}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),a)}))}function o(e,t){return l(e,t).then((function(t){if(t instanceof n.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)}))}},527:(e,t,a)=>{"use strict";a.d(t,{p:()=>n,r:()=>l});var r=a(2036),n=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,a){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!==a&&void 0!==a?a:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,a){this.metrics.push({metric:e,value:t,tags:null!==a&&void 0!==a?a:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map((function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})}));console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map((function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t}))},e}(),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t{"use strict";function r(e){return"string"===typeof e}function n(e){return"number"===typeof e}function l(e){return"function"===typeof e}function o(e){return void 0!==e&&null!==e}function i(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}a.d(t,{Et:()=>n,Kg:()=>r,Qd:()=>i,Tn:()=>l,t2:()=>o})},1740:(e,t,a)=>{"use strict";a.d(t,{u:()=>r});var r=function(){var e,t,a=!1,r=new Promise((function(r,n){e=function(){for(var e=[],t=0;t{"use strict";a.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null===e||void 0===e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var a=this,r=function(){for(var n=[],l=0;l{"use strict";a.r(t),a.d(t,{form:()=>l,link:()=>n});var r=a(6255);function n(e,t,a,n){var l=this;return e?((e instanceof Element?[e]:"toArray"in e?e.toArray():e).forEach((function(e){e.addEventListener("click",(function(o){var i,c,s=t instanceof Function?t(e):t,p=a instanceof Function?a(e):a,m=e.getAttribute("href")||e.getAttributeNS("http://www.w3.org/1999/xlink","href")||e.getAttribute("xlink:href")||(null===(i=e.getElementsByTagName("a")[0])||void 0===i?void 0:i.getAttribute("href")),u=(0,r.s2)(l.track(s,p,null!==n&&void 0!==n?n:{}),null!==(c=l.settings.timeout)&&void 0!==c?c:500);(function(e,t){return!("_blank"!==e.target||!t)})(e,m)||function(e){var t=e;return!!(t.ctrlKey||t.shiftKey||t.metaKey||t.button&&1==t.button)}(o)||m&&(o.preventDefault?o.preventDefault():o.returnValue=!1,u.catch(console.error).then((function(){window.location.href=m})).catch(console.error))}),!1)})),this):this}function l(e,t,a,n){var l=this;return e?(e instanceof HTMLFormElement&&(e=[e]),e.forEach((function(e){if(!(e instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var o=function(o){var i;o.preventDefault?o.preventDefault():o.returnValue=!1;var c=t instanceof Function?t(e):t,s=a instanceof Function?a(e):a;(0,r.s2)(l.track(c,s,null!==n&&void 0!==n?n:{}),null!==(i=l.settings.timeout)&&void 0!==i?i:500).catch(console.error).then((function(){e.submit()})).catch(console.error)},i=window.jQuery||window.Zepto;i?i(e).submit(o):e.addEventListener("submit",o,!1)})),this):this}},6303:(e,t,a)=>{"use strict";a.d(t,{a:()=>l,s:()=>n});var r=a(3364);function n(){return!(0,r.B)()||window.navigator.onLine}function l(){return!n()}},1348:(e,t,a)=>{"use strict";a.d(t,{a:()=>r});var r="api.segment.io/v1"},686:(e,t,a)=>{"use strict";a.d(t,{o:()=>o});var r=a(2036),n=a(4751),l=a(9947),o=function(e){function t(t,a){return e.call(this,t,a,new l.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(n.j)},3364:(e,t,a)=>{"use strict";function r(){return"undefined"!==typeof window}function n(){return!r()}a.d(t,{B:()=>r,S:()=>n})},5249:(e,t,a)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}a.d(t,{p:()=>r})},2541:(e,t,a)=>{"use strict";function r(e,t){return Object.keys(t).reduce((function(a,r){r.startsWith(e)&&(a[r.substr(e.length)]=t[r]);return a}),{})}a.r(t),a.d(t,{queryString:()=>o});var n=a(5249),l=a(4038);function o(e,t){var a=document.createElement("a");a.href=t;var o=a.search.slice(1).split("&").reduce((function(e,t){var a=t.split("="),r=a[0],l=a[1];return e[r]=(0,n.p)(l),e}),{}),i=[],c=o.ajs_uid,s=o.ajs_event,p=o.ajs_aid,m=(0,l.Qd)(e.options.useQueryString)?e.options.useQueryString:{},u=m.aid,f=void 0===u?/.+/:u,h=m.uid,d=void 0===h?/.+/:h;if(p){var b=Array.isArray(o.ajs_aid)?o.ajs_aid[0]:o.ajs_aid;f.test(b)&&e.setAnonymousId(b)}if(c){var y=Array.isArray(o.ajs_uid)?o.ajs_uid[0]:o.ajs_uid;if(d.test(y)){var g=r("ajs_trait_",o);i.push(e.identify(y,g))}}if(s){var v=Array.isArray(o.ajs_event)?o.ajs_event[0]:o.ajs_event,A=r("ajs_prop_",o);i.push(e.track(v,A))}return Promise.all(i)}},9947:(e,t,a)=>{"use strict";a.d(t,{U:()=>u});var r=a(2036),n=a(527),l=a(6519),o=a(8594),i=a(1101),c=a(1348);function s(e){console.error("Error sending segment performance metrics",e)}var p,m=function(){function e(e){var t,a,r,n,l,o=this;if(this.host=null!==(t=null===e||void 0===e?void 0:e.host)&&void 0!==t?t:c.a,this.sampleRate=null!==(a=null===e||void 0===e?void 0:e.sampleRate)&&void 0!==a?a:1,this.flushTimer=null!==(r=null===e||void 0===e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(n=null===e||void 0===e?void 0:e.maxQueueSize)&&void 0!==n?n:20,this.protocol=null!==(l=null===e||void 0===e?void 0:e.protocol)&&void 0!==l?l:"https",this.queue=[],this.sampleRate>0){var i=!1,p=function(){i||(i=!0,o.flush().catch(s),i=!1,setTimeout(p,o.flushTimer))};p()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var a=function(e,t,a){var n=t.reduce((function(e,t){var a=t.split(":"),r=a[0],n=a[1];return e[r]=n,e}),{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},n),{library:"analytics.js",library_version:"web"===a?"next-".concat(o.r):"npm:next-".concat(o.r)})}}(e,t,(0,i.X)());this.queue.push(a),e.includes("error")&&this.flush().catch(s)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e=this;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(t){s(t),e.sampleRate=0}))];case 1:return t.sent(),[2]}}))}))},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,a;return(0,r.YH)(this,(function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},a="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,l.h)(a,{headers:t,body:JSON.stringify(e),method:"POST"})]}))}))},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){p=new m(e)},t.prototype.increment=function(t,a,r){e.prototype.increment.call(this,t,a,r),null===p||void 0===p||p.increment(t,null!==r&&void 0!==r?r:[])},t}(n.p)},4816:(e,t,a)=>{"use strict";function r(e,t){var a=t.methodName,r=t.integrationName,n=t.type,l=t.didError,o=void 0!==l&&l;e.stats.increment("analytics_js.integration.invoke".concat(o?".error":""),1,["method:".concat(a),"integration_name:".concat(r),"type:".concat(n)])}a.d(t,{y:()=>r})},8594:(e,t,a)=>{"use strict";a.d(t,{r:()=>r});var r="1.66.0"},6519:(e,t,a)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(a,r){var n=new XMLHttpRequest,l=[],o=[],i={},c=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:c,headers:{keys:function(){return l},entries:function(){return o},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var s in n.open(t.method||"get",e,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,a){l.push(t=t.toLowerCase()),o.push([t,a]),i[t]=i[t]?i[t]+","+a:a})),a(c())},n.onerror=r,n.withCredentials="include"==t.credentials,t.headers)n.setRequestHeader(s,t.headers[s]);n.send(t.body||null)}))}a.d(t,{h:()=>l});var n=a(2358),l=function(){for(var e=[],t=0;t{"use strict";a.d(t,{m:()=>r});var r=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof a.g?a.g:null}},25:(e,t,a)=>{"use strict";a.d(t,{Ud:()=>o,kJ:()=>n,rY:()=>l});var r="analytics";function n(){return window[r]}function l(e){r=e}function o(e){window[r]=e}},2009:(e,t,a)=>{"use strict";function r(e,t){var a,r;return"boolean"===typeof(null===t||void 0===t?void 0:t.enabled)?t.enabled:null===(r=null===(a=null===e||void 0===e?void 0:e.__default)||void 0===a?void 0:a.enabled)||void 0===r||r}a.d(t,{j:()=>r})},5576:(e,t,a)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(t){return t.src===e}))}function n(e,t){var a=r(e);if(void 0!==a){var n=null===a||void 0===a?void 0:a.getAttribute("status");if("loaded"===n)return Promise.resolve(a);if("loading"===n)return new Promise((function(e,t){a.addEventListener("load",(function(){return e(a)})),a.addEventListener("error",(function(e){return t(e)}))}))}return new Promise((function(a,r){var n,l=window.document.createElement("script");l.type="text/javascript",l.src=e,l.async=!0,l.setAttribute("status","loading");for(var o=0,i=Object.entries(null!==t&&void 0!==t?t:{});ol,k:()=>n})},6937:(e,t,a)=>{"use strict";a.d(t,{J:()=>n});var r=a(2036);function n(e,t){var a,n=Object.entries(null!==(a=t.integrations)&&void 0!==a?a:{}).reduce((function(e,t){var a,n,l=t[0],o=t[1];return"object"===typeof o?(0,r.Cl)((0,r.Cl)({},e),((a={})[l]=o,a)):(0,r.Cl)((0,r.Cl)({},e),((n={})[l]={},n))}),{});return Object.entries(e.integrations).reduce((function(e,t){var a,l=t[0],o=t[1];return(0,r.Cl)((0,r.Cl)({},e),((a={})[l]=(0,r.Cl)((0,r.Cl)({},o),n[l]),a))}),{})}},3556:(e,t,a)=>{"use strict";a.d(t,{_:()=>n});var r=a(2036),n=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var a;return(0,r.YH)(this,(function(n){return a=function(n){return(0,r.sH)(void 0,void 0,void 0,(function(){var l;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e(n)?(l=a,[4,t()]):[3,2];case 1:return[2,l.apply(void 0,[r.sent()])];case 2:return[2]}}))}))},[2,a(void 0)]}))}))}},4613:(e,t,a)=>{"use strict";a.d(t,{I2:()=>i,YM:()=>c,qQ:()=>o});var r,n=a(25),l=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,o=function(e){var t=(0,n.kJ)();t&&(t._cdn=e),r=e},i=function(){var e=function(){var e;return null!==r&&void 0!==r?r:null===(e=(0,n.kJ)())||void 0===e?void 0:e._cdn}();if(e)return e;var t=function(){var e;return Array.prototype.slice.call(document.querySelectorAll("script")).forEach((function(t){var a,r=null!==(a=t.getAttribute("src"))&&void 0!==a?a:"",n=l.exec(r);n&&n[1]&&(e=n[1])})),e}();return t||"https://cdn.segment.com"},c=function(){var e=i();return"".concat(e,"/next-integrations")}},7250:(e,t,a)=>{"use strict";a.d(t,{x:()=>u});var r=a(2036),n=a(4663),l=a(686),o=a(3364),i={getItem:function(){},setItem:function(){},removeItem:function(){}};try{i=(0,o.B)()&&window.localStorage?window.localStorage:i}catch(f){console.warn("Unable to access localStorage",f)}function c(e){var t=i.getItem(e);return(t?JSON.parse(t):[]).map((function(e){return new l.o(e.event,e.id)}))}function s(e){var t=i.getItem(e);return t?JSON.parse(t):{}}function p(e){i.removeItem(e)}function m(e,t,a){void 0===a&&(a=0);var r="persisted-queue:v1:".concat(e,":lock"),n=i.getItem(r),l=n?JSON.parse(n):null,o=null===l||function(e){return(new Date).getTime()>e}(l);if(o)return i.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void i.removeItem(r);!o&&a<3?setTimeout((function(){m(e,t,a+1)}),50):console.error("Unable to retrieve lock")}var u=function(e){function t(t,a){var n=e.call(this,t,[])||this,l="persisted-queue:v1:".concat(a,":items"),o="persisted-queue:v1:".concat(a,":seen"),u=[],h={};return m(a,(function(){try{u=c(l),h=s(o),p(l),p(o),n.queue=(0,r.fX)((0,r.fX)([],u,!0),n.queue,!0),n.seen=(0,r.Cl)((0,r.Cl)({},h),n.seen)}catch(f){console.error(f)}})),window.addEventListener("pagehide",(function(){if(n.todo>0){var e=(0,r.fX)((0,r.fX)([],n.queue,!0),n.future,!0);try{m(a,(function(){!function(e,t){var a=c(e),n=(0,r.fX)((0,r.fX)([],t,!0),a,!0).reduce((function(e,t){var a;return(0,r.Cl)((0,r.Cl)({},e),((a={})[t.id]=t,a))}),{});i.setItem(e,JSON.stringify(Object.values(n)))}(l,e),function(e,t){var a=s(e);i.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},a),t)))}(o,n.seen)}))}catch(f){console.error(f)}}})),n}return(0,r.C6)(t,e),t}(n.M)},1462:(e,t,a)=>{"use strict";a.d(t,{W:()=>n});var r=a(3813);function n(e,t){var a=new r.Facade(e,t);return"track"===e.type&&(a=new r.Track(e,t)),"identify"===e.type&&(a=new r.Identify(e,t)),"page"===e.type&&(a=new r.Page(e,t)),"alias"===e.type&&(a=new r.Alias(e,t)),"group"===e.type&&(a=new r.Group(e,t)),"screen"===e.type&&(a=new r.Screen(e,t)),Object.defineProperty(a,"obj",{value:e,writable:!0}),a}},1101:(e,t,a)=>{"use strict";a.d(t,{X:()=>n});var r="npm";function n(){return r}},3327:(e,t,a)=>{"use strict";a.r(t),a.d(t,{LegacyDestination:()=>M,ajsDestinations:()=>j});var r=a(2036),n=a(3813),l=a(6303),o=a(686),i=a(4751),c=a(3364),s=a(9919),p=a(2009),m=a(6937),u=a(3556),f=a(4663),h=a(7250),d=a(5804),b=a(4613),y=a(5576);function g(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function v(e,t){return void 0===t&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function A(e,t,a,n){return(0,r.sH)(this,void 0,void 0,(function(){var l,o,i,c,s,p;return(0,r.YH)(this,(function(m){switch(m.label){case 0:l=g(t),o=v(l,n),i=(0,b.YM)(),c="".concat(i,"/integrations/").concat(null!==o&&void 0!==o?o:l,"/").concat(a,"/").concat(null!==o&&void 0!==o?o:l,".dynamic.js.gz"),m.label=1;case 1:return m.trys.push([1,3,,4]),[4,(0,y.k)(c)];case 2:return m.sent(),function(e,t,a){var n,l;try{var o=(null!==(l=null===(n=null===window||void 0===window?void 0:window.performance)||void 0===n?void 0:n.getEntriesByName(e,"resource"))&&void 0!==l?l:[])[0];o&&t.stats.gauge("legacy_destination_time",Math.round(o.duration),(0,r.fX)([a],o.duration<100?["cached"]:[],!0))}catch(i){}}(c,e,t),[3,4];case 3:throw s=m.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),s;case 4:return p=window["".concat(l,"Deps")],[4,Promise.all(p.map((function(e){return(0,y.k)(i+e+".gz")})))];case 5:return m.sent(),window["".concat(l,"Loader")](),[2,window["".concat(l,"Integration")]]}}))}))}var Z=a(4038),H=function(e,t){var a,r=t.type,n=t.bundlingStatus,l=t.versionSettings,o="unbundled"!==n&&("browser"===r||(null===(a=null===l||void 0===l?void 0:l.componentTypes)||void 0===a?void 0:a.includes("browser")));return!e.startsWith("Segment")&&"Iterable"!==e&&o},O=function(e,t){var a=!1===t.All&&void 0===t[e];return!1===t[e]||a},E=a(4816),w=a(1740);function V(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var a,n=this;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return a=[],(0,l.a)()?[2,t]:[4,(0,u._)((function(){return t.length>0&&(0,l.s)()}),(function(){return(0,r.sH)(n,void 0,void 0,(function(){var n,l;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return(n=t.pop())?[4,(0,s.C)(n,e)]:[2];case 1:return l=r.sent(),l instanceof o.o||a.push(n),[2]}}))}))}))];case 1:return i.sent(),a.map((function(e){return t.pushWithBackoff(e)})),[2,t]}}))}))}var M=function(){function e(e,t,a,n,l,o){void 0===n&&(n={});var i=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=(0,w.u)(),this.flushing=!1,this.name=e,this.version=t,this.settings=(0,r.Cl)({},n),this.disableAutoISOConversion=l.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.initializePromise.promise.then((function(e){return i._initialized=e}),(function(){})),this.options=l,this.buffer=l.disableClientPersistence?new f.M(4,[]):new h.x(4,"".concat(a,":dest-").concat(e)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return!!this._ready},e.prototype.ready=function(){var e=this;return this.initializePromise.promise.then((function(){var t;return null!==(t=e.onReady)&&void 0!==t?t:Promise.resolve()}))},e.prototype.load=function(e,t){var a;return(0,r.sH)(this,void 0,void 0,(function(){var n,l,o=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this._ready||void 0!==this.onReady?[2]:null===(a=this.integrationSource)||void 0===a?[3,1]:(l=a,[3,3]);case 1:return[4,A(e,this.name,this.version,this.options.obfuscate)];case 2:l=r.sent(),r.label=3;case 3:n=l,this.integration=function(e,t,a){var r;"Integration"in e?(e({user:function(){return a.user()},addIntegration:function(){}}),r=e.Integration):r=e;var n=new r(t);return n.analytics=a,n}(n,this.settings,t),this.onReady=new Promise((function(e){o.integration.once("ready",(function(){o._ready=!0,e(!0)}))})),this.integration.on("initialize",(function(){o.initializePromise.resolve(!0)}));try{(0,E.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(i){throw(0,E.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),i}return[2]}}))}))},e.prototype.unload=function(e,t){return function(e,t,a){return(0,r.sH)(this,void 0,void 0,(function(){var n,l,o,i;return(0,r.YH)(this,(function(r){return n=(0,b.YM)(),l=g(e),o=v(e,a),i="".concat(n,"/integrations/").concat(null!==o&&void 0!==o?o:l,"/").concat(t,"/").concat(null!==o&&void 0!==o?o:l,".dynamic.js.gz"),[2,(0,y.d)(i)]}))}))}(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var e,t=[],a=0;a0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},e}();function j(e,t,a,n,l,o){var i,s;if(void 0===a&&(a={}),void 0===n&&(n={}),(0,c.S)())return[];t.plan&&((n=null!==n&&void 0!==n?n:{}).plan=t.plan);var p=null!==(s=null===(i=t.middlewareSettings)||void 0===i?void 0:i.routingRules)&&void 0!==s?s:[],u=t.integrations,f=n.integrations,h=(0,m.J)(t,null!==n&&void 0!==n?n:{}),d=null===o||void 0===o?void 0:o.reduce((function(e,t){var a;return(0,r.Cl)((0,r.Cl)({},e),((a={})[function(e){return("Integration"in e?e.Integration:e).prototype.name}(t)]=t,a))}),{}),b=new Set((0,r.fX)((0,r.fX)([],Object.keys(u).filter((function(e){return H(e,u[e])})),!0),Object.keys(d||{}).filter((function(e){return(0,Z.Qd)(u[e])||(0,Z.Qd)(null===f||void 0===f?void 0:f[e])})),!0));return Array.from(b).filter((function(e){return!O(e,a)})).map((function(t){var a=function(e){var t,a,r,n;return null!==(n=null!==(a=null===(t=null===e||void 0===e?void 0:e.versionSettings)||void 0===t?void 0:t.override)&&void 0!==a?a:null===(r=null===e||void 0===e?void 0:e.versionSettings)||void 0===r?void 0:r.version)&&void 0!==n?n:"latest"}(u[t]),r=new M(t,a,e,h[t],n,null===d||void 0===d?void 0:d[t]);return p.filter((function(e){return e.destinationName===t})).length>0&&l&&r.addMiddleware(l),r}))}},8228:(e,t,a)=>{"use strict";a.r(t),a.d(t,{loadLegacyVideoPlugins:()=>n});var r=a(2036);function n(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,Promise.resolve().then(a.t.bind(a,3629,23))];case 1:return t=r.sent(),e._plugins=t,[2]}}))}))}},5804:(e,t,a)=>{"use strict";a.r(t),a.d(t,{applyDestinationMiddleware:()=>o,sourceMiddlewarePlugin:()=>i});var r=a(2036),n=a(4751),l=a(1462);function o(e,t,a){return(0,r.sH)(this,void 0,void 0,(function(){function n(t,a){return(0,r.sH)(this,void 0,void 0,(function(){var n,o,i;return(0,r.YH)(this,(function(c){switch(c.label){case 0:return n=!1,o=null,[4,a({payload:(0,l.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){n=!0,null===e&&(o=null),e&&(o=e.obj)}})];case 1:return c.sent(),n||null===o||(o.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((i={})[e]=!1,i))),[2,o]}}))}))}var o,i,c,s,p;return(0,r.YH)(this,(function(e){switch(e.label){case 0:o=(0,l.W)(t,{clone:!0,traverse:!1}).rawEvent(),i=0,c=a,e.label=1;case 1:return i{"use strict";a.r(t),a.d(t,{remoteMiddlewares:()=>i});var r=a(2036),n=a(3364),l=a(5576),o=a(4613);function i(e,t,a){var i;return(0,r.sH)(this,void 0,void 0,(function(){var c,s,p,m,u=this;return(0,r.YH)(this,(function(f){switch(f.label){case 0:return(0,n.S)()?[2,[]]:(c=(0,o.YM)(),s=null!==(i=t.enabledMiddleware)&&void 0!==i?i:{},p=Object.entries(s).filter((function(e){e[0];return e[1]})).map((function(e){return e[0]})),m=p.map((function(t){return(0,r.sH)(u,void 0,void 0,(function(){var n,o,i,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:n=t.replace("@segment/",""),o=n,a&&(o=btoa(n).replace(/=/g,"")),i="".concat(c,"/middleware/").concat(o,"/latest/").concat(o,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,l.k)(i)];case 2:return r.sent(),[2,window["".concat(n,"Middleware")]];case 3:return s=r.sent(),e.log("error",s),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(m)]);case 1:return[2,f.sent().filter(Boolean)]}}))}))}},1349:(e,t,a)=>{"use strict";a.r(t),a.d(t,{tsubMiddleware:()=>n});var r=a(8801),n=function(e){return function(t){var a=t.payload,n=t.integration,l=t.next;new r.Store(e).getRulesByDestinationName(n).forEach((function(e){for(var t=e.matchers,n=e.transformers,o=0;o{"use strict";a.r(t),a.d(t,{schemaFilter:()=>l});var r=a(2036),n=a(2009);function l(e,t){function a(a){var l=e,o=a.event.event;if(l&&o){var i=l[o];if(!(0,n.j)(l,i))return a.updateEvent("integrations",(0,r.Cl)((0,r.Cl)({},a.event.integrations),{All:!1,"Segment.io":!0})),a;var c=function(e,t){var a,r;if(!e||!Object.keys(e))return{};var n=e.integrations?Object.keys(e.integrations).filter((function(t){return!1===e.integrations[t]})):[],l=[];return(null!==(a=t.remotePlugins)&&void 0!==a?a:[]).forEach((function(e){n.forEach((function(t){e.creationName==t&&l.push(e.name)}))})),(null!==(r=t.remotePlugins)&&void 0!==r?r:[]).reduce((function(e,t){return t.settings.subscriptions&&l.includes(t.name)&&t.settings.subscriptions.forEach((function(a){return e["".concat(t.name," ").concat(a.partnerAction)]=!1})),e}),{})}(i,t);a.updateEvent("integrations",(0,r.Cl)((0,r.Cl)((0,r.Cl)({},a.event.integrations),null===i||void 0===i?void 0:i.integrations),c))}return a}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:a,alias:a,track:a,identify:a,group:a}}},3629:e=>{window,e.exports=function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=2)}([function(e,t,a){"use strict";a.r(t);var r="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise((function(a,r){var n=new XMLHttpRequest;for(var l in n.open(t.method||"get",e,!0),t.headers)n.setRequestHeader(l,t.headers[l]);function o(){var e,t=[],a=[],r={};return n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(n,l,o){t.push(l=l.toLowerCase()),a.push([l,o]),e=r[l],r[l]=e?e+","+o:o})),{ok:2==(n.status/100|0),status:n.status,statusText:n.statusText,url:n.responseURL,clone:o,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},headers:{keys:function(){return t},entries:function(){return a},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}n.withCredentials="include"==t.credentials,n.onload=function(){a(o())},n.onerror=r,n.send(t.body)}))};t.default=r},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(t))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(e){var t=this;return new Promise((function(a,r){var l=e.id;(0,n.default)("https://api.vimeo.com/videos/"+l,{headers:{Authorization:"Bearer "+t.authToken}}).then((function(e){return e.ok?e.json():r(e)})).then((function(e){t.metadata.content.title=e.name,t.metadata.content.description=e.description,t.metadata.content.publisher=e.user.name,t.metadata.playback.position=0,t.metadata.playback.totalLength=e.duration})).catch((function(e){return console.error("Request to Vimeo API Failed with: ",e),r(e)}))}))}},{key:"updateMetadata",value:function(e){var t=this;return new Promise((function(a,r){t.player.getVolume().then((function(r){r&&(t.metadata.playback.sound=100*r),t.metadata.playback.position=e.seconds,a()})).catch(r)}))}}]),t}(l(a(1)).default);t.default=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a2e3}}]),t}(l(a(1)).default);function i(e){var t=e.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return t=t.slice(1).map((function(e){if(null!=e)return e.replace(/\D/,"")})),3600*(parseInt(t[0])||0)+60*(parseInt(t[1])||0)+(parseInt(t[2])||0)}t.default=o}])},1537:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(6204));function l(e,t){return function(){var a=this.traits(),r=this.properties?this.properties():{};return n.default(a,"address."+e)||n.default(a,e)||(t?n.default(a,"address."+t):null)||(t?n.default(a,t):null)||n.default(r,"address."+e)||n.default(r,e)||(t?n.default(r,"address."+t):null)||(t?n.default(r,t):null)}}t.default=function(e){e.zip=l("postalCode","zip"),e.country=l("country"),e.street=l("street"),e.state=l("state"),e.city=l("city"),e.region=l("region")}},6205:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var n=r(a(1521)),l=a(3439);function o(e,t){l.Facade.call(this,e,t)}t.Alias=o,n.default(o,l.Facade),o.prototype.action=function(){return"alias"},o.prototype.type=o.prototype.action,o.prototype.previousId=function(){return this.field("previousId")||this.field("from")},o.prototype.from=o.prototype.previousId,o.prototype.userId=function(){return this.field("userId")||this.field("to")},o.prototype.to=o.prototype.userId},3368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!==typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(a[r]=e(t[r]));return a}return Array.isArray(t)?t.map(e):t}},3314:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var n=r(a(1521)),l=a(3439);function o(e,t){l.Facade.call(this,e,t)}t.Delete=o,n.default(o,l.Facade),o.prototype.type=function(){return"delete"}},3439:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var n=r(a(1537)),l=a(3368),o=r(a(8225)),i=r(a(7925)),c=r(a(6204)),s=r(a(6208));function p(e,t){t=t||{},this.raw=l.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=l.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?i.default(e.timestamp):new Date,t.traverse&&s.default(e),this.opts=t,this.obj=e}t.Facade=p;var m=p.prototype;function u(e){return l.clone(e)}m.proxy=function(e){var t=e.split("."),a=this[e=t.shift()]||this.obj[e];return a?("function"===typeof a&&(a=a.call(this)||{}),0===t.length||(a=c.default(a,t.join("."))),this.opts.clone?u(a):a):a},m.field=function(e){var t=this.obj[e];return this.opts.clone?u(t):t},p.proxy=function(e){return function(){return this.proxy(e)}},p.field=function(e){return function(){return this.field(e)}},p.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var a=this.proxy(e);return a&&(a=[this.opts.clone?l.clone(a):a]),a||[]}},p.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var a=this.proxy(e+"s");return Array.isArray(a)?a[0]:void 0}},m.json=function(){var e=this.opts.clone?l.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},m.rawEvent=function(){return this.raw},m.options=function(e){var t=this.obj.options||this.obj.context||{},a=this.opts.clone?l.clone(t):t;if(!e)return a;if(this.enabled(e)){var r=this.integrations(),n=r[e]||c.default(r,e);return"object"!==typeof n&&(n=c.default(this.options(),e)),"object"===typeof n?n:{}}},m.context=m.options,m.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!==typeof t&&(t=this.proxy("options.all")),"boolean"!==typeof t&&(t=this.proxy("integrations.all")),"boolean"!==typeof t&&(t=!0);var a=t&&o.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(a=r.providers[e]),r.hasOwnProperty(e)){var n=r[e];a="boolean"!==typeof n||n}return!!a},m.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},m.active=function(){var e=this.proxy("options.active");return null!==e&&void 0!==e||(e=!0),e},m.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},m.sessionId=m.anonymousId,m.groupId=p.proxy("options.groupId"),m.traits=function(e){var t=this.proxy("options.traits")||{},a=this.userId();for(var r in e=e||{},a&&(t.id=a),e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==n)continue;t[e[r]]=n,delete t[r]}return t},m.library=function(){var e=this.proxy("options.library");return e?"string"===typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},m.device=function(){var e=this.proxy("context.device");"object"===typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},m.userAgent=p.proxy("context.userAgent"),m.timezone=p.proxy("context.timezone"),m.timestamp=p.field("timestamp"),m.channel=p.field("channel"),m.ip=p.proxy("context.ip"),m.userId=p.field("userId"),n.default(m)},7994:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var n=r(a(1521)),l=r(a(4700)),o=r(a(7925)),i=a(3439);function c(e,t){i.Facade.call(this,e,t)}t.Group=c,n.default(c,i.Facade);var s=c.prototype;s.action=function(){return"group"},s.type=s.action,s.groupId=i.Facade.field("groupId"),s.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return o.default(e)},s.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return l.default(t)?t:void 0},s.traits=function(e){var t=this.properties(),a=this.groupId();for(var r in e=e||{},a&&(t.id=a),e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=null==this[r]?this.proxy("traits."+r):this[r]();if(null==n)continue;t[e[r]]=n,delete t[r]}return t},s.name=i.Facade.proxy("traits.name"),s.industry=i.Facade.proxy("traits.industry"),s.employees=i.Facade.proxy("traits.employees"),s.properties=function(){return this.field("traits")||this.field("properties")||{}}},4597:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var n=a(3439),l=r(a(6204)),o=r(a(1521)),i=r(a(4700)),c=r(a(7925)),s=function(e){return e.trim()};function p(e,t){n.Facade.call(this,e,t)}t.Identify=p,o.default(p,n.Facade);var m=p.prototype;m.action=function(){return"identify"},m.type=m.action,m.traits=function(e){var t=this.field("traits")||{},a=this.userId();for(var r in e=e||{},a&&(t.id=a),e){var n=null==this[r]?this.proxy("traits."+r):this[r]();null!=n&&(t[e[r]]=n,r!==e[r]&&delete t[r])}return t},m.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return i.default(t)?t:void 0},m.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return c.default(e)},m.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return c.default(e)},m.companyName=function(){return this.proxy("traits.company.name")},m.name=function(){var e=this.proxy("traits.name");if("string"===typeof e)return s(e);var t=this.firstName(),a=this.lastName();return t&&a?s(t+" "+a):void 0},m.firstName=function(){var e=this.proxy("traits.firstName");if("string"===typeof e)return s(e);var t=this.proxy("traits.name");return"string"===typeof t?s(t).split(" ")[0]:void 0},m.lastName=function(){var e=this.proxy("traits.lastName");if("string"===typeof e)return s(e);var t=this.proxy("traits.name");if("string"===typeof t){var a=s(t).indexOf(" ");if(-1!==a)return s(t.substr(a+1))}},m.uid=function(){return this.userId()||this.username()||this.email()},m.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},m.age=function(){var e=this.birthday(),t=l.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},m.avatar=function(){var e=this.traits();return l.default(e,"avatar")||l.default(e,"photoUrl")||l.default(e,"avatarUrl")},m.position=function(){var e=this.traits();return l.default(e,"position")||l.default(e,"jobTitle")},m.username=n.Facade.proxy("traits.username"),m.website=n.Facade.one("traits.website"),m.websites=n.Facade.multi("traits.website"),m.phone=n.Facade.one("traits.phone"),m.phones=n.Facade.multi("traits.phone"),m.address=n.Facade.proxy("traits.address"),m.gender=n.Facade.proxy("traits.gender"),m.birthday=n.Facade.proxy("traits.birthday")},3813:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=/.+\@.+\..+/;t.default=function(e){return a.test(e)}},8225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={Salesforce:!0};t.default=function(e){return!a[e]}},9862:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var n=r(a(1521)),l=a(3439),o=a(7390),i=r(a(4700));function c(e,t){l.Facade.call(this,e,t)}t.Page=c,n.default(c,l.Facade);var s=c.prototype;s.action=function(){return"page"},s.type=s.action,s.category=l.Facade.field("category"),s.name=l.Facade.field("name"),s.title=l.Facade.proxy("properties.title"),s.path=l.Facade.proxy("properties.path"),s.url=l.Facade.proxy("properties.url"),s.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},s.properties=function(e){var t=this.field("properties")||{},a=this.category(),r=this.name();for(var n in e=e||{},a&&(t.category=a),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=null==this[n]?this.proxy("properties."+n):this[n]();if(null==l)continue;t[e[n]]=l,n!==e[n]&&delete t[n]}return t},s.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return i.default(t)?t:void 0},s.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},s.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},s.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new o.Track(t,this.opts)}},4797:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var n=r(a(1521)),l=a(9862),o=a(7390);function i(e,t){l.Page.call(this,e,t)}t.Screen=i,n.default(i,l.Page),i.prototype.action=function(){return"screen"},i.prototype.type=i.prototype.action,i.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},i.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new o.Track(t,this.opts)}},7390:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var n=r(a(1521)),l=a(3439),o=a(4597),i=r(a(4700)),c=r(a(6204));function s(e,t){l.Facade.call(this,e,t)}t.Track=s,n.default(s,l.Facade);var p=s.prototype;p.action=function(){return"track"},p.type=p.action,p.event=l.Facade.field("event"),p.value=l.Facade.proxy("properties.value"),p.category=l.Facade.proxy("properties.category"),p.id=l.Facade.proxy("properties.id"),p.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},p.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},p.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},p.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},p.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},p.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},p.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},p.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},p.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},p.sku=l.Facade.proxy("properties.sku"),p.tax=l.Facade.proxy("properties.tax"),p.name=l.Facade.proxy("properties.name"),p.price=l.Facade.proxy("properties.price"),p.total=l.Facade.proxy("properties.total"),p.repeat=l.Facade.proxy("properties.repeat"),p.coupon=l.Facade.proxy("properties.coupon"),p.shipping=l.Facade.proxy("properties.shipping"),p.discount=l.Facade.proxy("properties.discount"),p.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},p.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},p.description=l.Facade.proxy("properties.description"),p.plan=l.Facade.proxy("properties.plan"),p.subtotal=function(){var e=c.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var a=this.tax();a&&(t-=a),(a=this.shipping())&&(t-=a),(a=this.discount())&&(t+=a)}return t},p.products=function(){var e=this.properties(),t=c.default(e,"products");return Array.isArray(t)?t.filter((function(e){return null!==e})):[]},p.quantity=function(){return(this.obj.properties||{}).quantity||1},p.currency=function(){return(this.obj.properties||{}).currency||"USD"},p.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},p.query=l.Facade.proxy("options.query"),p.properties=function(e){var t=this.field("properties")||{};for(var a in e=e||{})if(Object.prototype.hasOwnProperty.call(e,a)){var r=null==this[a]?this.proxy("properties."+a):this[a]();if(null==r)continue;t[e[a]]=r,delete t[a]}return t},p.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},p.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return i.default(t)?t:void 0},p.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(!e)return;if("number"===typeof e)return e;if("string"!==typeof e)return;if(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e))return e}(e)},p.cents=function(){var e=this.revenue();return"number"!==typeof e?this.value()||0:100*e},p.identify=function(){var e=this.json();return e.traits=this.traits(),new o.Identify(e,this.opts)}},6208:(e,t,a)=>{"use strict";var r=a(8355);function n(e,t){return void 0===t&&(t=!0),e&&"object"===typeof e?function(e,t){return Object.keys(e).forEach((function(a){e[a]=n(e[a],t)})),e}(e,t):Array.isArray(e)?function(e,t){return e.forEach((function(a,r){e[r]=n(a,t)})),e}(e,t):r.is(e,t)?r.parse(e):e}e.exports=n},8355:(e,t)=>{"use strict";var a=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=a.exec(e),n=0;if(!r)return new Date(e);for(var l,o=0;l=t[o];o++)r[l]=parseInt(r[l],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?n=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(n=60*r[11]+r[12],"+"===r[10]&&(n=0-n));var i=Date.UTC(r[1],r[2],r[3],r[5],r[6]+n,r[7],r[8]);return new Date(i)},t.is=function(e,t){return"string"===typeof e&&((!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&a.test(e))}},8801:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Store=t.matches=t.transform=void 0;var n=a(6509);Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return r(n).default}});var l=a(6810);Object.defineProperty(t,"matches",{enumerable:!0,get:function(){return r(l).default}});var o=a(7912);Object.defineProperty(t,"Store",{enumerable:!0,get:function(){return r(o).default}})},6810:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(7733));function l(e,t){if(!Array.isArray(e))return!0===o(e,t);var a=e[0];switch(a){case"!":return!l(e[1],t);case"or":for(var r=1;r":case">=":return function(e,t,a,r){i(e)&&(e=l(e,r));i(t)&&(t=l(t,r));if("number"!==typeof e||"number"!==typeof t)return!1;switch(a){case"<=":return e<=t;case">=":return e>=t;case"<":return e":return e>t;default:throw new Error("Invalid operator in compareNumbers: ".concat(a))}}(o(e[1],t),o(e[2],t),a,t);case"in":return function(e,t,a){return void 0!==t.find((function(t){return o(t,a)===e}))}(o(e[1],t),o(e[2],t),t);case"contains":return function(e,t){if("string"!==typeof e||"string"!==typeof t)return!1;return-1!==e.indexOf(t)}(o(e[1],t),o(e[2],t));case"match":return function(e,t){if("string"!==typeof e||"string"!==typeof t)return!1;return function(e,t){var a,r;e:for(;e.length>0;){var n=void 0,l=void 0;if(n=(a=c(e)).star,l=a.chunk,e=a.pattern,n&&""===l)return!0;var o=s(l,t),i=o.t,p=o.ok,m=o.err;if(m)return!1;if(!p||!(0===i.length||e.length>0)){if(n)for(var u=0;u0)continue;t=i;continue e}if(m)return!1}return!1}t=i}return 0===t.length}(t,e)}(o(e[1],t),o(e[2],t));case"lowercase":var n=o(e[1],t);return"string"!==typeof n?null:n.toLowerCase();case"typeof":return typeof o(e[1],t);case"length":return function(e){if(null===e)return 0;if(!Array.isArray(e)&&"string"!==typeof e)return NaN;return e.length}(o(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(a))}}function o(e,t){return Array.isArray(e)?e:"object"===typeof e?e.value:(0,n.default)(t,e)}function i(e){return!!Array.isArray(e)&&(("lowercase"===e[0]||"length"===e[0]||"typeof"===e[0])&&2===e.length||("contains"===e[0]||"match"===e[0])&&3===e.length)}function c(e){for(var t={star:!1,chunk:"",pattern:""};e.length>0&&"*"===e[0];)e=e.slice(1),t.star=!0;var a,r=!1;e:for(a=0;a0;){if(0===t.length)return n;switch(e[0]){case"[":var l=t[0];t=t.slice(1);var o=!0;(e=e.slice(1)).length>0&&"^"===e[0]&&(o=!1,e=e.slice(1));for(var i=!1,c=0;;){if(e.length>0&&"]"===e[0]&&c>0){e=e.slice(1);break}var s,m="";if(s=(a=p(e)).char,e=a.newChunk,a.err)return n;if(m=s,"-"===e[0]&&(m=(r=p(e.slice(1))).char,e=r.newChunk,r.err))return n;s<=l&&l<=m&&(i=!0),c++}if(i!==o)return n;break;case"?":t=t.slice(1),e=e.slice(1);break;case"\\":if(0===(e=e.slice(1)).length)return n.err=!0,n;default:if(e[0]!==t[0])return n;t=t.slice(1),e=e.slice(1)}}return n.t=t,n.ok=!0,n.err=!1,n}function p(e){var t={char:"",newChunk:"",err:!1};return 0===e.length||"-"===e[0]||"]"===e[0]||"\\"===e[0]&&0===(e=e.slice(1)).length?(t.err=!0,t):(t.char=e[0],t.newChunk=e.slice(1),0===t.newChunk.length&&(t.err=!0),t)}t.default=function(e,t){if(!t)throw new Error("No matcher supplied!");switch(t.type){case"all":return!0;case"fql":return function(e,t){if(!e)return!1;try{e=JSON.parse(e)}catch(r){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(e,'": ').concat(r))}var a=l(e,t);if("boolean"!==typeof a)return!1;return a}(t.ir,e);default:throw new Error("Matcher of type ".concat(t.type," unsupported."))}}},7912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e){this.rules=[],this.rules=e||[]}return e.prototype.getRulesByDestinationName=function(e){for(var t=[],a=0,r=this.rules;a1?(o.pop(),s=(0,l.default)(a,o.join("."))):s=e,"object"===typeof s){if(n.copy){var p=(0,l.default)(a,n.copy);void 0!==p&&(0,i.dset)(e,r,p)}else if(n.move){var m=(0,l.default)(a,n.move);void 0!==m&&(0,i.dset)(e,r,m),(0,c.unset)(e,n.move)}else n.hasOwnProperty("set")&&(0,i.dset)(e,r,n.set);if(n.to_string){var u=(0,l.default)(e,r);if("string"===typeof u||"object"===typeof u&&null!==u)continue;void 0!==u?(0,i.dset)(e,r,JSON.stringify(u)):(0,i.dset)(e,r,"undefined")}}}}function f(e,t){return!(t.sample.percent<=0)&&(t.sample.percent>=1||(t.sample.path?function(e,t){var a=(0,l.default)(e,t.sample.path),r=(0,n.default)(JSON.stringify(a)),i=-64,c=[];h(r.slice(0,8),c);for(var s=0,p=0;p<64&&1!==c[p];p++)s++;if(0!==s){var m=[];h(r.slice(9,16),m),i-=s,c.splice(0,s),m.splice(64-s),c=c.concat(m)}return c[63]=0===c[63]?1:0,(0,o.default)(parseInt(c.join(""),2),i)=1;n/=2)r-n>=0?(r-=n,t.push(1)):t.push(0)}t.default=function(e,t){for(var a=e,r=0,n=t;r{"use strict";var t="function"===typeof Float64Array?Float64Array:void 0;e.exports=t},8671:(e,t,a)=>{"use strict";var r,n=a(5102),l=a(266),o=a(7236);r=n()?l:o,e.exports=r},7236:e=>{"use strict";e.exports=function(){throw new Error("not implemented")}},6118:(e,t,a)=>{"use strict";var r,n=a(2369),l=a(7338),o=a(1052);r=n()?l:o,e.exports=r},1052:e=>{"use strict";e.exports=function(){throw new Error("not implemented")}},7338:e=>{"use strict";var t="function"===typeof Uint16Array?Uint16Array:void 0;e.exports=t},2268:(e,t,a)=>{"use strict";var r,n=a(9671),l=a(3414),o=a(9957);r=n()?l:o,e.exports=r},9957:e=>{"use strict";e.exports=function(){throw new Error("not implemented")}},3414:e=>{"use strict";var t="function"===typeof Uint32Array?Uint32Array:void 0;e.exports=t},3035:(e,t,a)=>{"use strict";var r,n=a(666),l=a(7670),o=a(520);r=n()?l:o,e.exports=r},520:e=>{"use strict";e.exports=function(){throw new Error("not implemented")}},7670:e=>{"use strict";var t="function"===typeof Uint8Array?Uint8Array:void 0;e.exports=t},6461:e=>{"use strict";var t="function"===typeof Float64Array?Float64Array:null;e.exports=t},5102:(e,t,a)=>{"use strict";var r=a(353);e.exports=r},353:(e,t,a)=>{"use strict";var r=a(972),n=a(6461);e.exports=function(){var e,t;if("function"!==typeof n)return!1;try{t=new n([1,3.14,-3.14,NaN]),e=r(t)&&1===t[0]&&3.14===t[1]&&-3.14===t[2]&&t[3]!==t[3]}catch(a){e=!1}return e}},3895:(e,t,a)=>{"use strict";var r=a(450);e.exports=r},450:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,a){return void 0!==e&&null!==e&&t.call(e,a)}},6991:(e,t,a)=>{"use strict";var r=a(3546);e.exports=r},3546:e=>{"use strict";e.exports=function(){return"function"===typeof Symbol&&"symbol"===typeof Symbol("foo")}},5945:(e,t,a)=>{"use strict";var r=a(5112);e.exports=r},5112:(e,t,a)=>{"use strict";var r=a(6991)();e.exports=function(){return r&&"symbol"===typeof Symbol.toStringTag}},2369:(e,t,a)=>{"use strict";var r=a(4928);e.exports=r},4928:(e,t,a)=>{"use strict";var r=a(6043),n=a(9313),l=a(6002);e.exports=function(){var e,t;if("function"!==typeof l)return!1;try{t=new l(t=[1,3.14,-3.14,n+1,n+2]),e=r(t)&&1===t[0]&&3===t[1]&&t[2]===n-2&&0===t[3]&&1===t[4]}catch(a){e=!1}return e}},6002:e=>{"use strict";var t="function"===typeof Uint16Array?Uint16Array:null;e.exports=t},9671:(e,t,a)=>{"use strict";var r=a(3650);e.exports=r},3650:(e,t,a)=>{"use strict";var r=a(7821),n=a(9327),l=a(545);e.exports=function(){var e,t;if("function"!==typeof l)return!1;try{t=new l(t=[1,3.14,-3.14,n+1,n+2]),e=r(t)&&1===t[0]&&3===t[1]&&t[2]===n-2&&0===t[3]&&1===t[4]}catch(a){e=!1}return e}},545:e=>{"use strict";var t="function"===typeof Uint32Array?Uint32Array:null;e.exports=t},666:(e,t,a)=>{"use strict";var r=a(8189);e.exports=r},8189:(e,t,a)=>{"use strict";var r=a(5024),n=a(6016),l=a(7397);e.exports=function(){var e,t;if("function"!==typeof l)return!1;try{t=new l(t=[1,3.14,-3.14,n+1,n+2]),e=r(t)&&1===t[0]&&3===t[1]&&t[2]===n-2&&0===t[3]&&1===t[4]}catch(a){e=!1}return e}},7397:e=>{"use strict";var t="function"===typeof Uint8Array?Uint8Array:null;e.exports=t},972:(e,t,a)=>{"use strict";var r=a(3763);e.exports=r},3763:(e,t,a)=>{"use strict";var r=a(2887),n="function"===typeof Float64Array;e.exports=function(e){return n&&e instanceof Float64Array||"[object Float64Array]"===r(e)}},2376:(e,t,a)=>{"use strict";var r=a(3035),n={uint16:a(6118),uint8:r};e.exports=n},1143:(e,t,a)=>{"use strict";var r=a(1122);e.exports=r},1122:(e,t,a)=>{"use strict";var r,n=a(2376);r=function(){var e;return(e=new n.uint16(1))[0]=4660,52===new n.uint8(e.buffer)[0]}(),e.exports=r},6043:(e,t,a)=>{"use strict";var r=a(566);e.exports=r},566:(e,t,a)=>{"use strict";var r=a(2887),n="function"===typeof Uint16Array;e.exports=function(e){return n&&e instanceof Uint16Array||"[object Uint16Array]"===r(e)}},7821:(e,t,a)=>{"use strict";var r=a(7980);e.exports=r},7980:(e,t,a)=>{"use strict";var r=a(2887),n="function"===typeof Uint32Array;e.exports=function(e){return n&&e instanceof Uint32Array||"[object Uint32Array]"===r(e)}},5024:(e,t,a)=>{"use strict";var r=a(1191);e.exports=r},1191:(e,t,a)=>{"use strict";var r=a(2887),n="function"===typeof Uint8Array;e.exports=function(e){return n&&e instanceof Uint8Array||"[object Uint8Array]"===r(e)}},2225:e=>{"use strict";e.exports=1023},7643:e=>{"use strict";e.exports=2147483647},4914:e=>{"use strict";e.exports=2146435072},2012:e=>{"use strict";e.exports=2147483648},8364:e=>{"use strict";e.exports=-1023},320:e=>{"use strict";e.exports=1023},594:e=>{"use strict";e.exports=-1074},455:(e,t,a)=>{"use strict";var r=a(8341).NEGATIVE_INFINITY;e.exports=r},3377:e=>{"use strict";var t=Number.POSITIVE_INFINITY;e.exports=t},6845:e=>{"use strict";e.exports=22250738585072014e-324},9313:e=>{"use strict";e.exports=65535},9327:e=>{"use strict";e.exports=4294967295},6016:e=>{"use strict";e.exports=255},5286:(e,t,a)=>{"use strict";var r=a(3171);e.exports=r},3171:(e,t,a)=>{"use strict";var r=a(3377),n=a(455);e.exports=function(e){return e===r||e===n}},6319:(e,t,a)=>{"use strict";var r=a(1306);e.exports=r},1306:e=>{"use strict";e.exports=function(e){return e!==e}},4048:(e,t,a)=>{"use strict";var r=a(2199);e.exports=r},2199:e=>{"use strict";e.exports=function(e){return Math.abs(e)}},7396:(e,t,a)=>{"use strict";var r=a(2363);e.exports=r},2363:(e,t,a)=>{"use strict";var r=a(2012),n=a(7643),l=a(1649),o=a(1334),i=a(9392),c=[0,0];e.exports=function(e,t){var a,s;return l.assign(e,c,1,0),a=c[0],a&=n,s=o(t),i(a|=s&=r,c[1])}},5423:(e,t,a)=>{"use strict";var r=a(2616);e.exports=r},2616:(e,t,a)=>{"use strict";var r=a(3377),n=a(455),l=a(2225),o=a(320),i=a(8364),c=a(594),s=a(6319),p=a(5286),m=a(7396),u=a(2795),f=a(719),h=a(1649),d=a(9392),b=[0,0],y=[0,0];e.exports=function(e,t){var a,g;return 0===e||s(e)||p(e)?e:(u(b,e),t+=b[1],(t+=f(e=b[0]))o?e<0?n:r:(t<=i?(t+=52,g=2220446049250313e-31):g=1,h(y,e),a=y[0],a&=2148532223,g*d(a|=t+l<<20,y[1])))}},8341:(e,t,a)=>{"use strict";var r=a(4112);e.exports=r},4112:e=>{"use strict";e.exports=Number},719:(e,t,a)=>{"use strict";var r=a(4010);e.exports=r},4010:(e,t,a)=>{"use strict";var r=a(1334),n=a(4914),l=a(2225);e.exports=function(e){var t=r(e);return(t=(t&n)>>>20)-l|0}},9392:(e,t,a)=>{"use strict";var r=a(3447);e.exports=r},6373:(e,t,a)=>{"use strict";var r,n,l;!0===a(1143)?(n=1,l=0):(n=0,l=1),r={HIGH:n,LOW:l},e.exports=r},3447:(e,t,a)=>{"use strict";var r=a(2268),n=a(8671),l=a(6373),o=new n(1),i=new r(o.buffer),c=l.HIGH,s=l.LOW;e.exports=function(e,t){return i[c]=e,i[s]=t,o[0]}},3808:(e,t,a)=>{"use strict";var r;r=!0===a(1143)?1:0,e.exports=r},1334:(e,t,a)=>{"use strict";var r=a(8601);e.exports=r},8601:(e,t,a)=>{"use strict";var r=a(2268),n=a(8671),l=a(3808),o=new n(1),i=new r(o.buffer);e.exports=function(e){return o[0]=e,i[l]}},8466:(e,t,a)=>{"use strict";var r=a(6845),n=a(5286),l=a(6319),o=a(4048);e.exports=function(e,t,a,i){return l(e)||n(e)?(t[i]=e,t[i+a]=0,t):0!==e&&o(e){"use strict";var r=a(28),n=a(534);r(n,"assign",a(8466)),e.exports=n},534:(e,t,a)=>{"use strict";var r=a(8466);e.exports=function(e){return r(e,[0,0],1,0)}},6464:(e,t,a)=>{"use strict";var r=a(2268),n=a(8671),l=a(4916),o=new n(1),i=new r(o.buffer),c=l.HIGH,s=l.LOW;e.exports=function(e,t,a,r){return o[0]=e,t[r]=i[c],t[r+a]=i[s],t}},1649:(e,t,a)=>{"use strict";var r=a(28),n=a(4672);r(n,"assign",a(6464)),e.exports=n},4916:(e,t,a)=>{"use strict";var r,n,l;!0===a(1143)?(n=1,l=0):(n=0,l=1),r={HIGH:n,LOW:l},e.exports=r},4672:(e,t,a)=>{"use strict";var r=a(6464);e.exports=function(e){return r(e,[0,0],1,0)}},28:(e,t,a)=>{"use strict";var r=a(8547);e.exports=r},8547:(e,t,a)=>{"use strict";var r=a(1432);e.exports=function(e,t,a){r(e,t,{configurable:!1,enumerable:!1,writable:!1,value:a})}},2847:e=>{"use strict";var t=Object.defineProperty;e.exports=t},6905:e=>{"use strict";var t="function"===typeof Object.defineProperty?Object.defineProperty:null;e.exports=t},2434:(e,t,a)=>{"use strict";var r=a(6905);e.exports=function(){try{return r({},"x",{}),!0}catch(e){return!1}}},1432:(e,t,a)=>{"use strict";var r,n=a(2434),l=a(2847),o=a(4297);r=n()?l:o,e.exports=r},4297:e=>{"use strict";var t=Object.prototype,a=t.toString,r=t.__defineGetter__,n=t.__defineSetter__,l=t.__lookupGetter__,o=t.__lookupSetter__;e.exports=function(e,i,c){var s,p,m,u;if("object"!==typeof e||null===e||"[object Array]"===a.call(e))throw new TypeError("invalid argument. First argument must be an object. Value: `"+e+"`.");if("object"!==typeof c||null===c||"[object Array]"===a.call(c))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+c+"`.");if((p="value"in c)&&(l.call(e,i)||o.call(e,i)?(s=e.__proto__,e.__proto__=t,delete e[i],e[i]=c.value,e.__proto__=s):e[i]=c.value),m="get"in c,u="set"in c,p&&(m||u))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return m&&r&&r.call(e,i,c.get),u&&n&&n.call(e,i,c.set),e}},2887:(e,t,a)=>{"use strict";var r,n=a(5945),l=a(4383),o=a(4844);r=n()?o:l,e.exports=r},4383:(e,t,a)=>{"use strict";var r=a(5167);e.exports=function(e){return r.call(e)}},4844:(e,t,a)=>{"use strict";var r=a(3895),n=a(1047),l=a(5167);e.exports=function(e){var t,a,o;if(null===e||void 0===e)return l.call(e);a=e[n],t=r(e,n);try{e[n]=void 0}catch(i){return l.call(e)}return o=l.call(e),t?e[n]=a:delete e[n],o}},5167:e=>{"use strict";var t=Object.prototype.toString;e.exports=t},1047:e=>{"use strict";var t="function"===typeof Symbol?Symbol.toStringTag:"";e.exports=t},2188:function(e){e.exports=function(){"use strict";function e(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function t(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function a(a){for(var r=1;r=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var a=[],r=!0,n=!1,l=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(e){n=!0,l=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw l}}return a}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){i();var t=JSON.stringify(e);return l()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=n(e,2),r=t[0],l=t[1];return Promise.all([r,l||a.miss(r)])})).then((function(e){return n(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var n=l();return n[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},r().setItem(a,JSON.stringify(n)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=l();delete t[JSON.stringify(e)],r().setItem(a,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(a)}))}}}function i(e){var t=l(e.caches),a=t.shift();return void 0===a?{get:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,a.miss(e)])})).then((function(e){return n(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return a.get(e,r,n).catch((function(){return i({caches:t}).get(e,r,n)}))},set:function(e,r){return a.set(e,r).catch((function(){return i({caches:t}).set(e,r)}))},delete:function(e){return a.delete(e).catch((function(){return i({caches:t}).delete(e)}))},clear:function(){return a.clear().catch((function(){return i({caches:t}).clear()}))}}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(a,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},l=JSON.stringify(a);if(l in t)return Promise.resolve(e.serializable?JSON.parse(t[l]):t[l]);var o=r(),i=n&&n.miss||function(){return Promise.resolve()};return o.then((function(e){return i(e)})).then((function(){return o}))},set:function(a,r){return t[JSON.stringify(a)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function s(e){for(var t=e.length-1;t>0;t--){var a=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[a],e[a]=r}return e}function p(e,t){return t?(Object.keys(t).forEach((function(a){e[a]=t[a](e)})),e):e}function m(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:a.timeout||t,headers:a.headers||{},queryParameters:a.queryParameters||{},cacheable:a.cacheable}}var h={Read:1,Write:2,Any:3},d=1,b=2,y=3;function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return a(a({},e),{},{status:t,lastUpdate:Date.now()})}function v(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var A="GET",Z="POST";function H(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(g(t))}))}))).then((function(e){var a=e.filter((function(e){return function(e){return e.status===d||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===y&&Date.now()-e.lastUpdate<=12e4}(e)})),n=[].concat(l(a),l(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:n.length>0?n.map((function(e){return v(e)})):t}}))}function O(e,t,r,n){var o=[],i=function(e,t){if(e.method!==A&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:a(a({},e.data),t.data);return JSON.stringify(r)}}(r,n),c=function(e,t){var r=a(a({},e.headers),t.headers),n={};return Object.keys(r).forEach((function(e){var t=r[e];n[e.toLowerCase()]=t})),n}(e,n),s=r.method,p=r.method!==A?{}:a(a({},r.data),n.data),m=a(a(a({"x-algolia-agent":e.userAgent.value},e.queryParameters),p),n.queryParameters),u=0,f=function t(a,l){var p=a.pop();if(void 0===p)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:M(o)};var f={data:i,headers:c,method:s,url:w(p,r.path,m),connectTimeout:l(u,e.timeouts.connect),responseTimeout:l(u,n.timeout)},h=function(e){var t={request:f,response:e,host:p,triesLeft:a.length};return o.push(t),t},d={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var n=h(r);return r.isTimedOut&&u++,Promise.all([e.logger.info("Retryable failure",j(n)),e.hostsCache.set(p,g(p,r.isTimedOut?y:b))]).then((function(){return t(a,l)}))},onFail:function(e){throw h(e),function(e,t){var a=e.content,r=e.status,n=a;try{n=JSON.parse(a).message}catch(e){}return function(e,t,a){return{name:"ApiError",message:e,status:t,transporterStackTrace:a}}(n,r,t)}(e,M(o))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,a=e.status;return!t&&0==~~a}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,d)}))};return H(e.hostsCache,t).then((function(e){return f(l(e.statelessHosts).reverse(),e.getTimeout)}))}function E(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var a="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(a)&&(t.value="".concat(t.value).concat(a)),t}};return t}function w(e,t,a){var r=V(a),n="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(n+="?".concat(r)),n}function V(e){return Object.keys(e).map((function(t){return m("%s=%s",t,(a=e[t],"[object Object]"===Object.prototype.toString.call(a)||"[object Array]"===Object.prototype.toString.call(a)?JSON.stringify(e[t]):e[t]));var a})).join("&")}function M(e){return e.map((function(e){return j(e)}))}function j(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return a(a({},e),{},{request:a(a({},e.request),{},{headers:a(a({},e.request.headers),t)})})}var P=function(e){var t=e.appId,r=function(e,t,a){var r={"x-algolia-api-key":a,"x-algolia-application-id":t};return{headers:function(){return e===u.WithinHeaders?r:{}},queryParameters:function(){return e===u.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:u.WithinHeaders,t,e.apiKey),l=function(e){var t=e.hostsCache,a=e.logger,r=e.requester,l=e.requestsCache,o=e.responsesCache,i=e.timeouts,c=e.userAgent,s=e.hosts,p=e.queryParameters,m={hostsCache:t,logger:a,requester:r,requestsCache:l,responsesCache:o,timeouts:i,userAgent:c,headers:e.headers,queryParameters:p,hosts:s.map((function(e){return v(e)})),read:function(e,t){var a=f(t,m.timeouts.read),r=function(){return O(m,m.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,a)};if(!0!==(void 0!==a.cacheable?a.cacheable:e.cacheable))return r();var l={request:e,mappedRequestOptions:a,transporter:{queryParameters:m.queryParameters,headers:m.headers}};return m.responsesCache.get(l,(function(){return m.requestsCache.get(l,(function(){return m.requestsCache.set(l,r()).then((function(e){return Promise.all([m.requestsCache.delete(l),e])}),(function(e){return Promise.all([m.requestsCache.delete(l),Promise.reject(e)])})).then((function(e){var t=n(e,2);return t[0],t[1]}))}))}),{miss:function(e){return m.responsesCache.set(l,e)}})},write:function(e,t){return O(m,m.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,f(t,m.timeouts.write))}};return m}(a(a({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(s([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:a(a(a({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:a(a({},r.queryParameters()),e.queryParameters)}));return p({transporter:l,appId:t,addAlgoliaAgent:function(e,t){l.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then((function(){}))}},e.methods)},L=function(e){return function(t,a){return t.method===A?e.transporter.read(t,a):e.transporter.write(t,a)}},F=function(e){return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p({transporter:e.transporter,appId:e.appId,indexName:t},a.methods)}},S=function(e){return function(t,r){var n=t.map((function(e){return a(a({},e),{},{params:V(e.params||{})})}));return e.transporter.read({method:Z,path:"1/indexes/*/queries",data:{requests:n},cacheable:!0},r)}},C=function(e){return function(t,n){return Promise.all(t.map((function(t){var l=t.params,o=l.facetName,i=l.facetQuery,c=r(l,["facetName","facetQuery"]);return F(e)(t.indexName,{methods:{searchForFacetValues:x}}).searchForFacetValues(o,i,a(a({},n),c))})))}},k=function(e){return function(t,a,r){return e.transporter.read({method:Z,path:m("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:a},cacheable:!0},r)}},I=function(e){return function(t,a){return e.transporter.read({method:Z,path:m("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},a)}},x=function(e){return function(t,a,r){return e.transporter.read({method:Z,path:m("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:a},cacheable:!0},r)}},D=1,N=2,R=3,_=function(e){return function(t,r){var n=t.map((function(e){return a(a({},e),{},{threshold:e.threshold||0})}));return e.transporter.read({method:Z,path:"1/indexes/*/recommendations",data:{requests:n},cacheable:!0},r)}};function T(e,t,r){var n,l={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var a=new XMLHttpRequest;a.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return a.setRequestHeader(t,e.headers[t])}));var r,n=function(e,r){return setTimeout((function(){a.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},l=n(e.connectTimeout,"Connection timeout");a.onreadystatechange=function(){a.readyState>a.OPENED&&void 0===r&&(clearTimeout(l),r=n(e.responseTimeout,"Socket timeout"))},a.onerror=function(){0===a.status&&(clearTimeout(l),clearTimeout(r),t({content:a.responseText||"Network request failed",status:a.status,isTimedOut:!1}))},a.onload=function(){clearTimeout(l),clearTimeout(r),t({content:a.responseText,status:a.status,isTimedOut:!1})},a.send(e.data)}))}},logger:(n=R,{debug:function(e,t){return D>=n&&console.debug(e,t),Promise.resolve()},info:function(e,t){return N>=n&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:c(),requestsCache:c({serializable:!1}),hostsCache:i({caches:[o({key:"".concat("4.23.1","-").concat(e)}),c()]}),userAgent:E("4.23.1").add({segment:"Browser",version:"lite"}),authMode:u.WithinQueryParameters};return P(a(a(a({},l),r),{},{methods:{search:S,searchForFacetValues:C,multipleQueries:S,multipleSearchForFacetValues:C,customRequest:L,initIndex:function(e){return function(t){return F(e)(t,{methods:{search:I,searchForFacetValues:x,findAnswers:k}})}},getRecommendations:_}}))}return T.version="4.23.1",T}()},6022:(e,t,a)=>{"use strict";const{ApolloLink:r,Observable:n}=a(3954),{createSignalIfSupported:l,fallbackHttpConfig:o,parseAndCheckHttpResponse:i,rewriteURIForGET:c,selectHttpOptionsAndBody:s,selectURI:p,serializeFetchParameter:m}=a(4572),u=a(7773),f=a(9695),h=a(9168);e.exports=function(){let{uri:e="/graphql",useGETForQueries:t,isExtractableFile:a=h,FormData:d,formDataAppendFile:b=f,fetch:y,fetchOptions:g,credentials:v,headers:A,includeExtensions:Z}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const H={http:{includeExtensions:Z},options:g,credentials:v,headers:A};return new r((r=>{const f=r.getContext(),{clientAwareness:{name:h,version:g}={},headers:v}=f,A={http:f.http,options:f.fetchOptions,credentials:f.credentials,headers:{...h&&{"apollographql-client-name":h},...g&&{"apollographql-client-version":g},...v}},{options:Z,body:O}=s(r,o,H,A),{clone:E,files:w}=u(O,"",a);let V=p(r,e);if(w.size){delete Z.headers["content-type"];const e=new(d||FormData);e.append("operations",m(E,"Payload"));const t={};let a=0;w.forEach((e=>{t[++a]=e})),e.append("map",JSON.stringify(t)),a=0,w.forEach(((t,r)=>{b(e,++a,r)})),Z.body=e}else if(t&&!r.query.definitions.some((e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))&&(Z.method="GET"),"GET"===Z.method){const{newURI:e,parseError:t}=c(V,O);if(t)return new n((e=>{e.error(t)}));V=e}else Z.body=m(E,"Payload");const{controller:M}=l();M&&(Z.signal&&(Z.signal.aborted?M.abort():Z.signal.addEventListener("abort",(()=>{M.abort()}),{once:!0})),Z.signal=M.signal);const j=y||fetch;return new n((e=>{let t;return j(V,Z).then((e=>(r.setContext({response:e}),e))).then(i(r)).then((t=>{e.next(t),e.complete()})).catch((a=>{t||(a.result&&a.result.errors&&a.result.data&&e.next(a.result),e.error(a))})),()=>{t=!0,M&&M.abort()}}))}))}},9695:e=>{"use strict";e.exports=function(e,t,a){e.append(t,a,a.name)}},9168:(e,t,a)=>{"use strict";e.exports=a(790)},807:function(e,t,a){var r;e=a.nmd(e),function(n){var l=t,o=(e&&e.exports,"object"==typeof a.g&&a.g);o.global!==o&&o.window;var i=function(e){this.message=e};(i.prototype=new Error).name="InvalidCharacterError";var c=function(e){throw new i(e)},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=/[\t\n\f\r ]/g,m={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var t,a,r,n,l=e.length%3,o="",i=-1,p=e.length-l;++i>18&63)+s.charAt(n>>12&63)+s.charAt(n>>6&63)+s.charAt(63&n);return 2==l?(t=e.charCodeAt(i)<<8,a=e.charCodeAt(++i),o+=s.charAt((n=t+a)>>10)+s.charAt(n>>4&63)+s.charAt(n<<2&63)+"="):1==l&&(n=e.charCodeAt(i),o+=s.charAt(n>>2)+s.charAt(n<<4&63)+"=="),o},decode:function(e){var t=(e=String(e).replace(p,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var a,r,n=0,l="",o=-1;++o>(-2*n&6)));return l},version:"1.0.0"};void 0===(r=function(){return m}.call(t,a,t,e))||(e.exports=r)}()},5327:function(e,t,a){var r;!function(n){"use strict";function l(e,t){var a=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(a>>16)<<16|65535&a}function o(e,t,a,r,n,o){return l((i=l(l(t,e),l(r,o)))<<(c=n)|i>>>32-c,a);var i,c}function i(e,t,a,r,n,l,i){return o(t&a|~t&r,e,t,n,l,i)}function c(e,t,a,r,n,l,i){return o(t&r|a&~r,e,t,n,l,i)}function s(e,t,a,r,n,l,i){return o(t^a^r,e,t,n,l,i)}function p(e,t,a,r,n,l,i){return o(a^(t|~r),e,t,n,l,i)}function m(e,t){var a,r,n,o,m;e[t>>5]|=128<>>9<<4)]=t;var u=1732584193,f=-271733879,h=-1732584194,d=271733878;for(a=0;a>5]>>>t%32&255);return a}function f(e){var t,a=[];for(a[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t);return n}function d(e){return unescape(encodeURIComponent(e))}function b(e){return function(e){return u(m(f(e),8*e.length))}(d(e))}function y(e,t){return function(e,t){var a,r,n=f(e),l=[],o=[];for(l[15]=o[15]=void 0,n.length>16&&(n=m(n,8*e.length)),a=0;a<16;a+=1)l[a]=909522486^n[a],o[a]=1549556828^n[a];return r=m(l.concat(f(t)),512+8*t.length),u(m(o.concat(r),640))}(d(e),d(t))}function g(e,t,a){return t?a?y(t,e):h(y(t,e)):a?b(e):function(e){return h(b(e))}(e)}void 0===(r=function(){return g}.call(t,a,t,e))||(e.exports=r)}()},2436:(e,t,a)=>{const r=a(9765),n={};for(const o of Object.keys(r))n[r[o]]=o;const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=l;for(const o of Object.keys(l)){if(!("channels"in l[o]))throw new Error("missing channels property: "+o);if(!("labels"in l[o]))throw new Error("missing channel labels property: "+o);if(l[o].labels.length!==l[o].channels)throw new Error("channel and label counts mismatch: "+o);const{channels:e,labels:t}=l[o];delete l[o].channels,delete l[o].labels,Object.defineProperty(l[o],"channels",{value:e}),Object.defineProperty(l[o],"labels",{value:t})}l.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,r=e[2]/255,n=Math.min(t,a,r),l=Math.max(t,a,r),o=l-n;let i,c;l===n?i=0:t===l?i=(a-r)/o:a===l?i=2+(r-t)/o:r===l&&(i=4+(t-a)/o),i=Math.min(60*i,360),i<0&&(i+=360);const s=(n+l)/2;return c=l===n?0:s<=.5?o/(l+n):o/(2-l-n),[i,100*c,100*s]},l.rgb.hsv=function(e){let t,a,r,n,l;const o=e[0]/255,i=e[1]/255,c=e[2]/255,s=Math.max(o,i,c),p=s-Math.min(o,i,c),m=function(e){return(s-e)/6/p+.5};return 0===p?(n=0,l=0):(l=p/s,t=m(o),a=m(i),r=m(c),o===s?n=r-a:i===s?n=1/3+t-r:c===s&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*l,100*s]},l.rgb.hwb=function(e){const t=e[0],a=e[1];let r=e[2];const n=l.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(a,r));return r=1-1/255*Math.max(t,Math.max(a,r)),[n,100*o,100*r]},l.rgb.cmyk=function(e){const t=e[0]/255,a=e[1]/255,r=e[2]/255,n=Math.min(1-t,1-a,1-r);return[100*((1-t-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*((1-r-n)/(1-n)||0),100*n]},l.rgb.keyword=function(e){const t=n[e];if(t)return t;let a,l=1/0;for(const n of Object.keys(r)){const t=r[n],c=(i=t,((o=e)[0]-i[0])**2+(o[1]-i[1])**2+(o[2]-i[2])**2);c.04045?((t+.055)/1.055)**2.4:t/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*a+.1805*r),100*(.2126*t+.7152*a+.0722*r),100*(.0193*t+.1192*a+.9505*r)]},l.rgb.lab=function(e){const t=l.rgb.xyz(e);let a=t[0],r=t[1],n=t[2];a/=95.047,r/=100,n/=108.883,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(a-r),200*(r-n)]},l.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,r=e[2]/100;let n,l,o;if(0===a)return o=255*r,[o,o,o];n=r<.5?r*(1+a):r+a-r*a;const i=2*r-n,c=[0,0,0];for(let s=0;s<3;s++)l=t+1/3*-(s-1),l<0&&l++,l>1&&l--,o=6*l<1?i+6*(n-i)*l:2*l<1?n:3*l<2?i+(n-i)*(2/3-l)*6:i,c[s]=255*o;return c},l.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,r=e[2]/100,n=a;const l=Math.max(r,.01);r*=2,a*=r<=1?r:2-r,n*=l<=1?l:2-l;return[t,100*(0===r?2*n/(l+n):2*a/(r+a)),100*((r+a)/2)]},l.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let r=e[2]/100;const n=Math.floor(t)%6,l=t-Math.floor(t),o=255*r*(1-a),i=255*r*(1-a*l),c=255*r*(1-a*(1-l));switch(r*=255,n){case 0:return[r,c,o];case 1:return[i,r,o];case 2:return[o,r,c];case 3:return[o,i,r];case 4:return[c,o,r];case 5:return[r,o,i]}},l.hsv.hsl=function(e){const t=e[0],a=e[1]/100,r=e[2]/100,n=Math.max(r,.01);let l,o;o=(2-a)*r;const i=(2-a)*n;return l=a*n,l/=i<=1?i:2-i,l=l||0,o/=2,[t,100*l,100*o]},l.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,r=e[2]/100;const n=a+r;let l;n>1&&(a/=n,r/=n);const o=Math.floor(6*t),i=1-r;l=6*t-o,0!==(1&o)&&(l=1-l);const c=a+l*(i-a);let s,p,m;switch(o){default:case 6:case 0:s=i,p=c,m=a;break;case 1:s=c,p=i,m=a;break;case 2:s=a,p=i,m=c;break;case 3:s=a,p=c,m=i;break;case 4:s=c,p=a,m=i;break;case 5:s=i,p=a,m=c}return[255*s,255*p,255*m]},l.cmyk.rgb=function(e){const t=e[0]/100,a=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},l.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,r=e[2]/100;let n,l,o;return n=3.2406*t+-1.5372*a+-.4986*r,l=-.9689*t+1.8758*a+.0415*r,o=.0557*t+-.204*a+1.057*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,n=Math.min(Math.max(0,n),1),l=Math.min(Math.max(0,l),1),o=Math.min(Math.max(0,o),1),[255*n,255*l,255*o]},l.xyz.lab=function(e){let t=e[0],a=e[1],r=e[2];t/=95.047,a/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*a-16,500*(t-a),200*(a-r)]},l.lab.xyz=function(e){let t,a,r;a=(e[0]+16)/116,t=e[1]/500+a,r=a-e[2]/200;const n=a**3,l=t**3,o=r**3;return a=n>.008856?n:(a-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,t*=95.047,a*=100,r*=108.883,[t,a,r]},l.lab.lch=function(e){const t=e[0],a=e[1],r=e[2];let n;n=360*Math.atan2(r,a)/2/Math.PI,n<0&&(n+=360);return[t,Math.sqrt(a*a+r*r),n]},l.lch.lab=function(e){const t=e[0],a=e[1],r=e[2]/360*2*Math.PI;return[t,a*Math.cos(r),a*Math.sin(r)]},l.rgb.ansi16=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const[a,r,n]=e;let o=null===t?l.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(a/255));return 2===o&&(i+=60),i},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){const t=e[0],a=e[1],r=e[2];if(t===a&&a===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(r/255*5)},l.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},l.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},l.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},l.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=a.split("").map((e=>e+e)).join(""));const r=parseInt(a,16);return[r>>16&255,r>>8&255,255&r]},l.rgb.hcg=function(e){const t=e[0]/255,a=e[1]/255,r=e[2]/255,n=Math.max(Math.max(t,a),r),l=Math.min(Math.min(t,a),r),o=n-l;let i,c;return i=o<1?l/(1-o):0,c=o<=0?0:n===t?(a-r)/o%6:n===a?2+(r-t)/o:4+(t-a)/o,c/=6,c%=1,[360*c,100*o,100*i]},l.hsl.hcg=function(e){const t=e[1]/100,a=e[2]/100,r=a<.5?2*t*a:2*t*(1-a);let n=0;return r<1&&(n=(a-.5*r)/(1-r)),[e[0],100*r,100*n]},l.hsv.hcg=function(e){const t=e[1]/100,a=e[2]/100,r=t*a;let n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},l.hcg.rgb=function(e){const t=e[0]/360,a=e[1]/100,r=e[2]/100;if(0===a)return[255*r,255*r,255*r];const n=[0,0,0],l=t%1*6,o=l%1,i=1-o;let c=0;switch(Math.floor(l)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=i,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=i,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=i}return c=(1-a)*r,[255*(a*n[0]+c),255*(a*n[1]+c),255*(a*n[2]+c)]},l.hcg.hsv=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);let r=0;return a>0&&(r=t/a),[e[0],100*r,100*a]},l.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],100*r,100*a]},l.hcg.hwb=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},l.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,r=a-t;let n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=function(e){return[0,0,e[0]]},l.gray.hsv=l.gray.hsl,l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},5165:(e,t,a)=>{const r=a(2436),n=a(932),l={};Object.keys(r).forEach((e=>{l[e]={},Object.defineProperty(l[e],"channels",{value:r[e].channels}),Object.defineProperty(l[e],"labels",{value:r[e].labels});const t=n(e);Object.keys(t).forEach((a=>{const r=t[a];l[e][a]=function(e){const t=function(){for(var t=arguments.length,a=new Array(t),r=0;r1&&(a=n);const l=e(a);if("object"===typeof l)for(let e=l.length,o=0;o1&&(a=n),e(a))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=l},932:(e,t,a)=>{const r=a(2436);function n(e){const t=function(){const e={},t=Object.keys(r);for(let a=t.length,r=0;r{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7019:(e,t,a)=>{var r=a(9765),n=a(1473),l=Object.hasOwnProperty,o=Object.create(null);for(var i in r)l.call(r,i)&&(o[r[i]]=i);var c=e.exports={to:{},get:{}};function s(e,t,a){return Math.min(Math.max(t,e),a)}function p(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}c.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=c.get.hsl(e),a="hsl";break;case"hwb":t=c.get.hwb(e),a="hwb";break;default:t=c.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,a,n,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var i=2*a;o[a]=parseInt(t.slice(i,i+2),16)}n&&(o[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)o[a]=parseInt(t[a]+t[a],16);n&&(o[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)o[a]=parseInt(t[a+1],0);t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:l.call(r,t[1])?((o=r[t[1]])[3]=1,o):null:null;for(a=0;a<3;a++)o[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}for(a=0;a<3;a++)o[a]=s(o[a],0,255);return o[3]=s(o[3],0,1),o},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(a)?1:a,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(a)?1:a,0,1)]}return null},c.to.hex=function(){var e=n(arguments);return"#"+p(e[0])+p(e[1])+p(e[2])+(e[3]<1?p(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+r+"%)":"rgba("+t+"%, "+a+"%, "+r+"%, "+e[3]+")"},c.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return o[e.slice(0,3)]}},3691:(e,t,a)=>{const r=a(7019),n=a(5165),l=["keyword","gray","hex"],o={};for(const f of Object.keys(n))o[[...n[f].labels].sort().join("")]=f;const i={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in l&&(t=null),t&&!(t in n))throw new Error("Unknown model: "+t);let a,s;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,s=n[this.model].channels,this.color=t.value.slice(0,s),this.valpha="number"===typeof t.value[s]?t.value[s]:1}else if(e.length>0){this.model=t||"rgb",s=n[this.model].channels;const a=Array.prototype.slice.call(e,0,s);this.color=u(a,s),this.valpha="number"===typeof e[s]?e[s]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in o))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=o[r];const{labels:l}=n[this.model],i=[];for(a=0;a(e%360+360)%360)),saturationl:p("hsl",1,m(100)),lightness:p("hsl",2,m(100)),saturationv:p("hsv",1,m(100)),value:p("hsv",2,m(100)),chroma:p("hcg",1,m(100)),gray:p("hcg",2,m(100)),white:p("hwb",1,m(100)),wblack:p("hwb",2,m(100)),cyan:p("cmyk",0,m(100)),magenta:p("cmyk",1,m(100)),yellow:p("cmyk",2,m(100)),black:p("cmyk",3,m(100)),x:p("xyz",0,m(95.047)),y:p("xyz",1,m(100)),z:p("xyz",2,m(108.833)),l:p("lab",0,m(100)),a:p("lab",1),b:p("lab",2),keyword(e){return void 0!==e?new c(e):n[this.model].keyword(this.color)},hex(e){return void 0!==e?new c(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new c(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),r.to.hex(t)+a},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[a,r]of e.entries()){const e=r/255;t[a]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let a=t.color[0];return a=(a+e)%360,a=a<0?360+a:a,t.color[0]=a,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const a=e.rgb(),r=this.rgb(),n=void 0===t?.5:t,l=2*n-1,o=a.alpha()-r.alpha(),i=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,s=1-i;return c.rgb(i*a.red()+s*r.red(),i*a.green()+s*r.green(),i*a.blue()+s*r.blue(),a.alpha()*n+r.alpha()*(1-n))}};for(const f of Object.keys(n)){if(l.includes(f))continue;const{channels:e}=n[f];c.prototype[f]=function(){if(this.model===f)return new c(this);for(var e=arguments.length,t=new Array(e),a=0;a0?new c(t,f):new c([...(r=n[this.model][f].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],f);var r},c[f]=function(){for(var t=arguments.length,a=new Array(t),r=0;r{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===a}(e)}(e)};var a="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((a=e,Array.isArray(a)?[]:{}),e,t):e;var a}function n(e,t,a){return e.concat(t).map((function(e){return r(e,a)}))}function l(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(a){return!1}}function i(e,t,a){var n={};return a.isMergeableObject(e)&&l(e).forEach((function(t){n[t]=r(e[t],a)})),l(t).forEach((function(l){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,l)||(o(e,l)&&a.isMergeableObject(t[l])?n[l]=function(e,t){if(!t.customMerge)return c;var a=t.customMerge(e);return"function"===typeof a?a:c}(l,a)(e[l],t[l],a):n[l]=r(t[l],a))})),n}function c(e,a,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var o=Array.isArray(a);return o===Array.isArray(e)?o?l.arrayMerge(e,a,l):i(e,a,l):r(a,l)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,a){return c(e,a,t)}),{})};var s=c;e.exports=s},7733:function(e){e.exports=function(e,t,a,r,n){for(t=t.split?t.split("."):t,r=0;re.length)&&(t=e.length);for(var a=0,r=new Array(t);a1?a-1:0),n=1;n/gm),Y=b(/\${[\w\W]*}/gm),$=b(/^data-[\-\w.\u00B7-\uFFFF]/),X=b(/^aria-[\-\w]+$/),J=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=b(/^(?:\w+script|data):/i),te=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ae=b(/^html$/i),re=b(/^[a-z][.\w]*(-[.\w]+)+$/i),ne=function(){return"undefined"===typeof window?null:window},le=function(t,a){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";a.currentScript&&a.currentScript.hasAttribute(n)&&(r=a.currentScript.getAttribute(n));var l="dompurify"+(r?"#"+r:"");try{return t.createPolicy(l,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+l+" could not be created."),null}};function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne(),a=function(e){return oe(e)};if(a.version="2.4.9",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var r=t.document,l=t.document,o=t.DocumentFragment,i=t.HTMLTemplateElement,c=t.Node,s=t.Element,p=t.NodeFilter,m=t.NamedNodeMap,u=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,f=t.HTMLFormElement,h=t.DOMParser,b=t.trustedTypes,y=s.prototype,g=x(y,"cloneNode"),v=x(y,"nextSibling"),A=x(y,"childNodes"),S=x(y,"parentNode");if("function"===typeof i){var C=l.createElement("template");C.content&&C.content.ownerDocument&&(l=C.content.ownerDocument)}var ie=le(b,r),ce=ie?ie.createHTML(""):"",se=l,pe=se.implementation,me=se.createNodeIterator,ue=se.createDocumentFragment,fe=se.getElementsByTagName,he=r.importNode,de={};try{de=I(l).documentMode?l.documentMode:{}}catch(It){}var be={};a.isSupported="function"===typeof S&&pe&&void 0!==pe.createHTMLDocument&&9!==de;var ye,ge,ve=Q,Ae=K,Ze=Y,He=$,Oe=X,Ee=ee,we=te,Ve=re,Me=J,je=null,Pe=k({},[].concat(n(D),n(N),n(R),n(T),n(U))),Le=null,Fe=k({},[].concat(n(B),n(q),n(W),n(G))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,ke=null,Ie=!0,xe=!0,De=!1,Ne=!0,Re=!1,_e=!1,Te=!1,ze=!1,Ue=!1,Be=!1,qe=!1,We=!0,Ge=!1,Qe="user-content-",Ke=!0,Ye=!1,$e={},Xe=null,Je=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),et=null,tt=k({},["audio","video","img","source","image","track"]),at=null,rt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",lt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,ct=!1,st=null,pt=k({},[nt,lt,ot],w),mt=["application/xhtml+xml","text/html"],ut="text/html",ft=null,ht=l.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},bt=function(t){ft&&ft===t||(t&&"object"===e(t)||(t={}),t=I(t),ye=ye=-1===mt.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===ye?w:E,je="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS,ge):Pe,Le="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR,ge):Fe,st="ALLOWED_NAMESPACES"in t?k({},t.ALLOWED_NAMESPACES,w):pt,at="ADD_URI_SAFE_ATTR"in t?k(I(rt),t.ADD_URI_SAFE_ATTR,ge):rt,et="ADD_DATA_URI_TAGS"in t?k(I(tt),t.ADD_DATA_URI_TAGS,ge):tt,Xe="FORBID_CONTENTS"in t?k({},t.FORBID_CONTENTS,ge):Je,Ce="FORBID_TAGS"in t?k({},t.FORBID_TAGS,ge):{},ke="FORBID_ATTR"in t?k({},t.FORBID_ATTR,ge):{},$e="USE_PROFILES"in t&&t.USE_PROFILES,Ie=!1!==t.ALLOW_ARIA_ATTR,xe=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Re=t.SAFE_FOR_TEMPLATES||!1,_e=t.WHOLE_DOCUMENT||!1,Ue=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,Me=t.ALLOWED_URI_REGEXP||Me,it=t.NAMESPACE||ot,Se=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(xe=!1),Be&&(Ue=!0),$e&&(je=k({},n(U)),Le=[],!0===$e.html&&(k(je,D),k(Le,B)),!0===$e.svg&&(k(je,N),k(Le,q),k(Le,G)),!0===$e.svgFilters&&(k(je,R),k(Le,q),k(Le,G)),!0===$e.mathMl&&(k(je,T),k(Le,W),k(Le,G))),t.ADD_TAGS&&(je===Pe&&(je=I(je)),k(je,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Le===Fe&&(Le=I(Le)),k(Le,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&k(at,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Xe===Je&&(Xe=I(Xe)),k(Xe,t.FORBID_CONTENTS,ge)),Ke&&(je["#text"]=!0),_e&&k(je,["html","head","body"]),je.table&&(k(je,["tbody"]),delete Ce.tbody),d&&d(t),ft=t)},yt=k({},["mi","mo","mn","ms","mtext"]),gt=k({},["foreignobject","desc","title","annotation-xml"]),vt=k({},["title","style","font","a","script"]),At=k({},N);k(At,R),k(At,_);var Zt=k({},T);k(Zt,z);var Ht=function(e){var t=S(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var a=E(e.tagName),r=E(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===lt?t.namespaceURI===ot?"svg"===a:t.namespaceURI===nt?"svg"===a&&("annotation-xml"===r||yt[r]):Boolean(At[a]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===a:t.namespaceURI===lt?"math"===a&>[r]:Boolean(Zt[a]):e.namespaceURI===ot?!(t.namespaceURI===lt&&!gt[r])&&!(t.namespaceURI===nt&&!yt[r])&&!Zt[a]&&(vt[a]||!At[a]):!("application/xhtml+xml"!==ye||!st[e.namespaceURI]))},Ot=function(e){O(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(It){try{e.outerHTML=ce}catch(It){e.remove()}}},Et=function(e,t){try{O(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(It){O(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Le[e])if(Ue||Be)try{Ot(t)}catch(It){}else try{t.setAttribute(e,"")}catch(It){}},wt=function(e){var t,a;if(ze)e=""+e;else{var r=V(e,/^[\r\n\t ]+/);a=r&&r[0]}"application/xhtml+xml"===ye&&it===ot&&(e=''+e+"");var n=ie?ie.createHTML(e):e;if(it===ot)try{t=(new h).parseFromString(n,ye)}catch(It){}if(!t||!t.documentElement){t=pe.createDocument(it,"template",null);try{t.documentElement.innerHTML=ct?ce:n}catch(It){}}var o=t.body||t.documentElement;return e&&a&&o.insertBefore(l.createTextNode(a),o.childNodes[0]||null),it===ot?fe.call(t,_e?"html":"body")[0]:_e?t.documentElement:o},Vt=function(e){return me.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null,!1)},Mt=function(e){return e instanceof f&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof u)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},jt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},Pt=function(e,t,r){be[e]&&Z(be[e],(function(e){e.call(a,t,r,ft)}))},Lt=function(e){var t;if(Pt("beforeSanitizeElements",e,null),Mt(e))return Ot(e),!0;if(L(/[\u0080-\uFFFF]/,e.nodeName))return Ot(e),!0;var r=ge(e.nodeName);if(Pt("uponSanitizeElement",e,{tagName:r,allowedTags:je}),e.hasChildNodes()&&!jt(e.firstElementChild)&&(!jt(e.content)||!jt(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent))return Ot(e),!0;if("select"===r&&L(/