diff --git a/web-embeds/package.json b/web-embeds/package.json index 5c15b232..3148acc6 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.25", + "version": "0.1.26", "license": "MIT", "eslintIgnore": [ "/node_modules", diff --git a/web-embeds/widget/index.js b/web-embeds/widget/index.js index ec9ffb50..bee484ed 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,n,t){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",N="Xiaomi",R="Zebra",T="Facebook",I=function(e){for(var n={},t=0;t0?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,n){for(var t in n)if(typeof n[t]===s&&n[t].length>0){for(var r=0;r350?U(e,350):e,this},this.setUA(t),this};K.VERSION="0.7.33",K.BROWSER=I([d,h,"major"]),K.CPU=I([m]),K.DEVICE=I([u,p,k,f,L,E,y,x,g]),K.ENGINE=K.OS=I([d,h]),typeof n!==l?(e.exports&&(n=e.exports=K),n.UAParser=K):t.amdO?(r=function(){return K}.call(n,t,n,e))===i||(e.exports=r):typeof o!==l&&(o.UAParser=K);var $=typeof o!==l&&(o.jQuery||o.Zepto);if($&&!$.ua){var Y=new K;$.ua=Y.getResult(),$.ua.get=function(){return Y.getUA()},$.ua.set=function(e){Y.setUA(e);var n=Y.getResult();for(var t in n)$.ua[t]=n[t]}}}("object"===typeof window?window:this)},7144:(e,n,t)=>{"use strict";function r(e,n){return new Promise((function(t,r){var o=setTimeout((function(){r(Error("Promise timed out"))}),n);e.then((function(e){return clearTimeout(o),t(e)})).catch(r)}))}function o(e,n,t){var o;return(o=t,new Promise((function(e){return setTimeout(e,o)}))).then((function(){return r(function(){try{return Promise.resolve(n(e))}catch(t){return Promise.reject(t)}}(),1e3)})).catch((function(n){null===e||void 0===e||e.log("warn","Callback Error",{error:n}),null===e||void 0===e||e.stats.increment("callback_error")})).then((function(){return e}))}t.d(n,{FJ:()=>r,UI:()=>o})},238:(e,n,t)=>{"use strict";t.d(n,{Y:()=>s,_:()=>c});var r=t(8431),o=t(1656),i=t(5971),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,n,t){var r=new Date;this._logs.push({level:e,message:n,time:r,extras:t})},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,n){var t,r,o,a=(0,i.pi)((0,i.pi)({},n),{json:JSON.stringify(n.extras,null," "),extras:n.extras});delete a.time;var l=null!==(o=null===(r=n.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),((t={})[l]=a,t))}),{});console.table?console.table(e):console.log(e)}else this.logs.forEach((function(e){var n=e.level,t=e.message,r=e.extras;"info"===n||"debug"===n?console.log(t,null!==r&&void 0!==r?r:""):console[n](t,null!==r&&void 0!==r?r:"")}));this._logs=[]},e}(),l=t(8062),s=function(e){var n,t,r;this.retry=null===(n=e.retry)||void 0===n||n,this.type=null!==(t=e.type)&&void 0!==t?t:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},c=function(){function e(e,n,t,o){void 0===n&&(n=(0,r.v4)()),void 0===t&&(t=new l.i),void 0===o&&(o=new a),this.attempts=0,this.event=e,this._id=n,this.logger=o,this.stats=t}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,n,t){this.logger.log(e,n,t)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,n){var t;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(t=this.event.integrations)||void 0===t?void 0:t[r]))return this.event}return(0,o.N)(this.event,e,n),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,n,t)=>{"use strict";t.d(n,{M:()=>i,Z:()=>a});var r=t(5971),o=t(1446);var i="onRemoveFromFuture",a=function(e){function n(n,t,r){var o=e.call(this)||this;return o.future=[],o.maxAttempts=n,o.queue=t,o.seen=null!==r&&void 0!==r?r:{},o}return(0,r.ZT)(n,e),n.prototype.push=function(){for(var e=this,n=[],t=0;te.maxAttempts||e.includes(n))&&(e.queue.push(n),!0)}));return this.queue=this.queue.sort((function(n,t){return e.getAttempts(n)-e.getAttempts(t)})),r},n.prototype.pushWithBackoff=function(e){var n=this;if(0===this.getAttempts(e))return this.push(e)[0];var t=this.updateAttempts(e);if(t>this.maxAttempts||this.includes(e))return!1;var r=function(e){var n=Math.random()+1,t=e.minTimeout,r=void 0===t?500:t,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(n*r*Math.pow(i,a),s)}({attempt:t-1});return setTimeout((function(){n.queue.push(e),n.future=n.future.filter((function(n){return n.id!==e.id})),n.emit(i)}),r),this.future.push(e),!0},n.prototype.getAttempts=function(e){var n;return null!==(n=this.seen[e.id])&&void 0!==n?n:0},n.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},n.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find((function(n){return n.id===e.id})))||Boolean(this.future.find((function(n){return n.id===e.id})))},n.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(n.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),n}(o.Q)},5825:(e,n,t)=>{"use strict";t.d(n,{a:()=>i,z:()=>a});var r=t(5971),o=t(238);function i(e,n){e.log("debug","plugin",{plugin:n.name});var t=(new Date).getTime(),i=n[e.event.type];return void 0===i?Promise.resolve(e):function(e){return(0,r.mG)(this,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:return[2,t.sent()];case 2:return n=t.sent(),[2,Promise.reject(n)];case 3:return[2]}}))}))}((function(){return i.apply(n,[e])})).then((function(e){var r=(new Date).getTime()-t;return e.stats.gauge("plugin_time",r,["plugin:".concat(n.name)]),e})).catch((function(t){if(t instanceof o.Y&&"middleware_cancellation"===t.type)throw t;return t instanceof o.Y?(e.log("warn",t.type,{plugin:n.name,error:t}),t):(e.log("error","plugin Error",{plugin:n.name,error:t}),e.stats.increment("plugin_error",1,["plugin:".concat(n.name)]),t)}))}function a(e,n){return i(e,n).then((function(n){if(n instanceof o._)return n;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(n)}))}},8062:(e,n,t)=>{"use strict";t.d(n,{i:()=>i,s:()=>o});var r=t(5971),o=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,n,t){void 0===n&&(n=1),this.metrics.push({metric:e,value:n,tags:null!==t&&void 0!==t?t:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,n,t){this.metrics.push({metric:e,value:n,tags:null!==t&&void 0!==t?t:[],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:(n=e.type,{gauge:"g",counter:"c"}[n]),e:e.timestamp};var n}))},e}(),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(n,e),n.prototype.gauge=function(){for(var e=[],n=0;n{"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()}t.d(n,{Gg:()=>a,HD:()=>r,PO:()=>l,hj:()=>o,mf:()=>i})},1446:(e,n,t)=>{"use strict";t.d(n,{Q:()=>r});var r=function(){function e(e){var n;this.callbacks={},this.warned=!1,this.maxListeners=null!==(n=null===e||void 0===e?void 0:e.maxListeners)&&void 0!==n?n: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,n){return this.callbacks[e]?(this.callbacks[e].push(n),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[n],this},e.prototype.once=function(e,n){var t=this,r=function(){for(var o=[],i=0;i{"use strict";t.d(n,{G:()=>o,s:()=>i});var r=t(4295);function o(){return!(0,r.j)()||window.navigator.onLine}function i(){return!o()}},7337:(e,n,t)=>{"use strict";t.d(n,{U:()=>r});var r="api.segment.io/v1"},9394:(e,n,t)=>{"use strict";t.d(n,{_:()=>a});var r=t(5971),o=t(238),i=t(1877),a=function(e){function n(n,t){return e.call(this,n,t,new i.j)||this}return(0,r.ZT)(n,e),n.system=function(){return new this({type:"track",event:"system"})},n}(o._)},4295:(e,n,t)=>{"use strict";function r(){return"undefined"!==typeof window}function o(){return!r()}t.d(n,{j:()=>r,s:()=>o})},5705:(e,n,t)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(n){return e}}t.d(n,{a:()=>r})},1877:(e,n,t)=>{"use strict";t.d(n,{j:()=>k});var r=t(5971),o=t(8062),i=t(7856),a=t(3062),l=t(7285),s=t(7337);function c(e){console.error("Error sending segment performance metrics",e)}var u,d=function(){function e(e){var n,t,r,o,i=this;if(this.host=null!==(n=null===e||void 0===e?void 0:e.host)&&void 0!==n?n:s.U,this.sampleRate=null!==(t=null===e||void 0===e?void 0:e.sampleRate)&&void 0!==t?t: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,n){if(e.includes("analytics_js.")&&0!==n.length&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var t=function(e,n,t){var o=n.reduce((function(e,n){var t=n.split(":"),r=t[0],o=t[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"===t?"next-".concat(a.i):"npm:next-".concat(a.i)})}}(e,n,(0,l.B)());this.queue.push(t),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(n){switch(n.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(n){c(n),e.sampleRate=0}))];case 1:return n.sent(),[2]}}))}))},e.prototype.send=function(){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,t;return(0,r.Jh)(this,(function(r){return e={series:this.queue},this.queue=[],n={"Content-Type":"text/plain"},t="https://".concat(this.host,"/m"),[2,(0,i.h)(t,{headers:n,body:JSON.stringify(e),method:"POST"})]}))}))},e}(),k=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(n,e),n.initRemoteMetrics=function(e){u=new d(e)},n.prototype.increment=function(n,t,r){e.prototype.increment.call(this,n,t,r),null===u||void 0===u||u.increment(n,null!==r&&void 0!==r?r:[])},n}(o.s)},5176:(e,n,t)=>{"use strict";function r(e,n){var t=n.methodName,r=n.integrationName,o=n.type,i=n.didError,a=void 0!==i&&i;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(t),"integration_name:".concat(r),"type:".concat(o)])}t.d(n,{z:()=>r})},3062:(e,n,t)=>{"use strict";t.d(n,{i:()=>r});var r="1.62.0"},7856:(e,n,t)=>{"use strict";function r(e,n){return n=n||{},new Promise((function(t,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(n.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,n,t){i.push(n=n.toLowerCase()),a.push([n,t]),l[n]=l[n]?l[n]+","+t:t})),t(s())},o.onerror=r,o.withCredentials="include"==n.credentials,n.headers)o.setRequestHeader(c,n.headers[c]);o.send(n.body||null)}))}t.d(n,{h:()=>i});var o=t(5888),i=function(){for(var e=[],n=0;n{"use strict";t.d(n,{R:()=>r});var r=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t.g?t.g:null}},7718:(e,n,t)=>{"use strict";t.d(n,{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,n,t)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(n){return n.src===e}))}function o(e,n){var t=r(e);if(void 0!==t){var o=null===t||void 0===t?void 0:t.getAttribute("status");if("loaded"===o)return Promise.resolve(t);if("loading"===o)return new Promise((function(e,n){t.addEventListener("load",(function(){return e(t)})),t.addEventListener("error",(function(e){return n(e)}))}))}return new Promise((function(t,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!==n&&void 0!==n?n:{});ai,v:()=>o})},2825:(e,n,t)=>{"use strict";t.d(n,{o:()=>o});var r=t(5971);function o(e,n){var t,o=Object.entries(null!==(t=n.integrations)&&void 0!==t?t:{}).reduce((function(e,n){var t,o,i=n[0],a=n[1];return"object"===typeof a?(0,r.pi)((0,r.pi)({},e),((t={})[i]=a,t)):(0,r.pi)((0,r.pi)({},e),((o={})[i]={},o))}),{});return Object.entries(e.integrations).reduce((function(e,n){var t,i=n[0],a=n[1];return(0,r.pi)((0,r.pi)({},e),((t={})[i]=(0,r.pi)((0,r.pi)({},a),o[i]),t))}),{})}},2319:(e,n,t)=>{"use strict";t.d(n,{x:()=>o});var r=t(5971),o=function(e,n){return(0,r.mG)(void 0,void 0,void 0,(function(){var t;return(0,r.Jh)(this,(function(o){return t=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=t,[4,n()]):[3,2];case 1:return[2,i.apply(void 0,[r.sent()])];case 2:return[2]}}))}))},[2,t(void 0)]}))}))}},9828:(e,n,t)=>{"use strict";t.d(n,{Kg:()=>s,UH:()=>a,Vl:()=>l});var r,o=t(7718),i=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var n=(0,o.wI)();n&&(n._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 n=function(){var e;return Array.prototype.slice.call(document.querySelectorAll("script")).forEach((function(n){var t,r=null!==(t=n.getAttribute("src"))&&void 0!==t?t:"",o=i.exec(r);o&&o[1]&&(e=o[1])})),e}();return n||"https://cdn.segment.com"},s=function(){var e=l();return"".concat(e,"/next-integrations")}},2428:(e,n,t)=>{"use strict";t.d(n,{$:()=>k});var r=t(5971),o=t(3033),i=t(9394),a=t(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 n=l.getItem(e);return(n?JSON.parse(n):[]).map((function(e){return new i._(e.event,e.id)}))}function c(e){var n=l.getItem(e);return n?JSON.parse(n):{}}function u(e){l.removeItem(e)}function d(e,n,t){void 0===t&&(t=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)),n(),void l.removeItem(r);!a&&t<3?setTimeout((function(){d(e,n,t+1)}),50):console.error("Unable to retrieve lock")}var k=function(e){function n(n,t){var o=e.call(this,n,[])||this,i="persisted-queue:v1:".concat(t,":items"),a="persisted-queue:v1:".concat(t,":seen"),k=[],h={};return d(t,(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(t,(function(){!function(e,n){var t=s(e),o=(0,r.ev)((0,r.ev)([],n,!0),t,!0).reduce((function(e,n){var t;return(0,r.pi)((0,r.pi)({},e),((t={})[n.id]=n,t))}),{});l.setItem(e,JSON.stringify(Object.values(o)))}(i,e),function(e,n){var t=c(e);l.setItem(e,JSON.stringify((0,r.pi)((0,r.pi)({},t),n)))}(a,o.seen)}))}catch(p){console.error(p)}}})),o}return(0,r.ZT)(n,e),n}(o.Z)},2403:(e,n,t)=>{"use strict";t.d(n,{D:()=>o});var r=t(6938);function o(e,n){var t=new r.Facade(e,n);return"track"===e.type&&(t=new r.Track(e,n)),"identify"===e.type&&(t=new r.Identify(e,n)),"page"===e.type&&(t=new r.Page(e,n)),"alias"===e.type&&(t=new r.Alias(e,n)),"group"===e.type&&(t=new r.Group(e,n)),"screen"===e.type&&(t=new r.Screen(e,n)),Object.defineProperty(t,"obj",{value:e,writable:!0}),t}},7285:(e,n,t)=>{"use strict";t.d(n,{B:()=>o});var r="npm";function o(){return r}},3649:(e,n,t)=>{"use strict";t.r(n),t.d(n,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>l});var r=t(5971),o=t(238),i=t(2403);function a(e,n,t){return(0,r.mG)(this,void 0,void 0,(function(){function o(n,t){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,t({payload:(0,i.D)(n,{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)({},n.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)(n,{clone:!0,traverse:!1}).rawEvent(),l=0,s=t,e.label=1;case 1:return l{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.clone=void 0,n.clone=function e(n){if("object"!==typeof n)return n;if("[object Object]"===Object.prototype.toString.call(n)){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=e(n[r]));return t}return Array.isArray(n)?n.map(e):n}},2332:function(e,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Delete=void 0;var o=r(t(2534)),i=t(108);function a(e,n){i.Facade.call(this,e,n)}n.Delete=a,o.default(a,i.Facade),a.prototype.type=function(){return"delete"}},108:function(e,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Facade=void 0;var o=r(t(6577)),i=t(5389),a=r(t(4754)),l=r(t(7478)),s=r(t(3797)),c=r(t(6957));function u(e,n){n=n||{},this.raw=i.clone(e),"clone"in n||(n.clone=!0),n.clone&&(e=i.clone(e)),"traverse"in n||(n.traverse=!0),e.timestamp="timestamp"in e?l.default(e.timestamp):new Date,n.traverse&&c.default(e),this.opts=n,this.obj=e}n.Facade=u;var d=u.prototype;function k(e){return i.clone(e)}d.proxy=function(e){var n=e.split("."),t=this[e=n.shift()]||this.obj[e];return t?("function"===typeof t&&(t=t.call(this)||{}),0===n.length||(t=s.default(t,n.join("."))),this.opts.clone?k(t):t):t},d.field=function(e){var n=this.obj[e];return this.opts.clone?k(n):n},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 n=this.proxy(e+"s");if(Array.isArray(n))return n;var t=this.proxy(e);return t&&(t=[this.opts.clone?i.clone(t):t]),t||[]}},u.one=function(e){return function(){var n=this.proxy(e);if(n)return n;var t=this.proxy(e+"s");return Array.isArray(t)?t[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 n=this.obj.options||this.obj.context||{},t=this.opts.clone?i.clone(n):n;if(!e)return t;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 n=this.proxy("options.providers.all");"boolean"!==typeof n&&(n=this.proxy("options.all")),"boolean"!==typeof n&&(n=this.proxy("integrations.all")),"boolean"!==typeof n&&(n=!0);var t=n&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(t=r.providers[e]),r.hasOwnProperty(e)){var o=r[e];t="boolean"!==typeof o||o}return!!t},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 n=this.proxy("options.traits")||{},t=this.userId();for(var r in e=e||{},t&&(n.id=t),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==o)continue;n[e[r]]=o,delete n[r]}return n},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 n=this.library().name;return e.type||(n.indexOf("ios")>-1&&(e.type="ios"),n.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,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Group=void 0;var o=r(t(2534)),i=r(t(7401)),a=r(t(7478)),l=t(108);function s(e,n){l.Facade.call(this,e,n)}n.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 n=this.groupId();return i.default(n)?n:void 0},c.traits=function(e){var n=this.properties(),t=this.groupId();for(var r in e=e||{},t&&(n.id=t),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("traits."+r):this[r]();if(null==o)continue;n[e[r]]=o,delete n[r]}return n},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,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Identify=void 0;var o=t(108),i=r(t(3797)),a=r(t(2534)),l=r(t(7401)),s=r(t(7478)),c=function(e){return e.trim()};function u(e,n){o.Facade.call(this,e,n)}n.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 n=this.field("traits")||{},t=this.userId();for(var r in e=e||{},t&&(n.id=t),e){var o=null==this[r]?this.proxy("traits."+r):this[r]();null!=o&&(n[e[r]]=o,r!==e[r]&&delete n[r])}return n},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var n=this.userId();return l.default(n)?n: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 n=this.firstName(),t=this.lastName();return n&&t?c(n+" "+t):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"===typeof e)return c(e);var n=this.proxy("traits.name");return"string"===typeof n?c(n).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"===typeof e)return c(e);var n=this.proxy("traits.name");if("string"===typeof n){var t=c(n).indexOf(" ");if(-1!==t)return c(n.substr(t+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(),n=i.default(this.traits(),"age");return null!=n?n: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,n,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=/.+\@.+\..+/;n.default=function(e){return t.test(e)}},4754:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t={Salesforce:!0};n.default=function(e){return!t[e]}},9262:function(e,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Page=void 0;var o=r(t(2534)),i=t(108),a=t(433),l=r(t(7401));function s(e,n){i.Facade.call(this,e,n)}n.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 n=this.field("properties")||{},t=this.category(),r=this.name();for(var o in e=e||{},t&&(n.category=t),r&&(n.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;n[e[o]]=i,o!==e[o]&&delete n[o]}return n},c.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var n=this.userId();return l.default(n)?n:void 0},c.fullName=function(){var e=this.category(),n=this.name();return n&&e?e+" "+n:n},c.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},c.track=function(e){var n=this.json();return n.event=this.event(e),n.timestamp=this.timestamp(),n.properties=this.properties(),new a.Track(n,this.opts)}},4254:function(e,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Screen=void 0;var o=r(t(2534)),i=t(9262),a=t(433);function l(e,n){i.Page.call(this,e,n)}n.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 n=this.json();return n.event=this.event(e),n.timestamp=this.timestamp(),n.properties=this.properties(),new a.Track(n,this.opts)}},433:function(e,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Track=void 0;var o=r(t(2534)),i=t(108),a=t(6131),l=r(t(7401)),s=r(t(3797));function c(e,n){i.Facade.call(this,e,n)}n.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"),n=this.total()||this.revenue();if(e)return e;if(!n)return 0;if(this.total()){var t=this.tax();t&&(n-=t),(t=this.shipping())&&(n-=t),(t=this.discount())&&(n+=t)}return n},u.products=function(){var e=this.properties(),n=s.default(e,"products");return Array.isArray(n)?n.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 n=this.field("properties")||{};for(var t in e=e||{})if(Object.prototype.hasOwnProperty.call(e,t)){var r=null==this[t]?this.proxy("properties."+t):this[t]();if(null==r)continue;n[e[t]]=r,delete n[t]}return n},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 n=this.userId();return l.default(n)?n:void 0},u.revenue=function(){var e=this.proxy("properties.revenue"),n=this.event();return!e&&n&&n.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,n,t)=>{"use strict";var r=t(3653);function o(e,n){return void 0===n&&(n=!0),e&&"object"===typeof e?function(e,n){return Object.keys(e).forEach((function(t){e[t]=o(e[t],n)})),e}(e,n):Array.isArray(e)?function(e,n){return e.forEach((function(t,r){e[r]=o(t,n)})),e}(e,n):r.is(e,n)?r.parse(e):e}e.exports=o},3653:(e,n)=>{"use strict";var t=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;n.parse=function(e){var n=[1,5,6,7,11,12],r=t.exec(e),o=0;if(!r)return new Date(e);for(var i,a=0;i=n[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)},n.is=function(e,n){return"string"===typeof e&&((!n||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&t.test(e))}},6900:(e,n,t)=>{"use strict";function r(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}t.d(n,{S:()=>o,n:()=>r})},9685:(e,n,t)=>{"use strict";t.d(n,{KV:()=>o,l$:()=>i});var r=t(6900);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,n){return e.require(n)}e=t.hmd(e)},9846:(e,n,t)=>{"use strict";t.d(n,{ph:()=>u,yW:()=>c});var r=t(9685),o=t(6748);e=t.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(n){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 n=36e5,t=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-r):n,a=o{"use strict";function r(e){return e&&e.Math==Math?e:void 0}t.d(n,{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 t.g&&r(t.g)||function(){return this}()||{};function i(){return o}function a(e,n,t){const r=t||o,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=n())}},4296:function(e){e.exports=function(){"use strict";function e(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function n(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function t(t){for(var r=1;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var t=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return t}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){l();var n=JSON.stringify(e);return i()[n]})).then((function(e){return Promise.all([e?e.value:n(),void 0!==e])})).then((function(e){var n=o(e,2),r=n[0],i=n[1];return Promise.all([r,i||t.miss(r)])})).then((function(e){return o(e,1)[0]}))},set:function(e,n){return Promise.resolve().then((function(){var o=i();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:n},r().setItem(t,JSON.stringify(o)),n}))},delete:function(e){return Promise.resolve().then((function(){var n=i();delete n[JSON.stringify(e)],r().setItem(t,JSON.stringify(n))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(t)}))}}}function l(e){var n=i(e.caches),t=n.shift();return void 0===t?{get:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n().then((function(e){return Promise.all([e,t.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,n){return Promise.resolve(n)},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 t.get(e,r,o).catch((function(){return l({caches:n}).get(e,r,o)}))},set:function(e,r){return t.set(e,r).catch((function(){return l({caches:n}).set(e,r)}))},delete:function(e){return t.delete(e).catch((function(){return l({caches:n}).delete(e)}))},clear:function(){return t.clear().catch((function(){return l({caches:n}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},n={};return{get:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(t);if(i in n)return Promise.resolve(e.serializable?JSON.parse(n[i]):n[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(t,r){return n[JSON.stringify(t)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete n[JSON.stringify(e)],Promise.resolve()},clear:function(){return n={},Promise.resolve()}}}function c(e){for(var n=e.length-1;n>0;n--){var t=Math.floor(Math.random()*(n+1)),r=e[n];e[n]=e[t],e[t]=r}return e}function u(e,n){return n?(Object.keys(n).forEach((function(t){e[t]=n[t](e)})),e):e}function d(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r0?r:void 0,timeout:t.timeout||n,headers:t.headers||{},queryParameters:t.queryParameters||{},cacheable:t.cacheable}}var h={Read:1,Write:2,Any:3},m=1,f=2,L=3;function y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return t(t({},e),{},{status:n,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,n){return Promise.all(n.map((function(n){return e.get(n,(function(){return Promise.resolve(y(n))}))}))).then((function(e){var t=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(t),i(r));return{getTimeout:function(e,n){return(0===r.length&&0===e?1:r.length+3+e)*n},statelessHosts:o.length>0?o.map((function(e){return E(e)})):n}}))}function W(e,n,r,o){var a=[],l=function(e,n){if(e.method!==x&&(void 0!==e.data||void 0!==n.data)){var r=Array.isArray(e.data)?e.data:t(t({},e.data),n.data);return JSON.stringify(r)}}(r,o),s=function(e,n){var r=t(t({},e.headers),n.headers),o={};return Object.keys(r).forEach((function(e){var n=r[e];o[e.toLowerCase()]=n})),o}(e,o),c=r.method,u=r.method!==x?{}:t(t({},r.data),o.data),d=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),o.queryParameters),k=0,p=function n(t,i){var u=t.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 n={request:p,response:e,host:u,triesLeft:t.length};return a.push(n),n},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(n){throw function(e,n){return{name:"DeserializationError",message:e,response:n}}(n.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 n(t,i)}))},onFail:function(e){throw h(e),function(e,n){var t=e.content,r=e.status,o=t;try{o=JSON.parse(t).message}catch(e){}return function(e,n,t){return{name:"ApiError",message:e,status:n,transporterStackTrace:t}}(o,r,n)}(e,w(a))}};return e.requester.send(p).then((function(e){return function(e,n){return function(e){var n=e.status;return e.isTimedOut||function(e){var n=e.isTimedOut,t=e.status;return!n&&0==~~t}(e)||2!=~~(n/100)&&4!=~~(n/100)}(e)?n.onRetry(e):2==~~(e.status/100)?n.onSuccess(e):n.onFail(e)}(e,m)}))};return j(e.hostsCache,n).then((function(e){return p(i(e.statelessHosts).reverse(),e.getTimeout)}))}function v(e){var n={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===n.value.indexOf(t)&&(n.value="".concat(n.value).concat(t)),n}};return n}function b(e,n,t){var r=M(t),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===n.charAt(0)?n.substr(1):n);return r.length&&(o+="?".concat(r)),o}function M(e){return Object.keys(e).map((function(n){return d("%s=%s",n,(t=e[n],"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(e[n]):e[n]));var t})).join("&")}function w(e){return e.map((function(e){return A(e)}))}function A(e){var n=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),n)})})}var F=function(e){var n=e.appId,r=function(e,n,t){var r={"x-algolia-api-key":t,"x-algolia-application-id":n};return{headers:function(){return e===k.WithinHeaders?r:{}},queryParameters:function(){return e===k.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:k.WithinHeaders,n,e.apiKey),i=function(e){var n=e.hostsCache,t=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:n,logger:t,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,n){var t=p(n,d.timeouts.read),r=function(){return W(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,t)};if(!0!==(void 0!==t.cacheable?t.cacheable:e.cacheable))return r();var i={request:e,mappedRequestOptions:t,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 n=o(e,2);return n[0],n[1]}))}))}),{miss:function(e){return d.responsesCache.set(i,e)}})},write:function(e,n){return W(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,p(n,d.timeouts.write))}};return d}(t(t({hosts:[{url:"".concat(n,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(n,".algolia.net"),accept:h.Write}].concat(c([{url:"".concat(n,"-1.algolianet.com")},{url:"".concat(n,"-2.algolianet.com")},{url:"".concat(n,"-3.algolianet.com")}]))},e),{},{headers:t(t(t({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:t(t({},r.queryParameters()),e.queryParameters)}));return u({transporter:i,appId:n,addAlgoliaAgent:function(e,n){i.userAgent.add({segment:e,version:n})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((function(){}))}},e.methods)},H=function(e){return function(n,t){return n.method===x?e.transporter.read(n,t):e.transporter.write(n,t)}},V=function(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u({transporter:e.transporter,appId:e.appId,indexName:n},t.methods)}},Z=function(e){return function(n,r){var o=n.map((function(e){return t(t({},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(n,o){return Promise.all(n.map((function(n){var i=n.params,a=i.facetName,l=i.facetQuery,s=r(i,["facetName","facetQuery"]);return V(e)(n.indexName,{methods:{searchForFacetValues:P}}).searchForFacetValues(a,l,t(t({},o),s))})))}},O=function(e){return function(n,t,r){return e.transporter.read({method:g,path:d("1/answers/%s/prediction",e.indexName),data:{query:n,queryLanguages:t},cacheable:!0},r)}},_=function(e){return function(n,t){return e.transporter.read({method:g,path:d("1/indexes/%s/query",e.indexName),data:{query:n},cacheable:!0},t)}},P=function(e){return function(n,t,r){return e.transporter.read({method:g,path:d("1/indexes/%s/facets/%s/query",e.indexName,n),data:{facetQuery:t},cacheable:!0},r)}},C=1,N=2,R=3;function T(e,n,r){var o,i={appId:e,apiKey:n,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(n){var t=new XMLHttpRequest;t.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(n){return t.setRequestHeader(n,e.headers[n])}));var r,o=function(e,r){return setTimeout((function(){t.abort(),n({status:0,content:r,isTimedOut:!0})}),1e3*e)},i=o(e.connectTimeout,"Connection timeout");t.onreadystatechange=function(){t.readyState>t.OPENED&&void 0===r&&(clearTimeout(i),r=o(e.responseTimeout,"Socket timeout"))},t.onerror=function(){0===t.status&&(clearTimeout(i),clearTimeout(r),n({content:t.responseText||"Network request failed",status:t.status,isTimedOut:!1}))},t.onload=function(){clearTimeout(i),clearTimeout(r),n({content:t.responseText,status:t.status,isTimedOut:!1})},t.send(e.data)}))}},logger:(o=R,{debug:function(e,n){return C>=o&&console.debug(e,n),Promise.resolve()},info:function(e,n){return N>=o&&console.info(e,n),Promise.resolve()},error:function(e,n){return console.error(e,n),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(t(t(t({},i),r),{},{methods:{search:Z,searchForFacetValues:S,multipleQueries:Z,multipleSearchForFacetValues:S,customRequest:H,initIndex:function(e){return function(n){return V(e)(n,{methods:{search:_,searchForFacetValues:P,findAnswers:O}})}}}}))}return T.version="4.21.1",T}()},1842:(e,n,t)=>{"use strict";const{ApolloLink:r,Observable:o}=t(4218),{createSignalIfSupported:i,fallbackHttpConfig:a,parseAndCheckHttpResponse:l,rewriteURIForGET:s,selectHttpOptionsAndBody:c,selectURI:u,serializeFetchParameter:d}=t(5263),k=t(3119),p=t(2713),h=t(6289);e.exports=function(){let{uri:e="/graphql",useGETForQueries:n,isExtractableFile:t=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,"",t);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 n={};let t=0;b.forEach((e=>{n[++t]=e})),e.append("map",JSON.stringify(n)),t=0,b.forEach(((n,r)=>{f(e,++t,r)})),g.body=e}else if(n&&!r.query.definitions.some((e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))&&(g.method="GET"),"GET"===g.method){const{newURI:e,parseError:n}=s(M,W);if(n)return new o((e=>{e.error(n)}));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 n;return A(M,g).then((e=>(r.setContext({response:e}),e))).then(l(r)).then((n=>{e.next(n),e.complete()})).catch((t=>{n||(t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t))})),()=>{n=!0,w&&w.abort()}}))}))}},2713:e=>{"use strict";e.exports=function(e,n,t){e.append(n,t,t.name)}},6289:(e,n,t)=>{"use strict";e.exports=t(6195)},9174:function(e,n,t){var r;e=t.nmd(e),function(o){var i=n,a=(e&&e.exports,"object"==typeof t.g&&t.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 n,t,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?(n=e.charCodeAt(l)<<8,t=e.charCodeAt(++l),a+=c.charAt((o=n+t)>>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 n=(e=String(e).replace(u,"")).length;n%4==0&&(n=(e=e.replace(/==?$/,"")).length),(n%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var t,r,o=0,i="",a=-1;++a>(-2*o&6)));return i},version:"1.0.0"};void 0===(r=function(){return d}.call(n,t,n,e))||(e.exports=r)}()},6450:function(e,n,t){var r;!function(o){"use strict";function i(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function a(e,n,t,r,o,a){return i((l=i(i(n,e),i(r,a)))<<(s=o)|l>>>32-s,t);var l,s}function l(e,n,t,r,o,i,l){return a(n&t|~n&r,e,n,o,i,l)}function s(e,n,t,r,o,i,l){return a(n&r|t&~r,e,n,o,i,l)}function c(e,n,t,r,o,i,l){return a(n^t^r,e,n,o,i,l)}function u(e,n,t,r,o,i,l){return a(t^(n|~r),e,n,o,i,l)}function d(e,n){var t,r,o,a,d;e[n>>5]|=128<>>9<<4)]=n;var k=1732584193,p=-271733879,h=-1732584194,m=271733878;for(t=0;t>5]>>>n%32&255);return t}function p(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n>5]|=(255&e.charCodeAt(n/8))<>>4&15)+r.charAt(15&n);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,n){return function(e,n){var t,r,o=p(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=d(o,8*e.length)),t=0;t<16;t+=1)i[t]=909522486^o[t],a[t]=1549556828^o[t];return r=d(i.concat(p(n)),512+8*n.length),k(d(a.concat(r),640))}(m(e),m(n))}function y(e,n,t){return n?t?L(n,e):h(L(n,e)):t?f(e):function(e){return h(f(e))}(e)}void 0===(r=function(){return y}.call(n,t,n,e))||(e.exports=r)}()},7049:(e,n,t)=>{const r=t(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:n}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:e}),Object.defineProperty(i[a],"labels",{value:n})}i.rgb.hsl=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,o=Math.min(n,t,r),i=Math.max(n,t,r),a=i-o;let l,s;i===o?l=0:n===i?l=(t-r)/a:t===i?l=2+(r-n)/a:r===i&&(l=4+(n-t)/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 n,t,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,n=d(a),t=d(l),r=d(s),a===c?o=r-t:l===c?o=1/3+n-r:s===c&&(o=2/3+t-n),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},i.rgb.hwb=function(e){const n=e[0],t=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(n,Math.min(t,r));return r=1-1/255*Math.max(n,Math.max(t,r)),[o,100*a,100*r]},i.rgb.cmyk=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,o=Math.min(1-n,1-t,1-r);return[100*((1-n-o)/(1-o)||0),100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const n=o[e];if(n)return n;let t,i=1/0;for(const o of Object.keys(r)){const n=r[o],s=(l=n,((a=e)[0]-l[0])**2+(a[1]-l[1])**2+(a[2]-l[2])**2);s.04045?((n+.055)/1.055)**2.4:n/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*n+.3576*t+.1805*r),100*(.2126*n+.7152*t+.0722*r),100*(.0193*n+.1192*t+.9505*r)]},i.rgb.lab=function(e){const n=i.rgb.xyz(e);let t=n[0],r=n[1],o=n[2];t/=95.047,r/=100,o/=108.883,t=t>.008856?t**(1/3):7.787*t+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*(t-r),200*(r-o)]},i.hsl.rgb=function(e){const n=e[0]/360,t=e[1]/100,r=e[2]/100;let o,i,a;if(0===t)return a=255*r,[a,a,a];o=r<.5?r*(1+t):r+t-r*t;const l=2*r-o,s=[0,0,0];for(let c=0;c<3;c++)i=n+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 n=e[0];let t=e[1]/100,r=e[2]/100,o=t;const i=Math.max(r,.01);r*=2,t*=r<=1?r:2-r,o*=i<=1?i:2-i;return[n,100*(0===r?2*o/(i+o):2*t/(r+t)),100*((r+t)/2)]},i.hsv.rgb=function(e){const n=e[0]/60,t=e[1]/100;let r=e[2]/100;const o=Math.floor(n)%6,i=n-Math.floor(n),a=255*r*(1-t),l=255*r*(1-t*i),s=255*r*(1-t*(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 n=e[0],t=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-t)*r;const l=(2-t)*o;return i=t*o,i/=l<=1?l:2-l,i=i||0,a/=2,[n,100*i,100*a]},i.hwb.rgb=function(e){const n=e[0]/360;let t=e[1]/100,r=e[2]/100;const o=t+r;let i;o>1&&(t/=o,r/=o);const a=Math.floor(6*n),l=1-r;i=6*n-a,0!==(1&a)&&(i=1-i);const s=t+i*(l-t);let c,u,d;switch(a){default:case 6:case 0:c=l,u=s,d=t;break;case 1:c=s,u=l,d=t;break;case 2:c=t,u=l,d=s;break;case 3:c=t,u=s,d=l;break;case 4:c=s,u=t,d=l;break;case 5:c=l,u=t,d=s}return[255*c,255*u,255*d]},i.cmyk.rgb=function(e){const n=e[0]/100,t=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},i.xyz.rgb=function(e){const n=e[0]/100,t=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*n+-1.5372*t+-.4986*r,i=-.9689*n+1.8758*t+.0415*r,a=.0557*n+-.204*t+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 n=e[0],t=e[1],r=e[2];n/=95.047,t/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*t-16,500*(n-t),200*(t-r)]},i.lab.xyz=function(e){let n,t,r;t=(e[0]+16)/116,n=e[1]/500+t,r=t-e[2]/200;const o=t**3,i=n**3,a=r**3;return t=o>.008856?o:(t-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,n*=95.047,t*=100,r*=108.883,[n,t,r]},i.lab.lch=function(e){const n=e[0],t=e[1],r=e[2];let o;o=360*Math.atan2(r,t)/2/Math.PI,o<0&&(o+=360);return[n,Math.sqrt(t*t+r*r),o]},i.lch.lab=function(e){const n=e[0],t=e[1],r=e[2]/360*2*Math.PI;return[n,t*Math.cos(r),t*Math.sin(r)]},i.rgb.ansi16=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const[t,r,o]=e;let a=null===n?i.rgb.hsv(e)[2]:n;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(t/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 n=e[0],t=e[1],r=e[2];if(n===t&&t===r)return n<8?16:n>248?231:Math.round((n-8)/247*24)+232;return 16+36*Math.round(n/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let n=e%10;if(0===n||7===n)return e>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const t=.5*(1+~~(e>50));return[(1&n)*t*255,(n>>1&1)*t*255,(n>>2&1)*t*255]},i.ansi256.rgb=function(e){if(e>=232){const n=10*(e-232)+8;return[n,n,n]}let n;e-=16;return[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){const n=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.hex.rgb=function(e){const n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let t=n[0];3===n[0].length&&(t=t.split("").map((e=>e+e)).join(""));const r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,t),r),i=Math.min(Math.min(n,t),r),a=o-i;let l,s;return l=a<1?i/(1-a):0,s=a<=0?0:o===n?(t-r)/a%6:o===t?2+(r-n)/a:4+(n-t)/a,s/=6,s%=1,[360*s,100*a,100*l]},i.hsl.hcg=function(e){const n=e[1]/100,t=e[2]/100,r=t<.5?2*n*t:2*n*(1-t);let o=0;return r<1&&(o=(t-.5*r)/(1-r)),[e[0],100*r,100*o]},i.hsv.hcg=function(e){const n=e[1]/100,t=e[2]/100,r=n*t;let o=0;return r<1&&(o=(t-r)/(1-r)),[e[0],100*r,100*o]},i.hcg.rgb=function(e){const n=e[0]/360,t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];const o=[0,0,0],i=n%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-t)*r,[255*(t*o[0]+s),255*(t*o[1]+s),255*(t*o[2]+s)]},i.hcg.hsv=function(e){const n=e[1]/100,t=n+e[2]/100*(1-n);let r=0;return t>0&&(r=n/t),[e[0],100*r,100*t]},i.hcg.hsl=function(e){const n=e[1]/100,t=e[2]/100*(1-n)+.5*n;let r=0;return t>0&&t<.5?r=n/(2*t):t>=.5&&t<1&&(r=n/(2*(1-t))),[e[0],100*r,100*t]},i.hcg.hwb=function(e){const n=e[1]/100,t=n+e[2]/100*(1-n);return[e[0],100*(t-n),100*(1-t)]},i.hwb.hcg=function(e){const n=e[1]/100,t=1-e[2]/100,r=t-n;let o=0;return r<1&&(o=(t-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 n=255&Math.round(e[0]/100*255),t=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},7287:(e,n,t)=>{const r=t(7049),o=t(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 n=o(e);Object.keys(n).forEach((t=>{const r=n[t];i[e][t]=function(e){const n=function(){for(var n=arguments.length,t=new Array(n),r=0;r1&&(t=o);const i=e(t);if("object"===typeof i)for(let e=i.length,a=0;a1&&(t=o),e(t))};return"conversion"in e&&(n.conversion=e.conversion),n}(r)}))})),e.exports=i},9672:(e,n,t)=>{const r=t(7049);function o(e){const n=function(){const e={},n=Object.keys(r);for(let t=n.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,n,t)=>{var r=t(7910),o=t(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,n,t){return Math.min(Math.max(n,e),t)}function u(e){var n=Math.round(e).toString(16).toUpperCase();return n.length<2?"0"+n:n}s.get=function(e){var n,t;switch(e.substring(0,3).toLowerCase()){case"hsl":n=s.get.hsl(e),t="hsl";break;case"hwb":n=s.get.hwb(e),t="hwb";break;default:n=s.get.rgb(e),t="rgb"}return n?{model:t,value:n}:null},s.get.rgb=function(e){if(!e)return null;var n,t,o,a=[0,0,0,1];if(n=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=n[2],n=n[1],t=0;t<3;t++){var l=2*t;a[t]=parseInt(n.slice(l,l+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(n=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(n=n[1])[3],t=0;t<3;t++)a[t]=parseInt(n[t]+n[t],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(t=0;t<3;t++)a[t]=parseInt(n[t+1],0);n[4]&&(n[5]?a[3]=.01*parseFloat(n[4]):a[3]=parseFloat(n[4]))}else{if(!(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=e.match(/^(\w+)$/))?"transparent"===n[1]?[0,0,0,0]:i.call(r,n[1])?((a=r[n[1]])[3]=1,a):null:null;for(t=0;t<3;t++)a[t]=Math.round(2.55*parseFloat(n[t+1]));n[4]&&(n[5]?a[3]=.01*parseFloat(n[4]):a[3]=parseFloat(n[4]))}for(t=0;t<3;t++)a[t]=c(a[t],0,255);return a[3]=c(a[3],0,1),a},s.get.hsl=function(e){if(!e)return null;var n=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(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,c(parseFloat(n[2]),0,100),c(parseFloat(n[3]),0,100),c(isNaN(t)?1:t,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var n=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(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,c(parseFloat(n[2]),0,100),c(parseFloat(n[3]),0,100),c(isNaN(t)?1:t,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),n=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+n+"%, "+t+"%, "+r+"%)":"rgba("+n+"%, "+t+"%, "+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),n="";return e.length>=4&&1!==e[3]&&(n=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+n+")"},s.to.keyword=function(e){return a[e.slice(0,3)]}},3861:(e,n,t)=>{const r=t(9194),o=t(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,n){if(!(this instanceof s))return new s(e,n);if(n&&n in i&&(n=null),n&&!(n in o))throw new Error("Unknown model: "+n);let t,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 n=r.get(e);if(null===n)throw new Error("Unable to parse color from string: "+e);this.model=n.model,c=o[this.model].channels,this.color=n.value.slice(0,c),this.valpha="number"===typeof n.value[c]?n.value[c]:1}else if(e.length>0){this.model=n||"rgb",c=o[this.model].channels;const t=Array.prototype.slice.call(e,0,c);this.color=k(t,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 n=Object.keys(e);"alpha"in e&&(n.splice(n.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=n.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(t=0;t(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 n=this.rgb().round().color;let t=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===t.length&&(t="0"+t),r.to.hex(n)+t},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,n=[];for(const[t,r]of e.entries()){const e=r/255;n[t]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(e){const n=this.luminosity(),t=e.luminosity();return n>t?(n+.05)/(t+.05):(t+.05)/(n+.05)},level(e){const n=this.contrast(e);return n>=7?"AAA":n>=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 n=0;n<3;n++)e.color[n]=255-e.color[n];return e},lighten(e){const n=this.hsl();return n.color[2]+=n.color[2]*e,n},darken(e){const n=this.hsl();return n.color[2]-=n.color[2]*e,n},saturate(e){const n=this.hsl();return n.color[1]+=n.color[1]*e,n},desaturate(e){const n=this.hsl();return n.color[1]-=n.color[1]*e,n},whiten(e){const n=this.hwb();return n.color[1]+=n.color[1]*e,n},blacken(e){const n=this.hwb();return n.color[2]+=n.color[2]*e,n},grayscale(){const e=this.rgb().color,n=.3*e[0]+.59*e[1]+.11*e[2];return s.rgb(n,n,n)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const n=this.hsl();let t=n.color[0];return t=(t+e)%360,t=t<0?360+t:t,n.color[0]=t,n},mix(e,n){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const t=e.rgb(),r=this.rgb(),o=void 0===n?.5:n,i=2*o-1,a=t.alpha()-r.alpha(),l=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,c=1-l;return s.rgb(l*t.red()+c*r.red(),l*t.green()+c*r.green(),l*t.blue()+c*r.blue(),t.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,n=new Array(e),t=0;t0?new s(n,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 n=arguments.length,t=new Array(n),r=0;r{"use strict";var n=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)};var t="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,n){return!1!==n.clone&&n.isMergeableObject(e)?s((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function o(e,n,t){return e.concat(n).map((function(e){return r(e,t)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(n){return Object.propertyIsEnumerable.call(e,n)})):[]}(e))}function a(e,n){try{return n in e}catch(t){return!1}}function l(e,n,t){var o={};return t.isMergeableObject(e)&&i(e).forEach((function(n){o[n]=r(e[n],t)})),i(n).forEach((function(i){(function(e,n){return a(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,i)||(a(e,i)&&t.isMergeableObject(n[i])?o[i]=function(e,n){if(!n.customMerge)return s;var t=n.customMerge(e);return"function"===typeof t?t:s}(i,t)(e[i],n[i],t):o[i]=r(n[i],t))})),o}function s(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||n,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(t);return a===Array.isArray(e)?a?i.arrayMerge(e,t,i):l(e,t,i):r(t,i)}s.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,t){return s(e,t,n)}),{})};var c=s;e.exports=c},8703:function(e){e.exports=function(){"use strict";function e(n){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(n)}function n(e,t){return n=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},n(e,t)}function t(){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=t()?Reflect.construct:function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(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,n){if(e){if("string"===typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?t-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),ne=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=f(/^html$/i),re=function(){return"undefined"===typeof window?null:window},oe=function(n,t){if("object"!==e(n)||"function"!==typeof n.createPolicy)return null;var r=null,o="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(o)&&(r=t.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return n.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 n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),t=function(e){return ie(e)};if(t.version="2.4.7",t.removed=[],!n||!n.document||9!==n.document.nodeType)return t.isSupported=!1,t;var r=n.document,i=n.document,a=n.DocumentFragment,l=n.HTMLTemplateElement,s=n.Node,c=n.Element,u=n.NodeFilter,d=n.NamedNodeMap,k=void 0===d?n.NamedNodeMap||n.MozNamedAttrMap:d,p=n.HTMLFormElement,h=n.DOMParser,f=n.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(On){}var me={};t.isSupported="function"===typeof Z&&ce&&void 0!==ce.createHTMLDocument&&9!==he;var fe,Le,ye=Q,Ee=K,xe=$,ge=Y,je=J,We=ee,ve=ne,be=X,Me=null,we=O({},[].concat(o(C),o(N),o(R),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,Ne=!1,Re=!1,Te=!1,Ie=!1,De=!1,ze=!1,Ue=!0,qe=!1,Be="user-content-",Ge=!0,Qe=!1,Ke={},$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"]),en=null,nn=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tn="http://www.w3.org/1998/Math/MathML",rn="http://www.w3.org/2000/svg",on="http://www.w3.org/1999/xhtml",an=on,ln=!1,sn=null,cn=O({},[tn,rn,on],b),un=["application/xhtml+xml","text/html"],dn="text/html",kn=null,pn=i.createElement("form"),hn=function(e){return e instanceof RegExp||e instanceof Function},mn=function(n){kn&&kn===n||(n&&"object"===e(n)||(n={}),n=_(n),fe=fe=-1===un.indexOf(n.PARSER_MEDIA_TYPE)?dn:n.PARSER_MEDIA_TYPE,Le="application/xhtml+xml"===fe?b:v,Me="ALLOWED_TAGS"in n?O({},n.ALLOWED_TAGS,Le):we,Ae="ALLOWED_ATTR"in n?O({},n.ALLOWED_ATTR,Le):Fe,sn="ALLOWED_NAMESPACES"in n?O({},n.ALLOWED_NAMESPACES,b):cn,en="ADD_URI_SAFE_ATTR"in n?O(_(nn),n.ADD_URI_SAFE_ATTR,Le):nn,Je="ADD_DATA_URI_TAGS"in n?O(_(Xe),n.ADD_DATA_URI_TAGS,Le):Xe,$e="FORBID_CONTENTS"in n?O({},n.FORBID_CONTENTS,Le):Ye,Ve="FORBID_TAGS"in n?O({},n.FORBID_TAGS,Le):{},Ze="FORBID_ATTR"in n?O({},n.FORBID_ATTR,Le):{},Ke="USE_PROFILES"in n&&n.USE_PROFILES,Se=!1!==n.ALLOW_ARIA_ATTR,Oe=!1!==n.ALLOW_DATA_ATTR,_e=n.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==n.ALLOW_SELF_CLOSE_IN_ATTR,Ce=n.SAFE_FOR_TEMPLATES||!1,Ne=n.WHOLE_DOCUMENT||!1,Ie=n.RETURN_DOM||!1,De=n.RETURN_DOM_FRAGMENT||!1,ze=n.RETURN_TRUSTED_TYPE||!1,Te=n.FORCE_BODY||!1,Ue=!1!==n.SANITIZE_DOM,qe=n.SANITIZE_NAMED_PROPS||!1,Ge=!1!==n.KEEP_CONTENT,Qe=n.IN_PLACE||!1,be=n.ALLOWED_URI_REGEXP||be,an=n.NAMESPACE||on,He=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&hn(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&hn(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(He.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(Oe=!1),De&&(Ie=!0),Ke&&(Me=O({},o(z)),Ae=[],!0===Ke.html&&(O(Me,C),O(Ae,U)),!0===Ke.svg&&(O(Me,N),O(Ae,q),O(Ae,G)),!0===Ke.svgFilters&&(O(Me,R),O(Ae,q),O(Ae,G)),!0===Ke.mathMl&&(O(Me,I),O(Ae,B),O(Ae,G))),n.ADD_TAGS&&(Me===we&&(Me=_(Me)),O(Me,n.ADD_TAGS,Le)),n.ADD_ATTR&&(Ae===Fe&&(Ae=_(Ae)),O(Ae,n.ADD_ATTR,Le)),n.ADD_URI_SAFE_ATTR&&O(en,n.ADD_URI_SAFE_ATTR,Le),n.FORBID_CONTENTS&&($e===Ye&&($e=_($e)),O($e,n.FORBID_CONTENTS,Le)),Ge&&(Me["#text"]=!0),Ne&&O(Me,["html","head","body"]),Me.table&&(O(Me,["tbody"]),delete Ve.tbody),m&&m(n),kn=n)},fn=O({},["mi","mo","mn","ms","mtext"]),Ln=O({},["foreignobject","desc","title","annotation-xml"]),yn=O({},["title","style","font","a","script"]),En=O({},N);O(En,R),O(En,T);var xn=O({},I);O(xn,D);var gn=function(e){var n=Z(e);n&&n.tagName||(n={namespaceURI:an,tagName:"template"});var t=v(e.tagName),r=v(n.tagName);return!!sn[e.namespaceURI]&&(e.namespaceURI===rn?n.namespaceURI===on?"svg"===t:n.namespaceURI===tn?"svg"===t&&("annotation-xml"===r||fn[r]):Boolean(En[t]):e.namespaceURI===tn?n.namespaceURI===on?"math"===t:n.namespaceURI===rn?"math"===t&&Ln[r]:Boolean(xn[t]):e.namespaceURI===on?!(n.namespaceURI===rn&&!Ln[r])&&!(n.namespaceURI===tn&&!fn[r])&&!xn[t]&&(yn[t]||!En[t]):!("application/xhtml+xml"!==fe||!sn[e.namespaceURI]))},jn=function(e){W(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(On){try{e.outerHTML=le}catch(On){e.remove()}}},Wn=function(e,n){try{W(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(On){W(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Ae[e])if(Ie||De)try{jn(n)}catch(On){}else try{n.setAttribute(e,"")}catch(On){}},vn=function(e){var n,t;if(Te)e=""+e;else{var r=M(e,/^[\r\n\t ]+/);t=r&&r[0]}"application/xhtml+xml"===fe&&an===on&&(e=''+e+"");var o=ae?ae.createHTML(e):e;if(an===on)try{n=(new h).parseFromString(o,fe)}catch(On){}if(!n||!n.documentElement){n=ce.createDocument(an,"template",null);try{n.documentElement.innerHTML=ln?le:o}catch(On){}}var a=n.body||n.documentElement;return e&&t&&a.insertBefore(i.createTextNode(t),a.childNodes[0]||null),an===on?ke.call(n,Ne?"html":"body")[0]:Ne?n.documentElement:a},bn=function(e){return ue.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Mn=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)},wn=function(n){return"object"===e(s)?n instanceof s:n&&"object"===e(n)&&"number"===typeof n.nodeType&&"string"===typeof n.nodeName},An=function(e,n,r){me[e]&&g(me[e],(function(e){e.call(t,n,r,kn)}))},Fn=function(e){var n;if(An("beforeSanitizeElements",e,null),Mn(e))return jn(e),!0;if(H(/[\u0080-\uFFFF]/,e.nodeName))return jn(e),!0;var r=Le(e.nodeName);if(An("uponSanitizeElement",e,{tagName:r,allowedTags:Me}),e.hasChildNodes()&&!wn(e.firstElementChild)&&(!wn(e.content)||!wn(e.content.firstElementChild))&&H(/<[/\w]/g,e.innerHTML)&&H(/<[/\w]/g,e.textContent))return jn(e),!0;if("select"===r&&H(/