(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888,8557],{25351:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return i}});var i=(0,r(19830).createAsyncLocalStorage)();("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66633:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return i.actionAsyncStorage}});var i=r(25351);("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19830:function(e,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});var n,i,o=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),a=(n=function e(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e)},i=[{key:"disable",value:function(){throw o}},{key:"getStore",value:function(){}},{key:"run",value:function(){throw o}},{key:"exit",value:function(){throw o}},{key:"enterWith",value:function(){throw o}}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(i.key),i)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n),s=globalThis.AsyncLocalStorage;function u(){return s?new s:new a}("function"==typeof t.default||"object"===r(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24093:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c.ReadonlyURLSearchParams},RedirectType:function(){return c.RedirectType},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},notFound:function(){return c.notFound},permanentRedirect:function(){return c.permanentRedirect},redirect:function(){return c.redirect},useParams:function(){return h},usePathname:function(){return p},useRouter:function(){return d},useSearchParams:function(){return f},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return l.useServerInsertedHTML}});var i=r(2700),o=r(48042),a=r(64305),s=r(43954),u=r(84103),c=r(81633),l=r(40341);function f(){var e=(0,i.useContext)(a.SearchParamsContext);return(0,i.useMemo)(function(){return e?new c.ReadonlyURLSearchParams(e):null},[e])}function p(){return(0,i.useContext)(a.PathnameContext)}function d(){var e=(0,i.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,i.useContext)(a.PathParamsContext)}function y(e){void 0===e&&(e="children");var t=(0,i.useContext)(o.LayoutRouterContext);return t?function e(t,r,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var o,a,c=t[1];o=null!=(a=c.children)?a:Object.values(c)[0]}if(!o)return i;var l=o[0],f=(0,s.getSegmentValue)(l);return!f||f.startsWith(u.PAGE_SEGMENT_KEY)?i:(i.push(f),e(o,r,!1,i))}(t.tree,e):null}function g(e){void 0===e&&(e="children");var t=y(e);if(!t||0===t.length)return null;var r="children"===e?t[0]:t[t.length-1];return r===u.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81633:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==n(e)||null===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,"string");return"symbol"===n(t)?t:String(t)}(i.key),i)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t,r){return t=p(t),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,!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(){}))}catch(e){return!1}}()?t.apply(e,r):Reflect.construct(t,r||[],p(e).constructor))}function u(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function l(e,t,r){return(l=!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(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&f(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return g},RedirectType:function(){return d.RedirectType},notFound:function(){return h.notFound},permanentRedirect:function(){return d.permanentRedirect},redirect:function(){return d.redirect}});var d=r(59194),h=r(89795),y=function(e){function t(){return a(this,t),s(this,t,["Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams"])}return u(t,e),o(t)}(c(Error)),g=function(e){function t(){return a(this,t),s(this,t,arguments)}return u(t,e),o(t,[{key:"append",value:function(){throw new y}},{key:"delete",value:function(){throw new y}},{key:"set",value:function(){throw new y}},{key:"sort",value:function(){throw new y}}])}(c(URLSearchParams));("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89795:function(e,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return o},notFound:function(){return i}});var n="NEXT_NOT_FOUND";function i(){var e=Error(n);throw e.digest=n,e}function o(e){return"object"===r(e)&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"===r(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96663:function(e,t){"use strict";var r,n;function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"===i(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59194:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return a},getRedirectError:function(){return f},getRedirectStatusCodeFromError:function(){return v},getRedirectTypeFromError:function(){return g},getURLFromRedirectError:function(){return y},isRedirectError:function(){return h},permanentRedirect:function(){return d},redirect:function(){return p}});var o,a,s=r(59084),u=r(66633),c=r(96663),l="NEXT_REDIRECT";function f(e,t,r){void 0===r&&(r=c.RedirectStatusCode.TemporaryRedirect);var n=Error(l);n.digest=l+";"+t+";"+e+";"+r+";";var i=s.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function p(e,t){void 0===t&&(t="replace");var r=u.actionAsyncStorage.getStore();throw f(e,t,(null==r?void 0:r.isAction)?c.RedirectStatusCode.SeeOther:c.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");var r=u.actionAsyncStorage.getStore();throw f(e,t,(null==r?void 0:r.isAction)?c.RedirectStatusCode.SeeOther:c.RedirectStatusCode.PermanentRedirect)}function h(e){if("object"!==i(e)||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;var t,r=function(e){if(Array.isArray(e))return e}(t=e.digest.split(";",4))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{for(o=(r=r.call(e)).next;!(u=(n=o.call(r)).done)&&(s.push(n.value),4!==s.length);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,4)||function(e,t){if(e){if("string"==typeof e)return n(e,4);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,4)}}(t,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],a=r[1],s=r[2],u=Number(r[3]);return o===l&&("replace"===a||"push"===a)&&"string"==typeof s&&!isNaN(u)&&u in c.RedirectStatusCode}function y(e){return h(e)?e.digest.split(";",3)[2]:null}function g(e){if(!h(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function v(e){if(!h(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=a||(a={})).push="push",o.replace="replace",("function"==typeof t.default||"object"===i(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58894:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});var i=(0,r(19830).createAsyncLocalStorage)();("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59084:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return i.requestAsyncStorage}});var i=r(58894);function o(e){var t=i.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43954:function(e,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"===r(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24509:function(e,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return p},ACTION_NAVIGATE:function(){return u},ACTION_PREFETCH:function(){return f},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return c},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return l},PrefetchCacheEntryStatus:function(){return a},PrefetchKind:function(){return o},isThenable:function(){return h}});var n,i,o,a,s="refresh",u="navigate",c="restore",l="server-patch",f="prefetch",p="fast-refresh",d="server-action";function h(e){return e&&("object"===r(e)||"function"==typeof e)&&"function"==typeof e.then}(n=o||(o={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",(i=a||(a={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"===r(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80791:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}}),r(83120),("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68532:function(e,t,r){"use strict";var n=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function i(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return(u="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)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(t,r,n,o){var a,s,u=Object.create((r&&r.prototype instanceof m?r:m).prototype);return i(u,"_invoke",{value:(a=new k(o||[]),s=h,function(r,i){if(s===y)throw Error("Generator is already running");if(s===g){if("throw"===r)throw i;return{value:e,done:!0}}for(a.method=r,a.arg=i;;){var o=a.delegate;if(o){var u=function t(r,n){var i=n.method,o=r.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+i+"' method")),v;var a=d(o,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,v)}(o,a);if(u){if(u===v)continue;return u}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=y;var c=d(t,n,a);if("normal"===c.type){if(s=a.done?g:"suspendedYield",c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(s=g,a.method="throw",a.arg=c.arg)}})}),u}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",y="executing",g="completed",v={};function m(){}function b(){}function E(){}var w={};f(w,a,function(){return this});var _=Object.getPrototypeOf,O=_&&_(_(x([])));O&&O!==r&&n.call(O,a)&&(w=O);var S=E.prototype=m.prototype=Object.create(w);function T(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){var r;i(this,"_invoke",{value:function(i,o){function a(){return new t(function(r,a){!function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(f).then(function(e){l.value=e,a(l)},function(e){return r("throw",e,a,s)})}s(c.arg)}(i,o,r,a)})}return r=r?r.then(a,a):a()}})}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw TypeError(u(t)+" is not iterable")}return b.prototype=E,i(S,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:b,configurable:!0}),b.displayName=f(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},T(A.prototype),f(A.prototype,s,function(){return this}),t.AsyncIterator=A,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new A(p(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},T(S),f(S,l,"Generator"),f(S,a,function(){return this}),f(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;R(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function l(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return R}});var f=r(58963),p=r(19207),d=f._(r(2700)),h=r(34010),y=r(62278),g=r(85186),v=r(38083),m=r(40766),b=r(25108),E=r(48042),w=r(15115),_=r(80791),O=r(41171),S=r(24509),T=new Set;function A(e,t,r,n,i,o){if(o||(0,y.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){var a,s,u=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(T.has(u))return;T.add(u)}(a=c().mark(function a(){return c().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!o){a.next=4;break}return a.abrupt("return",e.prefetch(t,i));case 4:return a.abrupt("return",e.prefetch(t,r,n));case 5:case"end":return a.stop()}},a)}),s=function(){var e=this,t=arguments;return new Promise(function(r,n){var i=a.apply(e,t);function o(e){l(i,r,n,o,s,"next",e)}function s(e){l(i,r,n,o,s,"throw",e)}o(void 0)})},function(){return s.apply(this,arguments)})().catch(function(e){})}}function I(e){return"string"==typeof e?e:(0,g.formatUrl)(e)}var R=d.default.forwardRef(function(e,t){var r,i,s=e.href,c=e.as,l=e.children,f=e.prefetch,g=void 0===f?null:f,T=e.passHref,R=e.replace,k=e.shallow,x=e.scroll,N=e.locale,P=e.onClick,C=e.onMouseEnter,D=e.onTouchStart,j=e.legacyBehavior,M=void 0!==j&&j,L=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,n);r=l,M&&("string"==typeof r||"number"==typeof r)&&(r=(0,p.jsx)("a",{children:r}));var F=d.default.useContext(b.RouterContext),U=d.default.useContext(E.AppRouterContext),V=null!=F?F:U,B=!F,G=!1!==g,q=null===g?S.PrefetchKind.AUTO:S.PrefetchKind.FULL,z=d.default.useMemo(function(){if(!F){var e=I(s);return{href:e,as:c?I(c):e}}var t=a((0,h.resolveHref)(F,s,!0),2),r=t[0],n=t[1];return{href:r,as:c?(0,h.resolveHref)(F,c):n||r}},[F,s,c]),H=z.href,W=z.as,K=d.default.useRef(H),Y=d.default.useRef(W);M&&(i=d.default.Children.only(r));var Q=M?i&&"object"===u(i)&&i.ref:t,$=a((0,w.useIntersection)({rootMargin:"200px"}),3),J=$[0],X=$[1],Z=$[2],ee=d.default.useCallback(function(e){(Y.current!==W||K.current!==H)&&(Z(),Y.current=W,K.current=H),J(e),Q&&("function"==typeof Q?Q(e):"object"===u(Q)&&(Q.current=e))},[W,Q,H,Z,J]);d.default.useEffect(function(){V&&X&&G&&A(V,H,W,{locale:N},{kind:q},B)},[W,H,X,N,G,null==F?void 0:F.locale,V,B,q]);var et={ref:ee,onClick:function(e){M||"function"!=typeof P||P(e),M&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),V&&!e.defaultPrevented&&function(e,t,r,n,i,o,a,s,u){if(!("A"===e.currentTarget.nodeName.toUpperCase()&&((c=e.currentTarget.getAttribute("target"))&&"_self"!==c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which||!u&&!(0,y.isLocalURL)(r)))){e.preventDefault();var c,l=function(){var e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:s,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};u?d.default.startTransition(l):l()}}(e,V,H,W,R,k,x,N,B)},onMouseEnter:function(e){M||"function"!=typeof C||C(e),M&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),V&&(G||!B)&&A(V,H,W,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:q},B)},onTouchStart:function(e){M||"function"!=typeof D||D(e),M&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),V&&(G||!B)&&A(V,H,W,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:q},B)}};if((0,v.isAbsoluteUrl)(W))et.href=W;else if(!M||T||"a"===i.type&&!("href"in i.props)){var er=void 0!==N?N:null==F?void 0:F.locale,en=(null==F?void 0:F.isLocaleDomain)&&(0,_.getDomainLocale)(W,er,null==F?void 0:F.locales,null==F?void 0:F.domainLocales);et.href=en||(0,O.addBasePath)((0,m.addLocale)(W,er,null==F?void 0:F.defaultLocale))}return M?d.default.cloneElement(i,et):(0,p.jsx)("a",o(o(o({},L),et),{},{children:r}))});("function"==typeof t.default||"object"===u(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15115:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});var o=r(2700),a=r(51034),s="function"==typeof IntersectionObserver,u=new Map,c=[];function l(e){var t,r=e.rootRef,n=e.rootMargin,l=e.disabled||!s,f=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(!1))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{for(o=(r=r.call(e)).next;!(u=(n=o.call(r)).done)&&(s.push(n.value),2!==s.length);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],d=f[1],h=(0,o.useRef)(null),y=(0,o.useCallback)(function(e){h.current=e},[]);return(0,o.useEffect)(function(){if(s){if(!l&&!p){var e,t,i,o,f,y=h.current;if(y&&y.tagName)return e=function(e){return e&&d(e)},i=(t=function(e){var t,r={root:e.root||null,margin:e.rootMargin||""},n=c.find(function(e){return e.root===r.root&&e.margin===r.margin});if(n&&(t=u.get(n)))return t;var i=new Map;return t={id:r,observer:new IntersectionObserver(function(e){e.forEach(function(e){var t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},c.push(r),u.set(r,t),t}({root:null==r?void 0:r.current,rootMargin:n})).id,o=t.observer,(f=t.elements).set(y,e),o.observe(y),function(){if(f.delete(y),o.unobserve(y),0===f.size){o.disconnect(),u.delete(i);var e=c.findIndex(function(e){return e.root===i.root&&e.margin===i.margin});e>-1&&c.splice(e,1)}}}}else if(!p){var g=(0,a.requestIdleCallback)(function(){return d(!0)});return function(){return(0,a.cancelIdleCallback)(g)}}},[l,n,r,p,h.current]),[y,p,(0,o.useCallback)(function(){d(!1)},[])]}("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18557:function(e,t,r){"use strict";function n(){n=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(t,r,n,i){var o,s,u=Object.create((r&&r.prototype instanceof m?r:m).prototype);return a(u,"_invoke",{value:(o=new k(i||[]),s=h,function(r,i){if(s===y)throw Error("Generator is already running");if(s===g){if("throw"===r)throw i;return{value:e,done:!0}}for(o.method=r,o.arg=i;;){var a=o.delegate;if(a){var u=function t(r,n){var i=n.method,o=r.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+i+"' method")),v;var a=d(o,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,v)}(a,o);if(u){if(u===v)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===h)throw s=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=y;var c=d(t,n,o);if("normal"===c.type){if(s=o.done?g:"suspendedYield",c.arg===v)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(s=g,o.method="throw",o.arg=c.arg)}})}),u}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",y="executing",g="completed",v={};function m(){}function b(){}function E(){}var w={};f(w,u,function(){return this});var _=Object.getPrototypeOf,O=_&&_(_(x([])));O&&O!==r&&o.call(O,u)&&(w=O);var S=E.prototype=m.prototype=Object.create(w);function T(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){var r;a(this,"_invoke",{value:function(n,a){function s(){return new t(function(r,s){!function r(n,a,s,u){var c=d(e[n],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==i(f)&&o.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,s,u)},function(e){r("throw",e,s,u)}):t.resolve(f).then(function(e){l.value=e,s(l)},function(e){return r("throw",e,s,u)})}u(c.arg)}(n,a,r,s)})}return r=r?r.then(s,s):s()}})}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw TypeError(i(t)+" is not iterable")}return b.prototype=E,a(S,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:b,configurable:!0}),b.displayName=f(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},T(A.prototype),f(A.prototype,c,function(){return this}),t.AsyncIterator=A,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new A(p(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},T(S),f(S,l,"Generator"),f(S,u,function(){return this}),f(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;R(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function i(e){return(i="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)}function o(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 a(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});var l=r(58963),f=r(19207),p=l._(r(2700)),d=r(38083);function h(e){return y.apply(this,arguments)}function y(){var e;return e=n().mark(function e(t){var r,i,o;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.Component,i=t.ctx,e.next=3,(0,d.loadGetInitialProps)(r,i);case 3:return o=e.sent,e.abrupt("return",{pageProps:o});case 5:case"end":return e.stop()}},e)}),(y=function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}var g=function(e){var t;function r(){var e,t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),e=r,t=arguments,e=s(e),function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,!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(){}))}catch(e){return!1}}()?e.apply(this,t):Reflect.construct(e,t||[],s(this).constructor))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(r,e),t=[{key:"render",value:function(){var e=this.props,t=e.Component,r=e.pageProps;return(0,f.jsx)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=a(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}(p.default.Component);g.origGetInitialProps=h,g.getInitialProps=h,("function"==typeof t.default||"object"===i(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67109:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});var n=r(58963)._(r(2700)).default.createContext({})},77710:function(e,t){"use strict";function r(e){var t=void 0===e?{}:e,r=t.ampFirst,n=t.hybrid,i=t.hasQuery;return void 0!==r&&r||void 0!==n&&n&&void 0!==i&&i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},36209: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;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e){return(o="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)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},noSSR:function(){return c}});var a=r(58963);r(19207),r(2700);var s=a._(r(47013));function u(e){return{default:(null==e?void 0:e.default)||e}}function c(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){var r=s.default,n={loading:function(e){return e.error,e.isLoading,e.pastDelay,null}};e instanceof Promise?n.loader=function(){return e}:"function"==typeof e?n.loader=e:"object"===o(e)&&(n=i(i({},n),e));var a=(n=i(i({},n),t)).loader;return(n.loadableGenerated&&(n=i(i({},n),n.loadableGenerated),delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r(i(i({},n),{},{loader:function(){return null!=a?a().then(u):Promise.resolve(u(function(){return null}))}})):(delete n.webpack,delete n.modules,c(r,n))}("function"==typeof t.default||"object"===o(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75980:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(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}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},defaultHead:function(){return d}});var o=r(58963),a=r(15589),s=r(19207),u=a._(r(2700)),c=o._(r(33166)),l=r(67109),f=r(18775),p=r(77710);function d(e){void 0===e&&(e=!1);var t=[(0,s.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===u.default.Fragment?e.concat(u.default.Children.toArray(t.props.children).reduce(function(e,t){return"string"==typeof t||"number"==typeof t?e:e.concat(t)},[])):e.concat(t)}r(20801);var y=["name","httpEquiv","charSet","itemProp"];function g(e,t){var r,o,a,s,c=t.inAmpMode;return e.reduce(h,[]).reverse().concat(d(c).reverse()).filter((r=new Set,o=new Set,a=new Set,s={},function(e){var t=!0,n=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){n=!0;var i=e.key.slice(e.key.indexOf("$")+1);r.has(i)?t=!1:r.add(i)}switch(e.type){case"title":case"base":o.has(e.type)?t=!1:o.add(e.type);break;case"meta":for(var u=0,c=y.length;u<c;u++){var l=y[u];if(e.props.hasOwnProperty(l)){if("charSet"===l)a.has(l)?t=!1:a.add(l);else{var f=e.props[l],p=s[l]||new Set;("name"!==l||!n)&&p.has(f)?t=!1:(p.add(f),s[l]=p)}}}}return t})).reverse().map(function(e,t){var r=e.key||t;if(!c&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(function(t){return e.props.href.startsWith(t)})){var o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var i,o;i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==n(e)||null===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,"string");return"symbol"===n(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e.props||{});return o["data-href"]=o.href,o.href=void 0,o["data-optimized-fonts"]=!0,u.default.cloneElement(e,o)}return u.default.cloneElement(e,{key:r})})}var v=function(e){var t=e.children,r=(0,u.useContext)(l.AmpStateContext),n=(0,u.useContext)(f.HeadManagerContext);return(0,s.jsx)(c.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,p.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});var n=r(58963)._(r(2700)).default.createContext(null)},47013:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=a(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){var t=function(e,t){if("object"!==n(e)||null===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,"string");return"symbol"===n(t)?t:String(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});var u,c,l=r(58963)._(r(2700)),f=r(55654),p=[],d=[],h=!1;function y(e){var t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(function(e){return r.loading=!1,r.loaded=e,e}).catch(function(e){throw r.loading=!1,r.error=e,e}),r}var g=(u=function e(t,r){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,e),this._loadFn=t,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()},c=[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,r=this._opts;t.loading&&("number"==typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){e._update({pastDelay:!0})},r.delay)),"number"==typeof r.timeout&&(this._timeout=setTimeout(function(){e._update({timedOut:!0})},r.timeout))),this._res.promise.then(function(){e._update({}),e._clearTimeouts()}).catch(function(t){e._update({}),e._clearTimeouts()}),this._update({})}},{key:"_update",value:function(e){this._state=o(o({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(function(e){return e()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}(u.prototype,c),Object.defineProperty(u,"prototype",{writable:!1}),u);function v(e){return function(e,t){var r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function i(){if(!n){var t=new g(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!h){var o=r.webpack?r.webpack():r.modules;o&&d.push(function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,void 0)}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}(o);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(e.includes(n))return i()}}catch(e){r.e(e)}finally{r.f()}})}function a(e,t){i(),(o=l.default.useContext(f.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(function(e){o(e)});var o,a=l.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return l.default.useImperativeHandle(t,function(){return{retry:n.retry}},[]),l.default.useMemo(function(){var t;return a.loading||a.error?l.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:n.retry}):a.loaded?l.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return a.preload=function(){return i()},a.displayName="LoadableComponent",l.default.forwardRef(a)}(y,e)}function m(e,t){for(var r=[];e.length;){var n=e.pop();r.push(n(t))}return Promise.all(r).then(function(){if(e.length)return m(e,t)})}v.preloadAll=function(){return new Promise(function(e,t){m(p).then(e,t)})},v.preloadReady=function(e){return void 0===e&&(e=[]),new Promise(function(t){var r=function(){return h=!0,t()};m(d,e).then(r,r)})},window.__NEXT_PRELOADREADY=v.preloadReady;var b=v},40341:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});var n=r(15589)._(r(2700)),i=n.default.createContext(null);function o(e){var t=(0,n.useContext)(i);t&&t(e)}},33166:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});var n=r(2700),i=n.useLayoutEffect,o=n.useEffect;function a(e){var t=e.headManager,r=e.reduceComponentsToState;function a(){if(t&&t.mountedInstances){var i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}return i(function(){var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),function(){var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(function(){return t&&(t._pendingUpdate=a),function(){t&&(t._pendingUpdate=a)}}),o(function(){return t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),function(){t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)}}),null}},20801:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});var r=function(e){}},53478:function(e,t,r){"use strict";r.d(t,{x:function(){return n}});var n={results:{resultsPerPage:10,result_fields:{title:{snippet:{size:100,fallback:!0}},url:{raw:{}}}},suggestions:{types:{documents:{fields:["title","headings"]}},size:4}}},50978:function(e,t,r){"use strict";r.d(t,{b:function(){return m}});var n=r(92426),i=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function o(e,t={}){let r=e.info.facets,n=e.info.meta.request_id,o=e.info.meta.page&&void 0!==e.info.meta.page.total_pages?Math.min(e.info.meta.page.total_pages,100):void 0,a=e.info.meta.page?e.info.meta.page.total_results:void 0;return Object.assign(Object.assign(Object.assign(Object.assign({},r&&{facets:function(e,{additionalFacetValueFields:t={}}){return e&&0!==Object.keys(e).length?Object.entries(e).reduce((e,[r,n])=>{let o=n.map(e=>{let{type:n,data:o}=e,a=i(e,["type","data"]);return Object.assign({field:r},Object.assign({type:n,data:o.map(e=>(function(e,t={}){let r=Object.prototype.hasOwnProperty.call(e,"value"),{count:n,value:o}=e,a=i(e,["count","value"]);return{count:n,value:r?o:Object.assign(Object.assign({},a),t)}})(e,t[r]))},a))});return Object.assign(Object.assign({},e),{[r]:o})},{}):e}(r,t)}),{rawResponse:e,requestId:n,results:e.rawResults}),void 0!==o&&{totalPages:o}),void 0!==a&&{totalResults:a})}var a=r(14795),s=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function u(e){if(a.helpers.isFilterValueRange(e)){let{name:t}=e;return Object.assign({},s(e,["name"]))}return e}function c(e){let t;let r=e.values.some(a.helpers.isFilterValueRange);return t="all"===e.type||r||1===e.values.length?e.values.map(u).map(t=>({[e.field]:t})):[{[e.field]:e.values.map(u).map(e=>e)}],{[e.type||"any"]:t}}function l(e){var t;let{current:r,resultsPerPage:n,searchTerm:i,sortDirection:o,sortField:a,sortList:s}=e,u=s&&s.length?s.map(e=>({[e.field]:e.direction})):a&&o?{[a]:o}:void 0;return Object.assign(Object.assign({query:i},void 0!==u&&{sort:u}),{page:Object.assign(Object.assign({},void 0!==n&&{size:n}),void 0!==r&&{current:r}),filters:(t=e.filters)&&0!==t.length?{all:t.map(c)}:{}})}var f=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},p=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function d(e){let{facets:t,filters:r}=e,n=p(e,["facets","filters"]);return Object.assign(Object.assign(Object.assign({},t&&Object.entries(t).length>0&&{facets:t}),r&&Object.entries(r).length>0&&{filters:r}),n)}class h{constructor(e){var{searchKey:t,engineName:r,beforeSearchCall:i=(e,t)=>t(e),beforeAutocompleteResultsCall:o=(e,t)=>t(e),beforeAutocompleteSuggestionsCall:a=(e,t)=>t(e),cacheResponses:s=!0}=e,u=p(e,["searchKey","engineName","beforeSearchCall","beforeAutocompleteResultsCall","beforeAutocompleteSuggestionsCall","cacheResponses"]);if(!r||!("hostIdentifier"in u||"endpointBase"in u))throw Error("hostIdentifier or endpointBase, and engineName are required");this.client=n.createClient(Object.assign(Object.assign(Object.assign(Object.assign({},"endpointBase"in u&&{endpointBase:u.endpointBase}),"hostIdentifier"in u&&{hostIdentifier:u.hostIdentifier}),{apiKey:t,engineName:r,cacheResponses:s}),u)),this.beforeSearchCall=i,this.beforeAutocompleteResultsCall=o,this.beforeAutocompleteSuggestionsCall=a}onResultClick({query:e,documentId:t,requestId:r,tags:n=[]}){return n=n.concat("results"),this.client.click({query:e,documentId:t,requestId:r,tags:n})}onAutocompleteResultClick({query:e,documentId:t,requestId:r,tags:n=[]}){return n=n.concat("autocomplete"),this.client.click({query:e,documentId:t,requestId:r,tags:n})}onSearch(e,t){return f(this,void 0,void 0,function*(){let{current:r,resultsPerPage:n,sortDirection:i,sortField:a,sortList:s}=t,u=p(t,["current","resultsPerPage","sortDirection","sortField","sortList"]),c=l(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),void 0!==r&&{current:r}),void 0!==n&&{resultsPerPage:n}),void 0!==i&&{sortDirection:i}),void 0!==a&&{sortField:a}),void 0!==s&&{sortList:s})),{query:h}=c,y=p(c,["query"]),g=Object.assign({},d(Object.assign(Object.assign({},u),y)));return this.beforeSearchCall(g,e=>f(this,void 0,void 0,function*(){return o((yield this.client.search(h,e)),function(e={}){let t=Object.entries(e.facets||{}).reduce((e,[t,r])=>r.unit&&r.center?Object.assign(Object.assign({},e||{}),{[t]:Object.assign(Object.assign({},r.unit&&{unit:r.unit}),r.center&&{center:r.center})}):e,null);return Object.assign({},t&&{additionalFacetValueFields:t})}(t))}))})}onAutocomplete({searchTerm:e},t){return f(this,void 0,void 0,function*(){let r={},n=[];if(t.results){let i=t.results,{current:a,filters:s,resultsPerPage:u,sortDirection:c,sortField:f,sortList:h}=i,y=p(i,["current","filters","resultsPerPage","sortDirection","sortField","sortList"]),g=l({current:a,searchTerm:e,filters:s,resultsPerPage:u,sortDirection:c,sortField:f,sortList:h}),{query:v}=g,m=p(g,["query"]),b=d(Object.assign(Object.assign({},y),m));n.push(this.beforeAutocompleteResultsCall(b,e=>this.client.search(v,Object.assign(Object.assign({},e),{record_analytics:!1})).then(e=>{r.autocompletedResults=o(e).results,r.autocompletedResultsRequestId=e.info.meta.request_id})))}if(t.suggestions){let i=t.suggestions;n.push(this.beforeAutocompleteSuggestionsCall(i,t=>this.client.querySuggestion(e,t).then(e=>{r.autocompletedSuggestions=e.results,r.autocompletedSuggestionsRequestId=e.meta.request_id})))}return yield Promise.all(n),r})}}function y(e){return(y="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)}function g(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==y(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var m=new h({searchKey:"search-gsw1rhnd2fmxyt12zfocmifv",engineName:"news-insights",endpointBase:"https://news-insights-production.ent.us-west-2.aws.found.io",beforeSearchCall:function(e,t){var r,n;return t(v(v({},e),(n=(r=new Date().getFullYear())-1,{boosts:{year:[{type:"value",value:r,operation:"multiply",factor:1.75},{type:"value",value:n,operation:"multiply",factor:1.45},{type:"value",value:n-1,operation:"multiply",factor:1.1}]}})))}})},76538:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var i,o;i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==n(e)||null===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,"string");return"symbol"===n(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,{H:function(){return a}});var a=function(e,t,r){"number"==typeof e.current&&e.current;var n=e;return""===e.searchTerm&&0===e.sortList.length&&(n=o(o({},e),{},{sortList:[{field:"published_date",direction:"desc"}]})),e.filters.some(function(e){return"published_date"===e.field})&&(t=o(o({},t),{},{search_fields:{title:{}}})),Promise.resolve(r(n,t))}},12661:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var i,o;i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==n(e)||null===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,"string");return"symbol"===n(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var a=r(5844).default,s=r(79385),u=r(77550),c=r(68923),l=(a()||{}).publicRuntimeConfig,f=(void 0===l?{}:l).awsAccount,p=void 0===f?"development":f;e.exports=o(o({},{production:c,qa:u,development:s}[p]||s),{},{env:p})},38252:function(e,t,r){"use strict";r.d(t,{Z:function(){return eI}});var n=r(2700),i=r(75414),o=r.n(i),a=r(66095),s=r(42247),u=r(1662),c=r(8015),l=r.n(c),f=r(55589),p=r(19207),d=(0,a.ZP)(l()).withConfig({componentId:"sc-14o2q7r-0"})(["display:inline-block;text-decoration:none;:hover{opacity:0.8;text-decoration:none;}p,h1{font-size:36px;}"]),h=function(e){var t=e.hideTitle,r=(0,f.usePathname)();return void 0!==t&&t?null:(0,p.jsxs)(s.x,{textAlign:"center",margin:{top:4,bottom:2},children:[(0,p.jsx)(d,{href:"/news",children:(0,p.jsx)(u.D,{as:"/news/"===r?"h1":"p",styleType:"display700",children:"News & Insights"})}),"/news/"!==r&&(0,p.jsx)("div",{className:"masthead-separator","data-testid":"separator"})]})},y=r(25722),g=[{key:"cG9zdDo5NTY1ODA=",uri:"/news/trends/",label:"NEWS & TRENDS",linkRelationship:null,parentId:null,children:[{key:"cG9zdDo5NTY1OTA=",uri:"/news/real-estate-news/",label:"Real Estate News",linkRelationship:null,parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDo5NTY1OTM=",uri:"/news/trends/",label:"Housing Trends",linkRelationship:null,parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDo5NTY1OTU=",uri:"/news/celebrity-real-estate/",label:"Celebrity Real Estate",linkRelationship:null,parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDo5MTE3NTg=",uri:"/news/unique-homes/",label:"Unique Homes",linkRelationship:null,parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDo5MTE3NjI=",uri:"/news/reality-tv/",label:"Reality TV",linkRelationship:null,parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDoxMTAxNTk1",uri:"/news/sports/",label:"Sports",linkRelationship:null,parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDo5MTE3Njk=",uri:"/tag/most-expensive/",label:"Most Expensive Homes",linkRelationship:"nofollow",parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDo5MTE3Njg=",uri:"/tag/most-popular/",label:"Most Popular Homes",linkRelationship:"nofollow",parentId:"cG9zdDo5NTY1ODA=",children:[]}]},{key:"cG9zdDo5MTE3NjM=",uri:"/advice/buy/",label:"BUYING",linkRelationship:null,parentId:null,children:[]},{key:"cG9zdDo5MTE3NjU=",uri:"/advice/sell/",label:"SELLING",linkRelationship:null,parentId:null,children:[]},{key:"cG9zdDo5MTE3NjY=",uri:"/advice/rent/",label:"RENTING",linkRelationship:null,parentId:null,children:[]},{key:"cG9zdDo5MTE3NTc=",uri:"/news/celebrity-real-estate/",label:"CELEBRITY HOMES",linkRelationship:null,parentId:null,children:[]},{key:"cG9zdDo5MTE3NzI=",uri:"/advice/",label:"ADVICE",linkRelationship:null,parentId:null,children:[{key:"cG9zdDo5NTY2MDI=",uri:"/advice/buy/",label:"Buying",linkRelationship:null,parentId:"cG9zdDo5MTE3NzI=",children:[]},{key:"cG9zdDo5NTY2MDU=",uri:"/advice/sell/",label:"Selling",linkRelationship:null,parentId:"cG9zdDo5MTE3NzI=",children:[]},{key:"cG9zdDo5NTY2MDk=",uri:"/advice/rent/",label:"Renting",linkRelationship:null,parentId:"cG9zdDo5MTE3NzI=",children:[]},{key:"cG9zdDo5MTE3NzQ=",uri:"/advice/finance/",label:"Financing",linkRelationship:null,parentId:"cG9zdDo5MTE3NzI=",children:[]},{key:"cG9zdDo5MjQ1OTE=",uri:"/living/",label:"Living",linkRelationship:null,parentId:"cG9zdDo5MTE3NzI=",children:[]},{key:"cG9zdDo5NTY2MjA=",uri:"/advice/move/",label:"Moving",linkRelationship:null,parentId:"cG9zdDo5MTE3NzI=",children:[]},{key:"cG9zdDo5MTE3NjE=",uri:"/advice/home-improvement/",label:"Home Improvement",linkRelationship:null,parentId:"cG9zdDo5MTE3NzI=",children:[]}]},{key:"cG9zdDo5NjAzMzc=",uri:"/guides/",label:"GUIDES",linkRelationship:null,parentId:null,children:[]},{key:"cG9zdDo5MjQ1ODY=",uri:"/living/",label:"LIVING",linkRelationship:null,parentId:null,children:[]},{key:"cG9zdDo5MjQ1ODc=",uri:"/research/",label:"RESEARCH",linkRelationship:null,parentId:null,children:[]}],v=[{key:"cG9zdDo5MTc0MDY=",uri:"/news/",label:"News & Trends",linkRelationship:null,parentId:null,children:[{key:"cG9zdDo5MTczOTk=",uri:"/news/real-estate-news/",label:"Real Estate News",linkRelationship:null,parentId:"cG9zdDo5MTc0MDY=",children:[]},{key:"cG9zdDo5MTczOTc=",uri:"/news/trends/",label:"Housing Trends",linkRelationship:null,parentId:"cG9zdDo5MTc0MDY=",children:[]},{key:"cG9zdDo5MTczOTY=",uri:"/news/celebrity-real-estate/",label:"Celebrity Real Estate",linkRelationship:null,parentId:"cG9zdDo5MTc0MDY=",children:[]},{key:"cG9zdDo5MTczOTg=",uri:"/news/unique-homes/",label:"Unique Homes",linkRelationship:null,parentId:"cG9zdDo5MTc0MDY=",children:[]},{key:"cG9zdDo5MTc0MDE=",uri:"/news/reality-tv/",label:"Reality TV",linkRelationship:null,parentId:"cG9zdDo5MTc0MDY=",children:[]},{key:"cG9zdDoxMTAxNTk1",uri:"/news/sports/",label:"Sports",linkRelationship:null,parentId:"cG9zdDo5NTY1ODA=",children:[]},{key:"cG9zdDo5MTc0MTE=",uri:"/news/search/?filters%5B0%5D%5Bfield%5D=tags&filters%5B0%5D%5Bvalues%5D%5B0%5D=Most%20Expensive",label:"Most Expensive Homes",linkRelationship:"nofollow",parentId:"cG9zdDo5MTc0MDY=",children:[]},{key:"cG9zdDo5MTc0MTI=",uri:"/news/search/?filters%5B0%5D%5Bfield%5D=tags&filters%5B0%5D%5Bvalues%5D%5B0%5D=Most%20Popular",label:"Most Popular Homes",linkRelationship:"nofollow",parentId:"cG9zdDo5MTc0MDY=",children:[]}]},{key:"cG9zdDo5MTc0MTM=",uri:"/advice/",label:"Advice",linkRelationship:null,parentId:null,children:[{key:"cG9zdDo5MTc0MDI=",uri:"/advice/buy/",label:"Buying",linkRelationship:null,parentId:"cG9zdDo5MTc0MTM=",children:[]},{key:"cG9zdDo5MTc0MDQ=",uri:"/advice/sell/",label:"Selling",linkRelationship:null,parentId:"cG9zdDo5MTc0MTM=",children:[]},{key:"cG9zdDo5MTc0MDM=",uri:"/advice/finance/",label:"Financing",linkRelationship:null,parentId:"cG9zdDo5MTc0MTM=",children:[]},{key:"cG9zdDo5MTc0MDU=",uri:"/advice/rent/",label:"Renting",linkRelationship:null,parentId:"cG9zdDo5MTc0MTM=",children:[]},{key:"cG9zdDo5MTc0MTQ=",uri:"/living/",label:"Living",linkRelationship:null,parentId:"cG9zdDo5MTc0MTM=",children:[]},{key:"cG9zdDo5MTc0MTY=",uri:"/news/search/?size=n_10_n&filters%5B0%5D%5Bfield%5D=tags&filters%5B0%5D%5Bvalues%5D%5B0%5D=Moving",label:"Moving",linkRelationship:"nofollow",parentId:"cG9zdDo5MTc0MTM=",children:[]},{key:"cG9zdDo5MTc0MDA=",uri:"/advice/home-improvement/",label:"Home Improvement",linkRelationship:null,parentId:"cG9zdDo5MTc0MTM=",children:[]}]},{key:"cG9zdDo5MTc0MTg=",uri:"/guides/",label:"Guides",linkRelationship:null,parentId:null,children:[{key:"cG9zdDo5MTc0MTk=",uri:"/advice/guides/first-time-home-buyer/",label:"First-Time Homebuyers",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]},{key:"cG9zdDo5MTc0MjE=",uri:"/guides/selling-your-home-do-these-renovations-first/",label:"Selling Your Home",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]},{key:"cG9zdDo5MTc0MjM=",uri:"/guides/mortgage/",label:"Getting A Mortgage",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]},{key:"cG9zdDo5MTc0MjQ=",uri:"/advice/guides/home-insurance",label:"Home Insurance",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]},{key:"cG9zdDo5MTc0Mjc=",uri:"/guides/homeowners-guide-to-taxes/",label:"Homeowner Taxes",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]},{key:"cG9zdDo5MTc0Mjg=",uri:"/guides/your-monthly-guide-to-home-maintenance/",label:"Home Maintenance",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]},{key:"cG9zdDo5MTc0MzA=",uri:"/guides/the-ultimate-guide-to-moving/",label:"Moving",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]},{key:"cG9zdDo5MTc0MzI=",uri:"/guides/a-renters-guide-to-finding-a-great-rental/",label:"Finding A Great Rental",linkRelationship:null,parentId:"cG9zdDo5MTc0MTg=",children:[]}]},{key:"cG9zdDo5MTc0MzQ=",uri:"/research/",label:"Economic Research",linkRelationship:null,parentId:null,children:[{key:"cG9zdDo5MTc0MzU=",uri:"/research/articles/",label:"Latest Articles",linkRelationship:null,parentId:"cG9zdDo5MTc0MzQ=",children:[]},{key:"cG9zdDo5MTc0Mzg=",uri:"/housing-forecast-2024",label:"2024 Housing Market Forecast",linkRelationship:null,parentId:"cG9zdDo5MTc0MzQ=",children:[]},{key:"cG9zdDo5MTc0Mzk=",uri:"/research/hottest-zip-codes-2024/",label:"2024 Hottest Zip Codes",linkRelationship:null,parentId:"cG9zdDo5MTc0MzQ=",children:[]},{key:"cG9zdDo5MTc0NDA=",uri:"/research/reports/",label:"Housing Market Reports",linkRelationship:null,parentId:"cG9zdDo5MTc0MzQ=",children:[]}]}],m=r(37278),b=r(21110),E=a.ZP.div.withConfig({componentId:"sc-yree80-0"})(["background-color:#d9d9d94d;ul{list-style-type:none;padding:0;}li{margin-top:1rem;margin-bottom:1rem;}a{text-decoration:none;}a:hover{text-decoration:underline;text-decoration-color:#ffff;}.footer-item-title{font-weight:600;font-size:22px;@media ","{min-height:50px;display:flex;align-items:end;}}.footer-item{margin-top:2rem;margin-bottom:1rem;max-width:19rem;}.footer-content{display:grid;grid-template-columns:repeat(3,1fr);@media ","{grid-template-columns:repeat(2,1fr);}}"],b.t.maxWidth.xs,b.t.maxWidth.sm),w=r(30218);function _(e){return(_="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)}function O(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 S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var T=function(e){var t=e.item;return(0,p.jsxs)(m.J,{className:"footer-item",children:[(0,p.jsx)(u.D,{as:"h3",className:"footer-item-title",children:t.label}),(0,p.jsxs)("ul",{children:[(0,p.jsx)("li",{children:(0,p.jsx)(w.Z,{"data-testid":"separator"})}),t.children.map(function(e){return(0,p.jsx)("li",{children:(0,p.jsx)("a",S(S({href:e.uri},e.linkRelationship&&{rel:e.linkRelationship}),{},{children:(0,p.jsx)(u.D,{styleType:"body300",as:"span",children:e.label})}))},e.key)})]})]})},A=function(e){var t=e.items;return(0,p.jsx)(E,{children:(0,p.jsx)(y.W,{children:(0,p.jsx)("nav",{"aria-label":"Footer navigation",children:(0,p.jsx)(s.x,{className:"footer-content",children:t.map(function(e){return(0,p.jsx)(T,{item:e},e.key)})})})})})};A.propTypes={items:o().array},T.propTypes={item:o().object};var I=r(7688),R=r.n(I),k=r(99670),x=r(793),N=r(56908),P=r(74093),C=r(12711),D=r(7374),j=r(44622),M=r(95254),L=r(17300),F=r(38687);function U(e){return(U="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)}function V(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 B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==U(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==U(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===U(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var G=(0,a.ZP)(D.H).withConfig({componentId:"sc-1g5u1sa-0"})(["display:block;font-weight:bold;ul{li{font-weight:normal;margin-left:15px;}}"]),q=function(e){var t=e.open,r=e.onCloseHandler;return(0,p.jsxs)(j.O,{isDrawerOpen:t,onClose:r,breakpoint:"lg",drawerPlacement:"left",containerBoxProps:{padding:{x:4}},maxWidth:"350px",children:[(0,p.jsxs)(M.k,{justifyContent:"between",alignItems:"center",gap:2,children:[(0,p.jsx)(h,{}),(0,p.jsx)(L.b,{onClick:r,cursor:"pointer"})]}),(0,p.jsx)(s.x,{padding:{top:4},borderTop:"1px solid ".concat(b.t.color.border.secondary),children:(0,p.jsx)("nav",{"aria-label":"Site navigation",children:(0,p.jsx)(F.a,{gap:3,children:g.map(function(e){return(0,p.jsxs)(G,{children:[(0,p.jsx)(l(),{href:e.uri,onClick:r,children:e.label}),e.children.length>0&&(0,p.jsx)(F.a,{gap:1,children:e.children.map(function(e){return(0,p.jsx)(G,{children:(0,p.jsx)(l(),B(B({onClick:r,href:e.uri},e.linkRelationship&&{rel:e.linkRelationship}),{},{children:e.label}))},e.label)})})]},e.label)})})})})]})},z=r(92292),H=r(7481),W=r(53175),K=a.ZP.div.withConfig({componentId:"sc-142high-0"})(["",""],function(e){return(0,a.iv)(["a{border:0;display:flex;font-size:14px;padding-left:11px;padding-right:11px;border-radius:0;height:40px;}.svg-arrow{display:inline-block;width:1em;height:1em;font-size:1.5rem;color:inherit;fill:currentcolor;}a:hover{background-color:transparent;}a:hover:before{border-bottom-style:solid;border-bottom-width:0.25rem;border-color:black;bottom:0;content:'';left:0;position:absolute;transition:color 100ms cubic-bezier(0.5,0,0.2,1),border-color 100ms cubic-bezier(0.5,0,0.2,1);width:100%;}"])}),Y=function(e){var t=e.href,r=e.children,i=e.isOpen,o=e.setShow,a=(0,n.useCallback)(function(e){e.preventDefault(),e.stopPropagation(),o(function(e){return!e})},[o]);return(0,p.jsx)(K,{children:(0,p.jsx)(l(),{href:t,passHref:!0,legacyBehavior:!0,children:(0,p.jsxs)(W.z,{as:"a","aria-expanded":i,children:[(0,p.jsx)("span",{children:r}),(0,p.jsx)("span",{onClick:a,children:i?(0,p.jsx)("svg",{className:"svg-arrow","data-testid":"icon-chevron-up",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,p.jsx)("path",{d:"M17.293 15.707a1 1 0 0 0 1.414-1.414l-1.414 1.414ZM12 9l.707-.707a1 1 0 0 0-1.414 0L12 9Zm-6.707 5.293a1 1 0 1 0 1.414 1.414l-1.414-1.414Zm13.414 0-6-6-1.414 1.414 6 6 1.414-1.414Zm-7.414-6-6 6 1.414 1.414 6-6-1.414-1.414Z"})}):(0,p.jsx)("svg",{className:"svg-arrow","data-testid":"icon-chevron-down",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,p.jsx)("path",{d:"M17.293 8.293a1 1 0 1 1 1.414 1.414l-1.414-1.414ZM12 15l.707.707a1 1 0 0 1-1.414 0L12 15ZM5.293 9.707a1 1 0 0 1 1.414-1.414L5.293 9.707Zm13.414 0-6 6-1.414-1.414 6-6 1.414 1.414Zm-7.414 6-6-6 1.414-1.414 6 6-1.414 1.414Z"})})})]})})})};Y.propTypes={children:o().string,href:o().string,isOpen:o().bool,setShow:o().func};var Q=(0,n.memo)(Y);function $(e){return($="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)}function J(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 X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ee=a.ZP.div.withConfig({componentId:"sc-17euj2w-0"})(["",""],function(e){return(0,a.iv)([""," .dropdown-item{border-bottom:1px solid black;list-style:none;}.navbar-dropdown{position:relative;}.dropdown-container{background-color:white;position:absolute;border:1px solid;border-radius:16px;border-color:#726a60;box-shadow:0px 4px 16px 0px #00000029;background-color:white;margin-top:0.625rem;z-index:1;overflow:hidden;}.dropdown-content{padding-top:0.313rem;padding-bottom:0.313rem;a{span{font-size:14px;}}}.dropdown-item{border-bottom:0;}"],e.style)}),et=function(e){var t,r=e.menuItems,i=e.label,o=e.href,a=e.style,s=function(e){if(Array.isArray(e))return e}(t=(0,n.useState)(!1))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{for(o=(r=r.call(e)).next;!(u=(n=o.call(r)).done)&&(s.push(n.value),2!==s.length);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return Z(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=s[0],c=s[1],f=(0,n.useRef)(null),d=(0,n.useRef)(null),h="ontouchstart"in window||navigator.maxTouchPoints>0;(0,N.O)(f,function(){h&&setTimeout(function(){c(!1)},50)},!1);var y=(0,n.useCallback)(function(){h||(d.current&&(clearTimeout(d.current),d.current=null),c(!0))},[h]),g=(0,n.useCallback)(function(){h||(d.current=setTimeout(function(){c(!1)},150))},[h]);return(0,p.jsx)(ee,{style:a,children:(0,p.jsxs)("div",{className:"navbar-dropdown",ref:f,onMouseEnter:y,onMouseLeave:g,children:[(0,p.jsx)(Q,{href:o,isOpen:u,setShow:c,children:i}),u&&(0,p.jsx)("div",{className:"dropdown-container",children:(0,p.jsx)("div",{className:"dropdown-content",children:(0,p.jsx)(z.q,{children:r.map(function(e){return(0,p.jsx)(l(),{href:e.uri,passHref:!0,legacyBehavior:!0,children:(0,p.jsx)(H.s,X(X({as:"a"},e.linkRelationship&&{rel:e.linkRelationship}),{},{children:e.label}))},e.key)})})})})]})})};et.propTypes={children:o().node,href:o().string,label:o().string};var er=r(64322),en=r(80293),ei=r(50978),eo=r(18633),ea=r(76538),es=r(53478);function eu(e){return(eu="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)}function ec(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 el(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==eu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==eu(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eu(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ec(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ef(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||ep(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ep(e,t){if(e){if("string"==typeof e)return ed(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ed(e,t)}}function ed(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eh=(0,a.ZP)(k.J).withConfig({componentId:"sc-1dtewlt-0"})(["height:40px;position:relative;align-items:center;flex-wrap:nowrap;max-height:40px;"]),ey=(0,a.ZP)(eh).withConfig({componentId:"sc-1dtewlt-1"})([".menu-item{@media (max-width:1281px){&:nth-of-type(n + 6){display:none;}}@media (max-width:995px){&:nth-of-type(n + 4){display:none;}}@media (max-width:767px){&:nth-of-type(n + 4){display:none;}}@media (max-width:690px){&:nth-of-type(n + 3){display:none;}}@media (max-width:649px){&:nth-of-type(n + 3){display:none;}}@media (max-width:580px){&:nth-of-type(n + 2){display:none;}}@media (max-width:504px){&:nth-of-type(n + 2){display:none;}}@media (max-width:429px){&:nth-of-type(n + 1){display:none;}}}"]),eg=a.ZP.div.withConfig({componentId:"sc-1dtewlt-2"})(["position:relative;display:inline-block;"]),ev={initialState:{resultsPerPage:10},trackUrlState:!1,debug:!1,alwaysSearchOnInitialLoad:!0,apiConnector:ei.b,hasA11yNotifications:!0,onSearch:ea.H,searchQuery:eo.w,autocompleteQuery:es.x},em=function(e){var t=e.filters,i=e.trackUrlState,o=ef((0,n.useState)(!1),2),u=o[0],c=o[1],f=ef((0,n.useState)(!1),2),d=f[0],h=f[1],y=(0,n.useRef)(null),v=(0,n.useRef)(null),m=ef((0,n.useState)(!1),2),E=m[0],w=m[1],_=[].concat(function(e){if(Array.isArray(e))return ed(e)}(g)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(g)||ep(g)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{key:"MORE",label:"MORE",children:[],uri:""},{key:"SEARCH",label:"SEARCH",children:[],uri:""}]),O=R()(function(){return Promise.all([r.e(1895),r.e(1736)]).then(r.bind(r,1736)).then(function(e){return w(!0),e})},{loading:function(){return null}}),S=(0,a.ZP)(x.u).withConfig({componentId:"sc-1dtewlt-3"})(["box-shadow:0px 4px 16px 0px #00000029;border-radius:7px;div{border-radius:7px;padding:0;width:clamp(12rem,80vw,22rem);background-color:white;color:black;}.arrow{"," background-color:",";&::before{background-color:","!important;}}"],E?"display: block;":"display: none;",b.t.color.bg.secondary,b.t.color.bg.secondary);(0,N.O)(v,function(e){var t;null!==(t=y.current)&&void 0!==t&&t.contains(e.target)||h(!1)},!1);var T=el(el({},ev),{},{initialState:el(el({},ev.initialState),{},{filters:void 0===t?[]:t}),trackUrlState:void 0!==i&&i}),A=function(){return c(function(e){return!e})};return(0,p.jsxs)(s.x,{minMd:{margin:{bottom:6}},position:"relative",children:[(0,p.jsx)(ey,{ariaLabel:"Navigation menu for News & Insights categories",justify:"center",children:_.map(function(e){var t="menu-item";switch(e.label){case"SEARCH":return(0,p.jsx)(eg,{ref:y,children:(0,p.jsx)(S,{open:d,body:(0,p.jsx)("div",{id:"search-content",ref:v,children:(0,p.jsx)(er.Z,{config:T,children:(0,p.jsx)(en.Z,{mapContextToProps:function(e){return{setSearchTerm:e.setSearchTerm}},children:function(e){var t=e.setSearchTerm;return(0,p.jsx)(O,{isSearchPage:!1,setSearchTerm:t,autoFocus:!0})}})})}),disableListeners:!0,offset:[0,5],placement:"bottom-end",displayCloseBtn:!1,condensed:!0,maxWidth:"90vw",zIndex:2e3,children:(0,p.jsx)(s.x,{padding:{x:2},onClick:function(e){e.stopPropagation(),h(function(e){return!e})},style:{cursor:"pointer"},children:(0,p.jsx)(P.F,{})})})},"SEARCH");case"MORE":return(0,p.jsx)(C.O,{size:"sm",onClick:A,children:"MORE"},"MORE");default:return e.children.length>0?(0,p.jsx)("div",{className:"NEWS & TRENDS"!=e.label?t:"",children:(0,p.jsx)(et,{label:e.label,href:e.uri,menuItems:e.children,style:el({},e.style)},e.label)}):(0,p.jsx)(l(),{href:e.uri,passHref:!0,legacyBehavior:!0,children:(0,p.jsx)(C.O,{as:"a",style:el({},e.style),size:"sm",className:t,children:e.label})},e.label)}})}),(0,p.jsx)(q,{open:u,onCloseHandler:A})]})};function eb(e){var t=e.children,r=e.masthead,n=e.hideSiteTitle;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("header",{children:(0,p.jsxs)(y.W,{children:[(0,p.jsx)(h,{hideTitle:n}),r,(0,p.jsx)(em,{})]})}),(0,p.jsx)("main",{children:(0,p.jsx)(y.W,{children:t})}),(0,p.jsx)(A,{items:v})]})}eb.propTypes={children:o().element};var eE=r(68418),ew=r.n(eE),e_=r(59477),eO=e_.default||e_;function eS(e){return function(e){if(Array.isArray(e))return eT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eT(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eT(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eA(e){var t,r,n,i,o=e.seo,a=e.links,s=void 0===a?[]:a,u=e.metaTags,c=void 0===u?[]:u,l=[].concat(eS(null!=o&&o.metaRobotsNofollow?[o.metaRobotsNofollow]:[]),eS(null!=o&&o.metaRobotsNoindex?[o.metaRobotsNoindex]:[]),eS(null!=o&&o.metaRobotsAdvanced?[o.metaRobotsAdvanced]:[])),f=null!==(t=null==o?void 0:o.videoSchemaJsonLd)&&void 0!==t?t:[],d=null==o||null===(r=o.fullHead)||void 0===r?void 0:r.replace(/<a[^>]*>(.*?)<\/a>/gi,"$1");return(0,p.jsxs)(ew(),{children:[(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,p.jsx)("meta",{httpEquiv:"x-ua-compatible",content:"ie=edge"}),l.length>0?(0,p.jsx)("meta",{name:"robots",content:l.join(", ")}):(0,p.jsx)("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),d?eO(d):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("title",{children:"".concat(null==o||null===(n=o.title)||void 0===n?void 0:n.toString()," | realtor.com\xae News & Insights")}),(0,p.jsx)("meta",{name:"description",content:null==o||null===(i=o.description)||void 0===i?void 0:i.toString()})]}),f.length>0&&f.map(function(e,t){return(0,p.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},"_jsonld-".concat(t))}),(0,p.jsx)("meta",{name:"geo.region",content:"US"}),c.length&&c.map(function(e,t){return(0,p.jsx)("meta",{name:e.name,content:e.content},"_meta-".concat(t))}),(0,p.jsx)("link",{rel:"preload",href:"https://static.rdc.moveaws.com/fonts/galano-grotesque-alt-medium.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),(0,p.jsx)("link",{rel:"preload",href:"https://static.rdc.moveaws.com/fonts/galano-grotesque-alt-bold.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),(0,p.jsx)("link",{rel:"preload",href:"https://static.rdc.moveaws.com/fonts/galano-grotesque-alt-regular.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),(0,p.jsx)("link",{rel:"preload",href:"https://static.rdc.moveaws.com/fonts/lora-medium.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),(0,p.jsx)("link",{rel:"preload",href:"https://static.rdc.moveaws.com/fonts/lora-bold.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),(0,p.jsx)("link",{rel:"preload",href:"https://static.rdc.moveaws.com/fonts/lora-semi-bold.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),s.length&&s.map(function(e,t){var r;return(0,p.jsx)("link",{href:null===(r=e.href)||void 0===r?void 0:r.toString(),rel:e.rel,media:e.media,imageSrcSet:e.imageSrcSet,as:e.as,title:e.title,type:e.type},"_link-".concat(t))})]})}function eI(e){var t=e.children,r=(e.breadcrumbs,e.seo),n=e.links,i=e.metaTags,o=e.masthead,a=e.hideSiteTitle;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(eA,{seo:void 0===r?{}:r,links:void 0===n?[]:n,metaTags:i}),(0,p.jsx)(eb,{masthead:o,hideSiteTitle:a,children:t},"_main-template")]})}eA.propTypes={seo:o().object.isRequired},eI.propTypes={children:o().node,breadcrumbs:o().array,seo:o().object,links:o().object}},30218:function(e,t,r){"use strict";r.d(t,{Z:function(){return a},w:function(){return o}});var n=r(66095),i=r(21110),o=n.ZP.section.withConfig({componentId:"sc-383t4g-0"})([".top{margin-bottom:1.5rem;margin-top:0.5rem;}.bottom{margin-top:2rem;}.layout-title{font-size:18px;}@media ","{padding:1rem 0 1rem 0;}"],i.t.maxWidth.sm),a=n.ZP.div.withConfig({componentId:"sc-383t4g-1"})(["width:100%;border-bottom:0.5px solid #0000004d;"])},18633:function(e,t,r){"use strict";r.d(t,{w:function(){return n}});var n={result_fields:{title:{raw:{},snippet:{size:1e3,fallback:!0}},published_date:{raw:{}},author:{raw:{}},excerpt:{raw:{},snippet:{size:1e3,fallback:!1}},content:{snippet:{size:250,fallback:!1}},featured_image:{raw:{}},url:{raw:{}},category:{raw:{}},tags:{raw:{}},category_url:{raw:{}},content_type:{raw:{}}},facets:{content_type:{type:"value",size:25},author:{type:"value",size:25},category:{type:"value",size:25},tags:{type:"value",size:25},states:{type:"value",size:30},year:{type:"value",size:25,sort:{value:"desc"}},location:{center:"39.747584,-104.9460736",type:"range",unit:"mi",ranges:[{from:0,to:50,name:"Less Than 50 Miles"}]}}}},21811:function(e,t,r){"use strict";r.d(t,{y:function(){return n}});var n={EXPERIMENTS:{WRS2608_INTERSTITIAL_AD:{EXPERIMENT_KEY:"WRS2608_INTERSTITIAL_AD",KEY:"WRS2608_INTERSTITIAL_AD"}},FEATURES:{MEDIA_NEWS_AND_INSIGHTS:{KEY:"MEDIA_NEWS_AND_INSIGHTS"}}}},40197:function(e,t,r){"use strict";r.d(t,{$d:function(){return T},Eb:function(){return u},H2:function(){return y},Jc:function(){return p},OC:function(){return _},PJ:function(){return S},RB:function(){return I},Xy:function(){return l},_j:function(){return m},bP:function(){return g},cH:function(){return E},cP:function(){return A},ch:function(){return c},dX:function(){return O},em:function(){return b},nX:function(){return d},ss:function(){return w},t:function(){return f},te:function(){return v},wk:function(){return h},xp:function(){return s}});var n=r(12661),i=r.n(n),o=r(65565).Buffer,a=r(38432),s=i().adobeDtmUrl,u=o.from("".concat(a.env.WORDPRESS_USER,":").concat(a.env.WORDPRESS_APPLICATION_PASSWORD)).toString("base64"),c={props:{custom_404:!0}},l={cardTitle:{as:"h3",styleType:"body300",fontWeight:"bold",customStyles:{fontSize:"17px",fontWeight:"bold"}},cardTitleLarge:{as:"h3",styleType:"display600",customStyles:{fontSize:"22px"}},listItem:{as:"h3",styleType:"display300"},pageTitle:{as:"h1",styleType:"display700"},postCard:{as:"h2",styleType:"display100",customStyles:{fontSize:"25px",fontWeight:"700",lineHeight:"40px"}},editorPick:{customStyles:{fontSize:"25px",fontWeight:"700",lineHeight:"40px"},as:"h3",styleType:"display300"},coverArticle:{customStyles:{fontSize:"26px",fontWeight:"700",lineHeight:"28px"},as:"h1",styleType:"display800"},sectionHeading:{as:"h2",styleType:"display500"},postCardTitle:{customStyles:{fontSize:"15px",fontWeight:"700",lineHeight:"18px"},as:"h3",styleType:"display300"}},f="https://na.rdcpix.com/688ea05ac798b37ccac8a7dc472d02fcw-c1077427625srd_q80.jpg",p=[{width:576,minViewport:1280},{width:432,minViewport:1024},{width:736,minViewport:768},{width:736,minViewport:700},{width:620,minViewport:600},{width:510,minViewport:500},{width:430,minViewport:430},{width:390,minViewport:390},{width:360,minViewport:0}],d=[{width:400,minViewport:1280},{width:360,minViewport:996},{width:736,minViewport:768},{width:736,minViewport:700},{width:620,minViewport:600},{width:510,minViewport:500},{width:430,minViewport:430},{width:390,minViewport:390},{width:360,minViewport:0}],h=[{width:1750,minViewport:1750},{width:1500,minViewport:1500},{width:1280,minViewport:1280},{width:996,minViewport:996},{width:768,minViewport:768},{width:640,minViewport:640},{width:510,minViewport:500},{width:430,minViewport:430},{width:390,minViewport:390},{width:360,minViewport:0}],y=[{width:928,minViewport:1280},{width:629,minViewport:1024},{width:820,minViewport:820},{width:768,minViewport:768},{width:620,minViewport:652},{width:510,minViewport:542},{width:430,minViewport:428},{width:414,minViewport:414},{width:412,minViewport:412},{width:390,minViewport:390},{width:375,minViewport:0}],g=3,v=4,m=5,b={contactPage:"https://realtor.com/contact",homePage:"https://realtor.com/news/",email:"customercare@realtor.com",phone:"800-878-4166"},E="https://cdn.jwplayer.com/libraries/Frev7kSL.js",w=function(e){try{var t=e.match(/https?:\/\/(www\.)?instagram\.com\/p\/[\w-]+|https?:\/\/(www\.)?instagram\.com\/reel\/[\w-]+/);if(!t)throw Error("Invalid URL");var r=new URL(t[0]);if(!r.hostname.endsWith("instagram.com"))throw Error("Invalid URL");if(r.href.includes("reel"))return r.href;var n=r.pathname.split("/").filter(Boolean);if(n.length>=2&&"p"===n[0]){var i=n[1];return"https://www.instagram.com/p/".concat(i,"/embed")}return null}catch(e){return console.error("Error converting Instagram URL",e),null}},_=function(e){return e.includes("/p/")?'<blockquote class="instagram-media" data-instagram-captioned><a href='.concat(encodeURI(e),'></a></blockquote><script async src="http://www.instagram.com/embed.js"></script>'):e.includes("reel")?'<blockquote class="instagram-media" data-instgrm-permalink="'.concat(encodeURI(e),'/?utm_source=ig_embed&amp;utm_campaign=loading" data-instgrm-version="14"><a href="').concat(encodeURI(e),'/?utm_source=ig_embed&amp;utm_campaign=loading"></a></blockquote><script async src="//www.instagram.com/embed.js"></script>'):null},O="\n    try {\n        const referrerCookieValue = document.cookie.split(';').find(c => c.trim().startsWith('KP_REF='));\n        const referrer = referrerCookieValue ?\n            atob(referrerCookieValue.substring(referrerCookieValue.indexOf('=') + 1, referrerCookieValue.length))\n            : undefined;\n        if (referrer !== undefined) {\n            Object.defineProperty(document, 'referrer', {\n                value: referrer,\n                writable: false\n            });\n        }\n        if (referrerCookieValue) {\n            document.cookie = 'KP_REF=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT';\n        }\n    }\n    catch(e) {}\n",S="news_insights:tag_renovations",T="/etc/rdc-wordpress-headless/efs-data/feed",A="/etc/rdc-wordpress-headless/efs-data/automated-links.json",I=["/advice/rent/5-ways-travel-off-campus-students/","/advice/rent/5-factors-living-off-campus/","/advice/rent/giving-holiday-gift-improve-rental-life/","/advice/rent/stay-involved-after-moving-off-campus/","/advice/rent/choose-off-campus-housing-benefit-student-life/"]},48762:function(e,t,r){"use strict";r.d(t,{U:function(){return n}});var n=function(e){return({buy:"BUY","celebrity-real-estate":"CELEB",finance:"FIN","home-improvement":"IMPRV","reality-tv":"REALTV",rent:"RENT",sell:"SELL",trends:"RETRND","unique-homes":"UNQ","real-estate-news":"RE",move:"MOV","cleaning-organizing":"CLEAN","design-diy":"DESIGN",shopping:"SHOP","setting-up-home":"SETUP","pro-tips":"PRO","down-payment-diaries":"DPD","personal-finance":"FIN","one-room-renos":"RENO"})[e]||null}},36594:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});var n=function(e,t,r){var n=i(e,t);return!!(null==r?void 0:r[n])},i=function(e,t){return"HOME"===e||"AUTHOR"===e||"SPONSORED"===e?e:"LIVING"===e?"LIVING_ARTICLE":null!=t?t:""}},84488:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});var n=function(e){if("string"==typeof e)return"/news"===e?"HOME":e.split("/")[1].toUpperCase()}},57903:function(e,t,r){"use strict";r.r(t);var n=r(40197),i=r(38581),o=r(68418),a=r.n(o),s=r(19207);t.default=function(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a(),{children:(0,s.jsx)("title",{children:"Not Found | realtor.com\xae News & Insights"})}),(0,s.jsx)(i.M,{errorNumber:404,supportInfo:n.em})]})}},39055:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{default:function(){return nq}});var i,o,a,s,u,c,l,f,p,d,h,y,g,v,m,b,E,w,_,O,S,T=r(2700),A=r(6349),I=r(56900),R=r.n(I),k=r(68418),x=r.n(k),N=r(93972),P=r.n(N),C=r(42763),D=r(92792),j=r(83430),M=r(31171),L=r(48517),F=r(53950),U=r(31880),V=r(88558),B=r(73699),G=r(55154),q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},n=(t||{}).decode||K,i=0;i<e.length;){var o=e.indexOf("=",i);if(-1===o)break;var a=e.indexOf(";",i);if(-1===a)a=e.length;else if(a<o){i=e.lastIndexOf(";",o-1)+1;continue}var s=e.slice(i,o).trim();if(void 0===r[s]){var u=e.slice(o+1,a).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[s]=function(e,t){try{return t(e)}catch(t){return e}}(u,n)}i=a+1}return r},z=function(e,t,r){var n=r||{},i=n.encode||Y;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!W.test(e))throw TypeError("argument name is invalid");var o=i(t);if(o&&!W.test(o))throw TypeError("argument val is invalid");var a=e+"="+o;if(null!=n.maxAge){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(n.domain){if(!W.test(n.domain))throw TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!W.test(n.path))throw TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){var u=n.expires;if("[object Date]"!==H.call(u)&&!(u instanceof Date)||isNaN(u.valueOf()))throw TypeError("option expires is invalid");a+="; Expires="+u.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.partitioned&&(a+="; Partitioned"),n.priority)switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return a},H=Object.prototype.toString,W=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function K(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function Y(e){return encodeURIComponent(e)}function Q(e,t={}){let r=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(!t.doNotParse)try{return JSON.parse(r)}catch(e){}return e}class ${constructor(e,t={}){var r;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=q(document.cookie),this._checkChanges(e)};let n="undefined"==typeof document?"":document.cookie;this.cookies="string"==typeof(r=e||n)?q(r):"object"==typeof r&&null!==r?r:{},this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){let e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:Q(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),Q(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let r in this.cookies)t[r]=Q(this.cookies[r],e);return t}set(e,t,r){r=r?Object.assign(Object.assign({},this.defaultSetOptions),r):this.defaultSetOptions;let n="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:n}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=z(e,n,r)),this._emitChange({name:e,value:t,options:r})}remove(e,t){let r=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=z(e,"",r)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}var J=r(40197),X=r(19207),Z=function(){return new $().get("ccpaoptout")?null:(0,X.jsx)(P(),{src:J.xp,strategy:"beforeInteractive"})},ee=r(12661),et=r.n(ee);r(76686);var er=r(38252),en={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ei=new Uint8Array(16),eo=[];for(let e=0;e<256;++e)eo.push((e+256).toString(16).slice(1));var ea=function(e,t,r){if(en.randomUUID&&!t&&!e)return en.randomUUID();let i=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(ei)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return eo[e[t+0]]+eo[e[t+1]]+eo[e[t+2]]+eo[e[t+3]]+"-"+eo[e[t+4]]+eo[e[t+5]]+"-"+eo[e[t+6]]+eo[e[t+7]]+"-"+eo[e[t+8]]+eo[e[t+9]]+"-"+eo[e[t+10]]+eo[e[t+11]]+eo[e[t+12]]+eo[e[t+13]]+eo[e[t+14]]+eo[e[t+15]]}(i)},es=r(26624),eu=r(99969),ec=r.n(eu),el=r(21450),ef=function(e,t){return(ef=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ep(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ef(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ed=function(){return(ed=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eh(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function ey(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function eg(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ev=new(function(){function e(){}return e.prototype.handleError=function(e){},e}());function em(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!e)return{};if("function"==typeof Object.assign)return Object.assign.apply(Object,eg([e],t,!1));for(var n=Object(e),i=0;i<t.length;i++){var o=t[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n}function eb(e,t){var r,n,i;return e?(r=e,n=function(e){return e[t]},i={},r.forEach(function(e){i[n(e)]=e}),i):{}}function eE(){return ea()}function ew(e,t){for(var r=!1,n=Object.keys(e),i=0;i<n.length;i++)if(t===e[n[i]]){r=!0;break}return r}function e_(e){return Object.keys(e).map(function(t){return e[t]})}function eO(e,t){for(var r,n=0;n<e.length;n++){var i=e[n];if(t(i)){r=i;break}}return r}function eS(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=0;return e.replace(/%s/g,function(){var e=t[n++],r=typeof e;return"function"===r?e():"string"===r?e:String(e)})}var eT={assign:em,currentTimestamp:function(){return Math.round(new Date().getTime())},isSafeInteger:function(e){return"number"==typeof e&&9007199254740992>=Math.abs(e)},uuid:eE,isNumber:function(e){return"number"==typeof e}};(i=g||(g={}))[i.NOTSET=0]="NOTSET",i[i.DEBUG=1]="DEBUG",i[i.INFO=2]="INFO",i[i.WARNING=3]="WARNING",i[i.ERROR=4]="ERROR";var eA={NOTSET:0,DEBUG:1,INFO:2,WARNING:3,ERROR:4};function eI(e){return"string"!=typeof e?e:("WARN"===(e=e.toUpperCase())&&(e="WARNING"),eA[e])?eA[e]:e}var eR=function(){function e(){this.defaultLoggerFacade=new eP,this.loggers={}}return e.prototype.getLogger=function(e){return e?(this.loggers[e]||(this.loggers[e]=new eP({messagePrefix:e})),this.loggers[e]):this.defaultLoggerFacade},e}(),ek=function(){function e(e){void 0===e&&(e={}),this.logLevel=g.NOTSET,void 0!==e.logLevel&&ew(g,e.logLevel)&&this.setLogLevel(e.logLevel),this.logToConsole=void 0===e.logToConsole||!!e.logToConsole,this.prefix=void 0!==e.prefix?e.prefix:"[OPTIMIZELY]"}return e.prototype.log=function(e,t){if(this.shouldLog(e)&&this.logToConsole){var r="".concat(this.prefix," - ").concat(this.getLogLevelName(e)," ").concat(this.getTime()," ").concat(t);this.consoleLog(e,[r])}},e.prototype.setLogLevel=function(e){e=eI(e),ew(g,e)&&void 0!==e?this.logLevel=e:this.logLevel=g.ERROR},e.prototype.getTime=function(){return new Date().toISOString()},e.prototype.shouldLog=function(e){return e>=this.logLevel},e.prototype.getLogLevelName=function(e){switch(e){case g.DEBUG:return"DEBUG";case g.INFO:return"INFO ";case g.WARNING:return"WARN ";case g.ERROR:return"ERROR";default:return"NOTSET"}},e.prototype.consoleLog=function(e,t){switch(e){case g.DEBUG:console.log.apply(console,t);break;case g.INFO:console.info.apply(console,t);break;case g.WARNING:console.warn.apply(console,t);break;case g.ERROR:console.error.apply(console,t);break;default:console.log.apply(console,t)}},e}(),ex=g.NOTSET,eN=null,eP=function(){function e(e){void 0===e&&(e={}),this.messagePrefix="",e.messagePrefix&&(this.messagePrefix=e.messagePrefix)}return e.prototype.log=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.internalLog(eI(e),{message:t,splat:r})},e.prototype.info=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(g.INFO,e,t)},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(g.DEBUG,e,t)},e.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(g.WARNING,e,t)},e.prototype.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.namedLog(g.ERROR,e,t)},e.prototype.format=function(e){return"".concat(this.messagePrefix?this.messagePrefix+": ":"").concat(eS.apply(void 0,eg([e.message],e.splat,!1)))},e.prototype.internalLog=function(e,t){eN&&!(e<ex)&&(eN.log(e,this.format(t)),t.error&&t.error instanceof Error&&ev.handleError(t.error))},e.prototype.namedLog=function(e,t,r){if(t instanceof Error){t=(n=t).message,this.internalLog(e,{error:n,message:t,splat:r});return}if(0===r.length){this.internalLog(e,{message:t,splat:r});return}var n,i=r[r.length-1];i instanceof Error&&(n=i,r.splice(-1)),this.internalLog(e,{message:t,error:n,splat:r})},e}(),eC=new eR;function eD(e){return eC.getLogger(e)}function ej(e){eN=e}var eM={setLogLevel:function(e){e=eI(e),ex=ew(g,e)&&void 0!==e?e:g.ERROR},setLogHandler:ej};function eL(e,t){var r=e.context,n=t.context;return r.accountId===n.accountId&&r.projectId===n.projectId&&r.clientName===n.clientName&&r.clientVersion===n.clientVersion&&r.revision===n.revision&&r.anonymizeIP===n.anonymizeIP&&r.botFiltering===n.botFiltering}var eF=eD("EventProcessor"),eU=function(){function e(e){var t=e.timeout,r=e.callback;this.timeout=Math.max(t,0),this.callback=r}return e.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},e.prototype.refresh=function(){this.stop(),this.start()},e.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},e}(),eV=function(){function e(e){var t=e.sink;this.sink=t}return e.prototype.start=function(){return Promise.resolve()},e.prototype.stop=function(){return Promise.resolve()},e.prototype.enqueue=function(e){this.sink([e])},e}(),eB=function(){function e(e){var t=e.flushInterval,r=e.maxQueueSize,n=e.sink,i=e.closingSink,o=e.batchComparator;this.buffer=[],this.maxQueueSize=Math.max(r,1),this.sink=n,this.closingSink=i,this.batchComparator=o,this.timer=new eU({callback:this.flush.bind(this),timeout:t}),this.started=!1}return e.prototype.start=function(){return this.started=!0,Promise.resolve()},e.prototype.stop=function(){this.started=!1;var e=this.closingSink?this.closingSink(this.buffer):this.sink(this.buffer);return this.buffer=[],this.timer.stop(),e},e.prototype.enqueue=function(e){if(!this.started){eF.warn("Queue is stopped, not accepting event");return}var t=this.buffer[0];t&&!this.batchComparator(t,e)&&this.flush(),0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush()},e.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},e}(),eG={NOTSET:0,DEBUG:1,INFO:2,WARNING:3,ERROR:4},eq={BROWSER_ODP_MANAGER_INITIALIZATION_FAILED:"%s: Error initializing Browser ODP Manager.",CONDITION_EVALUATOR_ERROR:"%s: Error evaluating audience condition of type %s: %s",DATAFILE_AND_SDK_KEY_MISSING:"%s: You must provide at least one of sdkKey or datafile. Cannot start Optimizely",EXPERIMENT_KEY_NOT_IN_DATAFILE:"%s: Experiment key %s is not in datafile.",FEATURE_NOT_IN_DATAFILE:"%s: Feature key %s is not in datafile.",FETCH_SEGMENTS_FAILED_NETWORK_ERROR:"%s: Audience segments fetch failed. (network error)",FETCH_SEGMENTS_FAILED_DECODE_ERROR:"%s: Audience segments fetch failed. (decode error)",IMPROPERLY_FORMATTED_EXPERIMENT:"%s: Experiment key %s is improperly formatted.",INVALID_ATTRIBUTES:"%s: Provided attributes are in an invalid format.",INVALID_BUCKETING_ID:"%s: Unable to generate hash for bucketing ID %s: %s",INVALID_DATAFILE:"%s: Datafile is invalid - property %s: %s",INVALID_DATAFILE_MALFORMED:"%s: Datafile is invalid because it is malformed.",INVALID_CONFIG:"%s: Provided Optimizely config is in an invalid format.",INVALID_JSON:"%s: JSON object is not valid.",INVALID_ERROR_HANDLER:'%s: Provided "errorHandler" is in an invalid format.',INVALID_EVENT_DISPATCHER:'%s: Provided "eventDispatcher" is in an invalid format.',INVALID_EVENT_TAGS:"%s: Provided event tags are in an invalid format.",INVALID_EXPERIMENT_KEY:"%s: Experiment key %s is not in datafile. It is either invalid, paused, or archived.",INVALID_EXPERIMENT_ID:"%s: Experiment ID %s is not in datafile.",INVALID_GROUP_ID:"%s: Group ID %s is not in datafile.",INVALID_LOGGER:'%s: Provided "logger" is in an invalid format.',INVALID_ROLLOUT_ID:"%s: Invalid rollout ID %s attached to feature %s",INVALID_USER_ID:"%s: Provided user ID is in an invalid format.",INVALID_USER_PROFILE_SERVICE:"%s: Provided user profile service instance is in an invalid format: %s.",LOCAL_STORAGE_DOES_NOT_EXIST:"Error accessing window localStorage.",MISSING_INTEGRATION_KEY:"%s: Integration key missing from datafile. All integrations should include a key.",NO_DATAFILE_SPECIFIED:"%s: No datafile specified. Cannot start optimizely.",NO_JSON_PROVIDED:"%s: No JSON object to validate against schema.",NO_VARIATION_FOR_EXPERIMENT_KEY:"%s: No variation key %s defined in datafile for experiment %s.",ODP_CONFIG_NOT_AVAILABLE:"%s: ODP is not integrated to the project.",ODP_EVENT_FAILED:"ODP event send failed.",ODP_FETCH_QUALIFIED_SEGMENTS_SEGMENTS_MANAGER_MISSING:"%s: ODP unable to fetch qualified segments (Segments Manager not initialized).",ODP_IDENTIFY_FAILED_EVENT_MANAGER_MISSING:"%s: ODP identify event %s is not dispatched (Event Manager not instantiated).",ODP_INITIALIZATION_FAILED:"%s: ODP failed to initialize.",ODP_INVALID_DATA:"%s: ODP data is not valid",ODP_EVENT_FAILED_ODP_MANAGER_MISSING:"%s: ODP Event failed to send. (ODP Manager not initialized).",ODP_FETCH_QUALIFIED_SEGMENTS_FAILED_ODP_MANAGER_MISSING:"%s: ODP failed to Fetch Qualified Segments. (ODP Manager not initialized).",ODP_IDENTIFY_USER_FAILED_ODP_MANAGER_MISSING:"%s: ODP failed to Identify User. (ODP Manager not initialized).",ODP_IDENTIFY_USER_FAILED_USER_CONTEXT_INITIALIZATION:"%s: ODP failed to Identify User. (Failed during User Context Initialization).",ODP_MANAGER_UPDATE_SETTINGS_FAILED_EVENT_MANAGER_MISSING:"%s: ODP Manager failed to update OdpConfig settings for internal event manager. (Event Manager not initialized).",ODP_MANAGER_UPDATE_SETTINGS_FAILED_SEGMENTS_MANAGER_MISSING:"%s: ODP Manager failed to update OdpConfig settings for internal segments manager. (Segments Manager not initialized).",ODP_NOT_ENABLED:"ODP is not enabled",ODP_NOT_INTEGRATED:"%s: ODP is not integrated",ODP_SEND_EVENT_FAILED_EVENT_MANAGER_MISSING:"%s: ODP send event %s was not dispatched (Event Manager not instantiated).",ODP_SEND_EVENT_FAILED_UID_MISSING:"%s: ODP send event %s was not dispatched (No valid user identifier provided).",ODP_SEND_EVENT_FAILED_VUID_MISSING:"%s: ODP send event %s was not dispatched (Unable to fetch VUID).",ODP_VUID_INITIALIZATION_FAILED:"%s: ODP VUID initialization failed.",ODP_VUID_REGISTRATION_FAILED:"%s: ODP VUID failed to be registered.",ODP_VUID_REGISTRATION_FAILED_EVENT_MANAGER_MISSING:"%s: ODP register vuid failed. (Event Manager not instantiated).",UNDEFINED_ATTRIBUTE:"%s: Provided attribute: %s has an undefined value.",UNRECOGNIZED_ATTRIBUTE:"%s: Unrecognized attribute %s provided. Pruning before sending event to Optimizely.",UNABLE_TO_CAST_VALUE:"%s: Unable to cast value %s to type %s, returning null.",USER_NOT_IN_FORCED_VARIATION:"%s: User %s is not in the forced variation map. Cannot remove their forced variation.",USER_PROFILE_LOOKUP_ERROR:'%s: Error while looking up user profile for user ID "%s": %s.',USER_PROFILE_SAVE_ERROR:'%s: Error while saving user profile for user ID "%s": %s.',VARIABLE_KEY_NOT_IN_DATAFILE:'%s: Variable with key "%s" associated with feature with key "%s" is not in datafile.',VARIATION_ID_NOT_IN_DATAFILE:"%s: No variation ID %s defined in datafile for experiment %s.",VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT:"%s: Variation ID %s is not in the datafile.",INVALID_INPUT_FORMAT:"%s: Provided %s is in an invalid format.",INVALID_DATAFILE_VERSION:"%s: This version of the JavaScript SDK does not support the given datafile version: %s",INVALID_VARIATION_KEY:"%s: Provided variation key is in an invalid format."},ez={ACTIVATE_USER:"%s: Activating user %s in experiment %s.",DISPATCH_CONVERSION_EVENT:"%s: Dispatching conversion event to URL %s with params %s.",DISPATCH_IMPRESSION_EVENT:"%s: Dispatching impression event to URL %s with params %s.",DEPRECATED_EVENT_VALUE:"%s: Event value is deprecated in %s call.",EVENT_KEY_NOT_FOUND:"%s: Event key %s is not in datafile.",EXPERIMENT_NOT_RUNNING:"%s: Experiment %s is not running.",FEATURE_ENABLED_FOR_USER:"%s: Feature %s is enabled for user %s.",FEATURE_NOT_ENABLED_FOR_USER:"%s: Feature %s is not enabled for user %s.",FEATURE_HAS_NO_EXPERIMENTS:"%s: Feature %s is not attached to any experiments.",FAILED_TO_PARSE_VALUE:'%s: Failed to parse event value "%s" from event tags.',FAILED_TO_PARSE_REVENUE:'%s: Failed to parse revenue value "%s" from event tags.',FORCED_BUCKETING_FAILED:"%s: Variation key %s is not in datafile. Not activating user %s.",INVALID_OBJECT:"%s: Optimizely object is not valid. Failing %s.",INVALID_CLIENT_ENGINE:"%s: Invalid client engine passed: %s. Defaulting to node-sdk.",INVALID_DEFAULT_DECIDE_OPTIONS:"%s: Provided default decide options is not an array.",INVALID_DECIDE_OPTIONS:"%s: Provided decide options is not an array. Using default decide options.",INVALID_VARIATION_ID:"%s: Bucketed into an invalid variation ID. Returning null.",NOTIFICATION_LISTENER_EXCEPTION:"%s: Notification listener for (%s) threw exception: %s",NO_ROLLOUT_EXISTS:"%s: There is no rollout of feature %s.",NOT_ACTIVATING_USER:"%s: Not activating user %s for experiment %s.",NOT_TRACKING_USER:"%s: Not tracking user %s.",ODP_DISABLED:"ODP Disabled.",ODP_IDENTIFY_FAILED_ODP_DISABLED:"%s: ODP identify event for user %s is not dispatched (ODP disabled).",ODP_IDENTIFY_FAILED_ODP_NOT_INTEGRATED:"%s: ODP identify event %s is not dispatched (ODP not integrated).",ODP_SEND_EVENT_IDENTIFIER_CONVERSION_FAILED:"%s: sendOdpEvent failed to parse through and convert fs_user_id aliases",PARSED_REVENUE_VALUE:'%s: Parsed revenue value "%s" from event tags.',PARSED_NUMERIC_VALUE:'%s: Parsed event value "%s" from event tags.',RETURNING_STORED_VARIATION:'%s: Returning previously activated variation "%s" of experiment "%s" for user "%s" from user profile.',ROLLOUT_HAS_NO_EXPERIMENTS:"%s: Rollout of feature %s has no experiments",SAVED_VARIATION:'%s: Saved variation "%s" of experiment "%s" for user "%s".',SAVED_VARIATION_NOT_FOUND:"%s: User %s was previously bucketed into variation with ID %s for experiment %s, but no matching variation was found.",SHOULD_NOT_DISPATCH_ACTIVATE:'%s: Experiment %s is not in "Running" state. Not activating user.',SKIPPING_JSON_VALIDATION:"%s: Skipping JSON schema validation.",TRACK_EVENT:"%s: Tracking event %s for user %s.",UNRECOGNIZED_DECIDE_OPTION:"%s: Unrecognized decide option %s provided.",USER_ASSIGNED_TO_EXPERIMENT_BUCKET:"%s: Assigned bucket %s to user with bucketing ID %s.",USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP:"%s: User %s is in experiment %s of group %s.",USER_BUCKETED_INTO_TARGETING_RULE:"%s: User %s bucketed into targeting rule %s.",USER_IN_FEATURE_EXPERIMENT:"%s: User %s is in variation %s of experiment %s on the feature %s.",USER_IN_ROLLOUT:"%s: User %s is in rollout of feature %s.",USER_NOT_BUCKETED_INTO_EVERYONE_TARGETING_RULE:"%s: User %s not bucketed into everyone targeting rule due to traffic allocation.",USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP:"%s: User %s is not in experiment %s of group %s.",USER_NOT_BUCKETED_INTO_ANY_EXPERIMENT_IN_GROUP:"%s: User %s is not in any experiment of group %s.",USER_NOT_BUCKETED_INTO_TARGETING_RULE:"%s User %s not bucketed into targeting rule %s due to traffic allocation. Trying everyone rule.",USER_NOT_IN_FEATURE_EXPERIMENT:"%s: User %s is not in any experiment on the feature %s.",USER_NOT_IN_ROLLOUT:"%s: User %s is not in rollout of feature %s.",USER_FORCED_IN_VARIATION:"%s: User %s is forced in variation %s.",USER_MAPPED_TO_FORCED_VARIATION:"%s: Set variation %s for experiment %s and user %s in the forced variation map.",USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE:"%s: User %s does not meet conditions for targeting rule %s.",USER_MEETS_CONDITIONS_FOR_TARGETING_RULE:"%s: User %s meets conditions for targeting rule %s.",USER_HAS_VARIATION:"%s: User %s is in variation %s of experiment %s.",USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED:"Variation (%s) is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED:"Variation (%s) is mapped to flag (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID:"Invalid variation is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID:"Invalid variation is mapped to flag (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_VARIATION:"%s: Variation %s is mapped to experiment %s and user %s in the forced variation map.",USER_HAS_NO_VARIATION:"%s: User %s is in no variation of experiment %s.",USER_HAS_NO_FORCED_VARIATION:"%s: User %s is not in the forced variation map.",USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT:"%s: No experiment %s mapped to user %s in the forced variation map.",USER_NOT_IN_ANY_EXPERIMENT:"%s: User %s is not in any experiment of group %s.",USER_NOT_IN_EXPERIMENT:"%s: User %s does not meet conditions to be in experiment %s.",USER_RECEIVED_DEFAULT_VARIABLE_VALUE:'%s: User "%s" is not in any variation or rollout rule. Returning default value for variable "%s" of feature flag "%s".',FEATURE_NOT_ENABLED_RETURN_DEFAULT_VARIABLE_VALUE:'%s: Feature "%s" is not enabled for user %s. Returning the default variable value "%s".',VARIABLE_NOT_USED_RETURN_DEFAULT_VARIABLE_VALUE:'%s: Variable "%s" is not used in variation "%s". Returning default value.',USER_RECEIVED_VARIABLE_VALUE:'%s: Got variable value "%s" for variable "%s" of feature flag "%s"',VALID_DATAFILE:"%s: Datafile is valid.",VALID_USER_PROFILE_SERVICE:"%s: Valid user profile service provided.",VARIATION_REMOVED_FOR_USER:"%s: Variation mapped to experiment %s has been removed for user %s.",VARIABLE_REQUESTED_WITH_WRONG_TYPE:'%s: Requested variable type "%s", but variable is of type "%s". Use correct API to retrieve value. Returning None.',VALID_BUCKETING_ID:'%s: BucketingId is valid: "%s"',BUCKETING_ID_NOT_STRING:"%s: BucketingID attribute is not a string. Defaulted to userId",EVALUATING_AUDIENCE:'%s: Starting to evaluate audience "%s" with conditions: %s.',EVALUATING_AUDIENCES_COMBINED:'%s: Evaluating audiences for %s "%s": %s.',AUDIENCE_EVALUATION_RESULT:'%s: Audience "%s" evaluated to %s.',AUDIENCE_EVALUATION_RESULT_COMBINED:"%s: Audiences for %s %s collectively evaluated to %s.",MISSING_ATTRIBUTE_VALUE:'%s: Audience condition %s evaluated to UNKNOWN because no value was passed for user attribute "%s".',UNEXPECTED_CONDITION_VALUE:"%s: Audience condition %s evaluated to UNKNOWN because the condition value is not supported.",UNEXPECTED_TYPE:'%s: Audience condition %s evaluated to UNKNOWN because a value of type "%s" was passed for user attribute "%s".',UNEXPECTED_TYPE_NULL:'%s: Audience condition %s evaluated to UNKNOWN because a null value was passed for user attribute "%s".',UNKNOWN_CONDITION_TYPE:"%s: Audience condition %s has an unknown condition type. You may need to upgrade to a newer release of the Optimizely SDK.",UNKNOWN_MATCH_TYPE:"%s: Audience condition %s uses an unknown match type. You may need to upgrade to a newer release of the Optimizely SDK.",UPDATED_OPTIMIZELY_CONFIG:"%s: Updated Optimizely config to revision %s (project id %s)",OUT_OF_BOUNDS:'%s: Audience condition %s evaluated to UNKNOWN because the number value for user attribute "%s" is not in the range [-2^53, +2^53].',UNABLE_TO_ATTACH_UNLOAD:'%s: unable to bind optimizely.close() to page unload event: "%s"'},eH={BOT_FILTERING:"$opt_bot_filtering",BUCKETING_ID:"$opt_bucketing_id",STICKY_BUCKETING_KEY:"$opt_experiment_bucket_map",USER_AGENT:"$opt_user_agent",FORCED_DECISION_NULL_RULE_KEY:"$opt_null_rule_key"},eW="javascript-sdk",eK="node-sdk",eY="5.3.4",eQ={AB_TEST:"ab-test",FEATURE:"feature",FEATURE_TEST:"feature-test",FEATURE_VARIABLE:"feature-variable",ALL_FEATURE_VARIABLES:"all-feature-variables",FLAG:"flag"},e$={FEATURE_TEST:"feature-test",ROLLOUT:"rollout",EXPERIMENT:"experiment"},eJ={RULE:"rule",EXPERIMENT:"experiment"},eX={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string",JSON:"json"},eZ={V2:"2",V3:"3",V4:"4"},e0={SDK_NOT_READY:"Optimizely SDK not configured properly yet.",FLAG_KEY_INVALID:'No flag was found for key "%s".',VARIABLE_VALUE_INVALID:'Variable value for key "%s" is invalid or wrong type.'};(o=v||(v={})).ACTIVATE="ACTIVATE:experiment, user_id,attributes, variation, event",o.DECISION="DECISION:type, userId, attributes, decisionInfo",o.LOG_EVENT="LOG_EVENT:logEvent",o.OPTIMIZELY_CONFIG_UPDATE="OPTIMIZELY_CONFIG_UPDATE",o.TRACK="TRACK:event_key, user_id, attributes, event_tags, event",(a=m||(m={})).VUID="vuid",a.FS_USER_ID="fs_user_id";var e1="fs-user-id",e2="fullstack";(s=b||(b={})).IDENTIFIED="identified",s.INITIALIZED="client_initialized";var e3=Object.freeze({__proto__:null,LOG_LEVEL:eG,ERROR_MESSAGES:eq,LOG_MESSAGES:ez,CONTROL_ATTRIBUTES:eH,JAVASCRIPT_CLIENT_ENGINE:eW,NODE_CLIENT_ENGINE:eK,REACT_CLIENT_ENGINE:"react-sdk",REACT_NATIVE_CLIENT_ENGINE:"react-native-sdk",REACT_NATIVE_JS_CLIENT_ENGINE:"react-native-js-sdk",CLIENT_VERSION:eY,DECISION_NOTIFICATION_TYPES:eQ,DECISION_SOURCES:e$,AUDIENCE_EVALUATION_TYPES:eJ,FEATURE_VARIABLE_TYPES:eX,DATAFILE_VERSIONS:eZ,DECISION_MESSAGES:e0,get NOTIFICATION_TYPES(){return v},REQUEST_TIMEOUT_MS:6e4,REQUEST_TIMEOUT_ODP_SEGMENTS_MS:1e4,REQUEST_TIMEOUT_ODP_EVENTS_MS:1e4,get ODP_USER_KEY(){return m},FS_USER_ID_ALIAS:e1,ODP_DEFAULT_EVENT_TYPE:e2,get ODP_EVENT_ACTION(){return b}}),e4=eD("EventProcessor"),e6=eD("EventProcessor"),e5=function(){function e(e){var t=e.key,r=e.maxValues;this.LS_KEY=t,this.maxValues=void 0===r?1e3:r}return e.prototype.get=function(e){return this.getMap()[e]||null},e.prototype.set=function(e,t){var r=this.getMap();r[e]=t,this.replace(r)},e.prototype.remove=function(e){var t=this.getMap();delete t[e],this.replace(t)},e.prototype.values=function(){return e_(this.getMap())},e.prototype.clear=function(){this.replace({})},e.prototype.replace=function(e){try{"undefined"!=typeof window?window&&window.localStorage&&localStorage.setItem(this.LS_KEY,JSON.stringify(e)):localStorage.setItem(this.LS_KEY,JSON.stringify(e)),this.clean()}catch(e){e6.error(String(e))}},e.prototype.clean=function(){var e=this.getMap(),t=Object.keys(e),r=t.length-this.maxValues;if(!(r<1)){var n=t.map(function(t){return{key:t,value:e[t]}});n.sort(function(e,t){return e.value.timestamp-t.value.timestamp});for(var i=0;i<r;i++)delete e[n[i].key];this.replace(e)}},e.prototype.getMap=function(){try{var e="undefined"!=typeof window?window&&window.localStorage&&localStorage.getItem(this.LS_KEY):localStorage.getItem(this.LS_KEY);if(e)return JSON.parse(e)||{}}catch(e){e6.error(e)}return{}},e}(),e8=eD("EventProcessor"),e9=function(e){function t(t){var r=t.eventDispatcher;return e.call(this,{eventDispatcher:r,store:new e5({maxValues:100,key:"fs_optly_pending_events"})})||this}return ep(t,e),t}(function(){function e(e){var t=e.eventDispatcher,r=e.store;this.dispatcher=t,this.store=r}return e.prototype.dispatchEvent=function(e,t){this.send({uuid:eE(),timestamp:new Date().getTime(),request:e},t)},e.prototype.sendPendingEvents=function(){var e=this,t=this.store.values();e8.debug("Sending %s pending events from previous page",t.length),t.forEach(function(t){try{e.send(t,function(){})}catch(e){e8.debug(String(e))}})},e.prototype.send=function(e,t){var r=this;this.store.set(e.uuid,e),this.dispatcher.dispatchEvent(e.request,function(n){r.store.remove(e.uuid),t(n)})},e}()),e7="$opt_bot_filtering",te=function(){function e(){this.reqsInFlightCount=0,this.reqsCompleteResolvers=[]}return e.prototype.trackRequest=function(e){var t=this;this.reqsInFlightCount++;var r=function(){t.reqsInFlightCount--,0===t.reqsInFlightCount&&(t.reqsCompleteResolvers.forEach(function(e){return e()}),t.reqsCompleteResolvers=[])};e.then(r,r)},e.prototype.onRequestsComplete=function(){var e=this;return new Promise(function(t){0===e.reqsInFlightCount?t():e.reqsCompleteResolvers.push(t)})},e}(),tt=eD("LogTierV1EventProcessor"),tr=function(){function e(e){var t,r,n,i,o,a,s=e.dispatcher,u=e.closingDispatcher,c=e.flushInterval,l=void 0===c?3e4:c,f=e.batchSize,p=void 0===f?10:f,d=e.notificationCenter;this.dispatcher=s,this.closingDispatcher=u,this.notificationCenter=d,this.requestTracker=new te,(t=l)<=0&&(e4.warn("Invalid flushInterval ".concat(t,", defaulting to ").concat(3e4)),t=3e4),l=t,(r=Math.floor(r=p))<1&&(e4.warn("Invalid batchSize ".concat(r,", defaulting to ").concat(10)),r=10),p=r=Math.max(1,r),this.queue=(n=p,i=l,o=this.drainQueue.bind(this,!1),a=this.drainQueue.bind(this,!0),n>1?new eB({flushInterval:i,maxQueueSize:n,sink:o,closingSink:a,batchComparator:eL}):new eV({sink:o}))}return e.prototype.drainQueue=function(e,t){var r=this,n=new Promise(function(n){if(tt.debug("draining queue with %s events",t.length),0===t.length){n();return}var i,o,a,s={url:"https://logx.optimizely.com/v1/events",httpVerb:"POST",params:(i=[],o=t[0],t.forEach(function(e){if("conversion"===e.type||"impression"===e.type){var t,r,n,o,a,s,u,c,l,f,p,d,h,y=(t={snapshots:[],visitor_id:e.user.id,attributes:[]},e.user.attributes.forEach(function(e){t.attributes.push({entity_id:e.entityId,key:e.key,type:"custom",value:e.value})}),"boolean"==typeof e.context.botFiltering&&t.attributes.push({entity_id:e7,key:e7,type:"custom",value:e.context.botFiltering}),t);"impression"===e.type?y.snapshots.push((o=e.layer,a=e.experiment,s=e.variation,u=e.ruleKey,c=e.flagKey,l=e.ruleType,f=e.enabled,{decisions:[{campaign_id:p=o?o.id:null,experiment_id:null!==(r=null==a?void 0:a.id)&&void 0!==r?r:"",variation_id:null!==(n=null==s?void 0:s.id)&&void 0!==n?n:"",metadata:{flag_key:c,rule_key:u,rule_type:l,variation_key:s?s.key:"",enabled:f}}],events:[{entity_id:p,timestamp:e.timestamp,key:"campaign_activated",uuid:e.uuid}]})):"conversion"===e.type&&y.snapshots.push((d=ed({},e.tags),delete d.revenue,delete d.value,h={entity_id:e.event.id,key:e.event.key,timestamp:e.timestamp,uuid:e.uuid},e.tags&&(h.tags=e.tags),null!=e.value&&(h.value=e.value),null!=e.revenue&&(h.revenue=e.revenue),{events:[h]})),i.push(y)}}),{client_name:o.context.clientName,client_version:o.context.clientVersion,account_id:o.context.accountId,project_id:o.context.projectId,revision:o.context.revision,anonymize_ip:o.context.anonymizeIP,enrich_decisions:!0,visitors:i})};(e&&r.closingDispatcher?r.closingDispatcher:r.dispatcher).dispatchEvent(s,function(){n()}),(a=r.notificationCenter)&&a.sendNotifications(v.LOG_EVENT,s)});return this.requestTracker.trackRequest(n),n},e.prototype.process=function(e){this.queue.enqueue(e)},e.prototype.stop=function(){try{return this.queue.stop(),this.requestTracker.onRequestsComplete()}catch(e){tt.error('Error stopping EventProcessor: "%s"',Object(e).message,String(e))}return Promise.resolve()},e.prototype.start=function(){return eh(this,void 0,void 0,function(){return ey(this,function(e){switch(e.label){case 0:return[4,this.queue.start()];case 1:return e.sent(),[2]}})})},e}(),tn="CONFIG_VALIDATOR",ti=[eZ.V2,eZ.V3,eZ.V4],to={validate:function(e){if("object"==typeof e&&null!==e){var t=e.errorHandler,r=e.eventDispatcher,n=e.logger;if(t&&"function"!=typeof t.handleError)throw Error(eS(eq.INVALID_ERROR_HANDLER,tn));if(r&&"function"!=typeof r.dispatchEvent)throw Error(eS(eq.INVALID_EVENT_DISPATCHER,tn));if(n&&"function"!=typeof n.log)throw Error(eS(eq.INVALID_LOGGER,tn));return!0}throw Error(eS(eq.INVALID_CONFIG,tn))},validateDatafile:function(e){if(!e)throw Error(eS(eq.NO_DATAFILE_SPECIFIED,tn));if("string"==typeof e)try{e=JSON.parse(e)}catch(e){throw Error(eS(eq.INVALID_DATAFILE_MALFORMED,tn))}if("object"==typeof e&&!Array.isArray(e)&&null!==e&&-1===ti.indexOf(e.version))throw Error(eS(eq.INVALID_DATAFILE_VERSION,tn,e.version));return e}},ta="POST",ts={dispatchEvent:function(e,t){var r,n=e.params,i=e.url;e.httpVerb===ta?((r=new XMLHttpRequest).open(ta,i,!0),r.setRequestHeader("Content-Type","application/json"),r.onreadystatechange=function(){if(4===r.readyState&&t&&"function"==typeof t)try{t({statusCode:r.status})}catch(e){}},r.send(JSON.stringify(n))):(i+="?wxhr=true",n&&(i+="&"+Object.keys(n).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])}).join("&")),(r=new XMLHttpRequest).open("GET",i,!0),r.onreadystatechange=function(){if(4===r.readyState&&t&&"function"==typeof t)try{t({statusCode:r.status})}catch(e){}},r.send())}},tu={dispatchEvent:function(e,t){var r=e.params,n=e.url,i=new Blob([JSON.stringify(r)],{type:"application/json"});t({statusCode:navigator.sendBeacon(n,i)?200:500})}},tc=function(){function e(){}return e.prototype.log=function(){},e}();function tl(e){return new ek(e)}var tf=Object.freeze({__proto__:null,NoOpLogger:tc,createLogger:tl,createNoOpLogger:function(){return new tc}}),tp={validateEventBatchSize:function(e){return!!("number"==typeof e&&eT.isSafeInteger(e))&&e>=1},validateEventFlushInterval:function(e){return!!("number"==typeof e&&eT.isSafeInteger(e))&&e>0}},td=function(){function e(e){var t=this;this.logger=e.logger,this.errorHandler=e.errorHandler,this.notificationListeners={},e_(v).forEach(function(e){t.notificationListeners[e]=[]}),this.listenerId=1}return e.prototype.addNotificationListener=function(e,t){try{if(!(e_(v).indexOf(e)>-1))return -1;this.notificationListeners[e]||(this.notificationListeners[e]=[]);var r=!1;if((this.notificationListeners[e]||[]).forEach(function(e){if(e.callback===t){r=!0;return}}),r)return -1;this.notificationListeners[e].push({id:this.listenerId,callback:t});var n=this.listenerId;return this.listenerId+=1,n}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),-1}},e.prototype.removeNotificationListener=function(e){var t,r,n=this;try{if(Object.keys(this.notificationListeners).some(function(i){return(n.notificationListeners[i]||[]).every(function(n,o){return n.id!==e||(t=o,r=i,!1)}),void 0!==t&&void 0!==r}),void 0!==t&&void 0!==r)return this.notificationListeners[r].splice(t,1),!0}catch(e){this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e)}return!1},e.prototype.clearAllNotificationListeners=function(){var e=this;try{e_(v).forEach(function(t){e.notificationListeners[t]=[]})}catch(e){this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.clearNotificationListeners=function(e){try{this.notificationListeners[e]=[]}catch(e){this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.sendNotifications=function(e,t){var r=this;try{(this.notificationListeners[e]||[]).forEach(function(n){var i=n.callback;try{i(t)}catch(t){r.logger.log(eG.ERROR,ez.NOTIFICATION_LISTENER_EXCEPTION,"NOTIFICATION_CENTER",e,t.message)}})}catch(e){this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e)}},e}(),th={createEventProcessor:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(tr.bind.apply(tr,eg([void 0],e,!1)))}};(u=E||(E={})).IGNORE_CACHE="IGNORE_CACHE",u.RESET_CACHE="RESET_CACHE",(c=w||(w={})).BOOLEAN="boolean",c.DOUBLE="double",c.INTEGER="integer",c.STRING="string",c.JSON="json",(l=_||(_={})).DISABLE_DECISION_EVENT="DISABLE_DECISION_EVENT",l.ENABLED_FLAGS_ONLY="ENABLED_FLAGS_ONLY",l.IGNORE_USER_PROFILE_SERVICE="IGNORE_USER_PROFILE_SERVICE",l.INCLUDE_REASONS="INCLUDE_REASONS",l.EXCLUDE_VARIABLES="EXCLUDE_VARIABLES";var ty="Polling intervals below ".concat(30," seconds are not recommended."),tg=[0,8,16,32,64,128,256,512],tv=eD("DatafileManager"),tm=function(){function e(){this.listeners={},this.listenerId=1}return e.prototype.on=function(e,t){var r=this;this.listeners[e]||(this.listeners[e]={});var n=String(this.listenerId);return this.listenerId++,this.listeners[e][n]=t,function(){r.listeners[e]&&delete r.listeners[e][n]}},e.prototype.emit=function(e,t){var r=this.listeners[e];r&&Object.keys(r).forEach(function(e){(0,r[e])(t)})},e.prototype.removeAllListeners=function(){this.listeners={}},e}(),tb=function(){function e(){this.errorCount=0}return e.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*tg[Math.min(tg.length-1,this.errorCount)]+Math.round(1e3*Math.random())},e.prototype.countError=function(){this.errorCount<tg.length-1&&this.errorCount++},e.prototype.reset=function(){this.errorCount=0},e}(),tE=function(){function e(){}return e.getNotificationCenter=function(e,t){var r;if(void 0===t&&(t=eD()),!e){t.log(g.ERROR,"No SDK key provided to getNotificationCenter.");return}return this._notificationCenters.has(e)?r=this._notificationCenters.get(e):(r=new td({logger:t,errorHandler:{handleError:function(){}}}),this._notificationCenters.set(e,r)),r},e.removeNotificationCenter=function(e){if(e){var t=this._notificationCenters.get(e);t&&(t.clearAllNotificationListeners(),this._notificationCenters.delete(e))}},e._notificationCenters=new Map,e}(),tw=eD("DatafileManager");function t_(e){return e>=200&&e<400}var tO={get:function(){return Promise.resolve(void 0)},set:function(){return Promise.resolve()},contains:function(){return Promise.resolve(!1)},remove:function(){return Promise.resolve(!1)}},tS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ep(t,e),t.prototype.makeGetRequest=function(e,t){var r;return r=new XMLHttpRequest,{responsePromise:new Promise(function(n,i){r.open("GET",e,!0),function(e,t){Object.keys(e).forEach(function(r){var n=e[r];t.setRequestHeader(r,n)})}(t,r),r.onreadystatechange=function(){if(4===r.readyState){if(0===r.status){i(Error("Request error"));return}var e=function(e){var t=e.getAllResponseHeaders();if(null===t)return{};var r=t.split("\r\n"),n={};return r.forEach(function(e){var t=e.indexOf(": ");if(t>-1){var r=e.slice(0,t),i=e.slice(t+2);i.length>0&&(n[r]=i)}}),n}(r);n({statusCode:r.status,body:r.responseText,headers:e})}},r.timeout=6e4,r.ontimeout=function(){tv.error("Request timed out")},r.send()}),abort:function(){r.abort()}}},t.prototype.getConfigDefaults=function(){return{autoUpdate:!1}},t}(function(){function e(e){var t=this,r=ed(ed({},this.getConfigDefaults()),e),n=r.datafile,i=r.autoUpdate,o=r.sdkKey,a=r.updateInterval,s=r.urlTemplate,u=r.cache;this.cache=void 0===u?tO:u,this.cacheKey="opt-datafile-"+o,this.sdkKey=o,this.isReadyPromiseSettled=!1,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise(function(e,r){t.readyPromiseResolver=e,t.readyPromiseRejecter=r}),n?(this.currentDatafile=n,o||this.resolveReadyPromise()):this.currentDatafile="",this.isStarted=!1,this.datafileUrl=eS(void 0===s?"https://cdn.optimizely.com/datafiles/%s.json":s,o),this.emitter=new tm,this.autoUpdate=void 0!==i&&i,this.updateInterval=void 0===a?3e5:a,this.updateInterval<3e4&&tw.warn(ty),this.currentTimeout=null,this.currentRequest=null,this.backoffController=new tb,this.syncOnCurrentRequestComplete=!1}return e.prototype.get=function(){return this.currentDatafile},e.prototype.start=function(){this.isStarted||(tw.debug("Datafile manager started"),this.isStarted=!0,this.backoffController.reset(),this.setDatafileFromCacheIfAvailable(),this.syncDatafile())},e.prototype.stop=function(){return tw.debug("Datafile manager stopped"),this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.emitter.removeAllListeners(),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},e.prototype.onReady=function(){return this.readyPromise},e.prototype.on=function(e,t){return this.emitter.on(e,t)},e.prototype.onRequestRejected=function(e){this.isStarted&&(this.backoffController.countError(),e instanceof Error?tw.error("Error fetching datafile: %s",e.message,e):"string"==typeof e?tw.error("Error fetching datafile: %s",e):tw.error("Error fetching datafile"))},e.prototype.onRequestResolved=function(e){if(this.isStarted){void 0!==e.statusCode&&t_(e.statusCode)?this.backoffController.reset():this.backoffController.countError(),this.trySavingLastModified(e.headers);var t,r=this.getNextDatafileFromResponse(e);""!==r&&(tw.info("Updating datafile from response"),this.currentDatafile=r,this.cache.set(this.cacheKey,r),this.isReadyPromiseSettled?(null===(t=tE.getNotificationCenter(this.sdkKey,tw))||void 0===t||t.sendNotifications(v.OPTIMIZELY_CONFIG_UPDATE),this.emitter.emit("update",{datafile:r})):this.resolveReadyPromise())}},e.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.isReadyPromiseSettled||this.autoUpdate||this.rejectReadyPromise(Error("Failed to become ready")),this.autoUpdate&&this.syncOnCurrentRequestComplete&&this.syncDatafile(),this.syncOnCurrentRequestComplete=!1)},e.prototype.syncDatafile=function(){var e=this,t={};this.lastResponseLastModified&&(t["if-modified-since"]=this.lastResponseLastModified),tw.debug("Making datafile request to url %s with headers: %s",this.datafileUrl,function(){return JSON.stringify(t)}),this.currentRequest=this.makeGetRequest(this.datafileUrl,t);var r=function(){e.onRequestComplete()};this.currentRequest.responsePromise.then(function(t){e.onRequestResolved(t)},function(t){e.onRequestRejected(t)}).then(r,r),this.autoUpdate&&this.scheduleNextUpdate()},e.prototype.resolveReadyPromise=function(){this.readyPromiseResolver(),this.isReadyPromiseSettled=!0},e.prototype.rejectReadyPromise=function(e){this.readyPromiseRejecter(e),this.isReadyPromiseSettled=!0},e.prototype.scheduleNextUpdate=function(){var e=this,t=Math.max(this.backoffController.getDelay(),this.updateInterval);tw.debug("Scheduling sync in %s ms",t),this.currentTimeout=setTimeout(function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.syncDatafile()},t)},e.prototype.getNextDatafileFromResponse=function(e){return(tw.debug("Response status code: %s",e.statusCode),void 0===e.statusCode||304===e.statusCode)?"":t_(e.statusCode)?e.body:(tw.error("Datafile fetch request failed with status: ".concat(e.statusCode)),"")},e.prototype.trySavingLastModified=function(e){var t=e["last-modified"]||e["Last-Modified"];void 0!==t&&(this.lastResponseLastModified=t,tw.debug("Saved last modified header value from response: %s",this.lastResponseLastModified))},e.prototype.setDatafileFromCacheIfAvailable=function(){var e=this;this.cache.get(this.cacheKey).then(function(t){e.isStarted&&!e.isReadyPromiseSettled&&t&&(tw.debug("Using datafile from cache"),e.currentDatafile=t,e.resolveReadyPromise())})},e}()),tT=function(){function e(e,t,r,n){this.apiKey=e,this.apiHost=t,this.pixelUrl=r,this.segmentsToCheck=n}return e.prototype.equals=function(e){var t,r;return this.apiHost===e.apiHost&&this.apiKey===e.apiKey&&this.pixelUrl===e.pixelUrl&&(t=this.segmentsToCheck,r=e.segmentsToCheck,t.length===r.length&&t.every(function(e,t){return e===r[t]}))},e}(),tA="Running",tI="$opt_",tR="PROJECT_CONFIG",tk=function(e,t){void 0===t&&(t=null);var r,n,i,o,a=((o=em({},e)).audiences=(e.audiences||[]).map(function(e){return em({},e)}),o.experiments=(e.experiments||[]).map(function(e){return em({},e)}),o.featureFlags=(e.featureFlags||[]).map(function(e){return em({},e)}),o.groups=(e.groups||[]).map(function(e){var t=em({},e);return t.experiments=(e.experiments||[]).map(function(e){return em({},e)}),t}),o.rollouts=(e.rollouts||[]).map(function(e){var t=em({},e);return t.experiments=(e.experiments||[]).map(function(e){return em({},e)}),t}),o.environmentKey=null!==(n=e.environmentKey)&&void 0!==n?n:"",o.sdkKey=null!==(i=e.sdkKey)&&void 0!==i?i:"",o);a.__datafileStr=null===t?JSON.stringify(e):t,(a.audiences||[]).forEach(function(e){e.conditions=JSON.parse(e.conditions)}),a.audiencesById=eb(a.audiences,"id"),em(a.audiencesById,eb(a.typedAudiences,"id")),a.attributeKeyMap=eb(a.attributes,"key"),a.eventKeyMap=eb(a.events,"key"),a.groupIdMap=eb(a.groups,"id"),Object.keys(a.groupIdMap||{}).forEach(function(e){(a.groupIdMap[e].experiments||[]).forEach(function(t){a.experiments.push(em(t,{groupId:e}))})}),a.rolloutIdMap=eb(a.rollouts||[],"id"),e_(a.rolloutIdMap||{}).forEach(function(e){(e.experiments||[]).forEach(function(e){a.experiments.push(e),e.variationKeyMap=eb(e.variations,"key")})});var s=new Set;Object.keys(a.audiencesById).map(function(e){return tx(a.audiencesById[e])}).forEach(function(e){e.forEach(function(e){s.add(e)})});var u=Array.from(s),c=!1,l="",f="",p="";return a.integrations&&(a.integrationKeyMap=eb(a.integrations,"key"),a.integrations.forEach(function(e){if(!("key"in e))throw Error(eS(eq.MISSING_INTEGRATION_KEY,tR));"odp"===e.key&&(c=!0,f=f||e.publicKey||"",l=l||e.host||"",p=p||e.pixelUrl||"")})),c?a.odpIntegrationConfig={integrated:!0,odpConfig:new tT(f,l,p,u)}:a.odpIntegrationConfig={integrated:!1},a.experimentKeyMap=eb(a.experiments,"key"),a.experimentIdMap=eb(a.experiments,"id"),a.variationIdMap={},a.variationVariableUsageMap={},(a.experiments||[]).forEach(function(e){e.variationKeyMap=eb(e.variations,"key"),em(a.variationIdMap,eb(e.variations,"id")),e_(e.variationKeyMap||{}).forEach(function(e){e.variables&&(a.variationVariableUsageMap[e.id]=eb(e.variables,"id"))})}),a.experimentFeatureMap={},a.featureKeyMap=eb(a.featureFlags||[],"key"),e_(a.featureKeyMap||{}).forEach(function(e){e.variables.forEach(function(e){e.type===eX.STRING&&e.subType===eX.JSON&&(e.type=eX.JSON,delete e.subType)}),e.variableKeyMap=eb(e.variables,"key"),(e.experimentIds||[]).forEach(function(t){a.experimentFeatureMap[t]?a.experimentFeatureMap[t].push(e.id):a.experimentFeatureMap[t]=[e.id]})}),a.flagRulesMap={},(a.featureFlags||[]).forEach(function(e){var t=[];e.experimentIds.forEach(function(e){var r=a.experimentIdMap[e];r&&t.push(r)});var r=a.rolloutIdMap[e.rolloutId];r&&t.push.apply(t,r.experiments),a.flagRulesMap[e.key]=t}),a.flagVariationsMap={},Object.keys(r=a.flagRulesMap||{}).map(function(e){return[e,r[e]]}).forEach(function(e){var t=e[0],r=e[1],n=[];r.forEach(function(e){e.variations.forEach(function(e){eO(n,function(t){return t.id===e.id})||n.push(e)})}),a.flagVariationsMap[t]=n}),a},tx=function(e){return e.conditions?tN(e.conditions):[]},tN=function(e){var t=[];return["and","or","not"].includes(e)?[]:(Array.isArray(e)?e.forEach(function(e){return t.push.apply(t,tN(e))}):"qualified"===e.match&&t.push(e.value),t)},tP=function(e,t){var r=e.experimentIdMap[t];if(!r)throw Error(eS(eq.INVALID_EXPERIMENT_ID,tR,t));return r.layerId},tC=function(e,t,r){var n=e.attributeKeyMap[t],i=0===t.indexOf(tI);return n?(i&&r.log(eG.WARNING,"Attribute %s unexpectedly has reserved prefix %s; using attribute ID instead of reserved attribute name.",t,tI),n.id):i?t:(r.log(eG.DEBUG,eq.UNRECOGNIZED_ATTRIBUTE,tR,t),null)},tD=function(e,t){var r=e.eventKeyMap[t];return r?r.id:null},tj=function(e,t){var r=e.experimentKeyMap[t];if(!r)throw Error(eS(eq.INVALID_EXPERIMENT_KEY,tR,t));return r.status},tM=function(e,t){var r=e.experimentIdMap[t];if(!r)throw Error(eS(eq.INVALID_EXPERIMENT_ID,tR,t));return r.audienceConditions||r.audienceIds},tL=function(e,t){return e.variationIdMap.hasOwnProperty(t)?e.variationIdMap[t].key:null},tF=function(e,t,r){var n=e.experimentKeyMap[t];return n.variationKeyMap.hasOwnProperty(r)?n.variationKeyMap[r].id:null},tU=function(e,t){if(e.experimentKeyMap.hasOwnProperty(t)){var r=e.experimentKeyMap[t];if(r)return r}throw Error(eS(eq.EXPERIMENT_KEY_NOT_IN_DATAFILE,tR,t))},tV=function(e,t){var r=e.experimentIdMap[t];if(!r)throw Error(eS(eq.INVALID_EXPERIMENT_ID,tR,t));return r.trafficAllocation},tB=function(e,t,r){if(e.experimentIdMap.hasOwnProperty(t)){var n=e.experimentIdMap[t];if(n)return n}return r.log(eG.ERROR,eq.INVALID_EXPERIMENT_ID,tR,t),null},tG=function(e,t,r){return e&&eO(e.flagVariationsMap[t],function(e){return e.key===r})||null},tq=function(e,t,r){if(e.featureKeyMap.hasOwnProperty(t)){var n=e.featureKeyMap[t];if(n)return n}return r.log(eG.ERROR,eq.FEATURE_NOT_IN_DATAFILE,tR,t),null},tz=function(e,t,r,n){var i=e.featureKeyMap[t];return i?i.variableKeyMap[r]||(n.log(eG.ERROR,eq.VARIABLE_KEY_NOT_IN_DATAFILE,tR,r,t),null):(n.log(eG.ERROR,eq.FEATURE_NOT_IN_DATAFILE,tR,t),null)},tH=function(e,t,r,n){if(!t||!r)return null;if(!e.variationVariableUsageMap.hasOwnProperty(r.id))return n.log(eG.ERROR,eq.VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT,tR,r.id),null;var i=e.variationVariableUsageMap[r.id][t.id];return i?i.value:null},tW=function(e,t,r){var n;switch(t){case eX.BOOLEAN:"true"!==e&&"false"!==e?(r.log(eG.ERROR,eq.UNABLE_TO_CAST_VALUE,tR,e,t),n=null):n="true"===e;break;case eX.INTEGER:isNaN(n=parseInt(e,10))&&(r.log(eG.ERROR,eq.UNABLE_TO_CAST_VALUE,tR,e,t),n=null);break;case eX.DOUBLE:isNaN(n=parseFloat(e))&&(r.log(eG.ERROR,eq.UNABLE_TO_CAST_VALUE,tR,e,t),n=null);break;case eX.JSON:try{n=JSON.parse(e)}catch(i){r.log(eG.ERROR,eq.UNABLE_TO_CAST_VALUE,tR,e,t),n=null}break;default:n=e}return n},tK=function(e){return e.__datafileStr},tY=function(e){try{t=to.validateDatafile(e.datafile)}catch(e){return{configObj:null,error:e}}if(e.jsonSchemaValidator)try{e.jsonSchemaValidator.validate(t),e.logger.log(eG.INFO,ez.VALID_DATAFILE,tR)}catch(e){return{configObj:null,error:e}}else e.logger.log(eG.INFO,ez.SKIPPING_JSON_VALIDATION,tR);var t,r=[t];return"string"==typeof e.datafile&&r.push(e.datafile),{configObj:tk.apply(void 0,r),error:null}},tQ=function(e){return!!e.sendFlagDecisions},t$=function(){function e(e,t){void 0===t&&(t=6e4),this.logger=e,this.timeout=t}return e.prototype.makeRequest=function(e,t,r,n){var i=this,o=new XMLHttpRequest;return{responsePromise:new Promise(function(a,s){o.open(r,e,!0),i.setHeadersInXhr(t,o),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE){if(0===o.status){s(Error("Request error"));return}var e=i.parseHeadersFromXhr(o);a({statusCode:o.status,body:o.responseText,headers:e})}},o.timeout=i.timeout,o.ontimeout=function(){i.logger.log(g.WARNING,"Request timed out")},o.send(n)}),abort:function(){o.abort()}}},e.prototype.setHeadersInXhr=function(e,t){Object.keys(e).forEach(function(r){var n=e[r];"string"==typeof n&&t.setRequestHeader(r,n)})},e.prototype.parseHeadersFromXhr=function(e){var t=this,r=e.getAllResponseHeaders();if(null===r)return{};var n=r.split("\r\n"),i={};return n.forEach(function(e){try{var r=e.indexOf(": ");if(r>-1){var n=e.slice(0,r),o=e.slice(r+2);n&&o&&(i[n]=o)}}catch(r){t.logger.log(g.WARNING,"Unable to parse & skipped header item '".concat(e,"'"))}}),i},e}(),tJ=function(e){var t=e.browserCallback,r=e.nonBrowserCallback;return"undefined"!=typeof window?t(null==window?void 0:window.localStorage):r()},tX=function(){function e(){this.logger=eD()}return e.prototype.contains=function(e){return eh(this,void 0,void 0,function(){var t=this;return ey(this,function(r){return[2,tJ({browserCallback:function(t){return(null==t?void 0:t.getItem(e))!==null},nonBrowserCallback:function(){return t.logger.error(eq.LOCAL_STORAGE_DOES_NOT_EXIST),!1}})]})})},e.prototype.get=function(e){return eh(this,void 0,void 0,function(){var t=this;return ey(this,function(r){return[2,tJ({browserCallback:function(t){return(null==t?void 0:t.getItem(e))||void 0},nonBrowserCallback:function(){t.logger.error(eq.LOCAL_STORAGE_DOES_NOT_EXIST)}})]})})},e.prototype.remove=function(e){return eh(this,void 0,void 0,function(){var t=this;return ey(this,function(r){switch(r.label){case 0:return[4,this.contains(e)];case 1:if(r.sent())return tJ({browserCallback:function(t){null==t||t.removeItem(e)},nonBrowserCallback:function(){t.logger.error(eq.LOCAL_STORAGE_DOES_NOT_EXIST)}}),[2,!0];return[2,!1]}})})},e.prototype.set=function(e,t){return eh(this,void 0,void 0,function(){var r=this;return ey(this,function(n){return[2,tJ({browserCallback:function(r){null==r||r.setItem(e,t)},nonBrowserCallback:function(){r.logger.error(eq.LOCAL_STORAGE_DOES_NOT_EXIST)}})]})})},e}(),tZ=function(){function e(e){void 0===e&&(e=null),this._value=e,this._time=Date.now()}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this._time},enumerable:!1,configurable:!0}),e.prototype.is_stale=function(e){return!(e<=0)&&Date.now()-this._time>=e},e}(),t0=function(){function e(e){var t=e.maxSize,r=e.timeout;this._map=new Map;var n=eD();n.debug("Provisioning cache with maxSize of ".concat(t)),n.debug("Provisioning cache with timeout of ".concat(r)),this._maxSize=t,this._timeout=r}return Object.defineProperty(e.prototype,"map",{get:function(){return this._map},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxSize",{get:function(){return this._maxSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeout",{get:function(){return this._timeout},enumerable:!1,configurable:!0}),e.prototype.lookup=function(e){if(this._maxSize<=0)return null;var t=this._map.get(e);return t?t.is_stale(this._timeout)?(this._map.delete(e),null):(this._map.delete(e),this._map.set(e,t),t.value):null},e.prototype.save=function(e){var t=e.key,r=e.value;if(!(this._maxSize<=0)&&(this._map.get(t)&&this._map.delete(t),this._map.set(t,new tZ(r)),this._map.size>this._maxSize)){var n=this._map.keys().next().value;this._map.delete(n)}},e.prototype.reset=function(){this._maxSize<=0||this._map.clear()},e.prototype.peek=function(e){if(this._maxSize<=0)return null;var t,r=this._map.get(e);return null!==(t=null==r?void 0:r.value)&&void 0!==t?t:null},e}(),t1={DEFAULT_CAPACITY:100,DEFAULT_TIMEOUT_SECS:600},t2=function(e){function t(t){var r,n;return e.call(this,{maxSize:null!==(r=null==t?void 0:t.maxSize)&&void 0!==r?r:t1.DEFAULT_CAPACITY,timeout:null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:1e3*t1.DEFAULT_TIMEOUT_SECS})||this}return ep(t,e),t}(t0),t3={DEFAULT_CAPACITY:1e4,DEFAULT_TIMEOUT_SECS:600};ep(function(e){var t,r;return f.call(this,{maxSize:null!==(t=null==e?void 0:e.maxSize)&&void 0!==t?t:t3.DEFAULT_CAPACITY,timeout:null!==(r=null==e?void 0:e.timeout)&&void 0!==r?r:1e3*t3.DEFAULT_TIMEOUT_SECS})||this},f=t0);var t4=function(){function e(){this._keyForVuid="optimizely-vuid",this._vuid=""}return Object.defineProperty(e.prototype,"vuid",{get:function(){return this._vuid},enumerable:!1,configurable:!0}),e.instance=function(t){return eh(this,void 0,void 0,function(){return ey(this,function(r){switch(r.label){case 0:if(this._instance||(this._instance=new e),this._instance._vuid)return[3,2];return[4,this._instance.load(t)];case 1:r.sent(),r.label=2;case 2:return[2,this._instance]}})})},e.prototype.load=function(t){return eh(this,void 0,void 0,function(){var r;return ey(this,function(n){switch(n.label){case 0:return[4,t.get(this._keyForVuid)];case 1:if(!((r=n.sent())&&e.isVuid(r)))return[3,2];return this._vuid=r,[3,4];case 2:return this._vuid=this.makeVuid(),[4,this.save(this._vuid,t)];case 3:n.sent(),n.label=4;case 4:return[2,this._vuid]}})})},e.prototype.makeVuid=function(){var t=eE().replace(/-/g,"").toLowerCase(),r="".concat(e.vuid_prefix).concat(t);return r.length<=32?r:r.substring(0,32)},e.prototype.save=function(e,t){return eh(this,void 0,void 0,function(){return ey(this,function(r){switch(r.label){case 0:return[4,t.set(this._keyForVuid,e)];case 1:return r.sent(),[2]}})})},e._reset=function(){this._instance._vuid=""},e.vuid_prefix="vuid_",e.isVuid=function(t){return(null==t?void 0:t.startsWith(e.vuid_prefix))||!1},e}();function t6(e){var t=["string","number","boolean"],r=!1;return e.forEach(function(e){t.includes(typeof e)||null===e||(r=!0)}),r}var t5=function(e,t,r,n){this.type=e,this.action=t,this.identifiers=null!=r?r:new Map,this.data=null!=n?n:new Map},t8=function(){};(p=O||(O={}))[p.Running=0]="Running",p[p.Stopped=1]="Stopped";var t9=function(){function e(e){var t,r,n,i=e.odpIntegrationConfig,o=e.segmentManager,a=e.eventManager,s=e.logger,u=this;this.ready=!1,this.status=O.Stopped,this.segmentManager=o,this.eventManager=a,this.logger=s,this.configPromise=(t=t8,r=t8,{promise:n=new Promise(function(e,n){t=e,r=n}),resolve:t,reject:r,then:n.then.bind(n)});var c=[this.configPromise];this.isVuidEnabled()&&c.push(this.initializeVuid()),this.initPromise=Promise.all(c),this.onReady().then(function(){u.ready=!0,u.isVuidEnabled()&&u.status===O.Running&&u.registerVuid()}),i&&this.updateSettings(i)}return e.prototype.getStatus=function(){return this.status},e.prototype.start=function(){return eh(this,void 0,void 0,function(){return ey(this,function(e){return this.status===O.Running?[2]:this.odpIntegrationConfig?this.odpIntegrationConfig.integrated?(this.status=O.Running,this.segmentManager.updateSettings(this.odpIntegrationConfig.odpConfig),this.eventManager.updateSettings(this.odpIntegrationConfig.odpConfig),this.eventManager.start(),[2,Promise.resolve()]):[2,Promise.reject(Error("start() called when ODP is not integrated"))]:[2,Promise.reject(Error("cannot start without ODP config"))]})})},e.prototype.stop=function(){return eh(this,void 0,void 0,function(){return ey(this,function(e){switch(e.label){case 0:if(this.status===O.Stopped)return[2];return this.status=O.Stopped,[4,this.eventManager.stop()];case 1:return e.sent(),[2]}})})},e.prototype.onReady=function(){return this.initPromise},e.prototype.isReady=function(){return this.ready},e.prototype.updateSettings=function(e){var t;return this.configPromise.resolve(),!(this.odpIntegrationConfig&&(t=this.odpIntegrationConfig).integrated===e.integrated&&(!t.integrated||!e.integrated||t.odpConfig.equals(e.odpConfig)))&&(this.odpIntegrationConfig=e,e.integrated?this.status===O.Running?(this.segmentManager.updateSettings(e.odpConfig),this.eventManager.updateSettings(e.odpConfig)):this.start():this.stop(),!0)},e.prototype.fetchQualifiedSegments=function(e,t){return void 0===t&&(t=[]),eh(this,void 0,void 0,function(){return ey(this,function(r){return this.odpIntegrationConfig?this.odpIntegrationConfig.integrated?t4.isVuid(e)?[2,this.segmentManager.fetchQualifiedSegments(m.VUID,e,t)]:[2,this.segmentManager.fetchQualifiedSegments(m.FS_USER_ID,e,t)]:(this.logger.log(g.ERROR,eq.ODP_NOT_INTEGRATED),[2,null]):(this.logger.log(g.ERROR,eq.ODP_CONFIG_NOT_AVAILABLE),[2,null])})})},e.prototype.identifyUser=function(e,t){if(!this.odpIntegrationConfig){this.logger.log(g.ERROR,eq.ODP_CONFIG_NOT_AVAILABLE);return}if(!this.odpIntegrationConfig.integrated){this.logger.log(g.INFO,eq.ODP_NOT_INTEGRATED);return}if(e&&t4.isVuid(e)){this.eventManager.identifyUser(void 0,e);return}this.eventManager.identifyUser(e,t)},e.prototype.sendEvent=function(e){var t=e.type,r=e.action,n=e.identifiers,i=e.data,o=t;if(("string"!=typeof o||""===o)&&(o="fullstack"),!this.odpIntegrationConfig){this.logger.log(g.ERROR,eq.ODP_CONFIG_NOT_AVAILABLE);return}if(!this.odpIntegrationConfig.integrated){this.logger.log(g.ERROR,eq.ODP_NOT_INTEGRATED);return}if(t6(i))throw Error(eq.ODP_INVALID_DATA);if("string"!=typeof r||""===r)throw Error("ODP action is not valid (cannot be empty).");this.eventManager.sendEvent(new t5(o,r,n,i))},e.prototype.initializeVuid=function(){return Promise.resolve()},e.prototype.registerVuid=function(){if(!this.odpIntegrationConfig){this.logger.log(g.ERROR,eq.ODP_CONFIG_NOT_AVAILABLE);return}if(!this.odpIntegrationConfig.integrated){this.logger.log(g.INFO,eq.ODP_NOT_INTEGRATED);return}var e=this.getVuid();if(e)try{this.eventManager.registerVuid(e)}catch(e){this.logger.log(g.ERROR,eq.ODP_VUID_REGISTRATION_FAILED)}},e}(),t7="ODP event send failed",re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ep(t,e),t.prototype.shouldSendEvents=function(e){return e.length<=1||(this.getLogger().log(g.ERROR,"".concat("ODP event send failed"," (browser only supports batch size 1)")),!1)},t.prototype.getPixelApiEndpoint=function(e){return new URL("v2/zaius.gif",e.pixelUrl).href},t.prototype.generateRequestData=function(e,t){var r=this.getPixelApiEndpoint(e),n=e.apiKey,i=t[0],o=new URL(r);return i.identifiers.forEach(function(e,t){o.searchParams.append(t,e)}),i.data.forEach(function(e,t){o.searchParams.append(t,e)}),o.searchParams.append("tracker_id",n),o.searchParams.append("event_type",i.type),o.searchParams.append("vdl_action",i.action),{method:"GET",endpoint:o.toString(),headers:{},data:""}},t}(function(){function e(e,t){this.requestHandler=e,this.logger=t}return e.prototype.getLogger=function(){return this.logger},e.prototype.sendEvents=function(e,t){var r;return eh(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,f;return ey(this,function(p){switch(p.label){case 0:if(n=!1,0===t.length)return this.logger.log(g.ERROR,"".concat(t7," (no events)")),[2,n];if(!this.shouldSendEvents(t))return[2,n];o=(i=this.generateRequestData(e,t)).method,a=i.endpoint,s=i.headers,u=i.data,c=0,p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this.requestHandler.makeRequest(a,s,o,u).responsePromise];case 2:return c=null!==(r=p.sent().statusCode)&&void 0!==r?r:c,[3,4];case 3:return l=p.sent(),f="network error",l instanceof Error&&(f=l.message),this.logger.log(g.ERROR,"".concat(t7," (").concat(f,")")),n=!0,[3,4];case 4:return c>=400&&this.logger.log(g.ERROR,"".concat(t7," (").concat(c,")")),c>=500&&(n=!0),[2,n]}})})},e}()),rt=function(e){"function"==typeof queueMicrotask?queueMicrotask(e):setTimeout(e)};(d=S||(S={}))[d.Stopped=0]="Stopped",d[d.Running=1]="Running";var rr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasNecessaryIdentifiers=function(e){return e.identifiers.size>=0},t}return ep(t,e),t.prototype.initParams=function(e,t,r){this.queueSize=t||100,this.batchSize=1,this.flushInterval=0,void 0!==e&&1!==e&&this.getLogger().log(g.WARNING,"ODP event batch size must be 1 in the browser."),void 0!==r&&0!==r&&this.getLogger().log(g.WARNING,"ODP event flush interval must be 0 in the browser.")},t.prototype.discardEventsIfNeeded=function(){this.getLogger().log(g.DEBUG,"ODPConfig not ready. Leaving events in queue.")},t}(function(){function e(e){var t=e.odpConfig,r=e.apiManager,n=e.logger,i=e.clientEngine,o=e.clientVersion,a=e.queueSize,s=e.batchSize,u=e.flushInterval,c=e.userAgentParser,l=e.retries;if(this.status=S.Stopped,this.queue=[],this.apiManager=r,this.logger=n,this.clientEngine=i,this.clientVersion=o,this.initParams(s,a,u),this.status=S.Stopped,this.userAgentParser=c,this.retries=l||3,c){var f=c.parseUserAgentInfo(),p=f.os,d=f.device,h={os:p.name,os_version:p.version,device_type:d.type,model:d.model};this.userAgentData=new Map(Object.entries(h).filter(function(e){e[0];var t=e[1];return null!=t&&void 0!=t}))}t&&this.updateSettings(t)}return e.prototype.updateSettings=function(e){this.odpConfig&&this.odpConfig.equals(e)||(this.flush(),this.odpConfig=e)},e.prototype.flush=function(){this.processQueue(!0)},e.prototype.start=function(){if(!this.odpConfig){this.logger.log(g.ERROR,eq.ODP_CONFIG_NOT_AVAILABLE);return}this.status=S.Running,this.batchSize>1&&this.setNewTimeout()},e.prototype.stop=function(){return eh(this,void 0,void 0,function(){return ey(this,function(e){return this.logger.log(g.DEBUG,"Stop requested."),this.flush(),this.clearCurrentTimeout(),this.status=S.Stopped,this.logger.log(g.DEBUG,"Stopped. Queue Count: %s",this.queue.length),[2]})})},e.prototype.registerVuid=function(e){var t=new Map;t.set(m.VUID,e);var r=new t5(e2,b.INITIALIZED,t);this.sendEvent(r)},e.prototype.identifyUser=function(e,t){var r=new Map;if(!e&&!t){this.logger.log(g.ERROR,eq.ODP_SEND_EVENT_FAILED_UID_MISSING);return}t&&r.set(m.VUID,t),e&&r.set(m.FS_USER_ID,e);var n=new t5(e2,b.IDENTIFIED,r);this.sendEvent(n)},e.prototype.sendEvent=function(e){t6(e.data)?this.logger.log(g.ERROR,"Event data found to be invalid."):(e.data=this.augmentCommonData(e.data),this.enqueue(e))},e.prototype.enqueue=function(e){if(this.status===S.Stopped){this.logger.log(g.WARNING,"Failed to Process ODP Event. ODPEventManager is not running.");return}if(!this.hasNecessaryIdentifiers(e)){this.logger.log(g.ERROR,"ODP events should have at least one key-value pair in identifiers.");return}if(this.queue.length>=this.queueSize){this.logger.log(g.WARNING,"Failed to Process ODP Event. Event Queue full. queueSize = %s.",this.queue.length);return}this.queue.push(e),this.processQueue()},e.prototype.processQueue=function(e){if(void 0===e&&(e=!1),this.status===S.Running){if(e)for(this.clearCurrentTimeout();this.queueContainsItems();)this.makeAndSend1Batch();else if(this.queueHasBatches())for(this.clearCurrentTimeout();this.queueHasBatches();)this.makeAndSend1Batch();this.batchSize>1&&this.setNewTimeout()}},e.prototype.clearCurrentTimeout=function(){clearTimeout(this.timeoutId),this.timeoutId=void 0},e.prototype.setNewTimeout=function(){var e=this;void 0===this.timeoutId&&(this.timeoutId=setTimeout(function(){return e.processQueue(!0)},this.flushInterval))},e.prototype.makeAndSend1Batch=function(){var e=this;if(this.odpConfig){var t=this.queue.splice(0,this.batchSize),r=this.odpConfig;t.length>0&&rt(function(){return eh(e,void 0,void 0,function(){var e,n;return ey(this,function(i){switch(i.label){case 0:n=0,i.label=1;case 1:return[4,this.apiManager.sendEvents(r,t)];case 2:e=i.sent(),n+=1,i.label=3;case 3:if(e&&n<this.retries)return[3,1];i.label=4;case 4:return[2]}})})})}},e.prototype.queueHasBatches=function(){return this.queueContainsItems()&&this.queue.length%this.batchSize==0},e.prototype.queueContainsItems=function(){return this.queue.length>0},e.prototype.augmentCommonData=function(e){var t=new Map(this.userAgentData);return t.set("idempotence_id",eE()),t.set("data_source_type","sdk"),t.set("data_source",this.clientEngine),t.set("data_source_version",this.clientVersion),e.forEach(function(e,r){return t.set(r,e)}),t},e.prototype.getLogger=function(){return this.logger},e.prototype.getQueue=function(){return this.queue},e}()),rn=function(){function e(e,t,r,n){this.odpConfig=n,this._segmentsCache=e,this.odpSegmentApiManager=t,this.logger=r||eD("OdpSegmentManager")}return Object.defineProperty(e.prototype,"segmentsCache",{get:function(){return this._segmentsCache},enumerable:!1,configurable:!0}),e.prototype.fetchQualifiedSegments=function(e,t,r){return eh(this,void 0,void 0,function(){var n,i,o,a,s,u;return ey(this,function(c){switch(c.label){case 0:if(!this.odpConfig)return this.logger.log(g.WARNING,eq.ODP_CONFIG_NOT_AVAILABLE),[2,null];if(!(n=this.odpConfig.segmentsToCheck)||n.length<=0)return this.logger.log(g.DEBUG,"No segments are used in the project. Returning an empty list."),[2,[]];if(i=this.makeCacheKey(e,t),o=r.includes(E.IGNORE_CACHE),(a=r.includes(E.RESET_CACHE))&&this.reset(),!o&&!a){if(s=this._segmentsCache.lookup(i))return this.logger.log(g.DEBUG,'ODP cache hit. Returning segments from cache "%s".',i),[2,s];this.logger.log(g.DEBUG,"ODP cache miss.")}return this.logger.log(g.DEBUG,"Making a call to ODP server."),[4,this.odpSegmentApiManager.fetchSegments(this.odpConfig.apiKey,this.odpConfig.apiHost,e,t,n)];case 1:return(u=c.sent())&&!o&&this._segmentsCache.save({key:i,value:u}),[2,u]}})})},e.prototype.reset=function(){this._segmentsCache.reset()},e.prototype.makeCacheKey=function(e,t){return"".concat(e,"-$-").concat(t)},e.prototype.updateSettings=function(e){this.odpConfig=e,this.reset()},e}(),ri={$schema:"http://json-schema.org/draft-04/schema#",title:"Project Config JSON Schema",type:"object",properties:{projectId:{type:"string",required:!0},accountId:{type:"string",required:!0},groups:{type:"array",items:{type:"object",properties:{id:{type:"string",required:!0},policy:{type:"string",required:!0},trafficAllocation:{type:"array",items:{type:"object",properties:{entityId:{type:"string",required:!0},endOfRange:{type:"integer",required:!0}}},required:!0},experiments:{type:"array",items:{type:"object",properties:{id:{type:"string",required:!0},key:{type:"string",required:!0},status:{type:"string",required:!0},layerId:{type:"string",required:!0},variations:{type:"array",items:{type:"object",properties:{id:{type:"string",required:!0},key:{type:"string",required:!0}}},required:!0},trafficAllocation:{type:"array",items:{type:"object",properties:{entityId:{type:"string",required:!0},endOfRange:{type:"integer",required:!0}}},required:!0},audienceIds:{type:"array",items:{type:"string"},required:!0},forcedVariations:{type:"object",required:!0}}},required:!0}}},required:!0},experiments:{type:"array",items:{type:"object",properties:{id:{type:"string",required:!0},key:{type:"string",required:!0},status:{type:"string",required:!0},layerId:{type:"string",required:!0},variations:{type:"array",items:{type:"object",properties:{id:{type:"string",required:!0},key:{type:"string",required:!0}}},required:!0},trafficAllocation:{type:"array",items:{type:"object",properties:{entityId:{type:"string",required:!0},endOfRange:{type:"integer",required:!0}}},required:!0},audienceIds:{type:"array",items:{type:"string"},required:!0},forcedVariations:{type:"object",required:!0}}},required:!0},events:{type:"array",items:{type:"object",properties:{key:{type:"string",required:!0},experimentIds:{type:"array",items:{type:"string",required:!0}},id:{type:"string",required:!0}}},required:!0},audiences:{type:"array",items:{type:"object",properties:{id:{type:"string",required:!0},name:{type:"string",required:!0},conditions:{type:"string",required:!0}}},required:!0},attributes:{type:"array",items:{type:"object",properties:{id:{type:"string",required:!0},key:{type:"string",required:!0}}},required:!0},version:{type:"string",required:!0},revision:{type:"string",required:!0},integrations:{type:"array",items:{type:"object",properties:{key:{type:"string",required:!0},host:{type:"string"},publicKey:{type:"string"},pixelUrl:{type:"string"}}}}}},ro={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://example.com/example.json",title:"ODP Response Schema",type:"object",required:["data"],properties:{data:{title:"The data Schema",type:"object",required:["customer"],properties:{customer:{title:"The customer Schema",type:"object",required:[],properties:{audiences:{title:"The audiences Schema",type:"object",required:["edges"],properties:{edges:{title:"The edges Schema",type:"array",items:{title:"A Schema",type:"object",required:["node"],properties:{node:{title:"The node Schema",type:"object",required:["name","state"],properties:{name:{title:"The name Schema",type:"string",examples:["has_email","has_email_opted_in"]},state:{title:"The state Schema",type:"string",examples:["qualified"]}},examples:[]}},examples:[]},examples:[]}},examples:[]}},examples:[]}},examples:[]},errors:{title:"The errors Schema",type:"array",default:[],items:{title:"A Schema",type:"object",required:["message","locations","extensions"],properties:{message:{title:"The message Schema",type:"string",examples:["Exception while fetching data (/customer) : java.lang.RuntimeException: could not resolve _fs_user_id = asdsdaddddd"]},locations:{title:"The locations Schema",type:"array",items:{title:"A Schema",type:"object",required:["line","column"],properties:{line:{title:"The line Schema",type:"integer",examples:[2]},column:{title:"The column Schema",type:"integer",examples:[3]}},examples:[]},examples:[]},path:{title:"The path Schema",type:"array",items:{title:"A Schema",type:"string",examples:["customer"]},examples:[]},extensions:{title:"The extensions Schema",type:"object",required:["classification"],properties:{classification:{title:"The classification Schema",type:"string",examples:["InvalidIdentifierException"]}},examples:[]}},examples:[]},examples:[]}},examples:[]},ra=[],rs="Audience segments fetch failed",ru=function(){function e(e,t){this.toGraphQLJson=function(e,t,r){return eg(eg(['{"query" : "query {customer',"(".concat(e,' : \\"').concat(t,'\\") '),"{audiences","(subset: ["],(null==r?void 0:r.map(function(e,t){return'\\"'.concat(e,'\\"').concat(t<r.length-1?",":"")}))||"",!0),[']) {edges {node {name state}}}}}"}'],!1).join("")},this.requestHandler=e,this.logger=t}return e.prototype.fetchSegments=function(e,t,r,n,i){var o,a,s,u;return eh(this,void 0,void 0,function(){var c,l,f,p,d,h,y,v;return ey(this,function(m){switch(m.label){case 0:if(!e||!t)return this.logger.log(g.ERROR,"".concat(rs," (Parameters apiKey or apiHost invalid)")),[2,null];if((null==i?void 0:i.length)===0)return[2,ra];return c="".concat(t,"/v3/graphql"),l=this.toGraphQLJson(r,n,i),[4,this.querySegments(e,c,r,n,l)];case 1:if(!(f=m.sent()))return this.logger.log(g.ERROR,"".concat(rs," (network error)")),[2,null];if(!(p=this.parseSegmentsResponseJson(f)))return this.logger.log(g.ERROR,"".concat(rs," (decode error)")),[2,null];if((null===(o=p.errors)||void 0===o?void 0:o.length)>0)return h=(d=p.errors[0].extensions).code,y=d.classification,"INVALID_IDENTIFIER_EXCEPTION"==h?this.logger.log(g.ERROR,"".concat(rs," (invalid identifier)")):this.logger.log(g.ERROR,"".concat(rs," (").concat(y,")")),[2,null];if(!(v=null===(u=null===(s=null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.customer)||void 0===s?void 0:s.audiences)||void 0===u?void 0:u.edges))return this.logger.log(g.ERROR,"".concat(rs," (decode error)")),[2,null];return[2,v.filter(function(e){return"qualified"==e.node.state}).map(function(e){return e.node.name})]}})})},e.prototype.querySegments=function(e,t,r,n,i){return eh(this,void 0,void 0,function(){var r,n,o,a;return ey(this,function(s){switch(s.label){case 0:r="POST",n=t,o={"Content-Type":"application/json","x-api-key":e},s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.requestHandler.makeRequest(n,o,r,i).responsePromise];case 2:return a=s.sent(),[3,4];case 3:return s.sent(),[2,null];case 4:return[2,a.body]}})})},e.prototype.parseSegmentsResponseJson=function(e){var t={};try{t=JSON.parse(e)}catch(e){return null}return!function(e,t,r){void 0===t&&(t=ri),void 0===r&&(r=!0);var n="".concat("JSON_SCHEMA_VALIDATOR"," (").concat(t.title,")");if("object"!=typeof e||null===e)throw Error(eS(eq.NO_JSON_PROVIDED,n));var i=(0,es.validate)(e,t);if(i.valid)return!0;if(!r)return!1;if(Array.isArray(i.errors))throw Error(eS(eq.INVALID_DATAFILE,n,i.errors[0].property,i.errors[0].message));throw Error(eS(eq.INVALID_JSON,n))}(t,ro,!1)?null:t},e}(),rc=function(e){function t(t){return e.call(this,t)||this}return ep(t,e),t.createInstance=function(e){var r,n,i,o=e.logger,a=e.odpOptions,s=e.odpIntegrationConfig,u=e.clientEngine,c=e.clientVersion;o=o||eD(),u=u||eW,c=c||eY;var l=void 0;return(null==s?void 0:s.integrated)&&(l=s.odpConfig),r=(null==a?void 0:a.segmentsRequestHandler)?a.segmentsRequestHandler:new t$(o,(null==a?void 0:a.segmentsApiTimeout)||1e4),n=(null==a?void 0:a.segmentManager)?a.segmentManager:new rn((null==a?void 0:a.segmentsCache)||new t2({maxSize:null==a?void 0:a.segmentsCacheSize,timeout:null==a?void 0:a.segmentsCacheTimeout}),new ru(r,o),o,l),i=(null==a?void 0:a.eventRequestHandler)?a.eventRequestHandler:new t$(o,(null==a?void 0:a.eventApiTimeout)||1e4),new t({odpIntegrationConfig:s,segmentManager:n,eventManager:(null==a?void 0:a.eventManager)?a.eventManager:new rr({odpConfig:l,apiManager:new re(i,o),logger:o,clientEngine:u,clientVersion:c,flushInterval:null==a?void 0:a.eventFlushInterval,batchSize:null==a?void 0:a.eventBatchSize,queueSize:null==a?void 0:a.eventQueueSize,userAgentParser:null==a?void 0:a.userAgentParser}),logger:o})},t.prototype.initializeVuid=function(){return eh(this,void 0,void 0,function(){var e;return ey(this,function(r){switch(r.label){case 0:return[4,t4.instance(t.cache)];case 1:return e=r.sent(),this.vuid=e.vuid,[2]}})})},t.prototype.identifyUser=function(t,r){if(t&&t4.isVuid(t)){e.prototype.identifyUser.call(this,void 0,t);return}if(t&&r&&t4.isVuid(r)){e.prototype.identifyUser.call(this,t,r);return}e.prototype.identifyUser.call(this,t,r||this.vuid)},t.prototype.sendEvent=function(t){var r=t.type,n=t.action,i=t.identifiers,o=t.data,a=new Map(i);if(!i.has(m.VUID)){if(this.vuid)a.set(m.VUID,this.vuid);else throw Error(eq.ODP_SEND_EVENT_FAILED_VUID_MISSING)}e.prototype.sendEvent.call(this,{type:r,action:n,identifiers:a,data:o})},t.prototype.isVuidEnabled=function(){return!0},t.prototype.getVuid=function(){return this.vuid},t.cache=new tX,t}(t9);function rl(e,t,r){return{variationKey:null,enabled:!1,variables:{},ruleKey:null,flagKey:e,userContext:t,reasons:r}}var rf=function(){function e(e){var t,r=e.optimizely,n=e.userId,i=e.attributes,o=e.shouldIdentifyUser,a=this;this._qualifiedSegments=null,this.optimizely=r,this.userId=n,this.attributes=null!==(t=ed({},i))&&void 0!==t?t:{},this.forcedDecisionsMap={},(void 0===o||o)&&this.optimizely.onReady().then(function(e){e.success&&a.identifyUser()})}return e.prototype.identifyUser=function(){this.optimizely.identifyUser(this.userId)},e.prototype.setAttribute=function(e,t){this.attributes[e]=t},e.prototype.getUserId=function(){return this.userId},e.prototype.getAttributes=function(){return ed({},this.attributes)},e.prototype.getOptimizely=function(){return this.optimizely},Object.defineProperty(e.prototype,"qualifiedSegments",{get:function(){return this._qualifiedSegments},set:function(e){this._qualifiedSegments=e},enumerable:!1,configurable:!0}),e.prototype.decide=function(e,t){return void 0===t&&(t=[]),this.optimizely.decide(this.cloneUserContext(),e,t)},e.prototype.decideForKeys=function(e,t){return void 0===t&&(t=[]),this.optimizely.decideForKeys(this.cloneUserContext(),e,t)},e.prototype.decideAll=function(e){return void 0===e&&(e=[]),this.optimizely.decideAll(this.cloneUserContext(),e)},e.prototype.trackEvent=function(e,t){this.optimizely.track(e,this.userId,this.attributes,t)},e.prototype.setForcedDecision=function(e,t){var r,n=e.flagKey,i=null!==(r=e.ruleKey)&&void 0!==r?r:eH.FORCED_DECISION_NULL_RULE_KEY,o=t.variationKey;return this.forcedDecisionsMap[n]||(this.forcedDecisionsMap[n]={}),this.forcedDecisionsMap[n][i]={variationKey:o},!0},e.prototype.getForcedDecision=function(e){return this.findForcedDecision(e)},e.prototype.removeForcedDecision=function(e){var t,r=null!==(t=e.ruleKey)&&void 0!==t?t:eH.FORCED_DECISION_NULL_RULE_KEY,n=e.flagKey,i=!1;return this.forcedDecisionsMap.hasOwnProperty(n)&&(this.forcedDecisionsMap[n].hasOwnProperty(r)&&(delete this.forcedDecisionsMap[n][r],i=!0),0===Object.keys(this.forcedDecisionsMap[n]).length&&delete this.forcedDecisionsMap[n]),i},e.prototype.removeAllForcedDecisions=function(){return this.forcedDecisionsMap={},!0},e.prototype.findForcedDecision=function(e){var t,r=null!==(t=e.ruleKey)&&void 0!==t?t:eH.FORCED_DECISION_NULL_RULE_KEY,n=e.flagKey;if(this.forcedDecisionsMap.hasOwnProperty(e.flagKey)){var i=this.forcedDecisionsMap[n];if(i.hasOwnProperty(r))return{variationKey:i[r].variationKey}}return null},e.prototype.cloneUserContext=function(){var t=new e({shouldIdentifyUser:!1,optimizely:this.getOptimizely(),userId:this.getUserId(),attributes:this.getAttributes()});return Object.keys(this.forcedDecisionsMap).length>0&&(t.forcedDecisionsMap=ed({},this.forcedDecisionsMap)),t._qualifiedSegments=this._qualifiedSegments,t},e.prototype.fetchQualifiedSegments=function(e){return eh(this,void 0,void 0,function(){var t;return ey(this,function(r){switch(r.label){case 0:return[4,this.optimizely.fetchQualifiedSegments(this.userId,e)];case 1:return t=r.sent(),this.qualifiedSegments=t,[2,null!==t]}})})},e.prototype.isQualifiedFor=function(e){return!!this._qualifiedSegments&&this._qualifiedSegments.indexOf(e)>-1},e}(),rp=["and","or","not"];function rd(e,t){if(Array.isArray(e)){var r=e[0],n=e.slice(1);switch("string"==typeof r&&-1===rp.indexOf(r)&&(r="or",n=e),r){case"and":return function(e,t){var r=!1;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var i=rd(e[n],t);if(!1===i)return!1;null===i&&(r=!0)}return!r||null}return null}(n,t);case"not":return function(e,t){if(Array.isArray(e)&&e.length>0){var r=rd(e[0],t);return null===r?null:!r}return null}(n,t);default:return function(e,t){var r=!1;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var i=rd(e[n],t);if(!0===i)return!0;null===i&&(r=!0)}return!!r&&null}return null}(n,t)}}return t(e)}var rh=function(){function e(t,r,n){this.sdkKey=null!==(i=t.sdkKey)&&void 0!==i?i:"",this.environmentKey=null!==(o=t.environmentKey)&&void 0!==o?o:"",this.attributes=t.attributes,this.audiences=e.getAudiences(t),this.events=t.events,this.revision=t.revision;var i,o,a=(t.featureFlags||[]).reduce(function(e,t){return e[t.id]=t.variables,e},{}),s=e.getVariableIdMap(t),u=e.getExperimentsMap(t,a,s,n),c=u.experimentsMapById,l=u.experimentsMapByKey;this.experimentsMap=l,this.featuresMap=e.getFeaturesMap(t,a,c,s),this.datafile=r}return e.prototype.getDatafile=function(){return this.datafile},e.getAudiences=function(e){var t=[],r=[];return(e.typedAudiences||[]).forEach(function(e){t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name}),r.push(e.id)}),(e.audiences||[]).forEach(function(e){-1===r.indexOf(e.id)&&"$opt_dummy_audience"!=e.id&&t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name})}),t},e.getSerializedAudiences=function(t,r){var n="";if(t){var i="";t.forEach(function(t){var o="";if(t instanceof Array)o=e.getSerializedAudiences(t,r),o="(".concat(o,")");else if(rp.indexOf(t)>-1)i=t.toUpperCase();else{var a=r[t]?r[t].name:t;n||"NOT"===i?(i=""===i?"OR":i,n=""===n?"".concat(i,' "').concat(r[t].name,'"'):n.concat(" ".concat(i,' "').concat(a,'"'))):n='"'.concat(a,'"')}""!==o&&(""!==n||"NOT"===i?(i=""===i?"OR":i,n=""===n?"".concat(i," ").concat(o):n.concat(" ".concat(i," ").concat(o))):n=n.concat(o))})}return n},e.getExperimentAudiences=function(t,r){return t.audienceConditions?e.getSerializedAudiences(t.audienceConditions,r.audiencesById):""},e.mergeFeatureVariables=function(e,t,r,n,i){var o=(e[r]||[]).reduce(function(e,t){return e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e},{});return(n||[]).forEach(function(e){var r=t[e.id],n={id:e.id,key:r.key,type:r.type,value:i?e.value:r.defaultValue};o[r.key]=n}),o},e.getVariationsMap=function(t,r,n,i){return t.reduce(function(t,o){var a=e.mergeFeatureVariables(r,n,i,o.variables,o.featureEnabled);return t[o.key]={id:o.id,key:o.key,featureEnabled:o.featureEnabled,variablesMap:a},t},{})},e.getVariableIdMap=function(e){return(e.featureFlags||[]).reduce(function(e,t){return t.variables.forEach(function(t){e[t.id]=t}),e},{})},e.getDeliveryRules=function(t,r,n,i,o){return i.map(function(i){return{id:i.id,key:i.key,audiences:e.getExperimentAudiences(i,t),variationsMap:e.getVariationsMap(i.variations,r,o,n)}})},e.getRolloutExperimentIds=function(e){var t=[];return(e||[]).forEach(function(e){e.experiments.forEach(function(e){t.push(e.id)})}),t},e.getExperimentsMap=function(t,r,n,i){var o=this.getRolloutExperimentIds(t.rollouts),a={},s={};return(t.experiments||[]).forEach(function(u){if(-1===o.indexOf(u.id)){var c=t.experimentFeatureMap[u.id],l="";c&&c.length>0&&(l=c[0]);var f=e.getVariationsMap(u.variations,r,n,l.toString()),p={id:u.id,key:u.key,audiences:e.getExperimentAudiences(u,t),variationsMap:f};a[u.id]=p,s[u.key]&&i&&i.warn("Duplicate experiment keys found in datafile: ".concat(u.key)),s[u.key]=p}}),{experimentsMapById:a,experimentsMapByKey:s}},e.getExperimentsKeyMap=function(e){var t={};for(var r in e){var n=e[r];t[n.key]=n}return t},e.getFeaturesMap=function(t,r,n,i){var o={};return t.featureFlags.forEach(function(a){var s={},u=[];a.experimentIds.forEach(function(e){var t=n[e];t&&(s[t.key]=t),u.push(n[e])});var c=(a.variables||[]).reduce(function(e,t){return e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e},{}),l=[],f=t.rolloutIdMap[a.rolloutId];f&&(l=e.getDeliveryRules(t,r,a.id,f.experiments,i)),o[a.key]={id:a.id,key:a.key,experimentRules:u,deliveryRules:l,experimentsMap:s,variablesMap:c}}),o},e}(),ry=eD();function rg(e,t){return e instanceof Error?e.message:t||"Unknown error"}var rv=function(){function e(e){this.updateListeners=[],this.configObj=null,this.optimizelyConfigObj=null,this.datafileManager=null;try{if(this.jsonSchemaValidator=e.jsonSchemaValidator,!e.datafile&&!e.sdkKey){var t=Error(eS(eq.DATAFILE_AND_SDK_KEY_MISSING,"PROJECT_CONFIG_MANAGER"));this.readyPromise=Promise.resolve({success:!1,reason:rg(t)}),ry.error(t);return}var r=null;e.datafile&&(r=this.handleNewDatafile(e.datafile)),e.sdkKey&&e.datafileManager?(this.datafileManager=e.datafileManager,this.datafileManager.start(),this.readyPromise=this.datafileManager.onReady().then(this.onDatafileManagerReadyFulfill.bind(this),this.onDatafileManagerReadyReject.bind(this)),this.datafileManager.on("update",this.onDatafileManagerUpdate.bind(this))):this.configObj?this.readyPromise=Promise.resolve({success:!0}):this.readyPromise=Promise.resolve({success:!1,reason:rg(r,"Invalid datafile")})}catch(e){ry.error(e),this.readyPromise=Promise.resolve({success:!1,reason:rg(e,"Error in initialize")})}}return e.prototype.onDatafileManagerReadyFulfill=function(){if(this.datafileManager){var e=this.handleNewDatafile(this.datafileManager.get());return e?{success:!1,reason:rg(e)}:{success:!0}}return{success:!1,reason:rg(null,"Datafile manager is not provided")}},e.prototype.onDatafileManagerReadyReject=function(e){return{success:!1,reason:rg(e,"Failed to become ready")}},e.prototype.onDatafileManagerUpdate=function(){this.datafileManager&&this.handleNewDatafile(this.datafileManager.get())},e.prototype.handleNewDatafile=function(e){var t=this,r=tY({datafile:e,jsonSchemaValidator:this.jsonSchemaValidator,logger:ry}),n=r.configObj,i=r.error;if(i)ry.error(i);else{var o=this.configObj?this.configObj.revision:"null";n&&o!==n.revision&&(this.configObj=n,this.optimizelyConfigObj=null,rt(function(){t.updateListeners.forEach(function(e){return e(n)})}))}return i},e.prototype.getConfig=function(){return this.configObj},e.prototype.getOptimizelyConfig=function(){if(!this.optimizelyConfigObj&&this.configObj)this.optimizelyConfigObj=new rh(this.configObj,tK(this.configObj),ry);return this.optimizelyConfigObj},e.prototype.onReady=function(){return this.readyPromise},e.prototype.onUpdate=function(e){var t=this;return this.updateListeners.push(e),function(){var r=t.updateListeners.indexOf(e);r>-1&&t.updateListeners.splice(r,1)}},e.prototype.stop=function(){this.datafileManager&&this.datafileManager.stop(),this.updateListeners=[]},e}(),rm="BUCKETER",rb=function(e){var t=[],r=e.experimentIdMap[e.experimentId].groupId;if(r){var n=e.groupIdMap[r];if(!n)throw Error(eS(eq.INVALID_GROUP_ID,rm,r));if("random"===n.policy){var i=rE(n,e.bucketingId,e.userId,e.logger);if(null===i)return e.logger.log(eG.INFO,ez.USER_NOT_IN_ANY_EXPERIMENT,rm,e.userId,r),t.push([ez.USER_NOT_IN_ANY_EXPERIMENT,rm,e.userId,r]),{result:null,reasons:t};if(i!==e.experimentId)return e.logger.log(eG.INFO,ez.USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP,rm,e.userId,e.experimentKey,r),t.push([ez.USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP,rm,e.userId,e.experimentKey,r]),{result:null,reasons:t};e.logger.log(eG.INFO,ez.USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP,rm,e.userId,e.experimentKey,r),t.push([ez.USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP,rm,e.userId,e.experimentKey,r])}}var o=r_("".concat(e.bucketingId).concat(e.experimentId));e.logger.log(eG.DEBUG,ez.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,rm,o,e.userId),t.push([ez.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,rm,o,e.userId]);var a=rw(o,e.trafficAllocationConfig);return null===a||e.variationIdMap[a]?{result:a,reasons:t}:(a&&(e.logger.log(eG.WARNING,ez.INVALID_VARIATION_ID,rm),t.push([ez.INVALID_VARIATION_ID,rm])),{result:null,reasons:t})},rE=function(e,t,r,n){var i=r_("".concat(t).concat(e.id));return n.log(eG.DEBUG,ez.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,rm,i,r),rw(i,e.trafficAllocation)},rw=function(e,t){for(var r=0;r<t.length;r++)if(e<t[r].endOfRange)return t[r].entityId;return null},r_=function(e){try{var t=ec().v3(e,1);return Math.floor(t/4294967296*1e4)}catch(t){throw Error(eS(eq.INVALID_BUCKETING_ID,rm,e,t.message))}},rO="SEMANTIC VERSION",rS=eD();function rT(e){return/^\d+$/.test(e)}function rA(e){var t=e.indexOf("-"),r=e.indexOf("+");return!(t<0)&&(r<0||t<r)}function rI(e){var t=e.indexOf("-"),r=e.indexOf("+");return!(r<0)&&(t<0||r<t)}function rR(e){var t=e,r="";if(/\s/.test(e))return rS.warn(ez.UNKNOWN_MATCH_TYPE,rO,e),null;if(rA(e)?(t=e.substring(0,e.indexOf("-")),r=e.substring(e.indexOf("-")+1)):rI(e)&&(t=e.substring(0,e.indexOf("+")),r=e.substring(e.indexOf("+")+1)),"string"!=typeof t||"string"!=typeof r)return null;var n=t.split(".").length-1;if(n>2)return rS.warn(ez.UNKNOWN_MATCH_TYPE,rO,e),null;var i=t.split(".");if(i.length!=n+1)return rS.warn(ez.UNKNOWN_MATCH_TYPE,rO,e),null;for(var o=0;o<i.length;o++)if(!rT(i[o]))return rS.warn(ez.UNKNOWN_MATCH_TYPE,rO,e),null;return r&&i.push(r),i}var rk="CUSTOM_ATTRIBUTE_CONDITION_EVALUATOR",rx=eD(),rN="exact",rP="exists",rC="semver_eq",rD="semver_ge",rj="semver_gt",rM="semver_le",rL="semver_lt",rF="substring",rU=[rN,rP,"gt","ge","lt","le",rF,rC,rL,rM,rj,rD],rV={};function rB(e){return"string"==typeof e||"boolean"==typeof e||eT.isNumber(e)}function rG(e,t){var r=t.getAttributes(),n=e.value,i=typeof n,o=e.name,a=r[o],s=typeof a;return!rB(n)||eT.isNumber(n)&&!eT.isSafeInteger(n)?(rx.warn(ez.UNEXPECTED_CONDITION_VALUE,rk,JSON.stringify(e)),null):null===a?(rx.debug(ez.UNEXPECTED_TYPE_NULL,rk,JSON.stringify(e),o),null):rB(a)&&i===s?eT.isNumber(a)&&!eT.isSafeInteger(a)?(rx.warn(ez.OUT_OF_BOUNDS,rk,JSON.stringify(e),o),null):n===a:(rx.warn(ez.UNEXPECTED_TYPE,rk,JSON.stringify(e),s,o),null)}function rq(e,t){var r=t.getAttributes(),n=e.name,i=r[n],o=typeof i,a=e.value;return null!==a&&eT.isSafeInteger(a)?null===i?(rx.debug(ez.UNEXPECTED_TYPE_NULL,rk,JSON.stringify(e),n),!1):eT.isNumber(i)?!!eT.isSafeInteger(i)||(rx.warn(ez.OUT_OF_BOUNDS,rk,JSON.stringify(e),n),!1):(rx.warn(ez.UNEXPECTED_TYPE,rk,JSON.stringify(e),o,n),!1):(rx.warn(ez.UNEXPECTED_CONDITION_VALUE,rk,JSON.stringify(e)),!1)}function rz(e,t){var r=t.getAttributes(),n=e.name,i=r[n],o=e.value;return"string"!=typeof o?(rx.warn(ez.UNEXPECTED_CONDITION_VALUE,rk,JSON.stringify(e)),null):null===i?(rx.debug(ez.UNEXPECTED_TYPE_NULL,rk,JSON.stringify(e),n),null):"string"!=typeof i?(rx.warn(ez.UNEXPECTED_TYPE,rk,JSON.stringify(e),typeof i,n),null):function(e,t){var r=rR(t),n=rR(e);if(!r||!n)return null;for(var i=r.length,o=0;o<n.length;o++){if(i<=o)return rA(e)||rI(e)?1:-1;if(rT(r[o])){var a=parseInt(r[o]),s=parseInt(n[o]);if(a>s)return 1;if(a<s)return -1}else{if(r[o]<n[o])return rA(e)&&!rA(t)?1:-1;if(r[o]>n[o])return!rA(e)&&rA(t)?-1:1}}return rA(t)&&!rA(e)?-1:0}(o,i)}rV[rN]=rG,rV[rP]=function(e,t){return null!=t.getAttributes()[e.name]},rV.gt=function(e,t){var r=t.getAttributes()[e.name],n=e.value;return rq(e,t)&&null!==n?r>n:null},rV.ge=function(e,t){var r=t.getAttributes()[e.name],n=e.value;return rq(e,t)&&null!==n?r>=n:null},rV.lt=function(e,t){var r=t.getAttributes()[e.name],n=e.value;return rq(e,t)&&null!==n?r<n:null},rV.le=function(e,t){var r=t.getAttributes()[e.name],n=e.value;return rq(e,t)&&null!==n?r<=n:null},rV[rF]=function(e,t){var r=t.getAttributes(),n=e.name,i=r[e.name],o=e.value;return"string"!=typeof o?(rx.warn(ez.UNEXPECTED_CONDITION_VALUE,rk,JSON.stringify(e)),null):null===i?(rx.debug(ez.UNEXPECTED_TYPE_NULL,rk,JSON.stringify(e),n),null):"string"!=typeof i?(rx.warn(ez.UNEXPECTED_TYPE,rk,JSON.stringify(e),typeof i,n),null):-1!==i.indexOf(o)},rV[rC]=function(e,t){var r=rz(e,t);return null===r?null:0===r},rV[rj]=function(e,t){var r=rz(e,t);return null===r?null:r>0},rV[rD]=function(e,t){var r=rz(e,t);return null===r?null:r>=0},rV[rL]=function(e,t){var r=rz(e,t);return null===r?null:r<0},rV[rM]=function(e,t){var r=rz(e,t);return null===r?null:r<=0};var rH=Object.freeze({__proto__:null,evaluate:function(e,t){var r=t.getAttributes(),n=e.match;if(void 0!==n&&-1===rU.indexOf(n))return rx.warn(ez.UNKNOWN_MATCH_TYPE,rk,JSON.stringify(e)),null;var i=e.name;return r.hasOwnProperty(i)||n==rP?(n&&rV[n]||rG)(e,t):(rx.debug(ez.MISSING_ATTRIBUTE_VALUE,rk,JSON.stringify(e),i),null)}}),rW=eD(),rK="qualified",rY=[rK],rQ={};function r$(e,t){return t.isQualifiedFor(e.value)}rQ[rK]=r$;var rJ=Object.freeze({__proto__:null,evaluate:function(e,t){var r=e.match;return void 0!==r&&-1===rY.indexOf(r)?(rW.warn(ez.UNKNOWN_MATCH_TYPE,"ODP_SEGMENT_CONDITION_EVALUATOR",JSON.stringify(e)),null):(r&&rQ[r]||r$)(e,t)}}),rX=eD(),rZ="AUDIENCE_EVALUATOR",r0=function(){function e(e){this.typeToEvaluatorMap=eT.assign({},e,{custom_attribute:rH,third_party_dimension:rJ})}return e.prototype.evaluate=function(e,t,r){var n=this;return!e||0===e.length||!!rd(e,function(e){var i=t[e];if(i){rX.log(eG.DEBUG,ez.EVALUATING_AUDIENCE,rZ,e,JSON.stringify(i.conditions));var o=rd(i.conditions,n.evaluateConditionWithUserAttributes.bind(n,r)),a=null===o?"UNKNOWN":o.toString().toUpperCase();return rX.log(eG.DEBUG,ez.AUDIENCE_EVALUATION_RESULT,rZ,e,a),o}return null})},e.prototype.evaluateConditionWithUserAttributes=function(e,t){var r=this.typeToEvaluatorMap[t.type];if(!r)return rX.log(eG.WARNING,ez.UNKNOWN_CONDITION_TYPE,rZ,JSON.stringify(t)),null;try{return r.evaluate(t,e)}catch(e){rX.log(eG.ERROR,eq.CONDITION_EVALUATOR_ERROR,rZ,t.type,e.message)}return null},e}();function r1(e){return"string"==typeof e&&""!==e}var r2="DECISION_SERVICE",r3=function(){function e(e){this.audienceEvaluator=new r0(e.UNSTABLE_conditionEvaluators),this.forcedVariationMap={},this.logger=e.logger,this.userProfileService=e.userProfileService||null}return e.prototype.getVariation=function(e,t,r,n){void 0===n&&(n={});var i=r.getUserId(),o=r.getAttributes(),a=this.getBucketingId(i,o),s=[],u=t.key;if(!this.checkIfExperimentIsActive(e,u))return this.logger.log(eG.INFO,ez.EXPERIMENT_NOT_RUNNING,r2,u),s.push([ez.EXPERIMENT_NOT_RUNNING,r2,u]),{result:null,reasons:s};var c=this.getForcedVariation(e,u,i);s.push.apply(s,c.reasons);var l=c.result;if(l)return{result:l,reasons:s};var f=this.getWhitelistedVariation(t,i);s.push.apply(s,f.reasons);var p=f.result;if(p)return{result:p.key,reasons:s};var d=n[_.IGNORE_USER_PROFILE_SERVICE],h=this.resolveExperimentBucketMap(i,o);if(!d&&(p=this.getStoredVariation(e,t,i,h)))return this.logger.log(eG.INFO,ez.RETURNING_STORED_VARIATION,r2,p.key,u,i),s.push([ez.RETURNING_STORED_VARIATION,r2,p.key,u,i]),{result:p.key,reasons:s};var y=this.checkIfUserIsInAudience(e,t,eJ.EXPERIMENT,r,"");if(s.push.apply(s,y.reasons),!y.result)return this.logger.log(eG.INFO,ez.USER_NOT_IN_EXPERIMENT,r2,i,u),s.push([ez.USER_NOT_IN_EXPERIMENT,r2,i,u]),{result:null,reasons:s};var g=rb(this.buildBucketerParams(e,t,a,i));s.push.apply(s,g.reasons);var v=g.result;return(v&&(p=e.variationIdMap[v]),p)?(this.logger.log(eG.INFO,ez.USER_HAS_VARIATION,r2,i,p.key,u),s.push([ez.USER_HAS_VARIATION,r2,i,p.key,u]),d||this.saveUserProfile(t,p,i,h),{result:p.key,reasons:s}):(this.logger.log(eG.DEBUG,ez.USER_HAS_NO_VARIATION,r2,i,u),s.push([ez.USER_HAS_NO_VARIATION,r2,i,u]),{result:null,reasons:s})},e.prototype.resolveExperimentBucketMap=function(e,t){t=t||{};var r=this.getUserProfile(e)||{},n=t[eH.STICKY_BUCKETING_KEY];return eT.assign({},r.experiment_bucket_map,n)},e.prototype.checkIfExperimentIsActive=function(e,t){return tj(e,t)===tA},e.prototype.getWhitelistedVariation=function(e,t){var r=[];if(e.forcedVariations&&e.forcedVariations.hasOwnProperty(t)){var n=e.forcedVariations[t];if(e.variationKeyMap.hasOwnProperty(n))return this.logger.log(eG.INFO,ez.USER_FORCED_IN_VARIATION,r2,t,n),r.push([ez.USER_FORCED_IN_VARIATION,r2,t,n]),{result:e.variationKeyMap[n],reasons:r};this.logger.log(eG.ERROR,ez.FORCED_BUCKETING_FAILED,r2,n,t),r.push([ez.FORCED_BUCKETING_FAILED,r2,n,t])}return{result:null,reasons:r}},e.prototype.checkIfUserIsInAudience=function(e,t,r,n,i){var o=[],a=tM(e,t.id),s=e.audiencesById;this.logger.log(eG.DEBUG,ez.EVALUATING_AUDIENCES_COMBINED,r2,r,i||t.key,JSON.stringify(a)),o.push([ez.EVALUATING_AUDIENCES_COMBINED,r2,r,i||t.key,JSON.stringify(a)]);var u=this.audienceEvaluator.evaluate(a,s,n);return this.logger.log(eG.INFO,ez.AUDIENCE_EVALUATION_RESULT_COMBINED,r2,r,i||t.key,u.toString().toUpperCase()),o.push([ez.AUDIENCE_EVALUATION_RESULT_COMBINED,r2,r,i||t.key,u.toString().toUpperCase()]),{result:u,reasons:o}},e.prototype.buildBucketerParams=function(e,t,r,n){return{bucketingId:r,experimentId:t.id,experimentKey:t.key,experimentIdMap:e.experimentIdMap,experimentKeyMap:e.experimentKeyMap,groupIdMap:e.groupIdMap,logger:this.logger,trafficAllocationConfig:tV(e,t.id),userId:n,variationIdMap:e.variationIdMap}},e.prototype.getStoredVariation=function(e,t,r,n){if(n.hasOwnProperty(t.id)){var i=n[t.id],o=i.variation_id;if(e.variationIdMap.hasOwnProperty(o))return e.variationIdMap[i.variation_id];this.logger.log(eG.INFO,ez.SAVED_VARIATION_NOT_FOUND,r2,r,o,t.key)}return null},e.prototype.getUserProfile=function(e){if(!this.userProfileService)return{user_id:e,experiment_bucket_map:{}};try{return this.userProfileService.lookup(e)}catch(t){this.logger.log(eG.ERROR,eq.USER_PROFILE_LOOKUP_ERROR,r2,e,t.message)}return null},e.prototype.saveUserProfile=function(e,t,r,n){if(this.userProfileService)try{n[e.id]={variation_id:t.id},this.userProfileService.save({user_id:r,experiment_bucket_map:n}),this.logger.log(eG.INFO,ez.SAVED_VARIATION,r2,t.key,e.key,r)}catch(e){this.logger.log(eG.ERROR,eq.USER_PROFILE_SAVE_ERROR,r2,r,e.message)}},e.prototype.getVariationForFeature=function(e,t,r,n){void 0===n&&(n={});var i=[],o=this.getVariationForFeatureExperiment(e,t,r,n);i.push.apply(i,o.reasons);var a=o.result;if(null!==a.variation)return{result:a,reasons:i};var s=this.getVariationForRollout(e,t,r);i.push.apply(i,s.reasons);var u=s.result,c=r.getUserId();return u.variation?(this.logger.log(eG.DEBUG,ez.USER_IN_ROLLOUT,r2,c,t.key),i.push([ez.USER_IN_ROLLOUT,r2,c,t.key])):(this.logger.log(eG.DEBUG,ez.USER_NOT_IN_ROLLOUT,r2,c,t.key),i.push([ez.USER_NOT_IN_ROLLOUT,r2,c,t.key])),{result:u,reasons:i}},e.prototype.getVariationForFeatureExperiment=function(e,t,r,n){void 0===n&&(n={});var i,o,a=[],s=null;if(t.experimentIds.length>0)for(o=0;o<t.experimentIds.length;o++){var u=tB(e,t.experimentIds[o],this.logger);if(u&&(i=this.getVariationFromExperimentRule(e,t.key,u,r,n),a.push.apply(a,i.reasons),s=i.result)){var c=null;return(c=u.variationKeyMap[s])||(c=tG(e,t.key,s)),{result:{experiment:u,variation:c,decisionSource:e$.FEATURE_TEST},reasons:a}}}else this.logger.log(eG.DEBUG,ez.FEATURE_HAS_NO_EXPERIMENTS,r2,t.key),a.push([ez.FEATURE_HAS_NO_EXPERIMENTS,r2,t.key]);return{result:{experiment:null,variation:null,decisionSource:e$.FEATURE_TEST},reasons:a}},e.prototype.getVariationForRollout=function(e,t,r){var n,i,o,a=[];if(!t.rolloutId)return this.logger.log(eG.DEBUG,ez.NO_ROLLOUT_EXISTS,r2,t.key),a.push([ez.NO_ROLLOUT_EXISTS,r2,t.key]),{result:{experiment:null,variation:null,decisionSource:e$.ROLLOUT},reasons:a};var s=e.rolloutIdMap[t.rolloutId];if(!s)return this.logger.log(eG.ERROR,eq.INVALID_ROLLOUT_ID,r2,t.rolloutId,t.key),a.push([eq.INVALID_ROLLOUT_ID,r2,t.rolloutId,t.key]),{result:{experiment:null,variation:null,decisionSource:e$.ROLLOUT},reasons:a};var u=s.experiments;if(0===u.length)return this.logger.log(eG.ERROR,ez.ROLLOUT_HAS_NO_EXPERIMENTS,r2,t.rolloutId),a.push([ez.ROLLOUT_HAS_NO_EXPERIMENTS,r2,t.rolloutId]),{result:{experiment:null,variation:null,decisionSource:e$.ROLLOUT},reasons:a};for(var c=0;c<u.length;){if(n=this.getVariationFromDeliveryRule(e,t.key,u,c,r),a.push.apply(a,n.reasons),o=n.result,i=n.skipToEveryoneElse,o)return{result:{experiment:e.experimentIdMap[u[c].id],variation:o,decisionSource:e$.ROLLOUT},reasons:a};c=i?u.length-1:c+1}return{result:{experiment:null,variation:null,decisionSource:e$.ROLLOUT},reasons:a}},e.prototype.getBucketingId=function(e,t){var r=e;return null!=t&&"object"==typeof t&&t.hasOwnProperty(eH.BUCKETING_ID)&&("string"==typeof t[eH.BUCKETING_ID]?(r=String(t[eH.BUCKETING_ID]),this.logger.log(eG.DEBUG,ez.VALID_BUCKETING_ID,r2,r)):this.logger.log(eG.WARNING,ez.BUCKETING_ID_NOT_STRING,r2)),r},e.prototype.findValidatedForcedDecision=function(e,t,r,n){var i,o=[],a=t.getForcedDecision({flagKey:r,ruleKey:n}),s=null,u=t.getUserId();return e&&a&&((s=tG(e,r,i=a.variationKey))?n?(this.logger.log(eG.INFO,ez.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED,i,r,n,u),o.push([ez.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED,i,r,n,u])):(this.logger.log(eG.INFO,ez.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED,i,r,u),o.push([ez.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED,i,r,u])):n?(this.logger.log(eG.INFO,ez.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID,r,n,u),o.push([ez.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID,r,n,u])):(this.logger.log(eG.INFO,ez.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID,r,u),o.push([ez.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID,r,u]))),{result:s,reasons:o}},e.prototype.removeForcedVariation=function(e,t,r){if(!e)throw Error(eS(eq.INVALID_USER_ID,r2));if(this.forcedVariationMap.hasOwnProperty(e))delete this.forcedVariationMap[e][t],this.logger.log(eG.DEBUG,ez.VARIATION_REMOVED_FOR_USER,r2,r,e);else throw Error(eS(eq.USER_NOT_IN_FORCED_VARIATION,r2,e))},e.prototype.setInForcedVariationMap=function(e,t,r){this.forcedVariationMap.hasOwnProperty(e)||(this.forcedVariationMap[e]={}),this.forcedVariationMap[e][t]=r,this.logger.log(eG.DEBUG,ez.USER_MAPPED_TO_FORCED_VARIATION,r2,r,t,e)},e.prototype.getForcedVariation=function(e,t,r){var n,i=[],o=this.forcedVariationMap[r];if(!o)return this.logger.log(eG.DEBUG,ez.USER_HAS_NO_FORCED_VARIATION,r2,r),{result:null,reasons:i};try{var a=tU(e,t);if(!a.hasOwnProperty("id"))return this.logger.log(eG.ERROR,eq.IMPROPERLY_FORMATTED_EXPERIMENT,r2,t),i.push([eq.IMPROPERLY_FORMATTED_EXPERIMENT,r2,t]),{result:null,reasons:i};n=a.id}catch(e){return this.logger.log(eG.ERROR,e.message),i.push(e.message),{result:null,reasons:i}}var s=o[n];if(!s)return this.logger.log(eG.DEBUG,ez.USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT,r2,t,r),{result:null,reasons:i};var u=tL(e,s);return u?(this.logger.log(eG.DEBUG,ez.USER_HAS_FORCED_VARIATION,r2,u,t,r),i.push([ez.USER_HAS_FORCED_VARIATION,r2,u,t,r])):this.logger.log(eG.DEBUG,ez.USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT,r2,t,r),{result:u,reasons:i}},e.prototype.setForcedVariation=function(e,t,r,n){if(null!=n&&!r1(n))return this.logger.log(eG.ERROR,eq.INVALID_VARIATION_KEY,r2),!1;try{var i,o=tU(e,t);if(!o.hasOwnProperty("id"))return this.logger.log(eG.ERROR,eq.IMPROPERLY_FORMATTED_EXPERIMENT,r2,t),!1;i=o.id}catch(e){return this.logger.log(eG.ERROR,e.message),!1}if(null==n)try{return this.removeForcedVariation(r,i,t),!0}catch(e){return this.logger.log(eG.ERROR,e.message),!1}var a=tF(e,t,n);if(!a)return this.logger.log(eG.ERROR,eq.NO_VARIATION_FOR_EXPERIMENT_KEY,r2,n,t),!1;try{return this.setInForcedVariationMap(r,i,a),!0}catch(e){return this.logger.log(eG.ERROR,e.message),!1}},e.prototype.getVariationFromExperimentRule=function(e,t,r,n,i){void 0===i&&(i={});var o=[],a=this.findValidatedForcedDecision(e,n,t,r.key);o.push.apply(o,a.reasons);var s=a.result;if(s)return{result:s.key,reasons:o};var u=this.getVariation(e,r,n,i);return o.push.apply(o,u.reasons),{result:u.result,reasons:o}},e.prototype.getVariationFromDeliveryRule=function(e,t,r,n,i){var o,a,s=[],u=!1,c=r[n],l=this.findValidatedForcedDecision(e,i,t,c.key);s.push.apply(s,l.reasons);var f=l.result;if(f)return{result:f,reasons:s,skipToEveryoneElse:u};var p=i.getUserId(),d=i.getAttributes(),h=this.getBucketingId(p,d),y=n===r.length-1,g=y?"Everyone Else":n+1,v=null,m=this.checkIfUserIsInAudience(e,c,eJ.RULE,i,g);return(s.push.apply(s,m.reasons),m.result)?(this.logger.log(eG.DEBUG,ez.USER_MEETS_CONDITIONS_FOR_TARGETING_RULE,r2,p,g),s.push([ez.USER_MEETS_CONDITIONS_FOR_TARGETING_RULE,r2,p,g]),a=rb(this.buildBucketerParams(e,c,h,p)),s.push.apply(s,a.reasons),(o=a.result)&&(v=e.variationIdMap.hasOwnProperty(o)?e.variationIdMap[o]:null),v?(this.logger.log(eG.DEBUG,ez.USER_BUCKETED_INTO_TARGETING_RULE,r2,p,g),s.push([ez.USER_BUCKETED_INTO_TARGETING_RULE,r2,p,g])):y||(this.logger.log(eG.DEBUG,ez.USER_NOT_BUCKETED_INTO_TARGETING_RULE,r2,p,g),s.push([ez.USER_NOT_BUCKETED_INTO_TARGETING_RULE,r2,p,g]),u=!0)):(this.logger.log(eG.DEBUG,ez.USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE,r2,p,g),s.push([ez.USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE,r2,p,g])),{result:v,reasons:s,skipToEveryoneElse:u}},e}(),r4="EVENT_TAG_UTILS";function r6(e,t){var r=e.revenue;if(null==r)return null;var n="string"==typeof r?parseInt(r):r;return isFinite(n)?(t.log(eG.INFO,ez.PARSED_REVENUE_VALUE,r4,n),n):(t.log(eG.INFO,ez.FAILED_TO_PARSE_REVENUE,r4,r),null)}function r5(e,t){var r=e.value;if(null==r)return null;var n="string"==typeof r?parseFloat(r):r;return isFinite(n)?(t.log(eG.INFO,ez.PARSED_NUMERIC_VALUE,r4,n),n):(t.log(eG.INFO,ez.FAILED_TO_PARSE_VALUE,r4,r),null)}var r8="ATTRIBUTES_VALIDATOR";function r9(e,t){return"string"==typeof e&&("string"==typeof t||"boolean"==typeof t||eT.isNumber(t)&&eT.isSafeInteger(t))}var r7="custom",ne="https://logx.optimizely.com/v1/events",nt="POST";function nr(e){var t=e.attributes,r=e.userId,n=e.clientEngine,i=e.clientVersion,o=e.configObj,a=e.logger,s=!!o.anonymizeIP&&o.anonymizeIP,u=o.botFiltering,c={account_id:o.accountId,project_id:o.projectId,visitors:[{snapshots:[],visitor_id:r,attributes:[]}],revision:o.revision,client_name:n,client_version:i,anonymize_ip:s,enrich_decisions:!0};return t&&Object.keys(t||{}).forEach(function(e){var r=t[e];if(r9(e,r)){var n=tC(o,e,a);n&&c.visitors[0].attributes.push({entity_id:n,key:e,type:r7,value:r})}}),"boolean"==typeof u&&c.visitors[0].attributes.push({entity_id:eH.BOT_FILTERING,key:eH.BOT_FILTERING,type:r7,value:u}),c}function nn(e){var t,r;return null!==(r=null===(t=e.experiment)||void 0===t?void 0:t.key)&&void 0!==r?r:""}function ni(e){var t,r;return null!==(r=null===(t=e.variation)||void 0===t?void 0:t.key)&&void 0!==r?r:""}function no(e){var t,r;return null!==(r=null===(t=e.variation)||void 0===t?void 0:t.featureEnabled)&&void 0!==r&&r}function na(e){var t,r;return null!==(r=null===(t=e.experiment)||void 0===t?void 0:t.id)&&void 0!==r?r:null}function ns(e){var t,r;return null!==(r=null===(t=e.variation)||void 0===t?void 0:t.id)&&void 0!==r?r:null}var nu=eD("EVENT_BUILDER"),nc=function(e){var t=e.configObj,r=e.decisionObj,n=e.userId,i=e.flagKey,o=e.enabled,a=e.userAttributes,s=e.clientEngine,u=e.clientVersion,c=r.decisionSource,l=nn(r),f=na(r),p=ni(r),d=ns(r),h=null!==f?tP(t,f):null;return{type:"impression",timestamp:eT.currentTimestamp(),uuid:eT.uuid(),user:{id:n,attributes:nf(t,a)},context:{accountId:t.accountId,projectId:t.projectId,revision:t.revision,clientName:s,clientVersion:u,anonymizeIP:t.anonymizeIP||!1,botFiltering:t.botFiltering},layer:{id:h},experiment:{id:f,key:l},variation:{id:d,key:p},ruleKey:l,flagKey:i,ruleType:c,enabled:o}},nl=function(e){var t=e.configObj,r=e.userId,n=e.userAttributes,i=e.clientEngine,o=e.clientVersion,a=e.eventKey,s=e.eventTags,u=tD(t,a),c=s?r6(s,nu):null,l=s?r5(s,nu):null;return{type:"conversion",timestamp:eT.currentTimestamp(),uuid:eT.uuid(),user:{id:r,attributes:nf(t,n)},context:{accountId:t.accountId,projectId:t.projectId,revision:t.revision,clientName:i,clientVersion:o,anonymizeIP:t.anonymizeIP||!1,botFiltering:t.botFiltering},event:{id:u,key:a},revenue:c,value:l,tags:s}};function nf(e,t){var r=[];return t&&Object.keys(t||{}).forEach(function(n){var i=t[n];if(r9(n,i)){var o=tC(e,n,nu);o&&r.push({entityId:o,key:n,value:i})}}),r}var np="USER_PROFILE_SERVICE_VALIDATOR",nd="OPTIMIZELY",nh=function(){function e(e){var t,r=this,n=e.clientEngine;n||(e.logger.log(eG.INFO,ez.INVALID_CLIENT_ENGINE,nd,n),n=eK),this.clientEngine=n,this.clientVersion=e.clientVersion||eY,this.errorHandler=e.errorHandler,this.isOptimizelyConfigValid=e.isValidInstance,this.logger=e.logger,this.odpManager=e.odpManager;var i=null!==(t=e.defaultDecideOptions)&&void 0!==t?t:[];Array.isArray(i)||(this.logger.log(eG.DEBUG,ez.INVALID_DEFAULT_DECIDE_OPTIONS,nd),i=[]);var o={};i.forEach(function(e){_[e]?o[e]=!0:r.logger.log(eG.WARNING,ez.UNRECOGNIZED_DECIDE_OPTION,nd,e)}),this.defaultDecideOptions=o,this.projectConfigManager=new rv({datafile:e.datafile,jsonSchemaValidator:e.jsonSchemaValidator,sdkKey:e.sdkKey,datafileManager:e.datafileManager}),this.disposeOnUpdate=this.projectConfigManager.onUpdate(function(e){r.logger.log(eG.INFO,ez.UPDATED_OPTIMIZELY_CONFIG,nd,e.revision,e.projectId),r.notificationCenter.sendNotifications(v.OPTIMIZELY_CONFIG_UPDATE),r.updateOdpSettings()});var a=this.projectConfigManager.onReady(),s=null;if(e.userProfileService)try{(function(e){if("object"==typeof e&&null!==e){if("function"!=typeof e.lookup)throw Error(eS(eq.INVALID_USER_PROFILE_SERVICE,np,"Missing function 'lookup'"));if("function"!=typeof e.save)throw Error(eS(eq.INVALID_USER_PROFILE_SERVICE,np,"Missing function 'save'"));return!0}throw Error(eS(eq.INVALID_USER_PROFILE_SERVICE,np))})(e.userProfileService)&&(s=e.userProfileService,this.logger.log(eG.INFO,ez.VALID_USER_PROFILE_SERVICE,nd))}catch(e){this.logger.log(eG.WARNING,e.message)}this.decisionService=new r3({userProfileService:s,logger:this.logger,UNSTABLE_conditionEvaluators:e.UNSTABLE_conditionEvaluators}),this.notificationCenter=e.notificationCenter,this.eventProcessor=e.eventProcessor;var u=this.eventProcessor.start();this.readyPromise=Promise.all([a,u,e.odpManager?e.odpManager.onReady():Promise.resolve()]).then(function(e){return e[0]}),this.readyTimeouts={},this.nextReadyTimeoutId=0}return e.prototype.getProjectConfig=function(){return this.projectConfigManager.getConfig()},e.prototype.isValidInstance=function(){return this.isOptimizelyConfigValid&&!!this.projectConfigManager.getConfig()},e.prototype.activate=function(e,t,r){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"activate"),null;if(!this.validateInputs({experiment_key:e,user_id:t},r))return this.notActivatingExperiment(e,t);var n=this.projectConfigManager.getConfig();if(!n)return null;try{var i=this.getVariation(e,t,r);if(null===i)return this.notActivatingExperiment(e,t);if(tj(n,e)!==tA)return this.logger.log(eG.DEBUG,ez.SHOULD_NOT_DISPATCH_ACTIVATE,nd,e),i;var o=tU(n,e),a=o.variationKeyMap[i],s={experiment:o,variation:a,decisionSource:e$.EXPERIMENT};return this.sendImpressionEvent(s,"",t,!0,r),i}catch(r){return this.logger.log(eG.ERROR,r.message),this.logger.log(eG.INFO,ez.NOT_ACTIVATING_USER,nd,t,e),this.errorHandler.handleError(r),null}}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.sendImpressionEvent=function(e,t,r,n,i){var o=this.projectConfigManager.getConfig();if(o){var a=nc({decisionObj:e,flagKey:t,enabled:n,userId:r,userAttributes:i,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:o});this.eventProcessor.process(a),this.emitNotificationCenterActivate(e,t,r,n,i)}},e.prototype.emitNotificationCenterActivate=function(e,t,r,n,i){var o,a,s,u,c,l,f,p,d,h,y,g,m,b,E=this.projectConfigManager.getConfig();if(E){var w=e.decisionSource,_=nn(e),O=na(e),S=ni(e),T=ns(e);null!==O&&""!==S&&(m=E.experimentIdMap[O]);var A=(a=nr(o={attributes:i,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:E,experimentId:O,ruleKey:_,flagKey:t,ruleType:w,userId:r,enabled:n,variationId:T,logger:this.logger}),s=o.configObj,u=o.experimentId,c=o.variationId,l=o.ruleKey,f=o.ruleType,p=o.flagKey,d=o.enabled,h=u?tP(s,u):null,y=c?tL(s,c):null,g={decisions:[{campaign_id:h,experiment_id:u,variation_id:c,metadata:{flag_key:p,rule_key:l,rule_type:f,variation_key:y=y||"",enabled:d}}],events:[{entity_id:h,timestamp:eT.currentTimestamp(),key:"campaign_activated",uuid:eT.uuid()}]},a.visitors[0].snapshots.push(g),{httpVerb:nt,url:ne,params:a});m&&m.variationKeyMap&&""!==S&&(b=m.variationKeyMap[S]),this.notificationCenter.sendNotifications(v.ACTIVATE,{experiment:m,userId:r,attributes:i,variation:b,logEvent:A})}},e.prototype.track=function(e,t,r,n){try{if(!this.isValidInstance()){this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"track");return}if(!this.validateInputs({user_id:t,event_key:e},r,n))return;var i=this.projectConfigManager.getConfig();if(!i)return;if(!i.eventKeyMap.hasOwnProperty(e)){this.logger.log(eG.WARNING,ez.EVENT_KEY_NOT_FOUND,nd,e),this.logger.log(eG.WARNING,ez.NOT_TRACKING_USER,nd,t);return}n=this.filterEmptyValues(n);var o=nl({eventKey:e,eventTags:n,userId:t,userAttributes:r,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:i});this.logger.log(eG.INFO,ez.TRACK_EVENT,nd,e,t),this.eventProcessor.process(o),this.emitNotificationCenterTrack(e,t,r,n)}catch(e){this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),this.logger.log(eG.ERROR,ez.NOT_TRACKING_USER,nd,t)}},e.prototype.emitNotificationCenterTrack=function(e,t,r,n){try{var i,o,a,s=this.projectConfigManager.getConfig();if(!s)return;var u=(i={attributes:r,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:s,eventKey:e,eventTags:n,logger:this.logger,userId:t},o=nr(i),a=function(e,t,r,n){var i={events:[]},o={entity_id:tD(e,t),timestamp:eT.currentTimestamp(),uuid:eT.uuid(),key:t};if(n){var a=r6(n,r);null!==a&&(o.revenue=a);var s=r5(n,r);null!==s&&(o.value=s),o.tags=n}return i.events.push(o),i}(i.configObj,i.eventKey,i.logger,i.eventTags),o.visitors[0].snapshots=[a],{httpVerb:nt,url:ne,params:o});this.notificationCenter.sendNotifications(v.TRACK,{eventKey:e,userId:t,attributes:r,eventTags:n,logEvent:u})}catch(e){this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.getVariation=function(e,t,r){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getVariation"),null;try{if(!this.validateInputs({experiment_key:e,user_id:t},r))return null;var n,i=this.projectConfigManager.getConfig();if(!i)return null;var o=i.experimentKeyMap[e];if(!o)return this.logger.log(eG.DEBUG,eq.INVALID_EXPERIMENT_KEY,nd,e),null;var a=this.decisionService.getVariation(i,o,this.createInternalUserContext(t,r)).result,s=(n=o.id,i.experimentFeatureMap.hasOwnProperty(n))?eQ.FEATURE_TEST:eQ.AB_TEST;return this.notificationCenter.sendNotifications(v.DECISION,{type:s,userId:t,attributes:r||{},decisionInfo:{experimentKey:e,variationKey:a}}),a}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.setForcedVariation=function(e,t,r){if(!this.validateInputs({experiment_key:e,user_id:t}))return!1;var n=this.projectConfigManager.getConfig();if(!n)return!1;try{return this.decisionService.setForcedVariation(n,e,t,r)}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.getForcedVariation=function(e,t){if(!this.validateInputs({experiment_key:e,user_id:t}))return null;var r=this.projectConfigManager.getConfig();if(!r)return null;try{return this.decisionService.getForcedVariation(r,e,t).result}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.validateInputs=function(e,t,r){try{if(e.hasOwnProperty("user_id")){var n=e.user_id;if("string"!=typeof n||null===n||"undefined"===n)throw Error(eS(eq.INVALID_INPUT_FORMAT,nd,"user_id"));delete e.user_id}return Object.keys(e).forEach(function(t){if(!r1(e[t]))throw Error(eS(eq.INVALID_INPUT_FORMAT,nd,t))}),t&&function(e){if("object"==typeof e&&!Array.isArray(e)&&null!==e)return Object.keys(e).forEach(function(t){if(void 0===e[t])throw Error(eS(eq.UNDEFINED_ATTRIBUTE,r8,t))});throw Error(eS(eq.INVALID_ATTRIBUTES,r8))}(t),r&&function(e){if("object"!=typeof e||Array.isArray(e)||null===e)throw Error(eS(eq.INVALID_EVENT_TAGS,"EVENT_TAGS_VALIDATOR"))}(r),!0}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.notActivatingExperiment=function(e,t){return this.logger.log(eG.INFO,ez.NOT_ACTIVATING_USER,nd,t,e),null},e.prototype.filterEmptyValues=function(e){for(var t in e)e.hasOwnProperty(t)&&(null===e[t]||void 0===e[t])&&delete e[t];return e},e.prototype.isFeatureEnabled=function(e,t,r){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"isFeatureEnabled"),!1;if(!this.validateInputs({feature_key:e,user_id:t},r))return!1;var n=this.projectConfigManager.getConfig();if(!n)return!1;var i=tq(n,e,this.logger);if(!i)return!1;var o={},a=this.createInternalUserContext(t,r),s=this.decisionService.getVariationForFeature(n,i,a).result,u=s.decisionSource,c=nn(s),l=ni(s),f=no(s);u===e$.FEATURE_TEST&&(o={experimentKey:c,variationKey:l}),(u===e$.FEATURE_TEST||u===e$.ROLLOUT&&tQ(n))&&this.sendImpressionEvent(s,i.key,t,f,r),!0===f?this.logger.log(eG.INFO,ez.FEATURE_ENABLED_FOR_USER,nd,e,t):(this.logger.log(eG.INFO,ez.FEATURE_NOT_ENABLED_FOR_USER,nd,e,t),f=!1);var p={featureKey:e,featureEnabled:f,source:s.decisionSource,sourceInfo:o};return this.notificationCenter.sendNotifications(v.DECISION,{type:eQ.FEATURE,userId:t,attributes:r||{},decisionInfo:p}),f}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.getEnabledFeatures=function(e,t){var r=this;try{var n=[];if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getEnabledFeatures"),n;if(!this.validateInputs({user_id:e}))return n;var i=this.projectConfigManager.getConfig();if(!i)return n;return e_(i.featureKeyMap).forEach(function(i){r.isFeatureEnabled(i.key,e,t)&&n.push(i.key)}),n}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),[]}},e.prototype.getFeatureVariable=function(e,t,r,n){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getFeatureVariable"),null;return this.getFeatureVariableForType(e,t,null,r,n)}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableForType=function(e,t,r,n,i){if(!this.validateInputs({feature_key:e,variable_key:t,user_id:n},i))return null;var o=this.projectConfigManager.getConfig();if(!o)return null;var a=tq(o,e,this.logger);if(!a)return null;var s=tz(o,e,t,this.logger);if(!s)return null;if(r&&s.type!==r)return this.logger.log(eG.WARNING,ez.VARIABLE_REQUESTED_WITH_WRONG_TYPE,nd,r,s.type),null;var u=this.createInternalUserContext(n,i),c=this.decisionService.getVariationForFeature(o,a,u).result,l=no(c),f=this.getFeatureVariableValueFromVariation(e,l,c.variation,s,n),p={};return c.decisionSource===e$.FEATURE_TEST&&null!==c.experiment&&null!==c.variation&&(p={experimentKey:c.experiment.key,variationKey:c.variation.key}),this.notificationCenter.sendNotifications(v.DECISION,{type:eQ.FEATURE_VARIABLE,userId:n,attributes:i||{},decisionInfo:{featureKey:e,featureEnabled:l,source:c.decisionSource,variableKey:t,variableValue:f,variableType:s.type,sourceInfo:p}}),f},e.prototype.getFeatureVariableValueFromVariation=function(e,t,r,n,i){var o=this.projectConfigManager.getConfig();if(!o)return null;var a=n.defaultValue;if(null!==r){var s=tH(o,n,r,this.logger);null!==s?t?(a=s,this.logger.log(eG.INFO,ez.USER_RECEIVED_VARIABLE_VALUE,nd,a,n.key,e)):this.logger.log(eG.INFO,ez.FEATURE_NOT_ENABLED_RETURN_DEFAULT_VARIABLE_VALUE,nd,e,i,a):this.logger.log(eG.INFO,ez.VARIABLE_NOT_USED_RETURN_DEFAULT_VARIABLE_VALUE,nd,n.key,r.key)}else this.logger.log(eG.INFO,ez.USER_RECEIVED_DEFAULT_VARIABLE_VALUE,nd,i,n.key,e);return tW(a,n.type,this.logger)},e.prototype.getFeatureVariableBoolean=function(e,t,r,n){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getFeatureVariableBoolean"),null;return this.getFeatureVariableForType(e,t,eX.BOOLEAN,r,n)}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableDouble=function(e,t,r,n){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getFeatureVariableDouble"),null;return this.getFeatureVariableForType(e,t,eX.DOUBLE,r,n)}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableInteger=function(e,t,r,n){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getFeatureVariableInteger"),null;return this.getFeatureVariableForType(e,t,eX.INTEGER,r,n)}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableString=function(e,t,r,n){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getFeatureVariableString"),null;return this.getFeatureVariableForType(e,t,eX.STRING,r,n)}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableJSON=function(e,t,r,n){try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getFeatureVariableJSON"),null;return this.getFeatureVariableForType(e,t,eX.JSON,r,n)}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getAllFeatureVariables=function(e,t,r){var n=this;try{if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"getAllFeatureVariables"),null;if(!this.validateInputs({feature_key:e,user_id:t},r))return null;var i=this.projectConfigManager.getConfig();if(!i)return null;var o=tq(i,e,this.logger);if(!o)return null;var a=this.createInternalUserContext(t,r),s=this.decisionService.getVariationForFeature(i,o,a).result,u=no(s),c={};o.variables.forEach(function(r){c[r.key]=n.getFeatureVariableValueFromVariation(e,u,s.variation,r,t)});var l={};return s.decisionSource===e$.FEATURE_TEST&&null!==s.experiment&&null!==s.variation&&(l={experimentKey:s.experiment.key,variationKey:s.variation.key}),this.notificationCenter.sendNotifications(v.DECISION,{type:eQ.ALL_FEATURE_VARIABLES,userId:t,attributes:r||{},decisionInfo:{featureKey:e,featureEnabled:u,source:s.decisionSource,variableValues:c,sourceInfo:l}}),c}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getOptimizelyConfig=function(){try{if(!this.projectConfigManager.getConfig())return null;return this.projectConfigManager.getOptimizelyConfig()}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.close=function(){var e,t=this;try{this.odpManager&&this.odpManager.stop(),this.notificationCenter.clearAllNotificationListeners();var r=null===(e=this.projectConfigManager.getConfig())||void 0===e?void 0:e.sdkKey;r&&tE.removeNotificationCenter(r);var n=this.eventProcessor.stop();return this.disposeOnUpdate&&(this.disposeOnUpdate(),this.disposeOnUpdate=null),this.projectConfigManager&&this.projectConfigManager.stop(),Object.keys(this.readyTimeouts).forEach(function(e){var r=t.readyTimeouts[e];clearTimeout(r.readyTimeout),r.onClose()}),this.readyTimeouts={},n.then(function(){return{success:!0}},function(e){return{success:!1,reason:String(e)}})}catch(e){return this.logger.log(eG.ERROR,e.message),this.errorHandler.handleError(e),Promise.resolve({success:!1,reason:String(e)})}},e.prototype.onReady=function(e){var t,r,n=this;"object"==typeof e&&null!==e&&void 0!==e.timeout&&(t=e.timeout),eT.isSafeInteger(t)||(t=3e4);var i=new Promise(function(e){r=e}),o=this.nextReadyTimeoutId;this.nextReadyTimeoutId++;var a=setTimeout(function(){delete n.readyTimeouts[o],r({success:!1,reason:eS("onReady timeout expired after %s ms",t)})},t);return this.readyTimeouts[o]={readyTimeout:a,onClose:function(){r({success:!1,reason:"Instance closed"})}},this.readyPromise.then(function(){clearTimeout(a),delete n.readyTimeouts[o],r({success:!0})}),Promise.race([this.readyPromise,i])},e.prototype.createUserContext=function(e,t){var r,n=null!=e?e:null===(r=this.odpManager)||void 0===r?void 0:r.getVuid();return void 0!==n&&this.validateInputs({user_id:n},t)?new rf({optimizely:this,userId:n,attributes:t,shouldIdentifyUser:!0}):null},e.prototype.createInternalUserContext=function(e,t){return new rf({optimizely:this,userId:e,attributes:t,shouldIdentifyUser:!1})},e.prototype.decide=function(e,t,r){var n,i,o,a,s,u=this;void 0===r&&(r=[]);var c=e.getUserId(),l=e.getAttributes(),f=this.projectConfigManager.getConfig(),p=[];if(!this.isValidInstance()||!f)return this.logger.log(eG.INFO,ez.INVALID_OBJECT,nd,"decide"),rl(t,e,[e0.SDK_NOT_READY]);var d=f.featureKeyMap[t];if(!d)return this.logger.log(eG.ERROR,eq.FEATURE_NOT_IN_DATAFILE,nd,t),rl(t,e,[eS(e0.FLAG_KEY_INVALID,t)]);var h=this.getAllDecideOptions(r),y=this.decisionService.findValidatedForcedDecision(f,e,t);p.push.apply(p,y.reasons);var g=y.result;if(g)s={experiment:null,variation:g,decisionSource:e$.FEATURE_TEST};else{var m=this.decisionService.getVariationForFeature(f,d,e,h);p.push.apply(p,m.reasons),s=m.result}var b=s.decisionSource,E=null!==(i=null===(n=s.experiment)||void 0===n?void 0:n.key)&&void 0!==i?i:null,w=null!==(a=null===(o=s.variation)||void 0===o?void 0:o.key)&&void 0!==a?a:null,O=no(s);!0===O?this.logger.log(eG.INFO,ez.FEATURE_ENABLED_FOR_USER,nd,t,c):this.logger.log(eG.INFO,ez.FEATURE_NOT_ENABLED_FOR_USER,nd,t,c);var S={},T=!1;h[_.EXCLUDE_VARIABLES]||d.variables.forEach(function(e){S[e.key]=u.getFeatureVariableValueFromVariation(t,O,s.variation,e,c)}),!h[_.DISABLE_DECISION_EVENT]&&(b===e$.FEATURE_TEST||b===e$.ROLLOUT&&tQ(f))&&(this.sendImpressionEvent(s,t,c,O,l),T=!0);var A=h[_.INCLUDE_REASONS],I=[];A&&(I=p.map(function(e){return eS.apply(void 0,eg([e[0]],e.slice(1),!1))}));var R={flagKey:t,enabled:O,variationKey:w,ruleKey:E,variables:S,reasons:I,decisionEventDispatched:T};return this.notificationCenter.sendNotifications(v.DECISION,{type:eQ.FLAG,userId:c,attributes:l,decisionInfo:R}),{variationKey:w,enabled:O,variables:S,ruleKey:E,flagKey:t,userContext:e,reasons:I}},e.prototype.getAllDecideOptions=function(e){var t=this,r=ed({},this.defaultDecideOptions);return Array.isArray(e)?e.forEach(function(e){_[e]?r[e]=!0:t.logger.log(eG.WARNING,ez.UNRECOGNIZED_DECIDE_OPTION,nd,e)}):this.logger.log(eG.DEBUG,ez.INVALID_DECIDE_OPTIONS,nd),r},e.prototype.decideForKeys=function(e,t,r){var n=this;void 0===r&&(r=[]);var i={};if(!this.isValidInstance())return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"decideForKeys"),i;if(0===t.length)return i;var o=this.getAllDecideOptions(r);return t.forEach(function(t){var a=n.decide(e,t,r);(!o[_.ENABLED_FLAGS_ONLY]||a.enabled)&&(i[t]=a)}),i},e.prototype.decideAll=function(e,t){void 0===t&&(t=[]);var r=this.projectConfigManager.getConfig();if(!this.isValidInstance()||!r)return this.logger.log(eG.ERROR,ez.INVALID_OBJECT,nd,"decideAll"),{};var n=Object.keys(r.featureKeyMap);return this.decideForKeys(e,n,t)},e.prototype.updateOdpSettings=function(){var e=this.projectConfigManager.getConfig();e&&this.odpManager&&this.odpManager.updateSettings(e.odpIntegrationConfig)},e.prototype.sendOdpEvent=function(e,t,r,n){if(!this.odpManager){this.logger.error(eq.ODP_EVENT_FAILED_ODP_MANAGER_MISSING);return}var i=null!=t?t:e2,o=new Map(r);if(r&&r.size>0)try{r.forEach(function(e,t){(e1===t.toLowerCase()||m.FS_USER_ID===t.toLowerCase())&&(o.delete(t),o.set(m.FS_USER_ID,e))})}catch(e){this.logger.warn(ez.ODP_SEND_EVENT_IDENTIFIER_CONVERSION_FAILED)}try{var a=new t5(i,e,o,n);this.odpManager.sendEvent(a)}catch(e){this.logger.error(eq.ODP_EVENT_FAILED,e)}},e.prototype.isOdpIntegrated=function(){var e,t,r;return null!==(r=null===(t=null===(e=this.projectConfigManager.getConfig())||void 0===e?void 0:e.odpIntegrationConfig)||void 0===t?void 0:t.integrated)&&void 0!==r&&r},e.prototype.identifyUser=function(e){this.odpManager&&this.isOdpIntegrated()&&this.odpManager.identifyUser(e)},e.prototype.fetchQualifiedSegments=function(e,t){return eh(this,void 0,void 0,function(){return ey(this,function(r){switch(r.label){case 0:if(!this.odpManager)return[2,null];return[4,this.odpManager.fetchQualifiedSegments(e,t)];case 1:return[2,r.sent()]}})})},e.prototype.getVuid=function(){var e;if(!this.odpManager){null===(e=this.logger)||void 0===e||e.error("Unable to get VUID - ODP Manager is not instantiated yet.");return}if(!this.odpManager.isVuidEnabled()){this.logger.log(eG.WARNING,"getVuid() unavailable for this platform",nd);return}return this.odpManager.getVuid()},e}(),ny={parseUserAgentInfo:function(){var e=new el.UAParser().getResult();return{os:e.os,device:e.device}}},ng=Object.freeze({__proto__:null,get LogLevel(){return g},getLogger:eD,setLogHandler:ej,LOG_LEVEL:eG,createLogger:tl}),nv=eD();eM.setLogHandler(tl()),eM.setLogLevel(g.INFO);var nm=!1,nb=eM.setLogHandler,nE=eM.setLogLevel,nw=ed(ed({},ng),{logging:tf,errorHandler:{handleError:function(){}},eventDispatcher:ts,sendBeaconEventDispatcher:tu,enums:e3,setLogger:nb,setLogLevel:nE,createInstance:function(e){var t;try{var r,n=!1;e.errorHandler&&(ev=e.errorHandler),e.logger&&(eM.setLogHandler(e.logger),eM.setLogLevel(g.NOTSET)),void 0!==e.logLevel&&eM.setLogLevel(e.logLevel);try{to.validate(e),n=!0}catch(e){nv.error(e)}var i=void 0;null==e.eventDispatcher?(i=new e9({eventDispatcher:ts}),nm||(i.sendPendingEvents(),nm=!0)):i=e.eventDispatcher;var o=e.closingEventDispatcher;!e.eventDispatcher&&!o&&window.navigator&&"sendBeacon"in window.navigator&&(o=tu);var a=e.eventBatchSize,s=e.eventFlushInterval;tp.validateEventBatchSize(e.eventBatchSize)||(nv.warn("Invalid eventBatchSize %s, defaulting to %s",e.eventBatchSize,10),a=10),tp.validateEventFlushInterval(e.eventFlushInterval)||(nv.warn("Invalid eventFlushInterval %s, defaulting to %s",e.eventFlushInterval,1e3),s=1e3);var u=ev,c=(r={logger:nv,errorHandler:u},new td(r)),l={dispatcher:i,closingDispatcher:o,flushInterval:s,batchSize:a,maxQueueSize:e.eventMaxQueueSize||1e4,notificationCenter:c},f=(null===(t=e.odpOptions)||void 0===t?void 0:t.disabled)===!0;f&&nv.info(ez.ODP_DISABLED);var p=e.clientEngine,d=e.clientVersion,h=ed(ed({clientEngine:eW},e),{eventProcessor:th.createEventProcessor(l),logger:nv,errorHandler:u,datafileManager:e.sdkKey?function(e,t,r,n){var i={sdkKey:e};if((void 0===n||"object"==typeof n&&null!==n)&&eT.assign(i,n),r){var o=tY({datafile:r,jsonSchemaValidator:void 0,logger:t}),a=o.configObj,s=o.error;s&&t.error(s),a&&(i.datafile=tK(a))}return new tS(i)}(e.sdkKey,nv,e.datafile,e.datafileOptions):void 0,notificationCenter:c,isValidInstance:n,odpManager:f?void 0:rc.createInstance({logger:nv,odpOptions:e.odpOptions,clientEngine:p,clientVersion:d})}),y=new nh(h);try{if("function"==typeof window.addEventListener){var v="onpagehide"in window?"pagehide":"unload";window.addEventListener(v,function(){y.close()},!1)}}catch(e){nv.error(ez.UNABLE_TO_ATTACH_UNLOAD,"INDEX_BROWSER",e.message)}return y}catch(e){return nv.error(e),null}},__internalResetRetryState:function(){nm=!1},OptimizelyDecideOption:_,getUserAgentParser:function(){return ny}}),n_=r(57903),nO=function(e){var t=e.split("/").filter(function(e){return""!==e}),r="news_insights:";switch(!0){case 1===t.length&&"news"===t[0]:return r+"home";case 1===t.length&&"advice"===t[0]:return r+"advice_home";case 1===t.length&&"guides"===t[0]:return r+"guides_home";case 1===t.length&&"podcast"===t[0]:return r+"podcast_home";case 1===t.length&&"archive"===t[0]:return r+"archive_page";case 2===t.length&&"sponsored"===t[0]:return r+"sponsored_article";case 2===t.length:case(2===t.length||3===t.length)&&"local"===t[1]:return r+t.join("_");case t.length>3&&"local"===t[1]:return r+"news_article_local";case t.length>=3:var n="guides"===t[0]?"guides":"news";return r+"".concat(n,"_article_").concat(t[1]);default:return r+"home"}},nS=r(24993),nT=r(84488),nA=r(48762),nI=r(36594),nR=r(21811),nk=[25,50,75,90,100];function nx(){var e={maxDepth:0,milestonesFired:new Set,startTime:Date.now()},t=null,r=null,n=!0;function i(){n&&(t||(t=setTimeout(function(){t=null;var r,n,i,a=(r=window.innerHeight,n=document.documentElement.scrollHeight,i=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,n<=r?100:Math.min(100,Math.max(0,Math.round(i/(n-r)*100)))),s=Date.now()-e.startTime;a>e.maxDepth&&(e.maxDepth=a),nk.forEach(function(t){if(a>=t&&!e.milestonesFired.has(t)){var r,n;e.milestonesFired.add(t),null!==(r=window.analytics)&&void 0!==r&&r.track&&window.analytics.track("scrollDepth",{linkName:"news_insights:scrolldepth_".concat(t),maxDepth:e.maxDepth,timeToDepth:s,path:window.location.pathname,url:window.location.href}),null!==(n=window.ClickStream)&&void 0!==n&&n.trackEvent&&window.ClickStream.trackEvent("scrollDepth",{linkName:"news_insights:scrolldepth_".concat(t),maxDepth:e.maxDepth,timeToDepth:s,path:window.location.pathname})}}),(e.milestonesFired.size===nk.length||s>18e5)&&o()},100)))}function o(){n&&(n=!1,window.removeEventListener("scroll",i),t&&(clearTimeout(t),t=null),r&&(clearTimeout(r),r=null))}return window.addEventListener("scroll",i,{passive:!0}),i(),r=setTimeout(function(){o()},18e5),o}var nN=r(38432);function nP(e){return(nP="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)}var nC=["appShellProps"];function nD(){nD=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(t,r,n,o){var a,s,u=Object.create((r&&r.prototype instanceof g?r:g).prototype);return i(u,"_invoke",{value:(a=new I(o||[]),s=p,function(r,i){if(s===d)throw Error("Generator is already running");if(s===h){if("throw"===r)throw i;return{value:e,done:!0}}for(a.method=r,a.arg=i;;){var o=a.delegate;if(o){var u=function t(r,n){var i=n.method,o=r.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+i+"' method")),y;var a=f(o,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,y)}(o,a);if(u){if(u===y)continue;return u}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===p)throw s=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=d;var c=f(t,n,a);if("normal"===c.type){if(s=a.done?h:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(s=h,a.method="throw",a.arg=c.arg)}})}),u}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",y={};function g(){}function v(){}function m(){}var b={};c(b,a,function(){return this});var E=Object.getPrototypeOf,w=E&&E(E(R([])));w&&w!==r&&n.call(w,a)&&(b=w);var _=m.prototype=g.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var r;i(this,"_invoke",{value:function(i,o){function a(){return new t(function(r,a){!function r(i,o,a,s){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==nP(l)&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(l).then(function(e){c.value=e,a(c)},function(e){return r("throw",e,a,s)})}s(u.arg)}(i,o,r,a)})}return r=r?r.then(a,a):a()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw TypeError(nP(t)+" is not iterable")}return v.prototype=m,i(_,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:v,configurable:!0}),v.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},O(S.prototype),c(S.prototype,s,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},O(_),c(_,u,"Generator"),c(_,a,function(){return this}),c(_,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function nj(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function nM(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 nL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nM(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==nP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==nP(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nP(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nF(e,t){if(e){if("string"==typeof e)return nU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nU(e,t)}}function nU(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var nV={pageType:"NEWS_INSIGHTS",noLazyLoading:!0,tag:"async",fetchpriority:"auto"},nB=function(e){var t=e.hidden,r=(0,M.s)().updateAppShellState;return(0,T.useEffect)(function(){r({hideHeader:t,hideFooter:t})},[t,r]),null},nG=function(e){var t,r,n=e.Component,i=e.pageProps,o=void 0===i?{}:i,a=e.appShellProps,s=void 0===a?{}:a,u=null!==(r=n.getLayout)&&void 0!==r?r:er.Z,c=null!=o&&o.custom_404?n_.default:n,l=(0,A.useRouter)(),f=function(e){if(Array.isArray(e))return e}(t=(0,T.useState)(function(){var e,t;return null!==(e=null!==(t=s.hideHeader)&&void 0!==t?t:s.hideFooter)&&void 0!==e&&e}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{for(o=(r=r.call(e)).next;!(u=(n=o.call(r)).done)&&(s.push(n.value),2!==s.length);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,2)||nF(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],d=f[1];(0,T.useEffect)(function(){var e,t,r=new URLSearchParams(window.location.search).get("fromWebView");"true"===r?(document.cookie=nS.serialize("fromWebView","true",{path:"/",sameSite:"lax"}),e=!0):"false"===r?(document.cookie=nS.serialize("fromWebView","",{path:"/",sameSite:"lax",expires:new Date(0)}),e=!1):e="true"===nS.parse(document.cookie||"").fromWebView,e||null===(t=document.querySelector("style[data-webview-hide]"))||void 0===t||t.remove(),d(e)},[l.asPath]);var h=(0,T.useRef)(void 0);return(0,T.useEffect)(function(){h.current=document.referrer;var e=function(e){var t=new URL(e,window.location.origin),r=window.PARSELY;if(r&&r.beacon){var n=t.href;r.beacon.trackPageView({url:n,urlref:h.current,js:1})}},t=function(){var e=window.VIP_EXP;e&&e.runExperiments&&e.runExperiments()},r=function(e){if((0,L.dk)()){var t=nO(e);return t.includes("author")||(0,F.a7)(t),!0}return!1},n=null,i=function(e){h.current=window.location.href,window.rdcxreferrer=h.current,n&&(n(),n=null)},o=function(i){var o=i.split("?")[0];e(i),t(),r(o),n=nx()};return function(){var e=l.asPath.split("?")[0];if(!r(e)){var t=setInterval(function(){r(e)&&clearInterval(t)},500);setTimeout(function(){clearInterval(t)},1e4)}}(),n=nx(),l.events.on("routeChangeStart",i),l.events.on("routeChangeComplete",o),function(){l.events.off("routeChangeStart",i),l.events.off("routeChangeComplete",o),n&&n()}},[l.events]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(B.SV,nL({clientOnly:!0},nV)),(0,X.jsx)(G.Z,{visibility:o.isLB1Enabled?"block":"none"}),(0,X.jsxs)(U.Z,nL(nL({},s),{},{hideHeader:p,hideFooter:p,suppressHydrationWarning:!0,children:[(0,X.jsx)(nB,{hidden:p}),(0,X.jsx)(x(),{children:(0,X.jsx)("script",{dangerouslySetInnerHTML:{__html:J.dX}})}),(0,X.jsx)(Z,{}),(0,X.jsx)(u,{breadcrumbs:o.breadcrumbs,seo:o.seo,links:o.links,metaTags:o.metaTags,children:(0,X.jsx)(c,nL(nL({},o),{},{env:et().env}))})]})),(0,X.jsx)(P(),{id:"parsely-vip-js",src:"https://experiments.parsely.com/vip-experiments.js?apiKey=realtor.com",strategy:"lazyOnload"})]})};nG.getInitialProps=(h=nD().mark(function e(t){var r,n,i,o,a,s,u,c,l,f,p,d,h,y,g,v,m,b,E,w,_,O,S,T,A,I,k,x,N,P,M,L,F,U,B,G,q,z;return nD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=((a=t.ctx)||{}).pathname,u=a.req&&a.res,a&&null!=a&&a.res&&404===a.res.statusCode&&(a.res.setHeader("Cache-Control","no-cache, no-store, must-revalidate"),a.res.setHeader("Pragma","no-cache"),a.res.setHeader("Expires","0")),!u){e.next=15;break}return c=null===(f=a.req)||void 0===f?void 0:f.headers["user-agent"],l="realtor.com",d=nL({},console),"false"===nN.env.OPTIMIZELY_LOGS&&(nw.setLogger(null),d.log=function(){}),y=(h=et().amplitudeFeatureFlag).apiKey,g=h.deploymentKey,e.next=13,(0,C.T)({userId:null==a||null===(p=a.res)||void 0===p||null===(p=p.locals)||void 0===p?void 0:p.vst,ctx:a,amplitudeApiKey:y,deploymentKey:g});case 13:e.next=17;break;case 15:c=navigator.userAgent,l="realtor.com";case 17:return v=(0,V.l7)(c),e.next=20,R().getInitialProps(t);case 20:return E=(b=(null==(m=e.sent)?void 0:m.pageProps)||{}).appShellProps,w=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(b,nC),_=(0,nT.C)(s)||"",O=a.query.category||"",S=(0,nA.U)(Array.isArray(O)?O[0]:O)||"",A=(T=(0,D.O)(a)).getFeatureVariables,I=(0,T.isFeatureEnabled)(nR.y.FEATURES.MEDIA_NEWS_AND_INSIGHTS.KEY)||!1,k=(A(nR.y.FEATURES.MEDIA_NEWS_AND_INSIGHTS.KEY)||{}).variables,x=(0,nI.s)(_,S,k),N=I&&x,M="true"===(P=new URLSearchParams(u?(null===(r=a.req)||void 0===r||null===(r=r.url)||void 0===r?void 0:r.split("?")[1])||"":(null===(n=a.asPath)||void 0===n?void 0:n.split("?")[1])||"").get("fromWebView")),L="false"===P,F=nS.serialize("fromWebView","true",{path:"/",sameSite:"lax"}),U=nS.serialize("fromWebView","",{path:"/",sameSite:"lax",expires:new Date(0)}),B=function(e){if(a.res){var t=a.res.getHeader("Set-Cookie")||[],r=Array.isArray(t)?t:[String(t)];a.res.setHeader("Set-Cookie",[].concat(function(e){if(Array.isArray(e))return nU(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||nF(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]))}},G=u?(null===(i=a.req)||void 0===i?void 0:i.headers.cookie)||"":(null===(o=document)||void 0===o?void 0:o.cookie)||"",q="true"===nS.parse(G).fromWebView,z=M,L&&q?u?B(U):document.cookie=U:M&&!q?u?B(F):document.cookie=F:M||L||!q||(z=!0),e.abrupt("return",nL(nL({},m),{},{pageProps:nL(nL({},w),{},{deviceType:v,userAgent:c,isLB1Enabled:N}),appShellProps:nL(nL({},E),{},{pathname:s,env:et().env,shouldBrazeLoad:!0,hostname:l,hideHeader:z,hideFooter:z,headerProps:nL(nL({},null==E?void 0:E.headerProps),{},{"data-testid":"global-header"}),footerProps:nL(nL({},null==E?void 0:E.footerProps),{},{"data-testid":"global-footer"}),appContextProps:{userAgent:c,featureFlagProps:nL({},(0,j.g)(a))}})}));case 43:case"end":return e.stop()}},e)}),y=function(){var e=this,t=arguments;return new Promise(function(r,n){var i=h.apply(e,t);function o(e){nj(i,r,n,o,a,"next",e)}function a(e){nj(i,r,n,o,a,"throw",e)}o(void 0)})},function(e){return y.apply(this,arguments)});var nq=nG},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(39055)}])},59792:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n,i,o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};"function"==typeof SuppressedError&&SuppressedError,(n=i||(i={})).Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.PayloadTooLarge="payload_too_large",n.Invalid="invalid",n.Failed="failed",n.Timeout="Timeout",n.SystemError="SystemError";var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.send=function(e,t){var r,n,i,o;return r=this,n=void 0,i=void 0,o=function(){var r,n;return function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(r=i.sent()).text()];case 2:n=i.sent();try{return[2,this.buildResponse(JSON.parse(n))]}catch(e){return[2,this.buildResponse({code:r.status})]}return[2]}})},new(i||(i=Promise))(function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(a,s)}u((o=o.apply(r,n||[])).next())})},t}(function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,o,a,s,u,c,l,f,p,d,h,y,g,v,m,b,E,w,_,O,S=e.code||0,T=this.buildStatus(S);switch(T){case i.Success:return{status:T,statusCode:S,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(r=e.payload_size_bytes)&&void 0!==r?r:0,serverUploadTime:null!==(n=e.server_upload_time)&&void 0!==n?n:0}};case i.Invalid:return{status:T,statusCode:S,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(a=e.missing_field)&&void 0!==a?a:"",eventsWithInvalidFields:null!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(u=e.events_with_missing_fields)&&void 0!==u?u:{},eventsWithInvalidIdLengths:null!==(c=e.events_with_invalid_id_lengths)&&void 0!==c?c:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(f=e.exceeded_daily_quota_devices)&&void 0!==f?f:{},silencedDevices:null!==(p=e.silenced_devices)&&void 0!==p?p:[],silencedEvents:null!==(d=e.silenced_events)&&void 0!==d?d:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(y=e.throttled_events)&&void 0!==y?y:[]}};case i.PayloadTooLarge:return{status:T,statusCode:S,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case i.RateLimit:return{status:T,statusCode:S,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(E=e.throttled_users)&&void 0!==E?E:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(_=e.exceeded_daily_quota_users)&&void 0!==_?_:{},throttledEvents:null!==(O=e.throttled_events)&&void 0!==O?O:[]}};case i.Timeout:default:return{status:T,statusCode:S}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?i.Success:429===e?i.RateLimit:413===e?i.PayloadTooLarge:408===e?i.Timeout:e>=400&&e<500?i.Invalid:e>=500?i.Failed:i.Unknown},e}())},13988:function(e,t,r){"use strict";r.r(t),r.d(t,{Identify:function(){return G},Revenue:function(){return eu},Types:function(){return b},add:function(){return ec},createInstance:function(){return ea},flush:function(){return eb},groupIdentify:function(){return el},identify:function(){return ef},init:function(){return ep},logEvent:function(){return ed},remove:function(){return eh},revenue:function(){return ey},setGroup:function(){return eg},setOptOut:function(){return ev},track:function(){return em}});var n,i,o,a,s,u,c,l,f,p,d,h,y,g,v,m,b={};r.r(b),r.d(b,{IdentifyOperation:function(){return y},LogLevel:function(){return d},PluginType:function(){return f},RevenueProperty:function(){return g},ServerZone:function(){return h},SpecialEventType:function(){return v},Status:function(){return p},TransportType:function(){return m}});var E=function(e,t){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function w(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var _=function(){return(_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function O(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function S(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function T(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function I(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var R=function(e){return{promise:e||Promise.resolve()}};(n=f||(f={})).BEFORE="before",n.ENRICHMENT="enrichment",n.DESTINATION="destination",(i=p||(p={})).Unknown="unknown",i.Skipped="skipped",i.Success="success",i.RateLimit="rate_limit",i.PayloadTooLarge="payload_too_large",i.Invalid="invalid",i.Failed="failed",i.Timeout="Timeout",i.SystemError="SystemError";var k="".concat("AMP","_unsent"),x="https://api2.amplitude.com/2/httpapi",N=function(e,t){var r=Math.max(t,1);return e.reduce(function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e},[])},P=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=p.Unknown),{event:e,code:t,message:r}};(o=d||(d={}))[o.None=0]="None",o[o.Error=1]="Error",o[o.Warn=2]="Warn",o[o.Verbose=3]="Verbose",o[o.Debug=4]="Debug",(a=h||(h={})).US="US",a.EU="EU",a.STAGING="STAGING";var C="Amplitude Logger ",D=function(){function e(){this.logLevel=d.None}return e.prototype.disable=function(){this.logLevel=d.None},e.prototype.enable=function(e){void 0===e&&(e=d.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Verbose||console.log("".concat(C,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Warn||console.warn("".concat(C,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Error||console.error("".concat(C,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Debug||console.log("".concat(C,"[Debug]: ").concat(e.join(" ")))},e}(),j=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:d.Warn,loggerProvider:new D,optOut:!1,serverUrl:x,serverZone:h.US,useBatch:!1}},M=function(){function e(e){this._optOut=!1;var t,r,n,i,o=j();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(r=e.logLevel)&&void 0!==r?r:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.optOut=null!==(n=e.optOut)&&void 0!==n?n:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=L(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),L=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=j().serverZone),void 0===r&&(r=j().useBatch),e)return{serverUrl:e,serverZone:void 0};var n,i=["US","EU"].includes(t)?t:j().serverZone;return{serverZone:i,serverUrl:(n=r,i===h.EU?n?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":n?"https://api2.amplitude.com/batch":x)}};function F(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body))}catch(e){}return t}var U=function(){function e(){this.name="amplitude",this.type=f.DESTINATION,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return O(this,void 0,void 0,function(){var r,n=this;return S(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(k,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return r=i.sent(),this.saveEvents(),r&&r.length>0&&Promise.all(r.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return new Promise(function(r){t.addToQueue({event:e,attempts:0,callback:function(e){return r(e)},timeout:0})})},e.prototype.addToQueue=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t.filter(function(t){return t.attempts<e.config.flushMaxRetries?(t.attempts+=1,!0):(e.fulfillRequest([t],500,"Event rejected due to exceeded retry count"),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout){e.schedule(e.config.flushIntervalMillis);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)}),this.saveEvents()},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),O(this,void 0,void 0,function(){var t,r,n=this;return S(this,function(i){switch(i.label){case 0:return t=[],r=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):r.push(e)}),this.queue=r,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(N(t,this.config.flushQueueSize).map(function(t){return n.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),O(this,void 0,void 0,function(){var r,n,i,o,a;return S(this,function(s){switch(s.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(t,["extra"])}),options:{min_id_length:this.config.minIdLength}},s.label=1;case 1:return s.trys.push([1,3,,4]),n=L(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:if(null===(i=s.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(F(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:return o=s.sent(),this.config.loggerProvider.error(o),a=o instanceof Error?o.message:String(o),this.fulfillRequest(e,0,a),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var r=e.status;switch(r){case p.Success:this.handleSuccessResponse(e,t);break;case p.Invalid:this.handleInvalidResponse(e,t);break;case p.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case p.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(r,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var n=new Set(I(I(I(I([],A(Object.values(e.body.eventsWithInvalidFields)),!1),A(Object.values(e.body.eventsWithMissingFields)),!1),A(Object.values(e.body.eventsWithInvalidIdLengths)),!1),A(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(n.has(i)){r.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(F(e)),this.addToQueue.apply(this,I([],A(i),!1))},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(F(e)),this.config.flushQueueSize/=2,this.addToQueue.apply(this,I([],A(t),!1))},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(n),s=new Set(i),u=new Set(o),c=t.filter(function(t,n){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){r.fulfillRequest([t],e.statusCode,e.body.error);return}return u.has(n)&&(t.timeout=r.throttleTimeout),!0});c.length>0&&this.config.loggerProvider.warn(F(e)),this.addToQueue.apply(this,I([],A(c),!1))},e.prototype.handleOtherResponse=function(e){var t=this;this.addToQueue.apply(this,I([],A(e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e})),!1))},e.prototype.fulfillRequest=function(e,t,r){this.saveEvents(),e.forEach(function(e){return e.callback(P(e.event,t,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=Array.from(this.queue.map(function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e}();(s=y||(y={})).SET="$set",s.SET_ONCE="$setOnce",s.ADD="$add",s.APPEND="$append",s.PREPEND="$prepend",s.REMOVE="$remove",s.PREINSERT="$preInsert",s.POSTINSERT="$postInsert",s.UNSET="$unset",s.CLEAR_ALL="$clearAll",(u=g||(g={})).REVENUE_PRODUCT_ID="$productId",u.REVENUE_QUANTITY="$quantity",u.REVENUE_PRICE="$price",u.REVENUE_TYPE="$revenueType",u.REVENUE_CURRENCY="$currency",u.REVENUE="$revenue",(c=v||(v={})).IDENTIFY="$identify",c.GROUP_IDENTIFY="$groupidentify",c.REVENUE="revenue_amount";var V=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var r=e[t];if(!B(t,r))return!1}return!0},B=function(e,t){var r,n;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=T(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&V(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else if(null==t)return!1;else if("object"==typeof t)return V(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},G=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return _({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(y.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(y.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(y.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(y.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(y.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(y.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(y.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(y.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(y.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[y.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return!(void 0!==this._properties[y.CLEAR_ALL]||this._propertySet.has(t))&&(e===y.ADD?"number"==typeof r:e===y.UNSET||e===y.REMOVE||B(t,r))},e}(),q=function(e,t,r,n){var i;return _(_({},n),{event_type:v.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:((i={})[e]=t,i)})},z=function(e,t,r){var n,i=new G;return i.set(e,t),_(_({},r),{event_type:v.IDENTIFY,user_properties:i.getUserProperties(),groups:((n={})[e]=t,n)})},H=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){return O(this,void 0,void 0,function(){return S(this,function(r){switch(r.label){case 0:return[4,e.setup(t,this.client)];case 1:return r.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var r;return O(this,void 0,void 0,function(){var n,i;return S(this,function(o){switch(o.label){case 0:if(-1===(n=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[n],this.plugins.splice(n,1),[4,null===(r=i.teardown)||void 0===r?void 0:r.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(r){t.queue.push([e,r]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return O(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,c,l,p,d,h;return S(this,function(y){switch(y.label){case 0:if(!e)return[2];t=A(e,1)[0],r=A(e,2)[1],n=this.plugins.filter(function(e){return e.type===f.BEFORE}),y.label=1;case 1:y.trys.push([1,6,7,8]),o=(i=T(n)).next(),y.label=2;case 2:if(o.done)return[3,5];return[4,(0,o.value).execute(_({},t))];case 3:if(null===(a=y.sent()))return r({event:t,code:0,message:""}),[2];t=a,y.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return l={error:y.sent()},[3,8];case 7:try{o&&!o.done&&(p=i.return)&&p.call(i)}finally{if(l)throw l.error}return[7];case 8:s=this.plugins.filter(function(e){return e.type===f.ENRICHMENT}),y.label=9;case 9:y.trys.push([9,14,15,16]),c=(u=T(s)).next(),y.label=10;case 10:if(c.done)return[3,13];return[4,(0,c.value).execute(_({},t))];case 11:if(null===(a=y.sent()))return r({event:t,code:0,message:""}),[2];t=a,y.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return d={error:y.sent()},[3,16];case 15:try{c&&!c.done&&(h=u.return)&&h.call(u)}finally{if(d)throw d.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return e.type===f.DESTINATION}).map(function(e){var r=_({},t);return e.execute(r).catch(function(e){return P(r,0,String(e))})})).then(function(e){var t=A(e,1)[0];r(t)}),[2]}})})},e.prototype.flush=function(){return O(this,void 0,void 0,function(){var e,t=this;return S(this,function(r){switch(r.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return r.sent(),[4,Promise.all(this.plugins.filter(function(e){return e.type===f.DESTINATION}).map(function(e){return e.flush&&e.flush()}))];case 2:return r.sent(),[2]}})})},e}(),W=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new H(this),this.name=e}return e.prototype._init=function(e){return O(this,void 0,void 0,function(){return S(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),[2]}})})},e.prototype.runQueuedFunctions=function(e){return O(this,void 0,void 0,function(){var t,r,n,i,o;return S(this,function(a){switch(a.label){case 0:t=this[e],this[e]=[],a.label=1;case 1:a.trys.push([1,6,7,8]),n=(r=T(t)).next(),a.label=2;case 2:if(n.done)return[3,5];return[4,(0,n.value)()];case 3:a.sent(),a.label=4;case 4:return n=r.next(),[3,2];case 5:return[3,8];case 6:return i={error:a.sent()},[3,8];case 7:try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}return[7];case 8:return[2]}})})},e.prototype.track=function(e,t,r){var n=_(_(_({},"string"==typeof e?{event_type:e}:e),r),t&&{event_properties:t});return R(this.dispatch(n))},e.prototype.identify=function(e,t){var r=_(_({},t),{event_type:v.IDENTIFY,user_properties:e.getUserProperties()});return R(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var i=q(e,t,r,n);return R(this.dispatch(i))},e.prototype.setGroup=function(e,t,r){var n=z(e,t,r);return R(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=_(_({},t),{event_type:v.REVENUE,event_properties:e.getEventProperties()});return R(this.dispatch(r))},e.prototype.add=function(e){return this.config?R(this.timeline.register(e,this.config)):(this.q.push(this.add.bind(this,e)),R())},e.prototype.remove=function(e){return this.config?R(this.timeline.deregister(e,this.config)):(this.q.push(this.remove.bind(this,e)),R())},e.prototype.dispatchWithCallback=function(e,t){if(!this.config)return t(P(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return O(this,void 0,void 0,function(){var t=this;return S(this,function(r){return this.config?[2,this.process(e)]:[2,new Promise(function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))})]})})},e.prototype.process=function(e){return O(this,void 0,void 0,function(){var t,r;return S(this,function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),this.config.optOut)return[2,P(e,0,"Event skipped due to optOut config")];return[4,this.timeline.push(e)];case 1:return 200===(t=n.sent()).code?this.config.loggerProvider.log(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return r=n.sent(),this.config.loggerProvider.error(r),[2,t=P(e,0,String(r))];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.config){this.q.push(this.setOptOut.bind(this,!!e));return}this.config.optOut=!!e},e.prototype.flush=function(){return R(this.timeline.flush())},e}(),K=function(e){return function(){var t=_({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},Y=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=T(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},Q=function(e,t){return function(){var r,n,i={};try{for(var o=T(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=Y(e,s)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},$=function(e,t,r,n,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=r(),u=s.logger,c=s.logLevel;if(c&&c<d.Debug||!c||!u)return e.apply(i,o);var l={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};n&&l.states&&(l.states.before=n());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))}):(n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))),f}},J=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,J)},X=function(){function e(){this.name="context",this.type=f.BEFORE,this.eventId=0,this.library="amplitude-node-ts/".concat("1.3.8")}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t=this;return new Promise(function(r){var n=new Date().getTime();return r(_(_(_({time:n,insert_id:J(),plan:t.config.plan},t.config.ingestionMetadata&&{ingestion_metadata:{source_name:t.config.ingestionMetadata.sourceName,source_version:t.config.ingestionMetadata.sourceVersion}}),e),{event_id:t.eventId++,library:t.library}))})},e}(),Z=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,i,o,a,s,u,c,l,f,d,h,y,g,v,m,b,E,w,_,O,S=e.code||0,T=this.buildStatus(S);switch(T){case p.Success:return{status:T,statusCode:S,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(r=e.payload_size_bytes)&&void 0!==r?r:0,serverUploadTime:null!==(n=e.server_upload_time)&&void 0!==n?n:0}};case p.Invalid:return{status:T,statusCode:S,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(c=e.eps_threshold)&&void 0!==c?c:0,exceededDailyQuotaDevices:null!==(l=e.exceeded_daily_quota_devices)&&void 0!==l?l:{},silencedDevices:null!==(f=e.silenced_devices)&&void 0!==f?f:[],silencedEvents:null!==(d=e.silenced_events)&&void 0!==d?d:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(y=e.throttled_events)&&void 0!==y?y:[]}};case p.PayloadTooLarge:return{status:T,statusCode:S,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case p.RateLimit:return{status:T,statusCode:S,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(E=e.throttled_users)&&void 0!==E?E:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(_=e.exceeded_daily_quota_users)&&void 0!==_?_:{},throttledEvents:null!==(O=e.throttled_events)&&void 0!==O?O:[]}};case p.Timeout:default:return{status:T,statusCode:S}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?p.Success:429===e?p.RateLimit:413===e?p.PayloadTooLarge:408===e?p.Timeout:e>=400&&e<500?p.Invalid:e>=500?p.Failed:p.Unknown},e}(),ee=r(9639),et=r(46528),er=r(65565).Buffer,en=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.send=function(e,t){var r,n=this;if(e.startsWith("http://"))r=ee;else if(e.startsWith("https://"))r=et;else throw Error("Invalid server url");var i=new URL(e),o=JSON.stringify(t),a={headers:{"Content-Type":"application/json","Content-Length":er.byteLength(o)},hostname:i.hostname,method:"POST",path:i.pathname,port:i.port,protocol:i.protocol};return new Promise(function(e){var t=r.request(a,function(t){t.setEncoding("utf8");var r="";t.on("data",function(e){r+=e}),t.on("end",function(){if(t.complete&&r.length>0)try{var i=JSON.parse(r),o=n.buildResponse(i);e(o)}catch(r){e(n.buildResponse({code:t.statusCode}))}})});t.on("error",function(){return e(null)}),t.end(o)})},t}(Z),ei=function(e){function t(t,r){return e.call(this,_(_({transportProvider:new en},r),{apiKey:t}))||this}return w(t,e),t}(M),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.init=function(e,t){return void 0===e&&(e=""),R(this._init(_(_({},t),{apiKey:e})))},t.prototype._init=function(t){return O(this,void 0,void 0,function(){var r;return S(this,function(n){switch(n.label){case 0:if(this.initializing)return[2];return this.initializing=!0,r=new ei(t.apiKey,_({},t)),[4,e.prototype._init.call(this,r)];case 1:return n.sent(),[4,this.add(new U).promise];case 2:return n.sent(),[4,this.add(new X).promise];case 3:return n.sent(),this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 4:return n.sent(),[2]}})})},t}(W),ea=function(){var e=new eo;return{init:$(e.init.bind(e),"init",K(e),Q(e,["config"])),add:$(e.add.bind(e),"add",K(e),Q(e,["config.apiKey","timeline.plugins"])),remove:$(e.remove.bind(e),"remove",K(e),Q(e,["config.apiKey","timeline.plugins"])),track:$(e.track.bind(e),"track",K(e),Q(e,["config.apiKey","timeline.queue.length"])),logEvent:$(e.logEvent.bind(e),"logEvent",K(e),Q(e,["config.apiKey","timeline.queue.length"])),identify:$(e.identify.bind(e),"identify",K(e),Q(e,["config.apiKey","timeline.queue.length"])),groupIdentify:$(e.groupIdentify.bind(e),"groupIdentify",K(e),Q(e,["config.apiKey","timeline.queue.length"])),setGroup:$(e.setGroup.bind(e),"setGroup",K(e),Q(e,["config.apiKey","timeline.queue.length"])),revenue:$(e.revenue.bind(e),"revenue",K(e),Q(e,["config.apiKey","timeline.queue.length"])),flush:$(e.flush.bind(e),"flush",K(e),Q(e,["config.apiKey","timeline.queue.length"])),setOptOut:$(e.setOptOut.bind(e),"setOptOut",K(e),Q(e,["config"]))}},es=ea(),eu=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return V(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?_({},this.properties):{};return e[g.REVENUE_PRODUCT_ID]=this.productId,e[g.REVENUE_QUANTITY]=this.quantity,e[g.REVENUE_PRICE]=this.price,e[g.REVENUE_TYPE]=this.revenueType,e[g.REVENUE_CURRENCY]=this.currency,e[g.REVENUE]=this.revenue,e},e}();(l=m||(m={})).XHR="xhr",l.SendBeacon="beacon",l.Fetch="fetch";var ec=es.add,el=es.groupIdentify,ef=es.identify,ep=es.init,ed=es.logEvent,eh=es.remove,ey=es.revenue,eg=es.setGroup,ev=es.setOptOut,em=es.track,eb=es.flush},31155:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.10.1"},20940:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryAssignmentFilter=void 0;let n=r(84225),i=r(16839);class o{constructor(e,t=i.DAY_MILLIS){this.cache=new n.Cache(e,t)}shouldTrack(e){if(0===Object.keys(e.results).length)return!1;let t=e.canonicalize(),r=void 0==this.cache.get(t);return r&&this.cache.put(t,0),r}}t.InMemoryAssignmentFilter=o},16839: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.toEvent=t.AmplitudeAssignmentService=t.FLAG_TYPE_MUTUAL_EXCLUSION_GROUP=t.DAY_MILLIS=void 0;let i=r(56566);t.DAY_MILLIS=864e5,t.FLAG_TYPE_MUTUAL_EXCLUSION_GROUP="mutual-exclusion-group";class o{constructor(e,t){this.amplitude=e,this.assignmentFilter=t}track(e){return n(this,void 0,void 0,function*(){this.assignmentFilter.shouldTrack(e)&&this.amplitude.logEvent((0,t.toEvent)(e))})}}t.AmplitudeAssignmentService=o,t.toEvent=e=>{var r,n,o,a;let s={event_type:"[Experiment] Assignment",user_id:e.user.user_id,device_id:e.user.device_id,event_properties:{},user_properties:{}},u={},c={};for(let i in e.results){let l=e.results[i];if(!l.key)continue;let f=null===(r=l.metadata)||void 0===r?void 0:r.flagVersion,p=null===(n=l.metadata)||void 0===n?void 0:n.segmentName,d=null===(o=l.metadata)||void 0===o?void 0:o.flagType,h=null===(a=l.metadata)||void 0===a?void 0:a.default;s.event_properties[`${i}.variant`]=l.key,f&&p&&(s.event_properties[`${i}.details`]=`v${f} rule:${p}`),d!=t.FLAG_TYPE_MUTUAL_EXCLUSION_GROUP&&(h?c[`[Experiment] ${i}`]="-":u[`[Experiment] ${i}`]=l.key)}return s.user_properties.$set=u,s.user_properties.$unset=c,s.insert_id=`${s.user_id} ${s.device_id} ${(0,i.hashCode)(e.canonicalize())} ${Math.floor(e.timestamp/t.DAY_MILLIS)}`,s}},84968:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Assignment=void 0;class r{constructor(e,t){this.timestamp=Date.now(),this.user=e,this.results=t}canonicalize(){var e,t,r;let n=`${null===(e=this.user.user_id)||void 0===e?void 0:e.trim()} ${null===(t=this.user.device_id)||void 0===t?void 0:t.trim()} `;for(let e of Object.keys(this.results).sort()){let t=this.results[e];(null==t?void 0:t.key)&&(n+=e.trim()+" "+(null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.trim())+" ")}return n}}t.Assignment=r},80858:function(e,t,r){"use strict";var n=r(65565).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.AmplitudeCookie=void 0;let i=r(71418);class o{static cookieName(e,t=!1){if(t){if(!((null==e?void 0:e.length)<10))return"AMP_"+e.substring(0,10);throw Error("Invalid Amplitude API Key")}if((null==e?void 0:e.length)<6)throw Error("Invalid Amplitude API Key");return"amp_"+e.substring(0,6)}static parse(e,t=!1){let r;if(t){let t=n.from(e,"base64").toString("utf-8");try{let e=JSON.parse(decodeURIComponent(t));return{device_id:e.deviceId,user_id:e.userId}}catch(e){return new i.ConsoleLogger(!0).error(`Error parsing the Amplitude cookie: ${e.message}`),{}}}let o=e.split(".");if(o[1])try{r=n.from(o[1],"base64").toString("utf-8")}catch(e){r=void 0}return{device_id:o[0],user_id:r}}static generate(e,t=!1){if(!t)return e+"..........";let r=encodeURIComponent(JSON.stringify({deviceId:e}));return n.from(r).toString("base64")}}t.AmplitudeCookie=o},92509:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Experiment=void 0;let n=r(83051),i=r(99010),o=r(90681),a={},s={},u=(e,t)=>(a[e]||(a[e]=new o.RemoteEvaluationClient(e,t)),a[e]);t.Experiment={initialize:(e,t)=>u(e,t),initializeRemote:u,initializeLocal:(e,t)=>(s[e]||(s[e]=new i.LocalEvaluationClient(e,t,new n.InMemoryFlagConfigCache)),s[e])}},4169:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryFlagConfigCache=t.FlagConfigPoller=t.FlagConfigFetcher=t.LocalEvaluationClient=t.Experiment=t.RemoteEvaluationDefaults=t.Defaults=t.RemoteEvaluationClient=t.ExperimentClient=t.AmplitudeCookie=void 0;var n=r(80858);Object.defineProperty(t,"AmplitudeCookie",{enumerable:!0,get:function(){return n.AmplitudeCookie}});var i=r(90681);Object.defineProperty(t,"ExperimentClient",{enumerable:!0,get:function(){return i.ExperimentClient}}),Object.defineProperty(t,"RemoteEvaluationClient",{enumerable:!0,get:function(){return i.RemoteEvaluationClient}});var o=r(69694);Object.defineProperty(t,"Defaults",{enumerable:!0,get:function(){return o.Defaults}}),Object.defineProperty(t,"RemoteEvaluationDefaults",{enumerable:!0,get:function(){return o.RemoteEvaluationDefaults}});var a=r(92509);Object.defineProperty(t,"Experiment",{enumerable:!0,get:function(){return a.Experiment}});var s=r(99010);Object.defineProperty(t,"LocalEvaluationClient",{enumerable:!0,get:function(){return s.LocalEvaluationClient}});var u=r(4991);Object.defineProperty(t,"FlagConfigFetcher",{enumerable:!0,get:function(){return u.FlagConfigFetcher}});var c=r(78857);Object.defineProperty(t,"FlagConfigPoller",{enumerable:!0,get:function(){return c.FlagConfigPoller}});var l=r(83051);Object.defineProperty(t,"InMemoryFlagConfigCache",{enumerable:!0,get:function(){return l.InMemoryFlagConfigCache}})},83051: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryFlagConfigCache=void 0;class n{constructor(e,t={}){this.store=e,this.cache=t}getAllCached(){return Object.assign({},this.cache)}get(e){return r(this,void 0,void 0,function*(){return this.cache[e]})}getAll(){return r(this,void 0,void 0,function*(){return Object.assign({},this.cache)})}put(e,t){var n;return r(this,void 0,void 0,function*(){this.cache[e]=t,yield null===(n=this.store)||void 0===n?void 0:n.put(e,t)})}putAll(e){var t;return r(this,void 0,void 0,function*(){for(let t in e){let r=e[t];r&&(this.cache[t]=r)}yield null===(t=this.store)||void 0===t?void 0:t.putAll(e)})}delete(e){var t;return r(this,void 0,void 0,function*(){delete this.cache[e],yield null===(t=this.store)||void 0===t?void 0:t.delete(e)})}clear(){var e;return r(this,void 0,void 0,function*(){this.cache={},yield null===(e=this.store)||void 0===e?void 0:e.clear()})}}t.InMemoryFlagConfigCache=n},99010: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.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},s=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LocalEvaluationClient=void 0;let c=o(r(13988)),l=r(98283),f=u(r(96532)),p=r(84968),d=r(20940),h=r(16839),y=r(24689),g=r(81916),v=r(69694),m=r(69129),b=r(67626),E=r(71418),w=r(31476),_=r(80366),O=r(83051),S=r(73108),T=r(34509),A=r(95511),I=r(4991),R=r(78857),k=r(94128);class x{constructor(e,t,r,n=new y.FetchHttpClient(null==t?void 0:t.httpAgent),i=(e,t)=>new f.default(e,t)){var o,a,s;let u;this.config=(0,b.populateLocalConfigDefaults)(t);let c=new I.FlagConfigFetcher(e,n,this.config.serverUrl,this.config.debug);this.cache=new O.InMemoryFlagConfigCache(r,this.config.bootstrap),this.logger=new E.ConsoleLogger(this.config.debug),this.cohortStorage=new A.InMemoryCohortStorage,this.config.cohortSyncConfig&&(u=new S.CohortFetcher(this.config.cohortSyncConfig.apiKey,this.config.cohortSyncConfig.secretKey,n,null===(o=this.config.cohortSyncConfig)||void 0===o?void 0:o.cohortServerUrl,null===(a=this.config.cohortSyncConfig)||void 0===a?void 0:a.maxCohortSize,void 0,this.config.debug),this.cohortUpdater=new T.CohortPoller(u,this.cohortStorage,this.cache,Math.max(6e4,null===(s=this.config.cohortSyncConfig)||void 0===s?void 0:s.cohortPollingIntervalMillis),this.config.debug));let p=new R.FlagConfigPoller(c,this.cache,this.cohortStorage,u,this.config.flagConfigPollingIntervalMillis,this.config.debug);this.updater=this.config.streamUpdates?new k.FlagConfigStreamer(e,p,this.cache,i,this.config.streamFlagConnTimeoutMillis,1,1e3,15e3+Math.floor(2e3*Math.random()),this.config.streamServerUrl,this.cohortStorage,u,this.config.debug):p,this.config.assignmentConfig&&(this.config.assignmentConfig=Object.assign(Object.assign({},v.AssignmentConfigDefaults),this.config.assignmentConfig),this.assignmentService=this.createAssignmentService(this.config.assignmentConfig)),this.evaluation=new l.EvaluationEngine}createAssignmentService(e){let t=c.createInstance(),{apiKey:r,cacheCapacity:n}=e,i=s(e,["apiKey","cacheCapacity"]);return t.init(r,i),new h.AmplitudeAssignmentService(t,new d.InMemoryAssignmentFilter(n))}evaluateV2(e,t){var r;let n=this.cache.getAllCached();this.enrichUserWithCohorts(e,n),this.logger.debug("[Experiment] evaluate - user:",e,"flags:",n);let i=(0,w.convertUserToEvaluationContext)(e),o=(0,l.topologicalSort)(n,t),a=this.evaluation.evaluate(i,o);return null===(r=this.assignmentService)||void 0===r||r.track(new p.Assignment(e,a)),this.logger.debug("[Experiment] evaluate - variants: ",a),(0,_.evaluationVariantsToVariants)(a)}checkFlagsCohortsAvailable(e){let t=this.cohortStorage.getAllCohortIds();for(let r in e){let n=e[r],i=m.CohortUtils.setSubtract(n,t);if(i.size>0)return this.logger.error(`[Experiment] Flag ${r} has cohort ids ${[...i]} unavailable, evaluation may be incorrect`),!1}return!0}enrichUserWithCohorts(e,t){let r={},n={};for(let e in t){let i=m.CohortUtils.extractCohortIdsByGroupFromFlag(t[e]);m.CohortUtils.mergeValuesOfBIntoValuesOfA(n,i),r[e]=m.CohortUtils.mergeAllValues(i)}this.checkFlagsCohortsAvailable(r);let i=n[g.USER_GROUP_TYPE];if(e.user_id&&i&&0!=i.size&&(e.cohort_ids=Array.from(this.cohortStorage.getCohortsForUser(e.user_id,i))),e.groups)for(let t in e.groups){let r=e.groups[t];if(0==r.length)continue;let i=r[0],o=n[t];o&&0!=o.size&&(e.group_cohort_ids||(e.group_cohort_ids={}),t in e.group_cohort_ids||(e.group_cohort_ids[t]={}),e.group_cohort_ids[t][i]=Array.from(this.cohortStorage.getCohortsForGroup(t,i,o)))}}evaluate(e,t){return a(this,void 0,void 0,function*(){let r=this.evaluateV2(e,t);return(0,_.filterDefaultVariants)(r)})}start(){var e;return a(this,void 0,void 0,function*(){yield this.updater.start(),yield null===(e=this.cohortUpdater)||void 0===e?void 0:e.start()})}stop(){var e;this.updater.stop(),null===(e=this.cohortUpdater)||void 0===e||e.stop()}}t.LocalEvaluationClient=x},32799: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SdkCohortApi=t.CohortDownloadError=t.CohortMaxSizeExceededError=t.CohortClientRequestError=void 0;class n extends Error{}t.CohortClientRequestError=n;class i extends n{}t.CohortMaxSizeExceededError=i;class o extends Error{}t.CohortDownloadError=o;class a{constructor(e,t,r){this.cohortApiKey=e,this.serverUrl=t,this.httpClient=r}getCohort(e){return r(this,void 0,void 0,function*(){let t={Authorization:`Basic ${this.cohortApiKey}`};(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]=`${e.libraryName}/${e.libraryVersion}`);let r=`${this.serverUrl}/sdk/v1/cohort/${e.cohortId}?maxCohortSize=${e.maxCohortSize}${e.lastModified?`&lastModified=${e.lastModified}`:""}`,a=yield this.httpClient.request({requestUrl:r,method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis});if(200==a.status){let e=JSON.parse(a.body);return Array.isArray(e.memberIds)&&(e.memberIds=new Set(e.memberIds)),e}if(204!=a.status){if(413==a.status)throw new i(`Cohort size > ${e.maxCohortSize}`);if(400<=a.status&&a.status<500&&429!=a.status)throw new n(`Cohort client error response status ${a.status}, body ${a.body}`);else throw new o(`Cohort error response status ${a.status}, body ${a.body}`)}})}}t.SdkCohortApi=a},73108:function(e,t,r){"use strict";var n=r(65565).Buffer,i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.CohortFetcher=t.COHORT_CONFIG_TIMEOUT=void 0;let o=r(31155),a=r(24689),s=r(69694),u=r(71418),c=r(77680),l=r(29317),f=r(32799);t.COHORT_CONFIG_TIMEOUT=2e4;class p{constructor(e,t,r,i=s.CohortSyncConfigDefaults.cohortServerUrl,o=s.CohortSyncConfigDefaults.maxCohortSize,l=100,p=!1){this.inProgressCohorts={},this.mutex=new c.Mutex,this.executor=new c.Executor(4),this.cohortApi=new f.SdkCohortApi(n.from(e+":"+t).toString("base64"),i,new a.WrapperClient(r)),this.maxCohortSize=o,this.cohortRequestDelayMillis=l,this.logger=new u.ConsoleLogger(p)}static getKey(e,t){return`${e}_${t||""}`}fetch(e,r){return i(this,void 0,void 0,function*(){let n=yield this.mutex.lock(),a=p.getKey(e,r);this.inProgressCohorts[a]||(this.inProgressCohorts[a]=this.executor.run(()=>i(this,void 0,void 0,function*(){this.logger.debug("Start downloading",e);for(let n=0;n<3;n++)try{let n=yield this.cohortApi.getCohort({libraryName:"experiment-node-server",libraryVersion:o.version,cohortId:e,maxCohortSize:this.maxCohortSize,lastModified:r,timeoutMillis:t.COHORT_CONFIG_TIMEOUT}),i=yield this.mutex.lock();return delete this.inProgressCohorts[a],i(),this.logger.debug("Stop downloading",e),n}catch(e){if(2===n||e instanceof f.CohortMaxSizeExceededError||e instanceof f.CohortClientRequestError){let t=yield this.mutex.lock();throw delete this.inProgressCohorts[a],t(),e}yield(0,l.sleep)(this.cohortRequestDelayMillis)}})));let s=this.inProgressCohorts[a];return n(),s})}}t.CohortFetcher=p},34509: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.CohortPoller=void 0;let i=r(69129),o=r(71418);class a{constructor(e,t,r,n=6e4,i=!1){this.fetcher=e,this.storage=t,this.flagCache=r,this.pollingIntervalMillis=n,this.logger=new o.ConsoleLogger(i)}start(e){return n(this,void 0,void 0,function*(){this.poller||(this.logger.debug("[Experiment] cohort poller - start"),this.poller=setInterval(()=>n(this,void 0,void 0,function*(){try{yield this.update(e)}catch(e){this.logger.debug("[Experiment] cohort update failed",e)}}),this.pollingIntervalMillis))})}stop(){this.poller&&(this.logger.debug("[Experiment] cohort poller - stop"),clearTimeout(this.poller),this.poller=void 0)}update(e){return n(this,void 0,void 0,function*(){let t=!1,r=[];for(let e of i.CohortUtils.extractCohortIds((yield this.flagCache.getAll()))){let n;this.logger.debug(`[Experiment] updating cohort ${e}`);let i=this.storage.getCohort(e);i&&(n=i.lastModified),r.push(this.fetcher.fetch(e,n).then(e=>{e&&(this.storage.put(e),t=!0)}).catch(e=>{this.logger.error("[Experiment] cohort poll failed",e)}))}yield Promise.all(r),this.logger.debug(`[Experiment] cohort polled, changed: ${t}`),e&&t&&(yield e(this.storage))})}}t.CohortPoller=a},95511:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryCohortStorage=void 0;let n=r(81916);class i{constructor(){this.store={}}getAllCohortIds(){return new Set(Object.keys(this.store))}getCohort(e){return e in this.store?this.store[e]:void 0}getCohortsForUser(e,t){return this.getCohortsForGroup(n.USER_GROUP_TYPE,e,t)}getCohortsForGroup(e,t,r){var n,i;let o=new Set;for(let a of r)(null===(n=this.store[a])||void 0===n?void 0:n.groupType)==e&&(null===(i=this.store[a])||void 0===i?void 0:i.memberIds.has(t))&&o.add(a);return o}put(e){this.store[e.cohortId]=e}delete(e){delete this.store[e]}}t.InMemoryCohortStorage=i},4991: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.FlagConfigFetcher=void 0;let i=r(98283),o=r(31155),a=r(24689),s=r(69694),u=r(71418);class c{constructor(e,t,r=s.LocalEvaluationDefaults.serverUrl,n=!1){this.apiKey=e,this.serverUrl=r,this.flagApi=new i.SdkFlagApi(e,r,new a.WrapperClient(t)),this.logger=new u.ConsoleLogger(n)}fetch(){return n(this,void 0,void 0,function*(){let e=this.flagApi.getFlags({libraryName:"experiment-node-server",libraryVersion:o.version,evaluationMode:"local",timeoutMillis:5e3});return this.receiver&&this.receiver(JSON.stringify(e)),e})}setRawReceiver(e){this.receiver=e}}t.FlagConfigFetcher=c},78857: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.FlagConfigPoller=void 0;let i=r(69694),o=r(61221),a=r(33273),s={attempts:5,min:1,max:1,scalar:1};class u extends a.FlagConfigUpdaterBase{constructor(e,t,r,n,o=i.LocalEvaluationDefaults.flagConfigPollingIntervalMillis,a=!1){super(t,r,n,a),this.fetcher=e,this.pollingIntervalMillis=o}start(e){let t=Object.create(null,{_update:{get:()=>super._update}});return n(this,void 0,void 0,function*(){if(!this.poller){this.logger.debug("[Experiment] poller - start"),this.poller=setInterval(()=>n(this,void 0,void 0,function*(){try{yield this.update(e)}catch(e){this.logger.debug("[Experiment] flag config update failed",e)}}),this.pollingIntervalMillis);try{let r=yield(0,o.doWithBackoffFailLoudly)(()=>n(this,void 0,void 0,function*(){return yield this.fetcher.fetch()}),s);yield t._update.call(this,r,e)}catch(e){throw this.logger.error("[Experiment] flag config initial poll failed, stopping",e),this.stop(),e}}})}stop(){this.poller&&(this.logger.debug("[Experiment] poller - stop"),clearTimeout(this.poller),this.poller=void 0)}update(e){let t=Object.create(null,{_update:{get:()=>super._update}});return n(this,void 0,void 0,function*(){this.logger.debug("[Experiment] updating flag configs");let r=yield this.fetcher.fetch();yield t._update.call(this,r,e)})}}t.FlagConfigPoller=u},60251: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SdkStreamFlagApi=void 0;let i=r(6458);class o{constructor(e,t,r,n,o=1e3,a=2,s=1e3){this.isClosedAndNotTrying=!0,this.api=new i.SdkStream(e,t+"/sdk/stream/v1/flags",r,n),this.streamFlagConnTimeoutMillis=Math.max(0,o),this.streamFlagTryAttempts=Math.max(1,a),this.streamFlagTryDelayMillis=Math.max(0,s)}connectTry(e){let t;return new Promise((r,a)=>{this.api.onUpdate=e=>n(this,void 0,void 0,function*(){t&&clearTimeout(t);try{o.parseFlagConfigs(e)}catch(e){return a(i.DEFAULT_STREAM_ERR_EVENTS.DATA_UNPARSABLE)}this.api.onUpdate=e=>this.handleNewMsg(e,!1),this.api.onError=e=>this.errorAndRetry(e);try{yield this.handleNewMsg(e,!0),r()}catch(e){a()}});let s=e=>n(this,void 0,void 0,function*(){t&&clearTimeout(t),a(e)});this.api.onError=s,this.api.connect(e),t=setTimeout(()=>{s(i.DEFAULT_STREAM_ERR_EVENTS.TIMEOUT)},this.streamFlagConnTimeoutMillis)})}connect(e){return n(this,void 0,void 0,function*(){if(!this.isClosedAndNotTrying)return;this.isClosedAndNotTrying=!1,this.options=e;let t=this.streamFlagTryAttempts,r=this.streamFlagTryDelayMillis;for(let n=0;n<t;n++)try{return yield this.connectTry(e)}catch(e){if(this.isClosedAndNotTrying)return;if(this.isFatal(e)||n==t-1)throw this.close(),e;if(this.closeForRetry(),yield new Promise(e=>setTimeout(e,r)),this.isClosedAndNotTrying)return}})}close(){this.closeForRetry(),this.isClosedAndNotTrying=!0}closeForRetry(){this.api.close()}get isClosed(){return this.isClosedAndNotTrying}isFatal(e){return e&&(null==e?void 0:e.status)==501}errorAndRetry(e){return n(this,void 0,void 0,function*(){this.isFatal(e)?(this.close(),yield this.fatalErr(e)):(this.close(),this.connect(this.options).catch(e=>{this.fatalErr(e)}))})}fatalErr(e){return n(this,void 0,void 0,function*(){if(this.onError)try{yield this.onError(e)}catch(e){}})}handleNewMsg(e,t){return n(this,void 0,void 0,function*(){let r;try{r=o.parseFlagConfigs(e)}catch(e){this.errorAndRetry(i.DEFAULT_STREAM_ERR_EVENTS.DATA_UNPARSABLE);return}let n=t&&this.onInitUpdate?this.onInitUpdate:this.onUpdate;if(n)try{yield n(r)}catch(e){if(t)throw e}})}static parseFlagConfigs(e){return JSON.parse(e).reduce((e,t)=>(e[t.key]=t,e),{})}}t.SdkStreamFlagApi=o},94128: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.FlagConfigStreamer=void 0;let i=r(31155),o=r(69694),a=r(60251),s=r(33273);class u extends s.FlagConfigUpdaterBase{constructor(e,t,r,n,i=o.LocalEvaluationDefaults.streamFlagConnTimeoutMillis,s,u,c,l=o.LocalEvaluationDefaults.serverUrl,f,p,d=!1){super(r,f,p,d),this.logger.debug("[Experiment] streamer - init"),this.poller=t,this.stream=new a.SdkStreamFlagApi(e,l,n,i,i,s,u),this.streamFlagRetryDelayMillis=c}start(e){let t=Object.create(null,{_update:{get:()=>super._update}});return n(this,void 0,void 0,function*(){this.stream.onError=t=>{this.logger.debug(`[Experiment] streamer - onError, fallback to poller, err status: ${null==t?void 0:t.status}, err message: ${null==t?void 0:t.message}, err ${t}`),this.poller.start(e),this.startRetryStreamInterval()},this.stream.onInitUpdate=r=>n(this,void 0,void 0,function*(){this.logger.debug("[Experiment] streamer - receives updates"),yield t._update.call(this,r,e),this.logger.debug("[Experiment] streamer - start flags stream success")}),this.stream.onUpdate=r=>n(this,void 0,void 0,function*(){this.logger.debug("[Experiment] streamer - receives updates"),yield t._update.call(this,r,e)});try{this.clearRetryStreamInterval(),yield this.stream.connect({libraryName:"experiment-node-server",libraryVersion:i.version}),this.poller.stop()}catch(t){this.logger.debug(`[Experiment] streamer - start stream failed, fallback to poller, err status: ${null==t?void 0:t.status}, err message: ${null==t?void 0:t.message}, err ${t}`),yield this.poller.start(e),this.startRetryStreamInterval()}})}stop(){this.logger.debug("[Experiment] streamer - stop"),this.clearRetryStreamInterval(),this.poller.stop(),this.stream.close()}update(e){return n(this,void 0,void 0,function*(){this.poller.update(e)})}startRetryStreamInterval(){this.clearRetryStreamInterval(),this.streamRetryInterval=setInterval(()=>{this.logger.debug("[Experiment] streamer - retry stream"),this.stream.connect().then(()=>{this.logger.debug("[Experiment] streamer - retry stream success"),this.clearRetryStreamInterval(),this.poller.stop()}).catch(()=>{})},this.streamFlagRetryDelayMillis)}clearRetryStreamInterval(){this.streamRetryInterval&&(clearInterval(this.streamRetryInterval),this.streamRetryInterval=void 0)}}t.FlagConfigStreamer=u},33273: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.FlagConfigUpdaterBase=void 0;let i=r(69129),o=r(71418);class a{constructor(e,t,r,n=!1){this.cache=e,this.cohortFetcher=r,this.cohortStorage=t,this.logger=new o.ConsoleLogger(n)}_update(e,t){return n(this,void 0,void 0,function*(){let r=!1;t&&!Object.is((yield this.cache.getAll()),e)&&(r=!0);let n=i.CohortUtils.extractCohortIds(e);n&&n.size>0&&!this.cohortFetcher?this.logger.error("Cohorts found in flag configs but no cohort download configured"):yield this.downloadNewCohorts(n),yield this.cache.clear(),yield this.cache.putAll(e),yield this.removeUnusedCohorts(n),r&&(yield t(this.cache))})}downloadNewCohorts(e){var t;return n(this,void 0,void 0,function*(){let r=null===(t=this.cohortStorage)||void 0===t?void 0:t.getAllCohortIds(),n=i.CohortUtils.setSubtract(e,r),o=new Set,a=[...n].map(e=>{var t;return null===(t=this.cohortFetcher)||void 0===t?void 0:t.fetch(e).then(e=>{e&&this.cohortStorage.put(e)}).catch(t=>{this.logger.error(`[Experiment] Cohort download failed ${e}`,t),o.add(e)})});return yield Promise.all(a),o})}removeUnusedCohorts(e){return n(this,void 0,void 0,function*(){i.CohortUtils.setSubtract(this.cohortStorage.getAllCohortIds(),e).forEach(e=>{this.cohortStorage.delete(e)})})}}t.FlagConfigUpdaterBase=a},90681: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ExperimentClient=t.RemoteEvaluationClient=void 0;let i=r(98283),o=r(31155),a=r(24689),s=r(67626),u=r(29317),c=r(80366);class l{constructor(e,t){var r;this.apiKey=e,this.config=(0,s.populateRemoteConfigDefaults)(t),this.evaluationApi=new i.SdkEvaluationApi(e,this.config.serverUrl,new a.WrapperClient(new a.FetchHttpClient(null===(r=this.config)||void 0===r?void 0:r.httpAgent)))}fetchV2(e,t){return n(this,void 0,void 0,function*(){if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetching variants for user: ",e);try{return yield this.doFetch(e,this.config.fetchTimeoutMillis,t)}catch(r){if(console.error("[Experiment] Fetch failed: ",r),this.shouldRetryFetch(r))try{return yield this.retryFetch(e,t,r)}catch(e){console.error(e)}throw r}})}fetch(e,t){return n(this,void 0,void 0,function*(){try{let r=yield this.fetchV2(e,t);return(0,c.filterDefaultVariants)(r)}catch(e){return console.error("[Experiment] Failed to fetch variants: ",e),{}}})}doFetch(e,t,r){return n(this,void 0,void 0,function*(){let n=this.addContext(e||{}),i=yield this.evaluationApi.getVariants(n,{flagKeys:null==r?void 0:r.flagKeys,timeoutMillis:t});return this.debug("[Experiment] Fetched variants: ",i),(0,c.evaluationVariantsToVariants)(i)})}retryFetch(e,t,r){return n(this,void 0,void 0,function*(){this.debug("[Experiment] Retrying fetch");let n=this.config.fetchRetryBackoffMinMillis;for(let i=0;i<this.config.fetchRetries;i++){yield(0,u.sleep)(n);try{return yield this.doFetch(e,this.config.fetchRetryTimeoutMillis,t)}catch(e){console.error("[Experiment] Retry falied: ",e),r=e}n=Math.min(n*this.config.fetchRetryBackoffScalar,this.config.fetchRetryBackoffMaxMillis)}throw r})}addContext(e){return Object.assign({library:`experiment-node-server/${o.version}`},e)}debug(e,...t){this.config.debug&&console.debug(e,...t)}shouldRetryFetch(e){return!(e instanceof i.FetchError)||e.statusCode<400||e.statusCode>=500||429===e.statusCode}}t.RemoteEvaluationClient=l;class f extends l{constructor(e,t){super(e,t)}}t.ExperimentClient=f},24689: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WrapperClient=t.FetchHttpClient=void 0;let o=i(r(9639)),a=i(r(46528)),s=i(r(16877)),u=new a.default.Agent({keepAlive:!0});class c{constructor(e){this.httpAgent=e||u}request(e,t,r,n,i){return new Promise((u,c)=>{if(0===i){c(Error("Response timed out"));return}let l=s.default.parse(e),f=Object.assign(Object.assign({},l),{method:t,headers:r,body:n,timeout:i});"https:"===l.protocol&&(f.agent=this.httpAgent);let p=("http:"===l.protocol?o.default:a.default).request(f);p.on("response",e=>{e.setEncoding("utf-8");let t="";e.on("data",e=>{t+=e}),e.on("end",()=>{u({status:e.statusCode,body:t})})}),p.on("timeout",()=>{p.destroy(Error("Socket connection timed out"))}),p.on("error",e=>{c(e)}),"GET"!==t&&n&&p.write(n),p.end()})}}t.FetchHttpClient=c;class l{constructor(e){this.client=e}request(e){return n(this,void 0,void 0,function*(){return yield this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)})}}t.WrapperClient=l},6458: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SdkStream=t.DEFAULT_STREAM_ERR_EVENTS=void 0,t.DEFAULT_STREAM_ERR_EVENTS={TIMEOUT:{message:"timeout"},DATA_UNPARSABLE:{message:"stream data parse error"},KEEP_ALIVE_FAILURE:{message:"keep alive fail"}};class n{constructor(e,t,r,n=1e3){this.deploymentKey=e,this.serverUrl=t,this.eventSourceFactory=r,this.streamConnTimeoutMillis=n}connect(e){return r(this,void 0,void 0,function*(){if(this.eventSource)return;let n={Authorization:`Api-Key ${this.deploymentKey}`};(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(n["X-Amp-Exp-Library"]=`${e.libraryName}/${e.libraryVersion}`);let i=this.eventSourceFactory(this.serverUrl,{headers:n});this.eventSource=i,i.onerror=e=>e&&this.error(e),i.onmessage=e=>this.handleNewMsg(e),i.onopen=e=>{e&&(null==e?void 0:e.type)&&"open"==e.type&&(this.reconnectionTimeout&&clearTimeout(this.reconnectionTimeout),this.reconnectionTimeout=setTimeout(()=>r(this,void 0,void 0,function*(){i.readyState==i.OPEN&&(this.close(),this.connect())}),Math.floor(36e4*Math.random()+72e4)),this.setKeepAliveExpiry())},this.initConnTimeout&&clearTimeout(this.initConnTimeout),this.initConnTimeout=setTimeout(()=>{i.readyState==i.CONNECTING&&this.error(t.DEFAULT_STREAM_ERR_EVENTS.TIMEOUT)},this.streamConnTimeoutMillis)})}close(){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0),this.initConnTimeout&&(clearTimeout(this.initConnTimeout),this.initConnTimeout=void 0),this.reconnectionTimeout&&(clearTimeout(this.reconnectionTimeout),this.reconnectionTimeout=void 0),this.keepAliveTimeout&&(clearTimeout(this.keepAliveTimeout),this.keepAliveTimeout=void 0)}error(e){return r(this,void 0,void 0,function*(){if(this.close(),this.onError)try{yield this.onError(e)}catch(e){}})}handleNewMsg(e){return r(this,void 0,void 0,function*(){if(e.data&&(this.setKeepAliveExpiry()," "!=e.data&&this.onUpdate))try{yield this.onUpdate(e.data)}catch(e){}})}setKeepAliveExpiry(){this.keepAliveTimeout&&(clearTimeout(this.keepAliveTimeout),this.keepAliveTimeout=void 0),this.eventSource&&(this.keepAliveTimeout=setTimeout(()=>{this.error(t.DEFAULT_STREAM_ERR_EVENTS.KEEP_ALIVE_FAILURE)},17e3))}}t.SdkStream=n},81916:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_GROUP_TYPE=void 0,t.USER_GROUP_TYPE="User"},69694:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EU_SERVER_URLS=t.CohortSyncConfigDefaults=t.AssignmentConfigDefaults=t.LocalEvaluationDefaults=t.Defaults=t.RemoteEvaluationDefaults=void 0,t.RemoteEvaluationDefaults={debug:!1,serverZone:"us",serverUrl:"https://api.lab.amplitude.com",fetchTimeoutMillis:1e4,fetchRetries:8,fetchRetryBackoffMinMillis:500,fetchRetryBackoffMaxMillis:1e4,fetchRetryBackoffScalar:1.5,fetchRetryTimeoutMillis:1e4,httpAgent:null},t.Defaults={debug:!1,serverZone:"us",serverUrl:"https://api.lab.amplitude.com",fetchTimeoutMillis:1e4,fetchRetries:8,fetchRetryBackoffMinMillis:500,fetchRetryBackoffMaxMillis:1e4,fetchRetryBackoffScalar:1.5,fetchRetryTimeoutMillis:1e4,httpAgent:null},t.LocalEvaluationDefaults={debug:!1,serverZone:"us",serverUrl:"https://api.lab.amplitude.com",bootstrap:{},flagConfigPollingIntervalMillis:3e4,httpAgent:null,streamUpdates:!1,streamServerUrl:"https://stream.lab.amplitude.com",streamFlagConnTimeoutMillis:1500},t.AssignmentConfigDefaults={cacheCapacity:65536},t.CohortSyncConfigDefaults={cohortServerUrl:"https://cohort-v2.lab.amplitude.com",maxCohortSize:2147483647,cohortPollingIntervalMillis:6e4},t.EU_SERVER_URLS={name:"eu",remote:"https://api.lab.eu.amplitude.com",flags:"https://flag.lab.eu.amplitude.com",stream:"https://stream.lab.eu.amplitude.com",cohort:"https://cohort-v2.lab.eu.amplitude.com"}},61221: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.doWithBackoffFailLoudly=t.doWithBackoff=void 0;let i=r(29317);t.doWithBackoff=function(e,t){return n(this,void 0,void 0,function*(){let r=t.min;for(let n=0;n<t.attempts;n++)try{return yield e()}catch(e){yield(0,i.sleep)(r),r=Math.min(r*t.scalar,t.max)}})},t.doWithBackoffFailLoudly=function(e,t){return n(this,void 0,void 0,function*(){let r=t.min;for(let n=0;n<t.attempts;n++)try{return yield e()}catch(e){if(n===t.attempts-1)throw e;yield(0,i.sleep)(r),r=Math.min(r*t.scalar,t.max)}})}},84225:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0;class r{constructor(e){this.prev=void 0,this.next=void 0,this.data=e}}class n{constructor(e,t){this.capacity=e,this.ttlMillis=t,this.cache=new Map,this.head=void 0,this.tail=void 0}put(e,t){this.cache.has(e)?this.removeFromList(e):this.cache.size>=this.capacity&&this.evictLRU();let n=new r({key:e,value:t,createdAt:Date.now()});this.cache.set(e,n),this.insertToList(n)}get(e){let t=this.cache.get(e);if(t){if(Date.now()-t.data.createdAt>this.ttlMillis){this.remove(e);return}return this.removeFromList(e),this.insertToList(t),t.data.value}}remove(e){this.removeFromList(e),this.cache.delete(e)}clear(){this.cache.clear(),this.head=void 0,this.tail=void 0}evictLRU(){this.head&&this.remove(this.head.data.key)}removeFromList(e){let t=this.cache.get(e);t&&(t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev)}insertToList(e){this.tail?(this.tail.next=e,e.prev=this.tail,e.next=void 0):this.head=e,this.tail=e}}t.Cache=n},69129:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CohortUtils=void 0;let n=r(98283),i=r(81916);class o{static isCohortFilter(e){return(e.op==n.EvaluationOperator.SET_CONTAINS_ANY||e.op==n.EvaluationOperator.SET_DOES_NOT_CONTAIN_ANY)&&0!=e.selector.length&&"cohort_ids"==e.selector[e.selector.length-1]}static extractCohortIds(e){let t={};for(let r in e)t[r]=o.mergeAllValues(o.extractCohortIdsByGroupFromFlag(e[r]));return o.mergeAllValues(t)}static extractCohortIdsByGroupFromFlag(e){let t={};if(e.segments&&Array.isArray(e.segments)){for(let r of e.segments)if(r&&r.conditions){for(let e of r.conditions)for(let r of e)if(o.isCohortFilter(r)){let e;if(r.selector.length>2){if("user"==r.selector[1])e=i.USER_GROUP_TYPE;else{if(!r.selector.includes("groups"))continue;e=r.selector[2]}e in t||(t[e]=new Set),r.values.forEach(t[e].add,t[e])}}}}return t}static mergeValuesOfBIntoValuesOfA(e,t){for(let r in t)r in e||(e[r]=new Set),t[r].forEach(e[r].add,e[r])}static mergeAllValues(e){let t=new Set;for(let r in e)e[r].forEach(t.add,t);return t}static setSubtract(e,t){let r=new Set;return e.forEach(e=>{t.has(e)||r.add(e)}),r}}t.CohortUtils=o},67626:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateLocalConfigDefaults=t.populateRemoteConfigDefaults=void 0;let n=r(4169),i=r(69694);t.populateRemoteConfigDefaults=e=>{let t=Object.assign(Object.assign({},n.RemoteEvaluationDefaults),e),r=t.serverZone.toLowerCase()===i.EU_SERVER_URLS.name;return t.serverZone=r?"eu":"us",(null==e?void 0:e.serverUrl)||(t.serverUrl=r?i.EU_SERVER_URLS.remote:n.RemoteEvaluationDefaults.serverUrl),t},t.populateLocalConfigDefaults=e=>{let t=Object.assign(Object.assign({},i.LocalEvaluationDefaults),e),r=t.serverZone.toLowerCase()===i.EU_SERVER_URLS.name;return t.serverZone=r?"eu":"us",(null==e?void 0:e.serverUrl)||(t.serverUrl=r?i.EU_SERVER_URLS.flags:i.LocalEvaluationDefaults.serverUrl),(null==e?void 0:e.streamServerUrl)||(t.streamServerUrl=r?i.EU_SERVER_URLS.stream:i.LocalEvaluationDefaults.streamServerUrl),(null==e?void 0:e.cohortSyncConfig)&&!(null==e?void 0:e.cohortSyncConfig.cohortServerUrl)&&(t.cohortSyncConfig.cohortServerUrl=r?i.EU_SERVER_URLS.cohort:i.CohortSyncConfigDefaults.cohortServerUrl),t}},56566:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=void 0,t.hashCode=function(e){let t=0;if(0===e.length)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return t}},71418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogger=void 0;class r{constructor(e){this.isDebug=e}debug(e,...t){this.isDebug&&console.debug(e,...t)}warn(e,...t){console.warn(e,...t)}error(e,...t){console.error(e,...t)}}t.ConsoleLogger=r},77680: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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.Executor=t.Semaphore=t.Mutex=void 0;class n{constructor(){this._locking=Promise.resolve()}lock(){let e;let t=new Promise(t=>e=t),r=this._locking.then(()=>e);return this._locking=this._locking.then(()=>t),r}}t.Mutex=n;class i{constructor(e){this.queue=[],this.running=0,this.limit=e}get(){let e;let t=new Promise(t=>{e=t});return this.queue.push({willResolve:e}),this.tryRunNext(),t}tryRunNext(){if(this.running>=this.limit||0==this.queue.length)return;this.running++;let{willResolve:e}=this.queue.shift();e(()=>{this.running--,this.tryRunNext()})}}t.Semaphore=i;class o{constructor(e){this.semaphore=new i(e)}run(e){return r(this,void 0,void 0,function*(){let t=yield this.semaphore.get();try{return yield e()}finally{t()}})}}t.Executor=o},29317:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=e=>{if(0!==e)return new Promise(t=>setTimeout(t,e))}},31476:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertUserToEvaluationContext=void 0,t.convertUserToEvaluationContext=e=>{var t,r;if(!e)return{};let n=e.groups,i=e.group_properties,o=e.group_cohort_ids,a={};e=Object.assign({},e),delete e.groups,delete e.group_properties,delete e.group_cohort_ids,Object.keys(e).length>0&&(a.user=e);let s={};if(!n)return a;for(let e of Object.keys(n)){let a=n[e];if(a.length>0&&a[0]){let n=a[0],u={group_name:n},c=null===(t=null==i?void 0:i[e])||void 0===t?void 0:t[n];c&&Object.keys(c).length>0&&(u.group_properties=c);let l=null===(r=null==o?void 0:o[e])||void 0===r?void 0:r[n];l&&Object.keys(l).length>0&&(u.cohort_ids=l),s[e]=u}}return Object.keys(s).length>0&&(a.groups=s),a}},80366:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluationVariantsToVariants=t.evaluationVariantToVariant=t.filterDefaultVariants=void 0,t.filterDefaultVariants=e=>{var t,r;let n={};for(let i in e){let o=e[i],a=null===(t=null==o?void 0:o.metadata)||void 0===t?void 0:t.default,s=(null===(r=null==o?void 0:o.metadata)||void 0===r?void 0:r.deployed)||!0;!a&&s&&(n[i]=o)}return n},t.evaluationVariantToVariant=e=>{let t;return"string"==typeof e.value?t=e.value:null!==e.value&&void 0!==e.value&&(t=JSON.stringify(e.value)),Object.assign(Object.assign({},e),{value:t})},t.evaluationVariantsToVariants=e=>{let r={};return Object.keys(e).forEach(n=>{r[n]=(0,t.evaluationVariantToVariant)(e[n])}),r}},98283:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{EvaluationEngine:function(){return O},EvaluationOperator:function(){return p},FetchError:function(){return Z},Poller:function(){return en},SdkEvaluationApi:function(){return ee},SdkFlagApi:function(){return et},safeGlobal:function(){return er},topologicalSort:function(){return S}});var i=r(65565).Buffer,o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function f(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var p={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},d=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return Uint8Array.from(t)},h=function(e,t){void 0===t&&(t=0);for(var r=d(e),n=r.length,i=n>>2,o=t,a=0;a<i;a++)o=y(m(r,a<<2),o);var s=i<<2,u=0;switch(n-s){case 3:u^=r[s+2]<<16,u^=r[s+1]<<8,u^=r[s],o^=u=Math.imul(u=v(u=Math.imul(u,-862048943),15),461845907);break;case 2:u^=r[s+1]<<8,u^=r[s],o^=u=Math.imul(u=v(u=Math.imul(u,-862048943),15),461845907);break;case 1:u^=r[s],o^=u=Math.imul(u=v(u=Math.imul(u,-862048943),15),461845907)}return g(o^=n)>>>0},y=function(e,t){var r=e,n=t;return n^=r=Math.imul(r=v(r=Math.imul(r,-862048943),15),461845907),(n=Math.imul(n=v(n,13),5))+-430675100|0},g=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16},v=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var n=(e&4294967295<<r-t>>>0)>>>0>>>r-t>>>0;return(e<<t|n)>>>0},m=function(e,t){return void 0===t&&(t=0),b(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},b=function(e){return(-16777216&e)>>>24|(16711680&e)>>>8|(65280&e)<<8|(255&e)<<24},E=function(e,t){var r,n;if(t&&0!==t.length){try{for(var i=c(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(e)return e}},w="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),_=function(){function e(e,t,r,n){void 0===n&&(n=void 0),this.major=e,this.minor=t,this.patch=r,this.preRelease=n}return e.parse=function(t){if(t){var r=new RegExp(w).exec(t);if(r){var n=Number(r[1]),i=Number(r[2]);if(!(isNaN(n)||isNaN(i)))return new e(n,i,Number(r[4])||0,r[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),O=function(){function e(){}return e.prototype.evaluate=function(e,t){var r,n,i={},o={context:e,result:i};try{for(var a=c(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=this.evaluateFlag(o,u);l&&(i[u.key]=l)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},e.prototype.evaluateFlag=function(e,t){try{for(var r,n,i,o=c(t.segments),s=o.next();!s.done;s=o.next()){var u=s.value;if(i=this.evaluateSegment(e,t,u)){var l=a(a(a({},t.metadata),u.metadata),i.metadata);i=a(a({},i),{metadata:l});break}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.prototype.evaluateSegment=function(e,t,r){var n,i,o,a;if(!r.conditions){var s=this.bucket(e,r);return void 0!==s?t.variants[s]:void 0}try{for(var u=c(r.conditions),l=u.next();!l.done;l=u.next()){var f=l.value,p=!0;try{for(var d=(o=void 0,c(f)),h=d.next();!h.done;h=d.next()){var y=h.value;if(!(p=this.matchCondition(e,y)))break}}catch(e){o={error:e}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}if(p){var s=this.bucket(e,r);if(void 0!==s)return t.variants[s];return}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}},e.prototype.matchCondition=function(e,t){var r=E(e,t.selector);if(!r)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var n=this.coerceStringArray(r);return!!n&&this.matchSet(n,t.op,t.values)}var i=this.coerceString(r);return void 0!==i&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return h(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var r,n,i,o,a=this.coerceString(E(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),u=this.getHash(s),l=u%100,f=Math.floor(u/100);try{for(var p=c(t.bucket.allocations),d=p.next();!d.done;d=p.next()){var h=d.value,y=h.range[0],g=h.range[1];if(l>=y&&l<g)try{for(var v=(i=void 0,c(h.distributions)),m=v.next();!m.done;m=v.next()){var b=m.value,w=b.range[0],_=b.range[1];if(f>=w&&f<_)return b.variant}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}return t.variant},e.prototype.matchNull=function(e,t){var r=this.containsNone(t);switch(e){case p.IS:case p.CONTAINS:case p.LESS_THAN:case p.LESS_THAN_EQUALS:case p.GREATER_THAN:case p.GREATER_THAN_EQUALS:case p.VERSION_LESS_THAN:case p.VERSION_LESS_THAN_EQUALS:case p.VERSION_GREATER_THAN:case p.VERSION_GREATER_THAN_EQUALS:case p.SET_IS:case p.SET_CONTAINS:case p.SET_CONTAINS_ANY:return r;case p.IS_NOT:case p.DOES_NOT_CONTAIN:case p.SET_DOES_NOT_CONTAIN:case p.SET_DOES_NOT_CONTAIN_ANY:return!r;default:return!1}},e.prototype.matchSet=function(e,t,r){switch(t){case p.SET_IS:return this.setEquals(e,r);case p.SET_IS_NOT:return!this.setEquals(e,r);case p.SET_CONTAINS:return this.matchesSetContainsAll(e,r);case p.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,r);case p.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,r);case p.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,r);default:return!1}},e.prototype.matchString=function(e,t,r){var n=this;switch(t){case p.IS:return this.matchesIs(e,r);case p.IS_NOT:return!this.matchesIs(e,r);case p.CONTAINS:return this.matchesContains(e,r);case p.DOES_NOT_CONTAIN:return!this.matchesContains(e,r);case p.LESS_THAN:case p.LESS_THAN_EQUALS:case p.GREATER_THAN:case p.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return n.parseNumber(e)},this.comparator);case p.VERSION_LESS_THAN:case p.VERSION_LESS_THAN_EQUALS:case p.VERSION_GREATER_THAN:case p.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return _.parse(e)},this.versionComparator);case p.REGEX_MATCH:return this.matchesRegex(e,r);case p.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,r);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var r=e.toLowerCase();if("true"===r||"false"===r)return t.some(function(e){return e.toLowerCase()===r})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var r,n;try{for(var i=c(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(e,t,r,n,i){var o=this,a=n(e),s=r.map(function(e){return n(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?r.some(function(r){return o.comparator(e,t,r)}):s.some(function(e){return i(a,t,e)})},e.prototype.comparator=function(e,t,r){switch(t){case p.LESS_THAN:case p.VERSION_LESS_THAN:return e<r;case p.LESS_THAN_EQUALS:case p.VERSION_LESS_THAN_EQUALS:return e<=r;case p.GREATER_THAN:case p.VERSION_GREATER_THAN:return e>r;case p.GREATER_THAN_EQUALS:case p.VERSION_GREATER_THAN_EQUALS:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var n=e.compareTo(r);switch(t){case p.LESS_THAN:case p.VERSION_LESS_THAN:return n<0;case p.LESS_THAN_EQUALS:case p.VERSION_LESS_THAN_EQUALS:return n<=0;case p.GREATER_THAN:case p.VERSION_GREATER_THAN:return n>0;case p.GREATER_THAN_EQUALS:case p.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!==(t=Number(e))&&void 0!==t?t:void 0},e.prototype.coerceString=function(e){return e?"object"==typeof e?JSON.stringify(e):String(e):void 0},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var n=String(e);try{var i=JSON.parse(n);if(!Array.isArray(i))return;var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}catch(e){return}},e.prototype.isSetOperator=function(e){switch(e){case p.SET_IS:case p.SET_IS_NOT:case p.SET_CONTAINS:case p.SET_DOES_NOT_CONTAIN:case p.SET_CONTAINS_ANY:case p.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),n=new Set(t);return r.size===n.size&&f([],l(n),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,n;if(e.length<t.length)return!1;try{for(var i=c(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var r,n;try{for(var i=c(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e}(),S=function(e,t){var r,n,i=a({},e),o=[],s=t||Object.keys(i);try{for(var u=c(s),p=u.next();!p.done;p=u.next()){var d=p.value,h=T(d,i);h&&o.push.apply(o,f([],l(h),!1))}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return o},T=function(e,t,r){void 0===r&&(r=[]);var n,i,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];r.push(o.key);var a=[],s=function(e){if(r.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(r));var n=T(e,t,r);n&&a.push.apply(a,f([],l(n),!1))};try{for(var u=c(o.dependencies),p=u.next();!p.done;p=u.next()){var d=p.value;s(d)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return a.push(o),r.pop(),delete t[o.key],a}};let A="function"==typeof atob,I="function"==typeof btoa,R="function"==typeof i,k="function"==typeof TextDecoder?new TextDecoder:void 0,x="function"==typeof TextEncoder?new TextEncoder:void 0,N=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),P=(n={},N.forEach((e,t)=>n[e]=t),n),C=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,D=String.fromCharCode.bind(String),j="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),M=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),L=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),F=I?e=>btoa(e):R?e=>i.from(e,"binary").toString("base64"):e=>{let t,r,n,i,o="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=N[(t=r<<16|n<<8|i)>>18&63]+N[t>>12&63]+N[t>>6&63]+N[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},U=R?e=>i.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(D.apply(null,e.subarray(r,r+4096)));return F(t.join(""))},V=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?D(192|t>>>6)+D(128|63&t):D(224|t>>>12&15)+D(128|t>>>6&63)+D(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return D(240|t>>>18&7)+D(128|t>>>12&63)+D(128|t>>>6&63)+D(128|63&t)},B=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,G=e=>e.replace(B,V),q=R?e=>i.from(e,"utf8").toString("base64"):x?e=>U(x.encode(e)):e=>F(G(e)),z=(e,t=!1)=>t?M(q(e)):q(e),H=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,W=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return D((t>>>10)+55296)+D((1023&t)+56320);case 3:return D((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return D((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},K=e=>e.replace(H,W),Y=A?e=>atob(L(e)):R?e=>i.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!C.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let o=0;o<e.length;)t=P[e.charAt(o++)]<<18|P[e.charAt(o++)]<<12|(n=P[e.charAt(o++)])<<6|(i=P[e.charAt(o++)]),r+=64===n?D(t>>16&255):64===i?D(t>>16&255,t>>8&255):D(t>>16&255,t>>8&255,255&t);return r},Q=R?e=>j(i.from(e,"base64")):e=>j(Y(e).split("").map(e=>e.charCodeAt(0))),$=R?e=>i.from(e,"base64").toString("utf8"):k?e=>k.decode(Q(e)):e=>K(Y(e)),J=e=>L(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),X={encodeURL:e=>z(e,!0)};var Z=function(e){function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error),ee=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return s(this,void 0,void 0,function(){var r,n,i;return u(this,function(o){switch(o.label){case 0:return r=X.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(n["X-Amp-Exp-Flag-Keys"]=X.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(n["X-Amp-Exp-Track"]=t.trackingOption),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/vardata?v=0"),method:"GET",headers:n,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(i=o.sent()).status)throw new Z(i.status,"Fetch error response: status=".concat(i.status));return[2,JSON.parse(i.body)]}})})},e}(),et=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return s(this,void 0,void 0,function(){var t,r;return u(this,function(n){switch(n.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags"),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=n.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),er="undefined"!=typeof globalThis?globalThis:r.g||self,en=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=er.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(er.clearInterval(this.poller),this.poller=void 0)},e}()},13628:function(e,t,r){"use strict";r.d(t,{D3:function(){return e_},tw:function(){return ew}});var n=r(2700),i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function s(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function u(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){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}"function"==typeof SuppressedError&&SuppressedError,"function"==typeof SuppressedError&&SuppressedError;var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e,t){return e(t={exports:{}},t.exports),t.exports}var p=f(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,r){var n=e.locked.get(t);void 0===n?void 0===r?e.locked.set(t,[]):e.locked.set(t,[r]):void 0!==r&&(n.unshift(r),e.locked.set(t,n))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise(function(r,n){e.isLocked(t)?e.addToLocked(t,r):(e.addToLocked(t),r())})},this.unlock=function(t){var r=e.locked.get(t);if(void 0!==r&&0!==r.length){var n=r.pop();e.locked.set(t,r),void 0!==n&&setTimeout(n,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return r.getInstance()}});l(p);var d=l(f(function(e,t){var r=c&&c.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},n=c&&c.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(e){return r(c,void 0,void 0,function(){return n(this,function(e){throw Error("Unsupported")})})},getItem:function(e){return r(c,void 0,void 0,function(){return n(this,function(e){throw Error("Unsupported")})})},clear:function(){return r(c,void 0,void 0,function(){return n(this,function(e){return[2,window.localStorage.clear()]})})},removeItem:function(e){return r(c,void 0,void 0,function(){return n(this,function(e){throw Error("Unsupported")})})},setItem:function(e,t){return r(c,void 0,void 0,function(){return n(this,function(e){throw Error("Unsupported")})})},keySync:function(e){return window.localStorage.key(e)},getItemSync:function(e){return window.localStorage.getItem(e)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(e){return window.localStorage.removeItem(e)},setItemSync:function(e,t){return window.localStorage.setItem(e,t)}};function a(e){return new Promise(function(t){return setTimeout(t,e)})}function s(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="",n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}var u=function(){function e(t){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+s(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=t,void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,u){return void 0===u&&(u=5e3),r(this,void 0,void 0,function(){var r,c,l,f,p,d,h;return n(this,function(n){switch(n.label){case 0:r=Date.now()+s(4),c=Date.now()+u,l=i+"-"+t,f=void 0===this.storageHandler?o:this.storageHandler,n.label=1;case 1:return Date.now()<c?[4,a(30)]:[3,8];case 2:return n.sent(),null!==f.getItemSync(l)?[3,5]:(p=this.id+"-"+t+"-"+r,[4,a(Math.floor(25*Math.random()))]);case 3:return n.sent(),f.setItemSync(l,JSON.stringify({id:this.id,iat:r,timeoutKey:p,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return n.sent(),null!==(d=f.getItemSync(l))&&(h=JSON.parse(d)).id===this.id&&h.iat===r?(this.acquiredIatSet.add(r),this.refreshLockWhileAcquired(l,r),[2,!0]):[3,7];case 5:return e.lockCorrector(void 0===this.storageHandler?o:this.storageHandler),[4,this.waitForSomethingToChange(c)];case 6:n.sent(),n.label=7;case 7:return r=Date.now()+s(4),[3,1];case 8:return[2,!1]}})})},e.prototype.refreshLockWhileAcquired=function(e,t){return r(this,void 0,void 0,function(){var i=this;return n(this,function(a){return setTimeout(function(){return r(i,void 0,void 0,function(){var r,i,a;return n(this,function(n){switch(n.label){case 0:return[4,p.default().lock(t)];case 1:return n.sent(),this.acquiredIatSet.has(t)?null===(i=(r=void 0===this.storageHandler?o:this.storageHandler).getItemSync(e))?p.default().unlock(t):((a=JSON.parse(i)).timeRefreshed=Date.now(),r.setItemSync(e,JSON.stringify(a)),p.default().unlock(t),this.refreshLockWhileAcquired(e,t)):p.default().unlock(t),[2]}})})},1e3),[2]})})},e.prototype.waitForSomethingToChange=function(t){return r(this,void 0,void 0,function(){return n(this,function(r){switch(r.label){case 0:return[4,new Promise(function(r){var n=!1,i=Date.now(),o=!1;function a(){if(o||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(s),o=!0),!n){n=!0;var t=50-(Date.now()-i);t>0?setTimeout(r,t):r(null)}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))})];case 1:return r.sent(),[2]}})})},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter(function(e){return e!==t}))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach(function(e){return e()})},e.prototype.releaseLock=function(e){return r(this,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}})})},e.prototype.releaseLock__private__=function(t){return r(this,void 0,void 0,function(){var r,a,s,u;return n(this,function(n){switch(n.label){case 0:return r=void 0===this.storageHandler?o:this.storageHandler,a=i+"-"+t,null===(s=r.getItemSync(a))?[2]:(u=JSON.parse(s)).id!==this.id?[3,2]:[4,p.default().lock(u.iat)];case 1:n.sent(),this.acquiredIatSet.delete(u.iat),r.removeItemSync(a),p.default().unlock(u.iat),e.notifyWaiters(),n.label=2;case 2:return[2]}})})},e.lockCorrector=function(t){for(var r=Date.now()-5e3,n=[],o=0;;){var a=t.keySync(o);if(null===a)break;n.push(a),o++}for(var s=!1,u=0;u<n.length;u++){var c=n[u];if(c.includes(i)){var l=t.getItemSync(c);if(null!==l){var f=JSON.parse(l);(void 0===f.timeRefreshed&&f.timeAcquired<r||void 0!==f.timeRefreshed&&f.timeRefreshed<r)&&(t.removeItemSync(c),s=!0)}}}s&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=u}));let h={timeoutInSeconds:60},y={name:"auth0-spa-js",version:"2.1.3"},g=()=>Date.now();class v extends Error{constructor(e,t){super(t),this.error=e,this.error_description=t,Object.setPrototypeOf(this,v.prototype)}static fromPayload({error:e,error_description:t}){return new v(e,t)}}class m extends v{constructor(e,t,r,n=null){super(e,t),this.state=r,this.appState=n,Object.setPrototypeOf(this,m.prototype)}}class b extends v{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,b.prototype)}}class E extends b{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,E.prototype)}}class w extends v{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,w.prototype)}}class _ extends v{constructor(e,t,r){super(e,t),this.mfa_token=r,Object.setPrototypeOf(this,_.prototype)}}class O extends v{constructor(e,t){super("missing_refresh_token",`Missing Refresh Token (audience: '${S(e,["default"])}', scope: '${S(t)}')`),this.audience=e,this.scope=t,Object.setPrototypeOf(this,O.prototype)}}function S(e,t=[]){return e&&!t.includes(e)?e:""}let T=()=>window.crypto,A=()=>{let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(T().getRandomValues(new Uint8Array(43))).forEach(r=>t+=e[r%e.length]),t},I=e=>btoa(e),R=e=>{let t;var{clientId:r}=e;return new URLSearchParams(Object.keys(t=Object.assign({client_id:r},u(e,["clientId"]))).filter(e=>void 0!==t[e]).reduce((e,r)=>Object.assign(Object.assign({},e),{[r]:t[r]}),{})).toString()},k=e=>decodeURIComponent(atob(e.replace(/_/g,"/").replace(/-/g,"+")).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join("")),x=async(e,t)=>{let r=await fetch(e,t);return{ok:r.ok,json:await r.json()}},N=async(e,t,r)=>{let n;let i=new AbortController;return t.signal=i.signal,Promise.race([x(e,t),new Promise((e,t)=>{n=setTimeout(()=>{i.abort(),t(Error("Timeout when executing 'fetch'"))},r)})]).finally(()=>{clearTimeout(n)})},P=async(e,t,r,n,i,o,a)=>{var s;return s={auth:{audience:t,scope:r},timeout:i,fetchUrl:e,fetchOptions:n,useFormData:a},new Promise(function(e,t){let r=new MessageChannel;r.port1.onmessage=function(n){n.data.error?t(Error(n.data.error)):e(n.data),r.port1.close()},o.postMessage(s,[r.port2])})},C=async(e,t,r,n,i,o,a=1e4)=>i?P(e,t,r,n,a,i,o):N(e,n,a);async function D(e,t){var{baseUrl:r,timeout:n,audience:i,scope:o,auth0Client:a,useFormData:s}=e,c=u(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);let l=s?R(c):JSON.stringify(c);return await async function(e,t,r,n,i,o,a){let s,c=null;for(let u=0;u<3;u++)try{s=await C(e,r,n,i,o,a,t),c=null;break}catch(e){c=e}if(c)throw c;let l=s.json,{error:f,error_description:p}=l,d=u(l,["error","error_description"]),{ok:h}=s;if(!h){let t=p||`HTTP error. Unable to fetch ${e}`;if("mfa_required"===f)throw new _(f,t,d.mfa_token);if("missing_refresh_token"===f)throw new O(r,n);throw new v(f||"request_error",t)}return d}(`${r}/oauth/token`,n,i||"default",o,{method:"POST",body:l,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||y))}},t,s)}let j=(...e)=>Array.from(new Set(e.filter(Boolean).join(" ").trim().split(/\s+/))).join(" ");class M{constructor(e,t="@@auth0spajs@@",r){this.prefix=t,this.suffix=r,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){let[t,r,n,i]=e.split("::");return new M({clientId:r,scope:i,audience:n},t)}static fromCacheEntry(e){let{scope:t,audience:r,client_id:n}=e;return new M({scope:t,audience:r,clientId:n})}}class L{set(e,t){localStorage.setItem(e,JSON.stringify(t))}get(e){let t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class F{constructor(){let e;this.enclosedCache=(e={},{set(t,r){e[t]=r},get(t){let r=e[t];if(r)return r},remove(t){delete e[t]},allKeys:()=>Object.keys(e)})}}class U{constructor(e,t,r){this.cache=e,this.keyManifest=t,this.nowProvider=r||g}async setIdToken(e,t,r){var n;let i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:t,decodedToken:r}),await (null===(n=this.keyManifest)||void 0===n?void 0:n.add(i))}async getIdToken(e){let t=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!t&&e.scope&&e.audience){let t=await this.get(e);if(!t||!t.id_token||!t.decodedToken)return;return{id_token:t.id_token,decodedToken:t.decodedToken}}if(t)return{id_token:t.id_token,decodedToken:t.decodedToken}}async get(e,t=0){var r;let n=await this.cache.get(e.toKey());if(!n){let t=await this.getCacheKeys();if(!t)return;let r=this.matchExistingCacheKey(e,t);r&&(n=await this.cache.get(r))}if(!n)return;let i=await this.nowProvider();return n.expiresAt-t<Math.floor(i/1e3)?n.body.refresh_token?(n.body={refresh_token:n.body.refresh_token},await this.cache.set(e.toKey(),n),n.body):(await this.cache.remove(e.toKey()),void await (null===(r=this.keyManifest)||void 0===r?void 0:r.remove(e.toKey()))):n.body}async set(e){var t;let r=new M({clientId:e.client_id,scope:e.scope,audience:e.audience}),n=await this.wrapCacheEntry(e);await this.cache.set(r.toKey(),n),await (null===(t=this.keyManifest)||void 0===t?void 0:t.add(r.toKey()))}async clear(e){var t;let r=await this.getCacheKeys();r&&(await r.filter(t=>!e||t.includes(e)).reduce(async(e,t)=>{await e,await this.cache.remove(t)},Promise.resolve()),await (null===(t=this.keyManifest)||void 0===t?void 0:t.clear()))}async wrapCacheEntry(e){return{body:e,expiresAt:Math.floor(await this.nowProvider()/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?null===(e=await this.keyManifest.get())||void 0===e?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new M({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,t){return t.filter(t=>{var r;let n=M.fromKey(t),i=new Set(n.scope&&n.scope.split(" ")),o=(null===(r=e.scope)||void 0===r?void 0:r.split(" "))||[],a=n.scope&&o.reduce((e,t)=>e&&i.has(t),!0);return"@@auth0spajs@@"===n.prefix&&n.clientId===e.clientId&&n.audience===e.audience&&a})[0]}}class V{constructor(e,t,r){this.storage=e,this.clientId=t,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(e){this.storage.save(this.storageKey,e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}let B=e=>"number"==typeof e,G=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],q=e=>{if(!e.id_token)throw Error("ID token is required but missing");let t=(e=>{let t=e.split("."),[r,n,i]=t;if(3!==t.length||!r||!n||!i)throw Error("ID token could not be decoded");let o=JSON.parse(k(n)),a={__raw:e},s={};return Object.keys(o).forEach(e=>{a[e]=o[e],G.includes(e)||(s[e]=o[e])}),{encoded:{header:r,payload:n,signature:i},header:JSON.parse(k(r)),claims:a,user:s}})(e.id_token);if(!t.claims.iss)throw Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${t.claims.iss}"`);if(!t.user.sub)throw Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw Error(`Signature algorithm of "${t.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${t.claims.aud.join(", ")}"`);if(t.claims.aud.length>1){if(!t.claims.azp)throw Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${t.claims.azp}"`)}}else if(t.claims.aud!==e.aud)throw Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${t.claims.aud}"`);if(e.nonce){if(!t.claims.nonce)throw Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${t.claims.nonce}"`)}if(e.max_age&&!B(t.claims.auth_time))throw Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(null==t.claims.exp||!B(t.claims.exp))throw Error("Expiration Time (exp) claim must be a number present in the ID token");if(!B(t.claims.iat))throw Error("Issued At (iat) claim must be a number present in the ID token");let r=e.leeway||60,n=new Date(e.now||Date.now()),i=new Date(0);if(i.setUTCSeconds(t.claims.exp+r),n>i)throw Error(`Expiration Time (exp) claim error in the ID token; current time (${n}) is after expiration time (${i})`);if(null!=t.claims.nbf&&B(t.claims.nbf)){let e=new Date(0);if(e.setUTCSeconds(t.claims.nbf-r),n<e)throw Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${n}) is before ${e}`)}if(null!=t.claims.auth_time&&B(t.claims.auth_time)){let i=new Date(0);if(i.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+r),n>i)throw Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${n}) is after last auth at ${i}`)}if(e.organization){let r=e.organization.trim();if(r.startsWith("org_")){if(!t.claims.org_id)throw Error("Organization ID (org_id) claim must be a string present in the ID token");if(r!==t.claims.org_id)throw Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${r}", found "${t.claims.org_id}"`)}else{let e=r.toLowerCase();if(!t.claims.org_name)throw Error("Organization Name (org_name) claim must be a string present in the ID token");if(e!==t.claims.org_name)throw Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${e}", found "${t.claims.org_name}"`)}}return t};var z=f(function(e,t){var r=c&&c.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){if(!t)return"";var r="; "+e;return!0===t?r:r+"="+t}function i(e,t,r){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return n("Expires",e.expires?e.expires.toUTCString():"")+n("Domain",e.domain)+n("Path",e.path)+n("Secure",e.secure)+n("SameSite",e.sameSite)}(r)}function o(e){for(var t={},r=e?e.split("; "):[],n=/(%[\dA-F]{2})+/gi,i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[o[0].replace(n,decodeURIComponent)]=a.replace(n,decodeURIComponent)}catch(e){}}return t}function a(){return o(document.cookie)}function s(e,t,n){document.cookie=i(e,t,r({path:"/"},n))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(e){return a()[e]},t.set=s,t.remove=function(e,t){s(e,"",r(r({},t),{expires:-1}))}});l(z),z.encode,z.parse,z.getAll;var H=z.get,W=z.set,K=z.remove;let Y={get(e){let t=H(e);if(void 0!==t)return JSON.parse(t)},save(e,t,r){let n={};"https:"===window.location.protocol&&(n={secure:!0,sameSite:"none"}),(null==r?void 0:r.daysUntilExpire)&&(n.expires=r.daysUntilExpire),(null==r?void 0:r.cookieDomain)&&(n.domain=r.cookieDomain),W(e,JSON.stringify(t),n)},remove(e,t){let r={};(null==t?void 0:t.cookieDomain)&&(r.domain=t.cookieDomain),K(e,r)}},Q={get:e=>Y.get(e)||Y.get(`_legacy_${e}`),save(e,t,r){let n={};"https:"===window.location.protocol&&(n={secure:!0}),(null==r?void 0:r.daysUntilExpire)&&(n.expires=r.daysUntilExpire),(null==r?void 0:r.cookieDomain)&&(n.domain=r.cookieDomain),W(`_legacy_${e}`,JSON.stringify(t),n),Y.save(e,t,r)},remove(e,t){let r={};(null==t?void 0:t.cookieDomain)&&(r.domain=t.cookieDomain),K(e,r),Y.remove(e,t),Y.remove(`_legacy_${e}`,t)}},$={get(e){if("undefined"==typeof sessionStorage)return;let t=sessionStorage.getItem(e);return null!=t?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var J,X,Z=(J="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",function(e){var t,r,n;return new Worker(X=X||(r=(t=function(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),i=0,o=r.length;i<o;++i)n[i]=r.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}(J,!1)).indexOf("\n",10)+1,n=new Blob([t.substring(r)+""],{type:"application/javascript"}),URL.createObjectURL(n)),e)});let ee={};class et{constructor(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var t;let r=new Set((null===(t=await this.cache.get(this.manifestKey))||void 0===t?void 0:t.keys)||[]);r.add(e),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(e){let t=await this.cache.get(this.manifestKey);if(t){let r=new Set(t.keys);return r.delete(e),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}let er={memory:()=>(new F).enclosedCache,localstorage:()=>new L},en=e=>er[e],ei=e=>{let{openUrl:t,onRedirect:r}=e;return Object.assign(Object.assign({},u(e,["openUrl","onRedirect"])),{openUrl:!1===t||t?t:r})},eo=new d;class ea{constructor(e){var t;let r,n,i,o,a;if(this.userCache=(new F).enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await eo.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),"undefined"!=typeof window&&(()=>{if(!T())throw Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===T().subtle)throw Error("\n      auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n    ")})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)n=e.cache;else{if(!en(r=e.cacheLocation||"memory"))throw Error(`Invalid cache location "${r}"`);n=en(r)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?Y:Q,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=this.options.clientId,`auth0.${i}.is.authenticated`),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;let s=e.useCookiesForTransactions?this.cookieStorage:$;this.scope=j("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new V(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||g,this.cacheManager=new U(n,n.allKeys?void 0:new et(n,this.options.clientId),this.nowProvider),this.domainUrl=(t=this.options.domain,/^https?:\/\//.test(t)?t:`https://${t}`),this.tokenIssuer=(o=this.options.issuer,a=this.domainUrl,o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===r&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new Z)}_url(e){let t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||y)));return`${this.domainUrl}${e}&auth0Client=${t}`}_authorizeUrl(e){return this._url(`/authorize?${R(e)}`)}async _verifyIdToken(e,t,r){var n;let i=await this.nowProvider();return q({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:t,organization:r,leeway:this.options.leeway,max_age:"string"!=typeof(n=this.options.authorizationParams.max_age)?n:parseInt(n,10)||void 0,now:i})}_processOrgHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,t,r){let n,i,o,a;let s=I(A()),u=I(A()),c=A(),l=(e=>{let t=new Uint8Array(e);return(e=>{let t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,e=>t[e])})(window.btoa(String.fromCharCode(...Array.from(t))))})(await (async e=>{let t=T().subtle.digest({name:"SHA-256"},(new TextEncoder).encode(e));return await t})(c)),f=(n=this.options,i=this.scope,o=e.redirect_uri||this.options.authorizationParams.redirect_uri||r,a=null==t?void 0:t.response_mode,Object.assign(Object.assign(Object.assign({client_id:n.clientId},n.authorizationParams),e),{scope:j(i,e.scope),response_type:"code",response_mode:a||"query",state:s,nonce:u,redirect_uri:o||n.authorizationParams.redirect_uri,code_challenge:l,code_challenge_method:"S256"})),p=this._authorizeUrl(f);return{nonce:u,code_verifier:c,scope:f.scope,audience:f.audience||"default",redirect_uri:f.redirect_uri,state:s,url:p}}async loginWithPopup(e,t){var r;let n;if(e=e||{},!(t=t||{}).popup&&(t.popup=(e=>{let t=window.screenX+(window.innerWidth-400)/2,r=window.screenY+(window.innerHeight-600)/2;return window.open(e,"auth0:authorize:popup",`left=${t},top=${r},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!t.popup))throw Error("Unable to open a popup for loginWithPopup - window.open returned `null`");let i=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);t.popup.location.href=i.url;let o=await (n=Object.assign(Object.assign({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}),new Promise((e,t)=>{let r;let i=setInterval(()=>{n.popup&&n.popup.closed&&(clearInterval(i),clearTimeout(o),window.removeEventListener("message",r,!1),t(new w(n.popup)))},1e3),o=setTimeout(()=>{clearInterval(i),t(new E(n.popup)),window.removeEventListener("message",r,!1)},1e3*(n.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(o),clearInterval(i),window.removeEventListener("message",r,!1),n.popup.close(),a.data.response.error)return t(v.fromPayload(a.data.response));e(a.data.response)}},window.addEventListener("message",r)}));if(i.state!==o.state)throw new v("state_mismatch","Invalid state");let a=(null===(r=e.authorizationParams)||void 0===r?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:o.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organization:a})}async getUser(){var e;let t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.user}async getIdTokenClaims(){var e;let t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.claims}async loginWithRedirect(e={}){var t;let r=ei(e),{openUrl:n,fragment:i,appState:o}=r,a=u(r,["openUrl","fragment","appState"]),s=(null===(t=a.authorizationParams)||void 0===t?void 0:t.organization)||this.options.authorizationParams.organization,c=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:l}=c,f=u(c,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),s&&{organization:s}));let p=i?`${l}#${i}`:l;n?await n(p):window.location.assign(p)}async handleRedirectCallback(e=window.location.href){let t=e.split("?").slice(1);if(0===t.length)throw Error("There are no query params available for parsing.");let{state:r,code:n,error:i,error_description:o}=(e=>{e.indexOf("#")>-1&&(e=e.substring(0,e.indexOf("#")));let t=new URLSearchParams(e);return{state:t.get("state"),code:t.get("code")||void 0,error:t.get("error")||void 0,error_description:t.get("error_description")||void 0}})(t.join("")),a=this.transactionManager.get();if(!a)throw new v("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new m(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new v("state_mismatch","Invalid state");let s=a.organization,u=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:n},c?{redirect_uri:c}:{}),{nonceIn:u,organization:s}),{appState:a.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch(e){}}async getTokenSilently(e={}){var t,r,n;let i;let o=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:j(this.scope,null===(t=e.authorizationParams)||void 0===t?void 0:t.scope)})}),a=await (r=()=>this._getTokenSilently(o),(i=ee[n=`${this.options.clientId}::${o.authorizationParams.audience}::${o.authorizationParams.scope}`])||(i=r().finally(()=>{delete ee[n],i=null}),ee[n]=i),i);return e.detailedResponse?a:null==a?void 0:a.access_token}async _getTokenSilently(e){let{cacheMode:t}=e,r=u(e,["cacheMode"]);if("off"!==t){let e=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}if("cache-only"!==t){if(!await (async(e,t=3)=>{for(let r=0;r<t;r++)if(await e())return!0;return!1})(()=>eo.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new b;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),"off"!==t){let e=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}let{id_token:e,access_token:n,oauthTokenScope:i,expires_in:o}=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r);return Object.assign(Object.assign({id_token:e,access_token:n},i?{scope:i}:null),{expires_in:o})}finally{await eo.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},t={}){var r;let n=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:j(this.scope,null===(r=e.authorizationParams)||void 0===r?void 0:r.scope)})});return t=Object.assign(Object.assign({},h),t),await this.loginWithPopup(n,t),(await this.cacheManager.get(new M({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){null!==e.clientId?e.clientId=e.clientId||this.options.clientId:delete e.clientId;let t=e.logoutParams||{},{federated:r}=t,n=u(t,["federated"]);return this._url(`/v2/logout?${R(Object.assign({clientId:e.clientId},n))}`)+(r?"&federated":"")}async logout(e={}){let t=ei(e),{openUrl:r}=t,n=u(t,["openUrl"]);null===e.clientId?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");let i=this._buildLogoutUrl(n);r?await r(i):!1!==r&&window.location.assign(i)}async _getTokenFromIFrame(e){let t=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!t.organization&&(t.organization=r);let{url:n,state:i,nonce:o,code_verifier:a,redirect_uri:s,scope:u,audience:c}=await this._prepareAuthorizeUrl(t,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new v("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");let r=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,l=await ((e,t,r=60)=>new Promise((n,i)=>{let o;let a=window.document.createElement("iframe");a.setAttribute("width","0"),a.setAttribute("height","0"),a.style.display="none";let s=()=>{window.document.body.contains(a)&&(window.document.body.removeChild(a),window.removeEventListener("message",o,!1))},u=setTimeout(()=>{i(new b),s()},1e3*r);o=function(e){if(e.origin!=t||!e.data||"authorization_response"!==e.data.type)return;let r=e.source;r&&r.close(),e.data.response.error?i(v.fromPayload(e.data.response)):n(e.data.response),clearTimeout(u),window.removeEventListener("message",o,!1),setTimeout(s,2e3)},window.addEventListener("message",o,!1),window.document.body.appendChild(a),a.setAttribute("src",e)}))(n,this.domainUrl,r);if(i!==l.state)throw new v("state_mismatch","Invalid state");let f=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:a,code:l.code,grant_type:"authorization_code",redirect_uri:s,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:t.organization});return Object.assign(Object.assign({},f),{scope:u,oauthTokenScope:f.scope,audience:c})}catch(e){throw"login_required"===e.error&&this.logout({openUrl:!1}),e}}async _getTokenUsingRefreshToken(e){let t=await this.cacheManager.get(new M({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(t&&t.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new O(e.authorizationParams.audience||"default",e.authorizationParams.scope)}let r=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,n="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null;try{let i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:r}),n&&{timeout:n}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(t){if((t.message.indexOf("Missing Refresh Token")>-1||t.message&&t.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw t}}async _saveEntryInCache(e){let{id_token:t,decodedToken:r}=e,n=u(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:t,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(n)}async _getIdTokenFromCache(){let e=this.options.authorizationParams.audience||"default",t=await this.cacheManager.getIdToken(new M({clientId:this.options.clientId,audience:e,scope:this.scope})),r=this.userCache.get("@@user@@");return t&&t.id_token===(null==r?void 0:r.id_token)?r:(this.userCache.set("@@user@@",t),t)}async _getEntryFromCache({scope:e,audience:t,clientId:r}){let n=await this.cacheManager.get(new M({scope:e,audience:t,clientId:r}),60);if(n&&n.access_token){let{access_token:e,oauthTokenScope:t,expires_in:r}=n,i=await this._getIdTokenFromCache();return i&&Object.assign(Object.assign({id_token:i.id_token,access_token:e},t?{scope:t}:null),{expires_in:r})}}async _requestToken(e,t){let{nonceIn:r,organization:n}=t||{},i=await D(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),o=await this._verifyIdToken(i.id_token,r,n);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(n||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}}var es={isAuthenticated:!1,isLoading:!0},eu=function(){throw Error("You forgot to wrap your component in <Auth0Provider>.")},ec=o(o({},es),{buildAuthorizeUrl:eu,buildLogoutUrl:eu,getAccessTokenSilently:eu,getAccessTokenWithPopup:eu,getIdTokenClaims:eu,loginWithRedirect:eu,loginWithPopup:eu,logout:eu,handleRedirectCallback:eu}),el=(0,n.createContext)(ec),ef=function(e){function t(r,n){var i=e.call(this,n||r)||this;return i.error=r,i.error_description=n,Object.setPrototypeOf(i,t.prototype),i}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error),ep=/[?&]code=[^&]+/,ed=/[?&]state=[^&]+/,eh=/[?&]error=[^&]+/,ey=function(e){return function(t){return t instanceof Error?t:null!==t&&"object"==typeof t&&"error"in t&&"string"==typeof t.error?"error_description"in t&&"string"==typeof t.error_description?new ef(t.error,t.error_description):new ef(t.error):Error(e)}},eg=ey("Login failed"),ev=ey("Get access token failed"),em=function(e){var t;(null==e?void 0:e.redirectUri)&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),(null===(t=null==e?void 0:e.authorizationParams)||void 0===t?void 0:t.redirectUri)&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},eb=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return o(o({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return o(o({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":if(e.user===t.user)return e;return o(o({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return o(o({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return o(o({},e),{isLoading:!1,error:t.error})}},eE=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},ew=function(e){var t=e.children,r=e.skipRedirectCallback,i=e.onRedirectCallback,u=void 0===i?eE:i,c=e.context,l=void 0===c?el:c,f=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["children","skipRedirectCallback","onRedirectCallback","context"]),p=(0,n.useState)(function(){return new ea((em(f),o(o({},f),{auth0Client:{name:"auth0-react",version:"2.2.4"}})))})[0],d=(0,n.useReducer)(eb,es),h=d[0],y=d[1],g=(0,n.useRef)(!1);(0,n.useEffect)(function(){g.current||(g.current=!0,a(void 0,void 0,void 0,function(){var e,t;return s(this,function(n){switch(n.label){case 0:var i;if(n.trys.push([0,7,,8]),e=void 0,void 0===i&&(i=window.location.search),!((ep.test(i)||eh.test(i))&&ed.test(i))||r)return[3,3];return[4,p.handleRedirectCallback()];case 1:return t=n.sent().appState,[4,p.getUser()];case 2:return e=n.sent(),u(t,e),[3,6];case 3:return[4,p.checkSession()];case 4:return n.sent(),[4,p.getUser()];case 5:e=n.sent(),n.label=6;case 6:return y({type:"INITIALISED",user:e}),[3,8];case 7:return y({type:"ERROR",error:eg(n.sent())}),[3,8];case 8:return[2]}})}))},[p,u,r]);var v=(0,n.useCallback)(function(e){return em(e),p.loginWithRedirect(e)},[p]),m=(0,n.useCallback)(function(e,t){return a(void 0,void 0,void 0,function(){return s(this,function(r){switch(r.label){case 0:y({type:"LOGIN_POPUP_STARTED"}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,p.loginWithPopup(e,t)];case 2:return r.sent(),[3,4];case 3:return y({type:"ERROR",error:eg(r.sent())}),[2];case 4:return[4,p.getUser()];case 5:return y({type:"LOGIN_POPUP_COMPLETE",user:r.sent()}),[2]}})})},[p]),b=(0,n.useCallback)(function(e){return void 0===e&&(e={}),a(void 0,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,p.logout(e)];case 1:return t.sent(),(e.openUrl||!1===e.openUrl)&&y({type:"LOGOUT"}),[2]}})})},[p]),E=(0,n.useCallback)(function(e){return a(void 0,void 0,void 0,function(){var t,r,n;return s(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,p.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw ev(i.sent());case 3:return r=y,n={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,p.getUser()];case 4:return r.apply(void 0,[(n.user=i.sent(),n)]),[7];case 5:return[2,t]}})})},[p]),w=(0,n.useCallback)(function(e,t){return a(void 0,void 0,void 0,function(){var r,n,i;return s(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,p.getTokenWithPopup(e,t)];case 1:return r=o.sent(),[3,5];case 2:throw ev(o.sent());case 3:return n=y,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,p.getUser()];case 4:return n.apply(void 0,[(i.user=o.sent(),i)]),[7];case 5:return[2,r]}})})},[p]),_=(0,n.useCallback)(function(){return p.getIdTokenClaims()},[p]),O=(0,n.useCallback)(function(e){return a(void 0,void 0,void 0,function(){var t,r;return s(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,5]),[4,p.handleRedirectCallback(e)];case 1:return[2,n.sent()];case 2:throw ev(n.sent());case 3:return t=y,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,p.getUser()];case 4:return t.apply(void 0,[(r.user=n.sent(),r)]),[7];case 5:return[2]}})})},[p]),S=(0,n.useMemo)(function(){return o(o({},h),{getAccessTokenSilently:E,getAccessTokenWithPopup:w,getIdTokenClaims:_,loginWithRedirect:v,loginWithPopup:m,logout:b,handleRedirectCallback:O})},[h,E,w,_,v,m,b,O]);return n.createElement(l.Provider,{value:S},t)},e_=function(e){return void 0===e&&(e=el),(0,n.useContext)(e)}},92426:function(e,t,r){var n=r(38432);!function(e){"use strict";var t=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},u=function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r},c=function(){function e(r){t(this,e),r._group&&r._group.length>0&&(r=o({},r,{_group:r._group.map(function(t){return new e(t)})})),this.data=r}return r(e,[{key:"getRaw",value:function(e){return(this.data[e]||{}).raw}},{key:"getSnippet",value:function(e){return(this.data[e]||{}).snippet}}]),e}(),l=function e(r,n){t(this,e),this.rawResults=r,this.rawInfo=n;var i=[];r.forEach(function(e){i.push(new c(e))}),this.results=i,this.info=n},f=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e),this.filtersJSON=r}return r(e,[{key:"removeFilter",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.filtersJSON;return new e(function e(t,r){var n=Object.entries(r).reduce(function(r,n){var a=s(n,2),u=a[0],c=a[1];return u===t?r:(["all","any","none"].includes(u)&&(c=c.reduce(function(r,n){var i=e(t,n);return i?r.concat(i):r},[])),o({},r,i({},u,c)))},{});if(0!==Object.keys(n).length)return n}(t,r))}},{key:"getListOfAppliedFilters",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.filtersJSON;return Array.from(Object.entries(t).reduce(function(t,r){var n=s(r,2),i=n[0],o=n[1];return["all","any","none"].includes(i)?o.forEach(function(r){Object.keys(r).forEach(function(n){["all","any","none"].includes(n)?t=new Set([].concat(u(t),u(e.getListOfAppliedFilters(r)))):t.add(n)})}):t.add(i),t},new Set).values())}}]),e}(),p="8.13.0",d=new(function(){function e(){t(this,e),this.cache={}}return r(e,[{key:"getKey",value:function(e,t,r){return e+t+JSON.stringify(r)}},{key:"store",value:function(e,t){this.cache[e]=t}},{key:"retrieve",value:function(e){return this.cache[e]}}]),e}());function h(e,t,r,i,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=s.additionalHeaders,c="POST",l=d.getKey(c,t+r,i);if(a){var f=d.retrieve(l);if(f)return Promise.resolve(f)}return(function(e,t,r,i,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=s.additionalHeaders;return fetch(""+r+i,{method:e,headers:new Headers(o({},t&&{Authorization:"Bearer "+t},{"Content-Type":"application/json","X-Swiftype-Client":"elastic-app-search-javascript","X-Swiftype-Client-Version":p,"x-elastic-client-meta":"ent="+p+"-legacy,js="+("undefined"!=typeof window?"browser":n.version)+",t="+p+"-legacy,ft=universal"},u)),body:JSON.stringify(a),credentials:"include"})})(c,e,t,r,i,{additionalHeaders:u}).then(function(e){return e.json().then(function(t){var r={response:e,json:t};return a&&d.store(l,r),r}).catch(function(){return{response:e,json:{}}})})}var y={SEARCH:"SEARCH",MULTI_SEARCH:"MULTI_SEARCH"};function g(e){return new l(e.results,function(e,t){if(e)return e[t],a(e,[t])}(e,"results"))}function v(e){var t=e.response,r=e.json;if(!t.ok){var n,i=Array.isArray(r)?" "+(n=r.map(function(e){return e.errors}),[].concat.apply([],n)).join(", "):r.errors?" "+r.errors:"";throw Error("["+t.status+"]"+i)}return r}var m=function(){function e(r,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.endpointBase,s=void 0===a?"":a,u=o.cacheResponses,c=o.additionalHeaders;t(this,e),this.additionalHeaders=c,this.searchKey=n,this.cacheResponses=void 0===u||u,this.engineName=i,this.apiEndpoint=s?s+"/api/as/v1/":"https://"+r+".api.swiftype.com/api/as/v1/",this.searchPath="engines/"+this.engineName+"/search",this.multiSearchPath="engines/"+this.engineName+"/multi_search",this.querySuggestionPath="engines/"+this.engineName+"/query_suggestion",this.clickPath="engines/"+this.engineName+"/click"}return r(e,[{key:"querySuggestion",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({query:e},t);return h(this.searchKey,this.apiEndpoint,this.querySuggestionPath,r,this.cacheResponses,{additionalHeaders:this.additionalHeaders}).then(v)}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.disjunctiveFacets,n=t.disjunctiveFacetsAnalyticsTags,i=Object.assign({query:e},a(t,["disjunctiveFacets","disjunctiveFacetsAnalyticsTags"]));return r&&r.length>0?this._performDisjunctiveSearch(i,r,n).then(g):this._performSearch(i).then(g)}},{key:"multiSearch",value:function(e){var t=e.map(function(e){return o({query:e.query},e.options||{})});return this._performSearch({queries:t},y.MULTI_SEARCH).then(function(e){return e.map(g)})}},{key:"_performDisjunctiveSearch",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["Facet-Only"],a=this._performSearch(e),c=new f(e.filters),l=c.getListOfAppliedFilters().filter(function(e){return t.includes(e)});if(!l.length)return a;var p=e.page||{},d=e.analytics||{};return d.tags=n,Promise.all([a].concat(u(l.map(function(t){return r._performSearch(o({},e,{filters:c.removeFilter(t).filtersJSON,record_analytics:!1,page:o({},p,{size:0}),analytics:d,facets:i({},t,e.facets[t])}))})))).then(function(e){var t=Array.isArray(e)?e:Array.from(e),r=t[0];return t.slice(1).forEach(function(e){var t=s(Object.entries(e.facets)[0],2),n=t[0],i=t[1];r.facets[n]=i}),r})}},{key:"_performSearch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.SEARCH,r=t===y.MULTI_SEARCH?this.multiSearchPath:this.searchPath;return h(this.searchKey,this.apiEndpoint,r+".json",e,this.cacheResponses,{additionalHeaders:this.additionalHeaders}).then(v)}},{key:"click",value:function(e){var t=e.query,r=e.documentId,n=e.requestId,i=e.tags;return h(this.searchKey,this.apiEndpoint,this.clickPath+".json",{query:t,document_id:r,request_id:n,tags:void 0===i?[]:i},this.cacheResponses,{additionalHeaders:this.additionalHeaders}).then(v)}}]),e}();e.createClient=function(e){var t=e.hostIdentifier,r=e.accountHostKey,n=e.apiKey,i=e.searchKey,o=e.engineName,a=e.endpointBase,s=e.cacheResponses,u=e.additionalHeaders;return new m(t=t||r,i=i||n,o,{endpointBase:a,cacheResponses:s,additionalHeaders:u})},Object.defineProperty(e,"__esModule",{value:!0})}(t)},36381:function(e,t,r){"use strict";let n=r(2700).createContext(null);t.Z=n},64322:function(e,t,r){"use strict";r.d(t,{Z:function(){return ei}});var n={};r.r(n),r.d(n,{a11yNotify:function(){return Y},addFilter:function(){return P},clearFilters:function(){return D},removeFilter:function(){return j},reset:function(){return M},setCurrent:function(){return L},setFilter:function(){return F},setResultsPerPage:function(){return U},setSearchTerm:function(){return V},setSort:function(){return B},trackAutocompleteClickThrough:function(){return C},trackAutocompleteSuggestionClickThrough:function(){return Q},trackClickThrough:function(){return G}});var i=r(2700),o=r(9507);function a(e){return"/"===e.charAt(0)}function s(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}var u=function(e,t){void 0===t&&(t="");var r,n=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&a(e),u=t&&a(t),c=o||u;if(e&&a(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";if(i.length){var l=i[i.length-1];r="."===l||".."===l||""===l}else r=!1;for(var f=0,p=i.length;p>=0;p--){var d=i[p];"."===d?s(i,p):".."===d?(s(i,p),f++):f&&(s(i,p),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&a(i[0])||i.unshift("");var h=i.join("/");return r&&"/"!==h.substr(-1)&&(h+="/"),h};function c(e){var t=e.pathname,r=e.search,n=e.hash,i=t||"/";return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(i+="#"===n.charAt(0)?n:"#"+n),i}function l(e,t,r,n){var i,a,s,c,l,f;"string"==typeof e?(s="",c="",-1!==(l=(a=e||"/").indexOf("#"))&&(c=a.substr(l),a=a.substr(0,l)),-1!==(f=a.indexOf("?"))&&(s=a.substr(f),a=a.substr(0,f)),(i={pathname:a,search:"?"===s?"":s,hash:"#"===c?"":c}).state=t):(void 0===(i=(0,o.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError)throw URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.');throw e}return r&&(i.key=r),n?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=u(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i}function f(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,i){if(null!=e){var o="function"==typeof e?e(t,r):e;"string"==typeof o?"function"==typeof n?n(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach(function(e){return e.apply(void 0,r)})}}}var p=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function d(e,t){t(window.confirm(e))}var h="popstate",y="hashchange";function g(){try{return window.history.state||{}}catch(e){return{}}}function v(e,t,r){return Math.min(Math.max(e,t),r)}var m=r(22900),b=r.n(m),E=(e,t)=>null!=e&&"number"==typeof e?`n_${e}_n`:e&&"boolean"==typeof e?`b_${e}_b`:t(e),w=(e,t)=>/n_-?[\d\.]*_n/.test(e)?Number(e.substring(2,e.length-2)):/^b_(true|false)*_b$/.test(e)?function(e){if("true"===e)return!0;if("false"===e)return!1;throw"Invalid type parsed as Boolean value"}(e.substring(2,e.length-2)):t(e),_=e=>b().parse(e,{ignoreQueryPrefix:!0,decoder:w,arrayLimit:1e3}),O=e=>b().stringify(e,{encoder:E});function S(e){return Array.isArray(e)?e[e.length-1]:e}function T(e){if(!isNaN(e))return parseInt(e,10)}function A(e){let t=S(e["sort-field"]),r=S(e["sort-direction"]);return t?[t,r]:[]}class I{constructor(e={}){this.routingOptions={readUrl:e.readUrl||this.readUrl.bind(this),writeUrl:e.writeUrl||this.writeUrl.bind(this),urlToState:e.urlToState||this.urlToState.bind(this),stateToUrl:e.stateToUrl||this.stateToUrl.bind(this),routeChangeHandler:e.routeChangeHandler||this.routeChangeHandler.bind(this)},this.history="undefined"!=typeof window?function(e){void 0===e&&(e={}),p||function(e,t){if(!e)throw Error("Invariant failed")}(!1);var t,r,n,i=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=-1!==window.navigator.userAgent.indexOf("Trident"),u=e,v=u.forceRefresh,m=void 0!==v&&v,b=u.getUserConfirmation,E=void 0===b?d:b,w=u.keyLength,_=void 0===w?6:w,O=e.basename?"/"===(n="/"===(r=e.basename).charAt(0)?r:"/"+r).charAt(n.length-1)?n.slice(0,-1):n:"";function S(e){var t,r=e||{},n=r.key,i=r.state,o=window.location,a=o.pathname+o.search+o.hash;return O&&(a=0===(t=a).toLowerCase().indexOf(O.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(O.length))?t.substr(O.length):t),l(a,i,n)}function T(){return Math.random().toString(36).substr(2,_)}var A=f();function I(e){(0,o.Z)(U,e),U.length=i.length,A.notifyListeners(U.location,U.action)}function R(e){void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")||N(S(e.state))}function k(){N(S(g()))}var x=!1;function N(e){x?(x=!1,I()):A.confirmTransitionTo(e,"POP",E,function(t){var r,n,i,o;t?I({action:"POP",location:e}):(r=U.location,-1===(n=C.indexOf(r.key))&&(n=0),-1===(i=C.indexOf(e.key))&&(i=0),(o=n-i)&&(x=!0,j(o)))})}var P=S(g()),C=[P.key];function D(e){return O+c(e)}function j(e){i.go(e)}var M=0;function L(e){1===(M+=e)&&1===e?(window.addEventListener(h,R),s&&window.addEventListener(y,k)):0===M&&(window.removeEventListener(h,R),s&&window.removeEventListener(y,k))}var F=!1,U={length:i.length,action:"POP",location:P,createHref:D,push:function(e,t){var r="PUSH",n=l(e,t,T(),U.location);A.confirmTransitionTo(n,r,E,function(e){if(e){var t=D(n),o=n.key,s=n.state;if(a){if(i.pushState({key:o,state:s},null,t),m)window.location.href=t;else{var u=C.indexOf(U.location.key),c=C.slice(0,u+1);c.push(n.key),C=c,I({action:r,location:n})}}else window.location.href=t}})},replace:function(e,t){var r="REPLACE",n=l(e,t,T(),U.location);A.confirmTransitionTo(n,r,E,function(e){if(e){var t=D(n),o=n.key,s=n.state;if(a){if(i.replaceState({key:o,state:s},null,t),m)window.location.replace(t);else{var u=C.indexOf(U.location.key);-1!==u&&(C[u]=n.key),I({action:r,location:n})}}else window.location.replace(t)}})},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(e){void 0===e&&(e=!1);var t=A.setPrompt(e);return F||(L(1),F=!0),function(){return F&&(F=!1,L(-1)),t()}},listen:function(e){var t=A.appendListener(e);return L(1),function(){L(-1),t()}}};return U}():function(e){void 0===e&&(e={});var t=e,r=t.getUserConfirmation,n=t.initialEntries,i=void 0===n?["/"]:n,a=t.initialIndex,s=t.keyLength,u=void 0===s?6:s,p=f();function d(e){(0,o.Z)(b,e),b.length=b.entries.length,p.notifyListeners(b.location,b.action)}function h(){return Math.random().toString(36).substr(2,u)}var y=v(void 0===a?0:a,0,i.length-1),g=i.map(function(e){return"string"==typeof e?l(e,void 0,h()):l(e,void 0,e.key||h())});function m(e){var t=v(b.index+e,0,b.entries.length-1),n=b.entries[t];p.confirmTransitionTo(n,"POP",r,function(e){e?d({action:"POP",location:n,index:t}):d()})}var b={length:g.length,action:"POP",location:g[y],index:y,entries:g,createHref:c,push:function(e,t){var n="PUSH",i=l(e,t,h(),b.location);p.confirmTransitionTo(i,n,r,function(e){if(e){var t=b.index+1,r=b.entries.slice(0);r.length>t?r.splice(t,r.length-t,i):r.push(i),d({action:n,location:i,index:t,entries:r})}})},replace:function(e,t){var n="REPLACE",i=l(e,t,h(),b.location);p.confirmTransitionTo(i,n,r,function(e){e&&(b.entries[b.index]=i,d({action:n,location:i}))})},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),p.setPrompt(e)},listen:function(e){return p.appendListener(e)}};return b}(),this.lastPushSearchString=""}readUrl(){return this.history?this.history.location.search:""}writeUrl(e,{replaceUrl:t=!1}={}){(t?this.history.replace:this.history.push)(`?${e}`)}urlToState(e){return function(e){let t={current:T(S(e.current)),filters:e.filters,searchTerm:S(e.q),resultsPerPage:T(S(e.size)),sortField:A(e)[0],sortDirection:A(e)[1],sortList:e.sort};return Object.keys(t).reduce((e,r)=>{let n=t[r];return n&&(e[r]=n),e},{})}(_(e))}stateToUrl(e){return`${O(function({searchTerm:e,current:t,filters:r,resultsPerPage:n,sortDirection:i,sortField:o,sortList:a}){let s={};return t>1&&(s.current=t),e&&(s.q=e),n&&(s.size=n),r&&r.length>0&&(s.filters=r),a&&a.length>0?s.sort=a:o&&(s["sort-field"]=o,s["sort-direction"]=i),s}(e))}`}getStateFromURL(){return this.routingOptions.urlToState(this.routingOptions.readUrl())}pushStateToURL(e,{replaceUrl:t=!1}={}){let r=this.routingOptions.stateToUrl(e);this.lastPushSearchString=r,this.routingOptions.writeUrl(r,{replaceUrl:t})}onURLStateChange(e){this.unlisten=this.routingOptions.routeChangeHandler((t=>{`?${this.lastPushSearchString}`!==t&&(this.lastPushSearchString="",e(this.routingOptions.urlToState(t)))}).bind(this))}routeChangeHandler(e){return this.history.listen(t=>{e(t.search)})}tearDown(){this.unlisten()}}class R{constructor(){this.requestSequence=0,this.lastCompleted=0}next(){return++this.requestSequence}isOldRequest(e){return e<this.lastCompleted}completed(e){this.lastCompleted=e}}function k(e,t){let r;let n=function(){let n=arguments;clearTimeout(r),r=setTimeout(()=>{e.apply(null,n)},t)};return n.cancel=()=>{r&&(clearTimeout(r),r=null)},n}class x{constructor(){this.debounceCache={}}runWithDebounce(e,t,r,...n){if(!e)return r(...n);let i=`${t}|${e.toString()}`,o=this.debounceCache[i];o||(this.debounceCache[i]=k(r,e),o=this.debounceCache[i]),o(...n)}cancelByName(e){Object.entries(this.debounceCache).filter(([t])=>t.startsWith(`${e}|`)).forEach(([e,t])=>t.cancel())}}x.debounce=(e,t)=>k(t,e);var N=r(14567);function P(e,t,r="all"){this.debug&&console.log("Search UI: Action","addFilter",...arguments);let{filters:n}=this.state,i=n.find(t=>t.field===e&&t.type===r)||null,o=n.filter(t=>t.field!==e||t.type!==r)||[],a=(null==i?void 0:i.values)||[],s=a.find(e=>(0,N.doFilterValuesMatch)(e,t))?a:a.concat(t);this._updateSearchResults({current:1,filters:[...o,{field:e,values:s,type:r}]}),this.events.emit({type:"FacetFilterSelected",field:e,value:(0,N.serialiseFilter)(s),query:this.state.searchTerm})}function C(e,t=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteClickThrough",...arguments);let{autocompletedResultsRequestId:r,searchTerm:n,autocompletedResults:i,current:o,resultsPerPage:a,totalResults:s,filters:u}=this.state,c=i.findIndex(t=>t._meta.id===e),l=i[c],f=this.events;f.autocompleteResultClick({query:n,documentId:e,requestId:r,tags:t,result:l,resultIndex:c}),f.emit({type:"ResultSelected",documentId:e,query:n,position:c,origin:"autocomplete",tags:t,totalResults:s,filters:u,currentPage:o,resultsPerPage:a})}function D(e=[]){this.debug&&console.log("Search UI: Action","clearFilters",...arguments);let{filters:t}=this.state,r=t.filter(t=>{let r=t.field;return e.includes(r)});this._updateSearchResults({current:1,filters:r})}function j(e,t,r){this.debug&&console.log("Search UI: Action","removeFilter",...arguments);let{filters:n}=this.state,i=n;i=!t&&r?n.filter(t=>!(t.field===e&&t.type===r)):t?(0,N.removeSingleFilterValue)(n,e,t,r):n.filter(t=>t.field!==e),this._updateSearchResults({current:1,filters:i}),this.events.emit({type:"FacetFilterRemoved",field:e,value:t&&(0,N.serialiseFilter)([t]),query:this.state.searchTerm})}function M(){this.debug&&console.log("Search UI: Action","reset",...arguments),this._setState(this.startingState),this.trackUrlState&&this.URLManager.pushStateToURL(this.state)}function L(e){this.debug&&console.log("Search UI: Action","setCurrent",...arguments),this._updateSearchResults({current:e})}function F(e,t,r="all"){this.debug&&console.log("Search UI: Action","setFilter",...arguments);let{filters:n}=this.state;n=n.filter(t=>t.field!==e||t.type!==r),this._updateSearchResults({current:1,filters:[...n,{field:e,values:[t],type:r}]}),this.events.emit({type:"FacetFilterSelected",field:e,value:t&&(0,N.serialiseFilter)([t]),query:this.state.searchTerm})}function U(e){this.debug&&console.log("Search UI: Action","setResultsPerPage",...arguments),this._updateSearchResults({current:1,resultsPerPage:e})}function V(e,{autocompleteMinimumCharacters:t=0,autocompleteResults:r=!1,autocompleteSuggestions:n=!1,shouldClearFilters:i=!0,refresh:o=!0,debounce:a=0}={}){this.debug&&console.log("Search UI: Action","setSearchTerm",...arguments),this._setState({searchTerm:e}),o&&this.debounceManager.runWithDebounce(a,"_updateSearchResults",this._updateSearchResults,Object.assign({current:1},i&&{filters:[]})),(r||n)&&e.length>=t&&this.debounceManager.runWithDebounce(a,"_updateAutocomplete",this._updateAutocomplete,e,{autocompleteResults:r,autocompleteSuggestions:n})}function B(e,t){this.debug&&console.log("Search UI: Action","setSort",...arguments);let r={current:1,sortList:null,sortField:null,sortDirection:null};Array.isArray(e)?r.sortList=e:(r.sortField=e,r.sortDirection=t),this._updateSearchResults(r)}function G(e,t=[]){this.debug&&console.log("Search UI: Action","trackClickThrough",...arguments);let{requestId:r,searchTerm:n,results:i,current:o,resultsPerPage:a,totalResults:s,filters:u}=this.state,c=i.findIndex(t=>t._meta.id===e),l=i[c],f=this.events;this.events.resultClick({query:n,documentId:e,requestId:r,tags:t,result:l,page:o,resultsPerPage:a,resultIndexOnPage:c}),f.emit({type:"ResultSelected",documentId:e,query:n,origin:"results",position:c,tags:t,totalResults:s,filters:u,currentPage:o,resultsPerPage:a})}let q="search-ui-screen-reader-notifications",z="undefined"!=typeof document,H=()=>{if(!z)return null;let e=document.getElementById(q);return e||((e=document.createElement("div")).id=q,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.margin="-1px",e.style.padding="0",e.style.border="0",e.style.overflow="hidden",e.style.clip="rect(0 0 0 0)",document.body.appendChild(e)),e},W=e=>{let t=H();t&&(t.textContent=e)},K={searchResults:({start:e,end:t,totalResults:r,searchTerm:n})=>{let i=`Showing ${e} to ${t} results out of ${r}`;return n&&(i+=`, searching for "${n}".`),i}};function Y(e,t){if(!this.hasA11yNotifications)return;let r=this.a11yNotificationMessages[e];if(!r){console.warn("Action","a11yNotify",`Could not find corresponding message function in a11yNotificationMessages: "${e}"`);return}let n=r(t);W(n),this.debug&&console.log("Search UI: Action","a11yNotify",{messageFunc:e,messageArgs:t,message:n})}function Q(e,t,r=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteSuggestionClickThrough",...arguments);let{searchTerm:n}=this.state;this.events.emit({type:"AutocompleteSuggestionSelected",position:t,query:n,tags:r,suggestion:e})}function $(e,t,r){if(r){if(t){let n=t[e].bind(t);return(...e)=>r(...e,n)}return r}return t&&t[e]?t[e].bind(t):()=>{throw`No ${e} handler provided and no Connector provided. You must configure one or the other.`}}class J{constructor({apiConnector:e,onSearch:t,onAutocomplete:r,onResultClick:n,onAutocompleteResultClick:i,plugins:o=[]}={}){this.search=$("onSearch",e,t),this.autocomplete=$("onAutocomplete",e,r),this.resultClick=$("onResultClick",e,n),this.autocompleteResultClick=$("onAutocompleteResultClick",e,i),this.plugins=o}emit(e){this.plugins.forEach(t=>{t.subscribe(e)})}}var X=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function Z({current:e,filters:t,resultsPerPage:r,searchTerm:n,sortDirection:i,sortField:o,sortList:a}){return{current:e,filters:t,resultsPerPage:r,searchTerm:n,sortDirection:i,sortField:o,sortList:a}}let ee={current:1,filters:[],resultsPerPage:20,searchTerm:"",sortDirection:"",sortField:"",sortList:[],autocompletedResults:[],autocompletedResultsRequestId:"",autocompletedSuggestions:{},autocompletedSuggestionsRequestId:"",error:"",isLoading:!1,facets:{},requestId:"",results:[],resultSearchTerm:"",totalPages:0,totalResults:0,pagingStart:0,pagingEnd:0,wasSearched:!1,rawResponse:{}};class et{constructor({apiConnector:e,autocompleteQuery:t={},plugins:r=[],debug:i,initialState:o,onSearch:a,onAutocomplete:s,onResultClick:u,onAutocompleteResultClick:c,searchQuery:l={},trackUrlState:f=!0,routingOptions:p={},urlPushDebounceLength:d=500,hasA11yNotifications:h=!1,a11yNotificationMessages:y={},alwaysSearchOnInitialLoad:g=!1}){let v;this.state=ee,this._updateAutocomplete=(e,{autocompleteResults:t,autocompleteSuggestions:r}={})=>{let n=this.autocompleteRequestSequencer.next(),i=Object.assign(Object.assign({},t&&{results:this.autocompleteQuery.results||{}}),r&&{suggestions:this.autocompleteQuery.suggestions||{}});return this.events.autocomplete({searchTerm:e},i).then(e=>{this.autocompleteRequestSequencer.isOldRequest(n)||(this.autocompleteRequestSequencer.completed(n),this._setState(e))})},this._updateSearchResults=(e,{skipPushToUrl:t=!1,replaceUrl:r=!1}={})=>{let{current:n,filters:i,resultsPerPage:o,searchTerm:a,sortDirection:s,sortField:u,sortList:c}=Object.assign(Object.assign({},this.state),e);this.debounceManager.cancelByName("_updateSearchResults"),this._setState({current:n,error:"",filters:i,resultsPerPage:o,searchTerm:a,sortDirection:s,sortField:u,sortList:c}),this._makeSearchRequest({skipPushToUrl:t,replaceUrl:r})},this._makeSearchRequest=x.debounce(0,({skipPushToUrl:e,replaceUrl:t})=>{let{current:r,filters:n,resultsPerPage:i,searchTerm:o,sortDirection:a,sortField:s,sortList:u}=this.state;this._setState({isLoading:!0});let c=this.searchRequestSequencer.next(),l=this.searchQuery,{conditionalFacets:f}=l,p=Object.assign(Object.assign({},X(l,["conditionalFacets"])),{facets:function(e={},t={},r=[]){return Object.entries(e).reduce((e,[n,i])=>(t[n]&&"function"==typeof t[n]&&!t[n]({filters:r})||(e[n]=i),e),{})}(this.searchQuery.facets,f,n)}),d=Object.assign(Object.assign({},Z(this.state)),{filters:(0,N.mergeFilters)(n,this.searchQuery.filters)});return this.events.search(d,p).then(l=>{if(this.searchRequestSequencer.isOldRequest(c))return;this.searchRequestSequencer.completed(c);let{totalResults:f}=l;this.events.emit({type:"SearchQuery",filters:this.state.filters,query:this.state.searchTerm,currentPage:d.current,resultsPerPage:d.resultsPerPage,totalResults:f});let p=0===f?0:(r-1)*i+1,h=f<p+i?f:p+i-1;this._setState(Object.assign(Object.assign({isLoading:!1,resultSearchTerm:o,pagingStart:p,pagingEnd:h},l),{wasSearched:!0})),this.hasA11yNotifications&&this.actions.a11yNotify("searchResults",{start:p,end:h,totalResults:f,searchTerm:o}),!e&&this.trackUrlState&&this.debounceManager.runWithDebounce(this.urlPushDebounceLength,"pushStateToURL",this.URLManager.pushStateToURL.bind(this.URLManager),{current:r,filters:n,resultsPerPage:i,searchTerm:o,sortDirection:a,sortField:s,sortList:u},{replaceUrl:t})},e=>{var t;if("Invalid credentials"===e.message){this._setState(Object.assign({},(null===(t=this.apiConnector)||void 0===t?void 0:t.state)&&Object.assign({},this.apiConnector.state)));return}this._setState({error:`An unexpected error occurred: ${e.message}`})})}),this.actions=Object.entries(n).reduce((e,[t,r])=>Object.assign(Object.assign({},e),{[t]:r.bind(this)}),{}),this.actions=Object.assign(Object.assign({},this.actions),(null==e?void 0:e.actions)&&Object.assign({},e.actions)),Object.assign(this,this.actions),this.events=new J({apiConnector:e,onSearch:a,onAutocomplete:s,onResultClick:u,onAutocompleteResultClick:c,plugins:r}),this.debug=i,this.debug&&(console.warn("Search UI Debugging is enabled. This should be turned off in production deployments."),"undefined"!=typeof window&&(window.searchUI=this)),this.autocompleteRequestSequencer=new R,this.searchRequestSequencer=new R,this.debounceManager=new x,this.autocompleteQuery=t,this.searchQuery=l,this.subscriptions=[],this.trackUrlState=f,this.urlPushDebounceLength=d,this.alwaysSearchOnInitialLoad=g,this.apiConnector=e,f?(this.URLManager=new I(p),v=this.URLManager.getStateFromURL(),this.URLManager.onURLStateChange(e=>{this._updateSearchResults(Object.assign(Object.assign({},ee),e),{skipPushToUrl:!0})})):v={},this.hasA11yNotifications=h,this.hasA11yNotifications&&H(),this.a11yNotificationMessages=Object.assign(Object.assign({},K),y),this.startingState=Object.assign(Object.assign({},this.state),o);let m=Z(Object.assign(Object.assign({},this.startingState),v));this.state=Object.assign(Object.assign(Object.assign({},this.state),(null==e?void 0:e.state)&&Object.assign({},e.state)),m),(m.searchTerm||m.filters.length>0||this.alwaysSearchOnInitialLoad)&&this._updateSearchResults(m,{replaceUrl:!0})}_setState(e){let t=Object.assign(Object.assign({},this.state),e);this.debug&&console.log("Search UI: State Update",e,t),this.state=t,this.subscriptions.forEach(e=>e(t))}setSearchQuery(e){this.searchQuery=e,this._updateSearchResults({})}setAutocompleteQuery(e){this.autocompleteQuery=e}subscribeToStateChanges(e){this.subscriptions.push(e)}unsubscribeToStateChanges(e){this.subscriptions=this.subscriptions.filter(t=>t!==e)}tearDown(){this.subscriptions=[],this.URLManager&&this.URLManager.tearDown(),this.debounceManager.cancelByName("pushStateToURL")}getActions(){return this.actions}getState(){return Object.assign({},this.state)}}var er=r(36381),en={moreFilters:({visibleOptionsCount:e,showingAll:t})=>(t?"All ":"")+`${e} options shown.`},ei=({children:e,config:t,driver:r})=>{let[n,o]=(0,i.useState)(null);return((0,i.useEffect)(()=>{let e=r||new et(Object.assign(Object.assign({},t),{a11yNotificationMessages:Object.assign(Object.assign({},en),t.a11yNotificationMessages)}));return o(e),()=>{e.tearDown()}},[]),(0,i.useEffect)(()=>{n&&n.setSearchQuery(t.searchQuery)},[t.searchQuery]),(0,i.useEffect)(()=>{n&&n.setAutocompleteQuery(t.autocompleteQuery)},[t.autocompleteQuery]),n)?i.createElement(er.Z.Provider,{value:{driver:n}},e):null}},80293:function(e,t,r){"use strict";var n=r(2700),i=r(89523),o=r(75414),a=r.n(o);function s({mapContextToProps:e,children:t}){let r=(0,i.Z)(e)(e=>t(e));return n.createElement(r,null)}s.propTypes={mapContextToProps:a().func,children:a().func.isRequired},t.Z=s},89523:function(e,t,r){"use strict";var n=r(2700),i=r(36381),o=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function a(e,t,r){return(r.mapContextToProps||t)(e,r)||{}}t.Z=function(e){if(!e)throw"withSearch requires a function to be provided which returns an object with at least one value.";return function(t){class r extends n.PureComponent{constructor(t,r){super(t),this.subscription=t=>{this.mounted&&this.setState(r=>a(Object.assign(Object.assign({},r),t),e,this.props))},this.mounted=!1,this.state=Object.assign({},a(Object.assign(Object.assign({},r.driver.getState()),r.driver.getActions()),e,t))}componentDidMount(){this.mounted=!0,this.context.driver.subscribeToStateChanges(this.subscription)}componentWillUnmount(){this.mounted=!1,this.context.driver.unsubscribeToStateChanges(this.subscription)}render(){let e=o(this.props,[]);return n.createElement(t,Object.assign({},this.state,e))}}return r.contextType=i.Z,r}}},14567:function(e,t,r){"use strict";r.r(t),r.d(t,{doFilterValuesMatch:function(){return c},findFilterValues:function(){return a},isFilterValueRange:function(){return f},markSelectedFacetValuesFromFilters:function(){return u},mergeFilters:function(){return l},removeSingleFilterValue:function(){return s},serialiseFilter:function(){return p}});var n=r(65409),i=r.n(n),o=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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function a(e,t,r){let n=e.find(e=>e.field===t&&e.type===r);return n?n.values:[]}function s(e,t,r,n){return e.reduce((e,i)=>{let{field:a,values:s,type:u}=i,l=o(i,["field","values","type"]);if(a===t&&(!n||u===n)){let t=s.filter(e=>!c(e,r));return t.length>0?e.concat(Object.assign({field:a,values:t,type:u},l)):e}return e.concat(i)},[])}function u(e,t,r,n){let i=e.data,o=a(t,r,n)||[];return Object.assign(Object.assign({},e),{data:i.map(e=>Object.assign(Object.assign({},e),{selected:o.some(t=>c(t,e.value))}))})}function c(e,t){return!!e&&!!e.name&&!!t&&!!t.name&&e.name===t.name||i()(e,t,{strict:!0})}function l(e,t){return t?t.reduce((e,t)=>e.find(e=>e.type===t.type&&e.field===t.field)?e:[...e,t],e):e}function f(e){return"object"==typeof e&&void 0!==e.name}let p=e=>e.reduce((e,t)=>(f(t)?e.push(t.name):e.push(t.toString()),e),[]).join(",")},14795:function(e,t,r){"use strict";r.d(t,{helpers:function(){return n}});let n=Object.assign({},r(14567))},30224:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},72268:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i((a+s)*3/4-s),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)o.push(r[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>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;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)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["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},65565:function(e,t,r){"use strict";var n=r(72268),i=r(78428),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)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 l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(k(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);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(k(e,ArrayBuffer)||e&&k(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(k(e,SharedArrayBuffer)||e&&k(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|d(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;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 c(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 l(e){return c(e),a(e<0?0:0|d(e))}function f(e){for(var t=e.length<0?0:0|d(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function d(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||k(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 A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(e).length;default:if(i)return n?-1:A(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){var i,o,a=!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;o<r;++o)i+=x[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=t,o=r,0===i&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=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,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else -1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,p=0;p<u;p++)if(c(e,o+p)!==c(t,p)){f=!1;break}if(f)return o}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function E(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)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||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function O(e,t,r,n,o){return t=+t,r>>>=0,o||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,o){return t=+t,r>>>=0,o||_(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=2147483647,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 u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(c(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 l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),k(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);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(k(o,Uint8Array))i+o.length>n.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=h,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;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):y.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(k(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,u=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;f<u;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=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,u,c,l,f,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!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<n;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,R(A(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=r,R(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return u=t,c=r,R(I(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,f=r,R(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,f);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!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<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(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(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*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(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(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(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(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(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(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,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<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=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=+e,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=+e,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=+e,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=+e,t>>>=0,r||w(this,e,t,4,4294967295,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=+e,t>>>=0,r||w(this,e,t,4,4294967295,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=+e,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<r&&(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.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=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=+e,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=+e,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=+e,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=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),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=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+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 O(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return S(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<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),u=a.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%u]}return this};var T=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&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 I(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function k(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var x=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}()},96835:function(e,t,r){"use strict";var n=r(83485),i=r(49380),o=r(78610),a=r(11814);e.exports=a||n.call(o,i)},49380:function(e){"use strict";e.exports=Function.prototype.apply},78610:function(e){"use strict";e.exports=Function.prototype.call},74518:function(e,t,r){"use strict";var n=r(83485),i=r(43828),o=r(78610),a=r(96835);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},11814:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},97963:function(e,t,r){"use strict";var n=r(80197),i=r(42922),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}},42922:function(e,t,r){"use strict";var n=r(83485),i=r(80197),o=r(4899),a=r(43828),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||n.call(u,s),l=r(12005),f=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(n,s,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},19858:function(e,t,r){"use strict";var n=r(7139),i=r(74518),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}},1695:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},16554:function(e){"use strict";e.exports=Object},7139:function(e,t,r){"use strict";var n,i=r(16554),o=r(98506),a=r(55371),s=r(87232),u=r(60962),c=r(86967),l=r(43828),f=r(35192),p=r(9862),d=r(95233),h=r(77803),y=r(23354),g=r(19063),v=r(29467),m=r(17951),b=Function,E=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(24459),_=r(1695),O=function(){throw new l},S=w?function(){try{return arguments.callee,O}catch(e){try{return w(arguments,"callee").get}catch(e){return O}}}():O,T=r(26834)(),A=r(56512),I=r(76441),R=r(8476),k=r(49380),x=r(78610),N={},P="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":N,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):n,"%Symbol%":T?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":k,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":m,"%Reflect.getPrototypeOf%":R};if(A)try{null.error}catch(e){var D=A(A(e));C["%Error.prototype%"]=D}var j=function e(t){var r;if("%AsyncFunction%"===t)r=E("async function () {}");else if("%GeneratorFunction%"===t)r=E("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=E("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return C[t]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=r(83485),F=r(21630),U=L.call(x,Array.prototype.concat),V=L.call(k,Array.prototype.splice),B=L.call(x,String.prototype.replace),G=L.call(x,String.prototype.slice),q=L.call(x,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,W=function(e){var t=G(e,0,1),r=G(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return B(e,z,function(e,t,r,i){n[n.length]=r?B(i,H,"$1"):t||e}),n},K=function(e,t){var r,n=e;if(F(M,n)&&(n="%"+(r=M[n])[0]+"%"),F(C,n)){var i=C[n];if(i===N&&(i=j(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),n=r.length>0?r[0]:"",i=K("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],V(r,U([0,1],u)));for(var f=1,p=!0;f<r.length;f+=1){var d=r[f],h=G(d,0,1),y=G(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(s=!0),n+="."+d,F(C,o="%"+n+"%"))a=C[o];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&f+1>=r.length){var g=w(a,d);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else p=F(a,d),a=a[d];p&&!s&&(C[o]=a)}}return a}},78600:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},24459:function(e,t,r){"use strict";var n=r(78600);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},26834:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(46949);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},46949: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}},24993:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},n=(t||{}).decode||i,o=0;o<e.length;){var a=e.indexOf("=",o);if(-1===a)break;var s=e.indexOf(";",o);if(-1===s)s=e.length;else if(s<a){o=e.lastIndexOf(";",a-1)+1;continue}var u=e.slice(o,a).trim();if(void 0===r[u]){var c=e.slice(a+1,s).trim();34===c.charCodeAt(0)&&(c=c.slice(1,-1)),r[u]=function(e,t){try{return t(e)}catch(t){return e}}(c,n)}o=s+1}return r},t.serialize=function(e,t,i){var a=i||{},s=a.encode||o;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var u=s(t);if(u&&!n.test(u))throw TypeError("argument val is invalid");var c=e+"="+u;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(a.domain){if(!n.test(a.domain))throw TypeError("option domain is invalid");c+="; Domain="+a.domain}if(a.path){if(!n.test(a.path))throw TypeError("option path is invalid");c+="; Path="+a.path}if(a.expires){var f=a.expires;if("[object Date]"!==r.call(f)&&!(f instanceof Date)||isNaN(f.valueOf()))throw TypeError("option expires is invalid");c+="; Expires="+f.toUTCString()}if(a.httpOnly&&(c+="; HttpOnly"),a.secure&&(c+="; Secure"),a.partitioned&&(c+="; Partitioned"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function o(e){return encodeURIComponent(e)}},24397:function(e,t,r){"use strict";let n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0,i=e=>{let t=new DataView(e),r="";for(let e=0;e<t.byteLength;e+=4)r+=t.getUint32(e).toString(16).padStart(8,"0");return r},o=e=>async(t,r)=>{"string"==typeof t&&(t=new n.TextEncoder().encode(t)),r={outputFormat:"hex",...r};let o=await n.crypto.subtle.digest(e,t);return"hex"===r.outputFormat?i(o):o};o("SHA-1"),t.JQ=o("SHA-256"),o("SHA-384"),o("SHA-512")},65409:function(e,t,r){var n=r(77674),i=r(92973),o=r(16035),a=r(53784),s=r(49632),u=r(101),c=Date.prototype.getTime;function l(e){return!!e&&"object"==typeof e&&"number"==typeof e.length&&"function"==typeof e.copy&&"function"==typeof e.slice&&(!(e.length>0)||"number"==typeof e[0])}e.exports=function e(t,r,f){var p=f||{};return(p.strict?!!o(t,r):t===r)||(t&&r&&("object"==typeof t||"object"==typeof r)?function(t,r,o){if(typeof t!=typeof r||null==t||null==r||t.prototype!==r.prototype||i(t)!==i(r))return!1;var f,p,d=a(t),h=a(r);if(d!==h)return!1;if(d||h)return t.source===r.source&&s(t)===s(r);if(u(t)&&u(r))return c.call(t)===c.call(r);var y=l(t),g=l(r);if(y!==g)return!1;if(y||g){if(t.length!==r.length)return!1;for(f=0;f<t.length;f++)if(t[f]!==r[f])return!1;return!0}if(typeof t!=typeof r)return!1;try{var v=n(t),m=n(r)}catch(e){return!1}if(v.length!==m.length)return!1;for(v.sort(),m.sort(),f=v.length-1;f>=0;f--)if(v[f]!=m[f])return!1;for(f=v.length-1;f>=0;f--)if(!e(t[p=v[f]],r[p],o))return!1;return!0}(t,r,p):p.strict?o(t,r):t==r)}},59279:function(e,t,r){"use strict";var n=r(12005),i=r(86967),o=r(43828),a=r(69783);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,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},54031:function(e,t,r){"use strict";var n=r(77674),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(59279),u=r(26090)(),c=function(e,t,r,n){if(t in e){if(!0===n){if(e[t]===r)return}else if(!("function"==typeof n&&"[object Function]"===o.call(n))||!n())return}u?s(e,t,r,!0):s(e,t,r)},l=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],r[o[s]])};l.supportsDescriptors=!!u,e.exports=l},62075:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(n=r=t.ElementType||(t.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},50550: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.DomHandler=void 0;var o=r(62075),a=r(21524);i(r(21524),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=e;return}var t=new a.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},21524: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)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=r(62075),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),_(this,e)},e}();t.Node=s;var u=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(u);t.Text=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(u);t.Comment=l;var f=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=a.ElementType.Directive,n}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u);t.ProcessingInstruction=f;var p=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var y=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,n)||this;return o.name=t,o.attribs=r,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function m(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function E(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function _(e,t){if(void 0===t&&(t=!1),m(e))r=new c(e.data);else if(b(e))r=new l(e.data);else if(g(e)){var r,n=t?O(e.children):[],i=new y(e.name,o({},e.attribs),n);n.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(v(e)){var n=t?O(e.children):[],a=new d(n);n.forEach(function(e){return e.parent=a}),r=a}else if(w(e)){var n=t?O(e.children):[],s=new h(n);n.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(E(e)){var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}else throw Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function O(e){for(var t=e.map(function(e){return _(e,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=y,t.isTag=g,t.isCDATA=v,t.isText=m,t.isComment=b,t.isDirective=E,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=_},96588:function(e){var t;t=function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:a,create:s}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t,r){return e.apply(t,r)}),c||(c=function(e,t){return new e(...t)});let l=_(Array.prototype.forEach),f=_(Array.prototype.pop),p=_(Array.prototype.push),d=_(String.prototype.toLowerCase),h=_(String.prototype.toString),y=_(String.prototype.match),g=_(String.prototype.replace),v=_(String.prototype.indexOf),m=_(String.prototype.trim),b=_(Object.prototype.hasOwnProperty),E=_(RegExp.prototype.test),w=(W=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return c(W,t)});function _(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return u(e,t,n)}}function O(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){let e=i(t);e!==t&&(r(n)||(n[o]=e),t=e)}e[t]=!0}return e}function S(t){let r=s(null);for(let[n,i]of e(t))b(t,n)&&(Array.isArray(i)?r[n]=function(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}(i):i&&"object"==typeof i&&i.constructor===Object?r[n]=S(i):r[n]=i);return r}function T(e,t){for(;null!==e;){let r=i(e,t);if(r){if(r.get)return _(r.get);if("function"==typeof r.value)return _(r.value)}e=n(e)}return function(){return null}}let A=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["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"]),k=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),x=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=o(["#text"]),C=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),D=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),M=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\${[\w\W]*}/gm),V=a(/^data-[\-\w.\u00B7-\uFFFF]/),B=a(/^aria-[\-\w]+$/),G=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),z=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H=a(/^html$/i);var W,K=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:F,TMPLIT_EXPR:U,DATA_ATTR:V,ARIA_ATTR:B,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:z,DOCTYPE_NAME:H,CUSTOM_ELEMENT:a(/^[a-z][.\w]*(-[.\w]+)+$/i)});let Y={element:1,text:3,progressingInstruction:7,comment:8,document:9},Q=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}};return function t(){let r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=e=>t(e);if(i.version="3.1.6",i.removed=[],!n||!n.document||n.document.nodeType!==Y.document)return i.isSupported=!1,i;let{document:a}=n,u=a,c=u.currentScript,{DocumentFragment:_,HTMLTemplateElement:L,Node:F,Element:U,NodeFilter:V,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:q,DOMParser:z,trustedTypes:W}=n,$=U.prototype,J=T($,"cloneNode"),X=T($,"remove"),Z=T($,"nextSibling"),ee=T($,"childNodes"),et=T($,"parentNode");if("function"==typeof L){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let er="",{implementation:en,createNodeIterator:ei,createDocumentFragment:eo,getElementsByTagName:ea}=a,{importNode:es}=u,eu={};i.isSupported="function"==typeof e&&"function"==typeof et&&en&&void 0!==en.createHTMLDocument;let{MUSTACHE_EXPR:ec,ERB_EXPR:el,TMPLIT_EXPR:ef,DATA_ATTR:ep,ARIA_ATTR:ed,IS_SCRIPT_OR_DATA:eh,ATTR_WHITESPACE:ey,CUSTOM_ELEMENT:eg}=K,{IS_ALLOWED_URI:ev}=K,em=null,eb=O({},[...A,...I,...R,...x,...P]),eE=null,ew=O({},[...C,...D,...j,...M]),e_=Object.seal(s(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,eS=null,eT=!0,eA=!0,eI=!1,eR=!0,ek=!1,ex=!0,eN=!1,eP=!1,eC=!1,eD=!1,ej=!1,eM=!1,eL=!0,eF=!1,eU=!0,eV=!1,eB={},eG=null,eq=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ez=null,eH=O({},["audio","video","img","source","image","track"]),eW=null,eK=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eY="http://www.w3.org/1998/Math/MathML",eQ="http://www.w3.org/2000/svg",e$="http://www.w3.org/1999/xhtml",eJ=e$,eX=!1,eZ=null,e0=O({},[eY,eQ,e$],h),e1=null,e2=["application/xhtml+xml","text/html"],e3=null,e4=null,e6=a.createElement("form"),e5=function(e){return e instanceof RegExp||e instanceof Function},e8=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e4||e4!==e){if(e&&"object"==typeof e||(e={}),e=S(e),e3="application/xhtml+xml"===(e1=-1===e2.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?h:d,em=b(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,e3):eb,eE=b(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,e3):ew,eZ=b(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,h):e0,eW=b(e,"ADD_URI_SAFE_ATTR")?O(S(eK),e.ADD_URI_SAFE_ATTR,e3):eK,ez=b(e,"ADD_DATA_URI_TAGS")?O(S(eH),e.ADD_DATA_URI_TAGS,e3):eH,eG=b(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,e3):eq,eO=b(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,e3):{},eS=b(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,e3):{},eB=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,eT=!1!==e.ALLOW_ARIA_ATTR,eA=!1!==e.ALLOW_DATA_ATTR,eI=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eR=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ek=e.SAFE_FOR_TEMPLATES||!1,ex=!1!==e.SAFE_FOR_XML,eN=e.WHOLE_DOCUMENT||!1,eD=e.RETURN_DOM||!1,ej=e.RETURN_DOM_FRAGMENT||!1,eM=e.RETURN_TRUSTED_TYPE||!1,eC=e.FORCE_BODY||!1,eL=!1!==e.SANITIZE_DOM,eF=e.SANITIZE_NAMED_PROPS||!1,eU=!1!==e.KEEP_CONTENT,eV=e.IN_PLACE||!1,ev=e.ALLOWED_URI_REGEXP||G,eJ=e.NAMESPACE||e$,e_=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(e_.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(e_.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(e_.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ek&&(eA=!1),ej&&(eD=!0),eB&&(em=O({},P),eE=[],!0===eB.html&&(O(em,A),O(eE,C)),!0===eB.svg&&(O(em,I),O(eE,D),O(eE,M)),!0===eB.svgFilters&&(O(em,R),O(eE,D),O(eE,M)),!0===eB.mathMl&&(O(em,x),O(eE,j),O(eE,M))),e.ADD_TAGS&&(em===eb&&(em=S(em)),O(em,e.ADD_TAGS,e3)),e.ADD_ATTR&&(eE===ew&&(eE=S(eE)),O(eE,e.ADD_ATTR,e3)),e.ADD_URI_SAFE_ATTR&&O(eW,e.ADD_URI_SAFE_ATTR,e3),e.FORBID_CONTENTS&&(eG===eq&&(eG=S(eG)),O(eG,e.FORBID_CONTENTS,e3)),eU&&(em["#text"]=!0),eN&&O(em,["html","head","body"]),em.table&&(O(em,["tbody"]),delete eO.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');er=(r=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===r&&(r=Q(W,c)),null!==r&&"string"==typeof er&&(er=r.createHTML(""));o&&o(e),e4=e}},e9=O({},["mi","mo","mn","ms","mtext"]),e7=O({},["foreignobject","annotation-xml"]),te=O({},["title","style","font","a","script"]),tt=O({},[...I,...R,...k]),tr=O({},[...x,...N]),tn=function(e){let t=et(e);t&&t.tagName||(t={namespaceURI:eJ,tagName:"template"});let r=d(e.tagName),n=d(t.tagName);return!!eZ[e.namespaceURI]&&(e.namespaceURI===eQ?t.namespaceURI===e$?"svg"===r:t.namespaceURI===eY?"svg"===r&&("annotation-xml"===n||e9[n]):!!tt[r]:e.namespaceURI===eY?t.namespaceURI===e$?"math"===r:t.namespaceURI===eQ?"math"===r&&e7[n]:!!tr[r]:e.namespaceURI===e$?(t.namespaceURI!==eQ||!!e7[n])&&(t.namespaceURI!==eY||!!e9[n])&&!tr[r]&&(te[r]||!tt[r]):"application/xhtml+xml"===e1&&!!eZ[e.namespaceURI])},ti=function(e){p(i.removed,{element:e});try{et(e).removeChild(e)}catch(t){X(e)}},to=function(e,t){try{p(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!eE[e]){if(eD||ej)try{ti(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},ta=function(e){let t=null,n=null;if(eC)e="<remove></remove>"+e;else{let t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===e1&&eJ===e$&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=r?r.createHTML(e):e;if(eJ===e$)try{t=new z().parseFromString(i,e1)}catch(e){}if(!t||!t.documentElement){t=en.createDocument(eJ,"template",null);try{t.documentElement.innerHTML=eX?er:i}catch(e){}}let o=t.body||t.documentElement;return(e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),eJ===e$)?ea.call(t,eN?"html":"body")[0]:eN?t.documentElement:o},ts=function(e){return ei.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT|V.SHOW_PROCESSING_INSTRUCTION|V.SHOW_CDATA_SECTION,null)},tu=function(e){return e instanceof q&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tc=function(e){return"function"==typeof F&&e instanceof F},tl=function(e,t,r){eu[e]&&l(eu[e],e=>{e.call(i,t,r,e4)})},tf=function(e){let t=null;if(tl("beforeSanitizeElements",e,null),tu(e))return ti(e),!0;let r=e3(e.nodeName);if(tl("uponSanitizeElement",e,{tagName:r,allowedTags:em}),e.hasChildNodes()&&!tc(e.firstElementChild)&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent)||e.nodeType===Y.progressingInstruction||ex&&e.nodeType===Y.comment&&E(/<[/\w]/g,e.data))return ti(e),!0;if(!em[r]||eO[r]){if(!eO[r]&&td(r)&&(e_.tagNameCheck instanceof RegExp&&E(e_.tagNameCheck,r)||e_.tagNameCheck instanceof Function&&e_.tagNameCheck(r)))return!1;if(eU&&!eG[r]){let t=et(e)||e.parentNode,r=ee(e)||e.childNodes;if(r&&t){let n=r.length;for(let i=n-1;i>=0;--i){let n=J(r[i],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,Z(e))}}}return ti(e),!0}return e instanceof U&&!tn(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&E(/<\/no(script|embed|frames)/i,e.innerHTML)?(ti(e),!0):(ek&&e.nodeType===Y.text&&(t=e.textContent,l([ec,el,ef],e=>{t=g(t,e," ")}),e.textContent!==t&&(p(i.removed,{element:e.cloneNode()}),e.textContent=t)),tl("afterSanitizeElements",e,null),!1)},tp=function(e,t,r){if(eL&&("id"===t||"name"===t)&&(r in a||r in e6))return!1;if(eA&&!eS[t]&&E(ep,t));else if(eT&&E(ed,t));else if(!eE[t]||eS[t]){if(!(td(e)&&(e_.tagNameCheck instanceof RegExp&&E(e_.tagNameCheck,e)||e_.tagNameCheck instanceof Function&&e_.tagNameCheck(e))&&(e_.attributeNameCheck instanceof RegExp&&E(e_.attributeNameCheck,t)||e_.attributeNameCheck instanceof Function&&e_.attributeNameCheck(t))||"is"===t&&e_.allowCustomizedBuiltInElements&&(e_.tagNameCheck instanceof RegExp&&E(e_.tagNameCheck,r)||e_.tagNameCheck instanceof Function&&e_.tagNameCheck(r))))return!1}else if(eW[t]);else if(E(ev,g(r,ey,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===v(r,"data:")&&ez[e]);else if(eI&&!E(eh,g(r,ey,"")));else if(r)return!1;return!0},td=function(e){return"annotation-xml"!==e&&y(e,eg)},th=function(e){tl("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eE},o=t.length;for(;o--;){let{name:a,namespaceURI:s,value:u}=t[o],c=e3(a),p="value"===a?u:m(u);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,tl("uponSanitizeAttribute",e,n),p=n.attrValue,ex&&E(/((--!?|])>)|<\/(style|title)/i,p)){to(a,e);continue}if(n.forceKeepAttr||(to(a,e),!n.keepAttr))continue;if(!eR&&E(/\/>/i,p)){to(a,e);continue}ek&&l([ec,el,ef],e=>{p=g(p,e," ")});let d=e3(e.nodeName);if(tp(d,c,p)){if(eF&&("id"===c||"name"===c)&&(to(a,e),p="user-content-"+p),r&&"object"==typeof W&&"function"==typeof W.getAttributeType){if(s);else switch(W.getAttributeType(d,c)){case"TrustedHTML":p=r.createHTML(p);break;case"TrustedScriptURL":p=r.createScriptURL(p)}}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),tu(e)?ti(e):f(i.removed)}catch(e){}}}tl("afterSanitizeAttributes",e,null)},ty=function e(t){let r=null,n=ts(t);for(tl("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)tl("uponSanitizeShadowNode",r,null),tf(r)||(r.content instanceof _&&e(r.content),th(r));tl("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,s=null;if((eX=!e)&&(e="<!-->"),"string"!=typeof e&&!tc(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}else throw w("toString is not a function")}if(!i.isSupported)return e;if(eP||e8(t),i.removed=[],"string"==typeof e&&(eV=!1),eV){if(e.nodeName){let t=e3(e.nodeName);if(!em[t]||eO[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof F)(o=(n=ta("<!---->")).ownerDocument.importNode(e,!0)).nodeType===Y.element&&"BODY"===o.nodeName?n=o:"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!eD&&!ek&&!eN&&-1===e.indexOf("<"))return r&&eM?r.createHTML(e):e;if(!(n=ta(e)))return eD?null:eM?er:""}n&&eC&&ti(n.firstChild);let c=ts(eV?e:n);for(;a=c.nextNode();)tf(a)||(a.content instanceof _&&ty(a.content),th(a));if(eV)return e;if(eD){if(ej)for(s=eo.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(eE.shadowroot||eE.shadowrootmode)&&(s=es.call(u,s,!0)),s}let f=eN?n.outerHTML:n.innerHTML;return eN&&em["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&E(H,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),ek&&l([ec,el,ef],e=>{f=g(f,e," ")}),r&&eM?r.createHTML(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e8(e),eP=!0},i.clearConfig=function(){e4=null,eP=!1},i.isValidAttribute=function(e,t,r){return e4||e8({}),tp(e3(e),e3(t),r)},i.addHook=function(e,t){"function"==typeof t&&(eu[e]=eu[e]||[],p(eu[e],t))},i.removeHook=function(e){if(eu[e])return f(eu[e])},i.removeHooks=function(e){eu[e]&&(eu[e]=[])},i.removeAllHooks=function(){eu={}},i}()},e.exports=t()},32181:function(e,t,r){"use strict";var n,i=r(74518),o=r(46778);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,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},44048:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},46778:function(e,t,r){"use strict";var n=r(44048);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},12005:function(e,t,r){"use strict";var n=r(80197)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},55371:function(e){"use strict";e.exports=EvalError},98506:function(e){"use strict";e.exports=Error},87232:function(e){"use strict";e.exports=RangeError},60962:function(e){"use strict";e.exports=ReferenceError},86967:function(e){"use strict";e.exports=SyntaxError},43828:function(e){"use strict";e.exports=TypeError},35192:function(e){"use strict";e.exports=URIError},22468:function(e){"use strict";e.exports=Object},39957: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;function o(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}y(e,t,a,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&y(e,"error",o,i))})},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 u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(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=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,c=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,console&&console.warn&&console.warn(c)}return e}function l(){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=l.bind(n);return i.listener=r,n.wrapFn=i,i}function p(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;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):h(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=h(u,c),r=0;r<c;++r)n(l[r],this,t);return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=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<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},96532:function(e,t,r){var n=r(38432),i=r(65565).Buffer,o=r(16877).parse,a=r(39957),s=r(46528),u=r(9639),c=r(59741),l=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","servername","checkServerIdentity"],f=[239,187,191],p=/^(cookie|authorization)$/i;function d(e,t){var r,a=d.CONNECTING,c=t&&t.headers,g=!1;Object.defineProperty(this,"readyState",{get:function(){return a}}),Object.defineProperty(this,"url",{get:function(){return e}});var v=this;function m(t){a!==d.CLOSED&&(a=d.CONNECTING,T("error",new h("error",{message:t})),O&&(e=O,O=null,g=!1),setTimeout(function(){a!==d.CONNECTING||v.connectionInProgress||(v.connectionInProgress=!0,S())},v.reconnectInterval))}v.reconnectInterval=1e3,v.connectionInProgress=!1;var b="";c&&c["Last-Event-ID"]&&(b=c["Last-Event-ID"],delete c["Last-Event-ID"]);var E=!1,w="",_="",O=null;function S(){var A=o(e),I="https:"===A.protocol;if(A.headers={"Cache-Control":"no-cache",Accept:"text/event-stream"},b&&(A.headers["Last-Event-ID"]=b),c){var R=g?function(e){var t={};for(var r in e)p.test(r)||(t[r]=e[r]);return t}(c):c;for(var k in R){var x=R[k];x&&(A.headers[k]=x)}}if(A.rejectUnauthorized=!(t&&!t.rejectUnauthorized),t&&void 0!==t.createConnection&&(A.createConnection=t.createConnection),t&&t.proxy){var N=o(t.proxy);I="https:"===N.protocol,A.protocol=I?"https:":"http:",A.path=e,A.headers.Host=A.host,A.hostname=N.hostname,A.host=N.host,A.port=N.port}if(t&&t.https){for(var P in t.https)if(-1!==l.indexOf(P)){var C=t.https[P];void 0!==C&&(A[P]=C)}}t&&void 0!==t.withCredentials&&(A.withCredentials=t.withCredentials),(r=(I?s:u).request(A,function(t){if(v.connectionInProgress=!1,500===t.statusCode||502===t.statusCode||503===t.statusCode||504===t.statusCode){T("error",new h("error",{status:t.statusCode,message:t.statusMessage})),m();return}if(301===t.statusCode||302===t.statusCode||307===t.statusCode){var r,o,s=t.headers.location;if(!s){T("error",new h("error",{status:t.statusCode,message:t.statusMessage}));return}g=new URL(e).origin!==new URL(s).origin,307===t.statusCode&&(O=e),e=s,n.nextTick(S);return}if(200!==t.statusCode)return T("error",new h("error",{status:t.statusCode,message:t.statusMessage})),v.close();a=d.OPEN,t.on("close",function(){t.removeAllListeners("close"),t.removeAllListeners("end"),m()}),t.on("end",function(){t.removeAllListeners("close"),t.removeAllListeners("end"),m()}),T("open",new h("open"));var u=0,c=-1,l=0,p=0;t.on("data",function(t){if(r)t.length>r.length-p&&((l=2*r.length+t.length)>262144&&(l=r.length+t.length+262144),o=i.alloc(l),r.copy(o,0,0,p),r=o),t.copy(r,p),p+=t.length;else{var n;n=r=t,f.every(function(e,t){return n[t]===e})&&(r=r.slice(f.length)),p=r.length}for(var a=0,s=p;a<s;){E&&(10===r[a]&&++a,E=!1);for(var d,h=-1,g=c,m=u;h<0&&m<s;++m)58===(d=r[m])?g<0&&(g=m-a):13===d?(E=!0,h=m-a):10===d&&(h=m-a);if(h<0){u=s-a,c=g;break}u=0,c=-1,function(t,r,n,i){if(0===i){if(w.length>0){var o=_||"message";T(o,new y(o,{data:w.slice(0,-1),lastEventId:b,origin:new URL(e).origin})),w=""}_=void 0}else if(n>0){var a=n<0,s=0,u=t.slice(r,r+(a?i:n)).toString();s=a?i:32!==t[r+n+1]?n+1:n+2,r+=s;var c=i-s,l=t.slice(r,r+c).toString();if("data"===u)w+=l+"\n";else if("event"===u)_=l;else if("id"===u)b=l;else if("retry"===u){var f=parseInt(l,10);Number.isNaN(f)||(v.reconnectInterval=f)}}}(r,a,g,h),a+=h+1}a===s?(r=void 0,p=0):a>0&&(p=(r=r.slice(a,p)).length)})})).on("error",function(e){v.connectionInProgress=!1,m(e.message)}),r.setNoDelay&&r.setNoDelay(!0),r.end()}function T(){v.listeners(arguments[0]).length>0&&v.emit.apply(v,arguments)}S(),this._close=function(){a!==d.CLOSED&&(a=d.CLOSED,r.abort&&r.abort(),r.xhr&&r.xhr.abort&&r.xhr.abort())}}function h(e,t){if(Object.defineProperty(this,"type",{writable:!1,value:e,enumerable:!0}),t)for(var r in t)t.hasOwnProperty(r)&&Object.defineProperty(this,r,{writable:!1,value:t[r],enumerable:!0})}function y(e,t){for(var r in Object.defineProperty(this,"type",{writable:!1,value:e,enumerable:!0}),t)t.hasOwnProperty(r)&&Object.defineProperty(this,r,{writable:!1,value:t[r],enumerable:!0})}e.exports=d,c.inherits(d,a.EventEmitter),d.prototype.constructor=d,["open","error","message"].forEach(function(e){Object.defineProperty(d.prototype,"on"+e,{get:function(){var t=this.listeners(e)[0];return t?t._listener?t._listener:t:void 0},set:function(t){this.removeAllListeners(e),this.addEventListener(e,t)}})}),Object.defineProperty(d,"CONNECTING",{enumerable:!0,value:0}),Object.defineProperty(d,"OPEN",{enumerable:!0,value:1}),Object.defineProperty(d,"CLOSED",{enumerable:!0,value:2}),d.prototype.CONNECTING=0,d.prototype.OPEN=1,d.prototype.CLOSED=2,d.prototype.close=function(){this._close()},d.prototype.addEventListener=function(e,t){"function"==typeof t&&(t._listener=t,this.on(e,t))},d.prototype.dispatchEvent=function(e){if(!e.type)throw Error("UNSPECIFIED_EVENT_TYPE_ERR");this.emit(e.type,e.detail)},d.prototype.removeEventListener=function(e,t){"function"==typeof t&&(t._listener=void 0,this.removeListener(e,t))}},89810:function(e,t,r){var n,i,o;o={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)},76605:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=r(2700),u=r(25815),c=r(75414),l=r(3325).createFocusTrap,f=r(22829).isFocusable,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,e);var t,r,c=(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=a(l);return e=t?Reflect.construct(r,arguments,a(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return o(e)}(this,e)});function l(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,l),t=o(i=c.call(this,e)),r="getNodeForOption",n=function(e){var t,r,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];n=n.apply(void 0,o)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=n;if("string"==typeof n&&!(s=null===(r=this.getDocument())||void 0===r?void 0:r.querySelector(n)))throw Error("`".concat(e,"` as selector refers to no known node"));return s},r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,i.handleDeactivate=i.handleDeactivate.bind(o(i)),i.handlePostDeactivate=i.handlePostDeactivate.bind(o(i)),i.handleClickOutsideDeactivates=i.handleClickOutsideDeactivates.bind(o(i)),i.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:i.handleDeactivate,onPostDeactivate:i.handlePostDeactivate,clickOutsideDeactivates:i.handleClickOutsideDeactivates},i.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var t,r,n,i,a=e.focusTrapOptions;for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s)){if("returnFocusOnDeactivate"===s||"onDeactivate"===s||"onPostDeactivate"===s||"checkCanReturnFocus"===s||"clickOutsideDeactivates"===s){i.originalOptions[s]=a[s];continue}i.internalOptions[s]=a[s]}return i.outsideClick=null,i.focusTrapElements=e.containerElements||[],i.updatePreviousElement(),i}return r=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),r=!!(e.originalOptions.returnFocusOnDeactivate&&null!=t&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!f(e.outsideClick.target,e.internalOptions.tabbableOptions))),n=e.internalOptions.preventScroll;r&&t.focus({preventScroll:void 0!==n&&n}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(u.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,r=e.active&&!this.props.active,n=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),r){this.deactivateTrap();return}n&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?s.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===s.Fragment)throw Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return s.cloneElement(t,{ref:function(r){var n=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(r):t.ref&&(t.ref.current=r)),e.focusTrapElements=n||[r]}})}return null}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(l.prototype,r),Object.defineProperty(l,"prototype",{writable:!1}),l}(s.Component),d="undefined"==typeof Element?Function:Element;p.propTypes={active:c.bool,paused:c.bool,focusTrapOptions:c.shape({document:c.object,onActivate:c.func,onPostActivate:c.func,checkCanFocusTrap:c.func,onDeactivate:c.func,onPostDeactivate:c.func,checkCanReturnFocus:c.func,initialFocus:c.oneOfType([c.instanceOf(d),c.string,c.bool,c.func]),fallbackFocus:c.oneOfType([c.instanceOf(d),c.string,c.func]),escapeDeactivates:c.oneOfType([c.bool,c.func]),clickOutsideDeactivates:c.oneOfType([c.bool,c.func]),returnFocusOnDeactivate:c.bool,setReturnFocus:c.oneOfType([c.instanceOf(d),c.string,c.bool,c.func]),allowOutsideClick:c.oneOfType([c.bool,c.func]),preventScroll:c.bool,tabbableOptions:c.shape({displayCheck:c.oneOf(["full","non-zero-area","none"]),getShadowRoot:c.oneOfType([c.bool,c.func])})}),containerElements:c.arrayOf(c.instanceOf(d)),children:c.oneOfType([c.element,c.instanceOf(d)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:l},e.exports=p},3325:function(e,t,r){"use strict";r.r(t),r.d(t,{createFocusTrap:function(){return p}});var n,i=r(22829);function o(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s=(n=[],{activateTrap:function(e){if(n.length>0){var t=n[n.length-1];t!==e&&t.pause()}var r=n.indexOf(e);-1===r||n.splice(r,1),n.push(e)},deactivateTrap:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),n.length>0&&n[n.length-1].unpause()}}),u=function(e){return setTimeout(e,0)},c=function(e,t){var r=-1;return e.every(function(e,n){return!t(e)||(r=n,!1)}),r},l=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},f=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},p=function(e,t){var r,n=(null==t?void 0:t.document)||document,o=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),p={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},d=function(e,t,r){return e&&void 0!==e[t]?e[t]:o[r||t]},h=function(e){return p.containerGroups.findIndex(function(t){var r=t.container,n=t.tabbableNodes;return r.contains(e)||n.find(function(t){return t===e})})},y=function(e){var t=o[e];if("function"==typeof t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=n.querySelector(t)))throw Error("`".concat(e,"` as selector refers to no known node"));return s},g=function(){var e=y("initialFocus");if(!1===e)return!1;if(void 0===e){if(h(n.activeElement)>=0)e=n.activeElement;else{var t=p.tabbableGroups[0];e=t&&t.firstTabbableNode||y("fallbackFocus")}}if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},v=function(){if(p.containerGroups=p.containers.map(function(e){var t=(0,i.tabbable)(e,o.tabbableOptions),r=(0,i.focusable)(e,o.tabbableOptions);return{container:e,tabbableNodes:t,focusableNodes:r,firstTabbableNode:t.length>0?t[0]:null,lastTabbableNode:t.length>0?t[t.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=r.findIndex(function(t){return t===e});return n<0?void 0:t?r.slice(n+1).find(function(e){return(0,i.isTabbable)(e,o.tabbableOptions)}):r.slice(0,n).reverse().find(function(e){return(0,i.isTabbable)(e,o.tabbableOptions)})}}}),p.tabbableGroups=p.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),p.tabbableGroups.length<=0&&!y("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},m=function e(t){if(!1!==t&&t!==n.activeElement){if(!t||!t.focus){e(g());return}t.focus({preventScroll:!!o.preventScroll}),p.mostRecentlyFocusedNode=t,t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select&&t.select()}},b=function(e){var t=y("setReturnFocus",e);return t||!1!==t&&e},E=function(e){var t=f(e);if(!(h(t)>=0)){if(l(o.clickOutsideDeactivates,e)){r.deactivate({returnFocus:o.returnFocusOnDeactivate&&!(0,i.isFocusable)(t,o.tabbableOptions)});return}l(o.allowOutsideClick,e)||e.preventDefault()}},w=function(e){var t=f(e),r=h(t)>=0;r||t instanceof Document?r&&(p.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),m(p.mostRecentlyFocusedNode||g()))},_=function(e){var t=f(e);v();var r=null;if(p.tabbableGroups.length>0){var n=h(t),a=n>=0?p.containerGroups[n]:void 0;if(n<0)r=e.shiftKey?p.tabbableGroups[p.tabbableGroups.length-1].lastTabbableNode:p.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var s=c(p.tabbableGroups,function(e){return t===e.firstTabbableNode});if(s<0&&(a.container===t||(0,i.isFocusable)(t,o.tabbableOptions)&&!(0,i.isTabbable)(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(s=n),s>=0){var u=0===s?p.tabbableGroups.length-1:s-1;r=p.tabbableGroups[u].lastTabbableNode}}else{var l=c(p.tabbableGroups,function(e){return t===e.lastTabbableNode});if(l<0&&(a.container===t||(0,i.isFocusable)(t,o.tabbableOptions)&&!(0,i.isTabbable)(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(l=n),l>=0){var d=l===p.tabbableGroups.length-1?0:l+1;r=p.tabbableGroups[d].firstTabbableNode}}}else r=y("fallbackFocus");r&&(e.preventDefault(),m(r))},O=function(e){if(("Escape"===e.key||"Esc"===e.key||27===e.keyCode)&&!1!==l(o.escapeDeactivates,e)){e.preventDefault(),r.deactivate();return}if("Tab"===e.key||9===e.keyCode){_(e);return}},S=function(e){h(f(e))>=0||l(o.clickOutsideDeactivates,e)||l(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},T=function(){if(p.active)return s.activateTrap(r),p.delayInitialFocusTimer=o.delayInitialFocus?u(function(){m(g())}):m(g()),n.addEventListener("focusin",w,!0),n.addEventListener("mousedown",E,{capture:!0,passive:!1}),n.addEventListener("touchstart",E,{capture:!0,passive:!1}),n.addEventListener("click",S,{capture:!0,passive:!1}),n.addEventListener("keydown",O,{capture:!0,passive:!1}),r},A=function(){if(p.active)return n.removeEventListener("focusin",w,!0),n.removeEventListener("mousedown",E,!0),n.removeEventListener("touchstart",E,!0),n.removeEventListener("click",S,!0),n.removeEventListener("keydown",O,!0),r};return(r={get active(){return p.active},get paused(){return p.paused},activate:function(e){if(p.active)return this;var t=d(e,"onActivate"),r=d(e,"onPostActivate"),i=d(e,"checkCanFocusTrap");i||v(),p.active=!0,p.paused=!1,p.nodeFocusedBeforeActivation=n.activeElement,t&&t();var o=function(){i&&v(),T(),r&&r()};return i?i(p.containers.concat()).then(o,o):o(),this},deactivate:function(e){if(!p.active)return this;var t=a({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(p.delayInitialFocusTimer),p.delayInitialFocusTimer=void 0,A(),p.active=!1,p.paused=!1,s.deactivateTrap(r);var n=d(t,"onDeactivate"),i=d(t,"onPostDeactivate"),c=d(t,"checkCanReturnFocus"),l=d(t,"returnFocus","returnFocusOnDeactivate");n&&n();var f=function(){u(function(){l&&m(b(p.nodeFocusedBeforeActivation)),i&&i()})};return l&&c?c(b(p.nodeFocusedBeforeActivation)).then(f,f):f(),this},pause:function(){return p.paused||!p.active||(p.paused=!0,A()),this},unpause:function(){return p.paused&&p.active&&(p.paused=!1,v(),T()),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return p.containers=t.map(function(e){return"string"==typeof e?n.querySelector(e):e}),p.active&&v(),this}}).updateContainerElements(e),r}},59062:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},i=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},o=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var u=i(arguments,1),c=r(0,s.length-u.length),l=[],f=0;f<c;f++)l[f]="$"+f;if(a=Function("binder","return function ("+o(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=s.apply(this,n(u,arguments));return Object(t)===t?t:this}return s.apply(e,n(u,arguments))}),s.prototype){var p=function(){};p.prototype=s.prototype,a.prototype=new p,p.prototype=null}return a}},83485:function(e,t,r){"use strict";var n=r(59062);e.exports=Function.prototype.bind||n},29478:function(e){"use strict";var t=function(){return"string"==typeof(function(){}).name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(e){r=null}t.functionsHaveConfigurableNames=function(){if(!t()||!r)return!1;var e=r(function(){},"name");return!!e&&!!e.configurable};var n=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof n&&""!==(function(){}).bind().name},e.exports=t},80197:function(e,t,r){"use strict";var n,i=r(98506),o=r(55371),a=r(87232),s=r(60962),u=r(86967),c=r(43828),l=r(35192),f=Function,p=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(e){d=null}var h=function(){throw new c},y=d?function(){try{return arguments.callee,h}catch(e){try{return d(arguments,"callee").get}catch(e){return h}}}():h,g=r(85901)(),v=r(23860)(),m=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},E="undefined"!=typeof Uint8Array&&m?m(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":g&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&m?m(m([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&m?m(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&m?m(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&m?m(""[Symbol.iterator]()):n,"%Symbol%":g?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":y,"%TypedArray%":E,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(m)try{null.error}catch(e){var _=m(m(e));w["%Error.prototype%"]=_}var O=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&m&&(r=m(i.prototype))}return w[t]=r,r},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=r(83485),A=r(21630),I=T.call(Function.call,Array.prototype.concat),R=T.call(Function.apply,Array.prototype.splice),k=T.call(Function.call,String.prototype.replace),x=T.call(Function.call,String.prototype.slice),N=T.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,D=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(e,P,function(e,t,r,i){n[n.length]=r?k(i,C,"$1"):t||e}),n},j=function(e,t){var r,n=e;if(A(S,n)&&(n="%"+(r=S[n])[0]+"%"),A(w,n)){var i=w[n];if(i===b&&(i=O(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=D(e),n=r.length>0?r[0]:"",i=j("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],R(r,I([0,1],l)));for(var f=1,p=!0;f<r.length;f+=1){var h=r[f],y=x(h,0,1),g=x(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),n+="."+h,A(w,o="%"+n+"%"))a=w[o];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(d&&f+1>=r.length){var v=d(a,h);a=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else p=A(a,h),a=a[h];p&&!s&&(w[o]=a)}}return a}},76441:function(e,t,r){"use strict";var n=r(22468);e.exports=n.getPrototypeOf||null},8476:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},56512:function(e,t,r){"use strict";var n=r(8476),i=r(76441),o=r(32181);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},69783:function(e,t,r){"use strict";var n=r(80197)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},47831:function(e,t,r){"use strict";r.d(t,{Ps:function(){return f}});var n,i=r(67877),o=r(32682),a=new Map,s=new Map,u=!0,c=!1;function l(e){return e.replace(/[\s,]+/g," ").trim()}function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=l(e);if(!a.has(t)){var r,n,f,p,d,h=(0,o.Qc)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c});if(!h||"Document"!==h.kind)throw Error("Not a valid GraphQL document.");a.set(t,((p=new Set((r=new Set,n=[],h.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=l((t=e.loc).source.body.substring(t.start,t.end)),a=s.get(i);a&&!a.has(o)?u&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||s.set(i,a=new Set),a.add(o),r.has(o)||(r.add(o),n.push(e))}else n.push(e)}),f=(0,i.pi)((0,i.pi)({},h),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&p.add(r)})}),(d=f.loc)&&(delete d.startToken,delete d.endToken),f))}return a.get(t)}(n)}var p=f;(n=f||(f={})).gql=p,n.resetCaches=function(){a.clear(),s.clear()},n.disableFragmentWarnings=function(){u=!1},n.enableExperimentalFragmentVariables=function(){c=!0},n.disableExperimentalFragmentVariables=function(){c=!1},f.default=f},26090:function(e,t,r){"use strict";var n=r(12005),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},23860:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},85901:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(6912);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},6912: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(t 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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6512:function(e,t,r){"use strict";var n=r(6912);e.exports=function(){return n()&&!!Symbol.toStringTag}},21630:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(83485);e.exports=o.call(n,i)},98526:function(e,t,r){"use strict";var n=r(69221),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 u(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 c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=d(r);i&&i!==h&&e(t,i,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=u(t),y=u(r),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&!(n&&n[v])&&!(y&&y[v])&&!(s&&s[v])){var m=p(r,v);try{c(t,v,m)}catch(e){}}}}return t}},55369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{})},61847:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,f,p=e.match(a),d=p&&p[1]?p[1].toLowerCase():"";switch(d){case n:var h=l(e);if(!s.test(e)){var y=h.querySelector(i);null===(t=null==y?void 0:y.parentNode)||void 0===t||t.removeChild(y)}if(!u.test(e)){var y=h.querySelector(o);null===(f=null==y?void 0:y.parentNode)||void 0===f||f.removeChild(y)}return h.querySelectorAll(n);case i:case o:var g=c(e).querySelectorAll(d);if(u.test(e)&&s.test(e))return g[0].parentNode.childNodes;return g;default:if(r)return r(e);var y=c(e,o).querySelector(o);return y.childNodes}};var r,n="html",i="head",o="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,u=/<body[^]*>/i,c=function(e,t){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(e,t){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},f="object"==typeof window&&window.DOMParser;if("function"==typeof f){var p=new f;c=l=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();c=function(e,t){if(t){var r=d.documentElement.querySelector(t);return r&&(r.innerHTML=e),d}return d.documentElement.innerHTML=e,d}}var h="object"==typeof document&&document.createElement("template");h&&h.content&&(r=function(e){return h.innerHTML=e,h.content.childNodes})},20810: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.default=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),r=t?t[1]:void 0;return(0,o.formatDOM)((0,i.default)(e),null,r)};var i=n(r(61847)),o=r(28386),a=/<(![a-zA-Z\s]+)>/},28386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=o,t.formatDOM=function e(t,r,a){void 0===r&&(r=null);for(var s,u=[],c=0,l=t.length;c<l;c++){var f=t[c];switch(f.nodeType){case 1:var p=function(e){var t;return t=e=e.toLowerCase(),i.CASE_SENSITIVE_TAG_NAMES_MAP[t]||e}(f.nodeName);(s=new n.Element(p,o(f.attributes))).children=e("template"===p?f.content.childNodes:f.childNodes,s);break;case 3:s=new n.Text(f.nodeValue);break;case 8:s=new n.Comment(f.nodeValue);break;default:continue}var d=u[c-1]||null;d&&(d.next=s),s.parent=r,s.prev=d,s.next=null,u.push(s)}return a&&((s=new n.ProcessingInstruction(a.substring(0,a.indexOf(" ")).toLowerCase(),a)).next=u[0]||null,s.parent=r,u.unshift(s),u[1]&&(u[1].prev=u[0])),u};var n=r(50550),i=r(55369);function o(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}},66114:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var r={},c=!!(e.type&&s[e.type]);for(var l in e){var f=e[l];if((0,n.isCustomAttribute)(l)){r[l]=f;continue}var p=l.toLowerCase(),d=u(p);if(d){var h=(0,n.getPropertyInfo)(d);switch(o.includes(d)&&a.includes(t)&&!c&&(d=u("default"+p)),r[d]=f,h&&h.type){case n.BOOLEAN:r[d]=!0;break;case n.OVERLOADED_BOOLEAN:""===f&&(r[d]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(r[l]=f)}return(0,i.setStyleProp)(e.style,r),r};var n=r(15110),i=r(27721),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function u(e){return n.possibleStandardNames[e]}},45850: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.default=function e(t,r){void 0===r&&(r={});for(var n=[],i="function"==typeof r.replace,u=r.transform||a.returnFirstArg,c=r.library||s,l=c.cloneElement,f=c.createElement,p=c.isValidElement,d=t.length,h=0;h<d;h++){var y=t[h];if(i){var g=r.replace(y,h);if(p(g)){d>1&&(g=l(g,{key:g.key||h})),n.push(u(g,y,h));continue}}if("text"===y.type){var v=!y.data.trim().length;if(v&&y.parent&&!(0,a.canTextBeChildOfNode)(y.parent)||r.trim&&v)continue;n.push(u(y.data,y,h));continue}var m={};a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===y.type&&(0,a.isCustomComponent)(y.name,y.attribs)?((0,a.setStyleProp)(y.attribs.style,y.attribs),m=y.attribs):y.attribs&&(m=(0,o.default)(y.attribs,y.name));var b=void 0;switch(y.type){case"script":case"style":y.children[0]&&(m.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?m.defaultValue=y.children[0].data:y.children&&y.children.length&&(b=e(y.children,r));break;default:continue}d>1&&(m.key=h),n.push(u(f(y.name,m,b),y,h))}return 1===n.length?n[0]:n};var i=r(2700),o=n(r(66114)),a=r(27721),s={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement}},59477: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.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return e?(0,a.default)((0,i.default)(e,(null==t?void 0:t.htmlparser2)||u),t):[]};var i=n(r(20810));t.htmlToDOM=i.default;var o=n(r(66114));t.attributesToProps=o.default;var a=n(r(45850));t.domToReact=a.default;var s=r(50550);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var u={lowerCaseAttributeNames:!1}},27721: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.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):!!(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e){if(!e.trim()){t.style={};return}try{t.style=(0,o.default)(e,s)}catch(e){t.style={}}}};var i=r(2700),o=n(r(76215)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},78428:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,p=r?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,p=23===i?5960464477539062e-23:0,d=n?0:o-1,h=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=p/u:t+=p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+d]=255&a,d+=h,a/=256,c-=8);e[r+d-h]|=128*y}},92973:function(e,t,r){"use strict";var n=r(6512)(),i=r(97963)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},101:function(e,t,r){"use strict";var n=Date.prototype.getDay,i=function(e){try{return n.call(e),!0}catch(e){return!1}},o=Object.prototype.toString,a=r(6512)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?i(e):"[object Date]"===o.call(e))}},53784:function(e,t,r){"use strict";var n,i,o,a,s=r(97963),u=r(6512)();if(u){n=s("Object.prototype.hasOwnProperty"),i=s("RegExp.prototype.exec"),o={};var c=function(){throw o};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var l=s("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=u?function(e){if(!e||"object"!=typeof e)return!1;var t=f(e,"lastIndex");if(!(t&&n(t,"value")))return!1;try{i(e,a)}catch(e){return e===o}}:function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===l(e)}},55821:function(e,t,r){e.exports=window.DOMPurify||(window.DOMPurify=r(96588).default||r(96588))},49980:function(e,t,r){r(30751),e.exports=self.fetch.bind(self)},26624:function(e,t){var r,n;n=function(){var e=r;e.Integer={type:"integer"};var t={String:String,Boolean:Boolean,Number:Number,Object:Object,Array:Array,Date:Date};function r(e,t){return r(e,t,{changing:!1})}e.validate=r,e.checkPropertyChange=function(e,t,n){return r(e,t,{changing:n||"property"})};var r=e._validate=function(e,r,n){n||(n={});var i=n.changing;function o(e){return e.type||t[e.name]==e&&e.name.toLowerCase()}var a=[];function s(e,t,r,u){var c;function l(e){a.push({property:r,message:e})}if(r+=r?"number"==typeof u?"["+u+"]":void 0===u?"":"."+u:u,("object"!=typeof t||t instanceof Array)&&(r||"function"!=typeof t)&&!(t&&o(t)))return"function"==typeof t?e instanceof t||l("is not an instance of the class/constructor "+t.name):t&&l("Invalid schema/property definition "+t),null;function f(e,t){if(e){if("string"==typeof e&&"any"!=e&&("null"==e?null!==t:typeof t!=e)&&!(t instanceof Array&&"array"==e)&&!(t instanceof Date&&"date"==e)&&!("integer"==e&&t%1==0))return[{property:r,message:t+" - "+typeof t+" value found, but a "+e+" is required"}];if(e instanceof Array){for(var n=[],i=0;i<e.length&&(n=f(e[i],t)).length;i++);if(n.length)return n}else if("object"==typeof e){var o=a;a=[],s(t,e,r);var u=a;return a=o,u}}return[]}if(i&&t.readonly&&l("is a readonly field, it can not be changed"),t.extends&&s(e,t.extends,r,u),void 0===e)t.required&&l("is missing and it is required");else if(a=a.concat(f(o(t),e)),t.disallow&&!f(t.disallow,e).length&&l(" disallowed value was matched"),null!==e){if(e instanceof Array){if(t.items){var p=t.items instanceof Array,d=t.items;for(u=0,c=e.length;u<c;u+=1)p&&(d=t.items[u]),n.coerce&&(e[u]=n.coerce(e[u],d)),a.concat(s(e[u],d,r,u))}t.minItems&&e.length<t.minItems&&l("There must be a minimum of "+t.minItems+" in the array"),t.maxItems&&e.length>t.maxItems&&l("There must be a maximum of "+t.maxItems+" in the array")}else(t.properties||t.additionalProperties)&&a.concat(function(e,t,r,o){if("object"==typeof t){for(var u in("object"!=typeof e||e instanceof Array)&&a.push({property:r,message:"an object is required"}),t)if(t.hasOwnProperty(u)&&"__proto__"!=u&&"constructor"!=u){var c=e.hasOwnProperty(u)?e[u]:void 0;if(void 0===c&&n.existingOnly)continue;var l=t[u];void 0===c&&l.default&&(c=e[u]=l.default),n.coerce&&u in e&&(c=e[u]=n.coerce(c,l)),s(c,l,r,u)}}for(u in e){if(e.hasOwnProperty(u)&&!("_"==u.charAt(0)&&"_"==u.charAt(1))&&t&&!t[u]&&!1===o){if(n.filter){delete e[u];continue}a.push({property:r,message:"The property "+u+" is not defined in the schema and the schema does not allow additional properties"})}var f=t&&t[u]&&t[u].requires;!f||f in e||a.push({property:r,message:"the presence of the property "+u+" requires that "+f+" also be present"}),c=e[u],!o||t&&"object"==typeof t&&u in t||(n.coerce&&(c=e[u]=n.coerce(c,o)),s(c,o,r,u)),!i&&c&&c.$schema&&(a=a.concat(s(c,c.$schema,r,u)))}return a}(e,t.properties,r,t.additionalProperties));if(t.pattern&&"string"==typeof e&&!e.match(t.pattern)&&l("does not match the regex pattern "+t.pattern),t.maxLength&&"string"==typeof e&&e.length>t.maxLength&&l("may only be "+t.maxLength+" characters long"),t.minLength&&"string"==typeof e&&e.length<t.minLength&&l("must be at least "+t.minLength+" characters long"),void 0!==t.minimum&&typeof e==typeof t.minimum&&t.minimum>e&&l("must have a minimum value of "+t.minimum),void 0!==t.maximum&&typeof e==typeof t.maximum&&t.maximum<e&&l("must have a maximum value of "+t.maximum),t.enum){var h,y=t.enum;c=y.length;for(var g=0;g<c;g++)if(y[g]===e){h=1;break}h||l("does not have a value in the enumeration "+y.join(", "))}"number"==typeof t.maxDecimal&&e.toString().match(RegExp("\\.[0-9]{"+(t.maxDecimal+1)+",}"))&&l("may only have "+t.maxDecimal+" digits of decimal places")}return null}return r&&s(e,r,"",i||""),!i&&e&&e.$schema&&s(e,e.$schema,"",""),{valid:!a.length,errors:a}};return e.mustBeValid=function(e){if(!e.valid)throw TypeError(e.errors.map(function(e){return"for property "+e.property+": "+e.message}).join(", \n"))},e},void 0!==(r=(function(){return n()}).apply(t,[]))&&(e.exports=r)},91248: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,u=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,y=function(){return f.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return n;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var c=a.test(e);return c||s.test(e)?u(e.slice(2),c?2:8):o.test(e)?n:+e}e.exports=function(e,t,r){var n,i,o,a,s,u,c=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function b(e){var r=e-u,n=e-c;return void 0===u||r>=t||r<0||f&&n>=o}function E(){var e,r,n,i=y();if(b(i))return w(i);s=setTimeout(E,(e=i-u,r=i-c,n=t-e,f?h(n,o-r):n))}function w(e){return(s=void 0,p&&n)?m(e):(n=i=void 0,a)}function _(){var e,r=y(),o=b(r);if(n=arguments,i=this,u=r,o){if(void 0===s)return c=e=u,s=setTimeout(E,t),l?m(e):a;if(f)return s=setTimeout(E,t),m(u)}return void 0===s&&(s=setTimeout(E,t)),a}return t=v(t)||0,g(r)&&(l=!!r.leading,o=(f="maxWait"in r)?d(v(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),_.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=u=i=s=void 0},_.flush=function(){return void 0===s?a:w(y())},_}},28866:function(e,t,r){var n,i;void 0!==(i="function"==typeof(n=function(e){"use strict";var t,r,n=function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(t in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],t)&&(e[t]=arguments[r][t]);return e},i={template:"[%t] %l:",levelFormatter:function(e){return e.toUpperCase()},nameFormatter:function(e){return e||"root"},timestampFormatter:function(e){return e.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},o={},a={reg:function(e){if(!e||!e.getLogger)throw TypeError("Argument is not a root logger");t=e},apply:function(e,r){if(!e||!e.setLevel)throw TypeError("Argument is not a logger");var a=e.methodFactory,s=e.name||"",u=o[s]||o[""]||i;return o[s]||(e.methodFactory=function(e,t,r){var n=a(e,t,r),i=o[r]||o[""],u=-1!==i.template.indexOf("%t"),c=-1!==i.template.indexOf("%l"),l=-1!==i.template.indexOf("%n");return function(){for(var t="",a=arguments.length,f=Array(a),p=0;p<a;p++)f[p]=arguments[p];if(s||!o[r]){var d=i.timestampFormatter(new Date),h=i.levelFormatter(e),y=i.nameFormatter(r);i.format?t+=i.format(h,y,d):(t+=i.template,u&&(t=t.replace(/%t/,d)),c&&(t=t.replace(/%l/,h)),l&&(t=t.replace(/%n/,y))),f.length&&"string"==typeof f[0]?f[0]=t+" "+f[0]:f.unshift(t)}n.apply(void 0,f)}}),(r=r||{}).template&&(r.format=void 0),o[s]=n({},u,r),e.setLevel(e.getLevel()),t||e.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),e}};return e&&(r=e.prefix,a.noConflict=function(){return e.prefix===a&&(e.prefix=r),a}),a})?n.call(t,r,t,e):n)&&(e.exports=i)},50125:function(e,t,r){var n,i;void 0!==(i="function"==typeof(n=function(){"use strict";var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},o=null;function a(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),i=0;i<n.length;i++){var o=n[i];this[o]=i<r?e:this.methodFactory(o,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function c(e){return function(){typeof console!==t&&(u.call(this),this[e].apply(this,arguments))}}function l(n,i,o){var u;return"debug"===(u=n)&&(u="log"),typeof console!==t&&("trace"===u&&r?s:void 0!==console[u]?a(console,u):void 0!==console.log?a(console,"log"):e)||c.apply(this,arguments)}function f(e,r){var a,s,c,f=this,p="loglevel";function d(){var e;if(typeof window!==t&&p){try{e=window.localStorage[p]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(p),i=r.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(e){}return void 0===f.levels[e]&&(e=void 0),e}}function h(e){var t=e;if("string"==typeof t&&void 0!==f.levels[t.toUpperCase()]&&(t=f.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=f.levels.SILENT)return t;throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=s?s:a},f.setLevel=function(e,r){return c=h(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{window.localStorage[p]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){s=h(e),d()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(o!==f&&(a=h(o.getLevel())),u.call(f),o===f)for(var e in i)i[e].rebuild()},a=h(o?o.getLevel():"WARN");var y=d();null!=y&&(c=h(y)),u.call(f)}(o=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new f(e,o.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=p),o},o.getLoggers=function(){return i},o.default=o,o})?n.call(t,r,t,e):n)&&(e.exports=i)},9862:function(e){"use strict";e.exports=Math.abs},95233:function(e){"use strict";e.exports=Math.floor},60347:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},77803:function(e){"use strict";e.exports=Math.max},23354:function(e){"use strict";e.exports=Math.min},19063:function(e){"use strict";e.exports=Math.pow},29467:function(e){"use strict";e.exports=Math.round},17951:function(e,t,r){"use strict";var n=r(60347);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},86436:function(e,t){var r,n;n=function(){"use strict";var e={clear:1,getItem:1,id:1,key:1,length:1,removeItem:1,setItem:1},t={};return function r(n){var i=t[n=n||"global"];if(i)return i;if(!(this instanceof r))return new r(n);i=t[n]=this;var o={};return Object.defineProperty(i,"id",{enumerable:!0,configurable:!0,value:n}),Object.defineProperty(i,"length",{enumerable:!0,configurable:!0,get:function(){return u().length}}),i.getItem=function(t){return(t in e?o[t]:this[t])||null},i.setItem=function(t,r){t in e?o[t]=r:this[t]=r},i.removeItem=function(t){t in e?delete o[t]:delete this[t]},i.key=function(e){var t=u();return e>=0&&e<t.length?t[e]:null},i.clear=function(){for(var e,t=a(),r=0;e=t[r];r++)delete this[e];t=s();for(var e,r=0;e=t[r];r++)delete o[e]},"undefined"==typeof Proxy?i:new Proxy(i,{ownKeys:function(){return u()}});function a(){return Object.keys(i).filter(function(t){return!(t in e)})}function s(){return Object.keys(o)}function u(){return a().concat(s())}}},void 0!==(r=(function(){return n()}).apply(t,[]))&&(e.exports=r)},99969:function(e){!function(){let t=e=>new TextEncoder().encode(e);function r(e,r){let n,i,o,a,s,u;for("string"==typeof e&&(e=t(e)),n=3&e.length,i=e.length-n,o=r,u=0;u<i;)s=255&e[u]|(255&e[++u])<<8|(255&e[++u])<<16|(255&e[++u])<<24,++u,o^=s=(65535&(s=(s=(65535&s)*3432918353+(((s>>>16)*3432918353&65535)<<16)&4294967295)<<15|s>>>17))*461845907+(((s>>>16)*461845907&65535)<<16)&4294967295,o=(65535&(a=(65535&(o=o<<13|o>>>19))*5+(((o>>>16)*5&65535)<<16)&4294967295))+27492+(((a>>>16)+58964&65535)<<16);switch(s=0,n){case 3:s^=(255&e[u+2])<<16;case 2:s^=(255&e[u+1])<<8;case 1:s^=255&e[u],o^=s=(65535&(s=(s=(65535&s)*3432918353+(((s>>>16)*3432918353&65535)<<16)&4294967295)<<15|s>>>17))*461845907+(((s>>>16)*461845907&65535)<<16)&4294967295}return o^=e.length,o^=o>>>16,o=(65535&o)*2246822507+(((o>>>16)*2246822507&65535)<<16)&4294967295,o^=o>>>13,o=(65535&o)*3266489909+(((o>>>16)*3266489909&65535)<<16)&4294967295,(o^=o>>>16)>>>0}r.v2=function(e,r){"string"==typeof e&&(e=t(e));let n=e.length,i=r^n,o=0,a;for(;n>=4;)a=(65535&(a=255&e[o]|(255&e[++o])<<8|(255&e[++o])<<16|(255&e[++o])<<24))*1540483477+(((a>>>16)*1540483477&65535)<<16),a^=a>>>24,i=(65535&i)*1540483477+(((i>>>16)*1540483477&65535)<<16)^(a=(65535&a)*1540483477+(((a>>>16)*1540483477&65535)<<16)),n-=4,++o;switch(n){case 3:i^=(255&e[o+2])<<16;case 2:i^=(255&e[o+1])<<8;case 1:i^=255&e[o],i=(65535&i)*1540483477+(((i>>>16)*1540483477&65535)<<16)}return i^=i>>>13,i=(65535&i)*1540483477+(((i>>>16)*1540483477&65535)<<16),(i^=i>>>15)>>>0},r.v3=r,e.exports=r}()},56900:function(e,t,r){e.exports=r(18557)},5844:function(e,t,r){e.exports=r(70305)},31730:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},30751:function(e,t){"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch},46528:function(e,t,r){!function(){var t={528:function(e,t,r){var n=r(685),i=r(310),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},685:function(e){"use strict";e.exports=r(9639)},310:function(e){"use strict";e.exports=r(16877)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var o=i(528);e.exports=o}()},16877:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(41130)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=v(e));var n,i,o,a,s,u,c,l,f,p=(i=(n=e).auth,o=n.hostname,a=n.protocol||"",s=n.pathname||"",u=n.hash||"",c=n.query||"",l=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?l=i+n.host:o&&(l=i+(~o.indexOf(":")?"["+o+"]":o),n.port&&(l+=":"+n.port)),c&&"object"==typeof c&&(c=t.encode(c)),f=n.search||c&&"?"+c||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:l,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:u});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var a="http://",s=a+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function l(e,t){var r="string"==typeof e?v(e):e;e="object"==typeof e?n(e):e;var i=v(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&i.protocol&&(o="",i.slashes||(o=i.protocol,t=t.replace(i.protocol,"")));var l=e.match(u);l&&!i.protocol&&(e=e.substr((o=l[1]+(l[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var f=new URL(e,s+"/"),p=new URL(t,f).toString().replace(s,""),d=i.protocol||r.protocol;return d+=r.slashes||i.slashes?"//":"",!o&&d?p=p.replace(a,d):o&&(p=p.replace(a,"")),c.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),o&&(p=o+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=v,f.prototype.format=n,f.prototype.resolve=l,f.prototype.resolveObject=l;var p=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,h=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof f)return e;var o=(e=e.trim()).match(d);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(h),u=y.test(e),c="";a&&(p.test(a[1])||(c=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,p.test(a[1])?(c=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(c=a[1],e="/"+a[3]));var l,v=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),m=v&&v[1],b=new f,E="",w="";try{l=new URL(e)}catch(t){E=t,c||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{l=new URL(e,s)}catch(e){return b.protocol=c,b.href=c,b}}b.slashes=u&&!w,b.host="w.w"===l.host?"":l.host,b.hostname="w.w"===l.hostname?"":l.hostname.replace(/(\[|\])/g,""),b.protocol=E?c||null:l.protocol,b.search=l.search.replace(/\\/g,"%5C"),b.hash=l.hash.replace(/\\/g,"%5C");var _=e.split("#");!b.search&&~_[0].indexOf("?")&&(b.search="?"),b.hash||""!==_[1]||(b.hash="#"),b.query=r?t.decode(l.search.substr(1)):b.search.substr(1),b.pathname=w+(a?l.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):l.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),E&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),c&&!p.test(c)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=l.port,m&&!b.host.endsWith(m)&&(b.host+=m,b.port=m.slice(1)),b.href=w?""+b.pathname+b.search+b.hash:n(b);var O=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~O.indexOf(e)||(b[e]=b[e]||null)}),b}o.parse=v,o.format=n,o.resolve=l,o.resolveObject=function(e,t){return v(l(e,t))},o.Url=f}(),e.exports=o}()},41130:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,f,p,d,h=e[c].replace(a,"%20"),y=h.indexOf(n);(y>=0?(l=h.substr(0,y),f=h.substr(y+1)):(l=h,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(o,p))?t(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i={};i.decode=i.parse=n(815),i.encode=i.stringify=n(577),e.exports=i}()},35317:function(e,t,r){var n=r(38432);!function(){var t={782: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}}},646:function(e){"use strict";let t={};function r(e,r,n){n||(n=Error);class i extends n{constructor(e,t,n){super("string"==typeof r?r:r(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 ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${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){var i,o,a,s;let u,c;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(u="must not be",t=t.replace(/^not /,"")):u="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)c=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";c=`The "${e}" ${r} ${u} ${n(t,"type")}`}return c+`. Received type ${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.q=t},403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,i){"use strict";e.exports=A,A.ReadableState=T,i(361).EventEmitter;var o,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=i(678),p=i(300).Buffer,d=r.g.Uint8Array||function(){},h=i(837);a=h&&h.debuglog?h.debuglog("stream"):function(){};var y=i(379),g=i(25),v=i(776).getHighWaterMark,m=i(646).q,b=m.ERR_INVALID_ARG_TYPE,E=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(A,f);var O=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function T(e,t,r){o=o||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function A(e){if(o=o||i(403),!(this instanceof A))return new A(e);var t=this instanceof o;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function I(e,t,r,n,i){a("readableAddChunk",t);var o,s,u,c,l,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?x(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}}(e,f);else{if(i||(o=f,s=t,p.isBuffer(s)||s instanceof d||"string"==typeof s||void 0===s||o.objectMode||(u=new b("chunk",["string","Buffer","Uint8Array"],s)),l=u),l)O(e,l);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===p.prototype||(c=t,t=p.from(c)),n)f.endEmitted?O(e,new _):R(e,f,t,!0);else if(f.ended)O(e,new E);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||0!==t.length?R(e,f,t,!1):P(e,f)):R(e,f,t,!1)}}else n||(f.reading=!1,P(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&x(e)),P(e,t)}function k(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function x(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(N,e))}function N(e){var t=e._readableState;a("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,L(e)}function P(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function D(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function F(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 U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(V,t,e))}function V(e,t){if(a("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 B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),I(this,e,t,!1,r)},A.prototype.unshift=function(e){return I(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){s||(s=i(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},A.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?U(this):x(this),null;if(0===(e=k(e,r))&&r.ended)return 0===r.length&&U(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=k(n,r))),null===(t=e>0?F(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&&U(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){O(this,new w("_read()"))},A.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===n.stdout||e===n.stderr?y:s;function s(){a("onend"),e.end()}i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",function t(n,o){a("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",y),r.removeListener("data",f),c=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,L(r))};e.on("drain",u);var c=!1;function f(t){a("ondata");var n=e.write(t);a("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!c&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===l(e,"error")&&O(e,t)}function d(){e.removeListener("finish",h),y()}function h(){a("onfinish"),e.removeListener("close",d),y()}function y(){a("unpipe"),r.unpipe(e)}return r.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",p),e.once("close",d),e.once("finish",h),e.emit("pipe",r),i.flowing||(a("pipe resume"),r.resume()),e},A.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;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?x(this):i.reading||n.nextTick(j,this)),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(D,this),r},A.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(D,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(M,this,e))),e.paused=!1,this},A.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(871)),u(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=F,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===c&&(c=i(727)),c(A,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=A,A.WritableState=T;var a,s,u={deprecate:i(769)},c=i(678),l=i(300).Buffer,f=r.g.Uint8Array||function(){},p=i(25),d=i(776).getHighWaterMark,h=i(646).q,y=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,E=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,O=p.errorOrDestroy;function S(){}function T(e,t,r){a=a||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(n.nextTick(o,t),n.nextTick(P,e,r),e._writableState.errorEmitted=!0,O(e,t)):(o(t),e._writableState.errorEmitted=!0,O(e,t),P(e,r));else{var a=x(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||k(e,r),i?n.nextTick(R,e,r,a,o):R(e,r,a,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function A(e){var t=this instanceof(a=a||i(403));if(!t&&!s.call(A,this))return new A(e);this._writableState=new T(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function I(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,n(),P(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,I(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(I(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final(function(r){t.pendingcb--,r&&O(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=x(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(N,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}i(782)(A,c),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===A&&e&&e._writableState instanceof T}})):s=function(e){return e instanceof this},A.prototype.pipe=function(){O(this,new m)},A.prototype.write=function(e,t,r){var i,o,a,s,u,c,p,d=this._writableState,h=!1,g=!d.objectMode&&(i=e,l.isBuffer(i)||i instanceof f);return g&&!l.isBuffer(e)&&(o=e,e=l.from(o)),("function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof r&&(r=S),d.ending)?(a=r,O(this,s=new w),n.nextTick(a,s)):(g||(u=e,c=r,null===u?p=new E:"string"==typeof u||d.objectMode||(p=new y("chunk",["string","Buffer"],u)),!p||(O(this,p),n.nextTick(c,p),0)))&&(d.pendingcb++,h=function(e,t,r,n,i,o){if(!r){var a,s,u=(a=n,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);n!==u&&(r=!0,i="buffer",n=u)}var c=t.objectMode?1:n.length;t.length+=c;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else I(e,t,!1,c,n,i,o);return f}(this,d,g,e,t,r)),h},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,r){r(new g("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,r){var i,o=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),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,P(this,o),i&&(o.finished?n.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=p.destroy,A.prototype._undestroy=p.undestroy,A.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(h(r,!1)))}}function g(e){n.nextTick(y,e)}var v=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((i(o={get stream(){return this[d]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[c]?t(r[c]):e(h(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(h(void 0,!0));return}e[p](t,r)},r)}));else{var a=this[d].read();if(null!==a)return Promise.resolve(h(a,!1));t=new Promise(this[p])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(h(void 0,!0))})})}),o),v);e.exports=function(e){var t,r=Object.create(m,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,p,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[s]=null,r[u]=null,e(h(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(h(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r}},379: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}var i=r(300).Buffer,o=r(837).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?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 i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,i.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.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=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?n.nextTick(r,a):(a._writableState.errorEmitted=!0,n.nextTick(t,a,e)):n.nextTick(t,a,e):o?(n.nextTick(r,a),o(e)):n.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};var a,s,u=r.readable||!1!==r.readable&&t.readable,c=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||p()},f=t._writableState&&t._writableState.finished,p=function(){c=!1,f=!0,u||o.call(t)},d=t._readableState&&t._readableState.endEmitted,h=function(){u=!1,d=!0,c||o.call(t)},y=function(e){o.call(t,e)},g=function(){var e;return u&&!d?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):c&&!f?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},v=function(){t.req.on("finish",p)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",p),t.on("abort",g),t.req?v():t.on("request",v)):c&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",h),t.on("finish",p),!1!==r.error&&t.on("error",y),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",v),t.req&&t.req.removeListener("finish",p),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",p),t.removeListener("end",h),t.removeListener("error",y),t.removeListener("close",g)}}},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(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}var o=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new o("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),u=!1;function c(){return l.apply(this,arguments)}function l(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?c():u=!1}catch(e){s.destroy(e)}},(l=function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){u||(u=!0,c())},s}},442:function(e,t,r){"use strict";var n,i=r(646).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];var p=(e=l).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(l[0])&&(l=l[0]),l.length<2)throw new o("streams");var d=l.map(function(e,i){var o,s,c,f,h,y,g=i<l.length-1;return o=i>0,c=s=function(e){t||(t=e),e&&d.forEach(u),g||(d.forEach(u),p(t))},f=!1,s=function(){f||(f=!0,c.apply(void 0,arguments))},h=!1,e.on("close",function(){h=!0}),void 0===n&&(n=r(698)),n(e,{readable:g,writable:o},function(e){if(e)return s(e);h=!0,s()}),y=!1,function(t){if(!h&&!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 l.reduce(c)}},776:function(e,t,r){"use strict";var n=r(646).q.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}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),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)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>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 u(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 c(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 l(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 p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[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}},769:function(e){e.exports=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}};function t(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()}},300:function(e){"use strict";e.exports=r(65565)},361:function(e){"use strict";e.exports=r(39957)},781:function(e){"use strict";e.exports=r(39957).EventEmitter},837:function(e){"use strict";e.exports=r(59741)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab="//";var a=o(173);e.exports=a}()},9639:function(e,t,r){var n=r(38432),i=r(65565).Buffer;!function(){var t={523:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782: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}}},646:function(e){"use strict";let t={};function r(e,r,n){n||(n=Error);class i extends n{constructor(e,t,n){super("string"==typeof r?r:r(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 ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${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){var i,o,a,s;let u,c;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(u="must not be",t=t.replace(/^not /,"")):u="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)c=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";c=`The "${e}" ${r} ${u} ${n(t,"type")}`}return c+`. Received type ${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.q=t},403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,i){"use strict";e.exports=A,A.ReadableState=T,i(361).EventEmitter;var o,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=i(678),p=i(300).Buffer,d=r.g.Uint8Array||function(){},h=i(837);a=h&&h.debuglog?h.debuglog("stream"):function(){};var y=i(379),g=i(25),v=i(776).getHighWaterMark,m=i(646).q,b=m.ERR_INVALID_ARG_TYPE,E=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(A,f);var O=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function T(e,t,r){o=o||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function A(e){if(o=o||i(403),!(this instanceof A))return new A(e);var t=this instanceof o;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function I(e,t,r,n,i){a("readableAddChunk",t);var o,s,u,c,l,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?x(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}}(e,f);else{if(i||(o=f,s=t,p.isBuffer(s)||s instanceof d||"string"==typeof s||void 0===s||o.objectMode||(u=new b("chunk",["string","Buffer","Uint8Array"],s)),l=u),l)O(e,l);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===p.prototype||(c=t,t=p.from(c)),n)f.endEmitted?O(e,new _):R(e,f,t,!0);else if(f.ended)O(e,new E);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||0!==t.length?R(e,f,t,!1):P(e,f)):R(e,f,t,!1)}}else n||(f.reading=!1,P(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&x(e)),P(e,t)}function k(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function x(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(N,e))}function N(e){var t=e._readableState;a("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,L(e)}function P(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function D(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function F(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 U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(V,t,e))}function V(e,t){if(a("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 B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),I(this,e,t,!1,r)},A.prototype.unshift=function(e){return I(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){s||(s=i(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},A.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?U(this):x(this),null;if(0===(e=k(e,r))&&r.ended)return 0===r.length&&U(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=k(n,r))),null===(t=e>0?F(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&&U(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){O(this,new w("_read()"))},A.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===n.stdout||e===n.stderr?y:s;function s(){a("onend"),e.end()}i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",function t(n,o){a("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",y),r.removeListener("data",f),c=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,L(r))};e.on("drain",u);var c=!1;function f(t){a("ondata");var n=e.write(t);a("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!c&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===l(e,"error")&&O(e,t)}function d(){e.removeListener("finish",h),y()}function h(){a("onfinish"),e.removeListener("close",d),y()}function y(){a("unpipe"),r.unpipe(e)}return r.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",p),e.once("close",d),e.once("finish",h),e.emit("pipe",r),i.flowing||(a("pipe resume"),r.resume()),e},A.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;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?x(this):i.reading||n.nextTick(j,this)),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(D,this),r},A.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(D,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(M,this,e))),e.paused=!1,this},A.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(871)),u(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=F,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===c&&(c=i(727)),c(A,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=A,A.WritableState=T;var a,s,u={deprecate:i(769)},c=i(678),l=i(300).Buffer,f=r.g.Uint8Array||function(){},p=i(25),d=i(776).getHighWaterMark,h=i(646).q,y=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,E=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,O=p.errorOrDestroy;function S(){}function T(e,t,r){a=a||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(n.nextTick(o,t),n.nextTick(P,e,r),e._writableState.errorEmitted=!0,O(e,t)):(o(t),e._writableState.errorEmitted=!0,O(e,t),P(e,r));else{var a=x(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||k(e,r),i?n.nextTick(R,e,r,a,o):R(e,r,a,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function A(e){var t=this instanceof(a=a||i(403));if(!t&&!s.call(A,this))return new A(e);this._writableState=new T(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function I(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,n(),P(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,I(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(I(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final(function(r){t.pendingcb--,r&&O(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=x(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(N,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}i(782)(A,c),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===A&&e&&e._writableState instanceof T}})):s=function(e){return e instanceof this},A.prototype.pipe=function(){O(this,new m)},A.prototype.write=function(e,t,r){var i,o,a,s,u,c,p,d=this._writableState,h=!1,g=!d.objectMode&&(i=e,l.isBuffer(i)||i instanceof f);return g&&!l.isBuffer(e)&&(o=e,e=l.from(o)),("function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof r&&(r=S),d.ending)?(a=r,O(this,s=new w),n.nextTick(a,s)):(g||(u=e,c=r,null===u?p=new E:"string"==typeof u||d.objectMode||(p=new y("chunk",["string","Buffer"],u)),!p||(O(this,p),n.nextTick(c,p),0)))&&(d.pendingcb++,h=function(e,t,r,n,i,o){if(!r){var a,s,u=(a=n,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);n!==u&&(r=!0,i="buffer",n=u)}var c=t.objectMode?1:n.length;t.length+=c;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else I(e,t,!1,c,n,i,o);return f}(this,d,g,e,t,r)),h},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,r){r(new g("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,r){var i,o=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),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,P(this,o),i&&(o.finished?n.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=p.destroy,A.prototype._undestroy=p.undestroy,A.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(h(r,!1)))}}function g(e){n.nextTick(y,e)}var v=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((i(o={get stream(){return this[d]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[c]?t(r[c]):e(h(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(h(void 0,!0));return}e[p](t,r)},r)}));else{var a=this[d].read();if(null!==a)return Promise.resolve(h(a,!1));t=new Promise(this[p])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(h(void 0,!0))})})}),o),v);e.exports=function(e){var t,r=Object.create(m,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,p,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[s]=null,r[u]=null,e(h(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(h(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r}},379: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}var i=r(300).Buffer,o=r(837).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?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 i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,i.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.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=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?n.nextTick(r,a):(a._writableState.errorEmitted=!0,n.nextTick(t,a,e)):n.nextTick(t,a,e):o?(n.nextTick(r,a),o(e)):n.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};var a,s,u=r.readable||!1!==r.readable&&t.readable,c=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||p()},f=t._writableState&&t._writableState.finished,p=function(){c=!1,f=!0,u||o.call(t)},d=t._readableState&&t._readableState.endEmitted,h=function(){u=!1,d=!0,c||o.call(t)},y=function(e){o.call(t,e)},g=function(){var e;return u&&!d?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):c&&!f?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},v=function(){t.req.on("finish",p)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",p),t.on("abort",g),t.req?v():t.on("request",v)):c&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",h),t.on("finish",p),!1!==r.error&&t.on("error",y),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",v),t.req&&t.req.removeListener("finish",p),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",p),t.removeListener("end",h),t.removeListener("error",y),t.removeListener("close",g)}}},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(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}var o=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new o("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),u=!1;function c(){return l.apply(this,arguments)}function l(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?c():u=!1}catch(e){s.destroy(e)}},(l=function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){u||(u=!0,c())},s}},442:function(e,t,r){"use strict";var n,i=r(646).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];var p=(e=l).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(l[0])&&(l=l[0]),l.length<2)throw new o("streams");var d=l.map(function(e,i){var o,s,c,f,h,y,g=i<l.length-1;return o=i>0,c=s=function(e){t||(t=e),e&&d.forEach(u),g||(d.forEach(u),p(t))},f=!1,s=function(){f||(f=!0,c.apply(void 0,arguments))},h=!1,e.on("close",function(){h=!0}),void 0===n&&(n=r(698)),n(e,{readable:g,writable:o},function(e){if(e)return s(e);h=!0,s()}),y=!1,function(t){if(!h&&!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 l.reduce(c)}},776:function(e,t,r){"use strict";var n=r(646).q.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}}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var i=r(781);"disable"===n.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(709)).Stream=i||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),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)}},813:function(e,t,n){var i=n(450),o=n(254),a=n(911),s=n(523),u=n(310);t.request=function(e,t){e="string"==typeof e?u.parse(e):a(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||n,s=e.hostname||e.host,c=e.port,l=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new i(e);return t&&f.on("response",t),f},t.get=function(e,r){var n=t.request(e,r);return n.end(),n},t.ClientRequest=i,t.IncomingMessage=o.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=s,t.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(e,t){var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),n=null},450:function(e,t,o){var a=o(301),s=o(782),u=o(254),c=o(726),l=u.IncomingMessage,f=u.readyStates,p=e.exports=function(e){var t,r,n,o=this;c.Writable.call(o),o._opts=e,o._body=[],o._headers={},e.auth&&o.setHeader("Authorization","Basic "+i.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){o.setHeader(t,e.headers[t])});var s=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)s=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else n=!0;o._mode=(t=n,r=s,a.fetch&&r?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&t?"arraybuffer":"text"),o._fetchTimer=null,o.on("finish",function(){o._onFinish()})};s(p,c.Writable),p.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===d.indexOf(r)&&(this._headers[r]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach(function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===e._mode){var u=null;if(a.abortController){var c=new AbortController;u=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){n.nextTick(function(){e.emit("error",t)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{l.send(o)}catch(t){n.nextTick(function(){e.emit("error",t)});return}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.g.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(this,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(e,t,o){var a=o(301),s=o(782),u=o(726),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(e,t,o,s){var c=this;if(u.Readable.call(c),c._mode=o,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){n.nextTick(function(){c.emit("close")})}),"fetch"===o){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEach(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),a.writableStream){var l=new WritableStream({write:function(e){return new Promise(function(t,r){c._destroyed?r():c.push(i.from(e))?t():c._resumeFetch=t})},close:function(){r.g.clearTimeout(s),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{t.body.pipeTo(l).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)});return}catch(e){}}var f=t.body.getReader();!function e(){f.read().then(function(t){if(!c._destroyed){if(t.done){r.g.clearTimeout(s),c.push(null);return}c.push(i.from(t.value)),e()}}).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)})}()}else if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!a.overrideMimeType){var p=c.rawHeaders["mime-type"];if(p){var d=p.match(/;\s*charset=([^;])(;|$)/);d&&(c._charset=d[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(l,u.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text":if((n=t.responseText).length>e._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=i.alloc(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(i.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(i.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>e._pos&&(e.push(i.from(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>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 u(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 c(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 l(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 p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[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}},769:function(e){e.exports=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}};function t(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()}},911:function(e){e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},300:function(e){"use strict";e.exports=r(65565)},361:function(e){"use strict";e.exports=r(39957)},781:function(e){"use strict";e.exports=r(35317)},310:function(e){"use strict";e.exports=r(16877)},837:function(e){"use strict";e.exports=r(59741)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab="//";var s=a(813);e.exports=s}()},59741:function(e,t,r){var n=r(65565).Buffer,i=r(38432);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(925),i=r(139),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}},139:function(e,t,r){"use strict";var n=r(174),i=r(925),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},426:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n,i=this;if("function"!=typeof i||"[object Function]"!==r.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=t.call(arguments,1),a=Math.max(0,i.length-o.length),s=[],u=0;u<a;u++)s.push("$"+u);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return i.apply(e,o.concat(t.call(arguments)));var r=i.apply(this,o.concat(t.call(arguments)));return Object(r)===r?r:this}),i.prototype){var c=function(){};c.prototype=i.prototype,n.prototype=new c,c.prototype=null}return n}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=p(i.prototype))}return y[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(174),b=r(101),E=m.call(Function.call,Array.prototype.concat),w=m.call(Function.apply,Array.prototype.splice),_=m.call(Function.call,String.prototype.replace),O=m.call(Function.call,String.prototype.slice),S=m.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,I=function(e){var t=O(e,0,1),r=O(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,T,function(e,t,r,i){n[n.length]=r?_(i,A,"$1"):t||e}),n},R=function(e,t){var r,n=e;if(b(v,n)&&(n="%"+(r=v[n])[0]+"%"),b(y,n)){var o=y[n];if(o===d&&(o=g(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=I(e),n=r.length>0?r[0]:"",o=R("%"+n+"%",t),s=o.name,c=o.value,l=!1,f=o.alias;f&&(n=f[0],w(r,E([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],g=O(h,0,1),v=O(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,b(y,s="%"+n+"%"))c=y[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var m=u(c,h);c=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[h]}else d=b(c,h),c=c[h];d&&!l&&(y[s]=c)}}return c}},925:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=r(504)(),d=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),h={},y="undefined"!=typeof Uint8Array&&d?d(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&d?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&d?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&d?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&d?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&d?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(d)try{null.error}catch(e){var v=d(d(e));g["%Error.prototype%"]=v}var m=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&d&&(r=d(i.prototype))}return g[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(174),w=r(101),_=E.call(Function.call,Array.prototype.concat),O=E.call(Function.apply,Array.prototype.splice),S=E.call(Function.call,String.prototype.replace),T=E.call(Function.call,String.prototype.slice),A=E.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,k=function(e){var t=T(e,0,1),r=T(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,I,function(e,t,r,i){n[n.length]=r?S(i,R,"$1"):t||e}),n},x=function(e,t){var r,n=e;if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(g,n)){var o=g[n];if(o===h&&(o=m(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(e),n=r.length>0?r[0]:"",o=x("%"+n+"%",t),s=o.name,c=o.value,l=!1,f=o.alias;f&&(n=f[0],O(r,_([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],y=T(h,0,1),v=T(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===v||"'"===v||"`"===v)&&y!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,w(g,s="%"+n+"%"))c=g[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var m=u(c,h);c=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[h]}else d=w(c,h),c=c[h];d&&!l&&(g[s]=c)}}return c}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773: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(t 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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832: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(t 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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782: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}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),p={},d=n(24),h=Object.getPrototypeOf;u&&d&&h&&i(c,function(e){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),i=d(n,Symbol.toStringTag);i||(i=d(h(n),Symbol.toStringTag)),p[e]=i.get});var y=function(e){var t=!1;return i(p,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(u?!!d&&y(e):l(c,f(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof n}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(c)var y=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===l(e)}function m(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function E(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function O(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(O.working?O(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},E.working="undefined"!=typeof WeakSet&&E(new WeakSet),t.isWeakSet=function(e){return E(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=_,O.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&O(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var T="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===l(e)}function I(e){return void 0!==T&&(void 0===A.working&&(A.working=A(new T)),A.working?A(e):e instanceof T)}function R(e){return g(e,f)}function k(e){return g(e,p)}function x(e){return g(e,d)}function N(e){return u&&g(e,h)}function P(e){return c&&g(e,y)}t.isSharedArrayBuffer=I,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=R,t.isStringObject=k,t.isBooleanObject=x,t.isBigIntObject=N,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return R(e)||k(e)||x(e)||N(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||I(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])v(s)||!_(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(i.throwDeprecation)throw Error(r);i.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(i.env.NODE_DEBUG){var u=i.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&T(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,a,s,u,c=r.inspect(n,e);return b(c)||(c=p(e,c,n)),c}var l=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,r);if(l)return l;var f=Object.keys(r),_=(s={},f.forEach(function(e,t){s[e]=!0}),s);if(e.showHidden&&(f=Object.getOwnPropertyNames(r)),S(r)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return d(r);if(0===f.length){if(T(r)){var A=r.name?": "+r.name:"";return e.stylize("[Function"+A+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var I="",R=!1,x=["{","}"];return(y(r)&&(R=!0,x=["[","]"]),T(r)&&(I=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(I=" "+RegExp.prototype.toString.call(r)),O(r)&&(I=" "+Date.prototype.toUTCString.call(r)),S(r)&&(I=" "+d(r)),0!==f.length||R&&0!=r.length)?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=R?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)k(t,String(a))?o.push(h(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}(e,r,n,_,f):f.map(function(t){return h(e,r,n,_,t,R)}),e.seen.pop(),i=I,o=x,a=0,u.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+u.join(",\n  ")+" "+o[1]:o[0]+i+" "+u.join(", ")+" "+o[1]):x[0]+I+x[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),k(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=v(r)?p(e,u.value,null):p(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function b(e){return"string"==typeof e}function E(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===A(e)}function _(e){return"object"==typeof e&&null!==e}function O(e){return _(e)&&"[object Date]"===A(e)}function S(e){return _(e)&&("[object Error]"===A(e)||e instanceof Error)}function T(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=y,t.isBoolean=g,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=w,t.types.isRegExp=w,t.isObject=_,t.isDate=O,t.types.isDate=O,t.isError=S,t.types.isNativeError=S,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(369);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[I((e=new Date).getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t=e[x];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),x&&Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=x,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(a.bind(null,null,e))},function(e){i.nextTick(N.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("String.prototype.slice"),f={},p=n(24),d=Object.getPrototypeOf;u&&p&&d&&i(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=d(t),i=p(n,Symbol.toStringTag);i||(i=p(d(n),Symbol.toStringTag)),f[e]=i.get}});var h=function(e){var t=!1;return i(f,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},y=n(994);e.exports=function(e){return!!y(e)&&(u?h(e):l(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab="//";var s=a(177);e.exports=s}()},7688:function(e,t,r){e.exports=r(36209)},68418:function(e,t,r){e.exports=r(75980)},8015:function(e,t,r){e.exports=r(68532)},55589:function(e,t,r){e.exports=r(24093)},6349:function(e,t,r){e.exports=r(32849)},93972:function(e,t,r){e.exports=r(37110)},97298:function(e,t,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,E=String.prototype.toUpperCase,w=String.prototype.toLowerCase,_=RegExp.prototype.test,O=Array.prototype.concat,S=Array.prototype.join,T=Array.prototype.slice,A=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,x="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===x?"object":"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),o=m.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var j=r(24654),M=j.custom,L=z(M)?M:null,F={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function V(e,t,r){var n=F[r.quoteStyle||t];return n+e+n}function B(e){return!N||!("object"==typeof e&&(N in e||void 0!==e[N]))}function G(e){return"[object Array]"===K(e)&&B(e)}function q(e){return"[object RegExp]"===K(e)&&B(e)}function z(e){if(x)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var u=n||{};if(W(u,"quoteStyle")&&!W(F,u.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(W(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!W(u,"customInspect")||u.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(u,"indent")&&null!==u.indent&&"	"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var E=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(m.call(t,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}var i=U[r.quoteStyle||"single"];return i.lastIndex=0,V(b.call(b.call(t,i,"\\$1"),/[\x00-\x1f]/g,Q),"single",r)}(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return E?D(t,_):_}if("bigint"==typeof t){var A=String(t)+"n";return E?D(t,A):A}var R=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=R&&R>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var M=function(e,t){var r;if("	"===e.indent)r="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(u,i);if(void 0===s)s=[];else if(Y(s,t)>=0)return"[Circular]";function H(t,r,n){if(r&&(s=T.call(s)).push(r),n){var o={depth:u.depth};return W(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!q(t)){var et=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),er=ee(t,H);return"[Function"+(et?": "+et:" (anonymous)")+"]"+(er.length>0?" { "+S.call(er,", ")+" }":"")}if(z(t)){var en=x?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||x?en:$(en)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var ei,eo="<"+w.call(String(t.nodeName)),ea=t.attributes||[],es=0;es<ea.length;es++)eo+=" "+ea[es].name+"="+V((ei=ea[es].value,b.call(String(ei),/"/g,"&quot;")),"double",u);return eo+=">",t.childNodes&&t.childNodes.length&&(eo+="..."),eo+="</"+w.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var eu=ee(t,H);return M&&!function(e){for(var t=0;t<e.length;t++)if(Y(e[t],"\n")>=0)return!1;return!0}(eu)?"["+Z(eu,M)+"]":"[ "+S.call(eu,", ")+" ]"}if("[object Error]"===K(t)&&B(t)){var ec=ee(t,H);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===ec.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ec,", ")+" }":"{ ["+String(t)+"] "+S.call(O.call("[cause]: "+H(t.cause),ec),", ")+" }"}if("object"==typeof t&&y){if(L&&"function"==typeof t[L]&&j)return j(t,{depth:R-i});if("symbol"!==y&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var el=[];return a&&a.call(t,function(e,r){el.push(H(r,t,!0)+" => "+H(e,t))}),X("Map",o.call(t),el,M)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ef=[];return l&&l.call(t,function(e){ef.push(H(e,t))}),X("Set",c.call(t),ef,M)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if("[object Number]"===K(t)&&B(t))return $(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return $(H(I.call(t)));if("[object Boolean]"===K(t)&&B(t))return $(h.call(t));if("[object String]"===K(t)&&B(t))return $(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===K(t)&&B(t))&&!q(t)){var ep=ee(t,H),ed=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,eh=t instanceof Object?"":"null prototype",ey=!ed&&N&&Object(t)===t&&N in t?m.call(K(t),8,-1):eh?"Object":"",eg=(ed||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ey||eh?"["+S.call(O.call([],ey||[],eh||[]),": ")+"] ":"");return 0===ep.length?eg+"{}":M?eg+"{"+Z(ep,M)+"}":eg+"{ "+S.call(ep,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function K(e){return y.call(e)}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function Q(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+E.call(t.toString(16))}function $(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):S.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=G(e),i=[];if(n){i.length=e.length;for(var o=0;o<e.length;o++)i[o]=W(e,o)?t(e[o],e):""}var a="function"==typeof R?R(e):[];if(x){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=a[s]}for(var u in e)W(e,u)&&(!n||String(Number(u))!==u||!(u<e.length))&&(x&&r["$"+u]instanceof Symbol||(_.call(/[^\w$]/,u)?i.push(t(u,e)+": "+t(e[u],e)):i.push(u+": "+t(e[u],e))));if("function"==typeof R)for(var c=0;c<a.length;c++)P.call(e,a[c])&&i.push("["+t(a[c])+"]: "+t(e[a[c]],e));return i}},78488:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},16035:function(e,t,r){"use strict";var n=r(54031),i=r(42922),o=r(78488),a=r(83657),s=r(85694),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},83657:function(e,t,r){"use strict";var n=r(78488);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},85694:function(e,t,r){"use strict";var n=r(83657),i=r(54031);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},77225:function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(40432),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var p=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var d=0;d<e.length;++d)f.push(String(d));if(n&&e.length>0)for(var y=0;y<e.length;++y)f.push(String(y));else for(var g in e)!(p&&"prototype"===g)&&i.call(e,g)&&f.push(String(g));if(u)for(var v=h(e),m=0;m<l.length;++m)!(v&&"constructor"===l[m])&&i.call(e,l[m])&&f.push(l[m]);return f}}e.exports=n},77674:function(e,t,r){"use strict";var n=Array.prototype.slice,i=r(40432),o=Object.keys,a=o?function(e){return o(e)}:r(77225),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},40432:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},38432:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],c=!1,l=-1;function f(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new d(e,t)),1!==u.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},25547:function(e,t,r){"use strict";var n=r(26126);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},75414:function(e,t,r){e.exports=r(25547)()},26126:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},49331:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},22900:function(e,t,r){"use strict";var n=r(45550),i=r(70521),o=r(49331);e.exports={formats:o,parse:i,stringify:n}},70521:function(e,t,r){"use strict";var n=r(5988),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,t.throwOnLimitExceeded?c+1:c);if(t.throwOnLimitExceeded&&l.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var f=-1,p=t.charset;if(t.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?p="utf-8":"utf8=%26%2310003%3B"===l[d]&&(p="iso-8859-1"),f=d,d=l.length);for(d=0;d<l.length;++d)if(d!==f){var d,h,y,g=l[d],v=g.indexOf("]="),m=-1===v?g.indexOf("="):v+1;if(-1===m?(h=t.decoder(g,a.decoder,p,"key"),y=t.strictNullHandling?null:""):null!==(h=t.decoder(g.slice(0,m),a.decoder,p,"key"))&&(y=n.maybeMap(s(g.slice(m+1),t,o(r[h])?r[h].length:0),function(e){return t.decoder(e,a.decoder,p,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=String(y).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(y=o(y)?[y]:y),t.comma&&o(y)&&y.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");y=n.combine([],y,t.arrayLimit,t.plainObjects)}if(null!==h){var b=i.call(r,h);b&&"combine"===t.duplicates?r[h]=n.combine(r[h],y,t.arrayLimit,t.plainObjects):b&&"last"!==t.duplicates||(r[h]=y)}}return r},c=function(e,t,r,i){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var u=i?t:s(t,r,o),c=e.length-1;c>=0;--c){var l,f=e[c];if("[]"===f&&r.parseArrays)l=n.isOverflow(u)?u:r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var p="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(d,10),y=!isNaN(h)&&f!==d&&String(h)===d&&h>=0&&r.parseArrays;if(r.parseArrays||""!==d){if(y&&h<r.arrayLimit)(l=[])[h]=u;else if(y&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else y?(l[h]=u,n.markOverflow(l,h)):"__proto__"!==d&&(l[d]=u)}else l={0:u}}u=l}return u},l=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(r),a=o?r.slice(0,o.index):r,s=[];if(a){if(!t.plainObjects&&i.call(Object.prototype,a)&&!t.allowPrototypes)return;s[s.length]=a}for(var u=0;null!==(o=n.exec(r))&&u<t.depth;){u+=1;var c=o[1].slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,c)&&!t.allowPrototypes)return;s[s.length]=o[1]}if(o){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s[s.length]="["+r.slice(o.index)+"]"}return s},f=function(e,t,r,n){if(e){var i=l(e,r);if(i)return c(i,t,r,n)}},p=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=p(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?u(e,r):e,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],l=f(c,i[c],r,"string"==typeof e);o=n.merge(o,l,r)}return!0===r.allowSparse?o:n.compact(o)}},45550:function(e,t,r){"use strict";var n=r(62940),i=r(5988),o=r(49331),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,p=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},y=function e(t,r,o,a,s,c,f,p,y,g,v,m,b,E,w,_,O,S){for(var T,A,I=t,R=S,k=0,x=!1;void 0!==(R=R.get(h))&&!x;){var N=R.get(t);if(k+=1,void 0!==N){if(N===k)throw RangeError("Cyclic object value");x=!0}void 0===R.get(h)&&(k=0)}if("function"==typeof g?I=g(r,I):I instanceof Date?I=b(I):"comma"===o&&u(I)&&(I=i.maybeMap(I,function(e){return e instanceof Date?b(e):e})),null===I){if(c)return y&&!_?y(r,d.encoder,O,"key",E):r;I=""}if("string"==typeof(T=I)||"number"==typeof T||"boolean"==typeof T||"symbol"==typeof T||"bigint"==typeof T||i.isBuffer(I))return y?[w(_?r:y(r,d.encoder,O,"key",E))+"="+w(y(I,d.encoder,O,"value",E))]:[w(r)+"="+w(String(I))];var P=[];if(void 0===I)return P;if("comma"===o&&u(I))_&&y&&(I=i.maybeMap(I,y)),A=[{value:I.length>0?I.join(",")||null:void 0}];else if(u(g))A=g;else{var C=Object.keys(I);A=v?C.sort(v):C}var D=p?String(r).replace(/\./g,"%2E"):String(r),j=a&&u(I)&&1===I.length?D+"[]":D;if(s&&u(I)&&0===I.length)return j+"[]";for(var M=0;M<A.length;++M){var L=A[M],F="object"==typeof L&&L&&void 0!==L.value?L.value:I[L];if(!f||null!==F){var U=m&&p?String(L).replace(/\./g,"%2E"):String(L),V=u(I)?"function"==typeof o?o(j,U):j:j+(m?"."+U:"["+U+"]");S.set(t,k);var B=n();B.set(h,S),l(P,e(F,V,o,a,s,c,f,p,"comma"===o&&_&&u(I)?null:y,g,v,m,b,E,w,_,O,B))}}return P},g=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=o.formatters[n],c=d.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,i=e,o=g(t);"function"==typeof o.filter?i=(0,o.filter)("",i):u(o.filter)&&(r=o.filter);var a=[];if("object"!=typeof i||null===i)return"";var c=s[o.arrayFormat],f="comma"===c&&o.commaRoundTrip;r||(r=Object.keys(i)),o.sort&&r.sort(o.sort);for(var p=n(),d=0;d<r.length;++d){var h=r[d],v=i[h];o.skipNulls&&null===v||l(a,y(v,h,c,f,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var m=a.join(o.delimiter),b=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),m.length>0?b+m:""}},5988:function(e,t,r){"use strict";var n=r(49331),i=r(62940),o=Object.prototype.hasOwnProperty,a=Array.isArray,s=i(),u=function(e,t){return s.set(e,t),e},c=function(e){return s.has(e)},l=function(e){return s.get(e)},f=function(e,t){s.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),d=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&(n[n.length]=r[i]);t.obj[t.prop]=n}}},h=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:h,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(c(e)){var i=l(e)+1;return e[i]=t,f(e,i),e}var o=[].concat(e,t);return o.length>r?u(h(o,{plainObjects:n}),o.length-1):o},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],c=o[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t[t.length]={obj:o,prop:u},r[r.length]=c)}return d(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",u=0;u<a.length;u+=1024){for(var c=a.length>=1024?a.slice(u,u+1024):a,l=[],f=0;f<c.length;++f){var d=c.charCodeAt(f);if(45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===n.RFC1738&&(40===d||41===d)){l[l.length]=c.charAt(f);continue}if(d<128){l[l.length]=p[d];continue}if(d<2048){l[l.length]=p[192|d>>6]+p[128|63&d];continue}if(d<55296||d>=57344){l[l.length]=p[224|d>>12]+p[128|d>>6&63]+p[128|63&d];continue}f+=1,d=65536+((1023&d)<<10|1023&c.charCodeAt(f)),l[l.length]=p[240|d>>18]+p[128|d>>12&63]+p[128|d>>6&63]+p[128|63&d]}s+=l.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:u,maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>n.arrayLimit)return u(h(t.concat(r),n),i);t[i]=r}else if(!t||"object"!=typeof t)return[t,r];else if(c(t)){var s=l(t)+1;t[s]=r,f(t,s)}else(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(c(r)){for(var p=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},y=0;y<p.length;y++)d[parseInt(p[y],10)+1]=r[p[y]];return u(d,l(r)+1)}var g=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&g.length>n.arrayLimit?u(h(g,n),g.length-1):g}var v=t;return(a(t)&&!a(r)&&(v=h(t,n)),a(t)&&a(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t[t.length]=r}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];if(o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,c(r)&&!c(t)&&u(t,l(r)),c(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>l(t)&&f(t,s)}return t},v)}}},85092:function(e,t){"use strict";var r,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case a:case p:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case y:case h:case u:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=y,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.SuspenseList=d,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===f},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===y},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===p},t.isSuspenseList=function(e){return v(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===p||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=v},69221:function(e,t,r){"use strict";e.exports=r(85092)},46915: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 u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:function(){return a}}),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},74507: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;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(2700),a=h(o),s=h(r(25815)),u=h(r(75414)),c=h(r(18655)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(47047)),f=r(81464),p=h(f),d=r(46915);function h(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var g=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",m=f.canUseDOM&&void 0!==s.default.createPortal,b=function(e){return document.createElement(e)},E=function(){return m?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer},w=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,r,i,o=arguments.length,u=Array(o),l=0;l<o;l++)u[l]=arguments[l];return r=i=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.removePortal=function(){m||s.default.unmountComponentAtNode(i.node);var e=(0,i.props.parentSelector)();e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var r=E()(i,a.default.createElement(c.default,n({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(r)},y(i,r)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(m||(this.node=b("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),m||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,r){if(f.canUseDOM){var n=this.props,i=n.isOpen,o=n.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=r.prevParent,s=r.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&(m||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),r=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);r?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,r-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&m?(!this.node&&m&&(this.node=b("div")),E()(a.default.createElement(c.default,n({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),t}(o.Component);w.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(p.default),u.default.instanceOf(f.SafeHTMLCollection),u.default.instanceOf(f.SafeNodeList),u.default.arrayOf(u.default.instanceOf(p.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},w.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},w.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(w),t.default=w},18655:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(2700),s=g(r(75414)),u=y(r(17467)),c=g(r(66197)),l=y(r(47047)),f=y(r(30301)),p=r(81464),d=g(p),h=g(r(69943));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}r(43934);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},m=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.setOverlayRef=function(e){r.overlay=e,r.props.overlayRef&&r.props.overlayRef(e)},r.setContentRef=function(e){r.content=e,r.props.contentRef&&r.props.contentRef(e)},r.afterClose=function(){var e=r.props,t=e.appElement,n=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&f.remove(s.body,o),i&&f.remove(s.getElementsByTagName("html")[0],i),n&&m>0&&0==(m-=1)&&l.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(u.returnFocus(r.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),h.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(u.setupScopedFocus(r.node),u.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,c.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:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[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!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,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&&(m+=1,l.hide(t)),h.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,u=i?{}:o.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:n({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=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(l,a);return this.props.overlayElement(c,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(d.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.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},47047: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=u,t.hide=function(e){var t=!0,r=!1,n=void 0;try{for(var i,o=u(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=u(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(63802))&&n.__esModule?n:{default:n},o=r(81464),a=null;function s(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function u(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}`."),[])}},43934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[o,a],t=0;t<e.length;t++){var r=e[t];r&&r.parentNode&&r.parentNode.removeChild(r)}o=a=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[o,a],t=0;t<e.length;t++){var r=e[t]||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")};var n,i=(n=r(69943))&&n.__esModule?n:{default:n},o=void 0,a=void 0,s=[];function u(){0!==s.length&&s[s.length-1].focusContent()}i.default.subscribe(function(e,t){o||a||((o=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),o.style.position="absolute",o.style.opacity="0",o.setAttribute("tabindex","0"),o.addEventListener("focus",u),(a=o.cloneNode()).addEventListener("focus",u)),(s=t).length>0?(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))})},30301: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(" "))}},17467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o=[]},t.log=function(){},t.handleBlur=u,t.handleFocus=c,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",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var n,i=(n=r(46581))&&n.__esModule?n:{default:n},o=[],a=null,s=!1;function u(){s=!0}function c(){s&&(s=!1,a&&setTimeout(function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()},0))}},69943: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;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),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},81464: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(89810))&&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},66197: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){t.preventDefault();return}var n=void 0,o=t.shiftKey,a=r[0],s=r[r.length-1],u=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===u){if(!o)return;n=s}if(s!==u||o||(n=a),a===u&&o&&(n=s),n){t.preventDefault(),n.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var l=r.indexOf(u);if(l>-1&&(l+=o?-1:1),void 0===(n=r[l])){t.preventDefault(),(n=o?s:a).focus();return}t.preventDefault(),n.focus()}};var n,i=(n=r(46581))&&n.__esModule?n:{default:n};e.exports=t.default},46581: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},27460:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(74507))&&n.__esModule?n:{default:n};t.default=i.default,e.exports=t.default},15110:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}let i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{i[e]=new n(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new n(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new n(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new n(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new n(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new n(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)});let o=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(o,a);i[t]=new n(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(o,a);i[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(o,a);i[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)}),i.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)});let{CAMELCASE:s,SAME:u,possibleStandardNames:c}=r(93065),l=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(c).reduce((e,t)=>{let r=c[t];return r===u?e[t]=t:r===s?e[t.toLowerCase()]=t:e[t]=r,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=l,t.possibleStandardNames=f},93065:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},41902:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=((n=r(2700))&&n.__esModule?n:{default:n}).default.createContext({});t.default=i},82377:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(75414))&&n.__esModule?n:{default:n},o=i.default.shape({trackEvent:i.default.func,getTrackingData:i.default.func});t.default=o},86479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){Object.keys(e).length>0&&(window.dataLayer=window.dataLayer||[]).push(e)}},63597:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"track",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"withTracking",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"trackEvent",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"TrackingPropType",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"useTracking",{enumerable:!0,get:function(){return s.default}});var n=u(r(46110)),i=u(r(87105)),o=u(r(92666)),a=u(r(82377)),s=u(r(8009));function u(e){return e&&e.__esModule?e:{default:e}}},4679:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,r,n){var i=n.configurable,o=n.enumerable,a=n.value,s=n.get,u=n.initializer;if(a)return{configurable:i,enumerable:o,value:e(a)};if(s||u)return{configurable:i,enumerable:o,get:function(){if(this===t)return null;var n=e(u?Reflect.apply(u,this,[]):Reflect.apply(s,this,[])).bind(this);return Reflect.defineProperty(this,r,{configurable:i,enumerable:o,value:n}),n}};throw Error("called makeClassMemberDecorator on unsupported descriptor")}}},92666:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)(function(t){return function(){for(var r=this,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=function(){if(r.props&&r.props.tracking&&"function"==typeof r.props.tracking.trackEvent){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];var a="function"==typeof e?e(r.props,r.state,i,n):e;a&&r.props.tracking.trackEvent(a)}},s=Reflect.apply(t,this,i);return Promise&&Promise.resolve(s)===s?s.then(a.bind(this)).then(function(){return s}).catch(function(e){throw a({},e),e}):(a(),s)}})};var n,i=(n=r(4679))&&n.__esModule?n:{default:n}},46110:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){return 1==arguments.length?(0,n.default)(e,t).apply(void 0,arguments):(0,i.default)(e).apply(void 0,arguments)}};var n=o(r(87105)),i=o(r(92666));function o(e){return e&&e.__esModule?e:{default:e}}},8009:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,o.default)(e,t),a=(0,n.useCallback)(function(e){var t=e.children;return n.default.createElement(i.default.Provider,{value:r},t)},[r]);return(0,n.useMemo)(function(){return{Track:a,getTrackingData:r.tracking.getTrackingData,trackEvent:r.tracking.dispatch}},[r,a])};var n=function(e){if(e&&e.__esModule)return e;var t=s();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}}return r.default=e,t&&t.set(e,r),r}(r(2700)),i=a(r(41902)),o=a(r(23328));function a(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}},23328:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,n.useContext)(o.default).tracking,s=(0,n.useRef)(e),u=(0,n.useRef)(t);(0,n.useEffect)(function(){s.current=e,u.current=t});var c=(0,n.useMemo)(function(){return u.current||{}},[]),l=c.dispatch,f=void 0===l?a.default:l,p=c.dispatchOnMount,d=void 0!==p&&p,h=c.process,y=(0,n.useCallback)(function(){return r&&r.process},[r]),g=(0,n.useCallback)(function(){var e=s.current;return("function"==typeof e?e():e)||{}},[]),v=(0,n.useCallback)(function(){var e=r&&r.getTrackingData||g;return function(){return e===g?g():(0,i.default)(e(),g())}},[g,r]),m=(0,n.useCallback)(function(){var e=r&&r.dispatch||f;return function(t){return e((0,i.default)(g(),t||{}))}},[g,r,f]),b=(0,n.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m()(e)},[m]);return(0,n.useEffect)(function(){var e=y(),t=v();if(e&&h&&console.error("[react-tracking] options.process should be defined once on a top-level component"),"function"==typeof e&&"function"==typeof d)b((0,i.default)(e(g())||{},d(t())||{}));else if("function"==typeof e){var r=e(g());(r||!0===d)&&b(r)}else"function"==typeof d?b(d(t())):!0===d&&b()},[g,y,v,b,d,h]),(0,n.useMemo)(function(){return{tracking:{dispatch:m(),getTrackingData:v(),process:y()||h}}},[m,v,y,h])};var n=r(2700),i=s(r(61375)),o=s(r(41902)),a=s(r(86479));function s(e){return e&&e.__esModule?e:{default:e}}},87105:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.forwardRef,l=void 0!==r&&r,f=h(t,u);return function(t){var r=t.displayName||t.name||"Component";function u(r){var i=r.rtFwdRef,o=h(r,c),u=(0,n.useRef)(o);(0,n.useEffect)(function(){u.current=o});var p=(0,n.useCallback)(function(){return"function"==typeof e?e(u.current):e},[]),y=(0,s.default)(p,f),g=(0,n.useMemo)(function(){return{trackEvent:y.tracking.dispatch,getTrackingData:y.tracking.getTrackingData}},[y]),v=(0,n.useMemo)(function(){return l?d(d({},o),{},{ref:i}):o},[o,i]);return n.default.createElement(a.default.Provider,{value:y},n.default.createElement(t,d(d({},v),{},{tracking:g})))}if(l){var p=n.default.forwardRef(function(e,t){return n.default.createElement(u,d(d({},e),{},{rtFwdRef:t}))});return p.displayName="WithTracking(".concat(r,")"),(0,i.default)(p,t),p}return u.displayName="WithTracking(".concat(r,")"),u.propTypes={rtFwdRef:o.default.oneOfType([o.default.func,o.default.shape({current:o.default.any})])},u.defaultProps={rtFwdRef:void 0},(0,i.default)(u,t),u}};var n=function(e){if(e&&e.__esModule)return e;var t=f();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}}return r.default=e,t&&t.set(e,r),r}(r(2700)),i=l(r(98526)),o=l(r(75414)),a=l(r(41902)),s=l(r(23328)),u=["forwardRef"],c=["rtFwdRef"];function l(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(r,!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},61375:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,r,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=n;var c,l,f=Array.isArray(r);return f!==Array.isArray(e)?n(r,u):f?u.arrayMerge(e,r,u):(l={},(c=u).isMergeableObject(e)&&o(e).forEach(function(t){l[t]=n(e[t],c)}),o(r).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&c.isMergeableObject(r[t])?l[t]=(function(e,t){if(!t.customMerge)return s;var r=t.customMerge(e);return"function"==typeof r?r:s})(t,c)(e[t],r[t],c):l[t]=n(r[t],c))}),l)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})},e.exports=s},11187:function(e,t,r){"use strict";var n=r(97326),i=r(43828),o=Object;e.exports=n(function(){if(this==null||this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0)},49632:function(e,t,r){"use strict";var n=r(54031),i=r(42922),o=r(11187),a=r(27531),s=r(51057),u=i(a());n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},27531:function(e,t,r){"use strict";var n=r(11187),i=r(54031).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/mig.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return n}},51057:function(e,t,r){"use strict";var n=r(54031).supportsDescriptors,i=r(27531),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,u=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!n||!u)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=u(c),r=o(t,"flags");return r&&r.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},4261:function(e,t,r){"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(2700))},4899:function(e,t,r){"use strict";var n=r(80197),i=r(59279),o=r(26090)(),a=r(69783),s=r(43828),u=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>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},97326:function(e,t,r){"use strict";var n=r(59279),i=r(26090)(),o=r(29478).functionsHaveConfigurableNames(),a=r(43828);e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");var r=arguments.length>2&&!!arguments[2];return(!r||o)&&(i?n(e,"name",t,!0,!0):n(e,"name",t)),e}},84250: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),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},86684:function(e,t,r){"use strict";var n=r(97298),i=r(43828),o=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n},a=function(e,t){if(e){var r=o(e,t);return r&&r.value}},s=function(e,t,r){var n=o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},u=function(e,t){if(e)return o(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=u(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!o(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},51880:function(e,t,r){"use strict";var n=r(6830),i=r(19858),o=r(97298),a=r(43828),s=n("%Map%",!0),u=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),p=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=f(e,t);return 0===p(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new s),c(e,t,r)}};return t}},98375:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},68984:function(e){"use strict";e.exports=Object},6830:function(e,t,r){"use strict";var n,i=r(68984),o=r(98506),a=r(55371),s=r(87232),u=r(60962),c=r(86967),l=r(43828),f=r(35192),p=r(9862),d=r(95233),h=r(77803),y=r(23354),g=r(19063),v=r(29467),m=r(17951),b=Function,E=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(76942),_=r(98375),O=function(){throw new l},S=w?function(){try{return arguments.callee,O}catch(e){try{return w(arguments,"callee").get}catch(e){return O}}}():O,T=r(797)(),A=r(56512),I=r(76441),R=r(8476),k=r(49380),x=r(78610),N={},P="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":N,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):n,"%Symbol%":T?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":k,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":m,"%Reflect.getPrototypeOf%":R};if(A)try{null.error}catch(e){var D=A(A(e));C["%Error.prototype%"]=D}var j=function e(t){var r;if("%AsyncFunction%"===t)r=E("async function () {}");else if("%GeneratorFunction%"===t)r=E("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=E("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return C[t]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=r(83485),F=r(21630),U=L.call(x,Array.prototype.concat),V=L.call(k,Array.prototype.splice),B=L.call(x,String.prototype.replace),G=L.call(x,String.prototype.slice),q=L.call(x,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,W=function(e){var t=G(e,0,1),r=G(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return B(e,z,function(e,t,r,i){n[n.length]=r?B(i,H,"$1"):t||e}),n},K=function(e,t){var r,n=e;if(F(M,n)&&(n="%"+(r=M[n])[0]+"%"),F(C,n)){var i=C[n];if(i===N&&(i=j(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),n=r.length>0?r[0]:"",i=K("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],V(r,U([0,1],u)));for(var f=1,p=!0;f<r.length;f+=1){var d=r[f],h=G(d,0,1),y=G(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(s=!0),n+="."+d,F(C,o="%"+n+"%"))a=C[o];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&f+1>=r.length){var g=w(a,d);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else p=F(a,d),a=a[d];p&&!s&&(C[o]=a)}}return a}},82054:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},76942:function(e,t,r){"use strict";var n=r(82054);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},797:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(36342);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},36342: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}},26614:function(e,t,r){"use strict";var n=r(10748),i=r(19858),o=r(97298),a=r(51880),s=r(43828),u=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),p=i("WeakMap.prototype.delete",!0);e.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),l(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},45159:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},35616:function(e){"use strict";e.exports=Object},10748:function(e,t,r){"use strict";var n,i=r(35616),o=r(98506),a=r(55371),s=r(87232),u=r(60962),c=r(86967),l=r(43828),f=r(35192),p=r(9862),d=r(95233),h=r(77803),y=r(23354),g=r(19063),v=r(29467),m=r(17951),b=Function,E=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(25761),_=r(45159),O=function(){throw new l},S=w?function(){try{return arguments.callee,O}catch(e){try{return w(arguments,"callee").get}catch(e){return O}}}():O,T=r(11909)(),A=r(56512),I=r(76441),R=r(8476),k=r(49380),x=r(78610),N={},P="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":N,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):n,"%Symbol%":T?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":k,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":m,"%Reflect.getPrototypeOf%":R};if(A)try{null.error}catch(e){var D=A(A(e));C["%Error.prototype%"]=D}var j=function e(t){var r;if("%AsyncFunction%"===t)r=E("async function () {}");else if("%GeneratorFunction%"===t)r=E("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=E("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return C[t]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=r(83485),F=r(21630),U=L.call(x,Array.prototype.concat),V=L.call(k,Array.prototype.splice),B=L.call(x,String.prototype.replace),G=L.call(x,String.prototype.slice),q=L.call(x,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,W=function(e){var t=G(e,0,1),r=G(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return B(e,z,function(e,t,r,i){n[n.length]=r?B(i,H,"$1"):t||e}),n},K=function(e,t){var r,n=e;if(F(M,n)&&(n="%"+(r=M[n])[0]+"%"),F(C,n)){var i=C[n];if(i===N&&(i=j(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),n=r.length>0?r[0]:"",i=K("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],V(r,U([0,1],u)));for(var f=1,p=!0;f<r.length;f+=1){var d=r[f],h=G(d,0,1),y=G(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(s=!0),n+="."+d,F(C,o="%"+n+"%"))a=C[o];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&f+1>=r.length){var g=w(a,d);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else p=F(a,d),a=a[d];p&&!s&&(C[o]=a)}}return a}},53052:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},25761:function(e,t,r){"use strict";var n=r(53052);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},11909:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(95213);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},95213: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}},62940:function(e,t,r){"use strict";var n=r(43828),i=r(97298),o=r(86684),a=r(51880),s=r(26614)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},76215:function(e,t,r){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(74138)),i=r(41970);function o(e,t){var r={};return e&&"string"==typeof e&&(0,n.default)(e,function(e,n){e&&n&&(r[(0,i.camelCase)(e,t)]=n)}),r}o.default=o,e.exports=o},41970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||r.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(o,u)).replace(n,s))}},74138: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.default=function(e,t){var r=null;if(!e||"string"!=typeof e)return r;var n=(0,i.default)(e),o="function"==typeof t;return n.forEach(function(e){if("declaration"===e.type){var n=e.property,i=e.value;o?t(n,i,e):i&&((r=r||{})[n]=i)}}),r};var i=n(r(94245))},94245:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g;function c(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var l=1,f=1;function p(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf("\n");f=~n?e.length-n:f+e.length}function d(){var e={line:l,column:f};return function(t){return t.position=new h(e),v(n),t}}function h(e){this.start=e,this.end={line:l,column:f},this.source=u.source}h.prototype.content=e;var y=[];function g(t){var r=Error(u.source+":"+l+":"+f+": "+t);if(r.reason=t,r.filename=u.source,r.line=l,r.column=f,r.source=e,u.silent)y.push(r);else throw r}function v(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function m(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return g("End of comment missing");var n=e.slice(2,r-2);return f+=2,p(n),e=e.slice(r),f+=2,t({type:"comment",comment:n})}}return v(n),function(){var e,r=[];for(m(r);e=function(){var e=d(),r=v(i);if(r){if(b(),!v(o))return g("property missing ':'");var n=v(a),u=e({type:"declaration",property:c(r[0].replace(t,"")),value:n?c(n[0].replace(t,"")):""});return v(s),u}}();)!1!==e&&(r.push(e),m(r));return r}()}},66095:function(e,t,r){"use strict";r.d(t,{vJ:function(){return eP},iv:function(){return eE},ZP:function(){return eD},F4:function(){return eC}});var n,i=r(69221),o=r(2700),a=r(84250),s=r.n(a),u=function(e){function t(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[u++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,o){var a=e+";",s=2*t+3*r+4*o;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===k||2===k&&i(u,1)?"-webkit-"+u+u:u}if(0===k||2===k&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,o).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),C(2!==t?n:n.replace(O,"$1"),r,t)}function o(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,r,n,i,o,a,s,c,l){for(var f,p=0,d=t;p<P;++p)switch(f=N[p].call(u,e,d,r,n,i,o,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(C=null,e?"function"!=typeof e?k=1:(k=2,C=e):k=0),s}function u(e,r){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<P){var u=a(-1,r,s,s,I,A,0,0,0,0);void 0!==u&&"string"==typeof u&&(r=u)}var f=function e(r,s,u,f,p){for(var d,h,y,b,w,_=0,O=0,S=0,T=0,N=0,C=0,j=y=d=0,M=0,L=0,F=0,U=0,V=u.length,B=V-1,G="",q="",z="",H="";M<V;){if(h=u.charCodeAt(M),M===B&&0!==O+T+S+_&&(0!==O&&(h=47===O?10:47),T=S=_=0,V++,B++),0===O+T+S+_){if(M===B&&(0<L&&(G=G.replace(l,"")),0<G.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:G+=u.charAt(M)}h=59}switch(h){case 123:for(d=(G=G.trim()).charCodeAt(0),y=1,U=++M;M<V;){switch(h=u.charCodeAt(M)){case 123:y++;break;case 125:y--;break;case 47:switch(h=u.charCodeAt(M+1)){case 42:case 47:e:{for(j=M+1;j<B;++j)switch(u.charCodeAt(j)){case 47:if(42===h&&42===u.charCodeAt(j-1)&&M+2!==j){M=j+1;break e}break;case 10:if(47===h){M=j+1;break e}}M=j}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<B&&u.charCodeAt(M)!==h;);}if(0===y)break;M++}if(y=u.substring(U,M),0===d&&(d=(G=G.replace(c,"").trim()).charCodeAt(0)),64===d){switch(0<L&&(G=G.replace(l,"")),h=G.charCodeAt(1)){case 100:case 109:case 115:case 45:L=s;break;default:L=x}if(U=(y=e(s,L,y,h,p+1)).length,0<P&&(w=a(3,y,L=t(x,G,F),s,I,A,U,h,p,f),G=L.join(""),void 0!==w&&0===(U=(y=w.trim()).length)&&(h=0,y="")),0<U)switch(h){case 115:G=G.replace(E,o);case 100:case 109:case 45:y=G+"{"+y+"}";break;case 107:y=(G=G.replace(g,"$1 $2"))+"{"+y+"}",y=1===k||2===k&&i("@"+y,3)?"@-webkit-"+y+"@"+y:"@"+y;break;default:y=G+y,112===f&&(q+=y,y="")}else y=""}else y=e(s,t(s,G,F),y,f,p+1);z+=y,y=F=L=j=d=0,G="",h=u.charCodeAt(++M);break;case 125:case 59:if(1<(U=(G=(0<L?G.replace(l,""):G).trim()).length))switch(0===j&&(45===(d=G.charCodeAt(0))||96<d&&123>d)&&(U=(G=G.replace(" ",":")).length),0<P&&void 0!==(w=a(1,G,s,r,I,A,q.length,f,p,f))&&0===(U=(G=w.trim()).length)&&(G="\0\0"),d=G.charCodeAt(0),h=G.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){H+=G+u.charAt(M);break}default:58!==G.charCodeAt(U-1)&&(q+=n(G,d,h,G.charCodeAt(2)))}F=L=j=d=0,G="",h=u.charCodeAt(++M)}}switch(h){case 13:case 10:47===O?O=0:0===1+d&&107!==f&&0<G.length&&(L=1,G+="\0"),0<P*D&&a(0,G,s,r,I,A,q.length,f,p,f),A=1,I++;break;case 59:case 125:if(0===O+T+S+_){A++;break}default:switch(A++,b=u.charAt(M),h){case 9:case 32:if(0===T+_+O)switch(N){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===T+O+_&&(L=F=1,b="\f"+b);break;case 108:if(0===T+O+_+R&&0<j)switch(M-j){case 2:112===N&&58===u.charCodeAt(M-3)&&(R=N);case 8:111===C&&(R=C)}break;case 58:0===T+O+_&&(j=M);break;case 44:0===O+S+T+_&&(L=1,b+="\r");break;case 34:case 39:0===O&&(T=T===h?0:0===T?h:T);break;case 91:0===T+O+S&&_++;break;case 93:0===T+O+S&&_--;break;case 41:0===T+O+_&&S--;break;case 40:0===T+O+_&&(0===d&&(2*N+3*C==533||(d=1)),S++);break;case 64:0===O+S+T+_+j+y&&(y=1);break;case 42:case 47:if(!(0<T+_+S))switch(O){case 0:switch(2*h+3*u.charCodeAt(M+1)){case 235:O=47;break;case 220:U=M,O=42}break;case 42:47===h&&42===N&&U+2!==M&&(33===u.charCodeAt(U+2)&&(q+=u.substring(U,M+1)),b="",O=0)}}0===O&&(G+=b)}C=N,N=h,M++}if(0<(U=q.length)){if(L=s,0<P&&void 0!==(w=a(2,q,L,r,I,A,U,f,p,f))&&0===(q=w).length)return H+q+z;if(q=L.join(",")+"{"+q+"}",0!=k*R){switch(2!==k||i(q,2)||(R=0),R){case 111:q=q.replace(m,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}R=0}}return H+q+z}(x,s,r,0,0);return 0<P&&void 0!==(u=a(-2,f,s,s,I,A,f.length,0,0,0))&&(f=u),R=0,A=I=1,f}var c=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,m=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,_=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,A=1,I=1,R=0,k=1,x=[],N=[],P=0,C=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:P=N.length=0;break;default:if("function"==typeof t)N[P++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else D=0|!!t}return e},u.set=s,void 0!==e&&s(e),u},c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},l=r(30224),f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=(0,l.Z)(function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),d=r(98526),h=r.n(d),y=r(38432);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var v=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,i.typeOf)(e)},b=Object.freeze([]),E=Object.freeze({});function w(e){return"function"==typeof e}function _(e){return e.displayName||e.name||"Component"}function O(e){return e&&"string"==typeof e.styledComponentId}var S=void 0!==y&&void 0!==y.env&&(y.env.REACT_APP_SC_ATTR||y.env.SC_ATTR)||"data-styled",T="undefined"!=typeof window&&"HTMLElement"in window,A=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==y&&void 0!==y.env&&(void 0!==y.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==y.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==y.env.REACT_APP_SC_DISABLE_SPEEDY&&y.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==y.env.SC_DISABLE_SPEEDY&&""!==y.env.SC_DISABLE_SPEEDY&&"false"!==y.env.SC_DISABLE_SPEEDY&&y.env.SC_DISABLE_SPEEDY)),I={};function R(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&R(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.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<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),x=new Map,N=new Map,P=1,C=function(e){if(x.has(e))return x.get(e);for(;N.has(P);)P++;var t=P++;return x.set(e,t),N.set(t,e),t},D=function(e,t){t>=P&&(P=t+1),x.set(e,t),N.set(t,e)},j="style["+S+'][data-styled-version="5.3.11"]',M=RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},F=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(M);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(D(c,u),L(e,c,s[3]),e.getTag().insertRules(u,n)),n.length=0}else n.push(a)}}},U=function(){return r.nc},V=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(S))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(S,"active"),n.setAttribute("data-styled-version","5.3.11");var a=U();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},B=function(){function e(e){var t=this.element=V(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}R(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),G=function(){function e(e){var t=this.element=V(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),q=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),z=T,H={isServer:!T,useCSSOMInjection:!A},W=function(){function e(e,t,r){void 0===e&&(e=E),void 0===t&&(t={}),this.options=g({},H,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&T&&z&&(z=!1,function(e){for(var t=document.querySelectorAll(j),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(S)&&(F(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return C(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(g({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new k(t?new q(n):r?new B(n):new G(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(C(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(C(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(C(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o,a=(o=i,N.get(o));if(void 0!==a){var s=e.names.get(a),u=t.getGroup(i);if(s&&u&&s.size){var c=S+".g"+i+'[id="'+a+'"]',l="";void 0!==s&&s.forEach(function(e){e.length>0&&(l+=e+",")}),n+=""+u+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),K=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Y(t%52)+r;return(Y(t%52)+r).replace(K,"$1-$2")}var $=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return $(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(w(r)&&!O(r))return!1}return!0}var Z=J("5.3.11"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&X(e),this.componentId=t,this.baseHash=$(Z,t),this.baseStyle=r,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=em(this.rules,e,t,r).join(""),a=Q($(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}}else{for(var u=this.rules.length,c=$(this.baseHash,r.hash),l="",f=0;f<u;f++){var p=this.rules[f];if("string"==typeof p)l+=p;else if(p){var d=em(p,e,t,r),h=Array.isArray(d)?d.join(""):d;c=$(c,h+f),l+=h}}if(l){var y=Q(c>>>0);if(!t.hasNameForId(n,y)){var g=r(l,"."+y,void 0,n);t.insertRules(n,y,g)}i.push(y)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function en(e){var t,r,n,i,o=void 0===e?E:e,a=o.options,s=void 0===a?E:a,c=o.plugins,l=void 0===c?b:c,f=new u(s),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){p.push(e)}),h=function(e,n,o){return 0===n&&-1!==er.indexOf(o[r.length])||o.match(i)?e:"."+t};function y(e,o,a,s){void 0===s&&(s="&");var u=e.replace(et,""),c=o&&a?a+" "+o+" { "+u+" }":u;return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),f(a||!o?"":o,c)}return f.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),y.hash=l.length?l.reduce(function(e,t){return t.name||R(15),$(e,t.name)},5381).toString():"",y}var ei=o.createContext(),eo=(ei.Consumer,o.createContext()),ea=(eo.Consumer,new W),es=en();function eu(){return(0,o.useContext)(ei)||ea}function ec(){return(0,o.useContext)(eo)||es}function el(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=eu(),a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,o.useMemo)(function(){return en({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,o.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),o.createElement(ei.Provider,{value:a},o.createElement(eo.Provider,{value:u},e.children))}var ef=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=es);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return R(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=es),this.name+e.hash},e}(),ep=/([A-Z])/,ed=/([A-Z])/g,eh=/^ms-/,ey=function(e){return"-"+e.toLowerCase()};function eg(e){return ep.test(e)?e.replace(ed,ey).replace(eh,"-ms-"):e}var ev=function(e){return null==e||!1===e||""===e};function em(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=em(e[a],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return ev(e)?"":O(e)?"."+e.styledComponentId:w(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:em(e(t),t,r,n):e instanceof ef?r?(e.inject(r,n),e.getName(n)):e:m(e)?function e(t,r){var n,i=[];for(var o in t)t.hasOwnProperty(o)&&!ev(t[o])&&(Array.isArray(t[o])&&t[o].isCss||w(t[o])?i.push(eg(o)+":",t[o],";"):m(t[o])?i.push.apply(i,e(t[o],o)):i.push(eg(o)+": "+(null==(n=t[o])||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in c||o.startsWith("--")?String(n).trim():n+"px")+";"));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var eb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function eE(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return w(e)||m(e)?eb(em(v(b,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:eb(em(v(e,r)))}var ew=function(e,t,r){return void 0===r&&(r=E),e.theme!==r.theme&&e.theme||t||r.theme},e_=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eO=/(^-|-$)/g;function eS(e){return e.replace(e_,"-").replace(eO,"")}var eT=function(e){return Q(J(e)>>>0)};function eA(e){return"string"==typeof e}var eI=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eR=o.createContext();eR.Consumer;var ek={},ex=function(e){return function e(t,r,n){if(void 0===n&&(n=E),!(0,i.isValidElementType)(r))return R(1,String(r));var o=function(){return t(r,n,eE.apply(void 0,arguments))};return o.withConfig=function(i){return e(t,r,g({},n,{},i))},o.attrs=function(i){return e(t,r,g({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},o}(function e(t,r,n){var i=O(t),a=!eA(t),s=r.attrs,u=void 0===s?b:s,c=r.componentId,l=void 0===c?(S=r.displayName,T=r.parentComponentId,ek[A="string"!=typeof S?"sc":eS(S)]=(ek[A]||0)+1,I=A+"-"+eT("5.3.11"+A+ek[A]),T?T+"-"+I:I):c,f=r.displayName,d=void 0===f?eA(t)?"styled."+t:"Styled("+_(t)+")":f,y=r.displayName&&r.componentId?eS(r.displayName)+"-"+r.componentId:r.componentId||l,v=i&&t.attrs?Array.prototype.concat(t.attrs,u).filter(Boolean):u,m=r.shouldForwardProp;i&&t.shouldForwardProp&&(m=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var S,T,A,I,R,k=new ee(n,y,i?t.componentStyle:void 0),x=k.isStatic&&0===u.length,N=function(e,t){return function(e,t,r,n){var i,a,s,u,c,l=e.attrs,f=e.componentStyle,d=e.defaultProps,h=e.foldedComponentIds,y=e.shouldForwardProp,v=e.styledComponentId,m=e.target,b=(void 0===(i=ew(t,(0,o.useContext)(eR),d)||E)&&(i=E),a=g({},t,{theme:i}),s={},l.forEach(function(e){var t,r,n,i=e;for(t in w(i)&&(i=i(a)),i)a[t]=s[t]="className"===t?(r=s[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[a,s]),_=b[0],O=b[1],S=(u=eu(),c=ec(),n?f.generateAndInjectStyles(E,u,c):f.generateAndInjectStyles(_,u,c)),T=O.$as||t.$as||O.as||t.as||m,A=eA(T),I=O!==t?g({},t,{},O):t,R={};for(var k in I)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?R.as=I[k]:(y?y(k,p,T):!A||p(k))&&(R[k]=I[k]));return t.style&&O.style!==t.style&&(R.style=g({},t.style,{},O.style)),R.className=Array.prototype.concat(h,v,S!==v?S:null,t.className,O.className).filter(Boolean).join(" "),R.ref=r,(0,o.createElement)(T,R)}(R,e,t,x)};return N.displayName=d,(R=o.forwardRef(N)).attrs=v,R.componentStyle=k,R.displayName=d,R.shouldForwardProp=m,R.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):b,R.styledComponentId=y,R.target=i?t.target:t,R.withComponent=function(t){var i=r.componentId,o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(r,["componentId"]),a=i&&i+"-"+(eA(t)?t:eS(_(t)));return e(t,g({},o,{attrs:v,componentId:a}),n)},Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var o=0;o<n.length;o++){var a=n[o];if(eI(a))for(var s in a)"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&function(t,r,n){var i=t[n];eI(r)&&eI(i)?e(i,r):t[n]=r}(t,a[s],s)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(R,"toString",{value:function(){return"."+R.styledComponentId}}),a&&h()(R,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),R},e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){ex[e]=ex(e)});var eN=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(em(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eP(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=eE.apply(void 0,[e].concat(r)),a="sc-global-"+eT(JSON.stringify(i)),s=new eN(i,a);function u(e){var t=eu(),r=ec(),n=(0,o.useContext)(eR),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&c(i,e,t,n,r),(0,o.useLayoutEffect)(function(){if(!t.server)return c(i,e,t,n,r),function(){return s.removeStyles(i,t)}},[i,e,t,n,r]),null}function c(e,t,r,n,i){if(s.isStatic)s.renderStyles(e,I,r,i);else{var o=g({},t,{theme:ew(t,n,u.defaultProps)});s.renderStyles(e,o,r,i)}}return o.memo(u)}function eC(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=eE.apply(void 0,[e].concat(r)).join("");return new ef(eT(i),i)}(n=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=U();return"<style "+[r&&'nonce="'+r+'"',S+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?R(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return R(2);var t,r=((t={})[S]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=U();return n&&(r.nonce=n),[o.createElement("style",g({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?R(2):o.createElement(el,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return R(3)};var eD=ex},22829:function(e,t,r){"use strict";r.r(t),r.d(t,{focusable:function(){return O},isFocusable:function(){return A},isTabbable:function(){return S},tabbable:function(){return _}});var n=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=n.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},u=function(e,t,r){var n=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&n.unshift(e),n=n.filter(r)},c=function e(t,r,n){for(var o=[],s=Array.from(t);s.length;){var u=s.shift();if("SLOT"===u.tagName){var c=u.assignedElements(),l=e(c.length?c:u.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scope:u,candidates:l})}else{a.call(u,i)&&n.filter(u)&&(r||!t.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(u),p=!n.shadowRootFilter||n.shadowRootFilter(u);if(f&&p){var d=e(!0===f?u.children:f.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scope:u,candidates:d})}else s.unshift.apply(s,u.children)}}return o},l=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},f=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},p=function(e){return"INPUT"===e.tagName},d=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},h=function(e){if(!e.name)return!0;var t,r=e.form||s(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=d(t,e.form);return!i||i===e},y=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},g=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;var o=s(e).host,u=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(r&&"full"!==r){if("non-zero-area"===r)return y(e)}else{if("function"==typeof n){for(var c=e;e;){var l=e.parentElement,f=s(e);if(l&&!l.shadowRoot&&!0===n(l))return y(e);e=e.assignedSlot?e.assignedSlot:l||f===e.ownerDocument?l:f.host}e=c}if(u)return!e.getClientRects().length}return!1},v=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!a.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},m=function(e,t){return!(t.disabled||p(t)&&"hidden"===t.type||g(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||v(t))},b=function(e,t){var r;return!(p(r=t)&&"radio"===r.type&&!h(r)||0>l(t))&&!!m(e,t)},E=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},w=function e(t){var r=[],n=[];return t.forEach(function(t,i){var o=!!t.scope,a=o?t.scope:t,s=l(a,o),u=o?e(t.candidates):a;0===s?o?r.push.apply(r,u):r.push(a):n.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:u})}),n.sort(f).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},_=function(e,t){return w((t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:E}):u(e,t.includeContainer,b.bind(null,t)))},O=function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):u(e,t.includeContainer,m.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,i)&&b(t,e)},T=n.concat("iframe").join(","),A=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,T)&&m(t,e)}},21450:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="major",f="model",p="name",d="type",h="vendor",y="version",g="architecture",v="console",m="mobile",b="tablet",E="smarttv",w="wearable",_="embedded",O="Amazon",S="Apple",T="ASUS",A="BlackBerry",I="Browser",R="Chrome",k="Firefox",x="Google",N="Huawei",P="Microsoft",C="Motorola",D="Opera",j="Samsung",M="Sharp",L="Sony",F="Xiaomi",U="Zebra",V="Facebook",B="Chromium OS",G="Mac OS",q=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},z=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},H=function(e,t){return typeof e===c&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},Y=function(e,t){for(var r,n,i,s,c,l,f=0;f<t.length&&!c;){var p=t[f],d=t[f+1];for(r=n=0;r<p.length&&!c&&p[r];)if(c=p[r++].exec(e))for(i=0;i<d.length;i++)l=c[++n],typeof(s=d[i])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||o;f+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===u&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(H(t[r][n],e))return"?"===r?o:r}else if(H(t[r],e))return"?"===r?o:r;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,y],[/opios[\/ ]+([\w\.]+)/i],[y,[p,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[p,D+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[p,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,y],[/\bddg\/([\w\.]+)/i],[y,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[p,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[p,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+I],y],[/\bfocus\/([\w\.]+)/i],[y,[p,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[p,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[p,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[p,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[y,[p,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+I]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+I],y],[/samsungbrowser\/([\w\.]+)/i],[y,[p,j+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],y],[/metasr[\/ ]?([\d\.]+)/i],[y,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,y],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,V],y],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[p,R+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,R+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[p,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[y,Q,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[p,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,y],[/(cobalt)\/([\w\.]+)/i],[p,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[h,j],[d,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,j],[d,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[h,S],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,S],[d,b]],[/(macintosh);/i],[f,[h,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,M],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[h,N],[d,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,N],[d,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[h,F],[d,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[h,F],[d,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,"OPPO"],[d,m]],[/\b(opd2\d{3}a?) bui/i],[f,[h,"OPPO"],[d,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,"Vivo"],[d,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[h,"Realme"],[d,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[h,C],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,C],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,"LG"],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,"LG"],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[h,"Lenovo"],[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[h,"Nokia"],[d,m]],[/(pixel c)\b/i],[f,[h,x],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,x],[d,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[h,L],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[h,L],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,O],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[h,O],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,A],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,T],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,T],[d,m]],[/(nexus 9)/i],[f,[h,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,"Meizu"],[d,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[h,"Ulefone"],[d,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[d,m]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,f,[d,b]],[/(surface duo)/i],[f,[h,P],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,"Fairphone"],[d,m]],[/(u304aa)/i],[f,[h,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[f,[h,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[f,[h,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[f,[h,"NuVision"],[d,b]],[/\b(k88) b/i],[f,[h,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[f,[h,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[f,[h,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[f,[h,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[f,[h,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],f,[d,b]],[/\b(ns-?\w{0,9}) b/i],[f,[h,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],f,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],f,[d,m]],[/\b(ph-1) /i],[f,[h,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[f,[h,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[f,[h,"Rotor"],[d,b]],[/(shield[\w ]+) b/i],[f,[h,"Nvidia"],[d,b]],[/(sprint) (\w+)/i],[h,f,[d,m]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[h,P],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,U],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,U],[d,m]],[/smart-tv.+(samsung)/i],[h,[d,E]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[h,j],[d,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[d,E]],[/(apple) ?tv/i],[h,[f,S+" TV"],[d,E]],[/crkey/i],[[f,R+"cast"],[h,x],[d,E]],[/droid.+aft(\w+)( bui|\))/i],[f,[h,O],[d,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,M],[d,E]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,L],[d,E]],[/(mitv-\w{5}) bui/i],[f,[h,F],[d,E]],[/Hbbtv.*(technisat) (.*);/i],[h,f,[d,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,K],[f,K],[d,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[d,v]],[/droid.+; (shield) bui/i],[f,[h,"Nvidia"],[d,v]],[/(playstation [345portablevi]+)/i],[f,[h,L],[d,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,P],[d,v]],[/((pebble))app/i],[h,f,[d,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[h,S],[d,w]],[/droid.+; (glass) \d/i],[f,[h,x],[d,w]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,U],[d,w]],[/(quest( \d| pro)?)/i],[f,[h,V],[d,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,_]],[/(aeobc)\b/i],[f,[h,O],[d,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,m]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,y],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[y,Q,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,Q,$],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,G],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,y],[/\(bb(10);/i],[y,[p,A]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[p,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[p,R+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,B],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,y],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,y]]},X=function(e,t){if(typeof e===u&&(t=e,e=o),!(this instanceof X))return new X(e,t).getResult();var r=typeof i!==s&&i.navigator?i.navigator:o,n=e||(r&&r.userAgent?r.userAgent:""),v=r&&r.userAgentData?r.userAgentData:o,E=t?q(J,t):J,w=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[p]=o,t[y]=o,Y.call(t,n,E.browser),t[l]=typeof(e=t[y])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,w&&r&&r.brave&&typeof r.brave.isBrave==a&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=o,Y.call(e,n,E.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[f]=o,e[d]=o,Y.call(e,n,E.device),w&&!e[d]&&v&&v.mobile&&(e[d]=m),w&&"Macintosh"==e[f]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[f]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[p]=o,e[y]=o,Y.call(e,n,E.engine),e},this.getOS=function(){var e={};return e[p]=o,e[y]=o,Y.call(e,n,E.os),w&&!e[p]&&v&&v.platform&&"Unknown"!=v.platform&&(e[p]=v.platform.replace(/chrome os/i,B).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>500?K(e,500):e,this},this.setUA(n),this};X.VERSION="1.0.38",X.BROWSER=z([p,y,l]),X.CPU=z([g]),X.DEVICE=z([f,h,d,v,m,E,b,w,_]),X.ENGINE=X.OS=z([p,y]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):r.amdO?o!==(n=(function(){return X}).call(t,r,t,e))&&(e.exports=n):typeof i!==s&&(i.UAParser=X);var Z=typeof i!==s&&(i.jQuery||i.Zepto);if(Z&&!Z.ua){var ee=new X;Z.ua=ee.getResult(),Z.ua.get=function(){return ee.getUA()},Z.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)Z.ua[r]=t[r]}}}("object"==typeof window?window:this)},63802:function(e){"use strict";e.exports=function(){}},85228:function(){},24654:function(){},79895:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}(r)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},78169:function(e,t,r){"use strict";r.d(t,{h:function(){return eA}});var n,i,o=r(67877),a=r(50899),s=r(39842),u=r(85888),c=r(52278),l=r(92441),f=r(37324),p=r(46607),d=r(12322),h=r(19865),y=r(67548),g=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,s.re)(c.Yk,{max:l.Q["cache.fragmentQueryDocuments"]||1e3,cache:d.k})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,a=e.from,s=e.optimistic,u=(0,o._T)(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(n,i),l=(0,o.pi)((0,o.pi)({},u),{returnPartialData:!0,id:void 0===a||"string"==typeof a?a:this.identify(a),query:c,optimistic:void 0===s||s});return new f.y(function(e){return r.watch((0,o.pi)((0,o.pi)({},l),{immediate:!0,callback:function(r){if(!(t&&(0,y.W)(c,{data:null==t?void 0:t.result},{data:r.result}))){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=(0,p.bw)(r.missing.map(function(e){return e.missing}))),t=r,e.next(n)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(g.prototype.getMemoryInternals=h.Kb);var v=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.ZT)(t,e),t}(Error),m=r(15212),b=r(77413),E=r(34141),w=r(67597),_=r(99503),O=r(63154),S=r(96022),T=r(19045),A=r(2411),I=r(18049),R=r(43104);function k(e){if(!1!==globalThis.__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,R.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!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(function(r){(0,R.s)(e[r])&&t.add(e[r])})})}return e}var x=r(8746),N=r(86595),P=Object.prototype.hasOwnProperty;function C(e){return null==e}function D(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=C(n)?C(i)?void 0:{_id:i}:{id:n}),C(n)&&!C(i)&&(n=i),!C(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var j={dataIdFromObject:D,addTypename:!0,resultCaching:!0,canonizeResults:!1};function M(e){var t=e.canonizeResults;return void 0===t?j.canonizeResults:t}var L=/^[_a-z][_0-9a-z]*/i;function F(e){var t=e.match(L);return t?t[0]:e}function U(e){return(0,R.s)(e)&&!(0,_.Yk)(e)&&!(0,N.k)(e)}function V(e,t){var r=(0,c.F)((0,A.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var B=Object.create(null),G=function(){return B},q=Object.create(null),z=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return k((0,_.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,_.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,_.kQ)(e);if((0,_.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,_.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),P.call(this.data,e)){var r=this.data[e];if(r&&P.call(r,t))return r[t]}return"__typename"===t&&P.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof K?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),P.call(this.data,e))?this.data[e]:this instanceof K?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,_.Yk)(e)&&(e=e.__ref),(0,_.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,a.kG)("string"==typeof r,1);var s=new p.w0(Q).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=F(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof K||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),s=!1,u=!0,c={DELETE:B,INVALIDATE:q,isReference:_.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,_.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var f=F(l),p=n[l];if(void 0!==p){var d="function"==typeof t?t:t[l]||t[f];if(d){var h=d===G?B:d(k(p),(0,o.pi)((0,o.pi)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(h===q)r.group.dirty(e,l);else if(h===B&&(h=void 0),h!==p&&(i[l]=h,s=!0,p=h,!1!==globalThis.__DEV__)){var y=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&a.kG.warn(2,e),!0};if((0,_.Yk)(h))y(h);else if(Array.isArray(h))for(var g=!1,v=void 0,m=0,b=h;m<b.length;m++){var E=b[m];if((0,_.Yk)(E)){if(g=!0,y(E))break}else"object"==typeof E&&E&&r.policies.identify(E)[0]&&(v=E);if(g&&void 0!==v){!1!==globalThis.__DEV__&&a.kG.warn(3,v);break}}}}void 0!==p&&(u=!1)}}),s)return this.merge(e,i),u&&(this instanceof K?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=G,n):G)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(P.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof K&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){P.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&P.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof K?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){P.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof K;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!P.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,_.Yk)(e)&&(t[e.__ref]=!0),(0,R.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,R.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),H=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new x.B(S.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=F(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function W(e,t){$(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new H(void 0===n||n))||this;return o.stump=new Y(o),o.storageTrie=new x.B(S.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=z||(z={})),n.Root=i;var K=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,u.D)(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return P.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(z),Y=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new H(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(K);function Q(e,t,r){var n=e[r],i=t[r];return(0,u.D)(n,i)?n:i}function $(e){return!!(e instanceof z&&e.group.caching)}var J=function(){function e(){this.known=new(S.sy?WeakSet:Set),this.pool=new x.B(S.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,R.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,R.s)(e)){var t=(0,R.s)(e)?(0,N.k)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,R.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function X(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Z=function(){function e(e){var t=this;this.knownResults=new(S.mr?WeakMap:Map),this.config=(0,T.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:M(e)}),this.canon=e.canon||new J,this.executeSelectionSet=(0,s.re)(function(e){var r,n=e.context.canonizeResults,i=X(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(W(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||l.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:X,makeCacheKey:function(e,t,r,n){if($(r.store))return r.store.makeCacheKey(e,(0,_.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return W(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||l.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if($(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new J},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;a=(0,o.pi)((0,o.pi)({},(0,A.O4)((0,A.iW)(n))),a);var f=(0,_.kQ)(void 0===i?"ROOT_QUERY":i),p=this.executeSelectionSet({selectionSet:(0,A.p$)(n).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,o.pi)({store:r,query:n,policies:l,variables:a,varString:(0,E.B)(a),canonizeResults:c},V(n,this.config.fragments))});if(p.missing&&(t=[new v(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(p.missing),p.missing,n,a)],!(void 0===s||s)))throw t[0];return{result:p.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if($(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,_.Yk)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,l=s.policies,f=s.store.getFieldValue(i,"__typename"),d=[],h=new p.w0;function y(e,r){var n;return e.missing&&(t=h.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof f&&!l.rootIdsByTypename[f]&&d.push({__typename:f});var g=new Set(n.selections);g.forEach(function(e){var n,p;if((0,I.LZ)(e,u)){if((0,_.My)(e)){var v=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),m=(0,_.u2)(e);void 0===v?b.Gw.added(e)||(t=h.merge(t,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat((0,_.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,N.k)(v)?v.length>0&&(v=y(r.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:s}),m)):e.selectionSet?null!=v&&(v=y(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:(0,_.Yk)(v)?v:o,context:s}),m)):s.canonizeResults&&(v=r.canon.pass(v)),void 0!==v&&d.push(((p={})[m]=v,p))}else{var E=(0,c.hi)(e,s.lookupFragment);if(!E&&e.kind===O.h.FRAGMENT_SPREAD)throw(0,a._K)(9,e.name.value);E&&l.fragmentMatches(E,f)&&E.selectionSet.selections.forEach(g.add,g)}}});var v={result:(0,p.bw)(d),missing:t},m=s.canonizeResults?this.canon.admit(v):k(v);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,u=new p.w0;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,N.k)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,_.Yk)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,R.s)(r)&&((0,a.kG)(!(0,_.Yk)(r),10,(0,_.Yk)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),ee=r(65325),et=r(71115),er=r(71838),en=Object.create(null);function ei(e){var t=JSON.stringify(e);return en[t]||(en[t]=Object.create(null))}function eo(e){var t=ei(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=es(e,function(e){var i=ec(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&P.call(t,e[0])&&(i=ec(t,e,eu)),(0,a.kG)(void 0!==i,4,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function ea(e){var t=ei(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(es(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,N.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,_.NC)(s,i);return u&&ec(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&P.call(i,c)){var l=e.slice(0);return l[0]=c,ec(i,l)}return}if(t)return ec(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function es(e,t){var r=new p.w0;return(function e(t){var r=ei(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,N.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,N.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function eu(e,t){return e[t]}function ec(e,t,r){return r=r||eu,function e(t){return(0,R.s)(t)?(0,N.k)(t)?t.map(e):es(Object.keys(t).sort(),function(e){return ec(t,e)}):t}(t.reduce(function e(t,n){return(0,N.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function el(e){return void 0!==e.args?e.args:e.field?(0,_.NC)(e.field,e.variables):null}var ef=function(){},ep=function(e,t){return t.fieldName},ed=function(e,t,r){return(0,r.mergeObjects)(e,t)},eh=function(e,t){return t},ey=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:D},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=ev(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,o.pi)((0,o.pi)({},e),s),u);if((0,N.k)(f))l=eo(f);else{n=f;break}}return n=n?String(n):void 0,u.keyObject?[n,u.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,u=(0,o._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),P.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ed:!1===t?eh:e.merge}a(n,t.merge),n.keyFn=!1===i?ef:(0,N.k)(i)?eo(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?ep:(0,N.k)(s)?ea(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||ep)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,a.kG)(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(L);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!P.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,p=0;p<u.length;++p){var d=u[p];if(d.has(o))return s.has(o)||(f&&!1!==globalThis.__DEV__&&a.kG.warn(6,t,o),s.add(o)),!0;d.forEach(c),l&&p===u.length-1&&function e(t,r,n){return!!(0,R.s)(r)&&((0,N.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,_.My)(t)&&(0,I.LZ)(t,n)){var i=(0,_.u2)(t);return P.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=el(e);o;){var u=o(s,a);if((0,N.k)(u))o=ea(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,_.vf)(e.field,e.variables):(0,_.PT)(n,el(e))),!1===t)?n:n===F(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=F(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=eg(this,r,e,t,t.store.getStorage((0,_.Yk)(r)?r.__ref:r,i));return er.ab.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===ed?em(n.store)(e,t):s===eh?t:(n.overwrite&&(e=void 0),s(e,t,eg(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function eg(e,t,r,n,i){var o=e.getStoreFieldName(r),a=F(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:el(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:_.Yk,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(ev(arguments,t,s),n)},mergeObjects:em(n.store)}}function ev(e,t,r){var n,i=e[0],s=e[1],u=e.length;return"string"==typeof i?n={fieldName:i,from:u>1?s:t}:(n=(0,o.pi)({},i),P.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&a.kG.warn(7,(0,et.v)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function em(e){return function(t,r){if((0,N.k)(t)||(0,N.k)(r))throw(0,a._K)(8);if((0,R.s)(t)&&(0,R.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,_.Yk)(t)&&U(r))return e.merge(t.__ref,r),t;if(U(t)&&(0,_.Yk)(r))return e.merge(t,r.__ref),r;if(U(t)&&U(r))return(0,o.pi)((0,o.pi)({},t),r)}return r}}function eb(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:r})),i}var eE=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,c=t.variables,l=t.overwrite,f=(0,A.$H)(n),d=new p.w0;c=(0,o.pi)((0,o.pi)({},(0,A.O4)(f)),c);var h=(0,o.pi)((0,o.pi)({store:e,written:Object.create(null),merge:function(e,t){return d.merge(e,t)},variables:c,varString:(0,E.B)(c)},V(n,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,_.Yk)(y))throw(0,a._K)(11,i);return h.incomingById.forEach(function(t,n){var i=t.storeObject,s=t.mergeTree,c=t.fieldNodeSet,l=(0,_.kQ)(n);if(s&&s.map.size){var f=r.applyMerges(s,l,i,h);if((0,_.Yk)(f))return;i=f}if(!1!==globalThis.__DEV__&&!h.overwrite){var p=Object.create(null);c.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var d=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==p[F(e)]||d(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=i(e);if(s){var c=i(t);if(!(!c||(0,_.Yk)(s)||(0,u.D)(s,c)||Object.keys(s).every(function(e){return void 0!==n.getFieldValue(c,e)}))){var l=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),f=F(r),p="".concat(l,".").concat(f);if(!eT.has(p)){eT.add(p);var d=[];(0,N.k)(s)||(0,N.k)(c)||[s,c].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),!1!==globalThis.__DEV__&&a.kG.warn(14,f,l,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",p,(0,o.pi)({},s),(0,o.pi)({},c))}}}}(l,i,e,h.store)})}e.merge(n,i)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,_.qw)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var p=function(){var e=ev(arguments,l,s.variables);if((0,_.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},d=new Set;this.flattenFields(i,n,s,f).forEach(function(e,r){var i,o=n[(0,_.u2)(r)];if(d.add(r),void 0!==o){var s=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),h=e_(u,s),y=t.processFieldValue(o,r,r.selectionSet?eb(e,!1,!1):e,h),g=void 0;r.selectionSet&&((0,_.Yk)(y)||U(y))&&(g=p("__typename",y));var v=c.getMergeFunction(f,r.name.value,g);v?h.info={field:r,typename:f,merge:v}:eS(u,s),l=e.merge(l,((i={})[s]=y,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||b.Gw.added(r)||c.getReadFunction(f,r.name.value)||!1===globalThis.__DEV__||a.kG.error(12,(0,_.u2)(r),n)});try{var h=c.identify(n,{typename:f,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:l,readField:p}),y=h[0],g=h[1];r=r||y,g&&(l=s.merge(l,g))}catch(e){if(!r)throw e}if("string"==typeof r){var v=(0,_.kQ)(r),m=s.written[r]||(s.written[r]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(n,v,i,s)))return v;var E=s.incomingById.get(r);return E?(E.storeObject=s.merge(E.storeObject,l),E.mergeTree=function e(t,r){if(t===r||!r||eO(r))return t;if(!t||eO(t))return r;var n=t.info&&r.info?(0,o.pi)((0,o.pi)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(E.mergeTree,u),d.forEach(function(e){return E.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:eO(u)?void 0:u,fieldNodeSet:d}),v}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,N.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,e_(n,o));return eS(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,ee.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,_.qw)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new x.B(!1);return function e(u,l){var f=s.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(s){if((0,I.LZ)(s,r.variables)){var u=l.clientOnly,f=l.deferred;if(!(u&&f)&&(0,N.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,_.NC)(e,r.variables);n&&!1===n.if||(f=!0)}}),(0,_.My)(s)){var p=i.get(s);p&&(u=u&&p.clientOnly,f=f&&p.deferred),i.set(s,eb(r,u,f))}else{var d=(0,c.hi)(s,r.lookupFragment);if(!d&&s.kind===O.h.FRAGMENT_SPREAD)throw(0,a._K)(13,s.name.value);d&&o.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,eb(r,u,f))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,_.Yk)(r)){var u,c,l=!(0,N.k)(r)&&((0,_.Yk)(t)||U(t))?t:void 0,f=r;l&&!i&&(i=[(0,_.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,N.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=p(l,t),o=p(f,t);if(void 0!==o){i&&i.push(t);var u=s.applyMerges(e,r,o,n,i);u!==o&&(c=c||new Map).set(t,u),i&&(0,a.kG)(i.pop()===t)}}),c&&(r=(0,N.k)(f)?f.slice(0):(0,o.pi)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(u=n.store).getStorage.apply(u,i)):r},e}(),ew=[];function e_(e,t){var r=e.map;return r.has(t)||r.set(t,ew.pop()||{map:new Map}),r.get(t)}function eO(e){return!e||!(e.info||e.map.size)}function eS(e,t){var r=e.map,n=r.get(t);n&&eO(n)&&(ew.push(n),r.delete(t))}var eT=new Set,eA=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new m.A(b.Gw),n.assumeImmutableResults=!0,n.makeVar=er.QS,n.txCount=0,n.config=(r=t,(0,T.o)(j,r)),n.addTypename=!!n.config.addTypename,n.policies=new ey({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new z.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new eE(this,this.storeReader=new Z({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:M(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,s.re)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||l.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if($(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,E.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof v)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(P.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,er._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,er.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){E.B.reset(),w.S.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,_.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(P.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),E.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,er.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,u.D)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(g);!1!==globalThis.__DEV__&&(eA.prototype.getMemoryInternals=h.q4)},71838:function(e,t,r){"use strict";r.d(t,{QS:function(){return c},_v:function(){return u},ab:function(){return i},li:function(){return s}});var n=r(39842),i=new n.g7,o=new WeakMap;function a(e){var 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(function(t){return t.forgetCache(e)})}function u(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var u=Array.from(r);r.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},12324:function(e,t,r){"use strict";r.d(t,{f:function(){return ef}});var n,i,o=r(67877),a=r(50899),s=r(56249),u=s.i.execute,c=r(12582),l=r(11033),f=r(85888),p=r(92170),d=r(18049),h=r(77413),y=r(34141),g=r(15212),v=r(37324);function m(e,t,r){return new v.y(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}var b=r(86595);function E(e){var t=w(e);return(0,b.O)(t)}function w(e){var t=(0,b.O)(e.errors)?e.errors.slice(0):[];return(0,p.GG)(e)&&(0,b.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var _=r(2411),O=r(99503),S=r(43104),T=r(653);function A(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}var I=r(96022);function R(e){function t(t){Object.defineProperty(e,t,{value:v.y})}return I.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function k(e){return e&&"function"==typeof e.then}var x=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),A(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),A(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?k(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),A(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new v.y(t)]),k(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,o.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(v.y);R(x);var N=r(73306);function P(e){return!!e&&e<7}(n=i||(i={}))[n.loading=1]="loading",n[n.setVariables=2]="setVariables",n[n.fetchMore=3]="fetchMore",n[n.refetch=4]="refetch",n[n.poll=6]="poll",n[n.ready=7]="ready",n[n.error=8]="error";var C=r(19045),D=r(65325),j=r(67548),M=Object.assign,L=Object.hasOwnProperty,F=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=V)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=n,a.queryManager=r,a.waitForOwnResult=G(i.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a);var s=r.defaultOptions.watchQuery,u=(void 0===s?{}:s).fetchPolicy,c=void 0===u?"cache-first":u,l=i.fetchPolicy,f=void 0===l?c:l,p=i.initialFetchPolicy,d=void 0===p?"standby"===f?c:f:p;a.options=(0,o.pi)((0,o.pi)({},i),{initialFetchPolicy:d,fetchPolicy:f}),a.queryId=n.queryId||r.generateQueryId();var h=(0,_.$H)(a.query);return a.queryName=h&&h.name&&h.name.value,a}return(0,o.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||i.ready,n=(0,o.pi)((0,o.pi)({},t),{loading:P(r),networkStatus:r}),a=this.options.fetchPolicy,s=void 0===a?"cache-first":a;if(G(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(n.data=u.result),(0,f.D)(n.data,{})&&(n.data=void 0),u.complete?(delete n.partial,u.complete&&n.networkStatus===i.loading&&("cache-first"===s||"cache-only"===s)&&(n.networkStatus=i.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||u.complete||this.options.partialRefetch||n.loading||n.data||n.error||B(u.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,j.W)(this.query,this.last.result,e,this.variables):!(0,f.D)(this.last.result,e))||t&&!(0,f.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,f.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if("cache-and-network"===n?r.fetchPolicy=n:"no-cache"===n?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&L.call(e,"variables")){var s=(0,_.iW)(this.query),u=s.variableDefinitions;u&&u.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||a.kG.warn(20,e,(null===(t=s.name)||void 0===t?void 0:t.value)||s)}return e&&!(0,f.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,o.pi)((0,o.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,i.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,o.pi)((0,o.pi)({},e.query?e:(0,o.pi)((0,o.pi)((0,o.pi)((0,o.pi)({},this.options),{query:this.options.query}),e),{variables:(0,o.pi)((0,o.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var s=this.queryInfo,u=s.networkStatus;s.networkStatus=i.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var c=new Set,l=null==e?void 0:e.updateQuery,f="no-cache"!==this.options.fetchPolicy;return f||(0,a.kG)(l,21),this.queryManager.fetchQuery(n,r,i.fetchMore).then(function(a){if(t.queryManager.removeQuery(n),s.networkStatus===i.fetchMore&&(s.networkStatus=u),f)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:a.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:a.data})},onWatchUpdated:function(e){c.add(e.query)}});else{var p=t.getLast("result"),d=l(p.data,{fetchMoreResult:a.data,variables:r.variables});t.reportResult((0,o.pi)((0,o.pi)({},p),{data:d}),t.variables)}return a}).finally(function(){f&&!c.has(t.query)&&U(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&a.kG.error(22,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,C.o)(this.options,e||{});M(this.options,t)},t.prototype.setVariables=function(e){return(0,f.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},i.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,a.kG)(r,23),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(P(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},i.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,f.D)(t,this.last.variables)&&(r=void 0),this.last=(0,o.pi)({result:this.queryManager.assumeImmutableResults?e:(0,D.X)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===i.refetch||t===i.fetchMore||t===i.poll,a=this.options.variables,s=this.options.fetchPolicy,u=(0,C.o)(this.options,e||{}),c=n?u:M(this.options,u),l=this.transformDocument(c.query);this.lastQuery=l,!n&&(this.updatePolling(),e&&e.variables&&!(0,f.D)(e.variables,a)&&"standby"!==c.fetchPolicy&&(c.fetchPolicy===s||"function"==typeof c.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",c),void 0===t&&(t=i.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=G(c.fetchPolicy));var p=function(){r.concast===y&&(r.waitForOwnResult=!1)},d=c.variables&&(0,o.pi)({},c.variables),h=this.fetch(c,t,l),y=h.concast,g=h.fromLink,v={next:function(e){(0,f.D)(r.variables,d)&&(p(),r.reportResult(e,d))},error:function(e){(0,f.D)(r.variables,d)&&((0,N.MS)(e)||(e=new N.cA({networkError:e})),p(),r.reportError(e,d))}};return n||!g&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=v),y.addObserver(v),y},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&A(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=(0,o.pi)((0,o.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:i.error,loading:!1});this.updateLastResult(r,t),A(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(v.y);function U(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function V(e){!1!==globalThis.__DEV__&&a.kG.error(24,e.message,e.stack)}function B(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&a.kG.debug(25,e)}function G(e){return"network-only"===e||"no-cache"===e||"standby"===e}R(F);var q=r(46607),z=new(I.mr?WeakMap:Map);function H(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return z.set(e,(z.get(e)+1)%1e15),r.apply(this,arguments)})}function W(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var K=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;z.has(r)||(z.set(r,0),H(r,"evict"),H(r,"modify"),H(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||i.loading;return this.variables&&this.networkStatus!==i.loading&&!(0,f.D)(this.variables,e.variables)&&(t=i.setVariables),(0,f.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){W(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,f.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,f.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():U(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;W(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(P(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,o.pi)((0,o.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,f.D)(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===z.get(this.cache)&&(0,f.D)(t,r.variables)&&(0,f.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new q.w0,a=(0,b.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,b.O)(e.incremental)){var s=(0,p.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Y(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:z.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&(0,f.D)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=i.ready},e.prototype.markError=function(e){return this.networkStatus=i.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Y(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!E(e);return!n&&r&&e.data&&(n=!0),n}var Q=r(67597),$=r(8746),J=r(76341),X=r(92441),Z=Object.prototype.hasOwnProperty,ee=Object.create(null),et=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new J.s(X.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new $.B(!1);var r=new g.A(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,a._K)(26))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,o.mG)(this,arguments,void 0,function(e){var t,r,n,i,s,u,c,l=e.mutation,f=e.variables,p=e.optimisticResponse,d=e.updateQueries,h=e.refetchQueries,y=void 0===h?[]:h,g=e.awaitRefetchQueries,v=void 0!==g&&g,b=e.update,_=e.onQueryUpdated,O=e.fetchPolicy,S=void 0===O?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.fetchPolicy)||"network-only":O,T=e.errorPolicy,A=void 0===T?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":T,I=e.keepRootFields,R=e.context;return(0,o.Jh)(this,function(e){switch(e.label){case 0:if((0,a.kG)(l,27),(0,a.kG)("network-only"===S||"no-cache"===S,28),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!r)return[3,2];return[4,this.localState.addExportedVariables(l,f,R)];case 1:f=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),i=p&&this.markMutationOptimistic(p,{mutationId:t,document:l,variables:f,fetchPolicy:S,errorPolicy:A,context:R,updateQueries:d,update:b,keepRootFields:I}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return m(s.getObservableFromLink(l,(0,o.pi)((0,o.pi)({},R),{optimisticResponse:i?p:void 0}),f,{},!1),function(e){if(E(e)&&"none"===A)throw new N.cA({graphQLErrors:w(e)});n&&(n.loading=!1,n.error=null);var r=(0,o.pi)({},e);return"function"==typeof y&&(y=y(r)),"ignore"===A&&E(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:S,errorPolicy:A,context:R,update:b,updateQueries:d,awaitRefetchQueries:v,refetchQueries:y,removeOptimistic:i?t:void 0,onQueryUpdated:_,keepRootFields:I})}).subscribe({next:function(t){s.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof N.cA?e:new N.cA({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&Y(n,e.errorPolicy)){if((0,p.GG)(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,p.GG)(n)&&(0,b.O)(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=(0,p.mT)(s.result,n)),void 0!==u&&(n.data=u,i.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&Z.call(c,s)){var u=c[s],l=r.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var y=u(h,{mutationResult:n,queryName:f&&(0,_.rY)(f)||void 0,queryVariables:p});y&&i.push({result:y,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,p.M0)(n)||(0,p.GG)(n)&&!n.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=(0,o.pi)((0,o.pi)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&s(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:ee}):e;return n!==ee&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,o.pi)((0,o.pi)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&a.kG.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,d.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,d.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,h.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,_.O4)((0,_.$H)(e)),asQuery:(0,o.pi)((0,o.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,o.pi)((0,o.pi)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,o.pi)((0,o.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,o.pi)((0,o.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new K(this),n=new F({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,a.kG)(e.query,29),(0,a.kG)("Document"===e.query.kind,30),(0,a.kG)(!e.returnPartialData,31),(0,a.kG)(!e.pollInterval,32),this.fetchQuery(t,(0,o.pi)((0,o.pi)({},e),{query:this.transform(e.query)})).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,a._K)(33)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=i.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?n.set(e,!1):(0,O.JW)(e)?n.set(t.transform(e),!1):(0,S.s)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e){r.set(i,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&n.has(s)||a&&n.has(a))&&(r.set(i,o),s&&n.set(s,!0),a&&n.set(a,!0))}}),i.size&&i.forEach(function(e){var n=(0,T.X)("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),s=new F({queryManager:t,queryInfo:i,options:(0,o.pi)((0,o.pi)({},e),{fetchPolicy:"network-only"})});(0,a.kG)(s.queryId===n),i.setObservableQuery(s),r.set(n,s)}),!1!==globalThis.__DEV__&&n.size&&n.forEach(function(e,t){e||!1===globalThis.__DEV__||a.kG.warn("string"==typeof t?34:35,t)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),a=this.getVariables(r,a);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(i){"no-cache"!==n&&(Y(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=E(i),s=(0,N.ls)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[N.YG]),"none"===o||s)throw new N.cA(u)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,a,u).then(f);return new v.y(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var a,s,c=this;void 0===i&&(i=null!==(a=null==t?void 0:t.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var l=this.getDocumentInfo(e),f=l.serverQuery,p=l.clientQuery;if(f){var d=this.inFlightLinkObservables,h=this.link,g={query:f,variables:r,operationName:(0,_.rY)(f)||void 0,context:this.prepareContext((0,o.pi)((0,o.pi)({},t),{forceFetch:!i})),extensions:n};if(t=g.context,i){var b=(0,Q.S)(f),E=(0,y.B)(r),w=d.lookup(b,E);if(!(s=w.observable)){var O=new x([u(h,g)]);s=w.observable=O,O.beforeNext(function(){d.remove(b,E)})}}else s=new x([u(h,g)])}else s=new x([v.y.of({data:{}})]),t=this.prepareContext(t);return p&&(s=m(s,function(e){return c.localState.runResolvers({document:p,remoteResult:e,context:t,variables:r})})),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return m(this.getObservableFromLink(o,r.context,r.variables),function(a){var s=w(a),u=s.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(u&&"none"===c)throw e.markError(new N.cA({graphQLErrors:s}));e.markResult(a,o,r,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:i.ready};return u&&"none"===c&&(l.data=void 0),u&&"ignore"!==c&&(l.errors=s,l.networkStatus=i.error),l},function(t){var r=(0,N.MS)(t)?t:new N.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var o,a,s=this;void 0===r&&(r=i.loading),void 0===n&&(n=t.query);var u=this.getVariables(n,t.variables),c=this.getQuery(e),l=this.defaultOptions.watchQuery,f=t.fetchPolicy,p=void 0===f?l&&l.fetchPolicy||"cache-first":f,d=t.errorPolicy,h=void 0===d?l&&l.errorPolicy||"none":d,y=t.returnPartialData,g=t.notifyOnNetworkStatusChange,v=t.context,m=Object.assign({},t,{query:n,variables:u,fetchPolicy:p,errorPolicy:h,returnPartialData:void 0!==y&&y,notifyOnNetworkStatusChange:void 0!==g&&g,context:void 0===v?{}:v}),b=function(e){m.variables=e;var n=s.fetchQueryByPolicy(c,m,r);return"standby"!==m.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},E=function(){return s.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){E(),setTimeout(function(){return o.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)o=new x(this.localState.addExportedVariables(m.query,m.variables,m.context).then(b).then(function(e){return e.sources})),a=!0;else{var w=b(m.variables);a=w.fromLink,o=new x(w.sources)}return o.promise.then(E,E),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,T.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof K&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,a=t.query,s=t.variables,u=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,p=t.returnPartialData,d=t.context,h=t.notifyOnNetworkStatusChange,y=e.networkStatus;e.init({document:a,variables:s,networkStatus:r});var g=function(){return e.getDiff()},m=function(t,r){void 0===r&&(r=e.networkStatus||i.loading);var u=t.result;!1===globalThis.__DEV__||p||(0,f.D)(u,{})||B(t.missing);var c=function(e){return v.y.of((0,o.pi)({data:e,loading:P(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&n.getDocumentInfo(a).hasForcedResolvers?n.localState.runResolvers({document:a,remoteResult:{data:u},context:d,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return c(e.data||void 0)}):"none"===l&&r===i.refetch&&Array.isArray(t.missing)?c(void 0):c(u)},b="no-cache"===u?0:r===i.refetch&&"merge"!==c?1:2,E=function(){return n.getResultsFromLink(e,b,{query:a,variables:s,context:d,fetchPolicy:u,errorPolicy:l})},w=h&&"number"==typeof y&&y!==r&&P(r);switch(u){default:case"cache-first":var _=g();if(_.complete)return{fromLink:!1,sources:[m(_,e.markReady())]};if(p||w)return{fromLink:!0,sources:[m(_),E()]};return{fromLink:!0,sources:[E()]};case"cache-and-network":var _=g();if(_.complete||p||w)return{fromLink:!0,sources:[m(_),E()]};return{fromLink:!0,sources:[E()]};case"cache-only":return{fromLink:!1,sources:[m(g(),e.markReady())]};case"network-only":if(w)return{fromLink:!0,sources:[m(g()),E()]};return{fromLink:!0,sources:[E()]};case"no-cache":if(w)return{fromLink:!0,sources:[m(e.getDiff()),E()]};return{fromLink:!0,sources:[E()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new K(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,o.pi)((0,o.pi)((0,o.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),er=r(27069),en=r(63154);function ei(e){return e.kind===en.h.FIELD||e.kind===en.h.FRAGMENT_SPREAD||e.kind===en.h.INLINE_FRAGMENT}var eo=r(52278),ea=r(71838),es=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,q.Ee)(t.resolvers,e)}):this.resolvers=(0,q.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,o.mG)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,o.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then(function(e){return(0,o.pi)((0,o.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,d.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,o.pi)((0,o.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,o.mG)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,o.Jh)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,o.pi)((0,o.pi)({},t),e.exportedVariables)})]:[2,(0,o.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,er.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return er.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,o.mG)(this,arguments,void 0,function(e,t,r,n,i,a){var s,u,c,l,f,p,d,h,y,g;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,o.Jh)(this,function(v){return s=(0,_.p$)(e),u=(0,_.kU)(e),c=(0,eo.F)(u),l=this.collectSelectionsToResolve(s,c),p=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=this,h=d.cache,y=d.client,g={fragmentMap:c,context:(0,o.pi)((0,o.pi)({},r),{cache:h,client:y}),variables:n,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,o.mG)(this,void 0,void 0,function(){var i,s,u,c,l,f=this;return(0,o.Jh)(this,function(p){return i=n.fragmentMap,s=n.context,u=n.variables,c=[r],l=function(e){return(0,o.mG)(f,void 0,void 0,function(){var l,f;return(0,o.Jh)(this,function(o){return(t||n.selectionsToResolve.has(e))&&(0,d.LZ)(e,u)?(0,O.My)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&c.push(((r={})[(0,O.u2)(e)]=t,r))})]:((0,O.Ao)(e)?l=e:(l=i[e.name.value],(0,a.kG)(l,18,e.name.value)),l&&l.typeCondition&&(f=l.typeCondition.name.value,n.fragmentMatcher(r,f,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,n).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,q.bw)(c)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,o.mG)(this,void 0,void 0,function(){var i,a,s,u,c,l,f,p,d,h=this;return(0,o.Jh)(this,function(o){return r?(i=n.variables,u=(a=e.name.value)!==(s=(0,O.u2)(e)),l=Promise.resolve(c=r[s]||r[a]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||n.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(d=p[u?a:s])&&(l=Promise.resolve(ea.ab.withValue(this.cache,d,[r,(0,O.NC)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),(0,er.Vn)(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&ei(e)&&o.add(e)})},FragmentSpread:function(n,i,s,u,c){var l=t[n.name.value];(0,a.kG)(l,19,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&ei(e)&&o.add(e)}),o.add(n),f.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}();function eu(e,t){return(0,C.o)(e,t,t.variables&&{variables:(0,C.o)((0,o.pi)((0,o.pi)({},e&&e.variables),t.variables))})}var ec=r(19865),el=!1,ef=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,a._K)(15);var r=e.uri,n=e.credentials,i=e.headers,u=e.cache,f=e.documentTransform,p=e.ssrMode,d=void 0!==p&&p,h=e.ssrForceFetchDelay,y=void 0===h?0:h,g=e.connectToDevTools,v=e.queryDeduplication,m=void 0===v||v,b=e.defaultOptions,E=e.defaultContext,w=e.assumeImmutableResults,_=void 0===w?u.assumeImmutableResults:w,O=e.resolvers,S=e.typeDefs,T=e.fragmentMatcher,A=e.name,I=e.version,R=e.devtools,k=e.link;k||(k=r?new l.u({uri:r,credentials:n,headers:i}):s.i.empty()),this.link=k,this.cache=u,this.disableNetworkFetches=d||y>0,this.queryDeduplication=m,this.defaultOptions=b||Object.create(null),this.typeDefs=S,this.devtoolsConfig=(0,o.pi)((0,o.pi)({},R),{enabled:(null==R?void 0:R.enabled)||g}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),y&&setTimeout(function(){return t.disableNetworkFetches=!1},y),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.bind(this),this.version=c.i,this.localState=new es({cache:u,client:this,resolvers:O,fragmentMatcher:T}),this.queryManager=new et({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:f,queryDeduplication:m,ssrMode:d,clientAwareness:{name:A,version:I},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!el&&!1!==globalThis.__DEV__&&(el=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&a.kG.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=eu(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,o.pi)((0,o.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=eu(this.defaultOptions.query,e)),(0,a.kG)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,o.pi)((0,o.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=eu(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return u(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&a.kG.debug(17,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(ef.prototype.getMemoryInternals=ec.su)},67548:function(e,t,r){"use strict";r.d(t,{W:function(){return c}});var n=r(67877),i=r(85888),o=r(2411),a=r(52278),s=r(18049),u=r(99503);function c(e,t,r,c){var f=t.data,p=(0,n._T)(t,["data"]),d=r.data,h=(0,n._T)(r,["data"]);return(0,i.Z)(p,h)&&function e(t,r,n,o){if(r===n)return!0;var c=new Set;return t.selections.every(function(t){if(c.has(t)||(c.add(t),!(0,s.LZ)(t,o.variables)||l(t)))return!0;if((0,u.My)(t)){var f=(0,u.u2)(t),p=r&&r[f],d=n&&n[f],h=t.selectionSet;if(!h)return(0,i.Z)(p,d);var y=Array.isArray(p),g=Array.isArray(d);if(y!==g)return!1;if(y&&g){var v=p.length;if(d.length!==v)return!1;for(var m=0;m<v;++m)if(!e(h,p[m],d[m],o))return!1;return!0}return e(h,p,d,o)}var b=(0,a.hi)(t,o.fragmentMap);if(b)return!!l(b)||e(b.selectionSet,r,n,o)})}((0,o.p$)(e).selectionSet,f,d,{fragmentMap:(0,a.F)((0,o.kU)(e)),variables:c})}function l(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},73306:function(e,t,r){"use strict";r.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return c},ls:function(){return a}});var n=r(67877);r(50899);var i=r(43104),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,n.ev)((0,n.ev)((0,n.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(r){var i=r.graphQLErrors,o=r.protocolErrors,a=r.clientErrors,s=r.networkError,c=r.errorMessage,l=r.extraInfo,f=e.call(this,c)||this;return f.name="ApolloError",f.graphQLErrors=i||[],f.protocolErrors=o||[],f.clientErrors=a||[],f.networkError=s||null,f.message=c||u(f),f.extraInfo=l,f.cause=(0,n.ev)((0,n.ev)((0,n.ev)([s],i||[],!0),o||[],!0),a||[],!0).find(function(e){return!!e})||null,f.__proto__=t.prototype,f}return(0,n.ZT)(t,e),t}(Error)},21351:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(67877),i=r(56249),o=r(37324);function a(e){return new i.i(function(t,r){var i=(0,n._T)(t,[]);return new o.y(function(n){var o,a=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){a=!0,o&&o.unsubscribe()}})})}},56249:function(e,t,r){"use strict";r.d(t,{i:function(){return l}});var n=r(50899),i=r(37324),o=r(67877),a=r(2411);function s(e,t){return t?t(e):i.y.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var o=u(r),a=u(n||new e(s));return Object.assign(new e(c(o)&&c(a)?function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()}:function(e,r){return t(e)?o.request(e,r)||i.y.of():a.request(e,r)||i.y.of()}),{left:o,right:a})},e.execute=function(e,t){var r,s,u,c;return e.request((u=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(0>t.indexOf(o))throw(0,n._K)(44,o)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),c=(0,o.pi)({},u),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,o.pi)((0,o.pi)({},c),e(c)):(0,o.pi)((0,o.pi)({},c),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},c)}}),s))||i.y.of()},e.concat=function(t,r){var o=u(t);if(c(o))return!1!==globalThis.__DEV__&&n.kG.warn(36,o),o;var a=u(r);return Object.assign(new e(c(a)?function(e){return o.request(e,function(e){return a.request(e)||i.y.of()})||i.y.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.y.of()})||i.y.of()}),{left:o,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n._K)(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},5082:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});var n=r(56249).i.from},31455:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});var n=r(56249).i.split},69709:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(67877),i=r(37324),o=r(56249);function a(e){return new o.i(function(t,r){return new i.y(function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){if(i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}!function(e){function t(t){var r=e.call(this)||this;return r.link=a(t),r}(0,n.ZT)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(o.i)},11033:function(e,t,r){"use strict";r.d(t,{u:function(){return A}});var n=r(67877),i=r(56249),o=r(50899),a=r(18049),s=r(37324),u=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,o._K)(40,t,e.message);throw n.parseError=e,n}return r},c=r(96022);function l(e){var t={next:function(){return e.read()}};return c.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var f=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},p=r(73306),d=r(92170),h=Object.prototype.hasOwnProperty;function y(e,t){e.status>=300&&f(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var g=function(e){if(!e&&"undefined"==typeof fetch)throw(0,o._K)(38)},v=r(67597),m={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},b=function(e,t){return t(e)};function E(e){return new s.y(function(t){t.error(e)})}var w=r(27069),_=r(77413),O=r(2411),S=(0,o.wY)(function(){return fetch}),T=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,T=e.fetch,A=e.print,I=void 0===A?b:A,R=e.includeExtensions,k=e.preserveHeaderCase,x=e.useGETForQueries,N=e.includeUnusedVariables,P=void 0!==N&&N,C=(0,n._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&g(T||S);var D={http:{includeExtensions:R,preserveHeaderCase:k},options:C.fetchOptions,credentials:C.credentials,headers:C.headers};return new i.i(function(e){var t,i,g,b,A,R,k,N,C=(t=e,i=r,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),j=e.getContext(),M={};if(j.clientAwareness){var L=j.clientAwareness,F=L.name,U=L.version;F&&(M["apollographql-client-name"]=F),U&&(M["apollographql-client-version"]=U)}var V=(0,n.pi)((0,n.pi)({},M),j.headers),B={http:j.http,options:j.fetchOptions,credentials:j.credentials,headers:V};if((0,a.FS)(["client"],e.query)){var G=(0,_.ob)(e.query);if(!G)return E(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=G}var q=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.pi)((0,n.pi)((0,n.pi)({},o),e.options),{headers:(0,n.pi)((0,n.pi)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.pi)((0,n.pi)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,v.S)),{options:o,body:f}}(e,I,m,D,B),z=q.options,H=q.body;H.variables&&!P&&(H.variables=(g=H.variables,b=e.query,A=(0,n.pi)({},g),R=new Set(Object.keys(g)),(0,w.Vn)(b,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&R.delete(e.name.value)}}),R.forEach(function(e){delete A[e]}),A)),z.signal||"undefined"==typeof AbortController||(N=new AbortController,z.signal=N.signal);var W="OperationDefinition"===(k=(0,O.p$)(e.query)).kind&&"subscription"===k.operation,K=(0,a.FS)(["defer"],e.query);if(x&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(z.method="GET"),K||W){z.headers=z.headers||{};var Y="multipart/mixed;";W&&K&&!1!==globalThis.__DEV__&&o.kG.warn(39),W?Y+="boundary=graphql;subscriptionSpec=1.0,application/json":K&&(Y+="deferSpec=20220824,application/json"),z.headers.accept=Y}if("GET"===z.method){var Q=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=u(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+a}}(C,H),$=Q.newURI,J=Q.parseError;if(J)return E(J);C=$}else try{z.body=u(H,"Payload")}catch(e){return E(e)}return new s.y(function(t){var r=T||(0,o.wY)(function(){return fetch})||S,i=t.next.bind(t);return r(C,z).then(function(t){e.setContext({response:t});var r,o=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return(0,n.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,f,h,g,v,m,b,E,w,_,O,S,T,A,I,R,k,x;return(0,n.Jh)(this,function(N){switch(N.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null===(x=e.headers)||void 0===x?void 0:x.get("content-type"),o="boundary=",a=(null==i?void 0:i.includes(o))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),u="",f=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,c.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return l(s.getReader());if(s.stream)return l(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},c.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var l={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return c.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),h=!0,N.label=1;case 1:if(!h)return[3,3];return[4,f.next()];case 2:for(v=(g=N.sent()).value,m=g.done,b="string"==typeof v?v:r.decode(v),E=u.length-s.length+1,h=!m,u+=b,w=u.indexOf(s,E);w>-1;){if(_=void 0,_=(R=[u.slice(0,w),u.slice(w+s.length)])[0],u=R[1],O=_.indexOf("\r\n\r\n"),(S=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(_.slice(0,O))["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(T=_.slice(O)){if(Object.keys(A=y(e,T)).length>1||"data"in A||"incremental"in A||"errors"in A||"payload"in A){if((0,d.yU)(A)){if(I={},"payload"in A){if(1===Object.keys(A).length&&null===A.payload)return[2];I=(0,n.pi)({},A.payload)}"errors"in A&&(I=(0,n.pi)((0,n.pi)({},I),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in I?I.extensions:null),((k={})[p.YG]=A.errors,k))})),t(I)}else t(A)}else if(1===Object.keys(A).length&&"hasNext"in A&&!A.hasNext)return[2]}w=u.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,i):t.text().then(function(e){return y(t,e)}).then(function(r){return Array.isArray(r)||h.call(r,"data")||h.call(r,"errors")||f(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r}).then(i)}).then(function(){N=void 0,t.complete()}).catch(function(e){N=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){N&&N.abort()}})})},A=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,T(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},38721:function(e,t,r){"use strict";r.d(t,{N:function(){return d}});var n=r(67877),i=r(50899),o=r(67597),a=r(56249),s=r(86595),u=r(19045),c=r(37324),l=r(76341),f=r(92441),p={disable:function(e){return e.meta.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1},d=function(e){function t(){r=void 0}(0,i.kG)(e&&("function"==typeof e.sha256||"function"==typeof e.generateHash),41);var r,d=(0,u.o)(p,e),h=d.sha256,y=d.generateHash,g=void 0===y?function(e){return Promise.resolve(h((0,o.S)(e)))}:y,v=d.disable,m=d.retry,b=d.useGETForHashedQueries,E=!0,w=function(e){return new Promise(function(t){return t(g(e))})};return Object.assign(new a.i(function(e,o){(0,i.kG)(o,42);var a=e.query;return new c.y(function(i){var u,c,p=!1,d=!1,h=function(r,n){var i=r.response,a=r.networkError;if(!p&&(i&&i.errors||a)){p=!0;var l,f,h=[],g=i&&i.errors;(0,s.O)(g)&&h.push.apply(h,g);var b=void 0;"string"!=typeof(null==a?void 0:a.result)&&(b=a&&a.result&&a.result.errors),(0,s.O)(b)&&h.push.apply(h,b);var w={response:i,networkError:a,operation:e,graphQLErrors:(0,s.O)(h)?h:void 0,meta:(l=Object.create(null),f=Object.create(null),(0,s.O)(h)&&h.forEach(function(e){var t;l[e.message]=e,"string"==typeof(null===(t=e.extensions)||void 0===t?void 0:t.code)&&(f[e.extensions.code]=e)}),{persistedQueryNotSupported:!!(l.PersistedQueryNotSupported||f.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!!(l.PersistedQueryNotFound||f.PERSISTED_QUERY_NOT_FOUND)})};if((E=!v(w))||t(),m(w)){u&&u.unsubscribe(),e.setContext({http:{includeQuery:!0,includeExtensions:E},fetchOptions:{method:"POST"}}),d&&e.setContext({fetchOptions:c}),u=o(e).subscribe(y);return}}n()},y={next:function(e){h({response:e},function(){return i.next(e)})},error:function(e){h({networkError:e},function(){return i.error(e)})},complete:i.complete.bind(i)};return e.setContext({http:{includeQuery:!E,includeExtensions:E}}),b&&E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(e.setContext(function(e){var t=e.fetchOptions,r=void 0===t?{}:t;return c=r,{fetchOptions:(0,n.pi)((0,n.pi)({},r),{method:"GET"})}}),d=!0),E?(function(e){if(!e||"object"!=typeof e)return w(e);r||(r=new l.s(f.Q["PersistedQueryLink.persistedQueryHashes"]||2e3));var t=r.get(e);return t||r.set(e,t=w(e)),t})(a).then(function(t){e.extensions.persistedQuery={version:1,sha256Hash:t},u=o(e).subscribe(y)}).catch(i.error.bind(i)):u=o(e).subscribe(y),function(){u&&u.unsubscribe()}})}),{resetHashCache:t},!1!==globalThis.__DEV__?{getMemoryInternals:function(){var e;return{PersistedQueryLink:{persistedQueryHashes:null!==(e=null==r?void 0:r.size)&&void 0!==e?e:0}}}}:{})}},46956:function(e,t,r){"use strict";r.d(t,{c:function(){return f}});var n=r(39842),i=r(27069),o=r(63154),a=r(56249),s=r(43104);function u(e){return function e(t,r,n){if(void 0===n&&(n=new Map),n.has(t))return n.get(t);var i=!1;if(Array.isArray(t)){var o=[];if(n.set(t,o),t.forEach(function(t,a){var s=e(t,r,n);i||(i=s!==t),o[a]=s}),i)return o}else if((0,s.P)(t)){var a=Object.create(Object.getPrototypeOf(t));if(n.set(t,a),Object.keys(t).forEach(function(o){if(o===r){i=!0;return}var s=e(t[o],r,n);i||(i=s!==t[o]),a[o]=s}),i)return a}return t}(e,"__typename")}var c=r(92441),l=r(12322);function f(e){return void 0===e&&(e=Object.create(null)),Object.assign(new a.i(function(t,r){var n,i=e.except,o=t.query,a=t.variables;return a&&(t.variables=i?(n=p(o),Object.fromEntries(Object.entries(a).map(function(e){var t=e[0],r=e[1],o=i[n[t]];return e[1]=o?function e(t,r){if("__KEEP"===r)return t;if(Array.isArray(t))return t.map(function(t){return e(t,r)});if((0,s.P)(t)){var n={};return Object.keys(t).forEach(function(i){var o=t[i];if("__typename"!==i){var a=r[i];n[i]=a?e(o,a):u(o)}}),n}return t}(r,o):u(r),e}))):u(a)),r(t)}),!1!==globalThis.__DEV__?{getMemoryInternals:function(){var e;return{removeTypenameFromVariables:{getVariableDefinitions:null!==(e=null==p?void 0:p.size)&&void 0!==e?e:0}}}}:{})}var p=(0,n.re)(function(e){var t={};return(0,i.Vn)(e,{VariableDefinition:function(e){t[e.variable.name.value]=function e(t){switch(t.kind){case o.h.NON_NULL_TYPE:case o.h.LIST_TYPE:return e(t.type);case o.h.NAMED_TYPE:return t.name.value}}(e.type)}}),t},{max:c.Q["removeTypenameFromVariables.getVariableDefinitions"]||2e3,cache:l.k})},22762:function(e,t,r){"use strict";r.d(t,{e:function(){return u}});var n=r(67877),i=r(50899),o=r(4261),a=r.t(o,2),s=r(96022).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",u=function(e){var t,r=e.client,u=e.children,c=((0,i.kG)("createContext"in a,46),(t=o.createContext[s])||(Object.defineProperty(o.createContext,s,{value:t=o.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t),l=o.useContext(c),f=o.useMemo(function(){return(0,n.pi)((0,n.pi)({},l),{client:r||l.client})},[l,r]);return(0,i.kG)(f.client,47),o.createElement(c.Provider,{value:f},u)}},76341:function(e,t,r){"use strict";r.d(t,{L:function(){return u},s:function(){return s}});var n=r(12322),i=r(38314),o=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(o.has(e)||(o.add(e),setTimeout(function(){e.clean(),o.delete(e)},100)))}var s=function(e,t){var r=new n.k(e,t);return r.set=function(e,t){var r=n.k.prototype.set.call(this,e,t);return a(this),r},r},u=function(e,t){var r=new i.e(e,t);return r.set=function(e,t){var r=i.e.prototype.set.call(this,e,t);return a(this),r},r}},19865:function(e,t,r){"use strict";r.d(t,{Kb:function(){return c},q4:function(){return u},su:function(){return s},zP:function(){return a}});var n=r(67877),i=r(92441),o={};function a(e,t){o[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,r,a,s;if(!(!1!==globalThis.__DEV__))throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,i.Q[t]||r]})),sizes:(0,n.pi)({print:null===(e=o.print)||void 0===e?void 0:e.call(o),parser:null===(t=o.parser)||void 0===t?void 0:t.call(o),canonicalStringify:null===(r=o.canonicalStringify)||void 0===r?void 0:r.call(o),links:function e(t){var r;return t?(0,n.ev)((0,n.ev)([null===(r=null==t?void 0:t.getMemoryInternals)||void 0===r?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(p):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:d(this.queryManager.documentTransform)}},null===(s=(a=this.cache).getMemoryInternals)||void 0===s?void 0:s.call(a))}}:void 0,u=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,n.pi)((0,n.pi)({},l.apply(this)),{addTypenameDocumentTransform:d(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:f(this.storeReader.executeSelectionSet),executeSubSelectedArray:f(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:f(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:f(null==e?void 0:e.findFragmentSpreads),lookup:f(null==e?void 0:e.lookup),transform:f(null==e?void 0:e.transform)}})}:void 0,c=!1!==globalThis.__DEV__?l:void 0;function l(){return{cache:{fragmentQueryDocuments:f(this.getFragmentDoc)}}}function f(e){return e&&"dirtyKey"in e?e.size:void 0}function p(e){return null!=e}function d(e){return(function e(t){return t?(0,n.ev)((0,n.ev)([f(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(p):[]})(e).map(function(e){return{cache:e}})}},92441:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(67877),i=r(50899),o=Symbol.for("apollo.cacheSize"),a=(0,n.pi)({},i.CO[o])},86595:function(e,t,r){"use strict";r.d(t,{O:function(){return i},k:function(){return n}});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},96022:function(e,t,r){"use strict";r.d(t,{DN:function(){return u},aS:function(){return s},mr:function(){return o},sy:function(){return a}});var n=r(50899),i="ReactNative"==(0,n.wY)(function(){return navigator.product}),o="function"==typeof WeakMap&&!(i&&!global.HermesInternal),a="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,u=s&&Symbol.asyncIterator;(0,n.wY)(function(){return window.document.createElement}),(0,n.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},34141:function(e,t,r){"use strict";r.d(t,{B:function(){return s}});var n,i=r(76341),o=r(92441),a=r(19865),s=Object.assign(function(e){return JSON.stringify(e,u)},{reset:function(){n=new i.L(o.Q.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var i=Object.keys(t);if(i.every(c))return t;var o=JSON.stringify(i),a=n.get(o);if(!a){i.sort();var s=JSON.stringify(i);a=n.get(s)||i,n.set(o,a),n.set(s,a)}var u=Object.create(r);return a.forEach(function(e){u[e]=t[e]}),u}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}!1!==globalThis.__DEV__&&(0,a.zP)("canonicalStringify",function(){return n.size}),s.reset()},65325:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},19045:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:function(){return n}})},92170:function(e,t,r){"use strict";r.d(t,{GG:function(){return a},M0:function(){return s},mT:function(){return c},yU:function(){return u}});var n=r(43104),i=r(86595),o=r(46607);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function u(e){return(0,n.s)(e)&&"payload"in e}function c(e,t){var r=e,n=new o.w0;return a(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}},653:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},46607:function(e,t,r){"use strict";r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var n=r(67877),i=r(43104),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},43104:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}function i(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}r.d(t,{P:function(){return i},s:function(){return n}})},71115:function(e,t,r){"use strict";r.d(t,{v:function(){return i}});var n=r(653);function i(e,t){void 0===t&&(t=0);var r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}},50899:function(e,t,r){"use strict";r.d(t,{CO:function(){return y},kG:function(){return m},wY:function(){return h},_K:function(){return b}});var n,i=r(67877),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,u=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,s(n,t.prototype),n}return(0,i.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new u(t)}var l=["debug","log","warn","error","silent"],f=l.indexOf("log");function p(e){return function(){if(l.indexOf(e)>=f)return(console[e]||console.log).apply(console,arguments)}}(n=c||(c={})).debug=p("debug"),n.log=p("log"),n.warn=p("warn"),n.error=p("error");var d=r(12582);function h(e){try{return e()}catch(e){}}var y=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()}),g=r(71115);function v(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=_(i))||(t=O(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var m=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||c(e,_(t,r)||O(t,r))},{debug:v(c.debug),log:v(c.log),warn:v(c.warn),error:v(c.error)});function b(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new u(_(e,t)||O(e,t))}var E=Symbol.for("ApolloErrorMessageHandler_"+d.i);function w(e){if("string"==typeof e)return e;try{return(0,g.v)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function _(e,t){if(void 0===t&&(t=[]),e)return y[E]&&y[E](e,t.map(w))}function O(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:d.i,message:e,args:t.map(w)})))}},15212:function(e,t,r){"use strict";r.d(t,{A:function(){return f}});var n=r(8746),i=r(96022),o=r(2411),a=r(50899),s=r(12322),u=r(39842),c=r(92441);function l(e){return e}var f=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(l,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new n.B(i.mr);this.performWork=(0,u.re)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,a.kG)(Array.isArray(n),69),r.lookupArray(n)},max:c.Q["documentTransform.cache"],cache:s.k})}},e.prototype.performWork=function(e){return(0,o.A$)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},18049:function(e,t,r){"use strict";r.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var n=r(50899),i=r(27069);function o(e,t){var r,i=e.directives;return!i||!i.length||(r=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;(0,n.kG)(i&&1===i.length,71,o);var a=i[0];(0,n.kG)(a.name&&"if"===a.name.value,72,o);var s=a.value;(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),73,o),r.push({directive:e,ifArgument:a})}}),r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.kG)(void 0!==o,70,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function s(e){return e&&a(["client","export"],e,!0)}},52278:function(e,t,r){"use strict";r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var n=r(67877),i=r(50899);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(74,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&((0,i.kG)(1===o.length,75,o.length),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.kG)(n,76,r),n||null;default:return null}}},2411:function(e,t,r){"use strict";r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return p},iW:function(){return c},kU:function(){return u},p$:function(){return f},pD:function(){return l},rY:function(){return s}});var n=r(50899),i=r(99503);function o(e){(0,n.kG)(e&&"Document"===e.kind,77);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n._K)(78,e.kind);return e});return(0,n.kG)(t.length<=1,79,t.length),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,n.kG)(t&&"query"===t.operation,80),t}function l(e){(0,n.kG)("Document"===e.kind,81),(0,n.kG)(e.definitions.length<=1,82);var t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,83),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,n._K)(84)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},67597:function(e,t,r){"use strict";r.d(t,{S:function(){return u}});var n,i=r(65107),o=r(76341),a=r(92441),s=r(19865),u=Object.assign(function(e){var t=n.get(e);return t||(t=(0,i.S)(e),n.set(e,t)),t},{reset:function(){n=new o.s(a.Q.print||2e3)}});u.reset(),!1!==globalThis.__DEV__&&(0,s.zP)("print",function(){return n?n.size:0})},99503:function(e,t,r){"use strict";r.d(t,{Ao:function(){return m},JW:function(){return c},My:function(){return v},NC:function(){return y},PT:function(){return h},Yk:function(){return u},kQ:function(){return s},qw:function(){return function e(t,r,n){for(var i,a=0,s=r.selections;a<s.length;a++){var u=s[a];if(v(u)){if("__typename"===u.name.value)return t[g(u)]}else i?i.push(u):i=[u]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,l=i;c<l.length;c++){var u=l[c],f=e(t,(0,o.hi)(u,n).selectionSet,n);if("string"==typeof f)return f}}},u2:function(){return g},vb:function(){return l},vf:function(){return f}});var n=r(50899),i=r(43104),o=r(52278),a=r(34141);function s(e){return{__ref:String(e)}}function u(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return l(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return l(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,n._K)(85,t.value,r.kind)}function f(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return l(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),h(e.name.value,n,r)}var p=["connection","include","skip","client","rest","export","nonreactive"],d=a.B,h=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(d(i),")")}var o=e;if(t){var a=d(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===p.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(d(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=d;return d=e,t}});function y(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return l(r,e.name,e.value,t)}),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function v(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}},77413:function(e,t,r){"use strict";r.d(t,{Gw:function(){return h},aL:function(){return y},bi:function(){return d},ob:function(){return g}});var n=r(67877),i=r(50899),o=r(63154),a=r(27069),s=r(2411),u=r(99503),c=r(52278),l=r(86595),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function p(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function d(e,t){(0,s.A$)(t);for(var r,u,f,d=p(""),h=p(""),y=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,l.k)(r)){if(r.kind===o.h.OPERATION_DEFINITION)return d(r.name&&r.name.value);if(r.kind===o.h.FRAGMENT_DEFINITION)return h(r.name.value)}return!1!==globalThis.__DEV__&&i.kG.error(86),null},g=0,v=t.definitions.length-1;v>=0;--v)t.definitions[v].kind===o.h.OPERATION_DEFINITION&&++g;var m=(r=new Map,u=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&u.size&&u.forEach(function(r,n){n(e)&&(t=r)}),t}),b=function(e){return(0,l.O)(e)&&e.map(m).some(function(e){return e&&e.remove})},E=new Map,w=!1,_={enter:function(e){if(b(e.directives))return w=!0,null}},O=(0,a.Vn)(t,{Field:_,InlineFragment:_,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=y(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(b(e.directives))return w=!0,null;var o=y(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){E.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===E.get(JSON.stringify(n))?e:g>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(h(e.name.value).removed=!0,w=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return w=!0,null}}});if(!w)return t;var S=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){S(h(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},T=new Set;O.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?S(d(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){T.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==g||h(e.name.value).removed||T.add(e.name.value)}),T.forEach(function(e){S(h(e)).fragmentSpreads.forEach(function(e){T.add(e)})});var A={enter:function(e){var t;if(t=e.name.value,!T.has(t)||h(t).removed)return null}};return f=(0,a.Vn)(O,{FragmentSpread:A,FragmentDefinition:A,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=S(d(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.$H)(f)||(0,s.pD)(f),(0,c.F)((0,s.kU)(f)))?f:null}var h=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}});function y(e){return"query"===(0,s.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function g(e){return(0,s.A$)(e),d([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},12582:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});var n="3.11.8"},78616:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},93834:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},90892:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(25931);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,n.Z)(i.key),i)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},76801:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(25931);function i(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},9507:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{Z:function(){return n}})},90514:function(e,t,r){"use strict";function n(e){if(null==e)throw TypeError("Cannot destructure "+e)}r.d(t,{Z:function(){return n}})},85295:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(55938);function i(e,t){if(null==e)return{};var r,i,o=(0,n.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.includes(r)||({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},55938:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}r.d(t,{Z:function(){return n}})},31241:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(78944);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||(0,n.Z)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},75641:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{Z:function(){return n}})},64442:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(78616),i=r(78944);function o(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},25931:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(95493);function i(e){var t=function(e,t){if("object"!=(0,n.Z)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,n.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.Z)(t)?t:t+""}},95493:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return n}})},78944:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(78616);function i(e,t){if(e){if("string"==typeof e)return(0,n.Z)(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)?(0,n.Z)(e,t):void 0}}},45330:function(e,t,r){"use strict";r.d(t,{x7:function(){return H},X5:function(){return G},Me:function(){return V},oo:function(){return W},RR:function(){return z},cv:function(){return B},uY:function(){return q}});let n=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,o=Math.max,a=Math.round,s=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function v(e,t,r){void 0===r&&(r=!1);let n=d(e),i=h(g(e)),o=y(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=b(a)),[a,b(a)]}function m(e){return e.replace(/start|end/g,e=>l[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function E(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function _(e,t,r){let n,{reference:i,floating:o}=e,a=g(t),s=h(g(t)),u=y(s),c=p(t),l="y"===a,f=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,m=i[u]/2-o[u]/2;switch(c){case"top":n={x:f,y:i.y-o.height};break;case"bottom":n={x:f,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:v};break;case"left":n={x:i.x-o.width,y:v};break;default:n={x:i.x,y:i.y}}switch(d(t)){case"start":n[s]-=m*(r&&l?-1:1);break;case"end":n[s]+=m*(r&&l?-1:1)}return n}let O=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:f}=_(c,n,u),p=n,d={},h=0;for(let r=0;r<s.length;r++){let{name:o,fn:y}=s[r],{x:g,y:v,data:m,reset:b}=await y({x:l,y:f,initialPlacement:n,placement:p,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:e,floating:t}});l=null!=g?g:l,f=null!=v?v:f,d={...d,[o]:{...d[o],...m}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:l,y:f}=_(c,p,u)),r=-1)}return{x:l,y:f,placement:p,strategy:i,middlewareData:d}};async function S(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=f(t,e),y=E(h),g=s[d?"floating"===p?"reference":"floating":p],v=w(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:u})),m="floating"===p?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},O=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:u}):m);return{top:(v.top-O.top+y.top)/_.y,bottom:(O.bottom-v.bottom+y.bottom)/_.y,left:(v.left-O.left+y.left)/_.x,right:(O.right-v.right+y.right)/_.x}}async function T(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=p(r),s=d(r),u="y"===g(r),c=["left","top"].includes(a)?-1:1,l=o&&u?-1:1,h=f(t,e),{mainAxis:y,crossAxis:v,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"==typeof m&&(v="end"===s?-1*m:m),u?{x:v*l,y:y*c}:{x:y*c,y:v*l}}var A=r(52214);function I(e){let t=(0,A.Dx)(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=(0,A.Re)(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,u=a(r)!==o||a(n)!==s;return u&&(r=o,n=s),{width:r,height:n,$:u}}function R(e){return(0,A.kK)(e)?e:e.contextElement}function k(e){let t=R(e);if(!(0,A.Re)(t))return u(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=I(t),s=(o?a(r.width):r.width)/n,c=(o?a(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}let x=u(0);function N(e){let t=(0,A.Jj)(e);return(0,A.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:x}function P(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=R(e),s=u(1);t&&(n?(0,A.kK)(n)&&(s=k(n)):s=k(e));let c=(void 0===(i=r)&&(i=!1),n&&(!i||n===(0,A.Jj)(a))&&i)?N(a):u(0),l=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,p=o.width/s.x,d=o.height/s.y;if(a){let e=(0,A.Jj)(a),t=n&&(0,A.kK)(n)?(0,A.Jj)(n):n,r=e,i=(0,A.wK)(r);for(;i&&n&&t!==r;){let e=k(i),t=i.getBoundingClientRect(),n=(0,A.Dx)(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,f*=e.y,p*=e.x,d*=e.y,l+=o,f+=a,r=(0,A.Jj)(i),i=(0,A.wK)(r)}}return w({width:p,height:d,x:l,y:f})}function C(e){return P((0,A.tF)(e)).left+(0,A.Lw)(e).scrollLeft}function D(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=(0,A.Jj)(e),n=(0,A.tF)(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;let e=(0,A.Pf)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s,y:u}}(e,r);else if("document"===t)n=function(e){let t=(0,A.tF)(e),r=(0,A.Lw)(e),n=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=o(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+C(e),u=-r.scrollTop;return"rtl"===(0,A.Dx)(n).direction&&(s+=o(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:u}}((0,A.tF)(e));else if((0,A.kK)(t))n=function(e,t){let r=P(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=(0,A.Re)(e)?k(e):u(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{let r=N(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return w(n)}function j(e){return"static"===(0,A.Dx)(e).position}function M(e,t){return(0,A.Re)(e)&&"fixed"!==(0,A.Dx)(e).position?t?t(e):e.offsetParent:null}function L(e,t){let r=(0,A.Jj)(e);if((0,A.tR)(e))return r;if(!(0,A.Re)(e)){let t=(0,A.Ow)(e);for(;t&&!(0,A.Py)(t);){if((0,A.kK)(t)&&!j(t))return t;t=(0,A.Ow)(t)}return r}let n=M(e,t);for(;n&&(0,A.Ze)(n)&&j(n);)n=M(n,t);return n&&(0,A.Py)(n)&&j(n)&&!(0,A.hT)(n)?r:n||(0,A.gQ)(e)||r}let F=async function(e){let t=this.getOffsetParent||L,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=(0,A.Re)(t),i=(0,A.tF)(t),o="fixed"===r,a=P(e,!0,o,t),s={scrollLeft:0,scrollTop:0},c=u(0);if(n||!n&&!o){if(("body"!==(0,A.wk)(t)||(0,A.ao)(i))&&(s=(0,A.Lw)(t)),n){let e=P(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=C(i))}return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},U={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=(0,A.tF)(n),s=!!t&&(0,A.tR)(t.floating);if(n===a||s&&o)return r;let c={scrollLeft:0,scrollTop:0},l=u(1),f=u(0),p=(0,A.Re)(n);if((p||!p&&!o)&&(("body"!==(0,A.wk)(n)||(0,A.ao)(a))&&(c=(0,A.Lw)(n)),(0,A.Re)(n))){let e=P(n);l=k(n),f.x=e.x+n.clientLeft,f.y=e.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+f.x,y:r.y*l.y-c.scrollTop*l.y+f.y}},getDocumentElement:A.tF,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[..."clippingAncestors"===r?(0,A.tR)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,A.Kx)(e,[],!1).filter(e=>(0,A.kK)(e)&&"body"!==(0,A.wk)(e)),i=null,o="fixed"===(0,A.Dx)(e).position,a=o?(0,A.Ow)(e):e;for(;(0,A.kK)(a)&&!(0,A.Py)(a);){let t=(0,A.Dx)(a),r=(0,A.hT)(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||(0,A.ao)(a)&&!r&&function e(t,r){let n=(0,A.Ow)(t);return!(n===r||!(0,A.kK)(n)||(0,A.Py)(n))&&("fixed"===(0,A.Dx)(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=(0,A.Ow)(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],u=s[0],c=s.reduce((e,r)=>{let n=D(t,r,a);return e.top=o(n.top,e.top),e.right=i(n.right,e.right),e.bottom=i(n.bottom,e.bottom),e.left=o(n.left,e.left),e},D(t,u,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:L,getElementRects:F,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=I(e);return{width:t,height:r}},getScale:k,isElement:A.kK,isRTL:function(e){return"rtl"===(0,A.Dx)(e).direction}};function V(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,d=R(e),h=u||c?[...d?(0,A.Kx)(d):[],...(0,A.Kx)(t)]:[];h.forEach(e=>{u&&e.addEventListener("scroll",r,{passive:!0}),c&&e.addEventListener("resize",r)});let y=d&&f?function(e,t){let r,n=null,a=(0,A.tF)(e);function u(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function c(l,f){void 0===l&&(l=!1),void 0===f&&(f=1),u();let{left:p,top:d,width:h,height:y}=e.getBoundingClientRect();if(l||t(),!h||!y)return;let g=s(d),v=s(a.clientWidth-(p+h)),m={rootMargin:-g+"px "+-v+"px "+-s(a.clientHeight-(d+y))+"px "+-s(p)+"px",threshold:o(0,i(1,f))||1},b=!0;function E(e){let t=e[0].intersectionRatio;if(t!==f){if(!b)return c();t?c(!1,t):r=setTimeout(()=>{c(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(E,{...m,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(E,m)}n.observe(e)}(!0),u}(d,r):null,g=-1,v=null;l&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),d&&!p&&v.observe(d),v.observe(t));let m=p?P(e):null;return p&&function t(){let n=P(e);m&&(n.x!==m.x||n.y!==m.y||n.width!==m.width||n.height!==m.height)&&r(),m=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{u&&e.removeEventListener("scroll",r),c&&e.removeEventListener("resize",r)}),null==y||y(),null==(e=v)||e.disconnect(),v=null,p&&cancelAnimationFrame(a)}}let B=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:s}=t,u=await T(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},G=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,o,a;let{rects:s,middlewareData:u,placement:c,platform:l,elements:h}=t,{crossAxis:y=!1,alignment:g,allowedPlacements:b=n,autoAlignment:E=!0,...w}=f(e,t),_=void 0!==g||b===n?((a=g||null)?[...b.filter(e=>d(e)===a),...b.filter(e=>d(e)!==a)]:b.filter(e=>p(e)===e)).filter(e=>!a||d(e)===a||!!E&&m(e)!==e):b,O=await S(t,w),T=(null==(r=u.autoPlacement)?void 0:r.index)||0,A=_[T];if(null==A)return{};let I=v(A,s,await (null==l.isRTL?void 0:l.isRTL(h.floating)));if(c!==A)return{reset:{placement:_[0]}};let R=[O[p(A)],O[I[0]],O[I[1]]],k=[...(null==(i=u.autoPlacement)?void 0:i.overflows)||[],{placement:A,overflows:R}],x=_[T+1];if(x)return{data:{index:T+1,overflows:k},reset:{placement:x}};let N=k.map(e=>{let t=d(e.placement);return[e.placement,t&&y?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),P=(null==(o=N.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||N[0][0];return P!==c?{data:{index:T+1,overflows:k},reset:{placement:P}}:{}}}},q=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=f(e,t),d={x:r,y:n},y=await S(t,l),v=g(p(a)),m=h(v),b=d[m],E=d[v];if(s){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",r=b+y[e],n=b-y[t];b=o(r,i(b,n))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=E+y[e],n=E-y[t];E=o(r,i(E,n))}let w=c.fn({...t,[m]:b,[v]:E});return{...w,data:{x:w.x-r,y:w.y-n}}}}},z=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,a;let{placement:s,middlewareData:u,rects:c,initialPlacement:l,platform:h,elements:y}=t,{mainAxis:E=!0,crossAxis:w=!0,fallbackPlacements:_,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:A=!0,...I}=f(e,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let R=p(s),k=g(l),x=p(l)===l,N=await (null==h.isRTL?void 0:h.isRTL(y.floating)),P=_||(x||!A?[b(l)]:function(e){let t=b(e);return[m(e),t,m(t)]}(l)),C="none"!==T;!_&&C&&P.push(...function(e,t,r,n){let i=d(e),o=function(e,t,r){let n=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(m)))),o}(l,A,T,N));let D=[l,...P],j=await S(t,I),M=[],L=(null==(n=u.flip)?void 0:n.overflows)||[];if(E&&M.push(j[R]),w){let e=v(s,c,N);M.push(j[e[0]],j[e[1]])}if(L=[...L,{placement:s,overflows:M}],!M.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let r=null==(o=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(O){case"bestFit":{let e=null==(a=L.filter(e=>{if(C){let t=g(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=l}if(s!==r)return{reset:{placement:r}}}return{}}}},H=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:a,rects:s,platform:u,elements:c,middlewareData:l}=t,{element:p,padding:v=0}=f(e,t)||{};if(null==p)return{};let m=E(v),b={x:r,y:n},w=h(g(a)),_=y(w),O=await u.getDimensions(p),S="y"===w,T=S?"clientHeight":"clientWidth",A=s.reference[_]+s.reference[w]-b[w]-s.floating[_],I=b[w]-s.reference[w],R=await (null==u.getOffsetParent?void 0:u.getOffsetParent(p)),k=R?R[T]:0;k&&await (null==u.isElement?void 0:u.isElement(R))||(k=c.floating[T]||s.floating[_]);let x=k/2-O[_]/2-1,N=i(m[S?"top":"left"],x),P=i(m[S?"bottom":"right"],x),C=k-O[_]-P,D=k/2-O[_]/2+(A/2-I/2),j=o(N,i(D,C)),M=!l.arrow&&null!=d(a)&&D!==j&&s.reference[_]/2-(D<N?N:P)-O[_]/2<0,L=M?D<N?D-N:D-C:0;return{[w]:b[w]+L,data:{[w]:j,centerOffset:D-j-L,...M&&{alignmentOffset:L}},reset:M}}}),W=(e,t,r)=>{let n=new Map,i={platform:U,...r},o={...i.platform,_c:n};return O(e,t,{...i,platform:o})}},96069:function(e,t,r){"use strict";r.d(t,{RR:function(){return y},X5:function(){return g},YF:function(){return f},cv:function(){return d},uY:function(){return h},x7:function(){return v}});var n=r(45330),i=r(2700),o=r(25815),a="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function s(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!s(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!s(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let r=u(e);return Math.round(t*r)/r}function l(e){let t=i.useRef(e);return a(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:f=[],platform:p,elements:{reference:d,floating:h}={},transform:y=!0,whileElementsMounted:g,open:v}=e,[m,b]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[E,w]=i.useState(f);s(E,f)||w(f);let[_,O]=i.useState(null),[S,T]=i.useState(null),A=i.useCallback(e=>{e!==x.current&&(x.current=e,O(e))},[]),I=i.useCallback(e=>{e!==N.current&&(N.current=e,T(e))},[]),R=d||_,k=h||S,x=i.useRef(null),N=i.useRef(null),P=i.useRef(m),C=null!=g,D=l(g),j=l(p),M=i.useCallback(()=>{if(!x.current||!N.current)return;let e={placement:t,strategy:r,middleware:E};j.current&&(e.platform=j.current),(0,n.oo)(x.current,N.current,e).then(e=>{let t={...e,isPositioned:!0};L.current&&!s(P.current,t)&&(P.current=t,o.flushSync(()=>{b(t)}))})},[E,t,r,j]);a(()=>{!1===v&&P.current.isPositioned&&(P.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[v]);let L=i.useRef(!1);a(()=>(L.current=!0,()=>{L.current=!1}),[]),a(()=>{if(R&&(x.current=R),k&&(N.current=k),R&&k){if(D.current)return D.current(R,k,M);M()}},[R,k,M,D,C]);let F=i.useMemo(()=>({reference:x,floating:N,setReference:A,setFloating:I}),[A,I]),U=i.useMemo(()=>({reference:R,floating:k}),[R,k]),V=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!U.floating)return e;let t=c(U.floating,m.x),n=c(U.floating,m.y);return y?{...e,transform:"translate("+t+"px, "+n+"px)",...u(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,y,U.floating,m.x,m.y]);return i.useMemo(()=>({...m,update:M,refs:F,elements:U,floatingStyles:V}),[m,M,F,U,V])}let p=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:i}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,n.x7)({element:r.current,padding:i}).fn(t):{}:r?(0,n.x7)({element:r,padding:i}).fn(t):{}}}),d=(e,t)=>({...(0,n.cv)(e),options:[e,t]}),h=(e,t)=>({...(0,n.uY)(e),options:[e,t]}),y=(e,t)=>({...(0,n.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,n.X5)(e),options:[e,t]}),v=(e,t)=>({...p(e),options:[e,t]})},87153:function(e,t,r){"use strict";r.d(t,{YF:function(){return m}});var n,i=r(2700),o=r(52214);r(25815);var a=r(96069);let s={...n||(n=r.t(i,2))},u=s.useInsertionEffect||(e=>e());var c="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;let l=!1,f=0,p=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+f++,d=s.useId||function(){let[e,t]=i.useState(()=>l?p():void 0);return c(()=>{null==e&&t(p())},[]),i.useEffect(()=>{l=!0},[]),e},h=i.createContext(null),y=i.createContext(null),g=()=>{var e;return(null==(e=i.useContext(h))?void 0:e.id)||null},v=()=>i.useContext(y);function m(e){void 0===e&&(e={});let{nodeId:t}=e,r=function(e){let{open:t=!1,onOpenChange:r,elements:n}=e,o=d(),a=i.useRef({}),[s]=i.useState(()=>(function(){let e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}})()),c=null!=g(),[l,f]=i.useState(n.reference),p=function(e){let t=i.useRef(()=>{});return u(()=>{t.current=e}),i.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}((e,t,n)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)}),h=i.useMemo(()=>({setPositionReference:f}),[]),y=i.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return i.useMemo(()=>({dataRef:a,open:t,onOpenChange:p,elements:y,events:s,floatingId:o,refs:h}),[t,p,y,s,o,h])}({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,s=n.elements,[l,f]=i.useState(null),[p,h]=i.useState(null),y=(null==s?void 0:s.reference)||l,m=i.useRef(null),b=v();c(()=>{y&&(m.current=y)},[y]);let E=(0,a.YF)({...e,elements:{...s,...p&&{reference:p}}}),w=i.useCallback(e=>{let t=(0,o.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;h(t),E.refs.setReference(t)},[E.refs]),_=i.useCallback(e=>{((0,o.kK)(e)||null===e)&&(m.current=e,f(e)),((0,o.kK)(E.refs.reference.current)||null===E.refs.reference.current||null!==e&&!(0,o.kK)(e))&&E.refs.setReference(e)},[E.refs]),O=i.useMemo(()=>({...E.refs,setReference:_,setPositionReference:w,domReference:m}),[E.refs,_,w]),S=i.useMemo(()=>({...E.elements,domReference:y}),[E.elements,y]),T=i.useMemo(()=>({...E,...n,refs:O,elements:S,nodeId:t}),[E,O,S,t,n]);return c(()=>{n.dataRef.current.floatingContext=T;let e=null==b?void 0:b.nodesRef.current.find(e=>e.id===t);e&&(e.context=T)}),i.useMemo(()=>({...E,context:T,refs:O,elements:S}),[E,O,S,T])}},52214:function(e,t,r){"use strict";function n(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof i(e).Node}function s(e){return e instanceof Element||e instanceof i(e).Element}function u(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function c(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function l(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function f(e){return["table","td","th"].includes(n(e))}function p(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function d(e){let t=y(),r=s(e)?v(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function h(e){let t=b(e);for(;u(t)&&!g(t);){if(d(t))return t;if(p(t))break;t=b(t)}return null}function y(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(n(e))}function v(e){return i(e).getComputedStyle(e)}function m(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||o(e);return c(t)?t.host:t}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}r.d(t,{Dx:function(){return v},Jj:function(){return i},Kx:function(){return function e(t,r,n){var o;void 0===r&&(r=[]),void 0===n&&(n=!0);let a=function e(t){let r=b(t);return g(r)?t.ownerDocument?t.ownerDocument.body:t.body:u(r)&&l(r)?r:e(r)}(t),s=a===(null==(o=t.ownerDocument)?void 0:o.body),c=i(a);if(s){let t=E(c);return r.concat(c,c.visualViewport||[],l(a)?a:[],t&&n?e(t):[])}return r.concat(a,e(a,[],n))}},Lw:function(){return m},Ow:function(){return b},Pf:function(){return y},Py:function(){return g},Re:function(){return u},Ze:function(){return f},ao:function(){return l},gQ:function(){return h},hT:function(){return d},kK:function(){return s},tF:function(){return o},tR:function(){return p},wK:function(){return E},wk:function(){return n}})},38314:function(e,t,r){"use strict";function n(){}r.d(t,{e:function(){return 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)}}},12322:function(e,t,r){"use strict";function n(){}r.d(t,{k:function(){return 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))}}},85888:function(e,t,r){"use strict";r.d(t,{D:function(){return 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=u(t),o=u(r),a=n.length;if(a!==o.length)return!1;for(let e=0;e<a;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<a;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(f(t,r))return!0;let n=t.entries(),i="[object Map]"===a;for(;;){let t=n.next();if(t.done)break;let[o,a]=t.value;if(!r.has(o)||i&&!e(a,r.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=o.call(t);if(e!==o.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,l)}}return!1}(e,t)}finally{a.clear()}}function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}t.Z=s;let l="{ [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}},8746:function(e,t,r){"use strict";r.d(t,{B:function(){return 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&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);!i||(t=i.removeArray(o.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new s(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},35405:function(e,t,r){"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{a:function(){return n}})},90987: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))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);return 0===n.length?"{}":r.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}(t)+"]":"{ "+n.map(([t,n])=>t+": "+e(n,r)).join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(e,[])}r.d(t,{X:function(){return n}})},17922:function(e,t,r){"use strict";var n,i;r.d(t,{UG:function(){return c},WU:function(){return a},Ye:function(){return o},h8:function(){return s},ku:function(){return n}});class o{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{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 s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["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:["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"]},u=new Set(Object.keys(s));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&u.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},60471:function(e,t,r){"use strict";r.d(t,{LZ:function(){return o},wv:function(){return i}});var n=r(61561);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],u=function(e){let t=0;for(;t<e.length&&(0,n.FD)(e.charCodeAt(t));)++t;return t}(s);u!==s.length&&(o=null!==(r=o)&&void 0!==r?r:t,a=t,0!==t&&u<i&&(i=u))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?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('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s),p="",d=o&&(0,n.FD)(e.charCodeAt(0));return(f&&!d||a)&&(p+="\n"),p+=r,(f||l)&&(p+="\n"),'"""'+p+'"""'}},61561: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:function(){return n},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},63154:function(e,t,r){"use strict";var n,i;r.d(t,{h:function(){return 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"},32682:function(e,t,r){"use strict";r.d(t,{Qc:function(){return P}});let n=/\r\n|[\n\r]/g;function i(e,t){let r=0,i=1;for(let o of e.body.matchAll(n)){if("number"==typeof o.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),o.index>=t)break;r=o.index+o[0].length,i+=1}return{line:i,column:t+1-r}}function o(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,u=1===t.line?r:0,c=t.column+u,l=`${e.name}:${s}:${c}
`,f=n.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){let e=Math.floor(c/80),t=[];for(let e=0;e<p.length;e+=80)t.push(p.slice(e,e+80));return l+a([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(c%80)],["|",t[e+1]]])}return l+a([[`${s-1} |`,f[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,f[i+1]]])}function a(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 s extends Error{constructor(e,...t){var r,n,o,a;let{nodes:c,source:l,positions:f,path:p,originalError:d,extensions:h}=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!=p?p:void 0,this.originalError=null!=d?d:void 0,this.nodes=u(Array.isArray(c)?c:c?[c]:void 0);let y=u(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=l?l:null==y?void 0:null===(n=y[0])||void 0===n?void 0:n.source,this.positions=null!=f?f:null==y?void 0:y.map(e=>e.start),this.locations=f&&l?f.map(e=>i(l,e)):null==y?void 0:y.map(e=>i(e.source,e.start));let g="object"==typeof(a=null==d?void 0:d.extensions)&&null!==a?null==d?void 0:d.extensions:void 0;this.extensions=null!==(o=null!=h?h:g)&&void 0!==o?o: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!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):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)if(r.loc){var t;e+="\n\n"+o((t=r.loc).source,i(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+o(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 u(e){return void 0===e||0===e.length?void 0:e}function c(e,t,r){return new s(`Syntax Error: ${r}`,{source:e,positions:[t]})}var l,f,p,d,h=r(17922);(l=p||(p={})).QUERY="QUERY",l.MUTATION="MUTATION",l.SUBSCRIPTION="SUBSCRIPTION",l.FIELD="FIELD",l.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",l.FRAGMENT_SPREAD="FRAGMENT_SPREAD",l.INLINE_FRAGMENT="INLINE_FRAGMENT",l.VARIABLE_DEFINITION="VARIABLE_DEFINITION",l.SCHEMA="SCHEMA",l.SCALAR="SCALAR",l.OBJECT="OBJECT",l.FIELD_DEFINITION="FIELD_DEFINITION",l.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",l.INTERFACE="INTERFACE",l.UNION="UNION",l.ENUM="ENUM",l.ENUM_VALUE="ENUM_VALUE",l.INPUT_OBJECT="INPUT_OBJECT",l.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var y=r(63154),g=r(60471),v=r(61561);(f=d||(d={})).SOF="<SOF>",f.EOF="<EOF>",f.BANG="!",f.DOLLAR="$",f.AMP="&",f.PAREN_L="(",f.PAREN_R=")",f.SPREAD="...",f.COLON=":",f.EQUALS="=",f.AT="@",f.BRACKET_L="[",f.BRACKET_R="]",f.BRACE_L="{",f.PIPE="|",f.BRACE_R="}",f.NAME="Name",f.INT="Int",f.FLOAT="Float",f.STRING="String",f.BLOCK_STRING="BlockString",f.COMMENT="Comment";class m{constructor(e){let t=new h.WU(d.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!==d.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(b(e))++i;else if(E(r,i))i+=2;else break}return S(e,d.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return S(e,d.BANG,i,i+1);case 36:return S(e,d.DOLLAR,i,i+1);case 38:return S(e,d.AMP,i,i+1);case 40:return S(e,d.PAREN_L,i,i+1);case 41:return S(e,d.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return S(e,d.SPREAD,i,i+3);break;case 58:return S(e,d.COLON,i,i+1);case 61:return S(e,d.EQUALS,i,i+1);case 64:return S(e,d.AT,i,i+1);case 91:return S(e,d.BRACKET_L,i,i+1);case 93:return S(e,d.BRACKET_R,i,i+1);case 123:return S(e,d.BRACE_L,i,i+1);case 124:return S(e,d.PIPE,i,i+1);case 125:return S(e,d.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,a=o,s="",u=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){s+=r.slice(a,o),u.push(s);let n=S(e,d.BLOCK_STRING,t,o+3,(0,g.wv)(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){s+=r.slice(a,o),a=o+1,o+=4;continue}if(10===n||13===n){s+=r.slice(a,o),u.push(s),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(b(n))++o;else if(E(r,o))o+=2;else throw c(e.source,o,`Invalid character within String: ${O(e,o)}.`)}throw c(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,a="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),S(e,d.STRING,t,i+1,a);if(92===n){a+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!b(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|I(e))<0)break}throw c(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=A(r,t+2);if(b(n))return{value:String.fromCodePoint(n),size:6};if(w(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=A(r,t+8);if(_(e))return{value:String.fromCodePoint(n,e),size:12}}throw c(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw c(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(b(n))++i;else if(E(r,i))i+=2;else throw c(e.source,i,`Invalid character within String: ${O(e,i)}.`)}throw c(e.source,i,"Unterminated string.")}(e,i)}if((0,v.X1)(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),(0,v.X1)(o))throw c(e.source,i,`Invalid number, unexpected digit after 0: ${O(e,i)}.`)}else i=T(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=T(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(a=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=T(e,i,o),o=n.charCodeAt(i)),46===o||(0,v.LQ)(o))throw c(e.source,i,`Invalid number, expected digit but got: ${O(e,i)}.`);return S(e,a?d.FLOAT:d.INT,t,i,n.slice(t,i))}(e,i,t);if((0,v.LQ)(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,v.HQ)(e))++i;else break}return S(e,d.NAME,t,i,r.slice(t,i))}(e,i);throw c(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":b(t)||E(r,i)?`Unexpected character: ${O(e,i)}.`:`Invalid character: ${O(e,i)}.`)}return S(e,d.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===d.COMMENT);return e}}function b(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return w(e.charCodeAt(t))&&_(e.charCodeAt(t+1))}function w(e){return e>=55296&&e<=56319}function _(e){return e>=56320&&e<=57343}function O(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return d.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function S(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 T(e,t,r){if(!(0,v.X1)(r))throw c(e.source,t,`Invalid number, expected digit but got: ${O(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,v.X1)(n.charCodeAt(i));)++i;return i}function A(e,t){return I(e.charCodeAt(t))<<12|I(e.charCodeAt(t+1))<<8|I(e.charCodeAt(t+2))<<4|I(e.charCodeAt(t+3))}function I(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var R=r(35405),k=r(90987);let x=globalThis.process?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?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 N{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,R.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,R.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,R.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function P(e,t){return new C(e,t).parseDocument()}class C{constructor(e,t={}){let r=x(e,N)?e:new N(e);this._lexer=new m(r),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(d.NAME);return this.node(e,{kind:y.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.h.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw c(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:h.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(d.NAME)&&(e=this.parseName()),this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(d.NAME);switch(e.value){case"query":return h.ku.QUERY;case"mutation":return h.ku.MUTATION;case"subscription":return h.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:y.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.h.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(d.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:y.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:y.h.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(d.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:y.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:y.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:y.h.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:y.h.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:y.h.NULL});default:return this.node(t,{kind:y.h.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){let e=this._lexer.token.value;throw c(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:y.h.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:y.h.LIST,values:this.any(d.BRACKET_L,()=>this.parseValueLiteral(e),d.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:y.h.OBJECT,fields:this.any(d.BRACE_L,()=>this.parseObjectField(e),d.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:y.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:y.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(d.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:y.h.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:y.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:y.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:y.h.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);let r=this.parseNamedType();return this.node(e,{kind:y.h.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:y.h.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.h.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(d.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:y.h.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(d.COLON);let i=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:y.h.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.h.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:y.h.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:y.h.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:y.h.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw c(this._lexer.source,this._lexer.token.start,`${D(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:y.h.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(p,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new h.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw c(this._lexer.source,t.start,`Expected ${j(e)}, found ${D(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===d.NAME&&t.value===e)this.advanceLexer();else throw c(this._lexer.source,t.start,`Expected "${e}", found ${D(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return c(this._lexer.source,t.start,`Unexpected ${D(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==d.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw c(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function D(e){let t=e.value;return j(e.kind)+(null!=t?` "${t}"`:"")}function j(e){return e===d.BANG||e===d.DOLLAR||e===d.AMP||e===d.PAREN_L||e===d.PAREN_R||e===d.SPREAD||e===d.COLON||e===d.EQUALS||e===d.AT||e===d.BRACKET_L||e===d.BRACKET_R||e===d.BRACE_L||e===d.PIPE||e===d.BRACE_R?`"${e}"`:e}},65107:function(e,t,r){"use strict";r.d(t,{S:function(){return u}});var n=r(60471);let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}let a=["\\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 s=r(27069);function u(e){return(0,s.Vn)(e,c)}let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p("(",l(e.variableDefinitions,", "),")"),r=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+p(" = ",r)+p(" ",l(n," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=p("",e,": ")+t,a=o+p("(",l(r,", "),")");return a.length>80&&(a=o+p("(\n",d(l(r,"\n")),"\n)")),l([a,l(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+p(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>l(["...",p("on ",e),l(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${p("(",l(r,", "),")")} on ${t} ${p("",l(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+p("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>p("",e,"\n")+l(["schema",l(t," "),f(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>p("",e,"\n")+l(["scalar",t,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>p("",e,"\n")+l(["type",t,p("implements ",l(r," & ")),l(n," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>p("",e,"\n")+t+(h(r)?p("(\n",d(l(r,"\n")),"\n)"):p("(",l(r,", "),")"))+": "+n+p(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>p("",e,"\n")+l([t+": "+r,p("= ",n),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>p("",e,"\n")+l(["interface",t,p("implements ",l(r," & ")),l(n," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>p("",e,"\n")+l(["union",t,l(r," "),p("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>p("",e,"\n")+l(["enum",t,l(r," "),f(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>p("",e,"\n")+l([t,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>p("",e,"\n")+l(["input",t,l(r," "),f(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>p("",e,"\n")+"directive @"+t+(h(r)?p("(\n",d(l(r,"\n")),"\n)"):p("(",l(r,", "),")"))+(n?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend type",e,p("implements ",l(t," & ")),l(r," "),f(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend interface",e,p("implements ",l(t," & ")),l(r," "),f(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>l(["extend union",e,l(t," "),p("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>l(["extend enum",e,l(t," "),f(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>l(["extend input",e,l(t," "),f(r)]," ")}};function l(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function f(e){return p("{\n",d(l(e,"\n")),"\n}")}function p(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function d(e){return p("  ",e.replace(/\n/g,"\n  "))}function h(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},27069:function(e,t,r){"use strict";r.d(t,{$_:function(){return s},Vn:function(){return u}});var n=r(35405),i=r(90987),o=r(17922),a=r(63154);let s=Object.freeze({});function u(e,t,r=o.h8){let u,c,l;let f=new Map;for(let e of Object.values(a.h))f.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 p=Array.isArray(e),d=[e],h=-1,y=[],g=e,v=[],m=[];do{var b,E,w;let e;let a=++h===d.length,_=a&&0!==y.length;if(a){if(c=0===m.length?void 0:v[v.length-1],g=l,l=m.pop(),_){if(p){g=g.slice();let e=0;for(let[t,r]of y){let n=t-e;null===r?(g.splice(n,1),e++):g[n]=r}}else for(let[e,t]of(g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g)),y))g[e]=t}h=u.index,d=u.keys,y=u.edits,p=u.inArray,u=u.prev}else if(l){if(null==(g=l[c=p?h:d[h]]))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===(b=f.get(g.kind))||void 0===b?void 0:b.leave:null===(E=f.get(g.kind))||void 0===E?void 0:E.enter;if((e=null==r?void 0:r.call(t,g,c,l,v,m))===s)break;if(!1===e){if(!a){v.pop();continue}}else if(void 0!==e&&(y.push([c,e]),!a)){if((0,o.UG)(e))g=e;else{v.pop();continue}}}void 0===e&&_&&y.push([c,g]),a?v.pop():(u={inArray:p,index:h,keys:d,edits:y,prev:u},d=(p=Array.isArray(g))?g:null!==(w=r[g.kind])&&void 0!==w?w:[],h=-1,y=[],l&&m.push(l),l=g)}while(void 0!==u);return 0!==y.length?y[y.length-1][1]:e}},39842:function(e,t,r){"use strict";let n;r.d(t,{g7:function(){return v},dP:function(){return U},re:function(){return G}});let i=()=>Object.create(null),{forEach:o,slice:a}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class u{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&&r<n;++r){let n=this.weakness&&c(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){let t=this.weakness&&c(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=t.get(e);return r||t.set(e,r=new u(this.weakness,this.makeData)),r}}function c(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var l=r(38314);let f=null,p={},d=1;function h(e){try{return e()}catch(e){}}let y="@wry/context:Slot",g=h(()=>globalThis)||h(()=>global)||Object.create(null),v=g[y]||Array[y]||function(e){try{Object.defineProperty(g,y,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",d++,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===p)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=p),!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:m,noContext:b}=v,E=new v,{hasOwnProperty:w}=Object.prototype,_=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function O(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let S=[];function T(e,t){if(!e)throw Error(t||"assertion failure")}function A(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function I(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class R{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,++R.count}peek(){if(1===this.value.length&&!N(this))return k(this),this.value[0]}recompute(e){var t;return T(!this.recomputing,"already recomputing"),k(this),N(this)&&(M(this),E.withValue(this,x,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{O(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,N(this)||(t=this,P(t,D)))),I(this.value)}setDirty(){this.dirty||(this.dirty=!0,P(this,C),O(this))}dispose(){this.setDirty(),M(this),P(this,(e,t)=>{e.setDirty(),L(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=S.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(_(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),S.push(this.deps),this.deps=null)}}function k(e){let t=E.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),N(e)?C(t,e):D(t,e),t}function x(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&&!A(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 N(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function P(e,t){let r=e.parents.size;if(r){let n=_(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function C(e,t){T(e.childValues.has(t)),T(N(t));let r=!N(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=S.pop()||new Set;e.dirtyChildren.add(t),r&&P(e,C)}function D(e,t){T(e.childValues.has(t)),T(!N(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):A(r,t.value)||e.setDirty(),j(e,t),N(e)||P(e,D)}function j(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(S.length<100&&S.push(r),e.dirtyChildren=null))}function M(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{L(e,r)}),e.forgetDeps(),T(null===e.dirtyChildren)}function L(e,t){t.parents.delete(e),e.childValues.delete(t),j(e,t)}R.count=0;let F={setDirty:!0,dispose:!0,forget:!0};function U(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=E.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(O(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";_(n).forEach(e=>e[i]()),t.delete(e),O(n)}},n}function V(...e){return(n||(n=new u("function"==typeof WeakMap))).lookupArray(e)}let B=new Set;function G(e,{max:t=65536,keyArgs:r,makeCacheKey:n=V,normalizeResult:i,subscribe:o,cache:a=l.e}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,u=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 R(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),B.add(s),E.hasValue()||(B.forEach(e=>e.clean()),B.clear()),u};function c(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 p(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=f,u.peek=function(){return f(n.apply(null,arguments))},u.forgetKey=p,u.forget=function(){return p(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}},67877:function(e,t,r){"use strict";r.d(t,{Jh:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return c},mG:function(){return s},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function c(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},37324:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{y:function(){return _}});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},u=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function d(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:_}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function y(e){Promise.resolve().then(function(){try{e()}catch(e){h(e)}})}function g(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(e){h(e)}}}function v(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function m(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(v(e),i)i.call(n,r);else throw r;break;case"complete":v(e),i&&i.call(n)}}catch(e){h(e)}"closed"===e._state?g(e):"running"===e._state&&(e._state="ready")}function b(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],y(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(m(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}m(e,t,r)}}var E=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new w(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(v(this),g(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),w=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){b(this._subscription,"next",e)},t.error=function(e){b(this._subscription,"error",e)},t.complete=function(){b(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),_=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new E(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(d(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(d(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=d(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=d(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=d(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[l]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=p(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof _&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=p(t,c)))return new r(function(e){y(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){y(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){y(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:f,get:function(){return this}}]),e}();a()&&Object.defineProperty(_,Symbol("extensions"),{value:{symbol:l,hostReportError:h},configurable:!0})},79385:function(e){"use strict";e.exports=JSON.parse('{"adobeDtmUrl":"//assets.adobedtm.com/6809d1ba6f0c/c4bef609fe0d/launch-f3ff81c7b647-staging.min.js","featureflag":{"datafileCacheTTL":300000,"datafileTimeout":2000,"env":"development","project":"RDCX"},"amplitudeFeatureFlag":{"apiKey":"fcc6e14f9a38447247b10960eb024237","deploymentKey":"client-0Bg94gzt2IAdsDltzE5Fk3DQLup8xEXA","datafileCacheTTL":300000,"datafileTimeout":1000},"logLevel":"info","directSendUrl":"https://qa.realtor.com/assets/tracking-sdk/qa/directSend.js"}')},68923:function(e){"use strict";e.exports=JSON.parse('{"adobeDtmUrl":"//assets.adobedtm.com/6809d1ba6f0c/c4bef609fe0d/launch-b1aeef4798eb.min.js","featureflag":{"datafileCacheTTL":300000,"datafileTimeout":1000,"env":"production","project":"RDCX"},"amplitudeFeatureFlag":{"apiKey":"8d4736ddd8febfe6c8a83797a026a1b7","deploymentKey":"client-vNX4RmEaOEVluRN6bvFG30Plhs7pKiV8","datafileCacheTTL":300000,"datafileTimeout":1000},"logLevel":"error","directSendUrl":"https://www.realtor.com/assets/tracking-sdk/directSend.js"}')},77550:function(e){"use strict";e.exports=JSON.parse('{"adobeDtmUrl":"//assets.adobedtm.com/6809d1ba6f0c/c4bef609fe0d/launch-f3ff81c7b647-staging.min.js","featureflag":{"datafileCacheTTL":300000,"datafileTimeout":1000,"env":"qa","project":"RDCX"},"amplitudeFeatureFlag":{"apiKey":"fcc6e14f9a38447247b10960eb024237","deploymentKey":"client-0Bg94gzt2IAdsDltzE5Fk3DQLup8xEXA","datafileCacheTTL":300000,"datafileTimeout":1000},"logLevel":"error","directSendUrl":"https://qa.realtor.com/assets/tracking-sdk/qa/directSend.js"}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[7081,9774,179],function(){return t(6840),t(32849)}),_N_E=e.O()}]);
//# sourceMappingURL=_app-591f9f67b3dcf621.js.map