(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["8971"],{91802:function(e,t,r){"use strict";var n,i=r(15755);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(18134)),a=i(r(74627)),s=i(r(56594));t.default=(0,i(r(36957)).default)({postAction:(n=(0,a.default)(o.default.mark(function e(t,r){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.default.post(t,r);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("LOGGER: sending server error failed. ".concat(e.t0));case 8:case"end":return e.stop()}},e,null,[[0,5]])})),function(e,t){return n.apply(this,arguments)})})},11882:function(e,t,r){"use strict";var n=r(15755);Object.defineProperty(t,"createLogger",{enumerable:!0,get:function(){return i.default}});var i=n(r(91802))},36957:function(e,t,r){"use strict";var n=r(15755);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(18134)),o=n(r(74627)),a=r(37188);t.default=function(e){var t=e.postAction;return function(e){var r,n=e.env,s=e.host,l=e.minLogLevel,u=void 0===l?a.logLevels.WARN:l,c=e.postUrl,f=void 0===c?"":c,d={env:n,host:s,source:e.source,userAgent:e.userAgent,version:e.version},h=(r=(0,o.default)(i.default.mark(function e(r,n){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:a.STORAGE_PREFIX.default,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.STORAGE_HASH_PREFIX.default;(0,i.default)(this,e),this.storagePrefix=t,this.storageHashPrefix=r}return(0,o.default)(e,[{key:"getPrefixedHashName",value:function(e){return this.storagePrefix?"".concat(this.storagePrefix,":").concat(this.storageHashPrefix,":").concat(e):"".concat(this.storageHashPrefix,":").concat(e)}},{key:"getPrefixedName",value:function(e){return this.storagePrefix?"".concat(this.storagePrefix,":").concat(e):"".concat(e)}},{key:"isValid",value:function(e,t){return Object.values(t).find(function(t){return e===t})}}]),e}()},99429:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STORAGE_PREFIX=t.STORAGE_HASH_PREFIX=void 0,t.STORAGE_HASH_PREFIX=Object.freeze({default:"hash"}),t.STORAGE_PREFIX=Object.freeze({default:"ffx",blank:""})},57166:function(e,t,r){"use strict";var n=r(15755);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(61344)),o=n(r(27329)),a=n(r(86291)),s=n(r(72e3)),l=n(r(92703));t.default=function(e){(0,a.default)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,l.default)(n);return e=t?Reflect.construct(r,arguments,(0,l.default)(this).constructor):r.apply(this,arguments),(0,s.default)(this,e)});function n(){return(0,i.default)(this,n),r.apply(this,arguments)}return(0,o.default)(n,[{key:"get",value:function(e,t){if(this.isValid(e,t)){var r=document.cookie.match("(^|;)\\s*".concat(this.getPrefixedName(e),"\\s*=\\s*([^;]+)"));return r?r.pop():""}}},{key:"remove",value:function(e,t){if(!this.isValid(e,t))throw Error("Cookie name is not valid");var r=new Date(1970,1,1,0,0,1);document.cookie="".concat(this.getPrefixedName(e),"=; expires=").concat(r.toUTCString(),"; path=/")}},{key:"set",value:function(e,t,r,n){if(!this.isValid(e,n))throw Error("Cookie name is not valid");var i="";if(r){if("number"!=typeof r)throw Error('"days" must be a number.');var o=new Date;o.setTime(o.getTime()+24*r*36e5),i="; expires=".concat(o.toUTCString())}document.cookie="".concat(this.getPrefixedName(e),"=").concat(t).concat(i,"; path=/")}}]),n}(n(r(6489)).default)},80743:function(e,t,r){"use strict";var n=r(15755);Object.defineProperty(t,"CookieStorage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"LocalStorage",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"STORAGE_PREFIX",{enumerable:!0,get:function(){return i.STORAGE_PREFIX}});var i=r(99429),o=n(r(57166)),a=n(r(22859)),s=n(r(97054));o.default,a.default,s.default},22859:function(e,t,r){"use strict";var n=r(15755);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(61344)),o=n(r(27329)),a=n(r(86291)),s=n(r(72e3)),l=n(r(92703)),u=n(r(68762));t.default=function(e){(0,a.default)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,l.default)(n);return e=t?Reflect.construct(r,arguments,(0,l.default)(this).constructor):r.apply(this,arguments),(0,s.default)(this,e)});function n(){return(0,i.default)(this,n),r.apply(this,arguments)}return(0,o.default)(n,[{key:"getItem",value:function(e,t){if(this.isSupported()&&this.isValid(e,t))try{var r=localStorage.getItem(this.getPrefixedHashName(e)),n=localStorage.getItem(this.getPrefixedName(e));if(!n||(0,u.default)(n)!==r)return;return JSON.parse(n)}catch(e){return}}},{key:"isSupported",value:function(){if(void 0===this.supported)try{var e="__some_random_key_you_are_not_going_to_use__";localStorage.setItem(e,e),localStorage.removeItem(e),this.supported=!0}catch(e){this.supported=!1}return this.supported}},{key:"removeItem",value:function(e,t){if(this.isSupported()){if(!this.isValid(e,t))throw Error("Local Storage Item name is not valid");localStorage.removeItem(this.getPrefixedName(e)),localStorage.removeItem(this.getPrefixedHashName(e))}}},{key:"setItem",value:function(e,t,r){if(this.isSupported()){if(!this.isValid(e,r))throw Error("Local Storage Item name is not valid");var n=JSON.stringify(t);localStorage.setItem(this.getPrefixedName(e),n),localStorage.setItem(this.getPrefixedHashName(e),(0,u.default)(n))}}}]),n}(n(r(6489)).default)},97054:function(e,t,r){"use strict";var n=r(15755);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(61344)),o=n(r(27329)),a=n(r(86291)),s=n(r(72e3)),l=n(r(92703)),u=n(r(68762));t.default=function(e){(0,a.default)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,l.default)(n);return e=t?Reflect.construct(r,arguments,(0,l.default)(this).constructor):r.apply(this,arguments),(0,s.default)(this,e)});function n(){return(0,i.default)(this,n),r.apply(this,arguments)}return(0,o.default)(n,[{key:"getItem",value:function(e,t){if(this.isSupported()&&this.isValid(e,t))try{var r=sessionStorage.getItem(this.getPrefixedHashName(e)),n=sessionStorage.getItem(this.getPrefixedName(e));if(!n||(0,u.default)(n)!==r)return;return JSON.parse(n)}catch(e){return}}},{key:"isSupported",value:function(){if(void 0===this.supported)try{var e="__some_random_key_you_are_not_going_to_use__";sessionStorage.setItem(e,e),sessionStorage.removeItem(e),this.supported=!0}catch(e){this.supported=!1}return this.supported}},{key:"removeItem",value:function(e,t){if(this.isSupported()){if(!this.isValid(e,t))throw Error("Session Storage Item name is not valid");sessionStorage.removeItem(this.getPrefixedName(e)),sessionStorage.removeItem(this.getPrefixedHashName(e))}}},{key:"setItem",value:function(e,t,r){if(this.isSupported()){if(!this.isValid(e,r))throw Error("Session Storage Item name is not valid");var n=JSON.stringify(t);sessionStorage.setItem(this.getPrefixedName(e),n),sessionStorage.setItem(this.getPrefixedHashName(e),(0,u.default)(n))}}}]),n}(n(r(6489)).default)},54006:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});var n,i=(n=r(2784))&&n.__esModule?n:{default:n},o=function(e){var t=e.Helmet,r=e.meta.amp;return(null==r?void 0:r.url)?i.default.createElement(t,null,i.default.createElement("link",{rel:"amphtml",href:null==r?void 0:r.url})):null}},59377:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});var n,i=(n=r(2784))&&n.__esModule?n:{default:n},o=function(e){var t=e.Helmet,r=e.meta,n=r.article,o=r.brand.facebook,a=r.liveArticle,s=r.section;if(!n&&!a)return null;var l=n||a,u=l.firstPublished,c=l.published,f=l.tags;return i.default.createElement(t,null,i.default.createElement("meta",{content:c,property:"article:modified_time"}),u&&i.default.createElement("meta",{content:u,property:"article:published_time"}),(null==o?void 0:o.site)&&i.default.createElement("meta",{content:o.site,property:"article:publisher"}),s&&i.default.createElement("meta",{content:s,property:"article:section"}),(null==f?void 0:f.length)&&f.map(function(e){return i.default.createElement("meta",{key:e,content:e,property:"article:tag"})}))}},96756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});var n,i=(n=r(2784))&&n.__esModule?n:{default:n},o=function(e){var t=e.Helmet,r=e.meta.image;if(!r)return null;var n=r.height,o=r.url,a=r.width;return i.default.createElement(t,null,i.default.createElement("meta",{content:o,property:"og:image"}),i.default.createElement("meta",{content:n.toString(),property:"og:image:height"}),i.default.createElement("meta",{content:o,property:"og:image:secure_url"}),i.default.createElement("meta",{content:a.toString(),property:"og:image:width"}))}},57540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});var n=a(r(2784)),i=a(r(59377)),o=a(r(96756));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.article,r=e.liveArticle;return t||r?"article":"website"},l=function(e){if(e){var t=e.canonical;if(t){var r=t.url;if(r)return r}}},u=function(e){var t=e.Helmet,r=e.meta,a=r.brand.longName,u=r.description,c=r.title,f=s(r),d=l(r);return n.default.createElement(n.default.Fragment,null,n.default.createElement(t,null,u&&n.default.createElement("meta",{content:u,property:"og:description"}),n.default.createElement("meta",{content:a,property:"og:site_name"}),c&&n.default.createElement("meta",{content:c,property:"og:title"}),n.default.createElement("meta",{content:f,property:"og:type"}),d&&n.default.createElement("meta",{content:d,property:"og:url"})),n.default.createElement(i.default,{Helmet:t,meta:r}),n.default.createElement(o.default,{Helmet:t,meta:r}))}},53648:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});var n,i=(n=r(2784))&&n.__esModule?n:{default:n},o=function(e){var t=e.Helmet,r=e.meta.brand.facebook;if(!r)return null;var n=r.appID,o=r.pages;return i.default.createElement(t,null,i.default.createElement("meta",{content:n,property:"fb:app_id"}),null==o?void 0:o.map(function(e){return i.default.createElement("meta",{key:e,content:e,property:"fb:pages"})}))}},41373:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});var n,i=(n=r(2784))&&n.__esModule?n:{default:n},o=function(e){var t=e.Helmet,r=e.meta.brand.google;if(!r)return null;var n=r.site;return i.default.createElement(t,null,i.default.createElement("link",{href:n,rel:"publisher"}))}},67911:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});var n,i=(n=r(2784))&&n.__esModule?n:{default:n},o=function(e){var t=e.Helmet,r=e.meta.brand.iTunes;if(!r)return null;var n=r.appID;return i.default.createElement(t,null,i.default.createElement("meta",{content:n,name:"apple-itunes-app"}))}},11343:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});var n,i=(n=r(2784))&&n.__esModule?n:{default:n};function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);rl});var n={};try{var i=URLSearchParams;if("+"!==new i("q=%2B").get("q")||"+"!==new i({q:"+"}).get("q")||"+"!==new i([["q","+"]]).get("q")||"q=%0A"!==new i("q=\n").toString()||"q=+%26"!==new i({q:" &"}).toString()||"q=%25zx"!==new i({q:"%zx"}).toString())throw i;n.URLSearchParams=i}catch(e){!function(e,t,r){var i=e.create,o=e.defineProperty,a=/[!'\(\)~]|%20|%00/g,s=/%(?![0-9a-fA-F]{2})/g,l=/\+/g,u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"},c={append:function(e,t){p(this._ungap,e,t)},delete:function(e){delete this._ungap[e]},get:function(e){return this.has(e)?this._ungap[e][0]:null},getAll:function(e){return this.has(e)?this._ungap[e].slice(0):[]},has:function(e){return e in this._ungap},set:function(e,r){this._ungap[e]=[t(r)]},forEach:function(e,r){var n=this;for(var i in n._ungap)n._ungap[i].forEach(o,i);function o(o){e.call(r,o,t(i),n)}},toJSON:function(){return{}},toString:function(){var e=[];for(var t in this._ungap)for(var r=m(t),n=0,i=this._ungap[t];ne.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}var c=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners){for(var r=this.listeners[e],n=0,i=r.length;n0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},83096:function(e,t,r){"use strict";r.d(t,{Qp:()=>m,tP:()=>g});var n=!1;if("undefined"!=typeof window){var i={get passive(){n=!0;return}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),a=[],s=!1,l=-1,u=void 0,c=void 0,f=function(e){return a.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},d=function(e){var t=e||window.event;return!!f(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},h=function(e){if(void 0===c){var t=!!e&&!0===e.reserveScrollBarGap,r=window.innerWidth-document.documentElement.clientWidth;t&&r>0&&(c=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")},p=function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)},y=function(e,t){var r=e.targetTouches[0].clientY-l;return!f(e.target)&&(t&&0===t.scrollTop&&r>0?d(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&r<0?d(e):(e.stopPropagation(),!0))},m=function(e,t){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");!a.some(function(t){return t.targetElement===e})&&(a=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),l=a(o),u=l.write(n,i);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e)){var c=e;if(P(c,Uint8Array)){var y=new Uint8Array(c);return d(y.buffer,y.byteOffset,y.byteLength)}return f(c)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var m=e.valueOf&&e.valueOf();if(null!=m&&m!==e)return s.from(m,t,r);var g=function(e){if(s.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(g)return g;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var f=!0,d=0;d239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}var d=n,h=d.length;if(h<=4096)return String.fromCharCode.apply(String,d);for(var p="",y=0;yr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,o){return t*=1,r>>>=0,o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,o){return t*=1,r>>>=0,o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,f,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,f);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||_(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},29919:function(e,t,r){"use strict";var n=r(4090),i=r(49638),o=r(68418);e.exports=r(36476)||n.call(o,i)},26497:function(e,t,r){"use strict";var n=r(4090),i=r(49638),o=r(29919);e.exports=function(){return o(n,i,arguments)}},49638:function(e){"use strict";e.exports=Function.prototype.apply},68418:function(e){"use strict";e.exports=Function.prototype.call},68381:function(e,t,r){"use strict";var n=r(4090),i=r(5408),o=r(68418),a=r(29919);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},36476:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},89429:function(e,t,r){"use strict";var n=r(47669),i=r(70999),o=r(68381),a=r(26497);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},8435:function(e,t,r){"use strict";var n=r(67286),i=r(68381),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},5792:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function d(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=f(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(n.blob)return this.blob().then(h);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,o=f(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=d(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n-1?i:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),("GET"===this.method||"HEAD"===this.method)&&("no-store"===r.cache||"no-cache"===r.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function b(e,t){if(!(this instanceof b))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _=[301,302,303,307,308];b.redirect=function(e,t){if(-1===_.indexOf(t))throw RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function w(r,i){return new Promise(function(o,a){var u=new g(r,i);if(u.signal&&u.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var f=new XMLHttpRequest;function d(){f.abort()}if(f.onload=function(){var e,t,r={statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===u.url.indexOf("file://")&&(f.status<200||f.status>599)?r.status=200:r.status=f.status,r.url="responseURL"in f?f.responseURL:r.headers.get("X-Request-URL");var n="response"in f?f.response:f.responseText;setTimeout(function(){o(new b(n,r))},0)},f.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},f.ontimeout=function(){setTimeout(function(){a(TypeError("Network request timed out"))},0)},f.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},f.open(u.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?f.withCredentials=!0:"omit"===u.credentials&&(f.withCredentials=!1),"responseType"in f&&(n.blob?f.responseType="blob":n.arrayBuffer&&(f.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof c||t.Headers&&i.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(i.headers).forEach(function(e){h.push(s(e)),f.setRequestHeader(e,l(i.headers[e]))}),u.headers.forEach(function(e,t){-1===h.indexOf(t)&&f.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){f.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",d),f.onreadystatechange=function(){4===f.readyState&&u.signal.removeEventListener("abort",d)}),f.send(void 0===u._bodyInit?null:u._bodyInit)})}w.polyfill=!0,t.fetch||(t.fetch=w,t.Headers=c,t.Request=g,t.Response=b),e.Headers=c,e.Request=g,e.Response=b,e.fetch=w,Object.defineProperty(e,"__esModule",{value:!0})})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},19562:function(e){var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.exports=r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 0xff00ff&r.rotl(e,8)|0xff00ff00&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],n=0,i=0;n>>6-2*i);return r}}},75195:function(e,t,r){"use strict";var n=r(70999),i=r(48342),o=r(5408),a=r(50326);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===l&&f?f.writable:!l});else if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},5141:function(e,t,r){"use strict";var n,i=r(68381),o=r(50326);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},46416:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;th});var s=[1,18,"undefined"!=typeof window&&window.innerHeight||800],l=[-1,-1,-1],u=a({preventWheelAction:!0,reverseSign:[!0,!0,!1]});function c(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:400}}let f=function(e){void 0===e&&(e={});var t,r,f,d,h,p=function(){var e={};function t(t,r){e[t]=(e[t]||[]).filter(function(e){return e!==r})}return a({on:function(r,n){return e[r]=(e[r]||[]).concat(n),function(){return t(r,n)}},off:t,dispatch:function(t,r){t in e&&e[t].forEach(function(e){return e(r)})}})}(),y=p.on,m=p.off,g=p.dispatch,v=u,b=c(),_=!1,w=function(e){Array.isArray(e)?e.forEach(function(e){return O(e)}):O(e)},E=function(e){return(void 0===e&&(e={}),Object.values(e).some(function(e){return null==e}))?v:v=a(n({},u,v,e))},S=function(e){var t=n({event:d,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:b.isMomentum,axisDelta:[0,0,0],axisVelocity:b.axisVelocity,axisMovement:b.axisMovement,get axisMovementProjection(){return i(t.axisMovement,t.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);g("wheel",n({},t,{previous:h})),h=t},x=function(e,t){var r=v.preventWheelAction,n=t[0],i=t[1],o=t[2];if("boolean"==typeof r)return r;switch(r){case"x":return Math.abs(n)>=e;case"y":return Math.abs(i)>=e;case"z":return Math.abs(o)>=e;default:return!1}},O=function(e){var t,r,a,u,c=(u=function(e,t){if(!t)return e;var r=!0===t?l:t.map(function(e){return e?-1:1});return n({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*r[t]})})}((t=e.deltaX*s[e.deltaMode],r=e.deltaY*s[e.deltaMode],a=(e.deltaZ||0)*s[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[t,r,a]}),v.reverseSign),n({},u,{axisDelta:u.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),f=c.axisDelta,h=c.timeStamp,p=o(f);if(e.preventDefault&&x(p,f)&&e.preventDefault(),b.isStarted?b.isMomentum&&p>Math.max(2,2*b.lastAbsDelta)&&(j(!0),D()):D(),0===p&&Object.is&&Object.is(e.deltaX,-0)){_=!0;return}d=e,b.axisMovement=i(b.axisMovement,f),b.lastAbsDelta=p,b.scrollPointsToMerge.push({axisDelta:f,timeStamp:h}),k(),S({axisDelta:f,isStart:!b.isStartPublished}),b.isStartPublished=!0,M()},k=function(){if(2===b.scrollPointsToMerge.length){var e;b.scrollPoints.unshift({axisDeltaSum:b.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(i),timeStamp:(e=b.scrollPointsToMerge.map(function(e){return e.timeStamp})).reduce(function(e,t){return e+t})/e.length}),C(),b.scrollPointsToMerge.length=0,b.scrollPoints.length=1,b.isMomentum||R()}else b.isStartPublished||T()},T=function(){var e;b.axisVelocity=(e=b.scrollPointsToMerge)[e.length-1].axisDelta.map(function(e){return e/b.willEndTimeout})},C=function(){var e=b.scrollPoints,t=e[0],r=e[1];if(r&&t){var n=t.timeStamp-r.timeStamp;if(n<=0)return;var i=t.axisDeltaSum.map(function(e){return e/n}),o=i.map(function(e,t){return e/(b.axisVelocity[t]||1)});b.axisVelocity=i,b.accelerationFactors.push(o),P(n)}},P=function(e){var t=10*Math.ceil(e/10)*1.2;b.isMomentum||(t=Math.max(100,2*t)),b.willEndTimeout=Math.min(1e3,Math.round(t))},A=function(e){return 0===e||e<=.96&&e>=.6},R=function(){if(b.accelerationFactors.length>=5){if(_&&(_=!1,o(b.axisVelocity)>=.2))return void I();var e=b.accelerationFactors.slice(-5);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),r=e.filter(A).length===e.length;return t||r})&&I(),b.accelerationFactors=e}},I=function(){b.isMomentum=!0},D=function(){(b=c()).isStarted=!0,b.startTime=Date.now(),h=void 0,_=!1},M=function(){clearTimeout(t),t=setTimeout(j,b.willEndTimeout)},j=function(e){void 0===e&&(e=!1),b.isStarted&&(b.isMomentum&&e?S({isEnding:!0,isMomentumCancel:!0}):S({isEnding:!0}),b.isMomentum=!1,b.isStarted=!1)},N=(r=[],a({observe:function(e){return e.addEventListener("wheel",w,{passive:!1}),r.push(e),function(){return f(e)}},unobserve:f=function(e){e.removeEventListener("wheel",w),r=r.filter(function(t){return t!==e})},disconnect:function(){r.forEach(f)}})),L=N.observe,F=N.unobserve,U=N.disconnect;return E(e),a({on:y,off:m,observe:L,unobserve:F,disconnect:U,feedWheel:w,updateOptions:E})};var d={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function h(e){void 0===e&&(e={});var t,r=function(){};return{name:"wheelGestures",options:e,init:function(n,i){var o,a,s,l=i.mergeOptions,u=i.optionsAtMedia,c=l(d,h.globalOptions);t=u(l(c,e));var p=n.internalEngine(),y=null!=(o=t.target)?o:n.containerNode().parentNode,m=null!=(a=t.forceWheelAxis)?a:p.options.axis,g=f({preventWheelAction:m,reverseSign:[!0,!0,!1]});function v(){S=("x"===m?p.containerRect.width:p.containerRect.height)/2}var b=g.observe(y),_=g.on("wheel",function(e){var n=e.axisDelta,i=n[0],o=n[1],a="x"===m?i:o,l="x"===m?o:i,u=e.isMomentum&&e.previous&&!e.previous.isMomentum,c=e.isEnding&&!e.isMomentum||u;!(Math.abs(a)>Math.abs(l))||w||e.isMomentum||x||function(e){try{s=new MouseEvent("mousedown",e.event),P(s)}catch(e){return r()}w=!0,E=0,document.documentElement.addEventListener("mousemove",T,!0),document.documentElement.addEventListener("mouseup",T,!0),document.documentElement.addEventListener("mousedown",T,!0),t.wheelDraggingClass&&y.classList.add(t.wheelDraggingClass)}(e),x&&e.isEnding&&(x=!1),w&&!function(e){var t=A(e),r=t.isAtBoundary,n=t.primaryAxisDelta;if(r&&!e.isMomentum){if((E+=Math.abs(n))>S)return x=!0,O(e),!0}else E=0;return!1}(e)&&(c?O(e):P(C("mousemove",e)))}),w=!1,E=0,S=0,x=!1;function O(e){w=!1,P(C("mouseup",e)),k(),t.wheelDraggingClass&&y.classList.remove(t.wheelDraggingClass)}function k(){document.documentElement.removeEventListener("mousemove",T,!0),document.documentElement.removeEventListener("mouseup",T,!0),document.documentElement.removeEventListener("mousedown",T,!0)}function T(e){w&&e.isTrusted&&e.stopImmediatePropagation()}function C(e,t){if(m===p.options.axis){var r,n,i=t.axisMovement;r=i[0],n=i[1]}else{var o=t.axisMovement;n=o[0],r=o[1]}if(A(t).isAtBoundary){var a=Math.min(E/S,1),l=E*(r>0?-1:1)*(.25+.5*a);r+=l,n+=l}if(!p.options.skipSnaps&&!p.options.dragFree){var u=p.containerRect.width,c=p.containerRect.height;r=r<0?Math.max(r,-u):Math.min(r,u),n=n<0?Math.max(n,-c):Math.min(n,c)}return new MouseEvent(e,{clientX:s.clientX+r,clientY:s.clientY+n,screenX:s.screenX+r,screenY:s.screenY+n,movementX:r,movementY:n,button:0,bubbles:!0,cancelable:!0,composed:!0})}function P(e){n.containerNode().dispatchEvent(e)}function A(e){var t=e.axisDelta,r=t[0],i=t[1],o=n.scrollProgress(),a="x"===m?r:i;return{isAtBoundary:a<0&&!(o<1)||a>0&&!(o>0),primaryAxisDelta:a}}v(),n.on("resize",v),r=function(){b(),_(),n.off("resize",v),k()}},destroy:function(){return r()}}}h.globalOptions=void 0},70999:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},69654:function(e){"use strict";e.exports=EvalError},42321:function(e){"use strict";e.exports=Error},48205:function(e){"use strict";e.exports=RangeError},2976:function(e){"use strict";e.exports=ReferenceError},48342:function(e){"use strict";e.exports=SyntaxError},5408:function(e){"use strict";e.exports=TypeError},82885:function(e){"use strict";e.exports=URIError},54546:function(e){"use strict";e.exports=Object},22699:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var i,o,a;function s(r){e.removeListener(t,l),n(r)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}y(e,t,l,{once:!0}),"error"!==t&&(i=e,o=s,a={once:!0},"function"==typeof i.on&&y(i,"error",o,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=p(l,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},85978:function(e){!function(){"use strict";var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return r}):e.exports?e.exports=r:window.ExecutionEnvironment=r}()},69378:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},83243:function(e,t,r){"use strict";var n=r(9680),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n=3&&(o=r),"[object Array]"===i.call(e))?a(e,t,o):"string"==typeof e?s(e,t,o):l(e,t,o)}},76936:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=H(e),n=r.length>0?r[0]:"",i=G("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],B(r,U([0,1],l)));for(var f=1,d=!0;f=r.length){var m=w(a,h);a=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else d=F(a,h),a=a[h];d&&!s&&(D[o]=a)}}return a}},2938:function(e,t,r){"use strict";e.exports=r(54546).getPrototypeOf||null},78354:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},21750:function(e,t,r){"use strict";var n=r(78354),i=r(2938),o=r(5141);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},93165:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},50326:function(e,t,r){"use strict";var n=r(93165);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},81181:function(e,t,r){"use strict";var n=r(70999),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},32636:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(66679);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},66679:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},67226:function(e,t,r){"use strict";var n=r(66679);e.exports=function(){return n()&&!!Symbol.toStringTag}},72196:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(4090).call(n,i)},73463:function(e,t,r){"use strict";var n=r(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);f&&(a=a.concat(f(r)));for(var s=l(t),y=l(r),m=0;m>1,c=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,d=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,y=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=d/l:t+=d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*y}},91285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},47677:function(e){"use strict";e.exports=function(e,t,r,n,i,o,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,i,o,a,s],c=0;(l=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},13335:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){var r;return null!=e&&(t(e)||"function"==typeof(r=e).readFloatLE&&"function"==typeof r.slice&&t(r.slice(0,0))||!!e._isBuffer)}},9680:function(e){"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=l.call(e);return("[object Function]"===t||"[object GeneratorFunction]"===t||!!/^\[object HTML/.test(t))&&s(e)}},77906:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},9599:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}e.exports=function(e,r,n){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof r&&(n=r,r={}),n=n||function(){},o.type=(r=r||{}).type||"text/javascript",o.charset=r.charset||"utf8",o.async=!("async"in r)||!!r.async,o.src=e,r.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(o,r.attrs),r.text&&(o.text=""+r.text),("onload"in o?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(o,n),o.onload||t(o,n),i.appendChild(o)}},80594:function(e,t,r){var n=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,f=u||c||Function("return this")(),d=Object.prototype.toString,h=Math.max,p=Math.min,y=function(){return f.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==d.call(t))return n;if(m(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=m(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?n:+e}e.exports=function(e,t,r){var n,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function b(e){var r=e-l,n=e-u;return void 0===l||r>=t||r<0||f&&n>=o}function _(){var e,r,n,i=y();if(b(i))return w(i);s=setTimeout(_,(e=i-l,r=i-u,n=t-e,f?p(n,o-r):n))}function w(e){return(s=void 0,d&&n)?v(e):(n=i=void 0,a)}function E(){var e,r=y(),o=b(r);if(n=arguments,i=this,l=r,o){if(void 0===s)return u=e=l,s=setTimeout(_,t),c?v(e):a;if(f)return s=setTimeout(_,t),v(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=g(t)||0,m(r)&&(c=!!r.leading,o=(f="maxWait"in r)?h(g(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d),E.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=i=s=void 0},E.flush=function(){return void 0===s?a:w(y())},E}},14383:function(e){"use strict";e.exports=Math.abs},45736:function(e){"use strict";e.exports=Math.floor},68806:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},27130:function(e){"use strict";e.exports=Math.max},22400:function(e){"use strict";e.exports=Math.min},23654:function(e){"use strict";e.exports=Math.pow},96890:function(e){"use strict";e.exports=Math.round},82026:function(e,t,r){"use strict";var n=r(68806);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},27993:function(e,t,r){"use strict";var n=r(91285),i=r(93793),o=r(77834).Buffer,a=Array(16);function s(){i.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function l(e,t){return e<>>32-t}function u(e,t,r,n,i,o,a){return l(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return l(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return l(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return l(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=0;e<16;++e)a[e]=this._block.readInt32LE(4*e);var t=this._a,r=this._b,n=this._c,i=this._d;t=u(t,r,n,i,a[0],0xd76aa478,7),i=u(i,t,r,n,a[1],0xe8c7b756,12),n=u(n,i,t,r,a[2],0x242070db,17),r=u(r,n,i,t,a[3],0xc1bdceee,22),t=u(t,r,n,i,a[4],0xf57c0faf,7),i=u(i,t,r,n,a[5],0x4787c62a,12),n=u(n,i,t,r,a[6],0xa8304613,17),r=u(r,n,i,t,a[7],0xfd469501,22),t=u(t,r,n,i,a[8],0x698098d8,7),i=u(i,t,r,n,a[9],0x8b44f7af,12),n=u(n,i,t,r,a[10],0xffff5bb1,17),r=u(r,n,i,t,a[11],0x895cd7be,22),t=u(t,r,n,i,a[12],0x6b901122,7),i=u(i,t,r,n,a[13],0xfd987193,12),n=u(n,i,t,r,a[14],0xa679438e,17),r=u(r,n,i,t,a[15],0x49b40821,22),t=c(t,r,n,i,a[1],0xf61e2562,5),i=c(i,t,r,n,a[6],0xc040b340,9),n=c(n,i,t,r,a[11],0x265e5a51,14),r=c(r,n,i,t,a[0],0xe9b6c7aa,20),t=c(t,r,n,i,a[5],0xd62f105d,5),i=c(i,t,r,n,a[10],0x2441453,9),n=c(n,i,t,r,a[15],0xd8a1e681,14),r=c(r,n,i,t,a[4],0xe7d3fbc8,20),t=c(t,r,n,i,a[9],0x21e1cde6,5),i=c(i,t,r,n,a[14],0xc33707d6,9),n=c(n,i,t,r,a[3],0xf4d50d87,14),r=c(r,n,i,t,a[8],0x455a14ed,20),t=c(t,r,n,i,a[13],0xa9e3e905,5),i=c(i,t,r,n,a[2],0xfcefa3f8,9),n=c(n,i,t,r,a[7],0x676f02d9,14),r=c(r,n,i,t,a[12],0x8d2a4c8a,20),t=f(t,r,n,i,a[5],0xfffa3942,4),i=f(i,t,r,n,a[8],0x8771f681,11),n=f(n,i,t,r,a[11],0x6d9d6122,16),r=f(r,n,i,t,a[14],0xfde5380c,23),t=f(t,r,n,i,a[1],0xa4beea44,4),i=f(i,t,r,n,a[4],0x4bdecfa9,11),n=f(n,i,t,r,a[7],0xf6bb4b60,16),r=f(r,n,i,t,a[10],0xbebfbc70,23),t=f(t,r,n,i,a[13],0x289b7ec6,4),i=f(i,t,r,n,a[0],0xeaa127fa,11),n=f(n,i,t,r,a[3],0xd4ef3085,16),r=f(r,n,i,t,a[6],0x4881d05,23),t=f(t,r,n,i,a[9],0xd9d4d039,4),i=f(i,t,r,n,a[12],0xe6db99e5,11),n=f(n,i,t,r,a[15],0x1fa27cf8,16),r=f(r,n,i,t,a[2],0xc4ac5665,23),t=d(t,r,n,i,a[0],0xf4292244,6),i=d(i,t,r,n,a[7],0x432aff97,10),n=d(n,i,t,r,a[14],0xab9423a7,15),r=d(r,n,i,t,a[5],0xfc93a039,21),t=d(t,r,n,i,a[12],0x655b59c3,6),i=d(i,t,r,n,a[3],0x8f0ccc92,10),n=d(n,i,t,r,a[10],0xffeff47d,15),r=d(r,n,i,t,a[1],0x85845dd1,21),t=d(t,r,n,i,a[8],0x6fa87e4f,6),i=d(i,t,r,n,a[15],0xfe2ce6e0,10),n=d(n,i,t,r,a[6],0xa3014314,15),r=d(r,n,i,t,a[13],0x4e0811a1,21),t=d(t,r,n,i,a[4],0xf7537e82,6),i=d(i,t,r,n,a[11],0xbd3af235,10),n=d(n,i,t,r,a[2],0x2ad7d2bb,15),r=d(r,n,i,t,a[9],0xeb86d391,21),this._a=this._a+t|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},93793:function(e,t,r){"use strict";var n=r(77834).Buffer,i=r(67525).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91285)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){var r=e;if(!n.isBuffer(r)&&"string"!=typeof r)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var i=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=l,(l=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*l);return this},o.prototype._update=function(){throw Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=o},68762:function(e,t,r){var n,i,o,a,s;n=r(19562),i=r(5792).utf8,o=r(13335),a=r(5792).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):i.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var r=n.bytesToWords(e),l=8*e.length,u=0x67452301,c=-0x10325477,f=-0x67452302,d=0x10325476,h=0;h>>24)&0xff00ff|(r[h]<<24|r[h]>>>8)&0xff00ff00;r[l>>>5]|=128<>>9<<4)+14]=l;for(var p=s._ff,y=s._gg,m=s._hh,g=s._ii,h=0;h>>0,c=c+b>>>0,f=f+_>>>0,d=d+w>>>0}return n.endian([u,c,f,d])})._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<>>32-o)+t},s._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<>>32-o)+t},s._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<>>32-o)+t},s._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<>>32-o)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw Error("Illegal argument "+e);var r=n.wordsToBytes(s(e,t));return t&&t.asBytes?r:t&&t.asString?a.bytesToString(r):n.bytesToHex(r)}},32747:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){this.buffer=e}},9159:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_BINARY="binary",t.FORMAT_TEXT_MAP="text_map",t.FORMAT_HTTP_HEADERS="http_headers",t.REFERENCE_CHILD_OF="child_of",t.REFERENCE_FOLLOWS_FROM="follows_from"},95260:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SPAN_KIND="span.kind",t.SPAN_KIND_RPC_CLIENT="client",t.SPAN_KIND_RPC_SERVER="server",t.SPAN_KIND_MESSAGING_PRODUCER="producer",t.SPAN_KIND_MESSAGING_CONSUMER="consumer",t.ERROR="error",t.COMPONENT="component",t.SAMPLING_PRIORITY="sampling.priority",t.PEER_SERVICE="peer.service",t.PEER_HOSTNAME="peer.hostname",t.PEER_ADDRESS="peer.address",t.PEER_HOST_IPV4="peer.ipv4",t.PEER_HOST_IPV6="peer.ipv6",t.PEER_PORT="peer.port",t.HTTP_URL="http.url",t.HTTP_METHOD="http.method",t.HTTP_STATUS_CODE="http.status_code",t.MESSAGE_BUS_DESTINATION="message_bus.destination",t.DB_INSTANCE="db.instance",t.DB_STATEMENT="db.statement",t.DB_TYPE="db.type",t.DB_USER="db.user"},91889:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9159),i=r(71659),o=r(95646);t.childOf=function(e){return e instanceof o.default&&(e=e.context()),new i.default(n.REFERENCE_CHILD_OF,e)},t.followsFrom=function(e){return e instanceof o.default&&(e=e.context()),new i.default(n.REFERENCE_FOLLOWS_FROM,e)}},75747:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(78953),a=new o.default,s=null,l=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.startSpan=function(){var e=s||a;return e.startSpan.apply(e,arguments)},t.prototype.inject=function(){var e=s||a;return e.inject.apply(e,arguments)},t.prototype.extract=function(){var e=s||a;return e.extract.apply(e,arguments)},t}(o.default));t.initGlobalTracer=function(e){s=e},t.globalTracer=function(){return l}},50012:function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryCarrier=r(32747).default,t.Tags=r(95260);var i=r(76606);t.Reference=r(71659).default,t.Span=r(95646).default,t.SpanContext=r(89281).default,t.Tracer=r(78953).Tracer,t.MockTracer=r(90522).MockTracer,n(r(75747)),n(r(9159)),n(r(91889)),i.initialize()},90522:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockContext=r(58354).default,t.MockSpan=r(12695).default,t.MockTracer=r(90333).default},58354:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var r=e.call(this)||this;return r._span=t,r}return i(t,e),t.prototype.span=function(){return this._span},t}(r(50012).SpanContext);t.MockContext=o,t.default=o},77210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.spans=e,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],e.forEach(function(e){0===e._finishMs&&t.unfinishedSpans.push(e),t.spansByUUID[e.uuid()]=e,t.debugSpans.push(e.debug());var r=e.tags();Object.keys(r).forEach(function(n){var i=r[n];t.spansByTag[n]=t.spansByTag[n]||{},t.spansByTag[n][i]=t.spansByTag[n][i]||[],t.spansByTag[n][i].push(e)})})}return e.prototype.firstSpanWithTagValue=function(e,t){var r=this.spansByTag[e];if(!r)return null;var n=r[t];return n?n[0]:null},e}();t.MockReport=r,t.default=r},12695:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(50012),a=r(58354),s=function(e){function t(t){var r=e.call(this)||this;return r._mockTracer=t,r._uuid=r._generateUUID(),r._startMs=Date.now(),r._finishMs=0,r._operationName="",r._tags={},r._logs=[],r}return i(t,e),t.prototype._context=function(){return new a.default(this)},t.prototype._setOperationName=function(e){this._operationName=e},t.prototype._addTags=function(e){for(var t=Object.keys(e),r=0;rN,PY:()=>j,ld:()=>R});var n,i,o,a,s,l,u,c,f,d,h,p,y,m,g,v,b,_,w=r(52322),E=r(2784);(n=d||(d={})).CONNECTED="connected",n.AUTHORIZATION_EXPIRED="authorization_expired",n.NOT_AUTHORIZED="not_authorized",n.UNKNOWN="unknown";var S=d;class x extends Error{constructor(e,t,r){super(`[react-facebook] ${e} (code: ${t}, type: ${r})`),this.name="FBError",this.code=t,this.type=r}}(i=h||(h={})).GET="get",i.POST="post",i.DELETE="delete";let O={domain:"connect.facebook.net",version:"v23.0",cookie:!1,status:!1,xfbml:!1,language:"en_US",frictionlessRequests:!1,debug:!1,chatSupport:!1,autoLogAppEvents:!0,lazy:!1};function k(e){return"object"==typeof e&&null!==e&&"error"in e}var T=(0,E.createContext)(void 0);let C={autoConfig:!0,debug:!1,advancedMatching:{}},P=(0,E.createContext)(void 0);function A(e){let{children:t,lazy:r=!1,...n}=e,[i,o]=(0,E.useState)(!0),[a,s]=(0,E.useState)(void 0),l=(0,E.useRef)(void 0),u=(0,E.useRef)(void 0),c=(0,E.useRef)(n);c.current=n;let f=(0,E.useCallback)(async()=>(u.current||(u.current=(async()=>{try{if(l.current)return;o(!0),s(void 0),l.current=function(e){var t;let r;if(!e.pixelId)throw Error("You need to set pixelId");let n={...C,...e,debug:null!=(t=e.debug)&&t};function i(...e){n.debug&&console.info("[react-facebook-pixel]",...e)}async function o(){return r||(r=new Promise((e,t)=>{if("undefined"==typeof window||window.fbq)return void e();let r=document.createElement("script");r.async=!0,r.src="https://connect.facebook.net/en_US/fbevents.js",r.onload=()=>{if(!window.fbq){let e=function(...t){e.callMethod?e.callMethod(...t):e.queue.push(t)};e.queue=[],e.loaded=!0,e.version="2.0",e.push=e,window.fbq=e}window._fbq||(window._fbq=window.fbq),e()},r.onerror=()=>{!function(...e){n.debug&&console.warn("[react-facebook-pixel]",...e)}("Failed to load Facebook Pixel script"),t(Error("[react-facebook] Failed to load Facebook Pixel script. This may be caused by an ad blocker or network issue."))},document.head.appendChild(r)}).then(()=>{if("undefined"==typeof window||!window.fbq)return y;let{pixelId:e,autoConfig:t,advancedMatching:r}=n;return!1===t&&window.fbq("set","autoConfig",!1,e),window.fbq("init",e,r),i("Pixel initialized successfully"),y}).catch(e=>{throw r=void 0,e}))}function a(){let e=window.fbq;if(!e)throw Error("[react-facebook] Facebook Pixel not initialized");return e}async function s(){await o(),a()("track","PageView"),i("Called fbq('track', 'PageView')")}async function l(e,t){await o(),a()("track",e,t),i(`Called fbq('track', '${e}')`),t&&i("with data:",t)}async function u(e,t,r){await o(),a()("trackSingle",e,t,r),i(`Called fbq('trackSingle', '${e}', '${t}')`),r&&i("with data:",r)}async function c(e,t){await o(),a()("trackCustom",e,t),i(`Called fbq('trackCustom', '${e}')`),t&&i("with data:",t)}async function f(e,t,r){await o(),a()("trackSingleCustom",e,t,r),i(`Called fbq('trackSingleCustom', '${e}', '${t}')`),r&&i("with data:",r)}async function d(){await o(),a()("consent","grant"),i("Called fbq('consent', 'grant')")}async function h(){await o(),a()("consent","revoke"),i("Called fbq('consent', 'revoke')")}async function p(...e){await o(),a()(...e),i(`Called fbq('${e.slice(0,2).join("', '")}')`),e[2]&&i("with data:",e[2])}let y={init:o,pageView:s,track:l,trackSingle:u,trackCustom:c,trackSingleCustom:f,grantConsent:d,revokeConsent:h,fbq:p,isInitialized:function(){return!!r},getOptions:function(){return{...n}}};return y}(c.current),await l.current.init()}catch(e){s(e instanceof Error?e:Error(String(e)))}finally{o(!1)}})()),u.current),[]),d=(0,E.useCallback)(async()=>{var e;await f(),await (null==(e=l.current)?void 0:e.pageView())},[f]),h=(0,E.useCallback)(async(e,t)=>{var r;await f(),await (null==(r=l.current)?void 0:r.track(e,t))},[f]),p=(0,E.useCallback)(async(e,t)=>{var r;await f(),await (null==(r=l.current)?void 0:r.trackCustom(e,t))},[f]),y=(0,E.useCallback)(async()=>{var e;await f(),await (null==(e=l.current)?void 0:e.grantConsent())},[f]),m=(0,E.useCallback)(async()=>{var e;await f(),await (null==(e=l.current)?void 0:e.revokeConsent())},[f]),g=(0,E.useCallback)(async(...e)=>{var t;await f(),await (null==(t=l.current)?void 0:t.fbq(...e))},[f]);(0,E.useEffect)(()=>{r||f()},[r]);let v=(0,E.useMemo)(()=>({loading:i,error:a,init:f,pixel:l.current,pageView:d,track:h,trackCustom:p,grantConsent:y,revokeConsent:m,fbq:g}),[i,a,f,d,h,p,y,m,g]);return(0,w.jsx)(P.Provider,{value:v,children:t})}function R(e){let{children:t,pixelId:r,...n}=e,[i,o]=(0,E.useState)(!0),[a,s]=(0,E.useState)(!1),[l,u]=(0,E.useState)(),[c,f]=(0,E.useState)(n.language||"en_US"),d=(0,E.useRef)(void 0),p=(0,E.useRef)(void 0),y=(0,E.useRef)(n);y.current=n;let m=(0,E.useCallback)(async()=>(p.current||(p.current=(async()=>{try{if(d.current)return d.current;return s(!1),o(!0),d.current=function(e){let t;if(!e.appId)throw Error("[react-facebook] You need to set appId");let r={...O,...e};function n(){if("undefined"!=typeof window)return window.FB}async function i(){return"undefined"==typeof window?_:(t||(t=new Promise((e,n)=>{let i,{domain:o,language:a,debug:s,chatSupport:l,...u}=r,c={appId:u.appId,version:u.version,cookie:u.cookie,status:u.status,xfbml:u.xfbml,frictionlessRequests:u.frictionlessRequests},f=setTimeout(()=>{i&&clearInterval(i),t=void 0,_.loadingPromise=void 0,n(Error("[react-facebook] Facebook SDK loading timed out after 10 seconds. This may be caused by an ad blocker or network issue."))},1e4);function d(){i&&clearInterval(i),clearTimeout(f),window.FB.init(c),e(_)}if(window.fbAsyncInit=d,window.document.getElementById("facebook-jssdk"))return window.FB?(clearTimeout(f),e(_)):void(i=setInterval(()=>{window.FB&&d()},50));let h=window.document.createElement("script");h.id="facebook-jssdk",h.async=!0,h.defer=!0,h.crossOrigin="anonymous",h.src=`https://${o}/${a}/sdk${l?"/xfbml.customerchat":""}${s?"/debug":""}.js`,h.onerror=()=>{clearTimeout(f),t=void 0,_.loadingPromise=void 0,n(Error(`[react-facebook] Failed to load Facebook SDK from ${h.src}. This may be caused by an ad blocker or network issue.`))},window.document.body.appendChild(h)}),_.loadingPromise=t),t)}async function o(e){await i();let t=n();if(!t)throw Error("[react-facebook] Facebook SDK not available");return new Promise((r,n)=>{e(t,e=>{if(e)if(k(e)){let{code:t,type:r,message:i}=e.error;n(new x(i,t,r))}else r(e);else n(Error("Response is undefined"))})})}async function a(e){await i();let t=n();if(!t)throw Error("[react-facebook] Facebook SDK not available");return new Promise((r,n)=>{t.ui(e,e=>{if(!e)return void r(void 0);if(k(e)){let{code:t,type:r,message:i}=e.error;n(new x(i,t,r));return}r(e)})})}async function s(e,t=h.GET,r={}){return o((n,i)=>n.api(e,t,r,i))}async function l(e){var t;let{scope:r,returnScopes:n,rerequest:i,reauthorize:a}=e,s=[...null!=(t=e.authType)?t:[]],l={scope:r};return n&&(l.return_scopes=!0),i&&s.push("rerequest"),a&&s.push("reauthenticate"),s.length&&(l.auth_type=s.join(",")),o((e,t)=>e.login(t,l))}async function u(){return o((e,t)=>e.logout(t))}async function c(){return o((e,t)=>e.getLoginStatus(t))}async function f(e){if((null==e?void 0:e.status)===S.CONNECTED)return e.authResponse;let t=await c();if(t.status===S.CONNECTED)return t.authResponse;throw Error("Token is undefined")}async function d(e){return s("/me",h.GET,e)}async function p(){return(await s("/me/permissions")).data}async function y(e){let t=await p();return e.filter(e=>t.some(t=>"granted"===t.status&&t.permission===e)).length===e.length}async function m(e,t){await i();let r=n();if(!r)throw Error("[react-facebook] Facebook SDK not available");return r.Event.subscribe(e,t),()=>g(e,t)}async function g(e,t){await i();let r=n();if(!r)throw Error("[react-facebook] Facebook SDK not available");r.Event.unsubscribe(e,t)}async function v(e){await i();let t=n();if(!t)throw Error("[react-facebook] Facebook SDK not available");e?t.XFBML.parse(e):t.XFBML.parse()}async function b(e){var o;if("undefined"==typeof window)return;r.language=e;let a=window.document.getElementById("facebook-jssdk");a&&a.remove(),window.FB&&delete window.FB,t=void 0,_.loadingPromise=void 0,await i();let s=n();(null==(o=null==s?void 0:s.XFBML)?void 0:o.parse)&&s.XFBML.parse()}let _={getAppId:function(){return r.appId},getFB:n,init:i,ui:a,api:s,login:l,logout:u,getLoginStatus:c,getTokenDetail:f,getProfile:d,getPermissions:p,hasPermissions:y,subscribe:m,unsubscribe:g,parse:v,getLocale:function(){return r.language||"en_US"},changeLocale:b,options:r,loadingPromise:void 0};return r.lazy||"undefined"==typeof window||i(),_}(y.current),await d.current.init(),s(!0),d.current}catch(e){u(e instanceof Error?e:Error(String(e)))}finally{o(!1)}return d.current})()),p.current),[]),g=(0,E.useCallback)(async e=>{let t=await m();t&&await t.parse(e)},[m]),v=(0,E.useCallback)(async e=>{if(!d.current)return void f(e);try{o(!0),u(void 0),await d.current.changeLocale(e),f(e)}catch(e){u(e instanceof Error?e:Error(String(e)))}finally{o(!1)}},[]);(0,E.useEffect)(()=>{let{lazy:e}=n;e||m()},[n.lazy]),(0,E.useEffect)(()=>{let e=n.language||"en_US";e!==c&&v(e)},[n.language]);let b=(0,E.useMemo)(()=>({loading:i,error:l,init:m,api:a?d.current:void 0,parse:g,locale:c,setLocale:v}),[i,l,m,a,g,c,v]),_=(0,w.jsx)(T.Provider,{value:b,children:t});return r?(0,w.jsx)(A,{pixelId:r,children:_}):_}var I=(0,E.memo)((0,E.forwardRef)(function(e,t){let{as:r="div",children:n,className:i,style:o,data:a}=e,{parse:s}=function(e={}){let{lazy:t=!1}=e,r=(0,E.useContext)(T);if(!r)throw Error('[react-facebook] useFacebook must be used within a . Wrap your component tree with .');return(0,E.useEffect)(()=>{t||r.init()},[t,r.init]),r}(),[l,u]=(0,E.useState)(null),c=(0,E.useCallback)(e=>{u(e),t&&("function"==typeof t?t(e):t&&(t.current=e))},[t]),f=(0,E.useMemo)(()=>{let e=`fb-parser-${r}-${i}`;if(!a)return e;for(let t in a)void 0!==a[t]&&(e+=`-${t}:${a[t]||""}`);return e},[a,r,i]);return(0,E.useEffect)(()=>{(null==l?void 0:l.parentNode)&&s(l.parentNode)},[l,s,f]),(0,w.jsx)(r,{className:i,style:o,ref:c,...a,children:n})}));let D=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function M(){return D?window.location.href:"https://www.facebook.com"}(0,E.memo)((0,E.forwardRef)(function(e,t){let{className:r="",href:n=M(),layout:i,colorScheme:o,action:a,showFaces:s,share:l,width:u,size:c,kidDirectedSite:f,referral:d,lazy:h,...p}=e,y=(0,E.useMemo)(()=>({"data-ref":d,"data-href":n,"data-layout":i,"data-colorscheme":o,"data-action":a,"data-show-faces":s?"true":"false","data-share":l?"true":"false","data-width":null==u?void 0:u.toString(),"data-size":c,"data-lazy":h?"true":"false","data-kid-directed-site":f?"true":"false"}),[d,n,i,o,a,s,l,u,c,f,h]);return(0,w.jsx)(I,{className:`fb-like ${r}`,data:y,...p,ref:t})})),(0,E.memo)((0,E.forwardRef)(function(e,t){let{className:r="",style:n,href:i=M(),tabs:o,hideCover:a,width:s,height:l,showFacepile:u,hideCTA:c,smallHeader:f,adaptContainerWidth:d,lazy:h,...p}=e,y=(0,E.useMemo)(()=>({"data-tabs":o,"data-hide-cover":a?"true":"false","data-show-facepile":u?"true":"false","data-hide-cta":c?"true":"false","data-href":i,"data-small-header":f?"true":"false","data-adapt-container-width":d?"true":"false","data-height":null==l?void 0:l.toString(),"data-width":null==s?void 0:s.toString(),"data-lazy":h?"true":"false"}),[i,o,a,s,l,u,c,f,d,h]);return(0,w.jsx)(I,{className:`fb-page ${r}`,style:n,data:y,...p,ref:t})}));var j=(0,E.memo)((0,E.forwardRef)(function(e,t){let{className:r="",href:n,width:i,showText:o,lazy:a,...s}=e,l=(0,E.useMemo)(()=>({"data-href":n,"data-width":null==i?void 0:i.toString(),"data-lazy":a?"true":"false","data-show-text":o?"true":"false"}),[n,i,a,o]);return(0,w.jsx)(I,{className:`fb-post ${r}`,data:l,...s,ref:t})})),N=(0,E.memo)((0,E.forwardRef)(function(e,t){let{className:r="",href:n,width:i,showText:o,allowFullScreen:a,autoPlay:s,lazy:l,showCaptions:u,...c}=e,f=(0,E.useMemo)(()=>({"data-href":n,"data-width":null==i?void 0:i.toString(),"data-show-text":o?"true":"false","data-show-captions":u?"true":"false","data-autoplay":s?"true":"false","data-lazy":l?"true":"false","data-allowfullscreen":a?"true":"false"}),[n,i,o,u,s,l,a]);return(0,w.jsx)(I,{className:`fb-video ${r}`,data:f,...c,ref:t})}));(0,E.memo)((0,E.forwardRef)(function(e,t){let{className:r="",colorScheme:n,href:i=M(),numPosts:o,orderBy:a,width:s,mobile:l,lazy:u,...c}=e,f=(0,E.useMemo)(()=>({"data-colorscheme":n,"data-numposts":null==o?void 0:o.toString(),"data-href":i,"data-order-by":a,"data-width":null==s?void 0:s.toString(),"data-skin":n,"data-mobile":l?"true":"false","data-lazy":u?"true":"false"}),[n,i,o,a,s,l,u]);return(0,w.jsx)(I,{className:`fb-comments ${r}`,data:f,...c,ref:t})})),(0,E.memo)((0,E.forwardRef)(function(e,t){let{className:r="",href:n=M(),...i}=e,o=(0,E.useMemo)(()=>({"data-href":n}),[n]);return(0,w.jsx)(I,{as:"span",className:`fb-comments-count ${r}`,data:o,...i,ref:t})})),(0,E.memo)((0,E.forwardRef)(function(e,t){let{className:r="",href:n=M(),lazy:i,layout:o,size:a,...s}=e,l=(0,E.useMemo)(()=>({"data-href":n,"data-lazy":i?"true":"false","data-size":a,"data-layout":o}),[n,i,a,o]);return(0,w.jsx)(I,{className:`fb-share-button ${r}`,data:l,...s,ref:t})})),E.Component,(o=p||(p={})).SMALL="small",o.LARGE="large",(a=y||(y={})).STANDARD="standard",a.BUTTON_COUNT="button_count",a.BUTTON="button",a.BOX_COUNT="box_count",(s=m||(m={})).LIGHT="light",s.DARK="dark",(l=g||(g={})).LIKE="like",l.RECOMMEND="recommend",(u=v||(v={})).SOCIAL="social",u.REVERSE_TIME="reverse_time",u.TIME="time",(c=b||(b={})).SMALL="small",c.MEDIUM="medium",c.STANDARD="standard",c.LARGE="large",c.XLARGE="xlarge",(f=_||(_={})).BLUE="blue",f.WHITE="white"},78435:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(r&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},72175:function(e,t,r){"use strict";r.d(t,{B6:()=>q,ql:()=>J});var n=r(2784),i=r(13980),o=r.n(i),a=r(78435),s=r.n(a),l=r(47677),u=r.n(l),c=r(88665),f=r.n(c);function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}var m={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},g={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},b={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},_=Object.keys(m).map(function(e){return m[e]}),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},E=Object.keys(w).reduce(function(e,t){return e[w[t]]=t,e},{}),S=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},x=function(e){var t=S(e,m.TITLE),r=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,function(){return t});var n=S(e,"defaultTitle");return t||n||void 0},O=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return d({},e,t)},{})},k=function(e,t,r){var n={};return r.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,r){var i={};r.filter(function(e){for(var r,o=Object.keys(e),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")},D=function(e){return Object.keys(e).reduce(function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n},"")},M=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce(function(t,r){return t[w[r]||r]=e[r],t},t)},j=function(e,t){return t.map(function(t,r){var i,o=((i={key:r})["data-rh"]=!0,i);return Object.keys(t).forEach(function(e){var r=w[e]||e;"innerHTML"===r||"cssText"===r?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[r]=t[e]}),n.createElement(e,o)})},N=function(e,t,r){switch(e){case m.TITLE:return{toComponent:function(){var e,r,i,o;return r=t.titleAttributes,(i={key:e=t.title})["data-rh"]=!0,o=M(r,i),[n.createElement(m.TITLE,o,e)]},toString:function(){var n,i,o,a;return n=t.title,i=t.titleAttributes,o=D(i),a=C(n),o?"<"+e+' data-rh="true" '+o+">"+I(a,r)+"":"<"+e+' data-rh="true">'+I(a,r)+""}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return M(t)},toString:function(){return D(t)}};default:return{toComponent:function(){return j(e,t)},toString:function(){return t.reduce(function(t,n){var i=Object.keys(n).filter(function(e){return"innerHTML"!==e&&"cssText"!==e}).reduce(function(e,t){var i=void 0===n[t]?t:t+'="'+I(n[t],r)+'"';return e?e+" "+i:i},""),o=n.innerHTML||n.cssText||"",a=-1===R.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"")},"")}}}},L=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,l=e.titleAttributes,u=e.linkTags,c=e.metaTags,f=e.scriptTags,d={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h,p,y,_,w,E,S=(h=e.linkTags,p=e.scriptTags,y=e.encode,_=P(e.metaTags,b),w=P(h,g),E=P(p,v),{priorityMethods:{toComponent:function(){return[].concat(j(m.META,_.priority),j(m.LINK,w.priority),j(m.SCRIPT,E.priority))},toString:function(){return N(m.META,_.priority,y)+" "+N(m.LINK,w.priority,y)+" "+N(m.SCRIPT,E.priority,y)}},metaTags:_.default,linkTags:w.default,scriptTags:E.default});d=S.priorityMethods,u=S.linkTags,c=S.metaTags,f=S.scriptTags}return{priority:d,base:N(m.BASE,t,n),bodyAttributes:N("bodyAttributes",r,n),htmlAttributes:N("htmlAttributes",i,n),link:N(m.LINK,u,n),meta:N(m.META,c,n),noscript:N(m.NOSCRIPT,o,n),script:N(m.SCRIPT,f,n),style:N(m.STYLE,a,n),title:N(m.TITLE,{title:void 0===s?"":s,titleAttributes:l},n)}},F=[],U=function(e,t){var r=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){r.context.helmet=e},helmetInstances:{get:function(){return r.canUseDOM?F:r.instances},add:function(e){(r.canUseDOM?F:r.instances).push(e)},remove:function(e){var t=(r.canUseDOM?F:r.instances).indexOf(e);(r.canUseDOM?F:r.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=L({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},B=n.createContext({}),z=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),$="undefined"!=typeof document,q=function(e){function t(r){var n;return(n=e.call(this,r)||this).helmetData=new U(n.props.context,t.canUseDOM),n}return h(t,e),t.prototype.render=function(){return n.createElement(B.Provider,{value:this.helmetData.value},this.props.children)},t}(n.Component);q.canUseDOM=$,q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},q.defaultProps={context:{}},q.displayName="HelmetProvider";var W=function(e,t){var r,n=document.head||document.querySelector(m.HEAD),i=n.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach(function(t){var n=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?n.innerHTML=t.innerHTML:"cssText"===i?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(i,void 0===t[i]?"":t[i]));n.setAttribute("data-rh","true"),o.some(function(e,t){return r=t,n.isEqualNode(e)})?o.splice(r,1):a.push(n)}),o.forEach(function(e){return e.parentNode.removeChild(e)}),a.forEach(function(e){return n.appendChild(e)}),{oldTags:o,newTags:a}},V=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s=0;f-=1)r.removeAttribute(o[f]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},H=function(e,t){var r=e.baseTag,n=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,u=e.styleTags,c=e.title,f=e.titleAttributes;V(m.BODY,e.bodyAttributes),V(m.HTML,n),void 0!==c&&document.title!==c&&(document.title=C(c)),V(m.TITLE,f);var d={baseTag:W(m.BASE,r),linkTags:W(m.LINK,i),metaTags:W(m.META,o),noscriptTags:W(m.NOSCRIPT,a),scriptTags:W(m.SCRIPT,l),styleTags:W(m.STYLE,u)},h={},p={};Object.keys(d).forEach(function(e){var t=d[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(p[e]=d[e].oldTags)}),t&&t(),s(e,h,p)},G=null,K=function(e){function t(){for(var t,r=arguments.length,n=Array(r),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return d({},n,((t={})[r.type]=[].concat(n[r.type]||[],[d({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(n.type){case m.TITLE:return d({},i,((t={})[n.type]=a,t.titleAttributes=d({},o),t));case m.BODY:return d({},i,{bodyAttributes:d({},o)});case m.HTML:return d({},i,{htmlAttributes:d({},o)});default:return d({},i,((r={})[n.type]=d({},o),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=d({},t);return Object.keys(e).forEach(function(t){var n;r=d({},r,((n={})[t]=e[t],n))}),r},r.warnOnInvalidChildren=function(e,t){return u()(_.some(function(t){return e.type===t}),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+_.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),u()(!t||"string"==typeof t||Array.isArray(t)&&!t.some(function(e){return"string"!=typeof e}),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,i={};return n.Children.forEach(e,function(e){if(e&&e.props){var n=e.props,o=n.children,a=y(n,Y),s=Object.keys(a).reduce(function(e,t){return e[E[t]||t]=a[t],e},{}),l=e.type;switch("symbol"==typeof l?l=l.toString():r.warnOnInvalidChildren(e,o),l){case m.FRAGMENT:t=r.mapChildrenToProps(o,t);break;case m.LINK:case m.META:case m.NOSCRIPT:case m.SCRIPT:case m.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}}),this.mapArrayTypeChildrenToProps(i,t)},r.render=function(){var e=this.props,t=e.children,r=y(e,Q),i=d({},r),o=r.helmetData;return t&&(i=this.mapChildrenToProps(t,i)),!o||o instanceof U||(o=new U(o.context,o.instances)),o?n.createElement(K,d({},i,{context:o.value,helmetData:void 0})):n.createElement(B.Consumer,null,function(e){return n.createElement(K,d({},i,{context:e}))})},t}(n.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},46847:function(e,t,r){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState((function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}).bind(this))}function o(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,a=null,s=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==s)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;l.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:()=>a}),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},42901:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t0&&0==(v-=1)&&c.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(l.returnFocus(r.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),p.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(l.setupScopedFocus(r.node),l.markForFocusLater()),r.setState({isOpen:!0},function(){r.openAnimationFrame=requestAnimationFrame(function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})})}))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())})},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,u.default)(r.content,e),r.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var n=(void 0===t?"undefined":i(t))==="object"?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},o=n.base;return r.state.afterOpen&&(o=o+" "+n.afterOpen),r.state.beforeClose&&(o=o+" "+n.beforeClose),"string"==typeof t&&t?o+" "+t:o},r.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(r,n){return r[e+"-"+n]=t[n],r},{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,n=e.htmlOpenClassName,i=e.bodyOpenClassName,o=e.parentSelector,a=o&&o().ownerDocument||document;i&&f.add(a.body,i),n&&f.add(a.getElementsByTagName("html")[0],n),r&&(v+=1,c.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=r?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,a);return this.props.overlayElement(u,f)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},66941:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(a).forEach(function(e){return e.removeAttribute("aria-hidden")})),a=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&o.canUseDOM){var r=document.querySelectorAll(t);s(r,t),t=r}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,r=!1,n=void 0;try{for(var i,o=l(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){r=!0,n=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw n}}},t.show=function(e){var t=!0,r=!1,n=void 0;try{for(var i,o=l(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){r=!0,n=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw n}}},t.documentNotReadyOrSSRTesting=function(){a=null};var n,i=(n=r(45982))&&n.__esModule?n:{default:n},o=r(6259),a=null;function s(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},26736:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[o,a],t=0;t0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(o.parentElement&&o.parentElement.removeChild(o),a.parentElement&&a.parentElement.removeChild(a))})},95853:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)i(e,r[t]);var o=document.body;for(var a in n)i(o,n[a]);r={},n={}},t.log=function(){};var r={},n={};function i(e,t){e.classList.remove(t)}var o=function(e,t,r){r.forEach(function(r){t[r]||(t[r]=0),t[r]+=1,e.add(r)})},a=function(e,t,r){r.forEach(function(r){t[r]&&(t[r]-=1),0===t[r]&&e.remove(r)})};t.add=function(e,t){return o(e.classList,"html"==e.nodeName.toLowerCase()?r:n,t.split(" "))},t.remove=function(e,t){return a(e.classList,"html"==e.nodeName.toLowerCase()?r:n,t.split(" "))}},77194:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==o.length&&(t=o.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){o.length>0&&o.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var n,i=(n=r(93970))&&n.__esModule?n:{default:n},o=[],a=null,s=!1;function l(){s=!0}function u(){s&&(s=!1,a&&setTimeout(function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()},0))}},66638:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(n.openInstances.length),n.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){n=new r};var r=function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var r=t.openInstances.indexOf(e);-1!==r&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(r){return r(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},n=new r;t.default=n},6259:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var n,i=((n=r(85978))&&n.__esModule?n:{default:n}).default,o=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM,t.default=o},90026:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,i.default)(e);if(!r.length)return void t.preventDefault();var n=void 0,o=t.shiftKey,a=r[0],s=r[r.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!o)return;n=s}if(s!==l||o||(n=a),a===l&&o&&(n=s),n){t.preventDefault(),n.focus();return}var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var c=r.indexOf(l);if(c>-1&&(c+=o?-1:1),void 0===(n=r[c])){t.preventDefault(),(n=o?s:a).focus();return}t.preventDefault(),n.focus()}};var n,i=(n=r(93970))&&n.__esModule?n:{default:n};e.exports=t.default},93970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])},[]).filter(n)};var r=/^(input|select|textarea|button|object|iframe)$/;function n(e){var t,n,i=e.getAttribute("tabindex");null===i&&(i=void 0);var o=isNaN(i);return(o||i>=0)&&(t=!o,n=e.nodeName.toLowerCase(),(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,r=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(r&&t===r&&(t=r.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),n=r.getPropertyValue("display");return t?"contents"!==n&&("visible"!==r.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===n}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}e.exports=t.default},37149:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=((n=r(42901))&&n.__esModule?n:{default:n}).default,e.exports=t.default},9967:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedStyle=void 0;let o=i(r(16709)),a=i(r(2784));t.EmbedStyle=e=>{var t=n(e,[]);return a.default.createElement("style",Object.assign({},t,{className:(0,o.default)(t.className),style:Object.assign({},t.style)}),` .rsme-embed .rsme-d-none { display: none; } .rsme-embed .twitter-tweet { margin: 0 !important; } .rsme-embed blockquote { margin: 0 !important; padding: 0 !important; } .rsme-embed.rsme-facebook-embed .fb-post iframe { width: 100% !important; } .rsme-embed.rsme-facebook-embed .fb-post span { width: 100% !important; } `)}},10159:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FacebookEmbed=void 0;let o=i(r(16709)),a=i(r(2784)),s=r(48180),l=r(65255),u=r(34075),c=r(9967),f=r(93937),d="check-script",h="load-script",p="confirm-script-loaded",y="process-embed",m="confirm-embed-success",g="retrying",v="embed-success";t.FacebookEmbed=e=>{var t,r,{url:i,width:b,height:_,linkText:w="View post on Facebook",placeholderImageUrl:E,placeholderSpinner:S,placeholderSpinnerDisabled:x=!1,placeholderProps:O,embedPlaceholder:k,placeholderDisabled:T=!1,scriptLoadDisabled:C=!1,retryDelay:P=5e3,retryDisabled:A=!1,frame:R,debug:I=!1}=e,D=n(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","frame","debug"]);let[M,j]=a.default.useState(d),N=a.default.useMemo(()=>M===v,[M]),L=a.default.useRef((0,u.generateUUID)()),[F,U]=a.default.useState(Date.now()),B=a.default.useMemo(()=>`${L.current}-${F}`,[F]),z=(0,s.useFrame)(R);a.default.useEffect(()=>{I&&console.log(`[${new Date().toISOString()}]: ${M}`)},[I,M]),a.default.useEffect(()=>{var e,t,r;M===d&&((null==(r=null==(t=null==(e=z.window)?void 0:e.FB)?void 0:t.XFBML)?void 0:r.parse)?j(y):C?console.error("Facebook embed script not found. Unable to process Facebook embed:",i):j(h))},[C,M,i,z.window]),a.default.useEffect(()=>{if(M===h&&z.document){let e=z.document.createElement("script");e.setAttribute("src","https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v16.0"),z.document.head.appendChild(e),j(p)}},[M,z.document]),a.default.useEffect(()=>{let e=new f.Subs;return M===p&&e.setInterval(()=>{var e,t,r;(null==(r=null==(t=null==(e=z.window)?void 0:e.FB)?void 0:t.XFBML)?void 0:r.parse)&&j(y)},1),e.createCleanup()},[M,z.window]),a.default.useEffect(()=>{var e,t,r;if(M===y){let n=null==(r=null==(t=null==(e=z.window)?void 0:e.FB)?void 0:t.XFBML)?void 0:r.parse;n?(n(),j(m)):console.error("Facebook embed script not found. Unable to process Facebook embed:",i)}},[M,i,z.window]),a.default.useEffect(()=>{let e=new f.Subs;return M===m&&(e.setInterval(()=>{if(z.document){let e=z.document.getElementById(L.current);if(e){let t=e.getElementsByClassName("fb-post")[0];t&&t.children.length>0&&j(v)}}},1),A||e.setTimeout(()=>{j(g)},P)),e.createCleanup()},[A,P,M,z.document]),a.default.useEffect(()=>{M===g&&(U(Date.now()),j(y))},[M]);let $=!!(null==b?void 0:b.toString().includes("%")),q=!!(null==_?void 0:_.toString().includes("%")),W={maxWidth:$?void 0:550,width:void 0!==b?$?"100%":b:"100%",height:q?"100%":void 0!==_?_:void 0!==(null==(t=D.style)?void 0:t.height)||void 0!==(null==(r=D.style)?void 0:r.maxHeight)?"100%":372,border:"1px solid #dee2e6",borderRadius:3},V=null!=k?k:a.default.createElement(l.PlaceholderEmbed,Object.assign({url:i,imageUrl:E,linkText:w,spinner:S,spinnerDisabled:x},O,{style:Object.assign(Object.assign({},W),null==O?void 0:O.style)}));return a.default.createElement("div",Object.assign({},D,{className:(0,o.default)("rsme-embed rsme-facebook-embed",D.className),style:Object.assign({overflow:"hidden",width:null!=b?b:void 0,height:null!=_?_:void 0,borderRadius:3},D.style)}),a.default.createElement(c.EmbedStyle,null),a.default.createElement("div",{id:L.current,className:(0,o.default)(!N&&"rsme-d-none")},a.default.createElement("div",{key:B,className:"fb-post","data-href":i,"data-width":$?"100%":null!=b?b:550,style:{width:$?"100%":null!=b?b:550,height:q?"100%":null!=_?_:void 0}})),!N&&!T&&V)}},10635:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InstagramEmbed=void 0;let l=s(r(16709)),u=o(r(2784)),c=r(93937),f=r(48180),d=r(65255),h=r(34075),p=r(9967),y="check-script",m="load-script",g="confirm-script-loaded",v="process-embed",b="confirm-embed-success",_="retrying";t.InstagramEmbed=e=>{var t,r,{url:n,width:i,height:o,linkText:s="View post on Instagram",captioned:w=!1,placeholderImageUrl:E,placeholderSpinner:S,placeholderSpinnerDisabled:x=!1,placeholderProps:O,embedPlaceholder:k,placeholderDisabled:T=!1,scriptLoadDisabled:C=!1,retryDelay:P=5e3,retryDisabled:A=!1,igVersion:R="14",frame:I,debug:D=!1}=e,M=a(e,["url","width","height","linkText","captioned","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","igVersion","frame","debug"]);let[j,N]=u.useState(y),L=u.useRef((0,h.generateUUID)()),[F,U]=u.useState(Date.now()),B=u.useMemo(()=>`${L.current}-${F}`,[F]),z=(0,f.useFrame)(I);u.useEffect(()=>{D&&console.log(`[${new Date().toISOString()}]: ${j}`)},[D,j]),u.useEffect(()=>{var e,t,r;j===y&&((null==(r=null==(t=null==(e=z.window)?void 0:e.instgrm)?void 0:t.Embeds)?void 0:r.process)?N(v):C?console.error("Instagram embed script not found. Unable to process Instagram embed:",n):N(m))},[C,j,n,z.window]),u.useEffect(()=>{if(j===m&&z.document){let e=z.document.createElement("script");e.setAttribute("src","https://www.instagram.com/embed.js"),z.document.head.appendChild(e),N(g)}},[j,z.document]),u.useEffect(()=>{let e=new c.Subs;return j===g&&e.setInterval(()=>{var e,t,r;(null==(r=null==(t=null==(e=z.window)?void 0:e.instgrm)?void 0:t.Embeds)?void 0:r.process)&&N(v)},1),e.createCleanup()},[j,z.window]),u.useEffect(()=>{var e,t,r;if(j===v){let i=null==(r=null==(t=null==(e=z.window)?void 0:e.instgrm)?void 0:t.Embeds)?void 0:r.process;i?(i(),N(b)):console.error("Instagram embed script not found. Unable to process Instagram embed:",n)}},[j,z.window,n]),u.useEffect(()=>{let e=new c.Subs;return j===b&&(e.setInterval(()=>{z.document&&(z.document.getElementById(L.current)||N("embed-success"))},1),A||e.setTimeout(()=>{N(_)},P)),e.createCleanup()},[P,A,j,z.document]),u.useEffect(()=>{j===_&&(U(Date.now()),N(v))},[j]);let $=n.split(/[?#]/)[0].replace(/\.com\/.*?\/p/,".com/p").replace(/\.com\/.*?\/reel/,".com/reel"),q=`${$}${$.endsWith("/")?"":"/"}`,W=!!(null==i?void 0:i.toString().includes("%")),V={minWidth:W?void 0:328,width:void 0!==i?W?"100%":i:"100%",height:(null==o?void 0:o.toString().includes("%"))?"100%":void 0!==o?o:void 0!==(null==(t=M.style)?void 0:t.height)||void 0!==(null==(r=M.style)?void 0:r.maxHeight)?"100%":372,border:"1px solid #dee2e6",borderRadius:3},H=null!=k?k:u.createElement(d.PlaceholderEmbed,Object.assign({url:q,imageUrl:E,linkText:s,spinner:S,spinnerDisabled:x},O,{style:Object.assign(Object.assign({},V),null==O?void 0:O.style)}));return u.createElement("div",Object.assign({},M,{className:(0,l.default)("rsme-embed rsme-instagram-embed",L.current,M.className),style:Object.assign(Object.assign({overflow:"hidden",width:null!=i?i:void 0,height:null!=o?o:void 0,borderRadius:3},M.style),{position:"relative"})}),u.createElement(p.EmbedStyle,null),u.createElement("blockquote",{key:B,className:"instagram-media","data-instgrm-permalink":`${q}?utm_source=ig_embed&utm_campaign=loading`,"data-instgrm-version":R,"data-instgrm-captioned":w||void 0,"data-width":W?"100%":null!=i?i:void 0,style:{width:"calc(100% - 2px)"}},!T&&H,u.createElement("div",{id:L.current,className:"instagram-media-pre-embed rsme-d-none"},"\xa0")))}},53068:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedInEmbed=void 0;let l=s(r(16709)),u=o(r(2784)),c=r(65255),f=r(9967);t.LinkedInEmbed=e=>{var t,r,{url:n,postUrl:i,width:o,height:s=500,linkText:d="View post on LinkedIn",placeholderImageUrl:h,placeholderSpinner:p,placeholderSpinnerDisabled:y=!1,placeholderProps:m,embedPlaceholder:g,placeholderDisabled:v=!1}=e,b=a(e,["url","postUrl","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled"]);let[_,w]=u.useState(!1),E={minWidth:250,maxWidth:550,width:void 0!==o?o:"100%",height:void 0!==s?s:void 0!==(null==(t=b.style)?void 0:t.height)||void 0!==(null==(r=b.style)?void 0:r.maxHeight)?"100%":550,border:"solid 1px rgba(0, 0, 0, 0.15)",borderRadius:8},S=null!=g?g:u.createElement(c.PlaceholderEmbed,Object.assign({url:null!=i?i:n,imageUrl:h,linkText:d,spinner:p,spinnerDisabled:y},m,{style:Object.assign(Object.assign({},E),null==m?void 0:m.style)}));return u.createElement("div",Object.assign({},b,{className:(0,l.default)("rsme-embed rsme-linkedin-embed",b.className),style:Object.assign({overflow:"hidden",width:null!=o?o:void 0,height:null!=s?s:void 0,borderRadius:8},b.style)}),u.createElement(f.EmbedStyle,null),u.createElement("iframe",{className:(0,l.default)("linkedin-post",!_&&"rsme-d-none"),src:n,width:"100%",height:_?s:0,frameBorder:"0",onLoad:()=>w(!0)}),!_&&!v&&S)}},90612:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PinterestEmbed=void 0;let l=s(r(16709)),u=o(r(2784)),c=r(65255),f=r(9967);t.PinterestEmbed=e=>{var t,r,n,{url:i,postUrl:o,width:s,height:d=500,linkText:h="View post on Pinterest",placeholderImageUrl:p,placeholderSpinner:y,placeholderSpinnerDisabled:m=!1,placeholderProps:g,embedPlaceholder:v,placeholderDisabled:b=!1}=e,_=a(e,["url","postUrl","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled"]);let[w,E]=u.useState(!1),S={minWidth:250,maxWidth:550,width:void 0!==s?s:"100%",height:void 0!==d?d:void 0!==(null==(t=_.style)?void 0:t.height)||void 0!==(null==(r=_.style)?void 0:r.maxHeight)?"100%":550,border:"solid 1px rgba(0, 0, 0, 0.15)",borderRadius:8},x=null!=v?v:u.createElement(c.PlaceholderEmbed,Object.assign({url:null!=o?o:i,imageUrl:p,linkText:h,spinner:y,spinnerDisabled:m},g,{style:Object.assign(Object.assign({},S),null==g?void 0:g.style)})),O=null==(n=i.match(/pin\/([\w\d_-]+)/))?void 0:n[1];return u.createElement("div",Object.assign({},_,{className:(0,l.default)("rsme-embed rsme-pinterest-embed",_.className),style:Object.assign({overflow:"hidden",width:null!=s?s:void 0,height:null!=d?d:void 0,borderRadius:8},_.style)}),u.createElement(f.EmbedStyle,null),u.createElement("iframe",{className:(0,l.default)("pinterest-post",!w&&"rsme-d-none"),src:`https://assets.pinterest.com/ext/embed.html?id=${null!=O?O:"000000000000000000"}`,width:"100%",height:w?d:0,frameBorder:"0",scrolling:"no",onLoad:()=>E(!0)}),!w&&!b&&x)}},92051:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TikTokEmbed=void 0;let o=i(r(16709)),a=i(r(2784)),s=r(93937),l=r(48180),u=r(65255),c=r(34075),f=r(9967),d="process-embed",h="confirm-embed-success",p="retrying";t.TikTokEmbed=e=>{var t,r,{url:i,width:y,height:m,linkText:g="View post on TikTok",placeholderImageUrl:v,placeholderSpinner:b,placeholderSpinnerDisabled:_=!1,placeholderProps:w,embedPlaceholder:E,placeholderDisabled:S=!1,scriptLoadDisabled:x=!1,retryDelay:O=5e3,retryDisabled:k=!1,frame:T,debug:C=!1}=e,P=n(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","frame","debug"]);let[A,R]=a.default.useState(d),I=a.default.useRef((0,c.generateUUID)()),[D,M]=a.default.useState(Date.now()),j=a.default.useMemo(()=>`${I.current}-${D}`,[D]),N=(0,l.useFrame)(T);a.default.useEffect(()=>{C&&console.log(`[${new Date().toISOString()}]: ${A}`)},[C,A]),a.default.useEffect(()=>{if(A===d&&N.document&&!x){let e="tiktok-embed-script",t=N.document.getElementById(e);t&&t.remove();let r=N.document.createElement("script");r.setAttribute("src",`https://www.tiktok.com/embed.js?t=${Date.now()}`),r.setAttribute("id",e),N.document.head.appendChild(r),R(h)}},[x,A,N.document]),a.default.useEffect(()=>{let e=new s.Subs;return A===h&&(e.setInterval(()=>{N.document&&(N.document.getElementById(I.current)||R("embed-success"))},1),k||e.setTimeout(()=>{R(p)},O)),e.createCleanup()},[O,k,A,N.document]),a.default.useEffect(()=>{A===p&&(M(Date.now()),R(d))},[A]);let L=i.replace(/[?].*$/,"").replace(/^.+\//,""),F={minWidth:325,maxWidth:480,width:void 0!==y?y:"100%",height:void 0!==m?m:void 0!==(null==(t=P.style)?void 0:t.height)||void 0!==(null==(r=P.style)?void 0:r.maxHeight)?"100%":550,border:"solid 1px rgba(22,24,35,0.12)",borderRadius:8},U=null!=E?E:a.default.createElement(u.PlaceholderEmbed,Object.assign({url:i,imageUrl:v,linkText:g,spinner:b,spinnerDisabled:_},w,{style:Object.assign(Object.assign({},F),null==w?void 0:w.style)}));return a.default.createElement("div",Object.assign({},P,{className:(0,o.default)("rsme-embed rsme-tiktok-embed",P.className),style:Object.assign({overflow:"hidden",width:null!=y?y:void 0,height:null!=m?m:void 0,borderRadius:8},P.style)}),a.default.createElement(f.EmbedStyle,null),a.default.createElement("div",{className:"tiktok-embed-container"},a.default.createElement("blockquote",{key:j,className:"tiktok-embed",cite:i,"data-video-id":L},S?a.default.createElement("div",{id:I.current,style:{display:"none"}},"\xa0"):a.default.createElement("div",{id:I.current,style:{display:"flex",justifyContent:"center"}},U))))}},81682:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TwitterEmbed=void 0,t.TwitterEmbed=r(10573).XEmbed},10573:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XEmbed=void 0;let l=s(r(16709)),u=o(r(2784)),c=r(13629),f=r(65255),d=r(9967);t.XEmbed=e=>{var t,r,{url:n,width:i,height:o,linkText:s="View post on X",placeholderImageUrl:h,placeholderSpinner:p,placeholderSpinnerDisabled:y=!1,placeholderProps:m,embedPlaceholder:g,placeholderDisabled:v,twitterTweetEmbedProps:b}=e,_=a(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","twitterTweetEmbedProps"]);let w=n.substring(n.lastIndexOf("/")+1).replace(/[?].*$/,""),E=!!(null==i?void 0:i.toString().includes("%")),S={minWidth:250,maxWidth:550,width:void 0!==i?E?"100%":i:"100%",height:(null==o?void 0:o.toString().includes("%"))?"100%":void 0!==o?o:void 0!==(null==(t=_.style)?void 0:t.height)||void 0!==(null==(r=_.style)?void 0:r.maxHeight)?"100%":350,border:"solid 1px #c9d4d9",borderRadius:12},x=null!=g?g:u.createElement(f.PlaceholderEmbed,Object.assign({url:n,imageUrl:h,linkText:s,spinner:p,spinnerDisabled:y},m,{style:Object.assign(Object.assign({},S),null==m?void 0:m.style)}));return u.createElement("div",Object.assign({},_,{className:(0,l.default)("rsme-embed rsme-twitter-embed",_.className),style:Object.assign({overflow:"hidden",width:null!=i?i:void 0,height:null!=o?o:void 0,borderRadius:12},_.style)}),u.createElement(d.EmbedStyle,null),u.createElement(c.TwitterTweetEmbed,Object.assign({tweetId:w,placeholder:v?void 0:x},b)))}},51959:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let l=s(r(16709)),u=o(r(2784)),c=s(r(98268)),f=r(65255),d=r(9967);t.YouTubeEmbed=e=>{var t,r,n,i,o,s,h,p,y,m,g,v,b,{url:_,width:w,height:E,linkText:S="Watch on YouTube",placeholderImageUrl:x,placeholderSpinner:O,placeholderSpinnerDisabled:k=!1,placeholderProps:T,embedPlaceholder:C,placeholderDisabled:P,youTubeProps:A}=e,R=a(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","youTubeProps"]);let[I,D]=u.useState(!1),M=null==(t=_.match(/[?&]v=(.+?)(?:$|[&?])/))?void 0:t[1],j=null==(r=_.match(/https:\/\/(?:www\.)?youtube\.com\/shorts\/(.+?)(?:$|[&?])/))?void 0:r[1],N=null==(n=_.match(/https:\/\/youtu\.be\/(.+?)(?:$|[&?])/))?void 0:n[1],L=null==(i=_.match(/https:\/\/(?:www\.)youtube(-nocookie)?\.com\/embed\/(.+?)(?:$|[&?])/))?void 0:i[2],F=null!=(h=null!=(s=null!=(o=null!=M?M:j)?o:N)?s:L)?h:"00000000",U=+(null!=(y=null==(p=_.match(/(.+?)(?:$|[&?])start=(\d+)/))?void 0:p[2])?y:0),B=!!(null==w?void 0:w.toString().includes("%")),z=!!(null==E?void 0:E.toString().includes("%")),$={};U&&($.playerVars={start:U}),void 0!==w&&($.width=B?"100%":`${w}`),void 0!==E&&($.height=z?"100%":`${E}`),$=Object.assign(Object.assign({},$),null==A?void 0:A.opts);let q={maxWidth:B?void 0:640,width:void 0!==w?B?"100%":w:"100%",height:z?"100%":void 0!==E?E:void 0!==(null==(m=R.style)?void 0:m.height)||void 0!==(null==(g=R.style)?void 0:g.maxHeight)?"100%":360,border:"1px solid #dee2e6",borderRadius:0},W=null!=C?C:u.createElement(f.PlaceholderEmbed,Object.assign({url:_,imageUrl:x,linkText:S,spinner:O,spinnerDisabled:k},T,{style:Object.assign(Object.assign({},q),null==T?void 0:T.style)}));return u.createElement("div",Object.assign({},R,{className:(0,l.default)("rsme-embed rsme-youtube-embed",R.className),style:Object.assign({overflow:"hidden",width:null!=w?w:void 0,height:null!=E?E:void 0,borderRadius:0},R.style)}),u.createElement(d.EmbedStyle,null),u.createElement("div",{className:(0,l.default)(!I&&"rsme-d-none")},u.createElement(c.default,Object.assign({},A,{className:null!=(v=null==A?void 0:A.className)?v:"youtube-iframe",videoId:null!=(b=null==A?void 0:A.videoId)?b:F,opts:$,onReady:e=>{D(!0),A&&A.onReady&&(null==A||A.onReady(e))}}))),!I&&!P&&W)}},48180:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFrame=void 0;let i=n(r(2784));t.useFrame=e=>i.default.useMemo(()=>e||{document:"undefined"!=typeof document?document:void 0,window:"undefined"!=typeof window?window:void 0},[e])},65255:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaceholderEmbed=void 0;let o=i(r(16709)),a=i(r(2784)),s=r(9967),l=r(32843),u=r(63631),c=r(66594),f=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;t.PlaceholderEmbed=e=>{var t,{url:r,linkText:i="View post",imageUrl:d,spinner:h=a.default.createElement(l.BorderSpinner,null),allowJavaScriptUrls:p=!0,spinnerDisabled:y}=e,m=n(e,["url","linkText","imageUrl","spinner","allowJavaScriptUrls","spinnerDisabled"]);return f.test(r)&&!p?(console.warn("PlaceholderEmbed has blocked a javascript: URL as a security precaution"),null):a.default.createElement("div",Object.assign({},m,{className:(0,o.default)(m.className),style:Object.assign({overflow:"hidden",border:"1px solid #dee2e6",backgroundColor:"#ffffff",borderRadius:0,boxSizing:"border-box",position:"relative"},m.style)}),a.default.createElement(s.EmbedStyle,null),a.default.createElement("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer"},!d&&a.default.createElement("div",{style:{position:"absolute",top:0,left:0,display:"flex",justifyContent:"space-between",alignItems:"start",paddingLeft:16,paddingRight:16,paddingTop:16,paddingBottom:16,zIndex:2,backgroundColor:"#ffffff"}},a.default.createElement(c.ProfilePlaceholder,null)),a.default.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:d?"start":"center",height:"100%",width:"100%"}},!d&&a.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",rowGap:16,zIndex:3,padding:8,backgroundColor:"#ffffff"}},!y&&h,!!i&&a.default.createElement("div",{style:{color:"#000000",fontFamily:"Arial,sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:550,lineHeight:"18px",textAlign:"center"}},i)),d&&(void 0!==(null==(t=m.style)?void 0:t.height)?a.default.createElement("div",{style:{width:"100%",height:"100%",background:`url("${d}")`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",marginBottom:"40"}}):a.default.createElement("div",{style:{width:"100%",marginBottom:40}},a.default.createElement("img",{src:d,style:{width:"100%"}})))),a.default.createElement("div",{style:{position:"absolute",bottom:0,left:0,height:40,width:"100%",backgroundColor:"#ffffff",zIndex:1}},!d&&a.default.createElement(u.EngagementIconsPlaceholder,{style:{marginLeft:16}}),d&&a.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center",justifyContent:"space-between",columnGap:16}},a.default.createElement("div",{style:{color:"#0095f6",fontWeight:600,fontFamily:"Arial,sans-serif",fontSize:"14px",fontStyle:"normal",whiteSpace:"nowrap",marginLeft:16}},i),!y&&a.default.createElement("div",{style:{marginRight:16}},h)))))}},32843:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BorderSpinner=void 0;let o=i(r(16709)),a=i(r(2784));t.BorderSpinner=e=>{var t=n(e,[]);return a.default.createElement(a.default.Fragment,null,a.default.createElement("style",null,` .rsme-spinner { border: 3px solid rgba(0,0,0,0.75); border-right-color: transparent; border-radius: 50%; animation: rsme-spin 1s linear infinite; } @keyframes rsme-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } `),a.default.createElement("div",Object.assign({},t,{className:(0,o.default)("rsme-spinner",t.className),style:Object.assign({width:10,height:10},t.style)})))}},63631:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShareArrowIcon=t.ChatBubbleIcon=t.HeartIcon=t.EngagementIconsPlaceholder=void 0;let o=i(r(16709)),a=i(r(2784));t.EngagementIconsPlaceholder=e=>{var r=n(e,[]);return a.default.createElement("div",Object.assign({},r,{className:(0,o.default)(r.className),style:Object.assign({display:"flex",alignItems:"center",columnGap:14},r.style)}),a.default.createElement(t.HeartIcon,null),a.default.createElement(t.ChatBubbleIcon,null),a.default.createElement(t.ShareArrowIcon,null))},t.HeartIcon=e=>a.default.createElement("div",Object.assign({},e),a.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"12.5px",width:"12.5px",transform:"translateX(0px) translateY(7px)"}}),a.default.createElement("div",{style:{backgroundColor:"#F4F4F4",height:"12.5px",transform:"rotate(-45deg) translateX(3px) translateY(1px)",width:"12.5px",flexGrow:0,marginRight:"6px",marginLeft:"2px"}}),a.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"12.5px",width:"12.5px",transform:"translateX(9px) translateY(-18px)"}})),t.ChatBubbleIcon=e=>a.default.createElement("div",Object.assign({},e),a.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"20px",width:"20px"}}),a.default.createElement("div",{style:{width:0,height:0,borderTop:"2px solid transparent",borderLeft:"6px solid #f4f4f4",borderBottom:"2px solid transparent",transform:"translateX(16px) translateY(-4px) rotate(30deg)"}})),t.ShareArrowIcon=e=>a.default.createElement("div",Object.assign({},e,{style:{height:25,width:25,transform:"translateX(0px) translateY(-2px)"}}),a.default.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",xmlSpace:"preserve"},a.default.createElement("path",{style:{fill:"#F4F4F4"},d:"M295.204,180.593C132.168,180.593,0,312.759,0,475.796\nc51.398-130.047,184.869-203.22,317.483-183.603L295.204,180.593z"}),a.default.createElement("path",{style:{fill:"#F4F4F4"},d:"M512,253L295.204,36.204v217.818C159.946,249.655,34.992,339.262,0,475.794\nc59.905-109.171,178.724-165.463,295.204-151.033v145.035L512,253z"})))},66594:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProfilePlaceholder=void 0;let o=i(r(16709)),a=i(r(2784));t.ProfilePlaceholder=e=>{var t=n(e,[]);return a.default.createElement("div",Object.assign({},t,{className:(0,o.default)(t.className),style:Object.assign({},t.style)}),a.default.createElement("div",{style:{display:"flex",columnGap:14}},a.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",width:40,height:40}}),a.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",rowGap:6}},a.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:4,width:100,height:14}}),a.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:4,width:60,height:14}}))))}},34075:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUUID=void 0,t.generateUUID=()=>{let e=new Date().getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let n=16*Math.random();return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:3&n|8).toString(16)})}},7694:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(10159),t),i(r(10635),t),i(r(53068),t),i(r(90612),t),i(r(92051),t),i(r(81682),t),i(r(10573),t),i(r(51959),t),i(r(65255),t),i(r(32843),t)},93937:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Subs=t.Subscribe=void 0;class r{static subscribe(e){try{return e()}catch(e){console.error(e)}return()=>{}}static subscribeEvent(e,t,r){return e.addListener(t,r),()=>{e.removeListener(t,r)}}static subscribeDOMEvent(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}static setTimeout(e,t,...r){let n=setTimeout(e,t,r);return()=>clearTimeout(n)}static setInterval(e,t,...r){let n=setInterval(e,t,r);return()=>clearInterval(n)}static unsubAll(e){if(Array.isArray(e))e.forEach(e=>{try{e()}catch(e){console.error(e)}});else try{e()}catch(e){console.error(e)}}static createCleanup(e){return()=>r.unsubAll(e)}}t.Subscribe=r,t.Subs=class{constructor(e=[]){this.list=e}subscribe(e){let t=r.subscribe(e);return this.push(t),t}subscribeEvent(e,t,n){let i=r.subscribeEvent(e,t,n);return this.push(i),i}subscribeDOMEvent(e,t,n){let i=r.subscribeDOMEvent(e,t,n);return this.push(i),i}setTimeout(e,t,...r){let n=setTimeout(e,t,r),i=()=>clearTimeout(n);return this.push(i),i}setInterval(e,t,...r){let n=setInterval(e,t,r),i=()=>clearInterval(n);return this.push(i),i}push(e){this.list.push(e)}unsubAll(){r.unsubAll(this.list),this.list.splice(0,this.list.length)}createCleanup(){return()=>{this.unsubAll()}}}},28249:function(e,t,r){"use strict";r.d(t,{QS:()=>f,RL:()=>i,pX:()=>o});var n=r(2784);let i="Left",o="Right",a={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},s={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},l="mousemove",u="mouseup";function c(e,t){if(0===t)return e;let r=Math.PI/180*t;return[e[0]*Math.cos(r)+e[1]*Math.sin(r),e[1]*Math.cos(r)-e[0]*Math.sin(r)]}function f(e){var t,r,f;let d,{trackMouse:h}=e,p=n.useRef(Object.assign({},s)),y=n.useRef(Object.assign({},a)),m=n.useRef(Object.assign({},y.current));for(d in m.current=Object.assign({},y.current),y.current=Object.assign(Object.assign({},a),e),a)void 0===y.current[d]&&(y.current[d]=a[d]);let[g,v]=n.useMemo(()=>(function(e,t){let r=t=>{let r="touches"in t;r&&t.touches.length>1||e((e,i)=>{i.trackMouse&&!r&&(document.addEventListener(l,n),document.addEventListener(u,d));let{clientX:o,clientY:a}=r?t.touches[0]:t,f=c([o,a],i.rotationAngle);return i.onTouchStartOrOnMouseDown&&i.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),s),{initial:f.slice(),xy:f,start:t.timeStamp||0})})},n=t=>{e((e,r)=>{var n,s,l,u;let f="touches"in t;if(f&&t.touches.length>1)return e;if(t.timeStamp-e.start>r.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:d,clientY:h}=f?t.touches[0]:t,[p,y]=c([d,h],r.rotationAngle),m=p-e.xy[0],g=y-e.xy[1],v=Math.abs(m),b=Math.abs(g),_=(t.timeStamp||0)-e.start,w=Math.sqrt(v*v+b*b)/(_||1),E=[m/(_||1),g/(_||1)],S=(n=v,s=b,l=m,u=g,n>s?l>0?o:i:u>0?"Down":"Up"),x="number"==typeof r.delta?r.delta:r.delta[S.toLowerCase()]||a.delta;if(v{e((e,r)=>{let n;if(e.swiping&&e.eventData){if(t.timeStamp-e.start{document.removeEventListener(l,n),document.removeEventListener(u,d),f(e)},h=(e,t)=>{let i=()=>{};if(e&&e.addEventListener){let o=Object.assign(Object.assign({},a.touchEventOptions),t.touchEventOptions),s=[["touchstart",r,o],["touchmove",n,Object.assign(Object.assign({},o),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",f,o]];s.forEach(([t,r,n])=>e.addEventListener(t,r,n)),i=()=>s.forEach(([t,r])=>e.removeEventListener(t,r))}return i},p={ref:t=>{null!==t&&e((e,r)=>{if(e.el===t)return e;let n={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),n.cleanUpTouch=void 0),r.trackTouch&&t&&(n.cleanUpTouch=h(t,r)),Object.assign(Object.assign(Object.assign({},e),{el:t}),n)})}};return t.trackMouse&&(p.onMouseDown=r),[p,h]})(e=>p.current=e(p.current,y.current),{trackMouse:h}),[h]);return t=p.current,r=y.current,f=m.current,p.current=r.trackTouch&&t.el?t.cleanUpTouch?r.preventScrollOnSwipe!==f.preventScrollOnSwipe||r.touchEventOptions.passive!==f.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:v(t.el,r)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:v(t.el,r)}):(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0})),g}},13629:function(e,t,r){"use strict";r.r(t),r.d(t,{TwitterDMButton:()=>_,TwitterFollowButton:()=>c,TwitterHashtagButton:()=>d,TwitterMentionButton:()=>p,TwitterMomentShare:()=>v,TwitterOnAirButton:()=>x,TwitterShareButton:()=>l,TwitterTimelineEmbed:()=>a,TwitterTweetEmbed:()=>m,TwitterVideoEmbed:()=>E});var n=r(2784),i="https://platform.twitter.com/widgets.js",o="createTimeline",a=function(e){var t=n.useRef(null),a=n.useState(!0),s=a[0],l=a[1],u=function(){var r,n,i=Object.assign({},e.options);return null!=e&&e.autoHeight&&(i.height=null==(r=t.current)||null==(n=r.parentNode)?void 0:n.offsetHeight),i=Object.assign({},i,{theme:null==e?void 0:e.theme,linkColor:null==e?void 0:e.linkColor,borderColor:null==e?void 0:e.borderColor,lang:null==e?void 0:e.lang,tweetLimit:null==e?void 0:e.tweetLimit,ariaPolite:null==e?void 0:e.ariaPolite})};return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[o])return void console.error("Method "+o+" is not present anymore in twttr.widget api");var r,i=u();(r=i).chrome="",e.noHeader&&(r.chrome=r.chrome+" noheader"),e.noFooter&&(r.chrome=r.chrome+" nofooter"),e.noBorders&&(r.chrome=r.chrome+" noborders"),e.noScrollbar&&(r.chrome=r.chrome+" noscrollbar"),e.transparent&&(r.chrome=r.chrome+" transparent"),i=r,window.twttr.widgets[o]({sourceType:e.sourceType,screenName:e.screenName,userId:e.userId,ownerScreenName:e.ownerScreenName,slug:e.slug,id:e.id||e.widgetId,url:e.url},null==t?void 0:t.current,i).then(function(t){l(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,s&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},s="createShareButton",l=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],l=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[s])return void console.error("Method "+s+" is not present anymore in twttr.widget api");window.twttr.widgets[s](e.url,null==t?void 0:t.current,e.options).then(function(t){l(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},u="createFollowButton",c=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[u])return void console.error("Method "+u+" is not present anymore in twttr.widget api");window.twttr.widgets[u](e.screenName,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},f="createHashtagButton",d=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[f])return void console.error("Method "+f+" is not present anymore in twttr.widget api");window.twttr.widgets[f](e.tag,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},h="createMentionButton",p=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[h])return void console.error("Method "+h+" is not present anymore in twttr.widget api");window.twttr.widgets[h](e.screenName,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},y="createTweet",m=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[y])return void console.error("Method "+y+" is not present anymore in twttr.widget api");window.twttr.widgets[y](e.tweetId,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},g="createMoment",v=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[g])return void console.error("Method "+g+" is not present anymore in twttr.widget api");window.twttr.widgets[g](e.momentId,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},b="createDMButton",_=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[b])return void console.error("Method "+b+" is not present anymore in twttr.widget api");window.twttr.widgets[b](e.id,null==t?void 0:t.current,e.options).then(function(t){n&&(s(!1),e.onLoad&&e.onLoad(t))})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},w="createVideo",E=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[w])return void console.error("Method "+w+" is not present anymore in twttr.widget api");window.twttr.widgets[w](e.id,null==t?void 0:t.current).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},S="createPeriscopeOnAirButton",x=function(e){var t=n.useRef(null),o=n.useState(!0),a=o[0],s=o[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(n){if(!window.twttr.widgets[S])return void console.error("Method "+S+" is not present anymore in twttr.widget api");window.twttr.widgets[S](e.username,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))}},98268:function(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(13980),i=r.n(n),o=r(2784),a=r(69378),s=r.n(a),l=r(55741),u=r.n(l),c=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&m(e,r,t[r]);if(h)for(var r of h(t))y.call(t,r)&&m(e,r,t[r]);return e},v=(e,t)=>f(e,d(t));function b(e={}){return v(g({},e),{height:0,width:0,playerVars:v(g({},e.playerVars),{autoplay:0,start:0,end:0})})}var _={videoId:i().string,id:i().string,className:i().string,iframeClassName:i().string,style:i().object,title:i().string,loading:i().oneOf(["lazy","eager"]),opts:i().objectOf(i().any),onReady:i().func,onError:i().func,onPlay:i().func,onPause:i().func,onEnd:i().func,onStateChange:i().func,onPlaybackRateChange:i().func,onPlaybackQualityChange:i().func},w=class extends o.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,r;return null==(r=(t=this.props).onReady)?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return null==(r=(t=this.props).onError)?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,n,i,o,a,s,l;switch(null==(r=(t=this.props).onStateChange)||r.call(t,e),e.data){case w.PlayerState.ENDED:null==(i=(n=this.props).onEnd)||i.call(n,e);break;case w.PlayerState.PLAYING:null==(a=(o=this.props).onPlay)||a.call(o,e);break;case w.PlayerState.PAUSED:null==(l=(s=this.props).onPause)||l.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackRateChange)?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackQualityChange)?void 0:r.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"==typeof document)return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);let e=v(g({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=u()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,n;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let i=!1,o={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(i=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(o.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(o.endSeconds=this.props.opts.playerVars.end)),i){null==(r=this.internalPlayer)||r.loadVideoById(o);return}null==(n=this.internalPlayer)||n.cueVideoById(o)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){let t,r;return t=this,r=function*(){var t,r,n,i,o,a;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(r=e.opts)?void 0:r.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(i=e.opts)?void 0:i.height)!==(null==(o=t.opts)?void 0:o.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),a=this.props,e.videoId===a.videoId&&s()(b(e.opts),b(a.opts))||(yield this.resetPlayer()),function(e,t){var r,n;if(e.videoId!==t.videoId)return!0;let i=(null==(r=e.opts)?void 0:r.playerVars)||{},o=(null==(n=t.opts)?void 0:n.playerVars)||{};return i.start!==o.start||i.end!==o.end}(e,this.props)&&this.updateVideo()},new Promise((e,n)=>{var i=e=>{try{a(r.next(e))}catch(e){n(e)}},o=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,o);a((r=r.apply(t,null)).next())})}componentWillUnmount(){this.destroyPlayer()}render(){return o.createElement("div",{className:this.props.className,style:this.props.style},o.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};w.propTypes=_,w.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},w.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var E=w},64452:function(e){"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){function t(t,n,i){return e.call(this,"string"==typeof r?r:r(t,n,i))||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(l="must not be",t=t.replace(/^not /,"")):l="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)u="The ".concat(e," ").concat(l," ").concat(n(t,"type"));else{var i,o,a,s,l,u,c=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";u='The "'.concat(e,'" ').concat(c," ").concat(l," ").concat(n(t,"type"))}return u+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=t},77073:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(28051),o=r(2557);r(91285)(u,i);for(var a=n(o.prototype),s=0;s0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===c.prototype||(a=t,t=c.from(a)),n)l.endEmitted?w(e,new _):k(e,l,t,!0);else if(l.ended)w(e,new v);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?k(e,l,t,!1):A(e,l)):k(e,l,t,!1)}else n||(l.reading=!1,A(e,l));return!l.ended&&(l.lengtht.highWaterMark&&((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function C(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(P,e))}function P(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function A(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){i("readable nexttick read 0"),e.read(0)}function M(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function L(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(F,t,e))}function F(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return i("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?L(this):C(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&L(this),null;var o=r.needReadable;return i("need readable",o),(0===r.length||r.length-e0?N(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&L(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){w(this,new b("_read()"))},x.prototype.pipe=function(e,t){var r,n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?y:s;function s(){i("onend"),e.end()}o.endEmitted?process.nextTick(a):n.once("end",a),e.on("unpipe",function t(r,a){i("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",y),n.removeListener("data",f),c=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=(r=n,function(){var e=r._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,j(r))});e.on("drain",u);var c=!1;function f(t){i("ondata");var r=e.write(t);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==U(o.pipes,e))&&!c&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function d(t){i("onerror",t),y(),e.removeListener("error",d),0===l(e,"error")&&w(e,t)}function h(){e.removeListener("finish",p),y()}function p(){i("onfinish"),e.removeListener("close",h),y()}function y(){i("unpipe"),n.unpipe(e)}return n.on("data",f),!function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?C(this):n.reading||process.nextTick(D,this)),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(I,this),r},x.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(I,this),t},x.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(i("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,process.nextTick(M,e,t))),r.paused=!1,this},x.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){if(i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!r.objectMode||null!=o)(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n,i,o,a=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||(n=this,i=a,o=r,i.ending=!0,A(n,i),o&&(i.finished?process.nextTick(o):n.once("finish",o)),i.ended=!0,n.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=c.destroy,x.prototype._undestroy=c.undestroy,x.prototype._destroy=function(e,t){t(e)}},1029:function(e,t,r){"use strict";function n(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,o=r(59885),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function y(e){process.nextTick(p,e)}var m=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((n(i={get stream(){return this[d]},next:function(){var e,t,r=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[l]?t(r[l]):e(h(void 0,!0))})});var i=this[c];if(i)t=new Promise((e=this,function(t,r){i.then(function(){if(e[u])return void t(h(void 0,!0));e[f](t,r)},r)}));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));t=new Promise(this[f])}return this[c]=t,t}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e)return void r(e);t(h(void 0,!0))})})}),i),m);e.exports=function(e){var t,r=Object.create(g,(n(t={},d,{value:e,writable:!0}),n(t,a,{value:null,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,u,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[d].read();n?(r[c]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];null!==t&&(r[c]=null,r[a]=null,r[s]=null,t(e)),r[l]=e;return}var n=r[a];null!==n&&(r[c]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[u]=!0}),e.on("readable",y.bind(null,r)),r}},56637:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n=a.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,r=o,a.prototype.copy.call(t,n,r),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return s(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r0,u=s=function(e){t||(t=e),e&&h.forEach(l),m||(h.forEach(l),d(t))},f=!1,s=function(){f||(f=!0,u.apply(void 0,arguments))},p=!1,e.on("close",function(){p=!0}),void 0===n&&(n=r(59885)),n(e,{readable:m,writable:o},function(e){if(e)return s(e);p=!0,s()}),y=!1,function(t){if(!p&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return c.reduce(u)}},87605:function(e,t,r){"use strict";var n=r(64452).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},15010:function(e,t,r){e.exports=r(22699).EventEmitter},67525:function(e,t,r){(t=e.exports=r(28051)).Stream=t,t.Readable=t,t.Writable=r(2557),t.Duplex=r(77073),t.Transform=r(27640),t.PassThrough=r(95163),t.finished=r(59885),t.pipeline=r(63495)},51445:function(e,t,r){"use strict";var n=r(48834).Buffer,i=r(91285),o=r(94307),a=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function f(){o.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function d(e,t){return e<>>32-t}i(f,o),f.prototype._update=function(){for(var e,t,r,n,i,o,f,h,p,y,m,g,v,b,_,w,E,S,x,O,k,T,C,P,A,R,I,D,M,j,N,L,F,U,B,z,$,q,W,V,H,G,K,Y,Q,J,X,Z,ee,et,er,en,ei=0;ei<16;++ei)a[ei]=this._block.readInt32LE(4*ei);for(var eo=0|this._a,ea=0|this._b,es=0|this._c,el=0|this._d,eu=0|this._e,ec=0|this._a,ef=0|this._b,ed=0|this._c,eh=0|this._d,ep=0|this._e,ey=0;ey<80;ey+=1){ey<16?(e=eo,t=ea,r=es,n=el,i=eu,er=d(e+(t^r^n)+a[s[ey]]+0|0,u[ey])+i|0,o=ec,f=ef,h=ed,p=eh,y=ep,en=d(o+(f^(h|~p))+a[l[ey]]+0x50a28be6|0,c[ey])+y|0):ey<32?(m=eo,g=ea,v=es,b=el,_=eu,er=d(m+(g&v|~g&b)+a[s[ey]]+0x5a827999|0,u[ey])+_|0,w=ec,E=ef,S=ed,x=eh,O=ep,en=d(w+(E&x|S&~x)+a[l[ey]]+0x5c4dd124|0,c[ey])+O|0):ey<48?(k=eo,T=ea,C=es,P=el,A=eu,er=d(k+((T|~C)^P)+a[s[ey]]+0x6ed9eba1|0,u[ey])+A|0,R=ec,I=ef,D=ed,M=eh,j=ep,en=d(R+((I|~D)^M)+a[l[ey]]+0x6d703ef3|0,c[ey])+j|0):ey<64?(N=eo,L=ea,F=es,U=el,B=eu,er=d(N+(L&U|F&~U)+a[s[ey]]+0x8f1bbcdc|0,u[ey])+B|0,z=ec,$=ef,q=ed,W=eh,V=ep,en=d(z+($&q|~$&W)+a[l[ey]]+0x7a6d76e9|0,c[ey])+V|0):(H=eo,G=ea,K=es,Y=el,Q=eu,er=d(H+(G^(K|~Y))+a[s[ey]]+0xa953fd4e|0,u[ey])+Q|0,J=ec,X=ef,Z=ed,ee=eh,et=ep,en=d(J+(X^Z^ee)+a[l[ey]]+0|0,c[ey])+et|0),eo=eu,eu=el,el=d(es,10),es=ea,ea=er,ec=ep,ep=eh,eh=d(ed,10),ed=ef,ef=en}var em=this._b+es+eh|0;this._b=this._c+el+ep|0,this._c=this._d+eu+ec|0,this._d=this._e+eo+ef|0,this._e=this._a+ea+ed|0,this._a=em},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},94307:function(e,t,r){"use strict";var n=r(77834).Buffer,i=r(67525).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91285)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){var r=e;if(!n.isBuffer(r)&&"string"!=typeof r)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var i=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=l,(l=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*l);return this},o.prototype._update=function(){throw Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=o},40292:function(e,t,r){"use strict";r.d(t,{y:()=>c});var n=r(52859),i=r(32880),o=r(34105),a=r(69676),s=r(64020),l=r(59126),u=r(24831),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o=this,a=!function(e){return e&&e instanceof n.Lv||e&&(0,l.m)(e.next)&&(0,l.m)(e.error)&&(0,l.m)(e.complete)&&(0,i.Nn)(e)}(e)?new n.Hp(e,t,r):e;return(0,u.x)(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=f(t))(function(t,i){var o=new n.Hp({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[o.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;ta});var n=r(85452),i=r(64016),o=r(53874),a=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.l);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,n.ZT)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,a=this._windowTime;!r&&(n.push(t),i||n.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;iu});var n=r(85452),i=r(40292),o=r(32880),a=(0,r(5589).d)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),s=r(37990),l=r(24831),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,n.ZT)(t,e),t.prototype.lift=function(e){var t=new c(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a},t.prototype.next=function(e){var t=this;(0,l.x)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,n.XA)(t.currentObservers),a=o.next();!a.done;a=o.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,l.x)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,l.x)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?o.Lc:(this.currentObservers=null,i.push(e),new o.w0(function(){t.currentObservers=null,(0,s.P)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new i.y;return e.source=this,e},t.create=function(e,t){return new c(e,t)},t}(i.y),c=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,n.ZT)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:o.Lc},t}(u)},52859:function(e,t,r){"use strict";r.d(t,{Hp:()=>g,Lv:()=>h});var n=r(85452),i=r(59126),o=r(32880),a=r(64020),s=r(66278);function l(){}var u=c("C",void 0,void 0);function c(e,t,r){return{kind:e,value:t,error:r}}var f=r(90561),d=r(24831),h=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,o.Nn)(t)&&t.add(r)):r.destination=_,r}return(0,n.ZT)(t,e),t.create=function(e,t,r){return new g(e,t,r)},t.prototype.next=function(e){this.isStopped?b(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?b(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?b(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.w0),p=Function.prototype.bind;function y(e,t){return p.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),g=function(e){function t(t,r,n){var o,s,l=e.call(this)||this;return(0,i.m)(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:l&&a.v.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},o={next:t.next&&y(t.next,s),error:t.error&&y(t.error,s),complete:t.complete&&y(t.complete,s)}):o=t,l.destination=new m(o),l}return(0,n.ZT)(t,e),t}(h);function v(e){a.v.useDeprecatedSynchronousErrorHandling?(0,d.O)(e):(0,s.h)(e)}function b(e,t){var r=a.v.onStoppedNotification;r&&f.z.setTimeout(function(){return r(e,t)})}var _={closed:!0,next:l,error:function(e){throw e},complete:l}},32880:function(e,t,r){"use strict";r.d(t,{Lc:()=>l,w0:()=>s,Nn:()=>u});var n=r(85452),i=r(59126),o=(0,r(5589).d)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),a=r(37990),s=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,a,s,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=(0,n.XA)(l),f=u.next();!f.done;f=u.next())f.value.remove(this)}catch(t){e={error:t}}finally{try{f&&!f.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var d=this.initialTeardown;if((0,i.m)(d))try{d()}catch(e){s=e instanceof o?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=(0,n.XA)(h),y=p.next();!y.done;y=p.next()){var m=y.value;try{c(m)}catch(e){s=null!=s?s:[],e instanceof o?s=(0,n.ev)((0,n.ev)([],(0,n.CR)(s)),(0,n.CR)(e.errors)):s.push(e)}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}}if(s)throw new o(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.P)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,a.P)(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),l=s.EMPTY;function u(e){return e instanceof s||e&&"closed"in e&&(0,i.m)(e.remove)&&(0,i.m)(e.add)&&(0,i.m)(e.unsubscribe)}function c(e){(0,i.m)(e)?e():e.unsubscribe()}},64020:function(e,t,r){"use strict";r.d(t,{v:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},20:function(e,t,r){"use strict";r.d(t,{E:()=>n});var n=new(r(40292)).y(function(e){return e.complete()})},97674:function(e,t,r){"use strict";r.d(t,{Xf:()=>y});var n=r(85452),i=r(9361),o=r(51856),a=r(40292),s=r(31053),l=r(41305),u=r(62085),c=r(83651),f=r(42141),d=r(59126),h=r(66278),p=r(34105);function y(e){if(e instanceof a.y)return e;if(null!=e){var t,r,y,g,v;if((0,s.c)(e)){return t=e,new a.y(function(e){var r=t[p.L]();if((0,d.m)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,i.z)(e)){return r=e,new a.y(function(e){for(var t=0;ti});var n=r(85452);function i(e,t,r,n,i){return new o(e,t,r,n,i)}var o=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,n.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(r(52859).Lv)},77984:function(e,t,r){"use strict";r.d(t,{U:()=>o});var n=r(1118),i=r(67394);function o(e,t){return(0,n.e)(function(r,n){var o=0;r.subscribe((0,i.x)(n,function(r){n.next(e.call(t,r,o++))}))})}},70575:function(e,t,r){"use strict";r.d(t,{Q:()=>a});var n=r(90032),i=r(1118),o=r(67394);function a(e,t){return void 0===t&&(t=0),(0,i.e)(function(r,i){r.subscribe((0,o.x)(i,function(r){return(0,n.f)(i,e,function(){return i.next(r)},t)},function(){return(0,n.f)(i,e,function(){return i.complete()},t)},function(r){return(0,n.f)(i,e,function(){return i.error(r)},t)}))})}},76619:function(e,t,r){"use strict";r.d(t,{B:()=>l});var n=r(85452),i=r(97674),o=r(64016),a=r(52859),s=r(1118);function l(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new o.x}:t,n=e.resetOnError,l=void 0===n||n,c=e.resetOnComplete,f=void 0===c||c,d=e.resetOnRefCountZero,h=void 0===d||d;return function(e){var t,n,o,c=0,d=!1,p=!1,y=function(){null==n||n.unsubscribe(),n=void 0},m=function(){y(),t=o=void 0,d=p=!1},g=function(){var e=t;m(),null==e||e.unsubscribe()};return(0,s.e)(function(e,s){c++,p||d||y();var v=o=null!=o?o:r();s.add(function(){0!=--c||p||d||(n=u(g,h))}),v.subscribe(s),!t&&c>0&&(t=new a.Hp({next:function(e){return v.next(e)},error:function(e){p=!0,y(),n=u(m,l,e),v.error(e)},complete:function(){d=!0,y(),n=u(m,f),v.complete()}}),(0,i.Xf)(e).subscribe(t))})(e)}}function u(e,t){for(var r=[],o=2;oo});var n=r(51221),i=r(76619);function o(e,t,r){var o,a,s,l,u=!1;return e&&"object"==typeof e?(l=void 0===(o=e.bufferSize)?1/0:o,t=void 0===(a=e.windowTime)?1/0:a,u=void 0!==(s=e.refCount)&&s,r=e.scheduler):l=null!=e?e:1/0,(0,i.B)({connector:function(){return new n.t(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},11348:function(e,t,r){"use strict";r.d(t,{b:()=>s});var n=r(59126),i=r(1118),o=r(67394),a=r(69676);function s(e,t,r){var s=(0,n.m)(e)||t||r?{next:e,error:t,complete:r}:e;return s?(0,i.e)(function(e,t){null==(r=s.subscribe)||r.call(s);var r,n=!0;e.subscribe((0,o.x)(t,function(e){var r;null==(r=s.next)||r.call(s,e),t.next(e)},function(){var e;n=!1,null==(e=s.complete)||e.call(s),t.complete()},function(e){var r;n=!1,null==(r=s.error)||r.call(s,e),t.error(e)},function(){var e,t;n&&(null==(e=s.unsubscribe)||e.call(s)),null==(t=s.finalize)||t.call(s)}))}):a.y}},88005:function(e,t,r){"use strict";r.d(t,{o:()=>s});var n=r(85452),i=function(e){function t(t,r){return e.call(this)||this}return(0,n.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(32880).w0),o={setInterval:function(e,t){for(var r=[],i=2;ia});var n=r(85452),i=r(53874),o=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=i.l.now,e}(),a=function(e){function t(t,r){void 0===r&&(r=o.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,n.ZT)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(o)},53874:function(e,t,r){"use strict";r.d(t,{l:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},90561:function(e,t,r){"use strict";r.d(t,{z:()=>i});var n=r(85452),i={setTimeout:function(e,t){for(var r=[],o=2;on});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},34105:function(e,t,r){"use strict";r.d(t,{L:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},37990:function(e,t,r){"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{P:()=>n})},5589:function(e,t,r){"use strict";function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}r.d(t,{d:()=>n})},24831:function(e,t,r){"use strict";r.d(t,{O:()=>a,x:()=>o});var n=r(64020),i=null;function o(e){if(n.v.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,a=r.error;if(i=null,o)throw a}}else e()}function a(e){n.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},90032:function(e,t,r){"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}r.d(t,{f:()=>n})},69676:function(e,t,r){"use strict";function n(e){return e}r.d(t,{y:()=>n})},9361:function(e,t,r){"use strict";r.d(t,{z:()=>n});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},41305:function(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(59126);function i(e){return Symbol.asyncIterator&&(0,n.m)(null==e?void 0:e[Symbol.asyncIterator])}},59126:function(e,t,r){"use strict";function n(e){return"function"==typeof e}r.d(t,{m:()=>n})},31053:function(e,t,r){"use strict";r.d(t,{c:()=>o});var n=r(34105),i=r(59126);function o(e){return(0,i.m)(e[n.L])}},83651:function(e,t,r){"use strict";r.d(t,{T:()=>o});var n=r(6149),i=r(59126);function o(e){return(0,i.m)(null==e?void 0:e[n.h])}},51856:function(e,t,r){"use strict";r.d(t,{t:()=>i});var n=r(59126);function i(e){return(0,n.m)(null==e?void 0:e.then)}},42141:function(e,t,r){"use strict";r.d(t,{L:()=>a,Q:()=>o});var n=r(85452),i=r(59126);function o(e){return(0,n.FC)(this,arguments,function(){var t,r,i;return(0,n.Jh)(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.qq)(t.read())];case 3:if(i=(r=o.sent()).value,!r.done)return[3,5];return[4,(0,n.qq)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,n.qq)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function a(e){return(0,i.m)(null==e?void 0:e.getReader)}},86670:function(e,t,r){"use strict";r.d(t,{K:()=>i});var n=r(59126);function i(e){return e&&(0,n.m)(e.schedule)}},1118:function(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(59126);function i(e){return function(t){if((0,n.m)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},66278:function(e,t,r){"use strict";r.d(t,{h:()=>o});var n=r(64020),i=r(90561);function o(e){i.z.setTimeout(function(){var t=n.v.onUnhandledError;if(t)t(e);else throw e})}},62085:function(e,t,r){"use strict";function n(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.d(t,{z:()=>n})},77834:function(e,t,r){var n=r(48834),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},66369:function(e,t){"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,i=e[n];if(0>>1;no(l,r))uo(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else if(uo(c,r))e[n]=c,e[u]=r,n=u;else break}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a,s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],f=[],d=1,h=null,p=3,y=!1,m=!1,g=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,_="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=n(f);null!==t;){if(null===t.callback)i(f);else if(t.startTime<=e)i(f),t.sortIndex=t.expirationTime,r(c,t);else break;t=n(f)}}function S(e){if(g=!1,E(e),!m)if(null!==n(c))m=!0,x||(x=!0,a());else{var t=n(f);null!==t&&I(S,t.startTime-e)}}var x=!1,O=-1,k=5,T=-1;function C(){return!!v||!(t.unstable_now()-Te&&C());){var s=h.callback;if("function"==typeof s){h.callback=null,p=h.priorityLevel;var l=s(h.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof l){h.callback=l,E(e),r=!0;break t}h===n(c)&&i(c),E(e)}else i(c);h=n(c)}if(null!==h)r=!0;else{var u=n(f);null!==u&&I(S,u.startTime-e),r=!1}}break e}finally{h=null,p=o,y=!1}}}finally{r?a():x=!1}}}if("function"==typeof w)a=function(){w(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,R=A.port2;A.port1.onmessage=P,a=function(){R.postMessage(null)}}else a=function(){b(P,0)};function I(e,r){O=b(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125s?(e.sortIndex=o,r(f,e),null===n(c)&&e===n(f)&&(g?(_(O),O=-1):g=!0,I(S,o-s))):(e.sortIndex=l,r(c,e),m||y||(m=!0,x||(x=!0,a()))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},14616:function(e,t,r){"use strict";e.exports=r(66369)},88391:function(e){!function(t,r){e.exports?e.exports=r():"function"==typeof define&&define.amd?define(r):this[t]=r()}("$script",function(){var e,t,r=document,n=r.getElementsByTagName("head")[0],i="push",o="readyState",a="onreadystatechange",s={},l={},u={},c={};function f(e,t){for(var r=0,n=e.length;r.*?/,a=/[<>\/\u2028\u2029]/g,s=/<\/script[^>]*>/gi,l=["*","async"],u={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function c(e){return u[e]}e.exports=function e(u,f){f||(f={}),("number"==typeof f||"string"==typeof f)&&(f={space:f});var d,h=[],p=[],y=[],m=[],g=[],v=[],b=[],_=[],w=[],E=[];return(f.ignoreFunction&&"function"==typeof u&&(u=void 0),void 0===u)?String(u):"string"!=typeof(d=f.isJSON&&!f.space?JSON.stringify(u):JSON.stringify(u,f.isJSON?null:function(e,r){if(f.ignoreFunction&&function(e){var t=[];for(var r in e)"function"==typeof e[r]&&t.push(r);for(var n=0;n/g,"\\u003E")}).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")),i.test(x)||o.test(x))return x;var O=x.indexOf("("),k=x.substr(0,O).trim().split(" ").filter(function(e){return e.length>0});return k.filter(function(e){return -1===l.indexOf(e)}).length>0?(k.indexOf("async")>-1?"async ":"")+"function"+(k.join("").indexOf("*")>-1?"*":"")+x.substr(O):x})}},47669:function(e,t,r){"use strict";var n=r(67286),i=r(75195),o=r(81181)(),a=r(50326),s=r(5408),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},73327:function(e,t,r){"use strict";var n=r(77834).Buffer,i=r(30025);function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){e=i(e,t||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=0xffffffff)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(0|r)>>>0;this._block.writeUInt32BE((r-n)/0x100000000,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=o},9065:function(e,t,r){"use strict";e.exports=function(t){var r=t.toLowerCase(),n=e.exports[r];if(!n)throw Error(r+" is not supported (we accept pull requests)");return new n},e.exports.sha=r(8820),e.exports.sha1=r(17885),e.exports.sha224=r(58321),e.exports.sha256=r(74424),e.exports.sha384=r(90213),e.exports.sha512=r(55596)},8820:function(e,t,r){"use strict";var n=r(91285),i=r(73327),o=r(77834).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var u=0;u<80;++u){var c,f,d,h,p,y=~~(u/20),m=((c=r)<<5|c>>>27)+(f=n,d=i,h=o,0===y?f&d|~f&h:2===y?f&d|f&h|d&h:f^d^h)+s+t[u]+a[y]|0;s=o,o=i,i=(p=n)<<30|p>>>2,n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},17885:function(e,t,r){"use strict";var n=r(91285),i=r(73327),o=r(77834).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=(c=t[l-3]^t[l-8]^t[l-14]^t[l-16])<<1|c>>>31;for(var u=0;u<80;++u){var c,f,d,h,p,y,m=~~(u/20),g=((f=r)<<5|f>>>27)+(d=n,h=i,p=o,0===m?d&h|~d&p:2===m?d&h|d&p|h&p:d^h^p)+s+t[u]+a[m]|0;s=o,o=i,i=(y=n)<<30|y>>>2,n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},58321:function(e,t,r){"use strict";var n=r(91285),i=r(74424),o=r(73327),a=r(77834).Buffer,s=Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},74424:function(e,t,r){"use strict";var n=r(91285),i=r(73327),o=r(77834).Buffer,a=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],s=Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0|this._f,u=0|this._g,c=0|this._h,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<64;++f)t[f]=(((h=t[f-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+t[f-7]+(((p=t[f-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[f-16]|0;for(var d=0;d<64;++d){var h,p,y,m,g,v,b,_,w,E=c+(((y=s)>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(m=s,g=l,(v=u)^m&(g^v))+a[d]+t[d]|0,S=(((b=r)>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+((_=r)&(w=n)|i&(_|w))|0;c=u,u=l,l=s,s=o+E|0,o=i,i=n,n=r,r=E+S|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=l+this._f|0,this._g=u+this._g|0,this._h=c+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},90213:function(e,t,r){"use strict";var n=r(91285),i=r(55596),o=r(73327),a=r(77834).Buffer,s=Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}n(l,i),l.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},55596:function(e,t,r){"use strict";var n=r(91285),i=r(73327),o=r(77834).Buffer,a=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],s=Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function c(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return+(e>>>0>>0)}n(l,i),l.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,l=0|this._fh,d=0|this._gh,h=0|this._hh,p=0|this._al,y=0|this._bl,m=0|this._cl,g=0|this._dl,v=0|this._el,b=0|this._fl,_=0|this._gl,w=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var S,x,O,k,T,C,P,A,R=t[E-30],I=t[E-30+1],D=((S=R)>>>1|(x=I)<<31)^(S>>>8|x<<24)^S>>>7,M=((O=I)>>>1|(k=R)<<31)^(O>>>8|k<<24)^(O>>>7|k<<25);R=t[E-4],I=t[E-4+1];var j=((T=R)>>>19|(C=I)<<13)^(C>>>29|T<<3)^T>>>6,N=((P=I)>>>19|(A=R)<<13)^(A>>>29|P<<3)^(P>>>6|A<<26),L=t[E-14],F=t[E-14+1],U=t[E-32],B=t[E-32+1],z=M+F|0,$=D+L+f(z,M)|0;$=($=$+j+f(z=z+N|0,N)|0)+U+f(z=z+B|0,B)|0,t[E]=$,t[E+1]=z}for(var q=0;q<160;q+=2){$=t[q],z=t[q+1];var W,V,H,G,K,Y,Q,J,X,Z,ee=(W=r)&(V=n)|i&(W|V),et=(H=p)&(G=y)|m&(H|G),er=u(r,p),en=u(p,r),ei=c(s,v),eo=c(v,s),ea=a[q],es=a[q+1],el=(K=s,Y=l,(Q=d)^K&(Y^Q)),eu=(J=v,X=b,(Z=_)^J&(X^Z)),ec=w+eo|0,ef=h+ei+f(ec,w)|0;ef=(ef=(ef=ef+el+f(ec=ec+eu|0,eu)|0)+ea+f(ec=ec+es|0,es)|0)+$+f(ec=ec+z|0,z)|0;var ed=en+et|0,eh=er+ee+f(ed,en)|0;h=d,w=_,d=l,_=b,l=s,b=v,s=o+ef+f(v=g+ec|0,g)|0,o=i,g=m,i=n,m=y,n=r,y=p,r=ef+eh+f(p=ec+ed|0,ec)|0}this._al=this._al+p|0,this._bl=this._bl+y|0,this._cl=this._cl+m|0,this._dl=this._dl+g|0,this._el=this._el+v|0,this._fl=this._fl+b|0,this._gl=this._gl+_|0,this._hl=this._hl+w|0,this._ah=this._ah+r+f(this._al,p)|0,this._bh=this._bh+n+f(this._bl,y)|0,this._ch=this._ch+i+f(this._cl,m)|0,this._dh=this._dh+o+f(this._dl,g)|0,this._eh=this._eh+s+f(this._el,v)|0,this._fh=this._fh+l+f(this._fl,b)|0,this._gh=this._gh+d+f(this._gl,_)|0,this._hh=this._hh+h+f(this._hl,w)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},88665:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);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)):void(e.copy(this.lastChar,t,0,e.length),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 f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):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)},o.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}},78943:function(e,t,r){"use strict";r.d(t,{vJ:()=>ty,iv:()=>tf,Ni:()=>to,F4:()=>tm,f6:()=>ta,ZP:()=>th});var n=r(85452),i=r(2784),o="-ms-",a="-moz-",s="-webkit-",l="comm",u="rule",c="decl",f="@keyframes",d=Math.abs,h=String.fromCharCode,p=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function m(e,t,r){return e.replace(t,r)}function g(e,t,r){return e.indexOf(t,r)}function v(e,t){return 0|e.charCodeAt(t)}function b(e,t,r){return e.slice(t,r)}function _(e){return e.length}function w(e,t){return t.push(e),e}function E(e,t){return e.filter(function(e){return!y(e,t)})}var S=1,x=1,O=0,k=0,T=0,C="";function P(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:S,column:x,length:a,return:"",siblings:s}}function A(e,t){return p(P("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function R(e){for(;e.root;)e=A(e.root,{children:[e]});w(e,e.siblings)}function I(){return T=k-1&&!e.return)switch(e.type){case c:e.return=function e(t,r,n){var i;switch(i=r,45^v(t,0)?(((i<<2^v(t,0))<<2^v(t,1))<<2^v(t,2))<<2^v(t,3):0){case 5103:return s+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return s+t+t;case 4855:return s+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return a+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return s+t+a+t+o+t+t;case 5936:switch(v(t,r+11)){case 114:return s+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return s+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return s+t+o+m(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return s+t+o+t+t;case 6165:return s+t+o+"flex-"+t+t;case 5187:return s+t+m(t,/(\w+).+(:[^]+)/,s+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return s+t+o+"flex-item-"+m(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":o+"grid-row-"+m(t,/flex-|-self/g,""))+t;case 4675:return s+t+o+"flex-line-pack"+m(t,/align-content|flex-|-self/g,"")+t;case 5548:return s+t+o+m(t,"shrink","negative")+t;case 5292:return s+t+o+m(t,"basis","preferred-size")+t;case 6060:return s+"box-"+m(t,"-grow","")+s+t+o+m(t,"grow","positive")+t;case 4554:return s+m(t,/([^-])(transform)/g,"$1"+s+"$2")+t;case 6187:return m(m(m(t,/(zoom-|grab)/,s+"$1"),/(image-set)/,s+"$1"),t,"")+t;case 5495:case 3959:return m(t,/(image-set\([^]*)/,s+"$1$`$1");case 4968:return m(m(t,/(.+:)(flex-)?(.*)/,s+"box-pack:$3"+o+"flex-pack:$3"),/space-between/,"justify")+s+t+t;case 4200:if(!y(t,/flex-|baseline/))return o+"grid-column-align"+b(t,r)+t;break;case 2592:case 3360:return o+m(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,y(e.props,/grid-\w+-end/)}))return~g(t+(n=n[r].value),"span",0)?t:o+m(t,"-start","")+t+o+"grid-row-span:"+(~g(n,"span",0)?y(n,/\d+/):y(n,/\d+/)-y(t,/\d+/))+";";return o+m(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return y(e.props,/grid-\w+-start/)})?t:o+m(m(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return m(t,/(.+)-inline(.+)/,s+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(t)-1-r>6)switch(v(t,r+1)){case 109:if(45!==v(t,r+4))break;case 102:return m(t,/(.+:)(.+)-([^]+)/,"$1"+s+"$2-$3$1"+a+(108==v(t,r+3)?"$3":"$2-$3"))+t;case 115:return~g(t,"stretch",0)?e(m(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return m(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,i,a,s,l){return o+r+":"+n+l+(i?o+r+"-span:"+(a?s:s-n)+l:"")+t});case 4949:if(121===v(t,r+6))return m(t,":",":"+s)+t;break;case 6444:switch(v(t,45===v(t,14)?18:11)){case 120:return m(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+s+(45===v(t,14)?"inline-":"")+"box$3$1"+s+"$2$3$1"+o+"$2box$3")+t;case 100:return m(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return m(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case f:return N([A(e,{value:m(e.value,"@","@"+s)})],n);case u:if(e.length){var i,l;return i=r=e.props,l=function(t){switch(y(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":R(A(e,{props:[m(t,/:(read-\w+)/,":"+a+"$1")]})),R(A(e,{props:[t]})),p(e,{props:E(r,n)});break;case"::placeholder":R(A(e,{props:[m(t,/:(plac\w+)/,":"+s+"input-$1")]})),R(A(e,{props:[m(t,/:(plac\w+)/,":"+a+"$1")]})),R(A(e,{props:[m(t,/:(plac\w+)/,o+"input-$1")]})),R(A(e,{props:[t]})),p(e,{props:E(r,n)})}return""},i.map(l).join("")}}}function U(e,t,r,n,i,o,a,s,l,c,f,h){for(var p=i-1,y=0===i?o:[""],g=y.length,v=0,_=0,w=0;v0?y[E]+" "+S:m(S,/&\f/g,y[E])).trim())&&(l[w++]=x);return P(e,t,r,0===i?u:s,l,c,f,h)}function B(e,t,r,n,i){return P(e,t,r,c,b(e,0,n),b(e,n+1,-1),n,i)}var z={animationIterationCount:1,aspectRatio: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,scale: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},$="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",q="active",W="data-styled-version",V="6.3.11",H="/*!sc*/\n",G="undefined"!=typeof window&&"undefined"!=typeof document,K=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Y={};function Q(e){for(var t=[],r=1;r0?" Args: ".concat(t.join(", ")):""))}var J=new Map,X=new Map,Z=1,ee=function(e){if(J.has(e))return J.get(e);for(;X.has(Z);)Z++;var t=Z++;return J.set(e,t),X.set(t,e),t},et=function(e,t){Z=t+1,J.set(e,t),X.set(t,e)},er=Object.freeze([]),en=Object.freeze({});function ei(e,t,r){return void 0===r&&(r=en),e.theme!==r.theme&&e.theme||t||r.theme}var eo=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),ea=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,es=/(^-|-$)/g;function el(e){return e.replace(ea,"-").replace(es,"")}var eu=/(a)(d)/gi,ec=function(e){return String.fromCharCode(e+(e>25?39:97))};function ef(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ec(t%52)+r;return(ec(t%52)+r).replace(eu,"$1-$2")}var ed,eh=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ep=function(e){return eh(5381,e)};function ey(e){return ef(ep(e)>>>0)}function em(e){return"string"==typeof e}var eg="function"==typeof Symbol&&Symbol.for,ev=eg?Symbol.for("react.memo"):60115,eb=eg?Symbol.for("react.forward_ref"):60112,e_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ew={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eS=((ed={})[eb]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ed[ev]=eE,ed);function ex(e){return("type"in e&&e.type.$$typeof)===ev?eE:"$$typeof"in e?eS[e.$$typeof]:e_}var eO=Object.defineProperty,ek=Object.getOwnPropertyNames,eT=Object.getOwnPropertySymbols,eC=Object.getOwnPropertyDescriptor,eP=Object.getPrototypeOf,eA=Object.prototype;function eR(e){return"function"==typeof e}function eI(e){return"object"==typeof e&&"styledComponentId"in e}function eD(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eM(e,t){return e.join(t||"")}function ej(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eN(e,t){Object.defineProperty(e,"toString",{value:t})}var eL=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Q(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+=e+",")}),r+=a+s+'{content:"'+l+'"}'+H}}(n);return r})}return e.registerId=function(e){return ee(e)},e.prototype.rehydrate=function(){!this.server&&G&&eW(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var i=new e((0,n.pi)((0,n.pi)({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&G&&t.target!==this.options.target&&ez(this.options.target)!==ez(t.target)&&eW(i),i},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,r;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,r=e.target,new eL(e.isServer?new eK(r):t?new eH(r):new eG(r))))},e.prototype.hasNameForId=function(e,t){var r,n;return null!=(n=null==(r=this.names.get(e))?void 0:r.has(t))&&n},e.prototype.registerName=function(e,t){ee(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(ee(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ee(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),eX=/&/g;function eZ(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,i=!1,o=0;o0?".".concat(i):e},A=y.slice();A.push(function(e){e.type===u&&e.value.includes("&")&&(a||(a=RegExp("\\".concat(o,"\\b"),"g")),e.props[0]=e.props[0].replace(eX,o).replace(a,E))}),f.prefix&&A.push(F),A.push(L);var R=[],z=(r=(t=A.concat((n=function(e){return R.push(e)},function(e){!e.root&&(e=e.return)&&n(e)}))).length,function(e,n,i,o){for(var a="",s=0;s=3&&108==(32|e.charCodeAt(i-1))&&114==(32|e.charCodeAt(i-2))&&117==(32|e.charCodeAt(i-3)))a=1,i++;else if(a>0)41===s?a--:40===s&&a++,i++;else if(42===s&&i+1n&&r.push(e.substring(n,i)),n=i+=2;else if(47===s&&i+1n&&r.push(e.substring(n,i));i2||M(T)>3?"":" "}(F);break;case 92:Y+=function(e,t){for(var r;--t&&I()&&!(T<48)&&!(T>102)&&(!(T>57)||!(T<65))&&(!(T>70)||!(T<97)););return r=k+(t<6&&32==D()&&32==I()),b(C,e,r)}(k-1,7);continue;case 47:switch(D()){case 42:case 47:w((f=function(e,t){for(;I();)if(e+T===57)break;else if(e+T===84&&47===D())break;return"/*"+b(C,t,k-1)+"*"+h(47===e?e:I())}(I(),k),p=r,y=n,E=c,P(f,p,y,l,h(T),b(f,2,-2),0,E)),c),(5==M(F||1)||5==M(D()||1))&&_(Y)&&" "!==b(Y,-1,void 0)&&(Y+=" ");break;default:Y+="/"}break;case 123*z:u[O++]=_(Y)*q;case 125*z:case 59:case 0:switch(W){case 0:case 125:$=0;case 59+A:-1==q&&(Y=m(Y,/\f/g,"")),L>0&&(_(Y)-R||0===z&&47===F)&&w(L>32?B(Y+";",i,n,R-1,c):B(m(Y," ","")+";",i,n,R-2,c),c);break;case 59:Y+=";";default:if(w(K=U(Y,r,n,O,A,o,u,V,H=[],G=[],R,a),a),123===W)if(0===A)e(Y,r,K,K,H,a,R,u,G);else{switch(N){case 99:if(110===v(Y,3))break;case 108:if(97===v(Y,2))break;default:A=0;case 100:case 109:case 115:}A?e(t,K,K,i&&w(U(t,K,K,0,0,o,u,V,o,H=[],R,G),G),o,G,R,u,i?H:G):e(Y,K,K,K,[""],G,0,u,G)}}O=A=L=0,z=q=1,V=Y="",R=s;break;case 58:R=1+_(Y),L=F;default:if(z<1){if(123==W)--z;else if(125==W&&0==z++&&125==(T=k>0?v(C,--k):0,x--,10===T&&(x=1,S--),T))continue}switch(Y+=h(W),W*z){case 38:q=A>0?1:(Y+="\f",-1);break;case 44:u[O++]=(_(Y)-1)*q,q=1;break;case 64:45===D()&&(Y+=j(I())),N=D(),A=R=_(V=Y+=function(e){for(;!M(D());)I();return b(C,e,k)}(k)),W++;break;case 45:45===F&&2==_(Y)&&(z=0)}}return a}("",null,null,null,[""],(u=s=r||t?"".concat(r," ").concat(t," { ").concat(p," }"):p,S=x=1,O=_(C=u),k=0,s=[]),0,[0],s),C="",c);return f.namespace&&(y=function e(t,r){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(r," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(r," ")),t.props=t.props.map(function(e){return"".concat(r," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,r)),t})}(y,f.namespace)),R=[],N(y,z),R};return $.hash=y.length?y.reduce(function(e,t){return t.name||Q(15),eh(e,t.name)},5381).toString():"",$}var e1=new eJ,e2=e0(),e4=i.createContext({shouldForwardProp:void 0,styleSheet:e1,stylis:e2}),e3=(e4.Consumer,i.createContext(void 0));function e5(){return i.useContext(e4)}function e6(e){if(!i.useMemo)return e.children;var t=e5().styleSheet,r=i.useMemo(function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r},[e.disableCSSOMInjection,e.sheet,e.target,t]),n=i.useMemo(function(){return e0({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=i.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}},[e.shouldForwardProp,r,n]);return i.createElement(e4.Provider,{value:o},i.createElement(e3.Provider,{value:n},e.children))}var e8=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=e2);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eN(this,function(){throw Q(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e2),this.name+e.hash},e}();function e9(e){for(var t="",r=0;r="A"&&n<="Z"?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var e7=function(e){return null==e||!1===e||""===e},te=function(e){var t=[];for(var r in e){var i=e[r];e.hasOwnProperty(r)&&!e7(i)&&(Array.isArray(i)&&i.isCss||eR(i)?t.push("".concat(e9(r),":"),i,";"):ej(i)?t.push.apply(t,(0,n.ev)((0,n.ev)(["".concat(r," {")],te(i),!1),["}"],!1)):t.push("".concat(e9(r),": ").concat(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in z||r.startsWith("--")?String(i).trim():"".concat(i,"px"),";")))}return t};function tt(e,t,r,n,i){if(void 0===i&&(i=[]),"string"==typeof e)return e&&i.push(e),i;if(e7(e))return i;if(eI(e))return i.push(".".concat(e.styledComponentId)),i;if(eR(e))return!eR(e)||e.prototype&&e.prototype.isReactComponent||!t?(i.push(e),i):tt(e(t),t,r,n,i);if(e instanceof e8)return r?(e.inject(r,n),i.push(e.getName(n))):i.push(e),i;if(ej(e)){for(var o=te(e),a=0;a>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=eD(n,o),this.staticRulesId=o}else{for(var s=eh(this.baseHash,r.hash),l="",u=0;u>>0);if(!t.hasNameForId(this.componentId,d)){var h=r(l,".".concat(d),void 0,this.componentId);t.insertRules(this.componentId,d,h)}n=eD(n,d)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(ee(this.componentId)):""}},e}(),to=i.createContext(void 0);function ta(e){var t=i.useContext(to),r=i.useMemo(function(){var r=e.theme;if(!r)throw Q(14);if(eR(r))return r(t);if(Array.isArray(r)||"object"!=typeof r)throw Q(8);return t?(0,n.pi)((0,n.pi)({},t),r):r},[e.theme,t]);return e.children?i.createElement(to.Provider,{value:r},e.children):null}to.Consumer;var ts={};function tl(e,t,r){var o,a,s,l,u=eI(e),c=!em(e),f=t.attrs,d=void 0===f?er:f,h=t.componentId,p=void 0===h?(o=t.displayName,a=t.parentComponentId,ts[s="string"!=typeof o?"sc":el(o)]=(ts[s]||0)+1,l="".concat(s,"-").concat(ey(V+s+ts[s])),a?"".concat(a,"-").concat(l):l):h,y=t.displayName,m=void 0===y?em(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):y,g=t.displayName&&t.componentId?"".concat(el(t.displayName),"-").concat(t.componentId):t.componentId||p,v=u&&e.attrs?e.attrs.concat(d).filter(Boolean):d,b=t.shouldForwardProp;if(u&&e.shouldForwardProp){var _=e.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;b=function(e,t){return _(e,t)&&w(e,t)}}else b=_}var E=new ti(r,g,u?e.componentStyle:void 0);function S(e,t){return function(e,t,r){var o,a=e.attrs,s=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,f=e.target,d=i.useContext(to),h=e5(),p=e.shouldForwardProp||h.shouldForwardProp,y=ei(t,d,l)||en,m=function(e,t,r){for(var i,o=(0,n.pi)((0,n.pi)({},t),{className:void 0,theme:r}),a=0;a2&&eJ.registerId(this.componentId+e);var i=this.componentId+e;this.isStatic?r.hasNameForId(i,i)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function ty(e){for(var t=[],r=1;r").concat(t,"")},this.getStyleTags=function(){if(e.sealed)throw Q(2);return e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)throw Q(2);var t,o=e.instance.toString();if(!o)return[];var a=((t={})[$]="",t[W]=V,t.dangerouslySetInnerHTML={__html:o},t),s=r.nc;return s&&(a.nonce=s),[i.createElement("style",(0,n.pi)({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eJ({isServer:!0}),this.sealed=!1}tg.prototype.collectStyles=function(e){if(this.sealed)throw Q(2);return i.createElement(e6,{sheet:this.instance},e)},tg.prototype.interleaveWithNodeStream=function(e){throw Q(3)}},30025:function(e,t,r){"use strict";var n=r(77834).Buffer,i=r(77906),o=r(14662),a=ArrayBuffer.isView||function(e){try{return o(e),!0}catch(e){return!1}},s="undefined"!=typeof Uint8Array,l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,u=l&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);e.exports=function(e,t){if(e instanceof n)return e;if("string"==typeof e)return n.from(e,t);if(l&&a(e)){if(0===e.byteLength)return n.alloc(0);if(u){var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}var o=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),c=n.from(o);if(c.length===e.byteLength)return c}if(s&&e instanceof Uint8Array)return n.from(e);var f=i(e);if(f)for(var d=0;d255||~~h!==h)throw RangeError("Array items must be numbers in the range 0-255.")}if(f||n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},98970:function(e,t,r){"use strict";var n=r(32094);e.exports=function(e){return!!n(e)}},14662:function(e,t,r){"use strict";var n=r(5408),i=r(8435)("TypedArray.prototype.buffer",!0),o=r(98970);e.exports=i||function(e){if(!o(e))throw new n("Not a Typed Array");return e.buffer}},5803:function(e,t,r){e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}};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()}},45982:function(e){"use strict";e.exports=function(){}},32094:function(e,t,r){"use strict";var n=r(83243),i=r(22052),o=r(89429),a=r(8435),s=r(50326),l=r(21750),u=a("Object.prototype.toString"),c=r(67226)(),f="undefined"==typeof globalThis?r.g:globalThis,d=i(),h=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1?t:"Object"===t&&g(e)}return s?m(e):null}},37642:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(47071))&&n.__esModule?n:{default:n};t.default={pauseVideo:{acceptableStates:[i.default.ENDED,i.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[i.default.ENDED,i.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[i.default.ENDED,i.default.PLAYING,i.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},12349:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(15532)),i=s(r(78154)),o=s(r(14625)),a=s(r(37642));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,n.default)("youtube-player"),u={};u.proxyEvents=function(e){var t={},r=function(r){var n="on"+r.slice(0,1).toUpperCase()+r.slice(1);t[n]=function(t){l('event "%s"',n,t),e.trigger(r,t)}},n=!0,i=!1,a=void 0;try{for(var s,u=o.default[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var c=s.value;r(c)}}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return t},u.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},n=function(n){t&&a.default[n]?r[n]=function(){for(var t=arguments.length,r=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,i.default)();if(l||(l=(0,o.default)(s)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=a.default.proxyEvents(s);var u=new Promise(function(r){(void 0===e?"undefined":n(e))==="object"&&e.playVideo instanceof Function?r(e):l.then(function(n){var i=new n.Player(e,t);return s.on("ready",function(){r(i)}),null})}),c=a.default.promisifyPlayer(u,r);return c.on=s.on,c.off=s.off,c},e.exports=t.default},44213:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(9599))&&n.__esModule?n:{default:n};t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);var r="http:"===window.location.protocol?"http:":"https:";(0,i.default)(r+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){n&&n(),t(window.YT)}})},e.exports=t.default},15532:function(e,t,r){function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=r(77920)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(n())},77920:function(e,t,r){var n;function i(e){function r(){if(r.enabled){var e=+new Date;r.diff=e-(n||e),r.prev=n,r.curr=e,n=e;for(var i=Array(arguments.length),o=0;o0){var a=e;if(!((a=String(a)).length>100)){var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(s){var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===o&&!1===isNaN(e)){return r.long?t(n=e,864e5,"day")||t(n,36e5,"hour")||t(n,6e4,"minute")||t(n,1e3,"second")||n+" ms":(i=e)>=864e5?Math.round(i/864e5)+"d":i>=36e5?Math.round(i/36e5)+"h":i>=6e4?Math.round(i/6e4)+"m":i>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},99342:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},69223:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r3?(i=p===n)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=e<2&&hn||n>p)&&(o[4]=e,o[5]=n,d.n=p,a=0))}if(i||e>1)return u;throw f=!0,n}return function(i,c,p){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),a=c,s=p;(r=a<2?t:s)||!f;){o||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(l=2,o){if(a||(i="next"),r=o[i]){if(!(r=r.call(o,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,a<2&&(a=0)}else 1===a&&(r=o.return)&&r.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((r=(f=d.n<0)?s:e.call(n,d))!==u)break}catch(e){o=t,a=1,s=e}finally{l=1}}return{value:r,done:f}}}(e,o,a),!0),s}var u={};function c(){}function f(){}function d(){}r=Object.getPrototypeOf;var h=d.prototype=c.prototype=Object.create([][a]?r(r([][a]())):(n(r={},a,function(){return this}),r));function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,n(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return f.prototype=d,n(h,"constructor",d),n(d,"constructor",f),f.displayName="GeneratorFunction",n(d,s,"GeneratorFunction"),n(h),n(h,s,"Generator"),n(h,a,function(){return this}),n(h,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:l,m:p}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},94815:function(e,t,r){var n=r(43488);e.exports=function(e,t,r,i,o){var a=n(e,t,r,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},43488:function(e,t,r){var n=r(28504),i=r(3468);e.exports=function(e,t,r,o,a){return new i(n().w(e,t,r,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},3468:function(e,t,r){var n=r(99342),i=r(408);e.exports=function e(t,r){var o;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,i,a){function s(){return new r(function(i,o){!function e(i,o,a,s){try{var l=t[i](o),u=l.value;return u instanceof n?r.resolve(u.v).then(function(t){e("next",t,a,s)},function(t){e("throw",t,a,s)}):r.resolve(u).then(function(e){l.value=e,a(l)},function(t){return e("throw",t,a,s)})}catch(e){s(e)}}(e,a,i,o)})}return o=o?o.then(s,s):s()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},408:function(e){function t(r,n,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}e.exports=t=function(e,r,n,i){function o(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},53250:function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},5017:function(e,t,r){var n=r(99342),i=r(28504),o=r(94815),a=r(43488),s=r(3468),l=r(53250),u=r(47336);function c(){"use strict";var t=i(),r=t.m(c),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function p(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,h[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,u(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,r,n,i){return t.w(p(e),r,n,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:s,async:function(e,t,r,n,i){return(d(t)?a:o)(p(e),t,r,n,i)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},47336:function(e,t,r){var n=r(69430).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},53746:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},22094:function(e,t,r){var n=r(24885),i=r(82482),o=r(91646),a=r(54907);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},33191:function(e,t,r){var n=r(69430).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},50305:function(e,t,r){var n=r(69430).default,i=r(33191);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},69430:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},91646:function(e,t,r){var n=r(69223);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},18134:function(e,t,r){var n=r(5017)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},24896:function(e,t,r){"use strict";var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;let a=r(44536);t._getStatsigGlobal=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:f}catch(e){return f}},t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e],t._getInstance=e=>{let r=(0,t._getStatsigGlobal)();return e?r.instances&&r.instances[e]:(r.instances&&Object.keys(r.instances).length>1&&a.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),r.firstInstance)};let s="__STATSIG__",l="undefined"!=typeof window?window:{},u=void 0!==r.g?r.g:{},c="undefined"!=typeof globalThis?globalThis:{},f=null!=(o=null!=(i=null!=(n=l[s])?n:u[s])?i:c[s])?o:{instance:t._getInstance};l[s]=f,u[s]=f,c[s]=f},14511:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BatchQueue=void 0;let n=r(97241),i=r(24307);t.BatchQueue=class{constructor(e=i.EventRetryConstants.DEFAULT_BATCH_SIZE){this._batches=[],this._batchSize=e}batchSize(){return this._batchSize}requeueBatch(e){return this._enqueueBatch(e)}hasFullBatch(){return this._batches.some(e=>e.events.length>=this._batchSize)}takeNextBatch(){return this._batches.shift()}takeAllBatches(){let e=this._batches;return this._batches=[],e}createBatches(e){let t=0,r=0;for(;ti.EventRetryConstants.MAX_PENDING_BATCHES;){let e=this._batches.shift();e&&(t+=e.events.length)}return t}}},23684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0;let n=r(42904);function i(e,t,r){var i;if(r)return r(e,t);let o=t&&t.customIDs?t.customIDs:{},a=[`uid:${null!=(i=null==t?void 0:t.userID)?i:""}`,`cids:${Object.keys(o).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${o[e]}`).join(",")}`,`k:${e}`];return(0,n._DJB2)(a.join("|"))}t._getUserStorageKey=i,t._getStorageKey=function(e,t,r){return t?i(e,t,r):(0,n._DJB2)(`k:${e}`)}},24193:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrecomputedEvaluationsContextHandle=void 0;let n=r(44536),i=r(82452),o=r(20409),a=r(42786);t.PrecomputedEvaluationsContextHandle=class{constructor(e,t,r,n,i,o){this._sdkKey=e,this._getOptions=t,this._getErrorBoundary=r,this._getValues=n,this._getUser=i,this._getSdkInstanceID=o}get sdkKey(){return this._sdkKey}get options(){return this._getOptions()}get errorBoundary(){return this._getErrorBoundary()}get values(){return this._getValues()}get user(){let e=(0,i._cloneObject)("StatsigUser",this._getUser());return null==e&&(n.Log.error("Failed to clone user"),e={}),e}getSession(e=!0){return o.StatsigSession.get(this._sdkKey,e)}get stableID(){return a.StableID.get(this._sdkKey)}get sdkInstanceID(){return this._getSdkInstanceID()}toContext(e=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(e),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}}},87218:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0;let i=r(44536),o=r(42786),a=r(6644),s=r(14146),l=r(16997);function u(e,t,r,n){return{source:e,data:t,receivedAt:Date.now(),stableID:r,fullUserHash:(0,a._getFullUserHash)(n)}}t.DataAdapterCore=class{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._cacheLimit=10,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new c}attach(e,t,r){this._sdkKey=e,this._options=t}getDataSync(e){let t=e&&(0,a._normalizeUser)(e,this._options),r=this._getCacheKey(t),n=this._inMemoryCache.get(r,t);if(n&&this._getIsCacheValueValid(n))return n;let i=this._loadFromCache(r);return i&&this._getIsCacheValueValid(i)?(this._inMemoryCache.add(r,i,this._cacheLimit),this._inMemoryCache.get(r,t)):null}setData(e,t){let r=t&&(0,a._normalizeUser)(t,this._options),n=this._getCacheKey(r);this._inMemoryCache.add(n,u("Bootstrap",e,null,r),this._cacheLimit)}_getIsCacheValueValid(e){return null==e.stableID||e.stableID===o.StableID.get(this._getSdkKey())}_getDataAsyncImpl(e,t,r){return n(this,void 0,void 0,function*(){s.Storage.isReady()||(yield s.Storage.isReadyResolver());let n=null!=e?e:this.getDataSync(t),o=[this._fetchAndPrepFromNetwork(n,t,r)];return(null==r?void 0:r.timeoutMs)&&o.push(new Promise(e=>setTimeout(e,r.timeoutMs)).then(()=>(i.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(o)})}_prefetchDataImpl(e,t){return n(this,void 0,void 0,function*(){let r=e&&(0,a._normalizeUser)(e,this._options),n=this._getCacheKey(r),i=yield this._getDataAsyncImpl(null,r,t);i&&this._inMemoryCache.add(n,Object.assign(Object.assign({},i),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(e,t,r){return n(this,void 0,void 0,function*(){var n;let a=null!=(n=null==e?void 0:e.data)?n:null,s=null!=e&&this._isCachedResultValidFor204(e,t),c=yield this._fetchFromNetwork(a,t,r,s);if(!c)return i.Log.debug("No response returned for latest value"),null;let f=(0,l._typedJsonParse)(c,"has_updates","Response"),d=this._getSdkKey(),h=o.StableID.get(d),p=null;if((null==f?void 0:f.has_updates)===!0)p=u("Network",c,h,t);else{if(!a||(null==f?void 0:f.has_updates)!==!1)return null;p=u("NetworkNotModified",a,h,t)}let y=this._getCacheKey(t);return this._inMemoryCache.add(y,p,this._cacheLimit),this._writeToCache(y,p),p})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(i.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;let r=null==(t=s.Storage.getItem)?void 0:t.call(s.Storage,e);if(null==r)return null;let n=(0,l._typedJsonParse)(r,"source","Cached Result");return n?Object.assign(Object.assign({},n),{source:"Cache"}):null}_writeToCache(e,t){let r=JSON.stringify(t);for(let t=0;t<8;t++)try{s.Storage.setItem(e,r);break}catch(t){if(!(t instanceof Error)||!(t.toString().includes("QuotaExceededError")||t.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw t;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(e,this._cacheLimit-1)}this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e,t=this._cacheLimit){var r;let n=null!=(r=(0,s._getObjectFromStorage)(this._lastModifiedStoreKey))?r:{};for(let r of(n[e]=Date.now(),f(n,t)))delete n[r],s.Storage.removeItem(r);(0,s._setObjectInStorage)(this._lastModifiedStoreKey,n)}},t._makeDataAdapterResult=u;class c{constructor(){this._data={}}get(e,t){var r;let n=this._data[e],o=null==n?void 0:n.stableID,a=null==(r=null==t?void 0:t.customIDs)?void 0:r.stableID;return a&&o&&a!==o?(i.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):n}add(e,t,r){for(let e of f(this._data,r-1))delete this._data[e];this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function f(e,t){let r=Object.keys(e);return r.length<=t?[]:0===t?r:r.sort((t,r)=>{let n=e[t],i=e[r];return"object"==typeof n&&"object"==typeof i?n.receivedAt-i.receivedAt:n-i}).slice(0,r.length-t)}},45534:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;let r=new Map,n="start";function i(e,t,r,n){return Object.assign({key:r,action:t,step:n,timestamp:Date.now()},e)}function o(e,t){var n;let i=null!=(n=r.get(e))?n:[];i.push(t),r.set(e,i)}function a(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>r.get(e),_markInitOverallStart:e=>{o(e,i({},n,"overall"))},_markInitOverallEnd:(e,t,r)=>{o(e,i({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:r},"end","overall"))},_markInitNetworkReqStart:(e,t)=>{o(e,i(t,n,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{o(e,i(t,"end","initialize","network_request"))},_markInitProcessStart:e=>{o(e,i({},n,"initialize","process"))},_markInitProcessEnd:(e,t)=>{o(e,i(t,"end","initialize","process"))},_clearMarkers:e=>{r.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:a(e,"code"),name:a(e,"name"),message:a(e,"message")}},_getDiagnosticsData(e,r,n,i){var o;return{success:(null==e?void 0:e.ok)===!0,statusCode:null==e?void 0:e.status,sdkRegion:null==(o=null==e?void 0:e.headers)?void 0:o.get("x-statsig-region"),isDelta:!0===n.includes('"is_delta":true')||void 0,attempt:r,error:t.Diagnostics._formatError(i)}},_enqueueDiagnosticsEvent(e,r,n,i){let o=t.Diagnostics._getMarkers(n);if(null==o||o.length<=0)return -1;let a=o[o.length-1].timestamp-o[0].timestamp;t.Diagnostics._clearMarkers(n);let s={eventName:"statsig::diagnostics",user:e,value:null,metadata:{context:"initialize",markers:o.slice(),statsigOptions:i},time:Date.now()};return r.enqueue(s),a}}},70889:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;let n=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),i=["i","e","d"];t._fetchTxtRecords=function(e){return r(this,void 0,void 0,function*(){let t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:n});if(!t.ok){let e=Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}return function(e){let t=e.findIndex((t,r)=>r<200&&"="===String.fromCharCode(t)&&i.includes(String.fromCharCode(e[r-1])));if(-1===t){let e=Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let r="";for(let n=t-1;n"function"==typeof(null==r?void 0:r[e])).forEach(e=>t.add(e)),r=Object.getPrototypeOf(r);return Array.from(t)})(e).forEach(r=>{let n=e[r];"$EB"in n||(e[r]=(...i)=>this._capture(t?`${t}:${r}`:r,()=>n.apply(e,i)),e[r].$EB=!0)})}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}logDroppedEvents(e,t,r){let n={eventCount:String(e),reason:t};r&&Object.keys(r).forEach(e=>{n[e]=String(r[e])}),this._onError("statsig::log_event_dropped_event_count",Error(t),!0,n)}logEventRequestFailure(e,t,r,n,i,o,a,s,l){let u={eventCount:String(e),flushType:r,statusCode:String(n),reason:t,retries:String(i)};o&&(u.failurePath=o),"string"==typeof a&&a.length>0&&(u.failureErrorMessage=a),"string"==typeof s&&s.length>0&&(u.failureDiagnosticBucket=s),l&&Object.keys(l).forEach(e=>{let t=l[e];t.length>0&&(u[`failureDiagnostic_${e}`]=t)}),this._onError("statsig::log_event_failed",Error(t),!0,u)}getLastSeenErrorAndReset(){let e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=l(e))}_capture(e,t){try{let r=t();if(r&&r instanceof Promise)return r.catch(t=>this._onError(e,t));return r}catch(t){return this._onError(e,t),null}}_onError(e,r,u=!1,c){try{i.Log.warn(`Caught error in ${e}`,{error:r}),n(this,void 0,void 0,function*(){var n,i,f,d,h,p,y;let m=r||Error(s),g=m instanceof Error,v=g?m.name:"No Name",b=l(m);if(this._lastSeenError=b,!u&&this._seen.has(v))return;if(this._seen.add(v),null==(i=null==(n=this._options)?void 0:n.networkConfig)?void 0:i.preventAllNetworkTraffic){null==(f=this._emitter)||f.call(this,{name:"error",error:r,tag:e});return}let _=o.SDKType._get(this._sdkKey),w=a.StatsigMetadataProvider.get(),E=g?m.stack:function(e){try{return JSON.stringify(e)}catch(e){return s}}(m),S=Object.assign(Object.assign({tag:e,exception:v,info:E,statsigOptions:function(e){if(!e)return{};let t={};return Object.keys(e).forEach(r=>{let n=e[r];switch(typeof n){case"number":case"bigint":case"boolean":t[String(r)]=n;break;case"string":n.length<50?t[String(r)]=n:t[String(r)]="set";break;case"object":"environment"===r?t.environment=n:"networkConfig"===r?t.networkConfig=n:t[String(r)]=null!=n?"set":"unset"}}),t}(this._options)},Object.assign(Object.assign({},w),{sdkType:_})),null!=c?c:{}),x=null==(d=this._options)?void 0:d.networkConfig,O=null!=(h=null==x?void 0:x.networkOverrideFunc)?h:fetch;yield O(null!=(p=null==x?void 0:x.sdkExceptionUrl)?p:t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(_),"STATSIG-SDK-VERSION":String(w.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(S)}),null==(y=this._emitter)||y.call(this,{name:"error",error:r,tag:e})}).then(()=>{}).catch(()=>{})}catch(e){}}}},84406:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},96222:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97241:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventBatch=void 0,t.EventBatch=class{constructor(e){this.attempts=0,this.createdAt=Date.now(),this.events=e}incrementAttempts(){this.attempts++}}},66545:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;let i=r(14511),o=r(23684),a=r(24307),s=r(85681),l=r(42904),u=r(44536),c=r(90604),f=r(9673),d=r(82452),h=r(45859),p=r(8339),y=r(14146),m=r(75697),g=r(52312),v={};class b{static _safeFlushAndForget(e){var t;null==(t=v[e])||t.flush().catch(()=>{})}constructor(e,t,r,n,i){var o;this._sdkKey=e,this._emitter=t,this._network=r,this._options=n,this._errorBoundary=i,this._pendingEvents=null,this._batchQueue=null,this._flushCoordinator=null,this._lastExposureTimeMap={},this._nonExposedChecks={},this._isShuttingDown=!1,this._storageKey=null,this._pendingCompressionMode=null,this._loggingEnabled=null!=(o=null==n?void 0:n.loggingEnabled)?o:(null==n?void 0:n.disableLogging)===!0?p.LoggingEnabledOption.disabled:p.LoggingEnabledOption.browserOnly,(null==n?void 0:n.loggingEnabled)&&void 0!==n.disableLogging&&u.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging.");let a=null==n?void 0:n.networkConfig;this._logEventUrlConfig=new m.UrlConfiguration(c.Endpoint._rgstr,null==a?void 0:a.logEventUrl,null==a?void 0:a.api,null==a?void 0:a.logEventFallbackUrls)}setLogEventCompressionMode(e){this._flushCoordinator?this._flushCoordinator.setLogEventCompressionMode(e):this._pendingCompressionMode=e}setLoggingEnabled(e){let t="disabled"===this._loggingEnabled,r="disabled"!==e;if(this._loggingEnabled=e,this._flushCoordinator&&this._flushCoordinator.setLoggingEnabled(e),t&&r){let e=this._loadStoredEvents();u.Log.debug(`Loaded ${e.length} stored event(s) from storage`),e.length>0&&(e.forEach(e=>{this._initFlushCoordinator().addEvent(e)}),this.flush().catch(e=>{u.Log.warn("Failed to flush events after enabling logging:",e)}))}}enqueue(e){var t;if(!this._shouldLogEvent(e))return;let r=this._normalizeEvent(e);if("disabled"===this._loggingEnabled)return void this._storeEventToStorage(r);this._initFlushCoordinator().addEvent(r),null==(t=this._flushCoordinator)||t.checkQuickFlush()}incrementNonExposureCount(e){var t;let r=null!=(t=this._nonExposedChecks[e])?t:0;this._nonExposedChecks[e]=r+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var e;let t=(0,d._isServerEnv)();if(t&&(null==(e=this._options)?void 0:e.loggingEnabled)!=="always")return;let r=this._initFlushCoordinator();v[this._sdkKey]=this,t||(0,g._subscribeToVisiblityChanged)(e=>{"background"===e?b._safeFlushAndForget(this._sdkKey):"foreground"===e&&r.startScheduledFlushCycle()}),r.loadAndRetryShutdownFailedEvents().catch(e=>{u.Log.warn("Failed to load failed shutdown events:",e)}),r.startScheduledFlushCycle()}stop(){return n(this,void 0,void 0,function*(){this._isShuttingDown=!0,this._flushCoordinator&&(yield this._flushCoordinator.processShutdown()),delete v[this._sdkKey],this._flushCoordinator=null,this._pendingEvents=null,this._batchQueue=null})}flush(){return n(this,void 0,void 0,function*(){if(this._flushCoordinator)return this._flushCoordinator.processManualFlush()})}appendAndResetNonExposedChecks(){if(0===Object.keys(this._nonExposedChecks).length)return;let e=Object.assign({},this._nonExposedChecks);this._nonExposedChecks={};let t=this._normalizeEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:e}});this._flushCoordinator&&this._flushCoordinator.addEvent(t)}_shouldLogEvent(e){var t;if((null==(t=this._options)?void 0:t.loggingEnabled)!=="always"&&(0,d._isServerEnv)())return!1;if(!(0,h._isExposureEvent)(e))return!0;let r=e.user?e.user:{statsigEnvironment:void 0},n=(0,o._getUserStorageKey)(this._sdkKey,r),i=e.metadata?e.metadata:{},a=[e.eventName,n,i.gate,i.config,i.ruleID,i.allocatedExperiment,i.parameterName,String(i.isExplicitParameter),i.reason].join("|"),s=this._lastExposureTimeMap[a],l=Date.now();return(!s||!(l-s<6e5))&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[a]=l,!0)}_getCurrentPageUrl(){var e;if((null==(e=this._options)?void 0:e.includeCurrentPageUrlWithEvents)!==!1)return(0,d._getCurrentPageUrlSafe)()}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.pending_events.${(0,l._DJB2)(this._sdkKey)}`),this._storageKey}_initFlushCoordinator(){var e,t;if(this._flushCoordinator)return this._flushCoordinator;let r=null!=(t=null==(e=this._options)?void 0:e.loggingBufferMaxSize)?t:a.EventRetryConstants.DEFAULT_BATCH_SIZE;return this._pendingEvents=new f.PendingEvents(r),this._batchQueue=new i.BatchQueue(r),this._flushCoordinator=new s.FlushCoordinator(this._batchQueue,this._pendingEvents,()=>this.appendAndResetNonExposedChecks(),this._sdkKey,this._network,this._emitter,this._logEventUrlConfig,this._options,this._loggingEnabled,this._errorBoundary),this._pendingCompressionMode&&(this._flushCoordinator.setLogEventCompressionMode(this._pendingCompressionMode),this._pendingCompressionMode=null),this._flushCoordinator}_storeEventToStorage(e){let t=this._getStorageKey();try{let r=this._getEventsFromStorage(t);r.push(e),r.length>a.EventRetryConstants.MAX_LOCAL_STORAGE&&(r=r.slice(-a.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,y._setObjectInStorage)(t,r)}catch(e){u.Log.warn("Unable to save events to storage")}}_getEventsFromStorage(e){try{let t=(0,y._getObjectFromStorage)(e);if(Array.isArray(t))return t;return[]}catch(e){return[]}}_loadStoredEvents(){let e=this._getStorageKey(),t=this._getEventsFromStorage(e);return t.length>0&&y.Storage.removeItem(e),t}_normalizeEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);let t={},r=this._getCurrentPageUrl();return r&&(t.statsigMetadata={currentPage:r}),Object.assign(Object.assign({},e),t)}}t.EventLogger=b},24307:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventRetryConstants=void 0,t.EventRetryConstants={MAX_RETRY_ATTEMPTS:8,DEFAULT_BATCH_SIZE:100,MAX_PENDING_BATCHES:40,TICK_INTERVAL_MS:1e3,QUICK_FLUSH_WINDOW_MS:200,MAX_LOCAL_STORAGE:500,get MAX_QUEUED_EVENTS(){return this.DEFAULT_BATCH_SIZE*this.MAX_PENDING_BATCHES}}},4388:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventSender=void 0;let i=r(44536),o=r(90604),a=r(3295),s=r(50194),l=r(52312);t.EventSender=class{constructor(e,t,r,n,i){this._sdkKey=e,this._network=t,this._emitter=r,this._options=i,this._logEventUrlConfig=n}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}sendBatch(e){return n(this,void 0,void 0,function*(){var t,r,n;let o="event_sender_unexpected_exception",a={};try{let n=(0,l._isUnloading)()&&this._network.isBeaconSupported()&&(null==(r=null==(t=this._options)?void 0:t.networkConfig)?void 0:r.networkOverrideFunc)==null;o="event_sender_pre_logs_flushed_emitter_exception",this._emitter({name:"pre_logs_flushed",events:e.events}),o=n?"event_sender_unexpected_exception":"event_sender_post_exception";let i=n?this._sendEventsViaBeacon(e,a):yield this._sendEventsViaPost(e,a);if(i.success)return o="event_sender_logs_flushed_emitter_exception",this._emitter({name:"logs_flushed",events:e.events}),i;return Object.assign(Object.assign(Object.assign({success:!1,statusCode:i.statusCode,failurePath:i.failurePath},i.failureErrorMessage?{failureErrorMessage:i.failureErrorMessage}:{}),i.failureDiagnosticBucket?{failureDiagnosticBucket:i.failureDiagnosticBucket}:{}),i.failureDiagnosticMetadata?{failureDiagnosticMetadata:i.failureDiagnosticMetadata}:{})}catch(e){return i.Log.warn("Failed to send batch:",e),Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:null!=(n=a.path)?n:o},a.errorMessage?{failureErrorMessage:a.errorMessage}:{}),a.diagnosticBucket?{failureDiagnosticBucket:a.diagnosticBucket}:{}),a.diagnosticMetadata?{failureDiagnosticMetadata:a.diagnosticMetadata}:{})}})}_sendEventsViaPost(e,t){return n(this,void 0,void 0,function*(){var r,n;let i=yield this._network.post(this._getRequestData(e),t),o=null!=(r=null==i?void 0:i.code)?r:-1;return -1===o?Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:null!=(n=t.path)?n:void 0===i?"event_sender_post_returned_undefined":"event_sender_post_returned_null"},t.errorMessage?{failureErrorMessage:t.errorMessage}:{}),t.diagnosticBucket?{failureDiagnosticBucket:t.diagnosticBucket}:{}),t.diagnosticMetadata?{failureDiagnosticMetadata:t.diagnosticMetadata}:{}):{success:o>=200&&o<300,statusCode:o}})}_sendEventsViaBeacon(e,t){var r;let n=this._network.beacon(this._getRequestData(e),t);return Object.assign(Object.assign(Object.assign({success:n,statusCode:n?200:-1,failurePath:n?void 0:null!=(r=t.path)?r:"beacon_send_false"},!n&&t.errorMessage?{failureErrorMessage:t.errorMessage}:{}),!n&&t.diagnosticBucket?{failureDiagnosticBucket:t.diagnosticBucket}:{}),!n&&t.diagnosticMetadata?{failureDiagnosticMetadata:t.diagnosticMetadata}:{})}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e.events},urlConfig:this._logEventUrlConfig,retries:3,preserveFailedStatusCode:!0,isCompressable:!0,params:{[o.NetworkParam.EventCount]:String(e.events.length)},headers:{"statsig-event-count":String(e.events.length),"statsig-retry-count":String(e.attempts),"statsig-sdk-type":a.SDKType._get(this._sdkKey),"statsig-sdk-version":s.SDK_VERSION},credentials:"same-origin"}}}},85681:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.FlushCoordinator=void 0;let i=r(24307),o=r(4388),a=r(5809),s=r(40113),l=r(42904),u=r(44536),c=r(36841),f=r(82452),d=r(20409),h=r(8339),p=r(14146),y=new Set(["network_request_timed_out_no_response","network_request_exception_no_response","event_sender_post_returned_null","event_sender_post_returned_undefined","event_sender_post_exception"]);t.FlushCoordinator=class{constructor(e,t,r,n,i,s,l,u,c,f){this._cooldownTimer=null,this._maxIntervalTimer=null,this._hasRunQuickFlush=!1,this._currentFlushPromise=null,this._creationTime=Date.now(),this._isShuttingDown=!1,this._storageKey=null,this._flushInterval=new a.FlushInterval,this._batchQueue=e,this._pendingEvents=t,this._onPrepareFlush=r,this._errorBoundary=f,this._sdkKey=n,this._loggingEnabled=c,this._eventSender=new o.EventSender(n,i,s,l,u)}setLoggingEnabled(e){this._loggingEnabled=e}setLogEventCompressionMode(e){this._eventSender.setLogEventCompressionMode(e)}startScheduledFlushCycle(){this._scheduleNextFlush()}stopScheduledFlushCycle(){this._clearAllTimers()}addEvent(e){this._pendingEvents.addToPendingEventsQueue(e),!this._currentFlushPromise&&this._pendingEvents.hasEventsForFullBatch()&&this.processLimitFlush()}processManualFlush(){return n(this,void 0,void 0,function*(){return this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(s.FlushTypeValues.Manual).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()}),this._currentFlushPromise})}processShutdown(){return n(this,void 0,void 0,function*(){return this._isShuttingDown=!0,this._clearAllTimers(),this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(s.FlushTypeValues.Shutdown).catch(e=>{u.Log.error(`Error during shutdown flush: ${e}`)}).finally(()=>{this._currentFlushPromise=null}),this._currentFlushPromise})}_executeFlush(e){return n(this,void 0,void 0,function*(){this._clearAllTimers();try{this._prepareQueueForFlush(e);let t=this._batchQueue.takeAllBatches();if(0===t.length)return;yield Promise.all(t.map(t=>this._processOneBatch(t,e)))}finally{this._isShuttingDown||this._scheduleNextFlush()}})}checkQuickFlush(){!this._hasRunQuickFlush&&(Date.now()-this._creationTime>i.EventRetryConstants.QUICK_FLUSH_WINDOW_MS||(this._hasRunQuickFlush=!0,setTimeout(()=>{this.processManualFlush().catch(e=>{u.Log.warn("Quick flush failed:",e)})},i.EventRetryConstants.QUICK_FLUSH_WINDOW_MS)))}_attemptScheduledFlush(){let e;if(this._currentFlushPromise)return void this._scheduleNextFlush();let t=this.containsAtLeastOneFullBatch(),r=this._flushInterval.hasReachedMaxInterval();if(!t&&!r)return void this._scheduleNoopPollTick();this._flushInterval.markFlushAttempt(),e=t?s.FlushTypeValues.ScheduledFullBatch:s.FlushTypeValues.ScheduledMaxTime,this._currentFlushPromise=this._processNextBatch(e).then(()=>{}).catch(e=>{u.Log.error("Error during scheduled flush:",e)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})}processLimitFlush(){this._flushInterval.hasCompletelyRecoveredFromBackoff()&&(this._currentFlushPromise||(this._currentFlushPromise=this._processLimitFlushInternal().catch(e=>{u.Log.error("Error during limit flush",e)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})))}_processLimitFlushInternal(){return n(this,void 0,void 0,function*(){if(yield this._processNextBatch(s.FlushTypeValues.Limit))for(;this._flushInterval.hasCompletelyRecoveredFromBackoff()&&this.containsAtLeastOneFullBatch()&&(yield this._processNextBatch(s.FlushTypeValues.Limit)););})}_scheduleNextFlush(){if(this._clearAllTimers(),this._isShuttingDown)return;let e=Math.max(0,this._flushInterval.getTimeUntilNextFlush());this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,d.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e);let t=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,d.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},t)}_clearAllTimers(){null!==this._cooldownTimer&&(clearTimeout(this._cooldownTimer),this._cooldownTimer=null),null!==this._maxIntervalTimer&&(clearTimeout(this._maxIntervalTimer),this._maxIntervalTimer=null)}_scheduleNoopPollTick(){if(this._clearAllTimers(),this._isShuttingDown)return;this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,d.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},i.EventRetryConstants.TICK_INTERVAL_MS);let e=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,d.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e)}_processNextBatch(e){return n(this,void 0,void 0,function*(){this._prepareQueueForFlush(e);let t=this._batchQueue.takeNextBatch();return!!t&&this._processOneBatch(t,e)})}_processOneBatch(e,t){return n(this,void 0,void 0,function*(){if(this._loggingEnabled!==h.LoggingEnabledOption.always&&(0,f._isServerEnv)())return this._flushInterval.adjustForSuccess(),!0;let r=yield this._eventSender.sendBatch(e);return r.success?(this._flushInterval.adjustForSuccess(),!0):(this._flushInterval.adjustForFailure(),this._handleFailure(e,t,r.statusCode,r.failurePath,r.failureErrorMessage,r.failureDiagnosticBucket,r.failureDiagnosticMetadata),!1)})}_prepareQueueForFlush(e){this._onPrepareFlush();let t=this.convertPendingEventsToBatches();t>0&&(u.Log.warn(`Dropped ${t} events`),this._errorBoundary.logDroppedEvents(t,"Batch queue limit reached during batching",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:i.EventRetryConstants.MAX_PENDING_BATCHES,flushType:e,retries:"dropped before batching"}))}containsAtLeastOneFullBatch(){return this._pendingEvents.hasEventsForFullBatch()||this._batchQueue.hasFullBatch()}convertPendingEventsToBatches(){if(this._pendingEvents.isEmpty())return 0;let e=this._pendingEvents.takeAll();return this._batchQueue.createBatches(e)}_isRetryableBatch(e,t){return!!(c.RETRYABLE_CODES.has(e)||-1===e&&t&&y.has(t))}_handleFailure(e,t,r,n,o,a,l){if(t===s.FlushTypeValues.Shutdown){u.Log.warn(`${t} flush failed during shutdown. ${e.events.length} event(s) will be saved to storage for retry in next session.`),this._saveShutdownFailedEventsToStorage(e.events);return}if(!this._isRetryableBatch(r,n)){u.Log.warn(`${t} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped. Non-retryable error: ${r}`),this._errorBoundary.logEventRequestFailure(e.events.length,"non-retryable error",t,r,e.attempts,n,o,a,l);return}if(e.attempts>=i.EventRetryConstants.MAX_RETRY_ATTEMPTS){u.Log.warn(`${t} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped.`),this._errorBoundary.logEventRequestFailure(e.events.length,"max retry attempts exceeded",t,r,e.attempts,n,o,a,l);return}e.incrementAttempts();let c=this._batchQueue.requeueBatch(e);c>0&&(u.Log.warn(`Failed to requeue batch : dropped ${c} events due to full queue`),this._errorBoundary.logDroppedEvents(c,"Batch queue limit reached during requeue",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:i.EventRetryConstants.MAX_PENDING_BATCHES,flushType:t,retries:e.attempts}))}loadAndRetryShutdownFailedEvents(){return n(this,void 0,void 0,function*(){let e=this._getStorageKey();try{p.Storage.isReady()||(yield p.Storage.isReadyResolver());let t=this._getShutdownFailedEventsFromStorage(e);if(0===t.length)return;u.Log.debug(`Loading ${t.length} failed shutdown event(s) from storage for retry`),p.Storage.removeItem(e),t.forEach(e=>{this.addEvent(e)}),yield this.processManualFlush()}catch(e){u.Log.warn("Failed to load and retry failed shutdown events:",e)}})}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.failed_shutdown_events.${(0,l._DJB2)(this._sdkKey)}`),this._storageKey}_saveShutdownFailedEventsToStorage(e){let t=this._getStorageKey();try{let r=[...this._getShutdownFailedEventsFromStorage(t),...e];r.length>i.EventRetryConstants.MAX_LOCAL_STORAGE&&(r=r.slice(-i.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,p._setObjectInStorage)(t,r),u.Log.debug(`Saved ${e.length} failed shutdown event(s) to storage (total stored: ${r.length})`)}catch(e){u.Log.warn("Unable to save failed shutdown events to storage:",e)}}_getShutdownFailedEventsFromStorage(e){try{let t=(0,p._getObjectFromStorage)(e);if(Array.isArray(t))return t;return[]}catch(e){return[]}}}},5809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlushInterval=void 0,t.FlushInterval=class{constructor(){this._currentIntervalMs=1e3,this._lastFlushAttemptTime=Date.now()}getCurrentIntervalMs(){return this._currentIntervalMs}markFlushAttempt(){this._lastFlushAttemptTime=Date.now()}getTimeSinceLastAttempt(){return Date.now()-this._lastFlushAttemptTime}hasReachedMaxInterval(){return this.getTimeSinceLastAttempt()>=6e4}getTimeTillMaxInterval(){return 6e4-this.getTimeSinceLastAttempt()}hasCompletelyRecoveredFromBackoff(){return this._currentIntervalMs<=1e3}adjustForSuccess(){let e=this._currentIntervalMs;1e3!==e&&(this._currentIntervalMs=Math.max(1e3,Math.floor(e/2)))}adjustForFailure(){let e=this._currentIntervalMs;this._currentIntervalMs=Math.min(6e4,2*e)}getTimeUntilNextFlush(){return this.getCurrentIntervalMs()-this.getTimeSinceLastAttempt()}}},40113:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlushTypeValues=void 0,t.FlushTypeValues={ScheduledMaxTime:"scheduled:max_time",ScheduledFullBatch:"scheduled:full_batch",Limit:"limit",Manual:"manual",Shutdown:"shutdown"}},42904:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;let n=r(83058);t._DJB2=e=>{let t=0;for(let r=0;r>>0)},t._DJB2Object=(e,r)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,r))),t._getSortedObject=(e,r)=>{if(null==e)return null;let i=Object.keys(e).sort(),o={};return i.forEach(i=>{let a=e[i];if(0===r||"object"!==(0,n._typeOf)(a)){o[i]=a;return}o[i]=(0,t._getSortedObject)(a,null!=r?r-1:r)}),o}},920:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44536:function(e,t){"use strict";function r(e){return e.unshift("[Statsig]"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0,t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class n{static info(...e){n.level>=t.LogLevel.Info&&console.info(" INFO ",...r(e))}static debug(...e){n.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...r(e))}static warn(...e){n.level>=t.LogLevel.Warn&&console.warn(" WARN ",...r(e))}static error(...e){n.level>=t.LogLevel.Error&&console.error(" ERROR ",...r(e))}}t.Log=n,n.level=t.LogLevel.Warn},31868:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};let r=new Set([]),n=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,i){let o=`${e}|${t}`;if(!i)return o;for(let e of Object.keys(i)){if(n.has(e))return;r.has(e)?o+=`|${e}=true`:o+=`|${e}=${i[e]}`}return o}},90604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},36841:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=t.RETRYABLE_CODES=void 0,r(24896);let i=r(24896),o=r(45534),a=r(44536),s=r(90604),l=r(49552),u=r(21876),c=r(3295),f=r(82452),d=r(20409),h=r(42786),p=r(28075),y=r(50194),m=r(8339),g=r(52312);t.RETRYABLE_CODES=new Set([408,500,502,503,504,522,524,599]),t.NetworkCore=class{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new l.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){let e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e,t){if(!v(e))return t&&(t.path="beacon_invalid_sdk_key"),!1;let r=this._getInternalRequestArgs("POST",e),n=this._getPopulatedURL(r),i=navigator;try{let e=i.sendBeacon.bind(i)(n,r.body);return!e&&t&&(t.path="beacon_send_false"),e}catch(e){throw t&&(t.path="beacon_send_exception"),e}}post(e,t){return n(this,void 0,void 0,function*(){let r=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(r),yield this._tryToCompressBody(r),this._sendRequest(r,t)})}get(e){let t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e,r){return n(this,void 0,void 0,function*(){var i,l,u,c,d,h,y,m,b;if(!v(e))return r&&(r.path="network_invalid_sdk_key"),null;if(this._netConfig.preventAllNetworkTraffic)return r&&(r.path="network_prevent_all_network_traffic"),null;let{method:E,body:S,retries:x,attempt:O}=e,k=e.urlConfig.endpoint;if(this._isRateLimited(k))return a.Log.warn(`Request to ${k} was blocked because you are making requests too frequently.`),r&&(r.path="network_rate_limited"),null;let T=null!=O?O:1,C=!1,P=this._getPopulatedURL(e),A=Date.now(),R=null,I=(0,g._isUnloading)();try{let t,r={method:E,body:S,headers:Object.assign({},e.headers),priority:e.priority,keepalive:I};d=e,h=T,d.urlConfig.endpoint===s.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqStart(d.sdkKey,{attempt:h});let n=this._leakyBucket[k];n&&(n.lastRequestTime=Date.now(),this._leakyBucket[k]=n);let a=null!=(i=this._netConfig.networkOverrideFunc)?i:fetch;if(!(R=yield Promise.race([a(P,r).finally(()=>clearTimeout(t)),new Promise((e,r)=>{t=setTimeout(()=>{C=!0,r(Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})])).ok){let e=yield R.text().catch(()=>"No Text"),t=Error(`NetworkError: ${P} ${e}`);throw t.name="NetworkError",t}let l=yield R.text();return w(e,R,T,l),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:l,code:R.status}}catch(s){let i="string"==typeof(y=s)?y:y instanceof Error?`${y.name}: ${y.message}`:"Unknown Error",o=(m=null!=i?i:"",b=C,m.includes("Timeout")||b);if(w(e,R,T,"",s),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,i,o))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!x||T>x||!t.RETRYABLE_CODES.has(null!=(l=null==R?void 0:R.status)?l:500)){null==(u=this._emitter)||u.call(this,{name:"error",error:s,tag:p.ErrorTag.NetworkError,requestArgs:e});let t=`A networking error occurred during ${E} request to ${P}.`;if(a.Log.error(t,i,s),null==(c=this._errorBoundary)||c.attachErrorIfNoneExists(t),e.preserveFailedStatusCode&&null!=R)return{body:null,code:R.status};if(null==R&&r){r.path=o?"network_request_timed_out_no_response":"network_request_exception_no_response",i&&(r.errorMessage=i);try{let t=function(e,t,r,n){var i,o,a,s,l,u;let c=(0,f._getWindowSafe)(),d=null==c?void 0:c.document,h="undefined"!=typeof navigator?navigator:null,p=(0,g._isUnloading)(),y=h&&"boolean"==typeof h.onLine?String(h.onLine):"unknown",m=null!=(i=null==d?void 0:d.visibilityState)?i:"unknown",v=Object.keys(null!=(o=e.headers)?o:{}).length>0,b=(s=t,!(l=null==(a=null==c?void 0:c.location)?void 0:a.origin)||!s.startsWith(`${l}/`)&&!s.startsWith(`${l}?`)&&s!==l),w=null!=e.urlConfig.customUrl,E=null!=e.fallbackUrl,S=_(n,[250,1e3,5e3,1e4]),x=_((u=e.body,null==u?0:"string"==typeof u?u.length:u instanceof Uint8Array?u.byteLength:"undefined"!=typeof Blob&&u instanceof Blob?u.size:-1),[16384,65536,262144,1048576]),O="unknown_no_response";return r?O="timeout":"false"===y?O="browser_offline":p?O="page_unloading":"hidden"===m?O="page_hidden":b&&v?O="cross_origin_custom_headers_preflight_risk":w||E?O="custom_url_no_response":n<250&&(O="immediate_network_rejection"),{bucket:O,metadata:{elapsedMsBucket:S,bodySizeBucket:x,online:y,visibilityState:m,isUnloading:String(p),crossOrigin:String(b),hasCustomUrl:String(w)}}}(e,P,o,Date.now()-A);r.diagnosticBucket=t.bucket,r.diagnosticMetadata=t.metadata}catch(e){}}return null}return yield function(e){return n(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(T),this._sendRequest(Object.assign(Object.assign({},e),{retries:x,attempt:T+1}),r)}})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||(null==e?void 0:e.disableCompression)!==!0||(t=m.LogEventCompressionMode.Disabled),t||(t=m.LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;let r=Date.now(),n=null!=(t=this._leakyBucket[e])?t:{count:0,lastRequestTime:r},i=Math.floor((r-n.lastRequestTime)*.05);return n.count=Math.max(0,n.count-i),n.count>=50||(n.count+=1,n.lastRequestTime=r,this._leakyBucket[e]=n,!1)}_getPopulatedURL(e){var t;let r=null!=(t=e.fallbackUrl)?t:e.urlConfig.getUrl();(e.urlConfig.endpoint===s.Endpoint._initialize||e.urlConfig.endpoint===s.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=r);let n=Object.assign({[s.NetworkParam.SdkKey]:e.sdkKey,[s.NetworkParam.SdkType]:c.SDKType._get(e.sdkKey),[s.NetworkParam.SdkVersion]:y.SDK_VERSION,[s.NetworkParam.Time]:String(Date.now()),[s.NetworkParam.SessionID]:d.SessionID.get(e.sdkKey)},e.params),i=Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&");return`${r}${i?`?${i}`:""}`}_tryEncodeBody(e){var t;let r=(0,f._getWindowSafe)(),n=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof n&&null==(0,i._getStatsigGlobalFlag)("no-encode")&&(null==r?void 0:r.btoa))try{e.body=r.btoa(n).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[s.NetworkParam.StatsigEncoded]:"1"})}catch(t){a.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,t)}}_tryToCompressBody(e){return n(this,void 0,void 0,function*(){var t;let r=e.body;if("string"==typeof r&&function(e,t){if(!e.isCompressable||null!=(0,i._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;let r=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,n=!0===u.SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case m.LogEventCompressionMode.Disabled:return!1;case m.LogEventCompressionMode.Enabled:if(r&&!n)return!1;return!0;case m.LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{let n,i=new TextEncoder().encode(r),o=new CompressionStream("gzip"),l=o.writable.getWriter();l.write(i).catch(a.Log.error),l.close().catch(a.Log.error);let u=o.readable.getReader(),c=[];for(;!(n=yield u.read()).done;)c.push(n.value);let f=c.reduce((e,t)=>e+t.length,0),d=new Uint8Array(f),h=0;for(let e of c)d.set(e,h),h+=e.length;e.body=d,e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[s.NetworkParam.IsGzipped]:"1"})}catch(t){a.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,t)}})}_getInternalRequestArgs(e,t){let r=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),n=Object.assign(Object.assign({},t),{method:e,fallbackUrl:r});return"data"in t&&b(n,t.data),n}};let v=e=>!!e.sdkKey||(a.Log.warn("Unable to make request without an SDK key"),!1),b=(e,t)=>{let{sdkKey:r,fallbackUrl:n}=e,i=h.StableID.get(r),o=d.SessionID.get(r),a=c.SDKType._get(r);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},y.StatsigMetadataProvider.get()),{stableID:i,sessionID:o,sdkType:a,fallbackUrl:n})}))};function _(e,t){if(e<0)return"unknown";for(let r of t)if(e=${t[t.length-1]}`}function w(e,t,r,n,i){e.urlConfig.endpoint===s.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqEnd(e.sdkKey,o.Diagnostics._getDiagnosticsData(t,r,n,i))}},49552:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;let i=r(70889),o=r(42904),a=r(44536),s=r(14146);function l(e,t){var r;let n=null!=(r=null==e?void 0:e.toLowerCase())?r:"";return t||n.includes("uncaught exception")||n.includes("failed to fetch")||n.includes("networkerror when attempting to fetch resource")}function u(e){return`statsig.network_fallback.${(0,o._DJB2)(e)}`}function c(e,t){let r=u(e);if(!t||0===Object.keys(t).length)return void s.Storage.removeItem(r);s.Storage.setItem(r,JSON.stringify(t))}t.NetworkFallbackResolver=class{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null==(t=e.networkConfig)?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var r;let n=null==(r=this._fallbackInfo)?void 0:r[t.endpoint];n&&(n.expiryTime=Date.now()+6048e5,c(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:n})))}getActiveFallbackUrl(e,t){var r,n;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let i=this._fallbackInfo;null==i&&(i=null!=(r=function(e){let t=u(e),r=s.Storage.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return a.Log.error("Failed to parse FallbackInfo"),null}}(e))?r:{},this._fallbackInfo=i);let o=i[t.endpoint];return!o||Date.now()>(null!=(n=o.expiryTime)?n:0)||t.getChecksum()!==o.urlConfigChecksum?(delete i[t.endpoint],this._fallbackInfo=i,c(e,this._fallbackInfo),null):o.url?o.url:null}tryFetchUpdatedFallbackInfo(e,t,r,i){return n(this,void 0,void 0,function*(){var n,o;try{if(!l(r,i))return!1;let o=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,a=this._pickNewFallbackUrl(null==(n=this._fallbackInfo)?void 0:n[t.endpoint],o);if(!a)return!1;return this._updateFallbackInfoWithNewUrl(e,t,a),!0}catch(e){return null==(o=this._errorBoundary)||o.logError("tryFetchUpdatedFallbackInfo",e),!1}})}_updateFallbackInfoWithNewUrl(e,t,r){var n,i,o;let a={urlConfigChecksum:t.getChecksum(),url:r,expiryTime:Date.now()+6048e5,previous:[]},s=t.endpoint,l=null==(n=this._fallbackInfo)?void 0:n[s];l&&a.previous.push(...l.previous),a.previous.length>10&&(a.previous=[]);let u=null==(o=null==(i=this._fallbackInfo)?void 0:i[s])?void 0:o.url;null!=u&&a.previous.push(u),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[s]:a}),c(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){return n(this,void 0,void 0,function*(){var t;let r=this._dnsQueryCooldowns[e.endpoint];if(r&&Date.now()1){let e=r[1];e.endsWith("/")&&(e=e.slice(0,-1)),n.push(`https://${e}${a}`)}}return n})}_pickNewFallbackUrl(e,t){var r;if(null==t)return null;let n=new Set(null!=(r=null==e?void 0:e.previous)?r:[]),i=null==e?void 0:e.url,o=null;for(let e of t){let t=e.endsWith("/")?e.slice(0,-1):e;if(!n.has(e)&&t!==i){o=t;break}}return o}},t._isDomainFailure=l},14585:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1207:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PendingEvents=void 0;let n=r(44536);t.PendingEvents=class{constructor(e){this._pendingEvents=[],this._batchSize=e}addToPendingEventsQueue(e){this._pendingEvents.push(e),n.Log.debug("Enqueued Event:",e)}hasEventsForFullBatch(){return this._pendingEvents.length>=this._batchSize}takeAll(){let e=this._pendingEvents;return this._pendingEvents=[],e}isEmpty(){return 0===this._pendingEvents.length}}},21876:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKFlags=void 0;let r={};t.SDKFlags={setFlags:(e,t)=>{r[e]=t},get:(e,t)=>{var n,i;return null!=(i=null==(n=r[e])?void 0:n[t])&&i}}},3295:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;let n={};t.SDKType={_get:e=>{var t;return(null!=(t=n[e])?t:"js-mono")+(null!=r?r:"")},_setClientType(e,t){n[e]=t},_setBindingType(e){r&&"-react"!==r||(r="-"+e)}}},82452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._cloneObject=t._getUnloadEvent=t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0;let n=r(44536);t._getWindowSafe=()=>"undefined"!=typeof window?window:null,t._getDocumentSafe=()=>{var e;let r=(0,t._getWindowSafe)();return null!=(e=null==r?void 0:r.document)?e:null},t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;let e="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||e},t._addWindowEventListenerSafe=(e,r)=>{let n=(0,t._getWindowSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(e,r)},t._addDocumentEventListenerSafe=(e,r)=>{let n=(0,t._getDocumentSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(e,r)},t._getCurrentPageUrlSafe=()=>{var e;try{return null==(e=(0,t._getWindowSafe)())?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}},t._getUnloadEvent=()=>{let e=(0,t._getWindowSafe)();return e&&"onpagehide"in e?"pagehide":"beforeunload"},t._cloneObject=(e,t)=>{try{return JSON.parse(JSON.stringify(t))}catch(t){return n.Log.error(`Failed to clone object ${e}`),null}}},20409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;let n=r(23684),i=r(44536),o=r(14146),a=r(31536),s=r(52312),l={};function u(e){var t;let r=e.data,n=function({lastUpdate:e}){return Date.now()-e>18e5}(r)||function({startTime:e}){return Date.now()-e>144e5}(r);return n&&(e.data=d(),null==(t=null==__STATSIG__?void 0:__STATSIG__.instance(e.sdkKey))||t.$emt({name:"session_expired"})),n}function c(e){return`statsig.session_id.${(0,n._getStorageKey)(e)}`}function f(e){try{(0,o._setObjectInStorage)(e.storageKey,e.data),e.lastPersistedAt=Date.now()}catch(e){i.Log.warn("Failed to save SessionID")}}function d(){return{sessionID:(0,a.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}(0,s._subscribeToVisiblityChanged)(e=>{"background"===e&&Object.values(l).forEach(e=>f(e))}),t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:(e,t=!0)=>(null==l[e]&&(l[e]=function(e){let t=c(e),r=(0,o._getObjectFromStorage)(t);return r&&r.sessionID&&r.startTime&&r.lastUpdate?{data:r,sdkKey:e,lastPersistedAt:0,storageKey:t}:{data:d(),sdkKey:e,lastPersistedAt:0,storageKey:t}}(e)),function(e,t){var r;let n=Date.now();return u(e)?f(e):t&&(e.data.lastUpdate=n,r=e,Date.now()-r.lastPersistedAt>15e3&&f(r)),e}(l[e],t)),overrideInitialSessionID:(e,t)=>{let r=Date.now(),n={data:{sessionID:e,startTime:r,lastUpdate:r},sdkKey:t,lastPersistedAt:Date.now(),storageKey:c(t)};f(n),l[t]=n},checkForIdleSession:e=>{let t=l[e];t&&u(t)&&f(t)}}},32640:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._fastApproxSizeOf=void 0,t._fastApproxSizeOf=(e,r)=>{let n=0,i=Object.keys(e);for(let o=0;o=r)break}return n}},42786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCookieName=t.StableID=void 0;let n=r(23684),i=r(44536),o=r(82452),a=r(14146),s=r(31536),l={},u={},c={};function f(e){return`statsig.stable_id.${(0,n._getStorageKey)(e)}`}function d(e,t){let r=f(t);try{(0,a._setObjectInStorage)(r,e)}catch(e){i.Log.warn("Failed to save StableID to storage")}}function h(e,t){if(!u[t]||null==(0,o._getDocumentSafe)())return;let r=new Date;r.setFullYear(r.getFullYear()+1),document.cookie=`${p(t)}=${encodeURIComponent(e)}; expires=${r.toUTCString()}; path=/`}function p(e){return`statsig.stable_id.${(0,n._getStorageKey)(e)}`}t.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{if(c[e])return null;if(null!=l[e])return l[e];let t=null;return null!=(t=function(e){if(!u[e]||null==(0,o._getDocumentSafe)())return null;for(let t of document.cookie.split(";")){let[r,n]=t.trim().split("=");if(r===p(e))return decodeURIComponent(n)}return null}(e))?(l[e]=t,d(t,e)):(null==(t=function(e){let t=f(e);return(0,a._getObjectFromStorage)(t)}(e))&&(t=(0,s.getUUID)()),d(t,e),h(t,e),l[e]=t),t},setOverride:(e,t)=>{l[t]=e,d(e,t),h(e,t)},_setCookiesEnabled:(e,t)=>{u[e]=t},_setDisabled:(e,t)=>{c[e]=t}},t.getCookieName=p},16911:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,r(24896);let i=r(24896),o=r(94025),a=r(66545),s=r(44536),l=r(31868),u=r(82452),c=r(20409),f=r(42786),d=r(8339),h=r(14146);t.StatsigClientBase=class{constructor(e,t,r,n){var l,d,p,y;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};let m=this.$emt.bind(this);(null==n?void 0:n.logLevel)!=null&&(s.Log.level=n.logLevel),(null==n?void 0:n.disableStorage)&&h.Storage._setDisabled(!0),(null==n?void 0:n.initialSessionID)&&c.StatsigSession.overrideInitialSessionID(n.initialSessionID,e),(null==n?void 0:n.storageProvider)&&h.Storage._setProvider(n.storageProvider),(null==n?void 0:n.enableCookies)&&f.StableID._setCookiesEnabled(e,n.enableCookies),(null==n?void 0:n.disableStableID)&&f.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=n?n:{},this._memoCache={},this.overrideAdapter=null!=(l=null==n?void 0:n.overrideAdapter)?l:null,this._errorBoundary=new o.ErrorBoundary(e,n,m),this._logger=new a.EventLogger(e,m,r,n,this._errorBoundary),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),r.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,n,r),this.storageProvider=h.Storage,null==(y=null==(p=null==(d=this.overrideAdapter)?void 0:d.loadFromStorage)?void 0:p.call(d))||y.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,t){var r;if((0,u._isServerEnv)())return;let n=(0,i._getStatsigGlobal)(),o=null!=(r=n.instances)?r:{};null!=o[e]&&s.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),o[e]=t,n.firstInstance||(n.firstInstance=t),n.instances=o,__STATSIG__=n}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,h.Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,f.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(d.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return n(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){let r=this._listeners[e].indexOf(t);-1!==r&&this._listeners[e].splice(r,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;let r=t=>{try{t(e)}catch(r){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,r);s.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(e=>r(e)),null==(t=this._listeners["*"])||t.forEach(r)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,r){if((null==r?void 0:r.disableExposureLog)===!0)return void this._logger.incrementNonExposureCount(e);this._logger.enqueue(t)}_memoize(e,t){return(r,n)=>{if(this._options.disableEvaluationMemoization)return t(r,n);let i=(0,l.createMemoKey)(e,r,n);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(r,n)),this._memoCache[i]):t(r,n)}}}},28075:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},48085:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},45859:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;let r="statsig::config_exposure",n="statsig::gate_exposure",i="statsig::layer_exposure",o=(e,t,r,n,i)=>(r.bootstrapMetadata&&(n.bootstrapMetadata=r.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:s(r,n),secondaryExposures:i,time:Date.now()});function a(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}t._isExposureEvent=({eventName:e})=>e===n||e===r||e===i,t._createGateExposure=(e,t,r)=>{var i,s,l;let u={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return(null==(i=t.__evaluation)?void 0:i.version)!=null&&(u.configVersion=t.__evaluation.version),o(n,e,t.details,u,a(null!=(l=null==(s=t.__evaluation)?void 0:s.secondary_exposures)?l:[],r))},t._mapExposures=a,t._createConfigExposure=(e,t,n)=>{var i,s,l,u;let c={config:t.name,ruleID:t.ruleID};return(null==(i=t.__evaluation)?void 0:i.version)!=null&&(c.configVersion=t.__evaluation.version),(null==(s=t.__evaluation)?void 0:s.passed)!=null&&(c.rulePassed=String(t.__evaluation.passed)),o(r,e,t.details,c,a(null!=(u=null==(l=t.__evaluation)?void 0:l.secondary_exposures)?u:[],n))},t._createLayerParameterExposure=(e,t,r,n)=>{var s,l,u,c,f,d,h;let p=t.__evaluation,y=(null==(s=null==p?void 0:p.explicit_parameters)?void 0:s.includes(r))===!0,m="",g=null!=(l=null==p?void 0:p.undelegated_secondary_exposures)?l:[];y&&(m=null!=(u=p.allocated_experiment_name)?u:"",g=null!=(c=p.secondary_exposures)?c:[]);let v=null==(f=t.__evaluation)?void 0:f.parameter_rule_ids,b={config:t.name,parameterName:r,ruleID:null!=(d=null==v?void 0:v[r])?d:t.ruleID,allocatedExperiment:m,isExplicitParameter:String(y)};return(null==(h=t.__evaluation)?void 0:h.version)!=null&&(b.configVersion=t.__evaluation.version),o(i,e,t.details,b,a(g,n))};let s=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},50194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.33.1";let r={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>r,add:e=>{r=Object.assign(Object.assign({},r),e)}}},8339:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingEnabledOption=t.LogEventCompressionMode=void 0,t.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},t.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},29675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},43152:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;let n=r(44536),i=r(83058);function o(e,t,r,n){var i;return{name:e,details:t,ruleID:null!=(i=null==r?void 0:r.rule_id)?i:"",__evaluation:r,value:n}}function a(e,t,r){var n,i;let a=null!=(n=null==r?void 0:r.value)?n:{};return Object.assign(Object.assign({},o(e,t,r,a)),{idType:null!=(i=null==r?void 0:r.id_type)?i:null,get:s(e,null==r?void 0:r.value)})}function s(e,t,r){return(o,a)=>{var s;let l=null!=(s=null==t?void 0:t[o])?s:null;return null==l?null!=a?a:null:null==a||(0,i._isTypeMatch)(l,a)?(null==r||r(o),l):(n.Log.warn(`Parameter type mismatch. '${e}.${o}' was found to be type '${typeof l}' but fallback/return type is '${typeof a}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=a?a:null)}}t._makeFeatureGate=function(e,t,r){var n;return Object.assign(Object.assign({},o(e,t,r,(null==r?void 0:r.value)===!0)),{idType:null!=(n=null==r?void 0:r.id_type)?n:null})},t._makeDynamicConfig=a,t._makeExperiment=function(e,t,r){var n;return Object.assign(Object.assign({},a(e,t,r)),{groupName:null!=(n=null==r?void 0:r.group_name)?n:null})},t._makeLayer=function(e,t,r,n){var i,a;return Object.assign(Object.assign({},o(e,t,r,void 0)),{get:s(e,null==r?void 0:r.value,n),groupName:null!=(i=null==r?void 0:r.group_name)?i:null,__value:null!=(a=null==r?void 0:r.value)?a:{}})},t._mergeOverride=function(e,t,r,n){return Object.assign(Object.assign(Object.assign({},e),t),{get:s(e.name,r,n)})},t._makeTypedGet=s},32452:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},27680:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0,t.createUpdateDetails=(e,t,r,n,i,o)=>({duration:r,source:t,success:e,error:n,sourceUrl:i,warnings:o}),t.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},6644:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getUnitIDFromUser=t._getFullUserHash=t._normalizeUser=void 0;let n=r(42904),i=r(44536),o=r(82452);t._normalizeUser=function(e,t,r){let n=(0,o._cloneObject)("StatsigUser",e);return null==n?(i.Log.error("Failed to clone user"),{statsigEnvironment:void 0}):(null!=t&&null!=t.environment?n.statsigEnvironment=t.environment:null!=r&&(n.statsigEnvironment={tier:r}),n)},t._getFullUserHash=function(e){return e?(0,n._DJB2Object)(e):null},t._getUnitIDFromUser=function(e,t){var r,n,i;if("string"!=typeof t)return e.userID;let o=t.toLowerCase();return"userid"!==o?null!=(n=null==(r=e.customIDs)?void 0:r[t])?n:null==(i=e.customIDs)?void 0:i[o]:e.userID}},14146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;let n=r(44536),i=r(82452),o={},a={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>o[e]?o[e]:null,setItem:(e,t)=>{o[e]=t},removeItem:e=>{delete o[e]},getAllKeys:()=>Object.keys(o)},s=null;try{let e=(0,i._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(s={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,r)=>e.localStorage.setItem(t,r),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){n.Log.warn("Failed to setup localStorageProvider.")}let l=null!=s?s:a,u=l;function c(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(a),null;throw e}}t.Storage={isReady:()=>u.isReady(),isReadyResolver:()=>u.isReadyResolver(),getProviderName:()=>u.getProviderName(),getItem:e=>c(()=>u.getItem(e)),setItem:(e,t)=>c(()=>u.setItem(e,t)),removeItem:e=>u.removeItem(e),getAllKeys:()=>u.getAllKeys(),_setProvider:e=>{l=e,u=e},_setDisabled:e=>{u=e?a:l}},t._getObjectFromStorage=function(e){let r=t.Storage.getItem(e);try{return JSON.parse(null!=r?r:"null")}catch(t){return n.Log.error(`Failed to parse value for key "${e}"`),null}},t._setObjectInStorage=function(e,r){t.Storage.setItem(e,JSON.stringify(r))}},16997:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0;let n=r(44536);t._typedJsonParse=function(e,t,r){try{let r=JSON.parse(e);if(r&&"object"==typeof r&&t in r)return r}catch(e){}return n.Log.error(`Failed to parse ${r}`),null}},83058:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){let r=e=>Array.isArray(e)?"array":null===e?"null":typeof e;return r(e)===r(t)}},31536:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID=void 0,t.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Date().getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0,r="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${r}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,r=>{let n=16*Math.random();return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:7&n|8).toString(16)})}},75697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;let n=r(42904),i=r(90604),o={[i.Endpoint._initialize]:"i",[i.Endpoint._rgstr]:"e",[i.Endpoint._download_config_specs]:"d"};t.UrlConfiguration=class{constructor(e,t,r,n){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=o[e],t&&(this.customUrl=t),!t&&r&&(this.customUrl=r.endsWith("/")?`${r}${e}`:`${r}/${e}`),n&&(this.fallbackUrls=n);let a=i.NetworkDefault[e];this.defaultUrl=`${a}/${e}`}getUrl(){var e;return null!=(e=this.customUrl)?e:this.defaultUrl}getChecksum(){var e;let t=(null!=(e=this.fallbackUrls)?e:[]).sort().join(",");return(0,n._DJB2)(this.customUrl+t)}}},52312:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;let n=r(82452),i="foreground",o="background",a=[],s=i,l=!1;t._isCurrentlyVisible=()=>s===i,t._isUnloading=()=>l,t._subscribeToVisiblityChanged=e=>{a.unshift(e)},t._notifyVisibilityChanged=e=>{e!==s&&(s=e,a.forEach(t=>t(e)))},(0,n._addWindowEventListenerSafe)("focus",()=>{l=!1,(0,t._notifyVisibilityChanged)(i)}),(0,n._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(o)),(0,n._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?i:o)}),(0,n._addWindowEventListenerSafe)((0,n._getUnloadEvent)(),()=>{l=!0,(0,t._notifyVisibilityChanged)(o)})},77036:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,r(24896);let o=r(24896),a=r(45534);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return a.Diagnostics}});let s=r(66545);Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return s.EventLogger}});let l=r(44536);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return l.Log}});let u=r(50194),c=r(14146);Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return c.Storage}}),i(r(24896),t),i(r(23684),t),i(r(24193),t),i(r(87218),t),i(r(45534),t),i(r(10337),t),i(r(94025),t),i(r(84406),t),i(r(96222),t),i(r(42904),t),i(r(920),t),i(r(44536),t),i(r(31868),t),i(r(90604),t),i(r(36841),t),i(r(14585),t),i(r(1207),t),i(r(82452),t),i(r(3295),t),i(r(20409),t),i(r(32640),t),i(r(42786),t),i(r(16911),t),i(r(28075),t),i(r(48085),t),i(r(45859),t),i(r(50194),t),i(r(8339),t),i(r(29675),t),i(r(43152),t),i(r(32452),t),i(r(6644),t),i(r(14146),t),i(r(16997),t),i(r(83058),t),i(r(75697),t),i(r(31536),t),i(r(52312),t),i(r(27680),t),i(r(21876),t),Object.assign((0,o._getStatsigGlobal)(),{Log:l.Log,SDK_VERSION:u.SDK_VERSION})},71910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;let n=r(77036);function i(e,t){null==e||e.forEach(e=>{delete t[e]})}t._resolveDeltasResponse=function(e,t){var r,o,a;let s=(0,n._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!s)return{hadBadDeltaChecksum:!0};let l=(i((a=(r=e,o=s,Object.assign(Object.assign(Object.assign({},r),o),{feature_gates:Object.assign(Object.assign({},r.feature_gates),o.feature_gates),layer_configs:Object.assign(Object.assign({},r.layer_configs),o.layer_configs),dynamic_configs:Object.assign(Object.assign({},r.dynamic_configs),o.dynamic_configs)}))).deleted_gates,a.feature_gates),delete a.deleted_gates,i(a.deleted_configs,a.dynamic_configs),delete a.deleted_configs,i(a.deleted_layers,a.layer_configs),delete a.deleted_layers,a),u=(0,n._DJB2Object)({feature_gates:l.feature_gates,dynamic_configs:l.dynamic_configs,layer_configs:l.layer_configs},2);return u!==s.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:u,badMergedConfigs:l,badFullResponse:s.deltas_full_response}:JSON.stringify(l)}},28613:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(77036),i=r(5145),o=r(22083);t.default=class{constructor(e,t){this._sdkKey=e,this._options=t,this._valuesForExternalUse=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._valuesForExternalUse=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._valuesForExternalUse}setValues(e,t){var r,a;if(!e)return!1;let s=(0,n._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=s&&(this._source=e.source,(null==s?void 0:s.has_updates)!==!0||(null!=(r=s.time)?r:0)0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,r;let n=this.getCurrentSourceDetails(),i=n.reason,o=null!=(t=n.warnings)?t:[];"Bootstrap"===this._source&&o.length>0&&(i+=o[0]),"Uninitialized"!==i&&"NoValues"!==i&&(i=`${i}:${e?"Unrecognized":"Recognized"}`);let a="Bootstrap"===this._source&&null!=(r=this._bootstrapMetadata)?r:void 0;return a&&(n.bootstrapMetadata=a),Object.assign(Object.assign({},n),{reason:i})}}},41362:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=r(77036),o=r(71910);class a extends i.NetworkCore{constructor(e,t){super(e,t);let r=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new i.UrlConfiguration(i.Endpoint._initialize,null==r?void 0:r.initializeUrl,null==r?void 0:r.api,null==r?void 0:r.initializeFallbackUrls)}fetchEvaluations(e,t,r,o,a){return n(this,void 0,void 0,function*(){var n,s,l,u,c,f;let d=t?(0,i._typedJsonParse)(t,"has_updates","InitializeResponse"):null,h={user:o,hash:null!=(l=null==(s=null==(n=this._option)?void 0:n.networkConfig)?void 0:s.initializeHashAlgorithm)?l:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==d?void 0:d.has_updates){let e=(null==d?void 0:d.hash_used)!==(null!=(f=null==(c=null==(u=this._option)?void 0:u.networkConfig)?void 0:c.initializeHashAlgorithm)?f:"djb2");h=Object.assign(Object.assign({},h),{sinceTime:a&&!e?d.time:0,previousDerivedFields:"derived_fields"in d&&a?d.derived_fields:{},deltasResponseRequested:!0,full_checksum:d.full_checksum,partialUserMatchSinceTime:e?0:d.time})}return this._fetchEvaluations(e,d,h,r)})}_fetchEvaluations(e,t,r,i){return n(this,void 0,void 0,function*(){var n,a;let s=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:r,retries:2,isStatsigEncodable:!0,priority:i});if((null==s?void 0:s.code)===204)return'{"has_updates": false}';if((null==s?void 0:s.code)!==200)return null!=(n=null==s?void 0:s.body)?n:null;if((null==t?void 0:t.has_updates)!==!0||(null==(a=s.body)?void 0:a.includes('"is_delta":true'))!==!0||!0!==r.deltasResponseRequested)return s.body;let l=(0,o._resolveDeltasResponse)(t,s.body);return"string"==typeof l?l:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},r),l),{deltasResponseRequested:!1}),i)})}}t.default=a},41713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;let n=r(77036),i={disableExposureLog:!0};function o(e){return null==e||!1===e.disableExposureLog}function a(e,t){return null!=t&&!(0,n._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,r){return(s,l)=>{if(null==t)return l;let u=t[s];if(null==u||null!=l&&(0,n._typeOf)(l)!==u.param_type)return l;switch(u.ref_type){case"static":return u.value;case"gate":return e.getFeatureGate(u.gate_name,o(r)?void 0:i).value?u.pass_value:u.fail_value;case"dynamic_config":let c=e.getDynamicConfig(u.config_name,o(r)?void 0:i).get(u.param_name);return a(c,l)?l:c;case"experiment":let f=e.getExperiment(u.experiment_name,o(r)?void 0:i).get(u.param_name);return a(f,l)?l:f;case"layer":let d=e.getLayer(u.layer_name,o(r)?void 0:i).get(u.param_name);return a(d,l)?l:d;default:return l}}}},49743:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=r(77036),o=r(28613),a=r(41362),s=r(41713),l=r(57685);class u extends i.StatsigClientBase{static instance(e){let t=(0,i._getStatsigGlobal)().instance(e);return t instanceof u?t:(i.Log.warn((0,i._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new u(null!=e?e:"",{}))}constructor(e,t,r=null){var n,s;i.SDKType._setClientType(e,"javascript-client");let u=new a.default(r,e=>{this.$emt(e)});for(let a of(super(e,null!=(n=null==r?void 0:r.dataAdapter)?n:new l.StatsigEvaluationsDataAdapter,u,r),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(i.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(i.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(i.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(i.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(i.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(i.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new o.default(e,null!=r?r:null),this._network=u,this._user=this._configureUser(t,r),this._sdkInstanceID=(0,i.getUUID)(),this._contextHandle=new i.PrecomputedEvaluationsContextHandle(e,()=>this._options,()=>this._errorBoundary,()=>this._store.getValues(),()=>this._user,()=>this._sdkInstanceID),null!=(s=null==r?void 0:r.plugins)?s:[]))a.bind(this)}initializeSync(e){var t;return"Uninitialized"!==this.loadingStatus?(0,i.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!=(t=this._store.getWarnings())?t:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return n(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise})}updateUserSync(e,t){let r=performance.now();try{return this._updateUserSyncImpl(e,t,r)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,r)}}_updateUserSyncImpl(e,t,r){var n;let o=[...null!=(n=this._store.getWarnings())?n:[]];this._resetForUser(e);let a=this.dataAdapter.getDataSync(this._user);null==a&&o.push("NoCachedValues"),this._store.setValues(a,this._user),this._finalizeUpdate(a);let s=null==t?void 0:t.disableBackgroundCacheRefresh;return!0===s||null==s&&(null==a?void 0:a.source)==="Bootstrap"||this._runPostUpdate(null!=a?a:null,this._user),(0,i.createUpdateDetails)(!0,this._store.getSource(),performance.now()-r,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),o)}updateUserAsync(e,t){return n(this,void 0,void 0,function*(){let r=performance.now();try{return yield this._updateUserAsyncImpl(e,t)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,r)}})}_updateUserAsyncImpl(e,t){return n(this,void 0,void 0,function*(){this._resetForUser(e);let r=this._user;i.Diagnostics._markInitOverallStart(this._sdkKey);let n=this.dataAdapter.getDataSync(r);if(this._store.setValues(n,this._user),this._setStatus("Loading",n),n=yield this.dataAdapter.getDataAsync(n,r,t),r!==this._user)return(0,i.createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let o=!1;null!=n&&(i.Diagnostics._markInitProcessStart(this._sdkKey),o=this._store.setValues(n,this._user),i.Diagnostics._markInitProcessEnd(this._sdkKey,{success:o})),this._finalizeUpdate(n),o||(this._errorBoundary.attachErrorIfNoneExists(i.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),i.Diagnostics._markInitOverallEnd(this._sdkKey,o,this._store.getCurrentSourceDetails());let a=i.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,i.createUpdateDetails)(o,this._store.getSource(),a,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){let e=(0,i._cloneObject)("StatsigUser",this._user);return null==e&&(i.Log.error("Failed to clone user"),e={}),{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:e,errorBoundary:this._errorBoundary,session:i.StatsigSession.get(this._sdkKey),stableID:i.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}getContextHandle(){return this._contextHandle}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,r){let n="string"==typeof e?{eventName:e,value:t,metadata:r}:e;this.$emt({name:"log_event_called",event:n}),this._logger.enqueue(Object.assign(Object.assign({},n),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(e){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:e}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(e){return n(this,void 0,void 0,function*(){return i.Storage.isReady()||(yield i.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)})}_createErrorUpdateDetails(e,t){var r;return(0,i.createUpdateDetails)(!1,this._store.getSource(),performance.now()-t,e,null,[...null!=(r=this._store.getWarnings())?r:[]])}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch(e=>{i.Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,t){var r,n,o;let a=(0,i._normalizeUser)(e,t),s=null==(r=a.customIDs)?void 0:r.stableID;if(s){let e=null==(o=(n=this.storageProvider).isReadyResolver)?void 0:o.call(n);e?e.then(()=>i.StableID.setOverride(s,this._sdkKey),()=>i.StableID.setOverride(s,this._sdkKey)):i.StableID.setOverride(s,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(a.analyticsOnlyMetadata=Object.assign(Object.assign({},a.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),a}_getFeatureGateImpl(e,t){var r,n;let{result:o,details:a}=this._store.getGate(e);this._checkUserHasIdForEvaluation(null==o?void 0:o.id_type,e,"Gate"),this._checkInitializationStatus(a.reason);let s=(0,i._makeFeatureGate)(e,a,o),l=null==(n=null==(r=this.overrideAdapter)?void 0:r.getGateOverride)?void 0:n.call(r,s,this._user,t),u=null!=l?l:s;return this._enqueueExposure(e,(0,i._createGateExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"gate_evaluation",gate:u}),u}_getDynamicConfigImpl(e,t){var r,n;let{result:o,details:a}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==o?void 0:o.id_type,e,"Dynamic config"),this._checkInitializationStatus(a.reason);let s=(0,i._makeDynamicConfig)(e,a,o),l=null==(n=null==(r=this.overrideAdapter)?void 0:r.getDynamicConfigOverride)?void 0:n.call(r,s,this._user,t),u=null!=l?l:s;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:u}),u}_getExperimentImpl(e,t){var r,n,o,a;let{result:s,details:l}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==s?void 0:s.id_type,e,"Experiment"),this._checkInitializationStatus(l.reason);let u=(0,i._makeExperiment)(e,l,s);null!=u.__evaluation&&(u.__evaluation.secondary_exposures=(0,i._mapExposures)(null!=(n=null==(r=u.__evaluation)?void 0:r.secondary_exposures)?n:[],this._store.getExposureMapping()));let c=null==(a=null==(o=this.overrideAdapter)?void 0:o.getExperimentOverride)?void 0:a.call(o,u,this._user,t),f=null!=c?c:u;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,f,this._store.getExposureMapping()),t),this.$emt({name:"experiment_evaluation",experiment:f}),f}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(e,t){var r,n,o;let{result:a,details:s}=this._store.getLayer(e),l=(0,i._makeLayer)(e,s,a),u=null==(n=null==(r=this.overrideAdapter)?void 0:r.getLayerOverride)?void 0:n.call(r,l,this._user,t);(null==t?void 0:t.disableExposureLog)&&this._logger.incrementNonExposureCount(e);let c=(0,i._mergeOverride)(l,u,null!=(o=null==u?void 0:u.__value)?o:l.__value,r=>{null!=t&&t.disableExposureLog||this._enqueueExposure(e,(0,i._createLayerParameterExposure)(this._user,c,r,this._store.getExposureMapping()),t)});return this.$emt({name:"layer_evaluation",layer:c}),c}_getParameterStoreImpl(e,t){var r,n;let{result:i,details:o}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);let a={name:e,details:o,__configuration:i,get:(0,s._makeParamStoreGetter)(this,i,t)},l=null==(n=null==(r=this.overrideAdapter)?void 0:r.getParamStoreOverride)?void 0:n.call(r,a,t);return null!=l&&(a.__configuration=l.config,a.details=l.details,a.get=(0,s._makeParamStoreGetter)(this,l.config,t)),a}_checkUserHasIdForEvaluation(e,t,r){e&&((0,i._getUnitIDFromUser)(this._user,e)||i.Log.warn(`The user does not have the required id_type "${e}" for ${r} "${t}"`))}_checkInitializationStatus(e){("Uninitialized"===e||e.startsWith("Loading"))&&i.Log.warn(`SDK initialization has not completed. Reason: ${e}`)}}t.default=u},57685:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;let i=r(77036),o=r(41362);class a extends i.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,r){super.attach(e,t,r),null!==r&&r instanceof o.default?this._network=r:this._network=new o.default(null!=t?t:{})}getDataAsync(e,t,r){return this._getDataAsyncImpl(e,(0,i._normalizeUser)(t,this._options),r)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){let t=(0,i._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):i.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,r,i){return n(this,void 0,void 0,function*(){var n;let o=yield null==(n=this._network)?void 0:n.fetchEvaluations(this._getSdkKey(),e,null==r?void 0:r.priority,t,i);return null!=o?o:null})}_getCacheKey(e){var t;let r=(0,i._getStorageKey)(this._getSdkKey(),e,null==(t=this._options)?void 0:t.customUserCacheKeyFunc);return`${i.DataAdapterCachePrefix}.${this._cacheSuffix}.${r}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,i._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=a},5145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.V1InitializeContainer=void 0;let n=r(77036);t.V1InitializeContainer=class{constructor(e){this._values=e}getGate(e){return this._getResultFromLookup(this._values.feature_gates,e)}getConfig(e){return this._getResultFromLookup(this._values.dynamic_configs,e)}getLayer(e){return this._getResultFromLookup(this._values.layer_configs,e)}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var r,i;return e&&null!=(i=null!=(r=e[t])?r:e[(0,n._DJB2)(t)])?i:null}}},22083:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.V2InitializeContainer=void 0;let n=r(77036);t.V2InitializeContainer=class{constructor(e){this._values=e}getGate(e){var t,r,n;let i=this._getResultFromLookup(this._values.feature_gates,e);return i?{name:e,value:!0===i.v,rule_id:null!=(t=i.r)?t:"default",secondary_exposures:null!=(r=i.s)?r:[],id_type:null!=(n=i.i)?n:""}:null}getConfig(e){var t,r,n,i;let o=this._getResultFromLookup(this._values.dynamic_configs,e);return o?{name:e,value:null!=(t=this._values.values[o.v])?t:{},rule_id:o.r,secondary_exposures:null!=(r=o.s)?r:[],id_type:null!=(n=o.i)?n:"",is_user_in_experiment:!0===o.ue,passed:!0===o.p,group_name:null!=(i=o.gn)?i:void 0,is_experiment_active:!0===o.ea,group:o.r,is_device_based:"stableID"===o.i}:null}getLayer(e){var t,r,n,i,o,a;let s=this._getResultFromLookup(this._values.layer_configs,e);return s?{name:e,value:null!=(t=this._values.values[s.v])?t:{},rule_id:s.r,secondary_exposures:null!=(r=s.s)?r:[],is_user_in_experiment:!0===s.ue,group_name:null!=(n=s.gn)?n:void 0,is_experiment_active:!0===s.ea,group:s.r,is_device_based:"stableID"===s.i,allocated_experiment_name:null!=(i=s.ae)?i:"",explicit_parameters:null!=(o=s.ep)?o:[],undelegated_secondary_exposures:null!=(a=s.us)?a:[],parameter_rule_ids:s.pr}:null}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var r,i;return e&&null!=(i=null!=(r=e[t])?r:e[(0,n._DJB2)(t)])?i:null}}},14635:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;let o=r(77036),a=r(49743);t.StatsigClient=a.default,i(r(77036),t),t.default=Object.assign((0,o._getStatsigGlobal)(),{StatsigClient:a.default})},22966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNoopClient=t.NoopEvaluationsClient=void 0;let n=r(77036),i={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},o=()=>{},a=()=>i,s=()=>Promise.resolve(),l=()=>Promise.resolve(i),u={reason:"Error:NoClient"},c=e=>(...t)=>{let r="string"==typeof t[0]?t[0]:t[1];switch(e){case"gate":return(0,n._makeFeatureGate)(r,u,null);case"config":return(0,n._makeDynamicConfig)(r,u,null);case"layer":return(0,n._makeLayer)(r,u,null);case"param_store":return{name:r}}},f={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:"",lastPersistedAt:0,storageKey:""},stableID:"",storageProvider:n.Storage,sdkInstanceID:""},d=new n.PrecomputedEvaluationsContextHandle("",()=>({}),()=>({}),()=>null,()=>({userID:""}),()=>"");t.NoopEvaluationsClient={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:a,initializeAsync:l,shutdown:s,flush:s,updateRuntimeOptions:o,updateUserSync:a,updateUserAsync:l,getContext:()=>Object.assign({},f),getContextHandle:()=>d,checkGate:()=>!1,getFeatureGate:c("gate"),getDynamicConfig:c("config"),getExperiment:c("config"),getLayer:c("layer"),getParameterStore:c("param_store"),logEvent:o,on:o,off:o,$on:o,$emt:o,dataAdapter:{attach:o,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:o,setDataLegacy:o,prefetchData:s}},t.isNoopClient=function(e){return"isNoop"in e}},4752:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2784),i=r(22966);t.default=(0,n.createContext)({renderVersion:0,client:i.NoopEvaluationsClient,isLoading:!0})},71351:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigProvider=void 0;let n=r(52322),i=r(2784),o=r(77036),a=r(4752),s=r(39766);function l(e){let[t,r]=(0,i.useState)(0),o=(0,s.useClientAsyncInit)(e.sdkKey,e.user,e.options).client,[l,u]=(0,i.useState)(!f(o));c(o,r,u);let d=(0,i.useMemo)(()=>({renderVersion:t,client:o,isLoading:l}),[t,o,l]);return(0,n.jsx)(a.default.Provider,{value:d,children:null!=e.loadingComponent&&d.isLoading?e.loadingComponent:e.children})}function u(e){let[t,r]=(0,i.useState)(0),o=e.client,[s,l]=(0,i.useState)(!f(o));c(o,r,l);let u=(0,i.useMemo)(()=>({renderVersion:t,client:o,isLoading:s}),[t,o,s]);return(0,n.jsx)(a.default.Provider,{value:u,children:null!=e.loadingComponent&&u.isLoading?e.loadingComponent:e.children})}function c(e,t,r){(0,i.useEffect)(()=>{let n=()=>{t(e=>e+1),r(!f(e))};return o.SDKType._setBindingType("react"),e.$on("values_updated",n),()=>{e.flush().catch(e=>o.Log.error("An error occurred during flush",e)),e.off("values_updated",n)}},[e,t])}function f(e){return"isNoop"in e||"Ready"===e.loadingStatus}t.StatsigProvider=function(e){return"client"in e?(("sdkKey"in e||"user"in e)&&o.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,n.jsx)(u,Object.assign({},e))):(0,n.jsx)(l,Object.assign({},e))}},77542:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=t.useStatsigInternalClientFactoryBootstrap=t.useStatsigInternalClientFactoryAsync=t.useStatsigClient=t.useParameterStore=t.useLayer=t.useGateValue=t.useFeatureGate=t.useExperiment=t.useDynamicConfig=t.useClientBootstrapInit=t.useClientAsyncInit=t.StatsigProvider=t.StatsigContext=void 0;let o=r(77036),a=r(4752);t.StatsigContext=a.default;let s=r(71351);Object.defineProperty(t,"StatsigProvider",{enumerable:!0,get:function(){return s.StatsigProvider}});let l=r(39766);Object.defineProperty(t,"useClientAsyncInit",{enumerable:!0,get:function(){return l.useClientAsyncInit}});let u=r(35653);Object.defineProperty(t,"useClientBootstrapInit",{enumerable:!0,get:function(){return u.useClientBootstrapInit}});let c=r(28690);t.useDynamicConfig=c.default;let f=r(94721);t.useExperiment=f.default;let d=r(91343);t.useFeatureGate=d.default;let h=r(25912);t.useGateValue=h.default;let p=r(71511);t.useLayer=p.default;let y=r(99178);t.useParameterStore=y.default;let m=r(26845);Object.defineProperty(t,"useStatsigClient",{enumerable:!0,get:function(){return m.useStatsigClient}});let g=r(95988);Object.defineProperty(t,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return g.useStatsigInternalClientFactoryAsync}});let v=r(25861);Object.defineProperty(t,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return v.useStatsigInternalClientFactoryBootstrap}});let b=r(73467);Object.defineProperty(t,"useStatsigUser",{enumerable:!0,get:function(){return b.useStatsigUser}}),i(r(14635),t),Object.assign((0,o._getStatsigGlobal)(),{StatsigContext:a.default,StatsigProvider:s.StatsigProvider,useClientAsyncInit:l.useClientAsyncInit,useClientBootstrapInit:u.useClientBootstrapInit,useDynamicConfig:c.default,useExperiment:f.default,useFeatureGate:d.default,useGateValue:h.default,useLayer:p.default,useParameterStore:y.default,useStatsigClient:m.useStatsigClient,useStatsigInternalClientFactoryAsync:g.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:v.useStatsigInternalClientFactoryBootstrap,useStatsigUser:b.useStatsigUser})},39766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientAsyncInit=void 0;let n=r(14635),i=r(95988);t.useClientAsyncInit=function(e,t,r=null){return(0,i.useStatsigInternalClientFactoryAsync)(e=>new n.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,statsigOptions:r})}},35653:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientBootstrapInit=void 0;let n=r(14635),i=r(25861);t.useClientBootstrapInit=function(e,t,r,o=null,a){return(0,i.useStatsigInternalClientFactoryBootstrap)(e=>new n.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,initialValues:r,statsigOptions:o,useLegacyFormat:a})}},28690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2784),i=r(77036),o=r(22966),a=r(4752);t.default=function(e,t){let{client:r,renderVersion:s}=(0,n.useContext)(a.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${e}'.`),o.NoopEvaluationsClient.getDynamicConfig(e,t)):r.getDynamicConfig(e,t),[e,r,s,...t?Object.values(t):[]])}},94721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2784),i=r(77036),o=r(22966),a=r(4752);t.default=function(e,t){let{client:r,renderVersion:s}=(0,n.useContext)(a.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${e}'.`),o.NoopEvaluationsClient.getExperiment(e,t)):r.getExperiment(e,t),[e,r,s,...t?Object.values(t):[]])}},91343:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2784),i=r(77036),o=r(22966),a=r(4752);t.default=function(e,t){let{client:r,renderVersion:s}=(0,n.useContext)(a.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${e}'.`),o.NoopEvaluationsClient.getFeatureGate(e,t)):r.getFeatureGate(e,t),[e,r,s,...t?Object.values(t):[]])}},25912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2784),i=r(77036),o=r(22966),a=r(4752);t.default=function(e,t){let{client:r,renderVersion:s}=(0,n.useContext)(a.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${e}'.`),o.NoopEvaluationsClient.checkGate(e,t)):r.checkGate(e,t),[e,r,s,...t?Object.values(t):[]])}},71511:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2784),i=r(77036),o=r(22966),a=r(4752);t.default=function(e,t){let{client:r,renderVersion:s}=(0,n.useContext)(a.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${e}'.`),o.NoopEvaluationsClient.getLayer(e,t)):r.getLayer(e,t),[e,r,s,...t?Object.values(t):[]])}},99178:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2784),i=r(77036),o=r(22966),a=r(4752);t.default=function(e,t){let{client:r,renderVersion:s}=(0,n.useContext)(a.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${e}'.`),o.NoopEvaluationsClient.getParameterStore(e,t)):r.getParameterStore(e,t),[e,r,s,...t?Object.values(t):[]])}},26845:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigClient=void 0;let n=r(2784),i=r(77036),o=r(22966),a=r(4752);t.useStatsigClient=function(){let{client:e,renderVersion:t,isLoading:r}=(0,n.useContext)(a.default),s=(0,n.useMemo)(()=>(0,o.isNoopClient)(e)?(i.Log.warn("Attempting to retrieve a StatsigClient but none was set."),o.NoopEvaluationsClient):e,[e,t]),l=[s,t],u=(0,n.useCallback)((e,t)=>s.checkGate(e,t),l),c=(0,n.useCallback)((e,t)=>s.getFeatureGate(e,t),l),f=(0,n.useCallback)((e,t)=>s.getDynamicConfig(e,t),l),d=(0,n.useCallback)((e,t)=>s.getExperiment(e,t),l),h=(0,n.useCallback)((e,t)=>s.getLayer(e,t),l),p=(0,n.useCallback)((e,t)=>s.getParameterStore(e,t),l),y=(0,n.useCallback)((e,t,r)=>"string"==typeof e?s.logEvent(e,t,r):s.logEvent(e),l);return(0,n.useMemo)(()=>({client:s,checkGate:u,getFeatureGate:c,getDynamicConfig:f,getExperiment:d,getLayer:h,getParameterStore:p,logEvent:y,isLoading:r}),[s,u,c,f,d,h,p,y,r])}},95988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryAsync=void 0;let n=r(2784),i=r(77036);t.useStatsigInternalClientFactoryAsync=function(e,t){let r=(0,n.useMemo)(()=>{var r;return null!=(r=(0,i._getInstance)(t.sdkKey))?r:e(t)},[]),[o,a]=(0,n.useState)("Ready"!==r.loadingStatus);return(0,n.useMemo)(()=>{"Ready"!==r.loadingStatus&&r.initializeAsync().catch(i.Log.error).finally(()=>a(!1))},[]),{client:r,isLoading:o}}},25861:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryBootstrap=void 0;let n=r(2784),i=r(77036);t.useStatsigInternalClientFactoryBootstrap=function(e,t){let r=(0,n.useRef)((0,i._getInstance)(t.sdkKey));return(0,n.useMemo)(()=>{if(r.current)return r.current;let n=e(t);return r.current=n,t.useLegacyFormat?n.dataAdapter.setDataLegacy(t.initialValues,t.initialUser):n.dataAdapter.setData(t.initialValues),n.initializeSync(),n},[])}},73467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=void 0;let n=r(2784),i=r(4752),o=r(26845);function a(e){return e.getContextHandle().user}t.useStatsigUser=function(){let{client:e}=(0,o.useStatsigClient)(),{renderVersion:t}=(0,n.useContext)(i.default);return{user:(0,n.useMemo)(()=>a(e),[e,t]),updateUserSync:(0,n.useCallback)(t=>("function"==typeof t&&(t=t(a(e))),e.updateUserSync(t)),[e]),updateUserAsync:(0,n.useCallback)(t=>("function"==typeof t&&(t=t(a(e))),e.updateUserAsync(t)),[e])}}},22052:function(e,t,r){"use strict";var n=r(35962),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{let t=h.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),v=e=>(e=e.toLowerCase(),t=>g(t)===e),b=e=>t=>typeof t===e,{isArray:_}=Array,w=b("undefined");function E(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let S=v("ArrayBuffer"),x=b("string"),O=b("function"),k=b("number"),T=e=>null!==e&&"object"==typeof e,C=e=>{if("object"!==g(e))return!1;let t=p(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(m in e)&&!(y in e)},P=v("Date"),A=v("File"),R=v("Blob"),I=v("FileList"),D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},M=void 0!==D.FormData?D.FormData:void 0,j=v("URLSearchParams"),[N,L,F,U]=["ReadableStream","Request","Response","Headers"].map(v);function B(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),_(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,q=e=>!w(e)&&e!==$,W=(i="undefined"!=typeof Uint8Array&&p(Uint8Array),e=>i&&e instanceof i),V=v("HTMLFormElement"),H=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),G=v("RegExp"),K=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};B(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},Y=v("AsyncFunction"),Q=(s="function"==typeof setImmediate,l=O($.postMessage),s?setImmediate:l?(u=`axios@${Math.random()}`,c=[],$.addEventListener("message",({source:e,data:t})=>{e===$&&t===u&&c.length&&c.shift()()},!1),e=>{c.push(e),$.postMessage(u,"*")}):e=>setTimeout(e)),J="undefined"!=typeof queueMicrotask?queueMicrotask.bind($):"undefined"!=typeof process&&process.nextTick||Q;var X={isArray:_,isArrayBuffer:S,isBuffer:E,isFormData:e=>{if(!e)return!1;if(M&&e instanceof M)return!0;let t=p(e);if(!t||t===Object.prototype||!O(e.append))return!1;let r=g(e);return"formdata"===r||"object"===r&&O(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:x,isNumber:k,isBoolean:e=>!0===e||!1===e,isObject:T,isPlainObject:C,isEmptyObject:e=>{if(!T(e)||E(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:N,isRequest:L,isResponse:F,isHeaders:U,isUndefined:w,isDate:P,isFile:A,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:R,isRegExp:G,isFunction:O,isStream:e=>T(e)&&O(e.pipe),isURLSearchParams:j,isTypedArray:W,isFileList:I,forEach:B,merge:function e(){let{caseless:t,skipUndefined:r}=q(this)&&this||{},n={},i=(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let a=t&&z(n,o)||o;C(n[a])&&C(i)?n[a]=e(n[a],i):C(i)?n[a]=e({},i):_(i)?n[a]=i.slice():r&&w(i)||(n[a]=i)};for(let e=0,t=arguments.length;e(B(t,(t,n)=>{r&&O(t)?Object.defineProperty(e,n,{value:d(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&p(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:g,kindOfTest:v,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!k(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[y]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:V,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:K,freezeMethods:e=>{K(e,(t,r)=>{if(O(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(O(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(_(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:z,global:$,isContextDefined:q,isSpecCompliantForm:function(e){return!!(e&&O(e.append)&&"FormData"===e[m]&&e[y])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(T(e)){if(t.indexOf(e)>=0)return;if(E(e))return e;if(!("toJSON"in e)){t[n]=e;let i=_(e)?[]:{};return B(e,(e,t)=>{let o=r(e,n+1);w(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:Y,isThenable:e=>e&&(T(e)||O(e))&&O(e.then)&&O(e.catch),setImmediate:Q,asap:J,isIterable:e=>null!=e&&O(e[y])};class Z extends Error{static from(e,t,r,n,i,o){let a=new Z(e.message,t||e.code,r,n,i);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}}function ee(e){return X.isPlainObject(e)||X.isArray(e)}function et(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,r){return e?e.concat(t).map(function(e,t){return e=et(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}Z.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Z.ERR_BAD_OPTION="ERR_BAD_OPTION",Z.ECONNABORTED="ECONNABORTED",Z.ETIMEDOUT="ETIMEDOUT",Z.ERR_NETWORK="ERR_NETWORK",Z.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Z.ERR_DEPRECATED="ERR_DEPRECATED",Z.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Z.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Z.ERR_CANCELED="ERR_CANCELED",Z.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Z.ERR_INVALID_URL="ERR_INVALID_URL",Z.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let en=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function ei(e,t,r){if(!X.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=X.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])})).metaTokens,i=r.visitor||d,o=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===r.maxDepth?100:r.maxDepth,u=s&&X.isSpecCompliantForm(t);if(!X.isFunction(i))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!u&&X.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(e)||X.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):f.from(e):e}function d(e,r,i){let s=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(er(i,r,o),c(e)),!1;if(e&&!i&&"object"==typeof e)if(X.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var l;if(X.isArray(e)&&(l=e,X.isArray(l)&&!l.some(ee))||(X.isFileList(e)||X.endsWith(r,"[]"))&&(s=X.toArray(e)))return r=et(r),s.forEach(function(e,n){X.isUndefined(e)||null===e||t.append(!0===a?er([r],n,o):null===a?r:r+"[]",c(e))}),!1}return!!ee(e)||(t.append(er(i,r,o),c(e)),!1)}let h=[],p=Object.assign(en,{defaultVisitor:d,convertValue:c,isVisitable:ee});if(!X.isObject(e))throw TypeError("data must be an object");return!function e(r,n,o=0){if(!X.isUndefined(r)){if(o>l)throw new Z("Object is too deeply nested ("+o+" levels). Max depth: "+l,Z.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==h.indexOf(r))throw Error("Circular reference detected in "+n.join("."));h.push(r),X.forEach(r,function(r,a){!0===(!(X.isUndefined(r)||null===r)&&i.call(t,r,X.isString(a)?a.trim():a,n,p))&&e(r,n?n.concat(a):[a],o+1)}),h.pop()}}(e),t}function eo(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ea(e,t){this._pairs=[],e&&ei(e,this,t)}let es=ea.prototype;function el(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eu(e,t,r){let n;if(!t)return e;let i=r&&r.encode||el,o=X.isFunction(r)?{serialize:r}:r,a=o&&o.serialize;if(n=a?a(t,o):X.isURLSearchParams(t)?t.toString():new ea(t,o).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}es.append=function(e,t){this._pairs.push([e,t])},es.toString=function(e){let t=e?function(t){return e.call(this,t,eo)}:eo;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ec{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ef={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ed="undefined"!=typeof URLSearchParams?URLSearchParams:ea,eh="undefined"!=typeof FormData?FormData:null,ep="undefined"!=typeof Blob?Blob:null;let ey="undefined"!=typeof window&&"undefined"!=typeof document,em="object"==typeof navigator&&navigator||void 0,eg=ey&&(!em||0>["ReactNative","NativeScript","NS"].indexOf(em.product)),ev="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eb=ey&&window.location.href||"http://localhost";var e_={...Object.freeze({__proto__:null,hasBrowserEnv:ey,hasStandardBrowserEnv:eg,hasStandardBrowserWebWorkerEnv:ev,navigator:em,origin:eb}),isBrowser:!0,classes:{URLSearchParams:ed,FormData:eh,Blob:ep},protocols:["http","https","file","blob","url","data"]};function ew(e){if(X.isFormData(e)&&X.isFunction(e.entries)){let t={};return X.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&X.isArray(n)?n.length:o,s)?X.hasOwnProp(n,o)?n[o]=X.isArray(n[o])?n[o].concat(r):[n[o],r]:n[o]=r:(n[o]&&X.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&X.isArray(n[o])&&(n[o]=function(e){let t,r,n={},i=Object.keys(e),o=i.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null}let eE=(e,t)=>null!=e&&X.hasOwnProp(e,t)?e[t]:void 0,eS={transitional:ef,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=X.isObject(e);if(o&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return i?JSON.stringify(ew(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){let t=eE(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return ei(e,new e_.classes.URLSearchParams,{visitor:function(e,t,r,n){return e_.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=X.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=eE(this,"env"),i=n&&n.FormData;return ei(r?{"files[]":e}:e,i&&new i,t)}}if(o||i){t.setContentType("application/json",!1);var a=e;if(X.isString(a))try{return(0,JSON.parse)(a),X.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=eE(this,"transitional")||eS.transitional,r=t&&t.forcedJSONParsing,n=eE(this,"responseType"),i="json"===n;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(r&&!n||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,eE(this,"parseReviver"))}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw Z.from(e,Z.ERR_BAD_RESPONSE,this,null,eE(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e_.classes.FormData,Blob:e_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{eS.headers[e]={}});let ex=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eO=Symbol("internals"),ek=/[^\x09\x20-\x7E\x80-\xFF]/g;function eT(e){return e&&String(e).trim().toLowerCase()}function eC(e){return!1===e||null==e?e:X.isArray(e)?e.map(eC):function(e){let t=0,r=e.length;for(;tt;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(ek,""))}function eP(e,t,r,n,i){if(X.isFunction(n))return n.call(this,t,r);if(i&&(t=r),X.isString(t)){if(X.isString(n))return -1!==t.indexOf(n);if(X.isRegExp(n))return n.test(t)}}class eA{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eT(t);if(!i)throw Error("header name must be a non-empty string");let o=X.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eC(e))}let o=(e,t)=>X.forEach(e,(e,r)=>i(e,r,t));if(X.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let n;if(X.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim())))o((e=>{let t,r,n,i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&ex[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i})(e),t);else if(X.isObject(e)&&X.isIterable(e)){let r={},n,i;for(let t of e){if(!X.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?X.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=eT(e)){let r=X.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(X.isFunction(t))return t.call(this,e,r);if(X.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eT(e)){let r=X.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eP(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eT(e)){let i=X.findKey(r,e);i&&(!t||eP(r,r[i],i,t))&&(delete r[i],n=!0)}}return X.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||eP(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return X.forEach(this,(n,i)=>{let o=X.findKey(r,i);if(o){t[o]=eC(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();a!==i&&delete t[i],t[a]=eC(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return X.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&X.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eO]=this[eO]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eT(e);if(!t[n]){let i=X.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return X.isArray(e)?e.forEach(n):n(e),this}}function eR(e,t){let r=this||eS,n=t||r,i=eA.from(n.headers),o=n.data;return X.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eI(e){return!!(e&&e.__CANCEL__)}eA.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(eA.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),X.freezeMethods(eA);class eD extends Z{constructor(e,t,r){super(null==e?"canceled":e,Z.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function eM(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Z("Request failed with status code "+r.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}let ej=(e,t,r=3)=>{let n=0,i=function(e,t){let r,n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];r||(r=l),n[o]=s,i[o]=l;let c=a,f=0;for(;c!==o;)f+=n[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-r{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},o-s)))},()=>r&&a(r)]}(r=>{let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=null!=a?Math.min(o,a):o,l=Math.max(0,s-n),u=i(l);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-s)/u:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},eN=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eL=e=>(...t)=>X.asap(()=>e(...t));var eF=e_.hasStandardBrowserEnv?(o=new URL(e_.origin),a=e_.navigator&&/(msie|trident)/i.test(e_.navigator.userAgent),e=>(e=new URL(e,e_.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,eU=e_.hasStandardBrowserEnv?{write(e,t,r,n,i,o,a){if("undefined"==typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];X.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),X.isString(n)&&s.push(`path=${n}`),X.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),X.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eB(e,t,r){let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(n||!1===r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let ez=e=>e instanceof eA?{...e}:e;function e$(e,t){t=t||{};let r={};function n(e,t,r,n){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:n},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function i(e,t,r,i){return X.isUndefined(t)?X.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!X.isUndefined(t))return n(void 0,t)}function a(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return X.hasOwnProp(t,o)?n(r,i):X.hasOwnProp(e,o)?n(void 0,r):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>i(ez(e),ez(t),r,!0)};return X.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=X.hasOwnProp(l,n)?l[n]:i,a=o(X.hasOwnProp(e,n)?e[n]:void 0,X.hasOwnProp(t,n)?t[n]:void 0,n);X.isUndefined(a)&&o!==s||(r[n]=a)}),r}var eq=e=>{let t=e$({},e),{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=eA.from(a),t.url=eu(eB(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),X.isFormData(r)){if(e_.hasStandardBrowserEnv||e_.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(X.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}}if(e_.hasStandardBrowserEnv&&(X.isFunction(n)&&(n=n(t)),!0===n||null==n&&eF(t.url))){let e=i&&o&&eU.read(o);e&&a.set(i,e)}return t},eW="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o,a,s,l=eq(e),u=l.data,c=eA.from(l.headers).normalize(),{responseType:f,onUploadProgress:d,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(n),l.signal&&l.signal.removeEventListener("abort",n)}let y=new XMLHttpRequest;function m(){if(!y)return;let n=eA.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());eM(function(e){t(e),p()},function(e){r(e),p()},{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(l.method.toUpperCase(),l.url,!0),y.timeout=l.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(r(new Z("Request aborted",Z.ECONNABORTED,e,y)),y=null)},y.onerror=function(t){let n=new Z(t&&t.message?t.message:"Network Error",Z.ERR_NETWORK,e,y);n.event=t||null,r(n),y=null},y.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",n=l.transitional||ef;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new Z(t,n.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,y)),y=null},void 0===u&&c.setContentType(null),"setRequestHeader"in y&&X.forEach(c.toJSON(),function(e,t){y.setRequestHeader(t,e)}),X.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),f&&"json"!==f&&(y.responseType=l.responseType),h&&([o,s]=ej(h,!0),y.addEventListener("progress",o)),d&&y.upload&&([i,a]=ej(d),y.upload.addEventListener("progress",i),y.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(n=t=>{y&&(r(!t||t.type?new eD(null,e,y):t),y.abort(),y=null)},l.cancelToken&&l.cancelToken.subscribe(n),l.signal&&(l.signal.aborted?n():l.signal.addEventListener("abort",n)));let g=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(g&&-1===e_.protocols.indexOf(g))return void r(new Z("Unsupported protocol "+g+":",Z.ERR_BAD_REQUEST,e));y.send(u||null)})};let eV=function*(e,t){let r,n=e.byteLength;if(n{let i,o=eH(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:eY}=X,eQ=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:eJ,TextEncoder:eX}=X.global,eZ=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e0=e=>{let t,{fetch:r,Request:n,Response:i}=e=X.merge.call({skipUndefined:!0},eQ,e),o=r?eY(r):"function"==typeof fetch,a=eY(n),s=eY(i);if(!o)return!1;let l=o&&eY(eJ),u=o&&("function"==typeof eX?(t=new eX,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&l&&eZ(()=>{let e=!1,t=new n(e_.origin,{body:new eJ,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),f=s&&l&&eZ(()=>X.isReadableStream(new i("").body)),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{d[e]||(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,r)})});let h=async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){let t=new n(e_.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e))?(await u(e)).byteLength:void 0},p=async(e,t)=>{let r=X.toFiniteNumber(e.getContentLength());return null==r?h(t):r};return async e=>{let t,{url:o,method:s,data:l,signal:u,cancelToken:h,timeout:y,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:b,withCredentials:_="same-origin",fetchOptions:w}=eq(e),E=r||fetch;v=v?(v+"").toLowerCase():"text";let S=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Z?t:new eD(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=n;return s.unsubscribe=()=>X.asap(a),s}})([u,h&&h.toAbortSignal()],y),x=null,O=S&&S.unsubscribe&&(()=>{S.unsubscribe()});try{if(g&&c&&"get"!==s&&"head"!==s&&0!==(t=await p(b,l))){let e,r=new n(o,{method:"POST",body:l,duplex:"half"});if(X.isFormData(l)&&(e=r.headers.get("content-type"))&&b.setContentType(e),r.body){let[e,n]=eN(t,ej(eL(g)));l=eK(r.body,65536,e,n)}}X.isString(_)||(_=_?"include":"omit");let r=a&&"credentials"in n.prototype;if(X.isFormData(l)){let e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}let u={...w,signal:S,method:s.toUpperCase(),headers:b.normalize().toJSON(),body:l,duplex:"half",credentials:r?_:void 0};x=a&&new n(o,u);let h=await (a?E(x,w):E(o,u)),y=f&&("stream"===v||"response"===v);if(f&&(m||y&&O)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=X.toFiniteNumber(h.headers.get("content-length")),[r,n]=m&&eN(t,ej(eL(m),!0))||[];h=new i(eK(h.body,65536,r,()=>{n&&n(),O&&O()}),e)}v=v||"text";let k=await d[X.findKey(d,v)||"text"](h,e);return!y&&O&&O(),await new Promise((t,r)=>{eM(t,r,{data:k,headers:eA.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:x})})}catch(t){if(O&&O(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,x,t&&t.response),{cause:t.cause||t});throw Z.from(t,t&&t.code,e,x,t&&t.response)}}},e1=new Map,e2=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],a=o.length,s,l,u=e1;for(;a--;)s=o[a],void 0===(l=u.get(s))&&u.set(s,l=a?new Map:e0(t)),u=l;return l};e2();let e4={http:null,xhr:eW,fetch:{get:e2}};X.forEach(e4,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e3=e=>`- ${e}`,e5=e=>X.isFunction(e)||null===e||!1===e;var e6=function(e,t){let r,n,{length:i}=e=X.isArray(e)?e:[e],o={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Z("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(e3).join("\n"):" "+e3(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function e8(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eD(null,e)}function e9(e){return e8(e),e.headers=eA.from(e.headers),e.data=eR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e6(e.adapter||eS.adapter,e)(e).then(function(t){return e8(e),t.data=eR.call(e,e.transformResponse,t),t.headers=eA.from(t.headers),t},function(t){return!eI(t)&&(e8(e),t&&t.response&&(t.response.data=eR.call(e,e.transformResponse,t.response),t.response.headers=eA.from(t.response.headers))),Promise.reject(t)})}let e7="1.15.1",te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{te[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tt={};te.transitional=function(e,t,r){function n(e,t){return"[Axios v"+e7+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new Z(n(i," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!tt[i]&&(tt[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},te.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var tr=function(e,t,r){if("object"!=typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new Z("option "+o+" must be "+r,Z.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}};class tn{constructor(e){this.defaults=e||{},this.interceptors={request:new ec,response:new ec}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=e$(this.defaults,t);void 0!==i&&tr(i,{silentJSONParsing:te.transitional(te.boolean),forcedJSONParsing:te.transitional(te.boolean),clarifyTimeoutError:te.transitional(te.boolean),legacyInterceptorReqResOrdering:te.transitional(te.boolean)},!1),null!=o&&(X.isFunction(o)?t.paramsSerializer={serialize:o}:tr(o,{encode:te.function,serialize:te.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tr(t,{baseUrl:te.spelling("baseURL"),withXsrfToken:te.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&X.merge(a.common,a[t.method]);a&&X.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eA.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||ef;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f=0;if(!u){let e=[e9.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eD(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ti(function(t){e=t}),cancel:e}}}let to={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(to).forEach(([e,t])=>{to[t]=e});let ta=function e(t){let r=new tn(t),n=d(tn.prototype.request,r);return X.extend(n,tn.prototype,r,{allOwnKeys:!0}),X.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(e$(t,r))},n}(eS);ta.Axios=tn,ta.CanceledError=eD,ta.CancelToken=ti,ta.isCancel=eI,ta.VERSION=e7,ta.toFormData=ei,ta.AxiosError=Z,ta.Cancel=ta.CanceledError,ta.all=function(e){return Promise.all(e)},ta.spread=function(e){return function(t){return e.apply(null,t)}},ta.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},ta.mergeConfig=e$,ta.AxiosHeaders=eA,ta.formToJSON=e=>ew(X.isHTMLForm(e)?new FormData(e):e),ta.getAdapter=e6,ta.HttpStatusCode=to,ta.default=ta,e.exports=ta},16709:function(e){!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e="",i=0;i2?r:n(t),a=new e(o);o>i;)a[i]=t[i++];return a}},97676:function(e,t,r){"use strict";var n=r(77530),i=r(34245),o=r(27414),a=function(e){return function(t,r,a){var s,l=n(t),u=o(l);if(0===u)return!e&&-1;var c=i(a,u);if(e&&r!=r){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},84304:function(e,t,r){"use strict";var n=r(62025),i=r(72644),o=r(84338),a=r(27414),s=function(e){var t=1===e;return function(r,s,l){for(var u,c=o(r),f=i(c),d=a(f),h=n(s,l);d-- >0;)if(h(u=f[d],d,c))switch(e){case 0:return u;case 1:return d}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},22232:function(e,t,r){"use strict";var n=r(24187),i=r(645),o=TypeError,a=Object.getOwnPropertyDescriptor;e.exports=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},69863:function(e,t,r){"use strict";e.exports=r(88956)([].slice)},71243:function(e,t,r){"use strict";var n=r(88956),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},47521:function(e,t,r){"use strict";var n=r(3491),i=r(54064),o=r(71243),a=r(92592)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=s(e),a))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},59022:function(e,t,r){"use strict";var n=r(26620),i=r(34499),o=r(30060),a=r(96075);e.exports=function(e,t,r){for(var s=i(t),l=a.f,u=o.f,c=0;c0x1fffffffffffff)throw new t("Maximum allowed index exceeded");return e}},64075:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},27244:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},80138:function(e,t,r){"use strict";var n=r(82684);e.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)},57138:function(e,t,r){"use strict";e.exports="NODE"===r(45164)},82684:function(e,t,r){"use strict";var n=r(99747).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},97181:function(e,t,r){"use strict";var n,i,o=r(99747),a=r(82684),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},45164:function(e,t,r){"use strict";var n=r(99747),i=r(82684),o=r(71243),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},10334:function(e,t,r){"use strict";var n=r(88956),i=Error,o=n("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},13667:function(e,t,r){"use strict";var n=r(86887),i=r(3323);e.exports=!n(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)})},63415:function(e,t,r){"use strict";var n=r(99747),i=r(30060).f,o=r(18866),a=r(47457),s=r(53934),l=r(59022),u=r(22727);e.exports=function(e,t){var r,c,f,d,h,p=e.target,y=e.global,m=e.stat;if(r=y?n:m?n[p]||s(p,{}):n[p]&&n[p].prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(h=i(r,c))&&h.value:r[c],!u(y?c:p+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(r,c,d,e)}}},86887:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},28194:function(e,t,r){"use strict";var n=r(4881),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},62025:function(e,t,r){"use strict";var n=r(45258),i=r(83362),o=r(4881),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},4881:function(e,t,r){"use strict";e.exports=!r(86887)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},32580:function(e,t,r){"use strict";var n=r(4881),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},24622:function(e,t,r){"use strict";var n=r(24187),i=r(26620),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:s&&"something"===(function(){}).name,CONFIGURABLE:l}},21201:function(e,t,r){"use strict";var n=r(88956),i=r(83362);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},45258:function(e,t,r){"use strict";var n=r(71243),i=r(88956);e.exports=function(e){if("Function"===n(e))return i(e)}},88956:function(e,t,r){"use strict";var n=r(4881),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},85056:function(e,t,r){"use strict";var n=r(99747),i=r(57138);e.exports=function(e){if(i){try{return n.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},22313:function(e,t,r){"use strict";var n=r(99747);e.exports=function(e,t){var r=n[e],i=r&&r.prototype;return i&&i[t]}},1613:function(e,t,r){"use strict";var n=r(99747),i=r(54064);e.exports=function(e,t){var r;return arguments.length<2?i(r=n[e])?r:void 0:n[e]&&n[e][t]}},29967:function(e,t,r){"use strict";var n=r(47521),i=r(41154),o=r(89382),a=r(88461),s=r(92592)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[n(e)]}},13546:function(e,t,r){"use strict";var n=r(32580),i=r(83362),o=r(33703),a=r(99867),s=r(29967),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw new l(a(e)+" is not iterable")}},41154:function(e,t,r){"use strict";var n=r(83362),i=r(89382);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},99747:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},26620:function(e,t,r){"use strict";var n=r(88956),i=r(84338),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},47105:function(e){"use strict";e.exports={}},56041:function(e,t,r){"use strict";e.exports=r(1613)("document","documentElement")},32620:function(e,t,r){"use strict";var n=r(24187),i=r(86887),o=r(16576);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},72644:function(e,t,r){"use strict";var n=r(88956),i=r(86887),o=r(71243),a=Object,s=n("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},46785:function(e,t,r){"use strict";var n=r(54064),i=r(69211),o=r(28533);e.exports=function(e,t,r){var a,s;return o&&n(a=t.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(e,s),e}},23018:function(e,t,r){"use strict";var n=r(88956),i=r(54064),o=r(45801),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},26598:function(e,t,r){"use strict";var n,i,o,a=r(53010),s=r(99747),l=r(69211),u=r(18866),c=r(26620),f=r(45801),d=r(43376),h=r(47105),p="Object already initialized",y=s.TypeError,m=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new y(p);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var v=d("state");h[v]=!0,n=function(e,t){if(c(e,v))throw new y(p);return t.facade=e,u(e,v,t),t},i=function(e){return c(e,v)?e[v]:{}},o=function(e){return c(e,v)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new y("Incompatible receiver, "+e+" required");return r}}}},31233:function(e,t,r){"use strict";var n=r(92592),i=r(88461),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},645:function(e,t,r){"use strict";var n=r(71243);e.exports=Array.isArray||function(e){return"Array"===n(e)}},95927:function(e,t,r){"use strict";var n=r(47521);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},54064:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},32026:function(e,t,r){"use strict";var n=r(88956),i=r(86887),o=r(54064),a=r(47521),s=r(1613),l=r(23018),u=function(){},c=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),h=!f.test(u),p=function(e){if(!o(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},y=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,l(e))}catch(e){return!0}};y.sham=!0,e.exports=!c||i(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?y:p},22727:function(e,t,r){"use strict";var n=r(86887),i=r(54064),o=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},89382:function(e){"use strict";e.exports=function(e){return null==e}},69211:function(e,t,r){"use strict";var n=r(54064);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},14450:function(e,t,r){"use strict";var n=r(69211);e.exports=function(e){return n(e)||null===e}},19358:function(e){"use strict";e.exports=!1},22091:function(e,t,r){"use strict";var n=r(1613),i=r(54064),o=r(57423),a=r(72314),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},48164:function(e,t,r){"use strict";var n=r(32580);e.exports=function(e,t,r){for(var i,o,a=r?e:e.iterator,s=e.next;!(i=n(s,a)).done;)if(void 0!==(o=t(i.value)))return o}},28240:function(e,t,r){"use strict";var n=r(62025),i=r(32580),o=r(33703),a=r(99867),s=r(31233),l=r(27414),u=r(57423),c=r(13546),f=r(29967),d=r(52060),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},y=p.prototype;e.exports=function(e,t,r){var m,g,v,b,_,w,E,S=r&&r.that,x=!!(r&&r.AS_ENTRIES),O=!!(r&&r.IS_RECORD),k=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),C=n(t,S),P=function(e){var t=m;return m=void 0,t&&d(t,"normal"),new p(!0,e)},A=function(e){return x?(o(e),T?C(e[0],e[1],P):C(e[0],e[1])):T?C(e,P):C(e)};if(O)m=e.iterator;else if(k)m=e;else{if(!(g=f(e)))throw new h(a(e)+" is not iterable");if(s(g)){for(v=0,b=l(e);b>v;v++)if((_=A(e[v]))&&u(y,_))return _;return new p(!1)}m=c(e,g)}for(w=O?e.next:m.next;!(E=i(w,m)).done;){var R=E.value;try{_=A(R)}catch(e){if(m)d(m,"throw",e);else throw e}if("object"==typeof _&&_&&u(y,_))return _}return new p(!1)}},52060:function(e,t,r){"use strict";var n=r(32580),i=r(33703),o=r(41154);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return i(a),r}},88461:function(e){"use strict";e.exports={}},27414:function(e,t,r){"use strict";var n=r(78963);e.exports=function(e){return n(e.length)}},45206:function(e,t,r){"use strict";var n=r(88956),i=r(86887),o=r(54064),a=r(26620),s=r(24187),l=r(24622).CONFIGURABLE,u=r(23018),c=r(26598),f=c.enforce,d=c.get,h=String,p=Object.defineProperty,y=n("".slice),m=n("".replace),g=n([].join),v=s&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===y(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return o(this)&&d(this).source||u(this)},"toString")},39049:function(e,t,r){"use strict";var n=r(88956),i=Map.prototype;e.exports={Map:Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},38419:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},40306:function(e,t,r){"use strict";var n=r(48746);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},64417:function(e,t,r){"use strict";var n,i=r(33703),o=r(94727),a=r(27244),s=r(47105),l=r(56041),u=r(16576),c=r(43376),f="prototype",d="script",h=c("IE_PROTO"),p=function(){},y=function(e){return"<"+d+">"+e+""},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){var e,t=u("iframe");return t.style.display="none",l.appendChild(t),t.src=String("java"+d+":"),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&n?m(n):g():m(n);for(var e=a.length;e--;)delete v[f][a[e]];return v()};s[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[f]=i(e),r=new p,p[f]=null,r[h]=e):r=v(),void 0===t?r:o.f(r,t)}},94727:function(e,t,r){"use strict";var n=r(24187),i=r(35176),o=r(96075),a=r(33703),s=r(77530),l=r(54789);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,r=i[c++],n[r]);return e}},96075:function(e,t,r){"use strict";var n=r(24187),i=r(32620),o=r(35176),a=r(33703),s=r(25548),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=c(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},30060:function(e,t,r){"use strict";var n=r(24187),i=r(32580),o=r(21180),a=r(3323),s=r(77530),l=r(25548),u=r(26620),c=r(32620),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=l(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},74698:function(e,t,r){"use strict";var n=r(9553),i=r(27244).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},84564:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},71810:function(e,t,r){"use strict";var n=r(26620),i=r(54064),o=r(84338),a=r(43376),s=r(4563),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},57423:function(e,t,r){"use strict";e.exports=r(88956)({}.isPrototypeOf)},9553:function(e,t,r){"use strict";var n=r(88956),i=r(26620),o=r(77530),a=r(97676).indexOf,s=r(47105),l=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!i(s,r)&&i(n,r)&&l(c,r);for(;t.length>u;)i(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},54789:function(e,t,r){"use strict";var n=r(9553),i=r(27244);e.exports=Object.keys||function(e){return n(e,i)}},21180:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;t.f=n&&!r.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},28533:function(e,t,r){"use strict";var n=r(21201),i=r(69211),o=r(26216),a=r(34747);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),a(n),i(r)&&(t?e(r,n):r.__proto__=n),r}}():void 0)},4485:function(e,t,r){"use strict";var n=r(32580),i=r(54064),o=r(69211),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e))||i(r=e.valueOf)&&!o(s=n(r,e))||"string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},34499:function(e,t,r){"use strict";var n=r(1613),i=r(88956),o=r(74698),a=r(84564),s=r(33703),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?l(t,r(e)):t}},1999:function(e,t,r){"use strict";var n=r(99747),i=r(86887),o=n.RegExp;e.exports={correct:!i(function(){var e=!0;try{o(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==n||r!==n})}},30238:function(e,t,r){"use strict";var n=r(33703);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},37795:function(e,t,r){"use strict";var n=r(32580),i=r(26620),o=r(57423),a=r(1999),s=r(30238),l=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&o(l,e)&&!i(e,"flags")?n(s,e):e.flags}},26216:function(e,t,r){"use strict";var n=r(89382),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},20674:function(e,t,r){"use strict";var n,i=r(99747),o=r(28194),a=r(54064),s=r(45164),l=r(82684),u=r(69863),c=r(25958),f=i.Function,d=/MSIE .\./.test(l)||"BUN"===s&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,i){var s=c(arguments.length,1)>r,l=a(n)?n:f(n),d=s?u(arguments,r):[],h=s?function(){o(l,this,d)}:l;return t?e(h,i):e(h)}:e}},28010:function(e,t,r){"use strict";var n=r(88956),i=Set.prototype;e.exports={Set:Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},93526:function(e,t,r){"use strict";var n=r(88956),i=r(48164),o=r(28010),a=o.Set,s=o.proto,l=n(s.forEach),u=n(s.keys),c=u(new a).next;e.exports=function(e,t,r){return r?i({iterator:u(e),next:c},t):l(e,t)}},43376:function(e,t,r){"use strict";var n=r(17752),i=r(40908),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},45801:function(e,t,r){"use strict";var n=r(19358),i=r(99747),o=r(53934),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"\xa9 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},17752:function(e,t,r){"use strict";var n=r(45801);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},67648:function(e,t,r){"use strict";var n=r(99747),i=r(86887),o=r(97181),a=r(45164),s=n.structuredClone;e.exports=!!s&&!i(function(){if("DENO"===a&&o>92||"NODE"===a&&o>94||"BROWSER"===a&&o>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})},48455:function(e,t,r){"use strict";var n=r(97181),i=r(86887),o=r(99747).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},56192:function(e,t,r){"use strict";var n,i,o,a,s=r(99747),l=r(28194),u=r(62025),c=r(54064),f=r(26620),d=r(86887),h=r(56041),p=r(69863),y=r(16576),m=r(25958),g=r(80138),v=r(57138),b=s.setImmediate,_=s.clearImmediate,w=s.process,E=s.Dispatch,S=s.Function,x=s.MessageChannel,O=s.String,k=0,T={},C="onreadystatechange";d(function(){n=s.location});var P=function(e){if(f(T,e)){var t=T[e];delete T[e],t()}},A=function(e){return function(){P(e)}},R=function(e){P(e.data)},I=function(e){s.postMessage(O(e),n.protocol+"//"+n.host)};b&&_||(b=function(e){m(arguments.length,1);var t=c(e)?e:S(e),r=p(arguments,1);return T[++k]=function(){l(t,void 0,r)},i(k),k},_=function(e){delete T[e]},v?i=function(e){w.nextTick(A(e))}:E&&E.now?i=function(e){E.now(A(e))}:x&&!g?(a=(o=new x).port2,o.port1.onmessage=R,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!d(I)?(i=I,s.addEventListener("message",R,!1)):i=C in y("script")?function(e){h.appendChild(y("script"))[C]=function(){h.removeChild(this),P(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:_}},34245:function(e,t,r){"use strict";var n=r(51538),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},3869:function(e,t,r){"use strict";var n=r(92113),i=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},77530:function(e,t,r){"use strict";var n=r(72644),i=r(26216);e.exports=function(e){return n(i(e))}},51538:function(e,t,r){"use strict";var n=r(38419);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},78963:function(e,t,r){"use strict";var n=r(51538),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,0x1fffffffffffff):0}},84338:function(e,t,r){"use strict";var n=r(26216),i=Object;e.exports=function(e){return i(n(e))}},87319:function(e,t,r){"use strict";var n=r(62451),i=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw new i("Wrong offset");return r}},62451:function(e,t,r){"use strict";var n=r(51538),i=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new i("The argument can't be less than 0");return t}},92113:function(e,t,r){"use strict";var n=r(32580),i=r(69211),o=r(22091),a=r(41154),s=r(4485),l=r(92592),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),!i(r=n(l,e,t))||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},25548:function(e,t,r){"use strict";var n=r(92113),i=r(22091);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},3491:function(e,t,r){"use strict";var n=r(92592)("toStringTag"),i={};i[n]="z",e.exports="[object z]"===String(i)},48746:function(e,t,r){"use strict";var n=r(47521),i=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},99867:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},40908:function(e,t,r){"use strict";var n=r(88956),i=0,o=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},72314:function(e,t,r){"use strict";e.exports=r(48455)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},35176:function(e,t,r){"use strict";var n=r(24187),i=r(86887);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},25958:function(e){"use strict";var t=TypeError;e.exports=function(e,r){if(e1?arguments[1]:void 0)}}),o("findLastIndex")},88918:function(e,t,r){"use strict";var n=r(63415),i=r(84304).findLast,o=r(26231);n({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},36335:function(e,t,r){"use strict";var n=r(63415),i=r(84338),o=r(27414),a=r(22232),s=r(67089);n({target:"Array",proto:!0,arity:1,forced:r(86887)(function(){return 0x100000001!==[].push.call({length:0x100000000},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),r=o(t),n=arguments.length;s(r+n);for(var l=0;l=n||f<0)throw new u("Incorrect index");for(var d=new l(n),h=0;h1?arguments[1]:void 0)})},87596:function(e,t,r){"use strict";var n=r(23082),i=r(84304).findLast,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},35138:function(e,t,r){"use strict";var n=r(99747),i=r(32580),o=r(23082),a=r(27414),s=r(87319),l=r(84338),u=r(86887),c=n.RangeError,f=n.Int8Array,d=f&&f.prototype,h=d&&d.set,p=o.aTypedArray,y=o.exportTypedArrayMethod,m=!u(function(){var e=new Uint8ClampedArray(2);return i(h,e,{length:1,0:3},1),3!==e[1]}),g=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});y("set",function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=l(e);if(m)return i(h,this,r,t);var n=this.length,o=a(r),u=0;if(o+t>n)throw new c("Wrong length");for(;u=n||d<0)throw new f("Incorrect index");for(var p=new(u(r))(n),y=0;y1&&!d(arguments[1])?m(arguments[1]):void 0,i=n?n.transfer:void 0;void 0!==i&&(r=ed(i,t=new L));var o=ef(e,t);return r&&eh(r),o}})},93813:function(e,t,r){"use strict";var n=r(24187),i=r(88956),o=r(19830),a=URLSearchParams.prototype,s=i(a.forEach);!n||"size"in a||o(a,"size",{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})},53866:function(e,t,r){"use strict";r.d(t,{$O:()=>v,E_:()=>b,Is:()=>E,RC:()=>function e(t,r,n){return!!(0,o.s)(r)&&((0,a.k)(r)?r.every(r=>e(t,r,n)):t.selections.every(t=>{if((0,s.M)(t)&&(0,l.L)(t,n)){let i=(0,u.u)(t);return h.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))},RI:()=>h,ig:()=>w,j:()=>_,jS:()=>m,jp:()=>g,uG:()=>p});var n=r(35937),i=r(99090),o=r(30732),a=r(16784),s=r(32548),l=r(2828),u=r(31761),c=r(35128),f=r(66202),d=r(50894);let{hasOwnProperty:h}=Object.prototype;function p({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let y={dataIdFromObject:p,resultCaching:!0};function m(e){return(0,i.o)(y,e)}function g(e,t){return(0,n.Y)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}let v=/^[_a-z][_0-9a-z]*/i;function b(e){let t=e.match(v);return t?t[0]:e}function _(e){return(0,o.s)(e)&&!(0,n.Y)(e)&&!(0,a.k)(e)}function w(){return new c.w}function E(e,t){let r=(0,f.F)((0,d.k)(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},84345:function(e,t,r){"use strict";r.d(t,{h:()=>eZ});var n=r(44129),i=r(2638),o=r(82914),a=r(43941),s=r(23696);let l={kind:a.h.FIELD,name:{kind:a.h.NAME,value:"__typename"}},u=Object.assign(function(e){return(0,s.Vn)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===a.h.OPERATION_DEFINITION)return;let{selections:n}=e;if(!(!n||n.some(e=>e.kind===a.h.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===a.h.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...n,l]}}}})},{added:e=>e===l});var c=r(76311),f=r(51550),d=r(99885),h=r(35937),p=r(82841),y=r(52880),m=r(74416),g=r(44951),v=r(63506),b=r(77984),_=r(11348),w=r(13977),E=r(40292),S=r(69676),x=r(1118),O=r(67394);function k(e,t){return e===t}var T=r(76619),C=r(51221),P=r(88005),A=new(r(34435)).v(P.o),R=(r(86670),r(83671)),I=r(80329),D=r(20),M=r(9924);function j(e,t){let r=t,n=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,m._K)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,m.kG)(1===n.length,11,n.length),r=n[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class N{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new v.B(!0);watchFragment(e){let t,{fragment:r,fragmentName:i,from:o}=e,a=this.getFragmentDoc(r,i),s=(Array.isArray(o)?o:[o]).map(e=>{let t=null==e?e:this.toCacheId(e);if(p.T){let e=i||(0,R.p)(r).name.value;void 0===t&&p.T&&m.kG.warn(113,e)}return t});if(!Array.isArray(o)){let t=this.watchSingleFragment(s[0],a,e);return null===o?t:(0,I.V)(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function l(e){let r=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,n.D)(t,r)||(t=r),t}if(0===s.length)return B;let u=!1,c=s.map(t=>this.watchSingleFragment(t,a,e));return Object.assign((0===c.length?D.E:new E.y(e=>{let t,{length:r}=c,n=Array(r),i=new Map;c.forEach((e,t)=>{i.has(e)||i.set(e,new Set),i.get(e).add(t)});let o=i.size,a=i.size;i.forEach((r,i)=>{let s=!1,l=i.subscribe({next:o=>{r.forEach(e=>n[e]=o),!s&&(s=!0,a--),!a&&((t||=new Set(c.filter(e=>e.dirty))).delete(i),t.size||(e.next(n.slice()),t=void 0))},complete:()=>{--o||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe((0,b.U)(l),(0,_.b)({subscribe:()=>u=!0,unsubscribe:()=>u=!1}),(0,w.d)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>u&&t?t:l(c.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return F;let{optimistic:n=!0,variables:i}=r,o=[t,(0,f.B)({id:e,optimistic:n,variables:i})],a=this.fragmentWatches.lookupArray(o);if(!a.observable){var s,l;let c,f=!1;function u(e){let n=e.result;return c&&(0,M.W)(t,{data:c.data},{data:n},r.variables)||(c={data:n,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}let d=new E.y(r=>{f=!0;let a=this.watch({variables:i,returnPartialData:!0,id:e,query:t,optimistic:n,immediate:!0,callback:e=>{d.dirty=!0,this.onAfterBroadcast(()=>{r.next(u(e)),d.dirty=!1})}});return()=>{f=!1,a(),this.fragmentWatches.removeArray(o)}}).pipe((void 0===l&&(l=S.y),s=null!=s?s:k,(0,x.e)(function(e,t){var r,n=!0;e.subscribe((0,O.x)(t,function(e){var i=l(e);(n||!s(r,i))&&(n=!1,r=i,t.next(e))}))})),(0,T.B)({connector:()=>new C.t(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=A),new E.y(function(t){var r=0;r<0&&(r=0);var n=0;return e.schedule(function(){t.closed||(t.next(n++),t.complete())},r)})}}));a.observable=Object.assign(d,{dirty:!1,getCurrentResult:()=>f&&c?c:u(this.diff({id:e,query:t,returnPartialData:!0,optimistic:n,variables:i}))})}return a.observable}getFragmentDoc=(0,i.re)(j,{max:c.Q["cache.fragmentQueryDocuments"]||1e3,cache:g.k,makeCacheKey:function(...e){return i.Px.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...n}){let i=void 0!==n.from?this.toCacheId(n.from):n.id;return this.write(Object.assign(n,{query:this.getFragmentDoc(t,r),dataId:i,result:e}))}updateQuery(e,t){return this.batch({update(r){let n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){let n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}p.T&&(N.prototype.getMemoryInternals=y.Kb);let L=Object.freeze({data:null,dataState:"complete",complete:!0}),F=Object.assign(new E.y(e=>{e.next(L)}),{dirty:!1,getCurrentResult:()=>L}),U=Object.freeze({data:[],dataState:"complete",complete:!0}),B=Object.assign(new E.y(e=>{e.next(U)}),{getCurrentResult:()=>U});var z=r(35128);function $(e){return{__ref:String(e)}}var q=r(49405),W=r(30732),V=r(53866);let H={},G=()=>H,K={};class Y{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),V.RI.call(this.data,e)){let r=this.data[e];if(r&&V.RI.call(r,t))return r[t]}return"__typename"===t&&V.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Z?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),V.RI.call(this.data,e))?this.data[e]:this instanceof Z?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;(0,h.Y)(e)&&(e=e.__ref),(0,h.Y)(t)&&(t=t.__ref);let n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,m.kG)("string"==typeof r,99);let o=new z.w({reconciler:et}).merge(n,i);if(this.data[r]=o,o!==n&&(delete this.refs[r],this.group.caching)){let e={};n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==o[t]){e[t]=1;let r=(0,V.E_)(t);r===t||this.policies.hasKeyArgs(o.__typename,r)||(e[r]=1),void 0!==o[t]||this instanceof Z||delete o[t]}}),e.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let n=this.lookup(e);if(n){let i={},o=!1,a=!0,s={DELETE:H,INVALIDATE:K,isReference:h.Y,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||$(e)}:t,{store:this})};if(Object.keys(n).forEach(l=>{let u=(0,V.E_)(l),c=n[l];if(void 0===c)return;let f="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(f){let t=f===G?H:f((0,q.J)(c),{...s,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===K)this.group.dirty(e,l);else if(t===H&&(t=void 0),t!==c&&(i[l]=t,o=!0,c=t,p.T)){let e=e=>{if(void 0===this.lookup(e.__ref))return p.T&&m.kG.warn(100,e),!0};if((0,h.Y)(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(let i of t){if((0,h.Y)(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){let[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){p.T&&m.kG.warn(101,r);break}}}}}void 0!==c&&(a=!1)}),o)return this.merge(e,i),a&&(this instanceof Z?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let n=this.lookup(e);if(n){let i=this.getFieldValue(n,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,o?{[o]:G}:G,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(V.RI.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Z&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{V.RI.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&V.RI.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof Z?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{V.RI.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof Z;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!V.RI.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let n=new Set([r]);n.forEach(e=>{(0,h.Y)(e)&&(t[e.__ref]=!0),(0,W.s)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,W.s)(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,q.J)((0,h.Y)(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>(0,h.Y)(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return $(e);if((0,h.Y)(e))return e;let[r]=this.policies.identify(e);if(r){let n=$(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class Q{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,i.dP)():null,this.keyMaker=new v.B}depend(e,t){if(this.d){this.d(t+"#"+e);let r=(0,V.E_)(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function J(e,t){er(e)&&e.group.depend(t,"__exists")}class X extends Y{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new Q(t)),r&&this.replace(r)}stump=new ee(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new v.B;getStorage(){return this.storageTrie.lookupArray(arguments)}}Y.Root=X;class Z extends Y{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new Z(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],i=t.lookup(e);i?r?r!==i&&Object.keys(r).forEach(t=>{(0,n.D)(r[t],i[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(i).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return V.RI.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class ee extends Z{constructor(e){super("EntityStore.Stump",e,()=>{},new Q(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function et(e,t,r){let i=e[r],o=t[r];return(0,n.D)(i,o)?i:o}function er(e){return!!(e&&e.supportsResultCaching)}var en=r(36188),ei=r(76554),eo=r(32901);function ea(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:n})=>(0,eo.v)(r,e,n,t)),r}return null}var es=r(16784);let el=["connection","include","skip","client","rest","export","nonreactive","stream"],eu=f.B,ec=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let n={};e.forEach(e=>{n[e]=t[e]});let i=eu(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){let e=eu(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===el.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${eu(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){let t=eu;return eu=e,t}});var ef=r(51632),ed=r(2737);let eh={};function ep(e){let t=JSON.stringify(e);return eh[t]||(eh[t]={})}function ey(e){let t=ep(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let n=(e,t)=>r.readField(t,e),i=r.keyObject=eg(e,e=>{let i=eb(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&V.RI.call(t,e[0])&&(i=eb(t,e,ev)),(0,m.kG)(void 0!==i,102,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function em(e){let t=ep(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:n,fieldName:i})=>{let o=JSON.stringify(eg(e,e=>{let i=e[0],o=i.charAt(0);if("@"===o){if(r&&(0,ed.O)(r.directives)){let t=i.slice(1),o=r.directives.find(e=>e.name.value===t),a=o&&ea(o,n);return a&&eb(a,e.slice(1))}return}if("$"===o){let t=i.slice(1);if(n&&V.RI.call(n,t)){let r=e.slice(0);return r[0]=t,eb(n,r)}return}if(t)return eb(t,e)}));return(t||"{}"!==o)&&(i+=":"+o),i})}function eg(e,t){let r=new z.w;return(function e(t){let r=ep(t);if(!r.paths){let n=r.paths=[],i=[];t.forEach((r,o)=>{(0,es.k)(r)?(e(r).forEach(e=>n.push(i.concat(e))),i.length=0):(i.push(r),(0,es.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function ev(e,t){return e[t]}function eb(e,t,r){return r=r||ev,function e(t){return(0,W.s)(t)?(0,es.k)(t)?t.map(e):eg(Object.keys(t).sort(),e=>eb(t,e)):t}(t.reduce(function e(t,n){return(0,es.k)(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}var e_=r(50938);function ew(e){return void 0!==e.args?e.args:e.field?ea(e.field,e.variables):null}let eE=()=>void 0,eS=(e,t)=>t.fieldName,ex=(e,t,{mergeObjects:r})=>r(e,t),eO=(e,t)=>t,ek=(e,t,{streamFieldInfo:r,existingData:n})=>{if(!e&&!n)return t;let i=[],o=e??n,a=r?.isLastChunk?t.length:Math.max(o.length,t.length);for(let e=0;e{let t=eP(e,o);return n.readField(t,{store:n.cache.data,variables:t.variables})})},s=i&&this.getTypePolicy(i),l=s&&s.keyFn||this.config.dataIdFromObject;return en.O.withValue(!0,()=>{for(;l;){let t=l({...e,...o},a);if((0,es.k)(t))l=ey(t);else{r=t;break}}}),r=r?String(r):void 0,a.keyObject?[r,a.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:n,subscriptionType:i,...o}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),V.RI.call(this.toBeAdded,t)?this.toBeAdded[t].push(o):this.toBeAdded[t]=[o]})}updateTypePolicy(e,t,r){let n=this.getTypePolicy(e),{keyFields:i,fields:o}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?ex:!1===t?eO:e.merge}a(n,t.merge),n.keyFn=!1===i?eE:(0,es.k)(i)?ey(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});let i=o[t];if("function"==typeof i)n.read=i;else{let{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?eS:(0,es.k)(e)?em(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),a(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||eS)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,m.kG)(!n||n===e,103,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(V.$O);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!V.RI.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,n)=>{if(t.test(e)){let e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;let i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){let o=this.getSupertypeSet(t,!0),a=[o],s=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c{let n=t.match(e);n&&n[0]===t&&s(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let n,i,o,{typename:a,fieldName:s}=e,l=this.getFieldPolicy(a,s),u=l&&l.keyFn;if(u&&a){let t={typename:a,fieldName:s,field:e.field||null,variables:e.variables},r=ew(e);for(;u;){let e=u(r,t);if((0,es.k)(e))u=em(e);else{n=e||s;break}}}return(void 0===n&&(n=e.field?(t=e.field,r=e.variables,i=null,t.directives&&(i={},t.directives.forEach(e=>{i[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:n})=>(0,eo.v)(i[e.name.value],t,n,r))})),o=null,t.arguments&&t.arguments.length&&(o={},t.arguments.forEach(({name:e,value:t})=>(0,eo.v)(o,e,t,r))),ec(t.name.value,o,i)):ec(s,ew(e))),!1===n)?s:s===(0,V.E_)(n)?n:s+":"+n}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}let n=this.getStoreFieldName(e),i=(0,V.E_)(n),o=t.store.getFieldValue(r,n),a=this.getFieldPolicy(e.typename,i),s=a&&a.read;if(s){let i=eC(this,r,e,t,t.store.getStorage((0,h.Y)(r)?r.__ref:r,n));return e_.ab.withValue(this.cache,s,[o,i])}return o}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i}runMergeFunction(e,t,{field:r,typename:i,merge:o,path:a},s,l){let u=e;if(o===ex)return eA(s.store)(e,t);if(o===eO)return t;s.overwrite&&(e=void 0);let c=s.extensions?.[ei.AN]?.deref()?.peekArray(a);if(c){let{current:e,previous:r}=c;if(r&&(0,n.D)(r.incoming,t)&&(0,n.D)(r.streamFieldInfo,e))return r.result}let f=o(e,t,function(e,t,r,n,i,o){let a={...eC(e,t,r,n,i),extensions:n.extensions,existingData:o},s=n.extensions;if(s&&ei.AN in s){let{[ei.AN]:e,...t}=s,n=e?.deref()?.peekArray(r.path);n&&(a.streamFieldInfo=n.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:s.variables,path:a},s,l||{},u));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:f}),f}}function eC(e,t,r,n,i){let o=e.getStoreFieldName(r),a=(0,V.E_)(o),s=r.variables||n.variables,{toReference:l,canRead:u}=n.store;return{args:ew(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:h.Y,toReference:l,storage:i,cache:e.cache,canRead:u,readField:(...r)=>e.readField(eP(r,t,s),n),mergeObjects:eA(n.store)}}function eP(e,t,r){let n,{0:i,1:o,length:a}=e;return"string"==typeof i?n={fieldName:i,from:a>1?o:t}:(n={...i},V.RI.call(n,"from")||(n.from=t)),p.T&&void 0===n.from&&p.T&&m.kG.warn(105,(0,ef.v)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function eA(e){return function(t,r){if((0,es.k)(t)||(0,es.k)(r))throw(0,m._K)(106);if((0,W.s)(t)&&(0,W.s)(r)){let n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,h.Y)(t)&&(0,V.j)(r))return e.merge(t.__ref,r),t;if((0,V.j)(t)&&(0,h.Y)(r))return e.merge(t,r.__ref),r;if((0,V.j)(t)&&(0,V.j)(r))return{...t,...r}}return r}}var eR=r(35883),eI=r(27796),eD=r(21501),eM=r(2828),ej=r(32548),eN=r(31761),eL=r(37139),eF=r(55680);class eU extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=eU.prototype}missing}function eB(e){return[e.selectionSet,e.objectOrReference,e.context]}class ez{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,i.re)(e=>{let t=eB(e),r=this.executeSelectionSet.peek(...t);return r||(J(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:c.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:eB,makeCacheKey(e,t,r){if(er(r.store))return r.store.makeCacheKey(e,(0,h.Y)(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=(0,i.re)(e=>(J(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:c.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(er(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){let o,a=this.config.cache.policies;n={...(0,eR.O)((0,eI.i)(t)),...n};let s=$(r),l=this.executeSelectionSet({selectionSet:(0,eD.p)(t).selectionSet,objectOrReference:s,enclosingRef:s,context:{store:e,query:t,policies:a,variables:n,varString:(0,f.B)(n),...(0,V.Is)(t,this.config.fragments)}});l.missing&&(o=new eU(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,n));let u=!o,{result:c}=l;return{result:u?c:i?0===Object.keys(c).length?null:c:null,complete:u,missing:o}}isFresh(e,t,r,n){if(er(n.store)&&this.knownResults.get(e)===r){let i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let i;if((0,h.Y)(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:o,policies:s,store:l}=n,c=l.getFieldValue(t,"__typename"),f=[],d=new z.w;function p(e,t){return e.missing&&(i=d.merge(i,{[t]:e.missing})),e.result}"string"!=typeof c||s.rootIdsByTypename[c]||f.push({__typename:c});let y=new Set(e.selections);y.forEach(e=>{if((0,eM.L)(e,o))if((0,ej.M)(e)){let o=s.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),a=(0,eN.u)(e);void 0===o?u.added(e)||(i=d.merge(i,{[a]:`Can't find field '${e.name.value}' on ${(0,h.Y)(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,es.k)(o)?o.length>0&&(o=p(this.executeSubSelectedArray({field:e,array:o,enclosingRef:r,context:n}),a)):e.selectionSet&&null!=o&&(o=p(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:o,enclosingRef:(0,h.Y)(o)?o:r,context:n}),a)),void 0!==o&&f.push({[a]:o})}else{let t=(0,eL.h)(e,n.lookupFragment);if(!t&&e.kind===a.h.FRAGMENT_SPREAD)throw(0,m._K)(107,e.name.value);t&&s.fragmentMatches(t,c)&&t.selectionSet.selections.forEach(y.add,y)}});let g={result:(0,eF.b)(f),missing:i},v=(0,q.J)(g);return v.result&&this.knownResults.set(v.result,e),v}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i,o=new z.w;function a(e,t){return e.missing&&(i=o.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||n.store.canRead(e))),{result:t=t.map((t,i)=>null===t?null:(0,es.k)(t)?a(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?a(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:(0,h.Y)(t)?t:r,context:n}),i):(p.T&&function(e,t,r){if(!t.selectionSet){let n=new Set([r]);n.forEach(r=>{(0,W.s)(r)&&((0,m.kG)(!(0,h.Y)(r),108,(0,V.jp)(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),missing:i}}}var e$=r(94677),eq=r(56224);let{toString:eW}=Object.prototype;function eV(e,t,r){let n=`${t}${r}`,i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class eH{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:i,variables:o,overwrite:a,extensions:s}){let l=(0,e$.$)(t),u=(0,V.ig)(),c={store:e,written:{},merge:(e,t)=>u.merge(e,t),variables:o={...(0,eR.O)(l),...o},varString:(0,f.B)(o),...(0,V.Is)(t,this.fragments),overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:s},d=this.processSelectionSet({result:r||{},dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:c,path:[]});if(!(0,h.Y)(d))throw(0,m._K)(109,r);return c.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:i},o)=>{let a=$(o);if(r&&r.map.size){let e=this.applyMerges(r,a,t,c);if((0,h.Y)(e))return;t=e}if(p.T&&!c.overwrite){let e={};i.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(i=>{!0!==e[(0,V.E_)(i)]||(e=>{let t=r&&r.map.get(e);return!!(t&&t.info&&t.info.merge)})(i)||function(e,t,r,i){let o=e=>{let t=i.getFieldValue(e,r);return"object"==typeof t&&t},a=o(e);if(!a)return;let s=o(t);if(!s||(0,h.Y)(a)||(0,n.D)(a,s)||Object.keys(a).every(e=>void 0!==i.getFieldValue(s,e)))return;let l=i.getFieldValue(e,"__typename")||i.getFieldValue(t,"__typename"),u=(0,V.E_)(r),c=`${l}.${u}`;if(eJ.has(c))return;eJ.add(c);let f=[];(0,es.k)(a)||(0,es.k)(s)||[a,s].forEach(e=>{let t=i.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}),p.T&&m.kG.warn(112,u,l,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",c,Array.isArray(a)?[...a]:{...a},Array.isArray(s)?[...s]:{...s})}(a,t,i,c.store)})}e.merge(o,t)}),e.retain(d.__ref),d}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i,path:o}){let{policies:a}=this.cache,s={},l=e&&a.rootTypenamesById[e]||eX(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof l&&(s.__typename=l);let c=(...e)=>{let t=eP(e,s,n.variables);if((0,h.Y)(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=a.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return a.readField(t,n)},f=new Set;this.flattenFields(r,t,n,l).forEach((e,r)=>{let n=t[(0,eN.u)(r)],d=[...o,r.name.value];if(f.add(r),void 0!==n){let t,o=a.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),u=eK(i,o),f=this.processFieldValue(n,r,r.selectionSet?eV(e,!1,!1):e,u,d);r.selectionSet&&((0,h.Y)(f)||(0,V.j)(f))&&(t=c("__typename",f));let p=a.getMergeFunction(l,r.name.value,t);p?u.info={field:r,typename:l,merge:p,path:d}:(0,eq.F)(["stream"],r)&&Array.isArray(f)&&e.extensions?.[ei.AN]?u.info={field:r,typename:l,merge:ek,path:d}:eQ(i,o),s=e.merge(s,{[o]:f})}else!p.T||e.clientOnly||e.deferred||u.added(r)||a.getReadFunction(l,r.name.value)||m.kG.error(110,(0,eN.u)(r),t)});try{let[i,o]=a.identify(t,{typename:l,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:s,readField:c});e=e||i,o&&(s=n.merge(s,o))}catch(t){if(!e)throw t}if("string"==typeof e){let o=$(e),a=n.written[e]||(n.written[e]=[]);if(a.indexOf(r)>=0||(a.push(r),this.reader&&this.reader.isFresh(t,o,r,n)))return o;let l=n.incomingById.get(e);return l?(l.storeObject=n.merge(l.storeObject,s),l.mergeTree=function e(t,r){if(t===r||!r||eY(r))return t;if(!t||eY(t))return r;let n=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){let n=new Set(r.map.keys());t.map.forEach((t,i)=>{o.map.set(i,e(t,r.map.get(i))),n.delete(i)}),n.forEach(n=>{o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(l.mergeTree,i),f.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:s,mergeTree:eY(i)?void 0:i,fieldNodeSet:f}),o}return s}processFieldValue(e,t,r,n,i){return t.selectionSet&&null!==e?(0,es.k)(e)?e.map((e,o)=>{let a=this.processFieldValue(e,t,r,eK(n,o),[...i,o]);return eQ(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n,path:i}):p.T?function e(t,r){switch(eW.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let n=Object.create(Object.getPrototypeOf(t));return r.set(t,n),Object.keys(t).forEach(i=>{n[i]=e(t[i],r)}),n}default:return t}}(e):e}flattenFields(e,t,r,n=eX(t,e,r.fragmentMap)){let i=new Map,{policies:o}=this.cache,s=new v.B(!1);return!function e(l,u){let c=s.lookup(l,u.clientOnly,u.deferred);c.visited||(c.visited=!0,l.selections.forEach(s=>{if(!(0,eM.L)(s,r.variables))return;let{clientOnly:l,deferred:c}=u;if(!(l&&c)&&(0,ed.O)(s.directives)&&s.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(l=!0),"defer"===t){let t=ea(e,r.variables);t&&!1===t.if||(c=!0)}}),(0,ej.M)(s)){let e=i.get(s);e&&(l=l&&e.clientOnly,c=c&&e.deferred),i.set(s,eV(r,l,c))}else{let i=(0,eL.h)(s,r.lookupFragment);if(!i&&s.kind===a.h.FRAGMENT_SPREAD)throw(0,m._K)(111,s.name.value);i&&o.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,eV(r,l,c))}}))}(e,r),i}applyMerges(e,t,r,n,i){if(e.map.size&&!(0,h.Y)(r)){let o,a=!(0,es.k)(r)&&((0,h.Y)(t)||(0,V.j)(t))?t:void 0,s=r;a&&!i&&(i=[(0,h.Y)(a)?a.__ref:a]);let l=(e,t)=>(0,es.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(a,t),u=l(s,t);if(void 0===u)return;i&&i.push(t);let c=this.applyMerges(e,r,u,n,i);c!==u&&(o=o||new Map).set(t,c),i&&(0,m.kG)(i.pop()===t)}),o&&(r=(0,es.k)(s)?s.slice(0):{...s},o.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}let eG=[];function eK({map:e},t){return e.has(t)||e.set(t,eG.pop()||{map:new Map}),e.get(t)}function eY(e){return!e||!(e.info||e.map.size)}function eQ({map:e},t){let r=e.get(t);r&&eY(r)&&(eG.push(r),e.delete(t))}let eJ=new Set;function eX(e,t,r){let n;for(let r of t.selections)if((0,ej.M)(r)){if("__typename"===r.name.value)return e[(0,eN.u)(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(let t of n){let n=eX(e,(0,eL.h)(t,r).selectionSet,r);if("string"==typeof n)return n}}class eZ extends N{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new o.A(u);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=e_.QS;constructor(e={}){super(),this.config=(0,V.jS)(e),this.policies=new eT({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new Y.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new eH(this,this.storeReader=new ez({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,i.re)((e,t)=>this.broadcastWatch(e,t),{max:c.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(er(t)){let{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,(0,f.B)({optimistic:r,id:n,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(V.RI.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){return this.watches.size||(0,e_._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&(0,e_.li)(this),this.maybeBroadcastWatch.forget(e)}}gc(e){f.B.reset(),d.S.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if((0,h.Y)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){p.T&&m.kG.warn(e)}}evict(e){if(!e.id){if(V.RI.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),f.B.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),(0,e_.li)(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:o}=e,a=e=>{let{data:n,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=n,this.optimisticData=i}},s=new Set;return o&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(s.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,a):!1===n?a(this.data):a(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),o&&s.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=o.call(this,e,t);return!1!==r&&s.delete(e),r}}),s.size&&s.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,i=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,r)))&&(r&&(0,n.D)(r.result,i.result)||e.callback(e.lastDiff=i,r))}}p.T&&(eZ.prototype.getMemoryInternals=y.q4)},50938:function(e,t,r){"use strict";r.d(t,{QS:()=>u,_v:()=>l,ab:()=>i,li:()=>s});var n=r(2638);let i=new n.g7,o=new WeakMap;function a(e){let t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach(t=>t.forgetCache(e))}function l(e){a(e).vars.forEach(t=>t.attachCache(e))}function u(e){let t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(e=>{var t;a(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});let i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{let e=i.getValue();e&&(o(e),a(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let o=n.attachCache=e=>(t.add(e),a(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}},48793:function(e,t,r){"use strict";r.d(t,{f:()=>e0});var n,i,o=r(66467),a=r(77984),s=r(56224),l=r(74416);class u{isIncrementalResult(e){return!1}prepareRequest(e){return(0,l.kG)(!(0,s.F)(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}let c=r(34921).i.execute;var f=r(82914),d=r(82841),h=r(39138),p=r(99090),y=r(67832),m=r(80329),g=r(23696);function v(e){return(0,g.Vn)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var b=r(52880),_=r(2249),w=r(63506),E=r(43941),S=r(40292),x=r(59126);function O(e,t){var r=(0,x.m)(e)?e:function(){return e},n=function(e){return e.error(r())};return new S.y(t?function(e){return t.schedule(n,0,e)}:n)}var k=r(97674),T=r(1118),C=r(90032),P=r(67394);function A(e,t,r){return(void 0===r&&(r=1/0),(0,x.m)(t))?A(function(r,n){return(0,a.U)(function(e,i){return t(r,e,n,i)})((0,k.Xf)(e(r,n)))},r):("number"==typeof t&&(r=t),(0,T.e)(function(t,n){var i,o,a,s,l,u,c,f,d;return i=r,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||n.complete()},f=function(e){return s{let n=function e(t,r,n,i,o){let{knownChanged:a}=n,s=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){s[l]=null;continue}let t=e(u,r,n,i,d.T?`${o||""}[${l}]`:void 0);a.has(t)&&a.add(s),s[l]=t}return a.has(s)?s:t}for(let u of r.selections){let r;if(i&&a.add(s),u.kind===E.h.FIELD){let c=(0,ef.u)(u),f=u.selectionSet;if(void 0===(r=s[c]||t[c]))continue;if(f&&null!==r){let s=e(t[c],f,n,i,d.T?`${o||""}.${c}`:void 0);a.has(s)&&(r=s)}d.T||(s[c]=r),d.T&&(i&&"__typename"!==c&&!Object.getOwnPropertyDescriptor(s,c)?.value?Object.defineProperty(s,c,function(e,t,r,n,i){let o=()=>(ed.O.getValue()||(d.T&&l.kG.warn(40,n?`${i} '${n}'`:`anonymous ${i}`,`${r}.${e}`.replace(/^\./,"")),o=()=>t),t);return{get:()=>o(),set(e){o=()=>e},enumerable:!0,configurable:!0}}(c,r,o||"",n.operationName,n.operationType)):(delete s[c],s[c]=r))}if(u.kind===E.h.INLINE_FRAGMENT&&(!u.typeCondition||n.cache.fragmentMatches(u,t.__typename))&&(r=e(t,u.selectionSet,n,i,o)),u.kind===E.h.FRAGMENT_SPREAD){let i=u.name.value,a=n.fragmentMap[i]||(n.fragmentMap[i]=n.cache.lookupFragment(i));(0,l.kG)(a,39,i);let s=(0,ed.G)(u);"mask"!==s&&(r=e(t,a.selectionSet,n,"migrate"===s,o))}a.has(r)&&a.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&a.add(s),a.has(s)?s:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,ec.J)(n),n})}var ep=r(44129),ey=r(76311),em=r(99885);function eg(e){return 7===e||8===e}var ev=r(95818);function eb(e){return!!e.errors?.length}function e_(e,t=()=>void 0){return r=>new S.y(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}function ew(e){let t={data:e.data};return e.error&&(t.error=e.error),t}var eE=r(37846),eS=r(83671),ex=r(16784),eO=r(2737);function ek(e){let t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}var eT=r(35883),eC=r(30732),eP=r(76554),eA=r(7395),eR=r(66385),eI=r(85452),eD=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,eI.ZT)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(J.x),eM=r(9924),ej=r(27796),eN=r(35168);let{assign:eL,hasOwnProperty:eF}=Object,eU={loading:!0,networkStatus:eR.I.loading,data:void 0,dataState:"empty",partial:!0},eB={loading:!1,networkStatus:eR.I.ready,data:void 0,dataState:"empty",partial:!0};class ez{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:o="standby"===i?n:i}=t;t[eP.pQ]&&((0,l.kG)("standby"===i,80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:o,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=(0,es.$)(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new eD({query:this.query,variables:this.variables,result:eU,meta:{}});let e=this.subject.pipe((0,er.b)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),e_(({query:e,variables:t,result:r,meta:n},i)=>{let{shouldEmit:o}=n;if(r===eU&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===o)return;if(1===o)return l();let{previous:a,previousVariables:s}=i;if(a){let n=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,o=i?n.nonReactiveQuery:e;if((i||n.hasNonreactiveDirective?(0,eM.W)(o,a,r,t):(0,ep.D)(a,r))&&(0,ep.D)(s,t))return}if(!(3===o&&(!this.options.notifyOnNetworkStatusChange||(0,ep.D)(a,r))))return l();function l(){return i.previous=r,i.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new J.x,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="cache-first");let r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?eR.I.ready:eR.I.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:eR.I.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:eR.I.loading};case"standby":return eB;default:return eU}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!e$({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||i)&&this.unsubscribeFromCache?.(),n||!i)return;let o={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(o.lastDiff=void 0),o.lastOwnDiff===e)return;let{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==eU&&n!==eB)&&((0,ep.D)(n.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(o);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===eR.I.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===eU&&(t=this.getInitialResult()),(0,ep.D)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",d.T&&e&&eF.call(e,"variables")){let t=(0,ej.i)(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!d.T||l.kG.warn(81,e,t.name?.value||t)}return e&&!(0,ep.D)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:eR.I.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:i}){(0,l.kG)("cache-only"!==this.options.fetchPolicy,82,(0,ev.r)(this.query,"(anonymous)"));let o={...(0,p.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};o.query=this.transformDocument(o.query),this.lastQuery=e?this.transformDocument(this.options.query):o.query;let a=!1,s="no-cache"!==this.options.fetchPolicy;s||(0,l.kG)(i,83);let{finalize:u,pushNotification:c}=this.pushOperation(eR.I.fetchMore);c({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:f,operator:d}=eq(),{observable:h}=this.queryManager.fetchObservableWithInfo(o,{networkStatus:eR.I.fetchMore,exposeExtensions:!0}),y=h.pipe(d,K(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{a=!1;let t=e.value,r=t[eP.e4];if(eg(e.value.networkStatus)&&u(),s){let e=this.getCacheDiff();this.cache.batch({update:e=>{i?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>i(e,{fetchMoreResult:t.data,variables:o.variables})):e.writeQuery({query:o.query,variables:o.variables,data:t.data,extensions:r})},onWatchUpdated:(r,n)=>{if(r.watcher===this&&!(0,ep.D)(n.result,e.result)){a=!0;let e=this.getCurrentResult();eg(t.networkStatus)||c({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===eR.I.error?eR.I.ready:t.networkStatus,loading:!1,data:n.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{let e=this.getCurrentResult(),r=i(e.data,{fetchMoreResult:t.data,variables:o.variables});c({kind:"N",value:{...e,networkStatus:eR.I.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,eN.c)(f.then(e=>ew(this.maskResult(e))).finally(()=>{if(y.unsubscribe(),u(),s&&!a){let e=this.getCurrentResult();"streaming"===e.dataState?c({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:eR.I.ready}}):c({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:n}=e,{error:i}=t;if(i)return void(n?n(i):l.kG.error(84,i));r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,p.o)(this.options,e||{});eL(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,ep.D)(this.variables,e))?ew(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:eR.I.setVariables}):ew(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(this.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){let i=this.options.fetchPolicy;e.context??={};let o=!1,{observable:a,fromLink:s}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{o=!0},fetchQueryOperator:e=>new S.y(r=>{try{return e.subscribe({next(e){o=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{o||(c.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:l,variables:u,meta:{shouldEmit:3,fetchPolicy:i}}))}}),observableQuery:this}),{query:l,variables:u}=this,c={abort:()=>{d.unsubscribe()},query:l,variables:u};this.activeOperations.add(c);let f=t==eR.I.refetch||t==eR.I.setVariables,d=(a=a.pipe(n,(0,Y.B)())).pipe((0,er.b)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?c.override=t:delete c.override},finalize:()=>this.activeOperations.delete(c)})).subscribe({next:e=>{let t={};f&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(f=!1,t.shouldEmit=1),this.input.next({...e,query:l,variables:u,meta:t})}});return{fromLink:s,subscription:d,observable:a}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this;if(!r||!this.hasObservers()||"cache-only"===t){d.T&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(d.T&&l.kG.warn(85,(0,ev.r)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{this.pollingInfo&&(!eg(this.networkStatus)||this.options.skipPollAttempt?.()?i():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:eR.I.poll}).then(i,i))},i=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};i()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);let n=r===eR.I.refetch||r===eR.I.poll,i=this.variables,o=this.options.fetchPolicy,a=(0,p.o)(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;let s=n?a:eL(this.options,a),l=this.transformDocument(s.query);this.lastQuery=l,e&&"variables"in e&&(s.variables=this.getVariablesWithDefaults(e.variables)),!n&&(this.updatePolling(),e&&e.variables&&!(0,ep.D)(e.variables,i)&&"standby"!==s.fetchPolicy&&(s.fetchPolicy===o||"function"==typeof s.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",s),void 0===r&&(r=eR.I.setVariables)));let u=this.networkStatus;r||(r=eR.I.loading,u!==eR.I.loading&&e?.variables&&!(0,ep.D)(e.variables,i)&&(r=eR.I.setVariables),"standby"===s.fetchPolicy&&(r=eR.I.ready)),"standby"===s.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:c,operator:f}=eq("standby"===s.fetchPolicy?{data:void 0}:void 0),{subscription:d,observable:h,fromLink:y}=this.fetch(s,r,l,f);n||!y&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=d);let m=Object.assign((0,eN.c)(c.then(e=>ew(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=h.subscribe({}),t=()=>e.unsubscribe();return c.then(t,t),m}});return m}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,ep.D)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:eR.I.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(o)},o={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(o),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===eR.I.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>e$(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?eB:eU,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=e_(e=>{let t,{query:r,variables:n,meta:i}=e;if("setResult"===e.source)return{query:r,variables:n,result:e.value,meta:i};if("C"===e.kind||!e$(e,this))return;let o=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===eR.I.ready&&t.partial&&(!this.options.returnPartialData||o.result.networkStatus===eR.I.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...e$(o,e)?o.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:eR.I.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=e$(o,e)?o.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,a=n?void 0:r.error,s=a?eR.I.error:eR.I.ready;t={...r,error:a,networkStatus:s}}return(0,l.kG)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!eg(t.networkStatus),{query:r,variables:n,result:t=this.maskResult(t),meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function e$(e,t){return!!(e&&t&&e.query===t.query&&(0,ep.D)(e.variables,t.variables))}function eq(e){let t=e,r,n;return{promise:new Promise((e,t)=>{r=e,n=t}),operator:(0,er.b)({next(e){if("E"===e.kind)return n(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";n("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}let eW={},eV=new WeakMap;function eH(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return eV.set(e,(eV.get(e)+1)%1e15),r.apply(this,arguments)})}let eG=new WeakMap;class eK{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,n=(eG.get(e)||0)+1;eG.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,eV.has(r)||(eV.set(r,0),eH(r,"evict"),eH(r,"modify"),eH(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===eV.get(this.cache)&&(0,ep.D)(t,r.variables)&&(0,ep.D)(e.data,r.result.data)&&e.extensions?.[eP.AN]===r.result.extensions?.[eP.AN])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){let o={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=0===i,s=a?void 0:this.cache.diff(o),l=this.maybeHandleIncrementalResult(s?.result,e,t);return a||(eY(l,n)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===i,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:eV.get(this.cache)};else if(s&&s.complete){l={...l,data:s.result};return}let n=e.diff(o);n.complete&&(l={...l,data:n.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let n=[],i=0===t.cacheWriteBehavior,o=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(o={...o,errors:[]}),eb(o)&&"none"===t.errorPolicy)return Promise.resolve(o);let a=()=>({...o,dataState:this.hasNext?"streaming":"complete"});if(!i&&eY(o,t.errorPolicy)){n.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:o.extensions});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let i=e[r],{query:o,variables:s}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=i(l,{mutationResult:a(),queryName:o&&(0,ev.r)(o)||void 0,queryVariables:s});e&&n.push({result:e,dataId:"ROOT_QUERY",query:o,variables:s})}})}let s=t.refetchQueries;if("function"==typeof s&&(s=s(a())),n.length>0||(s||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!i){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(o={...o,data:r.result})}this.hasNext||r(e,o,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:s,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>o)}return Promise.resolve(o)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:eW}):e;return r!==eW&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){l.kG.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(eY(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function eY(e,t="none"){let r=!eb(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class eQ{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new f.A(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,l._K)(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:i=[],awaitRefetchQueries:o=!1,update:s,onQueryUpdated:u,fetchPolicy:c,errorPolicy:f,keepRootFields:h,context:p}){let y=new eK(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:m}=this.getDocumentInfo(e);t=this.getVariables(e,t),m&&(d.T&&(0,l.kG)(this.localState,88,(0,ev.r)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:p}));let g=this.mutationStore&&(this.mutationStore[y.id]={mutation:e,variables:t,loading:!0,error:null}),v=r&&y.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==c),errorPolicy:f,context:p,updateQueries:n,update:s,keepRootFields:h});return this.broadcastQueries(),new Promise((l,d)=>{let m={};return this.getObservableFromLink(e,{...p,optimisticResponse:v?r:void 0},t,c,{},!1).observable.pipe(eJ(),A(r=>{let a={...r};return $(y.markMutationResult(a,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==c),errorPolicy:f,context:p,update:s,updateQueries:n,awaitRefetchQueries:o,refetchQueries:i,removeOptimistic:v?y.id:void 0,onQueryUpdated:u,keepRootFields:h}))})).pipe((0,a.U)(e=>{if(eb(e)&&"none"===f)throw new ei.L(eX(e));return g&&(g.loading=!1,g.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!y.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:c,cause:m})};eb(t)&&(r.error=new ei.L(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),l(r)}},error:e=>(g&&(g.loading=!1,g.error=e),v&&this.cache.removeOptimistic(y.id),this.broadcastQueries(),"ignore"===f)?l({data:void 0}):"all"===f?l({data:void 0,error:e}):void d(e)})})}fetchQuery(e,t){return(0,y.A)(e.query,o.ku.QUERY),(async()=>{var r,n,i;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(e_(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return ew(e.value)}})),i="object"==typeof(n={defaultValue:{data:void 0}}),new Promise(function(e,t){var o,a=!1;r.subscribe({next:function(e){o=e,a=!0},error:t,complete:function(){a?e(o):i?e(n.defaultValue):t(new q)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new eE.s(ey.Q["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){var r;let n,i=(0,es.$)(e),o={hasClientExports:(0,s.F)(["client","export"],e,!0),hasForcedResolvers:(n=!1,(0,g.Vn)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(n=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return g.$_}}}),n),hasNonreactiveDirective:(0,s.F)(["nonreactive"],e),hasIncrementalDirective:(0,s.F)(["defer"],e),nonReactiveQuery:(r=e,(0,g.Vn)(r,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:E.h.DIRECTIVE,name:{kind:E.h.NAME,value:"nonreactive"}}]}}})),clientQuery:(0,s.F)(["client"],e)?e:null,serverQuery:function(e,t){var r;(0,y.A)(t);let n=ek(""),i=ek(""),o=e=>{for(let t=0,r;t=0;--e)t.definitions[e].kind===E.h.OPERATION_DEFINITION&&++a;let s=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let n=t.get(e.name.value);return!n&&r.size&&r.forEach((t,r)=>{r(e)&&(n=t)}),n}}(e),u=e=>(0,eO.O)(e)&&e.map(s).some(e=>e&&e.remove),c=new Map,f=!1,d={enter(e){if(u(e.directives))return f=!0,null}},h=(0,g.Vn)(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){let a=o(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(u(e.directives))return f=!0,null;let a=o(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){c.set(JSON.stringify(n),e)},leave:(e,t,r,n)=>e===c.get(JSON.stringify(n))?e:a>0&&e.selectionSet.selections.every(e=>e.kind===E.h.FIELD&&"__typename"===e.name.value)?(i(e.name.value).removed=!0,f=!0,null):void 0},Directive:{leave(e){if(s(e))return f=!0,null}}});if(!f)return t;let p=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{p(i(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),m=new Set;h.definitions.forEach(e=>{e.kind===E.h.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{m.add(e)}):e.kind!==E.h.FRAGMENT_DEFINITION||0!==a||i(e.name.value).removed||m.add(e.name.value)}),m.forEach(e=>{p(i(e)).fragmentSpreads.forEach(e=>{m.add(e)})});let v={enter(e){let t;if(t=e.name.value,!m.has(t)||i(t).removed)return null}};return r=(0,g.Vn)(h,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=p(n(e.name&&e.name.value)).transitiveVars;if(t.sizet.has(e.variable.name.value))}}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===E.h.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,es.$)(r)||(0,eS.p)(r),(0,el.F)((0,eu.k)(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i?.operation,defaultVars:(0,eT.O)(i),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,o)}let n=t.get(e);if(n.violation)throw n.violation;return n}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){(0,y.A)(e.query,o.ku.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new ez({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,l._K)(89)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,eC.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,em.S)(this.transform(e));r.set(t,(0,ev.r)(e)),n.set(t,!1)}else(0,eC.s)(e)&&e.query&&i.add(e)}),this.obsQueries.forEach(r=>{let i=(0,em.S)(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:o,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||o&&n.has(o)||i&&n.has(i))&&(t.add(r),o&&n.set(o,!0),i&&n.set(i,!0))}),i.size&&i.forEach(e=>{let r=new ez({queryManager:this,options:{...e,fetchPolicy:"network-only"}});t.add(r)}),d.T&&n.size&&n.forEach((e,t)=>{if(!e){let e=r.get(t);e?d.T&&l.kG.warn(90,e):d.T&&l.kG.warn(91)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:n}=r.options;(e||"standby"!==n)&&"cache-only"!==n&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:n}=e,{fetchPolicy:i="cache-first",errorPolicy:s="none",context:u={},extensions:c={}}=e;return(0,y.A)(r,o.ku.SUBSCRIPTION),r=this.transform(r),n=this.getVariables(r,n),d.T&&(0,l.kG)(!this.getDocumentInfo(r).hasClientExports||this.localState,92,(0,ev.r)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?$(this.localState.getExportedVariables({client:this.client,document:r,variables:n,context:u})):H(n)).pipe(A(e=>{let{observable:n,restart:o}=this.getObservableFromLink(r,u,e,i,c),l=new eK(this);return t=o,n.pipe((0,a.U)(t=>{l.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:s,cacheWriteBehavior:2*("no-cache"!==i)});let n={data:t.data??void 0};return eb(t)?n.error=new ei.L(t):(0,eo.ls)(t)&&(n.error=t.extensions[eo.YG],delete t.extensions[eo.YG]),t.extensions&&Object.keys(t.extensions).length&&(n.extensions=t.extensions),n.error&&"none"===s&&(n.data=void 0),"ignore"===s&&delete n.error,n}),G(e=>"ignore"===s?H({data:void 0}):H({data:void 0,error:e})),K(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new w.B(!1);getObservableFromLink(e,t,r,n,i,a=t?.queryDeduplication??this.queryDeduplication){let s={},{serverQuery:u,clientQuery:f,operationType:h,hasIncrementalDirective:p}=this.getDocumentInfo(e),y=(0,ev.r)(e),m={client:this.client};if(u){let{inFlightLinkObservables:e,link:n}=this;try{let l=this.incrementalHandler.prepareRequest({query:u,variables:r,context:{...this.defaultContext,...t,queryDeduplication:a},extensions:i});function g(e){return new S.y(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return s.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),s.restart=void 0}})}if(t=l.context,a){var v;let t=(0,em.S)(u),i=(0,en.B)(r);(s=e.lookup(t,i)).observable||(s.observable=c(n,l,m).pipe(g,(v=()=>{e.peek(t,i)===s&&e.remove(t,i)},(0,T.e)(function(e,t){try{e.subscribe(t)}finally{t.add(v)}})),h===o.ku.SUBSCRIPTION?(0,Y.B)():(0,Q.d)({refCount:!0})))}else s.observable=c(n,l,m).pipe(g)}catch(e){s.observable=O(()=>e)}}else s.observable=H({data:{}});if(f){let{operation:i}=(0,es.$)(e);d.T&&(0,l.kG)(this.localState,93,i[0].toUpperCase()+i.slice(1),y??"(anonymous)"),(0,l.kG)(!p,94,i[0].toUpperCase()+i.slice(1),y??"(anonymous)"),s.observable=s.observable.pipe(A(e=>$(this.localState.execute({client:this.client,document:f,remoteResult:e,context:t,variables:r,fetchPolicy:n}))))}return{restart:()=>s.restart?.(),observable:s.observable.pipe(G(e=>{var t;throw t=e=(0,eo.Nh)(e),ea.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n,exposeExtensions:i}){let o=t.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,l=this.cache.transformForLink(e.query);return this.getObservableFromLink(l,e.context,e.variables,e.fetchPolicy).observable.pipe((0,a.U)(o=>{let a=t.markQueryResult(o,{...e,document:l,cacheWriteBehavior:r}),u=eb(a);if(u&&"none"===s)throw t.resetLastWrite(),n?.resetNotifications(),new ei.L(eX(a));let c={data:a.data,...t.hasNext?{loading:!0,networkStatus:eR.I.streaming,dataState:"streaming",partial:!0}:{dataState:a.data?"complete":"empty",loading:!1,networkStatus:eR.I.ready,partial:!a.data}};return i&&"extensions"in a&&(c[eP.e4]=a.extensions),u&&("none"===s&&(c.data=void 0,c.dataState="empty"),"ignore"!==s&&(c.error=new ei.L(eX(a)),"streaming"!==c.dataState&&(c.networkStatus=eR.I.error))),c}),G(e=>{if(o>=t.lastRequestId&&"none"===s)throw t.resetLastWrite(),n?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:eR.I.ready,partial:!0};return"ignore"!==s&&(r.error=e,r.networkStatus=eR.I.error),H(r)}))}fetchObservableWithInfo(e,{networkStatus:t=eR.I.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:o,exposeExtensions:a}){let s,u,c=this.getVariables(r,e.variables),f=this.defaultOptions.watchQuery,{fetchPolicy:h=f&&f.fetchPolicy||"cache-first",errorPolicy:p=f&&f.errorPolicy||"none",returnPartialData:y=!1,notifyOnNetworkStatusChange:m=!0,context:g={}}=e;this.prioritizeCacheValues&&("network-only"===h||"cache-and-network"===h)&&(h="cache-first");let v=Object.assign({},e,{query:r,variables:c,fetchPolicy:h,errorPolicy:p,returnPartialData:y,notifyOnNetworkStatusChange:m,context:g}),b=new eK(this,o),_=r=>{v.variables=r;let s="no-cache"===h?0:t===eR.I.refetch&&"merge"!==v.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(v,{queryInfo:b,cacheWriteBehavior:s,onCacheHit:i,observableQuery:o,exposeExtensions:a});return l.observable=l.observable.pipe(n),"standby"!==v.fetchPolicy&&o?.applyNextFetchPolicy("after-fetch",e),l},w=()=>{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,e=>{E.next({kind:"E",error:e,source:"network"})});let E=new J.x;if(this.getDocumentInfo(v.query).hasClientExports)d.T&&(0,l.kG)(this.localState,95,(0,ev.r)(v.query,"(anonymous)")),s=$(this.localState.getExportedVariables({client:this.client,document:v.query,variables:v.variables,context:v.context})).pipe(A(e=>_(e).observable)),u=!0;else{let e=_(v.variables);u=e.fromLink,s=e.observable}return{observable:new S.y(e=>{e.add(w),s.subscribe(e),E.subscribe(e)}).pipe((0,Y.B)()),fromLink:u}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=r?(0,eA.X)("refetchQueries"):void 0,onQueryUpdated:i}){let o=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();o.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let a=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){let s=e.watcher;if(s instanceof ez&&!t.has(s)){if(t.add(s),i){o.delete(s);let e=i(s,r,n);return!0===e&&(e=s.refetch().retain()),!1!==e&&a.set(s,e),e}null!==i&&"cache-only"!==s.options.fetchPolicy&&o.set(s,{oq:s,lastDiff:n,diff:r})}}})}return o.size&&o.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&a.set(e,n)}),n&&this.cache.removeOptimistic(n),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;if(d.T){var n;let r,{fetchPolicy:i,cause:o={}}=e,a=(0,es.$)(t)?.operation;this.dataMasking&&"no-cache"===i&&(n=t,r=!0,(0,g.Vn)(n,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return g.$_}}),!r)&&!this.noCacheWarningsByCause.has(o)&&(this.noCacheWarningsByCause.add(o),d.T&&l.kG.warn(96,(0,ev.r)(t,`Unnamed ${a??"operation"}`)))}return this.dataMasking?function(e,t,r){let n=(0,es.$)(t);return((0,l.kG)(n,43),null==e)?e:eh(e,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:(0,el.F)((0,eu.k)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:n}=e;return this.dataMasking?function(e,t,r,n){let i=t.definitions.filter(e=>e.kind===E.h.FRAGMENT_DEFINITION);void 0===n&&((0,l.kG)(1===i.length,41,i.length),n=i[0].name.value);let o=i.find(e=>e.name.value===n);return((0,l.kG)(!!o,42,n),null==e||(0,ep.D)(e,{}))?e:eh(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:(0,el.F)((0,eu.k)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,n):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:i,context:o},{cacheWriteBehavior:s,onCacheHit:u,queryInfo:c,observableQuery:f,exposeExtensions:h}){let p=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),y=(a,s)=>{var c;let f=a.result;d.T&&!i&&null!==f&&(c=a.missing,d.T&&c&&d.T&&l.kG.debug(86,c));let h=e=>(a.complete||i||(e=void 0),{data:e,dataState:a.complete?"complete":e?"partial":"empty",loading:!eg(s),networkStatus:s,partial:!a.complete}),p=e=>H({kind:"N",value:h(e),source:"cache"});return(a.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(d.T&&(0,l.kG)(this.localState,97,(0,ev.r)(e,"(anonymous)")),u(),$(this.localState.execute({client:this.client,document:e,remoteResult:f?{data:f}:void 0,context:o,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:h(e.data||void 0),source:"cache"})))):p("none"===n&&s===eR.I.refetch&&a.missing?void 0:f||void 0)},m=()=>this.getResultsFromLink({query:e,variables:t,context:o,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:s,queryInfo:c,observableQuery:f,exposeExtensions:h}).pipe(eJ(),(0,T.e)(function(e,t){e.subscribe((0,P.x)(t,function(e){t.next(Z.createNext(e))},function(){t.next(Z.createComplete()),t.complete()},function(e){t.next(Z.createError(e)),t.complete()}))}),(0,a.U)(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=p();if(e.complete)return{fromLink:!1,observable:y(e,eR.I.ready)};if(i)return{fromLink:!0,observable:et(y(e,eR.I.loading),m())};return{fromLink:!0,observable:m()}}case"cache-and-network":{let e=p();if(e.complete||i)return{fromLink:!0,observable:et(y(e,eR.I.loading),m())};return{fromLink:!0,observable:m()}}case"cache-only":return{fromLink:!1,observable:et(y(p(),eR.I.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:m()};case"standby":return{fromLink:!1,observable:X.E}}}}function eJ(){let e=!1;return(0,er.b)({next(){e=!0},complete(){(0,l.kG)(e,98)}})}function eX(e){if(e.extensions?.[eP.AN]==null)return e;let{extensions:{[eP.AN]:t,...r},...n}=e;return Object.keys(r).length>0&&(n.extensions=r),n}let eZ=!1;class e0{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){d.T&&((0,l.kG)(e.cache,68),(0,l.kG)(e.link,69));let{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:o=!0,defaultOptions:a,defaultContext:s,assumeImmutableResults:c=t.assumeImmutableResults,localState:f,devtools:h,dataMasking:p,link:y,incrementalHandler:m=new u,experiments:g=[]}=e;this.link=y,this.cache=t,this.queryDeduplication=o,this.defaultOptions=a||{},this.devtoolsConfig={...h,enabled:h?.enabled??d.T},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=_.i,this.queryManager=new eQ({client:this,defaultOptions:this.defaultOptions,defaultContext:s,documentTransform:r,queryDeduplication:o,ssrMode:n,dataMasking:!!p,clientOptions:e,incrementalHandler:m,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:f}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools(),g.forEach(t=>t.call(this,e))}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!eZ&&d.T&&(eZ=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&d.T&&l.kG.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,h.J)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,h.J)(this.defaultOptions.query,e)),d.T&&((0,l.kG)("cache-and-network"!==e.fetchPolicy,70),(0,l.kG)("standby"!==e.fetchPolicy,71),(0,l.kG)(e.query,72),(0,l.kG)("Document"===e.query.kind,73),(0,l.kG)(!e.returnPartialData,74),(0,l.kG)(!e.pollInterval,75),(0,l.kG)(!e.notifyOnNetworkStatusChange,76)),this.queryManager.query(e)}mutate(e){let t=(0,h.J)((0,p.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return d.T&&((0,l.kG)(t.mutation,77),(0,l.kG)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,78)),(0,y.A)(t.mutation,o.ku.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe((0,a.U)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return d.T?(0,m.V)(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return c(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});let i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{d.T&&l.kG.debug(79,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new f.A(v);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}d.T&&(e0.prototype.getMemoryInternals=b.su)},66385:function(e,t,r){"use strict";var n,i;r.d(t,{I:()=>n}),(i=n||(n={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error",i[i.streaming=9]="streaming"},45567:function(e,t,r){"use strict";r.d(t,{L:()=>o});var n=r(48741);function i(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}class o extends Error{static is(e){return(0,n.I)(e,"CombinedGraphQLErrors")}static formatMessage=i;errors;data;extensions;constructor(e,t=e.errors||[]){super(o.formatMessage(t,{result:e,defaultFormatMessage:i})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,n.U)(this),Object.setPrototypeOf(this,o.prototype)}}},76777:function(e,t,r){"use strict";r.d(t,{b:()=>o});var n=r(48741);function i(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class o extends Error{static is(e){return(0,n.I)(e,"CombinedProtocolErrors")}static formatMessage=i;errors;constructor(e){super(o.formatMessage(e,{defaultFormatMessage:i})),this.name="CombinedProtocolErrors",this.errors=e,(0,n.U)(this),Object.setPrototypeOf(this,o.prototype)}}},20067:function(e,t,r){"use strict";r.d(t,{ls:()=>s,Nh:()=>l,YG:()=>a});var n=r(76777),i=r(48741);class o extends Error{static is(e){return(0,i.I)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,i.U)(this),Object.setPrototypeOf(this,o.prototype)}}let a=Symbol();function s(e){return"extensions"in e&&n.b.is(e.extensions[a])}function l(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new o(e)}},48741:function(e,t,r){"use strict";function n(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function i(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}r.d(t,{I:()=>n,U:()=>i})},34921:function(e,t,r){"use strict";r.d(t,{i:()=>l});var n=r(20),i=r(95818),o=r(94677),a=r(82841),s=r(74416);class l{static empty(){return new l(()=>n.E)}static from(e){if(0===e.length)return l.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new l((e,t)=>t(e))){return Object.assign(new l((n,i)=>{let o=e(n);return a.T&&"boolean"!=typeof o&&a.T&&s.kG.warn(63,o),o?t.request(n,i):r.request(n,i)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,i.r)(e.query),operationType:(0,o.$)(e.query).operation},n={...e.context},a=()=>Object.freeze({...n});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{n="function"==typeof e?{...n,...e(a())}:{...n,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:a}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(a.T&&a.T&&s.kG.warn(64),n.E))}static concat(...e){return l.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(l.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new l((r,n)=>e.request(r,e=>t.request(e,n))),{left:e,right:t})}request(e,t){throw(0,s._K)(65)}left;right}},82054:function(e,t,r){"use strict";r.d(t,{s:()=>s});var n=r(40292),i=r(45567),o=r(20067),a=r(34921);class s extends a.i{constructor(e){super((t,r)=>new n.y(n=>{let a,s,l;try{a=r(t).subscribe({next:a=>{let u=t.client.queryManager.incrementalHandler,c=u.isIncrementalResult(a)?u.extractErrors(a):a.errors;c?l=e({error:new i.L(a,c),result:a,operation:t,forward:r}):(0,o.ls)(a)&&(l=e({error:a.extensions[o.YG],result:a,operation:t,forward:r})),(s=l?.subscribe(n))||n.next(a)},error:i=>{l=e({operation:t,error:(0,o.Nh)(i),forward:r}),(s=l?.subscribe(n))||n.error(i)},complete:()=>{l||n.complete()}})}catch(i){e({error:(0,o.Nh)(i),operation:t,forward:r}),n.error(i)}return()=>{a&&a.unsubscribe(),s&&s.unsubscribe()}}))}}},51945:function(e,t,r){"use strict";r.d(t,{u:()=>P});var n=r(34921),i=r(99090);class o extends n.i{constructor(e={}){super((t,r)=>{let n=t.client,o=n.queryManager.clientOptions,a=t.getContext();{let{name:r,version:n,transport:s="headers"}=(0,i.o)({},o.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===s&&t.setContext(({headers:e})=>({headers:(0,i.o)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,i.o)({},o.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,i.o)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,i.o)({"apollographql-library-name":"@apollo/client","apollographql-library-version":n.version},e)}))}return r(t)})}}var a=r(40292),s=r(23696),l=r(94677);function u(e,t){return(0,l.$)(e)?.operation===t}var c=r(82841),f=r(74971),d=r(74416),h=r(20067),p=r(76777),y=r(48741);class m extends Error{static is(e){return(0,y.I)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.U)(this),Object.setPrototypeOf(this,m.prototype)}}class g extends Error{static is(e){return(0,y.I)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.U)(this),Object.setPrototypeOf(this,g.prototype)}}var v=r(30732);let{hasOwnProperty:b}=Object.prototype;async function*_(e){let t,r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),i=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),o="\r\n--"+(i?i[1]??i[2]??i[3]??"-":"-"),a="";(0,d.kG)(e.body&&"function"==typeof e.body.getReader,62);let s=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==a[0]&&"-"==a[1];try{for(;!l;){({value:t,done:l}=await s.read());let e="string"==typeof t?t:r.decode(t),n=a.length-o.length+1,i=(a+=e).indexOf(o,n);for(;i>-1&&!c();){let e;u=!0,[e,a]=[a.slice(0,i),a.slice(i+o.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),i=a.indexOf(o)}if(c())return}throw Error("premature end of multipart body")}finally{s.cancel()}}async function w(e,t){for await(let r of _(e)){let n=E(e,r);if(0!=Object.keys(n).length)if((0,v.s)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[h.YG]:new p.b(n.errors??[])}),t(e)}else t(n)}}function E(e,t){if(e.status>=300)throw new m(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new g(r,{response:e,bodyText:t})}}var S=r(99885);let x={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},O=(e,t)=>t(e),k=(0,f.w)(()=>fetch);function T(){}class C extends n.i{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=O,includeExtensions:o,preserveHeaderCase:l,useGETForQueries:h,includeUnusedVariables:p=!1,...y}=e;c.T&&(0,d.kG)(r||k||"undefined"!=typeof fetch,61);let v={http:(0,i.o)({includeExtensions:o,preserveHeaderCase:l}),options:y.fetchOptions,credentials:y.credentials,headers:y.headers};super(e=>{let i=((e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")})(e,t),o=e.getContext(),l={...o.http};u(e.query,"subscription")&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);let{options:c,body:d}=function(e,t,...r){let n={},i={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),i={...i,...e.http}}),n.headers=function(e,t){if(!t){let t={};return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,i.preserveHeaderCase);let{operationName:o,extensions:a,variables:s,query:l}=e,u={operationName:o,variables:s};return i.includeExtensions&&Object.keys(a||{}).length&&(u.extensions=a),i.includeQuery&&(u.query=t(l,S.S)),{options:n,body:u}}(e,n,x,v,{http:l,options:o.fetchOptions,credentials:o.credentials,headers:o.headers});d.variables&&!p&&(d.variables=function(e,t){let r={...e},n=new Set(Object.keys(e));return(0,s.Vn)(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach(e=>{delete r[e]}),r}(d.variables,e.query));let y=new AbortController,_=()=>{y=void 0};if(c.signal){let e=c.signal,t=()=>{y?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),_=()=>{y?.signal.removeEventListener("abort",_),y=void 0,e.removeEventListener("abort",t),_=T},y.signal.addEventListener("abort",_,{once:!0})}return c.signal=y.signal,h&&!u(e.query,"mutation")&&(c.method="GET"),new a.y(t=>{if("GET"===c.method){let{newURI:e,parseError:t}=function(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",o=e,a=e.indexOf("#");-1!==a&&(i=e.substr(a),o=e.substr(0,a));let s=-1===o.indexOf("?")?"?":"&";return{newURI:o+s+r.join("&")+i}}(i,d);if(t)throw t;i=e}else c.body=JSON.stringify(d);let n=r||(0,f.w)(()=>fetch)||k,o=t.next.bind(t);return n(i,c).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?w(t,o):(t=>t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new g(r,{response:e,bodyText:t})}return E(e,t)}(t,r);if(!Array.isArray(n)&&!b.call(n,"data")&&!b.call(n,"errors"))throw new m(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n}))(t).then(o)}).then(()=>{_(),t.complete()}).catch(e=>{_(),t.error(e)}),()=>{y&&y.abort()}})})}}class P extends n.i{constructor(e={}){let{left:t,right:r,request:i}=n.i.from([new o(e),new C(e)]);super(i),Object.assign(this,{left:t,right:r})}}},36188:function(e,t,r){"use strict";r.d(t,{G:()=>l,O:()=>s});var n=r(43941),i=r(2638),o=r(82841),a=r(74416);let s=new i.g7;function l(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(o.T&&r&&(r.value.kind===n.h.VARIABLE?o.T&&a.kG.warn(44):r.value.kind!==n.h.STRING?o.T&&a.kG.warn(45):"migrate"!==r.value.value&&o.T&&a.kG.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}},45076:function(e,t,r){"use strict";r.d(t,{K:()=>s});var n,i=r(2784),o=r(74416);let a=Symbol.for("__APOLLO_CONTEXT__");function s(){(0,o.kG)("createContext"in(n||(n=r.t(i,2))),37);let e=i.createContext[a];return e||(Object.defineProperty(i.createContext,a,{value:e=i.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},81488:function(e,t,r){"use strict";r.d(t,{e:()=>a});var n=r(2784),i=r(74416),o=r(45076);let a=({client:e,children:t})=>{let r=(0,o.K)(),a=n.useContext(r),s=n.useMemo(()=>({...a,client:e||a.client}),[a,e]);return(0,i.kG)(s.client,38),n.createElement(r.Provider,{value:s},t)}},40855:function(e,t,r){"use strict";r.d(t,{v:()=>o});var n=r(44129),i=r(2784);function o(e,t){let r=i.useRef(void 0);return r.current&&(0,n.D)(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}},92117:function(e,t,r){"use strict";r.d(t,{L:()=>i});var n=r(2784);let i=r(45740).N?n.useLayoutEffect:n.useEffect},21509:function(e,t,r){"use strict";r.d(t,{x:()=>a});var n=r(2784),i=r(74416),o=r(45076);function a(e){let t=n.useContext((0,o.K)()),r=e||t.client;return(0,i.kG)(!!r,28),r}},50041:function(e,t,r){"use strict";let n;r.d(t,{t:()=>m});var i=r(44129),o=r(2784),a=r(66385),s=r(76554),l=r(49405),u=r(74416);function c(){}var f=r(40855),d=r(92117),h=r(21509),p=r(96041);let y=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function m(e,t){let r=(0,h.x)(t?.client),a=o.useRef(void 0),l=o.useRef(void 0),m=(0,f.v)(()=>t,[t]),v=(n||(n=o.createContext(null)),o.useCallback(()=>{let e=console.error;try{return console.error=c,o.useContext(n),!0}catch(e){return!1}finally{console.error=e}},[]));function b(){return r.watchQuery({...t,query:e,initialFetchPolicy:t?.fetchPolicy,fetchPolicy:"standby",[s.pQ]:!0})}let[_,w]=o.useState(r),[E,S]=o.useState(b);_!==r&&(w(r),S(b()));let x=o.useCallback((e,t)=>{let r=l.current?.data;r&&!(0,i.D)(r,e.data)&&(a.current=r),l.current=e,t()},[]),O=(0,p.$)(o.useCallback(e=>{let t=E.subscribe(t=>{(0,i.D)(l.current,t)||x(t,e)});return()=>{t.unsubscribe()}},[E,x]),()=>l.current||g,()=>g),k=o.useMemo(()=>{let e={};for(let t of y)e[t]=function(...e){return(0,u.kG)(l.current,29,t),E[t](...e)};return e},[E]);o.useEffect(()=>{let r={query:e,errorPolicy:m?.errorPolicy,refetchWritePolicy:m?.refetchWritePolicy,returnPartialData:m?.returnPartialData,notifyOnNetworkStatusChange:m?.notifyOnNetworkStatusChange,nextFetchPolicy:t?.nextFetchPolicy,skipPollAttempt:t?.skipPollAttempt};"standby"!==E.options.fetchPolicy&&m?.fetchPolicy&&(r.fetchPolicy=m.fetchPolicy),E.applyOptions(r)},[e,E,m,t?.nextFetchPolicy,t?.skipPollAttempt]);let T=o.useCallback((...e)=>{(0,u.kG)(!v(),30);let[t]=e,r=E.options.fetchPolicy;return"standby"===r&&(r=E.options.initialFetchPolicy),E.reobserve({fetchPolicy:r,variables:t?.variables,context:t?.context??{}})},[E,v]),C=o.useRef(T);return(0,d.L)(()=>{C.current=T}),[o.useCallback((...e)=>C.current(...e),[]),o.useMemo(()=>{let{partial:e,...t}=O;return{...k,...t,client:r,previousData:a.current,variables:E.variables,observable:E,called:!!l.current}},[r,O,k,E])]}let g=(0,l.J)({data:void 0,dataState:"empty",loading:!1,networkStatus:a.I.ready,partial:!0})},10372:function(e,t,r){"use strict";r.d(t,{D:()=>u});var n=r(44129),i=r(2784),o=r(39138),a=r(35168),s=r(92117),l=r(21509);function u(e,t){let r=(0,l.x)(t?.client),[u,f]=i.useState(()=>c(r)),d=i.useRef({result:u,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,s.L)(()=>{Object.assign(d.current,{client:r,options:t,mutation:e})});let h=i.useCallback((e={})=>{let{options:t,mutation:r}=d.current,i={...t,mutation:r},s=e.client||d.current.client,l="function"==typeof e.context?e.context(t?.context):e.context;!d.current.result.loading&&d.current.isMounted&&f(d.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});let u=++d.current.mutationId,c=(0,o.J)(i,{...e,context:l});return(0,a.c)(s.mutate(c).then(t=>{let{data:r,error:i}=t,o=e.onError||d.current.options?.onError;if(i&&o&&o(i,c),u===d.current.mutationId){let e={called:!0,loading:!1,data:r,error:i,client:s};d.current.isMounted&&!(0,n.D)(d.current.result,e)&&f(d.current.result=e)}let a=e.onCompleted||d.current.options?.onCompleted;return i||a?.(t.data,c),t},t=>{if(u===d.current.mutationId&&d.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:s};(0,n.D)(d.current.result,e)||f(d.current.result=e)}let r=e.onError||d.current.options?.onError;throw r&&r(t,c),t}))},[]),p=i.useCallback(()=>{if(d.current.isMounted){let e=c(d.current.client);Object.assign(d.current,{mutationId:0,result:e}),f(e)}},[]);return i.useEffect(()=>{let e=d.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[h,{reset:p,...u}]}function c(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}},23539:function(e,t,r){"use strict";r.d(t,{a:()=>C});var n,i=r(44129),o=r(2784),a=r(70575),s=r(85452),l=r(88005),u=1,c={};function f(e){return e in c&&(delete c[e],!0)}var d=function(e){var t=u++;return c[t]=!0,n||(n=Promise.resolve()),n.then(function(){return f(t)&&e()}),t},h=function(e){f(e)},p={setImmediate:function(){for(var e=[],t=0;t0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=p.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i,o=t.actions;null!=r&&(null==(i=o[o.length-1])?void 0:i.id)!==r&&(p.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(l.o),m=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.ZT)(t,e),t.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled;this._scheduled=void 0;var n=this.actions;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},t}(r(34435).v))(y),g=r(66385),v=r(39138),b=r(76554),_=r(49405);let w=Symbol.for("apollo.skipToken"),E=Symbol.for("apollo.hook.wrappers");var S=r(45076),x=r(40855),O=r(21509),k=r(96041);let T=Symbol();function C(e,...[t]){return(function(e,t,r){let n=[r.queryManager,e.startsWith("use")?o.useContext((0,S.K)()):void 0],i=t;for(let t of n){let r=t?.[E]?.[e];r&&(i=r(i))}return i})("useQuery",P,(0,O.x)("object"==typeof t?t.client:void 0))(e,t)}function P(e,t={}){var r,n,s,l,u,c,f,d;let h=(0,O.x)("object"==typeof t?t.client:void 0),{ssr:p}="object"==typeof t?t:{},y=(r=e,n=t,s=h.defaultOptions.watchQuery,(0,x.v)(()=>{if(n===w){let e={...(0,v.J)(s,{query:r,fetchPolicy:"standby"}),[b.pQ]:!0};return e[A]=!0,e}let e=(0,v.J)(s,{...n,query:r});return n.skip&&(e.initialFetchPolicy=n.initialFetchPolicy||n.fetchPolicy,e.fetchPolicy="standby"),e},[r,n,s]));function g(t){let r=h.watchQuery(y);return{client:h,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[_,E]=o.useState(g);(h!==_.client||e!==_.query)&&E(_=g(_));let{observable:S,resultData:R}=_;l=y,u=S,l.fetchPolicy||(l.fetchPolicy=u.options.initialFetchPolicy),function(e,t,r){if(t[T]&&!(0,i.D)(t[T],r)){var n,o;t[T][A]&&!r.initialFetchPolicy&&(r.initialFetchPolicy=r.fetchPolicy),(n=t[T],o=r,n.query===o.query&&(0,i.D)(n.variables,o.variables)&&(n.fetchPolicy===o.fetchPolicy||"standby"!==o.fetchPolicy&&"standby"!==n.fetchPolicy))?t.applyOptions(r):t.reobserve(r);let a=t.getCurrentResult();(0,i.D)(a.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=a,e.variables=t.variables}t[T]=r}(R,S,y);let I=(c=S,f=R,d=p,(0,k.$)(o.useCallback(e=>{let t=c.pipe((0,a.Q)(m)).subscribe(t=>{let r=f.current;(0,i.D)(r,t)&&(0,i.D)(f.variables,c.variables)||(f.variables=c.variables,r.data&&!(0,i.D)(r.data,t.data)&&(f.previousData=r.data),f.current=t,e())});return()=>{setTimeout(()=>t.unsubscribe())}},[c,f]),()=>f.current,()=>!1===d?C.ssrDisabledResult:f.current)),D=o.useMemo(()=>({refetch:S.refetch.bind(S),fetchMore:S.fetchMore.bind(S),updateQuery:S.updateQuery.bind(S),startPolling:S.startPolling.bind(S),stopPolling:S.stopPolling.bind(S),subscribeToMore:S.subscribeToMore.bind(S)}),[S]),M=R.previousData;return o.useMemo(()=>{let{partial:e,...t}=I;return{...t,client:h,observable:S,variables:S.variables,previousData:M,...D}},[I,h,S,M,D])}let A=Symbol();C.ssrDisabledResult=(0,_.J)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:g.I.loading,partial:!0})},40809:function(e,t,r){"use strict";r.d(t,{l:()=>o});var n=r(2784),i=r(96041);function o(e){return(0,i.$)(n.useCallback(t=>e.onNextChange(function r(){t(),e.onNextChange(r)}),[e]),e,e)}},96041:function(e,t,r){"use strict";r.d(t,{$:()=>p});var n,i=r(2784),o=r(82841),a=r(45740),s=r(74971),l=r(74416);let u=!1,c=(n||(n=r.t(i,2))).useSyncExternalStore,f="ReactNative"==(0,s.w)(()=>navigator.product),d=(0,s.w)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,h=(a.N||f)&&!d,p=c||((e,t,r)=>{let n=t();o.T&&!u&&n!==t()&&(u=!0,l.kG.error(34));let[{inst:a},s]=i.useState({inst:{value:n,getSnapshot:t}});return h?i.useLayoutEffect(()=>{Object.assign(a,{value:n,getSnapshot:t}),y(a)&&s({inst:a})},[e,n,t]):Object.assign(a,{value:n,getSnapshot:t}),i.useEffect(()=>(y(a)&&s({inst:a}),e(function(){y(a)&&s({inst:a})})),[e]),n});function y({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}},76311:function(e,t,r){"use strict";r.d(t,{Q:()=>o});var n=r(51402);let i=Symbol.for("apollo.cacheSize"),o={...n.Z[i]}},82841:function(e,t,r){"use strict";r.d(t,{T:()=>n});let n=!1},82914:function(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(44951),i=r(63506),o=r(2638),a=r(67832),s=r(74416),l=r(76311);function u(e){return e}class c{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new c(u,{cache:!1})}static split(e,t,r=c.identity()){return Object.assign(new c(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new i.B;this.performWork=(0,o.re)(c.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,s.kG)(Array.isArray(r),20),e.lookupArray(r)},max:l.Q["documentTransform.cache"],cache:n.k})}}performWork(e){return(0,a.A)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new c(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}},99885:function(e,t,r){"use strict";let n;r.d(t,{S:()=>b});var i=r(4767);let o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return s[e.charCodeAt(0)]}let s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=r(23696);let u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p(e.variableDefinitions)?d("(\n",c(e.variableDefinitions,"\n"),"\n)"):d("(",c(e.variableDefinitions,", "),")"),r=d("",e.description,"\n")+c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>d("",i,"\n")+e+": "+t+d(" = ",r)+d(" ",c(n," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=d("",e,": ")+t,a=o+d("(",c(r,", "),")");return a.length>80&&(a=o+d("(\n",h(c(r,"\n")),"\n)")),c([a,c(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",d("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>d("",o,"\n")+`fragment ${e}${d("(",c(r,", "),")")} `+`on ${t} ${d("",c(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.LZ)(e):`"${e.replace(o,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>d("",e,"\n")+c(["schema",c(t," "),f(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>d("",e,"\n")+c(["type",t,d("implements ",c(r," & ")),c(n," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>d("",e,"\n")+t+(p(r)?d("(\n",h(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+": "+n+d(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>d("",e,"\n")+c([t+": "+r,d("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>d("",e,"\n")+c(["interface",t,d("implements ",c(r," & ")),c(n," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>d("",e,"\n")+c(["union",t,c(r," "),d("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>d("",e,"\n")+c(["enum",t,c(r," "),f(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>d("",e,"\n")+c(["input",t,c(r," "),f(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>d("",e,"\n")+"directive @"+t+(p(r)?d("(\n",h(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend type",e,d("implements ",c(t," & ")),c(r," "),f(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend interface",e,d("implements ",c(t," & ")),c(r," "),f(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),d("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),f(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),f(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,d(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,d(".",t),d("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,d("(",t,":)")])}};function c(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function f(e){return d("{\n",h(c(e,"\n")),"\n}")}function d(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function h(e){return d(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var y=r(82841),m=r(37846),g=r(63832),v=r(76311);let b=Object.assign(e=>{let t=n.get(e);!t&&(t=(0,l.Vn)(e,u),n.set(e,t));return t},{reset(){n=new m.s(v.Q.print||2e3)}});b.reset(),y.T&&(0,g.zP)("print",()=>n?n.size:0)},35937:function(e,t,r){"use strict";function n(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}r.d(t,{Y:()=>n})},35128:function(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(30732);let{hasOwnProperty:i}=Object.prototype,o=function(e,t,r){return this.merge(e[r],t[r])},a=e=>isNaN(+e)?{}:[];class s{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||o}merge(e,t,r={}){let o=r.atPath;if(o?.length){let[n,...i]=o;void 0===e&&(e=a(n));let s=e[n];void 0===s&&i.length&&(s=a(i[0]));let l=this.merge(s,t,{...r,atPath:i});return s!==l&&((e=this.shallowCopyForMerge(e))[n]=l),e}return(Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,n.s)(t)&&(0,n.s)(e))?(Object.keys(t).forEach(r=>{if(i.call(e,r)){let n=e[r];if(t[r]!==n){let i=this.reconciler(e,t,r);i!==n&&((e=this.shallowCopyForMerge(e))[r]=i)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=n.s;pastCopies=new Set;shallowCopyForMerge(e){return(0,n.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}},37846:function(e,t,r){"use strict";r.d(t,{L:()=>l,s:()=>s});var n=r(44951),i=r(99018);let o=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(o.has(e)||(o.add(e),setTimeout(()=>{e.clean(),o.delete(e)},100)))}let s=function(e,t){let r=new n.k(e,t);return r.set=function(e,t){let r=n.k.prototype.set.call(this,e,t);return a(this),r},r},l=function(e,t){let r=new i.e(e,t);return r.set=function(e,t){let r=i.e.prototype.set.call(this,e,t);return a(this),r},r}},45740:function(e,t,r){"use strict";r.d(t,{N:()=>n});let n="function"==typeof(0,r(74971).w)(()=>window.document.createElement)},51550:function(e,t,r){"use strict";let n;r.d(t,{B:()=>l});var i=r(82841),o=r(76311),a=r(37846),s=r(63832);let l=Object.assign(function(e){return JSON.stringify(e,u)},{reset(){n=new a.L(o.Q.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(c))return t;let i=JSON.stringify(r),o=n.get(i);if(!o){r.sort();let e=JSON.stringify(r);o=n.get(e)||r,n.set(i,o),n.set(e,o)}let a=Object.create(e);return o.forEach(e=>{a[e]=t[e]}),a}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}i.T&&(0,s.zP)("canonicalStringify",()=>n.size),l.reset()},67832:function(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(23696),i=r(43941),o=r(82841),a=r(74416),s=r(76311),l=r(95818);let u=(0,r(94066).H)((e,t)=>{(0,a.kG)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);o.T&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,a._K)(2,e.kind)}),(0,a.kG)(r.length<=1,3,r.length)),t&&(0,a.kG)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,n.Vn)(e,{Field(t,n,o,s){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let n=e,o=[];for(let e of s)(n=n[e]).kind===i.h.FIELD&&o.push(n.alias?.value||n.name.value);throw o.splice(-1,1,t.name.value),(0,a._K)(5,t.alias.value,o.join("."),r[0].operation,(0,l.r)(e,"(anonymous)"))}}})},{max:s.Q.checkDocument||2e3})},99090:function(e,t,r){"use strict";function n(...e){let t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}r.d(t,{o:()=>n})},76554:function(e,t,r){"use strict";r.d(t,{AN:()=>i,e4:()=>n,pQ:()=>o});let n=Symbol.for("apollo.result.extensions"),i=Symbol.for("apollo.result.streamInfo"),o=Symbol.for("apollo.observableQuery.variablesUnknown")},66202:function(e,t,r){"use strict";function n(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}r.d(t,{F:()=>n})},9924:function(e,t,r){"use strict";r.d(t,{W:()=>f});var n=r(44129),i=r(66202),o=r(50894),a=r(37139),s=r(21501),l=r(32548),u=r(31761),c=r(2828);function f(e,{data:t,...r},{data:f,...h},p){return(0,n.D)(r,h)&&function e(t,r,i,o){if(r===i)return!0;let s=new Set;return t.selections.every(t=>{if(s.has(t)||(s.add(t),!(0,c.L)(t,o.variables)||d(t)))return!0;if((0,l.M)(t)){let a=(0,u.u)(t),s=r&&r[a],l=i&&i[a],c=t.selectionSet;if(!c)return(0,n.D)(s,l);let f=Array.isArray(s),d=Array.isArray(l);if(f!==d)return!1;if(f&&d){let t=s.length;if(l.length!==t)return!1;for(let r=0;ri});var n=r(32901);function i(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&(0,n.v)(t,e.variable.name,e.defaultValue)}),t}},83671:function(e,t,r){"use strict";r.d(t,{p:()=>i});var n=r(74416);function i(e){(0,n.kG)("Document"===e.kind,6),(0,n.kG)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,8),t}},50894:function(e,t,r){"use strict";function n(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}r.d(t,{k:()=>n})},37139:function(e,t,r){"use strict";r.d(t,{h:()=>i});var n=r(74416);function i(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let i=t&&t[r];return(0,n.kG)(i,9,r),i||null}default:return null}}},21501:function(e,t,r){"use strict";r.d(t,{p:()=>o});var n=r(74416),i=r(67832);function o(e){let t;for(let r of((0,i.A)(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,n._K)(12)}},63832:function(e,t,r){"use strict";r.d(t,{zP:()=>i});let n={};function i(e,t){n[e]=t}},94677:function(e,t,r){"use strict";r.d(t,{$:()=>i});var n=r(67832);function i(e){return(0,n.A)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},95818:function(e,t,r){"use strict";function n(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}r.d(t,{r:()=>n})},27796:function(e,t,r){"use strict";r.d(t,{i:()=>o});var n=r(74416),i=r(94677);function o(e){let t=(0,i.$)(e);return(0,n.kG)(t&&"query"===t.operation,13),t}},51402:function(e,t,r){"use strict";r.d(t,{Z:()=>i});var n=r(74971);let i=(0,n.w)(()=>globalThis)||(0,n.w)(()=>window)||(0,n.w)(()=>self)||(0,n.w)(()=>global)||(0,n.w)(function(){return n.w.constructor("return this")()})},74971:function(e,t,r){"use strict";function n(e){try{return e()}catch{}}r.d(t,{w:()=>n})},56224:function(e,t,r){"use strict";r.d(t,{F:()=>i});var n=r(23696);function i(e,t,r){let i=new Set(e),o=i.size;return(0,n.Vn)(t,{Directive(e){if(i.delete(e.name.value)&&(!r||!i.size))return n.$_}}),r?!i.size:i.sizei,q4:()=>a,su:()=>o});let i=n,o=n,a=n},16784:function(e,t,r){"use strict";r.d(t,{k:()=>n});let n=Array.isArray},32548:function(e,t,r){"use strict";function n(e){return"Field"===e.kind}r.d(t,{M:()=>n})},2737:function(e,t,r){"use strict";function n(e){return Array.isArray(e)&&e.length>0}r.d(t,{O:()=>n})},30732:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:()=>n})},7395:function(e,t,r){"use strict";r.d(t,{X:()=>i});let n=new Map;function i(e){let t=n.get(e)||1;return n.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},80329:function(e,t,r){"use strict";r.d(t,{V:()=>o});var n=r(77984),i=r(13977);let o=(0,r(94066).H)(function(e,t,r){let o,a;function s(e){return e!==o&&(a=r(o=e)),a}return Object.assign(e.pipe((0,n.U)(s),(0,i.d)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>s(e.getCurrentResult())})},{max:1,makeCacheKey:e=>e.slice(0,2)})},49405:function(e,t,r){"use strict";r.d(t,{J:()=>o});var n=r(82841),i=r(30732);function o(e){return n.T&&function(e){let t=new Set([e]);t.forEach(e=>{(0,i.s)(e)&&function(e){if(n.T&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,i.s)(e[r])&&t.add(e[r])})})}(e),e}},94066:function(e,t,r){"use strict";r.d(t,{H:()=>o});var n=r(63506),i=r(37846);function o(e,{max:t,makeCacheKey:r=e=>e}){let o=new n.B(!0),a=new i.s(t);return(...t)=>{let n=o.lookupArray(r(t)),i=a.get(n);if(i){if(i.error)throw i.error;return i.result}let s=a.set(n,{});try{return s.result=e(...t)}catch(e){throw s.error=e,e}}}},55680:function(e,t,r){"use strict";r.d(t,{b:()=>i});var n=r(35128);function i(e){let t=e[0]||{},r=e.length;if(r>1){let i=new n.w;for(let n=1;ni});var n=r(99090);function i(e,t){return(0,n.o)(e,t,t.variables&&{variables:(0,n.o)({...e&&e.variables,...t.variables})})}},35168:function(e,t,r){"use strict";function n(e){return e.catch(()=>{}),e}r.d(t,{c:()=>n})},31761:function(e,t,r){"use strict";function n(e){return e.alias?e.alias.value:e.name.value}r.d(t,{u:()=>n})},2828:function(e,t,r){"use strict";r.d(t,{L:()=>i});var n=r(74416);function i({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,i=e.name.value;(0,n.kG)(r&&1===r.length,16,i);let o=r[0];(0,n.kG)(o.name&&"if"===o.name.value,17,i);let a=o.value;(0,n.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,i),t.push({directive:e,ifArgument:o})}),t})(e).every(({directive:e,ifArgument:r})=>{let i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],(0,n.kG)(void 0!==i,15,e.name.value)):i=r.value.value,"skip"===e.name.value?!i:i})}},51632:function(e,t,r){"use strict";r.d(t,{v:()=>i});var n=r(7395);function i(e,t=0){let r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("")}},32901:function(e,t,r){"use strict";r.d(t,{v:()=>function e(t,r,o,a){if(o.kind===n.h.INT||o.kind===n.h.FLOAT)t[r.value]=Number(o.value);else if(o.kind===n.h.BOOLEAN||o.kind===n.h.STRING)t[r.value]=o.value;else if(o.kind===n.h.OBJECT){let n={};o.fields.map(t=>e(n,t.name,t.value,a)),t[r.value]=n}else if(o.kind===n.h.VARIABLE){let e=(a||{})[o.name.value];t[r.value]=e}else if(o.kind===n.h.LIST)t[r.value]=o.values.map(t=>{let n={};return e(n,r,t,a),n[r.value]});else if(o.kind===n.h.ENUM)t[r.value]=o.value;else if(o.kind===n.h.NULL)t[r.value]=null;else throw(0,i._K)(19,r.value,o.kind)}});var n=r(43941),i=r(74416)},74416:function(e,t,r){"use strict";r.d(t,{_K:()=>h,kG:()=>f});var n=r(82841),i=r(51402),o=r(2249),a=r(51632);let s="Invariant Violation";class l extends Error{constructor(e=s){super(e),this.name=s,Object.setPrototypeOf(this,l.prototype)}}let u=["debug","log","warn","error","silent"],c=u.indexOf(n.T?"log":"silent");function f(e,...t){if(!e)throw h(...t)}function d(e){return function(t,...r){if(u.indexOf(e)>=c){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=m(e))||(t=g(e,r),r=[])}n(t,...r)}}}function h(e,...t){return new l(m(e,t)||g(e,t))}f.debug=d("debug"),f.log=d("log"),f.warn=d("warn"),f.error=d("error");let p=Symbol.for("ApolloErrorMessageHandler_"+o.i);function y(e){if("string"==typeof e)return e;try{return(0,a.v)(e,2).slice(0,1e3)}catch{return""}}function m(e,t=[]){if(e)return i.Z[p]&&i.Z[p](e,t.map(y))}function g(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,y(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:o.i,message:e,args:t.map(y)}))}`}},35024:function(e,t,r){"use strict";r.d(t,{ZB:()=>a});var n=r(85452),i=r(55680);function o(...e){return(0,i.b)(e)}function a(e=!1){return{keyArgs:e,read(e,{canRead:t,readField:r}){if(!e)return e;let n=[],i="",o="";e.edges.forEach(e=>{t(r("node",e))&&(n.push(e),e.cursor&&(i=i||e.cursor||"",o=e.cursor||o))}),n.length>1&&i===o&&(i="");let{startCursor:a,endCursor:l}=e.pageInfo||{};return{...s(e),edges:n,pageInfo:{...e.pageInfo,startCursor:a||i,endCursor:l||o}}},merge(e,t,{args:r,isReference:n,readField:i}){if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;let a=t.edges?t.edges.map(e=>(n(e={...e})&&(e.cursor=i("cursor",e)),e)):[];if(t.pageInfo){let{pageInfo:e}=t,{startCursor:r,endCursor:n}=e,i=a[0],s=a[a.length-1];i&&r&&(i.cursor=r),s&&n&&(s.cursor=n);let l=i&&i.cursor;l&&!r&&(t=o(t,{pageInfo:{startCursor:l}}));let u=s&&s.cursor;u&&!n&&(t=o(t,{pageInfo:{endCursor:u}}))}let l=e.edges,u=[];if(r&&r.after){let e=l.findIndex(e=>e.cursor===r.after);e>=0&&(l=l.slice(0,e+1))}else if(r&&r.before){let e=l.findIndex(e=>e.cursor===r.before);u=e<0?l:l.slice(e),l=[]}else t.edges&&(l=[]);let c=[...l,...a,...u],f={...t.pageInfo,...e.pageInfo};if(t.pageInfo){let{hasPreviousPage:e,hasNextPage:r,startCursor:n,endCursor:i,...o}=t.pageInfo;Object.assign(f,o),l.length||(void 0!==e&&(f.hasPreviousPage=e),void 0!==n&&(f.startCursor=n)),u.length||(void 0!==r&&(f.hasNextPage=r),void 0!==i&&(f.endCursor=i))}return{...s(e),...s(t),edges:c,pageInfo:f}}}}let s=e=>(0,n._T)(e,l),l=["edges","pageInfo"]},2249:function(e,t,r){"use strict";r.d(t,{i:()=>n});let n="4.1.4"},19565:function(e,t,r){"use strict";r.d(t,{ZP:()=>O,TA:()=>x});var n=r(2784);function i(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t-1})})&&!d&&(d=!0,e())}t.push=function(){r.apply(void 0,arguments),n()},n()}).then(e)}v.lib=w,b.lib=E;let O=v},99018:function(e,t,r){"use strict";function n(){}r.d(t,{e:()=>i});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},44951:function(e,t,r){"use strict";function n(){}r.d(t,{k:()=>s});let i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},o="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class s{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new o,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new i(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},44129:function(e,t,r){"use strict";r.d(t,{D:()=>s});let{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;let a=n.call(t);if(a!==n.call(r))return!1;switch(a){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(f(t,r))return!0;let n=l(t),o=l(r),a=n.length;if(a!==o.length)return!1;for(let e=0;e=0&&e.indexOf(t,r)===r}(e,c)}}return!1}(e,t)}finally{a.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function f(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},63506:function(e,t,r){"use strict";r.d(t,{B:()=>s});let n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&rK,zW:()=>Y});var n=r(47748),i=r(31910);function o(e,t,r){var n,o,a;let s=Object.assign({},(0,i.j)()),l=(n=e,o=r.timeZone,a=r.locale??s.locale,new Intl.DateTimeFormat(a?[a.code,"en-US"]:void 0,{timeZone:o,timeZoneName:n}));return"formatToParts"in l?function(e,t){let r=e.formatToParts(t);for(let e=r.length-1;e>=0;--e)if("timeZoneName"===r[e].type)return r[e].value}(l,t):function(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}(l,t)}let a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={},l=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),u="06/25/2014, 00:00:00"===l||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===l;function c(e,t,r,n,i,o,a){let s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,i,o,a),s}let f=/^(Z)$/,d=/^([+-]\d{2})$/,h=/^([+-])(\d{2}):?(\d{2})$/;function p(e,t,r){let n,i;if(!e)return 0;let o=f.exec(e);if(o)return 0;if(o=d.exec(e))return m(n=parseInt(o[1],10))?-(36e5*n):NaN;if(o=h.exec(e)){n=parseInt(o[2],10);let e=parseInt(o[3],10);return m(n,e)?(i=36e5*Math.abs(n)+6e4*e,"+"===o[1]?-i:i):NaN}if(function(e){if(g[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),g[e]=!0,!0}catch(e){return!1}}(e)){var a;t=new Date(t||Date.now());let n=y(r?t:c((a=t).getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()),e);return-(r?n:function(e,t,r){let n=e.getTime()-t,i=y(new Date(n),r);if(t===i)return t;let o=y(new Date(n-=i-t),r);return i===o?i:Math.max(i,o)}(t,n,e))}return NaN}function y(e,t){let r=function(e,t){var r;let n=(s[r=t]||(s[r]=u?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),s[r]);return"formatToParts"in n?function(e,t){try{let r=e.formatToParts(t),n=[];for(let e=0;e=0?o:1e3+o)}function m(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}let g={},v={X:function(e,t,r){let n=b(r.timeZone,e);if(0===n)return"Z";switch(t){case"X":return E(n);case"XXXX":case"XX":return w(n);default:return w(n,":")}},x:function(e,t,r){let n=b(r.timeZone,e);switch(t){case"x":return E(n);case"xxxx":case"xx":return w(n);default:return w(n,":")}},O:function(e,t,r){let n=b(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+_(o,2)}(n,":");default:return"GMT"+w(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return o("short",e,r);default:return o("long",e,r)}}};function b(e,t){let r=e?p(e,t,!0)/6e4:t?.getTimezoneOffset()??0;if(Number.isNaN(r))throw RangeError("Invalid time zone specified: "+e);return r}function _(e,t){let r=Math.abs(e).toString();for(;r.length0?"-":"+")+_(Math.floor(r/60),2)+t+_(Math.floor(r%60),2)}function E(e,t){return e%60==0?(e>0?"-":"+")+_(Math.abs(e)/60,2):w(e,t)}function S(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e-t}let x=/^([0-9W+-]+)(T| )(.*)/,O=/^([0-9W+-]+)(.*)/,k=/^(\d{2})$/,T=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],C=/^(\d{4})/,P=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],A=/^-(\d{2})$/,R=/^-?(\d{3})$/,I=/^-?(\d{2})-?(\d{2})$/,D=/^-?W(\d{2})$/,M=/^-?W(\d{2})-?(\d{1})$/,j=/^(\d{2}([.,]\d*)?)$/,N=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,L=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,F=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;function U(e,t={}){if(arguments.length<1)throw TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);let r=null==t.additionalDigits?2:Number(t.additionalDigits);if(2!==r&&1!==r&&0!==r)throw RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);let n=function(e){let t,r={},n=x.exec(e);if(n?(r.date=n[1],t=n[3]):(n=O.exec(e))?(r.date=n[1],t=n[2]):(r.date=null,t=e),t){let e=F.exec(t);e?(r.time=t.replace(e[1],""),r.timeZone=e[1].trim()):r.time=t}return r}(e),{year:i,restDateString:o}=function(e,t){if(e){let r=T[t],n=P[t],i=C.exec(e)||n.exec(e);if(i){let t=i[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(i=k.exec(e)||r.exec(e)){let t=i[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(n.date,r),a=function(e,t){let r,n,i;if(null===t)return null;if(!e||!e.length)return(r=new Date(0)).setUTCFullYear(t),r;let o=A.exec(e);if(o)return(r=new Date(0),W(t,n=parseInt(o[1],10)-1))?(r.setUTCFullYear(t,n),r):new Date(NaN);if(o=R.exec(e)){r=new Date(0);let e=parseInt(o[1],10);return!function(e,t){if(t<1)return!1;let r=q(e);return(!r||!(t>366))&&(!!r||!(t>365))}(t,e)?new Date(NaN):(r.setUTCFullYear(t,0,e),r)}if(o=I.exec(e)){r=new Date(0),n=parseInt(o[1],10)-1;let e=parseInt(o[2],10);return W(t,n,e)?(r.setUTCFullYear(t,n,e),r):new Date(NaN)}if(o=D.exec(e))return V(i=parseInt(o[1],10)-1)?B(t,i):new Date(NaN);if(o=M.exec(e)){i=parseInt(o[1],10)-1;let e=parseInt(o[2],10)-1;return V(i,e)?B(t,i,e):new Date(NaN)}return null}(o,i);if(null===a||isNaN(a.getTime())||!a)return new Date(NaN);{let e,r=a.getTime(),i=0;if(n.time&&(null===(i=function(e){let t,r,n=j.exec(e);if(n)return H(t=parseFloat(n[1].replace(",",".")))?t%24*36e5:NaN;if(n=N.exec(e))return H(t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")))?t%24*36e5+6e4*r:NaN;if(n=L.exec(e)){t=parseInt(n[1],10),r=parseInt(n[2],10);let e=parseFloat(n[3].replace(",","."));return H(t,r,e)?t%24*36e5+6e4*r+1e3*e:NaN}return null}(n.time))||isNaN(i)))return new Date(NaN);if(n.timeZone||t.timeZone){if(isNaN(e=p(n.timeZone||t.timeZone,new Date(r+i))))return new Date(NaN)}else e=S(new Date(r+i)),e=S(new Date(r+i+e));return new Date(r+i+e)}}function B(e,t,r){t=t||0,r=r||0;let n=new Date(0);n.setUTCFullYear(e,0,4);let i=7*t+r+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+i),n}let z=[31,28,31,30,31,30,31,31,30,31,30,31],$=[31,29,31,30,31,30,31,31,30,31,30,31];function q(e){return e%400==0||e%4==0&&e%100!=0}function W(e,t,r){if(t<0||t>11)return!1;if(null!=r){if(r<1)return!1;let n=q(e);if(n&&r>$[t]||!n&&r>z[t])return!1}return!0}function V(e,t){return!(e<0)&&!(e>52)&&(null==t||!(t<0)&&!(t>6))}function H(e,t,r){return!(e<0)&&!(e>=25)&&(null==t||!(t<0)&&!(t>=60))&&(null==r||!(r<0)&&!(r>=60))}let G=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function K(e,t,r={}){let i=(t=String(t)).match(G);if(i){let n=U(r.originalDate||e,r);t=i.reduce(function(e,t){if("'"===t[0])return e;let i=e.indexOf(t),o="'"===e[i-1],a=e.replace(t,"'"+v[t[0]](n,t,r)+"'");return o?a.substring(0,i-1)+a.substring(i+1):a},t)}return(0,n.WU)(e,t,r)}function Y(e,t,r){let n=p(t,e=U(e,r),!0),i=new Date(e.getTime()-n),o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}},31910:function(e,t,r){"use strict";r.d(t,{j:()=>i});let n={};function i(){return n}},39541:function(e,t,r){"use strict";function n(e){return t=>{let r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}r.d(t,{u:()=>n})},56878:function(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(35624);function i(e){let t=(0,n.Q)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}},55630:function(e,t,r){"use strict";r.d(t,{d:()=>i});var n=r(18709);function i(e,...t){let r=n.L.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}},54783:function(e,t,r){"use strict";r.d(t,{I:()=>s});var n=r(66919),i=r(75448),o=r(18709),a=r(35624);function s(e,t,r){let{years:s=0,months:l=0,weeks:u=0,days:c=0,hours:f=0,minutes:d=0,seconds:h=0}=t,p=(0,a.Q)(e,r?.in),y=l||s?(0,i.z)(p,l+12*s):p,m=c||u?(0,n.E)(y,c+7*u):y;return(0,o.L)(r?.in||e,+m+1e3*(h+60*(d+60*f)))}},66919:function(e,t,r){"use strict";r.d(t,{E:()=>o});var n=r(18709),i=r(35624);function o(e,t,r){let o=(0,i.Q)(e,r?.in);return isNaN(t)?(0,n.L)(r?.in||e,NaN):(t&&o.setDate(o.getDate()+t),o)}},75448:function(e,t,r){"use strict";r.d(t,{z:()=>o});var n=r(18709),i=r(35624);function o(e,t,r){let o=(0,i.Q)(e,r?.in);if(isNaN(t))return(0,n.L)(r?.in||e,NaN);if(!t)return o;let a=o.getDate(),s=(0,n.L)(r?.in||e,o.getTime());return(s.setMonth(o.getMonth()+t+1,0),a>=s.getDate())?s:(o.setFullYear(s.getFullYear(),s.getMonth(),a),o)}},36490:function(e,t,r){"use strict";r.d(t,{U:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e)-(0,n.Q)(t);return r<0?-1:r>0?1:r}},57155:function(e,t,r){"use strict";r.d(t,{H_:()=>u,I7:()=>c,UU:()=>s,dP:()=>i,fH:()=>l,jE:()=>n,vh:()=>a,yJ:()=>o});let n=6048e5,i=864e5,o=6e4,a=36e5,s=525600,l=43200,u=1440,c=Symbol.for("constructDateFrom")},18709:function(e,t,r){"use strict";r.d(t,{L:()=>i});var n=r(57155);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n.I7 in e?e[n.I7](t):e instanceof Date?new e.constructor(t):new Date(t)}},47432:function(e,t,r){"use strict";r.d(t,{y:()=>i});var n=r(18709);function i(e){return(0,n.L)(e,Date.now())}},9136:function(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(56878),i=r(55630),o=r(57155),a=r(6826);function s(e,t,r){let[s,l]=(0,i.d)(r?.in,e,t),u=(0,a.b)(s),c=(0,a.b)(l);return Math.round((u-(0,n.D)(u)-(c-(0,n.D)(c)))/o.dP)}},79810:function(e,t,r){"use strict";r.d(t,{j:()=>o});var n=r(55630),i=r(9136);function o(e,t,r){let[o,s]=(0,n.d)(r?.in,e,t),l=a(o,s),u=Math.abs((0,i.w)(o,s));o.setDate(o.getDate()-l*u);let c=Number(a(o,s)===-l),f=l*(u-c);return 0===f?0:f}function a(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}},8607:function(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(39541),i=r(55630),o=r(57155);function a(e,t,r){let[a,s]=(0,i.d)(r?.in,e,t),l=(a-s)/o.vh;return(0,n.u)(r?.roundingMethod)(l)}},58157:function(e,t,r){"use strict";r.d(t,{_:()=>i});var n=r(35624);function i(e,t){return(0,n.Q)(e)-(0,n.Q)(t)}},13461:function(e,t,r){"use strict";r.d(t,{X:()=>a});var n=r(39541),i=r(57155),o=r(58157);function a(e,t,r){let a=(0,o._)(e,t)/i.yJ;return(0,n.u)(r?.roundingMethod)(a)}},85874:function(e,t,r){"use strict";r.d(t,{d:()=>l});var n=r(55630),i=r(36490),o=r(24524),a=r(27692),s=r(35624);function l(e,t,r){let[l,u,c]=(0,n.d)(r?.in,e,e,t),f=(0,i.U)(u,c),d=Math.abs(function(e,t,r){let[i,o]=(0,n.d)(void 0,e,t);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())}(u,c));if(d<1)return 0;1===u.getMonth()&&u.getDate()>27&&u.setDate(30),u.setMonth(u.getMonth()-f*d);let h=(0,i.U)(u,c)===-f;(function(e,t){let r=(0,s.Q)(e,void 0);return+(0,o.i)(r,void 0)==+(0,a.V)(r,t)})(l)&&1===d&&1===(0,i.U)(l,c)&&(h=!1);let p=f*(d-h);return 0===p?0:p}},43349:function(e,t,r){"use strict";r.d(t,{c:()=>o});var n=r(39541),i=r(58157);function o(e,t,r){let o=(0,i._)(e,t)/1e3;return(0,n.u)(r?.roundingMethod)(o)}},4182:function(e,t,r){"use strict";r.d(t,{o:()=>o});var n=r(55630),i=r(36490);function o(e,t,r){let[o,a]=(0,n.d)(r?.in,e,t),s=(0,i.U)(o,a),l=Math.abs(function(e,t,r){let[i,o]=(0,n.d)(void 0,e,t);return i.getFullYear()-o.getFullYear()}(o,a));o.setFullYear(1584),a.setFullYear(1584);let u=(0,i.U)(o,a)===-s,c=s*(l-u);return 0===c?0:c}},24524:function(e,t,r){"use strict";r.d(t,{i:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setHours(23,59,59,999),r}},14760:function(e,t,r){"use strict";r.d(t,{T:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setMinutes(59,59,999),r}},26836:function(e,t,r){"use strict";r.d(t,{t:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setSeconds(59,999),r}},27692:function(e,t,r){"use strict";r.d(t,{V:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r}},71437:function(e,t,r){"use strict";r.d(t,{E:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setMilliseconds(999),r}},62162:function(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(23,59,59,999),r}},47748:function(e,t,r){"use strict";r.d(t,{WU:()=>R});var n=r(68999),i=r(31910),o=r(9136),a=r(65933),s=r(35624),l=r(57155);function u(e,t){let r=(0,i.j)(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=(0,s.Q)(e,t?.in),a=o.getDay();return o.setDate(o.getDate()-(7*(a=o.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function h(e,t){let r=(0,s.Q)(e,t?.in),n=r.getFullYear(),o=(0,i.j)(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=(0,f.L)(t?.in||e,0);l.setFullYear(n+1,0,a),l.setHours(0,0,0,0);let c=u(l,t),d=(0,f.L)(t?.in||e,0);d.setFullYear(n,0,a),d.setHours(0,0,0,0);let h=u(d,t);return+r>=+c?n+1:+r>=+h?n:n-1}function p(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}let y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return p("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):p(r+1,2)},d:(e,t)=>p(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>p(e.getHours()%12||12,t.length),H:(e,t)=>p(e.getHours(),t.length),m:(e,t)=>p(e.getMinutes(),t.length),s:(e,t)=>p(e.getSeconds(),t.length),S(e,t){let r=t.length;return p(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},m={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return y.y(e,t)},Y:function(e,t,r,n){let i=h(e,n),o=i>0?i:1-i;return"YY"===t?p(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):p(o,t.length)},R:function(e,t){return p(d(e),t.length)},u:function(e,t){return p(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return p(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return p(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return p(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=function(e,t){let r=(0,s.Q)(e,t?.in);return Math.round((u(r,t)-function(e,t){let r=(0,i.j)(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=h(e,t),a=(0,f.L)(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),u(a,t)}(r,t))/l.jE)+1}(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):p(o,t.length)},I:function(e,t,r){let n=function(e,t){let r=(0,s.Q)(e,void 0);return Math.round((c(r)-function(e,t){let r=d(e,void 0),n=(0,f.L)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),c(n)}(r))/l.jE)+1}(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):p(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):y.d(e,t)},D:function(e,t,r){let n=function(e,t){let r=(0,s.Q)(e,void 0);return(0,o.w)(r,(0,a.e)(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):p(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return p(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return p(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return p(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return y.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):y.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):p(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):p(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):y.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):y.s(e,t)},S:function(e,t){return y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return v(n);case"XXXX":case"XX":return b(n);default:return b(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return v(n);case"xxxx":case"xx":return b(n);default:return b(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(n,":");default:return"GMT"+b(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(n,":");default:return"GMT"+b(n,":")}},t:function(e,t,r){return p(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return p(+e,t.length)}};function g(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+p(o,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):b(e,t)}function b(e,t=""){let r=Math.abs(e);return(e>0?"-":"+")+p(Math.trunc(r/60),2)+t+p(r%60,2)}let _=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},w=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},E={p:w,P:(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return _(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",_(i,t)).replace("{{time}}",w(o,t))}},S=/^D+$/,x=/^Y+$/,O=["D","DD","YY","YYYY"],k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,P=/''/g,A=/[a-zA-Z]/;function R(e,t,r){let o=(0,i.j)(),a=r?.locale??o.locale??n._,l=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,u=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=(0,s.Q)(e,r?.in);if(!(c instanceof Date||"object"==typeof c&&"[object Date]"===Object.prototype.toString.call(c))&&"number"!=typeof c||isNaN(+(0,s.Q)(c)))throw RangeError("Invalid time value");let f=t.match(T).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,E[t])(e,a.formatLong):e}).join("").match(k).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(C);return t?t[1].replace(P,"'"):e}(e)};if(m[t])return{isToken:!0,value:e};if(t.match(A))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});a.localize.preprocessor&&(f=a.localize.preprocessor(c,f));let d={firstWeekContainsDate:l,weekStartsOn:u,locale:a};return f.map(n=>{if(!n.isToken)return n.value;let i=n.value;return(!r?.useAdditionalWeekYearTokens&&x.test(i)||!r?.useAdditionalDayOfYearTokens&&S.test(i))&&function(e,t,r){let n=function(e,t,r){let n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),O.includes(e))throw RangeError(n)}(i,t,String(e)),(0,m[i[0]])(c,i,a.localize,d)}).join("")}},71704:function(e,t,r){"use strict";r.d(t,{Q:()=>d});var n=r(47432),i=r(68999),o=r(31910),a=r(56878),s=r(55630),l=r(36490),u=r(57155),c=r(85874),f=r(43349);function d(e,t){return function(e,t,r){let n,d=(0,o.j)(),h=r?.locale??d.locale??i._,p=(0,l.U)(e,t);if(isNaN(p))throw RangeError("Invalid time value");let y=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:p}),[m,g]=(0,s.d)(r?.in,...p>0?[t,e]:[e,t]),v=(0,f.c)(g,m),b=Math.round((v-((0,a.D)(g)-(0,a.D)(m))/1e3)/60);if(b<2)if(r?.includeSeconds)if(v<5)return h.formatDistance("lessThanXSeconds",5,y);else if(v<10)return h.formatDistance("lessThanXSeconds",10,y);else if(v<20)return h.formatDistance("lessThanXSeconds",20,y);else if(v<40)return h.formatDistance("halfAMinute",0,y);else if(v<60)return h.formatDistance("lessThanXMinutes",1,y);else return h.formatDistance("xMinutes",1,y);else if(0===b)return h.formatDistance("lessThanXMinutes",1,y);else return h.formatDistance("xMinutes",b,y);if(b<45)return h.formatDistance("xMinutes",b,y);if(b<90)return h.formatDistance("aboutXHours",1,y);if(bf});var n=r(47432),i=r(68999),o=r(31910),a=r(39541),s=r(56878),l=r(55630),u=r(36490),c=r(57155);function f(e,t){return function(e,t,r){let n,f=(0,o.j)(),d=r?.locale??f.locale??i._,h=(0,u.U)(e,t);if(isNaN(h))throw RangeError("Invalid time value");let p=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:h}),[y,m]=(0,l.d)(r?.in,...h>0?[t,e]:[e,t]),g=(0,a.u)(r?.roundingMethod??"round"),v=m.getTime()-y.getTime(),b=v/c.yJ,_=(v-((0,s.D)(m)-(0,s.D)(y)))/c.yJ,w=r?.unit;if("second"===(n=w||(b<1?"second":b<60?"minute":bi});var n=r(35624);function i(e,t){return+(0,n.Q)(e)>+(0,n.Q)(t)}},40648:function(e,t,r){"use strict";r.d(t,{R:()=>i});var n=r(35624);function i(e,t){return+(0,n.Q)(e)<+(0,n.Q)(t)}},63295:function(e,t,r){"use strict";r.d(t,{K:()=>o});var n=r(55630),i=r(6826);function o(e,t,r){let[o,a]=(0,n.d)(r?.in,e,t);return+(0,i.b)(o)==+(0,i.b)(a)}},73769:function(e,t,r){"use strict";r.d(t,{f:()=>o});var n=r(55630),i=r(9654);function o(e,t,r){let[o,a]=(0,n.d)(r?.in,e,t);return+(0,i.o)(o)==+(0,i.o)(a)}},16026:function(e,t,r){"use strict";r.d(t,{x:()=>i});var n=r(40029);function i(e,t){return+(0,n.F)(e)==+(0,n.F)(t)}},83418:function(e,t,r){"use strict";r.d(t,{x:()=>i});var n=r(55630);function i(e,t,r){let[i,o]=(0,n.d)(r?.in,e,t);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()}},657:function(e,t,r){"use strict";r.d(t,{q:()=>i});var n=r(4385);function i(e,t){return+(0,n.m)(e)==+(0,n.m)(t)}},14019:function(e,t,r){"use strict";r.d(t,{F:()=>i});var n=r(55630);function i(e,t,r){let[i,o]=(0,n.d)(r?.in,e,t);return i.getFullYear()===o.getFullYear()}},68999:function(e,t,r){"use strict";var n;r.d(t,{_:()=>c});let i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return (t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}let a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return(t,r={})=>{let n,i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let r=0;re.test(s)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(l,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let c={code:"en-US",formatDistance:(e,t,r)=>{let n,o=i[e];if(n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},formatLong:a,formatRelative:(e,t,r,n)=>s[e],localize:{ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(n={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{let r=e.match(n.matchPattern);if(!r)return null;let i=r[0],o=e.match(n.parsePattern);if(!o)return null;let a=n.valueCallback?n.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},6826:function(e,t,r){"use strict";r.d(t,{b:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setHours(0,0,0,0),r}},9654:function(e,t,r){"use strict";r.d(t,{o:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setMinutes(0,0,0),r}},40029:function(e,t,r){"use strict";r.d(t,{F:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setSeconds(0,0),r}},28687:function(e,t,r){"use strict";r.d(t,{N:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}},4385:function(e,t,r){"use strict";r.d(t,{m:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setMilliseconds(0),r}},65933:function(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(35624);function i(e,t){let r=(0,n.Q)(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}},50109:function(e,t,r){"use strict";r.d(t,{l:()=>a});var n=r(18709),i=r(66919),o=r(75448);function a(e,t,r){var a,s,l;let{years:u=0,months:c=0,weeks:f=0,days:d=0,hours:h=0,minutes:p=0,seconds:y=0}=t,m=(a=c+12*u,s=(0,o.z)(e,-a,r),l=d+7*f,(0,i.E)(s,-l,r));return(0,n.L)(r?.in||e,m-1e3*(y+60*(p+60*h)))}},35624:function(e,t,r){"use strict";r.d(t,{Q:()=>i});var n=r(18709);function i(e,t){return(0,n.L)(t||e,e)}},13419:function(e,t,r){"use strict";r.d(t,{Z:()=>O});var n=r(2784);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],a=t[r];return"function"==typeof n?`${n}`==`${a}`:i(n)&&i(a)?o(n,a):n===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Math.abs(e)}function d(e){return Math.sign(e)}function h(e){return g(e).map(Number)}function p(e){return e[y(e)]}function y(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function g(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(r,n,i,o={passive:!0}){let a;return"addEventListener"in r?(r.addEventListener(n,i,o),a=()=>r.removeEventListener(n,i,o)):(r.addListener(i),a=()=>r.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function _(e=0,t=0){let r=f(e-t);function n(r){return rt}return{length:r,max:t,min:e,constrain:function(r){return n(r)?rt},reachedMin:function(t){return t(g(r).forEach(n=>{let i=t[n],o=r[n],a=c(i)&&c(o);t[n]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},i=g(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,i)},optionsMediaQueries:function(t){return t.map(e=>g(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(T),P=(O=[],{init:function(e,t){return(O=t.filter(({options:e})=>!1!==C.optionsAtMedia(e).active)).forEach(t=>t.init(e,C)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){O=O.filter(e=>e.destroy())}}),A=b(),R=function(){let e,t={},r={init:function(t){e=t},emit:function(n){return(t[n]||[]).forEach(t=>t(e,n)),r},off:function(e,n){return t[e]=(t[e]||[]).filter(e=>e!==n),r},on:function(e,n){return t[e]=(t[e]||[]).concat([n]),r},clear:function(){t={}}};return r}(),{mergeOptions:I,optionsAtMedia:D,optionsMediaQueries:M}=C,{on:j,off:N,emit:L}=R,F=!1,U=I(S,x.globalOptions),B=I(U),z=[];function $(t,r){if(F)return;B=D(U=I(U,t)),z=r||z;let{container:c,slides:S}=B;o=(l(c)?e.querySelector(c):c)||e.children[0];let x=l(S)?o.querySelectorAll(S):S;a=[].slice.call(x||o.children),n=function t(r){let n=function(e,t,r,n,i,o,a){let c,S,{align:x,axis:O,direction:k,startIndex:T,loop:C,duration:P,dragFree:A,dragThreshold:R,inViewThreshold:I,slidesToScroll:D,skipSnaps:M,containScroll:j,watchResize:N,watchSlides:L,watchDrag:F,watchFocus:U}=o,B={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},z=B.measure(t),$=r.map(B.measure),q=function(e,t){let r="rtl"===t,n="y"===e,i=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){let{height:t,width:r}=e;return n?t:r},direction:function(e){return e*i}}}(O,k),W=q.measureSize(z),V={measure:function(e){return e/100*W}},H=function(e,t){let r={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(n,i){return l(e)?r[e](n):e(t,n,i)}}}(x,W),G=!C&&!!j,{slideSizes:K,slideSizesWithGaps:Y,startGap:Q,endGap:J}=function(e,t,r,n,i,o){let{measureSize:a,startEdge:s,endEdge:l}=e,u=r[0]&&i,c=function(){if(!u)return 0;let e=r[0];return f(t[s]-e[s])}(),d=u?parseFloat(o.getComputedStyle(p(n)).getPropertyValue(`margin-${l}`)):0,h=r.map(a),m=r.map((e,t,r)=>{let n=t===y(r);return t?n?h[t]+d:r[t+1][s]-e[s]:h[t]+c}).map(f);return{slideSizes:h,slideSizesWithGaps:m,startGap:c,endGap:d}}(q,z,$,r,C||!!j,i),X=function(e,t,r,n,i,o,a,l,u){let{startEdge:c,endEdge:d,direction:m}=e,g=s(r);return{groupSlides:function(e){return g?h(e).filter(e=>e%r==0).map(t=>e.slice(t,t+r)):e.length?h(e).reduce((r,s,u)=>{let h=p(r)||0,g=s===y(e),v=i[c]-o[h][c],b=i[c]-o[s][d],_=n||0!==h?0:m(a),w=f(b-(!n&&g?m(l):0)-(v+_));return u&&w>t+2&&r.push(s),g&&r.push(e.length),r},[]).map((t,r,n)=>{let i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}}(q,W,D,C,z,$,Q,J,0),{snaps:Z,snapsAligned:ee}=function(e,t,r,n,i){let{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=s(n).map(e=>p(e)[a]-e[0][o]).map(f).map(t.measure),u=n.map(e=>r[o]-e[o]).map(e=>-f(e)),c=s(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:c}}(q,H,z,$,X),et=-p(Z)+p(Y),{snapsContained:er,scrollContainLimit:en}=function(e,t,r,n,i){let o=_(-t+e,0),a=r.map((e,t)=>{let{min:n,max:i}=o,a=o.constrain(e),s=t===y(r);return t?s||function(e,t){return 1>=f(e-t)}(n,a)?n:function(e,t){return 1>=f(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){let e=a[0],t=p(a);return _(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return a;let{min:r,max:i}=s;return a.slice(r,i)}(),scrollContainLimit:s}}(W,et,ee,j,0),ei=G?er:ee,{limit:eo}=function(e,t,r){let n=t[0];return{limit:_(r?n-e:p(t),n)}}(et,ei,C),ea=function e(t,r,n){let{constrain:i}=_(0,t),o=t+1,a=s(r);function s(e){return n?f((o+e)%o):i(e)}function l(){return e(t,a,n)}let u={get:function(){return a},set:function(e){return a=s(e),u},add:function(e){return l().set(a+e)},clone:l};return u}(y(ei),T,C),es=ea.clone(),el=h(r),eu=function(e,t,r,n){let i=b(),o=1e3/60,a=null,s=0,l=0;function u(e){if(!l)return;a||(a=e,r(),r());let i=e-a;for(a=e,s+=i;s>=o;)r(),s-=o;n(s/o),l&&(l=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(eS),e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:i,scrollLooper:o,slideLooper:a,dragHandler:s,animation:l,eventHandler:u,scrollBounds:c,options:{loop:f}},d)=>{let h=e.settled(),p=!c.shouldConstrain(),y=f?h:h&&p,m=y&&!s.pointerDown();m&&l.stop();let g=r.get()*d+i.get()*(1-d);n.set(g),f&&(o.loop(e.direction()),a.loop()),t.to(n.get()),m&&u.emit("settle"),y||u.emit("scroll")})(eS,e)),ec=ei[ea.get()],ef=w(ec),ed=w(ec),eh=w(ec),ep=w(ec),ey=function(e,t,r,n,i,o){let a=0,s=0,l=i,u=.68,c=e.get(),h=0;function p(e){return l=e,m}function y(e){return u=e,m}let m={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){let t=n.get()-e.get(),i=0;return l?(r.set(e),a+=t/l,a*=u,c+=a,e.add(a),i=c-h):(a=0,r.set(n),e.set(n),i=t),s=d(i),h=c,m},settled:function(){return .001>f(n.get()-t.get())},useBaseFriction:function(){return y(.68)},useBaseDuration:function(){return p(i)},useFriction:y,useDuration:p};return m}(ef,eh,ed,ep,P,.68),em=function(e,t,r,n,i){let{reachedAny:o,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>f(e)-f(t))[0]}function u(t,n){let i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);let o=i.filter(e=>d(e)===n);return o.length?l(o):p(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:c,distance:d}=function(r){let n=e?a(r):s(r),{index:i}=t.map((e,t)=>({diff:u(e-n,0),index:t})).sort((e,t)=>f(e.diff)-f(t.diff))[0];return{index:i,distance:n}}(l),h=!e&&o(l);if(!n||h)return{index:c,distance:r};let p=r+u(t[c]-d,0);return{index:c,distance:p}},byIndex:function(e,r){let n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(C,ei,et,eo,ep),eg=function(e,t,r,n,i,o,a){function s(i){let s=i.distance,l=i.index!==t.get();o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(eu,ea,es,ey,em,ep,a),ev=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(eo),eb=b(),e_=function(e,t,r,n){let i,o={},a=null,s=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;let t=g(o).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:i}=o[n];return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(a=t),e||(s=t),t}}}(t,r,a,I),{slideRegistry:ew}=function(e,t,r,n,i,o){let{groupSlides:a}=i,{min:s,max:l}=n;return{slideRegistry:function(){let n=a(o);return 1===r.length?[o]:e&&"keepSnaps"!==t?n.slice(s,l).map((e,t,r)=>{let n=t===y(r);return t?n?m(y(o)-p(r)[0]+1,p(r)[0]):e:m(p(r[0])+1)}):n}()}}(G,j,ei,en,X,el),eE=function(e,t,r,n,i,o,a,l){let c={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(h){l&&(o.add(document,"keydown",d,!1),t.forEach((t,d)=>{o.add(t,"focus",t=>{(u(l)||l(h,t))&&function(t){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=r.findIndex(e=>e.includes(t));s(o)&&(i.useDuration(0),n.index(o,0),a.emit("slideFocus"))}(d)},c)}))}}}(e,r,ew,eg,ey,eb,a,U),eS={ownerDocument:n,ownerWindow:i,eventHandler:a,containerRect:z,slideRects:$,animation:eu,axis:q,dragHandler:function(e,t,r,n,i,o,a,s,l,c,h,p,y,m,g,w,E,S,x){let{cross:O,direction:k}=e,T=["INPUT","SELECT","TEXTAREA"],C={passive:!1},P=b(),A=b(),R=_(50,225).constrain(m.measure(20)),I={mouse:300,touch:400},D={mouse:500,touch:600},M=g?43:25,j=!1,N=0,L=0,F=!1,U=!1,B=!1,z=!1;function $(e){if(!v(e,n)&&e.touches.length>=2)return q(e);let t=o.readPoint(e),r=o.readPoint(e,O),a=f(t-N),l=f(r-L);if(!U&&!z&&(!e.cancelable||!(U=a>l)))return q(e);let u=o.pointerMove(e);a>w&&(B=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(k(u)),e.preventDefault()}function q(e){let t=h.byDistance(0,!1).index!==p.get(),r=o.pointerUp(e)*(g?D:I)[z?"mouse":"touch"],n=function(e,t){let r=p.add(-1*d(e)),n=h.byDistance(e,!g).distance;return g||f(e)e.preventDefault(),C).add(t,"touchmove",()=>void 0,C).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",q).add(t,"contextmenu",q).add(t,"click",W,!0);function s(s){(u(x)||x(e,s))&&function(e){let s=v(e,n);if((z=s,B=g&&s&&!e.buttons&&j,j=f(i.get()-a.get())>=2,!s||0===e.button)&&!function(e){let t=e.nodeName||"";return T.includes(t)}(e.target)){F=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),i.set(a);let n=z?r:t;A.add(n,"touchmove",$,C).add(n,"touchend",q).add(n,"mousemove",$,C).add(n,"mouseup",q),N=o.readPoint(e),L=o.readPoint(e,O),y.emit("pointerDown")}}(s)}},destroy:function(){P.clear(),A.clear()},pointerDown:function(){return F}}}(q,e,n,i,ep,function(e,t){let r,n;function i(e){return e.timeStamp}function o(r,n){let i=n||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(v(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,o(e)},pointerMove:function(e){let t=o(e)-o(n),a=i(e)-i(r)>170;return n=e,a&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=o(n)-o(r),a=i(e)-i(r),s=i(e)-i(n)>170,l=t/a;return a&&!s&&f(l)>.1?l:0},readPoint:o}}(q,i),ef,eu,eg,ey,em,ea,a,V,A,R,M,0,F),eventStore:eb,percentOfView:V,index:ea,indexPrevious:es,limit:eo,location:ef,offsetLocation:eh,previousLocation:ed,options:o,resizeHandler:function(e,t,r,n,i,o,a){let s,l,c=[e].concat(n),d=[],h=!1;function p(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(l=p(e),d=n.map(p),s=new ResizeObserver(r=>{(u(o)||o(i,r))&&function(r){for(let o of r){if(h)return;let r=o.target===e,a=n.indexOf(o.target),s=r?l:d[a];if(f(p(r?e:n[a])-s)>=.5){i.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{c.forEach(e=>s.observe(e))}))},destroy:function(){h=!0,s&&s.disconnect()}}}(t,a,i,r,q,N,B),scrollBody:ey,scrollBounds:function(e,t,r,n,i){let o=i.measure(10),a=i.measure(50),s=_(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",c=f(e[l]-t.get()),d=r.get()-t.get(),h=s.constrain(c/a);r.subtract(d*h),!i&&f(d)e.add(a))}}}(et,eo,eh,[ef,eh,ed,ep]),scrollProgress:ev,scrollSnapList:ei.map(ev.get),scrollSnaps:ei,scrollTarget:em,scrollTo:eg,slideLooper:function(e,t,r,n,i,o,a,s,l){let u=h(i),c=h(i).reverse(),f=y(p(c,a[0]),r,!1).concat(y(p(u,t-a[0]-1),-r,!0));function d(e,t){return e.reduce((e,t)=>e-i[t],t)}function p(e,t){return e.reduce((e,r)=>d(e,t)>0?e.concat([r]):e,[])}function y(i,a,u){let c=o.map((e,r)=>({start:e-n[r]+.5+a,end:e+t-.5+a}));return i.map(t=>{let n=u?0:-r,i=u?r:0,o=c[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:w(-1),translate:E(e,l[t]),target:()=>s.get()>o?n:i}})}return{canLoop:function(){return f.every(({index:e})=>.1>=d(u.filter(t=>t!==e),t))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:f}}(q,W,et,K,Y,Z,ei,eh,r),slideFocus:eE,slidesHandler:(S=!1,{init:function(e){L&&(c=new MutationObserver(t=>{!S&&(u(L)||L(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){c&&c.disconnect(),S=!0}}),slidesInView:e_,slideIndexes:el,slideRegistry:ew,slidesToScroll:X,target:ep,translate:E(q,t)};return eS}(e,o,a,k,T,r,R);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(B),M([U,...z.map(({options:e})=>e)]).forEach(e=>A.add(e,"change",q)),B.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(G),n.eventHandler.init(G),n.resizeHandler.init(G),n.slidesHandler.init(G),n.options.loop&&n.slideLooper.loop(),o.offsetParent&&a.length&&n.dragHandler.init(G),i=P.init(G,z))}function q(e,t){let r=H();W(),$(I({startIndex:r},e),t),R.emit("reInit")}function W(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),P.destroy(),A.clear()}function V(e,t,r){B.active&&!F&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),n.scrollTo.index(e,r||0))}function H(){return n.index.get()}let G={canScrollNext:function(){return n.index.add(1).get()!==H()},canScrollPrev:function(){return n.index.add(-1).get()!==H()},containerNode:function(){return o},internalEngine:function(){return n},destroy:function(){F||(F=!0,A.clear(),W(),R.emit("destroy"),R.clear())},off:N,on:j,emit:L,plugins:function(){return i},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:q,rootNode:function(){return e},scrollNext:function(e){V(n.index.add(1).get(),e,-1)},scrollPrev:function(e){V(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.offsetLocation.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:V,selectedScrollSnap:H,slideNodes:function(){return a},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return $(t,r),setTimeout(()=>R.emit("init"),0),G}function O(e={},t=[]){let r=(0,n.useRef)(e),i=(0,n.useRef)(t),[s,l]=(0,n.useState)(),[u,c]=(0,n.useState)(),f=(0,n.useCallback)(()=>{s&&s.reInit(r.current,i.current)},[s]);return(0,n.useEffect)(()=>{o(r.current,e)||(r.current=e,f())},[e,f]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=a(e),n=a(t);return r.every((e,t)=>o(e,n[t]))}(i.current,t)&&(i.current=t,f())},[t,f]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){x.globalOptions=O.globalOptions;let e=x(u,r.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[c,s]}x.globalOptions=void 0,O.globalOptions=void 0},51211:function(e,t,r){"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{a:()=>n})},6065:function(e,t,r){"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,o=n;if(0===i.length)return"[]";if(o.length>2)return"[Array]";let r=Math.min(10,i.length),a=i.length-r,s=[];for(let t=0;t1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}var a=t,s=n;let l=Object.entries(a);return 0===l.length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(a)+"]":"{ "+l.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{X:()=>n})},66467:function(e,t,r){"use strict";var n,i;r.d(t,{UG:()=>l,WU:()=>o,h8:()=>a,ku:()=>n});class o{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let a={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},s=new Set(Object.keys(a));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},4767:function(e,t,r){"use strict";r.d(t,{LZ:()=>o,wv:()=>i});var n=r(18370);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t0===t?e:e.slice(i)).slice(null!=(t=o)?t:0,a+1)}function o(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.FD)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,f=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||s),d="",h=o&&(0,n.FD)(e.charCodeAt(0));return(f&&!h||a)&&(d+="\n"),d+=r,(f||c)&&(d+="\n"),'"""'+d+'"""'}},18370:function(e,t,r){"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.d(t,{FD:()=>n,HQ:()=>s,LQ:()=>a,X1:()=>i})},43941:function(e,t,r){"use strict";var n,i;r.d(t,{h:()=>n}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},23696:function(e,t,r){"use strict";r.d(t,{$_:()=>s,Vn:()=>l});var n=r(51211),i=r(6065),o=r(66467),a=r(43941);let s=Object.freeze({});function l(e,t,r=o.h8){let u,c,f,d=new Map;for(let e of Object.values(a.h))d.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let h=Array.isArray(e),p=[e],y=-1,m=[],g=e,v=[],b=[];do{var _,w,E;let e,a=++y===p.length,l=a&&0!==m.length;if(a){if(c=0===b.length?void 0:v[v.length-1],g=f,f=b.pop(),l)if(h){g=g.slice();let e=0;for(let[t,r]of m){let n=t-e;null===r?(g.splice(n,1),e++):g[n]=r}}else for(let[e,t]of(g={...g},m))g[e]=t;y=u.index,p=u.keys,m=u.edits,h=u.inArray,u=u.prev}else if(f){if(null==(g=f[c=h?y:p[y]]))continue;v.push(c)}if(!Array.isArray(g)){(0,o.UG)(g)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(g)}.`);let r=a?null==(_=d.get(g.kind))?void 0:_.leave:null==(w=d.get(g.kind))?void 0:w.enter;if((e=null==r?void 0:r.call(t,g,c,f,v,b))===s)break;if(!1===e){if(!a){v.pop();continue}}else if(void 0!==e&&(m.push([c,e]),!a))if((0,o.UG)(e))g=e;else{v.pop();continue}}void 0===e&&l&&m.push([c,g]),a?v.pop():(u={inArray:h,index:y,keys:p,edits:m,prev:u},p=(h=Array.isArray(g))?g:null!=(E=r[g.kind])?E:[],y=-1,m=[],f&&b.push(f),f=g)}while(void 0!==u);return 0!==m.length?m[m.length-1][1]:e}},77898:function(e,t,r){"use strict";r.d(t,{A:()=>P});var n,i,o=r(4767);let a=/\r\n|[\n\r]/g;function s(e,t){let r=0,n=1;for(let i of e.body.matchAll(a)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function l(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,l=t.column+s,c=`${e.name}:${a}:${l} `,f=n.split(/\r\n|[\n\r]/g),d=f[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+u([[`${a-1} |`,f[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,f[i+1]]])}function u(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class c extends Error{constructor(e,...t){var r,n,i,o;let{nodes:a,source:l,positions:u,path:d,originalError:h,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=h?h:void 0,this.nodes=f(Array.isArray(a)?a:a?[a]:void 0);let y=f(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=l?l:null==y||null==(n=y[0])?void 0:n.source,this.positions=null!=u?u:null==y?void 0:y.map(e=>e.start),this.locations=u&&l?u.map(e=>s(l,e)):null==y?void 0:y.map(e=>s(e.source,e.start));let m="object"==typeof(o=null==h?void 0:h.extensions)&&null!==o?null==h?void 0:h.extensions:void 0;this.extensions=null!=(i=null!=p?p:m)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+l((t=r.loc).source,s(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+l(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function f(e){return void 0===e||0===e.length?void 0:e}function d(e,t,r){return new c(`Syntax Error: ${r}`,{source:e,positions:[t]})}var h=r(66467),p=r(18370);(n=i||(i={})).SOF="",n.EOF="",n.BANG="!",n.DOLLAR="$",n.AMP="&",n.PAREN_L="(",n.PAREN_R=")",n.DOT=".",n.SPREAD="...",n.COLON=":",n.EQUALS="=",n.AT="@",n.BRACKET_L="[",n.BRACKET_R="]",n.BRACE_L="{",n.PIPE="|",n.BRACE_R="}",n.NAME="Name",n.INT="Int",n.FLOAT="Float",n.STRING="String",n.BLOCK_STRING="BlockString",n.COMMENT="Comment";class y{constructor(e){let t=new h.WU(i.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==i.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,a=t;for(;a=0&&e<=55295||e>=57344&&e<=1114111}function g(e,t){return v(e.charCodeAt(t))&&b(e.charCodeAt(t+1))}function v(e){return e>=55296&&e<=56319}function b(e){return e>=56320&&e<=57343}function _(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return i.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function w(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new h.WU(t,r,n,o,a,i)}function E(e,t,r){if(!(0,p.X1)(r))throw d(e.source,t,`Invalid number, expected digit but got: ${_(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,p.X1)(n.charCodeAt(i));)++i;return i}function S(e,t){return x(e.charCodeAt(t))<<12|x(e.charCodeAt(t+1))<<8|x(e.charCodeAt(t+2))<<4|x(e.charCodeAt(t+3))}function x(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var O=r(51211),k=r(6065);let T=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,k.X)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other relied on modules, use "resolutions" to ensure only one version is installed. https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and spurious results.`)}}return!1};class C{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,O.a)(!1,`Body must be a string. Received: ${(0,k.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,O.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,O.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function P(e){let t=T(e,C)?e:new C(e),r=t.body,n=new y(t),a="",s=!1;for(;n.advance().kind!==i.EOF;){var l;let e=n.token,t=e.kind,u=(l=e.kind)!==i.BANG&&l!==i.DOLLAR&&l!==i.AMP&&l!==i.PAREN_L&&l!==i.PAREN_R&&l!==i.DOT&&l!==i.SPREAD&&l!==i.COLON&&l!==i.EQUALS&&l!==i.AT&&l!==i.BRACKET_L&&l!==i.BRACKET_R&&l!==i.BRACE_L&&l!==i.PIPE&&l!==i.BRACE_R;s&&(u||e.kind===i.SPREAD)&&(a+=" ");let c=r.slice(e.start,e.end);t===i.BLOCK_STRING?a+=(0,o.LZ)(e.value,{minimize:!0}):a+=c,s=u}return a}},31673:function(e,t,r){"use strict";r.d(t,{Nw:()=>en,ZP:()=>er});let{entries:n,setPrototypeOf:i,isFrozen:o,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object,{freeze:l,seal:u,create:c}=Object,{apply:f,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),u||(u=function(e){return e}),f||(f=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i1?t-1:0),n=1;n1?r-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:v;i&&i(e,null);let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){let e=r(i);e!==i&&(o(t)||(t[n]=e),i=e)}e[i]=!0}return e}function P(e){let t=c(null);for(let[r,i]of n(e))x(e,r)&&(Array.isArray(i)?t[r]=function(e){for(let t=0;t/gm),W=u(/\$\{[\w\W]*/gm),V=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),H=u(/^aria-[\-\w]+$/),G=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),Y=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=u(/^html$/i);var J,X=Object.freeze({__proto__:null,ARIA_ATTR:H,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:u(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:V,DOCTYPE_NAME:Q,ERB_EXPR:q,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:$,TMPLIT_EXPR:W});let Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ee=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var et=function e(){let t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.3.3",i.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return i.isSupported=!1,i;let{document:o}=r,a=o,s=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:f,Node:d,Element:T,NodeFilter:$,NamedNodeMap:q=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:W,DOMParser:V,trustedTypes:H}=r,K=T.prototype,Y=A(K,"cloneNode"),J=A(K,"remove"),et=A(K,"nextSibling"),er=A(K,"childNodes"),en=A(K,"parentNode");if("function"==typeof f){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ei="",{implementation:eo,createNodeIterator:ea,createDocumentFragment:es,getElementsByTagName:el}=o,{importNode:eu}=a,ec=ee();i.isSupported="function"==typeof n&&"function"==typeof en&&eo&&void 0!==eo.createHTMLDocument;let{MUSTACHE_EXPR:ef,ERB_EXPR:ed,TMPLIT_EXPR:eh,DATA_ATTR:ep,ARIA_ATTR:ey,IS_SCRIPT_OR_DATA:em,ATTR_WHITESPACE:eg,CUSTOM_ELEMENT:ev}=X,{IS_ALLOWED_URI:eb}=X,e_=null,ew=C({},[...R,...I,...D,...j,...L]),eE=null,eS=C({},[...F,...U,...B,...z]),ex=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eO=null,ek=null,eT=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eC=!0,eP=!0,eA=!1,eR=!0,eI=!1,eD=!0,eM=!1,ej=!1,eN=!1,eL=!1,eF=!1,eU=!1,eB=!0,ez=!1,e$=!0,eq=!1,eW={},eV=null,eH=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eG=null,eK=C({},["audio","video","img","source","image","track"]),eY=null,eQ=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eJ="http://www.w3.org/1998/Math/MathML",eX="http://www.w3.org/2000/svg",eZ="http://www.w3.org/1999/xhtml",e0=eZ,e1=!1,e2=null,e4=C({},[eJ,eX,eZ],b),e3=C({},["mi","mo","mn","ms","mtext"]),e5=C({},["annotation-xml"]),e6=C({},["title","style","font","a","script"]),e8=null,e9=["application/xhtml+xml","text/html"],e7=null,te=null,tt=o.createElement("form"),tr=function(e){return e instanceof RegExp||e instanceof Function},tn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=P(e),e7="application/xhtml+xml"===(e8=-1===e9.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?b:v,e_=x(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,e7):ew,eE=x(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,e7):eS,e2=x(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,b):e4,eY=x(e,"ADD_URI_SAFE_ATTR")?C(P(eQ),e.ADD_URI_SAFE_ATTR,e7):eQ,eG=x(e,"ADD_DATA_URI_TAGS")?C(P(eK),e.ADD_DATA_URI_TAGS,e7):eK,eV=x(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,e7):eH,eO=x(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,e7):P({}),ek=x(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,e7):P({}),eW=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,eC=!1!==e.ALLOW_ARIA_ATTR,eP=!1!==e.ALLOW_DATA_ATTR,eA=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eR=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eI=e.SAFE_FOR_TEMPLATES||!1,eD=!1!==e.SAFE_FOR_XML,eM=e.WHOLE_DOCUMENT||!1,eL=e.RETURN_DOM||!1,eF=e.RETURN_DOM_FRAGMENT||!1,eU=e.RETURN_TRUSTED_TYPE||!1,eN=e.FORCE_BODY||!1,eB=!1!==e.SANITIZE_DOM,ez=e.SANITIZE_NAMED_PROPS||!1,e$=!1!==e.KEEP_CONTENT,eq=e.IN_PLACE||!1,eb=e.ALLOWED_URI_REGEXP||G,e0=e.NAMESPACE||eZ,e3=e.MATHML_TEXT_INTEGRATION_POINTS||e3,e5=e.HTML_INTEGRATION_POINTS||e5,ex=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tr(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ex.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tr(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ex.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ex.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eI&&(eP=!1),eF&&(eL=!0),eW&&(e_=C({},L),eE=c(null),!0===eW.html&&(C(e_,R),C(eE,F)),!0===eW.svg&&(C(e_,I),C(eE,U),C(eE,z)),!0===eW.svgFilters&&(C(e_,D),C(eE,U),C(eE,z)),!0===eW.mathMl&&(C(e_,j),C(eE,B),C(eE,z))),x(e,"ADD_TAGS")||(eT.tagCheck=null),x(e,"ADD_ATTR")||(eT.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?eT.tagCheck=e.ADD_TAGS:(e_===ew&&(e_=P(e_)),C(e_,e.ADD_TAGS,e7))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?eT.attributeCheck=e.ADD_ATTR:(eE===eS&&(eE=P(eE)),C(eE,e.ADD_ATTR,e7))),e.ADD_URI_SAFE_ATTR&&C(eY,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(eV===eH&&(eV=P(eV)),C(eV,e.FORBID_CONTENTS,e7)),e.ADD_FORBID_CONTENTS&&(eV===eH&&(eV=P(eV)),C(eV,e.ADD_FORBID_CONTENTS,e7)),e$&&(e_["#text"]=!0),eM&&C(e_,["html","head","body"]),e_.table&&(C(e_,["tbody"]),delete eO.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ei=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=Z(H,s)),null!==t&&"string"==typeof ei&&(ei=t.createHTML(""));l&&l(e),te=e}},ti=C({},[...I,...D,...M]),to=C({},[...j,...N]),ta=function(e){let t=en(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let r=v(e.tagName),n=v(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eX?t.namespaceURI===eZ?"svg"===r:t.namespaceURI===eJ?"svg"===r&&("annotation-xml"===n||e3[n]):!!ti[r]:e.namespaceURI===eJ?t.namespaceURI===eZ?"math"===r:t.namespaceURI===eX?"math"===r&&e5[n]:!!to[r]:e.namespaceURI===eZ?(t.namespaceURI!==eX||!!e5[n])&&(t.namespaceURI!==eJ||!!e3[n])&&!to[r]&&(e6[r]||!ti[r]):"application/xhtml+xml"===e8&&!!e2[e.namespaceURI])},ts=function(e){m(i.removed,{element:e});try{en(e).removeChild(e)}catch(t){J(e)}},tl=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eL||eF)try{ts(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tu=function(e){let r=null,n=null;if(eN)e=""+e;else{let t=_(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===e8&&e0===eZ&&(e=''+e+"");let i=t?t.createHTML(e):e;if(e0===eZ)try{r=new V().parseFromString(i,e8)}catch(e){}if(!r||!r.documentElement){r=eo.createDocument(e0,"template",null);try{r.documentElement.innerHTML=e1?ei:i}catch(e){}}let a=r.body||r.documentElement;return(e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),e0===eZ)?el.call(r,eM?"html":"body")[0]:eM?r.documentElement:a},tc=function(e){return ea.call(e.ownerDocument||e,e,$.SHOW_ELEMENT|$.SHOW_COMMENT|$.SHOW_TEXT|$.SHOW_PROCESSING_INSTRUCTION|$.SHOW_CDATA_SECTION,null)},tf=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof q)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},td=function(e){return"function"==typeof d&&e instanceof d};function th(e,t,r){h(e,e=>{e.call(i,t,r,te)})}let tp=function(e){let t=null;if(th(ec.beforeSanitizeElements,e,null),tf(e))return ts(e),!0;let r=e7(e.nodeName);if(th(ec.uponSanitizeElement,e,{tagName:r,allowedTags:e_}),eD&&e.hasChildNodes()&&!td(e.firstElementChild)&&O(/<[/\w!]/g,e.innerHTML)&&O(/<[/\w!]/g,e.textContent)||7===e.nodeType||eD&&8===e.nodeType&&O(/<[/\w]/g,e.data))return ts(e),!0;if(!(eT.tagCheck instanceof Function&&eT.tagCheck(r))&&(!e_[r]||eO[r])){if(!eO[r]&&tm(r)&&(ex.tagNameCheck instanceof RegExp&&O(ex.tagNameCheck,r)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(r)))return!1;if(e$&&!eV[r]){let t=en(e)||e.parentNode,r=er(e)||e.childNodes;if(r&&t){let n=r.length;for(let i=n-1;i>=0;--i){let n=Y(r[i],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,et(e))}}}return ts(e),!0}return e instanceof T&&!ta(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&O(/<\/no(script|embed|frames)/i,e.innerHTML)?(ts(e),!0):(eI&&3===e.nodeType&&(t=e.textContent,h([ef,ed,eh],e=>{t=w(t,e," ")}),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),th(ec.afterSanitizeElements,e,null),!1)},ty=function(e,t,r){if(ek[t]||eB&&("id"===t||"name"===t)&&(r in o||r in tt))return!1;if(eP&&!ek[t]&&O(ep,t));else if(eC&&O(ey,t));else if(eT.attributeCheck instanceof Function&&eT.attributeCheck(t,e));else if(!eE[t]||ek[t]){if(!(tm(e)&&(ex.tagNameCheck instanceof RegExp&&O(ex.tagNameCheck,e)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(e))&&(ex.attributeNameCheck instanceof RegExp&&O(ex.attributeNameCheck,t)||ex.attributeNameCheck instanceof Function&&ex.attributeNameCheck(t,e))||"is"===t&&ex.allowCustomizedBuiltInElements&&(ex.tagNameCheck instanceof RegExp&&O(ex.tagNameCheck,r)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(r))))return!1}else if(eY[t]);else if(O(eb,w(r,eg,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===E(r,"data:")&&eG[e]);else if(eA&&!O(em,w(r,eg,"")));else if(r)return!1;return!0},tm=function(e){return"annotation-xml"!==e&&_(e,ev)},tg=function(e){th(ec.beforeSanitizeAttributes,e,null);let{attributes:r}=e;if(!r||tf(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eE,forceKeepAttr:void 0},o=r.length;for(;o--;){let{name:a,namespaceURI:s,value:l}=r[o],u=e7(a),c="value"===a?l:S(l);if(n.attrName=u,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,th(ec.uponSanitizeAttribute,e,n),c=n.attrValue,ez&&("id"===u||"name"===u)&&(tl(a,e),c="user-content-"+c),eD&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)||"attributename"===u&&_(c,"href")){tl(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr||!eR&&O(/\/>/i,c)){tl(a,e);continue}eI&&h([ef,ed,eh],e=>{c=w(c,e," ")});let f=e7(e.nodeName);if(!ty(f,u,c)){tl(a,e);continue}if(t&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(f,u)){case"TrustedHTML":c=t.createHTML(c);break;case"TrustedScriptURL":c=t.createScriptURL(c)}if(c!==l)try{s?e.setAttributeNS(s,a,c):e.setAttribute(a,c),tf(e)?ts(e):y(i.removed)}catch(t){tl(a,e)}}th(ec.afterSanitizeAttributes,e,null)},tv=function e(t){let r=null,n=tc(t);for(th(ec.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)th(ec.uponSanitizeShadowNode,r,null),tp(r),tg(r),r.content instanceof u&&e(r.content);th(ec.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,s=null,l=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!td(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}else throw k("toString is not a function");if(!i.isSupported)return e;if(ej||tn(r),i.removed=[],"string"==typeof e&&(eq=!1),eq){if(e.nodeName){let t=e7(e.nodeName);if(!e_[t]||eO[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)1===(o=(n=tu("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!eL&&!eI&&!eM&&-1===e.indexOf("<"))return t&&eU?t.createHTML(e):e;if(!(n=tu(e)))return eL?null:eU?ei:""}n&&eN&&ts(n.firstChild);let c=tc(eq?e:n);for(;s=c.nextNode();)tp(s),tg(s),s.content instanceof u&&tv(s.content);if(eq)return e;if(eL){if(eF)for(l=es.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(eE.shadowroot||eE.shadowrootmode)&&(l=eu.call(a,l,!0)),l}let f=eM?n.outerHTML:n.innerHTML;return eM&&e_["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&O(Q,n.ownerDocument.doctype.name)&&(f="\n"+f),eI&&h([ef,ed,eh],e=>{f=w(f,e," ")}),t&&eU?t.createHTML(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tn(e),ej=!0},i.clearConfig=function(){te=null,ej=!1},i.isValidAttribute=function(e,t,r){return te||tn({}),ty(e7(e),e7(t),r)},i.addHook=function(e,t){"function"==typeof t&&m(ec[e],t)},i.removeHook=function(e,t){if(void 0!==t){let r=p(ec[e],t);return -1===r?void 0:g(ec[e],r,1)[0]}return y(ec[e])},i.removeHooks=function(e){ec[e]=[]},i.removeAllHooks=function(){ec=ee()},i}(),er=et,en=et.sanitize.bind(et);et.isSupported,et.addHook.bind(et),et.removeHook.bind(et),et.removeHooks.bind(et),et.removeAllHooks.bind(et),et.setConfig.bind(et),et.clearConfig.bind(et),et.isValidAttribute.bind(et),et.version,et.removed},2638:function(e,t,r){"use strict";let n;r.d(t,{g7:()=>g,Px:()=>B,dP:()=>U,re:()=>$});let i=()=>Object.create(null),{forEach:o,slice:a}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class l{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return o.call(e,e=>t=t.getChildTrie(e)),s.call(t,"data")?t.data:t.data=this.makeData(a.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&rglobalThis)||p(()=>global)||Object.create(null),g=m[y]||Array[y]||function(e){try{Object.defineProperty(m,y,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",h++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=f;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===d)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=d),!1}getValue(){if(this.hasValue())return f.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=f;f={parent:o,slots:i};try{return t.apply(n,r)}finally{f=o}}static bind(e){let t=f;return function(){let r=f;try{return f=t,e.apply(this,arguments)}finally{f=r}}}static noContext(e,t,r){if(!f)return e.apply(r,t);{let n=f;try{return f=null,e.apply(r,t)}finally{f=n}}}}),{bind:v,noContext:b}=g,_=new g,{hasOwnProperty:w}=Object.prototype,E=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function S(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let x=[];function O(e,t){if(!e)throw Error(t||"assertion failure")}function k(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function T(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class C{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++C.count}peek(){if(1===this.value.length&&!R(this))return P(this),this.value[0]}recompute(e){var t,r,n;return O(!this.recomputing,"already recomputing"),P(this),R(this)?(t=this,r=e,N(t),_.withValue(t,A,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{S(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,R(n)||function(e){I(e,M)}(n)),T(t.value)):T(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,I(e,D),S(this))}dispose(){this.setDirty(),N(this),I(this,(e,t)=>{e.setDirty(),L(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=x.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(E(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),x.push(this.deps),this.deps=null)}}function P(e){let t=_.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),R(e)?D(t,e):M(t,e),t}function A(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!k(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function R(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}C.count=0;function I(e,t){let r=e.parents.size;if(r){let n=E(e.parents);for(let i=0;i0&&e.childValues.forEach((t,r)=>{L(e,r)}),e.forgetDeps(),O(null===e.dirtyChildren)}function L(e,t){t.parents.delete(e),e.childValues.delete(t),j(e,t)}let F={setDirty:!0,dispose:!0,forget:!0};function U(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=_.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(S(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&w.call(F,r)?r:"setDirty";E(n).forEach(e=>e[i]()),t.delete(e),S(n)}},n}function B(...e){return(n||(n=new l("function"==typeof WeakMap))).lookupArray(e)}let z=new Set;function $(e,{max:t=65536,keyArgs:r,makeCacheKey:n=B,normalizeResult:i,subscribe:o,cache:a=c.e}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new C(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let l=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),z.add(s),_.hasValue()||(z.forEach(e=>e.clean()),z.clear()),l};function u(e){let t=e&&s.get(e);t&&t.setDirty()}function f(e){let t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),l.dirtyKey=u,l.dirty=function(){u(n.apply(null,arguments))},l.peekKey=f,l.peek=function(){return f(n.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}},58491:function(e,t,r){"use strict";r.d(t,{Z:()=>w});var n={};r.r(n),r.d(n,{exclude:()=>_,extract:()=>p,parse:()=>y,parseUrl:()=>g,pick:()=>b,stringify:()=>m,stringifyUrl:()=>v});let i="%[a-f0-9]{2}",o=RegExp("("+i+")|([^%]+?)","gi"),a=RegExp("("+i+")+","gi");function s(e,t){if("string"!=typeof e||"string"!=typeof t)throw TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];let r=e.indexOf(t);return -1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}let l=Symbol("encodeFragmentIdentifier");function u(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`):encodeURIComponent(e):e}function f(e,t){if(t.decode){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{var r=e;let t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(r);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let r=1;r{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator)?r.split(e.arrayFormatSeparator).map(t=>f(t,e)):null===r?r:f(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!i){n[t]=r?f(r,e):r;return}let o=null===r?[]:f(r,e).split(e.arrayFormatSeparator);if(void 0===n[t]){n[t]=o;return}n[t]=[...n[t],...o]};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[...[r[e]].flat(),t]}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let i of e.split("&")){if(""===i)continue;let e=t.decode?i.replaceAll("+"," "):i,[o,a]=s(e,"=");void 0===o&&(o=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:f(a,t),r(f(o,t),a,n)}for(let[e,r]of Object.entries(n))if("object"==typeof r&&null!==r&&"string"!==t.types[e])for(let[n,i]of Object.entries(r)){let o=t.types[e],a="function"==typeof o?o:o?o.replace("[]",""):void 0;r[n]=h(i,t,a)}else"object"==typeof r&&null!==r&&"string"===t.types[e]?n[e]=Object.values(r).join(t.arrayFormatSeparator):n[e]=h(r,t,t.types[e]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return e[t]=r&&"object"==typeof r&&!Array.isArray(r)?function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):r,e},Object.create(null))}function m(e,t){if(!e)return"";u((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)+"["+i+"]"]:[...r,c(t,e)+"["+c(i,e)+"]="+c(n,e)]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)+"[]"]:[...r,c(t,e)+"[]="+c(n,e)];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)+":list="]:[...r,c(t,e)+":list="+c(n,e)];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[c(r,e),t,c(i,e)].join("")]:[[n,c(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)]:[...r,c(t,e)+"="+c(n,e)]}}(t),i={};for(let[t,n]of Object.entries(e))r(t)||(i[t]=n);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];if(t.replacer&&void 0===(i=t.replacer(r,i))||void 0===i)return"";if(null===i)return c(r,t);if(Array.isArray(i)){if(0===i.length&&"bracket-separator"===t.arrayFormat)return c(r,t)+"[]";let e=i;return t.replacer&&(e=i.map((e,n)=>t.replacer(`${r}[${n}]`,e)).filter(e=>void 0!==e)),e.reduce(n(r),[]).join("&")}return c(r,t)+"="+c(i,t)}).filter(e=>e.length>0).join("&")}function g(e,t){t={decode:!0,...t};let[r,n]=s(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:y(p(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:f(n,t)}:{}}}function v(e,t){t={encode:!0,strict:!0,[l]:!0,...t};let r=d(e.url).split("?")[0]||"",n=m({...y(p(e.url),{sort:!1,...t}),...e.query},t);n&&=`?${n}`;let i=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);if("string"==typeof e.fragmentIdentifier){let n=new URL(r);n.hash=e.fragmentIdentifier,i=t[l]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${i}`}function b(e,t,r){let{url:n,query:i,fragmentIdentifier:o}=g(e,r={parseFragmentIdentifier:!0,[l]:!1,...r});return v({url:n,query:function(e,t){let r={};if(Array.isArray(t))for(let n of t){let t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(let n of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,n);if(i.enumerable){let o=e[n];t(n,o,e)&&Object.defineProperty(r,n,i)}}return r}(i,t),fragmentIdentifier:o},r)}function _(e,t,r){return b(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}let w=n},70992:function(e,t,r){"use strict";r.d(t,{YD:()=>u});var n=r(2784),i=Object.defineProperty,o=new Map,a=new WeakMap,s=0,l=void 0;function u({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:c,triggerOnce:f,skip:d,initialInView:h,fallbackInView:p,onChange:y}={}){var m;let[g,v]=n.useState(null),b=n.useRef(y),[_,w]=n.useState({inView:!!h,entry:void 0});b.current=y,n.useEffect(()=>{let n;if(!d&&g)return n=function(e,t,r={},n=l){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:u,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(a.has(r)||(s+=1,a.set(r,s.toString())),a.get(r)):e[t]}`}).toString(),r=o.get(t);if(!r){let n,i=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=i.get(t.target))||r.forEach(e=>{e(o,t)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:i},o.set(t,r)}return r}(r),f=c.get(e)||[];return c.has(e)||c.set(e,f),f.push(t),u.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(c.delete(e),u.unobserve(e)),0===c.size&&(u.disconnect(),o.delete(i))}}(g,(e,t)=>{w({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&f&&n&&(n(),n=void 0)},{root:c,rootMargin:i,threshold:e,trackVisibility:r,delay:t},p),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,g,c,i,f,d,r,p,t]);let E=null==(m=_.entry)?void 0:m.target,S=n.useRef(void 0);g||!E||f||d||S.current===E||(S.current=E,w({inView:!!h,entry:void 0}));let x=[v,_.inView,_.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}n.Component},53896:function(e,t,r){"use strict";r.d(t,{AW:()=>tX,TH:()=>tS,UO:()=>tC,WK:()=>en,aj:()=>rp,i7:()=>t0,j3:()=>tJ,lk:()=>tF,lr:()=>rg,pG:()=>tK,rU:()=>ry,s0:()=>tk,uX:()=>ee});var n,i,o,a,s,l,u=r(2784),c=e=>{throw TypeError(e)},f=(e,t,r)=>t.has(e)||c("Cannot "+r),d=(e,t,r)=>(f(e,t,"read from private field"),r?r.call(e):t.get(e)),h=(e,t,r)=>t.has(e)?c("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),p=(e,t,r,n)=>(f(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),y=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,m=/^[\\/]{2}/;function g(e,t){return t+e.replace(/\\/g,"/")}var v="popstate";function b(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function _(e,t){if(!1===e||null==e)throw Error(t)}function w(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function E(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function S(e,t,r=null,n,i){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?O(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:i}}function x({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function O(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function k(e,t,r=!1){let n="http://localhost";e&&(n="null"!==e.location.origin?e.location.origin:e.location.href),_(n,"No window.location.(origin|href) available to create URL");let i="string"==typeof t?t:x(t);return i=i.replace(/ $/,"%20"),!r&&m.test(i)&&(i=n+i),new URL(i,n)}var T=class{constructor(e){if(h(this,i,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(d(this,i).has(e))return d(this,i).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw Error("No value found for context")}set(e,t){d(this,i).set(e,t)}};i=new WeakMap;var C=new Set(["lazy","caseSensitive","path","id","index","children"]),P=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function A(e,t,r=[],n={},i=!1){return e.map((e,o)=>{let a=[...r,String(o)],s="string"==typeof e.id?e.id:a.join("-");if(_(!0!==e.index||!e.children,"Cannot specify children on an index route"),_(i||!n[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),!0===e.index){let r={...e,id:s};return n[s]=R(r,t(r)),r}{let r={...e,id:s,children:void 0};return n[s]=R(r,t(r)),e.children&&(r.children=A(e.children,t,a,n,i)),r}})}function R(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function I(e,t,r="/"){return D(e,t,r,!1)}function D(e,t,r,n,i){let o=z(("string"==typeof t?O(t):t).pathname||"/",r);if(null==o)return null;let a=i??j(e),s=null,l=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return w(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}(o);for(let e=0;null==s&&e{var u,c;let f,d,h={relativePath:void 0===l?t.path||"":l,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(i)&&s)return;_(h.relativePath.startsWith(i),`Absolute route path "${h.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(i.length)}let p=Y([i,h.relativePath]),y=n.concat(h);t.children&&t.children.length>0&&(_(!0!==t.index,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),e(t.children,r,y,p,s)),(null!=t.path||t.index)&&r.push({path:p,score:(u=p,c=t.index,d=(f=u.split("/")).length,f.some(L)&&(d+=-2),c&&(d+=2),f.filter(e=>!L(e)).reduce((e,t)=>e+(N.test(t)?3:""===t?1:10),d)),routesMeta:y.map((e,t)=>{let[r,n]=B(e.relativePath,e.caseSensitive,t===y.length-1);return{...e,matcher:r,compiledParams:n}})})};return t.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...i]=r,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===i.length)return o?[a,""]:[a];let s=e(i.join("/")),l=[];return l.push(...s.map(e=>""===e?a:[a,e].join("/"))),o&&l.push(...s),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))a(e,t,!0,r);else a(e,t)}),r}(e);return t.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)}),t}var N=/^:[\w-]+$/,L=e=>"*"===e;function F(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=B(e.path,e.caseSensitive,e.end);return U(e,t,r,n)}function U(e,t,r,n){let i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let i=s[n];return r&&!i?e[t]=void 0:e[t]=(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}function B(e,t=!1,r=!0){w("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,i,o)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=o.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var $=e=>y.test(e);function q(e,t){let r=Q(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function W(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function V(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function H(e){let t=V(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function G(e,t,r,n=!1){let i,o;"string"==typeof e?i=O(e):(_(!(i={...e}).pathname||!i.pathname.includes("?"),W("?","pathname","search",i)),_(!i.pathname||!i.pathname.includes("#"),W("#","pathname","hash",i)),_(!i.search||!i.search.includes("#"),W("#","search","hash",i)));let a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:r,search:n="",hash:i=""}="string"==typeof e?O(e):e;return{pathname:r?(r=K(r)).startsWith("/")?q(r.substring(1),"/"):q(r,t):t,search:X(n),hash:Z(i)}}(i,o),u=s&&"/"!==s&&s.endsWith("/"),c=(a||"."===s)&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var K=e=>e.replace(/[\\/]{2,}/g,"/"),Y=e=>K(e.join("/")),Q=e=>e.replace(/\/+$/,""),J=e=>Q(e).replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",ee=(e,t=302)=>{let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,{...r,headers:n})},et=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],er=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function en(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ei(e){return Y(e.map(e=>e.route.path).filter(Boolean))||"/"}var eo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ea(e,t){let r=e;if("string"!=typeof r||!y.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(eo)try{let e=new URL(window.location.href),n=new URL(m.test(r)?g(r,e.protocol):r),o=z(n.pathname,t);n.origin===e.origin&&null!=o?r=o+n.search+n.hash:i=!0}catch(e){w(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}var es=Symbol("Uninstrumented");function el(e,t,r){return 0===e.length?null:async(...n)=>{let i=await eu(e,r(...n),()=>t(...n),e.length-1);if("error"===i.type)throw i.value;return i.value}}async function eu(e,t,r,n){let i,o=e[n];if(o){let a,s=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=eu(e,t,r,n-1),_(i=await a,"Expected a result"),"error"===i.type&&i.value instanceof Error)?{status:"error",error:i.value}:{status:"success",error:void 0};try{await o(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await s(),await a}else try{let e=await r();i={type:"success",value:e}}catch(e){i={type:"error",value:e}}return i||{type:"error",value:Error("No result assigned in instrumentation chain.")}}function ec(e){var t;let{request:r,context:n,params:i,pattern:o}=e;return{request:{method:(t=r).method,url:t.url,headers:{get:(...e)=>t.headers.get(...e)}},params:{...i},pattern:o,context:function(e){if(!function(e){if(null===e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===ed}(e))return{get:t=>e.get(t)};{let t={...e};return Object.freeze(t),t}}(n)}}function ef(e,t){return{currentUrl:x(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}var ed=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),eh=["POST","PUT","PATCH","DELETE"],ep=new Set(eh),ey=new Set(["GET",...eh]),em=new Set([301,302,303,307,308]),eg=new Set([307,308]),ev={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eb={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},e_={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ew=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),eE="remix-router-transitions",eS=Symbol("ResetLoaderData"),ex=class{constructor(e){h(this,o),h(this,a),h(this,s),h(this,l),p(this,o,e),p(this,a,j(e))}get stableRoutes(){return d(this,o)}get activeRoutes(){return d(this,s)??d(this,o)}get branches(){return d(this,l)??d(this,a)}get hasHMRRoutes(){return null!=d(this,s)}setRoutes(e){p(this,o,e),p(this,a,j(e))}setHmrRoutes(e){p(this,s,e),p(this,l,j(e))}commitHmrRoutes(){d(this,s)&&(p(this,o,d(this,s)),p(this,a,d(this,l)),p(this,s,void 0),p(this,l,void 0))}};function eO(e,t,r,n,i,o){let a,s;if(i){for(let e of(a=[],t))if(a.push(e),e.route.id===i){s=e;break}}else a=t,s=t[t.length-1];let l=G(n||".",H(a),z(e.pathname,r)||e.pathname,"path"===o);if(null==n&&(l.search=e.search,l.hash=e.hash),(null==n||""===n||"."===n)&&s){let e=ti(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();l.search=r?`?${r}`:""}}return"/"!==r&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:Y([e,t])}({basename:r,pathname:l.pathname})),x(l)}function ek(e,t,r){var n;let i,o;if(!r||!(null!=r&&("formData"in r&&null!=r.formData||"body"in r&&void 0!==r.body)))return{path:t};if(r.formMethod&&(n=r.formMethod,!ey.has(n.toUpperCase())))return{path:t,error:e5(405,{method:r.formMethod})};let a=()=>({path:t,error:e5(400,{type:"invalid-body"})}),s=(r.formMethod||"get").toUpperCase(),l=e8(t);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!tn(s))return a();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,[t,r])=>`${e}${t}=${r} `,""):String(r.body);return{path:t,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===r.formEncType){if(!tn(s))return a();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(_("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=eX(r.formData),o=r.formData;else if(r.body instanceof FormData)i=eX(r.body),o=r.body;else if(r.body instanceof URLSearchParams)o=eZ(i=r.body);else if(null==r.body)i=new URLSearchParams,o=new FormData;else try{i=new URLSearchParams(r.body),o=eZ(i)}catch(e){return a()}let u={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(tn(u.formMethod))return{path:t,submission:u};let c=O(t);return e&&c.search&&ti(c.search)&&i.append("index",""),c.search=`?${i}`,{path:x(c),submission:u}}function eT(e,t,r,n,i,o,a,s,l,u,c,f,d,h,p,y,m,g,v,b,_,w){let E,S=_?e7(_[1])?_[1].error:_[1].data:void 0,x=i.createURL(o.location),O=i.createURL(l);if(c&&o.errors){let e=Object.keys(o.errors)[0];E=a.findIndex(t=>t.route.id===e)}else if(_&&e7(_[1])){let e=_[0];E=a.findIndex(t=>t.route.id===e)-1}let k=_?_[1].statusCode:void 0,T=k&&k>=400,C={currentUrl:x,currentParams:o.matches[0]?.params||{},nextUrl:O,nextParams:a[0].params,...s,actionResult:S,actionStatus:k},P=ei(a),A=a.map((i,a)=>{var s,d,h,p,y;let m,{route:g}=i,v=null;if(null!=E&&a>E)v=!1;else if(g.lazy)v=!0;else if(eC(g))if(c){let{shouldLoad:e}=eP(g,o.loaderData,o.errors);v=e}else{let e,t;s=o.loaderData,d=o.matches[a],h=i,e=!d||h.route.id!==d.route.id,t=!s.hasOwnProperty(h.route.id),(e||t)&&(v=!0)}else v=!1;if(null!==v)return ez(r,n,e,l,P,i,u,t,v);let b=!1;"boolean"==typeof w?b=w:T?b=!1:f||x.pathname+x.search===O.pathname+O.search||x.search!==O.search?b=!0:(p=o.matches[a],y=i,m=p.route.path,(p.pathname!==y.pathname||null!=m&&m.endsWith("*")&&p.params["*"]!==y.params["*"])&&(b=!0));let _={...C,defaultShouldRevalidate:b},S=eA(i,_);return ez(r,n,e,l,P,i,u,t,S,_,w)}),R=[];return p.forEach((e,s)=>{if(c||!a.some(t=>t.route.id===e.routeId)||h.has(s))return;let l=o.fetchers.get(s),p=l&&"idle"!==l.state&&void 0===l.data,_=D(m,e.path,g??"/",!1,b);if(!_){if(v&&p)return;R.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(y.has(s))return;let E=to(_,e.path),S=new AbortController,x=eQ(i,e.path,S.signal),O=null;if(d.has(s))d.delete(s),O=e$(r,n,x,e.path,_,E,u,t);else if(p)f&&(O=e$(r,n,x,e.path,_,E,u,t));else{let i={...C,defaultShouldRevalidate:"boolean"==typeof w?w:!T&&f};eA(E,i)&&(O=e$(r,n,x,e.path,_,E,u,t,i))}O&&R.push({key:s,routeId:e.routeId,path:e.path,matches:O,match:E,request:x,controller:S})}),{dsMatches:A,revalidatingFetchers:R}}function eC(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function eP(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!eC(e))return{shouldLoad:!1,renderFallback:!1};let n=null!=t&&e.id in t,i=null!=r&&void 0!==r[e.id];if(!n&&i)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!n};let o=!n&&!i;return{shouldLoad:o,renderFallback:o}}function eA(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eR(e,t,r,n,i,o){let a;if(e){let t=n[e];_(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=r.activeRoutes;let s=[],l=[];if(t.forEach(e=>{let t=a.find(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||(t.children?.every((t,n)=>r.children?.some(r=>e(t,r)))??!1))})(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=A(s,i,[e||"_","patch",String(a?.length||"0")],n);a.push(...t)}if(o&&l.length>0)for(let e=0;e{let i=r[t.id];if(_(i,"No route found in manifest"),!i.lazy||"object"!=typeof i.lazy)return;let o=i.lazy[e];if(!o)return;let a=eI.get(i);a||(a={},eI.set(i,a));let s=a[e];if(s)return s;let l=(async()=>{let t=C.has(e),r=void 0!==i[e]&&"hasErrorBoundary"!==e;if(t)w(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(r)w(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await o();null!=t&&(Object.assign(i,{[e]:t}),Object.assign(i,n(i)))}"object"==typeof i.lazy&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>void 0===e)&&(i.lazy=void 0))})();return a[e]=l,l},eM=new WeakMap;async function ej(e){let t=e.matches.filter(e=>e.shouldLoad),r={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,n)=>{r[t[n].route.id]=e}),r}async function eN(e){return e.matches.some(e=>e.route.middleware)?eL(e,()=>ej(e)):ej(e)}function eL(e,t){return eF(e,t,e=>{var t,r;if(tr(t=e)&&(r=t.status,em.has(r))&&t.headers.has("Location"))throw e;return e},e9,function(t,r,n){if(n)return Promise.resolve(Object.assign(n.value,{[r]:{type:"error",result:t}}));{let{matches:n}=e,i=Math.min(Math.max(n.findIndex(e=>e.route.id===r),0),Math.max(n.findIndex(e=>e.shouldCallHandler()),0));return Promise.resolve({[e4(n,n[i].route.id).route.id]:{type:"error",result:t}})}})}async function eF(e,t,r,n,i){let{matches:o,...a}=e,s=o.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await eU(a,s,t,r,n,i)}async function eU(e,t,r,n,i,o,a=0){let s,{request:l}=e;if(l.signal.aborted)throw l.signal.reason??Error(`Request aborted: ${l.method} ${l.url}`);let u=t[a];if(!u)return await r();let[c,f]=u,d=async()=>{if(s)throw Error("You may only call `next()` once per middleware");try{return(s={value:await eU(e,t,r,n,i,o,a+1)}).value}catch(e){return(s={value:await o(e,c,s)}).value}};try{let t=await f(e,d),r=null!=t?n(t):void 0;if(i(r))return r;if(s)return r??s.value;return(s={value:await d()}).value}catch(e){return await o(e,c,s)}}function eB(e,t,r,n,i){let o=eD({key:"middleware",route:n.route,manifest:t,mapRouteProperties:e}),a=function(e,t,r,n,i){let o,a=r[e.id];if(_(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=eM.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let r=(async()=>{_("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),r={};for(let e in t){let n=t[e];if(void 0===n)continue;let i=P.has(e),o=void 0!==a[e]&&"hasErrorBoundary"!==e;i?w(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):o?w(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):r[e]=n}Object.assign(a,r),Object.assign(a,{...n(a),lazy:void 0})})();return eM.set(a,r),r.catch(()=>{}),{lazyRoutePromise:r,lazyHandlerPromise:r}}let s=Object.keys(e.lazy),l=[];for(let a of s){if(i&&i.includes(a))continue;let s=eD({key:a,route:e,manifest:r,mapRouteProperties:n});s&&(l.push(s),a===t&&(o=s))}let u=l.length>0?Promise.all(l).then(()=>{}):void 0;return u?.catch(()=>{}),o?.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:o}}(n.route,tn(r.method)?"action":"loader",t,e,i);return{middleware:o,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function ez(e,t,r,n,i,o,a,s,l,u=null,c){let f=!1,d=eB(e,t,r,o,a);return{...o,_lazyPromises:d,shouldLoad:l,shouldRevalidateArgs:u,shouldCallHandler:e=>(f=!0,u)?"boolean"==typeof c?eA(o,{...u,defaultShouldRevalidate:c}):"boolean"==typeof e?eA(o,{...u,defaultShouldRevalidate:e}):eA(o,u):l,resolve(e){let{lazy:t,loader:a,middleware:u}=o.route,c=f||l||e&&!tn(r.method)&&(t||a),h=u&&u.length>0&&!a&&!t;return c&&(tn(r.method)||!h)?eW({request:r,path:n,pattern:i,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function e$(e,t,r,n,i,o,a,s,l=null){return i.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,shouldRevalidateArgs:l,shouldCallHandler:()=>!1,_lazyPromises:eB(e,t,r,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ez(e,t,r,n,ei(i),u,a,s,!0,l))}async function eq(e,t,r,n,i,o,a){n.some(e=>e._lazyPromises?.middleware)&&await Promise.all(n.map(e=>e._lazyPromises?.middleware));let s={request:t,url:eJ(t,r),pattern:ei(n),params:n[0].params,context:o,matches:n},l=a?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>eL(s,()=>e({...s,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})),u=await e({...s,fetcherKey:i,runClientMiddleware:l});try{await Promise.all(n.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return u}async function eW({request:e,path:t,pattern:r,match:n,lazyHandlerPromise:i,lazyRoutePromise:o,handlerOverride:a,scopedContext:s}){let l,u,c=tn(e.method),f=c?"action":"loader",d=i=>{let o,l=new Promise((e,t)=>o=t);u=()=>o(),e.signal.addEventListener("abort",u);let c=o=>"function"!=typeof i?Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${n.route.id}]`)):i({request:e,url:eJ(e,t),pattern:r,params:n.params,context:s},...void 0!==o?[o]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>c(e)):c());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let t=c?n.route.action:n.route.loader;if(i||o)if(t){let e,[r]=await Promise.all([d(t).catch(t=>{e=t}),i,o]);if(void 0!==e)throw e;l=r}else{await i;let t=c?n.route.action:n.route.loader;if(t)[l]=await Promise.all([d(t),o]);else{if("action"!==f)return{type:"data",result:void 0};let t=new URL(e.url),r=t.pathname+t.search;throw e5(405,{method:e.method,pathname:r,routeId:n.route.id})}}else if(t)l=await d(t);else{let t=new URL(e.url),r=t.pathname+t.search;throw e5(404,{pathname:r})}}catch(e){return{type:"error",result:e}}finally{u&&e.signal.removeEventListener("abort",u)}return l}async function eV(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function eH(e){let{result:t,type:r}=e;if(tr(t)){let e;try{e=await eV(t)}catch(e){return{type:"error",error:e}}return"error"===r?{type:"error",error:new er(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}if("error"===r){if(tt(t)){var n;return t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:(n=t,new er(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)),statusCode:en(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}}return{type:"error",error:t,statusCode:en(t)?t.status:void 0}}return tt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}var eG=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function eK(e){try{return eG.includes(new URL(e).protocol)}catch{return!1}}function eY(e,t,r,n){if($(e)){let n=new URL(m.test(e)?g(e,t.protocol):e);if(eK(n.toString()))throw Error("Invalid redirect location");let i=null!=z(n.pathname,r);if(n.origin===t.origin&&i)return K(n.pathname)+n.search+n.hash}try{let t=n.createURL(e);if(eK(t.toString()))throw Error("Invalid redirect location")}catch(e){}return e}function eQ(e,t,r,n){let i=e.createURL(e8(t)).toString(),o={signal:r};if(n&&tn(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eX(n.formData):o.body=n.formData}return new Request(i,o)}function eJ(e,t){let r=new URL(e.url),n="string"==typeof t?O(t):t;if(r.pathname=n.pathname||"/",n.search){let e=new URLSearchParams(n.search),t=e.getAll("index");for(let r of(e.delete("index"),t.filter(Boolean)))e.append("index",r);r.search=e.size?`?${e.toString()}`:""}else r.search="";return r.hash=n.hash||"",r}function eX(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eZ(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function e0(e,t,r,n,i,o,a){let{loaderData:s,errors:l}=function(e,t,r,n=!1,i=!1){let o,a={},s=null,l=!1,u={},c=r&&e7(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let f=r.route.id,d=t[f];if(_(!te(d),"Cannot handle redirect results in processLoaderData"),e7(d)){let t=d.error;if(void 0!==c&&(t=c,c=void 0),s=s||{},i)s[f]=t;else{let r=e4(e,f);null==s[r.route.id]&&(s[r.route.id]=t)}n||(a[f]=eS),l||(l=!0,o=en(d.error)?d.error.status:500),d.headers&&(u[f]=d.headers)}else a[f]=d.data,d.statusCode&&200!==d.statusCode&&!l&&(o=d.statusCode),d.headers&&(u[f]=d.headers)}),void 0!==c&&r&&(s={[r[0]]:c},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:u}}(t,r,n);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:r,match:n,controller:i}=t;if(i&&i.signal.aborted)return;let s=o[r];if(_(s,"Did not find corresponding fetcher result"),e7(s)){let t=e4(e.matches,n?.route.id);l&&l[t.route.id]||(l={...l,[t.route.id]:s.error}),a.delete(r)}else if(te(s))_(!1,"Unhandled fetcher revalidation redirect");else{let e=tu(s.data);a.set(r,e)}}),{loaderData:s,errors:l}}function e1(e,t,r,n){let i=Object.entries(t).filter(([,e])=>e!==eS).reduce((e,[t,r])=>(e[t]=r,e),{});for(let o of r){let r=o.route.id;if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&o.route.loader&&(i[r]=e[r]),n&&n.hasOwnProperty(r))break}return i}function e2(e){return e?e7(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function e4(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function e3(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function e5(e,{pathname:t,routeId:r,method:n,type:i,message:o}={}){let a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:"invalid-body"===i&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s=`Route "${r}" does not match URL "${t}"`):404===e?(a="Not Found",s=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new er(e||500,a,Error(s),!0)}function e6(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(te(n))return{key:r,result:n}}}function e8(e){return x({..."string"==typeof e?O(e):e,hash:""})}function e9(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>{var r;return"string"==typeof e&&null!=(r=t)&&"object"==typeof r&&"type"in r&&"result"in r&&("data"===r.type||"error"===r.type)})}function e7(e){return"error"===e.type}function te(e){return"redirect"===(e&&e.type)}function tt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function tr(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function tn(e){return ep.has(e.toUpperCase())}function ti(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function to(e,t){let r="string"==typeof t?O(t).search:t.search;if(e[e.length-1].route.index&&ti(r||""))return e[e.length-1];let n=V(e);return n[n.length-1]}function ta(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:a}=e;if(t&&r&&n){if(null!=i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function ts(e,t,r,n){return n?{state:"loading",location:e,matches:t,historyAction:r,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,matches:t,historyAction:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tl(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function tu(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tc(){let e,t,r=new Promise((n,i)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{i(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}var tf=u.createContext(null);tf.displayName="DataRouter";var td=u.createContext(null);td.displayName="DataRouterState";var th=u.createContext(!1);function tp(){return u.useContext(th)}var ty=u.createContext({isTransitioning:!1});ty.displayName="ViewTransition";var tm=u.createContext(new Map);tm.displayName="Fetchers",u.createContext(null).displayName="Await";var tg=u.createContext(null);tg.displayName="Navigation";var tv=u.createContext(null);tv.displayName="Location";var tb=u.createContext({outlet:null,matches:[],isDataRoute:!1});tb.displayName="Route";var t_=u.createContext(null);t_.displayName="RouteError";var tw="REACT_ROUTER_ERROR";function tE(){return null!=u.useContext(tv)}function tS(){return _(tE(),"useLocation() may be used only in the context of a component."),u.useContext(tv).location}var tx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tO(e){u.useContext(tg).static||u.useLayoutEffect(e)}function tk(){let{isDataRoute:e}=u.useContext(tb);return e?function(){let e,{router:t}=(_(e=u.useContext(tf),tj("useNavigate")),e),r=tL("useNavigate"),n=u.useRef(!1);return tO(()=>{n.current=!0}),u.useCallback(async(e,i={})=>{w(n.current,tx),n.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:r,...i}))},[t,r])}():function(){_(tE(),"useNavigate() may be used only in the context of a component.");let e=u.useContext(tf),{basename:t,navigator:r}=u.useContext(tg),{matches:n}=u.useContext(tb),{pathname:i}=tS(),o=JSON.stringify(H(n)),a=u.useRef(!1);return tO(()=>{a.current=!0}),u.useCallback((n,s={})=>{if(w(a.current,tx),!a.current)return;if("number"==typeof n)return void r.go(n);let l=G(n,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Y([t,l.pathname])),(s.replace?r.replace:r.push)(l,s.state,s)},[t,r,o,i,e])}()}var tT=u.createContext(null);function tC(){let{matches:e}=u.useContext(tb),t=e[e.length-1];return t?.params??{}}function tP(e,{relative:t}={}){let{matches:r}=u.useContext(tb),{pathname:n}=tS(),i=JSON.stringify(H(r));return u.useMemo(()=>G(e,JSON.parse(i),n,"path"===t),[e,i,n,t])}var tA=u.createElement(function(){let e=tF(),t=en(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=u.createElement(u.Fragment,null,u.createElement("p",null,"\uD83D\uDCBF Hey developer \uD83D\uDC4B"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:i},"ErrorBoundary")," or"," ",u.createElement("code",{style:i},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),r?u.createElement("pre",{style:{padding:"0.5rem",backgroundColor:n}},r):null,o)},null),tR=class extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){let t=function(e){if(e.startsWith(`${tw}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new er(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?u.createElement(tb.Provider,{value:this.props.routeContext},u.createElement(t_.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?u.createElement(tD,{error:e},t):t}};tR.contextType=th;var tI=new WeakMap;function tD({children:e,error:t}){let{basename:r}=u.useContext(tg);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${tw}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=tI.get(t);if(n)throw n;let i=ea(e.location,r),o=i.absoluteURL||i.to;if(eK(o))throw Error("Invalid redirect location");if(eo&&!tI.get(t))if(i.isExternal||e.reloadDocument)window.location.href=o;else{let r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw tI.set(t,r),r}return u.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o}`})}}return e}function tM({routeContext:e,match:t,children:r}){let n=u.useContext(tf);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),u.createElement(tb.Provider,{value:e},r)}function tj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tN(e){let t=u.useContext(td);return _(t,tj(e)),t}function tL(e){let t,r=(_(t=u.useContext(tb),tj(e)),t),n=r.matches[r.matches.length-1];return _(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function tF(){let e=u.useContext(t_),t=tN("useRouteError"),r=tL("useRouteError");return void 0!==e?e:t.errors?.[r]}var tU={};function tB(e,t,r){t||tU[e]||(tU[e]=!0,w(!1,r))}var tz={};function t$(e,t){e||tz[t]||(tz[t]=!0,console.warn(t))}var tq=(n||(n=r.t(u,2))).useOptimistic,tW=()=>void 0;function tV(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&w(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:u.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&w(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:u.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&w(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:u.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var tH=["HydrateFallback","hydrateFallbackElement"],tG=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function tK({router:e,flushSync:t,onError:r,useTransitions:n}){n=tp()||n;let[i,o]=u.useState(e.state),[a,s]=tq?tq(i):[i,tW],[l,c]=u.useState(),[f,d]=u.useState({isTransitioning:!1}),[h,p]=u.useState(),[y,m]=u.useState(),[g,v]=u.useState(),b=u.useRef(new Map),_=u.useCallback((i,{deletedFetchers:a,newErrors:l,flushSync:f,viewTransitionOpts:g})=>{l&&r&&Object.values(l).forEach(e=>r(e,{location:i.location,params:i.matches[0]?.params??{},pattern:ei(i.matches)})),i.fetchers.forEach((e,t)=>{void 0!==e.data&&b.current.set(t,e.data)}),a.forEach(e=>b.current.delete(e)),t$(!1===f||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let _=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(t$(null==g||_,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!_)return void(t&&f?t(()=>o(i)):!1===n?o(i):u.startTransition(()=>{!0===n&&s(e=>tY(e,i)),o(i)}));if(t&&f){t(()=>{y&&(h?.resolve(),y.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let r=e.window.document.startViewTransition(()=>{t(()=>o(i))});r.finished.finally(()=>{t(()=>{p(void 0),m(void 0),c(void 0),d({isTransitioning:!1})})}),t(()=>m(r));return}y?(h?.resolve(),y.skipTransition(),v({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(c(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,y,h,n,s,r]);u.useLayoutEffect(()=>e.subscribe(_),[e,_]),u.useEffect(()=>{f.isTransitioning&&!f.flushSync&&p(new tG)},[f]),u.useEffect(()=>{if(h&&l&&e.window){let t=h.promise,r=e.window.document.startViewTransition(async()=>{!1===n?o(l):u.startTransition(()=>{!0===n&&s(e=>tY(e,l)),o(l)}),await t});r.finished.finally(()=>{p(void 0),m(void 0),c(void 0),d({isTransitioning:!1})}),m(r)}},[l,h,e.window,n,s]),u.useEffect(()=>{h&&l&&a.location.key===l.location.key&&h.resolve()},[h,y,a.location,l]),u.useEffect(()=>{!f.isTransitioning&&g&&(c(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[f.isTransitioning,g]);let w=u.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,r,n)=>e.navigate(t,{state:r,preventScrollReset:n?.preventScrollReset}),replace:(t,r,n)=>e.navigate(t,{replace:!0,state:r,preventScrollReset:n?.preventScrollReset})}),[e]),E=e.basename||"/",S=u.useMemo(()=>({router:e,navigator:w,static:!1,basename:E,onError:r}),[e,w,E,r]);return u.createElement(u.Fragment,null,u.createElement(tf.Provider,{value:S},u.createElement(td.Provider,{value:a},u.createElement(tm.Provider,{value:b.current},u.createElement(ty.Provider,{value:f},u.createElement(tZ,{basename:E,location:a.location,navigationType:a.historyAction,navigator:w,useTransitions:n},u.createElement(tQ,{routes:e.routes,manifest:e.manifest,future:e.future,state:a,isStatic:!1,onError:r})))))),null)}function tY(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var tQ=u.memo(function({routes:e,manifest:t,future:r,state:n,isStatic:i,onError:o}){return function(e,t,r){let n;_(tE(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=u.useContext(tg),{matches:o}=u.useContext(tb),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",f=a&&a.route;{let e=f&&f.path||"";tB(l,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let d=tS();if(t){let e="string"==typeof t?O(t):t;_("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),n=e}else n=d;let h=n.pathname||"/",p=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):I(e,{pathname:p});w(f||null!=y,`No routes matched location "${n.pathname}${n.search}${n.hash}" `),w(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${n.pathname}${n.search}${n.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let m=function(e,t=[],r){let n=r?.state;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,o=n?.errors;if(null!=o){let e=i.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);_(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,s=-1;if(r&&n){a=n.renderFallback;for(let e=0;e=0?i.slice(0,s+1):[i[0]];break}}}}let l=r?.onError,c=n&&l?(e,t)=>{l(e,{location:n.location,params:n.matches?.[0]?.params??{},pattern:ei(n.matches),errorInfo:t})}:void 0;return i.reduceRight((e,r,l)=>{let f,d=!1,h=null,p=null;n&&(f=o&&r.route.id?o[r.route.id]:void 0,h=r.route.errorElement||tA,a&&(s<0&&0===l?(tB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===l&&(d=!0,p=r.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,l+1)),m=()=>{let t;return t=f?h:d?p:r.route.Component?u.createElement(r.route.Component,null):r.route.element?r.route.element:e,u.createElement(tM,{match:r,routeContext:{outlet:e,matches:y,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?u.createElement(tR,{location:n.location,revalidation:n.revalidation,component:h,error:f,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):m()},null)}(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Y([c,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:Y([c,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&m?u.createElement(tv.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...n},navigationType:"POP"}},m):m}(e,void 0,{manifest:t,state:n,isStatic:i,onError:o,future:r})});function tJ(e){var t;let r;return t=e.context,r=u.useContext(tb).outlet,u.useMemo(()=>r&&u.createElement(tT.Provider,{value:t},r),[r,t])}function tX(e){_(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function tZ({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:o=!1,useTransitions:a}){_(!tE(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=u.useMemo(()=>({basename:s,navigator:i,static:o,useTransitions:a,future:{}}),[s,i,o,a]);"string"==typeof r&&(r=O(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default",mask:y}=r,m=u.useMemo(()=>{let e=z(c,s);return null==e?null:{location:{pathname:e,search:f,hash:d,state:h,key:p,mask:y},navigationType:n}},[s,c,f,d,h,p,n,y]);return(w(null!=m,` is not able to match the URL "${c}${f}${d}" because it does not start with the basename, so the won't render anything.`),null==m)?null:u.createElement(tg.Provider,{value:l},u.createElement(tv.Provider,{children:t,value:m}))}u.Component;var t0=function e(t,r=[]){let n=[];return u.Children.forEach(t,(t,i)=>{if(!u.isValidElement(t))return;let o=[...r,i];if(t.type===u.Fragment)return void n.push.apply(n,e(t.props.children,o));_(t.type===tX,`[${"string"==typeof t.type?t.type:t.type.name}] is not a component. All component children of must be a or `),_(!t.props.index||!t.props.children,"An index route cannot have child routes.");let a={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=e(t.props.children,o)),n.push(a)}),n},t1="get",t2="application/x-www-form-urlencoded";function t4(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function t3(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var t5=null,t6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t8(e){return null==e||t6.has(e)?e:(w(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${t2}"`),null)}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window&&window;function t9(e,t){if(!1===e||null==e)throw Error(t)}function t7(e,t,r,n){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:"/"===i.pathname?i.pathname=`_root.${n}`:t&&"/"===z(i.pathname,t)?i.pathname=`${Q(t)}/_root.${n}`:i.pathname=`${Q(i.pathname)}.${n}`,i}async function re(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function rt(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function rr(e,t,r){var n,i;let o,a;return n=(await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await re(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(rt).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}),o=new Set,a=new Set(void 0),n.reduce((e,t)=>{if(i&&(null==t||"string"!=typeof t.page)&&"script"===t.as&&t.href&&a.has(t.href))return e;let r=JSON.stringify(function(e){let t={};for(let r of Object.keys(e).sort())t[r]=e[r];return t}(t));return o.has(r)||(o.add(r),e.push({key:r,link:t})),e},[])}function rn(e,t,r,n,i,o){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function ri(e,t,{includeHydrateFallback:r}={}){return[...new Set(e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1))]}function ro(){let e=u.useContext(tf);return t9(e,"You must render this element inside a element"),e}function ra(){let e=u.useContext(td);return t9(e,"You must render this element inside a element"),e}Symbol("SingleFetchRedirect");var rs=u.createContext(void 0);function rl(){let e=u.useContext(rs);return t9(e,"You must render this element inside a element"),e}function ru(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function rc({page:e,...t}){let r=tp(),{nonce:n}=rl(),{router:i}=ro(),o=u.useMemo(()=>I(i.routes,e,i.basename),[i.routes,e,i.basename]);return o?(null==t.nonce&&n&&(t={...t,nonce:n}),r)?u.createElement(rf,{page:e,matches:o,...t}):u.createElement(rd,{page:e,matches:o,...t}):null}function rf({page:e,matches:t,...r}){let n=tS(),{future:i}=rl(),{basename:o}=ro(),a=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=t7(e,o,i.v8_trailingSlashAwareDataRequests,"rsc"),a=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:s.push(e.route.id);return a&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[o,i.v8_trailingSlashAwareDataRequests,e,n,t]);return u.createElement(u.Fragment,null,a.map(e=>u.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function rd({page:e,matches:t,...r}){let n=tS(),{future:i,manifest:o,routeModules:a}=rl(),{basename:s}=ro(),{loaderData:l,matches:c}=ra(),f=u.useMemo(()=>rn(e,t,c,o,n,"data"),[e,t,c,o,n]),d=u.useMemo(()=>rn(e,t,c,o,n,"assets"),[e,t,c,o,n]),h=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,u=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!f.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?u=!0:r.add(e.route.id))}),0===r.size)return[];let c=t7(e,s,i.v8_trailingSlashAwareDataRequests,"data");return u&&r.size>0&&c.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[s,i.v8_trailingSlashAwareDataRequests,l,n,o,f,t,e,a]),p=u.useMemo(()=>ri(d,o),[d,o]),y=function(e){let{manifest:t,routeModules:r}=rl(),[n,i]=u.useState([]);return u.useEffect(()=>{let n=!1;return rr(e,t,r).then(e=>{n||i(e)}),()=>{n=!0}},[e,t,r]),n}(d);return u.createElement(u.Fragment,null,h.map(e=>u.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),p.map(e=>u.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),y.map(({key:e,link:t})=>u.createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}rs.displayName="FrameworkContext";u.Component;var rh="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{rh&&(window.__reactRouterVersion="7.18.0")}catch(e){}function rp(e,t){let r;return(function(e){let t,r,n,i,o,a=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==a&&void 0!==a.document&&void 0!==a.document.createElement;_(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l=e.hydrationRouteProperties||[],u=e.mapRouteProperties||ew,c=u;if(e.instrumentations){let t=e.instrumentations;c=e=>({...u(e),...function(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){for(let t of Object.keys(r))e[t]&&r[t].push(e[t])}}));let n={};if("function"==typeof t.lazy&&r.lazy.length>0){let e=el(r.lazy,t.lazy,()=>void 0);e&&(n.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let i=e[t],o=r[`lazy.${t}`];if("function"==typeof i&&o.length>0){let e=el(o,i,()=>void 0);e&&(n.lazy=Object.assign(n.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let i=t[e];if("function"==typeof i&&r[e].length>0){let t=i[es]??i,o=el(r[e],t,(...e)=>ec(e[0]));o&&("loader"===e&&!0===t.hydrate&&(o.hydrate=!0),o[es]=t,n[e]=o)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(n.middleware=t.middleware.map(e=>{let t=e[es]??e,n=el(r.middleware,t,(...e)=>ec(e[0]));return n?(n[es]=t,n):e})),n}(t.map(e=>e.route).filter(Boolean),e)})}let f={},d=new ex(A(e.routes,c,void 0,f)),h=e.basename||"/";h.startsWith("/")||(h=`/${h}`);let p=e.dataStrategy||eN,y={...e.future},m=null,g=new Set,v=null,b=null,E=null,C=null,P=null!=e.hydrationData,R=D(d.activeRoutes,e.history.location,h,!1,d.branches),I=!1,j=null;if(null!=R||e.patchRoutesOnNavigation)if(R&&!e.hydrationData&&e9(R,d.activeRoutes,e.history.location.pathname).active&&(R=null),R)if(R.some(e=>e.route.lazy))t=!1,r=!0;else if(R.some(e=>eC(e.route))){let n=e.hydrationData?e.hydrationData.loaderData:null,i=e.hydrationData?e.hydrationData.errors:null,o=R;if(i){let e=R.findIndex(e=>void 0!==i[e.route.id]);o=o.slice(0,e+1)}r=!1,t=!0,o.forEach(e=>{let o=eP(e.route,n,i);r=r||o.renderFallback,t=t&&!o.shouldLoad})}else t=!0,r=!1;else{t=!1,r=!0,R=[];let n=e9(null,d.activeRoutes,e.history.location.pathname);n.active&&n.matches&&(I=!0,R=n.matches)}else{let n=e5(404,{pathname:e.history.location.pathname}),{matches:i,route:o}=e3(d.activeRoutes);t=!0,r=!1,R=i,j={[o.id]:n}}let N={historyAction:e.history.action,location:e.history.location,matches:R,initialized:t,renderFallback:r,navigation:ev,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},L="POP",F=null,U=!1,B=!1,q=new Map,W=null,V=!1,H=!1,G=new Set,K=new Map,Y=0,Q=-1,J=new Map,X=new Set,Z=new Map,ee=new Map,et=new Set,er=new Map,ei=null;function eo(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=f[e.route.id],r=e.route;return r.element!==t.element||r.errorElement!==t.errorElement||r.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}));let r=[],n=[];(N={...N,...e}).fetchers.forEach((e,t)=>{"idle"===e.state&&(et.has(t)?r.push(t):n.push(t))}),et.forEach(e=>{N.fetchers.has(e)||K.has(e)||r.push(e)}),0===g.size&&(v={newErrors:e.errors??null}),[...g].forEach(n=>n(N,{deletedFetchers:r,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),r.forEach(e=>eU(N.fetchers,e)),n.forEach(e=>N.fetchers.delete(e))}function ea(t,r,{flushSync:n}={}){let i,o,a=null!=N.actionData&&null!=N.navigation.formMethod&&tn(N.navigation.formMethod)&&"loading"===N.navigation.state&&t.state?._isRedirect!==!0;i=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:a?N.actionData:null;let s=r.loaderData?e1(N.loaderData,r.loaderData,r.matches||[],r.errors):N.loaderData,l=N.blockers;l.size>0&&(l=new Map(l)).forEach((e,t)=>l.set(t,e_));let u=!V&&e8(t,r.matches||N.matches),c=!0===U||null!=N.navigation.formMethod&&tn(N.navigation.formMethod)&&t.state?._isRedirect!==!0;if(d.commitHmrRoutes(),V||"POP"===L||("PUSH"===L?e.history.push(t,t.state):"REPLACE"===L&&e.history.replace(t,t.state)),"POP"===L){let e=q.get(N.location.pathname);e&&e.has(t.pathname)?o={currentLocation:N.location,nextLocation:t}:q.has(t.pathname)&&(o={currentLocation:t,nextLocation:N.location})}else if(B){let e=q.get(N.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),q.set(N.location.pathname,e)),o={currentLocation:N.location,nextLocation:t}}eo({...r,actionData:i,loaderData:s,historyAction:L,location:t,initialized:!0,renderFallback:!1,navigation:ev,revalidation:"idle",restoreScrollPosition:u,preventScrollReset:c,blockers:l},{viewTransitionOpts:o,flushSync:!0===n}),L="POP",U=!1,B=!1,V=!1,H=!1,F?.resolve(),F=null,ei?.resolve(),ei=null}async function eu(t,r){let n;if(F?.resolve(),F=null,"number"==typeof t){F||(F=tc());let r=F.promise;return e.history.go(t),r}let{path:i,submission:o,error:a}=ek(!1,eO(N.location,N.matches,h,t,r?.fromRouteId,r?.relative),r);r?.mask&&(n={pathname:"",search:"",hash:"",..."string"==typeof r.mask?O(r.mask):{...N.location.mask,...r.mask}});let s=N.location,l=S(s,i,r&&r.state,void 0,n);l={...l,...e.history.encodeLocation(l)};let u=r&&null!=r.replace?r.replace:void 0,c="PUSH";!0===u?c="REPLACE":!1===u||null!=o&&tn(o.formMethod)&&o.formAction===N.location.pathname+N.location.search&&(c="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,d=!0===(r&&r.flushSync),p=eJ({currentLocation:s,nextLocation:l,historyAction:c});if(p)return void eK(p,{state:"blocked",location:l,proceed(){eK(p,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),eu(t,r)},reset(){let e=new Map(N.blockers);e.set(p,e_),eo({blockers:e})}});await ed(c,l,{submission:o,pendingError:a,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:d,callSiteDefaultShouldRevalidate:r&&r.defaultShouldRevalidate})}async function ed(t,r,n){var o,a,s,l;let u;i&&i.abort(),i=null,L=t,V=!0===(n&&n.startUninterruptedRevalidation),o=N.location,a=N.matches,b&&C&&(b[eZ(o,a)]=C()),U=!0===(n&&n.preventScrollReset),B=!0===(n&&n.enableViewTransition);let c=d.activeRoutes,f=n?.initialHydration&&N.matches&&N.matches.length>0&&!I?N.matches:D(c,r,h,!1,d.branches),p=!0===(n&&n.flushSync);if(f&&N.initialized&&!H&&(s=N.location,l=r,s.pathname===l.pathname&&s.search===l.search&&(""===s.hash?""!==l.hash:s.hash===l.hash||""!==l.hash||!1))&&!(n&&n.submission&&tn(n.submission.formMethod)))return void ea(r,{matches:f},{flushSync:p});let y=e9(f,c,r.pathname);if(y.active&&y.matches&&(f=y.matches),!f){let{error:e,notFoundMatches:t,route:n}=eX(r.pathname);ea(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:p});return}let m=n&&n.overrideNavigation?{...n.overrideNavigation,matches:f,historyAction:t}:void 0;i=new AbortController;let g=eQ(e.history,r,i.signal,n&&n.submission),v=e.getContext?await e.getContext():new T;if(n&&n.pendingError)u=[e4(f).route.id,{type:"error",error:n.pendingError}];else if(n&&n.submission&&tn(n.submission.formMethod)){let o=await eh(g,r,n.submission,f,t,v,y.active,n&&!0===n.initialHydration,{replace:n.replace,flushSync:p});if(o.shortCircuited)return;if(o.pendingActionResult){let[e,t]=o.pendingActionResult;if(e7(t)&&en(t.error)&&404===t.error.status){i=null,ea(r,{matches:o.matches,loaderData:{},errors:{[e]:t.error}});return}}f=o.matches||f,u=o.pendingActionResult,m=ts(r,f,t,n.submission),p=!1,y.active=!1,g=eQ(e.history,g.url,g.signal)}let{shortCircuited:_,matches:w,loaderData:E,errors:S,workingFetchers:x}=await ep(g,r,f,t,v,y.active,m,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,n&&!0===n.initialHydration,p,u,n&&n.callSiteDefaultShouldRevalidate);_||(i=null,ea(r,{matches:w||f,...e2(u),loaderData:E,errors:S,...x?{fetchers:x}:{}}))}async function eh(t,r,n,i,o,a,s,u,p={}){var y,m,g;let v;if(ej(),eo({navigation:(y=r,m=i,{state:"submitting",location:y,matches:m,historyAction:o,formMethod:(g=n).formMethod,formAction:g.formAction,formEncType:g.formEncType,formData:g.formData,json:g.json,text:g.text})},{flushSync:!0===p.flushSync}),s){let e=await tt(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=e3(d.activeRoutes);return{matches:t,pendingActionResult:[r.id,{type:"error",error:e.error}]}}let t=e4(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:n}=eX(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:"error",error:t}]}}}let b=to(i,r);if(b.route.action||b.route.lazy){let e=e$(c,f,t,r,i,b,u?[]:l,a),n=await eD(t,r,e,a,null);if(!(v=n[b.route.id])){for(let e of i)if(n[e.route.id]){v=n[e.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}else v={type:"error",error:e5(405,{method:t.method,pathname:r.pathname,routeId:b.route.id})};if(te(v)){let r;return r=p&&null!=p.replace?p.replace:eY(v.response.headers.get("Location"),new URL(t.url),h,e.history)===N.location.pathname+N.location.search,await eI(t,v,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(e7(v)){let e=e4(i,b.route.id);return!0!==(p&&p.replace)&&(L="PUSH"),{matches:i,pendingActionResult:[e.route.id,v,b.route.id]}}return{matches:i,pendingActionResult:[b.route.id,v]}}async function ep(t,r,n,o,a,s,u,p,y,m,g,v,b,_){let w=u||ts(r,n,o,p),E=p||y||ta(w),S=!V&&!g;if(s){if(S){let e=ey(b);eo({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await tt(n,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=e3(d.activeRoutes);return{matches:t,loaderData:{},errors:{[r.id]:e.error}}}let t=e4(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)n=e.matches;else{let{error:e,notFoundMatches:t,route:n}=eX(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}}let x=d.activeRoutes,{dsMatches:O,revalidatingFetchers:k}=eT(t,a,c,f,e.history,N,n,E,r,g?[]:l,!0===g,H,G,et,Z,X,x,h,null!=e.patchRoutesOnNavigation,d.branches,b,_);if(Q=++Y,!e.dataStrategy&&!O.some(e=>e.shouldLoad)&&!O.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===k.length){let e=new Map(N.fetchers),t=eW(e);return ea(r,{matches:n,loaderData:{},errors:b&&e7(b[1])?{[b[0]]:b[1].error}:null,...e2(b),...t?{fetchers:e}:{}},{flushSync:v}),{shortCircuited:!0}}if(S){var T;let e,t={};if(!s){t.navigation=w;let e=ey(b);void 0!==e&&(t.actionData=e)}k.length>0&&(T=k,e=new Map(N.fetchers),T.forEach(t=>{let r=e.get(t.key),n=tl(void 0,r?r.data:void 0);e.set(t.key,n)}),t.fetchers=e),eo(t,{flushSync:v})}k.forEach(e=>{eB(e.key),e.controller&&K.set(e.key,e.controller)});let C=()=>k.forEach(e=>eB(e.key));i&&i.signal.addEventListener("abort",C);let{loaderResults:P,fetcherResults:A}=await eM(O,k,t,r,a);if(t.signal.aborted)return{shortCircuited:!0};i&&i.signal.removeEventListener("abort",C),k.forEach(e=>K.delete(e.key));let R=e6(P);if(R)return await eI(t,R.result,!0,{replace:m}),{shortCircuited:!0};if(R=e6(A))return X.add(R.key),await eI(t,R.result,!0,{replace:m}),{shortCircuited:!0};let I=new Map(N.fetchers),{loaderData:D,errors:M}=e0(N,n,P,b,k,A,I);g&&N.errors&&(M={...N.errors,...M});let j=eW(I),L=eV(Q,I);return{matches:n,loaderData:D,errors:M,...j||L||k.length>0?{workingFetchers:I}:{}}}function ey(e){if(e&&!e7(e[1]))return{[e[0]]:e[1].data};if(N.actionData)if(0===Object.keys(N.actionData).length)return null;else return N.actionData}async function eS(t,r,n,o,a,s,u,p,y,m){var g,v;ej(),Z.delete(t);let b=N.fetchers.get(t);eL(t,(g=y,v=b,{state:"submitting",formMethod:g.formMethod,formAction:g.formAction,formEncType:g.formEncType,formData:g.formData,json:g.json,text:g.text,data:v?v.data:void 0}),{flushSync:u});let w=new AbortController,E=eQ(e.history,n,w.signal,y);if(s){let e=await tt(o,new URL(E.url).pathname,E.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eF(t,r,e.error,{flushSync:u});if(!e.matches)return void eF(t,r,e5(404,{pathname:n}),{flushSync:u});o=e.matches}let S=to(o,n);if(!S.route.action&&!S.route.lazy){let e=e5(405,{method:y.formMethod,pathname:n,routeId:r});eF(t,r,e,{flushSync:u});return}K.set(t,w);let x=Y,O=e$(c,f,E,n,o,S,l,a),k=await eD(E,n,O,a,t),T=k[S.route.id];if(!T){for(let e of O)if(k[e.route.id]){T=k[e.route.id];break}}if(E.signal.aborted){K.get(t)===w&&K.delete(t);return}if(et.has(t)){if(te(T)||e7(T))return void eL(t,tu(void 0))}else{if(te(T))return(K.delete(t),Q>x)?void eL(t,tu(void 0)):(X.add(t),eL(t,tl(y)),eI(E,T,!1,{fetcherSubmission:y,preventScrollReset:p}));if(e7(T))return void eF(t,r,T.error)}let C=N.navigation.location||N.location,P=eQ(e.history,C,w.signal),A=d.activeRoutes,R="idle"!==N.navigation.state?D(A,N.navigation.location,h,!1,d.branches):N.matches;_(R,"Didn't find any matches after fetcher action");let I=++Y;J.set(t,I);let{dsMatches:M,revalidatingFetchers:j}=eT(P,a,c,f,e.history,N,R,y,C,l,!1,H,G,et,Z,X,A,h,null!=e.patchRoutesOnNavigation,d.branches,[S.route.id,T],m),F=tl(y,T.data),U=new Map(N.fetchers);U.set(t,F),j.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=U.get(t),n=tl(void 0,r?r.data:void 0);U.set(t,n),eB(t),e.controller&&K.set(t,e.controller)}),eo({fetchers:U});let B=()=>j.forEach(e=>eB(e.key));w.signal.addEventListener("abort",B);let{loaderResults:z,fetcherResults:$}=await eM(M,j,P,C,a);if(w.signal.aborted)return;w.signal.removeEventListener("abort",B),J.delete(t),K.delete(t),j.forEach(e=>K.delete(e.key));let q=N.fetchers.has(t),W=e=>{if(!q)return e;let r=new Map(e.fetchers);return r.set(t,tu(T.data)),{...e,fetchers:r}},V=e6(z);if(V)return N=W(N),eI(P,V.result,!1,{preventScrollReset:p});if(V=e6($))return X.add(V.key),N=W(N),eI(P,V.result,!1,{preventScrollReset:p});let ee=new Map(N.fetchers);q&&ee.set(t,tu(T.data));let{loaderData:er,errors:en}=e0(N,R,z,void 0,j,$,ee);eV(I,ee),"loading"===N.navigation.state&&I>Q?(_(L,"Expected pending action"),i&&i.abort(),ea(N.navigation.location,{matches:R,loaderData:er,errors:en,fetchers:ee})):(eo({errors:en,loaderData:e1(N.loaderData,er,R,en),fetchers:ee}),H=!1)}async function eA(t,r,n,i,o,a,s,u,d){let h=N.fetchers.get(t);eL(t,tl(d,h?h.data:void 0),{flushSync:s});let p=new AbortController,y=eQ(e.history,n,p.signal);if(a){let e=await tt(i,new URL(y.url).pathname,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eF(t,r,e.error,{flushSync:s});if(!e.matches)return void eF(t,r,e5(404,{pathname:n}),{flushSync:s});i=e.matches}let m=to(i,n);K.set(t,p);let g=Y,v=e$(c,f,y,n,i,m,l,o),b=await eD(y,n,v,o,t),_=b[m.route.id];if(!_){for(let e of i)if(b[e.route.id]){_=b[e.route.id];break}}if(K.get(t)===p&&K.delete(t),!y.signal.aborted){if(et.has(t))return void eL(t,tu(void 0));if(te(_))if(Q>g)return void eL(t,tu(void 0));else{X.add(t),await eI(y,_,!1,{preventScrollReset:u});return}if(e7(_))return void eF(t,r,_.error);eL(t,tu(_.data))}}async function eI(t,r,n,{submission:o,fetcherSubmission:l,preventScrollReset:u,replace:c}={}){n||(F?.resolve(),F=null),r.response.headers.has("X-Remix-Revalidate")&&(H=!0);let f=r.response.headers.get("Location");_(f,"Expected a Location header on the redirect Response"),f=eY(f,new URL(t.url),h,e.history);let d=S(N.location,f,{_isRedirect:!0});if(s){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else if($(f)){let t=k(a,f,!0);e=t.origin!==a.location.origin||null==z(t.pathname,h)}if(e)return void(c?a.location.replace(f):a.location.assign(f))}i=null;let p=!0===c||r.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:y,formAction:m,formEncType:g}=N.navigation;!o&&!l&&y&&m&&g&&(o=ta(N.navigation));let v=o||l;if(eg.has(r.response.status)&&v&&tn(v.formMethod))await ed(p,d,{submission:{...v,formAction:f},preventScrollReset:u||U,enableViewTransition:n?B:void 0});else{let e=ts(d,[],p,o);await ed(p,d,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:u||U,enableViewTransition:n?B:void 0})}}async function eD(e,t,r,n,i){let o,a={};try{o=await eq(p,e,t,r,i,n,!1)}catch(e){return r.filter(e=>e.shouldLoad).forEach(t=>{a[t.route.id]={type:"error",error:e}}),a}if(e.signal.aborted)return a;if(!tn(e.method))for(let e of r){if(o[e.route.id]?.type==="error")break;!o.hasOwnProperty(e.route.id)&&!N.loaderData.hasOwnProperty(e.route.id)&&(!N.errors||!N.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(o[e.route.id]={type:"error",result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,n]of Object.entries(o)){var s;if(tr((s=n).result)&&em.has(s.result.status)){let i=n.result;a[t]={type:"redirect",response:function(e,t,r,n,i){let o=e.headers.get("Location");if(_(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!$(o)){let a=n.slice(0,n.findIndex(e=>e.route.id===r)+1);o=eO(new URL(t.url),a,i,o),e.headers.set("Location",o)}return e}(i,e,t,r,h)}}else a[t]=await eH(n)}return a}async function eM(e,t,r,n,i){let o=eD(r,n,e,i,null),a=Promise.all(t.map(async e=>{if(!e.matches||!e.match||!e.request||!e.controller)return Promise.resolve({[e.key]:{type:"error",error:e5(404,{pathname:e.path})}});{let t=(await eD(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}}));return{loaderResults:await o,fetcherResults:(await a).reduce((e,t)=>Object.assign(e,t),{})}}function ej(){H=!0,Z.forEach((e,t)=>{K.has(t)&&G.add(t),eB(t)})}function eL(e,t,r={}){let n=new Map(N.fetchers);n.set(e,t),eo({fetchers:n},{flushSync:!0===(r&&r.flushSync)})}function eF(e,t,r,n={}){let i=e4(N.matches,t),o=new Map(N.fetchers);eU(o,e),eo({errors:{[i.route.id]:r},fetchers:o},{flushSync:!0===(n&&n.flushSync)})}function eU(e,t){let r=N.fetchers.get(t);K.has(t)&&!(r&&"loading"===r.state&&J.has(t))&&eB(t),Z.delete(t),J.delete(t),X.delete(t),et.delete(t),G.delete(t),e.delete(t)}function eB(e,t){let r=K.get(e);r&&(r.abort(t),K.delete(e))}function ez(e,t){for(let r of e){let e=t.get(r);_(e,`Expected fetcher: ${r}`);let n=tu(e.data);t.set(r,n)}}function eW(e){let t=[],r=!1;for(let n of X){let i=e.get(n);_(i,`Expected fetcher: ${n}`),"loading"===i.state&&(X.delete(n),t.push(n),r=!0)}return ez(t,e),r}function eV(e,t){let r=[];for(let[n,i]of J)if(i0}function eG(e){N.blockers.delete(e),er.delete(e)}function eK(e,t){let r=N.blockers.get(e)||e_;_("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,`Invalid blocker state transition: ${r.state} -> ${t.state}`);let n=new Map(N.blockers);n.set(e,t),eo({blockers:n})}function eJ({currentLocation:e,nextLocation:t,historyAction:r}){if(0===er.size)return;er.size>1&&w(!1,"A router only supports one blocker at a time");let n=Array.from(er.entries()),[i,o]=n[n.length-1],a=N.blockers.get(i);if((!a||"proceeding"!==a.state)&&o({currentLocation:e,nextLocation:t,historyAction:r}))return i}function eX(e){let t=e5(404,{pathname:e}),{matches:r,route:n}=e3(d.activeRoutes);return{notFoundMatches:r,route:n,error:t}}function eZ(e,t){return E&&E(e,t.map(e=>M(e,N.loaderData)))||e.key}function e8(e,t){if(b){let r=b[eZ(e,t)];if("number"==typeof r)return r}return null}function e9(t,r,n){if(e.patchRoutesOnNavigation){let e=d.branches;if(!t)return{active:!0,matches:D(r,n,h,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:D(r,n,h,!0,e)}}return{active:!1,matches:null}}async function tt(t,r,n,i){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let o=t;for(;;){let t=f;try{await e.patchRoutesOnNavigation({signal:n,path:r,matches:o,fetcherKey:i,patch:(e,r)=>{n.aborted||eR(e,r,d,t,c,!1)}})}catch(e){return{type:"error",error:e,partialMatches:o}}if(n.aborted)return{type:"aborted"};let a=d.branches,s=D(d.activeRoutes,r,h,!1,a),l=null;if(s){if(0===Object.keys(s[0].params).length)return{type:"success",matches:s};else if(!((l=D(d.activeRoutes,r,h,!0,a))&&o.lengthe.route.id===t[r].route.id)}return n={get basename(){return h},get future(){return y},get state(){return N},get routes(){return d.stableRoutes},get branches(){return d.branches},get manifest(){return f},get window(){return a},initialize:function(){if(m=e.history.listen(({action:t,location:r,delta:n})=>{if(o){o(),o=void 0;return}w(0===er.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=eJ({currentLocation:N.location,nextLocation:r,historyAction:t});if(i&&null!=n){let t=new Promise(e=>{o=e});e.history.go(-1*n),eK(i,{state:"blocked",location:r,proceed(){eK(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(n))},reset(){let e=new Map(N.blockers);e.set(i,e_),eo({blockers:e})}}),F?.resolve(),F=null;return}return ed(t,r)}),s){var t=a,r=q;try{let e=t.sessionStorage.getItem(eE);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(eE,JSON.stringify(r))}catch(e){w(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}})(a,q);a.addEventListener("pagehide",e),W=()=>a.removeEventListener("pagehide",e)}return N.initialized||ed("POP",N.location,{initialHydration:!0}),n},subscribe:function(e){if(g.add(e),v){let{newErrors:t}=v;v=null,e(N,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>g.delete(e)},enableScrollRestoration:function(e,t,r){if(b=e,C=t,E=r||null,!P&&N.navigation===ev){P=!0;let e=e8(N.location,N.matches);null!=e&&eo({restoreScrollPosition:e})}return()=>{b=null,C=null,E=null}},navigate:eu,fetch:async function t(t,r,n,i){eB(t);let o=!0===(i&&i.flushSync),a=d.activeRoutes,s=eO(N.location,N.matches,h,n,r,i?.relative),l=D(a,s,h,!1,d.branches),u=e9(l,a,s);if(u.active&&u.matches&&(l=u.matches),!l)return void eF(t,r,e5(404,{pathname:s}),{flushSync:o});let{path:c,submission:f,error:p}=ek(!0,s,i);if(p)return void eF(t,r,p,{flushSync:o});let y=e.getContext?await e.getContext():new T,m=!0===(i&&i.preventScrollReset);if(f&&tn(f.formMethod))return void await eS(t,r,c,l,y,u.active,o,m,f,i&&i.defaultShouldRevalidate);Z.set(t,{routeId:r,path:c}),await eA(t,r,c,l,y,u.active,o,m,f)},revalidate:function(){ei||(ei=tc()),ej(),eo({revalidation:"loading"});let e=ei.promise;return"submitting"===N.navigation.state||("idle"===N.navigation.state?ed(N.historyAction,N.location,{startUninterruptedRevalidation:!0}):ed(L||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:!0===B})),e},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:function(e){return ee.set(e,(ee.get(e)||0)+1),et.has(e)&&et.delete(e),N.fetchers.get(e)||eb},resetFetcher:function(e,t){eB(e,t?.reason),eL(e,tu(null))},deleteFetcher:function(e){let t=(ee.get(e)||0)-1;t<=0?(ee.delete(e),et.add(e)):ee.set(e,t),eo({fetchers:new Map(N.fetchers)})},dispose:function(){m&&m(),W&&W(),g.clear(),i&&i.abort(),N.fetchers.forEach((e,t)=>eU(N.fetchers,t)),N.blockers.forEach((e,t)=>eG(t))},getBlocker:function(e,t){let r=N.blockers.get(e)||e_;return er.get(e)!==t&&er.set(e,t),r},deleteBlocker:eG,patchRoutes:function(e,t,r=!1){eR(e,t,d,f,c,r),d.hasHMRRoutes||eo({})},_internalFetchControllers:K,_internalSetRoutes:function(e){f={},d.setHmrRoutes(A(e,c,void 0,f))},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){eo(e)}},e.instrumentations&&(n=function(e,t){let r={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){for(let t of Object.keys(e))e[t]&&r[t].push(e[t])}})),r.navigate.length>0){let t=e.navigate[es]??e.navigate,n=el(r.navigate,t,(...t)=>{let[r,n]=t;return{to:"number"==typeof r||"string"==typeof r?r:r?x(r):".",...ef(e,n??{})}});n&&(n[es]=t,e.navigate=n)}if(r.fetch.length>0){let t=e.fetch[es]??e.fetch,n=el(r.fetch,t,(...t)=>{let[r,,n,i]=t;return{href:n??".",fetcherKey:r,...ef(e,i??{})}});n&&(n[es]=t,e.fetch=n)}return e}(n,e.instrumentations.map(e=>e.router).filter(Boolean))),n})({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:function(e={}){return function(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s="POP",l=null,u=c();function c(){return(a.state||{idx:null}).idx}function f(){s="POP";let e=c(),t=null==e?null:e-u;u=e,l&&l({action:s,location:h.location,delta:t})}function d(e){return k(i,e)}null==u&&(u=0,a.replaceState({...a.state,idx:u},""));let h={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw Error("A history only accepts one active listener");return i.addEventListener(v,f),l=e,()=>{i.removeEventListener(v,f),l=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=b(e)?e:S(h.location,e,t);let n=E(r,u=c()+1),f=h.createHref(r.mask||r);try{a.pushState(n,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(f)}o&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s="REPLACE";let n=b(e)?e:S(h.location,e,t);r&&r(n,e);let i=E(n,u=c()),f=h.createHref(n.mask||n);a.replaceState(i,"",f),o&&l&&l({action:s,location:h.location,delta:0})},go:e=>a.go(e)};return h}(function(e,t){let r=t.state?.masked,{pathname:n,search:i,hash:o}=r||e.location;return S("",{pathname:n,search:i,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default",r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:x(t)},null,e)}({window:t?.window}),hydrationData:t?.hydrationData||((r=window?.__staticRouterHydrationData)&&r.errors&&(r={...r,errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new er(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if("string"==typeof n.__subType&&et.includes(n.__subType)){let t=window[n.__subType];if("function"==typeof t)try{let i=new t(n.message);i.stack="",r[e]=i}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(r.errors)}),r),routes:e,mapRouteProperties:tV,hydrationRouteProperties:tH,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}var ry=u.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:i,replace:o,mask:a,state:s,target:l,to:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...p},m){let{basename:g,navigator:v,useTransitions:b}=u.useContext(tg),w="string"==typeof c&&y.test(c),E=ea(c,g),S=function(e,{relative:t}={}){_(tE(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=u.useContext(tg),{hash:i,pathname:o,search:a}=tP(e,{relative:t}),s=o;return"/"!==r&&(s="/"===o?r:Y([r,o])),n.createHref({pathname:s,search:a,hash:i})}(c=E.to,{relative:n}),O=tS(),k=null;if(a){let e=G(a,[],O.mask?O.mask.pathname:"/",!0);"/"!==g&&(e.pathname="/"===e.pathname?g:Y([g,e.pathname])),k=v.createHref(e)}let[T,C,P]=function(e,t){let r=u.useContext(rs),[n,i]=u.useState(!1),[o,a]=u.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:f,onTouchStart:d}=t,h=u.useRef(null);u.useEffect(()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{a(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[e]),u.useEffect(()=>{if(n){let e=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(e)}}},[n]);let p=()=>{i(!0)},y=()=>{i(!1),a(!1)};return r?"intent"!==e?[o,h,{}]:[o,h,{onFocus:ru(s,p),onBlur:ru(l,y),onMouseEnter:ru(c,p),onMouseLeave:ru(f,y),onTouchStart:ru(d,p)}]:[!1,h,{}]}(r,p),A=function(e,{target:t,replace:r,mask:n,state:i,preventScrollReset:o,relative:a,viewTransition:s,defaultShouldRevalidate:l,useTransitions:c}={}){let f=tk(),d=tS(),h=tP(e,{relative:a});return u.useCallback(p=>{if(0===p.button&&(!t||"_self"===t)&&!(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey)){p.preventDefault();let t=void 0!==r?r:x(d)===x(h),y=()=>f(e,{replace:t,mask:n,state:i,preventScrollReset:o,relative:a,viewTransition:s,defaultShouldRevalidate:l});c?u.startTransition(()=>y()):y()}},[d,f,h,r,n,i,t,e,o,a,s,l,c])}(c,{replace:o,mask:a,state:s,target:l,preventScrollReset:f,relative:n,viewTransition:d,defaultShouldRevalidate:h,useTransitions:b}),R=!(E.isExternal||i),I=u.createElement("a",{...p,...P,href:(R?k:void 0)||E.absoluteURL||S,onClick:R?function(t){e&&e(t),t.defaultPrevented||A(t)}:e,ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(m,C),target:l,"data-discover":w||"render"!==t?void 0:"true"});return T&&!w?u.createElement(u.Fragment,null,I,u.createElement(rc,{page:S})):I});ry.displayName="Link",u.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:i,to:o,viewTransition:a,children:s,...l},c){let f,d=tP(o,{relative:l.relative}),h=tS(),p=u.useContext(td),{navigator:y,basename:m}=u.useContext(tg),g=null!=p&&function(e,{relative:t}={}){let r=u.useContext(ty);_(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=rm("useViewTransitionState"),i=tP(e,{relative:t});if(!r.isTransitioning)return!1;let o=z(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=z(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=F(i.pathname,a)||null!=F(i.pathname,o)}(d)&&!0===a,v=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,b=h.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&m&&(w=z(w,m)||w);let E="/"!==v&&v.endsWith("/")?v.length-1:v.length,S=b===v||!n&&b.startsWith(v)&&"/"===b.charAt(E),x=null!=w&&(w===v||!n&&w.startsWith(v)&&"/"===w.charAt(v.length)),O={isActive:S,isPending:x,isTransitioning:g},k=S?e:void 0;f="function"==typeof r?r(O):[r,S?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let T="function"==typeof i?i(O):i;return u.createElement(ry,{...l,"aria-current":k,className:f,ref:c,style:T,to:o,viewTransition:a},"function"==typeof s?s(O):s)}).displayName="NavLink",u.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:o,method:a=t1,action:s,onSubmit:l,relative:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...p},m)=>{let{useTransitions:g}=u.useContext(tg),v=function(){let{router:e}=rm("useSubmit"),{basename:t}=u.useContext(tg),r=tL("useRouteId"),n=e.fetch,i=e.navigate;return u.useCallback(async(e,o={})=>{let{action:a,method:s,encType:l,formData:u,body:c}=function(e,t){let r,n,i,o,a;if(t4(e)&&"form"===e.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?z(a,t):null,r=e.getAttribute("method")||t1,i=t8(e.getAttribute("enctype"))||t2,o=new FormData(e)}else if(t4(e)&&"button"===e.tagName.toLowerCase()||t4(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw Error('Cannot submit a