From a5004dca813853870fb4f5a70c046fbf528b93ab Mon Sep 17 00:00:00 2001 From: Vincent Wilson Date: Thu, 15 Feb 2024 09:18:24 -0500 Subject: [PATCH 1/7] version bump --- web-embeds/package.json | 2 +- web-embeds/widget/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web-embeds/package.json b/web-embeds/package.json index 7a50d658..d069170f 100644 --- a/web-embeds/package.json +++ b/web-embeds/package.json @@ -1,7 +1,7 @@ { "name": "@apollosproject/apollos-embeds", "description": "Apollos React embed widgets", - "version": "0.1.35", + "version": "0.1.36", "license": "MIT", "eslintIgnore": [ "/node_modules", diff --git a/web-embeds/widget/index.js b/web-embeds/widget/index.js index 0eba9fcf..297c4d04 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={9667:function(e,t,n){var r;!function(o,i){"use strict";var a="function",l="undefined",s="object",c="string",u="model",d="name",k="type",p="vendor",h="version",m="architecture",f="console",L="mobile",y="tablet",E="smarttv",x="wearable",g="embedded",j="Amazon",W="Apple",v="ASUS",b="BlackBerry",M="Browser",w="Chrome",A="Firefox",F="Google",H="Huawei",V="LG",Z="Microsoft",S="Motorola",O="Opera",_="Samsung",P="Sharp",C="Sony",R="Xiaomi",N="Zebra",T="Facebook",I=function(e){for(var t={},n=0;n0?2===l.length?typeof l[1]==a?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==a||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):i:this[l[0]]=u?l[1].call(this,u,l[2]):i:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):i):this[l]=u||i;d+=2}},B=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r350?U(e,350):e,this},this.setUA(n),this};Q.VERSION="0.7.33",Q.BROWSER=I([d,h,"major"]),Q.CPU=I([m]),Q.DEVICE=I([u,p,k,f,L,E,y,x,g]),Q.ENGINE=Q.OS=I([d,h]),typeof t!==l?(e.exports&&(t=e.exports=Q),t.UAParser=Q):n.amdO?(r=function(){return Q}.call(t,n,t,e))===i||(e.exports=r):typeof o!==l&&(o.UAParser=Q);var $=typeof o!==l&&(o.jQuery||o.Zepto);if($&&!$.ua){var Y=new Q;$.ua=Y.getResult(),$.ua.get=function(){return Y.getUA()},$.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"===typeof window?window:this)},7144:(e,t,n)=>{"use strict";function r(e,t){return new Promise((function(n,r){var o=setTimeout((function(){r(Error("Promise timed out"))}),t);e.then((function(e){return clearTimeout(o),n(e)})).catch(r)}))}function o(e,t,n){var o;return(o=n,new Promise((function(e){return setTimeout(e,o)}))).then((function(){return r(function(){try{return Promise.resolve(t(e))}catch(n){return Promise.reject(n)}}(),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}))}n.d(t,{FJ:()=>r,UI:()=>o})},238:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s,_:()=>c});var r=n(8431),o=n(1656),i=n(5971),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},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 n,r,o,a=(0,i.pi)((0,i.pi)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var l=null!==(o=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==o?o:"";return e[l]&&(l="".concat(l,"-").concat(Math.random())),(0,i.pi)((0,i.pi)({},e),((n={})[l]=a,n))}),{});console.table?console.table(e):console.log(e)}else this.logs.forEach((function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!==r&&void 0!==r?r:""):console[t](n,null!==r&&void 0!==r?r:"")}));this._logs=[]},e}(),l=n(8062),s=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},c=function(){function e(e,t,n,o){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new l.i),void 0===o&&(o=new a),this.attempts=0,this.event=e,this._id=t,this.logger=o,this.stats=n}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 s({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,o.N)(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}()},3033:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,Z:()=>a});var r=n(5971),o=n(1446);var i="onRemoveFromFuture",a=function(e){function t(t,n,r){var o=e.call(this)||this;return o.future=[],o.maxAttempts=t,o.queue=n,o.seen=null!==r&&void 0!==r?r:{},o}return(0,r.ZT)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;ne.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)}));return this.queue=this.queue.sort((function(t,n){return e.getAttempts(t)-e.getAttempts(n)})),r},t.prototype.pushWithBackoff=function(e){var t=this;if(0===this.getAttempts(e))return this.push(e)[0];var n=this.updateAttempts(e);if(n>this.maxAttempts||this.includes(e))return!1;var r=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,o=e.factor,i=void 0===o?2:o,a=e.attempt,l=e.maxTimeout,s=void 0===l?1/0:l;return Math.min(t*r*Math.pow(i,a),s)}({attempt:n-1});return setTimeout((function(){t.queue.push(e),t.future=t.future.filter((function(t){return t.id!==e.id})),t.emit(i)}),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}(o.Q)},5825:(e,t,n)=>{"use strict";n.d(t,{a:()=>i,z:()=>a});var r=n(5971),o=n(238);function i(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),i=t[e.event.type];return void 0===i?Promise.resolve(e):function(e){return(0,r.mG)(this,void 0,void 0,(function(){var t;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return t=n.sent(),[2,Promise.reject(t)];case 3:return[2]}}))}))}((function(){return i.apply(t,[e])})).then((function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e})).catch((function(n){if(n instanceof o.Y&&"middleware_cancellation"===n.type)throw n;return n instanceof o.Y?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)}))}function a(e,t){return i(e,t).then((function(t){if(t instanceof o._)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)}))}},8062:(e,t,n)=>{"use strict";n.d(t,{i:()=>i,s:()=>o});var r=n(5971),o=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!==n&&void 0!==n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!==n&&void 0!==n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map((function(e){return(0,r.pi)((0,r.pi)({},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}(),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t{"use strict";function r(e){return"string"===typeof e}function o(e){return"number"===typeof e}function i(e){return"function"===typeof e}function a(e){return void 0!==e&&null!==e}function l(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Gg:()=>a,HD:()=>r,PO:()=>l,hj:()=>o,mf:()=>i})},1446:(e,t,n)=>{"use strict";n.d(t,{Q:()=>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 n=this,r=function(){for(var o=[],i=0;i{"use strict";n.d(t,{G:()=>o,s:()=>i});var r=n(4295);function o(){return!(0,r.j)()||window.navigator.onLine}function i(){return!o()}},7337:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var r="api.segment.io/v1"},9394:(e,t,n)=>{"use strict";n.d(t,{_:()=>a});var r=n(5971),o=n(238),i=n(1877),a=function(e){function t(t,n){return e.call(this,t,n,new i.j)||this}return(0,r.ZT)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(o._)},4295:(e,t,n)=>{"use strict";function r(){return"undefined"!==typeof window}function o(){return!r()}n.d(t,{j:()=>r,s:()=>o})},5705:(e,t,n)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{a:()=>r})},1877:(e,t,n)=>{"use strict";n.d(t,{j:()=>k});var r=n(5971),o=n(8062),i=n(7856),a=n(3062),l=n(7285),s=n(7337);function c(e){console.error("Error sending segment performance metrics",e)}var u,d=function(){function e(e){var t,n,r,o,i=this;if(this.host=null!==(t=null===e||void 0===e?void 0:e.host)&&void 0!==t?t:s.U,this.sampleRate=null!==(n=null===e||void 0===e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null===e||void 0===e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(o=null===e||void 0===e?void 0:e.maxQueueSize)&&void 0!==o?o:20,this.queue=[],this.sampleRate>0){var a=!1,l=function(){a||(a=!0,i.flush().catch(c),a=!1,setTimeout(l,i.flushTimer))};l()}}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 n=function(e,t,n){var o=t.reduce((function(e,t){var n=t.split(":"),r=n[0],o=n[1];return e[r]=o,e}),{});return{type:"Counter",metric:e,value:1,tags:(0,r.pi)((0,r.pi)({},o),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.i):"npm:next-".concat(a.i)})}}(e,t,(0,l.B)());this.queue.push(n),e.includes("error")&&this.flush().catch(c)}},e.prototype.flush=function(){return(0,r.mG)(this,void 0,void 0,(function(){var e=this;return(0,r.Jh)(this,(function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(t){c(t),e.sampleRate=0}))];case 1:return t.sent(),[2]}}))}))},e.prototype.send=function(){return(0,r.mG)(this,void 0,void 0,(function(){var e,t,n;return(0,r.Jh)(this,(function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,(0,i.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]}))}))},e}(),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.initRemoteMetrics=function(e){u=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null===u||void 0===u||u.increment(t,null!==r&&void 0!==r?r:[])},t}(o.s)},5176:(e,t,n)=>{"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,o=t.type,i=t.didError,a=void 0!==i&&i;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(o)])}n.d(t,{z:()=>r})},3062:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var r="1.62.0"},7856:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],l={},s=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:s,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return l[e.toLowerCase()]},has:function(e){return e.toLowerCase()in l}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),l[t]=l[t]?l[t]+","+n:n})),n(s())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}n.d(t,{h:()=>i});var o=n(5888),i=function(){for(var e=[],t=0;t{"use strict";n.d(t,{R:()=>r});var r=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:null}},7718:(e,t,n)=>{"use strict";n.d(t,{jV:()=>i,ql:()=>a,wI:()=>o});var r="analytics";function o(){return window[r]}function i(e){r=e}function a(e){window[r]=e}},5764:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(t){return t.src===e}))}function o(e,t){var n=r(e);if(void 0!==n){var o=null===n||void 0===n?void 0:n.getAttribute("status");if("loaded"===o)return Promise.resolve(n);if("loading"===o)return new Promise((function(e,t){n.addEventListener("load",(function(){return e(n)})),n.addEventListener("error",(function(e){return t(e)}))}))}return new Promise((function(n,r){var o,i=window.document.createElement("script");i.type="text/javascript",i.src=e,i.async=!0,i.setAttribute("status","loading");for(var a=0,l=Object.entries(null!==t&&void 0!==t?t:{});ai,v:()=>o})},2825:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(5971);function o(e,t){var n,o=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce((function(e,t){var n,o,i=t[0],a=t[1];return"object"===typeof a?(0,r.pi)((0,r.pi)({},e),((n={})[i]=a,n)):(0,r.pi)((0,r.pi)({},e),((o={})[i]={},o))}),{});return Object.entries(e.integrations).reduce((function(e,t){var n,i=t[0],a=t[1];return(0,r.pi)((0,r.pi)({},e),((n={})[i]=(0,r.pi)((0,r.pi)({},a),o[i]),n))}),{})}},2319:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(5971),o=function(e,t){return(0,r.mG)(void 0,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(o){return n=function(o){return(0,r.mG)(void 0,void 0,void 0,(function(){var i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return e(o)?(i=n,[4,t()]):[3,2];case 1:return[2,i.apply(void 0,[r.sent()])];case 2:return[2]}}))}))},[2,n(void 0)]}))}))}},9828:(e,t,n)=>{"use strict";n.d(t,{Kg:()=>s,UH:()=>a,Vl:()=>l});var r,o=n(7718),i=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,o.wI)();t&&(t._cdn=e),r=e},l=function(){var e=function(){var e;return null!==r&&void 0!==r?r:null===(e=(0,o.wI)())||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 n,r=null!==(n=t.getAttribute("src"))&&void 0!==n?n:"",o=i.exec(r);o&&o[1]&&(e=o[1])})),e}();return t||"https://cdn.segment.com"},s=function(){var e=l();return"".concat(e,"/next-integrations")}},2428:(e,t,n)=>{"use strict";n.d(t,{$:()=>k});var r=n(5971),o=n(3033),i=n(9394),a=n(4295),l={getItem:function(){},setItem:function(){},removeItem:function(){}};try{l=(0,a.j)()&&window.localStorage?window.localStorage:l}catch(p){console.warn("Unable to access localStorage",p)}function s(e){var t=l.getItem(e);return(t?JSON.parse(t):[]).map((function(e){return new i._(e.event,e.id)}))}function c(e){var t=l.getItem(e);return t?JSON.parse(t):{}}function u(e){l.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),o=l.getItem(r),i=o?JSON.parse(o):null,a=null===i||function(e){return(new Date).getTime()>e}(i);if(a)return l.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void l.removeItem(r);!a&&n<3?setTimeout((function(){d(e,t,n+1)}),50):console.error("Unable to retrieve lock")}var k=function(e){function t(t,n){var o=e.call(this,t,[])||this,i="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),k=[],h={};return d(n,(function(){try{k=s(i),h=c(a),u(i),u(a),o.queue=(0,r.ev)((0,r.ev)([],k,!0),o.queue,!0),o.seen=(0,r.pi)((0,r.pi)({},h),o.seen)}catch(p){console.error(p)}})),window.addEventListener("pagehide",(function(){if(o.todo>0){var e=(0,r.ev)((0,r.ev)([],o.queue,!0),o.future,!0);try{d(n,(function(){!function(e,t){var n=s(e),o=(0,r.ev)((0,r.ev)([],t,!0),n,!0).reduce((function(e,t){var n;return(0,r.pi)((0,r.pi)({},e),((n={})[t.id]=t,n))}),{});l.setItem(e,JSON.stringify(Object.values(o)))}(i,e),function(e,t){var n=c(e);l.setItem(e,JSON.stringify((0,r.pi)((0,r.pi)({},n),t)))}(a,o.seen)}))}catch(p){console.error(p)}}})),o}return(0,r.ZT)(t,e),t}(o.Z)},2403:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(6938);function o(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},7285:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r="npm";function o(){return r}},3649:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>l});var r=n(5971),o=n(238),i=n(2403);function a(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){function o(t,n){return(0,r.mG)(this,void 0,void 0,(function(){var o,a,l;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return o=!1,a=null,[4,n({payload:(0,i.D)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){o=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return s.sent(),o||null===a||(a.integrations=(0,r.pi)((0,r.pi)({},t.integrations),((l={})[e]=!1,l))),[2,a]}}))}))}var a,l,s,c,u;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:a=(0,i.D)(t,{clone:!0,traverse:!1}).rawEvent(),l=0,s=n,e.label=1;case 1:return l{"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 n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},2332:function(e,t,n){"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 o=r(n(2534)),i=n(108);function a(e,t){i.Facade.call(this,e,t)}t.Delete=a,o.default(a,i.Facade),a.prototype.type=function(){return"delete"}},108:function(e,t,n){"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 o=r(n(6577)),i=n(5389),a=r(n(4754)),l=r(n(7478)),s=r(n(3797)),c=r(n(6957));function u(e,t){t=t||{},this.raw=i.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=i.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?l.default(e.timestamp):new Date,t.traverse&&c.default(e),this.opts=t,this.obj=e}t.Facade=u;var d=u.prototype;function k(e){return i.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"===typeof n&&(n=n.call(this)||{}),0===t.length||(n=s.default(n,t.join("."))),this.opts.clone?k(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?k(t):t},u.proxy=function(e){return function(){return this.proxy(e)}},u.field=function(e){return function(){return this.field(e)}},u.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?i.clone(n):n]),n||[]}},u.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?i.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?i.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),o=r[e]||s.default(r,e);return"object"!==typeof o&&(o=s.default(this.options(),e)),"object"===typeof o?o:{}}},d.context=d.options,d.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 n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var o=r[e];n="boolean"!==typeof o||o}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null!==e&&void 0!==e||(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=u.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"===typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.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},d.userAgent=u.proxy("context.userAgent"),d.timezone=u.proxy("context.timezone"),d.timestamp=u.field("timestamp"),d.channel=u.field("channel"),d.ip=u.proxy("context.ip"),d.userId=u.field("userId"),o.default(d)},8559:function(e,t,n){"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 o=r(n(2534)),i=r(n(7401)),a=r(n(7478)),l=n(108);function s(e,t){l.Facade.call(this,e,t)}t.Group=s,o.default(s,l.Facade);var c=s.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=l.Facade.field("groupId"),c.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},c.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return i.default(t)?t:void 0},c.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},c.name=l.Facade.proxy("traits.name"),c.industry=l.Facade.proxy("traits.industry"),c.employees=l.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},6131:function(e,t,n){"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 o=n(108),i=r(n(3797)),a=r(n(2534)),l=r(n(7401)),s=r(n(7478)),c=function(e){return e.trim()};function u(e,t){o.Facade.call(this,e,t)}t.Identify=u,a.default(u,o.Facade);var d=u.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var o=null==this[r]?this.proxy("traits."+r):this[r]();null!=o&&(t[e[r]]=o,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return l.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return s.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return s.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"===typeof e)return c(e);var t=this.firstName(),n=this.lastName();return t&&n?c(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"===typeof e)return c(e);var t=this.proxy("traits.name");return"string"===typeof t?c(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"===typeof e)return c(e);var t=this.proxy("traits.name");if("string"===typeof t){var n=c(t).indexOf(" ");if(-1!==n)return c(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=i.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return i.default(e,"avatar")||i.default(e,"photoUrl")||i.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return i.default(e,"position")||i.default(e,"jobTitle")},d.username=o.Facade.proxy("traits.username"),d.website=o.Facade.one("traits.website"),d.websites=o.Facade.multi("traits.website"),d.phone=o.Facade.one("traits.phone"),d.phones=o.Facade.multi("traits.phone"),d.address=o.Facade.proxy("traits.address"),d.gender=o.Facade.proxy("traits.gender"),d.birthday=o.Facade.proxy("traits.birthday")},6938:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},4754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},9262:function(e,t,n){"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 o=r(n(2534)),i=n(108),a=n(433),l=r(n(7401));function s(e,t){i.Facade.call(this,e,t)}t.Page=s,o.default(s,i.Facade);var c=s.prototype;c.action=function(){return"page"},c.type=c.action,c.category=i.Facade.field("category"),c.name=i.Facade.field("name"),c.title=i.Facade.proxy("properties.title"),c.path=i.Facade.proxy("properties.path"),c.url=i.Facade.proxy("properties.url"),c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var o in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=null==this[o]?this.proxy("properties."+o):this[o]();if(null==i)continue;t[e[o]]=i,o!==e[o]&&delete t[o]}return t},c.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return l.default(t)?t:void 0},c.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},c.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},c.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},4254:function(e,t,n){"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 o=r(n(2534)),i=n(9262),a=n(433);function l(e,t){i.Page.call(this,e,t)}t.Screen=l,o.default(l,i.Page),l.prototype.action=function(){return"screen"},l.prototype.type=l.prototype.action,l.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},l.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},433:function(e,t,n){"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 o=r(n(2534)),i=n(108),a=n(6131),l=r(n(7401)),s=r(n(3797));function c(e,t){i.Facade.call(this,e,t)}t.Track=c,o.default(c,i.Facade);var u=c.prototype;u.action=function(){return"track"},u.type=u.action,u.event=i.Facade.field("event"),u.value=i.Facade.proxy("properties.value"),u.category=i.Facade.proxy("properties.category"),u.id=i.Facade.proxy("properties.id"),u.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},u.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},u.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},u.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},u.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},u.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},u.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},u.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},u.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},u.sku=i.Facade.proxy("properties.sku"),u.tax=i.Facade.proxy("properties.tax"),u.name=i.Facade.proxy("properties.name"),u.price=i.Facade.proxy("properties.price"),u.total=i.Facade.proxy("properties.total"),u.repeat=i.Facade.proxy("properties.repeat"),u.coupon=i.Facade.proxy("properties.coupon"),u.shipping=i.Facade.proxy("properties.shipping"),u.discount=i.Facade.proxy("properties.discount"),u.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},u.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},u.description=i.Facade.proxy("properties.description"),u.plan=i.Facade.proxy("properties.plan"),u.subtotal=function(){var e=s.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},u.products=function(){var e=this.properties(),t=s.default(e,"products");return Array.isArray(t)?t.filter((function(e){return null!==e})):[]},u.quantity=function(){return(this.obj.properties||{}).quantity||1},u.currency=function(){return(this.obj.properties||{}).currency||"USD"},u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.query=i.Facade.proxy("options.query"),u.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},u.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},u.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 l.default(t)?t:void 0},u.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)},u.cents=function(){var e=this.revenue();return"number"!==typeof e?this.value()||0:100*e},u.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},6957:(e,t,n)=>{"use strict";var r=n(3653);function o(e,t){return void 0===t&&(t=!0),e&&"object"===typeof e?function(e,t){return Object.keys(e).forEach((function(n){e[n]=o(e[n],t)})),e}(e,t):Array.isArray(e)?function(e,t){return e.forEach((function(n,r){e[r]=o(n,t)})),e}(e,t):r.is(e,t)?r.parse(e):e}e.exports=o},3653:(e,t)=>{"use strict";var n=/^(\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=n.exec(e),o=0;if(!r)return new Date(e);for(var i,a=0;i=t[a];a++)r[i]=parseInt(r[i],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]?o=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(o=60*r[11]+r[12],"+"===r[10]&&(o=0-o));var l=Date.UTC(r[1],r[2],r[3],r[5],r[6]+o,r[7],r[8]);return new Date(l)},t.is=function(e,t){return"string"===typeof e&&((!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e))}},6900:(e,t,n)=>{"use strict";function r(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{S:()=>o,n:()=>r})},9685:(e,t,n)=>{"use strict";n.d(t,{KV:()=>o,l$:()=>i});var r=n(6900);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,t){return e.require(t)}e=n.hmd(e)},9846:(e,t,n)=>{"use strict";n.d(t,{ph:()=>u,yW:()=>c});var r=n(9685),o=n(6748);e=n.hmd(e);const i=(0,o.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const l=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){const{performance:e}=i;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===l?a:{nowSeconds:()=>(l.timeOrigin+l.now())/1e3},c=a.nowSeconds.bind(a),u=s.nowSeconds.bind(s);let d;(()=>{const{performance:e}=i;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=o{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:()=>i,YO:()=>a,n2:()=>o});const o="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function i(){return o}function a(e,t,n){const r=n||o,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},4296:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(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 n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){l();var t=JSON.stringify(e);return i()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=o(e,2),r=t[0],i=t[1];return Promise.all([r,i||n.miss(r)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=i();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},r().setItem(n,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=i();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function l(e){var t=i(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return o(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 o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,o).catch((function(){return l({caches:t}).get(e,r,o)}))},set:function(e,r){return n.set(e,r).catch((function(){return l({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return l({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return l({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var a=r(),l=o&&o.miss||function(){return Promise.resolve()};return a.then((function(e){return l(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=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 c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function u(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,f=2,L=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function E(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 x="GET",g="POST";function j(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===L&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(i(n),i(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return E(e)})):t}}))}function W(e,t,r,o){var a=[],l=function(e,t){if(e.method!==x&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,o),s=function(e,t){var r=n(n({},e.headers),t.headers),o={};return Object.keys(r).forEach((function(e){var t=r[e];o[e.toLowerCase()]=t})),o}(e,o),c=r.method,u=r.method!==x?{}:n(n({},r.data),o.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),o.queryParameters),k=0,p=function t(n,i){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:w(a)};var p={data:l,headers:s,method:c,url:b(u,r.path,d),connectTimeout:i(k,e.timeouts.connect),responseTimeout:i(k,o.timeout)},h=function(e){var t={request:p,response:e,host:u,triesLeft:n.length};return a.push(t),t},m={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 o=h(r);return r.isTimedOut&&k++,Promise.all([e.logger.info("Retryable failure",A(o)),e.hostsCache.set(u,y(u,r.isTimedOut?L:f))]).then((function(){return t(n,i)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,o=n;try{o=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(o,r,t)}(e,w(a))}};return e.requester.send(p).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return j(e.hostsCache,t).then((function(e){return p(i(e.statelessHosts).reverse(),e.getTimeout)}))}function v(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function b(e,t,n){var r=M(n),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(o+="?".concat(r)),o}function M(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function w(e){return e.map((function(e){return A(e)}))}function A(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var F=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===k.WithinHeaders?r:{}},queryParameters:function(){return e===k.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:k.WithinHeaders,t,e.apiKey),i=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,i=e.requestsCache,a=e.responsesCache,l=e.timeouts,s=e.userAgent,c=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:i,responsesCache:a,timeouts:l,userAgent:s,headers:e.headers,queryParameters:u,hosts:c.map((function(e){return E(e)})),read:function(e,t){var n=p(t,d.timeouts.read),r=function(){return W(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var i={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(i,(function(){return d.requestsCache.get(i,(function(){return d.requestsCache.set(i,r()).then((function(e){return Promise.all([d.requestsCache.delete(i),e])}),(function(e){return Promise.all([d.requestsCache.delete(i),Promise.reject(e)])})).then((function(e){var t=o(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(i,e)}})},write:function(e,t){return W(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,p(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return u({transporter:i,appId:t,addAlgoliaAgent:function(e,t){i.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((function(){}))}},e.methods)},H=function(e){return function(t,n){return t.method===x?e.transporter.read(t,n):e.transporter.write(t,n)}},V=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},Z=function(e){return function(t,r){var o=t.map((function(e){return n(n({},e),{},{params:M(e.params||{})})}));return e.transporter.read({method:g,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},r)}},S=function(e){return function(t,o){return Promise.all(t.map((function(t){var i=t.params,a=i.facetName,l=i.facetQuery,s=r(i,["facetName","facetQuery"]);return V(e)(t.indexName,{methods:{searchForFacetValues:P}}).searchForFacetValues(a,l,n(n({},o),s))})))}},O=function(e){return function(t,n,r){return e.transporter.read({method:g,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},_=function(e){return function(t,n){return e.transporter.read({method:g,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},P=function(e){return function(t,n,r){return e.transporter.read({method:g,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},C=1,R=2,N=3;function T(e,t,r){var o,i={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,o=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},i=o(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(i),r=o(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(i),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(i),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(o=N,{debug:function(e,t){return C>=o&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=o&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:l({caches:[a({key:"".concat("4.21.1","-").concat(e)}),s()]}),userAgent:v("4.21.1").add({segment:"Browser",version:"lite"}),authMode:k.WithinQueryParameters};return F(n(n(n({},i),r),{},{methods:{search:Z,searchForFacetValues:S,multipleQueries:Z,multipleSearchForFacetValues:S,customRequest:H,initIndex:function(e){return function(t){return V(e)(t,{methods:{search:_,searchForFacetValues:P,findAnswers:O}})}}}}))}return T.version="4.21.1",T}()},1842:(e,t,n)=>{"use strict";const{ApolloLink:r,Observable:o}=n(4218),{createSignalIfSupported:i,fallbackHttpConfig:a,parseAndCheckHttpResponse:l,rewriteURIForGET:s,selectHttpOptionsAndBody:c,selectURI:u,serializeFetchParameter:d}=n(5263),k=n(3119),p=n(2713),h=n(6289);e.exports=function(){let{uri:e="/graphql",useGETForQueries:t,isExtractableFile:n=h,FormData:m,formDataAppendFile:f=p,fetch:L,fetchOptions:y,credentials:E,headers:x,includeExtensions:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const j={http:{includeExtensions:g},options:y,credentials:E,headers:x};return new r((r=>{const p=r.getContext(),{clientAwareness:{name:h,version:y}={},headers:E}=p,x={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:{...h&&{"apollographql-client-name":h},...y&&{"apollographql-client-version":y},...E}},{options:g,body:W}=c(r,a,j,x),{clone:v,files:b}=k(W,"",n);let M=u(r,e);if(b.size){delete g.headers["content-type"];const e=new(m||FormData);e.append("operations",d(v,"Payload"));const t={};let n=0;b.forEach((e=>{t[++n]=e})),e.append("map",JSON.stringify(t)),n=0,b.forEach(((t,r)=>{f(e,++n,r)})),g.body=e}else if(t&&!r.query.definitions.some((e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))&&(g.method="GET"),"GET"===g.method){const{newURI:e,parseError:t}=s(M,W);if(t)return new o((e=>{e.error(t)}));M=e}else g.body=d(v,"Payload");const{controller:w}=i();w&&(g.signal&&(g.signal.aborted?w.abort():g.signal.addEventListener("abort",(()=>{w.abort()}),{once:!0})),g.signal=w.signal);const A=L||fetch;return new o((e=>{let t;return A(M,g).then((e=>(r.setContext({response:e}),e))).then(l(r)).then((t=>{e.next(t),e.complete()})).catch((n=>{t||(n.result&&n.result.errors&&n.result.data&&e.next(n.result),e.error(n))})),()=>{t=!0,w&&w.abort()}}))}))}},2713:e=>{"use strict";e.exports=function(e,t,n){e.append(t,n,n.name)}},6289:(e,t,n)=>{"use strict";e.exports=n(6195)},9174:function(e,t,n){var r;e=n.nmd(e),function(o){var i=t,a=(e&&e.exports,"object"==typeof n.g&&n.g);a.global!==a&&a.window;var l=function(e){this.message=e};(l.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new l(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,o,i=e.length%3,a="",l=-1,u=e.length-i;++l>18&63)+c.charAt(o>>12&63)+c.charAt(o>>6&63)+c.charAt(63&o);return 2==i?(t=e.charCodeAt(l)<<8,n=e.charCodeAt(++l),a+=c.charAt((o=t+n)>>10)+c.charAt(o>>4&63)+c.charAt(o<<2&63)+"="):1==i&&(o=e.charCodeAt(l),a+=c.charAt(o>>2)+c.charAt(o<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(u,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,i="",a=-1;++a>(-2*o&6)));return i},version:"1.0.0"};void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}()},6450:function(e,t,n){var r;!function(o){"use strict";function i(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,o,a){return i((l=i(i(t,e),i(r,a)))<<(s=o)|l>>>32-s,n);var l,s}function l(e,t,n,r,o,i,l){return a(t&n|~t&r,e,t,o,i,l)}function s(e,t,n,r,o,i,l){return a(t&r|n&~r,e,t,o,i,l)}function c(e,t,n,r,o,i,l){return a(t^n^r,e,t,o,i,l)}function u(e,t,n,r,o,i,l){return a(n^(t|~r),e,t,o,i,l)}function d(e,t){var n,r,o,a,d;e[t>>5]|=128<>>9<<4)]=t;var k=1732584193,p=-271733879,h=-1732584194,m=271733878;for(n=0;n>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t);return o}function m(e){return unescape(encodeURIComponent(e))}function f(e){return function(e){return k(d(p(e),8*e.length))}(m(e))}function L(e,t){return function(e,t){var n,r,o=p(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=d(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],a[n]=1549556828^o[n];return r=d(i.concat(p(t)),512+8*t.length),k(d(a.concat(r),640))}(m(e),m(t))}function y(e,t,n){return t?n?L(t,e):h(L(t,e)):n?f(e):function(e){return h(f(e))}(e)}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},7049:(e,t,n)=>{const r=n(7910),o={};for(const a of Object.keys(r))o[r[a]]=a;const i={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=i;for(const a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);const{channels:e,labels:t}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:e}),Object.defineProperty(i[a],"labels",{value:t})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let l,s;i===o?l=0:t===i?l=(n-r)/a:n===i?l=2+(r-t)/a:r===i&&(l=4+(t-n)/a),l=Math.min(60*l,360),l<0&&(l+=360);const c=(o+i)/2;return s=i===o?0:c<=.5?a/(i+o):a/(2-i-o),[l,100*s,100*c]},i.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,l=e[1]/255,s=e[2]/255,c=Math.max(a,l,s),u=c-Math.min(a,l,s),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/c,t=d(a),n=d(l),r=d(s),a===c?o=r-n:l===c?o=1/3+t-r:s===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*a,100*r]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,i=1/0;for(const o of Object.keys(r)){const t=r[o],s=(l=t,((a=e)[0]-l[0])**2+(a[1]-l[1])**2+(a[2]-l[2])**2);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*r-16,500*(n-r),200*(r-o)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(0===n)return a=255*r,[a,a,a];o=r<.5?r*(1+n):r+n-r*n;const l=2*r-o,s=[0,0,0];for(let c=0;c<3;c++)i=t+1/3*-(c-1),i<0&&i++,i>1&&i--,a=6*i<1?l+6*(o-l)*i:2*i<1?o:3*i<2?l+(o-l)*(2/3-i)*6:l,s[c]=255*a;return s},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*i),s=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,s,a];case 1:return[l,r,a];case 2:return[a,r,s];case 3:return[a,l,r];case 4:return[s,a,r];case 5:return[r,a,l]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const l=(2-n)*o;return i=n*o,i/=l<=1?l:2-l,i=i||0,a/=2,[t,100*i,100*a]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),l=1-r;i=6*t-a,0!==(1&a)&&(i=1-i);const s=n+i*(l-n);let c,u,d;switch(a){default:case 6:case 0:c=l,u=s,d=n;break;case 1:c=s,u=l,d=n;break;case 2:c=n,u=l,d=s;break;case 3:c=n,u=s,d=l;break;case 4:c=s,u=n,d=l;break;case 5:c=l,u=n,d=s}return[255*c,255*u,255*d]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,a=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},i.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const[n,r,o]=e;let a=null===t?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(l+=60),l},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===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(n/255*5)+Math.round(r/255*5)},i.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 n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.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]},i.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},i.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 n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let l,s;return l=a<1?i/(1-a):0,s=a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a,s/=6,s%=1,[360*s,100*a,100*l]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,a=i%1,l=1-a;let s=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return s=(1-n)*r,[255*(n*o[0]+s),255*(n*o[1]+s),255*(n*o[2]+s)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},7287:(e,t,n)=>{const r=n(7049),o=n(9672),i={};Object.keys(r).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];i[e][n]=function(e){const t=function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&(n=o);const i=e(n);if("object"===typeof i)for(let e=i.length,a=0;a1&&(n=o),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},9672:(e,t,n)=>{const r=n(7049);function o(e){const t=function(){const e={},t=Object.keys(r);for(let n=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]}},9194:(e,t,n)=>{var r=n(7910),o=n(5114),i=Object.hasOwnProperty,a=Object.create(null);for(var l in r)i.call(r,l)&&(a[r[l]]=l);var s=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var l=2*n;a[n]=parseInt(t.slice(l,l+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[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]:i.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=c(a[n],0,255);return a[3]=c(a[3],0,1),a},s.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 n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.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 n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=o(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]+")"},s.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},s.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return a[e.slice(0,3)]}},3861:(e,t,n)=>{const r=n(9194),o=n(7287),i=["keyword","gray","hex"],a={};for(const p of Object.keys(o))a[[...o[p].labels].sort().join("")]=p;const l={};function s(e,t){if(!(this instanceof s))return new s(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof s)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,c=o[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"===typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=o[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=k(n,c),this.valpha="number"===typeof e[c]?e[c]: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 a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];const{labels:i}=o[this.model],l=[];for(n=0;n(e%360+360)%360)),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new s(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new s(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new s(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},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[n,r]of e.entries()){const e=r/255;t[n]=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(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.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 s.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 n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,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 n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),l=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,c=1-l;return s.rgb(l*n.red()+c*r.red(),l*n.green()+c*r.green(),l*n.blue()+c*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const p of Object.keys(o)){if(i.includes(p))continue;const{channels:e}=o[p];s.prototype[p]=function(){if(this.model===p)return new s(this);for(var e=arguments.length,t=new Array(e),n=0;n0?new s(t,p):new s([...(r=o[this.model][p].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],p);var r},s[p]=function(){for(var t=arguments.length,n=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===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(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 a(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"===typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function s(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):l(e,n,i):r(n,i)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var c=s;e.exports=c},8703:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||l(e)||c()}function i(e){if(Array.isArray(e))return s(e)}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o/gm),$=f(/\${[\w\W]*}/gm),Y=f(/^data-[\-\w.\u00B7-\uFFFF]/),J=f(/^aria-[\-\w]+$/),X=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=f(/^(?:\w+script|data):/i),te=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=f(/^html$/i),re=function(){return"undefined"===typeof window?null:window},oe=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return ie(e)};if(n.version="2.4.7",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,l=t.HTMLTemplateElement,s=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,k=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,L=c.prototype,y=P(L,"cloneNode"),E=P(L,"nextSibling"),x=P(L,"childNodes"),Z=P(L,"parentNode");if("function"===typeof l){var S=i.createElement("template");S.content&&S.content.ownerDocument&&(i=S.content.ownerDocument)}var ae=oe(f,r),le=ae?ae.createHTML(""):"",se=i,ce=se.implementation,ue=se.createNodeIterator,de=se.createDocumentFragment,ke=se.getElementsByTagName,pe=r.importNode,he={};try{he=_(i).documentMode?i.documentMode:{}}catch(St){}var me={};n.isSupported="function"===typeof Z&&ce&&void 0!==ce.createHTMLDocument&&9!==he;var fe,Le,ye=K,Ee=Q,xe=$,ge=Y,je=J,We=ee,ve=te,be=X,Me=null,we=O({},[].concat(o(C),o(R),o(N),o(I),o(z))),Ae=null,Fe=O({},[].concat(o(U),o(q),o(B),o(G))),He=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}})),Ve=null,Ze=null,Se=!0,Oe=!0,_e=!1,Pe=!0,Ce=!1,Re=!1,Ne=!1,Te=!1,Ie=!1,De=!1,ze=!1,Ue=!0,qe=!1,Be="user-content-",Ge=!0,Ke=!1,Qe={},$e=null,Ye=O({},["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"]),Je=null,Xe=O({},["audio","video","img","source","image","track"]),et=null,tt=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,at=!1,lt=null,st=O({},[nt,rt,ot],b),ct=["application/xhtml+xml","text/html"],ut="text/html",dt=null,kt=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=_(t),fe=fe=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,Le="application/xhtml+xml"===fe?b:v,Me="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,Le):we,Ae="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,Le):Fe,lt="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,b):st,et="ADD_URI_SAFE_ATTR"in t?O(_(tt),t.ADD_URI_SAFE_ATTR,Le):tt,Je="ADD_DATA_URI_TAGS"in t?O(_(Xe),t.ADD_DATA_URI_TAGS,Le):Xe,$e="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,Le):Ye,Ve="FORBID_TAGS"in t?O({},t.FORBID_TAGS,Le):{},Ze="FORBID_ATTR"in t?O({},t.FORBID_ATTR,Le):{},Qe="USE_PROFILES"in t&&t.USE_PROFILES,Se=!1!==t.ALLOW_ARIA_ATTR,Oe=!1!==t.ALLOW_DATA_ATTR,_e=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ce=t.SAFE_FOR_TEMPLATES||!1,Re=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,De=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,Te=t.FORCE_BODY||!1,Ue=!1!==t.SANITIZE_DOM,qe=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,be=t.ALLOWED_URI_REGEXP||be,it=t.NAMESPACE||ot,He=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(He.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(Oe=!1),De&&(Ie=!0),Qe&&(Me=O({},o(z)),Ae=[],!0===Qe.html&&(O(Me,C),O(Ae,U)),!0===Qe.svg&&(O(Me,R),O(Ae,q),O(Ae,G)),!0===Qe.svgFilters&&(O(Me,N),O(Ae,q),O(Ae,G)),!0===Qe.mathMl&&(O(Me,I),O(Ae,B),O(Ae,G))),t.ADD_TAGS&&(Me===we&&(Me=_(Me)),O(Me,t.ADD_TAGS,Le)),t.ADD_ATTR&&(Ae===Fe&&(Ae=_(Ae)),O(Ae,t.ADD_ATTR,Le)),t.ADD_URI_SAFE_ATTR&&O(et,t.ADD_URI_SAFE_ATTR,Le),t.FORBID_CONTENTS&&($e===Ye&&($e=_($e)),O($e,t.FORBID_CONTENTS,Le)),Ge&&(Me["#text"]=!0),Re&&O(Me,["html","head","body"]),Me.table&&(O(Me,["tbody"]),delete Ve.tbody),m&&m(t),dt=t)},mt=O({},["mi","mo","mn","ms","mtext"]),ft=O({},["foreignobject","desc","title","annotation-xml"]),Lt=O({},["title","style","font","a","script"]),yt=O({},R);O(yt,N),O(yt,T);var Et=O({},I);O(Et,D);var xt=function(e){var t=Z(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=v(e.tagName),r=v(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(yt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&ft[r]:Boolean(Et[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!ft[r])&&!(t.namespaceURI===nt&&!mt[r])&&!Et[n]&&(Lt[n]||!yt[n]):!("application/xhtml+xml"!==fe||!lt[e.namespaceURI]))},gt=function(e){W(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(St){try{e.outerHTML=le}catch(St){e.remove()}}},jt=function(e,t){try{W(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(St){W(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Ie||De)try{gt(t)}catch(St){}else try{t.setAttribute(e,"")}catch(St){}},Wt=function(e){var t,n;if(Te)e=""+e;else{var r=M(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===fe&&it===ot&&(e=''+e+"");var o=ae?ae.createHTML(e):e;if(it===ot)try{t=(new h).parseFromString(o,fe)}catch(St){}if(!t||!t.documentElement){t=ce.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?le:o}catch(St){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),it===ot?ke.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},vt=function(e){return ue.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof p&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof k)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Mt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},wt=function(e,t,r){me[e]&&g(me[e],(function(e){e.call(n,t,r,dt)}))},At=function(e){var t;if(wt("beforeSanitizeElements",e,null),bt(e))return gt(e),!0;if(H(/[\u0080-\uFFFF]/,e.nodeName))return gt(e),!0;var r=Le(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:r,allowedTags:Me}),e.hasChildNodes()&&!Mt(e.firstElementChild)&&(!Mt(e.content)||!Mt(e.content.firstElementChild))&&H(/<[/\w]/g,e.innerHTML)&&H(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===r&&H(/