/*! For license information please see 3~ca1be7791510d47437b1.js.LICENSE.txt */ (self.webpackChunkhybrid_client=self.webpackChunkhybrid_client||[]).push([[3],{"./node_modules/@stringa/react-rangeslider/lib/Rangeslider.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;rs?s:o+a,l&&l(u,e);break;case 37:case 40:u=o-a0){x=x.sort((function(e,t){return l?e-t:t-e}));var k=!0,E=!1,j=void 0;try{for(var O,A=x[Symbol.iterator]();!(k=(O=A.next()).done);k=!0){var T=O.value,P=this.getPositionFromValue(T),R=d({},v,this.coordinates(P).label+"px");C.push(s.default.createElement("li",{key:T,className:(0,o.default)("rangeslider__label-item"),"data-value":T,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:R},this.props.labels[T]))}}catch(e){E=!0,j=e}finally{try{!k&&A.return&&A.return()}finally{if(E)throw j}}}return s.default.createElement("div",{ref:function(t){e.slider=t},className:(0,o.default)("rangeslider","rangeslider-"+n,{"rangeslider-reverse":l},i),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,"aria-valuemin":c,"aria-valuemax":h,"aria-valuenow":r,"aria-orientation":n},s.default.createElement("div",{className:"rangeslider__fill",style:w}),s.default.createElement("div",{ref:function(t){e.handle=t},className:"rangeslider__handle",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:_,tabIndex:0},S?s.default.createElement("div",{ref:function(t){e.tooltip=t},className:"rangeslider__handle-tooltip"},s.default.createElement("span",null,this.handleFormat(r))):null,s.default.createElement("div",{className:"rangeslider__handle-label"},p)),u?this.renderLabels(C):null)}}]),t}(i.Component);h.propTypes={min:a.default.number,max:a.default.number,step:a.default.number,value:a.default.number,orientation:a.default.string,tooltip:a.default.bool,reverse:a.default.bool,labels:a.default.object,handleLabel:a.default.string,format:a.default.func,onChangeStart:a.default.func,onChange:a.default.func,onChangeComplete:a.default.func},h.defaultProps={min:0,max:100,step:1,value:0,orientation:"horizontal",tooltip:!0,reverse:!1,labels:{},handleLabel:""},t.default=h},"./node_modules/@stringa/react-rangeslider/lib/index.js":(e,t,r)=>{"use strict";var n,o=r("./node_modules/@stringa/react-rangeslider/lib/Rangeslider.js"),i=(n=o)&&n.__esModule?n:{default:n};t.A=i.default},"./node_modules/@stringa/react-rangeslider/lib/utils.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},t.clamp=function(e,t,r){return Math.min(Math.max(e,t),r)}},"./node_modules/@video/events-typed/index.js":(e,t,r)=>{e.exports={EventEmitter:r("./node_modules/events/events.js")}},"./node_modules/@video/log-client/index.js":(e,t,r)=>{"use strict";e.exports=r("./node_modules/@video/log-client/lib/index.js")},"./node_modules/@video/log-client/lib/index.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerCore=void 0;const n=r("./node_modules/tslib/tslib.es6.mjs");n.__exportStar(r("./node_modules/@video/log-node/index.js"),t);var o=r("./node_modules/@video/log-client/lib/logger-core.js");Object.defineProperty(t,"LoggerCore",{enumerable:!0,get:function(){return o.LoggerCore}}),n.__exportStar(r("./node_modules/@video/log-client/lib/logger-http-writer.js"),t)},"./node_modules/@video/log-client/lib/logger-core.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerCore=void 0;const n=r("./node_modules/tslib/tslib.es6.mjs"),o=r("./node_modules/@video/log-node/index.js"),i=n.__importDefault(r("./node_modules/debug/src/browser.js")),s=r("./node_modules/events/events.js"),a=r("./node_modules/@video/log-client/lib/logger-http-writer.js"),l=r("./node_modules/@video/log-client/lib/utils/colors.js"),u=e=>{},c=new WeakMap;t.LoggerCore=class{constructor(e){this.debug=u,this.deprecated=u,this.error=u,this.fatal=u,this.info=u,this.local=u,this.network=u,this.notice=u,this.timing=u,this.trace=u,this.warn=u,this.packageContext={meta:{}},this.messageContext={},this.attachedObjects=new Set,this.emitter=new s.EventEmitter,this.printer={},this.lastLogged={},this.name=e,this.packageContext.meta={package:this.name},this.httpWriter=new a.LoggerGlobal,this.httpWriter.registerPackage(this),this.proxyingToEmitter=!1,this.debugLogger=(0,i.default)(this.name),o.LEVELS.forEach(e=>{this[e]=this.log.bind(this,e),this.printer[e]=this.printLog.bind(this,e)})}flush(){this.httpWriter.send()}attachObject(e){return e.on("disposed",()=>{this.attachedObjects.delete(e)}),this.attachedObjects.add(e),this}setMessageAggregate(e,t){return void 0===t?this.removeMessageAggregate(e):(null==this.messageContext.aggregates?this.messageContext.aggregates={[e]:t}:this.messageContext.aggregates[e]=t,this)}appendChain(e){var t,r;let n=0;c.has(e)&&(n=c.get(e)+1);const o=null!==(r=null===(t=this.messageContext.aggregates)||void 0===t?void 0:t.chain)&&void 0!==r?r:"",i=""===o?`${e.displayName}#${n}`:`${o}:${e.displayName}#${n}`;return this.setMessageAggregate("chain",i),c.set(e,n),this}removeMessageAggregate(e){return null!=this.messageContext.aggregates&&null!=this.messageContext.aggregates[e]&&(delete this.messageContext.aggregates[e],0===Object.keys(this.messageContext.aggregates).length&&delete this.messageContext.aggregates),this}clearMessageAggregates(){return this.messageContext={},this}setLoggerAggregate(e,t){return null==this.packageContext.aggregates?this.packageContext.aggregates={[e]:t}:this.packageContext.aggregates[e]=t,this}setLoggerMeta(e,t){return null==this.packageContext.meta?this.packageContext.meta={[e]:t,package:this.name}:this.packageContext.meta[e]=t,this}getLoggerMeta(e){var t;if((null===(t=this.packageContext)||void 0===t?void 0:t.meta)&&null!=this.packageContext.meta[e])return this.packageContext.meta[e]}log(e,t,r){var n,o;null===(o=null===(n=this.printer)||void 0===n?void 0:n[e])||void 0===o||o.call(n,t,r,this.messageContext.aggregates);const[i,s]=this.handleLogData(t,r,!0),a=Object.assign({message:""+i,level:"trace"===e?"debug":e,time:(new Date).toISOString()},s);this.httpWriter.add(a,this),this.proxyingToEmitter&&this.emitter.emit(e,t,s)}throttledLog(e,t,r,n){var o;(null==this.lastLogged[r]||Date.now()-(null!==(o=this.lastLogged[r])&&void 0!==o?o:0)>t)&&(this.lastLogged[r]=Date.now(),this.log(e,r,n))}handleLogData(e,t,r=!1){var i,s,a;let l="";null!=t||(t={}),e instanceof Error?(l=e.message,(0,o.isSerializableObject)(e)?t.err=e:t.err={message:e.message,name:e.name,stack:e.stack}):l=e;let u={aggregates:{}};try{!function e(t,...r){for(const i of r){if("object"!=typeof i||Array.isArray(i)){console.error("Invalid logger data:",i);continue}if((0,o.isSerializableObject)(i)){e(t,i.toJSON());continue}const{aggregates:r}=i,s=n.__rest(i,["aggregates"]);if("object"==typeof r)for(const[e,n]of Object.entries(r))t.aggregates[e]=n;for(const[e,r]of Object.entries(s))t[e]=null==r?r:JSON.parse(JSON.stringify(r))}}(u,{aggregates:this.packageContext.aggregates},{aggregates:this.messageContext.aggregates},t,...this.attachedObjects)}catch(t){const n=`logging data were dropped because it's not serializable; log message: ${e}; error: ${t};`;r&&this.printLog("error",n),u={aggregates:{chain:null===(i=u.aggregates)||void 0===i?void 0:i.chain,contextId:null===(s=u.aggregates)||void 0===s?void 0:s.contextId,instanceId:null===(a=u.aggregates)||void 0===a?void 0:a.instanceId},__logging_error__:n}}return[l,u]}printLog(e,t,r){var n,o,i,s,a,u,c,d,f,h,p;const[m,g]=this.handleLogData(t,r);switch(e){case"warn":case"error":"undefined"!=typeof navigator&&"ReactNative"===navigator.product?console[e](`${null!==(o=null===(n=g.aggregates)||void 0===n?void 0:n.chain)&&void 0!==o?o:""} ${m}`,g):"undefined"!=typeof window&&"function"==typeof(null===(i=window.console)||void 0===i?void 0:i.error)?window.console[e](`%c ${null!==(a=null===(s=g.aggregates)||void 0===s?void 0:s.chain)&&void 0!==a?a:""} ${m}`,l.browserStyles[e],[g]):this.debugLogger(`%c ${null!==(c=null===(u=g.aggregates)||void 0===u?void 0:u.chain)&&void 0!==c?c:""} ${m}`,l.browserStyles[e],[g]);break;default:"undefined"!=typeof navigator&&"ReactNative"===navigator.product?console.log(`${null!==(f=null===(d=g.aggregates)||void 0===d?void 0:d.chain)&&void 0!==f?f:""} ${m}`,g):this.debugLogger(`%c ${null!==(p=null===(h=g.aggregates)||void 0===h?void 0:h.chain)&&void 0!==p?p:""} ${m}`,l.browserStyles[e],[g])}}proxyToEmitter(e,t){for(const r of t)this.emitter.on(r,(t,n)=>{e.emit(r,t,n)});this.proxyingToEmitter=!0}extend(e){var t,r,n;if(null!=(null===(t=null==e?void 0:e.messageContext)||void 0===t?void 0:t.aggregates))for(const[t,r]of Object.entries(e.messageContext.aggregates))this.setMessageAggregate(t,r);if(null!=(null===(r=null==e?void 0:e.packageContext)||void 0===r?void 0:r.aggregates))for(const[t,r]of Object.entries(e.packageContext.aggregates))this.setLoggerAggregate(t,r);if(null!=(null===(n=null==e?void 0:e.packageContext)||void 0===n?void 0:n.meta))for(const[t,r]of Object.entries(e.packageContext.meta))this.setLoggerMeta(t,r);return this}destroy(){this.flush(),this.httpWriter.removePackage(this)}}},"./node_modules/@video/log-client/lib/logger-http-writer.js":(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerGlobal=void 0;const o=r("./node_modules/tslib/tslib.es6.mjs"),i=r("./node_modules/@video/events-typed/index.js"),s=r("./node_modules/@video/log-node/index.js"),a=o.__importDefault(r("./node_modules/lodash.throttle/index.js")),l=o.__importDefault(r("./node_modules/@video/log-client/lib/package-json.js")),u=o.__importDefault(r("./node_modules/@video/log-client/lib/utils/byteLength.js")),c=r("./node_modules/@video/log-client/lib/utils/supportedLevels.js"),d=r("./node_modules/@video/log-client/lib/utils/uuid.js"),f=null!==(n=globalThis)&&void 0!==n?n:function(){return this}(),h={maxRequestSize:1048576,level:"warn",limit:500,interval:3e4};class p extends i.EventEmitter{constructor(){if(super(),this.options=h,this.storage=[],this.packageContextStorage=[],this.globalContext={meta:{userAgent:"undefined"!=typeof navigator?navigator.userAgent:"unknown",referrer:"undefined"!=typeof document?document.referrer:"unknown",source:"client",logId:(0,d.uuidv4)(),loggerVer:l.default.version}},this.watchTimeout=null,this.loggers=[],this.online=!0,this.throttleSend=(0,a.default)(this.send,5e3),f.LivelyHttpWriterV4)return f.LivelyHttpWriterV4;f.LivelyHttpWriterV4=this,null!=f.addEventListener&&(f.addEventListener("unload",()=>this.send()),f.addEventListener("online",()=>{this.online=!0,this.send()}),r.g.addEventListener("offline",()=>{this.online=!1}))}static setOptions(e){(new p).setOptions(e)}setOptions(e){null!=e.host&&(this.options.host=e.host),null!=e.level&&(this.options.level=e.level),null!=e.maxRequestSize&&(this.options.maxRequestSize=e.maxRequestSize),null!=e.limit&&(this.options.limit=e.limit),null!=e.interval&&(this.options.interval=e.interval),this.resetTimeout()}static setGlobalAggregate(e,t){(new p).setGlobalAggregate(e,t)}setGlobalAggregate(e,t){null==this.globalContext.aggregates?this.globalContext.aggregates={[e]:t}:this.globalContext.aggregates[e]=t}static removeGlobalAggregate(e){(new p).removeGlobalAggregate(e)}removeGlobalAggregate(e){null!=this.globalContext.aggregates&&null!=this.globalContext.aggregates[e]&&(delete this.globalContext.aggregates[e],0===Object.keys(this.globalContext.aggregates).length&&delete this.globalContext.aggregates)}static clearGlobalAggregates(){(new p).clearGlobalAggregates()}clearGlobalAggregates(){this.globalContext.aggregates={}}static setGlobalMeta(e,t){(new p).setGlobalMeta(e,t)}setGlobalMeta(e,t){null==this.globalContext.meta?this.globalContext.meta={userAgent:"undefined"!=typeof navigator?navigator.userAgent:"unknown",referrer:"undefined"!=typeof document?document.referrer:"unknown",source:"client",logId:(0,d.uuidv4)(),loggerVer:l.default.version,[e]:t}:this.globalContext.meta[e]=t}static removeGlobalMeta(e){(new p).removeGlobalMeta(e)}removeGlobalMeta(e){null!=this.globalContext.meta&&null!=this.globalContext.meta[e]&&delete this.globalContext.meta[e]}resetTimeout(){this.options.interval&&(null!=this.watchTimeout&&("undefined"!=typeof window?window.clearTimeout(this.watchTimeout):clearTimeout(this.watchTimeout)),null!=this.send&&("undefined"!=typeof window?this.watchTimeout=window.setTimeout(this.send.bind(this),this.options.interval):this.watchTimeout=setTimeout(this.send.bind(this),this.options.interval)))}registerPackage(e){this.loggers.push(e)}removePackage(e){const t=this.loggers.indexOf(e);t>-1&&this.loggers.splice(t,1),this.loggers.push(e)}add(e,t){if((0,c.meetsLevel)(e.level,this.options.level))if(this.storage.push(e),null!=this.options.host&&this.online){if(null!=t){-1===this.packageContextStorage.indexOf(t.packageContext)&&this.packageContextStorage.push(t.packageContext)}(0,c.meetsLevel)(e.level,"error")&&this.throttleSend()}else this.checkStorageLimit()}send(){if(0===this.storage.length)return void this.resetTimeout();if(null==this.options.host)return this.checkStorageLimit(),void this.resetTimeout();const e=this.storage.splice(0,this.options.limit),t={},r={};this.packageContextStorage.forEach(e=>{null!=e.aggregates&&Object.keys(e.aggregates).forEach(r=>{var n;const o=null===(n=e.aggregates)||void 0===n?void 0:n[r];null!=o&&(t[r]=o)}),null!=e.meta&&s.PackageMetaKeys.forEach(t=>{var n;null!=(null===(n=e.meta)||void 0===n?void 0:n[t])&&(r[t]=e.meta[t])})});const n={aggregates:t,meta:r};this.packageContextStorage.splice(0,-1*this.packageContextStorage.length);const o={logs:e,sendTime:(new Date).toISOString(),context:{packageContexts:n,globalContext:this.globalContext}};let i;try{i=JSON.stringify(o)}catch(e){return this.add({level:"error",message:"Failed to stringify in logger",error:""+e,time:(new Date).toISOString()}),void this.resetTimeout()}if((0,u.default)(i)>this.options.maxRequestSize)return this.add({level:"error",message:`Body exceeds maxRequestSize. Dropped ${e.length} logs.`,time:(new Date).toISOString()}),void this.resetTimeout();p.fetch(this.options.host+"/client-logs/v4",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:i}).then(e=>{if(!e.ok)throw new TypeError(e.status.toString());return this.resetTimeout(),e}).catch(e=>{this.add({level:"network",message:"Network failure.",error:""+e,time:(new Date).toISOString()}),this.resetTimeout()})}checkStorageLimit(){this.storage.length>this.options.limit&&this.storage.slice(-1*this.options.limit)}}t.LoggerGlobal=p,p.fetch="undefined"!=typeof window?window.fetch.bind(window):()=>Promise.resolve(new Response)},"./node_modules/@video/log-client/lib/package-json.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"@video/log-client",version:"5.0.2"}},"./node_modules/@video/log-client/lib/source.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerGlobal=void 0;const n=r("./node_modules/@video/log-client/lib/logger-core.js"),o=r("./node_modules/@video/log-client/lib/logger-http-writer.js");Object.defineProperty(t,"LoggerGlobal",{enumerable:!0,get:function(){return o.LoggerGlobal}}),t.default=n.LoggerCore},"./node_modules/@video/log-client/lib/utils/byteLength.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.length;for(let r=e.length-1;r>=0;r-=1){const n=e.charCodeAt(r);n>127&&n<=2047?t+=1:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&(r-=1)}return t}},"./node_modules/@video/log-client/lib/utils/colors.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ttySyles=t.browserStyles=void 0,t.browserStyles={trace:"color: rgba(169,184,186,0.6)",debug:"color: #a9b8ba",network:"color: #a9b8ba",timing:"color: #a9b8ba",local:"color: #a9b8ba",info:"",warn:"color: #c0a044",notice:"color: #c0a044",deprecated:"color: #c0a044",error:"color: #f44336",fatal:"color: #f44336"},t.ttySyles={trace:"",debug:"",network:"",timing:"",local:"",info:"",warn:"",notice:"",deprecated:"",error:"",fatal:""}},"./node_modules/@video/log-client/lib/utils/supportedLevels.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedLevels=t.meetsLevel=t.supportsLevel=void 0;const r={fatal:0,error:0,warn:1,notice:1,deprecated:1,info:2,local:3,debug:3,timing:3,network:3,trace:3};function n(e){return void 0!==r[e]}t.supportedLevels=r,t.supportsLevel=n,t.meetsLevel=function(e,t){return!(!n(e)||!n(t))&&r[e]<=r[t]}},"./node_modules/@video/log-client/lib/utils/uuid.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=void 0,t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},"./node_modules/@video/log-node/index.js":(e,t,r)=>{"use strict";e.exports=r("./node_modules/@video/log-node/lib/index.js")},"./node_modules/@video/log-node/lib/index.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PackageMetaKeys=t.LEVELS=t.isSerializableObject=t.isPlainRecord=t.GlobalMetaKeys=t.extractAggregates=void 0;var n=r("./node_modules/@video/log-node/lib/interface.js");Object.defineProperty(t,"extractAggregates",{enumerable:!0,get:function(){return n.extractAggregates}}),Object.defineProperty(t,"GlobalMetaKeys",{enumerable:!0,get:function(){return n.GlobalMetaKeys}}),Object.defineProperty(t,"isPlainRecord",{enumerable:!0,get:function(){return n.isPlainRecord}}),Object.defineProperty(t,"isSerializableObject",{enumerable:!0,get:function(){return n.isSerializableObject}}),Object.defineProperty(t,"LEVELS",{enumerable:!0,get:function(){return n.LEVELS}}),Object.defineProperty(t,"PackageMetaKeys",{enumerable:!0,get:function(){return n.PackageMetaKeys}})},"./node_modules/@video/log-node/lib/interface.js":(e,t)=>{"use strict";function r(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)&&"toJSON"in e&&"function"==typeof e.toJSON}function n(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)&&!r(e)&&!Object.values(e).some(e=>null!=e&&!["number","string","boolean"].includes(typeof e))}Object.defineProperty(t,"__esModule",{value:!0}),t.extractAggregates=t.isPlainRecord=t.isSerializableObject=t.PackageMetaKeys=t.GlobalMetaKeys=t.LEVELS=void 0,t.LEVELS=["trace","debug","network","timing","local","info","warn","notice","deprecated","error","fatal"],t.GlobalMetaKeys=["source","logId","userAgent","referrer","loggerVer"],t.PackageMetaKeys=["package","component","service","release","chain","client","contextId","instanceId","commitHash"],t.isSerializableObject=r,t.isPlainRecord=n,t.extractAggregates=function(e,...t){if(!r(e))return{};const o=e.toJSON();if(null==o||"object"!=typeof o||Array.isArray(o)||r(o))return{};const i=o.aggregates;if(!n(i))return{};for(const e of t)delete i[e];return i}},"./node_modules/@video/state-flow/lib/group.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;const n=r("./node_modules/@video/state-flow/lib/result.js"),o=r("./node_modules/@video/state-flow/lib/state-type.js"),i=r("./node_modules/@video/state-flow/lib/symbols.js");t.Group=class{constructor(e){this.name=e,this.registeredStates=[],this.registeredHandlers={}}registerState(e,t){const r=function(t){return new o.StateInstance(r,e,t)};return r.is=function(t){return t instanceof o.StateInstance&&t[i.stateNameSym]===e},r.stateName=e,r.groupName=this.name,this.registeredStates.push(r),this.registeredHandlers[e]=t,r}bootstrap(e){return this.initFactory=e,this}accepts(e,t){return t in this.registeredHandlers[e[i.stateNameSym]]}handle(e,t,r){const s=e[this.name],a=this.registeredHandlers[s[i.stateNameSym]][t];if(null==a)return n.Result.ignore(`Signal ${String(t)} is not handled in state ${s[i.stateNameSym]}`);try{const t=a(e,r);return t instanceof n.Result?t:t instanceof o.StateInstance?n.Result.ok(t):n.Result.ok(o.StateInstance.clone(s,t))}catch(e){return n.Result.error(e)}}}},"./node_modules/@video/state-flow/lib/index.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneState=t.isTransitioning=t.getStateName=t.MergedError=t.StateFlow=t.SignalType=t.createSignal=t.ResultKind=t.Result=void 0;const n=r("./node_modules/tslib/tslib.es6.mjs").__importDefault(r("./node_modules/core-js-pure/actual/symbol/dispose.js"));void 0===Symbol.dispose&&Object.defineProperty(Symbol,"dispose",{value:n.default});var o=r("./node_modules/@video/state-flow/lib/result.js");Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}}),Object.defineProperty(t,"ResultKind",{enumerable:!0,get:function(){return o.ResultKind}});var i=r("./node_modules/@video/state-flow/lib/signals.js");Object.defineProperty(t,"createSignal",{enumerable:!0,get:function(){return i.createSignal}}),Object.defineProperty(t,"SignalType",{enumerable:!0,get:function(){return i.SignalType}});var s=r("./node_modules/@video/state-flow/lib/state-flow.js");Object.defineProperty(t,"StateFlow",{enumerable:!0,get:function(){return s.StateFlow}});var a=r("./node_modules/@video/state-flow/lib/utils.js");Object.defineProperty(t,"MergedError",{enumerable:!0,get:function(){return a.MergedError}}),Object.defineProperty(t,"getStateName",{enumerable:!0,get:function(){return a.getStateName}}),Object.defineProperty(t,"isTransitioning",{enumerable:!0,get:function(){return a.isTransitioning}}),Object.defineProperty(t,"cloneState",{enumerable:!0,get:function(){return a.cloneState}})},"./node_modules/@video/state-flow/lib/result.js":(e,t,r)=>{"use strict";var n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.Result=t.ResultKind=void 0;const s=r("./node_modules/tslib/tslib.es6.mjs"),a=r("./node_modules/@video/state-flow/lib/utils.js");var l;!function(e){e[e.OK=0]="OK",e[e.Ignored=1]="Ignored",e[e.InTransition=2]="InTransition",e[e.Rejected=3]="Rejected",e[e.Error=4]="Error"}(l||(t.ResultKind=l={}));class u{constructor(e,t){this.kind=e,this.data=t,n.set(this,[]),o.set(this,null),i.set(this,null),e===l.InTransition&&s.__classPrivateFieldGet(this,n,"f").push(t),Object.freeze(this)}get ok(){return this.kind===l.OK}get hasError(){return this.kind===l.Error||this.kind===l.Rejected}get ready(){return this.readyExecutors.then(e=>new Promise(t=>setTimeout(()=>t(e),0)))}get error(){return this.data instanceof Error?this.data:null}get message(){return"string"==typeof this.data?this.data:null}get readyExecutors(){return null==s.__classPrivateFieldGet(this,o,"f")&&(this.kind===l.InTransition?s.__classPrivateFieldSet(this,o,Promise.all(s.__classPrivateFieldGet(this,n,"f")).then(e=>e.reduce((e,t)=>e.merge(t),u.ignore())),"f"):s.__classPrivateFieldSet(this,o,Promise.resolve(this),"f")),s.__classPrivateFieldGet(this,o,"f")}static ignore(e){return new u(l.Ignored,e)}static ok(e){return new u(l.OK,e)}static transition(e,t=15e3){return new u(l.InTransition,(0,a.withTimeout)(e.catch(e=>u.error(e)),t))}static reject(e){return new u(l.Rejected,e)}static error(e){return e instanceof Error?new u(l.Error,e):new u(l.Error,new Error(String(e)))}expect(...e){if(this.kind===l.InTransition&&!e.includes(l.InTransition))throw new Error("Result is in transition state but expected synchronous result");if(!e.includes(this.kind))throw new Error(function(e,t,r,n,o){let i=`${e.map(e=>l[e]).join(" or ")} but got ${l[t]}`;return null!=r&&(i+="; "+r),null!=n&&(i+="; "+n),i=null!=o?`[state-flow] Signal '${o}' expected ${i}`:"[state-flow] Expected "+i,i}(e,this.kind,this.error,this.message,String(s.__classPrivateFieldGet(this,i,"f"))));return this}withContext(e){return s.__classPrivateFieldSet(this,i,e,"f"),this}merge(e){var t,r;if(this.kind===e.kind)switch(this.kind){case l.Ignored:return u.ignore((0,a.mergeStrings)(this.data,e.data)).withContext(s.__classPrivateFieldGet(this,i,"f"));case l.OK:if(null!=this.data||null!=e.data)throw new Error("Cannot merge handled state results with data");return this;case l.InTransition:return s.__classPrivateFieldGet(this,n,"f").push(...s.__classPrivateFieldGet(e,n,"f")),this;case l.Rejected:return this;case l.Error:return u.error(new a.MergedError([this.data,e.data])).withContext(s.__classPrivateFieldGet(this,i,"f"))}const o=(e,t)=>{switch(e.kind){case l.Ignored:return t;case l.InTransition:return s.__classPrivateFieldGet(e,n,"f").push(t.ready),e;case l.Rejected:case l.Error:return e}return null};return(null!==(r=null!==(t=o(this,e))&&void 0!==t?t:o(e,this))&&void 0!==r?r:this).withContext(s.__classPrivateFieldGet(this,i,"f"))}[(n=new WeakMap,o=new WeakMap,i=new WeakMap,Symbol.toStringTag)](){return`SignalResult(${l[this.kind]})`}[Symbol.toPrimitive](){return this.kind===l.Error?`${this.error}${null!=this.message?"; "+this.message:""}`:`${l[this.kind]}${null!=this.message?": "+this.message:""}`}}t.Result=u},"./node_modules/@video/state-flow/lib/signals.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignalType=t.createSignal=void 0,t.createSignal=function(e){return new r(e)};class r{constructor(e){this.name=e}}t.SignalType=r},"./node_modules/@video/state-flow/lib/state-flow.js":(e,t,r)=>{"use strict";var n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.Instance=t.StateFlow=void 0;const s=r("./node_modules/tslib/tslib.es6.mjs"),a=r("./node_modules/events/events.js"),l=s.__importDefault(r("./node_modules/fast-deep-equal/es6/index.js")),u=r("./node_modules/@video/state-flow/lib/group.js"),c=r("./node_modules/@video/state-flow/lib/result.js"),d=r("./node_modules/@video/state-flow/lib/signals.js"),f=r("./node_modules/@video/state-flow/lib/state-type.js"),h=r("./node_modules/@video/state-flow/lib/symbols.js"),p=r("./node_modules/@video/state-flow/lib/utils.js"),m=s.__importDefault(r("./node_modules/core-js-pure/actual/disposable-stack/index.js"));function g(e,t,r){return r instanceof f.StateInstance?`${e}:${String(t)}:${(0,p.getStateName)(r)}`:`${e}:${String(t)}:${r.stateName}`}function v(e,t,r,n,o=!1){if(p.DEBUG_MODE){o?console.groupCollapsed(`[SIGNAL/ASYNC] ${String(e)} - ${t}`):console.groupCollapsed(`[SIGNAL] ${String(e)} - ${t}`),console.log("Params:",r);for(const[e,t]of Object.entries(n))for(const e of t)console.log(...e);console.groupEnd()}}let y="";t.StateFlow=class{constructor(){this.registeredGroups=[],n.set(this,new WeakSet)}registerGroup(e){const t=new u.Group(e);return this.registeredGroups.some(e=>e.name===t.name)?(console.error(new Error(`Group ${String(t.name)} is already registered`)),t):(this.registeredGroups.push(t),t)}initialize(...e){const t=new b(this);for(const e of this.registeredGroups)null!=e.initFactory&&t[h.applySym](e.name,e.initFactory());for(const r of e)y="displayName"in r.constructor?String(r.constructor.displayName):r.constructor.name,r.initStateFlow(t);if(y="",t[h.isInitializedSym]=!0,p.DEBUG_MODE)for(const e of this.registeredGroups)for(const t of e.registeredStates)console.debug(`Registered state ${e.name}(${t.stateName}) with ${Object.keys(e.registeredHandlers[t.stateName]).length} handlers`);return t}},n=new WeakMap;class b{constructor(e){this[i]=!1,o.set(this,new m.default),this[h.instanceSym]=e,this[h.emitterSym]=s.__classPrivateFieldGet(this,o,"f").adopt(new a.EventEmitter,e=>{e.removeAllListeners()})}dispatch(e,t,r){if(!this[h.isInitializedSym])throw new Error("State flow is not initialized");const n=new p.Collector(c.Result.ok());let o=c.Result.ignore();try{if(o=this.prepareChangelog(e,t,n),!o.ok||null==o.data)return o.withContext(e);const[i,s]=o.data;if(this.processExitHandlers(s,i,n),o=n.merge(),o.hasError)return o.withContext(e);if(o.kind===c.ResultKind.InTransition)return c.Result.error(new Error("async handlers are not allowed in sync dispatch")).withContext(e);if(null!=r){const e=r(i,this);null==n||n.log("LOCAL","\tonChange: local handler => "+String(e)),null==n||n.push(e),o=n.merge()}if(o.hasError)return o.withContext(e);if(o.kind===c.ResultKind.InTransition)return c.Result.error(new Error("async handlers are not allowed in sync dispatch")).withContext(e);if(this.processChangesHandlers(s,i,n),o=n.merge(),o.hasError)return o.withContext(e);if(o.kind===c.ResultKind.InTransition)return c.Result.error(new Error("async handlers are not allowed in sync dispatch")).withContext(e);if(this.processEnterHandlers(s,i,n),o=n.merge(),o.hasError)return o.withContext(e);if(o.kind===c.ResultKind.InTransition)return c.Result.error(new Error("async handlers are not allowed in sync dispatch")).withContext(e);for(const[e,t]of s)this[h.applySym](e,t);return this.processCommitEvents(s,i),o.withContext(e)}finally{this[h.clearSym](),v(e,o,t,n.logs)}}async dispatchAsync(e,t){if(!this[h.isInitializedSym])throw new Error("State flow is not initialized");const r=new p.Collector(c.Result.ok());let n=c.Result.ignore();try{if(n=this.prepareChangelog(e,t,r),!n.ok||null==n.data)return n.withContext(e);const[o,i]=n.data;if(this.processExitHandlers(i,o,r),n=await r.merge().ready,n.hasError)return n.withContext(e);if(this.processChangesHandlers(i,o,r),n=await r.merge().ready,n.hasError)return n.withContext(e);if(this.processEnterHandlers(i,o,r),n=await r.merge().ready,n.hasError)return n.withContext(e);for(const[e,t]of i)this[h.applySym](e,t);return this.processCommitEvents(i,o),n.withContext(e)}finally{this[h.clearSym](),v(e,n,t,r.logs,!0)}}[(o=new WeakMap,i=h.isInitializedSym,h.applySym)](e,t){this[e]=t}[h.clearSym](){Object.values(this).forEach(e=>e[h.isTransitioningSym]=!1)}handleEnter(e,t){this.feedbackWatch(e,t,"onEnter")}handleChanges(e,t){this.feedbackWatch(e,t,"onChanges")}handleExit(e,t){this.feedbackWatch(e,t,"onExit")}onCommit(e,t){this.notifyWatch(e,t)}[Symbol.dispose](){s.__classPrivateFieldGet(this,o,"f").dispose(),this[h.emitterSym].removeAllListeners(),this[h.isInitializedSym]=!1}isStateChanged(e,t){if(null==t)return!1;const r=this[e];if(null==r)return!0;return!((0,p.getStateName)(r)===(0,p.getStateName)(t)&&(0,l.default)(this[e],t))}processEnterHandlers(e,t,r){const n=this;for(const[o,i]of e)if((0,p.getStateName)(n[o])!==(0,p.getStateName)(t[o])){const e=g("onEnter",o,t[o]);this[h.emitterSym].emit(e,t,r)}}processChangesHandlers(e,t,r){const n=this;for(const[o,i]of e)if((0,p.getStateName)(n[o])===(0,p.getStateName)(t[o])){const e=g("onChanges",o,t[o]);this[h.emitterSym].emit(e,t,r)}}processExitHandlers(e,t,r){const n=this;for(const[o,i]of e)if((0,p.getStateName)(n[o])!==(0,p.getStateName)(t[o])){const e=g("onExit",o,n[o]);this[h.emitterSym].emit(e,t,r)}}processCommitEvents(e,t,r){const n=this;for(const[o,i]of e){const e=g("onCommit",o,n[o]);this[h.emitterSym].emit(e,t,r)}}prepareChangelog(e,t,r){const n=e instanceof d.SignalType?e.name:e,o=[],i={};for(const s of this[h.instanceSym].registeredGroups){const a=this.get(s.name);if(i[s.name]=a,s.accepts(a,n)){let l=s.handle(this,n,t);switch(l.kind){case c.ResultKind.OK:if(this.isStateChanged(s.name,l.data)){if(a[h.isTransitioningSym])return c.Result.error(Error(`Cannot handle '${String(e)}' signal: '${s.name}' is in transition`));a[h.isTransitioningSym]=!0,o.push([s.name,l.data]),i[s.name]=l.data,r.log(s.name,`State ${s.name}: ${(0,p.getStateName)(a)} => ${(0,p.getStateName)(l.data)}`,[{...l.data}])}break;case c.ResultKind.InTransition:return c.Result.error(new Error("Transition is not allowed in signal handlers"));case c.ResultKind.Rejected:case c.ResultKind.Error:return l}}}return 0===o.length?c.Result.ignore("no changes"):c.Result.ok([i,o])}get(e){if(!(e in this))throw new Error(`State ${e} not found`);return this[e]}clone(){const e=this;return this[h.instanceSym].registeredGroups.reduce((t,r)=>{const n=r.name;return t[n]={...e[n]},t},{})}feedbackWatch(e,t,r){if(this[h.isInitializedSym])throw new Error("Cannot add handlers after initialization");this[h.emitterSym].on(g(r,String(e.groupName),e),(n,o)=>{try{const i=t(n,this);null==o||o.log(String(e.groupName),`\t${r}: ${t.name}() => ${String(i)}`),null==o||o.push(i)}catch(n){null==o||o.log(String(e.groupName),`\t${r}: ${t.name}() => Error: ${String(n)}`),null==o||o.push(n)}})}notifyWatch(e,t){this[h.emitterSym].on(g("onCommit",String(e.groupName),e),(r,n)=>{try{t(r,this)}catch(t){console.error(`Error in ${String(e)} "onCommit" callback: ${t}`,t)}})}}t.Instance=b},"./node_modules/@video/state-flow/lib/state-type.js":(e,t,r)=>{"use strict";var n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.StateInstance=void 0;const s=r("./node_modules/tslib/tslib.es6.mjs"),a=r("./node_modules/@video/state-flow/lib/symbols.js");class l{constructor(e,t,r,a=!1){return n.set(this,!1),o.set(this,void 0),i.set(this,void 0),s.__classPrivateFieldSet(this,o,t,"f"),s.__classPrivateFieldSet(this,n,a,"f"),s.__classPrivateFieldSet(this,i,e,"f"),Object.freeze(Object.assign(this,r))}get[(n=new WeakMap,o=new WeakMap,i=new WeakMap,a.isTransitioningSym)](){return s.__classPrivateFieldGet(this,n,"f")}set[a.isTransitioningSym](e){s.__classPrivateFieldSet(this,n,e,"f")}get[a.stateNameSym](){return s.__classPrivateFieldGet(this,o,"f")}get[Symbol.toStringTag](){return this[a.stateNameSym]}static clone(e,t){return s.__classPrivateFieldGet(e,i,"f").call(e,{...e,...t})}}t.StateInstance=l},"./node_modules/@video/state-flow/lib/symbols.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearSym=t.applySym=t.stateNameSym=t.isInitializedSym=t.isTransitioningSym=t.emitterSym=t.instanceSym=void 0,t.instanceSym=Symbol("instance"),t.emitterSym=Symbol("emitter"),t.isTransitioningSym=Symbol("isTransitioning"),t.isInitializedSym=Symbol("isInitialized"),t.stateNameSym=Symbol("stateName"),t.applySym=Symbol("apply"),t.clearSym=Symbol("clear")},"./node_modules/@video/state-flow/lib/utils.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disableDebug=t.enableDebug=t.withTimeout=t.Collector=t.cloneState=t.isTransitioning=t.getStateName=t.mergeStrings=t.MergedError=t.DEBUG_MODE=void 0;const n=r("./node_modules/tslib/tslib.es6.mjs"),o=r("./node_modules/@video/state-flow/lib/result.js"),i=r("./node_modules/@video/state-flow/lib/state-flow.js"),s=r("./node_modules/@video/state-flow/lib/state-type.js"),a=r("./node_modules/@video/state-flow/lib/symbols.js"),l=n.__importDefault(r("./node_modules/debug/src/browser.js"));t.DEBUG_MODE=(0,l.default)("state-flow").enabled;class u extends Error{constructor(e){super(e.map(e=>String(e)).join("; ")),this.errors=e}}t.MergedError=u,t.mergeStrings=function(e,t){if(null!=e||null!=t)return null==e?String(t):null==t?String(e):`${e}; ${t}`},t.getStateName=function(e){if(e instanceof s.StateInstance)return e[a.stateNameSym];throw new Error("invalid state")},t.isTransitioning=function e(t){if(t instanceof s.StateInstance)return t[a.isTransitioningSym];if(t instanceof i.Instance)return Object.values(t).some(t=>e(t));throw new Error("invalid state")},t.cloneState=function(e,t){if(e instanceof s.StateInstance)return s.StateInstance.clone(e,t);throw new Error("invalid state")};t.Collector=class{constructor(e=o.Result.ignore()){this.result=e,this.logs={},this.results=[]}merge(){return this.results=[this.results.reduce((e,t)=>e.merge(t),this.result)],this.results[0]}push(e){const t=e instanceof o.Result?e:o.Result.error(e);this.results.push(t)}log(e,...t){var r,n;null!==(r=(n=this.logs)[e])&&void 0!==r||(n[e]=[]),this.logs[e].push(t)}},t.withTimeout=function(e,t){return new Promise((r,n)=>{const i=setTimeout(()=>{r(o.Result.error(new Error("timeout")))},t);e.then(e=>{clearTimeout(i),r(e)},e=>{clearTimeout(i),n(e)})})},t.enableDebug=function(){t.DEBUG_MODE=!0},t.disableDebug=function(){t.DEBUG_MODE=!1}},"./node_modules/sdp-transform/lib/grammar.js":e=>{var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},"./node_modules/sdp-transform/lib/index.js":(e,t,r)=>{var n=r("./node_modules/sdp-transform/lib/parser.js"),o=r("./node_modules/sdp-transform/lib/writer.js");t.write=o,t.parse=n.parse,t.parseParams=n.parseParams,t.parseFmtpConfig=n.parseFmtpConfig,t.parsePayloads=n.parsePayloads,t.parseRemoteCandidates=n.parseRemoteCandidates,t.parseImageAttributes=n.parseImageAttributes,t.parseSimulcastStreamList=n.parseSimulcastStreamList},"./node_modules/sdp-transform/lib/parser.js":(e,t,r)=>{var n=function(e){return String(Number(e))===e?Number(e):e},o=function(e,t,r){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,r,o){if(o&&!r)t[o]=n(e[1]);else for(var i=0;i1&&(e[r[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(a,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],r=e.split(" ").map(n),o=0;o{var n=r("./node_modules/sdp-transform/lib/grammar.js"),o=/%[sdv%]/g,i=function(e){var t=1,r=arguments,n=r.length;return e.replace(o,(function(e){if(t>=n)return e;var o=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},s=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var o=0;o{var n=r("./node_modules/buffer/index.js"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},"./node_modules/shallow-equal/dist/index.esm.js":(e,t,r)=>{"use strict";function n(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;in})},"./node_modules/shallowequal/index.js":e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l{var n=r("./node_modules/source-map/lib/util.js"),o=Object.prototype.hasOwnProperty;function i(){this._array=[],this._set=Object.create(null)}i.fromArray=function(e,t){for(var r=new i,n=0,o=e.length;n=0&&e{var n=r("./node_modules/source-map/lib/base64.js");t.encode=function(e){var t,r="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),r+=n.encode(t)}while(o>0);return r},t.decode=function(e,t,r){var o,i,s,a,l=e.length,u=0,c=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&i),u+=(i&=31)<>1,1==(1&s)?-a:a),r.rest=t}},"./node_modules/source-map/lib/base64.js":(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,o){if(0===r.length)return-1;var i=function e(r,n,o,i,s,a){var l=Math.floor((n-r)/2)+r,u=s(o,i[l],!0);return 0===u?l:u>0?n-l>1?e(l,n,o,i,s,a):a==t.LEAST_UPPER_BOUND?n1?e(r,l,o,i,s,a):a==t.LEAST_UPPER_BOUND?l:r<0?-1:r}(-1,r.length,e,r,n,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===n(r[i],r[i-1],!0);)--i;return i}},"./node_modules/source-map/lib/mapping-list.js":(e,t,r)=>{var n=r("./node_modules/source-map/lib/util.js");function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,r,o,i,s,a;t=this._last,r=e,o=t.generatedLine,i=r.generatedLine,s=t.generatedColumn,a=r.generatedColumn,i>o||i==o&&a>=s||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=o},"./node_modules/source-map/lib/quick-sort.js":(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,o,i){if(o{var n=r("./node_modules/source-map/lib/util.js"),o=r("./node_modules/source-map/lib/binary-search.js"),i=r("./node_modules/source-map/lib/array-set.js").C,s=r("./node_modules/source-map/lib/base64-vlq.js"),a=r("./node_modules/source-map/lib/quick-sort.js").g;function l(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new d(t):new u(t)}function u(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=n.getArg(t,"version"),o=n.getArg(t,"sources"),s=n.getArg(t,"names",[]),a=n.getArg(t,"sourceRoot",null),l=n.getArg(t,"sourcesContent",null),u=n.getArg(t,"mappings"),c=n.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o=o.map(String).map(n.normalize).map((function(e){return a&&n.isAbsolute(a)&&n.isAbsolute(e)?n.relative(a,e):e})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(o,!0),this.sourceRoot=a,this.sourcesContent=l,this._mappings=u,this.file=c}function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=n.getArg(t,"version"),o=n.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=n.getArg(e,"offset"),r=n.getArg(t,"line"),o=n.getArg(t,"column");if(r=0){var a=this._originalMappings[s];if(void 0===e.column)for(var l=a.originalLine;a&&a.originalLine===l;)i.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==u;)i.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},t.SourceMapConsumer=l,u.prototype=Object.create(l.prototype),u.prototype.consumer=l,u.fromSourceMap=function(e){var t=Object.create(u.prototype),r=t._names=i.fromArray(e._names.toArray(),!0),o=t._sources=i.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),l=t.__generatedMappings=[],d=t.__originalMappings=[],f=0,h=s.length;f1&&(r.source=m+i[1],m+=i[1],r.originalLine=h+i[2],h=r.originalLine,r.originalLine+=1,r.originalColumn=p+i[3],p=r.originalColumn,i.length>4&&(r.name=g+i[4],g+=i[4])),S.push(r),"number"==typeof r.originalLine&&_.push(r)}a(S,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(_,n.compareByOriginalPositions),this.__originalMappings=_},u.prototype._findMapping=function(e,t,r,n,i,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return o.search(e,t,i,s)},u.prototype.computeColumnSpans=function(){for(var e=0;e=0){var o=this._generatedMappings[r];if(o.generatedLine===t.generatedLine){var i=n.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=n.join(this.sourceRoot,i)));var s=n.getArg(o,"name",null);return null!==s&&(s=this._names.at(s)),{source:i,line:n.getArg(o,"originalLine",null),column:n.getArg(o,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=n.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=n.urlParse(this.sourceRoot))){var o=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if(null!=this.sourceRoot&&(t=n.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===r.source)return{line:n.getArg(i,"generatedLine",null),column:n.getArg(i,"generatedColumn",null),lastColumn:n.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(l.prototype),d.prototype.constructor=l,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t{var n=r("./node_modules/source-map/lib/base64-vlq.js"),o=r("./node_modules/source-map/lib/util.js"),i=r("./node_modules/source-map/lib/array-set.js").C,s=r("./node_modules/source-map/lib/mapping-list.js").P;function a(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=o.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},a.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),r=o.getArg(e,"original",null),n=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},a.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=o.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var s=this._sourceRoot;null!=s&&(n=o.relative(s,n));var a=new i,l=new i;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=r&&(t.source=o.join(r,t.source)),null!=s&&(t.source=o.relative(s,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var u=t.source;null==u||a.has(u)||a.add(u);var c=t.name;null==c||l.has(c)||l.add(c)}),this),this._sources=a,this._names=l,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=o.join(r,t)),null!=s&&(t=o.relative(s,t)),this.setSourceContent(t,n))}),this)},a.prototype._validateMapping=function(e,t,r,n){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},a.prototype._serializeMappings=function(){for(var e,t,r,i,s=0,a=1,l=0,u=0,c=0,d=0,f="",h=this._mappings.toArray(),p=0,m=h.length;p0){if(!o.compareByGeneratedPositionsInflated(t,h[p-1]))continue;e+=","}e+=n.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=n.encode(i-d),d=i,e+=n.encode(t.originalLine-1-u),u=t.originalLine-1,e+=n.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-c),c=r)),f+=e}return f},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var r=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},"./node_modules/source-map/lib/source-node.js":(e,t,r)=>{var n=r("./node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,o=r("./node_modules/source-map/lib/util.js"),i=/(\r?\n)/,s="$$$isSourceNode$$$";function a(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==o?null:o,this[s]=!0,null!=n&&this.add(n)}a.fromStringWithSourceMap=function(e,t,r){var n=new a,s=e.split(i),l=function(){return s.shift()+(s.shift()||"")},u=1,c=0,d=null;return t.eachMapping((function(e){if(null!==d){if(!(u0&&(d&&f(d,l()),n.add(s.join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=o.join(r,e)),n.setSourceContent(e,i))})),n;function f(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?o.join(r,e.source):e.source;n.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function o(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function s(e){var r=e,n=o(e);if(n){if(!n.path)return e;r=n.path}for(var s,a=t.isAbsolute(r),l=r.split(/\/+/),u=0,c=l.length-1;c>=0;c--)"."===(s=l[c])?l.splice(c,1):".."===s?u++:u>0&&(""===s?(l.splice(c+1,u),u=0):(l.splice(c,2),u--));return""===(r=l.join("/"))&&(r=a?"/":"."),n?(n.path=r,i(n)):r}t.urlParse=o,t.urlGenerate=i,t.normalize=s,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=o(t),a=o(e);if(a&&(e=a.path||"/"),r&&!r.scheme)return a&&(r.scheme=a.scheme),i(r);if(r||t.match(n))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,i(a)):l},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function c(e,t){return e===t?0:e>t?1:-1}t.toSetString=a?l:function(e){return u(e)?"$"+e:e},t.fromSetString=a?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=e.source-t.source)||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)}},"./node_modules/source-map/source-map.js":(e,t,r)=>{t.SourceMapGenerator=r("./node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,t.SourceMapConsumer=r("./node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer,t.SourceNode=r("./node_modules/source-map/lib/source-node.js").SourceNode},"./node_modules/stack-generator/stack-generator.js":function(e,t,r){var n,o,i;!function(s,a){"use strict";o=[r("./node_modules/stackframe/stackframe.js")],void 0===(i="function"==typeof(n=function(e){return{backtrace:function(t){var r=[],n=10;"object"==typeof t&&"number"==typeof t.maxStackSize&&(n=t.maxStackSize);for(var o=arguments.callee;o&&r.length=200&&n.status<300||"file://"===e.substr(0,7)&&n.responseText?t(n.responseText):r(new Error("HTTP status: "+n.status+" retrieving "+e)))},n.send()}))}function n(e){if("undefined"!=typeof window&&window.atob)return window.atob(e);throw new Error("You must supply a polyfill for window.atob in this environment")}function o(e){if("object"!=typeof e)throw new TypeError("Given StackFrame is not an object");if("string"!=typeof e.fileName)throw new TypeError("Given file name is not a String");if("number"!=typeof e.lineNumber||e.lineNumber%1!=0||e.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if("number"!=typeof e.columnNumber||e.columnNumber%1!=0||e.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}return function i(s){if(!(this instanceof i))return new i(s);s=s||{},this.sourceCache=s.sourceCache||{},this.sourceMapConsumerCache=s.sourceMapConsumerCache||{},this.ajax=s.ajax||r,this._atob=s.atob||n,this._get=function(e){return new Promise(function(t,r){var n="data:"===e.substr(0,5);if(this.sourceCache[e])t(this.sourceCache[e]);else if(s.offline&&!n)r(new Error("Cannot make network requests in offline mode"));else if(n){var o=e.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(o){var i=o[0].length,a=e.substr(i),l=this._atob(a);this.sourceCache[e]=l,t(l)}else r(new Error("The encoding of the inline sourcemap is not supported"))}else{var u=this.ajax(e,{method:"get"});this.sourceCache[e]=u,u.then(t,r)}}.bind(this))},this._getSourceMapConsumer=function(t,r){return new Promise(function(n){if(this.sourceMapConsumerCache[t])n(this.sourceMapConsumerCache[t]);else{var o=new Promise(function(n,o){return this._get(t).then((function(t){"string"==typeof t&&(t=function(e){if("undefined"!=typeof JSON&&JSON.parse)return JSON.parse(e);throw new Error("You must supply a polyfill for JSON.parse in this environment")}(t.replace(/^\)\]\}'/,""))),void 0===t.sourceRoot&&(t.sourceRoot=r),n(new e.SourceMapConsumer(t))})).catch(o)}.bind(this));this.sourceMapConsumerCache[t]=o,n(o)}}.bind(this))},this.pinpoint=function(e){return new Promise(function(t,r){this.getMappedLocation(e).then(function(e){function r(){t(e)}this.findFunctionName(e).then(t,r).catch(r)}.bind(this),r)}.bind(this))},this.findFunctionName=function(e){return new Promise(function(r,n){o(e),this._get(e.fileName).then((function(n){var o=e.lineNumber,i=e.columnNumber,s=function(e,t){for(var r=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],n=e.split("\n"),o="",i=Math.min(t,20),s=0;s=0&&(a=a.substr(0,l)),a){o=a+o;for(var u=r.length,c=0;c=200&&s.status<400?o(s.responseText):i(new Error("POST to "+t+" failed with status: "+s.status)))},s.open("post",t),s.setRequestHeader("Content-Type","application/json"),n&&"object"==typeof n.headers){var a=n.headers;for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&s.setRequestHeader(l,a[l])}var u={stack:e};null!=r&&(u.message=r),s.send(JSON.stringify(u))}))}}})?n.apply(t,o):n)||(e.exports=i)}()},"./node_modules/stream-shift/index.js":e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(function(e){if(e.buffer.length)return e.buffer.head?e.buffer.head.data.length:e.buffer[0].length;return e.length}(t)):null}},"./node_modules/string_decoder/lib/string_decoder.js":(e,t,r)=>{"use strict";var n=r("./node_modules/string_decoder/node_modules/safe-buffer/index.js").Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return o>0&&(e.lastNeed=o-1),o;if(--n=0)return o>0&&(e.lastNeed=o-2),o;if(--n=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"./node_modules/string_decoder/node_modules/safe-buffer/index.js":(e,t,r)=>{var n=r("./node_modules/buffer/index.js"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},"./node_modules/styled-components-rtl/index.js":(e,t,r)=>{"use strict";t.A=void 0;var n=r("./node_modules/styled-components-rtl/node_modules/styled-components/dist/styled-components.browser.esm.js"),o=r("./node_modules/cssjanus/src/cssjanus.js");function i(e,t){return e.reduce((function(e,r){var n=r;if("function"==typeof r){var o=r(t);n="string"==typeof o?o:i(o,t)}return e+n}),"")}var s=function(){for(var e=arguments.length,t=new Array(e),r=0;r{"use strict";r.r(t),r.d(t,{ServerStyleSheet:()=>Be,StyleSheetConsumer:()=>se,StyleSheetContext:()=>ie,StyleSheetManager:()=>fe,ThemeConsumer:()=>Ie,ThemeContext:()=>Ne,ThemeProvider:()=>Me,__PRIVATE__:()=>He,createGlobalStyle:()=>Ge,css:()=>Se,default:()=>We,isStyledComponent:()=>S,keyframes:()=>$e,useTheme:()=>qe,version:()=>x,withTheme:()=>Ue});var n=r("./node_modules/react-is/index.js"),o=r("webpack/sharing/consume/default/react/react"),i=r.n(o),s=r("./node_modules/shallowequal/index.js"),a=r.n(s),l=r("./node_modules/@emotion/stylis/dist/stylis.browser.esm.js");const u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const d=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var f=r("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),h=r.n(f),p=r("./node_modules/process/browser.js");function m(){return(m=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var A=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&O(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i=R&&(R=t+1),T.set(e,t),P.set(t,e)},L="style["+C+'][data-styled-version="5.3.10"]',D=new RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),z=function(e,t,r){for(var n,o=r.split(","),i=0,s=o.length;i=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(C))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(C,"active"),n.setAttribute("data-styled-version","5.3.10");var s=G();return s&&n.setAttribute("nonce",s),r.insertBefore(n,i),n},B=function(){function e(e){var t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),n+=""+a+l+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),J=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(J,"$1-$2")}var Y=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Z=function(e){return Y(5381,e)};function Q(e){for(var t=0;t>>0);if(!t.hasNameForId(n,s)){var a=r(i,"."+s,void 0,n);t.insertRules(n,s,a)}o.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,u=Y(this.baseHash,r.hash),c="",d=0;d>>0);if(!t.hasNameForId(n,m)){var g=r(c,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),re=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function oe(e){var t,r,n,o,i=void 0===e?b:e,s=i.options,a=void 0===s?b:s,u=i.plugins,c=void 0===u?y:u,d=new l.A(a),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,s,a,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==ne.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,s,a){void 0===a&&(a="&");var l=e.replace(re,""),u=i&&s?s+" "+i+" { "+l+" }":l;return t=a,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),d(s||!i?"":i,u)}return d.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||O(15),Y(e,t.name)}),5381).toString():"",m}var ie=i().createContext(),se=ie.Consumer,ae=i().createContext(),le=(ae.Consumer,new V),ue=oe();function ce(){return(0,o.useContext)(ie)||le}function de(){return(0,o.useContext)(ae)||ue}function fe(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],s=ce(),l=(0,o.useMemo)((function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,o.useMemo)((function(){return oe({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(ie.Provider,{value:l},i().createElement(ae.Provider,{value:u},e.children))}var he=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ue);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return O(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ue),this.name+e.hash},e}(),pe=/([A-Z])/,me=/([A-Z])/g,ge=/^ms-/,ve=function(e){return"-"+e.toLowerCase()};function ye(e){return pe.test(e)?e.replace(me,ve).replace(ge,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function we(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],s=0,a=e.length;s1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Ee(e){return e.replace(xe,"-").replace(ke,"")}var je=function(e){return X(Z(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Ae=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pe(e,t,r){var n=e[r];Ae(t)&&Ae(n)?Re(n,t):e[r]=t}function Re(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Oe(e)?e:Ee(_(e)));return De(e,m({},o,{attrs:v,componentId:i}),r)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Re({},e.defaultProps,t):t}}),Object.defineProperty(x,"toString",{value:function(){return"."+x.styledComponentId}}),s&&h()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var ze=function(e){return function e(t,r,o){if(void 0===o&&(o=b),!(0,n.isValidElementType)(r))return O(1,String(r));var i=function(){return t(r,o,Se.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,m({},o,{},n))},i.attrs=function(n){return e(t,r,m({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(De,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){ze[e]=ze(e)}));var Fe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),V.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(we(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ge(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n"+t+""},this.getStyleTags=function(){return e.sealed?O(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return O(2);var r=((t={})[C]="",t["data-styled-version"]="5.3.10",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=G();return n&&(r.nonce=n),[i().createElement("style",m({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?O(2):i().createElement(fe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return O(3)},e}(),Ue=function(e){var t=i().forwardRef((function(t,r){var n=(0,o.useContext)(Ne),s=e.defaultProps,a=Ce(t,n,s);return i().createElement(e,m({},t,{theme:a,ref:r}))}));return h()(t,e),t.displayName="WithTheme("+_(e)+")",t},qe=function(){return(0,o.useContext)(Ne)},He={StyleSheet:V,masterSheet:le};const We=ze},"./node_modules/styled-components/dist/styled-components.browser.esm.js":(e,t,r)=>{"use strict";r.d(t,{ID:()=>Ze,NP:()=>Ke,AH:()=>Se,Ay:()=>st,i7:()=>ot,SL:()=>it});var n=r("./node_modules/stylis/stylis.min.js"),o=r.n(n),i=r("./node_modules/stylis-rule-sheet/index.js"),s=r.n(i),a=r("webpack/sharing/consume/default/react/react"),l=r.n(a);const u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=r("./node_modules/react-is/index.js"),d=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function f(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?n-1:0),i=1;i0?" Additional arguments: "+o.join(", "):"")));return x(s)}return C(t,e),t}(Error),M=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,L=function(e){var t=""+(e||""),r=[];return t.replace(M,(function(e,t,n){return r.push({componentId:t,matchIndex:n}),e})),r.map((function(e,n){var o=e.componentId,i=e.matchIndex,s=r[n+1];return{componentId:o,cssFromDOM:s?t.slice(i,s.matchIndex):t.slice(i)}}))},D=/^\s*\/\/.*$/gm,z=new(o())({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),F=new(o())({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),G=[],$=function(e){if(-2===e){var t=G;return G=[],t}},B=s()((function(e){G.push(e)})),U=void 0,q=void 0,H=void 0,W=function(e,t,r){return t>0&&-1!==r.slice(0,t).indexOf(q)&&r.slice(t-q.length,t)!==q?"."+U:e};F.use([function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(q)>0&&(r[0]=r[0].replace(H,W))},B,$]),z.use([B,$]);var V=function(e){return z("",e)};function J(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(D,""),i=t&&r?r+" "+t+" { "+o+" }":o;return U=n,q=t,H=new RegExp("\\"+q+"\\b","g"),F(r||!t?"":t,i)}var K=function(){return r.nc},X=function(e,t,r){r&&((e[t]||(e[t]=Object.create(null)))[r]=!0)},Y=function(e,t){e[t]=Object.create(null)},Z=function(e){return function(t,r){return void 0!==e[t]&&e[t][r]}},Q=function(e){var t="";for(var r in e)t+=Object.keys(e[r]).join(" ")+" ";return t.trim()},ee=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,r=0;r"+e()+""}},ie=function(e,t){return function(){var r,n=((r={})[P]=Q(t),r["data-styled-version"]="4.4.1",r),o=K();return o&&(n.nonce=o),l().createElement("style",S({},n,{dangerouslySetInnerHTML:{__html:e()}}))}},se=function(e){return function(){return Object.keys(e)}},ae=function(e,t){return e.createTextNode(re(t))},le=function e(t,r){var n=void 0===t?Object.create(null):t,o=void 0===r?Object.create(null):r,i=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},s=function(){var e="";for(var t in o){var r=o[t][0];r&&(e+=re(t)+r)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var r in e)t[r]=S({},e[r]);return t}(n),r=Object.create(null);for(var i in o)r[i]=[o[i][0]];return e(t,r)},css:s,getIds:se(o),hasNameForId:Z(n),insertMarker:i,insertRules:function(e,t,r){i(e)[0]+=t.join(" "),X(n,e,r)},removeRules:function(e){var t=o[e];void 0!==t&&(t[0]="",Y(n,e))},sealed:!1,styleTag:null,toElement:ie(s,n),toHTML:oe(s,n)}},ue=function(e,t,r,n,o){if(R&&!r){var i=function(e,t,r){var n=document;e?n=e.ownerDocument:t&&(n=t.ownerDocument);var o=n.createElement("style");o.setAttribute(P,""),o.setAttribute("data-styled-version","4.4.1");var i=K();if(i&&o.setAttribute("nonce",i),o.appendChild(n.createTextNode("")),e&&!t)e.appendChild(o);else{if(!t||!e||!t.parentNode)throw new I(6);t.parentNode.insertBefore(o,r?t:t.nextSibling)}return o}(e,t,n);return N?function(e,t){var r=Object.create(null),n=Object.create(null),o=void 0!==t,i=!1,s=function(t){var o=n[t];return void 0!==o?o:(n[t]=ae(e.ownerDocument,t),e.appendChild(n[t]),r[t]=Object.create(null),n[t])},a=function(){var e="";for(var t in n)e+=n[t].data;return e};return{clone:function(){throw new I(5)},css:a,getIds:se(n),hasNameForId:Z(r),insertMarker:s,insertRules:function(e,n,a){for(var l=s(e),u=[],c=n.length,d=0;d0&&(i=!0,t().insertRules(e+"-import",u))},removeRules:function(s){var a=n[s];if(void 0!==a){var l=ae(e.ownerDocument,s);e.replaceChild(l,a),n[s]=l,Y(r,s),o&&i&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ie(a,r),toHTML:oe(a,r)}}(i,o):function(e,t){var r=Object.create(null),n=Object.create(null),o=[],i=void 0!==t,s=!1,a=function(e){var t=n[e];return void 0!==t?t:(n[e]=o.length,o.push(0),Y(r,e),n[e])},l=function(){var t=ee(e).cssRules,r="";for(var i in n){r+=re(i);for(var s=n[i],a=ne(o,s),l=a-o[s];l0&&(s=!0,t().insertRules(n+"-import",p)),o[c]+=h,X(r,n,u)},removeRules:function(a){var l=n[a];if(void 0!==l&&!1!==e.isConnected){var u=o[l];!function(e,t,r){for(var n=t-r,o=t;o>n;o-=1)e.deleteRule(o)}(ee(e),ne(o,l)-1,u),o[l]=0,Y(r,a),i&&s&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:ie(l,r),toHTML:oe(l,r)}}(i,o)}return le()},ce=/\s+/,de=void 0;de=R?N?40:1e3:-1;var fe=0,he=void 0,pe=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var r=t.tags[0];return t.importRuleTag=ue(t.target,r?r.styleTag:null,t.forceServer,!0)},fe+=1,this.id=fe,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!R||this.forceServer)return this;var e=[],t=[],r=!1,n=document.querySelectorAll("style["+P+'][data-styled-version="4.4.1"]'),o=n.length;if(!o)return this;for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];he=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var r=e.getIds(),n=e.clone(),o=0;o1?t-1:0),n=1;n=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return((n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16))^n>>>15)>>>0}var xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function ke(e){var t="",r=void 0;for(r=e;r>52;r=Math.floor(r/52))t=xe(r%52)+t;return xe(r%52)+t}function Ee(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:j,n=!!r&&e.theme===r.theme,o=e.theme&&!n?e.theme:t||r.theme;return o},Pe=/[[\].#*$><+~=|^:(),"'`-]+/g,Re=/(^-|-$)/g;function Ne(e){return e.replace(Pe,"-").replace(Re,"")}function Ie(e){return"string"==typeof e&&!0}var Me={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},De=((je={})[c.ForwardRef]={$$typeof:!0,render:!0},je),ze=Object.defineProperty,Fe=Object.getOwnPropertyNames,Ge=Object.getOwnPropertySymbols,$e=void 0===Ge?function(){return[]}:Ge,Be=Object.getOwnPropertyDescriptor,Ue=Object.getPrototypeOf,qe=Object.prototype,He=Array.prototype;function We(e,t,r){if("string"!=typeof t){var n=Ue(t);n&&n!==qe&&We(e,n,r);for(var o=He.concat(Fe(t),$e(t)),i=De[e.$$typeof]||Me,s=De[t.$$typeof]||Me,a=o.length,l=void 0,u=void 0;a--;)if(u=o[a],!(Le[u]||r&&r[u]||s&&s[u]||i&&i[u])&&(l=Be(t,u)))try{ze(e,u,l)}catch(e){}return e}return e}var Ve=(0,a.createContext)(),Je=Ve.Consumer,Ke=function(e){function t(r){w(this,t);var n=x(this,e.call(this,r));return n.getContext=h(n.getContext.bind(n)),n.renderInner=n.renderInner.bind(n),n}return C(t,e),t.prototype.render=function(){return this.props.children?l().createElement(Ve.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l().createElement(Ve.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(O(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":b(e)))throw new I(8);return S({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(a.Component),Xe=(function(){function e(){w(this,e),this.masterSheet=pe.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new I(2);return l().createElement(Ze,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new I(3)}}(),(0,a.createContext)()),Ye=Xe.Consumer,Ze=function(e){function t(r){w(this,t);var n=x(this,e.call(this,r));return n.getContext=h(n.getContext),n}return C(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new pe(t);throw new I(4)},t.prototype.render=function(){var e=this.props,t=e.children,r=e.sheet,n=e.target;return l().createElement(Xe.Provider,{value:this.getContext(r,n)},t)},t}(a.Component),Qe={};var et=function(e){function t(){w(this,t);var r=x(this,e.call(this));return r.attrs={},r.renderOuter=r.renderOuter.bind(r),r.renderInner=r.renderInner.bind(r),r}return C(t,e),t.prototype.render=function(){return l().createElement(Ye,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l().createElement(Je,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,r=t.componentStyle,n=t.defaultProps,o=(t.displayName,t.foldedComponentIds),i=t.styledComponentId,s=t.target,l=void 0;l=r.isStatic?this.generateAndInjectStyles(j,this.props):this.generateAndInjectStyles(Te(this.props,e,n)||j,this.props);var u=this.props.as||this.attrs.as||s,c=Ie(u),d={},f=S({},this.props,this.attrs),h=void 0;for(h in f)"forwardedComponent"!==h&&"as"!==h&&("forwardedRef"===h?d.ref=f[h]:"forwardedAs"===h?d.as=f[h]:c&&!m(h)||(d[h]=f[h]));return this.props.style&&this.attrs.style&&(d.style=S({},this.attrs.style,this.props.style)),d.className=Array.prototype.concat(o,i,l!==i?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),(0,a.createElement)(u,d)},t.prototype.buildExecutionContext=function(e,t,r){var n=this,o=S({},t,{theme:e});return r.length?(this.attrs={},r.forEach((function(e){var t,r=e,i=!1,s=void 0,a=void 0;for(a in O(r)&&(r=r(o),i=!0),r)s=r[a],i||!O(s)||(t=s)&&t.prototype&&t.prototype.isReactComponent||T(s)||(s=s(o)),n.attrs[a]=s,o[a]=s})),o):o},t.prototype.generateAndInjectStyles=function(e,t){var r=t.forwardedComponent,n=r.attrs,o=r.componentStyle;r.warnTooManyClasses;return o.isStatic&&!n.length?o.generateAndInjectStyles(j,this.styleSheet):o.generateAndInjectStyles(this.buildExecutionContext(e,t,n),this.styleSheet)},t}(a.Component);function tt(e,t,r){var n=T(e),o=!Ie(e),i=t.displayName,s=void 0===i?function(e){return Ie(e)?"styled."+e:"Styled("+A(e)+")"}(e):i,a=t.componentId,u=void 0===a?function(e,t,r){var n="string"!=typeof t?"sc":Ne(t),o=(Qe[n]||0)+1;Qe[n]=o;var i=n+"-"+e.generateName(n+o);return r?r+"-"+i:i}(Ae,t.displayName,t.parentComponentId):a,c=t.ParentComponent,d=void 0===c?et:c,f=t.attrs,h=void 0===f?E:f,p=t.displayName&&t.componentId?Ne(t.displayName)+"-"+t.componentId:t.componentId||u,m=n&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,v=new Ae(n?e.componentStyle.rules.concat(r):r,m,p),y=void 0,b=function(e,t){return l().createElement(d,S({},e,{forwardedComponent:y,forwardedRef:t}))};return b.displayName=s,(y=l().forwardRef(b)).displayName=s,y.attrs=m,y.componentStyle=v,y.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):E,y.styledComponentId=p,y.target=n?e.target:e,y.withComponent=function(e){var n=t.componentId,o=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["componentId"]),i=n&&n+"-"+(Ie(e)?e:Ne(A(e)));return tt(e,S({},o,{attrs:m,componentId:i,ParentComponent:d}),r)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?(0,g.Ay)(e.defaultProps,t):t}}),y.toString=function(){return"."+y.styledComponentId},o&&We(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var rt=function(e){return function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j;if(!(0,c.isValidElementType)(r))throw new I(1,String(r));var o=function(){return t(r,n,Se.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,S({},n,o))},o.attrs=function(o){return e(t,r,S({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(tt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){rt[e]=rt(e)}));!function(){function e(t,r){w(this,e),this.rules=t,this.componentId=r,this.isStatic=Ee(t,E),pe.master.hasId(r)||pe.master.deferredInject(r,[])}e.prototype.createStyles=function(e,t){var r=J(_e(this.rules,e,t),"");t.inject(this.componentId,r)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();R&&(window.scCGSHMRCache={});var nt=function(e){return e.replace(/\s|\\n/g,"")};function ot(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,s,a,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}()},"./node_modules/stylis/stylis.min.js":e=>{e.exports=function e(t){"use strict";var r=/^\0+/g,n=/[\0\r\f]/g,o=/: */g,i=/zoo|gra/,s=/([,: ])(transform)/g,a=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,c=/,\r+?/g,d=/([\t\r\n ])*\f?&/g,f=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,v=/\s+(?=[{\];=:>])/g,y=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,_=/([^\(])(:+) */g,S=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,A="-webkit-",T="-moz-",P="-ms-",R=59,N=125,I=123,M=40,L=41,D=10,z=13,F=32,G=45,$=42,B=44,U=58,q=47,H=1,W=1,V=0,J=1,K=1,X=1,Y=0,Z=0,Q=0,ee=[],te=[],re=0,ne=null,oe=0,ie=1,se="",ae="",le="";function ue(e,t,o,i,s){for(var a,l,c=0,d=0,f=0,h=0,v=0,y=0,b=0,w=0,S=0,x=0,k=0,E=0,j=0,O=0,T=0,P=0,Y=0,te=0,ne=0,de=o.length,ve=de-1,ye="",be="",we="",_e="",Se="",Ce="";T0&&(be=be.replace(n,"")),be.trim().length>0)){switch(b){case F:case 9:case R:case z:case D:break;default:be+=o.charAt(T)}b=R}if(1===Y)switch(b){case I:case N:case R:case 34:case 39:case M:case L:case B:Y=0;case 9:case z:case D:case F:break;default:for(Y=0,ne=T,v=b,T--,b=R;ne0&&(++T,b=v);case I:ne=de}}switch(b){case I:for(v=(be=be.trim()).charCodeAt(0),k=1,ne=++T;T0&&(be=be.replace(n,"")),y=be.charCodeAt(1)){case 100:case 109:case 115:case G:a=t;break;default:a=ee}if(ne=(we=ue(t,a,we,y,s+1)).length,Q>0&&0===ne&&(ne=be.length),re>0&&(l=me(3,we,a=ce(ee,be,te),t,W,H,ne,y,s,i),be=a.join(""),void 0!==l&&0===(ne=(we=l.trim()).length)&&(y=0,we="")),ne>0)switch(y){case 115:be=be.replace(C,pe);case 100:case 109:case G:we=be+"{"+we+"}";break;case 107:we=(be=be.replace(p,"$1 $2"+(ie>0?se:"")))+"{"+we+"}",we=1===K||2===K&&he("@"+we,3)?"@"+A+we+"@"+we:"@"+we;break;default:we=be+we,112===i&&(_e+=we,we="")}else we="";break;default:we=ue(t,ce(t,be,te),we,i,s+1)}Se+=we,E=0,Y=0,O=0,P=0,te=0,j=0,be="",we="",b=o.charCodeAt(++T);break;case N:case R:if((ne=(be=(P>0?be.replace(n,""):be).trim()).length)>1)switch(0===O&&((v=be.charCodeAt(0))===G||v>96&&v<123)&&(ne=(be=be.replace(" ",":")).length),re>0&&void 0!==(l=me(1,be,t,e,W,H,_e.length,i,s,i))&&0===(ne=(be=l.trim()).length)&&(be="\0\0"),v=be.charCodeAt(0),y=be.charCodeAt(1),v){case 0:break;case 64:if(105===y||99===y){Ce+=be+o.charAt(T);break}default:if(be.charCodeAt(ne-1)===U)break;_e+=fe(be,v,y,be.charCodeAt(2))}E=0,Y=0,O=0,P=0,te=0,be="",b=o.charCodeAt(++T)}}switch(b){case z:case D:if(d+h+f+c+Z===0)switch(x){case L:case 39:case 34:case 64:case 126:case 62:case $:case 43:case q:case G:case U:case B:case R:case I:case N:break;default:O>0&&(Y=1)}d===q?d=0:J+E===0&&107!==i&&be.length>0&&(P=1,be+="\0"),re*oe>0&&me(0,be,t,e,W,H,_e.length,i,s,i),H=1,W++;break;case R:case N:if(d+h+f+c===0){H++;break}default:switch(H++,ye=o.charAt(T),b){case 9:case F:if(h+c+d===0)switch(w){case B:case U:case 9:case F:ye="";break;default:b!==F&&(ye=" ")}break;case 0:ye="\\0";break;case 12:ye="\\f";break;case 11:ye="\\v";break;case 38:h+d+c===0&&J>0&&(te=1,P=1,ye="\f"+ye);break;case 108:if(h+d+c+V===0&&O>0)switch(T-O){case 2:112===w&&o.charCodeAt(T-3)===U&&(V=w);case 8:111===S&&(V=S)}break;case U:h+d+c===0&&(O=T);break;case B:d+f+h+c===0&&(P=1,ye+="\r");break;case 34:case 39:0===d&&(h=h===b?0:0===h?b:h);break;case 91:h+d+f===0&&c++;break;case 93:h+d+f===0&&c--;break;case L:h+d+c===0&&f--;break;case M:if(h+d+c===0){if(0===E)switch(2*w+3*S){case 533:break;default:k=0,E=1}f++}break;case 64:d+f+h+c+O+j===0&&(j=1);break;case $:case q:if(h+c+f>0)break;switch(d){case 0:switch(2*b+3*o.charCodeAt(T+1)){case 235:d=q;break;case 220:ne=T,d=$}break;case $:b===q&&w===$&&ne+2!==T&&(33===o.charCodeAt(ne+2)&&(_e+=o.substring(ne,T+1)),ye="",d=0)}}if(0===d){if(J+h+c+j===0&&107!==i&&b!==R)switch(b){case B:case 126:case 62:case 43:case L:case M:if(0===E){switch(w){case 9:case F:case D:case z:ye+="\0";break;default:ye="\0"+ye+(b===B?"":"\0")}P=1}else switch(b){case M:O+7===T&&108===w&&(O=0),E=++k;break;case L:0==(E=--k)&&(P=1,ye+="\0")}break;case 9:case F:switch(w){case 0:case I:case N:case R:case B:case 12:case 9:case F:case D:case z:break;default:0===E&&(P=1,ye+="\0")}}be+=ye,b!==F&&9!==b&&(x=b)}}S=w,w=b,T++}if(ne=_e.length,Q>0&&0===ne&&0===Se.length&&0===t[0].length==0&&(109!==i||1===t.length&&(J>0?ae:le)===t[0])&&(ne=t.join(",").length+2),ne>0){if(a=0===J&&107!==i?function(e){for(var t,r,o=0,i=e.length,s=Array(i);o1)){if(f=l.charCodeAt(l.length-1),h=r.charCodeAt(0),t="",0!==c)switch(f){case $:case 126:case 62:case 43:case F:case M:break;default:t=" "}switch(h){case 38:r=t+ae;case 126:case 62:case 43:case F:case L:case M:break;case 91:r=t+r+ae;break;case U:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(X>0){r=t+r.substring(8,d-1);break}default:(c<1||a[c-1].length<1)&&(r=t+ae+r)}break;case B:t="";default:r=d>1&&r.indexOf(":")>0?t+r.replace(_,"$1"+ae+"$2"):t+r+ae}l+=r}s[o]=l.replace(n,"").trim()}return s}(t):t,re>0&&void 0!==(l=me(2,_e,a,e,W,H,ne,i,s,i))&&0===(_e=l).length)return Ce+_e+Se;if(_e=a.join(",")+"{"+_e+"}",K*V!=0){switch(2!==K||he(_e,2)||(V=0),V){case 111:_e=_e.replace(g,":-moz-$1")+_e;break;case 112:_e=_e.replace(m,"::"+A+"input-$1")+_e.replace(m,"::-moz-$1")+_e.replace(m,":-ms-input-$1")+_e}V=0}}return Ce+_e+Se}function ce(e,t,r){var n=t.trim().split(c),o=n,i=n.length,s=e.length;switch(s){case 0:case 1:for(var a=0,l=0===s?"":e[0]+" ";a0&&J>0)return o.replace(f,"$1").replace(d,"$1"+le);break;default:return e.trim()+o.replace(d,"$1"+e.trim())}default:if(r*J>0&&o.indexOf("\f")>0)return o.replace(d,(e.charCodeAt(0)===U?"":"$1")+e.trim())}return e+o}function fe(e,t,r,n){var u,c=0,d=e+";",f=2*t+3*r+4*n;if(944===f)return function(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),o=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*ie){case 0:break;case G:if(110!==e.charCodeAt(10))break;default:var i=o.split((o="",a)),s=0;for(r=0,t=i.length;s64&&d<90||d>96&&d<123||95===d||d===G&&u.charCodeAt(1)!==G))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=se}}c[r++]=u}o+=(0===s?"":",")+c.join(" ")}}return o=n+o+";",1===K||2===K&&he(o,1)?A+o+o:o}(d);if(0===K||2===K&&!he(d,1))return d;switch(f){case 1015:return 97===d.charCodeAt(10)?A+d+d:d;case 951:return 116===d.charCodeAt(3)?A+d+d:d;case 963:return 110===d.charCodeAt(5)?A+d+d:d;case 1009:if(100!==d.charCodeAt(4))break;case 969:case 942:return A+d+d;case 978:return A+d+T+d+d;case 1019:case 983:return A+d+T+d+P+d+d;case 883:return d.charCodeAt(8)===G?A+d+d:d.indexOf("image-set(",11)>0?d.replace(O,"$1"+A+"$2")+d:d;case 932:if(d.charCodeAt(4)===G)switch(d.charCodeAt(5)){case 103:return A+"box-"+d.replace("-grow","")+A+d+P+d.replace("grow","positive")+d;case 115:return A+d+P+d.replace("shrink","negative")+d;case 98:return A+d+P+d.replace("basis","preferred-size")+d}return A+d+P+d+d;case 964:return A+d+P+"flex-"+d+d;case 1023:if(99!==d.charCodeAt(8))break;return u=d.substring(d.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),A+"box-pack"+u+A+d+P+"flex-pack"+u+d;case 1005:return i.test(d)?d.replace(o,":"+A)+d.replace(o,":"+T)+d:d;case 1e3:switch(c=(u=d.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(c)){case 226:u=d.replace(S,"tb");break;case 232:u=d.replace(S,"tb-rl");break;case 220:u=d.replace(S,"lr");break;default:return d}return A+d+P+u+d;case 1017:if(-1===d.indexOf("sticky",9))return d;case 975:switch(c=(d=e).length-10,f=(u=(33===d.charCodeAt(c)?d.substring(0,c):d).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:d=d.replace(u,A+u)+";"+d;break;case 207:case 102:d=d.replace(u,A+(f>102?"inline-":"")+"box")+";"+d.replace(u,A+u)+";"+d.replace(u,P+u+"box")+";"+d}return d+";";case 938:if(d.charCodeAt(5)===G)switch(d.charCodeAt(6)){case 105:return u=d.replace("-items",""),A+d+A+"box-"+u+P+"flex-"+u+d;case 115:return A+d+P+"flex-item-"+d.replace(k,"")+d;default:return A+d+P+"flex-line-pack"+d.replace("align-content","").replace(k,"")+d}break;case 973:case 989:if(d.charCodeAt(3)!==G||122===d.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?fe(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):d.replace(u,A+u)+d.replace(u,T+u.replace("fill-",""))+d;break;case 962:if(d=A+d+(102===d.charCodeAt(5)?P+d:"")+d,r+n===211&&105===d.charCodeAt(13)&&d.indexOf("transform",10)>0)return d.substring(0,d.indexOf(";",27)+1).replace(s,"$1"+A+"$2")+d}return d}function he(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),o=e.substring(r+1,e.length-1);return ne(2!==t?n:n.replace(E,"$1"),o,t)}function pe(e,t){var r=fe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function me(e,t,r,n,o,i,s,a,l,u){for(var c,d=0,f=t;d0&&(se=o.replace(h,91===i?"":"-")),i=1,1===J?le=o:ae=o;var s,a=[le];re>0&&void 0!==(s=me(-1,r,a,a,W,H,0,0,0,0))&&"string"==typeof s&&(r=s);var l=ue(ee,a,r,0,0);return re>0&&void 0!==(s=me(-2,l,a,a,W,H,l.length,0,0,0))&&"string"!=typeof(l=s)&&(i=0),se="",le="",ae="",V=0,W=1,H=1,Y*i==0?l:l.replace(n,"").replace(v,"").replace(y,"$1").replace(b,"$1").replace(w," ")}return ye.use=function e(t){switch(t){case void 0:case null:re=te.length=0;break;default:if("function"==typeof t)te[re++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r{function t(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(e){t.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}})),t.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,t.arguments)}))},e.exports=t},"./node_modules/superagent/lib/client.js":function(e,t,r){var n;"undefined"!=typeof window?n=window:"undefined"!=typeof self?n=self:(console.warn("Using browser-only version of superagent in non-browser environment"),n=this);var o=r("./node_modules/component-emitter/index.js"),i=r("./node_modules/superagent/lib/request-base.js"),s=r("./node_modules/superagent/lib/is-object.js"),a=r("./node_modules/superagent/lib/response-base.js"),l=r("./node_modules/superagent/lib/agent-base.js");function u(){}var c=t=e.exports=function(e,r){return"function"==typeof r?new t.Request("GET",e).end(r):1==arguments.length?new t.Request("GET",e):new t.Request(e,r)};t.Request=v,c.getXHR=function(){if(!(!n.XMLHttpRequest||n.location&&"file:"==n.location.protocol&&n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var d="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function f(e){if(!s(e))return e;var t=[];for(var r in e)h(t,r,e[r]);return t.join("&")}function h(e,t,r){if(null!=r)if(Array.isArray(r))r.forEach((function(r){h(e,t,r)}));else if(s(r))for(var n in r)h(e,t+"["+n+"]",r[n]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));else null===r&&e.push(encodeURIComponent(t))}function p(e){for(var t,r,n={},o=e.split("&"),i=0,s=o.length;i=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==r){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.onprogress=n.bind(null,"download"),t.upload&&(t.upload.onprogress=n.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||c.serialize[o?o.split(";")[0]:""];!i&&m(o)&&(i=c.serialize["application/json"]),i&&(r=i(r))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&t.setRequestHeader(s,this.header[s]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==r?r:null),this},c.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){l.prototype[e.toLowerCase()]=function(t,r){var n=new c.Request(e,t);return this._setDefaults(n),r&&n.end(r),n}})),l.prototype.del=l.prototype.delete,c.get=function(e,t,r){var n=c("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},c.head=function(e,t,r){var n=c("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},c.options=function(e,t,r){var n=c("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},c.del=y,c.delete=y,c.patch=function(e,t,r){var n=c("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},c.post=function(e,t,r){var n=c("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},c.put=function(e,t,r){var n=c("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}},"./node_modules/superagent/lib/is-object.js":e=>{"use strict";e.exports=function(e){return null!==e&&"object"==typeof e}},"./node_modules/superagent/lib/request-base.js":(e,t,r)=>{"use strict";var n=r("./node_modules/superagent/lib/is-object.js");function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this;for(var t in e)switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var i=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(!0===r)return!0;if(!1===r)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.end((function(r,n){r?t(r):e(n)}))}))}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(n(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(e)){for(var r in e)this.field(r,e[r]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=n(e),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&n(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||r||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var r=this.url.substring(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,t)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,r){if(!this._aborted){var n=new Error(e+t+"ms exceeded");n.timeout=t,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},"./node_modules/superagent/lib/response-base.js":(e,t,r)=>{"use strict";var n=r("./node_modules/superagent/lib/utils.js");function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=n.type(t);var r=n.params(t);for(var o in r)this[o]=r[o];this.links={};try{e.link&&(this.links=n.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},"./node_modules/superagent/lib/utils.js":(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var r=t.split(/ *= */),n=r.shift(),o=r.shift();return n&&o&&(e[n]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var r=t.split(/ *; */),n=r[0].slice(1,-1);return e[r[1].split(/ *= */)[1].slice(1,-1)]=n,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},"./node_modules/symbol-observable/es/index.js":(e,t,r)=>{"use strict";r.d(t,{A:()=>n}),e=r.hmd(e);const n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},"./node_modules/theming/dist/theming.esm.js":(e,t,r)=>{"use strict";r.d(t,{DP:()=>y,Dx:()=>p,Jo:()=>h,NP:()=>v,SL:()=>g});var n=r("webpack/sharing/consume/default/react/react"),o=r.n(n),i=r("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),s=r.n(i);r("./node_modules/react-display-name/lib/getDisplayName.js");function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){return(l=Object.assign||function(e){for(var t=1;t{"use strict";r.d(t,{A:()=>n});const n=function(e,t){}},"./node_modules/ua-parser-js/src/ua-parser.js":function(e,t,r){var n;!function(o,i){"use strict";var s="model",a="name",l="type",u="vendor",c="version",d="mobile",f="tablet",h="smarttv",p=function(e){for(var t={},r=0;r0?2===i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:3===i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=a?a.replace(i[1],i[2]):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0:4===i.length&&(this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):this[i]=a||void 0;l+=2}},b=function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n2&&(e[s]="iPad",e[l]=f),e},this.getEngine=function(){var e={name:void 0,version:void 0};return y.call(e,n,u.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return y.call(e,n,u.os),h&&!e[a]&&i&&"Unknown"!=i.platform&&(e[a]=i.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n="string"==typeof e&&e.length>350?v(e,350):e,this},this.setUA(n),this};S.VERSION="0.7.35",S.BROWSER=p([a,c,"major"]),S.CPU=p(["architecture"]),S.DEVICE=p([s,u,l,"console",d,h,f,"wearable","embedded"]),S.ENGINE=S.OS=p([a,c]),void 0!==t?(e.exports&&(t=e.exports=S),t.UAParser=S):r.amdO?void 0===(n=function(){return S}.call(t,r,t,e))||(e.exports=n):void 0!==o&&(o.UAParser=S);var C=void 0!==o&&(o.jQuery||o.Zepto);if(C&&!C.ua){var x=new S;C.ua=x.getResult(),C.ua.get=function(){return x.getUA()},C.ua.set=function(e){x.setUA(e);var t=x.getResult();for(var r in t)C.ua[r]=t[r]}}}("object"==typeof window?window:this)},"./node_modules/universal-cookie/lib/Cookies.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},o=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return this._updateBrowserValues(),d(this.cookies[e],t)}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._updateBrowserValues();var t={};for(var r in this.cookies)t[r]=d(this.cookies[r],e);return t}},{key:"set",value:function(e,t,r){"object"===(void 0===t?"undefined":n(t))&&(t=JSON.stringify(t)),this.hooks&&this.hooks.onSet&&this.hooks.onSet(e,t,r),this.cookies[e]=t,this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.default.serialize(e,t,r)),this._emitChange({name:e,value:t,options:r})}},{key:"remove",value:function(e,t){var r=t=(0,s.default)({},t,{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.hooks&&this.hooks.onRemove&&this.hooks.onRemove(e,r),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.default.serialize(e,"",r)),this._emitChange({name:e,value:void 0,options:t})}},{key:"_emitChange",value:function(e){for(var t=0;t=0&&this.changeListeners.splice(t,1)}}]),e}();function c(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(c(e,t.doNotParse))try{return JSON.parse(e)}catch(e){}return e}t.default=u,e.exports=t.default},"./node_modules/universal-cookie/lib/index.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r("./node_modules/universal-cookie/lib/Cookies.js"),i=(n=o)&&n.__esModule?n:{default:n};t.default=i.default,e.exports=t.default},"./node_modules/universal-cookie/lib/utils.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};function n(){return"object"===("undefined"==typeof document?"undefined":r(document))&&"string"==typeof document.cookie}t.hasDocumentCookie=n,t.cleanCookies=function(){document.cookie.split(";").forEach((function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")}))};t.HAS_DOCUMENT_COOKIE=n()},"./node_modules/universal-cookie/node_modules/cookie/index.js":(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},a=e.split(o),l=i.decode||r,u=0;u{"use strict";r.d(t,{A:()=>o});var n=r("webpack/sharing/consume/default/react/react"),o=n.useLayoutEffect},"./node_modules/usehooks-ts/dist/esm/index.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{useBoolean:()=>o,useClickAnyWhere:()=>i,useCopyToClipboard:()=>a,useCountdown:()=>l,useCounter:()=>u,useDarkMode:()=>c,useDebounce:()=>d,useDocumentTitle:()=>f,useEffectOnce:()=>h,useElementSize:()=>p,useEventCallback:()=>m,useEventListener:()=>g,useFetch:()=>y,useHover:()=>b,useImageOnLoad:()=>w,useIntersectionObserver:()=>_,useInterval:()=>S,useIsClient:()=>C,useIsFirstRender:()=>x,useIsMounted:()=>k,useIsomorphicLayoutEffect:()=>E,useLocalStorage:()=>j,useLockedBody:()=>O,useMap:()=>A,useMediaQuery:()=>T,useOnClickOutside:()=>P,useReadLocalStorage:()=>R,useScreen:()=>N,useScript:()=>M,useSessionStorage:()=>L,useSsr:()=>D,useStep:()=>z,useTernaryDarkMode:()=>F,useTimeout:()=>G,useToggle:()=>$,useUpdateEffect:()=>B,useWindowSize:()=>U});var n=r("webpack/sharing/consume/default/react/react");const o=function(e){const[t,r]=(0,n.useState)(!!e),o=(0,n.useCallback)(()=>r(!0),[]),i=(0,n.useCallback)(()=>r(!1),[]),s=(0,n.useCallback)(()=>r(e=>!e),[]);return{value:t,setValue:r,setTrue:o,setFalse:i,toggle:s}};const i=function(e){g("click",t=>{e(t)})};var s=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const a=function(){const[e,t]=(0,n.useState)(null);return[e,e=>s(this,void 0,void 0,(function*(){if(!(null===navigator||void 0===navigator?void 0:navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return yield navigator.clipboard.writeText(e),t(e),!0}catch(e){return console.warn("Copy failed",e),t(null),!1}}))]};const l=function(e){let t,r,i,s,a=!1;"seconds"in e?(console.warn("[useCountdown:DEPRECATED] new interface is already available (see https://usehooks-ts.com/react-hook/use-countdown), the old version will retire on usehooks-ts@3."),a=!0,t=e.seconds,r=e.interval,i=e.isIncrement):({countStart:t,intervalMs:r,isIncrement:i,countStop:s}=e),r=null!=r?r:1e3,i=null!=i&&i,s=null!=s?s:0;const{count:l,increment:c,decrement:d,reset:f}=u(t),{value:h,setTrue:p,setFalse:m}=o(!1),g=()=>{m(),f()},v=(0,n.useCallback)(()=>{l!==s?i?c():d():m()},[l,s,d,c,i,m]);return S(v,h?r:null),a?[l,{start:p,stop:m,reset:g}]:[l,{startCountdown:p,stopCountdown:m,resetCountdown:g}]};const u=function(e){const[t,r]=(0,n.useState)(e||0);return{count:t,increment:()=>r(e=>e+1),decrement:()=>r(e=>e-1),reset:()=>r(e||0),setCount:r}};const c=function(e){var t;const r=T("(prefers-color-scheme: dark)"),[n,o]=j("usehooks-ts-dark-mode",null!==(t=null!=e?e:r)&&void 0!==t&&t);return B(()=>{o(r)},[r]),{isDarkMode:n,toggle:()=>o(e=>!e),enable:()=>o(!0),disable:()=>o(!1)}};const d=function(e,t){const[r,o]=(0,n.useState)(e);return(0,n.useEffect)(()=>{const r=setTimeout(()=>o(e),t||500);return()=>{clearTimeout(r)}},[e,t]),r};const f=function(e){E(()=>{window.document.title=e},[e])};const h=function(e){(0,n.useEffect)(e,[])};const p=function(){const[e,t]=(0,n.useState)(null),[r,o]=(0,n.useState)({width:0,height:0}),i=(0,n.useCallback)(()=>{o({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return g("resize",i),E(()=>{i()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,r]};function m(e){const t=(0,n.useRef)(()=>{throw new Error("Cannot call an event handler while rendering.")});return E(()=>{t.current=e},[e]),(0,n.useCallback)((...e)=>t.current(...e),[t])}const g=function(e,t,r,o){const i=(0,n.useRef)(t);E(()=>{i.current=t},[t]),(0,n.useEffect)(()=>{var t;const n=null!==(t=null==r?void 0:r.current)&&void 0!==t?t:window;if(!n||!n.addEventListener)return;const s=e=>i.current(e);return n.addEventListener(e,s,o),()=>{n.removeEventListener(e,s,o)}},[e,r,o])};var v=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const y=function(e,t){const r=(0,n.useRef)({}),o=(0,n.useRef)(!1),i={error:void 0,data:void 0},[s,a]=(0,n.useReducer)((e,t)=>{switch(t.type){case"loading":return Object.assign({},i);case"fetched":return Object.assign(Object.assign({},i),{data:t.payload});case"error":return Object.assign(Object.assign({},i),{error:t.payload});default:return e}},i);return(0,n.useEffect)(()=>{if(!e)return;o.current=!1;return(()=>{v(this,void 0,void 0,(function*(){if(a({type:"loading"}),r.current[e])a({type:"fetched",payload:r.current[e]});else try{const n=yield fetch(e,t);if(!n.ok)throw new Error(n.statusText);const i=yield n.json();if(r.current[e]=i,o.current)return;a({type:"fetched",payload:i})}catch(e){if(o.current)return;a({type:"error",payload:e})}}))})(),()=>{o.current=!0}},[e]),s};const b=function(e){const[t,r]=(0,n.useState)(!1);return g("mouseenter",()=>r(!0),e),g("mouseleave",()=>r(!1),e),t};const w=function(){const[e,t]=(0,n.useState)(!1);return{handleImageOnLoad:()=>{t(!0)},css:{thumbnail:{visibility:e?"hidden":"visible",filter:"blur(8px)",transition:"visibility 0ms ease-out 500ms"},fullSize:{opacity:e?1:0,transition:"opacity 500ms ease-in 0ms"}}}};const _=function(e,{threshold:t=0,root:r=null,rootMargin:o="0%",freezeOnceVisible:i=!1}){const[s,a]=(0,n.useState)(),l=(null==s?void 0:s.isIntersecting)&&i,u=([e])=>{a(e)};return(0,n.useEffect)(()=>{const n=null==e?void 0:e.current;if(!!!window.IntersectionObserver||l||!n)return;const i=new IntersectionObserver(u,{threshold:t,root:r,rootMargin:o});return i.observe(n),()=>i.disconnect()},[null==e?void 0:e.current,JSON.stringify(t),r,o,l]),s};const S=function(e,t){const r=(0,n.useRef)(e);E(()=>{r.current=e},[e]),(0,n.useEffect)(()=>{if(!t&&0!==t)return;const e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])};const C=function(){const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)},[]),e};const x=function(){const e=(0,n.useRef)(!0);return e.current?(e.current=!1,!0):e.current};const k=function(){const e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,n.useCallback)(()=>e.current,[])},E="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const j=function(e,t){const r=(0,n.useCallback)(()=>{if("undefined"==typeof window)return t;try{const r=window.localStorage.getItem(e);return r?function(e){try{return"undefined"===e?void 0:JSON.parse(null!=e?e:"")}catch(t){return void console.log("parsing error on",{value:e})}}(r):t}catch(r){return console.warn(`Error reading localStorage key “${e}”:`,r),t}},[t,e]),[o,i]=(0,n.useState)(r),s=m(t=>{"undefined"==typeof window&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const r=t instanceof Function?t(o):t;window.localStorage.setItem(e,JSON.stringify(r)),i(r),window.dispatchEvent(new Event("local-storage"))}catch(t){console.warn(`Error setting localStorage key “${e}”:`,t)}});(0,n.useEffect)(()=>{i(r())},[]);const a=(0,n.useCallback)(t=>{(null==t?void 0:t.key)&&t.key!==e||i(r())},[e,r]);return g("storage",a),g("local-storage",a),[o,s]};const O=function(e=!1,t="___gatsby"){const[r,o]=(0,n.useState)(e);return E(()=>{if(!r)return;const e=document.body.style.overflow,n=document.body.style.paddingRight;document.body.style.overflow="hidden";const o=document.getElementById(t),i=o?o.offsetWidth-o.scrollWidth:0;return i&&(document.body.style.paddingRight=i+"px"),()=>{document.body.style.overflow=e,i&&(document.body.style.paddingRight=n)}},[r]),(0,n.useEffect)(()=>{r!==e&&o(e)},[e]),[r,o]};const A=function(e=new Map){const[t,r]=(0,n.useState)(new Map(e));return[t,{set:(0,n.useCallback)((e,t)=>{r(r=>{const n=new Map(r);return n.set(e,t),n})},[]),setAll:(0,n.useCallback)(e=>{r(()=>new Map(e))},[]),remove:(0,n.useCallback)(e=>{r(t=>{const r=new Map(t);return r.delete(e),r})},[]),reset:(0,n.useCallback)(()=>{r(()=>new Map)},[])}]};const T=function(e){const t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[r,o]=(0,n.useState)(t(e));function i(){o(t(e))}return(0,n.useEffect)(()=>{const t=window.matchMedia(e);return i(),t.addListener?t.addListener(i):t.addEventListener("change",i),()=>{t.removeListener?t.removeListener(i):t.removeEventListener("change",i)}},[e]),r};const P=function(e,t,r="mousedown"){g(r,r=>{const n=null==e?void 0:e.current;n&&!n.contains(r.target)&&t(r)})};const R=function(e){const t=(0,n.useCallback)(()=>{if("undefined"==typeof window)return null;try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return console.warn(`Error reading localStorage key “${e}”:`,t),null}},[e]),[r,o]=(0,n.useState)(t);(0,n.useEffect)(()=>{o(t())},[]);const i=(0,n.useCallback)(r=>{(null==r?void 0:r.key)&&r.key!==e||o(t())},[e,t]);return g("storage",i),g("local-storage",i),r};const N=function(){const e=()=>{if("undefined"!=typeof window&&window.screen)return window.screen},[t,r]=(0,n.useState)(e());function o(){r(e())}return g("resize",o),E(()=>{o()},[]),t},I={};const M=function(e,t){const[r,o]=(0,n.useState)(()=>{var r;return!e||(null==t?void 0:t.shouldPreventLoad)?"idle":"undefined"==typeof window?"loading":null!==(r=I[e])&&void 0!==r?r:"loading"});return(0,n.useEffect)(()=>{var r,n;if(!e||(null==t?void 0:t.shouldPreventLoad))return;const i=I[e];if("ready"===i||"error"===i)return void o(i);const s=function(e){const t=document.querySelector(`script[src="${e}"]`),r=null==t?void 0:t.getAttribute("data-status");return{node:t,status:r}}(e);let a=s.node;if(a)o(null!==(n=null!==(r=s.status)&&void 0!==r?r:i)&&void 0!==n?n:"loading");else{a=document.createElement("script"),a.src=e,a.async=!0,a.setAttribute("data-status","loading"),document.body.appendChild(a);const t=e=>{const t="load"===e.type?"ready":"error";null==a||a.setAttribute("data-status",t)};a.addEventListener("load",t),a.addEventListener("error",t)}const l=t=>{const r="load"===t.type?"ready":"error";o(r),I[e]=r};return a.addEventListener("load",l),a.addEventListener("error",l),()=>{a&&(a.removeEventListener("load",l),a.removeEventListener("error",l)),a&&(null==t?void 0:t.removeOnUnmount)&&a.remove()}},[e,null==t?void 0:t.shouldPreventLoad,null==t?void 0:t.removeOnUnmount]),r};const L=function(e,t){const r=(0,n.useCallback)(()=>{if("undefined"==typeof window)return t;try{const r=window.sessionStorage.getItem(e);return r?function(e){try{return"undefined"===e?void 0:JSON.parse(null!=e?e:"")}catch(t){return void console.log("parsing error on",{value:e})}}(r):t}catch(r){return console.warn(`Error reading sessionStorage key “${e}”:`,r),t}},[t,e]),[o,i]=(0,n.useState)(r),s=m(t=>{"undefined"==typeof window&&console.warn(`Tried setting sessionStorage key “${e}” even though environment is not a client`);try{const r=t instanceof Function?t(o):t;window.sessionStorage.setItem(e,JSON.stringify(r)),i(r),window.dispatchEvent(new Event("session-storage"))}catch(t){console.warn(`Error setting sessionStorage key “${e}”:`,t)}});(0,n.useEffect)(()=>{i(r())},[]);const a=(0,n.useCallback)(t=>{(null==t?void 0:t.key)&&t.key!==e||i(r())},[e,r]);return g("storage",a),g("session-storage",a),[o,s]};const D=function(){const e="undefined"!=typeof window&&window.document&&window.document.documentElement;return{isBrowser:e,isServer:!e}};const z=function(e){const[t,r]=(0,n.useState)(1),o=(0,n.useMemo)(()=>t+1<=e,[t,e]),i=(0,n.useMemo)(()=>t-1>=1,[t]),s=(0,n.useCallback)(n=>{const o=n instanceof Function?n(t):n;if(!(o>=1&&o<=e))throw new Error("Step not valid");r(o)},[e,t]),a=(0,n.useCallback)(()=>{o&&r(e=>e+1)},[o]),l=(0,n.useCallback)(()=>{i&&r(e=>e-1)},[i]),u=(0,n.useCallback)(()=>{r(1)},[]);return[t,{goToNextStep:a,goToPrevStep:l,canGoToNextStep:o,canGoToPrevStep:i,setStep:s,reset:u}]};const F=function(){const e=T("(prefers-color-scheme: dark)"),[t,r]=j("usehooks-ts-ternary-dark-mode","system"),[o,i]=(0,n.useState)(e);return B(()=>{"system"===t&&i(e)},[e]),(0,n.useEffect)(()=>{switch(t){case"light":i(!1);break;case"system":i(e);break;case"dark":i(!0)}},[t,e]),{isDarkMode:o,ternaryDarkMode:t,setTernaryDarkMode:r,toggleTernaryDarkMode:function(){const e={light:"system",system:"dark",dark:"light"};r(t=>e[t])}}};const G=function(e,t){const r=(0,n.useRef)(e);E(()=>{r.current=e},[e]),(0,n.useEffect)(()=>{if(!t&&0!==t)return;const e=setTimeout(()=>r.current(),t);return()=>clearTimeout(e)},[t])};const $=function(e){const[t,r]=(0,n.useState)(!!e);return[t,(0,n.useCallback)(()=>r(e=>!e),[]),r]};const B=function(e,t){const r=x();(0,n.useEffect)(()=>{if(!r)return e()},t)};const U=function(){const[e,t]=(0,n.useState)({width:0,height:0}),r=()=>{t({width:window.innerWidth,height:window.innerHeight})};return g("resize",r),E(()=>{r()},[]),e}},"./node_modules/usertiming/src/usertiming.js":(e,t,r)=>{var n,o=r("./node_modules/process/browser.js");!function(r){"use strict";void 0===r&&(r={}),void 0===r.performance&&(r.performance={}),r._perfRefForUserTimingPolyfill=r.performance,r.performance.userTimingJsNow=!1,r.performance.userTimingJsNowPrefixed=!1,r.performance.userTimingJsUserTiming=!1,r.performance.userTimingJsUserTimingPrefixed=!1,r.performance.userTimingJsPerformanceTimeline=!1,r.performance.userTimingJsPerformanceTimelinePrefixed=!1;var i,s,a=[],l=[],u=null;if("function"!=typeof r.performance.now){for(r.performance.userTimingJsNow=!0,l=["webkitNow","msNow","mozNow"],i=0;i{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},"./node_modules/tslib/tslib.es6.mjs":(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>I,__assign:()=>i,__asyncDelegator:()=>k,__asyncGenerator:()=>x,__asyncValues:()=>E,__await:()=>C,__awaiter:()=>p,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>N,__classPrivateFieldSet:()=>R,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>L,__esDecorate:()=>u,__exportStar:()=>v,__extends:()=>o,__generator:()=>m,__importDefault:()=>T,__importStar:()=>A,__makeTemplateObject:()=>j,__metadata:()=>h,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>s,__runInitializers:()=>c,__setFunctionName:()=>f,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>_,__values:()=>y,default:()=>D});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),f=!1,h=r.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var g=(0,r[h])("accessor"===l?{get:d.get,set:d.set}:d[u],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=s(g.get))&&(d.get=a),(a=s(g.set))&&(d.set=a),(a=s(g.init))&&o.unshift(a)}else(a=s(g))&&("field"===l?o.unshift(a):d[u]=a)}c&&Object.defineProperty(c,n.name,d),f=!0}function c(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function w(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof C?Promise.resolve(r.value.v).then(l,u):c(i[0][2],r)}catch(e){c(i[0][3],e)}var r}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:C(e[n](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&g(t,e,r);return O(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function R(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function I(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function L(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const D={__extends:o,__assign:i,__rest:s,__decorate:a,__param:l,__metadata:h,__awaiter:p,__generator:m,__createBinding:g,__exportStar:v,__values:y,__read:b,__spread:w,__spreadArrays:_,__spreadArray:S,__await:C,__asyncGenerator:x,__asyncDelegator:k,__asyncValues:E,__makeTemplateObject:j,__importStar:A,__importDefault:T,__classPrivateFieldGet:P,__classPrivateFieldSet:R,__classPrivateFieldIn:N,__addDisposableResource:I,__disposeResources:L}}}]); //# sourceMappingURL=https://hybridclient.naiadsystems.com/dist/hybrid/27.5.9/3~ca1be7791510d47437b1.js.map