plesk.page2.be Open in urlscan Pro
193.233.161.177  Public Scan

Submitted URL: http://plesk.page2.be/cp/javascript/vendors.js?1722552800
Effective URL: https://plesk.page2.be/cp/javascript/vendors.js?1722552800
Submission: On August 25 via api from US — Scanned from NL

Form analysis 0 forms found in the DOM

Text Content

(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["vendors"],[,,,,,,,(e,t,r)=>{"use strict";var n=r(8),i=r(9),o=r(11),a=r(54),s=r(10),u=n.RegExp,c=u.prototype;i&&s((function(){var e=!0;try{u(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==n||r!==n}))&&o(c,"flags",{configurable:!0,get:a})},function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},(e,t,r)=>{"use strict";var n=r(10);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{"use strict";var n=r(12),i=r(29);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},(e,t,r)=>{"use strict";var n=r(13),i=r(10),o=r(15),a=r(16),s=r(9),u=r(20).CONFIGURABLE,c=r(21),l=r(25),f=l.enforce,p=l.get,d=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===m(d(t),0,7)&&(t="["+g(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&p(this).source||c(this)}),"toString")},(e,t,r)=>{"use strict";var n=r(14),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},(e,t,r)=>{"use strict";var n=r(10);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,r)=>{"use strict";var n=r(13),i=r(17),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},(e,t,r)=>{"use strict";var n=r(18),i=Object;e.exports=function(e){return i(n(e))}},(e,t,r)=>{"use strict";var n=r(19),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},e=>{"use strict";e.exports=function(e){return null==e}},(e,t,r)=>{"use strict";var n=r(9),i=r(16),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},(e,t,r)=>{"use strict";var n=r(13),i=r(15),o=r(22),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},(e,t,r)=>{"use strict";var n=r(23),i=r(8),o=r(24),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},(e,t,r)=>{"use strict";var n=r(8),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},(e,t,r)=>{"use strict";var n,i,o,a=r(26),s=r(8),u=r(27),c=r(28),l=r(16),f=r(22),p=r(52),d=r(53),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(h);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=p("state");d[v]=!0,n=function(e,t){if(l(e,v))throw new m(h);return t.facade=e,c(e,v,t),t},i=function(e){return l(e,v)?e[v]:{}},o=function(e){return l(e,v)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{"use strict";var n=r(8),i=r(15),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},(e,t,r)=>{"use strict";var n=r(15);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},(e,t,r)=>{"use strict";var n=r(9),i=r(29),o=r(51);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{"use strict";var n=r(9),i=r(30),o=r(32),a=r(33),s=r(34),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{"use strict";var n=r(9),i=r(10),o=r(31);e.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},(e,t,r)=>{"use strict";var n=r(8),i=r(27),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},(e,t,r)=>{"use strict";var n=r(9),i=r(10);e.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,r)=>{"use strict";var n=r(27),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},(e,t,r)=>{"use strict";var n=r(35),i=r(37);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},(e,t,r)=>{"use strict";var n=r(36),i=r(27),o=r(37),a=r(44),s=r(47),u=r(48),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,u=a(e,l);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},(e,t,r)=>{"use strict";var n=r(14),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},(e,t,r)=>{"use strict";var n=r(38),i=r(15),o=r(39),a=r(40),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},(e,t,r)=>{"use strict";var n=r(8),i=r(15);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},(e,t,r)=>{"use strict";var n=r(13);e.exports=n({}.isPrototypeOf)},(e,t,r)=>{"use strict";var n=r(41);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{"use strict";var n=r(42),i=r(10),o=r(8).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},(e,t,r)=>{"use strict";var n,i,o=r(8),a=r(43),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(e,t,r)=>{"use strict";var n=r(45),i=r(19);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},(e,t,r)=>{"use strict";var n=r(15),i=r(46),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,r)=>{"use strict";var n=r(36),i=r(15),o=r(27),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},(e,t,r)=>{"use strict";var n=r(8),i=r(49),o=r(16),a=r(50),s=r(41),u=r(40),c=n.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},(e,t,r)=>{"use strict";var n=r(22);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},(e,t,r)=>{"use strict";var n=r(13),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{"use strict";var n=r(49),i=r(50),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},e=>{"use strict";e.exports={}},(e,t,r)=>{"use strict";var n=r(33);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},(e,t,r)=>{"use strict";r(56),r(86)},(e,t,r)=>{"use strict";var n=r(57),i=r(8),o=r(77).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},(e,t,r)=>{"use strict";var n=r(8),i=r(58).f,o=r(28),a=r(63),s=r(24),u=r(64),c=r(76);e.exports=function(e,t){var r,l,f,p,d,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=i(r,l))&&d.value:r[l],!c(m?l:h+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(r,l,p,e)}}},(e,t,r)=>{"use strict";var n=r(9),i=r(36),o=r(59),a=r(51),s=r(60),u=r(34),c=r(16),l=r(30),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},(e,t,r)=>{"use strict";var n=r(61),i=r(18);e.exports=function(e){return n(i(e))}},(e,t,r)=>{"use strict";var n=r(13),i=r(10),o=r(62),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},(e,t,r)=>{"use strict";var n=r(13),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},(e,t,r)=>{"use strict";var n=r(15),i=r(29),o=r(12),a=r(24);e.exports=function(e,t,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&o(r,c,s),s.global)u?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},(e,t,r)=>{"use strict";var n=r(16),i=r(65),o=r(58),a=r(29);e.exports=function(e,t,r){for(var s=i(t),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||u(e,f,c(t,f))}}},(e,t,r)=>{"use strict";var n=r(38),i=r(13),o=r(66),a=r(75),s=r(33),u=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?u(t,r(e)):t}},(e,t,r)=>{"use strict";var n=r(67),i=r(74).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},(e,t,r)=>{"use strict";var n=r(13),i=r(16),o=r(60),a=r(68).indexOf,s=r(53),u=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&u(l,r);for(;t.length>c;)i(n,r=t[c++])&&(~a(l,r)||u(l,r));return l}},(e,t,r)=>{"use strict";var n=r(60),i=r(69),o=r(72),a=function(e){return function(t,r,a){var s=n(t),u=o(s);if(0===u)return!e&&-1;var c,l=i(a,u);if(e&&r!=r){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},(e,t,r)=>{"use strict";var n=r(70),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},(e,t,r)=>{"use strict";var n=r(71);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},(e,t,r)=>{"use strict";var n=r(73);e.exports=function(e){return n(e.length)}},(e,t,r)=>{"use strict";var n=r(70),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},(e,t,r)=>{"use strict";var n=r(10),i=r(15),o=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r===l||r!==c&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},(e,t,r)=>{"use strict";var n,i,o,a,s=r(8),u=r(78),c=r(79),l=r(15),f=r(16),p=r(10),d=r(81),h=r(82),m=r(31),g=r(83),y=r(84),v=r(85),b=s.setImmediate,_=s.clearImmediate,S=s.process,E=s.Dispatch,w=s.Function,O=s.MessageChannel,x=s.String,T=0,k={},C="onreadystatechange";p((function(){n=s.location}));var I=function(e){if(f(k,e)){var t=k[e];delete k[e],t()}},R=function(e){return function(){I(e)}},A=function(e){I(e.data)},P=function(e){s.postMessage(x(e),n.protocol+"//"+n.host)};b&&_||(b=function(e){g(arguments.length,1);var t=l(e)?e:w(e),r=h(arguments,1);return k[++T]=function(){u(t,void 0,r)},i(T),T},_=function(e){delete k[e]},v?i=function(e){S.nextTick(R(e))}:E&&E.now?i=function(e){E.now(R(e))}:O&&!y?(a=(o=new O).port2,o.port1.onmessage=A,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(P)?(i=P,s.addEventListener("message",A,!1)):i=C in m("script")?function(e){d.appendChild(m("script"))[C]=function(){d.removeChild(this),I(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:b,clear:_}},(e,t,r)=>{"use strict";var n=r(14),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},(e,t,r)=>{"use strict";var n=r(80),i=r(45),o=r(14),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},(e,t,r)=>{"use strict";var n=r(62),i=r(13);e.exports=function(e){if("Function"===n(e))return i(e)}},(e,t,r)=>{"use strict";var n=r(38);e.exports=n("document","documentElement")},(e,t,r)=>{"use strict";var n=r(13);e.exports=n([].slice)},e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},(e,t,r)=>{"use strict";var n=r(43);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},(e,t,r)=>{"use strict";var n=r(8),i=r(62);e.exports="process"===i(n.process)},(e,t,r)=>{"use strict";var n=r(57),i=r(8),o=r(77).set,a=r(87),s=i.setImmediate?a(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},(e,t,r)=>{"use strict";var n,i=r(8),o=r(78),a=r(15),s=r(88),u=r(43),c=r(82),l=r(83),f=i.Function,p=/MSIE .\./.test(u)||s&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return p?function(n,i){var s=l(arguments.length,1)>r,u=a(n)?n:f(n),p=s?c(arguments,r):[],d=s?function(){o(u,this,p)}:u;return t?e(d,i):e(d)}:e}},e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(94);function i(e,t,r){return(t=(0,n.default)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(95),i=r(96);function o(e){var t=(0,i.default)(e,"string");return"symbol"==(0,n.default)(t)?t:t+""}},(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},n(e)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(95);function i(e,t){if("object"!=(0,n.default)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,n.default)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorCode:()=>i.ErrorCode,FormatError:()=>i.FormatError,IntlMessageFormat:()=>n.IntlMessageFormat,InvalidValueError:()=>i.InvalidValueError,InvalidValueTypeError:()=>i.InvalidValueTypeError,MissingValueError:()=>i.MissingValueError,PART_TYPE:()=>o.PART_TYPE,default:()=>a,formatToParts:()=>o.formatToParts,isFormatXMLElementFn:()=>o.isFormatXMLElementFn});var n=r(102),i=r(117),o=r(116);const a=n.IntlMessageFormat},(e,t,r)=>{"use strict";r.r(t),r.d(t,{IntlMessageFormat:()=>c});var n=r(103),i=r(104),o=r(115),a=r(116);function s(e,t){return t?Object.keys(e).reduce((function(r,i){var o,a;return r[i]=(o=e[i],(a=t[i])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=(0,n.__assign)((0,n.__assign)({},o[t]),a[t]||{}),e}),{})):o),r}),(0,n.__assign)({},e)):e}function u(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var c=function(){function e(t,r,i,c){var l,f=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=f.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===a.PART_TYPE.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,a.formatToParts)(f.ast,f.locales,f.formatters,f.formats,e,void 0,f.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=f.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var p=c||{},d=(p.formatters,(0,n.__rest)(p,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},d),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(e.formats,i),this.formatters=c&&c.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.memoize)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))}),{cache:u(l.number),strategy:o.strategies.variadic}),getDateTimeFormat:(0,o.memoize)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))}),{cache:u(l.dateTime),strategy:o.strategies.variadic}),getPluralRules:(0,o.memoize)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))}),{cache:u(l.pluralRules),strategy:o.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=i.parse,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>N,__assign:()=>o,__asyncDelegator:()=>x,__asyncGenerator:()=>O,__asyncValues:()=>T,__await:()=>w,__awaiter:()=>h,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>P,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>L,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>R,__importStar:()=>I,__makeTemplateObject:()=>k,__metadata:()=>d,__param:()=>u,__propKey:()=>f,__read:()=>b,__rest:()=>a,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>_,__spreadArray:()=>E,__spreadArrays:()=>S,__values:()=>v,default:()=>j});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])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var 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},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,r[d])("accessor"===u?{get:f.get,set:f.set}:f[c],h);if("accessor"===u){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(f.get=s),(s=a(g.set))&&(f.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===u?i.unshift(s):f[c]=s)}l&&Object.defineProperty(l,n.name,f),p=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(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,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function m(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 new 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=a.trys,(i=i.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])}}}var g=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]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function v(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,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 _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function S(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function E(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 w(e){return this instanceof w?(this.v=e,this):new w(e)}function O(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=i[e](t)).value instanceof w?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:w(e[n](t)),done:!1}:i?i(t):t}:i}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&g(t,e,r);return C(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function A(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function P(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function L(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const j={__extends:i,__assign:o,__rest:a,__decorate:s,__param:u,__metadata:d,__awaiter:h,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:b,__spread:_,__spreadArrays:S,__spreadArray:E,__await:w,__asyncGenerator:O,__asyncDelegator:x,__asyncValues:T,__makeTemplateObject:k,__importStar:I,__importDefault:R,__classPrivateFieldGet:A,__classPrivateFieldSet:P,__classPrivateFieldIn:D,__addDisposableResource:N,__disposeResources:L}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SKELETON_TYPE:()=>a.SKELETON_TYPE,TYPE:()=>a.TYPE,_Parser:()=>c,createLiteralElement:()=>a.createLiteralElement,createNumberElement:()=>a.createNumberElement,isArgumentElement:()=>a.isArgumentElement,isDateElement:()=>a.isDateElement,isDateTimeSkeleton:()=>a.isDateTimeSkeleton,isLiteralElement:()=>a.isLiteralElement,isNumberElement:()=>a.isNumberElement,isNumberSkeleton:()=>a.isNumberSkeleton,isPluralElement:()=>a.isPluralElement,isPoundElement:()=>a.isPoundElement,isSelectElement:()=>a.isSelectElement,isTagElement:()=>a.isTagElement,isTimeElement:()=>a.isTimeElement,parse:()=>u});var n=r(103),i=r(105),o=r(106),a=r(107);function s(e){e.forEach((function(e){if(delete e.location,(0,a.isSelectElement)(e)||(0,a.isPluralElement)(e))for(var t in e.options)delete e.options[t].location,s(e.options[t].value);else(0,a.isNumberElement)(e)&&(0,a.isNumberSkeleton)(e.style)||((0,a.isDateElement)(e)||(0,a.isTimeElement)(e))&&(0,a.isDateTimeSkeleton)(e.style)?delete e.style.location:(0,a.isTagElement)(e)&&s(e.children)}))}function u(e,t){void 0===t&&(t={}),t=(0,n.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new o.Parser(e,t).parse();if(r.err){var a=SyntaxError(i.ErrorKind[r.err.kind]);throw a.location=r.err.location,a.originalMessage=r.err.message,a}return(null==t?void 0:t.captureLocation)||s(r.val),r.val}var c=o.Parser},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ErrorKind:()=>n}),function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parser:()=>R});var n,i=r(103),o=r(105),a=r(107),s=r(108),u=r(109),c=r(113),l=new RegExp("^".concat(s.SPACE_SEPARATOR_REGEX.source,"*")),f=new RegExp("".concat(s.SPACE_SEPARATOR_REGEX.source,"*$"));function p(e,t){return{start:e,end:t}}var d=!!String.prototype.startsWith&&"_a".startsWith("a",1),h=!!String.fromCodePoint,m=!!Object.fromEntries,g=!!String.prototype.codePointAt,y=!!String.prototype.trimStart,v=!!String.prototype.trimEnd,b=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_=!0;try{_="a"===(null===(n=C("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===n?void 0:n[0])}catch(e){_=!1}var S,E=d?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},w=h?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},O=m?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},x=g?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},T=y?function(e){return e.trimStart()}:function(e){return e.replace(l,"")},k=v?function(e){return e.trimEnd()}:function(e){return e.replace(f,"")};function C(e,t){return new RegExp(e,t)}if(_){var I=C("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");S=function(e,t){var r;return I.lastIndex=t,null!==(r=I.exec(e)[1])&&void 0!==r?r:""}}else S=function(e,t){for(var r=[];;){var n=x(e,t);if(void 0===n||P(n)||D(n))break;r.push(n),t+=n>=65536?2:1}return w.apply(void 0,r)};var R=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((s=this.parseArgument(e,r)).err)return s;n.push(s.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(o.ErrorKind.UNMATCHED_CLOSING_TAG,p(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&A(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;n.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;n.push(s.val)}}else{var u=this.clonePosition();this.bump(),n.push({type:a.TYPE.pound,location:p(u,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.TYPE.literal,value:"<".concat(n,"/>"),location:p(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var s=i.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!A(this.char()))return this.error(o.ErrorKind.INVALID_TAG,p(u,this.clonePosition()));var c=this.clonePosition();return n!==this.parseTagName()?this.error(o.ErrorKind.UNMATCHED_CLOSING_TAG,p(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.TYPE.tag,value:n,children:s,location:p(r,this.clonePosition())},err:null}:this.error(o.ErrorKind.INVALID_TAG,p(u,this.clonePosition())))}return this.error(o.ErrorKind.UNCLOSED_TAG,p(r,this.clonePosition()))}return this.error(o.ErrorKind.INVALID_TAG,p(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var u=p(r,this.clonePosition());return{val:{type:a.TYPE.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(A(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return w.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),w(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.ErrorKind.EMPTY_ARGUMENT,p(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(o.ErrorKind.MALFORMED_ARGUMENT,p(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.TYPE.argument,value:n,location:p(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(o.ErrorKind.MALFORMED_ARGUMENT,p(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=S(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:p(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var s,l=this.clonePosition(),f=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(f){case"":return this.error(o.ErrorKind.EXPECT_ARGUMENT_TYPE,p(l,d));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(b=k(x.val)).length)return this.error(o.ErrorKind.EXPECT_ARGUMENT_STYLE,p(this.clonePosition(),this.clonePosition()));h={style:b,styleLocation:p(m,this.clonePosition())}}if((C=this.tryParseArgumentClose(n)).err)return C;var g=p(n,this.clonePosition());if(h&&E(null==h?void 0:h.style,"::",0)){var y=T(h.style.slice(2));if("number"===f)return(x=this.parseNumberSkeletonFromString(y,h.styleLocation)).err?x:{val:{type:a.TYPE.number,value:r,location:g,style:x.val},err:null};if(0===y.length)return this.error(o.ErrorKind.EXPECT_DATE_TIME_SKELETON,g);var v=y;this.locale&&(v=(0,c.getBestPattern)(y,this.locale));var b={type:a.SKELETON_TYPE.dateTime,pattern:v,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,u.parseDateTimeSkeleton)(v):{}};return{val:{type:"date"===f?a.TYPE.date:a.TYPE.time,value:r,location:g,style:b},err:null}}return{val:{type:"number"===f?a.TYPE.number:"date"===f?a.TYPE.date:a.TYPE.time,value:r,location:g,style:null!==(s=null==h?void 0:h.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,p(_,(0,i.__assign)({},_)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),w=0;if("select"!==f&&"offset"===S.value){if(!this.bumpIf(":"))return this.error(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),S=this.parseIdentifierIfPossible(),w=x.val}var C,I=this.tryParsePluralOrSelectOptions(e,f,t,S);if(I.err)return I;if((C=this.tryParseArgumentClose(n)).err)return C;var R=p(n,this.clonePosition());return"select"===f?{val:{type:a.TYPE.select,value:r,options:O(I.val),location:R},err:null}:{val:{type:a.TYPE.plural,value:r,options:O(I.val),offset:w,pluralType:"plural"===f?"cardinal":"ordinal",location:R},err:null};default:return this.error(o.ErrorKind.INVALID_ARGUMENT_TYPE,p(l,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,p(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,p(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=(0,u.parseNumberSkeletonFromString)(e)}catch(e){return this.error(o.ErrorKind.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.SKELETON_TYPE.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?(0,u.parseNumberSkeleton)(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,a=!1,s=[],u=new Set,c=n.value,l=n.location;;){if(0===c.length){var f=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=p(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}if(u.has(c))return this.error("select"===t?o.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,p(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var g=this.tryParseArgumentClose(h);if(g.err)return g;s.push([c,{value:m.val,location:p(h,this.clonePosition())}]),u.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?o.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,p(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(o.ErrorKind.MISSING_OTHER_CLAUSE,p(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=p(n,this.clonePosition());return i?b(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=x(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(E(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&P(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function A(e){return e>=97&&e<=122||e>=65&&e<=90}function P(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function D(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}},(e,t,r)=>{"use strict";var n,i;function o(e){return e.type===n.literal}function a(e){return e.type===n.argument}function s(e){return e.type===n.number}function u(e){return e.type===n.date}function c(e){return e.type===n.time}function l(e){return e.type===n.select}function f(e){return e.type===n.plural}function p(e){return e.type===n.pound}function d(e){return e.type===n.tag}function h(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function m(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}function g(e){return{type:n.literal,value:e}}function y(e,t){return{type:n.number,value:e,style:t}}r.r(t),r.d(t,{SKELETON_TYPE:()=>i,TYPE:()=>n,createLiteralElement:()=>g,createNumberElement:()=>y,isArgumentElement:()=>a,isDateElement:()=>u,isDateTimeSkeleton:()=>m,isLiteralElement:()=>o,isNumberElement:()=>s,isNumberSkeleton:()=>h,isPluralElement:()=>f,isPoundElement:()=>p,isSelectElement:()=>l,isTagElement:()=>d,isTimeElement:()=>c}),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(n||(n={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPACE_SEPARATOR_REGEX:()=>n,WHITE_SPACE_REGEX:()=>i});var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,i=/[\t-\r \x85\u200E\u200F\u2028\u2029]/},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseDateTimeSkeleton:()=>n.parseDateTimeSkeleton,parseNumberSkeleton:()=>i.parseNumberSkeleton,parseNumberSkeletonFromString:()=>i.parseNumberSkeletonFromString});var n=r(110),i=r(111)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseDateTimeSkeleton:()=>i});var n=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function i(e){var t={};return e.replace(n,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseNumberSkeleton:()=>h,parseNumberSkeletonFromString:()=>o});var n=r(103),i=r(112);function o(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(i.WHITE_SPACE_REGEX).filter((function(e){return e.length>0}));r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),u=0,c=s;u<c.length;u++){if(0===c[u].length)throw new Error("Invalid number skeleton")}t.push({stem:a,options:s})}return t}var a=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,s=/^(@+)?(\+|#+)?[rs]?$/g,u=/(\*)(0+)|(#+)(0+)|(0+)/g,c=/^(0+)$/;function l(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(s,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function f(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function p(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!c.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function d(e){var t=f(e);return t||{}}function h(e){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return(0,n.__assign)((0,n.__assign)({},e),d(t))}),{}));continue;case"engineering":t=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return(0,n.__assign)((0,n.__assign)({},e),d(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(u,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(c.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(a.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(a,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var h=o.options[0];"w"===h?t=(0,n.__assign)((0,n.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):h&&(t=(0,n.__assign)((0,n.__assign)({},t),l(h)))}else if(s.test(o.stem))t=(0,n.__assign)((0,n.__assign)({},t),l(o.stem));else{var m=f(o.stem);m&&(t=(0,n.__assign)((0,n.__assign)({},t),m));var g=p(o.stem);g&&(t=(0,n.__assign)((0,n.__assign)({},t),g))}}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WHITE_SPACE_REGEX:()=>n});var n=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBestPattern:()=>i});var n=r(114);function i(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(1&a),u=a<2?1:3+(a>>1),c=o(t);for("H"!=c&&"k"!=c||(u=0);u-- >0;)r+="a";for(;s-- >0;)r=c+r}else r+="J"===i?"H":i}return r}function o(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,i=e.language;return"root"!==i&&(r=e.maximize().region),(n.timeData[r||""]||n.timeData[i||""]||n.timeData["".concat(i,"-001")]||n.timeData["001"])[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeData:()=>n});var n={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]}},(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:u;return(t&&t.strategy?t.strategy:s)(e,{cache:r,serializer:n})}function i(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function o(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function a(e,t,r,n,i){return r.bind(t,e,n,i)}function s(e,t){return a(e,this,1===e.length?i:o,t.cache.create(),t.serializer)}r.r(t),r.d(t,{memoize:()=>n,strategies:()=>f});var u=function(){return JSON.stringify(arguments)};function c(){this.cache=Object.create(null)}c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new c}},f={variadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PART_TYPE:()=>n,formatToParts:()=>s,isFormatXMLElementFn:()=>a});var n,i=r(104),o=r(117);function a(e){return"function"==typeof e}function s(e,t,r,u,c,l,f){if(1===e.length&&(0,i.isLiteralElement)(e[0]))return[{type:n.literal,value:e[0].value}];for(var p=[],d=0,h=e;d<h.length;d++){var m=h[d];if((0,i.isLiteralElement)(m))p.push({type:n.literal,value:m.value});else if((0,i.isPoundElement)(m))"number"==typeof l&&p.push({type:n.literal,value:r.getNumberFormat(t).format(l)});else{var g=m.value;if(!c||!(g in c))throw new o.MissingValueError(g,f);var y=c[g];if((0,i.isArgumentElement)(m))y&&"string"!=typeof y&&"number"!=typeof y||(y="string"==typeof y||"number"==typeof y?String(y):""),p.push({type:"string"==typeof y?n.literal:n.object,value:y});else if((0,i.isDateElement)(m)){var v="string"==typeof m.style?u.date[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:void 0;p.push({type:n.literal,value:r.getDateTimeFormat(t,v).format(y)})}else if((0,i.isTimeElement)(m)){v="string"==typeof m.style?u.time[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:u.time.medium;p.push({type:n.literal,value:r.getDateTimeFormat(t,v).format(y)})}else if((0,i.isNumberElement)(m)){(v="string"==typeof m.style?u.number[m.style]:(0,i.isNumberSkeleton)(m.style)?m.style.parsedOptions:void 0)&&v.scale&&(y*=v.scale||1),p.push({type:n.literal,value:r.getNumberFormat(t,v).format(y)})}else{if((0,i.isTagElement)(m)){var b=m.children,_=m.value,S=c[_];if(!a(S))throw new o.InvalidValueTypeError(_,"function",f);var E=S(s(b,t,r,u,c,l).map((function(e){return e.value})));Array.isArray(E)||(E=[E]),p.push.apply(p,E.map((function(e){return{type:"string"==typeof e?n.literal:n.object,value:e}})))}if((0,i.isSelectElement)(m)){if(!(w=m.options[y]||m.options.other))throw new o.InvalidValueError(m.value,y,Object.keys(m.options),f);p.push.apply(p,s(w.value,t,r,u,c))}else if((0,i.isPluralElement)(m)){var w;if(!(w=m.options["=".concat(y)])){if(!Intl.PluralRules)throw new o.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',o.ErrorCode.MISSING_INTL_API,f);var O=r.getPluralRules(t,{type:m.pluralType}).select(y-(m.offset||0));w=m.options[O]||m.options.other}if(!w)throw new o.InvalidValueError(m.value,y,Object.keys(m.options),f);p.push.apply(p,s(w.value,t,r,u,c,y-(m.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===n.literal&&t.type===n.literal?r.value+=t.value:e.push(t),e}),[])}(p)}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorCode:()=>n,FormatError:()=>o,InvalidValueError:()=>a,InvalidValueTypeError:()=>s,MissingValueError:()=>u});var n,i=r(103);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var o=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,r,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,o)||this}return(0,i.__extends)(t,e),t}(o),s=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(t,e),t}(o),u=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(t,e),t}(o)},,,(e,t,r)=>{r(121);var n=r(123),i=n.Service,o=n.apiLoader;o.services.firehose={},n.Firehose=i.defineService("firehose",["2015-08-04"]),Object.defineProperty(o.services.firehose,"2015-08-04",{get:function(){var e=r(258);return e.paginators=r(259).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Firehose},(e,t,r)=>{var n=r(122);n.crypto.lib=r(220),n.Buffer=r(223).Buffer,n.url=r(230),n.querystring=r(232),n.realClock=r(235),n.environment="js",n.createEventStream=r(236).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var i=r(123);if(e.exports=i,r(154),r(155),r(242),r(248),r(249),r(250),r(254),i.XML.Parser=r(255),r(256),void 0===o)var o={browser:!0}},(e,t,r)=>{var n,i={environment:"nodejs",engine:function(){if(i.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=i.environment,t="aws-sdk-"+e+"/"+r(123).VERSION;return"nodejs"===e&&(t+=" "+i.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(e){var t=[];return i.arrayEach(e.split("/"),(function(e){t.push(i.uriEscape(e))})),t.join("/")},urlParse:function(e){return i.url.parse(e)},urlFormat:function(e){return i.url.format(e)},queryStringParse:function(e){return i.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=i.uriEscape,n=Object.keys(e).sort();return i.arrayEach(n,(function(n){var o=e[n],a=r(n),s=a+"=";if(Array.isArray(o)){var u=[];i.arrayEach(o,(function(e){u.push(r(e))})),s=a+"="+u.sort().join("&"+a+"=")}else null!=o&&(s=a+"="+r(o));t.push(s)})),t.join("&")},readFileSync:function(e){return i.isBrowser()?null:r(209).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw i.error(new Error("Cannot base64 encode number "+e));return null==e?e:i.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw i.error(new Error("Cannot base64 decode number "+e));return null==e?e:i.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof i.Buffer.from&&i.Buffer.from!==Uint8Array.from?i.Buffer.from(e,t):new i.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof i.Buffer.alloc)return i.Buffer.alloc(e,t,r);var n=new i.Buffer(e);return void 0!==t&&"function"==typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){i.Buffer.isBuffer(e)||(e=i.buffer.toBuffer(e));var t=new i.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,o=0;for(r=0;r<e.length;r++)n+=e[r].length;for(t=i.buffer.alloc(n),r=0;r<e.length;r++)e[r].copy(t,o),o+=e[r].length;return t}},string:{byteLength:function(e){if(null==e)return 0;if("string"==typeof e&&(e=i.buffer.toBuffer(e)),"number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"==typeof e.path)return r(209).lstatSync(e.path).size;throw i.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,r={};return i.arrayEach(e.split(/\r?\n/),(function(e){if("["===(e=e.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===e[e.length-1]){if("__proto__"===(t=e.substring(1,e.length-1))||"__proto__"===t.split(/\s/)[1])throw i.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var n=e.indexOf("="),o=e.length-1;if(-1!==n&&0!==n&&n!==o){var a=e.substring(0,n).trim(),s=e.substring(n+1).trim();r[t]=r[t]||{},r[t][a]=s}}})),r}},fn:{noop:function(){},callback:function(e){if(e)throw e},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0);t.pop()(e.apply(null,t))}}},date:{getDate:function(){return n||(n=r(123)),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=i.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=i.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=i.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),i.date[t](i.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw i.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(e){var t=i.crypto.crc32Table,r=~0;"string"==typeof e&&(e=i.buffer.toBuffer(e));for(var n=0;n<e.length;n++){r=r>>>8^t[255&(r^e.readUInt8(n))]}return~r>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=i.buffer.toBuffer(t)),i.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return i.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return i.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var o=i.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=i.buffer.toBuffer(t));var a=i.arraySliceFn(t),s=i.Buffer.isBuffer(t);if(i.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",(function(e){o.update(e)})),t.on("error",(function(e){n(e)})),t.on("end",(function(){n(null,o.digest(r))}));else{if(!n||!a||s||"undefined"==typeof FileReader){i.isBrowser()&&"object"==typeof t&&!s&&(t=new i.Buffer(new Uint8Array(t)));var u=o.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new i.Buffer(new Uint8Array(l.result));o.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,o.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return i.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))if(t.call(this,r,e[r])===i.abort)break}},arrayEach:function(e,t){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))if(t.call(this,e[r],parseInt(r,10))===i.abort)break}},update:function(e,t){return i.each(t,(function(t,r){e[t]=r})),e},merge:function(e,t){return i.update(i.copy(e),t)},copy:function(e){if(null==e)return e;var t={};for(var r in e)t[r]=e[r];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=i.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function(e,t){var r=null;for(var n in"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&((r=i.copy(e)).message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(i.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,r&&(e.originalError=r),t||{})if("["===n[0]&&"]"===n[n.length-1]){if("code"===(n=n.slice(1,-1))||"message"===n)continue;e["["+n+"]"]="See error."+n+" for details.",Object.defineProperty(e,n,{value:e[n]||t&&t[n]||r&&r[n],enumerable:!1,writable:!0})}return e},inherit:function(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var n=function(){};n.prototype=e.prototype,r=new n}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=r,i.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var r in arguments[t].prototype){var n=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=n)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&i.arrayEach(t,(function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})}))},property:function(e,t,r,n,i){var o={configurable:!0,enumerable:void 0===n||n};"function"!=typeof r||i?(o.value=r,o.writable=!0):o.get=r,Object.defineProperty(e,t,o)},memoizedProperty:function(e,t,r,n){var o=null;i.property(e,t,(function(){return null===o&&(o=r()),o}),n)},hoistPayloadMember:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r],o=n.output;if(o.payload&&!n.hasEventOutput){var a=o.members[o.payload],s=e.data[o.payload];"structure"===a.type&&i.each(s,(function(t,r){i.property(e.data,t,r,!1)}))}},computeSha256:function(e,t){if(i.isNode()){var n=i.stream.Stream,o=r(209);if("function"==typeof n&&e instanceof n){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));var a={};"number"==typeof e.start&&(a.start=e.start),"number"==typeof e.end&&(a.end=e.end),e=o.createReadStream(e.path,a)}}i.crypto.sha256(e,"hex",(function(e,r){e?t(e):t(null,r)}))},isClockSkewed:function(e){if(e)return i.property(n.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var o=e[i];r?o.deletePromisesFromClass&&o.deletePromisesFromClass():o.addPromisesToClass&&o.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var r=this,n=Array.prototype.slice.call(arguments);return new t((function(t,i){n.push((function(e,r){e?i(e):t(r)})),r[e].apply(r,n)}))}},isDualstackAvailable:function(e){if(!e)return!1;var t=r(144);return"string"!=typeof e&&(e=e.serviceIdentifier),!("string"!=typeof e||!t.hasOwnProperty(e))&&!!t[e].dualstackAvailable},calculateRetryDelay:function(e,t,r){t||(t={});var n=t.customBackoff||null;if("function"==typeof n)return n(e,r);var i="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*i)},handleRequestWithRetries:function(e,t,r){t||(t={});var o=n.HttpClient.getInstance(),a=t.httpOptions||{},s=0,u=function(e){var n=t.maxRetries||0;if(e&&"TimeoutError"===e.code&&(e.retryable=!0),e&&e.retryable&&s<n){var o=i.calculateRetryDelay(s,t.retryDelayOptions,e);if(o>=0)return s++,void setTimeout(c,o+(e.retryAfter||0))}r(e)},c=function(){var t="";o.handleRequest(e,a,(function(e){e.on("data",(function(e){t+=e.toString()})),e.on("end",(function(){var n=e.statusCode;if(n<300)r(null,t);else{var o=1e3*parseInt(e.headers["retry-after"],10)||0,a=i.error(new Error,{statusCode:n,retryable:n>=500||429===n});o&&a.retryable&&(a.retryAfter=o),u(a)}}))}),u)};n.util.defer(c)},uuid:{v4:function(){return r(210).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},n={};if(process.env[i.configOptInEnv])n=e.loadFrom({isConfig:!0,filename:process.env[i.sharedConfigFileEnv]});var o={};try{o=e.loadFrom({filename:t||process.env[i.configOptInEnv]&&process.env[i.sharedCredentialsFileEnv]})}catch(e){if(!process.env[i.configOptInEnv])throw e}for(var a=0,s=Object.keys(n);a<s.length;a++)r[s[a]]=u(r[s[a]]||{},n[s[a]]);for(a=0,s=Object.keys(o);a<s.length;a++)r[s[a]]=u(r[s[a]]||{},o[s[a]]);return r;function u(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++)e[n[r]]=t[n[r]];return e}},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw i.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=i},(e,t,r)=>{var n={util:r(122)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.1642.0",Signers:{},Protocol:{Json:r(124),Query:r(128),Rest:r(132),RestJson:r(133),RestXml:r(134)},XML:{Builder:r(135),Parser:null},JSON:{Builder:r(125),Parser:r(126)},Model:{Api:r(140),Operation:r(141),Shape:r(130),Paginator:r(142),ResourceWaiter:r(143)},apiLoader:r(145),EndpointCache:r(146).EndpointCache}),r(148),r(149),r(153),r(156),r(157),r(193),r(196),r(197),r(198),r(207),r(208),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",(function(){return new n.EndpointCache(n.config.endpointCacheSize)}),!0)},(e,t,r)=>{var n=r(122),i=r(125),o=r(126),a=r(127).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,o=r.jsonVersion||"1.0",s=r.operations[e.operation].input,u=new i;1===o&&(o="1.0"),r.awsQueryCompatible&&(t.params||(t.params={}),Object.assign(t.params,e.params)),t.body=u.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=n,a(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),o=i.__type||i.code||i.Code;for(var a in o&&(t.code=o.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null,i||{})"code"!==a&&"message"!==a&&(t["["+a+"]"]="See error."+a+" for details.",Object.defineProperty(t,a,{value:i[a],enumerable:!1,writable:!0}))}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},(e,t,r)=>{var n=r(122);function i(){}function o(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){if(t.isDocument)return e;var r={};return n.each(e,(function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(n,i);void 0!==s&&(r[a]=s)}})),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,(function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)})),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,(function(e){var n=o(e,t.member);void 0!==n&&r.push(n)})),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},(e,t,r)=>{var n=r(122);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;if(t.isDocument)return e;var r={},i=t.members,a=t.api&&t.api.awsQueryCompatible;return n.each(i,(function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var s=o(e[i],n);void 0!==s&&(r[t]=s)}else a&&n.defaultValue&&"list"===n.type&&(r[t]="function"==typeof n.defaultValue?n.defaultValue():n.defaultValue)})),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,(function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i})),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,(function(e){var n=o(e,t.member);void 0===n?r.push(null):r.push(n)})),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},(e,t,r)=>{var n=r(122),i=r(123);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t,r,o,a=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],i=t.endpointOperation&&t.endpointOperation===n.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===i}(e))return e;if(a.endpoint&&a.endpoint.hostPrefix){var s=function(e,t,r){return n.each(r.members,(function(r,i){if(!0===i.hostLabel){if("string"!=typeof t[r]||""===t[r])throw n.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var o=new RegExp("\\{"+r+"\\}","g");e=e.replace(o,t[r])}})),e}(a.endpoint.hostPrefix,e.params,a.input);!function(e,t){e.host&&(e.host=t+e.host);e.hostname&&(e.hostname=t+e.hostname)}(e.httpRequest.endpoint,s),t=e.httpRequest.endpoint.hostname,r=t.split("."),o=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,n.arrayEach(r,(function(e){if(!e.length||e.length<1||e.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!o.test(e))throw i.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}return e}}},(e,t,r)=>{var n=r(123),i=r(122),o=r(129),a=r(130),s=r(127).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,(function(e,t){r.params[e]=t})),r.body=i.queryParamsToString(r.params),s(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new n.XML.Parser).parse(r)}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=i.error(new Error,{code:t.Code,message:t.Message}):e.error=i.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t=e.request,r=t.service.api.operations[t.operation].output||{},o=r;if(o.resultWrapper){var s=a.create({type:"structure"});s.members[o.resultWrapper]=r,s.memberNames=[o.resultWrapper],i.property(r,"name",r.resultWrapper),r=s}var u=new n.XML.Parser;if(r&&r.members&&!r.members._XAMZRequestId){var c=a.create({type:"string"},{api:{protocol:"query"}},"requestId");r.members._XAMZRequestId=c}var l=u.parse(e.httpResponse.body.toString(),r);e.requestId=l._XAMZRequestId||l.requestId,l._XAMZRequestId&&delete l._XAMZRequestId,o.resultWrapper&&l[o.resultWrapper]&&(i.update(l,l[o.resultWrapper]),delete l[o.resultWrapper]),e.data=l}}},(e,t,r)=>{var n=r(122);function i(){}function o(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function a(e,t,r,i){n.each(r.members,(function(r,n){var a=t[r];if(null!=a){var u=o(n);s(u=e?e+"."+u:u,a,n,i)}}))}function s(e,t,r,i){null!=t&&("structure"===r.type?a(e,t,r,i):"list"===r.type?function(e,t,r,i){var a=r.member||{};0!==t.length?n.arrayEach(t,(function(t,n){var u="."+(n+1);if("ec2"===r.api.protocol)u+="";else if(r.flattened){if(a.name){var c=e.split(".");c.pop(),c.push(o(a)),e=c.join(".")}}else u="."+(a.name?a.name:"member")+u;s(e+u,t,a,i)})):"ec2"!==r.api.protocol&&i.call(this,e,null)}(e,t,r,i):"map"===r.type?function(e,t,r,i){var o=1;n.each(t,(function(t,n){var a=(r.flattened?".":".entry.")+o+++".",u=a+(r.key.name||"key"),c=a+(r.value.name||"value");s(e+u,t,r.key,i),s(e+c,n,r.value,i)}))}(e,t,r,i):i(e,r.toWireFormat(t).toString()))}i.prototype.serialize=function(e,t,r){a("",e,t,r)},e.exports=i},(e,t,r)=>{var n=r(131),i=r(122);function o(e,t,r){null!=r&&i.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"requiresLength",e.requiresLength,!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),o(this,"isEventStream",Boolean(e.eventstream),!1),o(this,"isEvent",Boolean(e.event),!1),o(this,"isEventPayload",Boolean(e.eventpayload),!1),o(this,"isEventHeader",Boolean(e.eventheader),!1),o(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),o(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),o(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var r=this,i=null,c=!this.isShape;u.apply(this,arguments),c&&(o(this,"defaultValue",(function(){return{}})),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",(function(){return!1})),o(this,"isDocument",Boolean(e.document))),e.members&&(o(this,"members",new n(e.members,t,(function(e,r){return s.create(r,t,e)}))),a(this,"memberNames",(function(){return e.xmlOrder||Object.keys(e.members)})),e.event&&(a(this,"eventPayloadMemberName",(function(){for(var e=r.members,t=r.memberNames,n=0,i=t.length;n<i;n++)if(e[t[n]].isEventPayload)return t[n]})),a(this,"eventHeaderMemberNames",(function(){for(var e=r.members,t=r.memberNames,n=[],i=0,o=t.length;i<o;i++)e[t[i]].isEventHeader&&n.push(t[i]);return n})))),e.required&&(o(this,"required",e.required),o(this,"isRequired",(function(t){if(!i){i={};for(var r=0;r<e.required.length;r++)i[e.required[r]]=!0}return i[t]}),!1,!0)),o(this,"resultWrapper",e.resultWrapper||null),e.payload&&o(this,"payload",e.payload),"string"==typeof e.xmlNamespace?o(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(o(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),o(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function l(e,t){var r=this,n=!this.isShape;if(u.apply(this,arguments),n&&o(this,"defaultValue",(function(){return[]})),e.member&&a(this,"member",(function(){return s.create(e.member,t)})),this.flattened){var i=this.name;a(this,"name",(function(){return r.member.name||i}))}}function f(e,t){var r=!this.isShape;u.apply(this,arguments),r&&(o(this,"defaultValue",(function(){return{}})),o(this,"key",s.create({type:"string"},t)),o(this,"value",s.create({type:"string"},t))),e.key&&a(this,"key",(function(){return s.create(e.key,t)})),e.value&&a(this,"value",(function(){return s.create(e.value,t)}))}function p(){s.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function d(){s.apply(this,arguments),this.toType=function(e){var t=i.base64.decode(e);if(this.isSensitive&&i.isNode()&&"function"==typeof i.Buffer.alloc){var r=i.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=i.base64.encode}function h(){d.apply(this,arguments)}function m(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:f,boolean:m,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:p,base64:h,binary:d},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter((function(e){return!e.match(/documentation/)})));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:f,StringShape:p,BooleanShape:m,Base64Shape:h},e.exports=s},(e,t,r)=>{var n=r(122).memoizedProperty;function i(e,t,r,i){n(this,i(e),(function(){return r(e,t)}))}e.exports=function(e,t,r,n,o){for(var a in n=n||String,e)Object.prototype.hasOwnProperty.call(e,a)&&(i.call(this,a,e[a],r,n),o&&o(a,e[a]))}},(e,t,r)=>{var n=r(122),i=r(127).populateHostPrefix;function o(e,t,r,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(n.each(r.members,(function(e,t){var r=i[e];if(null!=r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,(function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))}))}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=r.map((function(e){return n.uriEscape(t.member.toWireFormat(e).toString())})):"map"===t.type?n.each(r,(function(e,t){Array.isArray(t)?a[e]=t.map((function(e){return n.uriEscape(String(e))})):a[e]=n.uriEscape(String(t))})):a[t.name]=n.uriEscape(t.toWireFormat(r).toString()))})),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];n.arrayEach(Object.keys(a).sort(),(function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t<a[e].length;t++)u.push(n.uriEscape(String(e))+"="+a[e][t])})),o+=u.join("&")}return o}e.exports={buildRequest:function(e){!function(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}(e),function(e){var t=e.service.api.operations[e.operation],r=t.input,n=o(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=n}(e),function(e){var t=e.service.api.operations[e.operation];n.each(t.input.members,(function(t,r){var i=e.params[t];null!=i&&("headers"===r.location&&"map"===r.type?n.each(i,(function(t,n){e.httpRequest.headers[r.name+t]=n})):"header"===r.location&&(i=r.toWireFormat(i).toString(),r.isJsonValue&&(i=n.base64.encode(i)),e.httpRequest.headers[r.name]=i))}))}(e),i(e)},extractError:function(){},extractData:function(e){var t=e.request,r={},i=e.httpResponse,o=t.service.api.operations[t.operation].output,a={};n.each(i.headers,(function(e,t){a[e.toLowerCase()]=t})),n.each(o.members,(function(e,t){var o=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var s=t.isLocationName?t.name:"",u=new RegExp("^"+s+"(.+)","i");n.each(i.headers,(function(t,n){var i=t.match(u);null!==i&&(r[e][i[1]]=n)}))}else if("header"===t.location){if(void 0!==a[o]){var c=t.isJsonValue?n.base64.decode(a[o]):a[o];r[e]=t.toType(c)}}else"statusCode"===t.location&&(r[e]=parseInt(i.statusCode,10))})),e.data=r},generateURI:o}},(e,t,r)=>{var n=r(123),i=r(122),o=r(132),a=r(124),s=r(125),u=r(126),c=["GET","HEAD","DELETE"];function l(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}e.exports={buildRequest:function(e){o.buildRequest(e),c.indexOf(e.httpRequest.method)<0&&function(e){var t=new s,r=e.service.api.operations[e.operation].input;if(r.payload){var n,i=r.members[r.payload];n=e.params[r.payload],"structure"===i.type?(e.httpRequest.body=t.build(n||{},i),l(e)):void 0!==n&&(e.httpRequest.body=n,("binary"===i.type||i.isStreaming)&&l(e,!0))}else e.httpRequest.body=t.build(e.params,r),l(e)}(e)},extractError:function(e){a.extractError(e)},extractData:function(e){o.extractData(e);var t=e.request,r=t.service.api.operations[t.operation],s=t.service.api.operations[t.operation].output||{};if(r.hasEventOutput,s.payload){var c=s.members[s.payload],l=e.httpResponse.body;if(c.isEventStream)f=new u,e.data[s.payload]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:l,f,c);else if("structure"===c.type||"list"===c.type){var f=new u;e.data[s.payload]=f.parse(l,c)}else"binary"===c.type||c.isStreaming?e.data[s.payload]=l:e.data[s.payload]=c.toType(l)}else{var p=e.data;a.extractData(e),e.data=i.merge(p,e.data)}},unsetContentLength:function(e){void 0===i.getRequestPayloadShape(e)&&c.indexOf(e.httpRequest.method)>=0&&delete e.httpRequest.headers["Content-Length"]}}},(e,t,r)=>{var n=r(123),i=r(122),o=r(132);e.exports={buildRequest:function(e){o.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,o=e.params,a=t.payload;if(a){var s=t.members[a];if(void 0===(o=o[a]))return;if("structure"===s.type){var u=s.name;e.httpRequest.body=r.toXML(o,s,u,!0)}else e.httpRequest.body=o}else e.httpRequest.body=r.toXML(o,t,t.name||t.shape||i.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;o.extractError(e);try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=i.error(new Error,{code:t.Code,message:t.Message}):e.error=i.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t;o.extractData(e);var r=e.request,a=e.httpResponse.body,s=r.service.api.operations[r.operation],u=s.output,c=(s.hasEventOutput,u.payload);if(c){var l=u.members[c];l.isEventStream?(t=new n.XML.Parser,e.data[c]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,l)):"structure"===l.type?(t=new n.XML.Parser,e.data[c]=t.parse(a.toString(),l)):"binary"===l.type||l.isStreaming?e.data[c]=a:e.data[c]=l.toType(a)}else if(a.length>0){var f=(t=new n.XML.Parser).parse(a.toString(),u);i.update(e.data,f)}}}},(e,t,r)=>{var n=r(122),i=r(136).XmlNode,o=r(138).XmlText;function a(){}function s(e,t,r){switch(r.type){case"structure":return function(e,t,r){n.arrayEach(r.memberNames,(function(n){var o=r.members[n];if("body"===o.location){var a=t[n],c=o.name;if(null!=a)if(o.isXmlAttribute)e.addAttribute(c,a);else if(o.flattened)s(e,a,o);else{var l=new i(c);e.addChildNode(l),u(l,o),s(l,a,o)}}}))}(e,t,r);case"map":return function(e,t,r){var o=r.key.name||"key",a=r.value.name||"value";n.each(t,(function(t,n){var u=new i(r.flattened?r.name:"entry");e.addChildNode(u);var c=new i(o),l=new i(a);u.addChildNode(c),u.addChildNode(l),s(c,t,r.key),s(l,n,r.value)}))}(e,t,r);case"list":return function(e,t,r){r.flattened?n.arrayEach(t,(function(t){var n=r.member.name||r.name,o=new i(n);e.addChildNode(o),s(o,t,r.member)})):n.arrayEach(t,(function(t){var n=r.member.name||"member",o=new i(n);e.addChildNode(o),s(o,t,r.member)}))}(e,t,r);default:return function(e,t,r){e.addChildNode(new o(r.toWireFormat(t)))}(e,t,r)}}function u(e,t,r){var n,i="xmlns";t.xmlNamespaceUri?(n=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(i+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(n=t.api.xmlNamespaceUri),n&&e.addAttribute(i,n)}a.prototype.toXML=function(e,t,r,n){var o=new i(r);return u(o,t,!0),s(o,e,t),o.children.length>0||n?o.toString():""},e.exports=a},(e,t,r)=>{var n=r(137).escapeAttribute;function i(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}i.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},i.prototype.addChildNode=function(e){return this.children.push(e),this},i.prototype.removeAttribute=function(e){return delete this.attributes[e],this},i.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,i=0,o=Object.keys(r);i<o.length;i++){var a=o[i],s=r[a];null!=s&&(t+=" "+a+'="'+n(""+s)+'"')}return t+(e?">"+this.children.map((function(e){return e.toString()})).join("")+"</"+this.name+">":"/>")},e.exports={XmlNode:i}},e=>{e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},(e,t,r)=>{var n=r(139).escapeElement;function i(e){this.value=e}i.prototype.toString=function(){return n(""+this.value)},e.exports={XmlText:i}},e=>{e.exports={escapeElement:function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}},(e,t,r)=>{var n=r(131),i=r(141),o=r(130),a=r(142),s=r(143),u=r(144),c=r(122),l=c.property,f=c.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var p=t.serviceIdentifier;delete t.serviceIdentifier,l(this,"isApi",!0,!1),l(this,"apiVersion",e.metadata.apiVersion),l(this,"endpointPrefix",e.metadata.endpointPrefix),l(this,"signingName",e.metadata.signingName),l(this,"globalEndpoint",e.metadata.globalEndpoint),l(this,"signatureVersion",e.metadata.signatureVersion),l(this,"jsonVersion",e.metadata.jsonVersion),l(this,"targetPrefix",e.metadata.targetPrefix),l(this,"protocol",e.metadata.protocol),l(this,"timestampFormat",e.metadata.timestampFormat),l(this,"xmlNamespaceUri",e.metadata.xmlNamespace),l(this,"abbreviation",e.metadata.serviceAbbreviation),l(this,"fullName",e.metadata.serviceFullName),l(this,"serviceId",e.metadata.serviceId),p&&u[p]&&l(this,"xmlNoDefaultLists",u[p].xmlNoDefaultLists,!1),f(this,"className",(function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null})),l(this,"operations",new n(e.operations,t,(function(e,r){return new i(e,r,t)}),c.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&l(r,"endpointOperation",c.string.lowerFirst(e)),t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&l(r,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)}))),l(this,"shapes",new n(e.shapes,t,(function(e,r){return o.create(r,t)}))),l(this,"paginators",new n(e.paginators,t,(function(e,r){return new a(e,r,t)}))),l(this,"waiters",new n(e.waiters,t,(function(e,r){return new s(e,r,t)}),c.string.lowerFirst)),t.documentation&&(l(this,"documentation",e.documentation),l(this,"documentationUrl",e.documentationUrl)),l(this,"awsQueryCompatible",e.metadata.awsQueryCompatible)}},(e,t,r)=>{var n=r(130),i=r(122),o=i.property,a=i.memoizedProperty;e.exports=function(e,t,r){var i=this;r=r||{},o(this,"name",t.name||e),o(this,"api",r.api,!1),t.http=t.http||{},o(this,"endpoint",t.endpoint),o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");var s=t.httpChecksumRequired||t.httpChecksum&&t.httpChecksum.requestChecksumRequired;o(this,"httpChecksumRequired",s,!1),a(this,"input",(function(){return t.input?n.create(t.input,r):new n.create({type:"structure"},r)})),a(this,"output",(function(){return t.output?n.create(t.output,r):new n.create({type:"structure"},r)})),a(this,"errors",(function(){var e=[];if(!t.errors)return null;for(var i=0;i<t.errors.length;i++)e.push(n.create(t.errors[i],r));return e})),a(this,"paginator",(function(){return r.api.paginators[e]})),r.documentation&&(o(this,"documentation",t.documentation),o(this,"documentationUrl",t.documentationUrl)),a(this,"idempotentMembers",(function(){var e=[],t=i.input,r=t.members;if(!t.members)return e;for(var n in r)r.hasOwnProperty(n)&&!0===r[n].isIdempotent&&e.push(n);return e})),a(this,"hasEventOutput",(function(){return function(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r){return t[r].isEventStream}for(var n in t)if(!t.hasOwnProperty(n)&&!0===t[n].isEventStream)return!0;return!1}(i.output)}))}},(e,t,r)=>{var n=r(122).property;e.exports=function(e,t){n(this,"inputToken",t.input_token),n(this,"limitKey",t.limit_key),n(this,"moreResults",t.more_results),n(this,"outputToken",t.output_token),n(this,"resultKey",t.result_key)}},(e,t,r)=>{var n=r(122),i=n.property;e.exports=function(e,t,r){r=r||{},i(this,"name",e),i(this,"api",r.api,!1),t.operation&&i(this,"operation",n.string.lowerFirst(t.operation));var o=this;["type","description","delay","maxAttempts","acceptors"].forEach((function(e){var r=t[e];r&&i(o,e,r)}))}},e=>{"use strict";e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog","cors":true},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp","cors":true},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"},"privatenetworks":{"name":"PrivateNetworks"},"supportapp":{"prefix":"support-app","name":"SupportApp"},"controltower":{"name":"ControlTower"},"iotfleetwise":{"name":"IoTFleetWise"},"migrationhuborchestrator":{"name":"MigrationHubOrchestrator"},"connectcases":{"name":"ConnectCases"},"resourceexplorer2":{"prefix":"resource-explorer-2","name":"ResourceExplorer2"},"scheduler":{"name":"Scheduler"},"chimesdkvoice":{"prefix":"chime-sdk-voice","name":"ChimeSDKVoice"},"ssmsap":{"prefix":"ssm-sap","name":"SsmSap"},"oam":{"name":"OAM"},"arczonalshift":{"prefix":"arc-zonal-shift","name":"ARCZonalShift"},"omics":{"name":"Omics"},"opensearchserverless":{"name":"OpenSearchServerless"},"securitylake":{"name":"SecurityLake"},"simspaceweaver":{"name":"SimSpaceWeaver"},"docdbelastic":{"prefix":"docdb-elastic","name":"DocDBElastic"},"sagemakergeospatial":{"prefix":"sagemaker-geospatial","name":"SageMakerGeospatial"},"codecatalyst":{"name":"CodeCatalyst"},"pipes":{"name":"Pipes"},"sagemakermetrics":{"prefix":"sagemaker-metrics","name":"SageMakerMetrics"},"kinesisvideowebrtcstorage":{"prefix":"kinesis-video-webrtc-storage","name":"KinesisVideoWebRTCStorage"},"licensemanagerlinuxsubscriptions":{"prefix":"license-manager-linux-subscriptions","name":"LicenseManagerLinuxSubscriptions"},"kendraranking":{"prefix":"kendra-ranking","name":"KendraRanking"},"cleanrooms":{"name":"CleanRooms"},"cloudtraildata":{"prefix":"cloudtrail-data","name":"CloudTrailData"},"tnb":{"name":"Tnb"},"internetmonitor":{"name":"InternetMonitor"},"ivsrealtime":{"prefix":"ivs-realtime","name":"IVSRealTime"},"vpclattice":{"prefix":"vpc-lattice","name":"VPCLattice"},"osis":{"name":"OSIS"},"mediapackagev2":{"name":"MediaPackageV2"},"paymentcryptography":{"prefix":"payment-cryptography","name":"PaymentCryptography"},"paymentcryptographydata":{"prefix":"payment-cryptography-data","name":"PaymentCryptographyData"},"codegurusecurity":{"prefix":"codeguru-security","name":"CodeGuruSecurity"},"verifiedpermissions":{"name":"VerifiedPermissions"},"appfabric":{"name":"AppFabric"},"medicalimaging":{"prefix":"medical-imaging","name":"MedicalImaging"},"entityresolution":{"name":"EntityResolution"},"managedblockchainquery":{"prefix":"managedblockchain-query","name":"ManagedBlockchainQuery"},"neptunedata":{"name":"Neptunedata"},"pcaconnectorad":{"prefix":"pca-connector-ad","name":"PcaConnectorAd"},"bedrock":{"name":"Bedrock"},"bedrockruntime":{"prefix":"bedrock-runtime","name":"BedrockRuntime"},"datazone":{"name":"DataZone"},"launchwizard":{"prefix":"launch-wizard","name":"LaunchWizard"},"trustedadvisor":{"name":"TrustedAdvisor"},"inspectorscan":{"prefix":"inspector-scan","name":"InspectorScan"},"bcmdataexports":{"prefix":"bcm-data-exports","name":"BCMDataExports"},"costoptimizationhub":{"prefix":"cost-optimization-hub","name":"CostOptimizationHub"},"eksauth":{"prefix":"eks-auth","name":"EKSAuth"},"freetier":{"name":"FreeTier"},"repostspace":{"name":"Repostspace"},"workspacesthinclient":{"prefix":"workspaces-thin-client","name":"WorkSpacesThinClient"},"b2bi":{"name":"B2bi"},"bedrockagent":{"prefix":"bedrock-agent","name":"BedrockAgent"},"bedrockagentruntime":{"prefix":"bedrock-agent-runtime","name":"BedrockAgentRuntime"},"qbusiness":{"name":"QBusiness"},"qconnect":{"name":"QConnect"},"cleanroomsml":{"name":"CleanRoomsML"},"marketplaceagreement":{"prefix":"marketplace-agreement","name":"MarketplaceAgreement"},"marketplacedeployment":{"prefix":"marketplace-deployment","name":"MarketplaceDeployment"},"networkmonitor":{"name":"NetworkMonitor"},"supplychain":{"name":"SupplyChain"},"artifact":{"name":"Artifact"},"chatbot":{"name":"Chatbot"},"timestreaminfluxdb":{"prefix":"timestream-influxdb","name":"TimestreamInfluxDB"},"codeconnections":{"name":"CodeConnections"},"deadline":{"name":"Deadline"},"controlcatalog":{"name":"ControlCatalog"},"route53profiles":{"name":"Route53Profiles"},"mailmanager":{"name":"MailManager"},"taxsettings":{"name":"TaxSettings"},"applicationsignals":{"prefix":"application-signals","name":"ApplicationSignals"},"pcaconnectorscep":{"prefix":"pca-connector-scep","name":"PcaConnectorScep"},"apptest":{"name":"AppTest"}}')},e=>{function t(e,r){if(!t.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return t.services[e][r]}t.services={},e.exports=t},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(147),i=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new n.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n="string"!=typeof t?e.getKeyString(t):t,i=this.populateValue(r);this.cache.put(n,i)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,n=Date.now(),i=this.cache.get(r);if(i){for(var o=i.length-1;o>=0;o--){i[o].Expire<n&&i.splice(o,1)}if(0===i.length)return void this.cache.remove(r)}return i},e.getKeyString=function(e){for(var t=[],r=Object.keys(e).sort(),n=0;n<r.length;n++){var i=r[n];void 0!==e[i]&&t.push(e[i])}return t.join(" ")},e.prototype.populateValue=function(e){var t=Date.now();return e.map((function(e){return{Address:e.Address||"",Expire:t+60*(e.CachePeriodInMinutes||1)*1e3}}))},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r="string"!=typeof t?e.getKeyString(t):t;this.cache.remove(r)},e}();t.EndpointCache=i},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.key=e,this.value=t},n=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var n=this.removeFromTail().key;delete this.nodeMap[n]}var i=new r(e,t);this.nodeMap[e]=i,this.prependToList(i)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t<e.length;t++){var r=e[t],n=this.nodeMap[r];this.detachFromList(n),delete this.nodeMap[r]}},e}();t.LRUCache=n},(e,t,r)=>{var n=r(123);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o<n;++o)r[o]===t&&(i=o);i>-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,a=i||null;function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,(function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},(e,t,r)=>{var n=r(123),i=r(140),o=r(150),a=n.util.inherit,s=0,u=r(152);n.Service=a({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var t=e.region;u.isFipsRegion(t)&&(e.region=u.getRealRegion(t),e.useFipsEndpoint=!0),u.isGlobalRegion(t)&&(e.region=u.getRealRegion(t))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var r=this.loadServiceClass(e||{});if(r){var i=n.util.copy(e),o=new r(e);return Object.defineProperty(o,"_originalConfig",{get:function(){return i},enumerable:!1,configurable:!0}),o._clientId=++s,o}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||o.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",(function(e){process.nextTick((function(){r.eventHandler(e)}))})),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",(function(e){process.nextTick((function(){r.eventHandler(e)}))}))}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new n.Config(n.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=n.util.copy(t),n.util.each(this.config.params,(function(e,r){i.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))})))}var o=new n.Request(this,e,t);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),r&&o.send(r),o},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(n.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCall",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},n=e.response;if(n.httpResponse.statusCode&&(r.FinalHttpStatusCode=n.httpResponse.statusCode),n.error){var i=n.error;n.httpResponse.statusCode>299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,i,o,a,s,u=0,c=this,l=!0;e.on("validate",(function(){o=n.util.realClock.now(),s=Date.now()}),l),e.on("sign",(function(){r=n.util.realClock.now(),t=Date.now(),a=e.httpRequest.region,u++}),l),e.on("validateResponse",(function(){i=Math.round(n.util.realClock.now()-r)})),e.addNamedListener("API_CALL_ATTEMPT","success",(function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=a,c.emit("apiCallAttempt",[r])})),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",(function(){var o=c.attemptFailEvent(e);o.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),o.AttemptLatency=i>=0?i:0,o.Region=a,c.emit("apiCallAttempt",[o])})),e.addNamedListener("API_CALL","complete",(function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=s;var r=Math.round(n.util.realClock.now()-o);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"==typeof i.retryCount&&"number"==typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}}))},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,i="";e&&(i=(r=(e.service.api.operations||{})[e.operation]||null)?r.authtype:"");return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===i||"v4-unsigned-body"===i?"v4":"bearer"===i?"bearer":this.api.signatureVersion,n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=(t=(t=t.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw n.util.error(i,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,(function(t){e.prototype[t]||("none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)})}))},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=a(n.Service,r||{});if("string"==typeof e){n.Service.addVersions(i,t);var o=i.serviceIdentifier||e;i.serviceIdentifier=o}else i.prototype.api=e,n.Service.defineMethods(i);if(n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var s=n.util.clientSideMonitoring.Publisher,u=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new s(u),u.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(i.prototype),n.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){var o=a(e,{serviceIdentifier:e.serviceIdentifier});function s(t){t.isApi?o.prototype.api=t:o.prototype.api=new i(t,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof t){if(r)s(r);else try{s(n.apiLoader(e.serviceIdentifier,t))}catch(r){throw n.util.error(r,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=o}else s(t);return n.Service.defineMethods(o),o},hasService:function(e){return Object.prototype.hasOwnProperty.call(n.Service._serviceMap,e)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",(function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCallAttempt",[t])})),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",(function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCall",[t])}))},_serviceMap:{}}),n.util.mixin(n.Service,n.SequentialExecutor),e.exports=n.Service},(e,t,r)=>{var n=r(122),i=r(151);function o(e,t){n.each(t,(function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))}))}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,r=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),n=e.api.endpointPrefix;return[[t,n],[r,n],[t,"*"],[r,"*"],["*",n],[t,"internal-*"],["*","*"]].map((function(e){return e[0]&&e[1]?e.join("/"):null}))}(e),r=e.config.useFipsEndpoint,n=e.config.useDualstackEndpoint,a=0;a<t.length;a++){var s=t[a];if(s){var u=r?n?i.dualstackFipsRules:i.fipsRules:n?i.dualstackRules:i.rules;if(Object.prototype.hasOwnProperty.call(u,s)){var c=u[s];"string"==typeof c&&(c=i.patterns[c]),e.isGlobalEndpoint=!!c.globalEndpoint,c.signingRegion&&(e.signingRegion=c.signingRegion),c.signatureVersion||(c.signatureVersion="v4");var l="bearer"===(e.api&&e.api.signatureVersion);return void o(e,Object.assign({},c,{signatureVersion:l?"bearer":c.signatureVersion}))}}}},getEndpointSuffix:function(e){for(var t={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},r=Object.keys(t),n=0;n<r.length;n++){var i=RegExp(r[n]),o=t[r[n]];if(i.test(e))return o}return"amazonaws.com"}}},e=>{"use strict";e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"eu-isoe-*/*":"euIsoe","us-iso-*/*":"usIso","us-isob-*/*":"usIsob","us-isof-*/*":"usIsof","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-iso-*/iam":{"endpoint":"{service}.us-iso-east-1.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-gov-*/iam":"globalGovCloud","*/ce":{"endpoint":"{service}.us-east-1.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"cn-*/ce":{"endpoint":"{service}.cn-northwest-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"},"*/resource-explorer-2":"dualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"globalDualstackByDefault"},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/access-analyzer":"fipsWithServiceOnly","us-gov-*/acm":"fipsWithServiceOnly","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/api.sagemaker":"fipsWithServiceOnly","us-gov-*/appconfig":"fipsWithServiceOnly","us-gov-*/application-autoscaling":"fipsWithServiceOnly","us-gov-*/autoscaling":"fipsWithServiceOnly","us-gov-*/autoscaling-plans":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/cassandra":"fipsWithServiceOnly","us-gov-*/clouddirectory":"fipsWithServiceOnly","us-gov-*/cloudformation":"fipsWithServiceOnly","us-gov-*/cloudshell":"fipsWithServiceOnly","us-gov-*/cloudtrail":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/connect":"fipsWithServiceOnly","us-gov-*/databrew":"fipsWithServiceOnly","us-gov-*/dlm":"fipsWithServiceOnly","us-gov-*/dms":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/ec2":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticache":"fipsWithServiceOnly","us-gov-*/elasticbeanstalk":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/events":"fipsWithServiceOnly","us-gov-*/fis":"fipsWithServiceOnly","us-gov-*/glacier":"fipsWithServiceOnly","us-gov-*/greengrass":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/imagebuilder":"fipsWithServiceOnly","us-gov-*/kafka":"fipsWithServiceOnly","us-gov-*/kinesis":"fipsWithServiceOnly","us-gov-*/logs":"fipsWithServiceOnly","us-gov-*/mediaconvert":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/networkmanager":"fipsWithServiceOnly","us-gov-*/organizations":"fipsWithServiceOnly","us-gov-*/outposts":"fipsWithServiceOnly","us-gov-*/participant.connect":"fipsWithServiceOnly","us-gov-*/ram":"fipsWithServiceOnly","us-gov-*/rds":"fipsWithServiceOnly","us-gov-*/redshift":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/serverlessrepo":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/sns":"fipsWithServiceOnly","us-gov-*/sqs":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/streams.dynamodb":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-*/swf":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"},"*/resource-explorer-2":"fipsDualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"fipsGlobalDualstackByDefault"},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"euIsoe":{"endpoint":"{service}.{region}.cloud.adc-e.uk"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"usIsof":{"endpoint":"{service}.{region}.csp.hci.ic.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"},"dualstackByDefault":{"endpoint":"{service}.{region}.api.aws"},"fipsDualstackByDefault":{"endpoint":"{service}-fips.{region}.api.aws"},"globalDualstackByDefault":{"endpoint":"{service}.global.api.aws"},"fipsGlobalDualstackByDefault":{"endpoint":"{service}-fips.global.api.aws"}}}')},e=>{e.exports={isFipsRegion:function(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},isGlobalRegion:function(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)},getRealRegion:function(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},(e,t,r)=>{var n,i=r(123);r(154),r(155),i.Config=i.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),i.util.each.call(this,this.keys,(function(t,r){this.set(t,e[t],r)}))},getCredentials:function(e){var t,r=this;function n(t){e(t,t?null:r.credentials)}function o(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?r.credentials.get((function(e){e&&(e=o("Could not load credentials from "+r.credentials.constructor.name,e)),n(e)})):(t=null,r.credentials.accessKeyId&&r.credentials.secretAccessKey||(t=o("Missing credentials")),n(t)):r.credentialProvider?r.credentialProvider.resolve((function(e,t){e&&(e=o("Could not load credentials from any providers",e)),r.credentials=t,n(e)})):n(o("No credentials to load"))},getToken:function(e){var t,r=this;function n(t){e(t,t?null:r.token)}function o(e,t){return new i.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}r.token?"function"==typeof r.token.get?r.token.get((function(e){e&&(e=o("Could not load token from "+r.token.constructor.name,e)),n(e)})):(t=null,r.token.token||(t=o("Missing token")),n(t)):r.tokenProvider?r.tokenProvider.resolve((function(e,t){e&&(e=o("Could not load token from any providers",e)),r.token=t,n(e)})):n(o("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),i.util.each.call(this,e,(function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e))&&this.set(e,r)}))},loadFromPath:function(e){this.clear();var t=JSON.parse(i.util.readFileSync(e)),r=new i.FileSystemCredentials(e),n=new i.CredentialProviderChain;return n.providers.unshift(r),n.resolve((function(e,r){if(e)throw e;t.credentials=r})),this.constructor(t),this},clear:function(){i.util.each.call(this,this.keys,(function(e){delete this[e]})),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=i.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&((e=i.util.copy(e)).credentials=new i.Credentials(e)),e},setPromisesDependency:function(e){n=e,null===e&&"function"==typeof Promise&&(n=Promise);var t=[i.Request,i.Credentials,i.CredentialProviderChain];i.S3&&(t.push(i.S3),i.S3.ManagedUpload&&t.push(i.S3.ManagedUpload)),i.util.addPromises(t,n)},getPromisesDependency:function(){return n}}),i.config=new i.Config},(e,t,r)=>{var n=r(123);n.Credentials=n.util.inherit({constructor:function(){if(n.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh((function(r){r||(t.expired=!1),e&&e(r)})):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load((function(e){n.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):n.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},(e,t,r)=>{var n=r(123);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,i=t.providers.slice(0);!function e(o,a){if(!o&&a||r===i.length)return n.util.arrayEach(t.resolveCallbacks,(function(e){e(o,a)})),void(t.resolveCallbacks.length=0);var s=i[r++];(a="function"==typeof s?s.call():s).get?a.get((function(t){e(t,t?null:a)})):e(null,a)}()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},(e,t,r)=>{var n=r(123),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e);n.util.update(this,n.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({constructor:function(e,t){e=new n.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),n.HttpResponse=i({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),n.HttpClient=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},(e,t,r)=>{var n=r(123),i=r(148),o=r(158).discoverEndpoint;function a(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}function s(e){var t=e.service;return t.config.signatureVersion?t.config.signatureVersion:t.api.signatureVersion?t.api.signatureVersion:a(e)}n.EventListeners={Core:{}},n.EventListeners={Core:(new i).addNamedListeners((function(e,t){t("VALIDATE_CREDENTIALS","validate",(function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();"bearer"!==s(e)?e.service.config.getCredentials((function(r){r&&(e.response.error=n.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()})):e.service.config.getToken((function(r){r&&(e.response.error=n.util.error(r,{code:"TokenError"})),t()}))})),e("VALIDATE_REGION","validate",(function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}})),e("BUILD_IDEMPOTENCY_TOKENS","validate",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var i=n.util.copy(e.params),o=0,a=r.length;o<a;o++)i[r[o]]||(i[r[o]]=n.util.uuid.v4());e.params=i}}}})),e("VALIDATE_PARAMETERS","validate",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input,r=e.service.config.paramValidation;new n.ParamValidator(r).validate(t,e.params)}})),e("COMPUTE_CHECKSUM","afterBuild",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=e.httpRequest.body,i=r&&(n.util.Buffer.isBuffer(r)||"string"==typeof r),o=e.httpRequest.headers;if(t.httpChecksumRequired&&e.service.config.computeChecksums&&i&&!o["Content-MD5"]){var a=n.util.crypto.md5(r,"base64");o["Content-MD5"]=a}}}})),t("COMPUTE_SHA256","afterBuild",(function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],i=r?r.authtype:"";if(!e.service.api.signatureVersion&&!i&&!e.service.config.signatureVersion)return t();if(e.service.getSignerClass(e)===n.Signers.V4){var o=e.httpRequest.body||"";if(i.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();n.util.computeSha256(o,(function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())}))}else t()}})),e("SET_CONTENT_LENGTH","afterBuild",(function(e){var t=a(e),r=n.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var i=n.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=i}catch(n){if(r&&r.isStreaming){if(r.requiresLength)throw n;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw n}throw n}})),e("SET_HTTP_HOST","afterBuild",(function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host})),e("SET_TRACE_ID","afterBuild",(function(e){var t="X-Amzn-Trace-Id";if(n.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,t)){var r=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID;"string"==typeof r&&r.length>0&&"string"==typeof i&&i.length>0&&(e.httpRequest.headers[t]=i)}})),e("RESTART","restart",(function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new n.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}));t("DISCOVER_ENDPOINT","sign",o,!0),t("SIGN","sign",(function(e,t){var r=e.service,n=s(e);if(!n||0===n.length)return t();"bearer"===n?r.config.getToken((function(n,i){if(n)return e.response.error=n,t();try{new(r.getSignerClass(e))(e.httpRequest).addAuthorization(i)}catch(t){e.response.error=t}t()})):r.config.getCredentials((function(n,i){if(n)return e.response.error=n,t();try{var o=r.getSkewCorrectedDate(),a=r.getSignerClass(e),s=(e.service.api.operations||{})[e.operation],u=new a(e.httpRequest,r.getSigningName(e),{signatureCache:r.config.signatureCache,operation:s,signatureVersion:r.api.signatureVersion});u.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],u.addAuthorization(i,o),e.signedAt=o}catch(t){e.response.error=t}t()}))})),e("VALIDATE_RESPONSE","validateResponse",(function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=n.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))})),e("ERROR","error",(function(e,t){if(t.request.service.api.awsQueryCompatible){var r=t.httpResponse.headers,n=r?r["x-amzn-query-error"]:void 0;n&&n.includes(";")&&(t.error.code=n.split(";")[0])}}),!0),t("SEND","send",(function(e,t){function r(r){e.httpResponse.stream=r;var i=e.request.httpRequest.stream,o=e.request.service,a=o.api,s=e.request.operation,u=a.operations[s]||{};r.on("headers",(function(i,a,s){if(e.request.emit("httpHeaders",[i,a,e,s]),!e.httpResponse.streaming)if(2===n.HttpClient.streamsApiVersion){if(u.hasEventOutput&&o.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",(function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])}))}else r.on("data",(function(t){e.request.emit("httpData",[t,e])}))})),r.on("end",(function(){if(!i||!i.didCallback){if(2===n.HttpClient.streamsApiVersion&&u.hasEventOutput&&o.successfulResponse(e))return;e.request.emit("httpDone"),t()}}))}function i(r){if("RequestAbortedError"!==r.code){var i="TimeoutError"===r.code?r.code:"NetworkingError";r=n.util.error(r,{code:i,region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})}e.error=r,e.request.emit("httpError",[e.error,e],(function(){t()}))}function o(){var t,o=n.HttpClient.getInstance(),a=e.request.service.config.httpOptions||{};try{var s=o.handleRequest(e.request.httpRequest,a,r,i);(t=s).on("sendProgress",(function(t){e.request.emit("httpUploadProgress",[t,e])})),t.on("receiveProgress",(function(t){e.request.emit("httpDownloadProgress",[t,e])}))}catch(e){i(e)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],(function(e){e?t(e):o()})):o()})),e("HTTP_HEADERS","httpHeaders",(function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=n.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var o=t.date||t.Date,a=r.request.service;if(o){var s=Date.parse(o);a.config.correctClockSkew&&a.isClockSkewed(s)&&a.applyClockOffset(s)}})),e("HTTP_DATA","httpData",(function(e,t){if(e){if(n.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],i={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[i,t])}t.httpResponse.buffers.push(n.util.buffer.toBuffer(e))}})),e("HTTP_DONE","httpDone",(function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=n.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers})),e("FINALIZE_ERROR","retry",(function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))})),e("INVALIDATE_CREDENTIALS","retry",(function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}})),e("EXPIRED_SIGNATURE","retry",(function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)})),e("CLOCK_SKEWED","retry",(function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)})),e("REDIRECT","retry",(function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,this.httpRequest.path=this.httpRequest.endpoint.path,e.error.redirect=!0,e.error.retryable=!0)})),e("RETRY_CHECK","retry",(function(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount,e.error)||0))})),t("RESET_RETRY_STATE","afterRetry",(function(e,t){var r,n=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,n=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,n=!0)),n&&r>=0?(e.error=null,setTimeout(t,r)):t()}))})),CorePost:(new i).addNamedListeners((function(e){e("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",(function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=n.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}}))})),Logger:(new i).addNamedListeners((function(e){e("LOG_REQUEST","complete",(function(e){var t=e.request,i=t.service.config.logger;if(i){var o=function(){var o=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,s=!!i.isTTY,u=e.httpResponse.statusCode,c=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(c=a(t.service.api.operations[t.operation].input,t.params));var l=r(159).inspect(c,!0,null),f="";return s&&(f+=""),f+="[AWS "+t.service.serviceIdentifier+" "+u,f+=" "+o.toString()+"s "+e.retryCount+" retries]",s&&(f+=""),f+=" "+n.util.string.lowerFirst(t.operation),f+="("+l+")",s&&(f+=""),f}();"function"==typeof i.log?i.log(o):"function"==typeof i.write&&i.write(o+"\n")}function a(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var r={};return n.util.each(t,(function(t,n){Object.prototype.hasOwnProperty.call(e.members,t)?r[t]=a(e.members[t],n):r[t]=n})),r;case"list":var i=[];return n.util.arrayEach(t,(function(t,r){i.push(a(e.member,t))})),i;case"map":var o={};return n.util.each(t,(function(t,r){o[t]=a(e.value,r)})),o;default:return t}}}))})),Json:(new i).addNamedListeners((function(e){var t=r(124);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Rest:(new i).addNamedListeners((function(e){var t=r(132);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestJson:(new i).addNamedListeners((function(e){var t=r(133);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError),e("UNSET_CONTENT_LENGTH","afterBuild",t.unsetContentLength)})),RestXml:(new i).addNamedListeners((function(e){var t=r(134);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Query:(new i).addNamedListeners((function(e){var t=r(128);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}))}},(e,t,r)=>{var n=r(123),i=r(122),o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function a(e){var t=e.service,r=t.api||{},n=(r.operations,{});return t.config.region&&(n.region=t.config.region),r.serviceId&&(n.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(n.accessKeyId=t.config.credentials.accessKeyId),n}function s(e,t,r){r&&null!=t&&"structure"===r.type&&r.required&&r.required.length>0&&i.arrayEach(r.required,(function(n){var i=r.members[n];if(!0===i.endpointDiscoveryId){var o=i.isLocationName?i.name:n;e[o]=String(t[n])}else s(e,t[n],i)}))}function u(e,t){var r={};return s(r,e.params,t),r}function c(e){var t=e.service,r=t.api,o=r.operations?r.operations[e.operation]:void 0,s=u(e,o?o.input:void 0),c=a(e);Object.keys(s).length>0&&(c=i.update(c,s),o&&(c.operation=o.name));var l=n.endpointCache.get(c);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var f=t.makeRequest(r.endpointOperation,{Operation:o.name,Identifiers:s});p(f),f.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),f.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),f.send((function(e,t){t&&t.Endpoints?n.endpointCache.put(c,t.Endpoints):e&&n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])}))}}var l={};function f(e,t){var r=e.service,o=r.api,s=o.operations?o.operations[e.operation]:void 0,c=s?s.input:void 0,f=u(e,c),d=a(e);Object.keys(f).length>0&&(d=i.update(d,f),s&&(d.operation=s.name));var h=n.EndpointCache.getKeyString(d),m=n.endpointCache.get(h);if(m&&1===m.length&&""===m[0].Address)return l[h]||(l[h]=[]),void l[h].push({request:e,callback:t});if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address),t();else{var g=r.makeRequest(o.endpointOperation,{Operation:s.name,Identifiers:f});g.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),p(g),n.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),g.send((function(r,o){if(r){if(e.response.error=i.error(r,{retryable:!1}),n.endpointCache.remove(d),l[h]){var a=l[h];i.arrayEach(a,(function(e){e.request.response.error=i.error(r,{retryable:!1}),e.callback()})),delete l[h]}}else if(o&&(n.endpointCache.put(h,o.Endpoints),e.httpRequest.updateEndpoint(o.Endpoints[0].Address),l[h])){a=l[h];i.arrayEach(a,(function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address),e.callback()})),delete l[h]}t()}))}}function p(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function d(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var o=e.request,s=o.service.api.operations||{},c=u(o,s[o.operation]?s[o.operation].input:void 0),l=a(o);Object.keys(c).length>0&&(l=i.update(l,c),s[o.operation]&&(l.operation=s[o.operation].name)),n.endpointCache.remove(l)}}function h(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var r=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw i.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=n.config[e.serviceIdentifier]||{};return Boolean(n.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}(r)||e.isPresigned())return t();var a=(r.api.operations||{})[e.operation],s=a?a.endpointDiscoveryRequired:"NULL",u=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!i.isBrowser()){for(var r=0;r<o.length;r++){var a=o[r];if(Object.prototype.hasOwnProperty.call(process.env,a)){if(""===process.env[a]||void 0===process.env[a])throw i.error(new Error,{code:"ConfigurationException",message:"environmental variable "+a+" cannot be set to nothing"});return!h(process.env[a])}}var s={};try{s=n.util.iniLoader?n.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[n.util.sharedConfigFileEnv]}):{}}catch(e){}var u=s[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(u,"endpoint_discovery_enabled")){if(void 0===u.endpoint_discovery_enabled)throw i.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!h(u.endpoint_discovery_enabled)}}}(e),l=r.api.hasRequiredEndpointDiscovery;switch((u||l)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),s){case"OPTIONAL":(u||l)&&(c(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d)),t();break;case"REQUIRED":if(!1===u){e.response.error=i.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+e.operation+"() requires it. Please check your configurations."}),t();break}e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d),f(e,t);break;default:t()}},requiredDiscoverEndpoint:f,optionalDiscoverEndpoint:c,marshallCustomIdentifiers:u,getCacheKey:a,invalidateCachedEndpoint:d}},(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},i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)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<o;s=n[++r])g(s)||!S(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},a=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function u(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function l(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return v(i)||(i=f(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),w(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(w(r))return p(r)}var c,l="",S=!1,x=["{","}"];(h(r)&&(S=!0,x=["[","]"]),O(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return _(r)&&(l=" "+RegExp.prototype.toString.call(r)),E(r)&&(l=" "+Date.prototype.toUTCString.call(r)),w(r)&&(l=" "+p(r)),0!==a.length||S&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=S?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)C(t,String(a))?o.push(d(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return d(e,r,n,s,t,S)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,l,x)):x[0]+l+x[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(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")),C(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return"  "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return S(e)&&"[object RegExp]"===x(e)}function S(e){return"object"==typeof e&&null!==e}function E(e){return S(e)&&"[object Date]"===x(e)}function w(e){return S(e)&&("[object Error]"===x(e)||e instanceof Error)}function O(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(160),t.isArray=h,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=S,t.isDate=E,t.types.isDate=E,t.isError=w,t.types.isNativeError=w,t.isFunction=O,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(191);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(192),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var r=new 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 new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{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)),I&&Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=I,t.callbackify=function(e){if("function"!=typeof e)throw new 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 new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then((function(e){process.nextTick(o.bind(null,null,e))}),(function(e){process.nextTick(R.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},(e,t,r)=>{"use strict";var n=r(161),i=r(184),o=r(185),a=r(190);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 m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function _(e){return"[object WeakSet]"===l(e)}function S(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function w(e){return"[object DataView]"===l(e)}function O(e){return"undefined"!=typeof DataView&&(w.working?w(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)||O(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)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(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)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=E,w.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&w(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=O;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===l(e)}function k(e){return void 0!==x&&(void 0===T.working&&(T.working=T(new x)),T.working?T(e):e instanceof x)}function C(e){return g(e,f)}function I(e){return g(e,p)}function R(e){return g(e,d)}function A(e){return u&&g(e,h)}function P(e){return c&&g(e,m)}t.isSharedArrayBuffer=k,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=C,t.isStringObject=I,t.isBooleanObject=R,t.isBigIntObject=A,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return C(e)||I(e)||R(e)||A(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},(e,t,r)=>{"use strict";var n=r(162)(),i=r(164)("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},(e,t,r)=>{"use strict";var n=r(163);e.exports=function(){return n()&&!!Symbol.toStringTag}},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)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[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)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!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}},(e,t,r)=>{"use strict";var n=r(165),i=r(178),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}},(e,t,r)=>{"use strict";var n,i=r(166),o=r(167),a=r(168),s=r(169),u=r(170),c=r(171),l=r(172),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},m=d?function(){try{return h}catch(e){try{return d(arguments,"callee").get}catch(e){return h}}}():h,g=r(173)(),y=r(174)(),v=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),b={},_="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][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&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((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&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):n,"%Symbol%":g?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":_,"%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(v)try{null.error}catch(e){var E=v(v(e));S["%Error.prototype%"]=E}var w=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&&v&&(r=v(i.prototype))}return S[t]=r,r},O={__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"]},x=r(175),T=r(177),k=x.call(Function.call,Array.prototype.concat),C=x.call(Function.apply,Array.prototype.splice),I=x.call(Function.call,String.prototype.replace),R=x.call(Function.call,String.prototype.slice),A=x.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,N=function(e,t){var r,n=e;if(T(O,n)&&(n="%"+(r=O[n])[0]+"%"),T(S,n)){var i=S[n];if(i===b&&(i=w(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===A(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(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 I(e,P,(function(e,t,r,i){n[n.length]=r?I(i,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=N("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],C(r,k([0,1],l)));for(var f=1,p=!0;f<r.length;f+=1){var h=r[f],m=R(h,0,1),g=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),T(S,o="%"+(n+="."+h)+"%"))a=S[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 y=d(a,h);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[h]}else p=T(a,h),a=a[h];p&&!s&&(S[o]=a)}}return a}},e=>{"use strict";e.exports=Error},e=>{"use strict";e.exports=EvalError},e=>{"use strict";e.exports=RangeError},e=>{"use strict";e.exports=ReferenceError},e=>{"use strict";e.exports=SyntaxError},e=>{"use strict";e.exports=TypeError},e=>{"use strict";e.exports=URIError},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(163);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},(e,t,r)=>{"use strict";var n=r(176);e.exports=Function.prototype.bind||n},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};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}(arguments,1),s=r(0,i.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))})),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(175);e.exports=o.call(n,i)},(e,t,r)=>{"use strict";var n=r(175),i=r(165),o=r(179),a=r(171),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||n.call(u,s),l=r(181),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},(e,t,r)=>{"use strict";var n=r(165),i=r(180),o=r(183)(),a=r(182),s=r(171),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}},(e,t,r)=>{"use strict";var n=r(181),i=r(170),o=r(171),a=r(182);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.");e[t]=r}}},(e,t,r)=>{"use strict";var n=r(165)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},(e,t,r)=>{"use strict";var n=r(165)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},(e,t,r)=>{"use strict";var n=r(181),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},(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(162)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},(e,t,r)=>{"use strict";var n=r(186),i=r(188),o=r(178),a=r(164),s=r(182),u=a("Object.prototype.toString"),c=r(162)(),l="undefined"==typeof globalThis?r.g:globalThis,f=i(),p=a("String.prototype.slice"),d=Object.getPrototypeOf,h=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},m={__proto__:null};n(f,c&&s&&d?function(e){var t=new l[e];if(Symbol.toStringTag in t){var r=d(t),n=s(r,Symbol.toStringTag);if(!n){var i=d(r);n=s(i,Symbol.toStringTag)}m["$"+e]=o(n.get)}}:function(e){var t=new l[e],r=t.slice||t.set;r&&(m["$"+e]=o(r))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=p(u(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=p(n,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=p(n,1))}catch(e){}})),t}(e):null}},(e,t,r)=>{"use strict";var n=r(187),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},(e,t,r)=>{"use strict";var n=r(189),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},(e,t,r)=>{"use strict";var n=r(185);e.exports=function(e){return!!n(e)}},e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},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}}},(e,t,r)=>{var n=r(123),i=r(194),o=n.util.inherit,a=n.util.domain,s=r(195),u={success:1,error:1,complete:1};var c=new i;c.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=!1,r.emit(r._asm.currentState,(function(e){if(e)if(n=r,Object.prototype.hasOwnProperty.call(u,n._asm.currentState)){if(!(a&&r.domain instanceof a.Domain))throw e;e.domainEmitter=r,e.domain=r.domain,e.domainThrown=!1,r.domain.emit("error",e)}else r.response.error=e,t(e);else t(r.response.error);var n}))};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},c.setupStates(),n.Request=o({constructor:function(e,t,r){var o=e.endpoint,s=e.config.region,u=e.config.customUserAgent;e.signingRegion?s=e.signingRegion:e.isGlobalEndpoint&&(s="us-east-1"),this.domain=a&&a.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new n.HttpRequest(o,s),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new i(c.states,"validate"),this._haltHandlersOnError=!1,n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",(function(t){e.call(t,t.error,t.data)}))),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",(function(e){e.error=n.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})})),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){e=n.util.fn.makeAsync(e,3),this.on("complete",(function t(r){e.call(r,r.error,r.data,(function(i){!1!==i&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,n.util.fn.noop))}))})).send()},eachItem:function(e){var t=this;this.eachPage((function(r,i){if(r)return e(r,null);if(null===i)return e(null,null);var o=t.service.paginationConfig(t.operation).resultKey;Array.isArray(o)&&(o=o[0]);var a=s.search(i,o),u=!0;return n.util.arrayEach(a,(function(t){if(!1===(u=e(null,t)))return n.util.abort})),u}))},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=n.util.stream,t=this,r=null;return 2===n.HttpClient.streamsApiVersion?(r=new e.PassThrough,process.nextTick((function(){t.send()}))):((r=new e.Stream).readable=!0,r.sent=!1,r.on("newListener",(function(e){r.sent||"data"!==e||(r.sent=!0,process.nextTick((function(){t.send()})))}))),this.on("error",(function(e){r.emit("error",e)})),this.on("httpHeaders",(function(i,o,a){if(i<300){t.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),t.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),t.on("httpError",(function(e){a.error=e,a.error.retryable=!1}));var s,u=!1;if("HEAD"!==t.httpRequest.method&&(s=parseInt(o["content-length"],10)),void 0!==s&&!isNaN(s)&&s>=0){u=!0;var c=0}var l=function(){u&&c!==s?r.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+c+" of "+s+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?r.end():r.emit("end")},f=a.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(u){var p=new e.PassThrough;p._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},p.on("end",l),r.on("error",(function(e){u=!1,f.unpipe(p),p.emit("end"),p.end()})),f.pipe(p).pipe(r,{end:!1})}else f.pipe(r);else u&&f.on("data",(function(e){e&&e.length&&(c+=e.length)})),f.on("data",(function(e){r.emit("data",e)})),f.on("end",l);f.on("error",(function(e){u=!1,r.emit("error",e)}))}})),r},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,(function(e){e&&(this.response.error=e),r.call(this,e)}))},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e((function(e,r){t.on("complete",(function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))})),t.runTo()}))}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},e=>{function t(e,t){this.currentState=t||null,this.states=e||{}}t.prototype.runTo=function(e,t,r,n){"function"==typeof e&&(n=r,r=t,t=e,e=null);var i=this,o=i.states[i.currentState];o.fn.call(r||i,n,(function(n){if(n){if(!o.fail)return t?t.call(r,n):null;i.currentState=o.fail}else{if(!o.accept)return t?t.call(r):null;i.currentState=o.accept}if(i.currentState===e)return t?t.call(r,n):null;i.runTo(e,t,r,n)}))},t.prototype.addState=function(e,t,r,n){return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},e.exports=t},(e,t)=>{!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var o=0;o<e.length;o++)if(!1===n(e[o],i[o]))return!1;return!0}if(!0===r(e)){var a={};for(var s in e)if(hasOwnProperty.call(e,s)){if(!1===n(e[s],i[s]))return!1;a[s]=!0}for(var u in i)if(hasOwnProperty.call(i,u)&&!0!==a[u])return!1;return!0}return!1}function i(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(r(e)){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0}return!1}var o;o="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var a=0,s=1,u=2,c=3,l=4,f=6,p=8,d=9,h={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},m="EOF",g="UnquotedIdentifier",y="QuotedIdentifier",v="Rbracket",b="Rparen",_="Comma",S="Colon",E="Rbrace",w="Number",O="Current",x="Expref",T="Pipe",k="Or",C="And",I="EQ",R="GT",A="LT",P="GTE",D="LTE",N="NE",M="Flatten",L="Star",j="Filter",B="Dot",F="Not",U="Lbrace",H="Lbracket",q="Lparen",z="Literal",W={".":B,"*":L,",":_,":":S,"{":U,"}":E,"]":v,"(":q,")":b,"@":O},V={"<":!0,">":!0,"=":!0,"!":!0},G={" ":!0,"\t":!0,"\n":!0};function $(e){return e>="0"&&e<="9"||"-"===e}function K(){}K.prototype={tokenize:function(e){var t,r,n,i,o=[];for(this._current=0;this._current<e.length;)if((i=e[this._current])>="a"&&i<="z"||i>="A"&&i<="Z"||"_"===i)t=this._current,r=this._consumeUnquotedIdentifier(e),o.push({type:g,value:r,start:t});else if(void 0!==W[e[this._current]])o.push({type:W[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if($(e[this._current]))n=this._consumeNumber(e),o.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),o.push(n);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),o.push({type:y,value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),o.push({type:z,value:r,start:t});else if("`"===e[this._current]){t=this._current;var a=this._consumeLiteral(e);o.push({type:z,value:a,start:t})}else if(void 0!==V[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==G[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,o.push({type:C,value:"&&",start:t})):o.push({type:x,value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,o.push({type:k,value:"||",start:t})):o.push({type:T,value:"|",start:t})}return o},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current<e.length&&((t=e[this._current])>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(r,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&'"'!==e[n+1]?n++:n+=2,this._current=n}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var r=e.length;"'"!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&"'"!==e[n+1]?n++:n+=2,this._current=n}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var r=e.length;$(e[this._current])&&this._current<r;)this._current++;var n=parseInt(e.slice(t,this._current));return{type:w,value:n,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:j,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:M,value:"[]",start:t}):{type:H,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:N,value:"!=",start:t}):{type:F,value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:D,value:"<=",start:t}):{type:A,value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:P,value:">=",start:t}):{type:R,value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:I,value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current<n;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&"`"!==e[i+1]?i++:i+=2,this._current=i}var a=o(e.slice(r,this._current));return a=a.replace("\\`","`"),t=this._looksLikeJSON(a)?JSON.parse(a):JSON.parse('"'+a+'"'),this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if('[{"'.indexOf(e[0])>=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var Y={};function Q(){}function X(e){this.runtime=e}function J(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[p]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[u,c]},{types:[s]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[u]},{types:[u]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[u,c,l]}]},map:{_func:this._functionMap,_signature:[{types:[f]},{types:[c]}]},max:{_func:this._functionMax,_signature:[{types:[p,d]}]},merge:{_func:this._functionMerge,_signature:[{types:[l],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[c]},{types:[f]}]},sum:{_func:this._functionSum,_signature:[{types:[p]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[u]},{types:[u]}]},min:{_func:this._functionMin,_signature:[{types:[p,d]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[c]},{types:[f]}]},type:{_func:this._functionType,_signature:[{types:[s]}]},keys:{_func:this._functionKeys,_signature:[{types:[l]}]},values:{_func:this._functionValues,_signature:[{types:[l]}]},sort:{_func:this._functionSort,_signature:[{types:[d,p]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[c]},{types:[f]}]},join:{_func:this._functionJoin,_signature:[{types:[u]},{types:[d]}]},reverse:{_func:this._functionReverse,_signature:[{types:[u,c]}]},to_array:{_func:this._functionToArray,_signature:[{types:[s]}]},to_string:{_func:this._functionToString,_signature:[{types:[s]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[s]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[s],variadic:!0}]}}}Y[m]=0,Y[g]=0,Y[y]=0,Y[v]=0,Y[b]=0,Y[_]=0,Y[E]=0,Y[w]=0,Y[O]=0,Y[x]=0,Y[T]=1,Y[k]=2,Y[C]=3,Y[I]=5,Y[R]=5,Y[A]=5,Y[P]=5,Y[D]=5,Y[N]=5,Y[M]=9,Y[L]=20,Y[j]=21,Y[B]=40,Y[F]=45,Y[U]=50,Y[H]=55,Y[q]=60,Q.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if(this._lookahead(0)!==m){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new K).tokenize(e);t.push({type:m,value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e<Y[n];)this._advance(),r=this.led(n,r),n=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r;switch(e.type){case z:return{type:"Literal",value:e.value};case g:return{type:"Field",name:e.value};case y:var n={type:"Field",name:e.value};if(this._lookahead(0)===q)throw new Error("Quoted identifier not allowed for function names.");return n;case F:return{type:"NotExpression",children:[t=this.expression(Y.Not)]};case L:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===v?{type:"Identity"}:this._parseProjectionRHS(Y.Star)]};case j:return this.led(e.type,{type:"Identity"});case U:return this._parseMultiselectHash();case M:return{type:"Projection",children:[{type:M,children:[{type:"Identity"}]},t=this._parseProjectionRHS(Y.Flatten)]};case H:return this._lookahead(0)===w||this._lookahead(0)===S?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===L&&this._lookahead(1)===v?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(Y.Star)]}):this._parseMultiselectList();case O:return{type:O};case x:return{type:"ExpressionReference",children:[r=this.expression(Y.Expref)]};case q:for(var i=[];this._lookahead(0)!==b;)this._lookahead(0)===O?(r={type:O},this._advance()):r=this.expression(0),i.push(r);return this._match(b),i[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case B:var n=Y.Dot;return this._lookahead(0)!==L?{type:"Subexpression",children:[t,r=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[t,r=this._parseProjectionRHS(n)]});case T:return r=this.expression(Y.Pipe),{type:T,children:[t,r]};case k:return{type:"OrExpression",children:[t,r=this.expression(Y.Or)]};case C:return{type:"AndExpression",children:[t,r=this.expression(Y.And)]};case q:for(var i,o=t.name,a=[];this._lookahead(0)!==b;)this._lookahead(0)===O?(i={type:O},this._advance()):i=this.expression(0),this._lookahead(0)===_&&this._match(_),a.push(i);return this._match(b),{type:"Function",name:o,children:a};case j:var s=this.expression(0);return this._match(v),{type:"FilterProjection",children:[t,r=this._lookahead(0)===M?{type:"Identity"}:this._parseProjectionRHS(Y.Filter),s]};case M:return{type:"Projection",children:[{type:M,children:[t]},this._parseProjectionRHS(Y.Flatten)]};case I:case N:case R:case P:case A:case D:return this._parseComparator(t,e);case H:var u=this._lookaheadToken(0);return u.type===w||u.type===S?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match(L),this._match(v),{type:"Projection",children:[t,r=this._parseProjectionRHS(Y.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),r=new Error("Expected "+e+", got: "+t.type);throw r.name="ParserError",r}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if(this._lookahead(0)===S||this._lookahead(1)===S)return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(v),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(Y.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);r!==v&&t<3;){if(r===S)t++,this._advance();else{if(r!==w){var n=this._lookahead(0),i=new Error("Syntax error, unexpected token: "+n.value+"("+n.type+")");throw i.name="Parsererror",i}e[t]=this._lookaheadToken(0).value,this._advance()}r=this._lookahead(0)}return this._match(v),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(Y[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return[g,y,L].indexOf(t)>=0?this.expression(e):t===H?(this._match(H),this._parseMultiselectList()):t===U?(this._match(U),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(Y[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===H)t=this.expression(e);else if(this._lookahead(0)===j)t=this.expression(e);else{if(this._lookahead(0)!==B){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match(B),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==v;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===_&&(this._match(_),this._lookahead(0)===v))throw new Error("Unexpected token Rbracket")}return this._match(v),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],i=[g,y];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match(S),r={type:"KeyValuePair",name:t,value:this.expression(0)},n.push(r),this._lookahead(0)===_)this._match(_);else if(this._lookahead(0)===E){this._match(E);break}}return{type:"MultiSelectHash",children:n}}},X.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var a,s,u,c,l,f,p,d,h;switch(e.type){case"Field":return null!==o&&r(o)?void 0===(f=o[e.name])?null:f:null;case"Subexpression":for(u=this.visit(e.children[0],o),h=1;h<e.children.length;h++)if(null===(u=this.visit(e.children[1],u)))return null;return u;case"IndexExpression":return p=this.visit(e.children[0],o),this.visit(e.children[1],p);case"Index":if(!t(o))return null;var m=e.value;return m<0&&(m=o.length+m),void 0===(u=o[m])&&(u=null),u;case"Slice":if(!t(o))return null;var g=e.children.slice(0),y=this.computeSliceParams(o.length,g),v=y[0],b=y[1],_=y[2];if(u=[],_>0)for(h=v;h<b;h+=_)u.push(o[h]);else for(h=v;h>b;h+=_)u.push(o[h]);return u;case"Projection":var S=this.visit(e.children[0],o);if(!t(S))return null;for(d=[],h=0;h<S.length;h++)null!==(s=this.visit(e.children[1],S[h]))&&d.push(s);return d;case"ValueProjection":if(!r(S=this.visit(e.children[0],o)))return null;d=[];var E=function(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}(S);for(h=0;h<E.length;h++)null!==(s=this.visit(e.children[1],E[h]))&&d.push(s);return d;case"FilterProjection":if(!t(S=this.visit(e.children[0],o)))return null;var w=[],k=[];for(h=0;h<S.length;h++)i(a=this.visit(e.children[2],S[h]))||w.push(S[h]);for(var C=0;C<w.length;C++)null!==(s=this.visit(e.children[1],w[C]))&&k.push(s);return k;case"Comparator":switch(c=this.visit(e.children[0],o),l=this.visit(e.children[1],o),e.name){case I:u=n(c,l);break;case N:u=!n(c,l);break;case R:u=c>l;break;case P:u=c>=l;break;case A:u=c<l;break;case D:u=c<=l;break;default:throw new Error("Unknown comparator: "+e.name)}return u;case M:var L=this.visit(e.children[0],o);if(!t(L))return null;var j=[];for(h=0;h<L.length;h++)t(s=L[h])?j.push.apply(j,s):j.push(s);return j;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(d=[],h=0;h<e.children.length;h++)d.push(this.visit(e.children[h],o));return d;case"MultiSelectHash":if(null===o)return null;var B;for(d={},h=0;h<e.children.length;h++)d[(B=e.children[h]).name]=this.visit(B.value,o);return d;case"OrExpression":return i(a=this.visit(e.children[0],o))&&(a=this.visit(e.children[1],o)),a;case"AndExpression":return!0===i(c=this.visit(e.children[0],o))?c:this.visit(e.children[1],o);case"NotExpression":return i(c=this.visit(e.children[0],o));case"Literal":return e.value;case T:return p=this.visit(e.children[0],o),this.visit(e.children[1],p);case O:return o;case"Function":var F=[];for(h=0;h<e.children.length;h++)F.push(this.visit(e.children[h],o));return this.runtime.callFunction(e.name,F);case"ExpressionReference":var U=e.children[0];return U.jmespathType=x,U;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],n=t[1],i=t[2],o=[null,null,null];if(null===i)i=1;else if(0===i){var a=new Error("Invalid slice, step cannot be 0");throw a.name="RuntimeError",a}var s=i<0;return r=null===r?s?e-1:0:this.capSliceRange(e,r,i),n=null===n?s?-1:e:this.capSliceRange(e,n,i),o[0]=r,o[1]=n,o[2]=i,o},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):t>=e&&(t=r<0?e-1:e),t}},J.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,i,o,a;if(r[r.length-1].variadic){if(t.length<r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+n+" but received "+t.length)}else if(t.length!==r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+n+" but received "+t.length);for(var s=0;s<r.length;s++){a=!1,i=r[s].types,o=this._getTypeName(t[s]);for(var u=0;u<i.length;u++)if(this._typeMatches(o,i[u],t[s])){a=!0;break}if(!a){var c=i.map((function(e){return h[e]})).join(",");throw new Error("TypeError: "+e+"() expected argument "+(s+1)+" to be type "+c+" but received type "+h[o]+" instead.")}}},_typeMatches:function(e,t,r){if(t===s)return!0;if(t!==d&&t!==p&&t!==c)return e===t;if(t===c)return e===c;if(e===c){var n;t===p?n=a:t===d&&(n=u);for(var i=0;i<r.length;i++)if(!this._typeMatches(this._getTypeName(r[i]),n,r[i]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return u;case"[object Number]":return a;case"[object Array]":return c;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===x?f:l}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],r=e[1];return-1!==t.indexOf(r,t.length-r.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===u){for(var t=e[0],r="",n=t.length-1;n>=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t/r.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o<i.length;o++)t.push(r.visit(n,i[o]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];for(var i in n)t[i]=n[i]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)r.localeCompare(t[n])<0&&(r=t[n]);return r}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)t[n].localeCompare(r)<0&&(r=t[n]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case a:return"number";case u:return"string";case c:return"array";case l:return"object";case 5:return"boolean";case f:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),n=[],i=0;i<r.length;i++)n.push(t[r[i]]);return n},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return this._getTypeName(e[0])===c?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===u?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===a?e[0]:r!==u||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var r=this._interpreter,n=e[1],i=this._getTypeName(r.visit(n,t[0]));if([a,u].indexOf(i)<0)throw new Error("TypeError");for(var o=this,s=[],c=0;c<t.length;c++)s.push([c,t[c]]);s.sort((function(e,t){var a=r.visit(n,e[1]),s=r.visit(n,t[1]);if(o._getTypeName(a)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(a));if(o._getTypeName(s)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(s));return a>s?1:a<s?-1:e[0]-t[0]}));for(var l=0;l<s.length;l++)t[l]=s[l][1];return t},_functionMaxBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,u]),s=-1/0,c=0;c<i.length;c++)(r=o(i[c]))>s&&(s=r,t=i[c]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,u]),s=1/0,c=0;c<i.length;c++)(r=o(i[c]))<s&&(s=r,t=i[c]);return t},createKeyFunction:function(e,t){var r=this,n=this._interpreter;return function(i){var o=n.visit(e,i);if(t.indexOf(r._getTypeName(o))<0){var a="TypeError: expected one of "+t+", received "+r._getTypeName(o);throw new Error(a)}return o}}},e.tokenize=function(e){return(new K).tokenize(e)},e.compile=function(e){return(new Q).parse(e)},e.search=function(e,t){var r=new Q,n=new J,i=new X(n);n._interpreter=i;var o=r.parse(t);return i.search(o,e)},e.strictDeepEqual=n}(t)},(e,t,r)=>{var n=r(123),i=n.util.inherit,o=r(195);n.Response=i({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,i=this.request.operation;try{t=r.paginationConfig(i,!0)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=n.util.copy(this.request.params);if(this.nextPageTokens){var a=t.inputToken;"string"==typeof a&&(a=[a]);for(var s=0;s<a.length;s++)o[a[s]]=this.nextPageTokens[s];return r.makeRequest(this.request.operation,o,e)}return e?e(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!o.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),n.util.arrayEach.call(this,t,(function(e){var t=o.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))})),this.nextPageTokens}})},(e,t,r)=>{var n=r(123),i=n.util.inherit,o=r(195);function a(e){var t=e.request._waiter,r=t.config.acceptors,n=!1,i="retry";r.forEach((function(r){if(!n){var o=t.matchers[r.matcher];o&&o(e,r.expected,r.argument)&&(n=!0,i=r.state)}})),!n&&e.error&&(i="failure"),"success"===i?t.setSuccess(e):t.setError(e,"retry"===i)}n.ResourceWaiter=i({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=o.search(e.data,r)}catch(e){return!1}return o.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=o.search(e.data,r)}catch(e){return!1}Array.isArray(n)||(n=[n]);var i=n.length;if(!i)return!1;for(var a=0;a<i;a++)if(!o.strictDeepEqual(n[a],t))return!1;return!0},pathAny:function(e,t,r){try{var n=o.search(e.data,r)}catch(e){return!1}Array.isArray(n)||(n=[n]);for(var i=n.length,a=0;a<i;a++)if(o.strictDeepEqual(n[a],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new n.SequentialExecutor).addNamedListeners((function(e){e("RETRY_CHECK","retry",(function(e){var t=e.request._waiter;e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(t.config.delay||0))})),e("CHECK_OUTPUT","extractData",a),e("CHECK_ERROR","extractError",a)})),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&("number"==typeof(e=n.util.copy(e)).$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=n.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new n.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=n.util.copy(this.service.api.waiters[e])}})},(e,t,r)=>{var n=r(123),i=n.util.inherit;n.Signers.RequestSigner=i({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https;case"bearer":return n.Signers.Bearer}throw new Error("Unknown signing version "+e)},r(199),r(200),r(201),r(202),r(204),r(205),r(206)},(e,t,r)=>{var n=r(123),i=n.util.inherit;n.Signers.V2=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var r=this.request;r.params.Timestamp=n.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=n.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),e.exports=n.Signers.V2},(e,t,r)=>{var n=r(123),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),(function(t){e.push(t.toLowerCase())})),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),(function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())})),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,(function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)})),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),e.exports=n.Signers.V3},(e,t,r)=>{var n=r(123),i=n.util.inherit;r(200),n.Signers.V3Https=i(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),e.exports=n.Signers.V3Https},(e,t,r)=>{var n=r(123),i=r(203),o=n.util.inherit,a="presigned-expires";n.Signers.V4=o(n.Signers.RequestSigner,{constructor:function(e,t,r){n.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=n.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),i={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[a],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(i["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),n.util.each.call(this,this.request.headers,(function(e,t){if(e!==a&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?i[r]=t:0===r.indexOf("x-amz-")&&(i[e]=t)}}));var o=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=o+n.util.queryParamsToString(i)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,(function(t,r){e.push([t,r])})),e.sort((function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1}));var t=[];return n.util.arrayEach.call(this,e,(function(e){var r=e[0].toLowerCase();if(this.isSignableHeader(r)){var i=e[1];if(null==i||"function"!=typeof i.toString)throw n.util.error(new Error("Header "+r+" contains invalid value"),{code:"InvalidHeader"});t.push(r+":"+this.canonicalHeaderValues(i.toString()))}})),t.join("\n")},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return n.util.each.call(this,this.request.headers,(function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)})),e.sort().join(";")},credentialString:function(e){return i.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return n.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",a,"expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers[a]}}),e.exports=n.Signers.V4},(e,t,r)=>{var n=r(123),i={},o=[],a="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function(e,t,r,s,u){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&c in i)return i[c];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),f=n.util.crypto.hmac(l,r,"buffer"),p=n.util.crypto.hmac(f,s,"buffer"),d=n.util.crypto.hmac(p,a,"buffer");return u&&(i[c]=d,o.push(c),o.length>50&&delete i[o.shift()]),d},emptyCache:function(){i={},o=[]}}},(e,t,r)=>{var n=r(123),i=n.util.inherit;n.Signers.S3=i(n.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),i="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=i},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,(function(t){t.match(/^x-amz-/i)&&e.push(t)})),e.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1}));var t=[];return n.util.arrayEach.call(this,e,(function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))})),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[0],i=t[1],o="";if(e.virtualHostedBucket&&(o+="/"+e.virtualHostedBucket),o+=r,i){var a=[];n.util.arrayEach.call(this,i.split("&"),(function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var n={name:t};void 0!==r&&(this.subResources[t]?n.value=r:n.value=decodeURIComponent(r)),a.push(n)}})),a.sort((function(e,t){return e.name<t.name?-1:1})),a.length&&(i=[],n.util.arrayEach(a,(function(e){void 0===e.value?i.push(e.name):i.push(e.name+"="+e.value)})),o+="?"+i.join("&"))}return o},sign:function(e,t){return n.util.crypto.hmac(e,t,"base64","sha1")}}),e.exports=n.Signers.S3},(e,t,r)=>{var n=r(123),i=n.util.inherit,o="presigned-expires";function a(e){var t=e.httpRequest.headers[o],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(t>604800){throw n.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[o]=t}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var i=e.service?e.service.getSkewCorrectedDate():n.util.date.getDate();e.httpRequest.headers[o]=parseInt(n.util.date.unixTimestamp(i)+t,10).toString()}}function s(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),i={};r.search&&(i=n.util.queryStringParse(r.search.substr(1)));var a=e.httpRequest.headers.Authorization.split(" ");if("AWS"===a[0])a=a[1].split(":"),i.Signature=a.pop(),i.AWSAccessKeyId=a.join(":"),n.util.each(e.httpRequest.headers,(function(e,t){e===o&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete i[e],e=e.toLowerCase()),i[e]=t})),delete e.httpRequest.headers[o],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===a[0]){a.shift();var s=a.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=s,delete i.Expires}t.pathname=r.pathname,t.search=n.util.queryParamsToString(i)}n.Signers.Presign=i({sign:function(e,t,r){if(e.httpRequest.headers[o]=t||3600,e.on("build",a),e.on("sign",s),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build((function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))}))}}),e.exports=n.Signers.Presign},(e,t,r)=>{var n=r(123);n.Signers.Bearer=n.util.inherit(n.Signers.RequestSigner,{constructor:function(e){n.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.headers.Authorization="Bearer "+e.token}})},(e,t,r)=>{var n=r(123);n.ParamValidator=n.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,n.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){if(e.isDocument)return!0;var n;this.validateType(t,r,["object"],"structure");for(var i=0;e.required&&i<e.required.length;i++){var o=t[n=e.required[i]];null==o&&this.fail("MissingRequiredParameter","Missing required key '"+n+"' in "+r)}for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n],s=e.members[n];if(void 0!==s){var u=[r,n].join(".");this.validateMember(s,a,u)}else null!=a&&this.fail("UnexpectedParameter","Unexpected key '"+n+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var n=0;n<t.length;n++)this.validateMember(e.member,t[n],r+"["+n+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var n=0;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(this.validateMember(e.key,i,r+"[key='"+i+"']"),this.validateMember(e.value,t[i],r+"['"+i+"']"),n++);this.validateRange(e,n,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var n=["string"];e.isJsonValue&&(n=n.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,n)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r),this.validateUri(e,t,r))},validateUri:function(e,t,r){"uri"===e.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+n+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null==e)return!1;for(var o=!1,a=0;a<r.length;a++){if("string"==typeof r[a]){if(typeof e===r[a])return!0}else if(r[a]instanceof RegExp){if((e||"").toString().match(r[a]))return!0}else{if(e instanceof r[a])return!0;if(n.util.isType(e,r[a]))return!0;i||o||(r=r.slice()),r[a]=n.util.typeName(r[a])}o=!0}var s=i;s||(s=r.join(", ").replace(/,([^,]+)$/,", or$1"));var u=s.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+u+" "+s),!1},validateNumber:function(e,t,r){if(null!=t){if("string"==typeof t){var n=parseFloat(t);n.toString()===t&&(t=n)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!=e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(n.util.isNode()){var r=n.util.stream.Stream;if(n.util.Buffer.isBuffer(e)||e instanceof r)return}else if(void 0!==typeof Blob&&e instanceof Blob)return;var i=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var o=0;o<i.length;o++){if(n.util.isType(e,i[o]))return;if(n.util.typeName(e.constructor)===i[o])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},e=>{var t=["The AWS SDK for JavaScript (v2) will enter maintenance mode","on September 8, 2024 and reach end-of-support on September 8, 2025.\n","Please migrate your code to use AWS SDK for JavaScript (v3).","For more information, check blog post at https://a.co/cUPnyil"].join("\n");e.exports={suppress:!1},setTimeout((function(){e.exports.suppress||"undefined"!=typeof process&&("object"==typeof process.env&&void 0!==process.env.AWS_EXECUTION_ENV&&0===process.env.AWS_EXECUTION_ENV.indexOf("AWS_Lambda_")||"object"==typeof process.env&&void 0!==process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE||"function"==typeof process.emitWarning&&process.emitWarning(t,{type:"NOTE"}))}),0)},,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}});var n=s(r(211)),i=s(r(214)),o=s(r(217)),a=s(r(218));function s(e){return e&&e.__esModule?e:{default:e}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o=s(r(212)),a=s(r(213));function s(e){return e&&e.__esModule?e:{default:e}}var u=0,c=0;var l=function(e,t,r){var s=t&&r||0,l=t||[],f=(e=e||{}).node||n,p=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==p){var d=e.random||(e.rng||o.default)();null==f&&(f=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==p&&(p=i=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=h-u+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||h>u)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,c=m,i=p;var y=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[s++]=y>>>24&255,l[s++]=y>>>16&255,l[s++]=y>>>8&255,l[s++]=255&y;var v=h/4294967296*1e4&268435455;l[s++]=v>>>8&255,l[s++]=255&v,l[s++]=v>>>24&15|16,l[s++]=v>>>16&255,l[s++]=p>>>8|128,l[s++]=255&p;for(var b=0;b<6;++b)l[s+b]=f[b];return t||(0,a.default)(l)};t.default=l},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),n=new Uint8Array(16)},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);var i=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")};t.default=i},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(215)),i=o(r(216));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,i.default);t.default=a},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=function(e,n,o,a){var s=o&&a||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e)),"string"==typeof n&&(n=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){t.push(parseInt(e,16))})),t}(n)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(n)||16!==n.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var u=r(n.concat(e));if(u[6]=15&u[6]|t,u[8]=63&u[8]|128,o)for(var c=0;c<16;++c)o[s+c]=u[c];return o||(0,i.default)(u)};try{n.name=e}catch(e){}return n.DNS=o,n.URL=a,n},t.URL=t.DNS=void 0;var n,i=(n=r(213))&&n.__esModule?n:{default:n};const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},(e,t)=>{"use strict";function r(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(u=o)|s>>>32-u,n);var s,u}function i(e,t,r,i,o,a,s){return n(t&r|~t&i,e,t,o,a,s)}function o(e,t,r,i,o,a,s){return n(t&i|r&~i,e,t,o,a,s)}function a(e,t,r,i,o,a,s){return n(t^r^i,e,t,o,a,s)}function s(e,t,r,i,o,a,s){return n(r^(t|~i),e,t,o,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n<t.length;n++)e[n]=t.charCodeAt(n)}return function(e){var t,r,n,i=[],o=32*e.length,a="0123456789abcdef";for(t=0;t<o;t+=8)r=e[t>>5]>>>t%32&255,n=parseInt(a.charAt(r>>>4&15)+a.charAt(15&r),16),i.push(n);return i}(function(e,t){var n,u,c,l,f;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var p=1732584193,d=-271733879,h=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)u=p,c=d,l=h,f=m,p=i(p,d,h,m,e[n],7,-680876936),m=i(m,p,d,h,e[n+1],12,-389564586),h=i(h,m,p,d,e[n+2],17,606105819),d=i(d,h,m,p,e[n+3],22,-1044525330),p=i(p,d,h,m,e[n+4],7,-176418897),m=i(m,p,d,h,e[n+5],12,1200080426),h=i(h,m,p,d,e[n+6],17,-1473231341),d=i(d,h,m,p,e[n+7],22,-45705983),p=i(p,d,h,m,e[n+8],7,1770035416),m=i(m,p,d,h,e[n+9],12,-1958414417),h=i(h,m,p,d,e[n+10],17,-42063),d=i(d,h,m,p,e[n+11],22,-1990404162),p=i(p,d,h,m,e[n+12],7,1804603682),m=i(m,p,d,h,e[n+13],12,-40341101),h=i(h,m,p,d,e[n+14],17,-1502002290),p=o(p,d=i(d,h,m,p,e[n+15],22,1236535329),h,m,e[n+1],5,-165796510),m=o(m,p,d,h,e[n+6],9,-1069501632),h=o(h,m,p,d,e[n+11],14,643717713),d=o(d,h,m,p,e[n],20,-373897302),p=o(p,d,h,m,e[n+5],5,-701558691),m=o(m,p,d,h,e[n+10],9,38016083),h=o(h,m,p,d,e[n+15],14,-660478335),d=o(d,h,m,p,e[n+4],20,-405537848),p=o(p,d,h,m,e[n+9],5,568446438),m=o(m,p,d,h,e[n+14],9,-1019803690),h=o(h,m,p,d,e[n+3],14,-187363961),d=o(d,h,m,p,e[n+8],20,1163531501),p=o(p,d,h,m,e[n+13],5,-1444681467),m=o(m,p,d,h,e[n+2],9,-51403784),h=o(h,m,p,d,e[n+7],14,1735328473),p=a(p,d=o(d,h,m,p,e[n+12],20,-1926607734),h,m,e[n+5],4,-378558),m=a(m,p,d,h,e[n+8],11,-2022574463),h=a(h,m,p,d,e[n+11],16,1839030562),d=a(d,h,m,p,e[n+14],23,-35309556),p=a(p,d,h,m,e[n+1],4,-1530992060),m=a(m,p,d,h,e[n+4],11,1272893353),h=a(h,m,p,d,e[n+7],16,-155497632),d=a(d,h,m,p,e[n+10],23,-1094730640),p=a(p,d,h,m,e[n+13],4,681279174),m=a(m,p,d,h,e[n],11,-358537222),h=a(h,m,p,d,e[n+3],16,-722521979),d=a(d,h,m,p,e[n+6],23,76029189),p=a(p,d,h,m,e[n+9],4,-640364487),m=a(m,p,d,h,e[n+12],11,-421815835),h=a(h,m,p,d,e[n+15],16,530742520),p=s(p,d=a(d,h,m,p,e[n+2],23,-995338651),h,m,e[n],6,-198630844),m=s(m,p,d,h,e[n+7],10,1126891415),h=s(h,m,p,d,e[n+14],15,-1416354905),d=s(d,h,m,p,e[n+5],21,-57434055),p=s(p,d,h,m,e[n+12],6,1700485571),m=s(m,p,d,h,e[n+3],10,-1894986606),h=s(h,m,p,d,e[n+10],15,-1051523),d=s(d,h,m,p,e[n+1],21,-2054922799),p=s(p,d,h,m,e[n+8],6,1873313359),m=s(m,p,d,h,e[n+15],10,-30611744),h=s(h,m,p,d,e[n+6],15,-1560198380),d=s(d,h,m,p,e[n+13],21,1309151649),p=s(p,d,h,m,e[n+4],6,-145523070),m=s(m,p,d,h,e[n+11],10,-1120210379),h=s(h,m,p,d,e[n+2],15,718787259),d=s(d,h,m,p,e[n+9],21,-343485551),p=r(p,u),d=r(d,c),h=r(h,l),m=r(m,f);return[p,d,h,m]}(function(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)r[t>>5]|=(255&e[t/8])<<t%32;return r}(e),8*e.length))};t.default=u},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(212)),i=o(r(213));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||(0,i.default)(a)};t.default=a},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(215)),i=o(r(219));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,i.default);t.default=a},(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){var t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=new Array(o.length);for(var a=0;a<o.length;a++)e[a]=o.charCodeAt(a)}e.push(128);var s=e.length/4+2,u=Math.ceil(s/16),c=new Array(u);for(a=0;a<u;a++){c[a]=new Array(16);for(var l=0;l<16;l++)c[a][l]=e[64*a+4*l]<<24|e[64*a+4*l+1]<<16|e[64*a+4*l+2]<<8|e[64*a+4*l+3]}for(c[u-1][14]=8*(e.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(e.length-1)&4294967295,a=0;a<u;a++){for(var f=new Array(80),p=0;p<16;p++)f[p]=c[a][p];for(p=16;p<80;p++)f[p]=n(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);var d=i[0],h=i[1],m=i[2],g=i[3],y=i[4];for(p=0;p<80;p++){var v=Math.floor(p/20),b=n(d,5)+r(v,h,m,g)+y+t[v]+f[p]>>>0;y=g,g=m,m=n(h,30)>>>0,h=d,d=b}i[0]=i[0]+d>>>0,i[1]=i[1]+h>>>0,i[2]=i[2]+m>>>0,i[3]=i[3]+g>>>0,i[4]=i[4]+y>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},(e,t,r)=>{var n=r(221),i=r(227),o=r(228),a=r(229);e.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new i;if("sha256"===e)return new a;if("sha1"===e)return new o;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new n(i,t);if("sha256"===e)return new n(a,t);if("sha1"===e)return new n(o,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},(e,t,r)=>{var n=r(222);function i(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=n.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var i=new e;i.update(r),r=i.digest()}var o=new Uint8Array(e.BLOCK_SIZE);return o.set(r),o}(e,t),i=new Uint8Array(e.BLOCK_SIZE);i.set(r);for(var o=0;o<e.BLOCK_SIZE;o++)r[o]^=54,i[o]^=92;this.hash.update(r),this.outer.update(i);for(o=0;o<r.byteLength;o++)r[o]=0}e.exports=i,i.prototype.update=function(e){if(n.isEmptyData(e)||this.error)return this;try{this.hash.update(n.convertToBuffer(e))}catch(e){this.error=e}return this},i.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},(e,t,r)=>{var n=r(223).Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return i.indexOf(Object.prototype.toString.call(e))>-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},(e,t,r)=>{"use strict";
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */var n=r(224),i=r(225),o=r(226);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(t,r);e=s(e,n);var i=e.write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|d(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t){var r=t.length<0?0:0|d(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return I(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(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=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(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,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function _(e,t,r,n){return z(H(t,e.length-r),e,r,n)}function S(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function E(e,t,r,n){return S(e,t,r,n)}function w(e,t,r,n){return z(q(t),e,r,n)}function O(e,t,r,n){return z(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(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:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(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],128==(192&o)&&128==(192&a)&&128==(192&s)&&(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<=k)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=k));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");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},u.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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new 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},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new 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},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new 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},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");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 new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},u.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))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return E(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function C(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}function I(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}function R(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+=U(e[o]);return i}function A(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function M(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,o){return o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(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},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(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},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);D(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},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);D(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},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){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)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.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),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=u.isBuffer(e)?e:H(new u(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(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=65536+(i-55296<<10|r-56320)}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))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(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}},(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],u=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),l=0,f=u>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;2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===u&&(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);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},(e,t)=>{
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
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?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(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),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*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*m}},e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},(e,t,r)=>{var n=r(222),i=r(223).Buffer,o=64;function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(o)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(e,t,r,n,i,o){return((t=(t+e&4294967295)+(n+o&4294967295)&4294967295)<<i|t>>>32-i)+r&4294967295}function u(e,t,r,n,i,o,a){return s(t&r|~t&n,e,t,i,o,a)}function c(e,t,r,n,i,o,a){return s(t&n|r&~n,e,t,i,o,a)}function l(e,t,r,n,i,o,a){return s(t^r^n,e,t,i,o,a)}function f(e,t,r,n,i,o,a){return s(r^(t|~n),e,t,i,o,a)}e.exports=a,a.BLOCK_SIZE=o,a.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),i--,this.bufferLength===o&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,a=8*t.bytesHashed;if(r.setUint8(this.bufferLength++,128),n%o>=56){for(var s=this.bufferLength;s<o;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,a>>>0,!0),r.setUint32(60,Math.floor(a/4294967296),!0),this.hashBuffer(),this.finished=!0}var u=new DataView(new ArrayBuffer(16));for(s=0;s<4;s++)u.setUint32(4*s,this.state[s],!0);var c=new i(u.buffer,u.byteOffset,u.byteLength);return e?c.toString(e):c},a.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],o=t[3];r=u(r,n,i,o,e.getUint32(0,!0),7,3614090360),o=u(o,r,n,i,e.getUint32(4,!0),12,3905402710),i=u(i,o,r,n,e.getUint32(8,!0),17,606105819),n=u(n,i,o,r,e.getUint32(12,!0),22,3250441966),r=u(r,n,i,o,e.getUint32(16,!0),7,4118548399),o=u(o,r,n,i,e.getUint32(20,!0),12,1200080426),i=u(i,o,r,n,e.getUint32(24,!0),17,2821735955),n=u(n,i,o,r,e.getUint32(28,!0),22,4249261313),r=u(r,n,i,o,e.getUint32(32,!0),7,1770035416),o=u(o,r,n,i,e.getUint32(36,!0),12,2336552879),i=u(i,o,r,n,e.getUint32(40,!0),17,4294925233),n=u(n,i,o,r,e.getUint32(44,!0),22,2304563134),r=u(r,n,i,o,e.getUint32(48,!0),7,1804603682),o=u(o,r,n,i,e.getUint32(52,!0),12,4254626195),i=u(i,o,r,n,e.getUint32(56,!0),17,2792965006),r=c(r,n=u(n,i,o,r,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=c(o,r,n,i,e.getUint32(24,!0),9,3225465664),i=c(i,o,r,n,e.getUint32(44,!0),14,643717713),n=c(n,i,o,r,e.getUint32(0,!0),20,3921069994),r=c(r,n,i,o,e.getUint32(20,!0),5,3593408605),o=c(o,r,n,i,e.getUint32(40,!0),9,38016083),i=c(i,o,r,n,e.getUint32(60,!0),14,3634488961),n=c(n,i,o,r,e.getUint32(16,!0),20,3889429448),r=c(r,n,i,o,e.getUint32(36,!0),5,568446438),o=c(o,r,n,i,e.getUint32(56,!0),9,3275163606),i=c(i,o,r,n,e.getUint32(12,!0),14,4107603335),n=c(n,i,o,r,e.getUint32(32,!0),20,1163531501),r=c(r,n,i,o,e.getUint32(52,!0),5,2850285829),o=c(o,r,n,i,e.getUint32(8,!0),9,4243563512),i=c(i,o,r,n,e.getUint32(28,!0),14,1735328473),r=l(r,n=c(n,i,o,r,e.getUint32(48,!0),20,2368359562),i,o,e.getUint32(20,!0),4,4294588738),o=l(o,r,n,i,e.getUint32(32,!0),11,2272392833),i=l(i,o,r,n,e.getUint32(44,!0),16,1839030562),n=l(n,i,o,r,e.getUint32(56,!0),23,4259657740),r=l(r,n,i,o,e.getUint32(4,!0),4,2763975236),o=l(o,r,n,i,e.getUint32(16,!0),11,1272893353),i=l(i,o,r,n,e.getUint32(28,!0),16,4139469664),n=l(n,i,o,r,e.getUint32(40,!0),23,3200236656),r=l(r,n,i,o,e.getUint32(52,!0),4,681279174),o=l(o,r,n,i,e.getUint32(0,!0),11,3936430074),i=l(i,o,r,n,e.getUint32(12,!0),16,3572445317),n=l(n,i,o,r,e.getUint32(24,!0),23,76029189),r=l(r,n,i,o,e.getUint32(36,!0),4,3654602809),o=l(o,r,n,i,e.getUint32(48,!0),11,3873151461),i=l(i,o,r,n,e.getUint32(60,!0),16,530742520),r=f(r,n=l(n,i,o,r,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=f(o,r,n,i,e.getUint32(28,!0),10,1126891415),i=f(i,o,r,n,e.getUint32(56,!0),15,2878612391),n=f(n,i,o,r,e.getUint32(20,!0),21,4237533241),r=f(r,n,i,o,e.getUint32(48,!0),6,1700485571),o=f(o,r,n,i,e.getUint32(12,!0),10,2399980690),i=f(i,o,r,n,e.getUint32(40,!0),15,4293915773),n=f(n,i,o,r,e.getUint32(4,!0),21,2240044497),r=f(r,n,i,o,e.getUint32(32,!0),6,1873313359),o=f(o,r,n,i,e.getUint32(60,!0),10,4264355552),i=f(i,o,r,n,e.getUint32(24,!0),15,2734768916),n=f(n,i,o,r,e.getUint32(52,!0),21,1309151649),r=f(r,n,i,o,e.getUint32(16,!0),6,4149444226),o=f(o,r,n,i,e.getUint32(44,!0),10,3174756917),i=f(i,o,r,n,e.getUint32(8,!0),15,718787259),n=f(n,i,o,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295}},(e,t,r)=>{var n=r(223).Buffer,i=r(222);new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);function o(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=(e=i.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},o.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},o.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),i=new DataView(r.buffer);return i.setUint32(0,this.h0,!1),i.setUint32(4,this.h1,!1),i.setUint32(8,this.h2,!1),i.setUint32(12,this.h3,!1),i.setUint32(16,this.h4,!1),e?r.toString(e):r},o.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,i=this.h0,o=this.h1,a=this.h2,s=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=s^o&(a^s),n=1518500249):e<40?(r=o^a^s,n=1859775393):e<60?(r=o&a|s&(o|a),n=2400959708):(r=o^a^s,n=3395469782);var c=(i<<5|i>>>27)+r+u+n+(0|this.block[e]);u=s,s=a,a=o<<30|o>>>2,o=i,i=c}for(this.h0=this.h0+i|0,this.h1=this.h1+o|0,this.h2=this.h2+a|0,this.h3=this.h3+s|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},(e,t,r)=>{var n=r(223).Buffer,i=r(222),o=64,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=Math.pow(2,53)-1;function u(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=u,u.BLOCK_SIZE=o,u.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=0,r=(e=i.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===o&&(this.hashBuffer(),this.bufferLength=0);return this},u.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%o>=56){for(var a=this.bufferLength;a<o;a++)r.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(a=this.bufferLength;a<56;a++)r.setUint8(a,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}var s=new n(32);for(a=0;a<8;a++)s[4*a]=this.state[a]>>>24&255,s[4*a+1]=this.state[a]>>>16&255,s[4*a+2]=this.state[a]>>>8&255,s[4*a+3]=this.state[a]>>>0&255;return e?s.toString(e):s},u.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],s=t[3],u=t[4],c=t[5],l=t[6],f=t[7],p=0;p<o;p++){if(p<16)this.temp[p]=(255&e[4*p])<<24|(255&e[4*p+1])<<16|(255&e[4*p+2])<<8|255&e[4*p+3];else{var d=this.temp[p-2],h=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,m=((d=this.temp[p-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[p]=(h+this.temp[p-7]|0)+(m+this.temp[p-16]|0)}var g=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&c^~u&l)|0)+(f+(a[p]+this.temp[p]|0)|0)|0,y=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;f=l,l=c,c=u,u=s+g|0,s=i,i=n,n=r,r=g+y|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=s,t[4]+=u,t[5]+=c,t[6]+=l,t[7]+=f}},(e,t,r)=>{var n=r(231);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){v(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),c=["%","/","?",";","#"].concat(u),l=["/","?","#"],f=/^[a-z0-9A-Z_-]{0,63}$/,p=/^([a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},h={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(232);function y(e,t,r){if(e&&b(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}function v(e){return"string"==typeof e}function b(e){return"object"==typeof e&&null!==e}function _(e){return null===e}i.prototype.parse=function(e,t,r){if(!v(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var a=o.exec(i);if(a){var s=(a=a[0]).toLowerCase();this.protocol=s,i=i.substr(a.length)}if(r||a||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var y="//"===i.substr(0,2);!y||a&&h[a]||(i=i.substr(2),this.slashes=!0)}if(!h[a]&&(y||a&&!m[a])){for(var b,_,S=-1,E=0;E<l.length;E++){-1!==(w=i.indexOf(l[E]))&&(-1===S||w<S)&&(S=w)}-1!==(_=-1===S?i.lastIndexOf("@"):i.lastIndexOf("@",S))&&(b=i.slice(0,_),i=i.slice(_+1),this.auth=decodeURIComponent(b)),S=-1;for(E=0;E<c.length;E++){var w;-1!==(w=i.indexOf(c[E]))&&(-1===S||w<S)&&(S=w)}-1===S&&(S=i.length),this.host=i.slice(0,S),i=i.slice(S),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var x=this.hostname.split(/\./),T=(E=0,x.length);E<T;E++){var k=x[E];if(k&&!k.match(f)){for(var C="",I=0,R=k.length;I<R;I++)k.charCodeAt(I)>127?C+="x":C+=k[I];if(!C.match(f)){var A=x.slice(0,E),P=x.slice(E+1),D=k.match(p);D&&(A.push(D[1]),P.unshift(D[2])),P.length&&(i="/"+P.join(".")+i),this.hostname=A.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!O){var N=this.hostname.split("."),M=[];for(E=0;E<N.length;++E){var L=N[E];M.push(L.match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(L):L)}this.hostname=M.join(".")}var j=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+j,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!d[s])for(E=0,T=u.length;E<T;E++){var F=u[E],U=encodeURIComponent(F);U===F&&(U=escape(F)),i=i.split(F).join(U)}var H=i.indexOf("#");-1!==H&&(this.hash=i.substr(H),i=i.slice(0,H));var q=i.indexOf("?");if(-1!==q?(this.search=i.substr(q),this.query=i.substr(q+1),t&&(this.query=g.parse(this.query)),i=i.slice(0,q)):t&&(this.search="",this.query={}),i&&(this.pathname=i),m[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){j=this.pathname||"",L=this.search||"";this.path=j+L}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&b(this.query)&&Object.keys(this.query).length&&(o=g.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(v(e)){var t=new i;t.parse(e,!1,!0),e=t}var r=new i;if(Object.keys(this).forEach((function(e){r[e]=this[e]}),this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach((function(t){"protocol"!==t&&(r[t]=e[t])})),m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol])return Object.keys(e).forEach((function(t){r[t]=e[t]})),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||h[e.protocol])r.pathname=e.pathname;else{for(var n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var o=r.pathname||"",a=r.search||"";r.path=o+a}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),u=e.host||e.pathname&&"/"===e.pathname.charAt(0),c=u||s||r.host&&e.pathname,l=c,f=r.pathname&&r.pathname.split("/")||[],p=(n=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(p&&(r.hostname="",r.port=null,r.host&&(""===f[0]?f[0]=r.host:f.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),c=c&&(""===n[0]||""===f[0])),u)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,f=n;else if(n.length)f||(f=[]),f.pop(),f=f.concat(n),r.search=e.search,r.query=e.query;else if(null!=e.search){if(p)r.hostname=r.host=f.shift(),(S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift());return r.search=e.search,r.query=e.query,_(r.pathname)&&_(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!f.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var d=f.slice(-1)[0],g=(r.host||e.host)&&("."===d||".."===d)||""===d,y=0,b=f.length;b>=0;b--)"."==(d=f[b])?f.splice(b,1):".."===d?(f.splice(b,1),y++):y&&(f.splice(b,1),y--);if(!c&&!l)for(;y--;y)f.unshift("..");!c||""===f[0]||f[0]&&"/"===f[0].charAt(0)||f.unshift(""),g&&"/"!==f.join("/").substr(-1)&&f.push("");var S,E=""===f[0]||f[0]&&"/"===f[0].charAt(0);p&&(r.hostname=r.host=E?"":f.length?f.shift():"",(S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift()));return(c=c||r.host&&f.length)&&!E&&f.unshift(""),f.length?r.pathname=f.join("/"):(r.pathname=null,r.path=null),_(r.pathname)&&_(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,c=1,l=26,f=38,p=700,d=72,h=128,m="-",g=/^xn--/,y=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,S=Math.floor,E=String.fromCharCode;function w(e){throw RangeError(b[e])}function O(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function x(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(v,".")).split("."),t).join(".")}function T(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function k(e){return O(e,(function(e){var t="";return e>65535&&(t+=E((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=E(e)})).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,r){var n=0;for(e=r?S(e/p):e>>1,e+=S(e/t);e>_*l>>1;n+=u)e=S(e/_);return S(n+(_+1)*e/(e+f))}function R(e){var t,r,n,i,o,a,f,p,g,y,v,b=[],_=e.length,E=0,O=h,x=d;for((r=e.lastIndexOf(m))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&w("not-basic"),b.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<_;){for(o=E,a=1,f=u;i>=_&&w("invalid-input"),((p=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||p>S((s-E)/a))&&w("overflow"),E+=p*a,!(p<(g=f<=x?c:f>=x+l?l:f-x));f+=u)a>S(s/(y=u-g))&&w("overflow"),a*=y;x=I(E-o,t=b.length+1,0==o),S(E/t)>s-O&&w("overflow"),O+=S(E/t),E%=t,b.splice(E++,0,O)}return k(b)}function A(e){var t,r,n,i,o,a,f,p,g,y,v,b,_,O,x,k=[];for(b=(e=T(e)).length,t=h,r=0,o=d,a=0;a<b;++a)(v=e[a])<128&&k.push(E(v));for(n=i=k.length,i&&k.push(m);n<b;){for(f=s,a=0;a<b;++a)(v=e[a])>=t&&v<f&&(f=v);for(f-t>S((s-r)/(_=n+1))&&w("overflow"),r+=(f-t)*_,t=f,a=0;a<b;++a)if((v=e[a])<t&&++r>s&&w("overflow"),v==t){for(p=r,g=u;!(p<(y=g<=o?c:g>=o+l?l:g-o));g+=u)x=p-y,O=u-y,k.push(E(C(y+x%O,0))),p=S(x/O);k.push(E(C(p,0))),o=I(r,_,n==i),r=0,++n}++r,++t}return k.join("")}a={version:"1.3.2",ucs2:{decode:T,encode:k},decode:R,encode:A,toASCII:function(e){return x(e,(function(e){return y.test(e)?"xn--"+A(e):e}))},toUnicode:function(e){return x(e,(function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},(e,t,r)=>{"use strict";t.decode=t.parse=r(233),t.encode=t.stringify=r(234)},e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}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"),m=h.indexOf(n);m>=0?(l=h.substr(0,m),f=h.substr(m+1)):(l=h,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),t(o,p)?Array.isArray(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o}},e=>{"use strict";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,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},e=>{e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},(e,t,r)=>{var n=r(237).eventMessageChunker,i=r(238).parseEvent;e.exports={createEventStream:function(e,t,r){for(var o=n(e),a=[],s=0;s<o.length;s++)a.push(i(t,o[s],r));return a}}},e=>{e.exports={eventMessageChunker:function(e){for(var t=[],r=0;r<e.length;){var n=e.readInt32BE(r),i=e.slice(r,n+r);r+=n,t.push(i)}return t}}},(e,t,r)=>{var n=r(239).parseMessage;e.exports={parseEvent:function(e,t,r){var i=n(t),o=i.headers[":message-type"];if(o){if("error"===o.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],n=new Error(r.value||r);return n.code=n.name=t.value||t,n}(i);if("event"!==o.value)return}var a=i.headers[":event-type"],s=r.members[a.value];if(s){var u={},c=s.eventPayloadMemberName;if(c){var l=s.members[c];"binary"===l.type?u[c]=i.body:u[c]=e.parse(i.body.toString(),l)}for(var f=s.eventHeaderMemberNames,p=0;p<f.length;p++){var d=f[p];i.headers[d]&&(u[d]=s.members[d].toType(i.headers[d].value))}var h={};return h[a.value]=u,h}}}},(e,t,r)=>{var n=r(240).Int64,i=r(241).splitMessage,o="boolean",a="byte",s="short",u="integer",c="long",l="binary",f="string",p="timestamp",d="uuid";function h(e){for(var t={},r=0;r<e.length;){var i=e.readUInt8(r++),h=e.slice(r,r+i).toString();switch(r+=i,e.readUInt8(r++)){case 0:t[h]={type:o,value:!0};break;case 1:t[h]={type:o,value:!1};break;case 2:t[h]={type:a,value:e.readInt8(r++)};break;case 3:t[h]={type:s,value:e.readInt16BE(r)},r+=2;break;case 4:t[h]={type:u,value:e.readInt32BE(r)},r+=4;break;case 5:t[h]={type:c,value:new n(e.slice(r,r+8))},r+=8;break;case 6:var m=e.readUInt16BE(r);r+=2,t[h]={type:l,value:e.slice(r,r+m)},r+=m;break;case 7:var g=e.readUInt16BE(r);r+=2,t[h]={type:f,value:e.slice(r,r+g).toString()},r+=g;break;case 8:t[h]={type:p,value:new Date(new n(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var y=e.slice(r,r+16).toString("hex");r+=16,t[h]={type:d,value:y.substr(0,8)+"-"+y.substr(8,4)+"-"+y.substr(12,4)+"-"+y.substr(16,4)+"-"+y.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}e.exports={parseMessage:function(e){var t=i(e);return{headers:h(t.headers),body:t.body}}}},(e,t,r)=>{var n=r(123).util,i=n.buffer.toBuffer;function o(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(e)||(e=i(e)),this.bytes=e}function a(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}o.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&a(t),new o(t)},o.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&a(e),parseInt(e.toString("hex"),16)*(t?-1:1)},o.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:o}},(e,t,r)=>{var n=r(123).util,i=n.buffer.toBuffer;e.exports={splitMessage:function(e){if(n.Buffer.isBuffer(e)||(e=i(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==n.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==n.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var o=12+e.readUInt32BE(4);return{headers:e.slice(12,o),body:e.slice(o,e.length-4)}}}},(e,t,r)=>{var n=r(123),i=r(243);n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get((function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))}))},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new i({params:this.params})}})},(e,t,r)=>{r(121);var n=r(123),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r(244),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(246);return e.paginators=r(247).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},(e,t,r)=>{var n=r(123),i=r(245);n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=i(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var o=r.endpoint.indexOf(".amazonaws.com"),a=r.endpoint.substring(0,o)+"."+r.region+r.endpoint.substring(o);e.httpRequest.updateEndpoint(a),e.httpRequest.region=r.region}}})},(e,t,r)=>{var n=r(123);function i(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=i(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy"  or "regional". Got "'+e[t.clientConfig]+'".'})))return r;if(!n.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(r=i(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy"  or "regional". Got "'+process.env[t.env]+'".'})))return r;var o={};try{o=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(e){}return o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)&&(r=i(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy"  or "regional". Got "'+o[t.sharedConfig]+'".'})),r}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{},"ProvidedContexts":{"type":"list","member":{"type":"structure","members":{"ProviderArn":{},"ContextAssertion":{}}}}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sl":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{"type":"string","sensitive":true},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sq":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{var n=r(123),i=r(243);n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode((function(n,i){var o={};n?e(n):(i&&(o.TokenCode=i),t.service[r](o,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)})))}))},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,(function(r,i){if(r){var o=r;return r instanceof Error&&(o=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}))}e(null,i)})):e(null)}})},(e,t,r)=>{var n=r(123),i=r(243);n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity((function(r,n){t.data=null,r||(t.data=n,t.service.credentialsFrom(n,t)),e(r)}))},createClients:function(){if(!this.service){var e=n.util.merge({},this._clientConfig);e.params=this.params,this.service=new i(e)}}})},(e,t,r)=>{var n=r(123),i=r(251),o=r(243);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId((function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)}))},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId((function(r,n){!r&&n.IdentityId?(t.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(r)}))},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity((function(r,n){r?t.clearIdOnNotAuthorized(r):(t.cacheId(n),t.data=n,t.loadCredentials(t.data,t)),e(r)}))},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken((function(r,n){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(n),t.params.WebIdentityToken=n.Token,t.webIdentityCredentials.refresh((function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)})))}))},loadCachedId:function(){var e=this;if(n.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter((function(e){return-1!==r.indexOf(e)})).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new i(t)}this.sts=this.sts||new o(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},(e,t,r)=>{r(121);var n=r(123),i=n.Service,o=n.apiLoader;o.services.cognitoidentity={},n.CognitoIdentity=i.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(o.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(252);return e.paginators=r(253).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.CognitoIdentity},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},e=>{"use strict";e.exports=JSON.parse('{"pagination":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},(e,t,r)=>{var n=r(123),i=r(243);n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML((function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))},createClients:function(){this.service=this.service||new i({params:this.params})}})},(e,t,r)=>{var n=r(122),i=r(130);function o(){}function a(e,t){for(var r=e.getElementsByTagName(t),n=0,i=r.length;n<i;n++)if(r[n].parentNode===e)return r[n]}function s(e,t){switch(t||(t={}),t.type){case"structure":return u(e,t);case"map":return function(e,t){var r={},n=t.key.name||"key",i=t.value.name||"value",o=t.flattened?t.name:"entry",u=e.firstElementChild;for(;u;){if(u.nodeName===o){var c=a(u,n).textContent,l=a(u,i);r[c]=s(l,t.value)}u=u.nextElementSibling}return r}(e,t);case"list":return function(e,t){var r=[],n=t.flattened?t.name:t.member.name||"member",i=e.firstElementChild;for(;i;)i.nodeName===n&&r.push(s(i,t.member)),i=i.nextElementSibling;return r}(e,t);case void 0:case null:return function(e){if(null==e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;var t={type:"structure",members:{}},r=e.firstElementChild;for(;r;){var n=r.nodeName;Object.prototype.hasOwnProperty.call(t.members,n)?t.members[n].type="list":t.members[n]={name:n},r=r.nextElementSibling}return u(e,t)}(e);default:return function(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new i.create({type:r}))}var n=e.textContent;""===n&&(n=null);return"function"==typeof t.toType?t.toType(n):n}(e,t)}}function u(e,t){var r={};return null===e||n.each(t.members,(function(n,i){if(i.isXmlAttribute){if(Object.prototype.hasOwnProperty.call(e.attributes,i.name)){var o=e.attributes[i.name].value;r[n]=s({textContent:o},i)}}else{var u=i.flattened?e:a(e,i.name);u?r[n]=s(u,i):i.flattened||"list"!==i.type||t.api.xmlNoDefaultLists||(r[n]=i.defaultValue)}})),r}o.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,i;try{if(window.DOMParser){try{r=(new DOMParser).parseFromString(e,"text/xml")}catch(e){throw n.error(new Error("Parse error in document"),{originalError:e,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw n.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var o=r.getElementsByTagName("parsererror")[0];if(o&&(o.parentNode===r||"body"===o.parentNode.nodeName||o.parentNode.parentNode===r||"body"===o.parentNode.parentNode.nodeName)){var u=o.getElementsByTagName("div")[0]||o;throw n.error(new Error(u.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((r=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!r.loadXML(e))throw n.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(e){i=e}if(r&&r.documentElement&&!i){var c=s(r.documentElement,t),l=a(r.documentElement,"ResponseMetadata");return l&&(c.ResponseMetadata=s(l,{})),c}if(i)throw n.error(i||new Error,{code:"XMLParserError",retryable:!0});return{}},e.exports=o},(e,t,r)=>{var n=r(123),i=r(257).EventEmitter;r(156),n.XHRClient=n.util.inherit({handleRequest:function(e,t,r,o){var a=this,s=e.endpoint,u=new i,c=s.protocol+"//"+s.hostname;80!==s.port&&443!==s.port&&(c+=":"+s.port),c+=e.path;var l=new XMLHttpRequest,f=!1;e.stream=l,l.addEventListener("readystatechange",(function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!f&&(u.statusCode=l.status,u.headers=a.parseHeaders(l.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,l.statusText),f=!0),this.readyState===this.DONE&&a.finishRequest(l,u)}),!1),l.upload.addEventListener("progress",(function(e){u.emit("sendProgress",e)})),l.addEventListener("progress",(function(e){u.emit("receiveProgress",e)}),!1),l.addEventListener("timeout",(function(){o(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))}),!1),l.addEventListener("error",(function(){o(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))}),!1),l.addEventListener("abort",(function(){o(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))}),!1),r(u),l.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,(function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)})),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(e){}try{e.body?l.send(e.body):l.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;l.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),(function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)})),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new n.util.Buffer(i.byteLength);for(var o=new Uint8Array(i),a=0;a<r.length;++a)r[a]=o[a]}try{r||"string"!=typeof e.responseText||(r=new n.util.Buffer(e.responseText))}catch(e){}r&&t.emit("data",r),t.emit("end")}}),n.HttpClient.prototype=n.XHRClient.prototype,n.HttpClient.streamsApiVersion=1},e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(i(o=this._events[e]))return!1;if(r(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),o.apply(this,s)}else if(n(o))for(s=Array.prototype.slice.call(arguments,1),a=(c=o.slice()).length,u=0;u<a;u++)c[u].apply(this,s);return!0},t.prototype.addListener=function(e,o){var a;if(!r(o))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(o.listener)?o.listener:o),this._events[e]?n(this._events[e])?this._events[e].push(o):this._events[e]=[this._events[e],o]:this._events[e]=o,n(this._events[e])&&!this._events[e].warned&&(a=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2015-08-04","endpointPrefix":"firehose","jsonVersion":"1.1","protocol":"json","protocols":["json"],"serviceAbbreviation":"Firehose","serviceFullName":"Amazon Kinesis Firehose","serviceId":"Firehose","signatureVersion":"v4","targetPrefix":"Firehose_20150804","uid":"firehose-2015-08-04"},"operations":{"CreateDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamType":{},"KinesisStreamSourceConfiguration":{"type":"structure","required":["KinesisStreamARN","RoleARN"],"members":{"KinesisStreamARN":{},"RoleARN":{}}},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"},"S3DestinationConfiguration":{"shape":"Sa","deprecated":true},"ExtendedS3DestinationConfiguration":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationConfiguration":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3Configuration"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationConfiguration":{"type":"structure","required":["HECEndpoint","HECEndpointType","S3Configuration"],"members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationConfiguration":{"type":"structure","required":["EndpointConfiguration","S3Configuration"],"members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"}}},"Tags":{"shape":"S3r"},"AmazonOpenSearchServerlessDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"}}},"MSKSourceConfiguration":{"type":"structure","required":["MSKClusterARN","TopicName","AuthenticationConfiguration"],"members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"}}},"SnowflakeDestinationConfiguration":{"type":"structure","required":["AccountUrl","Database","Schema","Table","RoleARN","S3Configuration"],"members":{"AccountUrl":{"shape":"S4a"},"PrivateKey":{"shape":"S4b"},"KeyPassphrase":{"shape":"S4c"},"User":{"shape":"S4d"},"Database":{"shape":"S4e"},"Schema":{"shape":"S4f"},"Table":{"shape":"S4g"},"SnowflakeRoleConfiguration":{"shape":"S4h"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4k"},"ContentColumnName":{"shape":"S4l"},"SnowflakeVpcConfiguration":{"shape":"S4m"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4o"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"}}}}},"output":{"type":"structure","members":{"DeliveryStreamARN":{}}}},"DeleteDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"AllowForceDelete":{"type":"boolean"}}},"output":{"type":"structure","members":{}}},"DescribeDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"Limit":{"type":"integer"},"ExclusiveStartDestinationId":{}}},"output":{"type":"structure","required":["DeliveryStreamDescription"],"members":{"DeliveryStreamDescription":{"type":"structure","required":["DeliveryStreamName","DeliveryStreamARN","DeliveryStreamStatus","DeliveryStreamType","VersionId","Destinations","HasMoreDestinations"],"members":{"DeliveryStreamName":{},"DeliveryStreamARN":{},"DeliveryStreamStatus":{},"FailureDescription":{"shape":"S51"},"DeliveryStreamEncryptionConfiguration":{"type":"structure","members":{"KeyARN":{},"KeyType":{},"Status":{},"FailureDescription":{"shape":"S51"}}},"DeliveryStreamType":{},"VersionId":{},"CreateTimestamp":{"type":"timestamp"},"LastUpdateTimestamp":{"type":"timestamp"},"Source":{"type":"structure","members":{"KinesisStreamSourceDescription":{"type":"structure","members":{"KinesisStreamARN":{},"RoleARN":{},"DeliveryStartTimestamp":{"type":"timestamp"}}},"MSKSourceDescription":{"type":"structure","members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"},"DeliveryStartTimestamp":{"type":"timestamp"}}}}},"Destinations":{"type":"list","member":{"type":"structure","required":["DestinationId"],"members":{"DestinationId":{},"S3DestinationDescription":{"shape":"S5d"},"ExtendedS3DestinationDescription":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5d"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationDescription":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3DestinationDescription"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"RetryOptions":{"shape":"S21"},"S3DestinationDescription":{"shape":"S5d"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5d"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5d"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5h"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5d"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5h"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationDescription":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5d"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationDescription":{"type":"structure","members":{"EndpointConfiguration":{"type":"structure","members":{"Url":{"shape":"S3c"},"Name":{}}},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5d"},"SecretsManagerConfiguration":{"shape":"S24"}}},"SnowflakeDestinationDescription":{"type":"structure","members":{"AccountUrl":{"shape":"S4a"},"User":{"shape":"S4d"},"Database":{"shape":"S4e"},"Schema":{"shape":"S4f"},"Table":{"shape":"S4g"},"SnowflakeRoleConfiguration":{"shape":"S4h"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4k"},"ContentColumnName":{"shape":"S4l"},"SnowflakeVpcConfiguration":{"shape":"S4m"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4o"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5d"},"SecretsManagerConfiguration":{"shape":"S24"}}},"AmazonOpenSearchServerlessDestinationDescription":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5d"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5h"}}}}}},"HasMoreDestinations":{"type":"boolean"}}}}}},"ListDeliveryStreams":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"DeliveryStreamType":{},"ExclusiveStartDeliveryStreamName":{}}},"output":{"type":"structure","required":["DeliveryStreamNames","HasMoreDeliveryStreams"],"members":{"DeliveryStreamNames":{"type":"list","member":{}},"HasMoreDeliveryStreams":{"type":"boolean"}}}},"ListTagsForDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"ExclusiveStartTagKey":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Tags","HasMoreTags"],"members":{"Tags":{"type":"list","member":{"shape":"S3s"}},"HasMoreTags":{"type":"boolean"}}}},"PutRecord":{"input":{"type":"structure","required":["DeliveryStreamName","Record"],"members":{"DeliveryStreamName":{},"Record":{"shape":"S5x"}}},"output":{"type":"structure","required":["RecordId"],"members":{"RecordId":{},"Encrypted":{"type":"boolean"}}}},"PutRecordBatch":{"input":{"type":"structure","required":["DeliveryStreamName","Records"],"members":{"DeliveryStreamName":{},"Records":{"type":"list","member":{"shape":"S5x"}}}},"output":{"type":"structure","required":["FailedPutCount","RequestResponses"],"members":{"FailedPutCount":{"type":"integer"},"Encrypted":{"type":"boolean"},"RequestResponses":{"type":"list","member":{"type":"structure","members":{"RecordId":{},"ErrorCode":{},"ErrorMessage":{}}}}}}},"StartDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"}}},"output":{"type":"structure","members":{}}},"StopDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{}}},"output":{"type":"structure","members":{}}},"TagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","Tags"],"members":{"DeliveryStreamName":{},"Tags":{"shape":"S3r"}}},"output":{"type":"structure","members":{}}},"UntagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","TagKeys"],"members":{"DeliveryStreamName":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateDestination":{"input":{"type":"structure","required":["DeliveryStreamName","CurrentDeliveryStreamVersionId","DestinationId"],"members":{"DeliveryStreamName":{},"CurrentDeliveryStreamVersionId":{},"DestinationId":{},"S3DestinationUpdate":{"shape":"S6i","deprecated":true},"ExtendedS3DestinationUpdate":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6i"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Update":{"shape":"S6i"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6i"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3Update":{"shape":"S6i"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3Update":{"shape":"S6i"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationUpdate":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Update":{"shape":"S6i"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationUpdate":{"type":"structure","members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Update":{"shape":"S6i"},"SecretsManagerConfiguration":{"shape":"S24"}}},"AmazonOpenSearchServerlessDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3Update":{"shape":"S6i"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"SnowflakeDestinationUpdate":{"type":"structure","members":{"AccountUrl":{"shape":"S4a"},"PrivateKey":{"shape":"S4b"},"KeyPassphrase":{"shape":"S4c"},"User":{"shape":"S4d"},"Database":{"shape":"S4e"},"Schema":{"shape":"S4f"},"Table":{"shape":"S4g"},"SnowflakeRoleConfiguration":{"shape":"S4h"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4k"},"ContentColumnName":{"shape":"S4l"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4o"},"S3BackupMode":{},"S3Update":{"shape":"S6i"},"SecretsManagerConfiguration":{"shape":"S24"}}}}},"output":{"type":"structure","members":{}}}},"shapes":{"S7":{"type":"structure","required":["KeyType"],"members":{"KeyARN":{},"KeyType":{}}},"Sa":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"Se":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"Si":{"type":"structure","members":{"NoEncryptionConfig":{},"KMSEncryptionConfig":{"type":"structure","required":["AWSKMSKeyARN"],"members":{"AWSKMSKeyARN":{}}}}},"Sl":{"type":"structure","members":{"Enabled":{"type":"boolean"},"LogGroupName":{},"LogStreamName":{}}},"Sq":{"type":"structure","members":{"Enabled":{"type":"boolean"},"Processors":{"type":"list","member":{"type":"structure","required":["Type"],"members":{"Type":{},"Parameters":{"type":"list","member":{"type":"structure","required":["ParameterName","ParameterValue"],"members":{"ParameterName":{},"ParameterValue":{}}}}}}}}},"Sz":{"type":"structure","members":{"SchemaConfiguration":{"type":"structure","members":{"RoleARN":{},"CatalogId":{},"DatabaseName":{},"TableName":{},"Region":{},"VersionId":{}}},"InputFormatConfiguration":{"type":"structure","members":{"Deserializer":{"type":"structure","members":{"OpenXJsonSerDe":{"type":"structure","members":{"ConvertDotsInJsonKeysToUnderscores":{"type":"boolean"},"CaseInsensitive":{"type":"boolean"},"ColumnToJsonKeyMappings":{"type":"map","key":{},"value":{}}}},"HiveJsonSerDe":{"type":"structure","members":{"TimestampFormats":{"type":"list","member":{}}}}}}}},"OutputFormatConfiguration":{"type":"structure","members":{"Serializer":{"type":"structure","members":{"ParquetSerDe":{"type":"structure","members":{"BlockSizeBytes":{"type":"integer"},"PageSizeBytes":{"type":"integer"},"Compression":{},"EnableDictionaryCompression":{"type":"boolean"},"MaxPaddingBytes":{"type":"integer"},"WriterVersion":{}}},"OrcSerDe":{"type":"structure","members":{"StripeSizeBytes":{"type":"integer"},"BlockSizeBytes":{"type":"integer"},"RowIndexStride":{"type":"integer"},"EnablePadding":{"type":"boolean"},"PaddingTolerance":{"type":"double"},"Compression":{},"BloomFilterColumns":{"type":"list","member":{}},"BloomFilterFalsePositiveProbability":{"type":"double"},"DictionaryKeyThreshold":{"type":"double"},"FormatVersion":{}}}}}}},"Enabled":{"type":"boolean"}}},"S1o":{"type":"structure","members":{"RetryOptions":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"Enabled":{"type":"boolean"}}},"S1v":{"type":"structure","required":["DataTableName"],"members":{"DataTableName":{},"DataTableColumns":{},"CopyOptions":{}}},"S1z":{"type":"string","sensitive":true},"S20":{"type":"string","sensitive":true},"S21":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S24":{"type":"structure","required":["Enabled"],"members":{"SecretARN":{},"RoleARN":{},"Enabled":{"type":"boolean"}}},"S2c":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2f":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S2i":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"}}},"S2j":{"type":"list","member":{}},"S2k":{"type":"list","member":{}},"S2l":{"type":"structure","required":["DefaultDocumentIdFormat"],"members":{"DefaultDocumentIdFormat":{}}},"S2t":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2w":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S34":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S37":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S3b":{"type":"structure","required":["Url"],"members":{"Url":{"shape":"S3c"},"Name":{},"AccessKey":{"type":"string","sensitive":true}}},"S3c":{"type":"string","sensitive":true},"S3f":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S3i":{"type":"structure","members":{"ContentEncoding":{},"CommonAttributes":{"type":"list","member":{"type":"structure","required":["AttributeName","AttributeValue"],"members":{"AttributeName":{"type":"string","sensitive":true},"AttributeValue":{"type":"string","sensitive":true}}}}}},"S3o":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S3r":{"type":"list","member":{"shape":"S3s"}},"S3s":{"type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}},"S3y":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S41":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S47":{"type":"structure","required":["RoleARN","Connectivity"],"members":{"RoleARN":{},"Connectivity":{}}},"S4a":{"type":"string","sensitive":true},"S4b":{"type":"string","sensitive":true},"S4c":{"type":"string","sensitive":true},"S4d":{"type":"string","sensitive":true},"S4e":{"type":"string","sensitive":true},"S4f":{"type":"string","sensitive":true},"S4g":{"type":"string","sensitive":true},"S4h":{"type":"structure","members":{"Enabled":{"type":"boolean"},"SnowflakeRole":{"type":"string","sensitive":true}}},"S4k":{"type":"string","sensitive":true},"S4l":{"type":"string","sensitive":true},"S4m":{"type":"structure","required":["PrivateLinkVpceId"],"members":{"PrivateLinkVpceId":{"type":"string","sensitive":true}}},"S4o":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S51":{"type":"structure","required":["Type","Details"],"members":{"Type":{},"Details":{}}},"S5d":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"S5h":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds","VpcId"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"},"VpcId":{}}},"S5x":{"type":"structure","required":["Data"],"members":{"Data":{"type":"blob"}}},"S6i":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,s,p,d,h,m,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(r=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var v=s.split(":"),b=(w=2,function(e){if(Array.isArray(e))return e}(E=v)||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,w)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.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)?u(e,t):void 0}}(E,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=b[0],S=b[1];if(""===_&&""===S)return!1}var E,w;d=g.join("@"),m=null,y=null;var O=d.match(l);O?(p="",y=O[1],m=O[2]||null):(p=(g=d.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return f(p,t.host_whitelist);if(""===p&&!t.require_host)return!0;if(!((0,o.default)(p)||(0,i.default)(p,t)||y&&(0,o.default)(y,6)))return!1;if(p=p||y,t.host_blacklist&&f(p,t.host_blacklist))return!1;return!0};var n=s(r(261)),i=s(r(262)),o=s(r(264)),a=s(r(263));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||(i=n,"[object RegExp]"===Object.prototype.toString.call(i)&&n.test(e)))return!0}var i;return!1}e.exports=t.default,e.exports.default=t.default},(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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),o=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return r.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=o(r(261)),i=o(r(263));function o(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},(e,t)=>{"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?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,i.default)(t),!(r=String(r)))return e(t,4)||e(t,6);if("4"===r)return s.test(t);if("6"===r)return c.test(t);return!1};var n,i=(n=r(261))&&n.__esModule?n:{default:n};var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(o,"[.]){3}").concat(o),s=new RegExp("^".concat(a,"$")),u="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},,,,,,,,(e,t,r)=>{e.exports=r(273)()},(e,t,r)=>{"use strict";var n=r(274);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new 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}},e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,(e,t,r)=>{"use strict";var n=r(270);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBreadcrumb:()=>y,captureCheckIn:()=>C,captureEvent:()=>m,captureException:()=>d,captureMessage:()=>h,captureSession:()=>F,close:()=>A,configureScope:()=>g,endSession:()=>j,flush:()=>R,getClient:()=>D,getCurrentScope:()=>M,isInitialized:()=>N,lastEventId:()=>P,setContext:()=>v,setExtra:()=>_,setExtras:()=>b,setTag:()=>E,setTags:()=>S,setUser:()=>w,startSession:()=>L,startTransaction:()=>k,withActiveSpan:()=>T,withIsolationScope:()=>x,withMonitor:()=>I,withScope:()=>O});var n=r(286),i=r(290),o=r(289),a=r(285),s=r(283),u=r(278),c=r(279),l=r(280),f=r(288),p=r(301);function d(e,t){return(0,l.getCurrentHub)().captureException(e,(0,p.parseEventHintOrCaptureContext)(t))}function h(e,t){const r="string"==typeof t?t:void 0,n="string"!=typeof t?{captureContext:t}:void 0;return(0,l.getCurrentHub)().captureMessage(e,r,n)}function m(e,t){return(0,l.getCurrentHub)().captureEvent(e,t)}function g(e){(0,l.getCurrentHub)().configureScope(e)}function y(e,t){(0,l.getCurrentHub)().addBreadcrumb(e,t)}function v(e,t){(0,l.getCurrentHub)().setContext(e,t)}function b(e){(0,l.getCurrentHub)().setExtras(e)}function _(e,t){(0,l.getCurrentHub)().setExtra(e,t)}function S(e){(0,l.getCurrentHub)().setTags(e)}function E(e,t){(0,l.getCurrentHub)().setTag(e,t)}function w(e){(0,l.getCurrentHub)().setUser(e)}function O(...e){const t=(0,l.getCurrentHub)();if(2===e.length){const[r,n]=e;return r?t.withScope((()=>(t.getStackTop().scope=r,n(r)))):t.withScope(n)}return t.withScope(e[0])}function x(e){return(0,l.runWithAsyncContext)((()=>e((0,l.getIsolationScope)())))}function T(e,t){return O((r=>(r.setSpan(e),t(r))))}function k(e,t){return(0,l.getCurrentHub)().startTransaction({...e},t)}function C(e,t){const r=M(),o=D();if(o){if(o.captureCheckIn)return o.captureCheckIn(e,t,r);c.DEBUG_BUILD&&n.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else c.DEBUG_BUILD&&n.logger.warn("Cannot capture check-in. No client defined.");return(0,i.uuid4)()}function I(e,t,r){const n=C({monitorSlug:e,status:"in_progress"},r),i=(0,o.timestampInSeconds)();function s(t){C({monitorSlug:e,status:t,checkInId:n,duration:(0,o.timestampInSeconds)()-i})}let u;try{u=t()}catch(e){throw s("error"),e}return(0,a.isThenable)(u)?Promise.resolve(u).then((()=>{s("ok")}),(()=>{s("error")})):s("ok"),u}async function R(e){const t=D();return t?t.flush(e):(c.DEBUG_BUILD&&n.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function A(e){const t=D();return t?t.close(e):(c.DEBUG_BUILD&&n.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function P(){return(0,l.getCurrentHub)().lastEventId()}function D(){return(0,l.getCurrentHub)().getClient()}function N(){return!!D()}function M(){return(0,l.getCurrentHub)().getScope()}function L(e){const t=D(),r=(0,l.getIsolationScope)(),n=M(),{release:i,environment:o=u.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:a}=s.GLOBAL_OBJ.navigator||{},c=(0,f.makeSession)({release:i,environment:o,user:n.getUser()||r.getUser(),...a&&{userAgent:a},...e}),p=r.getSession();return p&&"ok"===p.status&&(0,f.updateSession)(p,{status:"exited"}),j(),r.setSession(c),n.setSession(c),c}function j(){const e=(0,l.getIsolationScope)(),t=M(),r=t.getSession()||e.getSession();r&&(0,f.closeSession)(r),B(),e.setSession(),t.setSession()}function B(){const e=(0,l.getIsolationScope)(),t=M(),r=D(),n=t.getSession()||e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function F(e=!1){e?j():B()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_ENVIRONMENT:()=>n});const n="production"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{API_VERSION:()=>d,Hub:()=>m,ensureHubOnCarrier:()=>S,getCurrentHub:()=>v,getHubFromCarrier:()=>x,getIsolationScope:()=>b,getMainCarrier:()=>g,makeMain:()=>y,runWithAsyncContext:()=>w,setAsyncContextStrategy:()=>E,setHubOnCarrier:()=>T});var n=r(285),i=r(290),o=r(289),a=r(286),s=r(283),u=r(278),c=r(279),l=r(281),f=r(288),p=r(300);const d=parseFloat(p.SDK_VERSION),h=100;class m{constructor(e,t,r,n=d){let i,o;this._version=n,t?i=t:(i=new l.Scope,i.setClient(e)),r?o=r:(o=new l.Scope,o.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let r;try{r=e(t)}catch(e){throw this.popScope(),e}return(0,n.isThenable)(r)?r.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const r=this._lastEventId=t&&t.event_id?t.event_id:(0,i.uuid4)(),n=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:n,...t,event_id:r}),r}captureMessage(e,t,r){const n=this._lastEventId=r&&r.event_id?r.event_id:(0,i.uuid4)(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:n}),n}captureEvent(e,t){const r=t&&t.event_id?t.event_id:(0,i.uuid4)();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...t,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:r,client:n}=this.getStackTop();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=h}=n.getOptions&&n.getOptions()||{};if(s<=0)return;const u={timestamp:(0,o.dateTimestampInSeconds)(),...e},c=i?(0,a.consoleSandbox)((()=>i(u,t))):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:r}=this.getStackTop();r&&e(t)}run(e){const t=y(this);try{e(this)}finally{y(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return c.DEBUG_BUILD&&a.logger.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const r=this._callExtensionMethod("startTransaction",e,t);if(c.DEBUG_BUILD&&!r){this.getClient()?a.logger.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):a.logger.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,f.closeSession)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:r}=this.getStackTop(),{release:n,environment:i=u.DEFAULT_ENVIRONMENT}=r&&r.getOptions()||{},{userAgent:o}=s.GLOBAL_OBJ.navigator||{},a=(0,f.makeSession)({release:n,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,f.updateSession)(c,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(e,...t){const r=g().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);c.DEBUG_BUILD&&a.logger.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function g(){return s.GLOBAL_OBJ.__SENTRY__=s.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},s.GLOBAL_OBJ}function y(e){const t=g(),r=x(t);return T(t,e),r}function v(){const e=g();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return _(e)}function b(){return v().getIsolationScope()}function _(e=g()){return O(e)&&!x(e).isOlderThan(d)||T(e,new m),x(e)}function S(e,t=_()){if(!O(e)||x(e).isOlderThan(d)){const r=t.getClient(),n=t.getScope(),i=t.getIsolationScope();T(e,new m(r,n.clone(),i.clone()))}}function E(e){const t=g();t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.acs=e}function w(e,t={}){const r=g();return r.__SENTRY__&&r.__SENTRY__.acs?r.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function O(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function x(e){return(0,s.getGlobalSingleton)("hub",(()=>new m),e)}function T(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scope:()=>f,getGlobalScope:()=>p,setGlobalScope:()=>d});var n=r(285),i=r(289),o=r(290),a=r(286),s=r(282),u=r(288),c=r(294);let l;class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=h()}static clone(e){return e?e.clone():new f}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,u.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof f){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if((0,n.isPlainObject)(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=h(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,i.dateTimestampInSeconds)(),...e},o=this._breadcrumbs;return o.push(n),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:r,_tags:n,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:l,_transactionName:f,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:r,tags:n,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:l,transactionName:f,span:p}}applyToEvent(e,t={},r=[]){(0,c.applyScopeDataToEvent)(e,this.getScopeData());const n=[...r,...(0,s.getGlobalEventProcessors)(),...this._eventProcessors];return(0,s.notifyEventProcessors)(n,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t&&t.event_id?t.event_id:(0,o.uuid4)();if(!this._client)return a.logger.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r&&r.event_id?r.event_id:(0,o.uuid4)();if(!this._client)return a.logger.warn("No client configured on scope - will not capture message!"),n;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){const r=t&&t.event_id?t.event_id:(0,o.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(a.logger.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function p(){return l||(l=new f),l}function d(e){l=e}function h(){return{traceId:(0,o.uuid4)(),spanId:(0,o.uuid4)().substring(16)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalEventProcessor:()=>c,getGlobalEventProcessors:()=>u,notifyEventProcessors:()=>l});var n=r(283),i=r(284),o=r(286),a=r(285),s=r(279);function u(){return(0,n.getGlobalSingleton)("globalEventProcessors",(()=>[]))}function c(e){u().push(e)}function l(e,t,r,n=0){return new i.SyncPromise(((i,u)=>{const c=e[n];if(null===t||"function"!=typeof c)i(t);else{const f=c({...t},r);s.DEBUG_BUILD&&c.id&&null===f&&o.logger.log(`Event processor "${c.id}" dropped event`),(0,a.isThenable)(f)?f.then((t=>l(e,t,r,n+1).then(i))).then(null,u):l(e,f,r,n+1).then(i).then(null,u)}}))}},(e,t,r)=>{"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.r(t),r.d(t,{GLOBAL_OBJ:()=>i,getGlobalObject:()=>o,getGlobalSingleton:()=>a});const i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function o(){return i}function a(e,t,r){const n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>s,rejectedSyncPromise:()=>a,resolvedSyncPromise:()=>o});var n,i=r(285);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,r)=>{let n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.isThenable)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>s,isDOMException:()=>u,isElement:()=>h,isError:()=>i,isErrorEvent:()=>a,isEvent:()=>d,isInstanceOf:()=>b,isNaN:()=>v,isParameterizedString:()=>l,isPlainObject:()=>p,isPrimitive:()=>f,isRegExp:()=>m,isString:()=>c,isSyntheticEvent:()=>y,isThenable:()=>g,isVueViewModel:()=>_});const n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function f(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&b(e,Event)}function h(e){return"undefined"!=typeof Element&&b(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function y(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function b(e,t){try{return e instanceof t}catch(e){return!1}}function _(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONSOLE_LEVELS:()=>o,consoleSandbox:()=>s,logger:()=>u,originalConsoleMethods:()=>a});var n=r(287),i=r(283);const o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,r={},n=Object.keys(a);n.forEach((e=>{const n=a[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}const u=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return n.DEBUG_BUILD?o.forEach((r=>{t[r]=(...t)=>{e&&s((()=>{i.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>u,makeSession:()=>a,updateSession:()=>s});var n=r(289),i=r(290),o=r(291);function a(e){const t=(0,n.timestampInSeconds)(),r={sid:(0,i.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.dropUndefinedKeys)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&s(r,e),r}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.timestampInSeconds)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.uuid4)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_browserPerformanceTimeOriginMode:()=>u,browserPerformanceTimeOrigin:()=>c,dateTimestampInSeconds:()=>o,timestampInSeconds:()=>a,timestampWithMs:()=>s});var n=r(283);const i=1e3;function o(){return Date.now()/i}const a=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return o;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/i}(),s=a;let u;const c=(()=>{const{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return void(u="none");const t=36e5,r=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,c="number"==typeof s?Math.abs(s+r-i):t;return a||c<t?o<=c?(u="timeOrigin",e.timeOrigin):(u="navigationStart",s):(u="dateNow",i)})()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>d,addExceptionMechanism:()=>l,addExceptionTypeValue:()=>c,arrayify:()=>m,checkOrSetAlreadyCaught:()=>h,getEventDescription:()=>u,parseSemver:()=>p,uuid4:()=>a});var n=r(291),i=r(293),o=r(283);function a(){const e=o.GLOBAL_OBJ,t=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){const{message:t,event_id:r}=e;if(t)return t;const n=s(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function c(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function l(e,t){const r=s(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n&&n.data,...t.data};r.mechanism.data=e}}const f=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function p(e){const t=e.match(f)||[],r=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function d(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,o=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-r),o).map((e=>(0,i.snipLine)(e,0))),t.context_line=(0,i.snipLine)(e[Math.min(n-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,n),o+1+r).map((e=>(0,i.snipLine)(e,0)))}function h(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch(e){}return!1}function m(e){return Array.isArray(e)?e:[e]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonEnumerableProperty:()=>c,convertToPlainObject:()=>d,dropUndefinedKeys:()=>y,extractExceptionKeysForMessage:()=>g,fill:()=>u,getOriginalFunction:()=>f,markFunctionWrapped:()=>l,objectify:()=>b,urlEncode:()=>p});var n=r(292),i=r(287),o=r(285),a=r(286),s=r(293);function u(e,t,r){if(!(t in e))return;const n=e[t],i=r(n);"function"==typeof i&&l(i,n),e[t]=i}function c(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){i.DEBUG_BUILD&&a.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,c(e,"__sentry_original__",t)}catch(e){}}function f(e){return e.__sentry_original__}function p(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function d(e){if((0,o.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if((0,o.isEvent)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.isInstanceOf)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,o.isElement)(e)?(0,n.htmlTreeAsString)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function g(e,t=40){const r=Object.keys(d(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,s.truncate)(r[0],t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,s.truncate)(n,t)}return""}function y(e){return v(e,new Map)}function v(e,t){if(function(e){if(!(0,o.isPlainObject)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const r=t.get(e);if(void 0!==r)return r;const n={};t.set(e,n);for(const r of Object.keys(e))void 0!==e[r]&&(n[r]=v(e[r],t));return n}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(v(e,t))})),n}return e}function b(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case(0,o.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponentName:()=>l,getDomElement:()=>c,getLocationHref:()=>u,htmlTreeAsString:()=>a});var n=r(285);const i=(0,r(283).getGlobalObject)(),o=80;function a(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,u=0;const c=" > ",l=c.length;let f;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||o;for(;r&&a++<n&&(f=s(r,p),!("html"===f||a>1&&u+i.length*l+f.length>=d));)i.push(f),u+=f.length,r=r.parentNode;return i.reverse().join(c)}catch(e){return"<unknown>"}}function s(e,t){const r=e,o=[];let a,s,u,c,l;if(!r||!r.tagName)return"";if(i.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;o.push(r.tagName.toLowerCase());const f=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(f&&f.length)f.forEach((e=>{o.push(`[${e[0]}="${e[1]}"]`)}));else if(r.id&&o.push(`#${r.id}`),a=r.className,a&&(0,n.isString)(a))for(s=a.split(/\s+/),l=0;l<s.length;l++)o.push(`.${s[l]}`);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)u=p[l],c=r.getAttribute(u),c&&o.push(`[${u}="${c}"]`);return o.join("")}function u(){try{return i.document.location.href}catch(e){return""}}function c(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function l(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>s,safeJoin:()=>a,snipLine:()=>o,stringMatchesSomePattern:()=>u,truncate:()=>i});var n=r(285);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`'{snip} ${r}`),o<n&&(r+=" {snip}"),r}function a(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const i=e[t];try{(0,n.isVueViewModel)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function s(e,t,r=!1){return!!(0,n.isString)(e)&&((0,n.isRegExp)(t)?t.test(e):!!(0,n.isString)(t)&&(r?e===t:e.includes(t)))}function u(e,t=[],r=!1){return t.some((t=>s(e,t,r)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>u,mergeAndOverwriteScopeData:()=>l,mergeScopeData:()=>c});var n=r(291),i=r(290),o=r(295),a=r(296),s=r(297);function u(e,t){const{fingerprint:r,span:u,breadcrumbs:c,sdkProcessingMetadata:l}=t;!function(e,t){const{extra:r,tags:i,user:o,contexts:a,level:s,transactionName:u}=t,c=(0,n.dropUndefinedKeys)(r);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=(0,n.dropUndefinedKeys)(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=(0,n.dropUndefinedKeys)(o);f&&Object.keys(f).length&&(e.user={...f,...e.user});const p=(0,n.dropUndefinedKeys)(a);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});s&&(e.level=s);u&&(e.transaction=u)}(e,t),u&&function(e,t){e.contexts={trace:(0,s.spanToTraceContext)(t),...e.contexts};const r=(0,a.getRootSpan)(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:(0,o.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const n=(0,s.spanToJSON)(r).description;n&&(e.tags={transaction:n,...e.tags})}}(e,u),function(e,t){e.fingerprint=e.fingerprint?(0,i.arrayify)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,c),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,l)}function c(e,t){const{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:f,attachments:p,propagationContext:d,transactionName:h,span:m}=t;l(e,"extra",r),l(e,"tags",n),l(e,"user",i),l(e,"contexts",o),l(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function l(e,t,r){if(r&&Object.keys(r).length){e[t]={...e[t]};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDynamicSamplingContextFromClient:()=>u,getDynamicSamplingContextFromSpan:()=>c});var n=r(291),i=r(278),o=r(277),a=r(296),s=r(297);function u(e,t,r){const o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=r&&r.getUser()||{},u=(0,n.dropUndefinedKeys)({environment:o.environment||i.DEFAULT_ENVIRONMENT,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",u),u}function c(e){const t=(0,o.getClient)();if(!t)return{};const r=u((0,s.spanToJSON)(e).trace_id||"",t,(0,o.getCurrentScope)()),n=(0,a.getRootSpan)(e);if(!n)return r;const i=n&&n._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:c,source:l}=n.metadata;null!=c&&(r.sample_rate=`${c}`);const f=(0,s.spanToJSON)(n);return l&&"url"!==l&&(r.transaction=f.description),r.sampled=String((0,s.spanIsSampled)(n)),t.emit&&t.emit("createDsc",r),r}},(e,t,r)=>{"use strict";function n(e){return e.transaction}r.r(t),r.d(t,{getRootSpan:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACE_FLAG_NONE:()=>a,TRACE_FLAG_SAMPLED:()=>s,spanIsSampled:()=>d,spanTimeInputToSeconds:()=>l,spanToJSON:()=>p,spanToTraceContext:()=>u,spanToTraceHeader:()=>c});var n=r(291),i=r(298),o=r(289);const a=0,s=1;function u(e){const{spanId:t,traceId:r}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:u,origin:c}=p(e);return(0,n.dropUndefinedKeys)({data:i,op:o,parent_span_id:a,span_id:t,status:s,tags:u,trace_id:r,origin:c})}function c(e){const{traceId:t,spanId:r}=e.spanContext(),n=d(e);return(0,i.generateSentryTraceHeader)(t,r,n)}function l(e){return"number"==typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):(0,o.timestampInSeconds)()}function f(e){return e>9999999999?e/1e3:e}function p(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function d(e){const{traceFlags:t}=e.spanContext();return Boolean(t&s)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>o,extractTraceparentData:()=>a,generateSentryTraceHeader:()=>c,propagationContextFromHeaders:()=>u,tracingContextFromHeaders:()=>s});var n=r(299),i=r(290);const o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){if(!e)return;const t=e.match(o);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function s(e,t){const r=a(e),o=(0,n.baggageHeaderToDynamicSamplingContext)(t),{traceId:s,parentSpanId:u,parentSampled:c}=r||{};return r?{traceparentData:r,dynamicSamplingContext:o||{},propagationContext:{traceId:s||(0,i.uuid4)(),parentSpanId:u||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:c,dsc:o||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}}function u(e,t){const r=a(e),o=(0,n.baggageHeaderToDynamicSamplingContext)(t),{traceId:s,parentSpanId:u,parentSampled:c}=r||{};return r?{traceId:s||(0,i.uuid4)(),parentSpanId:u||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:c,dsc:o||{}}:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}function c(e=(0,i.uuid4)(),t=(0,i.uuid4)().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BAGGAGE_HEADER_NAME:()=>a,MAX_BAGGAGE_STRING_LENGTH:()=>c,SENTRY_BAGGAGE_KEY_PREFIX:()=>s,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>u,baggageHeaderToDynamicSamplingContext:()=>l,dynamicSamplingContextToSentryBaggageHeader:()=>f});var n=r(287),i=r(285),o=r(286);const a="baggage",s="sentry-",u=/^sentry-/,c=8192;function l(e){if(!(0,i.isString)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const r=p(t);for(const t of Object.keys(r))e[t]=r[t];return e}),{});else{if(!e)return;t=p(e)}const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(u)){e[t.slice(s.length)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function f(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,r],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===i?a:`${e},${a}`;return s.length>c?(n.DEBUG_BUILD&&o.logger.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e)),{}))}function p(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(e[t]=r,e)),{})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SDK_VERSION:()=>n});const n="7.117.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDebugIds:()=>m,applyDebugMeta:()=>g,parseEventHintOrCaptureContext:()=>y,prepareEvent:()=>d});var n=r(290),i=r(289),o=r(293),a=r(283),s=r(302),u=r(278),c=r(282),l=r(281),f=r(294),p=r(297);function d(e,t,r,a,d,h){const{normalizeDepth:y=3,normalizeMaxBreadth:v=1e3}=e,b={...t,event_id:t.event_id||r.event_id||(0,n.uuid4)(),timestamp:t.timestamp||(0,i.dateTimestampInSeconds)()},_=r.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:r,release:n,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?r:u.DEFAULT_ENVIRONMENT);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,o.truncate)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.truncate)(s.value,a));const c=e.request;c&&c.url&&(c.url=(0,o.truncate)(c.url,a))}(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(b,_),void 0===t.type&&m(b,e.stackParser);const S=function(e,t){if(!t)return e;const r=e?e.clone():new l.Scope;return r.update(t),r}(a,r.captureContext);r.mechanism&&(0,n.addExceptionMechanism)(b,r.mechanism);const E=d&&d.getEventProcessors?d.getEventProcessors():[],w=(0,l.getGlobalScope)().getScopeData();if(h){const e=h.getScopeData();(0,f.mergeScopeData)(w,e)}if(S){const e=S.getScopeData();(0,f.mergeScopeData)(w,e)}const O=[...r.attachments||[],...w.attachments];O.length&&(r.attachments=O),(0,f.applyScopeDataToEvent)(b,w);const x=[...E,...(0,c.getGlobalEventProcessors)(),...w.eventProcessors];return(0,c.notifyEventProcessors)(x,b,r).then((e=>(e&&g(e),"number"==typeof y&&y>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,s.normalize)(e.data,t,r)}})))},...e.user&&{user:(0,s.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,s.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,s.normalize)(e.extra,t,r)}};e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,s.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>{const n=(0,p.spanToJSON)(e).data;return n&&(e.data=(0,s.normalize)(n,t,r)),e})));return n}(e,y,v):e)))}const h=new WeakMap;function m(e,t){const r=a.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let n;const i=h.get(t);i?n=i:(n=new Map,h.set(t,n));const o=Object.keys(r).reduce(((e,i)=>{let o;const a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.filename){e[n.filename]=r[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}function g(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.keys(t).forEach((e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}function y(e){if(e)return function(e){return e instanceof l.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>v.includes(e)))}(e)?{captureContext:e}:e}const v=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>s,normalizeToSize:()=>u,normalizeUrlToBase:()=>l,walk:()=>c});var n=r(285),i=r(303),o=r(291),a=r(304);function s(e,t=100,r=1/0){try{return c("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function u(e,t=3,r=102400){const n=s(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?u(e,t-1,r):n;var i}function c(e,t,s=1/0,u=1/0,l=(0,i.memoBuilder)()){const[f,p]=l;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,n.isNaN)(t))return t;const d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==r.g&&t===r.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.isVueViewModel)(t))return"[VueViewModel]";if((0,n.isSyntheticEvent)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,a.getFunctionName)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const h="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:s;if(0===h)return d.replace("object ","");if(f(t))return"[Circular ~]";const m=t;if(m&&"function"==typeof m.toJSON)try{return c("",m.toJSON(),h-1,u,l)}catch(e){}const g=Array.isArray(t)?[]:{};let y=0;const v=(0,o.convertToPlainObject)(t);for(const e in v){if(!Object.prototype.hasOwnProperty.call(v,e))continue;if(y>=u){g[e]="[MaxProperties ~]";break}const t=v[e];g[e]=c(e,t,h-1,u,l),y++}return p(t),g}function l(e,t){const r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let n=e;try{n=decodeURI(e)}catch(e){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}},(e,t,r)=>{"use strict";function n(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++){if(t[e]===r)return!0}return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}r.r(t),r.d(t,{memoBuilder:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStackParser:()=>s,filenameIsInApp:()=>n.filenameIsInApp,getFunctionName:()=>f,nodeStackLineParser:()=>p,stackParserFromStackParserOptions:()=>u,stripSentryFramesAndReverse:()=>c});var n=r(305);const i=50,o=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0)=>{const n=[],a=e.split("\n");for(let e=r;e<a.length;e++){const r=a[e];if(r.length>1024)continue;const s=o.test(r)?r.replace(o,"$1"):r;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){n.push(t);break}}if(n.length>=i)break}}return c(n)}}function u(e){return Array.isArray(e)?s(...e):e}function c(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),a.test(t[t.length-1].function||"")&&(t.pop(),a.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,i).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}const l="<anonymous>";function f(e){try{return e&&"function"==typeof e&&e.name||l}catch(e){return l}}function p(e){return[90,(0,n.node)(e)]}},(e,t,r)=>{"use strict";function n(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function i(e){const t=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return i=>{const o=i.match(r);if(o){let t,r,i,a,s;if(o[1]){i=o[1];let e=i.lastIndexOf(".");if("."===i[e-1]&&e--,e>0){t=i.slice(0,e),r=i.slice(e+1);const n=t.indexOf(".Module");n>0&&(i=i.slice(n+1),t=t.slice(0,n))}a=void 0}r&&(a=t,s=r),"<anonymous>"===r&&(s=void 0,i=void 0),void 0===i&&(s=s||"<anonymous>",i=a?`${a}.${s}`:s);let u=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2];const c="native"===o[5];return u&&u.match(/\/[A-Z]:/)&&(u=u.slice(1)),u||!o[5]||c||(u=o[5]),{filename:u,module:e?e(u):void 0,function:i,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:n(u,c)}}if(i.match(t))return{filename:i}}}r.r(t),r.d(t,{filenameIsInApp:()=>n,node:()=>i})},,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSlot:()=>i,forgetCache:()=>s,makeVar:()=>c,recallCache:()=>u});var n=r(315),i=new n.Slot,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dep)()}),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),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));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}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{KeyTrie:()=>n.Trie,Slot:()=>a.Slot,asyncFromGen:()=>a.asyncFromGen,bindContext:()=>a.bindContext,defaultMakeCacheKey:()=>c,dep:()=>s.dep,noContext:()=>a.noContext,nonReactive:()=>a.nonReactive,setTimeout:()=>a.setTimeout,wrap:()=>f});var n=r(316),i=r(323),o=r(317),a=r(318),s=r(322);let u;function c(...e){return(u||(u=new n.Trie("function"==typeof WeakMap))).lookupArray(e)}const l=new Set;function f(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=c,normalizeResult:s,subscribe:u,cache:f=i.StrongCache}=Object.create(null)){const p="function"==typeof f?new f(t,(e=>e.dispose())):f,d=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let i=p.get(t);i||(p.set(t,i=new o.Entry(e)),i.normalizeResult=s,i.subscribe=u,i.forget=()=>p.delete(t));const c=i.recompute(Array.prototype.slice.call(arguments));return p.set(t,i),l.add(p),a.parentEntrySlot.hasValue()||(l.forEach((e=>e.clean())),l.clear()),c};function h(e){const t=e&&p.get(e);t&&t.setDirty()}function m(e){const t=e&&p.get(e);if(t)return t.peek()}function g(e){return!!e&&p.delete(e)}return Object.defineProperty(d,"size",{get:()=>p.size,configurable:!1,enumerable:!1}),Object.freeze(d.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:s,subscribe:u,cache:p}),d.dirtyKey=h,d.dirty=function(){h(n.apply(null,arguments))},d.peekKey=m,d.peek=function(){return m(n.apply(null,arguments))},d.forgetKey=g,d.forget=function(){return g(n.apply(null,arguments))},d.makeCacheKey=n,d.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(d)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Trie:()=>s});const 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(...e){return this.lookupArray(e)}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(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=this.weakness&&u(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){const t=this.weakness&&u(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let r=t.get(e);return r||t.set(e,r=new s(this.weakness,this.makeData)),r}}function u(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Entry:()=>f});var n=r(318),i=r(321);const o=[],a=100;function s(e,t){if(!e)throw new Error(t||"assertion failure")}function u(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function c(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function l(e){return e.slice(0)}class f{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,++f.count}peek(){if(1===this.value.length&&!h(this))return p(this),this.value[0]}recompute(e){return s(!this.recomputing,"already recomputing"),p(this),h(this)?function(e,t){S(e),n.parentEntrySlot.withValue(e,d,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{(0,i.maybeUnsubscribe)(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,h(e))return;g(e)}(e);return c(e.value)}(this,e):c(this.value)}setDirty(){this.dirty||(this.dirty=!0,m(this),(0,i.maybeUnsubscribe)(this))}dispose(){this.setDirty(),S(this),y(this,((e,t)=>{e.setDirty(),E(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=o.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&((0,i.arrayFromSet)(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),o.push(this.deps),this.deps=null)}}function p(e){const t=n.parentEntrySlot.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),h(e)?v(t,e):b(t,e),t}function d(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=l(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!u(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function h(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function m(e){y(e,v)}function g(e){y(e,b)}function y(e,t){const r=e.parents.size;if(r){const n=(0,i.arrayFromSet)(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function v(e,t){s(e.childValues.has(t)),s(h(t));const r=!h(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=o.pop()||new Set;e.dirtyChildren.add(t),r&&m(e)}function b(e,t){s(e.childValues.has(t)),s(!h(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,l(t.value)):u(r,t.value)||e.setDirty(),_(e,t),h(e)||g(e)}function _(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(o.length<a&&o.push(r),e.dirtyChildren=null))}function S(e){e.childValues.size>0&&e.childValues.forEach(((t,r)=>{E(e,r)})),e.forgetDeps(),s(null===e.dirtyChildren)}function E(e,t){t.parents.delete(e),e.childValues.delete(t),_(e,t)}f.count=0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>n.Slot,asyncFromGen:()=>n.asyncFromGen,bindContext:()=>n.bind,noContext:()=>n.noContext,nonReactive:()=>o,parentEntrySlot:()=>i,setTimeout:()=>n.setTimeout});var n=r(319);const i=new n.Slot;function o(e){return i.withValue(void 0,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>n.Slot,asyncFromGen:()=>s,bind:()=>i,noContext:()=>o,setTimeout:()=>a,wrapYieldingFiberMethods:()=>c});var n=r(320);const{bind:i,noContext:o}=n.Slot;function a(e,t){return setTimeout(i(e),t)}function s(e){return function(){const t=e.apply(this,arguments),r=i(t.next),n=i(t.throw);return new Promise(((e,i)=>{function o(r,n){try{var o=r.call(t,n)}catch(e){return i(e)}const u=o.done?e:a;var c;(c=o.value)&&"function"==typeof c.then?o.value.then(u,o.done?i:s):u(o.value)}const a=e=>o(r,e),s=e=>o(n,e);a()}))}}const u=[];function c(e){if(u.indexOf(e)<0){const t=(e,t)=>{const r=e[t];e[t]=function(){return o(r,arguments,this)}};t(e,"yield"),t(e.prototype,"run"),t(e.prototype,"throwInto"),u.push(e)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>c});let n=null;const i={};let o=1;function a(e){try{return e()}catch(e){}}const s="@wry/context:Slot",u=a((()=>globalThis))||a((()=>global))||Object.create(null),c=u[s]||Array[s]||function(e){try{Object.defineProperty(u,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){const o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){const t=n;return function(){const r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{const i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arrayFromSet:()=>i,hasOwnProperty:()=>n,maybeUnsubscribe:()=>o});const{hasOwnProperty:n}=Object.prototype,i=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function o(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dep:()=>a});var n=r(318),i=r(321);const o={setDirty:!0,dispose:!0,forget:!0};function a(e){const t=new Map,r=e&&e.subscribe;function a(e){const o=n.parentEntrySlot.getValue();if(o){let n=t.get(e);n||t.set(e,n=new Set),o.dependOn(n),"function"==typeof r&&((0,i.maybeUnsubscribe)(n),n.unsubscribe=r(e))}}return a.dirty=function(e,r){const n=t.get(e);if(n){const a=r&&i.hasOwnProperty.call(o,r)?r:"setDirty";(0,i.arrayFromSet)(n).forEach((e=>e[a]())),t.delete(e),(0,i.maybeUnsubscribe)(n)}},a}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{StrongCache:()=>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){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{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){const 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)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useReactiveVar:()=>o});var n=r(325),i=r(326);function o(e){return(0,i.useSyncExternalStore)(n.useCallback((function(t){return e.onNextChange((function r(){t(),e.onNextChange(r)}))}),[e]),e,e)}},(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(270))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{useSyncExternalStore:()=>u});var i=r(327),o=r(325),a=r(335),s=!1,u=(n||(n=r.t(o,2))).useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||s||n===t()||(s=!0,!1!==globalThis.__DEV__&&i.invariant.error(58));var u=o.useState({inst:{value:n,getSnapshot:t}}),l=u[0].inst,f=u[1];return a.canUseLayoutEffect?o.useLayoutEffect((function(){Object.assign(l,{value:n,getSnapshot:t}),c(l)&&f({inst:l})}),[e,n,t]):Object.assign(l,{value:n,getSnapshot:t}),o.useEffect((function(){return c(l)&&f({inst:l}),e((function(){c(l)&&f({inst:l})}))}),[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEV:()=>a,InvariantError:()=>n.InvariantError,__DEV__:()=>a,global:()=>o.default,invariant:()=>n.invariant,maybe:()=>i.maybe,newInvariantError:()=>n.newInvariantError});var n=r(328),i=r(332),o=r(331),a=!1!==globalThis.__DEV__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloErrorMessageHandler:()=>l,InvariantError:()=>n.InvariantError,invariant:()=>u,newInvariantError:()=>c});var n=r(329),i=r(330),o=r(331),a=r(333);function s(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=p(i))||(t=d(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var u=Object.assign((function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];e||(0,n.invariant)(e,p(t,r)||d(t,r))}),{debug:s(n.invariant.debug),log:s(n.invariant.log),warn:s(n.invariant.warn),error:s(n.invariant.error)});function c(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new n.InvariantError(p(e,t)||d(e,t))}var l=Symbol.for("ApolloErrorMessageHandler_"+i.version);function f(e){return"string"==typeof e?e:(0,a.stringifyForDisplay)(e,2).slice(0,1e3)}function p(e,t){if(void 0===t&&(t=[]),e)return o.default[l]&&o.default[l](e,t.map(f))}function d(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:i.version,message:e,args:t.map(f)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InvariantError:()=>s,default:()=>d,invariant:()=>u,setVerbosity:()=>p});var n=r(103),i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,a(n,t.prototype),n}return(0,n.__extends)(t,e),t}(Error);function u(e,t){if(!e)throw new s(t)}var c=["debug","log","warn","error","silent"],l=c.indexOf("log");function f(e){return function(){if(c.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}function p(e){var t=c[l];return l=Math.max(0,c.indexOf(e)),t}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}));const d=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{version:()=>n});var n="3.10.5"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(332);const i=(0,n.maybe)((function(){return globalThis}))||(0,n.maybe)((function(){return window}))||(0,n.maybe)((function(){return self}))||(0,n.maybe)((function(){return global}))||(0,n.maybe)((function(){return n.maybe.constructor("return this")()}))},(e,t,r)=>{"use strict";function n(e){try{return e()}catch(e){}}r.r(t),r.d(t,{maybe:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{stringifyForDisplay:()=>i});var n=r(334);function i(e,t){void 0===t&&(t=0);var r=(0,n.makeUniqueId)("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("<undefined>")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeUniqueId:()=>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))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canUseAsyncIteratorSymbol:()=>s,canUseDOM:()=>u,canUseLayoutEffect:()=>l,canUseSymbol:()=>a,canUseWeakMap:()=>i,canUseWeakSet:()=>o});var n=r(327),i="function"==typeof WeakMap&&!(0,n.maybe)((function(){return"ReactNative"==navigator.product&&!global.HermesInternal})),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,u="function"==typeof(0,n.maybe)((function(){return window.document.createElement})),c=(0,n.maybe)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,l=u&&!c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorLink:()=>s,onError:()=>a});var n=r(103),i=r(396),o=r(395);function a(e){return new o.ApolloLink((function(t,r){return new i.Observable((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){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)}):n.next(i)},error:function(i){(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)}):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()}}))}))}var s=function(e){function t(t){var r=e.call(this)||this;return r.link=a(t),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)},t}(o.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloLink:()=>f});var n=r(327),i=r(396),o=r(397),a=r(398),s=r(408);function u(e,t){return t?t(e):i.Observable.of()}function c(e){return"function"==typeof e?new f(e):e}function l(e){return e.request.length<=1}var f=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return i.Observable.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o,a=c(r),s=c(n||new e(u));return o=l(a)&&l(s)?new e((function(e){return t(e)?a.request(e)||i.Observable.of():s.request(e)||i.Observable.of()})):new e((function(e,r){return t(e)?a.request(e,r)||i.Observable.of():s.request(e,r)||i.Observable.of()})),Object.assign(o,{left:a,right:s})},e.execute=function(e,t){return e.request((0,o.createOperation)(t.context,(0,a.transformOperation)((0,s.validateOperation)(t))))||i.Observable.of()},e.concat=function(t,r){var o=c(t);if(l(o))return!1!==globalThis.__DEV__&&n.invariant.warn(35,o),o;var a,s=c(r);return a=l(s)?new e((function(e){return o.request(e,(function(e){return s.request(e)||i.Observable.of()}))||i.Observable.of()})):new e((function(e,t){return o.request(e,(function(e){return s.request(e,t)||i.Observable.of()}))||i.Observable.of()})),Object.assign(a,{left:o,right:s})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n.newInvariantError)(36)},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}()},(e,t,r)=>{"use strict";function n(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)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(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 a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.r(t),r.d(t,{Observable:()=>O});var s=function(){return"function"==typeof Symbol},u=function(e){return s()&&Boolean(Symbol[e])},c=function(e){return u(e)?Symbol[e]:"@@"+e};s()&&!u("observable")&&(Symbol.observable=Symbol("observable"));var l=c("iterator"),f=c("observable"),p=c("species");function d(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[p])&&(t=void 0),void 0!==t?t:O}function m(e){return e instanceof O}function g(e){g.log?g.log(e):setTimeout((function(){throw e}))}function y(e){Promise.resolve().then((function(){try{e()}catch(e){g(e)}}))}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=d(t,"unsubscribe");r&&r.call(t)}}catch(e){g(e)}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function _(e,t,r){e._state="running";var n=e._observer;try{var i=d(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(b(e),!i)throw r;i.call(n,r);break;case"complete":b(e),i&&i.call(n)}}catch(e){g(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function S(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void 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&&(_(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void _(e,t,r);e._queue.push({type:t,value: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&&(b(this),v(this))},a(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){S(this._subscription,"next",e)},t.error=function(e){S(this._subscription,"error",e)},t.complete=function(){S(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new 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)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(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 new TypeError(e+" is not a function");return new(h(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 new TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(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 new TypeError(e+" is not a function");var r=h(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[f]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=d(t,f);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return m(o)&&o.constructor===r?o:new r((function(e){return o.subscribe(e)}))}if(u("iterator")&&(i=d(t,l)))return new r((function(e){y((function(){if(!e.closed){for(var r,o=n(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 new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new 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()}}))}))},a(e,null,[{key:p,get:function(){return this}}]),e}();s()&&Object.defineProperty(O,Symbol("extensions"),{value:{symbol:f,hostReportError:g},configurable:!0})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createOperation:()=>i});var n=r(103);function i(e,t){var r=(0,n.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,n.__assign)((0,n.__assign)({},r),e(r)):(0,n.__assign)((0,n.__assign)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,n.__assign)({},r)}}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{transformOperation:()=>i});var n=r(399);function i(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,n.getOperationName)(t.query)||void 0:""),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkDocument:()=>o,getDefaultValues:()=>p,getFragmentDefinition:()=>l,getFragmentDefinitions:()=>u,getMainDefinition:()=>f,getOperationDefinition:()=>a,getOperationName:()=>s,getQueryDefinition:()=>c});var n=r(327),i=r(400);function o(e){(0,n.invariant)(e&&"Document"===e.kind,75);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n.newInvariantError)(76,e.kind);return e}));return(0,n.invariant)(t.length<=1,77,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.invariant)(t&&"query"===t.operation,78),t}function l(e){(0,n.invariant)("Document"===e.kind,79),(0,n.invariant)(e.definitions.length<=1,80);var t=e.definitions[0];return(0,n.invariant)("FragmentDefinition"===t.kind,81),t}function f(e){var t;o(e);for(var 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.newInvariantError)(82)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&(0,i.valueToObjectRepresentation)(t,e.variable.name,e.defaultValue)})),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{argumentsObjectFromField:()=>m,getStoreKeyName:()=>h,getTypenameFromResult:()=>y,isDocumentNode:()=>c,isField:()=>v,isInlineFragment:()=>b,isReference:()=>u,makeReference:()=>s,resultKeyNameFromField:()=>g,storeKeyNameFromField:()=>f,valueToObjectRepresentation:()=>l});var n=r(327),i=r(401),o=r(402),a=r(403);function s(e){return{__ref:String(e)}}function u(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return l(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var a=(i||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return l(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n.newInvariantError)(83,t.value,r.kind);e[t.value]=null}}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.canonicalStringify,h=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){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),")")}return r.connection.key}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 m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return l(r,n,i,t)})),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function y(e,t,r){for(var n,i=0,a=t.selections;i<a.length;i++){if(v(c=a[i])){if("__typename"===c.name.value)return e[g(c)]}else n?n.push(c):n=[c]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var c=u[s],l=y(e,(0,o.getFragmentFromSelection)(c,r).selectionSet,r);if("string"==typeof l)return l}}function v(e){return"Field"===e.kind}function b(e){return"InlineFragment"===e.kind}},(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.r(t),r.d(t,{isNonNullObject:()=>n,isPlainObject:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createFragmentMap:()=>a,getFragmentFromSelection:()=>s,getFragmentQueryDocument:()=>o});var n=r(103),i=r(327);function o(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw(0,i.newInvariantError)(72,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.invariant)(1===o.length,73,o.length),r=o[0].name.value),(0,n.__assign)((0,n.__assign)({},e),{definitions:(0,n.__spreadArray)([{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.invariant)(n,74,r),n||null;default:return null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canonicalStringify:()=>s});var n,i=r(406),o=r(405),a=r(404),s=Object.assign((function(e){return JSON.stringify(e,u)}),{reset:function(){n=new i.AutoCleanedStrongCache(o.cacheSizes.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.registerGlobalCache)("canonicalStringify",(function(){return n.size})),s.reset()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getApolloCacheMemoryInternals:()=>c,getApolloClientMemoryInternals:()=>s,getInMemoryCacheMemoryInternals:()=>u,registerGlobalCache:()=>a});var n=r(103),i=r(405),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 new 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.cacheSizes[t]||r]}))),sizes:(0,n.__assign)({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:m(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.__assign)((0,n.__assign)({},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 function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function p(e){return null!=e}function d(e){return h(e).map((function(e){return{cache:e}}))}function h(e){return e?(0,n.__spreadArray)((0,n.__spreadArray)([f(null==e?void 0:e.performWork)],h(null==e?void 0:e.left),!0),h(null==e?void 0:e.right),!0).filter(p):[]}function m(e){var t;return e?(0,n.__spreadArray)((0,n.__spreadArray)([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],m(null==e?void 0:e.left),!0),m(null==e?void 0:e.right),!0).filter(p):[]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSizes:()=>a});var n=r(103),i=r(327),o=Symbol.for("apollo.cacheSize"),a=(0,n.__assign)({},i.global[o])},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutoCleanedStrongCache:()=>u,AutoCleanedWeakCache:()=>s});var n=r(407),i=r(323),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.WeakCache(e,t);return r.set=function(e,t){var r=n.WeakCache.prototype.set.call(this,e,t);return a(this),r},r},u=function(e,t){var r=new i.StrongCache(e,t);return r.set=function(e,t){var r=i.StrongCache.prototype.set.call(this,e,t);return a(this),r},r}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{WeakCache:()=>u});const i=n,o="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},a="undefined"!=typeof WeakMap?WeakMap:Map,s="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class u{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new a,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new o(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new s(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{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--;const 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){const 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))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{validateOperation:()=>i});var n=r(327);function i(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(t.indexOf(o)<0)throw(0,n.newInvariantError)(43,o)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryLink:()=>c});var n=r(395),i=r(427),o=r(396),a=r(410),s=r(423),u=r(425);class c extends n.ApolloLink{options;constructor(e={}){super(),this.options=(0,s.withDefaults)(e)}request(e,t){const r=this.options;if(!(r.shouldHandleOperation?.(e)??1))return t(e);r.setTransaction&&(0,u.setTransaction)(e),r.setFingerprint&&(0,u.setFingerprint)(e);const n=r.attachBreadcrumbs,s=n?(0,a.makeBreadcrumb)(e,r):void 0;return new o.Observable((o=>{const a=t(e).subscribe({next:e=>{n&&(s.level=function(e){return e.errors&&e.errors.length>0?"error":"info"}(e),n.includeFetchResult&&(s.data.fetchResult=e),n.includeError&&e.errors&&e.errors.length>0&&(s.data.error=new i.ApolloError({graphQLErrors:e.errors}))),o.next(e)},complete:()=>{n&&(0,u.attachBreadcrumbToSentry)(e,s,r),o.complete()},error:t=>{if(n){let i;if(s.level="error",function(e){return"object"==typeof e&&null!==e&&"response"in e&&"result"in e&&"statusCode"in e}(t)){const{result:e,response:r,...o}=t;i=o,n.includeFetchResult&&(s.data.fetchResult=e)}else i=t;n.includeError&&(s.data.error=i),(0,u.attachBreadcrumbToSentry)(e,s,r)}o.error(t)}});return()=>{a.unsubscribe()}}))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeBreadcrumb:()=>s});var n=r(411),i=r.n(n),o=r(414),a=r(413);function s(e,t){const r=t.attachBreadcrumbs,n=(0,a.extractDefinition)(e),s={},u=t.uri;u&&(s.url=u);const c=n.name?.value;c&&(s.operationName=c),r.includeQuery&&(s.query=n.loc?.source?.body??(0,o.print)(n)),r.includeVariables&&(s.variables=e.variables),r.includeCache&&(s.cache=e.getContext().cache?.data?.data??void 0);const l=r.includeContext;return l&&(s.context=function(e,t){const r={};return t.forEach((t=>{r[t]=i().get(e,t)})),r}(e.getContext(),l)),{type:"http",category:`graphql.${n.operation}`,data:s}}},(e,t,r)=>{"use strict";const n=r(412),i=new Set(["__proto__","prototype","constructor"]);function o(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r.some((e=>i.has(e)))?[]:r}e.exports={get(e,t,r){if(!n(e)||"string"!=typeof t)return void 0===r?e:r;const i=o(t);if(0!==i.length){for(let t=0;t<i.length;t++)if(null==(e=e[i[t]])){if(t!==i.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!n(e)||"string"!=typeof t)return e;const i=e,a=o(t);for(let t=0;t<a.length;t++){const i=a[t];n(e[i])||(e[i]={}),t===a.length-1&&(e[i]=r),e=e[i]}return i},delete(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=o(t);for(let t=0;t<r.length;t++){const i=r[t];if(t===r.length-1)return delete e[i],!0;if(e=e[i],!n(e))return!1}},has(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=o(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!n(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}}},e=>{"use strict";e.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}},(e,t,r)=>{"use strict";function n(e){return e.query.definitions.find((e=>"OperationDefinition"===e.kind))}r.r(t),r.d(t,{extractDefinition:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>a});var n=r(415),i=r(417),o=r(418);function a(e){return(0,o.visit)(e,s)}const s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=l("(",u(e.variableDefinitions,", "),")"),r=u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+l(" = ",r)+l(" ",u(n," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=l("",e,": ")+t;let a=o+l("(",u(r,", "),")");return a.length>80&&(a=o+l("(\n",f(u(r,"\n")),"\n)")),u([a,u(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+l(" ",u(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>u(["...",l("on ",e),u(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${l("(",u(r,", "),")")} on ${t} ${l("",u(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+u(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+u(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+l("(",u(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>l("",e,"\n")+u(["schema",u(t," "),c(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>l("",e,"\n")+u(["scalar",t,u(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>l("",e,"\n")+u(["type",t,l("implements ",u(r," & ")),u(n," "),c(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>l("",e,"\n")+t+(p(r)?l("(\n",f(u(r,"\n")),"\n)"):l("(",u(r,", "),")"))+": "+n+l(" ",u(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>l("",e,"\n")+u([t+": "+r,l("= ",n),u(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>l("",e,"\n")+u(["interface",t,l("implements ",u(r," & ")),u(n," "),c(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>l("",e,"\n")+u(["union",t,u(r," "),l("= ",u(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>l("",e,"\n")+u(["enum",t,u(r," "),c(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>l("",e,"\n")+u([t,u(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>l("",e,"\n")+u(["input",t,u(r," "),c(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>l("",e,"\n")+"directive @"+t+(p(r)?l("(\n",f(u(r,"\n")),"\n)"):l("(",u(r,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>u(["extend schema",u(e," "),c(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>u(["extend scalar",e,u(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend type",e,l("implements ",u(t," & ")),u(r," "),c(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend interface",e,l("implements ",u(t," & ")),u(r," "),c(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>u(["extend union",e,u(t," "),l("= ",u(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>u(["extend enum",e,u(t," "),c(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>u(["extend input",e,u(t," "),c(r)]," ")}};function u(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function c(e){return l("{\n",f(u(e,"\n")),"\n}")}function l(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function f(e){return l("  ",e.replace(/\n/g,"\n  "))}function p(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dedentBlockStringLines:()=>i,isPrintableAsBlockString:()=>a,printBlockString:()=>s});var n=r(416);function i(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],u=o(s);u!==s.length&&(n=null!==(a=n)&&void 0!==a?a:t,i=t,0!==t&&u<r&&(r=u))}return e.map(((e,t)=>0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t<e.length&&(0,n.isWhiteSpace)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;let t=!0,r=!1,n=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:n&&(n=r),t=!1}return!t&&(!n||!i)}function s(e,t){const 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.isWhiteSpace)(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);let p="";const d=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));return(f&&!d||a)&&(p+="\n"),p+=r,(f||l)&&(p+="\n"),'"""'+p+'"""'}},(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.r(t),r.d(t,{isDigit:()=>i,isLetter:()=>o,isNameContinue:()=>s,isNameStart:()=>a,isWhiteSpace:()=>n})},(e,t,r)=>{"use strict";function n(e){return`"${e.replace(i,o)}"`}r.r(t),r.d(t,{printString:()=>n});const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const 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"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BREAK:()=>s,getEnterLeaveForKind:()=>l,getVisitFn:()=>f,visit:()=>u,visitInParallel:()=>c});var n=r(419),i=r(420),o=r(421),a=r(422);const s=Object.freeze({});function u(e,t,r=o.QueryDocumentKeys){const u=new Map;for(const e of Object.values(a.Kind))u.set(e,l(t,e));let c,f,p,d=Array.isArray(e),h=[e],m=-1,g=[],y=e;const v=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(f=0===b.length?void 0:v[v.length-1],y=p,p=b.pop(),a)if(d){y=y.slice();let e=0;for(const[t,r]of g){const n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else{y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y));for(const[e,t]of g)y[e]=t}m=c.index,h=c.keys,g=c.edits,d=c.inArray,c=c.prev}else if(p){if(f=d?m:h[m],y=p[f],null==y)continue;v.push(f)}let l;if(!Array.isArray(y)){var _,S;(0,o.isNode)(y)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(y)}.`);const r=e?null===(_=u.get(y.kind))||void 0===_?void 0:_.leave:null===(S=u.get(y.kind))||void 0===S?void 0:S.enter;if(l=null==r?void 0:r.call(t,y,f,p,v,b),l===s)break;if(!1===l){if(!e){v.pop();continue}}else if(void 0!==l&&(g.push([f,l]),!e)){if(!(0,o.isNode)(l)){v.pop();continue}y=l}}var E;if(void 0===l&&a&&g.push([f,y]),e)v.pop();else c={inArray:d,index:m,keys:h,edits:g,prev:c},d=Array.isArray(y),h=d?y:null!==(E=r[y.kind])&&void 0!==E?E:[],m=-1,g=[],p&&b.push(p),p=y}while(void 0!==c);return 0!==g.length?g[g.length-1][1]:e}function c(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:r,leave:s}=l(e[t],n);i||(i=null!=r||null!=s),o[t]=r,a[t]=s}if(!i)continue;const u={enter(...r){const n=r[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const u=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],r);if(!1===u)t[a]=n;else if(u===s)t[a]=s;else if(void 0!==u)return u}},leave(...r){const n=r[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const n=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],r);if(n===s)t[o]=s;else if(void 0!==n&&!1!==n)return n}else t[o]===n&&(t[o]=null)}};r[n]=u}return r}function l(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function f(e,t,r){const{enter:n,leave:i}=l(e,t);return r?i:n}},(e,t,r)=>{"use strict";function n(e,t){if(!Boolean(e))throw new Error(t)}r.r(t),r.d(t,{devAssert:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{inspect:()=>o});const n=10,i=2;function o(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:a(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const r=Math.min(n,e.length),o=e.length-r,s=[];for(let n=0;n<r;++n)s.push(a(e[n],t));1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`);return"["+s.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+a(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Location:()=>n,OperationTypeNode:()=>u,QueryDocumentKeys:()=>o,Token:()=>i,isNode:()=>s});class n{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 i{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}}}const o={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"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}var u;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(u||(u={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{Kind:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,withDefaults:()=>a});var n=r(424),i=r.n(n);const o={shouldHandleOperation:void 0,uri:void 0,setTransaction:!0,setFingerprint:!0,attachBreadcrumbs:{includeQuery:!1,includeVariables:!1,includeFetchResult:!1,includeError:!1,includeCache:!1,includeContext:!1,transform:void 0}};function a(e){return i()(o,e)}},e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function u(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?o.arrayMerge(e,r,o):s(e,r,o):n(r,o)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var c=u;e.exports=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_FINGERPRINT:()=>s,attachBreadcrumbToSentry:()=>c,setFingerprint:()=>u,setTransaction:()=>a});var n=r(277),i=r(413),o=r(426);function a(e){const t=(0,i.extractDefinition)(e).name;t&&(0,n.configureScope)((e=>{e.setTransactionName(t.value)}))}const s="{{ default }}";function u(e){const t=(0,i.extractDefinition)(e).name;t&&(0,n.configureScope)((e=>{e.setFingerprint([s,t.value])}))}function c(e,t,r){const i=r.attachBreadcrumbs&&"function"==typeof r.attachBreadcrumbs.transform?r.attachBreadcrumbs.transform(t,e):t;i.data=(0,o.stringifyObjectKeys)(i.data),(0,n.addBreadcrumb)(i)}},(e,t,r)=>{"use strict";function n(e){const t={};for(const[r,n]of Object.entries(e))t[r]="object"==typeof n?i(n):n;return t}function i(e){return JSON.stringify(e,null,2)}r.r(t),r.d(t,{stringify:()=>i,stringifyObjectKeys:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloError:()=>u,PROTOCOL_ERRORS_SYMBOL:()=>o,graphQLResultHasProtocolErrors:()=>a,isApolloError:()=>s});var n=r(103),i=(r(327),r(401)),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){function t(r){var o,a,s=r.graphQLErrors,u=r.protocolErrors,c=r.clientErrors,l=r.networkError,f=r.errorMessage,p=r.extraInfo,d=e.call(this,f)||this;return d.name="ApolloError",d.graphQLErrors=s||[],d.protocolErrors=u||[],d.clientErrors=c||[],d.networkError=l||null,d.message=f||(o=d,a=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&a.push(o.networkError),a.map((function(e){return(0,i.isNonNullObject)(e)&&e.message||"Error message not found."})).join("\n")),d.extraInfo=p,d.__proto__=t.prototype,d}return(0,n.__extends)(t,e),t}(Error)},(e,t,r)=>{"use strict";const n=r(429);e.exports=function(e,t="",r=n){const i=new Map,o=new Map;return{clone:function e(t,n,a){let s=t;if(r(t)){s=null;const e=i.get(t);e?e.push(n):i.set(t,[n])}else{const r=Array.isArray(t)||"undefined"!=typeof FileList&&t instanceof FileList,i=t&&t.constructor===Object;if(r||i){const i=o.has(t);if(i?s=o.get(t):(s=r?[]:{},o.set(t,s)),!a.has(t)){const o=n?`${n}.`:"",u=new Set(a).add(t);if(r){let r=0;for(const n of t){const t=e(n,o+r++,u);i||s.push(t)}}else for(const r in t){const n=e(t[r],o+r,u);i||(s[r]=n)}}}}return s}(e,t,new Set),files:i}}},(e,t,r)=>{"use strict";const n=r(430);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof n}},e=>{"use strict";e.exports=class{constructor({uri:e,name:t,type:r}){this.uri=e,this.name=t,this.type=r}}},(e,t,r)=>{"use strict";const{ApolloLink:n,Observable:i}=r(432),{createSignalIfSupported:o,fallbackHttpConfig:a,parseAndCheckHttpResponse:s,rewriteURIForGET:u,selectHttpOptionsAndBody:c,selectURI:l,serializeFetchParameter:f}=r(492),p=r(428),d=r(509),h=r(510);e.exports=function({uri:e="/graphql",useGETForQueries:t,isExtractableFile:r=h,FormData:m,formDataAppendFile:g=d,fetch:y,fetchOptions:v,credentials:b,headers:_,includeExtensions:S}={}){const E={http:{includeExtensions:S},options:v,credentials:b,headers:_};return new n((n=>{const d=n.getContext(),{clientAwareness:{name:h,version:v}={},headers:b}=d,_={http:d.http,options:d.fetchOptions,credentials:d.credentials,headers:{...h&&{"apollographql-client-name":h},...v&&{"apollographql-client-version":v},...b}},{options:S,body:w}=c(n,a,E,_),{clone:O,files:x}=p(w,"",r);let T=l(n,e);if(x.size){delete S.headers["content-type"];const e=new(m||FormData);e.append("operations",f(O,"Payload"));const t={};let r=0;x.forEach((e=>{t[++r]=e})),e.append("map",JSON.stringify(t)),r=0,x.forEach(((t,n)=>{g(e,++r,n)})),S.body=e}else if(t&&!n.query.definitions.some((e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))&&(S.method="GET"),"GET"===S.method){const{newURI:e,parseError:t}=u(T,w);if(t)return new i((e=>{e.error(t)}));T=e}else S.body=f(O,"Payload");const{controller:k}=o();k&&(S.signal&&(S.signal.aborted?k.abort():S.signal.addEventListener("abort",(()=>{k.abort()}),{once:!0})),S.signal=k.signal);const C=y||fetch;return new i((e=>{let t;return C(T,S).then((e=>(n.setContext({response:e}),e))).then(s(n)).then((t=>{e.next(t),e.complete()})).catch((r=>{t||(r.result&&r.result.errors&&r.result.data&&e.next(r.result),e.error(r))})),()=>{t=!0,k&&k.abort()}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloCache:()=>c.ApolloCache,ApolloClient:()=>n.ApolloClient,ApolloError:()=>s.ApolloError,ApolloLink:()=>h.ApolloLink,Cache:()=>u.Cache,DocumentTransform:()=>_.DocumentTransform,HttpLink:()=>m.HttpLink,InMemoryCache:()=>l.InMemoryCache,MissingFieldError:()=>f.MissingFieldError,NetworkStatus:()=>a.NetworkStatus,Observable:()=>S.Observable,ObservableQuery:()=>o.ObservableQuery,checkFetcher:()=>m.checkFetcher,concat:()=>h.concat,createHttpLink:()=>m.createHttpLink,createSignalIfSupported:()=>m.createSignalIfSupported,defaultDataIdFromObject:()=>p.defaultDataIdFromObject,defaultPrinter:()=>m.defaultPrinter,disableExperimentalFragmentVariables:()=>O.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>O.disableFragmentWarnings,empty:()=>h.empty,enableExperimentalFragmentVariables:()=>O.enableExperimentalFragmentVariables,execute:()=>h.execute,fallbackHttpConfig:()=>m.fallbackHttpConfig,from:()=>h.from,fromError:()=>g.fromError,fromPromise:()=>v.fromPromise,gql:()=>O.gql,isApolloError:()=>s.isApolloError,isNetworkRequestSettled:()=>a.isNetworkRequestSettled,isReference:()=>E.isReference,makeReference:()=>E.makeReference,makeVar:()=>d.makeVar,mergeOptions:()=>i.mergeOptions,parseAndCheckHttpResponse:()=>m.parseAndCheckHttpResponse,resetCaches:()=>O.resetCaches,rewriteURIForGET:()=>m.rewriteURIForGET,selectHttpOptionsAndBody:()=>m.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>m.selectHttpOptionsAndBodyInternal,selectURI:()=>m.selectURI,serializeFetchParameter:()=>m.serializeFetchParameter,setLogVerbosity:()=>w.setVerbosity,split:()=>h.split,throwServerError:()=>b.throwServerError,toPromise:()=>y.toPromise});var n=r(433),i=r(458),o=r(439),a=r(440),s=r(427),u=r(475),c=r(476),l=r(477),f=r(478),p=r(481),d=r(314),h=r(487),m=r(492),g=r(473),y=r(494),v=r(495),b=r(469),_=r(453),S=r(396),E=r(400),w=r(329),O=r(496);(0,w.setVerbosity)(!1!==globalThis.__DEV__?"log":"silent")},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloClient:()=>h,mergeOptions:()=>f.mergeOptions});var n=r(103),i=r(327),o=r(395),a=r(457),s=r(330),u=r(459),c=r(434),l=r(447),f=r(458),p=r(404),d=!1,h=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.newInvariantError)(15);var r=e.uri,n=e.credentials,a=e.headers,f=e.cache,p=e.documentTransform,d=e.ssrMode,h=void 0!==d&&d,m=e.ssrForceFetchDelay,g=void 0===m?0:m,y=e.connectToDevTools,v=void 0===y?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:y,b=e.queryDeduplication,_=void 0===b||b,S=e.defaultOptions,E=e.defaultContext,w=e.assumeImmutableResults,O=void 0===w?f.assumeImmutableResults:w,x=e.resolvers,T=e.typeDefs,k=e.fragmentMatcher,C=e.name,I=e.version,R=e.link;R||(R=r?new u.HttpLink({uri:r,credentials:n,headers:a}):o.ApolloLink.empty()),this.link=R,this.cache=f,this.disableNetworkFetches=h||g>0,this.queryDeduplication=_,this.defaultOptions=S||Object.create(null),this.typeDefs=T,g&&setTimeout((function(){return t.disableNetworkFetches=!1}),g),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=s.version,this.localState=new l.LocalState({cache:f,client:this,resolvers:x,fragmentMatcher:k}),this.queryManager=new c.QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:p,queryDeduplication:_,ssrMode:h,clientAwareness:{name:C,version:I},localState:this.localState,assumeImmutableResults:O,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),v&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}d||!1===globalThis.__DEV__||(d=!0,setTimeout((function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){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__&&i.invariant.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=(0,f.mergeOptions)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,f.mergeOptions)(this.defaultOptions.query,e)),(0,i.invariant)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,f.mergeOptions)(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(0,a.execute)(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 o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(e){!1!==globalThis.__DEV__&&i.invariant.debug(17,e)})),o},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__&&(h.prototype.getMemoryInternals=p.getApolloClientMemoryInternals)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryManager:()=>P});var n=r(103),i=r(327),o=r(435),a=r(457),s=r(436),u=r(442),c=r(448),l=r(403),f=r(453),p=r(454),d=r(451),h=r(437),m=r(399),g=r(400),y=r(401),v=r(334),b=r(396),_=r(456),S=r(427),E=r(439),w=r(440),O=r(447),x=r(450),T=r(455),k=r(452),C=r(406),I=r(405),R=Object.prototype.hasOwnProperty,A=Object.create(null),P=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,a=void 0!==o&&o,s=e.onBroadcast,u=e.ssrMode,c=void 0!==u&&u,l=e.clientAwareness,p=void 0===l?{}:l,d=e.localState,h=e.assumeImmutableResults,m=void 0===h?!!t.assumeImmutableResults:h,g=e.defaultContext,y=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new C.AutoCleanedWeakCache(I.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new k.Trie(!1);var v=new f.DocumentTransform((function(e){return y.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=a,this.clientAwareness=p,this.localState=d||new O.LocalState({cache:t}),this.ssrMode=c,this.assumeImmutableResults=m,this.documentTransform=i?v.concat(i).concat(v):v,this.defaultContext=g||Object.create(null),(this.onBroadcast=s)&&(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,i.newInvariantError)(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,n.__awaiter)(this,arguments,void 0,(function(e){var t,r,o,a,s,u,c,l=e.mutation,f=e.variables,h=e.optimisticResponse,m=e.updateQueries,g=e.refetchQueries,y=void 0===g?[]:g,v=e.awaitRefetchQueries,b=void 0!==v&&v,_=e.update,E=e.onQueryUpdated,w=e.fetchPolicy,O=void 0===w?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.fetchPolicy)||"network-only":w,x=e.errorPolicy,T=void 0===x?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":x,k=e.keepRootFields,C=e.context;return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return(0,i.invariant)(l,26),(0,i.invariant)("network-only"===O||"no-cache"===O,27),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),r?[4,this.localState.addExportedVariables(l,f,C)]:[3,2];case 1:f=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:t,document:l,variables:f,fetchPolicy:O,errorPolicy:T,context:C,updateQueries:m,update:_,keepRootFields:k}),this.broadcastQueries(),s=this,[2,new Promise((function(e,r){return(0,p.asyncMap)(s.getObservableFromLink(l,(0,n.__assign)((0,n.__assign)({},C),{optimisticResponse:a?h:void 0}),f,!1),(function(e){if((0,d.graphQLResultHasError)(e)&&"none"===T)throw new S.ApolloError({graphQLErrors:(0,d.getGraphQLErrorsFromResult)(e)});o&&(o.loading=!1,o.error=null);var r=(0,n.__assign)({},e);return"function"==typeof y&&(y=y(r)),"ignore"===T&&(0,d.graphQLResultHasError)(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:O,errorPolicy:T,context:C,update:_,updateQueries:m,awaitRefetchQueries:b,refetchQueries:y,removeOptimistic:a?t:void 0,onQueryUpdated:E,keepRootFields:k})})).subscribe({next:function(t){s.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof S.ApolloError?e:new S.ApolloError({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&(0,x.shouldWriteResult)(i,e.errorPolicy)){if((0,s.isExecutionPatchIncrementalResult)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,s.isExecutionPatchIncrementalResult)(i)&&(0,h.isNonEmptyArray)(i.incremental)){var u=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;u.result&&(c=(0,s.mergeIncrementalData)(u.result,i)),void 0!==c&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach((function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&R.call(l,s)){var u=l[s],c=r.queries.get(n),f=c.document,p=c.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var g=u(h,{mutationResult:i,queryName:f&&(0,m.getOperationName)(f)||void 0,queryVariables:p});g&&o.push({result:g,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var u=e.update,c=!(0,s.isExecutionPatchResult)(i)||(0,s.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(u){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&u(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||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 f.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables,{IGNORE:A}):e;return o!==A&&(this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.invariant.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,u.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,u.hasDirectives)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,c.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,m.getDefaultValues)((0,m.getOperationDefinition)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new x.QueryInfo(this),i=new E.ObservableQuery({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,i.invariant)(e.query,28),(0,i.invariant)("Document"===e.query.kind,29),(0,i.invariant)(!e.returnPartialData,30),(0,i.invariant)(!e.pollInterval,31),this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},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,i.newInvariantError)(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=w.NetworkStatus.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,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):(0,g.isDocumentNode)(e)?o.set(t.transform(e),!1):(0,y.isNonNullObject)(e)&&e.query&&a.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(e){var o=(0,v.makeUniqueId)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new E.ObservableQuery({queryManager:t,queryInfo:a,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.invariant)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)})),!1!==globalThis.__DEV__&&o.size&&o.forEach((function(e,t){e||!1!==globalThis.__DEV__&&i.invariant.warn("string"==typeof t?33:34,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;r=this.transform(r),a=this.getVariables(r,a);var c=function(e){return t.getObservableFromLink(r,u,e).map((function(i){"no-cache"!==n&&((0,x.shouldWriteResult)(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=(0,d.graphQLResultHasError)(i),s=(0,S.graphQLResultHasProtocolErrors)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[S.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new S.ApolloError(u)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,a,u).then(c);return new b.Observable((function(e){var t=null;return l.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(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,i){var o,s,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),f=c.serverQuery,d=c.clientQuery;if(f){var h=this.inFlightLinkObservables,g=this.link,y={query:f,variables:r,operationName:(0,m.getOperationName)(f)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!i}))};if(t=y.context,i){var v=(0,T.print)(f),S=(0,l.canonicalStringify)(r),E=h.lookup(v,S);if(!(s=E.observable)){var w=new _.Concast([(0,a.execute)(g,y)]);s=E.observable=w,w.beforeNext((function(){h.remove(v,S)}))}}else s=new _.Concast([(0,a.execute)(g,y)])}else s=new _.Concast([b.Observable.of({data:{}})]),t=this.prepareContext(t);return d&&(s=(0,p.asyncMap)(s,(function(e){return u.localState.runResolvers({document:d,remoteResult:e,context:t,variables:r})}))),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return(0,p.asyncMap)(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=(0,d.getGraphQLErrorsFromResult)(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new S.ApolloError({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:w.NetworkStatus.ready};return s&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=w.NetworkStatus.error),u}),(function(t){var r=(0,S.isApolloError)(t)?t:new S.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=w.NetworkStatus.loading),void 0===n&&(n=t.query);var o,a,s=this.getVariables(n,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,p=t.errorPolicy,d=void 0===p?c&&c.errorPolicy||"none":p,h=t.returnPartialData,m=void 0!==h&&h,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,v=t.context,b=void 0===v?{}:v,S=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:d,returnPartialData:m,notifyOnNetworkStatusChange:y,context:b}),E=function(e){S.variables=e;var n=i.fetchQueryByPolicy(u,S,r);return"standby"!==S.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},O=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){O(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(S.query).hasClientExports)o=new _.Concast(this.localState.addExportedVariables(S.query,S.variables,S.context).then(E).then((function(e){return e.sources}))),a=!0;else{var x=E(S.variables);a=x.fromLink,o=new _.Concast(x.sources)}return o.promise.then(O,O),{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,v.makeUniqueId)("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 x.QueryInfo&&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 i=this,a=t.query,s=t.variables,u=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,p=t.context,d=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:a,variables:s,networkStatus:r});var m=function(){return e.getDiff()},g=function(t,r){void 0===r&&(r=e.networkStatus||w.NetworkStatus.loading);var u=t.result;!1===globalThis.__DEV__||f||(0,o.equal)(u,{})||(0,E.logMissingFieldErrors)(t.missing);var c=function(e){return b.Observable.of((0,n.__assign)({data:e,loading:(0,w.isNetworkRequestInFlight)(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:u},context:p,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):"none"===l&&r===w.NetworkStatus.refetch&&Array.isArray(t.missing)?c(void 0):c(u)},y="no-cache"===u?0:r===w.NetworkStatus.refetch&&"merge"!==c?1:2,v=function(){return i.getResultsFromLink(e,y,{query:a,variables:s,context:p,fetchPolicy:u,errorPolicy:l})},_=d&&"number"==typeof h&&h!==r&&(0,w.isNetworkRequestInFlight)(r);switch(u){default:case"cache-first":return(S=m()).complete?{fromLink:!1,sources:[g(S,e.markReady())]}:f||_?{fromLink:!0,sources:[g(S),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":var S;return(S=m()).complete||f||_?{fromLink:!0,sources:[g(S),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":return _?{fromLink:!0,sources:[g(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return _?{fromLink:!0,sources:[g(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new x.QueryInfo(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,equal:()=>s});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return c(e,t)}finally{a.clear()}}const u=s;function c(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(d(e,t))return!0;const r=l(e),n=l(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e<o;++e)if(!i.call(t,r[e]))return!1;for(let n=0;n<o;++n){const i=r[n];if(!c(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(d(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,o]=e.value;if(!t.has(r))return!1;if(i&&!c(o,t.get(r)))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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=o.call(e);return r===o.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,p)}}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}const p="{ [native code] }";function d(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}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isApolloPayloadResult:()=>c,isExecutionPatchIncrementalResult:()=>a,isExecutionPatchInitialResult:()=>s,isExecutionPatchResult:()=>u,mergeIncrementalData:()=>l});var n=r(401),i=r(437),o=r(438);function a(e){return"incremental"in e}function s(e){return"hasNext"in e&&"data"in e}function u(e){return a(e)||s(e)}function c(e){return(0,n.isNonNullObject)(e)&&"payload"in e}function l(e,t){var r=e,n=new o.DeepMerger;return a(t)&&(0,i.isNonEmptyArray)(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}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isArray:()=>n,isNonEmptyArray:()=>i});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DeepMerger:()=>c,mergeDeep:()=>a,mergeDeepArray:()=>s});var n=r(103),i=r(401),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.isNonNullObject,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.isNonNullObject)(t)&&(0,i.isNonNullObject)(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.__spreadArray)([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.isNonNullObject)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObservableQuery:()=>g,logMissingFieldErrors:()=>b,reobserveCacheFirst:()=>y});var n=r(103),i=r(327),o=r(435),a=r(440),s=r(399),u=r(443),c=r(444),l=r(445),f=r(396),p=r(446),d=r(441),h=Object.assign,m=Object.hasOwnProperty,g=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=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=i,a.queryManager=r,a.waitForOwnResult=_(o.fetchPolicy),a.isTornDown=!1;var u=r.defaultOptions.watchQuery,c=(void 0===u?{}:u).fetchPolicy,l=void 0===c?"cache-first":c,f=o.fetchPolicy,p=void 0===f?l:f,d=o.initialFetchPolicy,h=void 0===d?"standby"===p?l:p:d;a.options=(0,n.__assign)((0,n.__assign)({},o),{initialFetchPolicy:h,fetchPolicy:p}),a.queryId=i.queryId||r.generateQueryId();var m=(0,s.getOperationDefinition)(a.query);return a.queryName=m&&m.name&&m.name.value,a}return(0,n.__extends)(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||a.NetworkStatus.ready,i=(0,n.__assign)((0,n.__assign)({},t),{loading:(0,a.isNetworkRequestInFlight)(r),networkStatus:r}),s=this.options.fetchPolicy,u=void 0===s?"cache-first":s;if(_(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(i.data=c.result),(0,o.equal)(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,!c.complete||i.networkStatus!==a.NetworkStatus.loading||"cache-first"!==u&&"cache-only"!==u||(i.networkStatus=a.NetworkStatus.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||i.loading||i.data||i.error||b(c.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,d.equalByQuery)(this.query,this.last.result,e,this.variables):!(0,o.equal)(this.last.result,e))||t&&!(0,o.equal)(this.last.variables,t))},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,o.equal)(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},u=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===u?u:"no-cache"===u?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&m.call(e,"variables")){var c=(0,s.getQueryDefinition)(this.query),l=c.variableDefinitions;l&&l.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&i.invariant.warn(20,e,(null===(t=c.name)||void 0===t?void 0:t.value)||c)}return e&&!(0,o.equal)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,a.NetworkStatus.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e.query?e:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,n.__assign)((0,n.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var o=this.queryInfo,s=o.networkStatus;o.networkStatus=a.NetworkStatus.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(i,r,a.NetworkStatus.fetchMore).then((function(n){return t.queryManager.removeQuery(i),o.networkStatus===a.NetworkStatus.fetchMore&&(o.networkStatus=s),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})})):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){u.add(e.query)}}),n})).finally((function(){u.has(t.query)||y(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){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&i.invariant.error(21,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,u.compact)(this.options,e||{});h(this.options,t)},t.prototype.setVariables=function(e){return(0,o.equal)(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},a.NetworkStatus.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}):t.fetchPolicy="variables-changed"===e?o: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()){if(!t||t.interval!==r){(0,i.invariant)(r,22),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,a.isNetworkRequestInFlight)(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"},a.NetworkStatus.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,o.equal)(t,this.last.variables)&&(r=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,c.cloneDeep)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===a.NetworkStatus.refetch||t===a.NetworkStatus.fetchMore||t===a.NetworkStatus.poll,s=this.options.variables,c=this.options.fetchPolicy,l=(0,u.compact)(this.options,e||{}),f=i?l:h(this.options,l),p=this.transformDocument(f.query);this.lastQuery=p,i||(this.updatePolling(),e&&e.variables&&!(0,o.equal)(e.variables,s)&&"standby"!==f.fetchPolicy&&f.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",f),void 0===t&&(t=a.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=_(f.fetchPolicy));var d=function(){r.concast===y&&(r.waitForOwnResult=!1)},m=f.variables&&(0,n.__assign)({},f.variables),g=this.fetch(f,t,p),y=g.concast,v=g.fromLink,b={next:function(e){(0,o.equal)(r.variables,m)&&(d(),r.reportResult(e,m))},error:function(e){(0,o.equal)(r.variables,m)&&(d(),r.reportError(e,m))}};return i||!v&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),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)&&(0,l.iterateObserversSafely)(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=(0,n.__assign)((0,n.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:a.NetworkStatus.error,loading:!1});this.updateLastResult(r,t),(0,l.iterateObserversSafely)(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}(f.Observable);function y(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__&&i.invariant.error(23,e.message,e.stack)}function b(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.invariant.debug(24,e)}function _(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,p.fixObservableSubclass)(g)},(e,t,r)=>{"use strict";var n;function i(e){return!!e&&e<7}function o(e){return 7===e||8===e}r.r(t),r.d(t,{NetworkStatus:()=>n,isNetworkRequestInFlight:()=>i,isNetworkRequestSettled:()=>o}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{equalByQuery:()=>c});var n=r(103),i=r(435),o=r(399),a=r(402),s=r(442),u=r(400);function c(e,t,r,s){var u=t.data,c=(0,n.__rest)(t,["data"]),f=r.data,p=(0,n.__rest)(r,["data"]);return(0,i.default)(c,p)&&l((0,o.getMainDefinition)(e).selectionSet,u,f,{fragmentMap:(0,a.createFragmentMap)((0,o.getFragmentDefinitions)(e)),variables:s})}function l(e,t,r,n){if(t===r)return!0;var o=new Set;return e.selections.every((function(e){if(o.has(e))return!0;if(o.add(e),!(0,s.shouldInclude)(e,n.variables))return!0;if(f(e))return!0;if((0,u.isField)(e)){var c=(0,u.resultKeyNameFromField)(e),p=t&&t[c],d=r&&r[c],h=e.selectionSet;if(!h)return(0,i.default)(p,d);var m=Array.isArray(p),g=Array.isArray(d);if(m!==g)return!1;if(m&&g){var y=p.length;if(d.length!==y)return!1;for(var v=0;v<y;++v)if(!l(h,p[v],d[v],n))return!1;return!0}return l(h,p,d,n)}var b=(0,a.getFragmentFromSelection)(e,n.fragmentMap);return b?!!f(b)||l(b.selectionSet,t,r,n):void 0}))}function f(e){return!!e.directives&&e.directives.some(p)}function p(e){return"nonreactive"===e.name.value}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDirectiveNames:()=>a,getInclusionDirectives:()=>f,hasAllDirectives:()=>u,hasAnyDirectives:()=>s,hasClientExports:()=>l,hasDirectives:()=>c,shouldInclude:()=>o});var n=r(327),i=r(418);function o(e,t){var r=e.directives;return!r||!r.length||f(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.invariant)(void 0!==o,68,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o}))}function a(e){var t=[];return(0,i.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}var s=function(e,t){return c(e,t,!1)},u=function(e,t){return c(e,t,!0)};function c(e,t,r){var n=new Set(e),o=n.size;return(0,i.visit)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.BREAK}}),r?!n.size:n.size<o}function l(e){return e&&c(["client","export"],e,!0)}function f(e){var t=[];return e&&e.length&&e.forEach((function(e){if("skip"===(r=e.name.value)||"include"===r){var r,i=e.arguments,o=e.name.value;(0,n.invariant)(i&&1===i.length,69,o);var a=i[0];(0,n.invariant)(a.name&&"if"===a.name.value,70,o);var s=a.value;(0,n.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),71,o),t.push({directive:e,ifArgument:a})}})),t}},(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.r(t),r.d(t,{compact:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cloneDeep:()=>i});var n=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=o(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(r){i[r]=o(e[r],t)})),i;default:return e}}},(e,t,r)=>{"use strict";function n(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}r.r(t),r.d(t,{iterateObserversSafely:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fixObservableSubclass:()=>o});var n=r(396),i=r(335);function o(e){function t(t){Object.defineProperty(e,t,{value:n.Observable})}return i.canUseSymbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LocalState:()=>h});var n=r(103),i=r(327),o=r(418),a=r(449),s=r(438),u=r(442),c=r(448),l=r(399),f=r(402),p=r(400),d=r(314),h=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,s.mergeDeep)(t.resolvers,e)})):this.resolvers=(0,s.mergeDeep)(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,n.__awaiter)(this,arguments,void 0,(function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return(0,n.__assign)((0,n.__assign)({},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,u.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,c.removeClientSetsFromDocument)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.__awaiter)(this,arguments,void 0,(function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__generator)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)}))]:[2,(0,n.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,o.visit)(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 o.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,c.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,(function(e,t,r,i,o,a){var s,u,c,p,d,h,m,g,y,v;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.__generator)(this,(function(b){return s=(0,l.getMainDefinition)(e),u=(0,l.getFragmentDefinitions)(e),c=(0,f.createFragmentMap)(u),p=this.collectSelectionsToResolve(s,c),d=s.operation,h=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",g=(m=this).cache,y=m.client,v={fragmentMap:c,context:(0,n.__assign)((0,n.__assign)({},r),{cache:g,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,false,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,(function(){var a,c,l,f,d,h=this;return(0,n.__generator)(this,(function(m){return a=o.fragmentMap,c=o.context,l=o.variables,f=[r],d=function(e){return(0,n.__awaiter)(h,void 0,void 0,(function(){var s,d;return(0,n.__generator)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,u.shouldInclude)(e,l)?(0,p.isField)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&f.push(((r={})[(0,p.resultKeyNameFromField)(e)]=t,r))}))]:((0,p.isInlineFragment)(e)?s=e:(s=a[e.name.value],(0,i.invariant)(s,18,e.name.value)),s&&s.typeCondition&&(d=s.typeCondition.name.value,o.fragmentMatcher(r,d,c))?[2,this.resolveSelectionSet(s.selectionSet,t,r,o).then((function(e){f.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(d)).then((function(){return(0,s.mergeDeepArray)(f)}))]}))}))},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,(function(){var o,a,s,u,c,l,f,h,m,g=this;return(0,n.__generator)(this,(function(n){return r?(o=i.variables,a=e.name.value,s=(0,p.resultKeyNameFromField)(e),u=a!==s,c=r[s]||r[a],l=Promise.resolve(c),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(m=h[u?a:s])&&(l=Promise.resolve(d.cacheSlot.withValue(this.cache,m,[r,(0,p.argumentsObjectFromField)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(r){var n,o;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&&(i.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?g.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?g.resolveSelectionSet(e.selectionSet,t||a,r,i):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(s){if(!n.has(s)){var u=new Set;n.set(s,u),(0,o.visit)(s,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&(0,a.isSelectionNode)(e)&&u.add(e)}))},FragmentSpread:function(n,o,s,c,l){var f=t[n.name.value];(0,i.invariant)(f,19,n.name.value);var p=e(f);p.size>0&&(l.forEach((function(e){r(e)&&(0,a.isSelectionNode)(e)&&u.add(e)})),u.add(n),p.forEach((function(e){u.add(e)})))}})}return n.get(s)}(e)},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addTypenameToDocument:()=>y,buildQueryFromSelectionSet:()=>E,removeArgumentsFromDocument:()=>_,removeClientSetsFromDocument:()=>w,removeConnectionDirectiveFromDocument:()=>b,removeDirectivesFromDocument:()=>g,removeFragmentSpreadFromDocument:()=>S});var n=r(103),i=r(327),o=r(422),a=r(418),s=r(399),u=r(400),c=r(402),l=r(437),f={kind:o.Kind.FIELD,name:{kind:o.Kind.NAME,value:"__typename"}};function p(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===o.Kind.FRAGMENT_SPREAD&&p(t[e.name.value],t)}))}function d(e){return p((0,s.getOperationDefinition)(e)||(0,s.getFragmentDefinition)(e),(0,c.createFragmentMap)((0,s.getFragmentDefinitions)(e)))?null:e}function h(e){var t=new Map,r=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))})),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach((function(t,r){r(e)&&(n=t)})),n}}function m(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 g(e,t){(0,s.checkDocument)(t);for(var r=m(""),u=m(""),c=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,l.isArray)(n)){if(n.kind===o.Kind.OPERATION_DEFINITION)return r(n.name&&n.name.value);if(n.kind===o.Kind.FRAGMENT_DEFINITION)return u(n.name.value)}return!1!==globalThis.__DEV__&&i.invariant.error(84),null},f=0,p=t.definitions.length-1;p>=0;--p)t.definitions[p].kind===o.Kind.OPERATION_DEFINITION&&++f;var g=h(e),y=function(e){return(0,l.isNonEmptyArray)(e)&&e.map(g).some((function(e){return e&&e.remove}))},v=new Map,b=!1,_={enter:function(e){if(y(e.directives))return b=!0,null}},S=(0,a.visit)(t,{Field:_,InlineFragment:_,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(y(e.directives))return b=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){v.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===v.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every((function(e){return e.kind===o.Kind.FIELD&&"__typename"===e.name.value}))?(u(e.name.value).removed=!0,b=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return b=!0,null}}});if(!b)return t;var E=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){E(u(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},w=new Set;S.definitions.forEach((function(e){e.kind===o.Kind.OPERATION_DEFINITION?E(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){w.add(e)})):e.kind!==o.Kind.FRAGMENT_DEFINITION||0!==f||u(e.name.value).removed||w.add(e.name.value)})),w.forEach((function(e){E(u(e)).fragmentSpreads.forEach((function(e){w.add(e)}))}));var O={enter:function(e){if(t=e.name.value,!w.has(t)||u(t).removed)return null;var t}};return d((0,a.visit)(S,{FragmentSpread:O,FragmentDefinition:O,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=E(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.__assign)((0,n.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var y=Object.assign((function(e){return(0,a.visit)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.Kind.OPERATION_DEFINITION){var i=e.selections;if(i)if(!i.some((function(e){return(0,u.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var a=r;if(!((0,u.isField)(a)&&a.directives&&a.directives.some((function(e){return"export"===e.name.value}))))return(0,n.__assign)((0,n.__assign)({},e),{selections:(0,n.__spreadArray)((0,n.__spreadArray)([],i,!0),[f],!1)})}}}}})}),{added:function(e){return e===f}}),v={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||!1!==globalThis.__DEV__&&i.invariant.warn(85)),t}};function b(e){return g([v],(0,s.checkDocument)(e))}function _(e,t){var r=function(e){return function(t){return e.some((function(e){return t.value&&t.value.kind===o.Kind.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return d((0,a.visit)(t,{OperationDefinition:{enter:function(t){return(0,n.__assign)((0,n.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var n=0;if(t.arguments&&t.arguments.forEach((function(e){r(e)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function S(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value})))return null}return d((0,a.visit)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function E(e){return"query"===(0,s.getMainDefinition)(e).operation?e:(0,a.visit)(e,{OperationDefinition:{enter:function(e){return(0,n.__assign)((0,n.__assign)({},e),{operation:"query"})}}})}function w(e){return(0,s.checkDocument)(e),g([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isConstValueNode:()=>u,isDefinitionNode:()=>i,isExecutableDefinitionNode:()=>o,isSelectionNode:()=>a,isTypeDefinitionNode:()=>f,isTypeExtensionNode:()=>d,isTypeNode:()=>c,isTypeSystemDefinitionNode:()=>l,isTypeSystemExtensionNode:()=>p,isValueNode:()=>s});var n=r(422);function i(e){return o(e)||l(e)||p(e)}function o(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function s(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function u(e){return s(e)&&(e.kind===n.Kind.LIST?e.values.some(u):e.kind===n.Kind.OBJECT?e.fields.some((e=>u(e.value))):e.kind!==n.Kind.VARIABLE)}function c(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function l(e){return e.kind===n.Kind.SCHEMA_DEFINITION||f(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function f(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function p(e){return e.kind===n.Kind.SCHEMA_EXTENSION||d(e)}function d(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryInfo:()=>m,shouldWriteResult:()=>g});var n=r(103),i=r(435),o=r(438),a=r(436),s=r(439),u=r(335),c=r(437),l=r(451),f=r(440),p=new(u.canUseWeakMap?WeakMap:Map);function d(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return p.set(e,(p.get(e)+1)%1e15),r.apply(this,arguments)})}function h(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var m=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;p.has(r)||(p.set(r,0),d(r,"evict"),d(r,"modify"),d(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||f.NetworkStatus.loading;return this.variables&&this.networkStatus!==f.NetworkStatus.loading&&!(0,i.equal)(this.variables,e.variables)&&(t=f.NetworkStatus.setVariables),(0,i.equal)(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(){h(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,i.equal)(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,i.equal)(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():(0,s.reobserveCacheFirst)(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;h(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((0,f.isNetworkRequestInFlight)(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 o=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,i.equal)(o,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===p.get(this.cache)&&(0,i.equal)(t,r.variables)&&(0,i.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var s=this,u=new o.DeepMerger,l=(0,c.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,c.isNonEmptyArray)(e.incremental)){var f=(0,a.mergeIncrementalData)(this.getDiff().result,e);e.data=f}else if("hasNext"in e&&e.hasNext){var d=this.getDiff();e.data=u.merge(d.result,e.data)}this.graphQLErrors=l,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(g(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(s.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),s.lastWrite={result:e,variables:r.variables,dmCount:p.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete)return void(e.data=s.lastDiff.diff.result);var a=s.getDiffOptions(r.variables),u=o.diff(a);!s.stopped&&(0,i.equal)(s.variables,r.variables)&&s.updateWatch(r.variables),s.updateLastDiff(u,a),u.complete&&(e.data=u.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=f.NetworkStatus.ready},e.prototype.markError=function(e){return this.networkStatus=f.NetworkStatus.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function g(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,l.graphQLResultHasError)(e);return!n&&r&&e.data&&(n=!0),n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGraphQLErrorsFromResult:()=>a,graphQLResultHasError:()=>o});var n=r(437),i=r(436);function o(e){var t=a(e);return(0,n.isNonEmptyArray)(t)}function a(e){var t=(0,n.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,i.isExecutionPatchIncrementalResult)(e)&&(0,n.isNonEmptyArray)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Trie:()=>s});const 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){const 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){const 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){const t=this.mapFor(e,!0);let 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)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentTransform:()=>f});var n=r(452),i=r(335),o=r(399),a=r(327),s=r(407),u=r(315),c=r(405);function l(e){return e}var f=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.canUseWeakSet?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.Trie(i.canUseWeakMap);this.performWork=(0,u.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,a.invariant)(Array.isArray(n),67),r.lookupArray(n)},max:c.cacheSizes["documentTransform.cache"],cache:s.WeakCache})}},e.prototype.performWork=function(e){return(0,o.checkDocument)(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}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{asyncMap:()=>i});var n=r(396);function i(e,t,r){return new n.Observable((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()}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>u});var n,i=r(414),o=r(406),a=r(405),s=r(404),u=Object.assign((function(e){var t=n.get(e);return t||(t=(0,i.print)(e),n.set(e,t)),t}),{reset:function(){n=new o.AutoCleanedWeakCache(a.cacheSizes.print||2e3)}});u.reset(),!1!==globalThis.__DEV__&&(0,s.registerGlobalCache)("print",(function(){return n?n.size:0}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Concast:()=>u});var n=r(103),i=r(396),o=r(445),a=r(446);function s(e){return e&&"function"==typeof e.then}var u=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),(0,o.iterateObserversSafely)(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),(0,o.iterateObserversSafely)(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?s(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)}),r.handlers.error):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,o.iterateObserversSafely)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new i.Observable(t)]),s(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return(0,n.__extends)(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}(i.Observable);(0,a.fixObservableSubclass)(u)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{execute:()=>n});var n=r(395).ApolloLink.execute},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeOptions:()=>o});var n=r(103),i=r(443);function o(e,t){return(0,i.compact)(e,t,t.variables&&{variables:(0,i.compact)((0,n.__assign)((0,n.__assign)({},e&&e.variables),t.variables))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpLink:()=>a});var n=r(103),i=r(395),o=r(460),a=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,o.createHttpLink)(t).request)||this;return r.options=t,r}return(0,n.__extends)(t,e),t}(i.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createHttpLink:()=>b});var n=r(103),i=r(327),o=r(395),a=r(442),s=r(396),u=r(461),c=r(462),l=r(463),f=r(470),p=r(471),d=r(472),h=r(473),m=r(474),g=r(448),y=r(399),v=(0,i.maybe)((function(){return fetch})),b=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,b=e.fetch,_=e.print,S=void 0===_?p.defaultPrinter:_,E=e.includeExtensions,w=e.preserveHeaderCase,O=e.useGETForQueries,x=e.includeUnusedVariables,T=void 0!==x&&x,k=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,f.checkFetcher)(b||v);var C={http:{includeExtensions:E,preserveHeaderCase:w},options:k.fetchOptions,credentials:k.credentials,headers:k.headers};return new o.ApolloLink((function(e){var t=(0,c.selectURI)(e,r),o=e.getContext(),f={};if(o.clientAwareness){var _=o.clientAwareness,E=_.name,w=_.version;E&&(f["apollographql-client-name"]=E),w&&(f["apollographql-client-version"]=w)}var x=(0,n.__assign)((0,n.__assign)({},f),o.headers),k={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:x};if((0,a.hasDirectives)(["client"],e.query)){var I=(0,g.removeClientSetsFromDocument)(e.query);if(!I)return(0,h.fromError)(new 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=I}var R,A=(0,p.selectHttpOptionsAndBodyInternal)(e,S,p.fallbackHttpConfig,C,k),P=A.options,D=A.body;D.variables&&!T&&(D.variables=(0,m.filterOperationVariables)(D.variables,e.query)),P.signal||"undefined"==typeof AbortController||(R=new AbortController,P.signal=R.signal);var N,M="OperationDefinition"===(N=(0,y.getMainDefinition)(e.query)).kind&&"subscription"===N.operation,L=(0,a.hasDirectives)(["defer"],e.query);if(O&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(P.method="GET"),L||M){P.headers=P.headers||{};var j="multipart/mixed;";M&&L&&!1!==globalThis.__DEV__&&i.invariant.warn(38),M?j+="boundary=graphql;subscriptionSpec=1.0,application/json":L&&(j+="deferSpec=20220824,application/json"),P.headers.accept=j}if("GET"===P.method){var B=(0,d.rewriteURIForGET)(t,D),F=B.newURI,U=B.parseError;if(U)return(0,h.fromError)(U);t=F}else try{P.body=(0,u.serializeFetchParameter)(D,"Payload")}catch(U){return(0,h.fromError)(U)}return new s.Observable((function(r){var n=b||(0,i.maybe)((function(){return fetch}))||v,o=r.next.bind(r);return n(t,P).then((function(t){var r;e.setContext({response:t});var n=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?(0,l.readMultipartBody)(t,o):(0,l.parseAndCheckHttpResponse)(e)(t).then(o)})).then((function(){R=void 0,r.complete()})).catch((function(e){R=void 0,(0,l.handleError)(e,r)})),function(){R&&R.abort()}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{serializeFetchParameter:()=>i});var n=r(327),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=(0,n.newInvariantError)(39,t,e.message);throw i.parseError=e,i}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{selectURI:()=>n});var n=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleError:()=>p,parseAndCheckHttpResponse:()=>d,parseHeaders:()=>l,parseJsonBody:()=>f,readMultipartBody:()=>c});var n=r(103),i=r(464),o=r(469),a=r(427),s=r(436),u=Object.prototype.hasOwnProperty;function c(e,t){return(0,n.__awaiter)(this,void 0,void 0,(function(){var r,o,u,c,p,d,h,m,g,y,v,b,_,S,E,w,O,x,T,k,C,I,R,A;return(0,n.__generator)(this,(function(P){switch(P.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),o=null===(A=e.headers)||void 0===A?void 0:A.get("content-type"),u="boundary=",c=(null==o?void 0:o.includes(u))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(u))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",p="\r\n--".concat(c),d="",h=(0,i.responseIterator)(e),m=!0,P.label=1;case 1:return m?[4,h.next()]:[3,3];case 2:for(g=P.sent(),y=g.value,v=g.done,b="string"==typeof y?y:r.decode(y),_=d.length-p.length+1,m=!v,S=(d+=b).indexOf(p,_);S>-1;){if(E=void 0,I=[d.slice(0,S),d.slice(S+p.length)],d=I[1],w=(E=I[0]).indexOf("\r\n\r\n"),O=l(E.slice(0,w)),(x=O["content-type"])&&-1===x.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(T=E.slice(w))if(k=f(e,T),Object.keys(k).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if((0,s.isApolloPayloadResult)(k)){if(C={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];C=(0,n.__assign)({},k.payload)}"errors"in k&&(C=(0,n.__assign)((0,n.__assign)({},C),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in C?C.extensions:null),(R={},R[a.PROTOCOL_ERRORS_SYMBOL]=k.errors,R))})),t(C)}else t(k);else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2];S=d.indexOf(p)}return[3,1];case 3:return[2]}}))}))}function l(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}function f(e,t){if(e.status>=300){(0,o.throwServerError)(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(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function p(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function d(e){return function(t){return t.text().then((function(e){return f(t,e)})).then((function(r){return Array.isArray(r)||u.call(r,"data")||u.call(r,"errors")||(0,o.throwServerError)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),r}))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{responseIterator:()=>u});var n=r(335),i=r(465),o=r(466),a=r(467),s=r(468);function u(e){var t=e;if(e.body&&(t=e.body),function(e){return!(!n.canUseAsyncIteratorSymbol||!e[Symbol.asyncIterator])}(t))return(0,i.default)(t);if(function(e){return!!e.getReader}(t))return(0,s.default)(t.getReader());if(function(e){return!!e.stream}(t))return(0,s.default)(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return(0,a.default)(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return(0,o.default)(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}},(e,t,r)=>{"use strict";function n(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(335);function i(e){var t=null,r=null,i=!1,o=[],a=[];function s(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function u(e){r=e,a.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){i=!0,a.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",u),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise((function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):i?e({value:void 0,done:!0}):void a.push([e,t])}))}};return n.canUseAsyncIteratorSymbol&&(l[Symbol.asyncIterator]=function(){return this}),l}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(335);function i(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return n.canUseAsyncIteratorSymbol&&(r[Symbol.asyncIterator]=function(){return this}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(335);function i(e){var t={next:function(){return e.read()}};return n.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{throwServerError:()=>n});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkFetcher:()=>i});var n=r(327),i=function(e){if(!e&&"undefined"==typeof fetch)throw(0,n.newInvariantError)(37)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultPrinter:()=>a,fallbackHttpConfig:()=>o,selectHttpOptionsAndBody:()=>s,selectHttpOptionsAndBodyInternal:()=>u});var n=r(103),i=r(455),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return r.unshift(t),u.apply(void 0,(0,n.__spreadArray)([e,a],r,!1))}function u(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a={},s={};r.forEach((function(e){a=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},a),e.options),{headers:(0,n.__assign)((0,n.__assign)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),s=(0,n.__assign)((0,n.__assign)({},s),e.http)})),a.headers&&(a.headers=function(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n=Object.create(null);Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}(a.headers,s.preserveHeaderCase));var u=e.operationName,c=e.extensions,l=e.variables,f=e.query,p={operationName:u,variables:l};return s.includeExtensions&&(p.extensions=c),s.includeQuery&&(p.query=t(f,i.print)),{options:a,body:p}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{rewriteURIForGET:()=>i});var n=r(461);function i(e,t){var r=[],i=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,n.serializeFetchParameter)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",o)}if(t.extensions){var a=void 0;try{a=(0,n.serializeFetchParameter)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",a)}var s="",u=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromError:()=>i});var n=r(396);function i(e){return new n.Observable((function(t){t.error(e)}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterOperationVariables:()=>o});var n=r(103),i=r(418);function o(e,t){var r=(0,n.__assign)({},e),o=new Set(Object.keys(e));return(0,i.visit)(t,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&o.delete(e.name.value)}}),o.forEach((function(e){delete r[e]})),r}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{Cache:()=>n}),n||(n={})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloCache:()=>p});var n=r(103),i=r(315),o=r(402),a=r(405),s=r(396),u=r(438),c=r(407),l=r(404),f=r(441),p=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.wrap)(o.getFragmentQueryDocument,{max:a.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:c.WeakCache})}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,n.__assign)((0,n.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,i=e.fragment,o=e.fragmentName,a=e.from,c=e.optimistic,l=void 0===c||c,p=this.getFragmentDoc(i,o),d={returnPartialData:!0,id:"string"==typeof a?a:this.identify(a),query:p,optimistic:l};return new s.Observable((function(e){return r.watch((0,n.__assign)((0,n.__assign)({},d),{immediate:!0,callback:function(r){if(!t||!(0,f.equalByQuery)(p,{data:null==t?void 0:t.result},{data:r.result})){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=(0,u.mergeDeepArray)(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,n.__assign)((0,n.__assign)({},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,i=(0,n.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=(0,n.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(p.prototype.getMemoryInternals=l.getApolloCacheMemoryInternals)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InMemoryCache:()=>E});var n=r(103),i=r(327),o=r(315),a=r(435),s=r(476),u=r(478),c=r(453),l=r(448),f=r(405),p=r(403),d=r(455),h=r(400),m=r(479),g=r(484),y=r(480),v=r(314),b=r(485),_=r(481),S=r(404),E=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new c.DocumentTransform(l.addTypenameToDocument),r.assumeImmutableResults=!0,r.makeVar=v.makeVar,r.txCount=0,r.config=(0,_.normalizeConfig)(t),r.addTypename=!!r.config.addTypename,r.policies=new b.Policies({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new y.EntityStore.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 g.StoreWriter(this,this.storeReader=new m.StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,_.shouldCanonizeResults)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.wrap)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize||f.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if((0,y.supportsResultCaching)(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,p.canonicalStringify)({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,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof u.MissingFieldError)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(_.hasOwn.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,n.__assign)((0,n.__assign)({},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,v.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,v.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;p.canonicalStringify.reset(),d.print.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var 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,h.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(_.hasOwn.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},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(),p.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,v.forgetCache)(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,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r,o=n.data,a=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},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,n.__assign)((0,n.__assign)({},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,a.equal)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(s.ApolloCache);!1!==globalThis.__DEV__&&(E.prototype.getMemoryInternals=S.getInMemoryCacheMemoryInternals)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MissingFieldError:()=>i});var n=r(103),i=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,n.__extends)(t,e),t}(Error)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StoreReader:()=>x});var n=r(103),i=r(327),o=r(422),a=r(315),s=r(335),u=r(443),c=r(405),l=r(400),f=r(399),p=r(403),d=r(438),h=r(442),m=r(448),g=r(402),y=r(482),v=r(401),b=r(480),_=r(481),S=r(437),E=r(478),w=r(483);function O(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var x=function(){function e(e){var t=this;this.knownResults=new(s.canUseWeakMap?WeakMap:Map),this.config=(0,u.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,_.shouldCanonizeResults)(e)}),this.canon=e.canon||new w.ObjectCanon,this.executeSelectionSet=(0,a.wrap)((function(e){var r,i=e.context.canonizeResults,o=O(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.__assign)((0,n.__assign)({},a),{result:t.canon.admit(a.result)}):a:((0,b.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||c.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:O,makeCacheKey:function(e,t,r,n){if((0,b.supportsResultCaching)(r.store))return r.store.makeCacheKey(e,(0,l.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,a.wrap)((function(e){return(0,b.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||c.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if((0,b.supportsResultCaching)(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new w.ObjectCanon},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,u=void 0===s||s,c=e.canonizeResults,d=void 0===c?this.config.canonizeResults:c,h=this.config.cache.policies;a=(0,n.__assign)((0,n.__assign)({},(0,f.getDefaultValues)((0,f.getQueryDefinition)(r))),a);var m,g=(0,l.makeReference)(o),y=this.executeSelectionSet({selectionSet:(0,f.getMainDefinition)(r).selectionSet,objectOrReference:g,enclosingRef:g,context:(0,n.__assign)({store:t,query:r,policies:h,variables:a,varString:(0,p.canonicalStringify)(a),canonizeResults:d},(0,_.extractFragmentContext)(r,this.config.fragments))});if(y.missing&&(m=[new E.MissingFieldError(T(y.missing),y.missing,r,a)],!u))throw m[0];return{result:y.result,complete:!m,missing:m}},e.prototype.isFresh=function(e,t,r,n){if((0,b.supportsResultCaching)(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=this,r=e.selectionSet,n=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,l.isReference)(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var u,c=s.variables,f=s.policies,p=s.store.getFieldValue(n,"__typename"),v=[],b=new d.DeepMerger;function _(e,t){var r;return e.missing&&(u=b.merge(u,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof p&&!f.rootIdsByTypename[p]&&v.push({__typename:p});var E=new Set(r.selections);E.forEach((function(e){var r,d;if((0,h.shouldInclude)(e,c))if((0,l.isField)(e)){var y=f.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),w=(0,l.resultKeyNameFromField)(e);void 0===y?m.addTypenameToDocument.added(e)||(u=b.merge(u,((r={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,l.isReference)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,S.isArray)(y)?y.length>0&&(y=_(t.executeSubSelectedArray({field:e,array:y,enclosingRef:a,context:s}),w)):e.selectionSet?null!=y&&(y=_(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:(0,l.isReference)(y)?y:a,context:s}),w)):s.canonizeResults&&(y=t.canon.pass(y)),void 0!==y&&v.push(((d={})[w]=y,d))}else{var O=(0,g.getFragmentFromSelection)(e,s.lookupFragment);if(!O&&e.kind===o.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(9,e.name.value);O&&f.fragmentMatches(O,p)&&O.selectionSet.selections.forEach(E.add,E)}}));var w={result:(0,d.mergeDeepArray)(v),missing:u},O=s.canonizeResults?this.canon.admit(w):(0,y.maybeDeepFreeze)(w);return O.result&&this.knownResults.set(O.result,r),O},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new d.DeepMerger;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,S.isArray)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,l.isReference)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,v.isNonNullObject)(r)&&((0,i.invariant)(!(0,l.isReference)(r),10,(0,_.getTypenameFromStoreObject)(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(s.store,n,e),e)})),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function T(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EntityStore:()=>y,maybeDependOnExistenceOfEntity:()=>_,supportsResultCaching:()=>O});var n=r(103),i=r(327),o=r(315),a=r(435),s=r(452),u=r(482),c=r(400),l=r(438),f=r(401),p=r(335),d=r(481),h=Object.create(null),m=function(){return h},g=Object.create(null),y=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(0,u.maybeDeepFreeze)((0,c.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,c.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,c.makeReference)(e);if((0,c.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,c.makeReference)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},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),d.hasOwn.call(this.data,e)){var r=this.data[e];if(r&&d.hasOwn.call(r,t))return r[t]}return"__typename"===t&&d.hasOwn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof S?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),d.hasOwn.call(this.data,e)?this.data[e]:this instanceof S?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,c.isReference)(e)&&(e=e.__ref),(0,c.isReference)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,i.invariant)("string"==typeof r,1);var s=new l.DeepMerger(w).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=(0,d.fieldNameFromStoreName)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof S||delete s[e]}})),!u.__typename||o&&o.__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,o=this.lookup(e);if(o){var a=Object.create(null),s=!1,l=!0,f={DELETE:h,INVALIDATE:g,isReference:c.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,c.makeReference)(e)}:t,{store:r})}};if(Object.keys(o).forEach((function(p){var y=(0,d.fieldNameFromStoreName)(p),v=o[p];if(void 0!==v){var b="function"==typeof t?t:t[p]||t[y];if(b){var _=b===m?h:b((0,u.maybeDeepFreeze)(v),(0,n.__assign)((0,n.__assign)({},f),{fieldName:y,storeFieldName:p,storage:r.getStorage(e,p)}));if(_===g)r.group.dirty(e,p);else if(_===h&&(_=void 0),_!==v&&(a[p]=_,s=!0,v=_,!1!==globalThis.__DEV__)){var S=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.invariant.warn(2,e),!0};if((0,c.isReference)(_))S(_);else if(Array.isArray(_))for(var E=!1,w=void 0,O=0,x=_;O<x.length;O++){var T=x[O];if((0,c.isReference)(T)){if(E=!0,S(T))break}else if("object"==typeof T&&T)r.policies.identify(T)[0]&&(w=T);if(E&&void 0!==w){!1!==globalThis.__DEV__&&i.invariant.warn(3,w);break}}}}void 0!==v&&(l=!1)}})),s)return this.merge(e,a),l&&(this instanceof S?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]=m,n):m)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(d.hasOwn.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof S&&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){d.hasOwn.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&&d.hasOwn.call(e,r)||t.delete(r)})),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[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 S?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){d.hasOwn.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 S;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!d.hasOwn.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,c.isReference)(e)&&(t[e.__ref]=!0),(0,f.isNonNullObject)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,f.isNonNullObject)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),v=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,o.dep)():null,this.keyMaker=new s.Trie(p.canUseWeakMap)},e.prototype.depend=function(e,t){if(this.d){this.d(b(e,t));var r=(0,d.fieldNameFromStoreName)(t);r!==t&&this.d(b(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(b(e,t),"__exists"===t?"forget":"setDirty")},e}();function b(e,t){return t+"#"+e}function _(e,t){O(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new v(i))||this;return a.stump=new E(a),a.storageTrie=new s.Trie(p.canUseWeakMap),o&&a.replace(o),a}return(0,n.__extends)(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}(e);e.Root=t}(y||(y={}));var S=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,n.__extends)(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,a.equal)(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,n.__assign)((0,n.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return d.hasOwn.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},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}(y),E=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new v(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(S);function w(e,t,r){var n=e[r],i=t[r];return(0,a.equal)(n,i)?n:i}function O(e){return!!(e instanceof y&&e.group.caching)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TypeOrFieldNameRegExp:()=>v,defaultDataIdFromObject:()=>d,extractFragmentContext:()=>w,fieldNameFromStoreName:()=>b,getTypenameFromStoreObject:()=>y,hasOwn:()=>f,isArray:()=>n.isArray,isNullish:()=>p,makeProcessedFieldsMerger:()=>E,normalizeConfig:()=>m,selectionSetMatchesResult:()=>_,shouldCanonizeResults:()=>g,storeValueIsStoreObject:()=>S});var n=r(437),i=r(443),o=r(400),a=r(401),s=r(442),u=r(438),c=r(402),l=r(399),f=Object.prototype.hasOwnProperty;function p(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=p(n)?p(i)?void 0:{_id:i}:{id:n}),p(n)&&!p(i)&&(n=i),!p(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var h={dataIdFromObject:d,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(e){return(0,i.compact)(h,e)}function g(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function y(e,t){return(0,o.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var v=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(v);return t?t[0]:e}function _(e,t,r){return!!(0,a.isNonNullObject)(t)&&((0,n.isArray)(t)?t.every((function(t){return _(e,t,r)})):e.selections.every((function(e){if((0,o.isField)(e)&&(0,s.shouldInclude)(e,r)){var n=(0,o.resultKeyNameFromField)(e);return f.call(t,n)&&(!e.selectionSet||_(e.selectionSet,t[n],r))}return!0})))}function S(e){return(0,a.isNonNullObject)(e)&&!(0,o.isReference)(e)&&!(0,n.isArray)(e)}function E(){return new u.DeepMerger}function w(e,t){var r=(0,c.createFragmentMap)((0,l.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maybeDeepFreeze:()=>o});var n=r(401);function i(e){var t=new Set([e]);return t.forEach((function(e){(0,n.isNonNullObject)(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,n.isNonNullObject)(e[r])&&t.add(e[r])}))})),e}function o(e){return!1!==globalThis.__DEV__&&i(e),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObjectCanon:()=>u});var n=r(103),i=r(452),o=r(401),a=r(335),s=r(437);var u=function(){function e(){this.known=new(a.canUseWeakSet?WeakSet:Set),this.pool=new i.Trie(a.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,o.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,o.isNonNullObject)(e)){var t=function(e){return(0,o.isNonNullObject)(e)?(0,s.isArray)(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,o.isNonNullObject)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(u=this.pool.lookupArray(n)).array||(this.known.add(u.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),u.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],s=this.sortedKeys(e);a.push(s.json);var u,c=a.length;if(s.sorted.forEach((function(r){a.push(t.admit(e[r]))})),!(u=this.pool.lookupArray(a)).object){var l=u.object=Object.create(i);this.known.add(l),s.sorted.forEach((function(e,t){l[e]=a[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return u.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}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StoreWriter:()=>b});var n=r(103),i=r(327),o=r(435),a=r(452),s=r(422),u=r(399),c=r(403),l=r(400),f=r(448),p=r(444),d=r(442),h=r(437),m=r(402),g=r(481),y=r(485);function v(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),o}var b=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,a=t.query,s=t.result,f=t.dataId,p=t.variables,d=t.overwrite,m=(0,u.getOperationDefinition)(a),y=(0,g.makeProcessedFieldsMerger)();p=(0,n.__assign)((0,n.__assign)({},(0,u.getDefaultValues)(m)),p);var v=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return y.merge(e,t)},variables:p,varString:(0,c.canonicalStringify)(p)},(0,g.extractFragmentContext)(a,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),b=this.processSelectionSet({result:s||Object.create(null),dataId:f,selectionSet:m.selectionSet,mergeTree:{map:new Map},context:v});if(!(0,l.isReference)(b))throw(0,i.newInvariantError)(11,s);return v.incomingById.forEach((function(t,a){var s=t.storeObject,u=t.mergeTree,c=t.fieldNodeSet,f=(0,l.makeReference)(a);if(u&&u.map.size){var p=r.applyMerges(u,f,s,v);if((0,l.isReference)(p))return;s=p}if(!1!==globalThis.__DEV__&&!v.overwrite){var d=Object.create(null);c.forEach((function(e){e.selectionSet&&(d[e.name.value]=!0)}));Object.keys(s).forEach((function(e){(function(e){return!0===d[(0,g.fieldNameFromStoreName)(e)]})(e)&&!function(e){var t=u&&u.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,a){var s=function(e){var t=a.getFieldValue(e,r);return"object"==typeof t&&t},u=s(e);if(!u)return;var c=s(t);if(!c)return;if((0,l.isReference)(u))return;if((0,o.equal)(u,c))return;if(Object.keys(u).every((function(e){return void 0!==a.getFieldValue(c,e)})))return;var f=a.getFieldValue(e,"__typename")||a.getFieldValue(t,"__typename"),p=(0,g.fieldNameFromStoreName)(r),d="".concat(f,".").concat(p);if(x.has(d))return;x.add(d);var m=[];(0,h.isArray)(u)||(0,h.isArray)(c)||[u,c].forEach((function(e){var t=a.getFieldValue(e,"__typename");"string"!=typeof t||m.includes(t)||m.push(t)}));!1!==globalThis.__DEV__&&i.invariant.warn(14,p,f,m.length?"either ensure all objects of type "+m.join(" and ")+" have an ID or a custom merge function, or ":"",d,(0,n.__assign)({},u),(0,n.__assign)({},c))}(f,s,e,v.store)}))}e.merge(a,s)})),e.retain(b.__ref),b},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,p=Object.create(null),d=r&&c.rootTypenamesById[r]||(0,l.getTypenameFromResult)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof d&&(p.__typename=d);var h=function(){var e=(0,y.normalizeReadFieldOptions)(arguments,p,s.variables);if((0,l.isReference)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},m=new Set;this.flattenFields(a,o,s,d).forEach((function(e,r){var n,a=(0,l.resultKeyNameFromField)(r),s=o[a];if(m.add(r),void 0!==s){var y=c.getStoreFieldName({typename:d,fieldName:r.name.value,field:r,variables:e.variables}),b=S(u,y),_=t.processFieldValue(s,r,r.selectionSet?v(e,!1,!1):e,b),E=void 0;r.selectionSet&&((0,l.isReference)(_)||(0,g.storeValueIsStoreObject)(_))&&(E=h("__typename",_));var w=c.getMergeFunction(d,r.name.value,E);w?b.info={field:r,typename:d,merge:w}:O(u,y),p=e.merge(p,((n={})[y]=_,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||f.addTypenameToDocument.added(r)||c.getReadFunction(d,r.name.value)||!1!==globalThis.__DEV__&&i.invariant.error(12,(0,l.resultKeyNameFromField)(r),o)}));try{var b=c.identify(o,{typename:d,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:p,readField:h}),_=b[0],x=b[1];r=r||_,x&&(p=s.merge(p,x))}catch(e){if(!r)throw e}if("string"==typeof r){var T=(0,l.makeReference)(r),k=s.written[r]||(s.written[r]=[]);if(k.indexOf(a)>=0)return T;if(k.push(a),this.reader&&this.reader.isFresh(o,T,a,s))return T;var C=s.incomingById.get(r);return C?(C.storeObject=s.merge(C.storeObject,p),C.mergeTree=E(C.mergeTree,u),m.forEach((function(e){return C.fieldNodeSet.add(e)}))):s.incomingById.set(r,{storeObject:p,mergeTree:w(u)?void 0:u,fieldNodeSet:m}),T}return p},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,h.isArray)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,S(n,o));return O(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,p.cloneDeep)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,l.getTypenameFromResult)(t,e,r.fragmentMap));var o=new Map,u=this.cache.policies,c=new a.Trie(!1);return function e(a,f){var p=c.lookup(a,f.clientOnly,f.deferred);p.visited||(p.visited=!0,a.selections.forEach((function(a){if((0,d.shouldInclude)(a,r.variables)){var c=f.clientOnly,p=f.deferred;if(c&&p||!(0,h.isNonEmptyArray)(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var n=(0,l.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(p=!0)}})),(0,l.isField)(a)){var g=o.get(a);g&&(c=c&&g.clientOnly,p=p&&g.deferred),o.set(a,v(r,c,p))}else{var y=(0,m.getFragmentFromSelection)(a,r.lookupFragment);if(!y&&a.kind===s.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(13,a.name.value);y&&u.fragmentMatches(y,n,t,r.variables)&&e(y.selectionSet,v(r,c,p))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,a){var s,u=this;if(e.map.size&&!(0,l.isReference)(r)){var c,f=(0,h.isArray)(r)||!(0,l.isReference)(t)&&!(0,g.storeValueIsStoreObject)(t)?void 0:t,p=r;f&&!a&&(a=[(0,l.isReference)(f)?f.__ref:f]);var d=function(e,t){return(0,h.isArray)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=d(f,t),n=d(p,t);if(void 0!==n){a&&a.push(t);var s=u.applyMerges(e,r,n,o,a);s!==n&&(c=c||new Map).set(t,s),a&&(0,i.invariant)(a.pop()===t)}})),c&&(r=(0,h.isArray)(p)?p.slice(0):(0,n.__assign)({},p),c.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},e}(),_=[];function S(e,t){var r=e.map;return r.has(t)||r.set(t,_.pop()||{map:new Map}),r.get(t)}function E(e,t){if(e===t||!t||w(t))return e;if(!e||w(e))return t;var r=e.info&&t.info?(0,n.__assign)((0,n.__assign)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var a=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,E(e,t.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,E(t.map.get(r),e.map.get(r)))}))}return o}function w(e){return!e||!(e.info||e.map.size)}function O(e,t){var r=e.map,n=r.get(t);n&&w(n)&&(_.push(n),r.delete(t))}var x=new Set},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Policies:()=>y,normalizeReadFieldOptions:()=>b});var n=r(103),i=r(327),o=r(400),a=r(333),s=r(401),u=r(481),c=r(437),l=r(314),f=r(486);function p(e){return void 0!==e.args?e.args:e.field?(0,o.argumentsObjectFromField)(e.field,e.variables):null}var d=function(){},h=function(e,t){return t.fieldName},m=function(e,t,r){return(0,r.mergeObjects)(e,t)},g=function(e,t){return t},y=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,n.__assign)({dataIdFromObject:u.defaultDataIdFromObject},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,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,u=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=b(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),l=o&&this.getTypePolicy(o),p=l&&l.keyFn||this.config.dataIdFromObject;p;){var d=p((0,n.__assign)((0,n.__assign)({},e),s),u);if(!(0,c.isArray)(d)){a=d;break}p=(0,f.keyFieldsFnFromSpecifier)(d)}return a=a?String(a):void 0,u.keyObject?[a,u.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,c=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),u.hasOwn.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]}))},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?m:!1===t?g:e.merge}a(n,t.merge),n.keyFn=!1===i?d:(0,c.isArray)(i)?(0,f.keyFieldsFnFromSpecifier)(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,l=i.merge;n.keyFn=!1===s?h:(0,c.isArray)(s)?(0,f.keyArgsFnFromSpecifier)(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,l)}n.read&&n.merge&&(n.keyFn=n.keyFn||h)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.invariant)(!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(u.TypeOrFieldNameRegExp);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!u.hasOwn.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=(0,n.__rest)(i,["fields"]);Object.assign(r,a),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.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 o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),c=[s],l=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},f=!(!r||!this.fuzzySubtypes.size),p=!1,d=0;d<c.length;++d){var h=c[d];if(h.has(a))return s.has(a)||(p&&!1!==globalThis.__DEV__&&i.invariant.warn(6,t,a),s.add(a)),!0;h.forEach(l),f&&d===c.length-1&&(0,u.selectionSetMatchesResult)(e.selectionSet,r,n)&&(f=!1,p=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&l(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),a=i&&i.keyFn;if(a&&r)for(var s={typename:r,fieldName:n,field:e.field||null,variables:e.variables},l=p(e);a;){var d=a(l,s);if(!(0,c.isArray)(d)){t=d||n;break}a=(0,f.keyArgsFnFromSpecifier)(d)}return void 0===t&&(t=e.field?(0,o.storeKeyNameFromField)(e.field,e.variables):(0,o.getStoreKeyName)(n,p(e))),!1===t?n:n===(0,u.fieldNameFromStoreName)(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),a=(0,u.fieldNameFromStoreName)(i),s=t.store.getFieldValue(r,i),c=this.getFieldPolicy(e.typename,a,!1),f=c&&c.read;if(f){var p=v(this,r,e,t,t.store.getStorage((0,o.isReference)(r)?r.__ref:r,i));return l.cacheSlot.withValue(this.cache,f,[s,p])}return s}},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===m?_(n.store)(e,t):s===g?t:(n.overwrite&&(e=void 0),s(e,t,v(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function v(e,t,r,n,i){var a=e.getStoreFieldName(r),s=(0,u.fieldNameFromStoreName)(a),c=r.variables||n.variables,l=n.store,f=l.toReference,d=l.canRead;return{args:p(r),field:r.field||null,fieldName:s,storeFieldName:a,variables:c,isReference:o.isReference,toReference:f,storage:i,cache:e.cache,canRead:d,readField:function(){return e.readField(b(arguments,t,c),n)},mergeObjects:_(n.store)}}function b(e,t,r){var o,s=e[0],c=e[1],l=e.length;return"string"==typeof s?o={fieldName:s,from:l>1?c:t}:(o=(0,n.__assign)({},s),u.hasOwn.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.invariant.warn(7,(0,a.stringifyForDisplay)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function _(e){return function(t,r){if((0,c.isArray)(t)||(0,c.isArray)(r))throw(0,i.newInvariantError)(8);if((0,s.isNonNullObject)(t)&&(0,s.isNonNullObject)(r)){var a=e.getFieldValue(t,"__typename"),l=e.getFieldValue(r,"__typename");if(a&&l&&a!==l)return r;if((0,o.isReference)(t)&&(0,u.storeValueIsStoreObject)(r))return e.merge(t.__ref,r),t;if((0,u.storeValueIsStoreObject)(t)&&(0,o.isReference)(r))return e.merge(t,r.__ref),r;if((0,u.storeValueIsStoreObject)(t)&&(0,u.storeValueIsStoreObject)(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectSpecifierPaths:()=>d,extractKeyPath:()=>g,getSpecifierPaths:()=>h,keyArgsFnFromSpecifier:()=>p,keyFieldsFnFromSpecifier:()=>f});var n=r(327),i=r(437),o=r(400),a=r(438),s=r(401),u=r(481),c=Object.create(null);function l(e){var t=JSON.stringify(e);return c[t]||(c[t]=Object.create(null))}function f(e){var t=l(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var i=function(e,t){return r.readField(t,e)},o=r.keyObject=d(e,(function(e){var o=g(r.storeObject,e,i);return void 0===o&&t!==r.storeObject&&u.hasOwn.call(t,e[0])&&(o=g(t,e,m)),(0,n.invariant)(void 0!==o,4,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function p(e){var t=l(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,a=r.variables,s=r.fieldName,c=d(e,(function(e){var r=e[0],s=r.charAt(0);if("@"!==s)if("$"!==s){if(t)return g(t,e)}else{var c=r.slice(1);if(a&&u.hasOwn.call(a,c)){var l=e.slice(0);return l[0]=c,g(a,l)}}else if(n&&(0,i.isNonEmptyArray)(n.directives)){var f=r.slice(1),p=n.directives.find((function(e){return e.name.value===f})),d=p&&(0,o.argumentsObjectFromField)(p,a);return d&&g(d,e.slice(1))}})),l=JSON.stringify(c);return(t||"{}"!==l)&&(s+=":"+l),s})}function d(e,t){var r=new a.DeepMerger;return h(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 h(e){var t=l(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,o){(0,i.isArray)(t)?(h(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),(0,i.isArray)(e[o+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function m(e,t){return e[t]}function g(e,t,r){return r=r||m,y(t.reduce((function e(t,n){return(0,i.isArray)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function y(e){return(0,s.isNonNullObject)(e)?(0,i.isArray)(e)?e.map(y):d(Object.keys(e).sort(),(function(t){return g(e,t)})):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloLink:()=>u.ApolloLink,concat:()=>a.concat,empty:()=>n.empty,execute:()=>s.execute,from:()=>i.from,split:()=>o.split});r(327);var n=r(488),i=r(489),o=r(490),a=r(491),s=r(457),u=r(395)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{empty:()=>n});var n=r(395).ApolloLink.empty},(e,t,r)=>{"use strict";r.r(t),r.d(t,{from:()=>n});var n=r(395).ApolloLink.from},(e,t,r)=>{"use strict";r.r(t),r.d(t,{split:()=>n});var n=r(395).ApolloLink.split},(e,t,r)=>{"use strict";r.r(t),r.d(t,{concat:()=>n});var n=r(395).ApolloLink.concat},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpLink:()=>l.HttpLink,checkFetcher:()=>a.checkFetcher,createHttpLink:()=>c.createHttpLink,createSignalIfSupported:()=>s.createSignalIfSupported,defaultPrinter:()=>o.defaultPrinter,fallbackHttpConfig:()=>o.fallbackHttpConfig,parseAndCheckHttpResponse:()=>n.parseAndCheckHttpResponse,rewriteURIForGET:()=>f.rewriteURIForGET,selectHttpOptionsAndBody:()=>o.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>o.selectHttpOptionsAndBodyInternal,selectURI:()=>u.selectURI,serializeFetchParameter:()=>i.serializeFetchParameter});r(327);var n=r(463),i=r(461),o=r(471),a=r(470),s=r(493),u=r(462),c=r(460),l=r(459),f=r(472)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createSignalIfSupported:()=>n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toPromise:()=>i});var n=r(327);function i(e){var t=!1;return new Promise((function(r,i){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&n.invariant.warn(42):(t=!0,r(e))},error:i})}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromPromise:()=>i});var n=r(396);function i(e){return new n.Observable((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w,disableExperimentalFragmentVariables:()=>g,disableFragmentWarnings:()=>h,enableExperimentalFragmentVariables:()=>m,gql:()=>p,resetCaches:()=>d});var n=r(103),i=r(497),o=new Map,a=new Map,s=!0,u=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=c((u=e.loc).source.body.substring(u.start,u.end)),o=a.get(n);o&&!o.has(i)?s&&console.warn("Warning: fragment with name "+n+" 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"):o||a.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var u})),(0,n.__assign)((0,n.__assign)({},e),{definitions:r})}function f(e){var t=c(e);if(!o.has(t)){var r=(0,i.parse)(e,{experimentalFragmentVariables:u,allowLegacyFragmentVariables:u});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");o.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(l(r)))}return o.get(t)}function p(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]})),f(n)}function d(){o.clear(),a.clear()}function h(){s=!1}function m(){u=!0}function g(){u=!1}var y,v=p,b=d,_=h,S=m,E=g;(y=p||(p={})).gql=v,y.resetCaches=b,y.disableFragmentWarnings=_,y.enableExperimentalFragmentVariables=S,y.disableExperimentalFragmentVariables=E,p.default=p;const w=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parser:()=>h,parse:()=>l,parseConstValue:()=>p,parseType:()=>d,parseValue:()=>f});var n=r(498),i=r(421),o=r(504),a=r(422),s=r(505),u=r(507),c=r(506);function l(e,t){return new h(e,t).parseDocument()}function f(e,t){const r=new h(e,t);r.expectToken(c.TokenKind.SOF);const n=r.parseValueLiteral(!1);return r.expectToken(c.TokenKind.EOF),n}function p(e,t){const r=new h(e,t);r.expectToken(c.TokenKind.SOF);const n=r.parseConstValueLiteral();return r.expectToken(c.TokenKind.EOF),n}function d(e,t){const r=new h(e,t);r.expectToken(c.TokenKind.SOF);const n=r.parseTypeReference();return r.expectToken(c.TokenKind.EOF),n}class h{constructor(e,t={}){const r=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new s.Lexer(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.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(0,n.syntaxError)(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(){const e=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(c.TokenKind.NAME)&&(r=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(c.TokenKind.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:a.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.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:a.Kind.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){const t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(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(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),c.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(c.TokenKind.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(c.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:a.Kind.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(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.TokenKind.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(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const 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:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const 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:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${g(e)}, found ${m(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.TokenKind.NAME||t.value!==e)throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${m(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${m(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function m(e){const t=e.value;return g(e.kind)+(null!=t?` "${t}"`:"")}function g(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{syntaxError:()=>i});var n=r(499);function i(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GraphQLError:()=>a,formatError:()=>c,printError:()=>u});var n=r(500),i=r(501),o=r(503);class a extends Error{constructor(e,...t){var r,o,u;const{nodes:c,source:l,positions:f,path:p,originalError:d,extensions:h}=function(e){const 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=s(Array.isArray(c)?c:c?[c]:void 0);const m=s(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=l?l:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=f?f:null==m?void 0:m.map((e=>e.start)),this.locations=f&&l?f.map((e=>(0,i.getLocation)(l,e))):null==m?void 0:m.map((e=>(0,i.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(u=null!=h?h:g)&&void 0!==u?u: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,a):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(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const 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 s(e){return void 0===e||0===e.length?void 0:e}function u(e){return e.toString()}function c(e){return e.toJSON()}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e}r.r(t),r.d(t,{isObjectLike:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLocation:()=>o});var n=r(502);const i=/\r\n|[\n\r]/g;function o(e,t){let r=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,n.invariant)(!1),a.index>=t)break;r=a.index+a[0].length,o+=1}return{line:o,column:t+1-r}}},(e,t,r)=>{"use strict";function n(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}r.r(t),r.d(t,{invariant:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{printLocation:()=>i,printSourceLocation:()=>o});var n=r(501);function i(e){return o(e.source,(0,n.getLocation)(e.source,e.start))}function o(e,t){const 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}\n`,f=n.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let e=0;e<p.length;e+=80)r.push(p.slice(e,e+80));return l+a([[`${s} |`,r[0]],...r.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return l+a([[s-1+" |",f[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,f[i+1]]])}function a(e){const 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")}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DirectiveLocation:()=>n}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lexer:()=>u,isPunctuatorTokenKind:()=>c});var n=r(498),i=r(421),o=r(415),a=r(416),s=r(506);class u{constructor(e){const t=new i.Token(s.TokenKind.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(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R}function l(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function f(e,t){return p(e.charCodeAt(t))&&d(e.charCodeAt(t+1))}function p(e){return e>=55296&&e<=56319}function d(e){return e>=56320&&e<=57343}function h(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return s.TokenKind.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,r,n,o){const a=e.line,s=1+r-e.lineStart;return new i.Token(t,r,n,a,s,o)}function g(e,t){const r=e.source.body,i=r.length;let o=t;for(;o<i;){const t=r.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return y(e,o);case 33:return m(e,s.TokenKind.BANG,o,o+1);case 36:return m(e,s.TokenKind.DOLLAR,o,o+1);case 38:return m(e,s.TokenKind.AMP,o,o+1);case 40:return m(e,s.TokenKind.PAREN_L,o,o+1);case 41:return m(e,s.TokenKind.PAREN_R,o,o+1);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return m(e,s.TokenKind.SPREAD,o,o+3);break;case 58:return m(e,s.TokenKind.COLON,o,o+1);case 61:return m(e,s.TokenKind.EQUALS,o,o+1);case 64:return m(e,s.TokenKind.AT,o,o+1);case 91:return m(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return m(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return m(e,s.TokenKind.BRACE_L,o,o+1);case 124:return m(e,s.TokenKind.PIPE,o,o+1);case 125:return m(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?T(e,o):_(e,o)}if((0,a.isDigit)(t)||45===t)return v(e,o,t);if((0,a.isNameStart)(t))return k(e,o);throw(0,n.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":l(t)||f(r,o)?`Unexpected character: ${h(e,o)}.`:`Invalid character: ${h(e,o)}.`)}return m(e,s.TokenKind.EOF,i,i)}function y(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(l(e))++i;else{if(!f(r,i))break;i+=2}}return m(e,s.TokenKind.COMMENT,t,i,r.slice(t+1,i))}function v(e,t,r){const i=e.source.body;let o=t,u=r,c=!1;if(45===u&&(u=i.charCodeAt(++o)),48===u){if(u=i.charCodeAt(++o),(0,a.isDigit)(u))throw(0,n.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${h(e,o)}.`)}else o=b(e,o,u),u=i.charCodeAt(o);if(46===u&&(c=!0,u=i.charCodeAt(++o),o=b(e,o,u),u=i.charCodeAt(o)),69!==u&&101!==u||(c=!0,u=i.charCodeAt(++o),43!==u&&45!==u||(u=i.charCodeAt(++o)),o=b(e,o,u),u=i.charCodeAt(o)),46===u||(0,a.isNameStart)(u))throw(0,n.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${h(e,o)}.`);return m(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function b(e,t,r){if(!(0,a.isDigit)(r))throw(0,n.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function _(e,t){const r=e.source.body,i=r.length;let o=t+1,a=o,u="";for(;o<i;){const i=r.charCodeAt(o);if(34===i)return u+=r.slice(a,o),m(e,s.TokenKind.STRING,t,o+1,u);if(92!==i){if(10===i||13===i)break;if(l(i))++o;else{if(!f(r,o))throw(0,n.syntaxError)(e.source,o,`Invalid character within String: ${h(e,o)}.`);o+=2}}else{u+=r.slice(a,o);const t=117===r.charCodeAt(o+1)?123===r.charCodeAt(o+2)?S(e,o):E(e,o):x(e,o);u+=t.value,o+=t.size,a=o}}throw(0,n.syntaxError)(e.source,o,"Unterminated string.")}function S(e,t){const r=e.source.body;let i=0,o=3;for(;o<12;){const e=r.charCodeAt(t+o++);if(125===e){if(o<5||!l(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|O(e),i<0)break}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}function E(e,t){const r=e.source.body,i=w(r,t+2);if(l(i))return{value:String.fromCodePoint(i),size:6};if(p(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=w(r,t+8);if(d(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function w(e,t){return O(e.charCodeAt(t))<<12|O(e.charCodeAt(t+1))<<8|O(e.charCodeAt(t+2))<<4|O(e.charCodeAt(t+3))}function O(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function x(e,t){const 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:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function T(e,t){const r=e.source.body,i=r.length;let a=e.lineStart,u=t+3,c=u,p="";const d=[];for(;u<i;){const i=r.charCodeAt(u);if(34===i&&34===r.charCodeAt(u+1)&&34===r.charCodeAt(u+2)){p+=r.slice(c,u),d.push(p);const n=m(e,s.TokenKind.BLOCK_STRING,t,u+3,(0,o.dedentBlockStringLines)(d).join("\n"));return e.line+=d.length-1,e.lineStart=a,n}if(92!==i||34!==r.charCodeAt(u+1)||34!==r.charCodeAt(u+2)||34!==r.charCodeAt(u+3))if(10!==i&&13!==i)if(l(i))++u;else{if(!f(r,u))throw(0,n.syntaxError)(e.source,u,`Invalid character within String: ${h(e,u)}.`);u+=2}else p+=r.slice(c,u),d.push(p),13===i&&10===r.charCodeAt(u+1)?u+=2:++u,p="",c=u,a=u;else p+=r.slice(c,u),c=u+1,u+=4}throw(0,n.syntaxError)(e.source,u,"Unterminated string.")}function k(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(!(0,a.isNameContinue)(e))break;++i}return m(e,s.TokenKind.NAME,t,i,r.slice(t,i))}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{TokenKind:()=>n}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Source:()=>a,isSource:()=>s});var n=r(419),i=r(420),o=r(508);class a{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return(0,o.instanceOf)(e,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instanceOf:()=>i});var n=r(420);const i=globalThis.process&&!0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}},e=>{"use strict";e.exports=function(e,t,r){e.append(t,r,r.name)}},(e,t,r)=>{"use strict";e.exports=r(429)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchHttpLink:()=>v});var n=r(103),i=r(395),o=r(327),a=r(442),s=r(448),u=r(396),c=r(473),l=r(471),f=r(470),p=r(462),d=r(461),h=r(463),m=r(512),g=r(474),y=(0,o.maybe)((function(){return fetch})),v=function(e){function t(t){var r=e.call(this)||this,i=t||{},v=i.uri,b=void 0===v?"/graphql":v,_=i.fetch,S=i.print,E=void 0===S?l.defaultPrinter:S,w=i.includeExtensions,O=i.preserveHeaderCase,x=i.batchInterval,T=i.batchDebounce,k=i.batchMax,C=i.batchKey,I=i.includeUnusedVariables,R=void 0!==I&&I,A=(0,n.__rest)(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,f.checkFetcher)(_||y);var P={http:{includeExtensions:w,preserveHeaderCase:O},options:A.fetchOptions,credentials:A.credentials,headers:A.headers};r.batchDebounce=T,r.batchInterval=x||10,r.batchMax=k||10;return C=C||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,p.selectURI)(e,b)+JSON.stringify(r)},r.batcher=new m.BatchLink({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:C,batchHandler:function(e){var t=(0,p.selectURI)(e[0],b),r=e[0].getContext(),i={};if(r.clientAwareness){var f=r.clientAwareness,m=f.name,v=f.version;m&&(i["apollographql-client-name"]=m),v&&(i["apollographql-client-version"]=v)}var S={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:(0,n.__assign)((0,n.__assign)({},i),r.headers)},w=e.map((function(e){var t=e.query;return(0,a.hasDirectives)(["client"],t)?(0,s.removeClientSetsFromDocument)(t):t}));if(w.some((function(e){return!e})))return(0,c.fromError)(new Error("BatchHttpLink: 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 enable the `transformOptions.removeClientFields` option."));var O,x=e.map((function(e,t){var r=(0,l.selectHttpOptionsAndBodyInternal)((0,n.__assign)((0,n.__assign)({},e),{query:w[t]}),E,l.fallbackHttpConfig,P,S);return r.body.variables&&!R&&(r.body.variables=(0,g.filterOperationVariables)(r.body.variables,e.query)),r})),T=x.map((function(e){return e.body})),k=x[0].options;if("GET"===k.method)return(0,c.fromError)(new Error("apollo-link-batch-http does not support GET requests"));try{k.body=(0,d.serializeFetchParameter)(T,"Payload")}catch(e){return(0,c.fromError)(e)}return k.signal||"undefined"==typeof AbortController||(O=new AbortController,k.signal=O.signal),new u.Observable((function(r){return(_||(0,o.maybe)((function(){return fetch}))||y)(t,k).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then((0,h.parseAndCheckHttpResponse)(e)).then((function(e){return O=void 0,r.next(e),r.complete(),e})).catch((function(e){O=void 0,e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e)})),function(){O&&O.abort()}}))}}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(i.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchLink:()=>a,OperationBatcher:()=>o.OperationBatcher});var n=r(103),i=r(395),o=r(513),a=function(e){function t(t){var r=e.call(this)||this,n=t||{},i=n.batchDebounce,a=n.batchInterval,s=void 0===a?10:a,u=n.batchMax,c=void 0===u?0:u,l=n.batchHandler,f=void 0===l?function(){return null}:l,p=n.batchKey,d=void 0===p?function(){return""}:p;return r.batcher=new o.OperationBatcher({batchDebounce:i,batchInterval:s,batchMax:c,batchHandler:f,batchKey:d}),t.batchHandler.length<=1&&(r.request=function(e){return r.batcher.enqueueRequest({operation:e})}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(i.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OperationBatcher:()=>o});var n=r(103),i=r(396),o=function(){function e(e){var t=e.batchDebounce,r=e.batchInterval,n=e.batchMax,i=e.batchHandler,o=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=t,this.batchInterval=r,this.batchMax=n||0,this.batchHandler=i,this.batchKey=o||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e),{next:[],error:[],complete:[],subscribers:new Set}),o=this.batchKey(e.operation);return r.observable||(r.observable=new i.Observable((function(e){var n=t.batchesByKey.get(o);n||t.batchesByKey.set(o,n=new Set);var i=0===n.size,a=0===r.subscribers.size;return r.subscribers.add(e),a&&n.add(r),e.next&&r.next.push(e.next.bind(e)),e.error&&r.error.push(e.error.bind(e)),e.complete&&r.complete.push(e.complete.bind(e)),(i||t.batchDebounce)&&t.scheduleQueueConsumption(o),n.size===t.batchMax&&t.consumeQueue(o),function(){var i;r.subscribers.delete(e)&&r.subscribers.size<1&&n.delete(r)&&n.size<1&&(t.consumeQueue(o),null===(i=n.subscription)||void 0===i||i.unsubscribe())}}))),r.observable},e.prototype.consumeQueue=function(e){void 0===e&&(e="");var t=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),t&&t.size){var r=[],n=[],o=[],a=[],s=[],u=[];t.forEach((function(e){r.push(e.operation),n.push(e.forward),o.push(e.observable),a.push(e.next),s.push(e.error),u.push(e.complete)}));var c=this.batchHandler(r,n)||i.Observable.of(),l=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return t.subscription=c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length ".concat(e.length,", expected length of ").concat(a.length));return t.result=e,l(t)}e.forEach((function(e,t){a[t]&&a[t].forEach((function(t){return t(e)}))}))},error:l,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),o}},e.prototype.scheduleQueueConsumption=function(e){var t=this;clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout((function(){t.consumeQueue(e),t.scheduledBatchTimerByKey.delete(e)}),this.batchInterval))},e}()},,,,,,,,,,,,,,,,,,,,,,,,(e,t)=>{var r;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(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=a(t,r));return t}function a(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)}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>y,default:()=>S,encode:()=>v,toASCII:()=>_,toUnicode:()=>b,ucs2decode:()=>d,ucs2encode:()=>h});const n=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,l=String.fromCharCode;function f(e){throw new RangeError(u[e])}function p(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(s,".")).split("."),t).join(".");return n+i}function d(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}const h=e=>String.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,r){let n=0;for(e=r?c(e/700):e>>1,e+=c(e/t);e>455;n+=i)e=c(e/35);return c(n+36*e/(e+38))},y=function(e){const t=[],r=e.length;let o=0,a=128,s=72,u=e.lastIndexOf("-");u<0&&(u=0);for(let r=0;r<u;++r)e.charCodeAt(r)>=128&&f("not-basic"),t.push(e.charCodeAt(r));for(let p=u>0?u+1:0;p<r;){const u=o;for(let t=1,a=i;;a+=i){p>=r&&f("invalid-input");const u=(l=e.charCodeAt(p++))>=48&&l<58?l-48+26:l>=65&&l<91?l-65:l>=97&&l<123?l-97:i;u>=i&&f("invalid-input"),u>c((n-o)/t)&&f("overflow"),o+=u*t;const d=a<=s?1:a>=s+26?26:a-s;if(u<d)break;const h=i-d;t>c(n/h)&&f("overflow"),t*=h}const d=t.length+1;s=g(o-u,d,0==u),c(o/d)>n-a&&f("overflow"),a+=c(o/d),o%=d,t.splice(o++,0,a)}var l;return String.fromCodePoint(...t)},v=function(e){const t=[],r=(e=d(e)).length;let o=128,a=0,s=72;for(const r of e)r<128&&t.push(l(r));const u=t.length;let p=u;for(u&&t.push("-");p<r;){let r=n;for(const t of e)t>=o&&t<r&&(r=t);const d=p+1;r-o>c((n-a)/d)&&f("overflow"),a+=(r-o)*d,o=r;for(const r of e)if(r<o&&++a>n&&f("overflow"),r===o){let e=a;for(let r=i;;r+=i){const n=r<=s?1:r>=s+26?26:r-s;if(e<n)break;const o=e-n,a=i-n;t.push(l(m(n+o%a,0))),e=c(o/a)}t.push(l(m(e,0))),s=g(a,d,p===u),a=0,++p}++a,++o}return t.join("")},b=function(e){return p(e,(function(e){return o.test(e)?y(e.slice(4).toLowerCase()):e}))},_=function(e){return p(e,(function(e){return a.test(e)?"xn--"+v(e):e}))},S={version:"2.3.1",ucs2:{decode:d,encode:h},decode:y,encode:v,toASCII:_,toUnicode:b}},,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbortedDeferredError:()=>o.AbortedDeferredError,Await:()=>i.Await,BrowserRouter:()=>P,Form:()=>F,HashRouter:()=>D,Link:()=>j,MemoryRouter:()=>i.MemoryRouter,NavLink:()=>B,Navigate:()=>i.Navigate,NavigationType:()=>o.Action,Outlet:()=>i.Outlet,Route:()=>i.Route,Router:()=>i.Router,RouterProvider:()=>R,Routes:()=>i.Routes,ScrollRestoration:()=>U,UNSAFE_DataRouterContext:()=>i.UNSAFE_DataRouterContext,UNSAFE_DataRouterStateContext:()=>i.UNSAFE_DataRouterStateContext,UNSAFE_ErrorResponseImpl:()=>o.UNSAFE_ErrorResponseImpl,UNSAFE_FetchersContext:()=>O,UNSAFE_LocationContext:()=>i.UNSAFE_LocationContext,UNSAFE_NavigationContext:()=>i.UNSAFE_NavigationContext,UNSAFE_RouteContext:()=>i.UNSAFE_RouteContext,UNSAFE_ViewTransitionContext:()=>w,UNSAFE_useRouteId:()=>i.UNSAFE_useRouteId,UNSAFE_useScrollRestoration:()=>te,createBrowserRouter:()=>b,createHashRouter:()=>_,createMemoryRouter:()=>i.createMemoryRouter,createPath:()=>o.createPath,createRoutesFromChildren:()=>i.createRoutesFromChildren,createRoutesFromElements:()=>i.createRoutesFromElements,createSearchParams:()=>f,defer:()=>o.defer,generatePath:()=>o.generatePath,isRouteErrorResponse:()=>o.isRouteErrorResponse,json:()=>o.json,matchPath:()=>o.matchPath,matchRoutes:()=>o.matchRoutes,parsePath:()=>o.parsePath,redirect:()=>o.redirect,redirectDocument:()=>o.redirectDocument,renderMatches:()=>i.renderMatches,resolvePath:()=>o.resolvePath,unstable_HistoryRouter:()=>N,unstable_usePrompt:()=>ne,unstable_useViewTransitionState:()=>ie,useActionData:()=>i.useActionData,useAsyncError:()=>i.useAsyncError,useAsyncValue:()=>i.useAsyncValue,useBeforeUnload:()=>re,useBlocker:()=>i.useBlocker,useFetcher:()=>X,useFetchers:()=>J,useFormAction:()=>Q,useHref:()=>i.useHref,useInRouterContext:()=>i.useInRouterContext,useLinkClickHandler:()=>V,useLoaderData:()=>i.useLoaderData,useLocation:()=>i.useLocation,useMatch:()=>i.useMatch,useMatches:()=>i.useMatches,useNavigate:()=>i.useNavigate,useNavigation:()=>i.useNavigation,useNavigationType:()=>i.useNavigationType,useOutlet:()=>i.useOutlet,useOutletContext:()=>i.useOutletContext,useParams:()=>i.useParams,useResolvedPath:()=>i.useResolvedPath,useRevalidator:()=>i.useRevalidator,useRouteError:()=>i.useRouteError,useRouteLoaderData:()=>i.useRouteLoaderData,useRoutes:()=>i.useRoutes,useSearchParams:()=>G,useSubmit:()=>Y});var n=r(270),i=r(581),o=r(582);
/**
 * React Router DOM v6.23.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function a(){return a=Object.assign?Object.assign.bind():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.apply(this,arguments)}function s(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}const u="get",c="application/x-www-form-urlencoded";function l(e){return null!=e&&"string"==typeof e.tagName}function f(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}let p=null;const d=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function h(e){return null==e||d.has(e)?e:null}function m(e,t){let r,n,i,a,s;if(l(f=e)&&"form"===f.tagName.toLowerCase()){let s=e.getAttribute("action");n=s?(0,o.stripBasename)(s,t):null,r=e.getAttribute("method")||u,i=h(e.getAttribute("enctype"))||c,a=new FormData(e)}else if(function(e){return l(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return l(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(n=l?(0,o.stripBasename)(l,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||u,i=h(e.getAttribute("formenctype"))||h(s.getAttribute("enctype"))||c,a=new FormData(s,e),!function(){if(null===p)try{new FormData(document.createElement("form"),0),p=!1}catch(e){p=!0}return p}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";a.append(e+"x","0"),a.append(e+"y","0")}else t&&a.append(t,n)}}else{if(l(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=u,n=null,i=c,s=e}var f;return a&&"text/plain"===i&&(s=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:s}}const g=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],y=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],v=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function b(e,t){return(0,o.createRouter)({basename:null==t?void 0:t.basename,future:a({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.createBrowserHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||S(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,window:null==t?void 0:t.window}).initialize()}function _(e,t){return(0,o.createRouter)({basename:null==t?void 0:t.basename,future:a({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.createHashHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||S(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,window:null==t?void 0:t.window}).initialize()}function S(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=a({},t,{errors:E(t.errors)})),t}function E(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new o.UNSAFE_ErrorResponseImpl(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let i=new t(n.message);i.stack="",r[e]=i}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const w=n.createContext({isTransitioning:!1});const O=n.createContext(new Map);const x=n.startTransition,T=n.flushSync,k=n.useId;function C(e){T?T(e):e()}class I{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function R(e){let{fallbackElement:t,router:r,future:o}=e,[a,s]=n.useState(r.state),[u,c]=n.useState(),[l,f]=n.useState({isTransitioning:!1}),[p,d]=n.useState(),[h,m]=n.useState(),[g,y]=n.useState(),v=n.useRef(new Map),{v7_startTransition:b}=o||{},_=n.useCallback((e=>{b?function(e){x?x(e):e()}(e):e()}),[b]),S=n.useCallback(((e,t)=>{let{deletedFetchers:n,unstable_flushSync:i,unstable_viewTransitionOpts:o}=t;n.forEach((e=>v.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&v.current.set(t,e.data)}));let a=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(o&&!a){if(i){C((()=>{h&&(p&&p.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=r.window.document.startViewTransition((()=>{C((()=>s(e)))}));return t.finished.finally((()=>{C((()=>{d(void 0),m(void 0),c(void 0),f({isTransitioning:!1})}))})),void C((()=>m(t)))}h?(p&&p.resolve(),h.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(c(e),f({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else i?C((()=>s(e))):_((()=>s(e)))}),[r.window,h,p,v,_]);n.useLayoutEffect((()=>r.subscribe(S)),[r,S]),n.useEffect((()=>{l.isTransitioning&&!l.flushSync&&d(new I)}),[l]),n.useEffect((()=>{if(p&&u&&r.window){let e=u,t=p.promise,n=r.window.document.startViewTransition((async()=>{_((()=>s(e))),await t}));n.finished.finally((()=>{d(void 0),m(void 0),c(void 0),f({isTransitioning:!1})})),m(n)}}),[_,u,p,r.window]),n.useEffect((()=>{p&&u&&a.location.key===u.location.key&&p.resolve()}),[p,h,a.location,u]),n.useEffect((()=>{!l.isTransitioning&&g&&(c(g.state),f({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))}),[l.isTransitioning,g]),n.useEffect((()=>{}),[]);let E=n.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),T=r.basename||"/",k=n.useMemo((()=>({router:r,navigator:E,static:!1,basename:T})),[r,E,T]);return n.createElement(n.Fragment,null,n.createElement(i.UNSAFE_DataRouterContext.Provider,{value:k},n.createElement(i.UNSAFE_DataRouterStateContext.Provider,{value:a},n.createElement(O.Provider,{value:v.current},n.createElement(w.Provider,{value:l},n.createElement(i.Router,{basename:T,location:a.location,navigationType:a.historyAction,navigator:E,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?n.createElement(A,{routes:r.routes,future:r.future,state:a}):t))))),null)}function A(e){let{routes:t,future:r,state:n}=e;return(0,i.UNSAFE_useRoutesImpl)(t,void 0,n,r)}function P(e){let{basename:t,children:r,future:a,window:s}=e,u=n.useRef();null==u.current&&(u.current=(0,o.createBrowserHistory)({window:s,v5Compat:!0}));let c=u.current,[l,f]=n.useState({action:c.action,location:c.location}),{v7_startTransition:p}=a||{},d=n.useCallback((e=>{p&&x?x((()=>f(e))):f(e)}),[f,p]);return n.useLayoutEffect((()=>c.listen(d)),[c,d]),n.createElement(i.Router,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:c,future:a})}function D(e){let{basename:t,children:r,future:a,window:s}=e,u=n.useRef();null==u.current&&(u.current=(0,o.createHashHistory)({window:s,v5Compat:!0}));let c=u.current,[l,f]=n.useState({action:c.action,location:c.location}),{v7_startTransition:p}=a||{},d=n.useCallback((e=>{p&&x?x((()=>f(e))):f(e)}),[f,p]);return n.useLayoutEffect((()=>c.listen(d)),[c,d]),n.createElement(i.Router,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:c,future:a})}function N(e){let{basename:t,children:r,future:o,history:a}=e,[s,u]=n.useState({action:a.action,location:a.location}),{v7_startTransition:c}=o||{},l=n.useCallback((e=>{c&&x?x((()=>u(e))):u(e)}),[u,c]);return n.useLayoutEffect((()=>a.listen(l)),[a,l]),n.createElement(i.Router,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:o})}const M="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,L=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j=n.forwardRef((function(e,t){let r,{onClick:u,relative:c,reloadDocument:l,replace:f,state:p,target:d,to:h,preventScrollReset:m,unstable_viewTransition:y}=e,v=s(e,g),{basename:b}=n.useContext(i.UNSAFE_NavigationContext),_=!1;if("string"==typeof h&&L.test(h)&&(r=h,M))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),r=(0,o.stripBasename)(t.pathname,b);t.origin===e.origin&&null!=r?h=r+t.search+t.hash:_=!0}catch(e){}let S=(0,i.useHref)(h,{relative:c}),E=V(h,{replace:f,state:p,target:d,preventScrollReset:m,relative:c,unstable_viewTransition:y});return n.createElement("a",a({},v,{href:r||S,onClick:_||l?u:function(e){u&&u(e),e.defaultPrevented||E(e)},ref:t,target:d}))}));const B=n.forwardRef((function(e,t){let{"aria-current":r="page",caseSensitive:u=!1,className:c="",end:l=!1,style:f,to:p,unstable_viewTransition:d,children:h}=e,m=s(e,y),g=(0,i.useResolvedPath)(p,{relative:m.relative}),v=(0,i.useLocation)(),b=n.useContext(i.UNSAFE_DataRouterStateContext),{navigator:_,basename:S}=n.useContext(i.UNSAFE_NavigationContext),E=null!=b&&ie(g)&&!0===d,w=_.encodeLocation?_.encodeLocation(g).pathname:g.pathname,O=v.pathname,x=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;u||(O=O.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase()),x&&S&&(x=(0,o.stripBasename)(x,S)||x);const T="/"!==w&&w.endsWith("/")?w.length-1:w.length;let k,C=O===w||!l&&O.startsWith(w)&&"/"===O.charAt(T),I=null!=x&&(x===w||!l&&x.startsWith(w)&&"/"===x.charAt(w.length)),R={isActive:C,isPending:I,isTransitioning:E},A=C?r:void 0;k="function"==typeof c?c(R):[c,C?"active":null,I?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof f?f(R):f;return n.createElement(j,a({},m,{"aria-current":A,className:k,ref:t,style:P,to:p,unstable_viewTransition:d}),"function"==typeof h?h(R):h)}));const F=n.forwardRef(((e,t)=>{let{fetcherKey:r,navigate:i,reloadDocument:o,replace:c,state:l,method:f=u,action:p,onSubmit:d,relative:h,preventScrollReset:m,unstable_viewTransition:g}=e,y=s(e,v),b=Y(),_=Q(p,{relative:h}),S="get"===f.toLowerCase()?"get":"post";return n.createElement("form",a({ref:t,method:S,action:_,onSubmit:o?d:e=>{if(d&&d(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null==t?void 0:t.getAttribute("formmethod"))||f;b(t||e.currentTarget,{fetcherKey:r,method:n,navigate:i,replace:c,state:l,relative:h,preventScrollReset:m,unstable_viewTransition:g})}},y))}));function U(e){let{getKey:t,storageKey:r}=e;return te({getKey:t,storageKey:r}),null}var H,q;function z(e){let t=n.useContext(i.UNSAFE_DataRouterContext);return t||(0,o.UNSAFE_invariant)(!1),t}function W(e){let t=n.useContext(i.UNSAFE_DataRouterStateContext);return t||(0,o.UNSAFE_invariant)(!1),t}function V(e,t){let{target:r,replace:a,state:s,preventScrollReset:u,relative:c,unstable_viewTransition:l}=void 0===t?{}:t,f=(0,i.useNavigate)(),p=(0,i.useLocation)(),d=(0,i.useResolvedPath)(e,{relative:c});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==a?a:(0,o.createPath)(p)===(0,o.createPath)(d);f(e,{replace:r,state:s,preventScrollReset:u,relative:c,unstable_viewTransition:l})}}),[p,f,d,a,s,r,e,u,c,l])}function G(e){let t=n.useRef(f(e)),r=n.useRef(!1),o=(0,i.useLocation)(),a=n.useMemo((()=>function(e,t){let r=f(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(o.search,r.current?null:t.current)),[o.search]),s=(0,i.useNavigate)(),u=n.useCallback(((e,t)=>{const n=f("function"==typeof e?e(a):e);r.current=!0,s("?"+n,t)}),[s,a]);return[a,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(H||(H={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(q||(q={}));let $=0,K=()=>"__"+String(++$)+"__";function Y(){let{router:e}=z(H.UseSubmit),{basename:t}=n.useContext(i.UNSAFE_NavigationContext),r=(0,i.UNSAFE_useRouteId)();return n.useCallback((function(n,i){void 0===i&&(i={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:o,method:a,encType:s,formData:u,body:c}=m(n,t);if(!1===i.navigate){let t=i.fetcherKey||K();e.fetch(t,r,i.action||o,{preventScrollReset:i.preventScrollReset,formData:u,body:c,formMethod:i.method||a,formEncType:i.encType||s,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:u,body:c,formMethod:i.method||a,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:r,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})}),[e,t,r])}function Q(e,t){let{relative:r}=void 0===t?{}:t,{basename:s}=n.useContext(i.UNSAFE_NavigationContext),u=n.useContext(i.UNSAFE_RouteContext);u||(0,o.UNSAFE_invariant)(!1);let[c]=u.matches.slice(-1),l=a({},(0,i.useResolvedPath)(e||".",{relative:r})),f=(0,i.useLocation)();if(null==e){l.search=f.search;let e=new URLSearchParams(l.search);e.has("index")&&""===e.get("index")&&(e.delete("index"),l.search=e.toString()?"?"+e.toString():"")}return e&&"."!==e||!c.route.index||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),"/"!==s&&(l.pathname="/"===l.pathname?s:(0,o.joinPaths)([s,l.pathname])),(0,o.createPath)(l)}function X(e){var t;let{key:r}=void 0===e?{}:e,{router:s}=z(H.UseFetcher),u=W(q.UseFetcher),c=n.useContext(O),l=n.useContext(i.UNSAFE_RouteContext),f=null==(t=l.matches[l.matches.length-1])?void 0:t.route.id;c||(0,o.UNSAFE_invariant)(!1),l||(0,o.UNSAFE_invariant)(!1),null==f&&(0,o.UNSAFE_invariant)(!1);let p=k?k():"",[d,h]=n.useState(r||p);r&&r!==d?h(r):d||h(K()),n.useEffect((()=>(s.getFetcher(d),()=>{s.deleteFetcher(d)})),[s,d]);let m=n.useCallback(((e,t)=>{f||(0,o.UNSAFE_invariant)(!1),s.fetch(d,f,e,t)}),[d,f,s]),g=Y(),y=n.useCallback(((e,t)=>{g(e,a({},t,{navigate:!1,fetcherKey:d}))}),[d,g]),v=n.useMemo((()=>n.forwardRef(((e,t)=>n.createElement(F,a({},e,{navigate:!1,fetcherKey:d,ref:t}))))),[d]),b=u.fetchers.get(d)||o.IDLE_FETCHER,_=c.get(d);return n.useMemo((()=>a({Form:v,submit:y,load:m},b,{data:_})),[v,y,m,b,_])}function J(){let e=W(q.UseFetchers);return Array.from(e.fetchers.entries()).map((e=>{let[t,r]=e;return a({},r,{key:t})}))}const Z="react-router-scroll-positions";let ee={};function te(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:s}=z(H.UseScrollRestoration),{restoreScrollPosition:u,preventScrollReset:c}=W(q.UseScrollRestoration),{basename:l}=n.useContext(i.UNSAFE_NavigationContext),f=(0,i.useLocation)(),p=(0,i.useMatches)(),d=(0,i.useNavigation)();n.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:r}=t||{};n.useEffect((()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,r])}(n.useCallback((()=>{if("idle"===d.state){let e=(t?t(f,p):null)||f.key;ee[e]=window.scrollY}try{sessionStorage.setItem(r||Z,JSON.stringify(ee))}catch(e){}window.history.scrollRestoration="auto"}),[r,t,d.state,f,p])),"undefined"!=typeof document&&(n.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(r||Z);e&&(ee=JSON.parse(e))}catch(e){}}),[r]),n.useLayoutEffect((()=>{let e=t&&"/"!==l?(e,r)=>t(a({},e,{pathname:(0,o.stripBasename)(e.pathname,l)||e.pathname}),r):t,r=null==s?void 0:s.enableScrollRestoration(ee,(()=>window.scrollY),e);return()=>r&&r()}),[s,l,t]),n.useLayoutEffect((()=>{if(!1!==u)if("number"!=typeof u){if(f.hash){let e=document.getElementById(decodeURIComponent(f.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==c&&window.scrollTo(0,0)}else window.scrollTo(0,u)}),[f,u,c]))}function re(e,t){let{capture:r}=t||{};n.useEffect((()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}}),[e,r])}function ne(e){let{when:t,message:r}=e,o=(0,i.useBlocker)(t);n.useEffect((()=>{if("blocked"===o.state){window.confirm(r)?setTimeout(o.proceed,0):o.reset()}}),[o,r]),n.useEffect((()=>{"blocked"!==o.state||t||o.reset()}),[o,t])}function ie(e,t){void 0===t&&(t={});let r=n.useContext(w);null==r&&(0,o.UNSAFE_invariant)(!1);let{basename:a}=z(H.useViewTransitionState),s=(0,i.useResolvedPath)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let u=(0,o.stripBasename)(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=(0,o.stripBasename)(r.nextLocation.pathname,a)||r.nextLocation.pathname;return null!=(0,o.matchPath)(s.pathname,c)||null!=(0,o.matchPath)(s.pathname,u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbortedDeferredError:()=>i.AbortedDeferredError,Await:()=>oe,MemoryRouter:()=>Z,Navigate:()=>ee,NavigationType:()=>i.Action,Outlet:()=>te,Route:()=>re,Router:()=>ne,RouterProvider:()=>X,Routes:()=>ie,UNSAFE_DataRouterContext:()=>a,UNSAFE_DataRouterStateContext:()=>s,UNSAFE_LocationContext:()=>l,UNSAFE_NavigationContext:()=>c,UNSAFE_RouteContext:()=>f,UNSAFE_mapRouteProperties:()=>pe,UNSAFE_useRouteId:()=>j,UNSAFE_useRoutesImpl:()=>T,createMemoryRouter:()=>de,createPath:()=>i.createPath,createRoutesFromChildren:()=>le,createRoutesFromElements:()=>le,defer:()=>i.defer,generatePath:()=>i.generatePath,isRouteErrorResponse:()=>i.isRouteErrorResponse,json:()=>i.json,matchPath:()=>i.matchPath,matchRoutes:()=>i.matchRoutes,parsePath:()=>i.parsePath,redirect:()=>i.redirect,redirectDocument:()=>i.redirectDocument,renderMatches:()=>fe,resolvePath:()=>i.resolvePath,useActionData:()=>z,useAsyncError:()=>G,useAsyncValue:()=>V,useBlocker:()=>K,useHref:()=>d,useInRouterContext:()=>h,useLoaderData:()=>H,useLocation:()=>m,useMatch:()=>y,useMatches:()=>U,useNavigate:()=>b,useNavigation:()=>B,useNavigationType:()=>g,useOutlet:()=>E,useOutletContext:()=>S,useParams:()=>w,useResolvedPath:()=>O,useRevalidator:()=>F,useRouteError:()=>W,useRouteLoaderData:()=>q,useRoutes:()=>x});var n=r(270),i=r(582);
/**
 * React Router v6.23.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function o(){return o=Object.assign?Object.assign.bind():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},o.apply(this,arguments)}const a=n.createContext(null);const s=n.createContext(null);const u=n.createContext(null);const c=n.createContext(null);const l=n.createContext(null);const f=n.createContext({outlet:null,matches:[],isDataRoute:!1});const p=n.createContext(null);function d(e,t){let{relative:r}=void 0===t?{}:t;h()||(0,i.UNSAFE_invariant)(!1);let{basename:o,navigator:a}=n.useContext(c),{hash:s,pathname:u,search:l}=O(e,{relative:r}),f=u;return"/"!==o&&(f="/"===u?o:(0,i.joinPaths)([o,u])),a.createHref({pathname:f,search:l,hash:s})}function h(){return null!=n.useContext(l)}function m(){return h()||(0,i.UNSAFE_invariant)(!1),n.useContext(l).location}function g(){return n.useContext(l).navigationType}function y(e){h()||(0,i.UNSAFE_invariant)(!1);let{pathname:t}=m();return n.useMemo((()=>(0,i.matchPath)(e,t)),[t,e])}function v(e){n.useContext(c).static||n.useLayoutEffect(e)}function b(){let{isDataRoute:e}=n.useContext(f);return e?function(){let{router:e}=N(P.UseNavigateStable),t=L(D.UseNavigateStable),r=n.useRef(!1);return v((()=>{r.current=!0})),n.useCallback((function(n,i){void 0===i&&(i={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,o({fromRouteId:t},i)))}),[e,t])}():function(){h()||(0,i.UNSAFE_invariant)(!1);let e=n.useContext(a),{basename:t,future:r,navigator:o}=n.useContext(c),{matches:s}=n.useContext(f),{pathname:u}=m(),l=JSON.stringify((0,i.UNSAFE_getResolveToMatches)(s,r.v7_relativeSplatPath)),p=n.useRef(!1);return v((()=>{p.current=!0})),n.useCallback((function(r,n){if(void 0===n&&(n={}),!p.current)return;if("number"==typeof r)return void o.go(r);let a=(0,i.resolveTo)(r,JSON.parse(l),u,"path"===n.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,i.joinPaths)([t,a.pathname])),(n.replace?o.replace:o.push)(a,n.state,n)}),[t,o,l,u,e])}()}const _=n.createContext(null);function S(){return n.useContext(_)}function E(e){let t=n.useContext(f).outlet;return t?n.createElement(_.Provider,{value:e},t):t}function w(){let{matches:e}=n.useContext(f),t=e[e.length-1];return t?t.params:{}}function O(e,t){let{relative:r}=void 0===t?{}:t,{future:o}=n.useContext(c),{matches:a}=n.useContext(f),{pathname:s}=m(),u=JSON.stringify((0,i.UNSAFE_getResolveToMatches)(a,o.v7_relativeSplatPath));return n.useMemo((()=>(0,i.resolveTo)(e,JSON.parse(u),s,"path"===r)),[e,u,s,r])}function x(e,t){return T(e,t)}function T(e,t,r,a){h()||(0,i.UNSAFE_invariant)(!1);let{navigator:s}=n.useContext(c),{matches:u}=n.useContext(f),p=u[u.length-1],d=p?p.params:{},g=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let y,v=m();if(t){var b;let e="string"==typeof t?(0,i.parsePath)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,i.UNSAFE_invariant)(!1),y=e}else y=v;let _=y.pathname||"/",S=_;if("/"!==g){let e=g.replace(/^\//,"").split("/");S="/"+_.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=(0,i.matchRoutes)(e,{pathname:S});let w=A(E&&E.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,i.joinPaths)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,i.joinPaths)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),u,r,a);return t&&w?n.createElement(l.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:i.Action.Pop}},w):w}function k(){let e=W(),t=(0,i.isRouteErrorResponse)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:a},r):null,null)}const C=n.createElement(k,null);class I extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(f.Provider,{value:this.props.routeContext},n.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function R(e){let{routeContext:t,match:r,children:i}=e,o=n.useContext(a);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(f.Provider,{value:t},i)}function A(e,t,r,o){var a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var s;if(null==(s=r)||!s.errors)return null;e=r.matches}let u=e,c=null==(a=r)?void 0:a.errors;if(null!=c){let e=u.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,i.UNSAFE_invariant)(!1),u=u.slice(0,Math.min(u.length,e+1))}let l=!1,f=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<u.length;e++){let t=u[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(f=e),t.route.id){let{loaderData:e,errors:n}=r,i=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||i){l=!0,u=f>=0?u.slice(0,f+1):[u[0]];break}}}return u.reduceRight(((e,i,o)=>{let a,s=!1,p=null,d=null;var h;r&&(a=c&&i.route.id?c[i.route.id]:void 0,p=i.route.errorElement||C,l&&(f<0&&0===o?(h="route-fallback",!1||Y[h]||(Y[h]=!0),s=!0,d=null):f===o&&(s=!0,d=i.route.hydrateFallbackElement||null)));let m=t.concat(u.slice(0,o+1)),g=()=>{let t;return t=a?p:s?d:i.route.Component?n.createElement(i.route.Component,null):i.route.element?i.route.element:e,n.createElement(R,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?n.createElement(I,{location:r.location,revalidation:r.revalidation,component:p,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var P=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(P||{}),D=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(D||{});function N(e){let t=n.useContext(a);return t||(0,i.UNSAFE_invariant)(!1),t}function M(e){let t=n.useContext(s);return t||(0,i.UNSAFE_invariant)(!1),t}function L(e){let t=function(e){let t=n.useContext(f);return t||(0,i.UNSAFE_invariant)(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||(0,i.UNSAFE_invariant)(!1),r.route.id}function j(){return L(D.UseRouteId)}function B(){return M(D.UseNavigation).navigation}function F(){let e=N(P.UseRevalidator),t=M(D.UseRevalidator);return n.useMemo((()=>({revalidate:e.router.revalidate,state:t.revalidation})),[e.router.revalidate,t.revalidation])}function U(){let{matches:e,loaderData:t}=M(D.UseMatches);return n.useMemo((()=>e.map((e=>(0,i.UNSAFE_convertRouteMatchToUiMatch)(e,t)))),[e,t])}function H(){let e=M(D.UseLoaderData),t=L(D.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function q(e){return M(D.UseRouteLoaderData).loaderData[e]}function z(){let e=M(D.UseActionData),t=L(D.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function W(){var e;let t=n.useContext(p),r=M(D.UseRouteError),i=L(D.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[i]}function V(){let e=n.useContext(u);return null==e?void 0:e._data}function G(){let e=n.useContext(u);return null==e?void 0:e._error}let $=0;function K(e){let{router:t,basename:r}=N(P.UseBlocker),a=M(D.UseBlocker),[s,u]=n.useState(""),c=n.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:s}=t;return e({currentLocation:o({},n,{pathname:(0,i.stripBasename)(n.pathname,r)||n.pathname}),nextLocation:o({},a,{pathname:(0,i.stripBasename)(a.pathname,r)||a.pathname}),historyAction:s})}),[r,e]);return n.useEffect((()=>{let e=String(++$);return u(e),()=>t.deleteBlocker(e)}),[t]),n.useEffect((()=>{""!==s&&t.getBlocker(s,c)}),[t,s,c]),s&&a.blockers.has(s)?a.blockers.get(s):i.IDLE_BLOCKER}const Y={};const Q=n.startTransition;function X(e){let{fallbackElement:t,router:r,future:i}=e,[o,u]=n.useState(r.state),{v7_startTransition:c}=i||{},l=n.useCallback((e=>{c&&Q?Q((()=>u(e))):u(e)}),[u,c]);n.useLayoutEffect((()=>r.subscribe(l)),[r,l]),n.useEffect((()=>{}),[]);let f=n.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),p=r.basename||"/",d=n.useMemo((()=>({router:r,navigator:f,static:!1,basename:p})),[r,f,p]);return n.createElement(n.Fragment,null,n.createElement(a.Provider,{value:d},n.createElement(s.Provider,{value:o},n.createElement(ne,{basename:p,location:o.location,navigationType:o.historyAction,navigator:f,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},o.initialized||r.future.v7_partialHydration?n.createElement(J,{routes:r.routes,future:r.future,state:o}):t))),null)}function J(e){let{routes:t,future:r,state:n}=e;return T(t,void 0,n,r)}function Z(e){let{basename:t,children:r,initialEntries:o,initialIndex:a,future:s}=e,u=n.useRef();null==u.current&&(u.current=(0,i.createMemoryHistory)({initialEntries:o,initialIndex:a,v5Compat:!0}));let c=u.current,[l,f]=n.useState({action:c.action,location:c.location}),{v7_startTransition:p}=s||{},d=n.useCallback((e=>{p&&Q?Q((()=>f(e))):f(e)}),[f,p]);return n.useLayoutEffect((()=>c.listen(d)),[c,d]),n.createElement(ne,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:c,future:s})}function ee(e){let{to:t,replace:r,state:o,relative:a}=e;h()||(0,i.UNSAFE_invariant)(!1);let{future:s,static:u}=n.useContext(c),{matches:l}=n.useContext(f),{pathname:p}=m(),d=b(),g=(0,i.resolveTo)(t,(0,i.UNSAFE_getResolveToMatches)(l,s.v7_relativeSplatPath),p,"path"===a),y=JSON.stringify(g);return n.useEffect((()=>d(JSON.parse(y),{replace:r,state:o,relative:a})),[d,y,a,r,o]),null}function te(e){return E(e.context)}function re(e){(0,i.UNSAFE_invariant)(!1)}function ne(e){let{basename:t="/",children:r=null,location:a,navigationType:s=i.Action.Pop,navigator:u,static:f=!1,future:p}=e;h()&&(0,i.UNSAFE_invariant)(!1);let d=t.replace(/^\/*/,"/"),m=n.useMemo((()=>({basename:d,navigator:u,static:f,future:o({v7_relativeSplatPath:!1},p)})),[d,p,u,f]);"string"==typeof a&&(a=(0,i.parsePath)(a));let{pathname:g="/",search:y="",hash:v="",state:b=null,key:_="default"}=a,S=n.useMemo((()=>{let e=(0,i.stripBasename)(g,d);return null==e?null:{location:{pathname:e,search:y,hash:v,state:b,key:_},navigationType:s}}),[d,g,y,v,b,_,s]);return null==S?null:n.createElement(c.Provider,{value:m},n.createElement(l.Provider,{children:r,value:S}))}function ie(e){let{children:t,location:r}=e;return x(le(t),r)}function oe(e){let{children:t,errorElement:r,resolve:i}=e;return n.createElement(ue,{resolve:i,errorElement:r},n.createElement(ce,null,t))}var ae=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(ae||{});const se=new Promise((()=>{}));class ue extends n.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,o=null,a=ae.pending;if(r instanceof Promise)if(this.state.error){a=ae.error;let e=this.state.error;o=Promise.reject().catch((()=>{})),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>e})}else r._tracked?(o=r,a="_error"in o?ae.error:"_data"in o?ae.success:ae.pending):(a=ae.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),o=r.then((e=>Object.defineProperty(r,"_data",{get:()=>e})),(e=>Object.defineProperty(r,"_error",{get:()=>e}))));else a=ae.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>r});if(a===ae.error&&o._error instanceof i.AbortedDeferredError)throw se;if(a===ae.error&&!t)throw o._error;if(a===ae.error)return n.createElement(u.Provider,{value:o,children:t});if(a===ae.success)return n.createElement(u.Provider,{value:o,children:e});throw o}}function ce(e){let{children:t}=e,r=V(),i="function"==typeof t?t(r):t;return n.createElement(n.Fragment,null,i)}function le(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,o)=>{if(!n.isValidElement(e))return;let a=[...t,o];if(e.type===n.Fragment)return void r.push.apply(r,le(e.props.children,a));e.type!==re&&(0,i.UNSAFE_invariant)(!1),e.props.index&&e.props.children&&(0,i.UNSAFE_invariant)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=le(e.props.children,a)),r.push(s)})),r}function fe(e){return A(e)}function pe(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:n.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function de(e,t){return(0,i.createRouter)({basename:null==t?void 0:t.basename,future:o({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,i.createMemoryHistory)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:pe,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy}).initialize()}},(e,t,r)=>{"use strict";
/**
 * @remix-run/router v1.16.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
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)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var i;r.r(t),r.d(t,{AbortedDeferredError:()=>$,Action:()=>i,IDLE_BLOCKER:()=>ce,IDLE_FETCHER:()=>ue,IDLE_NAVIGATION:()=>se,UNSAFE_DEFERRED_SYMBOL:()=>he,UNSAFE_DeferredData:()=>K,UNSAFE_ErrorResponseImpl:()=>Z,UNSAFE_convertRouteMatchToUiMatch:()=>_,UNSAFE_convertRoutesToDataRoutes:()=>v,UNSAFE_getResolveToMatches:()=>F,UNSAFE_invariant:()=>c,UNSAFE_warning:()=>l,createBrowserHistory:()=>s,createHashHistory:()=>u,createMemoryHistory:()=>a,createPath:()=>d,createRouter:()=>de,createStaticHandler:()=>me,defer:()=>Q,generatePath:()=>P,getStaticContextFromError:()=>ge,getToPathname:()=>H,isDeferredData:()=>Ge,isRouteErrorResponse:()=>ee,joinPaths:()=>q,json:()=>G,matchPath:()=>D,matchRoutes:()=>b,normalizePathname:()=>z,parsePath:()=>h,redirect:()=>X,redirectDocument:()=>J,resolvePath:()=>L,resolveTo:()=>U,stripBasename:()=>M}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function a(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:o=!1}=e;t=r.map(((e,t)=>m(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=c(null==n?t.length-1:n),s=i.Pop,u=null;function c(e){return Math.min(Math.max(e,0),t.length-1)}function f(){return t[a]}function m(e,r,n){void 0===r&&(r=null);let i=p(t?f().pathname:"/",e,r,n);return l("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),i}function g(e){return"string"==typeof e?e:d(e)}return{get index(){return a},get action(){return s},get location(){return f()},createHref:g,createURL:e=>new URL(g(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?h(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){s=i.Push;let n=m(e,r);a+=1,t.splice(a,t.length,n),o&&u&&u({action:s,location:n,delta:1})},replace(e,r){s=i.Replace;let n=m(e,r);t[a]=n,o&&u&&u({action:s,location:n,delta:0})},go(e){s=i.Pop;let r=c(a+e),n=t[r];a=r,u&&u({action:s,location:n,delta:e})},listen:e=>(u=e,()=>{u=null})}}function s(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:r,search:n,hash:i}=e.location;return p("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:d(t)}),null,e)}function u(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:r="/",search:n="",hash:i=""}=h(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),p("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:d(t))}),(function(e,t){l("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function c(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,i){return void 0===r&&(r=null),n({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:r,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function h(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function m(e,t,r,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:u=!1}=a,l=s.history,h=i.Pop,m=null,g=y();function y(){return(l.state||{idx:null}).idx}function v(){h=i.Pop;let e=y(),t=null==e?null:e-g;g=e,m&&m({action:h,location:_.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:d(e);return r=r.replace(/ $/,"%20"),c(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==g&&(g=0,l.replaceState(n({},l.state,{idx:g}),""));let _={get action(){return h},get location(){return e(s,l)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(o,v),m=e,()=>{s.removeEventListener(o,v),m=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=i.Push;let n=p(_.location,e,t);r&&r(n,e),g=y()+1;let o=f(n,g),a=_.createHref(n);try{l.pushState(o,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(a)}u&&m&&m({action:h,location:_.location,delta:1})},replace:function(e,t){h=i.Replace;let n=p(_.location,e,t);r&&r(n,e),g=y();let o=f(n,g),a=_.createHref(n);l.replaceState(o,"",a),u&&m&&m({action:h,location:_.location,delta:0})},go:e=>l.go(e)};return _}var g;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));const y=new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,r,i){return void 0===r&&(r=[]),void 0===i&&(i={}),e.map(((e,o)=>{let a=[...r,o],s="string"==typeof e.id?e.id:a.join("-");if(c(!0!==e.index||!e.children,"Cannot specify children on an index route"),c(!i[s],'Found a route id collision on id "'+s+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=n({},e,t(e),{id:s});return i[s]=r,r}{let r=n({},e,t(e),{id:s,children:void 0});return i[s]=r,e.children&&(r.children=v(e.children,t,a,i)),r}}))}function b(e,t,r){void 0===r&&(r="/");let n=M(("string"==typeof t?h(t):t).pathname||"/",r);if(null==n)return null;let i=S(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let e=0;null==o&&e<i.length;++e){let t=N(n);o=A(i[e],t)}return o}function _(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function S(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(c(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=q([n,a.relativePath]),u=r.concat(a);e.children&&e.children.length>0&&(c(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),S(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:R(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of E(e.path))i(e,t,r);else i(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let a=E(n.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const w=/^:[\w-]+$/,O=3,x=2,T=1,k=10,C=-2,I=e=>"*"===e;function R(e,t){let r=e.split("/"),n=r.length;return r.some(I)&&(n+=C),t&&(n+=x),r.filter((e=>!I(e))).reduce(((e,t)=>e+(w.test(t)?O:""===t?T:k)),n)}function A(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let e=0;e<r.length;++e){let a=r[e],s=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=D({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},u);if(!c)return null;Object.assign(n,c.params);let l=a.route;o.push({params:n,pathname:q([i,c.pathname]),pathnameBase:z(q([i,c.pathnameBase])),route:l}),"/"!==c.pathnameBase&&(i=q([i,c.pathnameBase]))}return o}function P(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(l(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",i=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map(((e,r,n)=>{if(r===n.length-1&&"*"===e){return i(t["*"])}const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return c("?"===r||null!=n,'Missing ":'+e+'" param'),i(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function D(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:i}=t;if("*"===n){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const u=s[r];return e[n]=i&&!u?void 0:(u||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function N(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function L(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"==typeof e?h(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:W(n),hash:V(i)}}function j(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function B(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function F(e,t){let r=B(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function U(e,t,r,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=h(e):(o=n({},e),c(!o.pathname||!o.pathname.includes("?"),j("?","pathname","search",o)),c(!o.pathname||!o.pathname.includes("#"),j("#","pathname","hash",o)),c(!o.search||!o.search.includes("#"),j("#","search","hash",o)));let a,s=""===e||""===o.pathname,u=s?"/":o.pathname;if(null==u)a=r;else{let e=t.length-1;if(!i&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=L(o,a),f=u&&"/"!==u&&u.endsWith("/"),p=(s||"."===u)&&r.endsWith("/");return l.pathname.endsWith("/")||!f&&!p||(l.pathname+="/"),l}function H(e){return""===e||""===e.pathname?"/":"string"==typeof e?h(e).pathname:e.pathname}const q=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",G=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,i=new Headers(r.headers);return i.has("Content-Type")||i.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),n({},r,{headers:i}))};class $ extends Error{}class K{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],c(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>r=t)),this.controller=new AbortController;let n=()=>r(new $("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(r,e,void 0,t)),(t=>this.onSettle(r,e,t)));return r.catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof $)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach((r=>r(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise((t=>{this.subscribe((n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return c(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:Y(n)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Y(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const Q=function(e,t){return void 0===t&&(t={}),new K(e,"number"==typeof t?{status:t}:t)},X=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let i=new Headers(r.headers);return i.set("Location",e),new Response(null,n({},r,{headers:i}))},J=(e,t)=>{let r=X(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r};class Z{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const te=["post","put","patch","delete"],re=new Set(te),ne=["get",...te],ie=new Set(ne),oe=new Set([301,302,303,307,308]),ae=new Set([307,308]),se={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ue={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ce={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},le=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),pe="remix-router-transitions";function de(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,o=!r;let a;if(c(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=fe;let s,u,f={},d=v(e.routes,a,void 0,f),h=e.basename||"/",m=e.unstable_dataStrategy||xe,y=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),S=null,E=new Set,w=null,O=null,x=null,T=null!=e.hydrationData,k=b(d,e.history.location,h),C=null;if(null==k){let t=Fe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Be(d);k=r,C={[n.id]:t}}let I,R=k.some((e=>e.route.lazy)),A=k.some((e=>e.route.loader));if(R)u=!1;else if(A)if(y.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=k.findIndex((e=>void 0!==r[e.route.id]));u=k.slice(0,e+1).every(n)}else u=k.every(n)}else u=null!=e.hydrationData;else u=!0;let P,D={historyAction:e.history.action,location:e.history.location,matches:k,initialized:u,navigation:se,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},N=i.Pop,L=!1,j=!1,B=new Map,F=null,U=!1,H=!1,q=[],z=[],W=new Map,V=0,G=-1,$=new Map,K=new Set,Y=new Map,Q=new Map,X=new Set,J=new Map,Z=new Map,ee=!1;function te(e,t){void 0===t&&(t={}),D=n({},D,e);let r=[],i=[];y.v7_fetcherPersist&&D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(X.has(t)?i.push(t):r.push(t))})),[...E].forEach((e=>e(D,{deletedFetchers:i,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),y.v7_fetcherPersist&&(r.forEach((e=>D.fetchers.delete(e))),i.forEach((e=>_e(e))))}function re(t,r,o){var a,u;let c,{flushSync:l}=void 0===o?{}:o,f=null!=D.actionData&&null!=D.navigation.formMethod&&Ye(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);c=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:f?D.actionData:null;let p=r.loaderData?Me(D.loaderData,r.loaderData,r.matches||[],r.errors):D.loaderData,h=D.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,ce))));let m,g=!0===L||null!=D.navigation.formMethod&&Ye(D.navigation.formMethod)&&!0!==(null==(u=t.state)?void 0:u._isRedirect);if(s&&(d=s,s=void 0),U||N===i.Pop||(N===i.Push?e.history.push(t,t.state):N===i.Replace&&e.history.replace(t,t.state)),N===i.Pop){let e=B.get(D.location.pathname);e&&e.has(t.pathname)?m={currentLocation:D.location,nextLocation:t}:B.has(t.pathname)&&(m={currentLocation:t,nextLocation:D.location})}else if(j){let e=B.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),B.set(D.location.pathname,e)),m={currentLocation:D.location,nextLocation:t}}te(n({},r,{actionData:c,loaderData:p,historyAction:N,location:t,initialized:!0,navigation:se,revalidation:"idle",restoreScrollPosition:Ke(t,r.matches||D.matches),preventScrollReset:g,blockers:h}),{viewTransitionOpts:m,flushSync:!0===l}),N=i.Pop,L=!1,j=!1,U=!1,H=!1,q=[],z=[]}async function ne(t,r,o){P&&P.abort(),P=null,N=t,U=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(w&&x){let r=$e(e,t);w[r]=x()}}(D.location,D.matches),L=!0===(o&&o.preventScrollReset),j=!0===(o&&o.enableViewTransition);let a=s||d,u=o&&o.overrideNavigation,c=b(a,r,h),l=!0===(o&&o.flushSync);if(!c){let e=Fe(404,{pathname:r.pathname}),{matches:t,route:n}=Be(a);return Ge(),void re(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:l})}if(D.initialized&&!H&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(D.location,r)&&!(o&&o.submission&&Ye(o.submission.formMethod)))return void re(r,{matches:c},{flushSync:l});P=new AbortController;let f,p=Re(e.history,r,P.signal,o&&o.submission);if(o&&o.pendingError)f=[je(c).route.id,{type:g.error,error:o.pendingError}];else if(o&&o.submission&&Ye(o.submission.formMethod)){let t=await async function(e,t,r,n,o){void 0===o&&(o={});he();let a,s=function(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}(t,r);te({navigation:s},{flushSync:!0===o.flushSync});let u=Ze(n,t);if(u.route.action||u.route.lazy){if(a=(await oe("action",e,[u],n))[0],e.signal.aborted)return{shortCircuited:!0}}else a={type:g.error,error:Fe(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(Ve(a)){let t;if(o&&null!=o.replace)t=o.replace;else{t=Ie(a.response.headers.get("Location"),new URL(e.url),h)===D.location.pathname+D.location.search}return await ie(e,a,{submission:r,replace:t}),{shortCircuited:!0}}if(ze(a))throw Fe(400,{type:"defer-action"});if(We(a)){let e=je(n,u.route.id);return!0!==(o&&o.replace)&&(N=i.Push),{pendingActionResult:[e.route.id,a]}}return{pendingActionResult:[u.route.id,a]}}(p,r,o.submission,c,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;f=t.pendingActionResult,u=tt(r,o.submission),l=!1,p=Re(e.history,p.url,p.signal)}let{shortCircuited:m,loaderData:v,errors:_}=await async function(t,r,i,o,a,u,c,l,f,p){let m=o||tt(r,a),g=a||u||et(m),v=s||d,[b,_]=Se(e.history,D,i,g,r,y.v7_partialHydration&&!0===l,y.unstable_skipActionErrorRevalidation,H,q,z,X,Y,K,v,h,p);if(Ge((e=>!(i&&i.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e)))),G=++V,0===b.length&&0===_.length){let e=Oe();return re(r,n({matches:i,loaderData:{},errors:p&&We(p[1])?{[p[0]]:p[1].error}:null},Le(p),e?{fetchers:new Map(D.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(!(U||y.v7_partialHydration&&l)){let e;_.forEach((e=>{let t=D.fetchers.get(e.key),r=rt(void 0,t?t.data:void 0);D.fetchers.set(e.key,r)})),p&&!We(p[1])?e={[p[0]]:p[1].data}:D.actionData&&(e=0===Object.keys(D.actionData).length?null:D.actionData),te(n({navigation:m},void 0!==e?{actionData:e}:{},_.length>0?{fetchers:new Map(D.fetchers)}:{}),{flushSync:f})}_.forEach((e=>{W.has(e.key)&&Ee(e.key),e.controller&&W.set(e.key,e.controller)}));let S=()=>_.forEach((e=>Ee(e.key)));P&&P.signal.addEventListener("abort",S);let{loaderResults:E,fetcherResults:w}=await de(D.matches,i,b,_,t);if(t.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",S);_.forEach((e=>W.delete(e.key)));let O=Ue([...E,...w]);if(O){if(O.idx>=b.length){let e=_[O.idx-b.length].key;K.add(e)}return await ie(t,O.result,{replace:c}),{shortCircuited:!0}}let{loaderData:x,errors:T}=Ne(D,i,b,E,p,_,w,J);J.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&J.delete(t)}))})),y.v7_partialHydration&&l&&D.errors&&Object.entries(D.errors).filter((e=>{let[t]=e;return!b.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;T=Object.assign(T||{},{[t]:r})}));let k=Oe(),C=Ae(G),I=k||C||_.length>0;return n({loaderData:x,errors:T},I?{fetchers:new Map(D.fetchers)}:{})}(p,r,c,u,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,f);m||(P=null,re(r,n({matches:c},Le(f),{loaderData:v,errors:_})))}async function ie(o,a,s){let{submission:u,fetcherSubmission:l,replace:f}=void 0===s?{}:s;a.response.headers.has("X-Remix-Revalidate")&&(H=!0);let d=a.response.headers.get("Location");c(d,"Expected a Location header on the redirect Response"),d=Ie(d,new URL(o.url),h);let m=p(D.location,d,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(le.test(d)){const n=e.history.createURL(d);r=n.origin!==t.location.origin||null==M(n.pathname,h)}if(r)return void(f?t.location.replace(d):t.location.assign(d))}P=null;let g=!0===f?i.Replace:i.Push,{formMethod:y,formAction:v,formEncType:b}=D.navigation;!u&&!l&&y&&v&&b&&(u=et(D.navigation));let _=u||l;if(ae.has(a.response.status)&&_&&Ye(_.formMethod))await ne(g,m,{submission:n({},_,{formAction:d}),preventScrollReset:L});else{let e=tt(m,u);await ne(g,m,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:L})}}async function oe(e,t,r,n){try{let i=await Te(m,e,t,r,n,f,a);return await Promise.all(i.map(((e,i)=>{if(qe(e)){let o=e.result;return{type:g.redirect,response:Ce(o,t,r[i].route.id,n,h,y.v7_relativeSplatPath)}}return ke(e)})))}catch(e){return r.map((()=>({type:g.error,error:e})))}}async function de(t,r,n,i,o){let[a,...s]=await Promise.all([n.length?oe("loader",o,n,r):[],...i.map((t=>{if(t.matches&&t.match&&t.controller){return oe("loader",Re(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0]))}return Promise.resolve({type:g.error,error:Fe(404,{pathname:t.path})})}))]);return await Promise.all([Qe(t,n,a,a.map((()=>o.signal)),!1,D.loaderData),Qe(t,i.map((e=>e.match)),s,i.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:a,fetcherResults:s}}function he(){H=!0,q.push(...Ge()),Y.forEach(((e,t)=>{W.has(t)&&(z.push(t),Ee(t))}))}function me(e,t,r){void 0===r&&(r={}),D.fetchers.set(e,t),te({fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function ge(e,t,r,n){void 0===n&&(n={});let i=je(D.matches,t);_e(e),te({errors:{[i.route.id]:r},fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function ye(e){return y.v7_fetcherPersist&&(Q.set(e,(Q.get(e)||0)+1),X.has(e)&&X.delete(e)),D.fetchers.get(e)||ue}function _e(e){let t=D.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&$.has(e)||Ee(e),Y.delete(e),$.delete(e),K.delete(e),X.delete(e),D.fetchers.delete(e)}function Ee(e){let t=W.get(e);c(t,"Expected fetch controller: "+e),t.abort(),W.delete(e)}function we(e){for(let t of e){let e=nt(ye(t).data);D.fetchers.set(t,e)}}function Oe(){let e=[],t=!1;for(let r of K){let n=D.fetchers.get(r);c(n,"Expected fetcher: "+r),"loading"===n.state&&(K.delete(r),e.push(r),t=!0)}return we(e),t}function Ae(e){let t=[];for(let[r,n]of $)if(n<e){let e=D.fetchers.get(r);c(e,"Expected fetcher: "+r),"loading"===e.state&&(Ee(r),$.delete(r),t.push(r))}return we(t),t.length>0}function Pe(e){D.blockers.delete(e),Z.delete(e)}function De(e,t){let r=D.blockers.get(e)||ce;c("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(D.blockers);n.set(e,t),te({blockers:n})}function He(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===Z.size)return;Z.size>1&&l(!1,"A router only supports one blocker at a time");let i=Array.from(Z.entries()),[o,a]=i[i.length-1],s=D.blockers.get(o);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function Ge(e){let t=[];return J.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),J.delete(n))})),t}function $e(e,t){if(O){return O(e,t.map((e=>_(e,D.loaderData))))||e.key}return e.key}function Ke(e,t){if(w){let r=$e(e,t),n=w[r];if("number"==typeof n)return n}return null}return I={get basename(){return h},get future(){return y},get state(){return D},get routes(){return d},get window(){return t},initialize:function(){if(S=e.history.listen((t=>{let{action:r,location:n,delta:i}=t;if(ee)return void(ee=!1);l(0===Z.size||null!=i,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=He({currentLocation:D.location,nextLocation:n,historyAction:r});return o&&null!=i?(ee=!0,e.history.go(-1*i),void De(o,{state:"blocked",location:n,proceed(){De(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(i)},reset(){let e=new Map(D.blockers);e.set(o,ce),te({blockers:e})}})):ne(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(pe);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,B);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(pe,JSON.stringify(r))}catch(e){l(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,B);t.addEventListener("pagehide",e),F=()=>t.removeEventListener("pagehide",e)}return D.initialized||ne(i.Pop,D.location,{initialHydration:!0}),I},subscribe:function(e){return E.add(e),()=>E.delete(e)},enableScrollRestoration:function(e,t,r){if(w=e,x=t,O=r||null,!T&&D.navigation===se){T=!0;let e=Ke(D.location,D.matches);null!=e&&te({restoreScrollPosition:e})}return()=>{w=null,x=null,O=null}},navigate:async function t(r,o){if("number"==typeof r)return void e.history.go(r);let a=ve(D.location,D.matches,h,y.v7_prependBasename,r,y.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:s,submission:u,error:c}=be(y.v7_normalizeFormMethod,!1,a,o),l=D.location,f=p(D.location,s,o&&o.state);f=n({},f,e.history.encodeLocation(f));let d=o&&null!=o.replace?o.replace:void 0,m=i.Push;!0===d?m=i.Replace:!1===d||null!=u&&Ye(u.formMethod)&&u.formAction===D.location.pathname+D.location.search&&(m=i.Replace);let g=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,v=!0===(o&&o.unstable_flushSync),b=He({currentLocation:l,nextLocation:f,historyAction:m});if(!b)return await ne(m,f,{submission:u,pendingError:c,preventScrollReset:g,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:v});De(b,{state:"blocked",location:f,proceed(){De(b,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),t(r,o)},reset(){let e=new Map(D.blockers);e.set(b,ce),te({blockers:e})}})},fetch:function(t,r,n,i){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(t)&&Ee(t);let a=!0===(i&&i.unstable_flushSync),u=s||d,l=ve(D.location,D.matches,h,y.v7_prependBasename,n,y.v7_relativeSplatPath,r,null==i?void 0:i.relative),f=b(u,l,h);if(!f)return void ge(t,r,Fe(404,{pathname:l}),{flushSync:a});let{path:p,submission:m,error:g}=be(y.v7_normalizeFormMethod,!0,l,i);if(g)return void ge(t,r,g,{flushSync:a});let v=Ze(f,p);L=!0===(i&&i.preventScrollReset),m&&Ye(m.formMethod)?async function(t,r,n,i,o,a,u){if(he(),Y.delete(t),!i.route.action&&!i.route.lazy){let e=Fe(405,{method:u.formMethod,pathname:n,routeId:r});return void ge(t,r,e,{flushSync:a})}let l=D.fetchers.get(t);me(t,function(e,t){let r={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return r}(u,l),{flushSync:a});let f=new AbortController,p=Re(e.history,n,f.signal,u);W.set(t,f);let m=V,g=await oe("action",p,[i],o),v=g[0];if(p.signal.aborted)return void(W.get(t)===f&&W.delete(t));if(y.v7_fetcherPersist&&X.has(t)){if(Ve(v)||We(v))return void me(t,nt(void 0))}else{if(Ve(v))return W.delete(t),G>m?void me(t,nt(void 0)):(K.add(t),me(t,rt(u)),ie(p,v,{fetcherSubmission:u}));if(We(v))return void ge(t,r,v.error)}if(ze(v))throw Fe(400,{type:"defer-action"});let _=D.navigation.location||D.location,S=Re(e.history,_,f.signal),E=s||d,w="idle"!==D.navigation.state?b(E,D.navigation.location,h):D.matches;c(w,"Didn't find any matches after fetcher action");let O=++V;$.set(t,O);let x=rt(u,v.data);D.fetchers.set(t,x);let[T,k]=Se(e.history,D,w,u,_,!1,y.unstable_skipActionErrorRevalidation,H,q,z,X,Y,K,E,h,[i.route.id,v]);k.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=D.fetchers.get(t),n=rt(void 0,r?r.data:void 0);D.fetchers.set(t,n),W.has(t)&&Ee(t),e.controller&&W.set(t,e.controller)})),te({fetchers:new Map(D.fetchers)});let C=()=>k.forEach((e=>Ee(e.key)));f.signal.addEventListener("abort",C);let{loaderResults:I,fetcherResults:R}=await de(D.matches,w,T,k,S);if(f.signal.aborted)return;f.signal.removeEventListener("abort",C),$.delete(t),W.delete(t),k.forEach((e=>W.delete(e.key)));let A=Ue([...I,...R]);if(A){if(A.idx>=T.length){let e=k[A.idx-T.length].key;K.add(e)}return ie(S,A.result)}let{loaderData:M,errors:L}=Ne(D,D.matches,T,I,void 0,k,R,J);if(D.fetchers.has(t)){let e=nt(v.data);D.fetchers.set(t,e)}Ae(O),"loading"===D.navigation.state&&O>G?(c(N,"Expected pending action"),P&&P.abort(),re(D.navigation.location,{matches:w,loaderData:M,errors:L,fetchers:new Map(D.fetchers)})):(te({errors:L,loaderData:Me(D.loaderData,M,w,L),fetchers:new Map(D.fetchers)}),H=!1)}(t,r,p,v,f,a,m):(Y.set(t,{routeId:r,path:p}),async function(t,r,n,i,o,a,s){let u=D.fetchers.get(t);me(t,rt(s,u?u.data:void 0),{flushSync:a});let l=new AbortController,f=Re(e.history,n,l.signal);W.set(t,l);let p=V,d=await oe("loader",f,[i],o),h=d[0];ze(h)&&(h=await Xe(h,f.signal,!0)||h);W.get(t)===l&&W.delete(t);if(f.signal.aborted)return;if(X.has(t))return void me(t,nt(void 0));if(Ve(h))return G>p?void me(t,nt(void 0)):(K.add(t),void await ie(f,h));if(We(h))return void ge(t,r,h.error);c(!ze(h),"Unhandled fetcher deferred data"),me(t,nt(h.data))}(t,r,p,v,f,a,m))},revalidate:function(){he(),te({revalidation:"loading"}),"submitting"!==D.navigation.state&&("idle"!==D.navigation.state?ne(N||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation}):ne(D.historyAction,D.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ye,deleteFetcher:function(e){if(y.v7_fetcherPersist){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),X.add(e)):Q.set(e,t)}else _e(e);te({fetchers:new Map(D.fetchers)})},dispose:function(){S&&S(),F&&F(),E.clear(),P&&P.abort(),D.fetchers.forEach(((e,t)=>_e(t))),D.blockers.forEach(((e,t)=>Pe(t)))},getBlocker:function(e,t){let r=D.blockers.get(e)||ce;return Z.get(e)!==t&&Z.set(e,t),r},deleteBlocker:Pe,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:function(e){f={},s=v(e,a,void 0,f)}},I}const he=Symbol("deferred");function me(e,t){c(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let r,i={},o=(t?t.basename:null)||"/";if(null!=t&&t.mapRouteProperties)r=t.mapRouteProperties;else if(null!=t&&t.detectErrorBoundary){let e=t.detectErrorBoundary;r=t=>({hasErrorBoundary:e(t)})}else r=fe;let a=n({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},t?t.future:null),s=v(e,r,void 0,i);async function u(e,t,r,i,o,s,u){c(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(Ye(e.method.toLowerCase())){let c=await async function(e,t,r,i,o,s,u){let c;if(r.route.action||r.route.lazy){c=(await f("action",e,[r],t,u,i,o))[0],e.signal.aborted&&ye(e,u,a)}else{let t=Fe(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:r.route.id});if(u)throw t;c={type:g.error,error:t}}if(Ve(c))throw new Response(null,{status:c.response.status,headers:{Location:c.response.headers.get("Location")}});if(ze(c)){let e=Fe(400,{type:"defer-action"});if(u)throw e;c={type:g.error,error:e}}if(u){if(We(c))throw c.error;return{matches:[r],loaderData:{},actionData:{[r.route.id]:c.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let p=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(We(c)){let e=s?r:je(t,r.route.id);return n({},await l(p,t,i,o,s,null,[e.route.id,c]),{statusCode:ee(c.error)?c.error.status:null!=c.statusCode?c.statusCode:500,actionData:null,actionHeaders:n({},c.headers?{[r.route.id]:c.headers}:{})})}let d=await l(p,t,i,o,s,null);return n({},d,{actionData:{[r.route.id]:c.data}},c.statusCode?{statusCode:c.statusCode}:{},{actionHeaders:c.headers?{[r.route.id]:c.headers}:{}})}(e,r,u||Ze(r,t),i,o,s,null!=u);return c}let c=await l(e,r,i,o,s,u);return $e(c)?c:n({},c,{actionData:null,actionHeaders:{}})}catch(e){if(null!=(p=e)&&"object"==typeof p&&"type"in p&&"result"in p&&(p.type===g.data||p.type===g.error)&&$e(e.result)){if(e.type===g.error)throw e.result;return e.result}if(function(e){if(!$e(e))return!1;let t=e.status,r=e.headers.get("Location");return t>=300&&t<=399&&null!=r}(e))return e;throw e}var p}async function l(e,t,r,i,o,s,u){let c=null!=s;if(c&&(null==s||!s.route.loader)&&(null==s||!s.route.lazy))throw Fe(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:null==s?void 0:s.route.id});let l=(s?[s]:u&&We(u[1])?_e(t,u[0]):t).filter((e=>e.route.loader||e.route.lazy));if(0===l.length)return{matches:t,loaderData:t.reduce(((e,t)=>Object.assign(e,{[t.route.id]:null})),{}),errors:u&&We(u[1])?{[u[0]]:u[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let p=await f("loader",e,l,t,c,r,i);e.signal.aborted&&ye(e,c,a);let d=new Map,h=De(t,l,p,u,d,o),m=new Set(l.map((e=>e.route.id)));return t.forEach((e=>{m.has(e.route.id)||(h.loaderData[e.route.id]=null)})),n({},h,{matches:t,activeDeferreds:d.size>0?Object.fromEntries(d.entries()):null})}async function f(e,t,n,s,u,c,l){let f=await Te(l||xe,e,t,n,s,i,r,c);return await Promise.all(f.map(((e,r)=>{if(qe(e)){throw Ce(e.result,t,n[r].route.id,s,o,a.v7_relativeSplatPath)}if($e(e.result)&&u)throw e;return ke(e)})))}return{dataRoutes:s,query:async function(e,t){let{requestContext:r,skipLoaderErrorBubbling:i,unstable_dataStrategy:a}=void 0===t?{}:t,c=new URL(e.url),l=e.method,f=p("",d(c),null,"default"),h=b(s,f,o);if(!Ke(l)&&"HEAD"!==l){let e=Fe(405,{method:l}),{matches:t,route:r}=Be(s);return{basename:o,location:f,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(!h){let e=Fe(404,{pathname:f.pathname}),{matches:t,route:r}=Be(s);return{basename:o,location:f,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let m=await u(e,f,h,r,a||null,!0===i,null);return $e(m)?m:n({location:f,basename:o},m)},queryRoute:async function(e,t){let{routeId:r,requestContext:n,unstable_dataStrategy:i}=void 0===t?{}:t,a=new URL(e.url),c=e.method,l=p("",d(a),null,"default"),f=b(s,l,o);if(!Ke(c)&&"HEAD"!==c&&"OPTIONS"!==c)throw Fe(405,{method:c});if(!f)throw Fe(404,{pathname:l.pathname});let h=r?f.find((e=>e.route.id===r)):Ze(f,l);if(r&&!h)throw Fe(403,{pathname:l.pathname,routeId:r});if(!h)throw Fe(404,{pathname:l.pathname});let m=await u(e,l,f,n,i||null,!1,h);if($e(m))return m;let g=m.errors?Object.values(m.errors)[0]:void 0;if(void 0!==g)throw g;if(m.actionData)return Object.values(m.actionData)[0];if(m.loaderData){var y;let e=Object.values(m.loaderData)[0];return null!=(y=m.activeDeferreds)&&y[h.route.id]&&(e[he]=m.activeDeferreds[h.route.id]),e}}}}function ge(e,t,r){return n({},t,{statusCode:ee(r)?r.status:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}})}function ye(e,t,r){if(r.v7_throwAbortReason&&void 0!==e.signal.reason)throw e.signal.reason;throw new Error((t?"queryRoute":"query")+"() call aborted: "+e.method+" "+e.url)}function ve(e,t,r,n,i,o,a,s){let u,c;if(a){u=[];for(let e of t)if(u.push(e),e.route.id===a){c=e;break}}else u=t,c=t[t.length-1];let l=U(i||".",F(u,o),M(e.pathname,r)||e.pathname,"path"===s);return null==i&&(l.search=e.search,l.hash=e.hash),null!=i&&""!==i&&"."!==i||!c||!c.route.index||Je(l.search)||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(l.pathname="/"===l.pathname?r:q([r,l.pathname])),d(l)}function be(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&!Ke(n.formMethod))return{path:r,error:Fe(405,{method:n.formMethod})};let i,o,a=()=>({path:r,error:Fe(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),l=He(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ye(u))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:u,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ye(u))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:l,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(c("function"==typeof FormData,"FormData is not available in this environment"),n.formData)i=Ae(n.formData),o=n.formData;else if(n.body instanceof FormData)i=Ae(n.body),o=n.body;else if(n.body instanceof URLSearchParams)i=n.body,o=Pe(i);else if(null==n.body)i=new URLSearchParams,o=new FormData;else try{i=new URLSearchParams(n.body),o=Pe(i)}catch(e){return a()}let f={formMethod:u,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Ye(f.formMethod))return{path:r,submission:f};let p=h(r);return t&&p.search&&Je(p.search)&&i.append("index",""),p.search="?"+i,{path:d(p),submission:f}}function _e(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}function Se(e,t,r,i,o,a,s,u,c,l,f,p,d,h,m,g){let y=g?We(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),_=e.createURL(o),S=g&&We(g[1])?g[0]:void 0,E=S?_e(r,S):r,w=g?g[1].statusCode:void 0,O=s&&w&&w>=400,x=E.filter(((e,r)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return!("function"==typeof o.loader&&!o.loader.hydrate)||void 0===t.loaderData[o.id]&&(!t.errors||void 0===t.errors[o.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,i=void 0===e[r.route.id];return n||i}(t.loaderData,t.matches[r],e)||c.some((t=>t===e.route.id)))return!0;let s=t.matches[r],l=e;return we(e,n({currentUrl:v,currentParams:s.params,nextUrl:_,nextParams:l.params},i,{actionResult:y,unstable_actionStatus:w,defaultShouldRevalidate:!O&&(u||v.pathname+v.search===_.pathname+_.search||v.search!==_.search||Ee(s,l))}))})),T=[];return p.forEach(((e,o)=>{if(a||!r.some((t=>t.route.id===e.routeId))||f.has(o))return;let s=b(h,e.path,m);if(!s)return void T.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(o),p=Ze(s,e.path),g=!1;g=!d.has(o)&&(!!l.includes(o)||(c&&"idle"!==c.state&&void 0===c.data?u:we(p,n({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:r[r.length-1].params},i,{actionResult:y,unstable_actionStatus:w,defaultShouldRevalidate:!O&&u})))),g&&T.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:p,controller:new AbortController})})),[x,T]}function Ee(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function we(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function Oe(e,t,r){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let o=r[e.id];c(o,"No route found in manifest");let a={};for(let e in i){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;l(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||y.has(e)||(a[e]=i[e])}Object.assign(o,a),Object.assign(o,n({},t(o),{lazy:void 0}))}function xe(e){return Promise.all(e.matches.map((e=>e.resolve())))}async function Te(e,t,r,i,o,a,s,u){let l=i.reduce(((e,t)=>e.add(t.route.id)),new Set),f=new Set,p=await e({matches:o.map((e=>{let i=l.has(e.route.id);return n({},e,{shouldLoad:i,resolve:n=>(f.add(e.route.id),i?async function(e,t,r,n,i,o,a){let s,u,l=n=>{let i,s=new Promise(((e,t)=>i=t));u=()=>i(),t.signal.addEventListener("abort",u);let c,l=i=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:a},...void 0!==i?[i]:[]);return c=o?o((e=>l(e))):(async()=>{try{return{type:"data",result:await l()}}catch(e){return{type:"error",result:e}}})(),Promise.race([c,s])};try{let o=r.route[e];if(r.route.lazy)if(o){let e,[t]=await Promise.all([l(o).catch((t=>{e=t})),Oe(r.route,i,n)]);if(void 0!==e)throw e;s=t}else{if(await Oe(r.route,i,n),o=r.route[e],!o){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Fe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:g.data,result:void 0}}s=await l(o)}else{if(!o){let e=new URL(t.url);throw Fe(404,{pathname:e.pathname+e.search})}s=await l(o)}c(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:g.error,result:e}}finally{u&&t.signal.removeEventListener("abort",u)}return s}(t,r,e,a,s,n,u):Promise.resolve({type:g.data,result:void 0}))})})),request:r,params:o[0].params,context:u});return o.forEach((e=>c(f.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),p.filter(((e,t)=>l.has(o[t].route.id)))}async function ke(e){let{result:t,type:r,status:n}=e;if($e(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:g.error,error:e}}return r===g.error?{type:g.error,error:new Z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:g.data,data:e,statusCode:t.status,headers:t.headers}}return r===g.error?{type:g.error,error:t,statusCode:ee(t)?t.status:n}:Ge(t)?{type:g.deferred,deferredData:t,statusCode:null==(i=t.init)?void 0:i.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:{type:g.data,data:t,statusCode:n};var i,o}function Ce(e,t,r,n,i,o){let a=e.headers.get("Location");if(c(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!le.test(a)){let s=n.slice(0,n.findIndex((e=>e.route.id===r))+1);a=ve(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function Ie(e,t,r){if(le.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=M(i.pathname,r);if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Re(e,t,r,n){let i=e.createURL(He(t)).toString(),o={signal:r};if(n&&Ye(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=Ae(n.formData):o.body=n.formData}return new Request(i,o)}function Ae(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Pe(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function De(e,t,r,n,i,o){let a,s={},u=null,l=!1,f={},p=n&&We(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let d=t[n].route.id;if(c(!Ve(r),"Cannot handle redirect results in processLoaderData"),We(r)){let t=r.error;if(void 0!==p&&(t=p,p=void 0),u=u||{},o)u[d]=t;else{let r=je(e,d);null==u[r.route.id]&&(u[r.route.id]=t)}s[d]=void 0,l||(l=!0,a=ee(r.error)?r.error.status:500),r.headers&&(f[d]=r.headers)}else ze(r)?(i.set(d,r.deferredData),s[d]=r.deferredData.data,null==r.statusCode||200===r.statusCode||l||(a=r.statusCode),r.headers&&(f[d]=r.headers)):(s[d]=r.data,r.statusCode&&200!==r.statusCode&&!l&&(a=r.statusCode),r.headers&&(f[d]=r.headers))})),void 0!==p&&n&&(u={[n[0]]:p},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:a||200,loaderHeaders:f}}function Ne(e,t,r,i,o,a,s,u){let{loaderData:l,errors:f}=De(t,r,i,o,u,!1);for(let t=0;t<a.length;t++){let{key:r,match:i,controller:o}=a[t];c(void 0!==s&&void 0!==s[t],"Did not find corresponding fetcher result");let u=s[t];if(!o||!o.signal.aborted)if(We(u)){let t=je(e.matches,null==i?void 0:i.route.id);f&&f[t.route.id]||(f=n({},f,{[t.route.id]:u.error})),e.fetchers.delete(r)}else if(Ve(u))c(!1,"Unhandled fetcher revalidation redirect");else if(ze(u))c(!1,"Unhandled fetcher deferred data");else{let t=nt(u.data);e.fetchers.set(r,t)}}return{loaderData:l,errors:f}}function Me(e,t,r,i){let o=n({},t);for(let n of r){let r=n.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(o[r]=t[r]):void 0!==e[r]&&n.route.loader&&(o[r]=e[r]),i&&i.hasOwnProperty(r))break}return o}function Le(e){return e?We(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function je(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Be(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Fe(e,t){let{pathname:r,routeId:n,method:i,type:o}=void 0===t?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",i&&r&&n?s="You made a "+i+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(a="Not Found",s='No route matches URL "'+r+'"'):405===e&&(a="Method Not Allowed",i&&r&&n?s="You made a "+i.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new Z(e||500,a,new Error(s),!0)}function Ue(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Ve(r))return{result:r,idx:t}}}function He(e){return d(n({},"string"==typeof e?h(e):e,{hash:""}))}function qe(e){return $e(e.result)&&oe.has(e.result.status)}function ze(e){return e.type===g.deferred}function We(e){return e.type===g.error}function Ve(e){return(e&&e.type)===g.redirect}function Ge(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}function $e(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ke(e){return ie.has(e.toLowerCase())}function Ye(e){return re.has(e.toLowerCase())}async function Qe(e,t,r,n,i,o){for(let a=0;a<r.length;a++){let s=r[a],u=t[a];if(!u)continue;let l=e.find((e=>e.route.id===u.route.id)),f=null!=l&&!Ee(l,u)&&void 0!==(o&&o[u.route.id]);if(ze(s)&&(i||f)){let e=n[a];c(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Xe(s,e,i).then((e=>{e&&(r[a]=e||r[a])}))}}}async function Xe(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:g.data,data:e.deferredData.unwrappedData}}catch(e){return{type:g.error,error:e}}return{type:g.data,data:e.deferredData.data}}}function Je(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ze(e,t){let r="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Je(r||""))return e[e.length-1];let n=B(e);return n[n.length-1]}function et(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:a}=e;if(t&&r&&n)return null!=i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}:void 0}function tt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function rt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useInternalState:()=>E,useQuery:()=>_});var n=r(103),i=r(327),o=r(325),a=r(326),s=r(435),u=r(458),c=r(589),l=r(427),f=r(440),p=r(587),d=r(588),h=r(482),m=r(335),g=r(443),y=r(437),v=r(590),b=Object.prototype.hasOwnProperty;function _(e,t){return void 0===t&&(t=Object.create(null)),(0,v.wrapHook)("useQuery",S,(0,d.useApolloClient)(t&&t.client))(e,t)}function S(e,t){return E((0,d.useApolloClient)(t.client),e).useQuery(t)}function E(e,t){var r=o.useReducer((function(e){return e+1}),0)[1];function n(n){return Object.assign(new w(e,t,n),{forceUpdateState:r})}var i=o.useState(n),a=i[0],s=i[1];return e===a.client&&t===a.query||s(a=n(a)),a}var w=function(){function e(e,t,r){var n=this;this.client=e,this.query=t,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=(0,h.maybeDeepFreeze)({loading:!0,data:void 0,error:void 0,networkStatus:f.NetworkStatus.loading}),this.skipStandbyResult=(0,h.maybeDeepFreeze)({loading:!1,data:void 0,error:void 0,networkStatus:f.NetworkStatus.ready}),this.toQueryResultCache=new(m.canUseWeakMap?WeakMap:Map),(0,p.verifyDocumentType)(t,p.DocumentType.Query);var i=r&&r.result,o=i&&i.data;o&&(this.previousData=o)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&i.invariant.warn(51)},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=o.useContext((0,c.getApolloContext)()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=(0,a.useSyncExternalStore)(o.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var n=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&(0,s.equal)(e.data,n.data)||t.setResult(n)},i=function(e){if(o.unsubscribe(),o=r.resubscribeAfterError(n,i),!b.call(e,"graphQLErrors"))throw e;var a=t.result;(!a||a&&a.loading||!(0,s.equal)(e,a.error))&&t.setResult({data:a&&a.data,error:e,loading:!1,networkStatus:f.NetworkStatus.error})},o=r.subscribe(n,i);return function(){setTimeout((function(){return o.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[r,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(0,s.equal)(n,i)||(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,g.compact)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(u.mergeOptions)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var r=e.skip,i=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,n.__rest)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),o=Object.assign(i,{query:this.query});if(!this.renderPromises||"network-only"!==o.fetchPolicy&&"cache-and-network"!==o.fetchPolicy||(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),r){var a=o.fetchPolicy,s=void 0===a?this.getDefaultFetchPolicy():a,u=o.initialFetchPolicy,c=void 0===u?s:u;Object.assign(o,{initialFetchPolicy:c,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=o.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var r=this;if(!e.loading){var n=this.toApolloError(e);Promise.resolve().then((function(){n?r.onError(n):e.data&&(null==t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===f.NetworkStatus.ready&&r.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&i.invariant.warn(e)}))}},e.prototype.toApolloError=function(e){return(0,y.isNonEmptyArray)(e.errors)?new l.ApolloError({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,i=(e.partial,(0,n.__rest)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,n.__assign)((0,n.__assign)((0,n.__assign)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,y.isNonEmptyArray)(e.errors)&&(t.error=new l.ApolloError({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:f.NetworkStatus.refetch}),this.observable.refetch())},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentType:()=>n,operationName:()=>c,parser:()=>l,verifyDocumentType:()=>f});var n,i,o=r(327),a=r(406),s=r(405),u=r(404);function c(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function l(e){i||(i=new a.AutoCleanedWeakCache(s.cacheSizes.parser||1e3));var t,r,u=i.get(e);if(u)return u;(0,o.invariant)(!!e&&!!e.kind,60,e);for(var c=[],l=[],f=[],p=[],d=0,h=e.definitions;d<h.length;d++){var m=h[d];if("FragmentDefinition"!==m.kind){if("OperationDefinition"===m.kind)switch(m.operation){case"query":l.push(m);break;case"mutation":f.push(m);break;case"subscription":p.push(m)}}else c.push(m)}(0,o.invariant)(!c.length||l.length||f.length||p.length,61),(0,o.invariant)(l.length+f.length+p.length<=1,62,e,l.length,p.length,f.length),r=l.length?n.Query:n.Mutation,l.length||f.length||(r=n.Subscription);var g=l.length?l:f.length?f:p;(0,o.invariant)(1===g.length,63,e,g.length);var y=g[0];t=y.variableDefinitions||[];var v={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:t};return i.set(e,v),v}function f(e,t){var r=l(e),n=c(t),i=c(r.type);(0,o.invariant)(r.type===t,64,n,n,i)}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={})),l.resetCache=function(){i=void 0},!1!==globalThis.__DEV__&&(0,u.registerGlobalCache)("parser",(function(){return i?i.size:0}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useApolloClient:()=>a});var n=r(327),i=r(325),o=r(589);function a(e){var t=i.useContext((0,o.getApolloContext)()),r=e||t.client;return(0,n.invariant)(!!r,49),r}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{getApolloContext:()=>u,resetApolloContext:()=>c});var i=r(325),o=r(335),a=r(327),s=o.canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function u(){(0,a.invariant)("createContext"in(n||(n=r.t(i,2))),45);var e=i.createContext[s];return e||(Object.defineProperty(i.createContext,s,{value:e=i.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var c=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{wrapHook:()=>i});var n=Symbol.for("apollo.hook.wrappers");function i(e,t,r){var i=r.queryManager,o=i&&i[n],a=o&&o[e];return a?a(t):t}},,(e,t,r)=>{var n=r(270),i="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:r(593),o=0,a=function(e){return e.topbar||i};function s(e){return n.useEffect((function(){return 0===o&&a(e).show(),o++,function(){0===--o&&a(e).hide()}}),[]),null}s.config=i.config,e.exports=s},function(e,t,r){var n;
/*! topbar 0.1.4, 2020-04-27
 *  http://buunguyen.github.io/topbar
 *  Copyright (c) 2019 Buu Nguyen
 *  Licensed under the MIT License */(function(i,o){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],r=0;r<t.length&&!i.requestAnimationFrame;++r)i.requestAnimationFrame=i[t[r]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[r]+"CancelAnimationFrame"]||i[t[r]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(t,r){var n=(new Date).getTime(),o=Math.max(0,16-(n-e)),a=i.setTimeout((function(){t(n+o)}),o);return e=n+o,a}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,u,c,l,f={autoRun:!0,barThickness:3,barColors:{0:"rgba(26,  188, 156, .9)",".25":"rgba(52,  152, 219, .9)",".50":"rgba(241, 196, 15,  .9)",".75":"rgba(230, 126, 34,  .9)","1.0":"rgba(211, 84,  0,   .9)"},shadowBlur:10,shadowColor:"rgba(0,   0,   0,   .6)",className:null},p=function(){a.width=i.innerWidth,a.height=5*f.barThickness;var e=a.getContext("2d");e.shadowBlur=f.shadowBlur,e.shadowColor=f.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var r in f.barColors)t.addColorStop(r,f.barColors[r]);e.lineWidth=f.barThickness,e.beginPath(),e.moveTo(0,f.barThickness/2),e.lineTo(Math.ceil(c*a.width),f.barThickness/2),e.strokeStyle=t,e.stroke()},d={config:function(e){for(var t in e)f.hasOwnProperty(t)&&(f[t]=e[t])},show:function(){var e,t,r,n;l||(l=!0,null!==u&&i.cancelAnimationFrame(u),a||((n=(a=o.createElement("canvas")).style).position="fixed",n.top=n.left=n.right=n.margin=n.padding=0,n.zIndex=100001,n.display="none",f.className&&a.classList.add(f.className),o.body.appendChild(a),t="resize",r=p,(e=i).addEventListener?e.addEventListener(t,r,!1):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r),a.style.opacity=1,a.style.display="block",d.progress(0),f.autoRun&&function e(){s=i.requestAnimationFrame(e),d.progress("+"+.05*Math.pow(1-Math.sqrt(c),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?c:0)+parseFloat(e)),c=e>1?1:e,p()),c},hide:function(){l&&(l=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(d.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(u=null);u=i.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}).call(this,window,document)},,,,,,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withContentRect=t.default=void 0;var n=o(r(600)),i=o(r(601));function o(e){return e&&e.__esModule?e:{default:e}}t.default=n.default,t.withContentRect=i.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(r(270));var n=i(r(601));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.default)()((function(e){var t=e.measure,r=e.measureRef,n=e.contentRect;return(0,e.children)({measure:t,measureRef:r,contentRect:n})})),e.exports=t.default},(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(){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(270),a=(l(o),l(r(272))),s=l(r(602)),u=l(r(603)),c=l(r(604));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}t.default=function(e){return function(t){var r,l;return l=r=function(r){function a(){var t,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=n=f(this,(t=a.__proto__||Object.getPrototypeOf(a)).call.apply(t,[this].concat(o))),n.state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},n.measure=function(t){var r=(0,c.default)(n._node,e||(0,u.default)(n.props));t&&(r.entry=t[0].contentRect),n.setState({contentRect:r}),"function"==typeof n.props.onResize&&n.props.onResize(r)},n._handleRef=function(e){n._resizeObserver&&(e?n._resizeObserver.observe(e):n._resizeObserver.disconnect(n._node)),n._node=e,"function"==typeof n.props.innerRef&&n.props.innerRef(e)},f(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(a,r),i(a,[{key:"componentWillMount",value:function(){this._resizeObserver=new s.default(this.measure)}},{key:"render",value:function(){var e=this.props,r=(e.innerRef,e.onResize,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}(e,["innerRef","onResize"]));return(0,o.createElement)(t,n({},r,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))}}]),a}(o.Component),r.propTypes={client:a.default.bool,offset:a.default.bool,scroll:a.default.bool,bounds:a.default.bool,margin:a.default.bool,innerRef:a.default.func,onResize:a.default.func,children:a.default.func},l}},e.exports=t.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some((function(e,n){return e[0]===t&&(r=n,!0)})),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function s(){a(o)}function u(){var e=Date.now();if(r){if(e-i<2)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;s.some((function(e){return!!~r.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},p=v(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(t,r){return t+d(e["border-"+r+"-width"])}),0)}function m(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return p;var n=f(e).getComputedStyle(e),i=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=e["padding-"+i];t[i]=d(o)}return t}(n),o=i.left+i.right,a=i.top+i.bottom,s=d(n.width),u=d(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==t&&(s-=h(n,"left","right")+o),Math.round(u+a)!==r&&(u-=h(n,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(s+o)-t,l=Math.round(u+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return v(i.left,i.top,s,u)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return i?g(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):m(e):p}function v(e,t,r,n){return{x:e,y:t,width:r,height:n}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),_=function(e,t){var r,n,i,o,a,s,u,c=(n=(r=t).x,i=r.y,o=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),l(u,{x:n,y:i,width:o,height:a,top:i,right:n+o,bottom:a+i,left:n}),u);l(this,{target:e,contentRect:c})},S=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new _(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=c.getInstance(),n=new S(t,r,this);E.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));const O=void 0!==o.ResizeObserver?o.ResizeObserver:w},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return r.forEach((function(r){e[r]&&t.push(r)})),t};var r=["client","offset","scroll","bounds","margin"];e.exports=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var n=e.getBoundingClientRect();r.bounds={top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height}}if(t.indexOf("margin")>-1){var i=getComputedStyle(e);r.margin={top:parseInt(i.marginTop),right:parseInt(i.marginRight),bottom:parseInt(i.marginBottom),left:parseInt(i.marginLeft)}}return r},e.exports=t.default},,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useMutation:()=>l});var n=r(103),i=r(325),o=r(458),a=r(435),s=r(587),u=r(427),c=r(588);function l(e,t){var r=(0,c.useApolloClient)(null==t?void 0:t.client);(0,s.verifyDocumentType)(e,s.DocumentType.Mutation);var l=i.useState({called:!1,loading:!1,client:r}),f=l[0],p=l[1],d=i.useRef({result:f,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});i.useLayoutEffect((function(){Object.assign(d.current,{client:r,options:t,mutation:e})}));var h=i.useCallback((function(e){void 0===e&&(e={});var t=d.current,r=t.options,i=t.mutation,s=(0,n.__assign)((0,n.__assign)({},r),{mutation:i}),c=e.client||d.current.client;d.current.result.loading||s.ignoreResults||!d.current.isMounted||p(d.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:c});var l=++d.current.mutationId,f=(0,o.mergeOptions)(s,e);return c.mutate(f).then((function(t){var r,n,i=t.data,o=t.errors,s=o&&o.length>0?new u.ApolloError({graphQLErrors:o}):void 0,h=e.onError||(null===(r=d.current.options)||void 0===r?void 0:r.onError);if(s&&h&&h(s,f),l===d.current.mutationId&&!f.ignoreResults){var m={called:!0,loading:!1,data:i,error:s,client:c};d.current.isMounted&&!(0,a.equal)(d.current.result,m)&&p(d.current.result=m)}var g=e.onCompleted||(null===(n=d.current.options)||void 0===n?void 0:n.onCompleted);return s||null==g||g(t.data,f),t})).catch((function(t){var r;if(l===d.current.mutationId&&d.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:c};(0,a.equal)(d.current.result,n)||p(d.current.result=n)}var i=e.onError||(null===(r=d.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,f),{data:void 0,errors:t};throw t}))}),[]),m=i.useCallback((function(){if(d.current.isMounted){var e={called:!1,loading:!1,client:d.current.client};Object.assign(d.current,{mutationId:0,result:e}),p(e)}}),[]);return i.useEffect((function(){var e=d.current;return e.isMounted=!0,function(){e.isMounted=!1}}),[]),[h,(0,n.__assign)({reset:m},f)]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ENTERED:()=>p,ENTERING:()=>f,EXITED:()=>l,EXITING:()=>d,UNMOUNTED:()=>c,default:()=>g});var n=r(677),i=r(678),o=r(270),a=r(680),s=r(681),u=r(682),c="unmounted",l="exited",f="entering",p="entered",d="exiting",h=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=l,n.appearStatus=f):i=p:i=t.unmountOnExit||t.mountOnEnter?c:l,n.state={status:i},n.nextCallback=null,n}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:l}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==p&&(t=f):r!==f&&r!==p||(t=d)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this);r&&(0,u.forceReflow)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:c})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[o.default.findDOMNode(this),n],s=i[0],u=i[1],c=this.getTimeouts(),l=n?c.appear:c.enter;!e&&!r||a.default.disabled?this.safeSetState({status:p},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,u),this.safeSetState({status:f},(function(){t.props.onEntering(s,u),t.onTransitionEnd(l,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(s,u)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:o.default.findDOMNode(this);t&&!a.default.disabled?(this.props.onExit(n),this.safeSetState({status:d},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:l},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:l},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.default.createElement(s.default.Provider,{value:null},"function"==typeof r?r(e,i):o.default.cloneElement(o.default.Children.only(r),i))},t}(o.default.Component);function m(){}h.contextType=s.default,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=c,h.EXITED=l,h.ENTERING=f,h.ENTERED=p,h.EXITING=d;const g=h},(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.indexOf(n)>=0)continue;r[n]=e[n]}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(679);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.default)(e,t)}},(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={disabled:!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=r(270).default.createContext(null)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{forceReflow:()=>n});var n=function(e){return e.scrollTop}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloProvider:()=>s});var n=r(103),i=r(327),o=r(325),a=r(589),s=function(e){var t=e.client,r=e.children,s=(0,a.getApolloContext)(),u=o.useContext(s),c=o.useMemo((function(){return(0,n.__assign)((0,n.__assign)({},u),{client:t||u.client})}),[u,t]);return(0,i.invariant)(c.client,46),o.createElement(s.Provider,{value:c},r)}},,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>I,BrowserTracing:()=>E,IdleTransaction:()=>N,Integrations:()=>B,Span:()=>C,SpanStatus:()=>j,TRACEPARENT_REGEXP:()=>D,Transaction:()=>k,addExtensionMethods:()=>w,defaultRequestInstrumentationOptions:()=>R,extractTraceparentData:()=>x,getActiveTransaction:()=>O,hasTracingEnabled:()=>A,instrumentOutgoingRequests:()=>M,spanStatusfromHttpCode:()=>T,startIdleTransaction:()=>L,stripUrlQueryAndFragment:()=>P});var n=r(843),i=r(922),o=r(848),a=r(901),s=r(917),u=r(895),c=r(907),l=r(899),f=r(849),p=r(870),d=r(916),h=r(918),m=r(925),g=r(928),y=r(931),v=r(932),b=r(933),_=r(934),S=r(935);const E=n.BrowserTracing,w=i.addExtensionMethods,O=o.getActiveTransaction,x=o.extractTraceparentData,T=a.spanStatusfromHttpCode,k=s.Transaction,C=u.Span,I=n.BROWSER_TRACING_INTEGRATION_ID,R=c.defaultRequestInstrumentationOptions,A=l.hasTracingEnabled,P=f.stripUrlQueryAndFragment,D=p.TRACEPARENT_REGEXP,N=d.IdleTransaction,M=c.instrumentOutgoingRequests,L=h.startIdleTransaction,j=a.SpanStatus,B={BrowserTracing:E,Apollo:m.Apollo,Express:g.Express,GraphQL:y.GraphQL,Mongo:v.Mongo,Mysql:b.Mysql,Postgres:_.Postgres,Prisma:S.Prisma};("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,i.addExtensionMethods)()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>v,BrowserTracing:()=>_,getMetaContent:()=>S});var n=r(916),i=r(918),o=r(848),a=r(900),s=r(867),u=r(857),c=r(870),l=r(863),f=r(844),p=r(845),d=r(878),h=r(893),m=r(907),g=r(913),y=r(846);const v="BrowserTracing",b={...n.TRACING_DEFAULTS,markBackgroundTransactions:!0,routingInstrumentation:g.instrumentRoutingWithDefaults,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...m.defaultRequestInstrumentationOptions};class _{constructor(e){this.name=v,this._hasSetTracePropagationTargets=!1,(0,i.addTracingExtensions)(),f.DEBUG_BUILD&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...b,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=(0,h.startTrackingWebVitals)(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&(0,h.startTrackingINP)(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&(0,h.startTrackingLongTasks)(),this.options._experiments.enableInteractions&&(0,h.startTrackingInteractions)(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;const r=t().getClient(),n=r&&r.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:h,_experiments:g}=this.options,y=n&&n.tracePropagationTargets,v=y||this.options.tracePropagationTargets;f.DEBUG_BUILD&&this._hasSetTracePropagationTargets&&y&&u.logger.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{const r=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(r,e,t),r}),a,o),s&&(0,p.registerBackgroundTabDetection)(),g.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),(0,m.instrumentOutgoingRequests)({traceFetch:c,traceXHR:l,tracePropagationTargets:v,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(f.DEBUG_BUILD&&u.logger.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:n,finalTimeout:o,heartbeatInterval:a}=this.options,s="pageload"===e.op;let l;if(s){const t=s?S("sentry-trace"):"",r=s?S("baggage"):void 0,{traceId:n,dsc:i,parentSpanId:o,sampled:a}=(0,c.propagationContextFromHeaders)(t,r);l={traceId:n,parentSpanId:o,parentSampled:a,...e,metadata:{...e.metadata,dynamicSamplingContext:i},trimEnd:!0}}else l={trimEnd:!0,...e};const p="function"==typeof r?r(l):l,d=void 0===p?{...l,sampled:!1}:p;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,!1===d.sampled&&f.DEBUG_BUILD&&u.logger.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),f.DEBUG_BUILD&&u.logger.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:m}=y.WINDOW,g=(0,i.startIdleTransaction)(t,d,n,o,!0,{location:m},a,s);return s&&y.WINDOW.document&&(y.WINDOW.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(y.WINDOW.document.readyState)&&g.sendAutoFinishSignal()})),["interactive","complete"].includes(y.WINDOW.document.readyState)&&g.sendAutoFinishSignal()),g.registerBeforeFinishCallback((e=>{this._collectWebVitals(),(0,h.addPerformanceEntries)(e)})),g}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:r,heartbeatInterval:n}=this.options,s="ui.action.click",c=(0,o.getActiveTransaction)();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(f.DEBUG_BUILD&&u.logger.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)return void(f.DEBUG_BUILD&&u.logger.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(f.DEBUG_BUILD&&u.logger.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const l=this._getCurrentHub(),{location:p}=y.WINDOW,d={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:this._latestRoute.context?E(this._latestRoute.context):"url"}};e=(0,i.startIdleTransaction)(l,d,t,r,!0,{location:p},n)};["click"].forEach((e=>{y.WINDOW.document&&addEventListener(e,t,{once:!1,capture:!0})}))}_registerInpInteractionListener(){const e=({entries:e})=>{const t=(0,s.getClient)(),r=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,n=void 0!==r?r.getReplayId():void 0,i=(0,o.getActiveTransaction)(),a=(0,s.getCurrentScope)(),u=void 0!==a?a.getUser():void 0;e.forEach((e=>{if(function(e){return"duration"in e}(e)){const t=e.interactionId;if(void 0===t)return;const r=this._interactionIdToRouteNameMapping[t],o=e.duration,a=e.startTime,s=Object.keys(this._interactionIdToRouteNameMapping),c=s.length>0?s.reduce(((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t)):void 0;if("first-input"===e.entryType){if(s.map((e=>this._interactionIdToRouteNameMapping[e])).some((e=>e.duration===o&&e.startTime===a)))return}if(!t)return;if(r)r.duration=Math.max(r.duration,o);else if(s.length<10||void 0===c||o>this._interactionIdToRouteNameMapping[c].duration){const e=this._latestRoute.name,r=this._latestRoute.context;e&&r&&(c&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[c],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:o,parentContext:r,user:u,activeTransaction:i,replayId:n,startTime:a})}}}))};(0,d.addPerformanceInstrumentationHandler)("event",e),(0,d.addPerformanceInstrumentationHandler)("first-input",e)}}function S(e){const t=(0,l.getDomElement)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function E(e){const t=e.attributes&&e.attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],r=e.data&&e.data[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],n=e.metadata&&e.metadata.source;return t||r||n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerBackgroundTabDetection:()=>u});var n=r(848),i=r(869),o=r(857),a=r(844),s=r(846);function u(){s.WINDOW.document?s.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=(0,n.getActiveTransaction)();if(s.WINDOW.document.hidden&&e){const t="cancelled",{op:r,status:n}=(0,i.spanToJSON)(e);a.DEBUG_BUILD&&o.logger.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${r}`),n||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):a.DEBUG_BUILD&&o.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(847).GLOBAL_OBJ},(e,t,r)=>{"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.r(t),r.d(t,{GLOBAL_OBJ:()=>i,getGlobalObject:()=>o,getGlobalSingleton:()=>a});const i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function o(){return i}function a(e,t,r){const n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractTraceparentData:()=>s,getActiveTransaction:()=>a,stripUrlQueryAndFragment:()=>i.stripUrlQueryAndFragment});var n=r(870),i=r(849),o=r(850);function a(e){return(e||(0,o.getCurrentHub)()).getScope().getTransaction()}const s=n.extractTraceparentData},(e,t,r)=>{"use strict";function n(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function i(e){return e.split(/[\?#]/,1)[0]}function o(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}function a(e){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}r.r(t),r.d(t,{getNumberOfUrlSegments:()=>o,getSanitizedUrlString:()=>a,parseUrl:()=>n,stripUrlQueryAndFragment:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{API_VERSION:()=>d,Hub:()=>m,ensureHubOnCarrier:()=>S,getCurrentHub:()=>v,getHubFromCarrier:()=>x,getIsolationScope:()=>b,getMainCarrier:()=>g,makeMain:()=>y,runWithAsyncContext:()=>w,setAsyncContextStrategy:()=>E,setHubOnCarrier:()=>T});var n=r(856),i=r(861),o=r(860),a=r(857),s=r(847),u=r(851),c=r(852),l=r(853),f=r(859),p=r(877);const d=parseFloat(p.SDK_VERSION),h=100;class m{constructor(e,t,r,n=d){let i,o;this._version=n,t?i=t:(i=new l.Scope,i.setClient(e)),r?o=r:(o=new l.Scope,o.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let r;try{r=e(t)}catch(e){throw this.popScope(),e}return(0,n.isThenable)(r)?r.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const r=this._lastEventId=t&&t.event_id?t.event_id:(0,i.uuid4)(),n=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:n,...t,event_id:r}),r}captureMessage(e,t,r){const n=this._lastEventId=r&&r.event_id?r.event_id:(0,i.uuid4)(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:n}),n}captureEvent(e,t){const r=t&&t.event_id?t.event_id:(0,i.uuid4)();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...t,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:r,client:n}=this.getStackTop();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=h}=n.getOptions&&n.getOptions()||{};if(s<=0)return;const u={timestamp:(0,o.dateTimestampInSeconds)(),...e},c=i?(0,a.consoleSandbox)((()=>i(u,t))):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:r}=this.getStackTop();r&&e(t)}run(e){const t=y(this);try{e(this)}finally{y(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return c.DEBUG_BUILD&&a.logger.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const r=this._callExtensionMethod("startTransaction",e,t);if(c.DEBUG_BUILD&&!r){this.getClient()?a.logger.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):a.logger.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,f.closeSession)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:r}=this.getStackTop(),{release:n,environment:i=u.DEFAULT_ENVIRONMENT}=r&&r.getOptions()||{},{userAgent:o}=s.GLOBAL_OBJ.navigator||{},a=(0,f.makeSession)({release:n,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,f.updateSession)(c,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(e,...t){const r=g().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);c.DEBUG_BUILD&&a.logger.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function g(){return s.GLOBAL_OBJ.__SENTRY__=s.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},s.GLOBAL_OBJ}function y(e){const t=g(),r=x(t);return T(t,e),r}function v(){const e=g();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return _(e)}function b(){return v().getIsolationScope()}function _(e=g()){return O(e)&&!x(e).isOlderThan(d)||T(e,new m),x(e)}function S(e,t=_()){if(!O(e)||x(e).isOlderThan(d)){const r=t.getClient(),n=t.getScope(),i=t.getIsolationScope();T(e,new m(r,n.clone(),i.clone()))}}function E(e){const t=g();t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.acs=e}function w(e,t={}){const r=g();return r.__SENTRY__&&r.__SENTRY__.acs?r.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function O(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function x(e){return(0,s.getGlobalSingleton)("hub",(()=>new m),e)}function T(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_ENVIRONMENT:()=>n});const n="production"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scope:()=>f,getGlobalScope:()=>p,setGlobalScope:()=>d});var n=r(856),i=r(860),o=r(861),a=r(857),s=r(854),u=r(859),c=r(865);let l;class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=h()}static clone(e){return e?e.clone():new f}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,u.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof f){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if((0,n.isPlainObject)(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=h(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,i.dateTimestampInSeconds)(),...e},o=this._breadcrumbs;return o.push(n),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:r,_tags:n,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:l,_transactionName:f,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:r,tags:n,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:l,transactionName:f,span:p}}applyToEvent(e,t={},r=[]){(0,c.applyScopeDataToEvent)(e,this.getScopeData());const n=[...r,...(0,s.getGlobalEventProcessors)(),...this._eventProcessors];return(0,s.notifyEventProcessors)(n,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t&&t.event_id?t.event_id:(0,o.uuid4)();if(!this._client)return a.logger.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r&&r.event_id?r.event_id:(0,o.uuid4)();if(!this._client)return a.logger.warn("No client configured on scope - will not capture message!"),n;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){const r=t&&t.event_id?t.event_id:(0,o.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(a.logger.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function p(){return l||(l=new f),l}function d(e){l=e}function h(){return{traceId:(0,o.uuid4)(),spanId:(0,o.uuid4)().substring(16)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalEventProcessor:()=>c,getGlobalEventProcessors:()=>u,notifyEventProcessors:()=>l});var n=r(847),i=r(855),o=r(857),a=r(856),s=r(852);function u(){return(0,n.getGlobalSingleton)("globalEventProcessors",(()=>[]))}function c(e){u().push(e)}function l(e,t,r,n=0){return new i.SyncPromise(((i,u)=>{const c=e[n];if(null===t||"function"!=typeof c)i(t);else{const f=c({...t},r);s.DEBUG_BUILD&&c.id&&null===f&&o.logger.log(`Event processor "${c.id}" dropped event`),(0,a.isThenable)(f)?f.then((t=>l(e,t,r,n+1).then(i))).then(null,u):l(e,f,r,n+1).then(i).then(null,u)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>s,rejectedSyncPromise:()=>a,resolvedSyncPromise:()=>o});var n,i=r(856);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,r)=>{let n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.isThenable)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>s,isDOMException:()=>u,isElement:()=>h,isError:()=>i,isErrorEvent:()=>a,isEvent:()=>d,isInstanceOf:()=>b,isNaN:()=>v,isParameterizedString:()=>l,isPlainObject:()=>p,isPrimitive:()=>f,isRegExp:()=>m,isString:()=>c,isSyntheticEvent:()=>y,isThenable:()=>g,isVueViewModel:()=>_});const n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function f(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&b(e,Event)}function h(e){return"undefined"!=typeof Element&&b(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function y(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function b(e,t){try{return e instanceof t}catch(e){return!1}}function _(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONSOLE_LEVELS:()=>o,consoleSandbox:()=>s,logger:()=>u,originalConsoleMethods:()=>a});var n=r(858),i=r(847);const o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,r={},n=Object.keys(a);n.forEach((e=>{const n=a[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}const u=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return n.DEBUG_BUILD?o.forEach((r=>{t[r]=(...t)=>{e&&s((()=>{i.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>u,makeSession:()=>a,updateSession:()=>s});var n=r(860),i=r(861),o=r(862);function a(e){const t=(0,n.timestampInSeconds)(),r={sid:(0,i.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.dropUndefinedKeys)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&s(r,e),r}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.timestampInSeconds)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.uuid4)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_browserPerformanceTimeOriginMode:()=>u,browserPerformanceTimeOrigin:()=>c,dateTimestampInSeconds:()=>o,timestampInSeconds:()=>a,timestampWithMs:()=>s});var n=r(847);const i=1e3;function o(){return Date.now()/i}const a=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return o;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/i}(),s=a;let u;const c=(()=>{const{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return void(u="none");const t=36e5,r=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,c="number"==typeof s?Math.abs(s+r-i):t;return a||c<t?o<=c?(u="timeOrigin",e.timeOrigin):(u="navigationStart",s):(u="dateNow",i)})()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>d,addExceptionMechanism:()=>l,addExceptionTypeValue:()=>c,arrayify:()=>m,checkOrSetAlreadyCaught:()=>h,getEventDescription:()=>u,parseSemver:()=>p,uuid4:()=>a});var n=r(862),i=r(864),o=r(847);function a(){const e=o.GLOBAL_OBJ,t=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){const{message:t,event_id:r}=e;if(t)return t;const n=s(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function c(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function l(e,t){const r=s(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n&&n.data,...t.data};r.mechanism.data=e}}const f=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function p(e){const t=e.match(f)||[],r=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function d(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,o=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-r),o).map((e=>(0,i.snipLine)(e,0))),t.context_line=(0,i.snipLine)(e[Math.min(n-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,n),o+1+r).map((e=>(0,i.snipLine)(e,0)))}function h(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch(e){}return!1}function m(e){return Array.isArray(e)?e:[e]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonEnumerableProperty:()=>c,convertToPlainObject:()=>d,dropUndefinedKeys:()=>y,extractExceptionKeysForMessage:()=>g,fill:()=>u,getOriginalFunction:()=>f,markFunctionWrapped:()=>l,objectify:()=>b,urlEncode:()=>p});var n=r(863),i=r(858),o=r(856),a=r(857),s=r(864);function u(e,t,r){if(!(t in e))return;const n=e[t],i=r(n);"function"==typeof i&&l(i,n),e[t]=i}function c(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){i.DEBUG_BUILD&&a.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,c(e,"__sentry_original__",t)}catch(e){}}function f(e){return e.__sentry_original__}function p(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function d(e){if((0,o.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if((0,o.isEvent)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.isInstanceOf)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,o.isElement)(e)?(0,n.htmlTreeAsString)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function g(e,t=40){const r=Object.keys(d(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,s.truncate)(r[0],t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,s.truncate)(n,t)}return""}function y(e){return v(e,new Map)}function v(e,t){if(function(e){if(!(0,o.isPlainObject)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const r=t.get(e);if(void 0!==r)return r;const n={};t.set(e,n);for(const r of Object.keys(e))void 0!==e[r]&&(n[r]=v(e[r],t));return n}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(v(e,t))})),n}return e}function b(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case(0,o.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponentName:()=>l,getDomElement:()=>c,getLocationHref:()=>u,htmlTreeAsString:()=>a});var n=r(856);const i=(0,r(847).getGlobalObject)(),o=80;function a(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,u=0;const c=" > ",l=c.length;let f;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||o;for(;r&&a++<n&&(f=s(r,p),!("html"===f||a>1&&u+i.length*l+f.length>=d));)i.push(f),u+=f.length,r=r.parentNode;return i.reverse().join(c)}catch(e){return"<unknown>"}}function s(e,t){const r=e,o=[];let a,s,u,c,l;if(!r||!r.tagName)return"";if(i.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;o.push(r.tagName.toLowerCase());const f=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(f&&f.length)f.forEach((e=>{o.push(`[${e[0]}="${e[1]}"]`)}));else if(r.id&&o.push(`#${r.id}`),a=r.className,a&&(0,n.isString)(a))for(s=a.split(/\s+/),l=0;l<s.length;l++)o.push(`.${s[l]}`);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)u=p[l],c=r.getAttribute(u),c&&o.push(`[${u}="${c}"]`);return o.join("")}function u(){try{return i.document.location.href}catch(e){return""}}function c(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function l(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>s,safeJoin:()=>a,snipLine:()=>o,stringMatchesSomePattern:()=>u,truncate:()=>i});var n=r(856);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`'{snip} ${r}`),o<n&&(r+=" {snip}"),r}function a(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const i=e[t];try{(0,n.isVueViewModel)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function s(e,t,r=!1){return!!(0,n.isString)(e)&&((0,n.isRegExp)(t)?t.test(e):!!(0,n.isString)(t)&&(r?e===t:e.includes(t)))}function u(e,t=[],r=!1){return t.some((t=>s(e,t,r)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>u,mergeAndOverwriteScopeData:()=>l,mergeScopeData:()=>c});var n=r(862),i=r(861),o=r(866),a=r(876),s=r(869);function u(e,t){const{fingerprint:r,span:u,breadcrumbs:c,sdkProcessingMetadata:l}=t;!function(e,t){const{extra:r,tags:i,user:o,contexts:a,level:s,transactionName:u}=t,c=(0,n.dropUndefinedKeys)(r);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=(0,n.dropUndefinedKeys)(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=(0,n.dropUndefinedKeys)(o);f&&Object.keys(f).length&&(e.user={...f,...e.user});const p=(0,n.dropUndefinedKeys)(a);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});s&&(e.level=s);u&&(e.transaction=u)}(e,t),u&&function(e,t){e.contexts={trace:(0,s.spanToTraceContext)(t),...e.contexts};const r=(0,a.getRootSpan)(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:(0,o.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const n=(0,s.spanToJSON)(r).description;n&&(e.tags={transaction:n,...e.tags})}}(e,u),function(e,t){e.fingerprint=e.fingerprint?(0,i.arrayify)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,c),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,l)}function c(e,t){const{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:f,attachments:p,propagationContext:d,transactionName:h,span:m}=t;l(e,"extra",r),l(e,"tags",n),l(e,"user",i),l(e,"contexts",o),l(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function l(e,t,r){if(r&&Object.keys(r).length){e[t]={...e[t]};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDynamicSamplingContextFromClient:()=>u,getDynamicSamplingContextFromSpan:()=>c});var n=r(862),i=r(851),o=r(867),a=r(876),s=r(869);function u(e,t,r){const o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=r&&r.getUser()||{},u=(0,n.dropUndefinedKeys)({environment:o.environment||i.DEFAULT_ENVIRONMENT,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",u),u}function c(e){const t=(0,o.getClient)();if(!t)return{};const r=u((0,s.spanToJSON)(e).trace_id||"",t,(0,o.getCurrentScope)()),n=(0,a.getRootSpan)(e);if(!n)return r;const i=n&&n._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:c,source:l}=n.metadata;null!=c&&(r.sample_rate=`${c}`);const f=(0,s.spanToJSON)(n);return l&&"url"!==l&&(r.transaction=f.description),r.sampled=String((0,s.spanIsSampled)(n)),t.emit&&t.emit("createDsc",r),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBreadcrumb:()=>y,captureCheckIn:()=>C,captureEvent:()=>m,captureException:()=>d,captureMessage:()=>h,captureSession:()=>F,close:()=>A,configureScope:()=>g,endSession:()=>j,flush:()=>R,getClient:()=>D,getCurrentScope:()=>M,isInitialized:()=>N,lastEventId:()=>P,setContext:()=>v,setExtra:()=>_,setExtras:()=>b,setTag:()=>E,setTags:()=>S,setUser:()=>w,startSession:()=>L,startTransaction:()=>k,withActiveSpan:()=>T,withIsolationScope:()=>x,withMonitor:()=>I,withScope:()=>O});var n=r(857),i=r(861),o=r(860),a=r(856),s=r(847),u=r(851),c=r(852),l=r(850),f=r(859),p=r(868);function d(e,t){return(0,l.getCurrentHub)().captureException(e,(0,p.parseEventHintOrCaptureContext)(t))}function h(e,t){const r="string"==typeof t?t:void 0,n="string"!=typeof t?{captureContext:t}:void 0;return(0,l.getCurrentHub)().captureMessage(e,r,n)}function m(e,t){return(0,l.getCurrentHub)().captureEvent(e,t)}function g(e){(0,l.getCurrentHub)().configureScope(e)}function y(e,t){(0,l.getCurrentHub)().addBreadcrumb(e,t)}function v(e,t){(0,l.getCurrentHub)().setContext(e,t)}function b(e){(0,l.getCurrentHub)().setExtras(e)}function _(e,t){(0,l.getCurrentHub)().setExtra(e,t)}function S(e){(0,l.getCurrentHub)().setTags(e)}function E(e,t){(0,l.getCurrentHub)().setTag(e,t)}function w(e){(0,l.getCurrentHub)().setUser(e)}function O(...e){const t=(0,l.getCurrentHub)();if(2===e.length){const[r,n]=e;return r?t.withScope((()=>(t.getStackTop().scope=r,n(r)))):t.withScope(n)}return t.withScope(e[0])}function x(e){return(0,l.runWithAsyncContext)((()=>e((0,l.getIsolationScope)())))}function T(e,t){return O((r=>(r.setSpan(e),t(r))))}function k(e,t){return(0,l.getCurrentHub)().startTransaction({...e},t)}function C(e,t){const r=M(),o=D();if(o){if(o.captureCheckIn)return o.captureCheckIn(e,t,r);c.DEBUG_BUILD&&n.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else c.DEBUG_BUILD&&n.logger.warn("Cannot capture check-in. No client defined.");return(0,i.uuid4)()}function I(e,t,r){const n=C({monitorSlug:e,status:"in_progress"},r),i=(0,o.timestampInSeconds)();function s(t){C({monitorSlug:e,status:t,checkInId:n,duration:(0,o.timestampInSeconds)()-i})}let u;try{u=t()}catch(e){throw s("error"),e}return(0,a.isThenable)(u)?Promise.resolve(u).then((()=>{s("ok")}),(()=>{s("error")})):s("ok"),u}async function R(e){const t=D();return t?t.flush(e):(c.DEBUG_BUILD&&n.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function A(e){const t=D();return t?t.close(e):(c.DEBUG_BUILD&&n.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function P(){return(0,l.getCurrentHub)().lastEventId()}function D(){return(0,l.getCurrentHub)().getClient()}function N(){return!!D()}function M(){return(0,l.getCurrentHub)().getScope()}function L(e){const t=D(),r=(0,l.getIsolationScope)(),n=M(),{release:i,environment:o=u.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:a}=s.GLOBAL_OBJ.navigator||{},c=(0,f.makeSession)({release:i,environment:o,user:n.getUser()||r.getUser(),...a&&{userAgent:a},...e}),p=r.getSession();return p&&"ok"===p.status&&(0,f.updateSession)(p,{status:"exited"}),j(),r.setSession(c),n.setSession(c),c}function j(){const e=(0,l.getIsolationScope)(),t=M(),r=t.getSession()||e.getSession();r&&(0,f.closeSession)(r),B(),e.setSession(),t.setSession()}function B(){const e=(0,l.getIsolationScope)(),t=M(),r=D(),n=t.getSession()||e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function F(e=!1){e?j():B()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDebugIds:()=>m,applyDebugMeta:()=>g,parseEventHintOrCaptureContext:()=>y,prepareEvent:()=>d});var n=r(861),i=r(860),o=r(864),a=r(847),s=r(872),u=r(851),c=r(854),l=r(853),f=r(865),p=r(869);function d(e,t,r,a,d,h){const{normalizeDepth:y=3,normalizeMaxBreadth:v=1e3}=e,b={...t,event_id:t.event_id||r.event_id||(0,n.uuid4)(),timestamp:t.timestamp||(0,i.dateTimestampInSeconds)()},_=r.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:r,release:n,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?r:u.DEFAULT_ENVIRONMENT);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,o.truncate)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.truncate)(s.value,a));const c=e.request;c&&c.url&&(c.url=(0,o.truncate)(c.url,a))}(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(b,_),void 0===t.type&&m(b,e.stackParser);const S=function(e,t){if(!t)return e;const r=e?e.clone():new l.Scope;return r.update(t),r}(a,r.captureContext);r.mechanism&&(0,n.addExceptionMechanism)(b,r.mechanism);const E=d&&d.getEventProcessors?d.getEventProcessors():[],w=(0,l.getGlobalScope)().getScopeData();if(h){const e=h.getScopeData();(0,f.mergeScopeData)(w,e)}if(S){const e=S.getScopeData();(0,f.mergeScopeData)(w,e)}const O=[...r.attachments||[],...w.attachments];O.length&&(r.attachments=O),(0,f.applyScopeDataToEvent)(b,w);const x=[...E,...(0,c.getGlobalEventProcessors)(),...w.eventProcessors];return(0,c.notifyEventProcessors)(x,b,r).then((e=>(e&&g(e),"number"==typeof y&&y>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,s.normalize)(e.data,t,r)}})))},...e.user&&{user:(0,s.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,s.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,s.normalize)(e.extra,t,r)}};e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,s.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>{const n=(0,p.spanToJSON)(e).data;return n&&(e.data=(0,s.normalize)(n,t,r)),e})));return n}(e,y,v):e)))}const h=new WeakMap;function m(e,t){const r=a.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let n;const i=h.get(t);i?n=i:(n=new Map,h.set(t,n));const o=Object.keys(r).reduce(((e,i)=>{let o;const a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.filename){e[n.filename]=r[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}function g(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.keys(t).forEach((e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}function y(e){if(e)return function(e){return e instanceof l.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>v.includes(e)))}(e)?{captureContext:e}:e}const v=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACE_FLAG_NONE:()=>a,TRACE_FLAG_SAMPLED:()=>s,spanIsSampled:()=>d,spanTimeInputToSeconds:()=>l,spanToJSON:()=>p,spanToTraceContext:()=>u,spanToTraceHeader:()=>c});var n=r(862),i=r(870),o=r(860);const a=0,s=1;function u(e){const{spanId:t,traceId:r}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:u,origin:c}=p(e);return(0,n.dropUndefinedKeys)({data:i,op:o,parent_span_id:a,span_id:t,status:s,tags:u,trace_id:r,origin:c})}function c(e){const{traceId:t,spanId:r}=e.spanContext(),n=d(e);return(0,i.generateSentryTraceHeader)(t,r,n)}function l(e){return"number"==typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):(0,o.timestampInSeconds)()}function f(e){return e>9999999999?e/1e3:e}function p(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function d(e){const{traceFlags:t}=e.spanContext();return Boolean(t&s)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>o,extractTraceparentData:()=>a,generateSentryTraceHeader:()=>c,propagationContextFromHeaders:()=>u,tracingContextFromHeaders:()=>s});var n=r(871),i=r(861);const o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){if(!e)return;const t=e.match(o);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function s(e,t){const r=a(e),o=(0,n.baggageHeaderToDynamicSamplingContext)(t),{traceId:s,parentSpanId:u,parentSampled:c}=r||{};return r?{traceparentData:r,dynamicSamplingContext:o||{},propagationContext:{traceId:s||(0,i.uuid4)(),parentSpanId:u||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:c,dsc:o||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}}function u(e,t){const r=a(e),o=(0,n.baggageHeaderToDynamicSamplingContext)(t),{traceId:s,parentSpanId:u,parentSampled:c}=r||{};return r?{traceId:s||(0,i.uuid4)(),parentSpanId:u||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:c,dsc:o||{}}:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}function c(e=(0,i.uuid4)(),t=(0,i.uuid4)().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BAGGAGE_HEADER_NAME:()=>a,MAX_BAGGAGE_STRING_LENGTH:()=>c,SENTRY_BAGGAGE_KEY_PREFIX:()=>s,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>u,baggageHeaderToDynamicSamplingContext:()=>l,dynamicSamplingContextToSentryBaggageHeader:()=>f});var n=r(858),i=r(856),o=r(857);const a="baggage",s="sentry-",u=/^sentry-/,c=8192;function l(e){if(!(0,i.isString)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const r=p(t);for(const t of Object.keys(r))e[t]=r[t];return e}),{});else{if(!e)return;t=p(e)}const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(u)){e[t.slice(s.length)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function f(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,r],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===i?a:`${e},${a}`;return s.length>c?(n.DEBUG_BUILD&&o.logger.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e)),{}))}function p(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(e[t]=r,e)),{})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>s,normalizeToSize:()=>u,normalizeUrlToBase:()=>l,walk:()=>c});var n=r(856),i=r(873),o=r(862),a=r(874);function s(e,t=100,r=1/0){try{return c("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function u(e,t=3,r=102400){const n=s(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?u(e,t-1,r):n;var i}function c(e,t,s=1/0,u=1/0,l=(0,i.memoBuilder)()){const[f,p]=l;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,n.isNaN)(t))return t;const d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==r.g&&t===r.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.isVueViewModel)(t))return"[VueViewModel]";if((0,n.isSyntheticEvent)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,a.getFunctionName)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const h="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:s;if(0===h)return d.replace("object ","");if(f(t))return"[Circular ~]";const m=t;if(m&&"function"==typeof m.toJSON)try{return c("",m.toJSON(),h-1,u,l)}catch(e){}const g=Array.isArray(t)?[]:{};let y=0;const v=(0,o.convertToPlainObject)(t);for(const e in v){if(!Object.prototype.hasOwnProperty.call(v,e))continue;if(y>=u){g[e]="[MaxProperties ~]";break}const t=v[e];g[e]=c(e,t,h-1,u,l),y++}return p(t),g}function l(e,t){const r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let n=e;try{n=decodeURI(e)}catch(e){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}},(e,t,r)=>{"use strict";function n(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++){if(t[e]===r)return!0}return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}r.r(t),r.d(t,{memoBuilder:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStackParser:()=>s,filenameIsInApp:()=>n.filenameIsInApp,getFunctionName:()=>f,nodeStackLineParser:()=>p,stackParserFromStackParserOptions:()=>u,stripSentryFramesAndReverse:()=>c});var n=r(875);const i=50,o=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0)=>{const n=[],a=e.split("\n");for(let e=r;e<a.length;e++){const r=a[e];if(r.length>1024)continue;const s=o.test(r)?r.replace(o,"$1"):r;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){n.push(t);break}}if(n.length>=i)break}}return c(n)}}function u(e){return Array.isArray(e)?s(...e):e}function c(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),a.test(t[t.length-1].function||"")&&(t.pop(),a.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,i).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}const l="<anonymous>";function f(e){try{return e&&"function"==typeof e&&e.name||l}catch(e){return l}}function p(e){return[90,(0,n.node)(e)]}},(e,t,r)=>{"use strict";function n(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function i(e){const t=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return i=>{const o=i.match(r);if(o){let t,r,i,a,s;if(o[1]){i=o[1];let e=i.lastIndexOf(".");if("."===i[e-1]&&e--,e>0){t=i.slice(0,e),r=i.slice(e+1);const n=t.indexOf(".Module");n>0&&(i=i.slice(n+1),t=t.slice(0,n))}a=void 0}r&&(a=t,s=r),"<anonymous>"===r&&(s=void 0,i=void 0),void 0===i&&(s=s||"<anonymous>",i=a?`${a}.${s}`:s);let u=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2];const c="native"===o[5];return u&&u.match(/\/[A-Z]:/)&&(u=u.slice(1)),u||!o[5]||c||(u=o[5]),{filename:u,module:e?e(u):void 0,function:i,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:n(u,c)}}if(i.match(t))return{filename:i}}}r.r(t),r.d(t,{filenameIsInApp:()=>n,node:()=>i})},(e,t,r)=>{"use strict";function n(e){return e.transaction}r.r(t),r.d(t,{getRootSpan:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SDK_VERSION:()=>n});const n="7.114.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>b,addFidInstrumentationHandler:()=>E,addInpInstrumentationHandler:()=>w,addLcpInstrumentationHandler:()=>_,addPerformanceInstrumentationHandler:()=>O,addTtfbInstrumentationHandler:()=>S});var n=r(857),i=r(874),o=r(844),a=r(879),s=r(887),u=r(889),c=r(891),l=r(885),f=r(892);const p={},d={};let h,m,g,y,v;function b(e,t=!1){return A("cls",e,T,h,t)}function _(e,t=!1){return A("lcp",e,C,g,t)}function S(e){return A("ttfb",e,I,y)}function E(e){return A("fid",e,k,m)}function w(e){return A("inp",e,R,v)}function O(e,t){return P(e,t),d[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,l.observe)(e,(t=>{x(e,{entries:t})}),t)}(e),d[e]=!0),D(e,t)}function x(e,t){const r=p[e];if(r&&r.length)for(const a of r)try{a(t)}catch(t){o.DEBUG_BUILD&&n.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(a)}\nError:`,t)}}function T(){return(0,a.onCLS)((e=>{x("cls",{metric:e}),h=e}),{reportAllChanges:!0})}function k(){return(0,s.onFID)((e=>{x("fid",{metric:e}),m=e}))}function C(){return(0,c.onLCP)((e=>{x("lcp",{metric:e}),g=e}))}function I(){return(0,f.onTTFB)((e=>{x("ttfb",{metric:e}),y=e}))}function R(){return(0,u.onINP)((e=>{x("inp",{metric:e}),v=e}))}function A(e,t,r,n,i=!1){let o;return P(e,t),d[e]||(o=r(),d[e]=!0),n&&t({metric:n}),D(e,t,i?o:void 0)}function P(e,t){p[e]=p[e]||[],p[e].push(t)}function D(e,t,r){return()=>{r&&r();const n=p[e];if(!n)return;const i=n.indexOf(t);-1!==i&&n.splice(i,1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onCLS:()=>s});var n=r(880),i=r(881),o=r(885),a=r(886);const s=(e,t={})=>{const r=(0,i.initMetric)("CLS",0);let s,u=0,c=[];const l=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=c[0],n=c[c.length-1];u&&0!==c.length&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(u+=e.value,c.push(e)):(u=e.value,c=[e]),u>r.value&&(r.value=u,r.entries=c,s&&s())}}))},f=(0,o.observe)("layout-shift",l);if(f){s=(0,n.bindReporter)(e,r,t.reportAllChanges);const i=()=>{l(f.takeRecords()),s(!0)};return(0,a.onHidden)(i),i}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindReporter:()=>n});const n=(e,t,r)=>{let n,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(n||0),(i||void 0===n)&&(n=t.value,t.delta=i,e(t)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>s});var n=r(846),i=r(882),o=r(883),a=r(884);const s=(e,t)=>{const r=(0,a.getNavigationEntry)();let s="navigate";return r&&(s=n.WINDOW.document&&n.WINDOW.document.prerendering||(0,o.getActivationStart)()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:(0,i.generateUniqueID)(),navigationType:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateUniqueID:()=>n});const n=()=>`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>i});var n=r(884);const i=()=>{const e=(0,n.getNavigationEntry)();return e&&e.activationStart||0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNavigationEntry:()=>i});var n=r(846);const i=()=>n.WINDOW.__WEB_VITALS_POLYFILL__?n.WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=n.WINDOW.performance.timing,t=n.WINDOW.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(r[t]=Math.max(e[t]-e.navigationStart,0));return r})()):n.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{observe:()=>n});const n=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onHidden:()=>i});var n=r(846);const i=(e,t)=>{const r=i=>{"pagehide"!==i.type&&"hidden"!==n.WINDOW.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};n.WINDOW.document&&(addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onFID:()=>u});var n=r(880),i=r(888),o=r(881),a=r(885),s=r(886);const u=e=>{const t=(0,i.getVisibilityWatcher)(),r=(0,o.initMetric)("FID");let u;const c=e=>{e.startTime<t.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),u(!0))},l=e=>{e.forEach(c)},f=(0,a.observe)("first-input",l);u=(0,n.bindReporter)(e,r),f&&(0,s.onHidden)((()=>{l(f.takeRecords()),f.disconnect()}),!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getVisibilityWatcher:()=>a});var n=r(846),i=r(886);let o=-1;const a=()=>(o<0&&(n.WINDOW.document&&n.WINDOW.document.visibilityState&&(o="hidden"!==n.WINDOW.document.visibilityState||n.WINDOW.document.prerendering?1/0:0),(0,i.onHidden)((({timeStamp:e})=>{o=e}),!0)),{get firstHiddenTime(){return o}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onINP:()=>p});var n=r(880),i=r(881),o=r(885),a=r(886),s=r(890);const u=()=>(0,s.getInteractionCount)(),c=[],l={},f=e=>{const t=c[c.length-1],r=l[e.interactionId];if(r||c.length<10||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};l[t.id]=t,c.push(t)}c.sort(((e,t)=>t.latency-e.latency)),c.splice(10).forEach((e=>{delete l[e.id]}))}},p=(e,t)=>{t=t||{},(0,s.initInteractionCountPolyfill)();const r=(0,i.initMetric)("INP");let l;const p=e=>{e.forEach((e=>{if(e.interactionId&&f(e),"first-input"===e.entryType){!c.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&f(e)}}));const t=(()=>{const e=Math.min(c.length-1,Math.floor(u()/50));return c[e]})();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,l())},d=(0,o.observe)("event",p,{durationThreshold:t.durationThreshold||40});l=(0,n.bindReporter)(e,r,t.reportAllChanges),d&&(d.observe({type:"first-input",buffered:!0}),(0,a.onHidden)((()=>{p(d.takeRecords()),r.value<0&&u()>0&&(r.value=0,r.entries=[]),l(!0)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>c,initInteractionCountPolyfill:()=>l});var n=r(885);let i=0,o=1/0,a=0;const s=e=>{e.forEach((e=>{e.interactionId&&(o=Math.min(o,e.interactionId),a=Math.max(a,e.interactionId),i=a?(a-o)/7+1:0)}))};let u;const c=()=>u?i:performance.interactionCount||0,l=()=>{"interactionCount"in performance||u||(u=(0,n.observe)("event",s,{type:"event",buffered:!0,durationThreshold:0}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onLCP:()=>f});var n=r(846),i=r(880),o=r(883),a=r(888),s=r(881),u=r(885),c=r(886);const l={},f=e=>{const t=(0,a.getVisibilityWatcher)(),r=(0,s.initMetric)("LCP");let f;const p=e=>{const n=e[e.length-1];if(n){const e=Math.max(n.startTime-(0,o.getActivationStart)(),0);e<t.firstHiddenTime&&(r.value=e,r.entries=[n],f())}},d=(0,u.observe)("largest-contentful-paint",p);if(d){f=(0,i.bindReporter)(e,r);const t=()=>{l[r.id]||(p(d.takeRecords()),d.disconnect(),l[r.id]=!0,f(!0))};return["keydown","click"].forEach((e=>{n.WINDOW.document&&addEventListener(e,t,{once:!0,capture:!0})})),(0,c.onHidden)(t,!0),t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onTTFB:()=>c});var n=r(846),i=r(880),o=r(883),a=r(884),s=r(881);const u=e=>{n.WINDOW.document&&(n.WINDOW.document.prerendering?addEventListener("prerenderingchange",(()=>u(e)),!0):"complete"!==n.WINDOW.document.readyState?addEventListener("load",(()=>u(e)),!0):setTimeout(e,0))},c=(e,t)=>{t=t||{};const r=(0,s.initMetric)("TTFB"),n=(0,i.bindReporter)(e,r,t.reportAllChanges);u((()=>{const e=(0,a.getNavigationEntry)();if(e){if(r.value=Math.max(e.responseStart-(0,o.getActivationStart)(),0),r.value<0||r.value>performance.now())return;r.entries=[e],n(!0)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addMeasureSpans:()=>N,_addResourceSpans:()=>L,addPerformanceEntries:()=>D,startTrackingINP:()=>A,startTrackingInteractions:()=>R,startTrackingLongTasks:()=>I,startTrackingWebVitals:()=>C});var n=r(848),i=r(867),o=r(895),a=r(902),s=r(869),u=r(905),c=r(899),l=r(906),f=r(860),p=r(863),d=r(857),h=r(849),m=r(844),g=r(878),y=r(846),v=r(888),b=r(894),_=r(884);const S=2147483647;function E(e){return e/1e3}function w(){return y.WINDOW&&y.WINDOW.addEventListener&&y.WINDOW.performance}let O,x,T=0,k={};function C(){const e=w();if(e&&f.browserPerformanceTimeOrigin){e.mark&&y.WINDOW.performance.mark("sentry-tracing-init");const t=(0,g.addFidInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const r=E(f.browserPerformanceTimeOrigin),n=E(t.startTime);m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding FID"),k.fid={value:e.value,unit:"millisecond"},k["mark.fid"]={value:r+n,unit:"second"}})),r=(0,g.addClsInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding CLS"),k.cls={value:e.value,unit:""},x=t)}),!0),n=(0,g.addLcpInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding LCP"),k.lcp={value:e.value,unit:"millisecond"},O=t)}),!0),i=(0,g.addTtfbInstrumentationHandler)((({metric:e})=>{e.entries[e.entries.length-1]&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding TTFB"),k.ttfb={value:e.value,unit:"millisecond"})}));return()=>{t(),r(),n(),i()}}return()=>{}}function I(){(0,g.addPerformanceInstrumentationHandler)("longtask",(({entries:e})=>{for(const t of e){const e=(0,n.getActiveTransaction)();if(!e)return;const r=E(f.browserPerformanceTimeOrigin+t.startTime),i=E(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}}))}function R(){(0,g.addPerformanceInstrumentationHandler)("event",(({entries:e})=>{for(const t of e){const e=(0,n.getActiveTransaction)();if(!e)return;if("click"===t.name){const r=E(f.browserPerformanceTimeOrigin+t.startTime),n=E(t.duration),i={description:(0,p.htmlTreeAsString)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+n},o=(0,p.getComponentName)(t.target);o&&(i.attributes={"ui.component_name":o}),e.startChild(i)}}}))}function A(e,t){if(w()&&f.browserPerformanceTimeOrigin){const r=function(e,t){return(0,g.addInpInstrumentationHandler)((({metric:r})=>{if(void 0===r.value)return;const n=r.entries.find((e=>e.duration===r.value&&void 0!==P[e.name])),s=(0,i.getClient)();if(!n||!s)return;const u=P[n.name],h=s.getOptions(),g=E(f.browserPerformanceTimeOrigin+n.startTime),v=E(r.value),b=void 0!==n.interactionId?e[n.interactionId]:void 0;if(void 0===b)return;const{routeName:_,parentContext:S,activeTransaction:w,user:O,replayId:x}=b,T=void 0!==O?O.email||O.id||O.ip_address:void 0,k=void 0!==w?w.getProfileId():void 0,C=new o.Span({startTimestamp:g,endTimestamp:g+v,op:`ui.interaction.${u}`,name:(0,p.htmlTreeAsString)(n.target),attributes:{release:h.release,environment:h.environment,transaction:_,...void 0!==T&&""!==T?{user:T}:{},...void 0!==k?{profile_id:k}:{},...void 0!==x?{replay_id:x}:{}},exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),I=function(e,t,r){if(!(0,c.hasTracingEnabled)(t))return!1;let n;n=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:y.WINDOW.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;if(!(0,l.isValidSampleRate)(n))return m.DEBUG_BUILD&&d.logger.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1;if(!0===n)return r;if(!1===n)return 0;return n*r}(S,h,t);if(I)if(Math.random()<I){const e=C?(0,a.createSpanEnvelope)([C],s.getDsn()):void 0,t=s&&s.getTransport();t&&e&&t.send(e).then(null,(e=>{m.DEBUG_BUILD&&d.logger.error("Error while sending interaction:",e)}))}else;}))}(e,t);return()=>{r()}}return()=>{}}const P={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function D(e){const t=w();if(!t||!y.WINDOW.performance.getEntries||!f.browserPerformanceTimeOrigin)return;m.DEBUG_BUILD&&d.logger.log("[Tracing] Adding & adjusting spans using Performance API");const r=E(f.browserPerformanceTimeOrigin),n=t.getEntries(),{op:i,start_timestamp:o}=(0,s.spanToJSON)(e);if(n.slice(T).forEach((t=>{const n=E(t.startTime),i=E(t.duration);if(!("navigation"===e.op&&o&&r+n<o))switch(t.entryType){case"navigation":!function(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{M(e,t,n,r)})),M(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),M(e,t,"fetch",r,"cache","domainLookupStart"),M(e,t,"domainLookup",r,"DNS"),function(e,t,r){t.responseEnd&&((0,b._startChild)(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+E(t.requestStart),endTimestamp:r+E(t.responseEnd)}),(0,b._startChild)(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+E(t.responseStart),endTimestamp:r+E(t.responseEnd)}))}(e,t,r)}(e,t,r);break;case"mark":case"paint":case"measure":{N(e,t,n,i,r);const o=(0,v.getVisibilityWatcher)(),a=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&a&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding FP"),k.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding FCP"),k.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":L(e,t,t.name,n,i,r)}})),T=Math.max(n.length-1,0),function(e){const t=y.WINDOW.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setTag("effectiveConnectionType",r.effectiveType),r.type&&e.setTag("connectionType",r.type),(0,b.isMeasurementValue)(r.rtt)&&(k["connection.rtt"]={value:r.rtt,unit:"millisecond"}));(0,b.isMeasurementValue)(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);(0,b.isMeasurementValue)(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){!function(e){const t=(0,_.getNavigationEntry)();if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(k),["fcp","fp","lcp"].forEach((e=>{if(!k[e]||!o||r>=o)return;const t=k[e].value,n=r+E(t),i=Math.abs(1e3*(n-o)),a=i-t;m.DEBUG_BUILD&&d.logger.log(`[Measurements] Normalized ${e} from ${t} to ${i} (${a})`),k[e].value=i}));const t=k["mark.fid"];t&&k.fid&&((0,b._startChild)(e,{description:"first input delay",endTimestamp:t.value+E(k.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete k["mark.fid"]),"fcp"in k||delete k.cls,Object.keys(k).forEach((e=>{(0,u.setMeasurement)(e,k[e].value,k[e].unit)})),function(e){O&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding LCP Data"),O.element&&e.setTag("lcp.element",(0,p.htmlTreeAsString)(O.element)),O.id&&e.setTag("lcp.id",O.id),O.url&&e.setTag("lcp.url",O.url.trim().slice(0,200)),e.setTag("lcp.size",O.size));x&&x.sources&&(m.DEBUG_BUILD&&d.logger.log("[Measurements] Adding CLS Data"),x.sources.forEach(((t,r)=>e.setTag(`cls.source.${r+1}`,(0,p.htmlTreeAsString)(t.node)))))}(e)}O=void 0,x=void 0,k={}}function N(e,t,r,n,i){const o=i+r,a=o+n;return(0,b._startChild)(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o}),o}function M(e,t,r,n,i,o){const a=o?t[o]:t[`${r}End`],s=t[`${r}Start`];s&&a&&(0,b._startChild)(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+E(s),endTimestamp:n+E(a)})}function L(e,t,r,n,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=(0,h.parseUrl)(r),s={};j(s,t,"transferSize","http.response_transfer_size"),j(s,t,"encodedBodySize","http.response_content_length"),j(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=r.includes(y.WINDOW.location.origin);const u=o+n,c=u+i;(0,b._startChild)(e,{description:r.replace(y.WINDOW.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:s})}function j(e,t,r,n){const i=t[r];null!=i&&i<S&&(e[n]=i)}},(e,t,r)=>{"use strict";function n(e){return"number"==typeof e&&isFinite(e)}function i(e,{startTimestamp:t,...r}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...r})}r.r(t),r.d(t,{_startChild:()=>i,isMeasurementValue:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Span:()=>h,SpanRecorder:()=>d});var n=r(861),i=r(860),o=r(857),a=r(862),s=r(852),u=r(896),c=r(900),l=r(876),f=r(869),p=r(901);class d{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class h{constructor(e={}){this._traceId=e.traceId||(0,n.uuid4)(),this._spanId=e.spanId||(0,n.uuid4)().substring(16),this._startTime=e.startTimestamp||(0,i.timestampInSeconds)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:e.origin||"manual",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]}set op(e){this.setAttribute(c.SEMANTIC_ATTRIBUTE_SENTRY_OP,e)}get origin(){return this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]}set origin(e){this.setAttribute(c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?f.TRACE_FLAG_SAMPLED:f.TRACE_FLAG_NONE}}startChild(e){const t=new h({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const r=(0,l.getRootSpan)(this);if(t.transaction=r,s.DEBUG_BUILD&&r){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${(0,f.spanToJSON)(t).description||"< unknown name >"}' (${r.spanContext().spanId}).`;o.logger.log(n),this._logMessage=n}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return(0,p.setHttpStatus)(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=(0,l.getRootSpan)(this);if(s.DEBUG_BUILD&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&o.logger.log(e.replace("Starting","Finishing"))}this._endTime=(0,f.spanTimeInputToSeconds)(e)}toTraceparent(){return(0,f.spanToTraceHeader)(this)}toContext(){return(0,a.dropUndefinedKeys)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,f.spanToTraceContext)(this)}getSpanJSON(){return(0,a.dropUndefinedKeys)({data:this._getData(),description:this._name,op:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:(0,u.getMetricSummaryJsonForSpan)(this),profile_id:this._attributes[c.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,r=Object.keys(e).length>0,n=Object.keys(t).length>0;if(r||n)return r&&n?{...e,...t}:r?e:t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getMetricSummaryJsonForSpan:()=>s,updateMetricSummaryOnActiveSpan:()=>u});var n=r(862),i=r(897);let o;function a(e){return o?o.get(e):void 0}function s(e){const t=a(e);if(!t)return;const r={};for(const[,[e,i]]of t)r[e]||(r[e]=[]),r[e].push((0,n.dropUndefinedKeys)(i));return r}function u(e,t,r,n,s,u){const c=(0,i.getActiveSpan)();if(c){const i=a(c)||new Map,l=`${e}:${t}@${n}`,f=i.get(u);if(f){const[,e]=f;i.set(u,[l,{min:Math.min(e.min,r),max:Math.max(e.max,r),count:e.count+=1,sum:e.sum+=r,tags:e.tags}])}else i.set(u,[l,{min:r,max:r,count:1,sum:r,tags:s}]);o||(o=new WeakMap),o.set(c,i)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{continueTrace:()=>b,getActiveSpan:()=>v,getCapturedScopesOnSpan:()=>O,startActiveSpan:()=>m,startInactiveSpan:()=>y,startSpan:()=>h,startSpanManual:()=>g,trace:()=>d});var n=r(870),i=r(857),o=r(862),a=r(852),s=r(850),u=r(869),c=r(866),l=r(867),f=r(898),p=r(899);function d(e,t,r=(()=>{}),n=(()=>{})){const i=(0,s.getCurrentHub)(),o=(0,l.getCurrentScope)(),a=o.getSpan(),u=S(e),c=_(i,{parentSpan:a,spanContext:u,forceTransaction:!1,scope:o});return o.setSpan(c),(0,f.handleCallbackErrors)((()=>t(c)),(e=>{c&&c.setStatus("internal_error"),r(e,c)}),(()=>{c&&c.end(),o.setSpan(a),n()}))}function h(e,t){const r=S(e);return(0,s.runWithAsyncContext)((()=>(0,l.withScope)(e.scope,(n=>{const i=(0,s.getCurrentHub)(),o=n.getSpan(),a=e.onlyIfParent&&!o?void 0:_(i,{parentSpan:o,spanContext:r,forceTransaction:e.forceTransaction,scope:n});return(0,f.handleCallbackErrors)((()=>t(a)),(()=>{if(a){const{status:e}=(0,u.spanToJSON)(a);e&&"ok"!==e||a.setStatus("internal_error")}}),(()=>a&&a.end()))}))))}const m=h;function g(e,t){const r=S(e);return(0,s.runWithAsyncContext)((()=>(0,l.withScope)(e.scope,(n=>{const i=(0,s.getCurrentHub)(),o=n.getSpan(),a=e.onlyIfParent&&!o?void 0:_(i,{parentSpan:o,spanContext:r,forceTransaction:e.forceTransaction,scope:n});function c(){a&&a.end()}return(0,f.handleCallbackErrors)((()=>t(a,c)),(()=>{if(a&&a.isRecording()){const{status:e}=(0,u.spanToJSON)(a);e&&"ok"!==e||a.setStatus("internal_error")}}))}))))}function y(e){if(!(0,p.hasTracingEnabled)())return;const t=S(e),r=(0,s.getCurrentHub)(),n=e.scope?e.scope.getSpan():v();if(e.onlyIfParent&&!n)return;const i=(e.scope||(0,l.getCurrentScope)()).clone();return _(r,{parentSpan:n,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function v(){return(0,l.getCurrentScope)().getSpan()}const b=({sentryTrace:e,baggage:t},r)=>{const u=(0,l.getCurrentScope)(),{traceparentData:c,dynamicSamplingContext:f,propagationContext:p}=(0,n.tracingContextFromHeaders)(e,t);u.setPropagationContext(p),a.DEBUG_BUILD&&c&&i.logger.log(`[Tracing] Continuing trace ${c.traceId}.`);const d={...c,metadata:(0,o.dropUndefinedKeys)({dynamicSamplingContext:f})};return r?(0,s.runWithAsyncContext)((()=>r(d))):d};function _(e,{parentSpan:t,spanContext:r,forceTransaction:n,scope:i}){if(!(0,p.hasTracingEnabled)())return;const a=(0,s.getIsolationScope)();let l;if(t&&!n)l=t.startChild(r);else if(t){const n=(0,c.getDynamicSamplingContextFromSpan)(t),{traceId:i,spanId:o}=t.spanContext(),a=(0,u.spanIsSampled)(t);l=e.startTransaction({traceId:i,parentSpanId:o,parentSampled:a,...r,metadata:{dynamicSamplingContext:n,...r.metadata}})}else{const{traceId:t,dsc:n,parentSpanId:o,sampled:s}={...a.getPropagationContext(),...i.getPropagationContext()};l=e.startTransaction({traceId:t,parentSpanId:o,parentSampled:s,...r,metadata:{dynamicSamplingContext:n,...r.metadata}})}return i.setSpan(l),function(e,t,r){e&&((0,o.addNonEnumerableProperty)(e,w,r),(0,o.addNonEnumerableProperty)(e,E,t))}(l,i,a),l}function S(e){if(e.startTime){const t={...e};return t.startTimestamp=(0,u.spanTimeInputToSeconds)(e.startTime),delete t.startTime,t}return e}const E="_sentryScope",w="_sentryIsolationScope";function O(e){return{scope:e[E],isolationScope:e[w]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleCallbackErrors:()=>i});var n=r(856);function i(e,t,r=(()=>{})){let i;try{i=e()}catch(e){throw t(e),r(),e}return function(e,t,r){if((0,n.isThenable)(e))return e.then((e=>(r(),e)),(e=>{throw t(e),r(),e}));return r(),e}(i,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasTracingEnabled:()=>i});var n=r(867);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,n.getClient)(),r=e||t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n});const n="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="profile_id"},(e,t,r)=>{"use strict";var n;function i(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}r.r(t),r.d(t,{SpanStatus:()=>n,getSpanStatusFromHttpCode:()=>i,setHttpStatus:()=>a,spanStatusfromHttpCode:()=>o}),function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(n||(n={}));const o=i;function a(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const r=i(t);"unknown_error"!==r&&e.setStatus(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createSpanEnvelope:()=>o});var n=r(903),i=r(904);function o(e,t){const r={sent_at:(new Date).toISOString()};t&&(r.dsn=(0,n.dsnToString)(t));const o=e.map(a);return(0,i.createEnvelope)(r,o)}function a(e){return[{type:"span"},e]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>s,dsnToString:()=>a,makeDsn:()=>c});var n=r(858),i=r(857);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){const{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`}function s(e){const t=o.exec(e);if(!t)return void(0,i.consoleSandbox)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[r,n,a="",s,c="",l]=t.slice(1);let f="",p=l;const d=p.split("/");if(d.length>1&&(f=d.slice(0,-1).join("/"),p=d.pop()),p){const e=p.match(/^\d+/);e&&(p=e[0])}return u({host:s,pass:a,path:f,projectId:p,port:c,protocol:r,publicKey:n})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){const t="string"==typeof e?s(e):u(e);if(t&&function(e){if(!n.DEBUG_BUILD)return!0;const{port:t,projectId:r,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(i.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(i.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(i.logger.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(i.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>s,createAttachmentEnvelopeItem:()=>d,createEnvelope:()=>a,createEventEnvelopeHeaders:()=>y,envelopeContainsItemType:()=>c,envelopeItemTypeToDataCategory:()=>m,forEachEnvelopeItem:()=>u,getSdkMetadataForEnvelopeHeader:()=>g,parseEnvelope:()=>p,serializeEnvelope:()=>f});var n=r(903),i=r(872),o=r(862);function a(e,t=[]){return[e,t]}function s(e,t){const[r,n]=e;return[r,[...n,t]]}function u(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function c(e,t){return u(e,((e,r)=>t.includes(r)))}function l(e,t){return(t||new TextEncoder).encode(e)}function f(e,t){const[r,n]=e;let o=JSON.stringify(r);function a(e){"string"==typeof o?o="string"==typeof e?o+e:[l(o,t),e]:o.push("string"==typeof e?l(e,t):e)}for(const e of n){const[t,r]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)a(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,i.normalize)(r))}a(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}(o)}function p(e,t,r){let n="string"==typeof e?t.encode(e):e;function i(e){const t=n.subarray(0,e);return n=n.subarray(e+1),t}function o(){let e=n.indexOf(10);return e<0&&(e=n.length),JSON.parse(r.decode(i(e)))}const a=o(),s=[];for(;n.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?i(t):o()])}return[a,s]}function d(e,t){const r="string"==typeof e.data?l(e.data,t):e.data;return[(0,o.dropUndefinedKeys)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}const h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function m(e){return h[e]}function g(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function y(e,t,r,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&i&&{dsn:(0,n.dsnToString)(i)},...a&&{trace:(0,o.dropUndefinedKeys)({...a})}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setMeasurement:()=>i});var n=r(848);function i(e,t,r){const i=(0,n.getActiveTransaction)();i&&i.setMeasurement(e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isValidSampleRate:()=>l,sampleTransaction:()=>c});var n=r(857),i=r(856),o=r(852),a=r(900),s=r(899),u=r(869);function c(e,t,r){if(!(0,s.hasTracingEnabled)(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(e.sampled)),e;let i;return"function"==typeof t.tracesSampler?(i=t.tracesSampler(r),e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(i))):void 0!==r.parentSampled?i=r.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(i))):(i=1,e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,i)),l(i)?i?(e.sampled=Math.random()<i,e.sampled?(o.DEBUG_BUILD&&n.logger.log(`[Tracing] starting ${e.op} transaction - ${(0,u.spanToJSON)(e).description}`),e):(o.DEBUG_BUILD&&n.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(o.DEBUG_BUILD&&n.logger.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(o.DEBUG_BUILD&&n.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function l(e){return(0,i.isNaN)(e)||"number"!=typeof e&&"boolean"!=typeof e?(o.DEBUG_BUILD&&n.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(o.DEBUG_BUILD&&n.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRACE_PROPAGATION_TARGETS:()=>S,defaultRequestInstrumentationOptions:()=>E,extractNetworkProtocol:()=>x,instrumentOutgoingRequests:()=>w,shouldAttachHeaders:()=>k,xhrCallback:()=>C});var n=r(869),i=r(899),o=r(901),a=r(867),s=r(850),u=r(897),c=r(900),l=r(866),f=r(909),p=r(849),d=r(912),h=r(860),m=r(864),g=r(870),y=r(871),v=r(908),b=r(878),_=r(846);const S=["localhost",/^\/(?!\/)/],E={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:S,tracePropagationTargets:S};function w(e){const{traceFetch:t,traceXHR:r,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:E.traceFetch,traceXHR:E.traceXHR,...e},s="function"==typeof o?o:e=>!0,u=e=>k(e,n||i),c={};t&&(0,f.addFetchInstrumentationHandler)((e=>{const t=(0,v.instrumentFetchRequest)(e,s,u,c);if(t){const r=I(e.fetchData.url),n=r?(0,p.parseUrl)(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}a&&t&&O(t)})),r&&(0,d.addXhrInstrumentationHandler)((e=>{const t=C(e,s,u,c);a&&t&&O(t)}))}function O(e){const{url:t}=(0,n.spanToJSON)(e).data||{};if(!t||"string"!=typeof t)return;const r=(0,b.addPerformanceInstrumentationHandler)("resource",(({entries:n})=>{n.forEach((n=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(n)&&n.name.endsWith(t)){(function(e){const{name:t,version:r}=x(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",r],["network.protocol.name",t]),!h.browserPerformanceTimeOrigin)return n;return[...n,["http.request.redirect_start",T(e.redirectStart)],["http.request.fetch_start",T(e.fetchStart)],["http.request.domain_lookup_start",T(e.domainLookupStart)],["http.request.domain_lookup_end",T(e.domainLookupEnd)],["http.request.connect_start",T(e.connectStart)],["http.request.secure_connection_start",T(e.secureConnectionStart)],["http.request.connection_end",T(e.connectEnd)],["http.request.request_start",T(e.requestStart)],["http.request.response_start",T(e.responseStart)],["http.request.response_end",T(e.responseEnd)]]})(n).forEach((t=>e.setAttribute(...t))),setTimeout(r)}}))}))}function x(e){let t="unknown",r="unknown",n="";for(const i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}function T(e=0){return((h.browserPerformanceTimeOrigin||performance.timeOrigin)+e)/1e3}function k(e,t){return(0,m.stringMatchesSomePattern)(e,t||S)}function C(e,t,r,f){const h=e.xhr,m=h&&h[d.SENTRY_XHR_DATA_KEY];if(!(0,i.hasTracingEnabled)()||!h||h.__sentry_own_request__||!m)return;const v=t(m.url);if(e.endTimestamp&&v){const e=h.__sentry_xhr_span_id__;if(!e)return;const t=f[e];return void(t&&void 0!==m.status_code&&((0,o.setHttpStatus)(t,m.status_code),t.end(),delete f[e]))}const b=(0,a.getCurrentScope)(),_=(0,s.getIsolationScope)(),S=I(m.url),E=S?(0,p.parseUrl)(S).host:void 0,w=v?(0,u.startInactiveSpan)({name:`${m.method} ${m.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":m.method,"http.url":S,url:m.url,"server.address":E,[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser"},op:"http.client"}):void 0;w&&(h.__sentry_xhr_span_id__=w.spanContext().spanId,f[h.__sentry_xhr_span_id__]=w);const O=(0,a.getClient)();if(h.setRequestHeader&&r(m.url)&&O){const{traceId:e,spanId:t,sampled:r,dsc:i}={..._.getPropagationContext(),...b.getPropagationContext()};!function(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(y.BAGGAGE_HEADER_NAME,r)}catch(e){}}(h,w?(0,n.spanToTraceHeader)(w):(0,g.generateSentryTraceHeader)(e,t,r),(0,y.dynamicSamplingContextToSentryBaggageHeader)(i||(w?(0,l.getDynamicSamplingContextFromSpan)(w):(0,l.getDynamicSamplingContextFromClient)(e,O,b))))}return w}function I(e){try{return new URL(e,_.WINDOW.location.origin).href}catch(e){return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addTracingHeadersToFetchRequest:()=>g,instrumentFetchRequest:()=>m});var n=r(899),i=r(867),o=r(897),a=r(900),s=r(850),u=r(869),c=r(866),l=r(901),f=r(849),p=r(870),d=r(871),h=r(856);function m(e,t,r,s,u="auto.http.browser"){if(!(0,n.hasTracingEnabled)()||!e.fetchData)return;const c=t(e.fetchData.url);if(e.endTimestamp&&c){const t=e.fetchData.__span;if(!t)return;const r=s[t];return void(r&&(!function(e,t){if(t.response){(0,l.setHttpStatus)(e,t.response.status);const r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){const t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(r,e),delete s[t]))}const p=(0,i.getCurrentScope)(),d=(0,i.getClient)(),{method:h,url:m}=e.fetchData,y=function(e){try{return new URL(e).href}catch(e){return}}(m),v=y?(0,f.parseUrl)(y).host:void 0,b=c?(0,o.startInactiveSpan)({name:`${h} ${m}`,onlyIfParent:!0,attributes:{url:m,type:"fetch","http.method":h,"http.url":y,"server.address":v,[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u},op:"http.client"}):void 0;if(b&&(e.fetchData.__span=b.spanContext().spanId,s[b.spanContext().spanId]=b),r(e.fetchData.url)&&d){const t=e.args[0];e.args[1]=e.args[1]||{};const r=e.args[1];r.headers=g(t,d,p,r,b)}return b}function g(e,t,r,n,i){const o=i||r.getSpan(),a=(0,s.getIsolationScope)(),{traceId:l,spanId:f,sampled:m,dsc:g}={...a.getPropagationContext(),...r.getPropagationContext()},y=o?(0,u.spanToTraceHeader)(o):(0,p.generateSentryTraceHeader)(l,f,m),v=(0,d.dynamicSamplingContextToSentryBaggageHeader)(g||(o?(0,c.getDynamicSamplingContextFromSpan)(o):(0,c.getDynamicSamplingContextFromClient)(l,t,r))),b=n.headers||("undefined"!=typeof Request&&(0,h.isInstanceOf)(e,Request)?e.headers:void 0);if(b){if("undefined"!=typeof Headers&&(0,h.isInstanceOf)(b,Headers)){const e=new Headers(b);return e.append("sentry-trace",y),v&&e.append(d.BAGGAGE_HEADER_NAME,v),e}if(Array.isArray(b)){const e=[...b,["sentry-trace",y]];return v&&e.push([d.BAGGAGE_HEADER_NAME,v]),e}{const e="baggage"in b?b.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),v&&t.push(v),{...b,"sentry-trace":y,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":y,baggage:v}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addFetchInstrumentationHandler:()=>s,parseFetchArgs:()=>f});var n=r(862),i=r(910),o=r(847),a=r(911);function s(e){const t="fetch";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,u)}function u(){(0,i.supportsNativeFetch)()&&(0,n.fill)(o.GLOBAL_OBJ,"fetch",(function(e){return function(...t){const{method:r,url:n}=f(t),i={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return(0,a.triggerHandlers)("fetch",{...i}),e.apply(o.GLOBAL_OBJ,t).then((e=>{const t={...i,endTimestamp:Date.now(),response:e};return(0,a.triggerHandlers)("fetch",t),e}),(e=>{const t={...i,endTimestamp:Date.now(),error:e};throw(0,a.triggerHandlers)("fetch",t),e}))}}))}function c(e,t){return!!e&&"object"==typeof e&&!!e[t]}function l(e){return"string"==typeof e?e:e?c(e,"url")?e.url:e.toString?e.toString():"":""}function f(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:l(t),method:c(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:l(t),method:c(t,"method")?String(t.method).toUpperCase():"GET"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFetch:()=>l,supportsDOMError:()=>s,supportsDOMException:()=>u,supportsErrorEvent:()=>a,supportsFetch:()=>c,supportsNativeFetch:()=>f,supportsReferrerPolicy:()=>d,supportsReportingObserver:()=>p});var n=r(858),i=r(857);const o=(0,r(847).getGlobalObject)();function a(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function s(){try{return new DOMError(""),!0}catch(e){return!1}}function u(){try{return new DOMException(""),!0}catch(e){return!1}}function c(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function l(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function f(){if("string"==typeof EdgeRuntime)return!0;if(!c())return!1;if(l(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=l(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.DEBUG_BUILD&&i.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function p(){return"ReportingObserver"in o}function d(){if(!c())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>u,maybeInstrument:()=>l,resetInstrumentationHandlers:()=>c,triggerHandlers:()=>f});var n=r(858),i=r(857),o=r(874);const a={},s={};function u(e,t){a[e]=a[e]||[],a[e].push(t)}function c(){Object.keys(a).forEach((e=>{a[e]=void 0}))}function l(e,t){s[e]||(t(),s[e]=!0)}function f(e,t){const r=e&&a[e];if(r)for(const a of r)try{a(t)}catch(t){n.DEBUG_BUILD&&i.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.getFunctionName)(a)}\nError:`,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>u,addXhrInstrumentationHandler:()=>c,instrumentXHR:()=>l});var n=r(856),i=r(862),o=r(847),a=r(911);const s=o.GLOBAL_OBJ,u="__sentry_xhr_v3__";function c(e){(0,a.addHandler)("xhr",e),(0,a.maybeInstrument)("xhr",l)}function l(){if(!s.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,i.fill)(e,"open",(function(e){return function(...t){const r=Date.now(),o=(0,n.isString)(t[0])?t[0].toUpperCase():void 0,s=function(e){if((0,n.isString)(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!o||!s)return e.apply(this,t);this[u]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const c=()=>{const e=this[u];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}const t={args:[o,s],endTimestamp:Date.now(),startTimestamp:r,xhr:this};(0,a.triggerHandlers)("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,i.fill)(this,"onreadystatechange",(function(e){return function(...t){return c(),e.apply(this,t)}})):this.addEventListener("readystatechange",c),(0,i.fill)(this,"setRequestHeader",(function(e){return function(...t){const[r,i]=t,o=this[u];return o&&(0,n.isString)(r)&&(0,n.isString)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),(0,i.fill)(e,"send",(function(e){return function(...t){const r=this[u];if(!r)return e.apply(this,t);void 0!==t[0]&&(r.body=t[0]);const n={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return(0,a.triggerHandlers)("xhr",n),e.apply(this,t)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentRoutingWithDefaults:()=>u});var n=r(857),i=r(860),o=r(914),a=r(844),s=r(846);function u(e,t=!0,r=!0){if(!s.WINDOW||!s.WINDOW.location)return void(a.DEBUG_BUILD&&n.logger.warn("Could not initialize routing instrumentation due to invalid location"));let u,c=s.WINDOW.location.href;t&&(u=e({name:s.WINDOW.location.pathname,startTimestamp:i.browserPerformanceTimeOrigin?i.browserPerformanceTimeOrigin/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&(0,o.addHistoryInstrumentationHandler)((({to:t,from:r})=>{void 0===r&&c&&-1!==c.indexOf(t)?c=void 0:r!==t&&(c=void 0,u&&(a.DEBUG_BUILD&&n.logger.log(`[Tracing] Finishing current transaction with op: ${u.op}`),u.end()),u=e({name:s.WINDOW.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>c});var n=r(862),i=r(847),o=r(915),a=r(911);const s=i.GLOBAL_OBJ;let u;function c(e){const t="history";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,l)}function l(){if(!(0,o.supportsHistory)())return;const e=s.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=u,t=String(r);u=t;const n={from:e,to:t};(0,a.triggerHandlers)("history",n)}return e.apply(this,t)}}s.onpopstate=function(...t){const r=s.location.href,n=u;u=r;const i={from:n,to:r};if((0,a.triggerHandlers)("history",i),e)try{return e.apply(this,t)}catch(e){}},(0,n.fill)(s.history,"pushState",t),(0,n.fill)(s.history,"replaceState",t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{supportsHistory:()=>i});const n=(0,r(847).getGlobalObject)();function i(){const e=n.chrome,t=e&&e.app&&e.app.runtime,r="history"in n&&!!n.history.pushState&&!!n.history.replaceState;return!t&&r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{IdleTransaction:()=>p,IdleTransactionSpanRecorder:()=>f,TRACING_DEFAULTS:()=>c});var n=r(857),i=r(860),o=r(852),a=r(869),s=r(895),u=r(917);const c={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},l=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class f extends s.SpanRecorder{constructor(e,t,r,n){super(n),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=r}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...r)=>(this._popActivity(e.spanContext().spanId),t.apply(e,r)),void 0===(0,a.spanToJSON)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class p extends u.Transaction{constructor(e,t,r=c.idleTimeout,i=c.finalTimeout,a=c.heartbeatInterval,s=!1,u=!1){super(e,t),this._idleHub=t,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=l[4],this._autoFinishAllowed=!u,s&&(o.DEBUG_BUILD&&n.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),u||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=l[3],this.end())}),this._finalTimeout)}end(e){const t=(0,a.spanTimeInputToSeconds)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){o.DEBUG_BUILD&&n.logger.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;(0,a.spanToJSON)(e).timestamp||(e.setStatus("cancelled"),e.end(t),o.DEBUG_BUILD&&n.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:r,timestamp:i}=(0,a.spanToJSON)(e),s=r&&r<t,u=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&r&&i-r<u;if(o.DEBUG_BUILD){const t=JSON.stringify(e,void 0,2);s?c||n.logger.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):n.logger.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return s&&c})),o.DEBUG_BUILD&&n.logger.log("[Tracing] flushing IdleTransaction")}else o.DEBUG_BUILD&&n.logger.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},r=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new f(t,r,this.spanContext().spanId,e),o.DEBUG_BUILD&&n.logger.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=l[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(o.DEBUG_BUILD&&n.logger.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=l[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),o.DEBUG_BUILD&&n.logger.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,o.DEBUG_BUILD&&n.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(o.DEBUG_BUILD&&n.logger.log(`[Tracing] popActivity ${e}`),delete this.activities[e],o.DEBUG_BUILD&&n.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,i.timestampInSeconds)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=l[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(o.DEBUG_BUILD&&n.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=l[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){o.DEBUG_BUILD&&n.logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Transaction:()=>d});var n=r(862),i=r(857),o=r(852),a=r(850),s=r(896),u=r(900),c=r(869),l=r(866),f=r(895),p=r(897);class d extends f.Span{constructor(e,t){super(e),this._contexts={},this._hub=t||(0,a.getCurrentHub)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]&&{source:this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]},...this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]&&{sampleRate:this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new f.SpanRecorder(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,r=""){this._measurements[e]={value:t,unit:r}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=(0,c.spanTimeInputToSeconds)(e),r=this._finishTransaction(t);if(r)return this._hub.captureEvent(r)}toContext(){const e=super.toContext();return(0,n.dropUndefinedKeys)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,l.getDynamicSamplingContextFromSpan)(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(o.DEBUG_BUILD&&i.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return o.DEBUG_BUILD&&i.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const r=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&(0,c.spanToJSON)(e).timestamp)):[];if(this._trimEnd&&r.length>0){const e=r.map((e=>(0,c.spanToJSON)(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:a,isolationScope:u}=(0,p.getCapturedScopesOnSpan)(this),{metadata:f}=this,{source:d}=f,h={contexts:{...this._contexts,trace:(0,c.spanToTraceContext)(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...f,capturedSpanScope:a,capturedSpanIsolationScope:u,...(0,n.dropUndefinedKeys)({dynamicSamplingContext:(0,l.getDynamicSamplingContextFromSpan)(this)})},_metrics_summary:(0,s.getMetricSummaryJsonForSpan)(this),...d&&{transaction_info:{source:d}}};return Object.keys(this._measurements).length>0&&(o.DEBUG_BUILD&&i.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),h.measurements=this._measurements),o.DEBUG_BUILD&&i.logger.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),h}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addTracingExtensions:()=>h,startIdleTransaction:()=>d});var n=r(857),i=r(852),o=r(850),a=r(869),s=r(919),u=r(916),c=r(906),l=r(917);function f(){const e=this.getScope().getSpan();return e?{"sentry-trace":(0,a.spanToTraceHeader)(e)}:{}}function p(e,t){const r=this.getClient(),o=r&&r.getOptions()||{},a=o.instrumenter||"sentry",s=e.instrumenter||"sentry";a!==s&&(i.DEBUG_BUILD&&n.logger.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${a}\` instrumenter.\nThe transaction will not be sampled. Please use the ${a} instrumentation to start transactions.`),e.sampled=!1);let u=new l.Transaction(e,this);return u=(0,c.sampleTransaction)(u,o,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),u.isRecording()&&u.initSpanRecorder(o._experiments&&o._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",u),u}function d(e,t,r,n,i,o,a,s=!1){const l=e.getClient(),f=l&&l.getOptions()||{};let p=new u.IdleTransaction(t,e,r,n,a,i,s);return p=(0,c.sampleTransaction)(p,f,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...o}),p.isRecording()&&p.initSpanRecorder(f._experiments&&f._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",p),p}function h(){const e=(0,o.getMainCarrier)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=p),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=f),(0,s.registerErrorInstrumentation)())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerErrorInstrumentation:()=>c});var n=r(920),i=r(921),o=r(857),a=r(852),s=r(848);let u=!1;function c(){u||(u=!0,(0,n.addGlobalErrorInstrumentationHandler)(l),(0,i.addGlobalUnhandledRejectionInstrumentationHandler)(l))}function l(){const e=(0,s.getActiveTransaction)();if(e){const t="internal_error";a.DEBUG_BUILD&&o.logger.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}l.tag="sentry_tracingErrorCallback"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>a});var n=r(847),i=r(911);let o=null;function a(e){const t="error";(0,i.addHandler)(t,e),(0,i.maybeInstrument)(t,s)}function s(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(e,t,r,n,a){const s={column:n,error:a,line:r,msg:e,url:t};return(0,i.triggerHandlers)("error",s),!(!o||o.__SENTRY_LOADER__)&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalUnhandledRejectionInstrumentationHandler:()=>a});var n=r(847),i=r(911);let o=null;function a(e){const t="unhandledrejection";(0,i.addHandler)(t,e),(0,i.maybeInstrument)(t,s)}function s(){o=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,i.triggerHandlers)("unhandledrejection",t),!(o&&!o.__SENTRY_LOADER__)||o.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addExtensionMethods:()=>a});var n=r(850),i=r(918),o=r(923);function a(){(0,i.addTracingExtensions)(),(0,o.isNodeEnv)()&&function(){const t=(0,n.getMainCarrier)();if(!t.__SENTRY__)return;const r={mongodb:()=>new((0,o.dynamicRequire)(e,"./node/integrations/mongo").Mongo),mongoose:()=>new((0,o.dynamicRequire)(e,"./node/integrations/mongo").Mongo),mysql:()=>new((0,o.dynamicRequire)(e,"./node/integrations/mysql").Mysql),pg:()=>new((0,o.dynamicRequire)(e,"./node/integrations/postgres").Postgres)},i=Object.keys(r).filter((e=>!!(0,o.loadModule)(e))).map((e=>{try{return r[e]()}catch(e){return}})).filter((e=>e));i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}()}e=r.hmd(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dynamicRequire:()=>o,isNodeEnv:()=>i,loadModule:()=>a});var n=r(924);function i(){return!(0,n.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}function a(t){let r;try{r=o(e,t)}catch(e){}try{const{cwd:n}=o(e,"process");r=o(e,`${n()}/node_modules/${t}`)}catch(e){}return r}e=r.hmd(e)},(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}r.r(t),r.d(t,{getSDKSource:()=>i,isBrowserBundle:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Apollo:()=>f});var n=r(927),i=r(923),o=r(857),a=r(862),s=r(861),u=r(856),c=r(844),l=r(926);class f{static __initStatic(){this.id="Apollo"}constructor(e={useNestjs:!1}){this.name=f.id,this._useNest=!!e.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,i.loadModule)("@nestjs/graphql"):this._module=this._module||(0,i.loadModule)("apollo-server-core"),this._module}setupOnce(e,t){if((0,l.shouldDisableAutoInstrumentation)(t))c.DEBUG_BUILD&&o.logger.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){const e=this.loadDependency();if(!e)return void(c.DEBUG_BUILD&&o.logger.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,a.fill)(e.GraphQLFactory.prototype,"mergeWithSchema",(function(e){return function(...r){return(0,a.fill)(this.resolversExplorerService,"explore",(function(e){return function(){return p((0,s.arrayify)(e.call(this)),t)}})),e.call(this,...r)}}))}else{const e=this.loadDependency();if(!e)return void(c.DEBUG_BUILD&&o.logger.error("Apollo Integration was unable to require apollo-server-core package."));(0,a.fill)(e.ApolloServerBase.prototype,"constructSchema",(function(e){return function(){if(!this.config.resolvers)return c.DEBUG_BUILD&&(this.config.schema?(o.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),o.logger.warn()):this.config.modules&&o.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),o.logger.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),e.call(this);const r=(0,s.arrayify)(this.config.resolvers);return this.config.resolvers=p(r,t),e.call(this)}}))}}}function p(e,t){return e.map((e=>(Object.keys(e).forEach((r=>{Object.keys(e[r]).forEach((i=>{"function"==typeof e[r][i]&&function(e,t,r,i){(0,a.fill)(e[t],r,(function(e){return function(...o){const a=i().getScope().getSpan(),s=(0,n._optionalChain)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:`${t}.${r}`,op:"graphql.resolve",origin:"auto.graphql.apollo"})]),c=e.call(this,...o);return(0,u.isThenable)(c)?c.then((e=>((0,n._optionalChain)([s,"optionalAccess",e=>e.end,"call",e=>e()]),e))):((0,n._optionalChain)([s,"optionalAccess",e=>e.end,"call",e=>e()]),c)}}))}(e,r,i,t)}))})),e)))}f.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{shouldDisableAutoInstrumentation:()=>i});var n=r(927);function i(e){const t=(0,n._optionalChain)([e,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);return"sentry"!==((0,n._optionalChain)([t,"optionalAccess",e=>e.instrumenter])||"sentry")}},(e,t,r)=>{"use strict";function n(e){let t,r=e[0],n=1;for(;n<e.length;){const i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):"call"!==i&&"optionalCall"!==i||(r=o(((...e)=>r.call(t,...e))),t=void 0)}return r}r.r(t),r.d(t,{_optionalChain:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Express:()=>d,extractOriginalRoute:()=>m,preventDuplicateSegments:()=>g});var n=r(927),i=r(869),o=r(900),a=r(857),s=r(849),u=r(929),c=r(856),l=r(847),f=r(844),p=r(926);class d{static __initStatic(){this.id="Express"}constructor(e={}){this.name=d.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,t){this._router?(0,p.shouldDisableAutoInstrumentation)(t)?f.DEBUG_BUILD&&a.logger.log("Express Integration is skipped because of instrumenter configuration."):(function(e,t=[]){t.forEach((t=>function(e,t){const r=e[t];return e[t]=function(...e){return r.call(this,...function(e,t){return e.map((e=>"function"==typeof e?h(e,t):Array.isArray(e)?e.map((e=>"function"==typeof e?h(e,t):e)):e))}(e,t))},e}(e,t)))}(this._router,this._methods),function(e){const t="settings"in e;t&&void 0===e._router&&e.lazyrouter&&e.lazyrouter();const r=t?e._router:e;if(!r)return f.DEBUG_BUILD&&a.logger.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(f.DEBUG_BUILD&&a.logger.debug("Routing instrumentation is currently only supported in Express 4."));const p=Object.getPrototypeOf(r),d=p.process_params;p.process_params=function(e,t,r,a,f){r._reconstructedRoute||(r._reconstructedRoute="");const{layerRoutePath:p,isRegex:h,isArray:y,numExtraSegments:v}=function(e){let t=(0,n._optionalChain)([e,"access",e=>e.route,"optionalAccess",e=>e.path]);const r=(0,c.isRegExp)(t),i=Array.isArray(t);if(!t){const[r]=l.GLOBAL_OBJ.process.versions.node.split(".").map(Number);r>=16&&(t=m(e.path,e.regexp,e.keys))}if(!t)return{isRegex:r,isArray:i,numExtraSegments:0};const o=i?Math.max((u=t,u.reduce(((e,t)=>e+(0,s.getNumberOfUrlSegments)(t.toString())),0)-(0,s.getNumberOfUrlSegments)(e.path||"")),0):0,a=function(e,t){if(e)return t.map((e=>e.toString())).join(",");return t&&t.toString()}(i,t);var u;return{layerRoutePath:a,isRegex:r,isArray:i,numExtraSegments:o}}(e);let b;(p||h||y)&&(r._hasParameters=!0),b=p||(g(r.originalUrl,r._reconstructedRoute,e.path)||"");const _=b.split("/").filter((e=>e.length>0&&(h||y||!e.includes("*")))).join("/");_&&_.length>0&&(r._reconstructedRoute+=`/${_}${h?"/":""}`);if((0,s.getNumberOfUrlSegments)((0,s.stripUrlQueryAndFragment)(r.originalUrl||""))+v===(0,s.getNumberOfUrlSegments)(r._reconstructedRoute)){r._hasParameters||r._reconstructedRoute!==r.originalUrl&&(r._reconstructedRoute=r.originalUrl?(0,s.stripUrlQueryAndFragment)(r.originalUrl):r.originalUrl);const e=a.__sentry_transaction,t=e&&(0,i.spanToJSON)(e).data||{};if(e&&"custom"!==t[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]){const t=r._reconstructedRoute||"/",[n,i]=(0,u.extractPathForTransaction)(r,{path:!0,method:!0,customRoute:t});e.updateName(n),e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,i)}}return d.call(this,e,t,r,a,f)}}(this._router)):f.DEBUG_BUILD&&a.logger.error("ExpressIntegration is missing an Express instance")}}function h(e,t){const r=e.length;switch(r){case 2:return function(r,n){const i=n.__sentry_transaction;if(i){const r=i.startChild({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"});n.once("finish",(()=>{r.end()}))}return e.call(this,r,n)};case 3:return function(r,i,o){const a=i.__sentry_transaction,s=(0,n._optionalChain)([a,"optionalAccess",e=>e.startChild,"call",r=>r({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"})]);e.call(this,r,i,(function(...e){(0,n._optionalChain)([s,"optionalAccess",e=>e.end,"call",e=>e()]),o.call(this,...e)}))};case 4:return function(r,i,o,a){const s=o.__sentry_transaction,u=(0,n._optionalChain)([s,"optionalAccess",e=>e.startChild,"call",r=>r({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"})]);e.call(this,r,i,o,(function(...e){(0,n._optionalChain)([u,"optionalAccess",e=>e.end,"call",e=>e()]),a.call(this,...e)}))};default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${r}`)}}d.__initStatic();const m=(e,t,r)=>{if(!(e&&t&&r&&0!==Object.keys(r).length&&(0,n._optionalChain)([r,"access",e=>e[0],"optionalAccess",e=>e.offset])))return;const i=r.sort(((e,t)=>e.offset-t.offset)),o=new RegExp(t,`${t.flags}d`).exec(e);if(!o||!o.indices)return;const[,...a]=o.indices;if(a.length!==i.length)return;let s=e,u=0;return a.forEach(((e,t)=>{if(e){const[r,n]=e,o=s.substring(0,r-u),a=`:${i[t].name}`,c=s.substring(n-u);s=o+a+c,u+=n-r-a.length}})),s};function g(e,t,r){const i=(0,s.stripUrlQueryAndFragment)(e||""),o=(0,n._optionalChain)([i,"optionalAccess",e=>e.split,"call",e=>e("/"),"access",e=>e.filter,"call",e=>e((e=>!!e))]);let a=0;const u=(0,n._optionalChain)([t,"optionalAccess",e=>e.split,"call",e=>e("/"),"access",e=>e.filter,"call",e=>e((e=>!!e)),"access",e=>e.length])||0;return(0,n._optionalChain)([r,"optionalAccess",e=>e.split,"call",e=>e("/"),"access",e=>e.filter,"call",e=>e((e=>(0,n._optionalChain)([o,"optionalAccess",e=>e[u+a]])===e&&(a+=1,!0))),"access",e=>e.join,"call",e=>e("/")])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_USER_INCLUDES:()=>f,addRequestDataToEvent:()=>m,addRequestDataToTransaction:()=>p,extractPathForTransaction:()=>d,extractRequestData:()=>h,winterCGHeadersToDict:()=>y,winterCGRequestToRequestData:()=>v});var n=r(930),i=r(858),o=r(856),a=r(857),s=r(872),u=r(849);const c={ip:!1,request:!0,transaction:!0,user:!0},l=["cookies","data","headers","method","query_string","url"],f=["id","username","email"];function p(e,t,r){if(e){if(!e.metadata.source||"url"===e.metadata.source){const[r,n]=d(t,{path:!0,method:!0});e.updateName(r),e.setMetadata({source:n})}e.setAttribute("url",t.originalUrl||t.url),t.baseUrl&&e.setAttribute("baseUrl",t.baseUrl),e.setData("query",g(t,r))}}function d(e,t={}){const r=e.method&&e.method.toUpperCase();let n="",i="url";t.customRoute||e.route?(n=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(n=(0,u.stripUrlQueryAndFragment)(e.originalUrl||e.url||""));let o="";return t.method&&r&&(o+=r),t.method&&t.path&&(o+=" "),t.path&&n&&(o+=n),[o,i]}function h(e,t){const{include:r=l,deps:i}=t||{},a={},u=e.headers||{},c=e.method,f=u.host||e.hostname||e.host||"<no host>",p="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",d=e.originalUrl||e.url||"",h=d.startsWith(p)?d:`${p}://${f}${d}`;return r.forEach((t=>{switch(t){case"headers":a.headers=u,r.includes("cookies")||delete a.headers.cookie;break;case"method":a.method=c;break;case"url":a.url=h;break;case"cookies":a.cookies=e.cookies||u.cookie&&(0,n.parseCookie)(u.cookie)||{};break;case"query_string":a.query_string=g(e,i);break;case"data":if("GET"===c||"HEAD"===c)break;void 0!==e.body&&(a.data=(0,o.isString)(e.body)?e.body:JSON.stringify((0,s.normalize)(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(a[t]=e[t])}})),a}function m(e,t,r){const n={...c,...r&&r.include};if(n.request){const i=Array.isArray(n.request)?h(t,{include:n.request,deps:r&&r.deps}):h(t,{deps:r&&r.deps});e.request={...e.request,...i}}if(n.user){const r=t.user&&(0,o.isPlainObject)(t.user)?function(e,t){const r={};return(Array.isArray(t)?t:f).forEach((t=>{e&&t in e&&(r[t]=e[t])})),r}(t.user,n.user):{};Object.keys(r).length&&(e.user={...e.user,...r})}if(n.ip){const r=t.ip||t.socket&&t.socket.remoteAddress;r&&(e.user={...e.user,ip_address:r})}return n.transaction&&!e.transaction&&(e.transaction=function(e,t){switch(t){case"path":return d(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>";default:return d(e,{path:!0,method:!0,customRoute:e._reconstructedRoute?e._reconstructedRoute:void 0})[0]}}(t,n.transaction)),e}function g(e,t){let r=e.originalUrl||e.url||"";if(r){r.startsWith("/")&&(r=`http://dogs.are.great${r}`);try{return e.query||"undefined"!=typeof URL&&new URL(r).search.slice(1)||t&&t.url&&t.url.parse(r).query||void 0}catch(e){return}}}function y(e){const t={};try{e.forEach(((e,r)=>{"string"==typeof e&&(t[r]=e)}))}catch(e){i.DEBUG_BUILD&&a.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}function v(e){const t=y(e.headers);return{method:e.method,url:e.url,headers:t}}},(e,t,r)=>{"use strict";function n(e){const t={};let r=0;for(;r<e.length;){const n=e.indexOf("=",r);if(-1===n)break;let i=e.indexOf(";",r);if(-1===i)i=e.length;else if(i<n){r=e.lastIndexOf(";",n-1)+1;continue}const o=e.slice(r,n).trim();if(void 0===t[o]){let r=e.slice(n+1,i).trim();34===r.charCodeAt(0)&&(r=r.slice(1,-1));try{t[o]=-1!==r.indexOf("%")?decodeURIComponent(r):r}catch(e){t[o]=r}}r=i+1}return t}r.r(t),r.d(t,{parseCookie:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GraphQL:()=>l});var n=r(927),i=r(923),o=r(857),a=r(862),s=r(856),u=r(844),c=r(926);class l{static __initStatic(){this.id="GraphQL"}constructor(){this.name=l.id}loadDependency(){return this._module=this._module||(0,i.loadModule)("graphql/execution/execute.js")}setupOnce(e,t){if((0,c.shouldDisableAutoInstrumentation)(t))return void(u.DEBUG_BUILD&&o.logger.log("GraphQL Integration is skipped because of instrumenter configuration."));const r=this.loadDependency();r?(0,a.fill)(r,"execute",(function(e){return function(...r){const i=t().getScope(),o=i.getSpan(),a=(0,n._optionalChain)([o,"optionalAccess",e=>e.startChild,"call",e=>e({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);(0,n._optionalChain)([i,"optionalAccess",e=>e.setSpan,"call",e=>e(a)]);const u=e.call(this,...r);return(0,s.isThenable)(u)?u.then((e=>((0,n._optionalChain)([a,"optionalAccess",e=>e.end,"call",e=>e()]),(0,n._optionalChain)([i,"optionalAccess",e=>e.setSpan,"call",e=>e(o)]),e))):((0,n._optionalChain)([a,"optionalAccess",e=>e.end,"call",e=>e()]),(0,n._optionalChain)([i,"optionalAccess",e=>e.setSpan,"call",e=>e(o)]),u)}})):u.DEBUG_BUILD&&o.logger.error("GraphQL Integration was unable to require graphql/execution package.")}}l.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Mongo:()=>p});var n=r(927),i=r(923),o=r(857),a=r(862),s=r(856),u=r(844),c=r(926);const l=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],f={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class p{static __initStatic(){this.id="Mongo"}constructor(e={}){this.name=p.id,this._operations=Array.isArray(e.operations)?e.operations:l,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}loadDependency(){const e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,i.loadModule)(e)}setupOnce(e,t){if((0,c.shouldDisableAutoInstrumentation)(t))return void(u.DEBUG_BUILD&&o.logger.log("Mongo Integration is skipped because of instrumenter configuration."));const r=this.loadDependency();if(r)this._instrumentOperations(r.Collection,this._operations,t);else{const e=this._useMongoose?"mongoose":"mongodb";u.DEBUG_BUILD&&o.logger.error(`Mongo Integration was unable to require \`${e}\` package.`)}}_instrumentOperations(e,t,r){t.forEach((t=>this._patchOperation(e,t,r)))}_patchOperation(e,t,r){if(!(t in e.prototype))return;const i=this._getSpanContextFromOperationArguments.bind(this);(0,a.fill)(e.prototype,t,(function(e){return function(...o){const a=o[o.length-1],u=r(),c=u.getScope(),l=u.getClient(),f=c.getSpan(),p=(0,n._optionalChain)([l,"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii]);if("function"!=typeof a||"mapReduce"===t&&2===o.length){const r=(0,n._optionalChain)([f,"optionalAccess",e=>e.startChild,"call",e=>e(i(this,t,o,p))]),a=e.call(this,...o);if((0,s.isThenable)(a))return a.then((e=>((0,n._optionalChain)([r,"optionalAccess",e=>e.end,"call",e=>e()]),e)));if((d=a)&&"object"==typeof d&&d.once&&"function"==typeof d.once){const e=a;try{e.once("close",(()=>{(0,n._optionalChain)([r,"optionalAccess",e=>e.end,"call",e=>e()])}))}catch(e){(0,n._optionalChain)([r,"optionalAccess",e=>e.end,"call",e=>e()])}return e}return(0,n._optionalChain)([r,"optionalAccess",e=>e.end,"call",e=>e()]),a}var d;const h=(0,n._optionalChain)([f,"optionalAccess",e=>e.startChild,"call",e=>e(i(this,t,o.slice(0,-1)))]);return e.call(this,...o.slice(0,-1),(function(e,t){(0,n._optionalChain)([h,"optionalAccess",e=>e.end,"call",e=>e()]),a(e,t)}))}}))}_getSpanContextFromOperationArguments(e,t,r,n=!1){const i={"db.system":"mongodb","db.name":e.dbName,"db.operation":t,"db.mongodb.collection":e.collectionName},o={op:"db",origin:"auto.db.mongo",description:t,data:i},a=f[t],s=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!a||!s||!n)return o;try{if("mapReduce"===t){const[e,t]=r;i[a[0]]="string"==typeof e?e:e.name||"<anonymous>",i[a[1]]="string"==typeof t?t:t.name||"<anonymous>"}else for(let e=0;e<a.length;e++)i[`db.mongodb.${a[e]}`]=JSON.stringify(r[e])}catch(e){}return o}}p.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Mysql:()=>c});var n=r(927),i=r(923),o=r(857),a=r(862),s=r(844),u=r(926);class c{static __initStatic(){this.id="Mysql"}constructor(){this.name=c.id}loadDependency(){return this._module=this._module||(0,i.loadModule)("mysql/lib/Connection.js")}setupOnce(e,t){if((0,u.shouldDisableAutoInstrumentation)(t))return void(s.DEBUG_BUILD&&o.logger.log("Mysql Integration is skipped because of instrumenter configuration."));const r=this.loadDependency();if(!r)return void(s.DEBUG_BUILD&&o.logger.error("Mysql Integration was unable to require `mysql` package."));let i;try{r.prototype.connect=new Proxy(r.prototype.connect,{apply:(e,t,r)=>(i||(i=t.config),e.apply(t,r))})}catch(e){s.DEBUG_BUILD&&o.logger.error("Mysql Integration was unable to instrument `mysql` config.")}function c(e){if(!e)return;const t=i?{"server.address":i.host,"server.port":i.port,"db.user":i.user}:{};Object.keys(t).forEach((r=>{e.setAttribute(r,t[r])})),e.end()}(0,a.fill)(r,"createQuery",(function(e){return function(r,i,o){const a=t().getScope().getSpan(),s=(0,n._optionalChain)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"==typeof r?r:r.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);if("function"==typeof o)return e.call(this,r,i,(function(e,t,r){c(s),o(e,t,r)}));if("function"==typeof i)return e.call(this,r,(function(e,t,r){c(s),i(e,t,r)}));const u=e.call(this,r,i);return u.on("end",(()=>{c(s)})),u}}))}}c.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Postgres:()=>l});var n=r(927),i=r(923),o=r(857),a=r(862),s=r(856),u=r(844),c=r(926);class l{static __initStatic(){this.id="Postgres"}constructor(e={}){this.name=l.id,this._usePgNative=!!e.usePgNative,this._module=e.module}loadDependency(){return this._module=this._module||(0,i.loadModule)("pg")}setupOnce(e,t){if((0,c.shouldDisableAutoInstrumentation)(t))return void(u.DEBUG_BUILD&&o.logger.log("Postgres Integration is skipped because of instrumenter configuration."));const r=this.loadDependency();if(!r)return void(u.DEBUG_BUILD&&o.logger.error("Postgres Integration was unable to require `pg` package."));const i=this._usePgNative?(0,n._optionalChain)([r,"access",e=>e.native,"optionalAccess",e=>e.Client]):r.Client;i?(0,a.fill)(i.prototype,"query",(function(e){return function(r,i,o){const a=t().getScope().getSpan(),u={"db.system":"postgresql"};try{this.database&&(u["db.name"]=this.database),this.host&&(u["server.address"]=this.host),this.port&&(u["server.port"]=this.port),this.user&&(u["db.user"]=this.user)}catch(e){}const c=(0,n._optionalChain)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"==typeof r?r:r.text,op:"db",origin:"auto.db.postgres",data:u})]);if("function"==typeof o)return e.call(this,r,i,(function(e,t){(0,n._optionalChain)([c,"optionalAccess",e=>e.end,"call",e=>e()]),o(e,t)}));if("function"==typeof i)return e.call(this,r,(function(e,t){(0,n._optionalChain)([c,"optionalAccess",e=>e.end,"call",e=>e()]),i(e,t)}));const l=void 0!==i?e.call(this,r,i):e.call(this,r);return(0,s.isThenable)(l)?l.then((e=>((0,n._optionalChain)([c,"optionalAccess",e=>e.end,"call",e=>e()]),e))):((0,n._optionalChain)([c,"optionalAccess",e=>e.end,"call",e=>e()]),l)}})):u.DEBUG_BUILD&&o.logger.error("Postgres Integration was unable to access 'pg-native' bindings.")}}l.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Prisma:()=>l});var n=r(850),i=r(897),o=r(900),a=r(862),s=r(857),u=r(844),c=r(926);class l{static __initStatic(){this.id="Prisma"}constructor(e={}){if(this.name=l.id,(t=e.client)&&t.$use&&!e.client._sentryInstrumented){(0,a.addNonEnumerableProperty)(e.client,"_sentryInstrumented",!0);const t={};try{const r=e.client._engineConfig;if(r){const{activeProvider:e,clientVersion:n}=r;e&&(t["db.system"]=e),n&&(t["db.prisma.version"]=n)}}catch(e){}e.client.$use(((e,r)=>{if((0,c.shouldDisableAutoInstrumentation)(n.getCurrentHub))return r(e);const a=e.action,s=e.model;return(0,i.startSpan)({name:s?`${s} ${a}`:a,onlyIfParent:!0,op:"db.prisma",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.prisma"},data:{...t,"db.operation":a}},(()=>r(e)))}))}else u.DEBUG_BUILD&&s.logger.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",e.client);var t}setupOnce(){}}l.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{captureUserFeedback:()=>D,defaultIntegrations:()=>T,forceLoad:()=>R,getDefaultIntegrations:()=>k,init:()=>C,onLoad:()=>A,showReportDialog:()=>I,wrap:()=>P});var n=r(980),i=r(981),o=r(947),a=r(982),s=r(280),u=r(945),c=r(277),l=r(304),f=r(960),p=r(286),d=r(961),h=r(937),m=r(938),g=r(940),y=r(954),v=r(965),b=r(966),_=r(969),S=r(970),E=r(972),w=r(973),O=r(974),x=r(979);const T=[(0,n.inboundFiltersIntegration)(),(0,i.functionToStringIntegration)(),(0,E.browserApiErrorsIntegration)(),(0,y.breadcrumbsIntegration)(),(0,b.globalHandlersIntegration)(),(0,S.linkedErrorsIntegration)(),(0,v.dedupeIntegration)(),(0,_.httpContextIntegration)()];function k(e){return[...T]}function C(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=k()),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),g.WINDOW.SENTRY_RELEASE&&g.WINDOW.SENTRY_RELEASE.id&&(e.release=g.WINDOW.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,l.stackParserFromStackParserOptions)(e.stackParser||w.defaultStackParser),integrations:(0,o.getIntegrationsToSetup)(e),transport:e.transport||((0,f.supportsFetch)()?O.makeFetchTransport:x.makeXHRTransport)};(0,a.initAndBind)(h.BrowserClient,t),e.autoSessionTracking&&function(){if(void 0===g.WINDOW.document)return void(m.DEBUG_BUILD&&p.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));(0,c.startSession)({ignoreDuration:!0}),(0,c.captureSession)(),(0,d.addHistoryInstrumentationHandler)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,c.startSession)({ignoreDuration:!0}),(0,c.captureSession)())}))}()}const I=(e={},t=(0,s.getCurrentHub)())=>{if(!g.WINDOW.document)return void(m.DEBUG_BUILD&&p.logger.error("Global document not defined in showReportDialog call"));const{client:r,scope:n}=t.getStackTop(),i=e.dsn||r&&r.getDsn();if(!i)return void(m.DEBUG_BUILD&&p.logger.error("DSN not configured for showReportDialog call"));n&&(e.user={...n.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=g.WINDOW.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=(0,u.getReportDialogEndpoint)(i,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:a}=e;if(a){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{a()}finally{g.WINDOW.removeEventListener("message",e)}};g.WINDOW.addEventListener("message",e)}const c=g.WINDOW.document.head||g.WINDOW.document.body;c?c.appendChild(o):m.DEBUG_BUILD&&p.logger.error("Not injecting report dialog. No injection point found in HTML")};function R(){}function A(e){e()}function P(e){return(0,g.wrap)(e)()}function D(e){const t=(0,c.getClient)();t&&t.captureUserFeedback(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>d});var n=r(944),i=r(952),o=r(951),a=r(286),s=r(953),u=r(942),c=r(938),l=r(939),f=r(940),p=r(941);class d extends n.BaseClient{constructor(e){const t=f.WINDOW.SENTRY_SDK_SOURCE||(0,o.getSDKSource)();(0,i.applySdkMetadata)(e,"browser",["browser"],t),super(e),e.sendClientReports&&f.WINDOW.document&&f.WINDOW.document.addEventListener("visibilitychange",(()=>{"hidden"===f.WINDOW.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return(0,l.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,l.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(c.DEBUG_BUILD&&a.logger.warn("SDK not enabled, will not capture user feedback."));const t=(0,p.createUserFeedbackEnvelope)(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(c.DEBUG_BUILD&&a.logger.log("No outcomes to send"));if(!this._dsn)return void(c.DEBUG_BUILD&&a.logger.log("No dsn provided, will not send outcomes"));c.DEBUG_BUILD&&a.logger.log("Sending outcomes:",e);const t=(0,s.createClientReportEnvelope)(e,this._options.tunnel&&(0,u.dsnToString)(this._dsn));this._sendEnvelope(t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromError:()=>f,eventFromException:()=>m,eventFromMessage:()=>g,eventFromPlainObject:()=>l,eventFromString:()=>v,eventFromUnknownInput:()=>y,exceptionFromError:()=>c,parseStackFrames:()=>p});var n=r(277),i=r(285),o=r(302),a=r(290),s=r(284),u=r(291);function c(e,t){const r=p(e,t),n={type:t&&t.name,value:h(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function l(e,t,r,a){const s=(0,n.getClient)(),u=s&&s.getOptions().normalizeDepth,c={exception:{values:[{type:(0,i.isEvent)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:b(t,{isUnhandledRejection:a})}]},extra:{__serialized__:(0,o.normalizeToSize)(t,u)}};if(r){const t=p(e,r);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function f(e,t){return{exception:{values:[c(e,t)]}}}function p(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(d.test(e.message))return 1}return 0}(t);try{return e(r,n)}catch(e){}return[]}const d=/Minified React error #\d+;/i;function h(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function m(e,t,r,n){const i=y(e,t,r&&r.syntheticException||void 0,n);return(0,a.addExceptionMechanism)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,s.resolvedSyncPromise)(i)}function g(e,t,r="info",n,i){const o=v(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,s.resolvedSyncPromise)(o)}function y(e,t,r,n,o){let s;if((0,i.isErrorEvent)(t)&&t.error){return f(e,t.error)}if((0,i.isDOMError)(t)||(0,i.isDOMException)(t)){const o=t;if("stack"in t)s=f(e,t);else{const t=o.name||((0,i.isDOMError)(o)?"DOMError":"DOMException"),u=o.message?`${t}: ${o.message}`:t;s=v(e,u,r,n),(0,a.addExceptionTypeValue)(s,u)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}if((0,i.isError)(t))return f(e,t);if((0,i.isPlainObject)(t)||(0,i.isEvent)(t)){return s=l(e,t,r,o),(0,a.addExceptionMechanism)(s,{synthetic:!0}),s}return s=v(e,t,r,n),(0,a.addExceptionTypeValue)(s,`${t}`,void 0),(0,a.addExceptionMechanism)(s,{synthetic:!0}),s}function v(e,t,r,n){const o={};if(n&&r){const n=p(e,r);n.length&&(o.exception={values:[{value:t,stacktrace:{frames:n}}]})}if((0,i.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return o.logentry={message:e,params:r},o}return o.message=t,o}function b(e,{isUnhandledRejection:t}){const r=(0,u.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,i.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,i.isEvent)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>s,ignoreNextOnError:()=>l,shouldIgnoreOnError:()=>c,wrap:()=>f});var n=r(277),i=r(283),o=r(291),a=r(290);const s=i.GLOBAL_OBJ;let u=0;function c(){return u>0}function l(){u++,setTimeout((()=>{u--}))}function f(e,t={},r){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,o.getOriginalFunction)(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);const n=i.map((e=>f(e,t)));return e.apply(this,n)}catch(e){throw l(),(0,n.withScope)((r=>{r.addEventProcessor((e=>(t.mechanism&&((0,a.addExceptionTypeValue)(e,void 0,void 0),(0,a.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),(0,n.captureException)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}(0,o.markFunctionWrapped)(i,e),(0,o.addNonEnumerableProperty)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createUserFeedbackEnvelope:()=>o});var n=r(942),i=r(943);function o(e,{metadata:t,tunnel:r,dsn:o}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!o&&{dsn:(0,n.dsnToString)(o)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,i.createEnvelope)(a,[s])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>s,dsnToString:()=>a,makeDsn:()=>c});var n=r(287),i=r(286);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){const{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`}function s(e){const t=o.exec(e);if(!t)return void(0,i.consoleSandbox)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[r,n,a="",s,c="",l]=t.slice(1);let f="",p=l;const d=p.split("/");if(d.length>1&&(f=d.slice(0,-1).join("/"),p=d.pop()),p){const e=p.match(/^\d+/);e&&(p=e[0])}return u({host:s,pass:a,path:f,projectId:p,port:c,protocol:r,publicKey:n})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){const t="string"==typeof e?s(e):u(e);if(t&&function(e){if(!n.DEBUG_BUILD)return!0;const{port:t,projectId:r,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(i.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(i.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(i.logger.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(i.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>s,createAttachmentEnvelopeItem:()=>d,createEnvelope:()=>a,createEventEnvelopeHeaders:()=>y,envelopeContainsItemType:()=>c,envelopeItemTypeToDataCategory:()=>m,forEachEnvelopeItem:()=>u,getSdkMetadataForEnvelopeHeader:()=>g,parseEnvelope:()=>p,serializeEnvelope:()=>f});var n=r(942),i=r(302),o=r(291);function a(e,t=[]){return[e,t]}function s(e,t){const[r,n]=e;return[r,[...n,t]]}function u(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function c(e,t){return u(e,((e,r)=>t.includes(r)))}function l(e,t){return(t||new TextEncoder).encode(e)}function f(e,t){const[r,n]=e;let o=JSON.stringify(r);function a(e){"string"==typeof o?o="string"==typeof e?o+e:[l(o,t),e]:o.push("string"==typeof e?l(e,t):e)}for(const e of n){const[t,r]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)a(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,i.normalize)(r))}a(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}(o)}function p(e,t,r){let n="string"==typeof e?t.encode(e):e;function i(e){const t=n.subarray(0,e);return n=n.subarray(e+1),t}function o(){let e=n.indexOf(10);return e<0&&(e=n.length),JSON.parse(r.decode(i(e)))}const a=o(),s=[];for(;n.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?i(t):o()])}return[a,s]}function d(e,t){const r="string"==typeof e.data?l(e.data,t):e.data;return[(0,o.dropUndefinedKeys)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}const h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function m(e){return h[e]}function g(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function y(e,t,r,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&i&&{dsn:(0,n.dsnToString)(i)},...a&&{trace:(0,o.dropUndefinedKeys)({...a})}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseClient:()=>S,addEventProcessor:()=>O});var n=r(942),i=r(286),o=r(290),a=r(285),s=r(284),u=r(943),c=r(950),l=r(945),f=r(279),p=r(946),d=r(277),h=r(280),m=r(947),g=r(948),y=r(288),v=r(295),b=r(301);const _="Not capturing exception because it's already been captured.";class S{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,n.makeDsn)(e.dsn):f.DEBUG_BUILD&&i.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,l.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){if((0,o.checkOrSetAlreadyCaught)(e))return void(f.DEBUG_BUILD&&i.logger.log(_));let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,r))).then((e=>{n=e}))),n}captureMessage(e,t,r,n){let i=r&&r.event_id;const o=(0,a.isParameterizedString)(e)?e:String(e),s=(0,a.isPrimitive)(e)?this.eventFromMessage(o,t,r):this.eventFromException(e,r);return this._process(s.then((e=>this._captureEvent(e,r,n))).then((e=>{i=e}))),i}captureEvent(e,t,r){if(t&&t.originalException&&(0,o.checkOrSetAlreadyCaught)(t.originalException))return void(f.DEBUG_BUILD&&i.logger.log(_));let n=t&&t.event_id;const a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,a||r).then((e=>{n=e}))),n}captureSession(e){"string"!=typeof e.release?f.DEBUG_BUILD&&i.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,y.updateSession)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e))))):(0,s.resolvedSyncPromise)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return f.DEBUG_BUILD&&i.logger.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];(0,m.setupIntegration)(this,e,this._integrations),t||(0,m.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,p.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,u.addItemToEnvelope)(r,(0,u.createAttachmentEnvelopeItem)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const n=this._sendEnvelope(r);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=(0,p.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){const r=`${e}:${t}`;f.DEBUG_BUILD&&i.logger.log(`Adding outcome: "${r}"`),this._outcomes[r]=this._outcomes[r]+1||1}}captureAggregateMetrics(e){f.DEBUG_BUILD&&i.logger.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=(0,g.createMetricEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,m.setupIntegrations)(this,e),(0,m.afterSetupIntegrations)(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let r=!1,n=!1;const i=t.exception&&t.exception.values;if(i){n=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,y.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new s.SyncPromise((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=(0,h.getIsolationScope)()){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),(0,b.prepareEvent)(i,e,t,r,this,n).then((e=>{if(null===e)return e;const t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:n,span_id:i,parent_span_id:o},...e.contexts};const s=a||(0,v.getDynamicSamplingContextFromClient)(n,this,r);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{if(f.DEBUG_BUILD){const t=e;"log"===t.logLevel?i.logger.log(t.message):i.logger.warn(t)}}))}_processEvent(e,t,r){const n=this.getOptions(),{sampleRate:i}=n,o=w(e),u=E(e),l=e.type||"error",f=`before send for type \`${l}\``;if(u&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,s.rejectedSyncPromise)(new c.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const p="replay_event"===l?"replay":l,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,d).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",p,e),new c.SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;const i=function(e,t,r){const{beforeSend:n,beforeSendTransaction:i}=e;if(E(t)&&n)return n(t,r);if(w(t)&&i)return i(t,r);return t}(n,r,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,a.isThenable)(e))return e.then((e=>{if(!(0,a.isPlainObject)(e)&&null!==e)throw new c.SentryError(r);return e}),(e=>{throw new c.SentryError(`${t} rejected with ${e}`)}));if(!(0,a.isPlainObject)(e)&&null!==e)throw new c.SentryError(r);return e}(i,f)})).then((n=>{if(null===n)throw this.recordDroppedEvent("before_send",p,e),new c.SentryError(`${f} returned \`null\`, will not send event.`,"log");const i=r&&r.getSession();!o&&i&&this._updateSessionFromEvent(i,n);const a=n.transaction_info;if(o&&a&&n.transaction!==e.transaction){const e="custom";n.transaction_info={...a,source:e}}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof c.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new c.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{f.DEBUG_BUILD&&i.logger.error("Error while sending event:",e)}));f.DEBUG_BUILD&&i.logger.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}}))}}function E(e){return void 0===e.type}function w(e){return"transaction"===e.type}function O(e){const t=(0,d.getClient)();t&&t.addEventProcessor&&t.addEventProcessor(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEnvelopeEndpointWithUrlEncodedAuth:()=>s,getReportDialogEndpoint:()=>u});var n=r(291),i=r(942);const o="7";function a(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function s(e,t={}){const r="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){return`${a(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,n.urlEncode)({sentry_key:e.publicKey,sentry_version:o,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,i)}`}function u(e,t){const r=(0,i.makeDsn)(e);if(!r)return"";const n=`${a(r)}embed/error-page/`;let o=`dsn=${(0,i.dsnToString)(r)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${o}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createEventEnvelope:()=>a,createSessionEnvelope:()=>o});var n=r(943),i=r(942);function o(e,t,r,o){const a=(0,n.getSdkMetadataForEnvelopeHeader)(r),s={sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!o&&t&&{dsn:(0,i.dsnToString)(t)}},u="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,n.createEnvelope)(s,[u])}function a(e,t,r,i){const o=(0,n.getSdkMetadataForEnvelopeHeader)(r),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,r&&r.sdk);const s=(0,n.createEventEnvelopeHeaders)(e,o,i,t);delete e.sdkProcessingMetadata;const u=[{type:a},e];return(0,n.createEnvelope)(s,[u])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addIntegration:()=>h,afterSetupIntegrations:()=>p,convertIntegrationFnToClass:()=>m,defineIntegration:()=>g,getIntegrationsToSetup:()=>l,installedIntegrations:()=>c,setupIntegration:()=>d,setupIntegrations:()=>f});var n=r(290),i=r(286),o=r(279),a=r(282),s=r(277),u=r(280);const c=[];function l(e){const t=e.defaultIntegrations||[],r=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(r)?[...t,...r]:"function"==typeof r?(0,n.arrayify)(r(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.keys(t).map((e=>t[e]))}(i),a=function(e,t){for(let r=0;r<e.length;r++)if(!0===t(e[r]))return r;return-1}(o,(e=>"Debug"===e.name));if(-1!==a){const[e]=o.splice(a,1);o.push(e)}return o}function f(e,t){const r={};return t.forEach((t=>{t&&d(e,t,r)})),r}function p(e,t){for(const r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function d(e,t,r){if(r[t.name])o.DEBUG_BUILD&&i.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===c.indexOf(t.name)&&(t.setupOnce(a.addGlobalEventProcessor,u.getCurrentHub),c.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign(((t,n)=>r(t,n,e)),{id:t.name});e.addEventProcessor(n)}o.DEBUG_BUILD&&i.logger.log(`Integration installed: ${t.name}`)}}function h(e){const t=(0,s.getClient)();t&&t.addIntegration?t.addIntegration(e):o.DEBUG_BUILD&&i.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function m(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function g(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createMetricEnvelope:()=>a});var n=r(942),i=r(943),o=r(949);function a(e,t,r,a){const s={sent_at:(new Date).toISOString()};r&&r.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),a&&t&&(s.dsn=(0,n.dsnToString)(t));const u=function(e){const t=(0,o.serializeMetricBuckets)(e);return[{type:"statsd",length:t.length},t]}(e);return(0,i.createEnvelope)(s,[u])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBucketKey:()=>i,sanitizeMetricKey:()=>u,sanitizeTags:()=>p,sanitizeUnit:()=>s,serializeMetricBuckets:()=>a,simpleHash:()=>o});var n=r(291);function i(e,t,r,i){return`${e}${t}${r}${Object.entries((0,n.dropUndefinedKeys)(i)).sort(((e,t)=>e[0].localeCompare(t[0])))}`}function o(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return t>>>0}function a(e){let t="";for(const r of e){const e=Object.entries(r.tags),n=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${n}|T${r.timestamp}\n`}return t}function s(e){return e.replace(/[^\w]+/gi,"_")}function u(e){return e.replace(/[^\w\-.]+/gi,"_")}function c(e){return e.replace(/[^\w\-./]+/gi,"")}const l=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function f(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,r]of l)if(e===t)return r;return e}(t)),"")}function p(e){const t={};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){t[c(r)]=f(String(e[r]))}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryError:()=>n});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}r.r(t),r.d(t,{getSDKSource:()=>i,isBrowserBundle:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySdkMetadata:()=>i});var n=r(300);function i(e,t,r=[t],i="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:r.map((e=>({name:`${i}:@sentry/${e}`,version:n.SDK_VERSION}))),version:n.SDK_VERSION}),e._metadata=o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createClientReportEnvelope:()=>o});var n=r(943),i=r(289);function o(e,t,r){const o=[{type:"client_report"},{timestamp:r||(0,i.dateTimestampInSeconds)(),discarded_events:e}];return(0,n.createEnvelope)(t?{dsn:t}:{},[o])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Breadcrumbs:()=>S,breadcrumbsIntegration:()=>_});var n=r(947),i=r(277),o=r(955),a=r(957),s=r(958),u=r(959),c=r(961),l=r(290),f=r(286),p=r(292),d=r(963),h=r(293),m=r(964),g=r(938),y=r(940);const v=1024,b="Breadcrumbs",_=(0,n.defineIntegration)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:b,setupOnce(){},setup(e){t.console&&(0,o.addConsoleInstrumentationHandler)(function(e){return function(t){if((0,i.getClient)()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:(0,d.severityLevelFromString)(t.level),message:(0,h.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,h.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,i.addBreadcrumb)(r,{input:t.args,level:t.level})}}(e)),t.dom&&(0,a.addClickKeypressInstrumentationHandler)(function(e,t){return function(r){if((0,i.getClient)()!==e)return;let n,o,a="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>v&&(g.DEBUG_BUILD&&f.logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=v),"string"==typeof a&&(a=[a]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=(0,p.htmlTreeAsString)(t,{keyAttrs:a,maxStringLength:s}),o=(0,p.getComponentName)(t)}catch(e){n="<unknown>"}if(0===n.length)return;const u={category:`ui.${r.name}`,message:n};o&&(u.data={"ui.component_name":o}),(0,i.addBreadcrumb)(u,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&(0,s.addXhrInstrumentationHandler)(function(e){return function(t){if((0,i.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,o=t.xhr[s.SENTRY_XHR_DATA_KEY];if(!r||!n||!o)return;const{method:a,url:u,status_code:c,body:l}=o,f={method:a,url:u,status_code:c},p={xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n};(0,i.addBreadcrumb)({category:"xhr",data:f,type:"http"},p)}}(e)),t.fetch&&(0,u.addFetchInstrumentationHandler)(function(e){return function(t){if((0,i.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,o={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n};(0,i.addBreadcrumb)({category:"fetch",data:e,level:"error",type:"http"},o)}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:r,endTimestamp:n};(0,i.addBreadcrumb)({category:"fetch",data:o,type:"http"},a)}}}(e)),t.history&&(0,c.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,i.getClient)()!==e)return;let r=t.from,n=t.to;const o=(0,m.parseUrl)(y.WINDOW.location.href);let a=r?(0,m.parseUrl)(r):void 0;const s=(0,m.parseUrl)(n);a&&a.path||(a=o),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),(0,i.addBreadcrumb)({category:"navigation",data:{from:r,to:n}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){(0,i.getClient)()===e&&(0,i.addBreadcrumb)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,l.getEventDescription)(t)},{event:t})}}(e))}}})),S=(0,n.convertIntegrationFnToClass)(b,_)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addConsoleInstrumentationHandler:()=>s});var n=r(286),i=r(291),o=r(283),a=r(956);function s(e){const t="console";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,u)}function u(){"console"in o.GLOBAL_OBJ&&n.CONSOLE_LEVELS.forEach((function(e){e in o.GLOBAL_OBJ.console&&(0,i.fill)(o.GLOBAL_OBJ.console,e,(function(t){return n.originalConsoleMethods[e]=t,function(...t){const r={args:t,level:e};(0,a.triggerHandlers)("console",r);const i=n.originalConsoleMethods[e];i&&i.apply(o.GLOBAL_OBJ.console,t)}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>u,maybeInstrument:()=>l,resetInstrumentationHandlers:()=>c,triggerHandlers:()=>f});var n=r(287),i=r(286),o=r(304);const a={},s={};function u(e,t){a[e]=a[e]||[],a[e].push(t)}function c(){Object.keys(a).forEach((e=>{a[e]=void 0}))}function l(e,t){s[e]||(t(),s[e]=!0)}function f(e,t){const r=e&&a[e];if(r)for(const a of r)try{a(t)}catch(t){n.DEBUG_BUILD&&i.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.getFunctionName)(a)}\nError:`,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClickKeypressInstrumentationHandler:()=>p,instrumentDOM:()=>d});var n=r(290),i=r(291),o=r(283),a=r(956);const s=o.GLOBAL_OBJ,u=1e3;let c,l,f;function p(e){(0,a.addHandler)("dom",e),(0,a.maybeInstrument)("dom",d)}function d(){if(!s.document)return;const e=a.triggerHandlers.bind(null,"dom"),t=h(e,!0);s.document.addEventListener("click",t,!1),s.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=s[t]&&s[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,i.fill)(r,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this,o=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},a=o[r]=o[r]||{refCount:0};if(!a.handler){const n=h(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch(e){}return t.call(this,r,n,i)}})),(0,i.fill)(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this,i=r.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}})))}))}function h(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const o=function(e){try{return e.target}catch(e){return null}}(r);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,o))return;(0,i.addNonEnumerableProperty)(r,"_sentryCaptured",!0),o&&!o._sentryId&&(0,i.addNonEnumerableProperty)(o,"_sentryId",(0,n.uuid4)());const a="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==l)return!1;try{if(!e.target||e.target._sentryId!==f)return!1}catch(e){}return!0}(r)){e({event:r,name:a,global:t}),l=r.type,f=o?o._sentryId:void 0}clearTimeout(c),c=s.setTimeout((()=>{f=void 0,l=void 0}),u)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>u,addXhrInstrumentationHandler:()=>c,instrumentXHR:()=>l});var n=r(285),i=r(291),o=r(283),a=r(956);const s=o.GLOBAL_OBJ,u="__sentry_xhr_v3__";function c(e){(0,a.addHandler)("xhr",e),(0,a.maybeInstrument)("xhr",l)}function l(){if(!s.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,i.fill)(e,"open",(function(e){return function(...t){const r=Date.now(),o=(0,n.isString)(t[0])?t[0].toUpperCase():void 0,s=function(e){if((0,n.isString)(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!o||!s)return e.apply(this,t);this[u]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const c=()=>{const e=this[u];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}const t={args:[o,s],endTimestamp:Date.now(),startTimestamp:r,xhr:this};(0,a.triggerHandlers)("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,i.fill)(this,"onreadystatechange",(function(e){return function(...t){return c(),e.apply(this,t)}})):this.addEventListener("readystatechange",c),(0,i.fill)(this,"setRequestHeader",(function(e){return function(...t){const[r,i]=t,o=this[u];return o&&(0,n.isString)(r)&&(0,n.isString)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),(0,i.fill)(e,"send",(function(e){return function(...t){const r=this[u];if(!r)return e.apply(this,t);void 0!==t[0]&&(r.body=t[0]);const n={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return(0,a.triggerHandlers)("xhr",n),e.apply(this,t)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addFetchInstrumentationHandler:()=>s,parseFetchArgs:()=>f});var n=r(291),i=r(960),o=r(283),a=r(956);function s(e){const t="fetch";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,u)}function u(){(0,i.supportsNativeFetch)()&&(0,n.fill)(o.GLOBAL_OBJ,"fetch",(function(e){return function(...t){const{method:r,url:n}=f(t),i={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return(0,a.triggerHandlers)("fetch",{...i}),e.apply(o.GLOBAL_OBJ,t).then((e=>{const t={...i,endTimestamp:Date.now(),response:e};return(0,a.triggerHandlers)("fetch",t),e}),(e=>{const t={...i,endTimestamp:Date.now(),error:e};throw(0,a.triggerHandlers)("fetch",t),e}))}}))}function c(e,t){return!!e&&"object"==typeof e&&!!e[t]}function l(e){return"string"==typeof e?e:e?c(e,"url")?e.url:e.toString?e.toString():"":""}function f(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:l(t),method:c(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:l(t),method:c(t,"method")?String(t.method).toUpperCase():"GET"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFetch:()=>l,supportsDOMError:()=>s,supportsDOMException:()=>u,supportsErrorEvent:()=>a,supportsFetch:()=>c,supportsNativeFetch:()=>f,supportsReferrerPolicy:()=>d,supportsReportingObserver:()=>p});var n=r(287),i=r(286);const o=(0,r(283).getGlobalObject)();function a(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function s(){try{return new DOMError(""),!0}catch(e){return!1}}function u(){try{return new DOMException(""),!0}catch(e){return!1}}function c(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function l(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function f(){if("string"==typeof EdgeRuntime)return!0;if(!c())return!1;if(l(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=l(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.DEBUG_BUILD&&i.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function p(){return"ReportingObserver"in o}function d(){if(!c())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>c});var n=r(291),i=r(283),o=r(962),a=r(956);const s=i.GLOBAL_OBJ;let u;function c(e){const t="history";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,l)}function l(){if(!(0,o.supportsHistory)())return;const e=s.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=u,t=String(r);u=t;const n={from:e,to:t};(0,a.triggerHandlers)("history",n)}return e.apply(this,t)}}s.onpopstate=function(...t){const r=s.location.href,n=u;u=r;const i={from:n,to:r};if((0,a.triggerHandlers)("history",i),e)try{return e.apply(this,t)}catch(e){}},(0,n.fill)(s.history,"pushState",t),(0,n.fill)(s.history,"replaceState",t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{supportsHistory:()=>i});const n=(0,r(283).getGlobalObject)();function i(){const e=n.chrome,t=e&&e.app&&e.app.runtime,r="history"in n&&!!n.history.pushState&&!!n.history.replaceState;return!t&&r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{severityFromString:()=>i,severityLevelFromString:()=>o,validSeverityLevels:()=>n});const n=["fatal","error","warning","log","info","debug"];function i(e){return o(e)}function o(e){return"warn"===e?"warning":n.includes(e)?e:"log"}},(e,t,r)=>{"use strict";function n(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function i(e){return e.split(/[\?#]/,1)[0]}function o(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}function a(e){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}r.r(t),r.d(t,{getNumberOfUrlSegments:()=>o,getSanitizedUrlString:()=>a,parseUrl:()=>n,stripUrlQueryAndFragment:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Dedupe:()=>u,dedupeIntegration:()=>s});var n=r(947),i=r(286),o=r(938);const a="Dedupe",s=(0,n.defineIntegration)((()=>{let e;return{name:a,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!l(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const r=f(t),n=f(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!l(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return o.DEBUG_BUILD&&i.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}})),u=(0,n.convertIntegrationFnToClass)(a,s);function c(e,t){let r=p(e),n=p(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function l(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function f(e){return e.exception&&e.exception.values&&e.exception.values[0]}function p(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalHandlers:()=>m,globalHandlersIntegration:()=>h});var n=r(947),i=r(277),o=r(967),a=r(285),s=r(968),u=r(292),c=r(286),l=r(938),f=r(939),p=r(940);const d="GlobalHandlers",h=(0,n.defineIntegration)(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:d,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,o.addGlobalErrorInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=v();if((0,i.getClient)()!==e||(0,p.shouldIgnoreOnError)())return;const{msg:o,url:s,line:u,column:c,error:l}=t,d=void 0===l&&(0,a.isString)(o)?function(e,t,r,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=(0,a.isErrorEvent)(e)?e.message:e,s="Error";const u=o.match(i);u&&(s=u[1],o=u[2]);const c={exception:{values:[{type:s,value:o}]}};return g(c,t,r,n)}(o,s,u,c):g((0,f.eventFromUnknownInput)(r,l||o,void 0,n,!1),s,u,c);d.level="error",(0,i.captureEvent)(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(e),y("onerror")),t.onunhandledrejection&&(!function(e){(0,s.addGlobalUnhandledRejectionInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=v();if((0,i.getClient)()!==e||(0,p.shouldIgnoreOnError)())return;const o=function(e){if((0,a.isPrimitive)(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),s=(0,a.isPrimitive)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:(0,f.eventFromUnknownInput)(r,o,void 0,n,!0);s.level="error",(0,i.captureEvent)(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),y("onunhandledrejection"))}}})),m=(0,n.convertIntegrationFnToClass)(d,h);function g(e,t,r,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},c=s.stacktrace=s.stacktrace||{},l=c.frames=c.frames||[],f=isNaN(parseInt(n,10))?void 0:n,p=isNaN(parseInt(r,10))?void 0:r,d=(0,a.isString)(t)&&t.length>0?t:(0,u.getLocationHref)();return 0===l.length&&l.push({colno:f,filename:d,function:"?",in_app:!0,lineno:p}),e}function y(e){l.DEBUG_BUILD&&c.logger.log(`Global Handler attached: ${e}`)}function v(){const e=(0,i.getClient)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>a});var n=r(283),i=r(956);let o=null;function a(e){const t="error";(0,i.addHandler)(t,e),(0,i.maybeInstrument)(t,s)}function s(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(e,t,r,n,a){const s={column:n,error:a,line:r,msg:e,url:t};return(0,i.triggerHandlers)("error",s),!(!o||o.__SENTRY_LOADER__)&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalUnhandledRejectionInstrumentationHandler:()=>a});var n=r(283),i=r(956);let o=null;function a(e){const t="unhandledrejection";(0,i.addHandler)(t,e),(0,i.maybeInstrument)(t,s)}function s(){o=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,i.triggerHandlers)("unhandledrejection",t),!(o&&!o.__SENTRY_LOADER__)||o.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpContext:()=>s,httpContextIntegration:()=>a});var n=r(947),i=r(940);const o="HttpContext",a=(0,n.defineIntegration)((()=>({name:o,setupOnce(){},preprocessEvent(e){if(!i.WINDOW.navigator&&!i.WINDOW.location&&!i.WINDOW.document)return;const t=e.request&&e.request.url||i.WINDOW.location&&i.WINDOW.location.href,{referrer:r}=i.WINDOW.document||{},{userAgent:n}=i.WINDOW.navigator||{},o={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:o};e.request=a}}))),s=(0,n.convertIntegrationFnToClass)(o,a)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LinkedErrors:()=>u,linkedErrorsIntegration:()=>s});var n=r(947),i=r(971),o=r(939);const a="LinkedErrors",s=(0,n.defineIntegration)(((e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:a,setupOnce(){},preprocessEvent(e,n,a){const s=a.getOptions();(0,i.applyAggregateErrorsToEvent)(o.exceptionFromError,s.stackParser,s.maxValueLength,r,t,e,n)}}})),u=(0,n.convertIntegrationFnToClass)(a,s)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyAggregateErrorsToEvent:()=>o});var n=r(285),i=r(293);function o(e,t,r=250,o,s,u,c){if(!(u.exception&&u.exception.values&&c&&(0,n.isInstanceOf)(c.originalException,Error)))return;const l=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;var f,p;l&&(u.exception.values=(f=a(e,t,s,c.originalException,o,u.exception.values,l,0),p=r,f.map((e=>(e.value&&(e.value=(0,i.truncate)(e.value,p)),e)))))}function a(e,t,r,i,o,c,l,f){if(c.length>=r+1)return c;let p=[...c];if((0,n.isInstanceOf)(i[o],Error)){s(l,f);const n=e(t,i[o]),c=p.length;u(n,o,c,f),p=a(e,t,r,i[o],o,[n,...p],n,c)}return Array.isArray(i.errors)&&i.errors.forEach(((i,c)=>{if((0,n.isInstanceOf)(i,Error)){s(l,f);const n=e(t,i),d=p.length;u(n,`errors[${c}]`,d,f),p=a(e,t,r,i,o,[n,...p],n,d)}})),p}function s(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function u(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TryCatch:()=>l,browserApiErrorsIntegration:()=>c});var n=r(947),i=r(291),o=r(304),a=r(940);const s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],u="TryCatch",c=(0,n.defineIntegration)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:u,setupOnce(){t.setTimeout&&(0,i.fill)(a.WINDOW,"setTimeout",f),t.setInterval&&(0,i.fill)(a.WINDOW,"setInterval",f),t.requestAnimationFrame&&(0,i.fill)(a.WINDOW,"requestAnimationFrame",p),t.XMLHttpRequest&&"XMLHttpRequest"in a.WINDOW&&(0,i.fill)(XMLHttpRequest.prototype,"send",d);const e=t.eventTarget;if(e){(Array.isArray(e)?e:s).forEach(h)}}}})),l=(0,n.convertIntegrationFnToClass)(u,c);function f(e){return function(...t){const r=t[0];return t[0]=(0,a.wrap)(r,{mechanism:{data:{function:(0,o.getFunctionName)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function p(e){return function(t){return e.apply(this,[(0,a.wrap)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,o.getFunctionName)(e)},handled:!1,type:"instrument"}})])}}function d(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&(0,i.fill)(r,e,(function(t){const r={mechanism:{data:{function:e,handler:(0,o.getFunctionName)(t)},handled:!1,type:"instrument"}},n=(0,i.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,o.getFunctionName)(n)),(0,a.wrap)(t,r)}))})),e.apply(this,t)}}function h(e){const t=a.WINDOW,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,i.fill)(r,"addEventListener",(function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,a.wrap)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,o.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,a.wrap)(n,{mechanism:{data:{function:"addEventListener",handler:(0,o.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}),i])}})),(0,i.fill)(r,"removeEventListener",(function(e){return function(t,r,n){const i=r;try{const r=i&&i.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,i,n)}})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chromeStackLineParser:()=>u,defaultStackLineParsers:()=>v,defaultStackParser:()=>b,geckoStackLineParser:()=>f,opera10StackLineParser:()=>m,opera11StackLineParser:()=>y,winjsStackLineParser:()=>d});var n=r(304);const i="?";function o(e,t,r,n){const i={filename:e,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}const a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=[30,e=>{const t=a.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=s.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,r]=_(t[1]||i,t[2]);return o(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],c=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,f=[50,e=>{const t=c.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=l.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||i;return[r,e]=_(r,e),o(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],p=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,d=[40,e=>{const t=p.exec(e);return t?o(t[2],t[1]||i,+t[3],t[4]?+t[4]:void 0):void 0}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,m=[10,e=>{const t=h.exec(e);return t?o(t[2],t[3]||i,+t[1]):void 0}],g=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,y=[20,e=>{const t=g.exec(e);return t?o(t[5],t[3]||t[4]||i,+t[1],+t[2]):void 0}],v=[u,f,d],b=(0,n.createStackParser)(...v),_=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:i,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeFetchTransport:()=>a});var n=r(976),i=r(284),o=r(975);function a(e,t=(0,o.getNativeFetchImplementation)()){let r=0,a=0;return(0,n.createTransport)(e,(function(n){const s=n.body.length;r+=s,a++;const u={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&a<15,...e.fetchOptions};try{return t(e.url,u).then((e=>(r-=s,a--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return(0,o.clearCachedFetchImplementation)(),r-=s,a--,(0,i.rejectedSyncPromise)(e)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCachedFetchImplementation:()=>c,getNativeFetchImplementation:()=>u});var n=r(960),i=r(286),o=r(938),a=r(940);let s;function u(){if(s)return s;if((0,n.isNativeFetch)(a.WINDOW.fetch))return s=a.WINDOW.fetch.bind(a.WINDOW);const e=a.WINDOW.document;let t=a.WINDOW.fetch;if(e&&"function"==typeof e.createElement)try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);const n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(e){o.DEBUG_BUILD&&i.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return s=t.bind(a.WINDOW)}function c(){s=void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>f});var n=r(977),i=r(943),o=r(978),a=r(284),s=r(286),u=r(950),c=r(279);const l=30;function f(e,t,r=(0,n.makePromiseBuffer)(e.bufferSize||l)){let f={};function d(n){const l=[];if((0,i.forEachEnvelopeItem)(n,((t,r)=>{const n=(0,i.envelopeItemTypeToDataCategory)(r);if((0,o.isRateLimited)(f,n)){const i=p(t,r);e.recordDroppedEvent("ratelimit_backoff",n,i)}else l.push(t)})),0===l.length)return(0,a.resolvedSyncPromise)();const d=(0,i.createEnvelope)(n[0],l),h=t=>{(0,i.forEachEnvelopeItem)(d,((r,n)=>{const o=p(r,n);e.recordDroppedEvent(t,(0,i.envelopeItemTypeToDataCategory)(n),o)}))};return r.add((()=>t({body:(0,i.serializeEnvelope)(d,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&c.DEBUG_BUILD&&s.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),f=(0,o.updateRateLimits)(f,e),e)),(e=>{throw h("network_error"),e})))).then((e=>e),(e=>{if(e instanceof u.SentryError)return c.DEBUG_BUILD&&s.logger.error("Skipped sending event because buffer is full."),h("queue_overflow"),(0,a.resolvedSyncPromise)();throw e}))}return d.__sentry__baseTransport__=!0,{send:d,flush:e=>r.drain(e)}}function p(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makePromiseBuffer:()=>o});var n=r(950),i=r(284);function o(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,i.rejectedSyncPromise)(new n.SentryError("Not adding Promise because buffer limit was reached."));const a=o();return-1===t.indexOf(a)&&t.push(a),a.then((()=>r(a))).then(null,(()=>r(a).then(null,(()=>{})))),a},drain:function(e){return new i.SyncPromise(((r,n)=>{let o=t.length;if(!o)return r(!0);const a=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,i.resolvedSyncPromise)(e).then((()=>{--o||(clearTimeout(a),r(!0))}),n)}))}))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_AFTER:()=>n,disabledUntil:()=>o,isRateLimited:()=>a,parseRetryAfterHeader:()=>i,updateRateLimits:()=>s});const n=6e4;function i(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const i=Date.parse(`${e}`);return isNaN(i)?n:i-t}function o(e,t){return e[t]||e.all||0}function a(e,t,r=Date.now()){return o(e,t)>r}function s(e,{statusCode:t,headers:r},n=Date.now()){const o={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,r,,,i]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(r)for(const e of r.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=n+s);else o.all=n+s}else s?o.all=n+i(s,n):429===t&&(o.all=n+6e4);return o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeXHRTransport:()=>a});var n=r(976),i=r(284);const o=4;function a(e){return(0,n.createTransport)(e,(function(t){return new i.SyncPromise(((r,n)=>{const i=new XMLHttpRequest;i.onerror=n,i.onreadystatechange=()=>{i.readyState===o&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InboundFilters:()=>p,inboundFiltersIntegration:()=>f});var n=r(286),i=r(290),o=r(293),a=r(279),s=r(947);const u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],c=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],l="InboundFilters",f=(0,s.defineIntegration)(((e={})=>({name:l,setupOnce(){},processEvent(t,r,s){const l=s.getOptions(),f=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:c],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,l);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return a.DEBUG_BUILD&&n.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.getEventDescription)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1]}catch(e){}r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`));a.DEBUG_BUILD&&0===t.length&&n.logger.error(`Could not extract message for event ${(0,i.getEventDescription)(e)}`);return t}(e).some((e=>(0,o.stringMatchesSomePattern)(e,t)))}(e,t.ignoreErrors))return a.DEBUG_BUILD&&n.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.getEventDescription)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&(0,o.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return a.DEBUG_BUILD&&n.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.getEventDescription)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const r=d(e);return!!r&&(0,o.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return a.DEBUG_BUILD&&n.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.getEventDescription)(e)}.\nUrl: ${d(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const r=d(e);return!r||(0,o.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return a.DEBUG_BUILD&&n.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.getEventDescription)(e)}.\nUrl: ${d(e)}`),!0;return!1}(t,f)?null:t}}))),p=(0,s.convertIntegrationFnToClass)(l,f);function d(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return a.DEBUG_BUILD&&n.logger.error(`Cannot extract url for event ${(0,i.getEventDescription)(e)}`),null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FunctionToString:()=>l,functionToStringIntegration:()=>c});var n=r(291),i=r(277),o=r(947);let a;const s="FunctionToString",u=new WeakMap,c=(0,o.defineIntegration)((()=>({name:s,setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,n.getOriginalFunction)(this),r=u.has((0,i.getClient)())&&void 0!==t?t:this;return a.apply(r,e)}}catch(e){}},setup(e){u.set(e,!0)}}))),l=(0,o.convertIntegrationFnToClass)(s,c)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initAndBind:()=>s,setCurrentClient:()=>u});var n=r(286),i=r(279),o=r(277),a=r(280);function s(e,t){!0===t.debug&&(i.DEBUG_BUILD?n.logger.enable():(0,n.consoleSandbox)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,o.getCurrentScope)().update(t.initialScope);const r=new e(t);u(r),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(r)}function u(e){const t=(0,a.getCurrentHub)().getStackTop();t.client=e,t.scope.setClient(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InternalReplay:()=>On,Replay:()=>In,getReplay:()=>kn,internalGetReplay:()=>Tn,internalReplayIntegration:()=>wn,replayIntegration:()=>Cn});var n=r(984),i=r(985),o=r(277),a=r(1003),s=r(944),u=r(301),c=r(280),l=r(297),f=r(1004),p=r(283),d=r(302),h=r(291),m=r(292),g=r(289),y=r(286),v=r(290),b=r(958),_=r(293),S=r(959),E=r(957),w=r(961),O=r(943),x=r(978),T=r(1005),k=r(986);const C=p.GLOBAL_OBJ,I="sentryReplaySession",R="replay_event",A="Unable to send Replay",P=15e4,D=5e3,N=2e7,M=36e5;function L(e){let t,r=e[0],n=1;for(;n<e.length;){const i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):"call"!==i&&"optionalCall"!==i||(r=o(((...e)=>r.call(t,...e))),t=void 0)}return r}var j;function B(e){const t=L([e,"optionalAccess",e=>e.host]);return Boolean(L([t,"optionalAccess",e=>e.shadowRoot])===e)}function F(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function U(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,H).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function H(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=U(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(j||(j={}));class q{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=L([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return n=()=>-1,null!=(r=t)?r:n();var r,n}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function z({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function W({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function V(e){return e.toLowerCase()}function G(e){return e.toUpperCase()}const $="__rrweb_original__";function K(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?V(t):null}function Y(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}let Q=1;const X=new RegExp("[^a-z0-9-_:]"),J=-2;function Z(){return Q++}let ee,te;const re=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ne=/^(?:[a-z+]+:)?\/\//i,ie=/^www\..*/i,oe=/^(data:)([^,]*),(.*)/i;function ae(e,t){return(e||"").replace(re,((e,r,n,i,o,a)=>{const s=n||o||a,u=r||i||"";if(!s)return e;if(ne.test(s)||ie.test(s))return`url(${u}${s}${u})`;if(oe.test(s))return`url(${u}${s}${u})`;if("/"===s[0])return`url(${u}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${u})`;const c=t.split("/"),l=s.split("/");c.pop();for(const e of l)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${u}${c.join("/")}${u})`}))}const se=/^[^ \t\n\r\u000c]+/,ue=/^[, \t\n\r\u000c]+/;function ce(e,t){if(!t||""===t.trim())return t;const r=e.createElement("a");return r.href=t,r.href}function le(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function fe(){const e=document.createElement("a");return e.href="",e.href}function pe(e,t,r,n,i,o){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ce(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}const i=[];for(;n(ue),!(r>=t.length);){let o=n(se);if(","===o.slice(-1))o=ce(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=ce(e,o);let a=!1;for(;;){const e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){r+=1,i.push((o+n).trim());break}"("===e&&(a=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n):"style"===r?ae(n,fe()):"object"===t&&"data"===r?ce(e,n):"function"==typeof o?o(r,n,i):n:ce(e,n):n}function de(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function he(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:he(e.parentNode,t,r,n+1):-1}function me(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch(e){return!1}}}function ge(e,t,r,n,i,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,u=-1;if(o){if(u=he(a,me(n,i)),u<0)return!0;s=he(a,me(t,r),u>=0?u:1/0)}else{if(s=he(a,me(t,r)),s<0)return!1;u=he(a,me(n,i),s>=0?s:1/0)}return s>=0?!(u>=0)||s<=u:!(u>=0)&&!!o}catch(e){}return!!o}function ye(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:d,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S=!1}=t,E=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:j.Document,childNodes:[],compatMode:e.compatMode}:{type:j.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:j.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:i,unblockSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:d,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,S=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,i,o),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=V(e.tagName);return X.test(t)?"div":t}(e);let w={};const O=e.attributes.length;for(let t=0;t<O;t++){const n=e.attributes[t];n.name&&!de(E,n.name,n.value)&&(w[n.name]=pe(r,E,V(n.name),n.value,e,u))}if("link"===E&&a){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=U(t)),n&&(delete w.rel,delete w.href,w._cssText=ae(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=U(e.sheet);t&&(w._cssText=ae(t,fe()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,r=K(t),n=Y(t,G(E),r),i=t.checked;if("submit"!==r&&"button"!==r&&n){const e=ge(t,y,b,v,_,z({type:r,tagName:G(E),maskInputOptions:s}));w.value=W({isMasked:e,element:t,value:n,maskInputFn:c})}i&&(w.checked=i)}"option"===E&&(e.selected&&!s.select?w.selected=!0:delete w.selected);if("canvas"===E&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const i=t.getImageData,o=$ in i?i[$]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(l.type,l.quality)&&(w.rr_dataURL=t)}if("img"===E&&f){ee||(ee=r.createElement("canvas"),te=ee.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{t.removeEventListener("load",i);try{ee.width=t.naturalWidth,ee.height=t.naturalHeight,te.drawImage(t,0,0),w.rr_dataURL=ee.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?w.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==E&&"video"!==E||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:r}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==E||d(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);let x;try{customElements.get(E)&&(x=!0)}catch(e){}return{type:j.Element,tagName:E,attributes:w,childNodes:[],isSVG:le(e)||void 0,needBlock:S,rootId:m,isCustom:x}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:d,maskAttributeFn:u,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:E,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:u,maskInputFn:c,rootId:l}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const d="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(d&&p){try{e.nextSibling||e.previousSibling||L([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=U(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=ae(p,fe())}h&&(p="SCRIPT_PLACEHOLDER");const g=ge(e,n,o,i,a,r);d||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(u.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===f&&p){p=W({isMasked:ge(e,n,o,i,a,z({type:null,tagName:f,maskInputOptions:u})),element:e,value:p,maskInputFn:c})}return{type:j.Text,textContent:p||"",isStyle:d,rootId:l}}(e,{maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:E});case e.CDATA_SECTION_NODE:return{type:j.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:j.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function ve(e){return null==e?"":e.toLowerCase()}function be(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:d=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:S=!1,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:O=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:k=(()=>!1),newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:I=!0}=t;const R=ye(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:d,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:C});if(!R)return console.warn(e,"not serialized"),null;let A;A=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===j.Comment)return!0;if(e.type===j.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ve(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ve(e.attributes.name)||"icon"===ve(e.attributes.rel)||"apple-touch-icon"===ve(e.attributes.rel)||"shortcut icon"===ve(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ve(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ve(e.attributes.property).match(/^(og|twitter|fb):/)||ve(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ve(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ve(e.attributes.name)||"googlebot"===ve(e.attributes.name)||"bingbot"===ve(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ve(e.attributes.name)||"generator"===ve(e.attributes.name)||"framework"===ve(e.attributes.name)||"publisher"===ve(e.attributes.name)||"progid"===ve(e.attributes.name)||ve(e.attributes.property).match(/^article:/)||ve(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ve(e.attributes.name)||"yandex-verification"===ve(e.attributes.name)||"csrf-token"===ve(e.attributes.name)||"p:domain_verify"===ve(e.attributes.name)||"verify-v1"===ve(e.attributes.name)||"verification"===ve(e.attributes.name)||"shopify-checkout-api-token"===ve(e.attributes.name)))return!0}}return!1}(R,v)&&(I||R.type!==j.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Z():J;const P=Object.assign(R,{id:A});if(n.add(e,P),A===J)return null;E&&E(e);let D=!p;if(P.type===j.Element){D=D&&!P.needBlock,delete P.needBlock;const t=e.shadowRoot;t&&F(t)&&(P.isShadowHost=!0)}if((P.type===j.Document||P.type===j.Element)&&D){v.headWhitespace&&P.type===j.Element&&"head"===P.tagName&&(I=!1);const t={doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:p,inlineStylesheet:d,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:O,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:k};for(const r of Array.from(e.childNodes)){const e=be(r,t);e&&P.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=be(r,t);n&&(F(e.shadowRoot)&&(n.isShadow=!0),P.childNodes.push(n))}}return e.parentNode&&B(e.parentNode)&&F(e.parentNode)&&(P.isShadow=!0),P.type===j.Element&&"iframe"===P.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){const n=setTimeout((()=>{o||(t(),o=!0)}),r);return void e.addEventListener("load",(()=>{clearTimeout(n),o=!0,t()}))}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&w){const r=be(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:O,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:k});r&&w(e,r)}}),O),P.type===j.Element&&"link"===P.tagName&&"stylesheet"===P.attributes.rel&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;const o=setTimeout((()=>{i||(t(),i=!0)}),r);e.addEventListener("load",(()=>{clearTimeout(o),i=!0,t()}))}(e,(()=>{if(x){const t=be(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:O,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:k});t&&x(e,t)}}),T),P}function _e(e){let t,r=e[0],n=1;for(;n<e.length;){const i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):"call"!==i&&"optionalCall"!==i||(r=o(((...e)=>r.call(t,...e))),t=void 0)}return r}function Se(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Ee="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let we={map:{},getId:()=>(console.error(Ee),-1),getNode:()=>(console.error(Ee),null),removeNodeFromMap(){console.error(Ee)},has:()=>(console.error(Ee),!1),reset(){console.error(Ee)}};function Oe(e,t,r={}){let n=null,i=0;return function(...o){const a=Date.now();i||!1!==r.leading||(i=a);const s=t-(a-i),u=this;s<=0||s>t?(n&&(!function(...e){We("clearTimeout")(...e)}(n),n=null),i=a,e.apply(u,o)):n||!1===r.trailing||(n=Ve((()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(u,o)}),s))}}function xe(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){Ve((()=>{r.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>xe(e,t,o||{},!0)}function Te(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(we=new Proxy(we,{get:(e,t,r)=>("map"===t&&console.error(Ee),Reflect.get(e,t,r))}));let ke=Date.now;function Ce(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:_e([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||_e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||_e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:_e([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||_e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||_e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Ie(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Re(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ae(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Pe(e,t,r,n,i){if(!e)return!1;const o=Ae(e);if(!o)return!1;const a=me(t,r);if(!i){const e=n&&o.matches(n);return a(o)&&!e}const s=he(o,a);let u=-1;return!(s<0)&&(n&&(u=he(o,me(null,n))),s>-1&&u<0||s<u)}function De(e,t){return t.getId(e)===J}function Ne(e,t){if(B(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ne(e.parentNode,t))}function Me(e){return Boolean(e.changedTouches)}function Le(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function je(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Be(e){return Boolean(_e([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ke=()=>(new Date).getTime());class Fe{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return(0,n._nullishCoalesce)(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ue(e){let t=null;return _e([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function He(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Ue(r);)r=t;return r}(e);return t.contains(r)}function qe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||He(e))}const ze={};function We(e){const t=ze[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return ze[e]=n.bind(window)}function Ve(...e){return We("setTimeout")(...e)}var Ge=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ge||{}),$e=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))($e||{}),Ke=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ke||{}),Ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ye||{});function Qe(e){let t,r=e[0],n=1;for(;n<e.length;){const i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):"call"!==i&&"optionalCall"!==i||(r=o(((...e)=>r.call(t,...e))),t=void 0)}return r}function Xe(e){return"__ln"in e}class Je{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=Qe([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Xe(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Xe(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ze=(e,t)=>`${e}@${t}`;class et{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new Je,n=e=>{let t=e,r=J;for(;r===J;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!qe(i))return;const o=B(i.parentNode)?this.mirror.getId(Ue(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===o||-1===a)return r.addNode(i);const s=be(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Le(e,this.mirror)&&this.iframeManager.addIframe(e),je(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Be(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)rt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)it(this.droppedSet,e)||rt(this.removes,e,this.mirror)?it(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;r.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),r=n(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),i(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!De(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Pe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ge(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ae(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){const r=K(t),i=t.tagName;n=Y(t,i,r);const o=z({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=W({isMasked:ge(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(Pe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(t.contentDocument)return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!de(t.tagName,r)&&(i.attributes[r]=pe(this.doc,V(t.tagName),V(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);n!==r.style.getPropertyValue(e)||o!==r.style.getPropertyPriority(e)?i.styleDiff[e]=""===o?n:[n,o]:i._unchangedStyles[e]=[n,o]}for(const e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(Pe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=B(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Pe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||De(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(tt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||Ne(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ze(r,n)]?tt(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!B(e.target)||!F(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(De(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Ze(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Pe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Be(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function tt(e,t){e.delete(t),t.childNodes.forEach((t=>tt(e,t)))}function rt(e,t,r){return 0!==e.length&&nt(e,t,r)}function nt(e,t,r){const{parentNode:n}=t;if(!n)return!1;const i=r.getId(n);return!!e.some((e=>e.id===i))||nt(e,n,r)}function it(e,t){return 0!==e.size&&ot(e,t)}function ot(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||ot(e,r))}let at;function st(e){at=e}function ut(){at=void 0}const ct=e=>{if(!at)return e;return(...t)=>{try{return e(...t)}catch(e){if(at&&!0===at(e))return()=>{};throw e}}};function lt(e){let t,r=e[0],n=1;for(;n<e.length;){const i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):"call"!==i&&"optionalCall"!==i||(r=o(((...e)=>r.call(t,...e))),t=void 0)}return r}const ft=[];function pt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function dt(e,t){const r=new et;ft.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const i=lt([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(n=window[i]);const o=new n(ct((t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function ht({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[];let c=null;return Object.keys(Ke).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=V(a);const l=(t=>a=>{const s=pt(a);if(Pe(s,n,i,o,!0))return;let u=null,l=t;if("pointerType"in a){switch(a.pointerType){case"mouse":u=Ye.Mouse;break;case"touch":u=Ye.Touch;break;case"pen":u=Ye.Pen}u===Ye.Touch?Ke[t]===Ke.MouseDown?l="TouchStart":Ke[t]===Ke.MouseUp&&(l="TouchEnd"):Ye.Pen}else Me(a)&&(u=Ye.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===Ye.Touch||l.startsWith("Mouse")&&u===Ye.Mouse)&&(u=null)):Ke[t]===Ke.Click&&(u=c,c=null);const f=Me(a)?a.changedTouches[0]:a;if(!f)return;const p=r.getId(s),{clientX:d,clientY:h}=f;ct(e)({type:Ke[l],id:p,x:d,y:h,...null!==u&&{pointerType:u}})})(a);if(window.PointerEvent)switch(Ke[a]){case Ke.MouseDown:case Ke.MouseUp:s=s.replace("mouse","pointer");break;case Ke.TouchStart:case Ke.TouchEnd:return}u.push(Se(s,l,t))})),ct((()=>{u.forEach((e=>e()))}))}function mt({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return Se("scroll",ct(Oe(ct((a=>{const s=pt(a);if(!s||Pe(s,n,i,o,!0))return;const u=r.getId(s);if(s===t&&t.defaultView){const r=Ce(t.defaultView);e({id:u,x:r.left,y:r.top})}else e({id:u,x:s.scrollLeft,y:s.scrollTop})})),a.scroll||100)),t)}const gt=["INPUT","TEXTAREA","SELECT"],yt=new WeakMap;function vt({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let r=pt(e);const l=e.isTrusted,g=r&&G(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||gt.indexOf(g)<0||Pe(r,n,i,o,!0))return;const v=r;if(v.classList.contains(a)||s&&v.matches(s))return;const b=K(r);let _=Y(v,g,b),S=!1;const E=z({maskInputOptions:u,tagName:g,type:b}),w=ge(r,p,h,d,m,E);"radio"!==b&&"checkbox"!==b||(S=r.checked),_=W({isMasked:w,element:r,value:_,maskInputFn:c}),y(r,f?{text:_,isChecked:S,userTriggered:l}:{text:_,isChecked:S});const O=r.name;"radio"===b&&O&&S&&t.querySelectorAll(`input[type="radio"][name="${O}"]`).forEach((e=>{if(e!==r){const t=W({isMasked:w,element:e,value:Y(e,g,b),maskInputFn:c});y(e,f?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function y(t,n){const i=yt.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){yt.set(t,n);const i=r.getId(t);ct(e)({...n,id:i})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>Se(e,ct(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...S.map((e=>xe(e[0],e[1],{set(){ct(g)({target:this,isTrusted:!1})}},!1,b)))),ct((()=>{v.forEach((e=>e()))}))}function bt(e){return function(e,t){if(wt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||wt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||wt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||wt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function _t(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function St({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);const i="#document"===r.nodeName?lt([r,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):lt([r,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=lt([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(lt([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return lt([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const r=lt([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),ct((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function Et(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};const n=dt(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const u=Oe(ct((t=>{const r=Date.now()-a;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],a=null})),o),c=ct(Oe(ct((e=>{const t=pt(e),{clientX:r,clientY:i}=Me(e)?e.changedTouches[0]:e;a||(a=ke()),s.push({x:r,y:i,id:n.getId(t),timeOffset:ke()-a}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?$e.Drag:e instanceof MouseEvent?$e.MouseMove:$e.TouchMove)})),i,{trailing:!1})),l=[Se("mousemove",c,r),Se("touchmove",c,r),Se("drag",c,r)];return ct((()=>{l.forEach((e=>e()))}))}(e),o=ht(e),a=mt(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return Se("resize",ct(Oe(ct((()=>{const t=Ie(),i=Re();r===t&&n===i||(e({width:Number(i),height:Number(t)}),r=t,n=i)})),200)),t)}(e,{win:r}),u=vt(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){const s=ct((a=>Oe(ct((o=>{const s=pt(o);if(!s||Pe(s,t,r,n,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:f}=s;e({type:a,id:i.getId(s),currentTime:u,volume:c,muted:l,playbackRate:f})})),o.media||500))),u=[Se("play",s(0),a),Se("pause",s(1),a),Se("seeked",s(2),a),Se("volumechange",s(3),a),Se("ratechange",s(4),a)];return ct((()=>{u.forEach((e=>e()))}))}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:ct(((n,i,o)=>{const[a,s]=o,{id:u,styleId:c}=_t(i,t,r.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:a,index:s}]}),n.apply(i,o)}))});const o=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ct(((n,i,o)=>{const[a]=o,{id:s,styleId:u}=_t(i,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,removes:[{index:a}]}),n.apply(i,o)}))}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:ct(((n,i,o)=>{const[a]=o,{id:s,styleId:u}=_t(i,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,replace:a}),n.apply(i,o)}))})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ct(((n,i,o)=>{const[a]=o,{id:s,styleId:u}=_t(i,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,replaceSync:a}),n.apply(i,o)}))}));const u={};Ot("CSSGroupingRule")?u.CSSGroupingRule=n.CSSGroupingRule:(Ot("CSSMediaRule")&&(u.CSSMediaRule=n.CSSMediaRule),Ot("CSSConditionRule")&&(u.CSSConditionRule=n.CSSConditionRule),Ot("CSSSupportsRule")&&(u.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(u).forEach((([n,i])=>{c[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[n].insertRule,{apply:ct(((n,i,o)=>{const[a,s]=o,{id:u,styleId:c}=_t(i.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:a,index:[...bt(i),s||0]}]}),n.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:ct(((n,i,o)=>{const[a]=o,{id:s,styleId:u}=_t(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,removes:[{index:[...bt(i),a]}]}),n.apply(i,o)}))})})),ct((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(u).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}(e,{win:r}),f=St(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:ct(((i,a,s)=>{const[u,c,l]=s;if(r.has(u))return o.apply(a,[u,c,l]);const{id:f,styleId:p}=_t(lt([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(f&&-1!==f||p&&-1!==p)&&e({id:f,styleId:p,set:{property:u,value:c,priority:l},index:bt(a.parentRule)}),i.apply(a,s)}))});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:ct(((i,o,s)=>{const[u]=s;if(r.has(u))return a.apply(o,[u]);const{id:c,styleId:l}=_t(lt([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,remove:{property:u},index:bt(o.parentRule)}),i.apply(o,s)}))}),ct((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:r}),d=e.collectFonts?function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){const n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const a=Te(t.fonts,"add",(function(t){return function(r){return Ve(ct((()=>{const t=i.get(r);t&&(e(t),i.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=o})),n.push(a),ct((()=>{n.forEach((e=>e()))}))}(e):()=>{},h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:a}=e;let s=!0;const u=ct((()=>{const e=t.getSelection();if(!e||s&&lt([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const u=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const a=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:l,endOffset:f}=a;Pe(s,n,i,o,!0)||Pe(l,n,i,o,!0)||u.push({start:r.getId(s),startOffset:c,end:r.getId(l),endOffset:f})}a({ranges:u})}));return u(),Se("selectionchange",u)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Te(r.customElements,"define",(function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,r,t.options));return ct((()=>{ft.forEach((e=>e.reset())),n.disconnect(),i(),o(),a(),s(),u(),c(),l(),f(),p(),d(),h(),m(),g.forEach((e=>e()))}))}function wt(e){return void 0!==window[e]}function Ot(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class xt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const i=n.get(t);return i||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Tt(e){let t,r=e[0],n=1;for(;n<e.length;){const i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):"call"!==i&&"optionalCall"!==i||(r=o(((...e)=>r.call(t,...e))),t=void 0)}return r}class kt{constructor(){this.crossOriginIframeMirror=new xt(Z),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Ct{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new xt(Z),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new xt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Tt([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Ge.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Ge.IncrementalSnapshot,data:{source:$e.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ge.Meta:case Ge.Load:case Ge.DomContentLoaded:return!1;case Ge.Plugin:return t;case Ge.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ge.IncrementalSnapshot:switch(t.data.source){case $e.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case $e.Drag:case $e.TouchMove:case $e.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case $e.ViewportResize:return!1;case $e.MediaInteraction:case $e.MouseInteraction:case $e.Scroll:case $e.CanvasMutation:case $e.Input:return this.replaceIds(t.data,e,["id"]),t;case $e.StyleSheetRule:case $e.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case $e.Font:return t;case $e.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case $e.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Tt([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,r,n){for(const i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===j.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class It{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Rt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!F(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=dt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(mt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ve((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(St({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Te(e.prototype,"attachShadow",(function(e){return function(n){const i=e.call(this,n);return this.shadowRoot&&qe(this)&&r.addShadowRoot(this.shadowRoot,t),i}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class At{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class Pt{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Fe,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:H(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Dt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){We("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Nt,Mt;const Lt=new q;function jt(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:u="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:f="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:b,maskInputFn:_,maskTextFn:S,maxCanvasSize:E=null,packFn:w,sampling:O={},dataURLOptions:x={},mousemoveWait:T,recordCanvas:k=!1,recordCrossOriginIframes:C=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:P=!1,plugins:D,keepIframeSrcFn:N=(()=>!1),ignoreCSSAttributes:M=new Set([]),errorHandler:L,onMutation:j,getCanvasManager:B}=e;st(L);const F=!C||window.parent===window;let U=!1;if(!F)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(F&&!t)throw new Error("emit function is required");void 0!==T&&void 0===O.mousemove&&(O.mousemove=T),Lt.reset();const H=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},z=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let W;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let V=0;const G=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!U&&(e=w(e)),e};Nt=(e,o)=>{const a=e;if(a.timestamp=ke(),!(0,i._optionalChain)([ft,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||a.type===Ge.FullSnapshot||a.type===Ge.IncrementalSnapshot&&a.data.source===$e.Mutation||ft.forEach((e=>e.unfreeze())),F)(0,i._optionalChain)([t,"optionalCall",e=>e(G(a),o)]);else if(U){const e={type:"rrweb",event:G(a),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(a.type===Ge.FullSnapshot)W=a,V=0;else if(a.type===Ge.IncrementalSnapshot){if(a.data.source===$e.Mutation&&a.data.isAttachIframe)return;V++;const e=n&&V>=n,t=r&&W&&a.timestamp-W.timestamp>r;(e||t)&&te(!0)}};const $=e=>{Nt({type:Ge.IncrementalSnapshot,data:{source:$e.Mutation,...e}})},K=e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.Scroll,...e}}),Y=e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.CanvasMutation,...e}}),Q=new Pt({mutationCb:$,adoptedStyleSheetCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new kt:new Ct({mirror:Lt,mutationCb:$,stylesheetManager:Q,recordCrossOriginIframes:C,wrappedEmit:Nt});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:Lt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const J=new Dt,Z=function(e,t){try{return e?e(t):new At}catch(e){return console.warn("Unable to initialize CanvasManager"),new At}}(B,{mirror:Lt,win:window,mutationCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.CanvasMutation,...e}}),recordCanvas:k,blockClass:o,blockSelector:a,unblockSelector:s,maxCanvasSize:E,sampling:O.canvas,dataURLOptions:x,errorHandler:L}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new It:new Rt({mutationCb:$,scrollCb:K,bypassOptions:{onMutation:j,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:f,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:H,dataURLOptions:x,maskAttributeFn:b,maskTextFn:S,maskInputFn:_,recordCanvas:k,inlineImages:P,sampling:O,slimDOMOptions:z,iframeManager:X,stylesheetManager:Q,canvasManager:Z,keepIframeSrcFn:N,processedNodeManager:J},mirror:Lt}),te=(e=!1)=>{Nt({type:Ge.Meta,data:{href:window.location.href,width:Re(),height:Ie()}},e),Q.reset(),ee.init(),ft.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new q,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:d=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:O,stylesheetLoadTimeout:x,keepIframeSrcFn:T=(()=>!1)}=t||{};return be(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:d,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:O,stylesheetLoadTimeout:x,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:Lt,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:f,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:H,maskAttributeFn:b,maskInputFn:_,maskTextFn:S,slimDOM:z,dataURLOptions:x,recordCanvas:k,inlineImages:P,onSerialize:e=>{Le(e,Lt)&&X.addIframe(e),je(e,Lt)&&Q.trackLinkElement(e),Be(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:N});if(!t)return console.warn("Failed to snapshot the document");Nt({type:Ge.FullSnapshot,data:{node:t,initialOffset:Ce(window)}}),ft.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,Lt.getId(document))};Mt=te;try{const e=[],t=e=>ct(Et)({onMutation:j,mutationCb:$,mousemoveCb:(e,t)=>Nt({type:Ge.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.ViewportResize,...e}}),inputCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.Input,...e}}),mediaInteractionCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.MediaInteraction,...e}}),styleSheetRuleCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.StyleSheetRule,...e}}),styleDeclarationCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>Nt({type:Ge.IncrementalSnapshot,data:{source:$e.Font,...e}}),selectionCb:e=>{Nt({type:Ge.IncrementalSnapshot,data:{source:$e.Selection,...e}})},customElementCb:e=>{Nt({type:Ge.IncrementalSnapshot,data:{source:$e.CustomElement,...e}})},blockClass:o,ignoreClass:u,ignoreSelector:c,maskAllText:l,maskTextClass:f,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:h,maskInputOptions:H,inlineStylesheet:m,sampling:O,recordCanvas:k,inlineImages:P,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:b,maskInputFn:_,maskTextFn:S,keepIframeSrcFn:N,blockSelector:a,unblockSelector:s,slimDOMOptions:z,dataURLOptions:x,mirror:Lt,iframeManager:X,stylesheetManager:Q,shadowDomManager:ee,processedNodeManager:J,canvasManager:Z,ignoreCSSAttributes:M,plugins:(0,i._optionalChain)([D,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Nt({type:Ge.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});X.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Se("DOMContentLoaded",(()=>{Nt({type:Ge.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&r()}))),e.push(Se("load",(()=>{Nt({type:Ge.Load,data:{}}),"load"===I&&r()}),window))),()=>{e.forEach((e=>e())),J.destroy(),Mt=void 0,ut()}}catch(e){console.warn(e)}}jt.mirror=Lt,jt.takeFullSnapshot=function(e){if(!Mt)throw new Error("please take full snapshot after start recording");Mt(e)};const Bt=3;function Ft(e){return e>9999999999?e:1e3*e}function Ut(e){return e>9999999999?e/1e3:e}function Ht(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Ge.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,d.normalize)(t,10,1e3)}}),"console"===t.category))))}const qt="button,a";function zt(e){return e.closest(qt)||e}function Wt(e){const t=Vt(e);return t&&t instanceof Element?zt(t):t}function Vt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Gt;function $t(e){return Gt||(Gt=[],(0,h.fill)(C,"open",(function(e){return function(...t){if(Gt)try{Gt.forEach((e=>e()))}catch(e){}return e.apply(C,t)}}))),Gt.push(e),()=>{const t=Gt?Gt.indexOf(e):-1;t>-1&&Gt.splice(t,1)}}class Kt{constructor(e,t,r=Ht){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=$t((()=>{this._lastMutation=Qt()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!Yt.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:Ut(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Ut(e)}registerScroll(e=Date.now()){this._lastScroll=Ut(e)}registerClick(e){const t=zt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Qt();this._clicks.forEach((r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!r&&!n,{clickCount:o,clickBreadcrumb:a}=e;if(i){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:C.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:o||1}};this._addBreadcrumbEvent(t,i)}else if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:C.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const Yt=["A","BUTTON","INPUT"];function Qt(){return Date.now()/1e3}function Xt(e,t){try{if(!function(e){return e.type===Bt}(t))return;const{source:r}=t.data;if(r===$e.Mutation&&e.registerMutation(t.timestamp),r===$e.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===$e.MouseInteraction}(t)){const{type:r,id:n}=t.data,i=jt.mirror.getNode(n);i instanceof HTMLElement&&r===Ke.Click&&e.registerClick(i)}}catch(e){}}function Jt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Zt;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Zt||(Zt={}));const er=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function tr(e){const t={};for(const r in e)if(er.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const rr=e=>t=>{if(!e.isEnabled())return;const r=function(e){const{target:t,message:r}=function(e){const t="click"===e.name;let r,n=null;try{n=t?Wt(e.event):Vt(e.event),r=(0,m.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch(e){r="<unknown>"}return{target:n,message:r}}(e);return Jt({category:`ui.${e.name}`,...nr(t,r)})}(t);if(!r)return;const n="click"===t.name,i=n?t.event:void 0;var o,a,s;!(n&&e.clickDetector&&i&&i.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(o=e.clickDetector,a=r,s=Wt(t.event),o.handleClick(a,s)),Ht(e,r)};function nr(e,t){const r=jt.mirror.getId(e),n=r&&jt.mirror.getNode(r),i=n&&jt.mirror.getMeta(n),o=i&&function(e){return e.type===Zt.Element}(i)?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Zt.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:tr(o.attributes)}}:{}}}function ir(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||n||i,u=1===o.length;if(!s&&u)return null;const c=(0,m.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",l=nr(a,c);return Jt({category:"ui.keyDown",message:c,data:{...l.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o}})}(t);r&&Ht(e,r)}const or={resource:function(e){const{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:u,transferSize:c}=e;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:sr(o),end:sr(i),name:n,data:{size:c,statusCode:u,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:r,name:n,startTime:i}=e,o=sr(i);return{type:r,name:n,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:f,redirectCount:p,startTime:d,transferSize:h,type:m}=e;if(0===i)return null;return{type:`${t}.${m}`,start:sr(d),end:sr(o),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:f,domComplete:o,redirectCount:p}}}};function ar(e){return or[e.entryType]?or[e.entryType](e):null}function sr(e){return((g.browserPerformanceTimeOrigin||C.performance.timeOrigin)+e)/1e3}function ur(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push((0,k.addPerformanceInstrumentationHandler)(e,r))})),n.push((0,k.addLcpInstrumentationHandler)((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,r=t[t.length-1],n=r?r.element:void 0,i=e.value,o=sr(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:i,size:i,nodeId:n?jt.mirror.getId(n):void 0}}}(t))}))),()=>{n.forEach((e=>e()))}}const cr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,lr='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function fr(e,t){cr&&(y.logger.info(e),t&&dr(e))}function pr(e,t){cr&&(y.logger.info(e),t&&setTimeout((()=>{dr(e)}),0))}function dr(e){(0,o.addBreadcrumb)({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class hr extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class mr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>N)throw new hr;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Ft(e):null}}class gr{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:r})=>{r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){fr("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise(((n,i)=>{const o=({data:t})=>{const a=t;if(a.method===e&&a.id===r){if(this._worker.removeEventListener("message",o),!a.success)return cr&&y.logger.error("[Replay]",a.response),void i(new Error("Error in compression worker"));n(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class yr{constructor(e){this._worker=new gr(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Ft(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>N?Promise.reject(new hr):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{cr&&y.logger.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class vr{constructor(e){this._fallback=new mr,this._compression=new yr(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void fr("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(r)}catch(e){cr&&y.logger.warn("[Replay] Failed to add events when switching buffers.",e)}}}function br({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([lr]);return URL.createObjectURL(e)}();return""}();if(!t)return;fr("[Replay] Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new vr(r)}catch(e){fr("[Replay] Failed to create compression worker")}}(t);if(e)return e}return fr("[Replay] Using simple buffer"),new mr}function _r(){try{return"sessionStorage"in C&&!!C.sessionStorage}catch(e){return!1}}function Sr(e){!function(){if(!_r())return;try{C.sessionStorage.removeItem(I)}catch(e){}}(),e.session=void 0}function Er(e){return void 0!==e&&Math.random()<e}function wr(e){const t=Date.now();return{id:e.id||(0,v.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Or(e){if(_r())try{C.sessionStorage.setItem(I,JSON.stringify(e))}catch(e){}}function xr({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const i=function(e,t){return Er(e)?"session":!!t&&"buffer"}(e,t),o=wr({sampled:i,previousSessionId:n});return r&&Or(o),o}function Tr(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function kr(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Tr(e.started,t,n)||Tr(e.lastActivity,r,n)}function Cr(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!kr(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Ir({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:r,previousSessionId:n},i){const o=i.stickySession&&function(e){if(!_r())return null;try{const t=C.sessionStorage.getItem(I);if(!t)return null;const r=JSON.parse(t);return pr("[Replay] Loading existing session",e),wr(r)}catch(e){return null}}(e);return o?Cr(o,{sessionIdleExpire:t,maxReplayDuration:r})?(pr("[Replay] Session in sessionStorage is expired, creating new one..."),xr(i,{previousSessionId:o.id})):o:(pr("[Replay] Creating new session",e),xr(i,{previousSessionId:n}))}function Rr(e,t,r){return!!Pr(e,t)&&(Ar(e,t,r),!0)}async function Ar(e,t,r){if(!e.eventBuffer)return null;try{r&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),r&&(e.eventBuffer.hasCheckout=!0);const n=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Ge.Custom}(e))return t(e)}catch(e){return cr&&y.logger.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!n)return;return await e.eventBuffer.addEvent(n)}catch(t){const r=t&&t instanceof hr?"addEventSizeExceeded":"addEvent";cr&&y.logger.error(t),await e.stop({reason:r});const n=(0,o.getClient)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function Pr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=Ft(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(fr(`[Replay] Skipping event with timestamp ${r} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function Dr(e){return!e.type}function Nr(e){return"transaction"===e.type}function Mr(e){return"feedback"===e.type}function Lr(e){const t=function(){const e=(0,o.getClient)();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(r,n)=>{if(!e.isEnabled()||!Dr(r)&&!Nr(r))return;const i=n&&n.statusCode;t&&(!i||i<200||i>=300)||(Nr(r)?function(e,t){const r=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,r):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,r))}}function jr(e){return t=>{e.isEnabled()&&Dr(t)&&function(e,t){const r=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof r)return;if(r.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Ht(e,Jt({category:"replay.hydrate-error"}))}}(e,t)}}function Br(e,t=!1){const r=t?Lr(e):void 0;return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Dr(t)&&!Nr(t)&&!Mr(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Mr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Ge.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return cr&&y.logger.log("[Replay] Ignoring error from rrweb internals",t),null;const i=function(e,t){return"buffer"===e.recordingMode&&t.message!==A&&!(!t.exception||t.type)&&Er(e.getOptions().errorSampleRate)}(e,t);return(i||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&r(t,{statusCode:200}),t}),{id:"Replay"})}function Fr(e,t){return t.map((({type:t,start:r,end:n,name:i,data:o})=>{const a=e.throttledAddEvent({type:Ge.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof a?Promise.resolve(null):a}))}function Ur(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate((()=>(Fr(e,[r]),!1))))}}function Hr(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!cr||!e.getOptions()._experiments.traceInternals)&&(0,a.isSentryRequestUrl)(t,(0,o.getClient)())}(e,t.name)||e.addUpdate((()=>(Fr(e,[t]),!0))))}function qr(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{startTimestamp:t,endTimestamp:r,xhr:n}=e,i=n[b.SENTRY_XHR_DATA_KEY];if(!t||!r||!i)return null;const{method:o,url:a,status_code:s}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:r/1e3,data:{method:o,statusCode:s}}}(t);Hr(e,r)}}function zr(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=Xr(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Wr(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Vr(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Xr(e)];if(!e)return[void 0]}catch(t){return cr&&y.logger.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return cr&&y.logger.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Gr(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function $r(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:i,method:o,statusCode:a,request:s,response:u}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:(0,h.dropUndefinedKeys)({method:o,statusCode:a,request:s,response:u})}}function Kr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Yr(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>P,r=function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){const t=e.slice(0,P);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(r);return n.body=i,o&&o.length>0&&(n._meta={warnings:o}),n}function Qr(e,t){return Object.keys(e).reduce(((r,n)=>{const i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=e[n]),r}),{})}function Xr(e){return new URLSearchParams(e).toString()}function Jr(e,t){const r=function(e,t=C.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(C.location.origin))return e;const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return(0,_.stringMatchesSomePattern)(r,t)}async function Zr(e,t,r){try{const n=await async function(e,t,r){const n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n}=t,{url:a,method:s,status_code:u=0,request_body_size:c,response_body_size:l}=e.data,f=Jr(a,r.networkDetailAllowUrls)&&!Jr(a,r.networkDetailDenyUrls),p=f?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const i=r?function(e,t){if(1===e.length&&"string"!=typeof e[0])return rn(e[0],t);if(2===e.length)return rn(e[1],t);return{}}(r,t):{};if(!e)return Yr(i,n,void 0);const o=en(r),[a,s]=Vr(o),u=Yr(i,n,a);if(s)return Gr(u,s);return u}(r,t.input,c):Kr(c),d=await async function(e,{networkCaptureBodies:t,textEncoder:r,networkResponseHeaders:n},i,o){if(!e&&void 0!==o)return Kr(o);const a=i?tn(i.headers,n):{};if(!i||!t&&void 0!==o)return Yr(a,o,void 0);const[s,u]=await async function(e){const t=function(e){try{return e.clone()}catch(e){cr&&y.logger.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,r)=>{const n=setTimeout((()=>r(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>r(e))).finally((()=>clearTimeout(n)))}))}(t);return[e]}catch(e){return cr&&y.logger.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(i),c=function(e,{networkCaptureBodies:t,textEncoder:r,responseBodySize:n,captureDetails:i,headers:o}){try{const a=e&&e.length&&void 0===n?zr(e,r):n;return i?Yr(o,a,t?e:void 0):Kr(a)}catch(e){return cr&&y.logger.warn("[Replay] Failed to serialize response body",e),Yr(o,n,void 0)}}(s,{networkCaptureBodies:t,textEncoder:r,responseBodySize:o,captureDetails:e,headers:a});if(u)return Gr(c,u);return c}(f,r,t.response,l);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:u,request:p,response:d}}(e,t,r),i=$r("resource.fetch",n);Hr(r.replay,i)}catch(e){cr&&y.logger.error("[Replay] Failed to capture fetch breadcrumb",e)}}function en(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function tn(e,t){const r={};return t.forEach((t=>{e.get(t)&&(r[t]=e.get(t))})),r}function rn(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?tn(r,t):Array.isArray(r)?{}:Qr(r,t):{}}async function nn(e,t,r){try{const n=function(e,t,r){const n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n,input:a,xhr:s}=t,{url:u,method:c,status_code:l=0,request_body_size:f,response_body_size:p}=e.data;if(!u)return null;if(!s||!Jr(u,r.networkDetailAllowUrls)||Jr(u,r.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:Kr(f),response:Kr(p)}}const d=s[b.SENTRY_XHR_DATA_KEY],h=d?Qr(d.request_headers,r.networkRequestHeaders):{},m=Qr(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[r,n]=t.split(": ");return e[r.toLowerCase()]=n,e}),{})}(s),r.networkResponseHeaders),[g,v]=r.networkCaptureBodies?Vr(a):[void 0],[_,S]=r.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return cr&&y.logger.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return cr&&y.logger.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return cr&&y.logger.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(s):[void 0],E=Yr(h,f,g),w=Yr(m,p,_);return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:v?Gr(E,v):E,response:S?Gr(w,S):w}}(e,t,r),i=$r("resource.xhr",n);Hr(r.replay,i)}catch(e){cr&&y.logger.error("[Replay] Failed to capture xhr breadcrumb",e)}}function on(e,t,r){const{xhr:n,input:i}=t;if(!n)return;const o=zr(i,r.textEncoder),a=n.getResponseHeader("content-length")?Wr(n.getResponseHeader("content-length")):function(e,t,r){try{return zr("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,r)}catch(e){return}}(n.response,n.responseType,r.textEncoder);void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}function an(e){const t=(0,o.getClient)();try{const r=new TextEncoder,{networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),u={replay:e,textEncoder:r,networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,r){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(r)&&(on(t,r,e),nn(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(r)&&(!function(e,t,r){const{input:n,response:i}=t,o=zr(n?en(n):void 0,r.textEncoder),a=i?Wr(i.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,r,e),Zr(t,r,e))}catch(e){cr&&y.logger.warn("Error when enriching network breadcrumb")}}(u,e,t))):((0,S.addFetchInstrumentationHandler)(function(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{startTimestamp:t,endTimestamp:r,fetchData:n,response:i}=e;if(!r)return null;const{method:o,url:a}=n;return{type:"resource.fetch",start:t/1e3,end:r/1e3,name:a,data:{method:o,statusCode:i?i.status:void 0}}}(t);Hr(e,r)}}(e)),(0,b.addXhrInstrumentationHandler)(qr(e)))}catch(e){}}let sn=null;const un=e=>t=>{if(!e.isEnabled())return;const r=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(sn===t||!t)return null;if(sn=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Jt(e);let r=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>D?(r=!0,`${e.slice(0,D)}…`):e;if("object"==typeof e)try{const t=(0,d.normalize)(e,7);return JSON.stringify(t).length>D?(r=!0,`${JSON.stringify(t,null,2).slice(0,D)}…`):t}catch(e){}return e}));return Jt({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Jt(t)}(t);r&&Ht(e,r)};function cn(e){return!(!e||!e.on)}function ln(e){const{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function fn(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return void(cr&&y.logger.warn("[Replay] Received replay event after session expired."));const i=n||!t;t=!0,e.clickDetector&&Xt(e.clickDetector,r),e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Rr(e,r,i))return!0;if(!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Rr(e,function(e){const t=e.getOptions();return{type:Ge.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(fr(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Or(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function pn({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:a}){const s=function({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:l,errorIds:f,traceIds:p,initialTimestamp:d}=n,h=(0,o.getClient)(),m=(0,o.getCurrentScope)(),g=h&&h.getTransport(),y=h&&h.getDsn();if(!(h&&g&&y&&a.sampled))return;const v={type:R,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:f,trace_ids:p,urls:l,replay_id:t,segment_id:r,replay_type:a.sampled},b=await async function({client:e,scope:t,replayId:r,event:n}){const i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",n,i);const o=await(0,u.prepareEvent)(e.getOptions(),n,i,t,e,(0,c.getIsolationScope)());if(!o)return null;o.platform=o.platform||"javascript";const a=e.getSdkMetadata&&e.getSdkMetadata(),{name:s,version:l}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0"},o}({scope:m,client:h,replayId:t,event:v});if(!b)return h.recordDroppedEvent("event_processor","replay",v),void fr("An event processor returned `null`, will not send event.");delete b.sdkProcessingMetadata;const _=function(e,t,r,n){return(0,O.createEnvelope)((0,O.createEventEnvelopeHeaders)(e,(0,O.getSdkMetadataForEnvelopeHeader)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(b,s,y,h.getOptions().tunnel);let S;try{S=await g.send(_)}catch(e){const t=new Error(A);try{t.cause=e}catch(e){}throw t}if(!S)return S;if("number"==typeof S.statusCode&&(S.statusCode<200||S.statusCode>=300))throw new dn(S.statusCode);const E=(0,x.updateRateLimits)({},S);if((0,x.isRateLimited)(E,"replay"))throw new hn(E);return S}class dn extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class hn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function mn(e,t={count:0,interval:5e3}){const{recordingData:r,options:n}=e;if(r.length)try{return await pn(e),!0}catch(r){if(r instanceof dn||r instanceof hn)throw r;if((0,o.setContext)("Replays",{_retryCount:t.count}),cr&&n._experiments&&n._experiments.captureExceptions&&(0,o.captureException)(r),t.count>=3){const e=new Error(`${A} - max retries exceeded`);try{e.cause=r}catch(e){}throw e}return t.interval*=++t.count,new Promise(((r,n)=>{setTimeout((async()=>{try{await mn(e,t),r(!0)}catch(e){n(e)}}),t.interval)}))}}const gn="__THROTTLED";function yn(e,t,r){const n=new Map;let i=!1;return(...o)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-r;n.forEach(((e,r)=>{r<t&&n.delete(r)}))})(a),[...n.values()].reduce(((e,t)=>e+t),0)>=t){const e=i;return i=!0,e?"__SKIPPED":gn}i=!1;const s=n.get(a)||0;return n.set(a,s+1),e(...o)}}class vn{constructor({options:e,recordingOptions:t}){vn.prototype.__init.call(this),vn.prototype.__init2.call(this),vn.prototype.__init3.call(this),vn.prototype.__init4.call(this),vn.prototype.__init5.call(this),vn.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,o;const a=r&&r.maxWait?Math.max(r.maxWait,t):0;function s(){return u(),n=e(),n}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=setTimeout(s,t),a&&void 0===o&&(o=setTimeout(s,a)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==o?s():n},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=yn(((e,t)=>function(e,t,r){return Pr(e,t)?Ar(e,t,r):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new Kt(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:r}=this._options;t<=0&&r<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",pr(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");pr("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Ir({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");pr("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Ir({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=jt({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:fn(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{fr("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Sr(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),fr("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),fr("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();fr("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Tr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${C.location.pathname}${C.location.hash}${C.location.search}`,t=`${C.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const r=this._throttledAddEvent(e,t);if(r===gn){const e=Jt({category:"replay.throttled"});this.addUpdate((()=>!Rr(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return r}getCurrentRoute(){const e=this.lastTransaction||(0,o.getCurrentScope)().getTransaction(),t=(e&&(0,l.spanToJSON)(e).data||{})[f.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(e&&t&&["route","custom"].includes(t))return(0,l.spanToJSON)(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=br({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){cr&&y.logger.error("[Replay]",e),cr&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,o.captureException)(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=Ir({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!Cr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{C.document.addEventListener("visibilitychange",this._handleVisibilityChange),C.addEventListener("blur",this._handleWindowBlur),C.addEventListener("focus",this._handleWindowFocus),C.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,o.getCurrentScope)(),r=(0,o.getClient)();t.addScopeListener(un(e)),(0,E.addClickKeypressInstrumentationHandler)(rr(e)),(0,w.addHistoryInstrumentationHandler)(Ur(e)),an(e);const n=Br(e,!cn(r));r&&r.addEventProcessor?r.addEventProcessor(n):(0,s.addEventProcessor)(n),cn(r)&&(r.on("beforeSendEvent",jr(e)),r.on("afterSendEvent",Lr(e)),r.on("createDsc",(t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)})),r.on("startTransaction",(t=>{e.lastTransaction=t})),r.on("finishTransaction",(t=>{e.lastTransaction=t})),r.on("beforeSendFeedback",((t,r)=>{const n=e.getSessionId();r&&r.includeReplay&&e.isEnabled()&&n&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=n)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=ur(this)}_removeListeners(){try{C.document.removeEventListener("visibilitychange",this._handleVisibilityChange),C.removeEventListener("blur",this._handleWindowBlur),C.removeEventListener("focus",this._handleWindowFocus),C.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===C.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Jt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Jt({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{ir(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;kr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):fr("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Ge.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(ar).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Fr(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Fr(e,[ln(C.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await mn({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=(0,o.getClient)();t&&t.recordDroppedEvent("send_error","replay")}}else cr&&y.logger.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(cr&&y.logger.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();const n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i)return fr(`[Replay] Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(n&&this._debouncedFlush());const o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&fr("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){cr&&y.logger.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Or(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,r=this._options.mutationLimit,n=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||n){const e=Jt({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function bn(e,t,r,n){const i=[...e,..."string"==typeof n?n.split(","):[],...t];return void 0!==r&&("string"==typeof r&&i.push(`.${r}`),(0,y.consoleSandbox)((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),i.join(",")}const _n='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Sn=["content-length","content-type","accept"];let En=!1;const wn=e=>new On(e);class On{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},sessionSampleRate:u,errorSampleRate:c,maskAllText:l=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:b=!0,networkRequestHeaders:_=[],networkResponseHeaders:S=[],mask:E=[],maskAttributes:w=["title","placeholder"],unmask:O=[],block:x=[],unblock:k=[],ignore:C=[],maskFn:I,beforeAddRecordingEvent:R,beforeErrorSampling:A,blockClass:P,blockSelector:D,maskInputOptions:N,maskTextClass:L,maskTextSelector:j,ignoreClass:B}={}){this.name=On.id;const F=function({mask:e,unmask:t,block:r,unblock:n,ignore:i,blockClass:o,blockSelector:a,maskTextClass:s,maskTextSelector:u,ignoreClass:c}){const l={maskTextSelector:bn(e,[".sentry-mask","[data-sentry-mask]"],s,u),unmaskTextSelector:bn(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:bn(r,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,a),unblockSelector:bn(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:bn(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return o instanceof RegExp&&(l.blockClass=o),s instanceof RegExp&&(l.maskTextClass=s),l}({mask:E,unmask:O,block:x,unblock:k,ignore:C,blockClass:P,blockSelector:D,maskTextClass:L,maskTextSelector:j,ignoreClass:B});if(this._recordingOptions={maskAllInputs:f,maskAllText:l,maskInputOptions:{...N||{},password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){return n?i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:w,maskAllText:l,privacyOptions:F,key:e,value:t,el:r}),...F,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,M),stickySession:i,sessionSampleRate:u,errorSampleRate:c,useCompression:o,workerUrl:a,blockAllMedia:p,maskAllInputs:f,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:b,networkRequestHeaders:xn(_),networkResponseHeaders:xn(S),beforeAddRecordingEvent:R,beforeErrorSampling:A,_experiments:s},"number"==typeof u&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${u} })`),this._initialOptions.sessionSampleRate=u),"number"==typeof c&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${_n}`:_n),this._isInitialized&&(0,T.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return En}set _isInitialized(e){En=e}setupOnce(){(0,T.isBrowser)()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=(0,o.getClient)(),r=t&&t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,h.dropUndefinedKeys)(e)};if(!r)return(0,y.consoleSandbox)((()=>{console.warn("SDK client is not available.")})),n;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==r.replaysSessionSampleRate&&null==r.replaysOnErrorSampleRate&&(0,y.consoleSandbox)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"==typeof r.replaysSessionSampleRate&&(n.sessionSampleRate=r.replaysSessionSampleRate);"number"==typeof r.replaysOnErrorSampleRate&&(n.errorSampleRate=r.replaysOnErrorSampleRate);return n}(this._initialOptions);this._replay=new vn({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=(0,o.getClient)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function xn(e){return[...Sn,...e.map((e=>e.toLowerCase()))]}function Tn(){const e=(0,o.getClient)();return e&&e.getIntegrationByName&&e.getIntegrationByName("Replay")}On.__initStatic();const kn=Tn,Cn=wn;class In extends On{}},(e,t,r)=>{"use strict";function n(e,t){return null!=e?e:t()}r.r(t),r.d(t,{_nullishCoalesce:()=>n})},(e,t,r)=>{"use strict";function n(e){let t,r=e[0],n=1;for(;n<e.length;){const i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):"call"!==i&&"optionalCall"!==i||(r=o(((...e)=>r.call(t,...e))),t=void 0)}return r}r.r(t),r.d(t,{_optionalChain:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>b,addFidInstrumentationHandler:()=>E,addInpInstrumentationHandler:()=>w,addLcpInstrumentationHandler:()=>_,addPerformanceInstrumentationHandler:()=>O,addTtfbInstrumentationHandler:()=>S});var n=r(286),i=r(304),o=r(987),a=r(988),s=r(997),u=r(999),c=r(1001),l=r(995),f=r(1002);const p={},d={};let h,m,g,y,v;function b(e,t=!1){return A("cls",e,T,h,t)}function _(e,t=!1){return A("lcp",e,C,g,t)}function S(e){return A("ttfb",e,I,y)}function E(e){return A("fid",e,k,m)}function w(e){return A("inp",e,R,v)}function O(e,t){return P(e,t),d[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,l.observe)(e,(t=>{x(e,{entries:t})}),t)}(e),d[e]=!0),D(e,t)}function x(e,t){const r=p[e];if(r&&r.length)for(const a of r)try{a(t)}catch(t){o.DEBUG_BUILD&&n.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(a)}\nError:`,t)}}function T(){return(0,a.onCLS)((e=>{x("cls",{metric:e}),h=e}),{reportAllChanges:!0})}function k(){return(0,s.onFID)((e=>{x("fid",{metric:e}),m=e}))}function C(){return(0,c.onLCP)((e=>{x("lcp",{metric:e}),g=e}))}function I(){return(0,f.onTTFB)((e=>{x("ttfb",{metric:e}),y=e}))}function R(){return(0,u.onINP)((e=>{x("inp",{metric:e}),v=e}))}function A(e,t,r,n,i=!1){let o;return P(e,t),d[e]||(o=r(),d[e]=!0),n&&t({metric:n}),D(e,t,i?o:void 0)}function P(e,t){p[e]=p[e]||[],p[e].push(t)}function D(e,t,r){return()=>{r&&r();const n=p[e];if(!n)return;const i=n.indexOf(t);-1!==i&&n.splice(i,1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onCLS:()=>s});var n=r(989),i=r(990),o=r(995),a=r(996);const s=(e,t={})=>{const r=(0,i.initMetric)("CLS",0);let s,u=0,c=[];const l=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=c[0],n=c[c.length-1];u&&0!==c.length&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(u+=e.value,c.push(e)):(u=e.value,c=[e]),u>r.value&&(r.value=u,r.entries=c,s&&s())}}))},f=(0,o.observe)("layout-shift",l);if(f){s=(0,n.bindReporter)(e,r,t.reportAllChanges);const i=()=>{l(f.takeRecords()),s(!0)};return(0,a.onHidden)(i),i}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindReporter:()=>n});const n=(e,t,r)=>{let n,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(n||0),(i||void 0===n)&&(n=t.value,t.delta=i,e(t)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>s});var n=r(991),i=r(992),o=r(993),a=r(994);const s=(e,t)=>{const r=(0,a.getNavigationEntry)();let s="navigate";return r&&(s=n.WINDOW.document&&n.WINDOW.document.prerendering||(0,o.getActivationStart)()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:(0,i.generateUniqueID)(),navigationType:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(283).GLOBAL_OBJ},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateUniqueID:()=>n});const n=()=>`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>i});var n=r(994);const i=()=>{const e=(0,n.getNavigationEntry)();return e&&e.activationStart||0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNavigationEntry:()=>i});var n=r(991);const i=()=>n.WINDOW.__WEB_VITALS_POLYFILL__?n.WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=n.WINDOW.performance.timing,t=n.WINDOW.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(r[t]=Math.max(e[t]-e.navigationStart,0));return r})()):n.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{observe:()=>n});const n=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onHidden:()=>i});var n=r(991);const i=(e,t)=>{const r=i=>{"pagehide"!==i.type&&"hidden"!==n.WINDOW.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};n.WINDOW.document&&(addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onFID:()=>u});var n=r(989),i=r(998),o=r(990),a=r(995),s=r(996);const u=e=>{const t=(0,i.getVisibilityWatcher)(),r=(0,o.initMetric)("FID");let u;const c=e=>{e.startTime<t.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),u(!0))},l=e=>{e.forEach(c)},f=(0,a.observe)("first-input",l);u=(0,n.bindReporter)(e,r),f&&(0,s.onHidden)((()=>{l(f.takeRecords()),f.disconnect()}),!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getVisibilityWatcher:()=>a});var n=r(991),i=r(996);let o=-1;const a=()=>(o<0&&(n.WINDOW.document&&n.WINDOW.document.visibilityState&&(o="hidden"!==n.WINDOW.document.visibilityState||n.WINDOW.document.prerendering?1/0:0),(0,i.onHidden)((({timeStamp:e})=>{o=e}),!0)),{get firstHiddenTime(){return o}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onINP:()=>p});var n=r(989),i=r(990),o=r(995),a=r(996),s=r(1e3);const u=()=>(0,s.getInteractionCount)(),c=[],l={},f=e=>{const t=c[c.length-1],r=l[e.interactionId];if(r||c.length<10||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};l[t.id]=t,c.push(t)}c.sort(((e,t)=>t.latency-e.latency)),c.splice(10).forEach((e=>{delete l[e.id]}))}},p=(e,t)=>{t=t||{},(0,s.initInteractionCountPolyfill)();const r=(0,i.initMetric)("INP");let l;const p=e=>{e.forEach((e=>{if(e.interactionId&&f(e),"first-input"===e.entryType){!c.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&f(e)}}));const t=(()=>{const e=Math.min(c.length-1,Math.floor(u()/50));return c[e]})();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,l())},d=(0,o.observe)("event",p,{durationThreshold:t.durationThreshold||40});l=(0,n.bindReporter)(e,r,t.reportAllChanges),d&&(d.observe({type:"first-input",buffered:!0}),(0,a.onHidden)((()=>{p(d.takeRecords()),r.value<0&&u()>0&&(r.value=0,r.entries=[]),l(!0)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>c,initInteractionCountPolyfill:()=>l});var n=r(995);let i=0,o=1/0,a=0;const s=e=>{e.forEach((e=>{e.interactionId&&(o=Math.min(o,e.interactionId),a=Math.max(a,e.interactionId),i=a?(a-o)/7+1:0)}))};let u;const c=()=>u?i:performance.interactionCount||0,l=()=>{"interactionCount"in performance||u||(u=(0,n.observe)("event",s,{type:"event",buffered:!0,durationThreshold:0}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onLCP:()=>f});var n=r(991),i=r(989),o=r(993),a=r(998),s=r(990),u=r(995),c=r(996);const l={},f=e=>{const t=(0,a.getVisibilityWatcher)(),r=(0,s.initMetric)("LCP");let f;const p=e=>{const n=e[e.length-1];if(n){const e=Math.max(n.startTime-(0,o.getActivationStart)(),0);e<t.firstHiddenTime&&(r.value=e,r.entries=[n],f())}},d=(0,u.observe)("largest-contentful-paint",p);if(d){f=(0,i.bindReporter)(e,r);const t=()=>{l[r.id]||(p(d.takeRecords()),d.disconnect(),l[r.id]=!0,f(!0))};return["keydown","click"].forEach((e=>{n.WINDOW.document&&addEventListener(e,t,{once:!0,capture:!0})})),(0,c.onHidden)(t,!0),t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onTTFB:()=>c});var n=r(991),i=r(989),o=r(993),a=r(994),s=r(990);const u=e=>{n.WINDOW.document&&(n.WINDOW.document.prerendering?addEventListener("prerenderingchange",(()=>u(e)),!0):"complete"!==n.WINDOW.document.readyState?addEventListener("load",(()=>u(e)),!0):setTimeout(e,0))},c=(e,t)=>{t=t||{};const r=(0,s.initMetric)("TTFB"),n=(0,i.bindReporter)(e,r,t.reportAllChanges);u((()=>{const e=(0,a.getNavigationEntry)();if(e){if(r.value=Math.max(e.responseStart-(0,o.getActivationStart)(),0),r.value<0||r.value>performance.now())return;r.entries=[e],n(!0)}}))}},(e,t,r)=>{"use strict";function n(e,t){const r=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,n=r&&r.getDsn(),o=r&&r.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return i(e)===i(t)}(e,o)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}r.r(t),r.d(t,{isSentryRequestUrl:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n});const n="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="profile_id"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowser:()=>o});var n=r(1006),i=r(283);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||void 0!==i.GLOBAL_OBJ.process&&"renderer"===i.GLOBAL_OBJ.process.type)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dynamicRequire:()=>o,isNodeEnv:()=>i,loadModule:()=>a});var n=r(951);function i(){return!(0,n.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}function a(t){let r;try{r=o(e,t)}catch(e){}try{const{cwd:n}=o(e,"process");r=o(e,`${n()}/node_modules/${t}`)}catch(e){}return r}e=r.hmd(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{excludeGraphQLFetch:()=>n,withoutGraphQLFetch:()=>i});const n=e=>{if("fetch"===e.category){if((e.data?.url??"").includes("/graphql"))return null}return e};function i(e){return(t,r)=>{const i=n(t,r);return null===i?null:e(i,r)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{const n=r(1286),i=r(1287),o=r(1311),a=r(1313);function s(e,t,r,o,a){const s=[].slice.call(arguments,1),u=s.length,c="function"==typeof s[u-1];if(!c&&!n())throw new Error("Callback required as last argument");if(!c){if(u<1)throw new Error("Too few arguments provided");return 1===u?(r=t,t=o=void 0):2!==u||t.getContext||(o=r,r=t,t=void 0),new Promise((function(n,a){try{const a=i.create(r,o);n(e(a,t,o))}catch(e){a(e)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(a=r,r=t,t=o=void 0):3===u&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=r,r=t,t=void 0));try{const n=i.create(r,o);a(null,e(n,t,o))}catch(e){a(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,r){return a.render(e,r)}))},e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},(e,t,r)=>{const n=r(1288),i=r(1289),o=r(1290),a=r(1291),s=r(1292),u=r(1293),c=r(1294),l=r(1295),f=r(1296),p=r(1299),d=r(1303),h=r(1300),m=r(1304);function g(e,t,r){const n=e.size,i=d.getEncodedBits(t,r);let o,a;for(o=0;o<15;o++)a=1==(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(n-15+o,8,a,!0),o<8?e.set(8,n-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(n-8,8,1,!0)}function y(e,t,r){const i=new o;r.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(i)}));const a=8*(n.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let e=0;e<s;e++)i.put(e%2?17:236,8);return function(e,t,r){const i=n.getSymbolTotalCodewords(t),o=l.getTotalCodewordsCount(t,r),a=i-o,s=l.getBlocksCount(t,r),u=i%s,c=s-u,p=Math.floor(i/s),d=Math.floor(a/s),h=d+1,m=p-d,g=new f(m);let y=0;const v=new Array(s),b=new Array(s);let _=0;const S=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<c?d:h;v[e]=S.slice(y,y+t),b[e]=g.encode(v[e]),y+=t,_=Math.max(_,t)}const E=new Uint8Array(i);let w,O,x=0;for(w=0;w<_;w++)for(O=0;O<s;O++)w<v[O].length&&(E[x++]=v[O][w]);for(w=0;w<m;w++)for(O=0;O<s;O++)E[x++]=b[O][w];return E}(i,e,t)}function v(e,t,r,i){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let n=t;if(!n){const t=m.rawSplit(e);n=p.getBestVersionForData(t,r)}o=m.fromString(e,n||40)}}const l=p.getBestVersionForData(o,r);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}else t=l;const f=y(t,r,o),d=n.getSymbolSize(t),h=new a(d);return function(e,t){const r=e.size,n=u.getPositions(t);for(let t=0;t<n.length;t++){const i=n[t][0],o=n[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||r<=i+t))for(let n=-1;n<=7;n++)o+n<=-1||r<=o+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0))}}(h,t),function(e){const t=e.size;for(let r=8;r<t-8;r++){const t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(h),function(e,t){const r=s.getPositions(t);for(let t=0;t<r.length;t++){const n=r[t][0],i=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,i+r,!0,!0):e.set(n+t,i+r,!1,!0)}}(h,t),g(h,r,0),t>=7&&function(e,t){const r=e.size,n=p.getEncodedBits(t);let i,o,a;for(let t=0;t<18;t++)i=Math.floor(t/3),o=t%3+r-8-3,a=1==(n>>t&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(h,t),function(e,t){const r=e.size;let n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,s-r)){let n=!1;a<t.length&&(n=1==(t[a]>>>o&1)),e.set(i,s-r,n),o--,-1===o&&(a++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}(h,f),isNaN(i)&&(i=c.getBestMask(h,g.bind(null,h,r))),c.applyMask(i,h),g(h,r,i),{modules:h,version:t,errorCorrectionLevel:r,maskPattern:i,segments:o}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let r,o,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),r=p.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),v(e,r,a,o)}},(e,t)=>{let r;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){const i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},(e,t,r)=>{const n=r(1288).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),o=[r-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const r=[],n=t.getRowColCoords(e),i=n.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)0===e&&0===t||0===e&&t===i-1||e===i-1&&0===t||r.push([n[e],n[t]]);return r}},(e,t,r)=>{const n=r(1288).getSymbolSize;t.getPositions=function(e){const t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r=3,n=3,i=40,o=10;function a(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,i=0,o=0,a=null,s=null;for(let u=0;u<t;u++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(u,c);t===a?i++:(i>=5&&(n+=r+(i-5)),a=t,i=1),t=e.get(c,u),t===s?o++:(o>=5&&(n+=r+(o-5)),s=t,o=1)}i>=5&&(n+=r+(i-5)),o>=5&&(n+=r+(o-5))}return n},t.getPenaltyN2=function(e){const t=e.size;let r=0;for(let n=0;n<t-1;n++)for(let i=0;i<t-1;i++){const t=e.get(n,i)+e.get(n,i+1)+e.get(n+1,i)+e.get(n+1,i+1);4!==t&&0!==t||r++}return r*n},t.getPenaltyN3=function(e){const t=e.size;let r=0,n=0,o=0;for(let i=0;i<t;i++){n=o=0;for(let a=0;a<t;a++)n=n<<1&2047|e.get(i,a),a>=10&&(1488===n||93===n)&&r++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&r++}return r*i},t.getPenaltyN4=function(e){let t=0;const r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*o},t.applyMask=function(e,t){const r=t.size;for(let n=0;n<r;n++)for(let i=0;i<r;i++)t.isReserved(i,n)||t.xor(i,n,a(e,i,n))},t.getBestMask=function(e,r){const n=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let a=0;a<n;a++){r(a),t.applyMask(a,e);const n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),n<o&&(o=n,i=a)}return i}},(e,t,r)=>{const n=r(1289),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return i[4*(e-1)+0];case n.M:return i[4*(e-1)+1];case n.Q:return i[4*(e-1)+2];case n.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return o[4*(e-1)+0];case n.M:return o[4*(e-1)+1];case n.Q:return o[4*(e-1)+2];case n.H:return o[4*(e-1)+3];default:return}}},(e,t,r)=>{const n=r(1297);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},(e,t,r)=>{const n=r(1298);t.mul=function(e,t){const r=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)r[i+o]^=n.mul(e[i],t[o]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){const e=r[0];for(let i=0;i<t.length;i++)r[i]^=n.mul(t[i],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let i=0;i<e;i++)r=t.mul(r,new Uint8Array([1,n.exp(i)]));return r}},(e,t)=>{const r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},(e,t,r)=>{const n=r(1288),i=r(1295),o=r(1289),a=r(1300),s=r(1301),u=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function l(e,t){let r=0;return e.forEach((function(e){const n=c(e.mode,t);r+=n+e.getBitsLength()})),r}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);const o=8*(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(r===a.MIXED)return o;const u=o-c(r,e);switch(r){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},t.getBestVersionForData=function(e,r){let n;const i=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(l(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-u>=0;)t^=7973<<n.getBCHDigit(t)-u;return e<<12|t}},(e,t,r)=>{const n=r(1301),i=r(1302);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!n.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},(e,t)=>{const r="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},(e,t,r)=>{const n=r(1288),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){const r=e.bit<<3|t;let o=r<<10;for(;n.getBCHDigit(o)-i>=0;)o^=1335<<n.getBCHDigit(o)-i;return 21522^(r<<10|o)}},(e,t,r)=>{const n=r(1300),i=r(1305),o=r(1306),a=r(1307),s=r(1309),u=r(1302),c=r(1288),l=r(1310);function f(e){return unescape(encodeURIComponent(e)).length}function p(e,t,r){const n=[];let i;for(;null!==(i=e.exec(r));)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function d(e){const t=p(u.NUMERIC,n.NUMERIC,e),r=p(u.ALPHANUMERIC,n.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=p(u.BYTE,n.BYTE,e),o=p(u.KANJI,n.KANJI,e)):(i=p(u.BYTE_KANJI,n.BYTE,e),o=[]);return t.concat(r,i,o).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function m(e,t){let r;const u=n.getBestModeForData(e);if(r=n.from(t,u),r!==n.BYTE&&r.bit<u.bit)throw new Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(u));switch(r!==n.KANJI||c.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new o(e);case n.KANJI:return new s(e);case n.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,r){const i=function(e){const t=[];for(let r=0;r<e.length;r++){const i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:f(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:f(i.data)}])}}return t}(d(e,c.isKanjiModeEnabled())),o=function(e,t){const r={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],u=[];for(let e=0;e<s.length;e++){const c=s[e],l=""+a+e;u.push(l),r[l]={node:c,lastCount:0},i[l]={};for(let e=0;e<o.length;e++){const a=o[e];r[a]&&r[a].node.mode===c.mode?(i[a][l]=h(r[a].lastCount+c.length,c.mode)-h(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),i[a][l]=h(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,t))}}o=u}for(let e=0;e<o.length;e++)i[o[e]].end=0;return{map:i,table:r}}(i,r),a=l.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return t.fromArray(function(e){return e.reduce((function(e,t){const r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(d(e,c.isKanjiModeEnabled()))}},(e,t,r)=>{const n=r(1300);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r,n;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10);const i=this.data.length-t;i>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*i+1))},e.exports=i},(e,t,r)=>{const n=r(1300),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=n.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*i.indexOf(this.data[t]);r+=i.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},(e,t,r)=>{const n=r(1308),i=r(1300);function o(e){this.mode=i.BYTE,"string"==typeof e&&(e=n(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=o},e=>{"use strict";e.exports=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){var o=e.charCodeAt(n+1);o>=56320&&o<=57343&&(i=1024*(i-55296)+o-56320+65536,n+=1)}i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<55296||i>=57344&&i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i>=65536&&i<=1114111?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},(e,t,r)=>{const n=r(1300),i=r(1288);function o(e){this.mode=n.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=i.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=o},e=>{"use strict";var t={single_source_shortest_paths:function(e,r,n){var i={},o={};o[r]=0;var a,s,u,c,l,f,p,d=t.PriorityQueue.make();for(d.push(r,0);!d.empty();)for(u in s=(a=d.pop()).value,c=a.cost,l=e[s]||{})l.hasOwnProperty(u)&&(f=c+l[u],p=o[u],(void 0===o[u]||p>f)&&(o[u]=f,d.push(u,f),i[u]=s));if(void 0!==n&&void 0===o[n]){var h=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(h)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},(e,t,r)=>{const n=r(1312);t.render=function(e,t,r){let i=r,o=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=n.getOptions(i);const a=n.getImageWidth(e.modules.size,i),s=o.getContext("2d"),u=s.createImageData(a,a);return n.qrToImageData(u.data,e,i),function(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}(s,o,a),s.putImageData(u,0,0),o},t.renderToDataURL=function(e,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});const o=t.render(e,r,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},(e,t)=>{function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){const n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){const i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),u=n.margin*a,c=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let l=4*(t*s+r),f=n.color.light;if(t>=u&&r>=u&&t<s-u&&r<s-u){f=c[o[Math.floor((t-u)/a)*i+Math.floor((r-u)/a)]?1:0]}e[l++]=f.r,e[l++]=f.g,e[l++]=f.b,e[l]=f.a}}},(e,t,r)=>{const n=r(1312);function i(e,t){const r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function o(e,t,r){let n=e+t;return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){const a=n.getOptions(t),s=e.modules.size,u=e.modules.data,c=s+2*a.margin,l=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",f="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,r){let n="",i=0,a=!1,s=0;for(let u=0;u<e.length;u++){const c=Math.floor(u%t),l=Math.floor(u/t);c||a||(a=!0),e[u]?(s++,u>0&&c>0&&e[u-1]||(n+=a?o("M",c+r,.5+l+r):o("m",i,0),i=0,a=!1),c+1<t&&e[u+1]||(n+=o("h",s),s=0)):i++}return n}(u,s,a.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+p+' shape-rendering="crispEdges">'+l+f+"</svg>\n";return"function"==typeof r&&r(null,d),d}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(677),i=r(1389),o=r(1390),a=r(678),s=r(270),u=r(681),c=r(1391),l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind((0,o.default)(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,a.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,n):(0,c.getNextChildMapping)(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=(0,c.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,i.default)({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,n.default)(e,["component","childFactory"]),o=this.state.contextValue,a=l(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===t?s.default.createElement(u.default.Provider,{value:o},a):s.default.createElement(u.default.Provider,{value:o},s.default.createElement(t,i,a))},t}(s.default.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};const p=f},(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},n.apply(null,arguments)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getChildMapping:()=>i,getInitialChildMapping:()=>s,getNextChildMapping:()=>u,mergeChildMappings:()=>o});var n=r(270);function i(e,t){var r=Object.create(null);return e&&n.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)})),r}function o(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(n=0;n<i[u].length;n++){var c=i[u][n];s[i[u][n]]=r(c)}s[u]=r(u)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}function a(e,t,r){return null!=r[t]?r[t]:e.props[t]}function s(e,t){return i(e.children,(function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:a(r,"appear",e),enter:a(r,"enter",e),exit:a(r,"exit",e)})}))}function u(e,t,r){var s=i(e.children),u=o(t,s);return Object.keys(u).forEach((function(i){var o=u[i];if((0,n.isValidElement)(o)){var c=i in t,l=i in s,f=t[i],p=(0,n.isValidElement)(f)&&!f.props.in;!l||c&&!p?l||!c||p?l&&c&&(0,n.isValidElement)(f)&&(u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:f.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):u[i]=(0,n.cloneElement)(o,{in:!1}):u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1389),i=r(677),o=r(678),a=r(1393),s=r(1395),u=r(270),c=r(676),l=r(682),f=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,s.default)(e,t)}))},p=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:i,activeClassName:n?i+"-active":r[e+"Active"],doneClassName:n?i+"-done":r[e+"Done"]}},t}(0,o.default)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&i&&(n+=" "+i),"active"===r&&e&&(0,l.forceReflow)(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,a.default)(e,t)}))}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,i=r.active,o=r.done;this.appliedClasses[t]={},n&&f(e,n),i&&f(e,i),o&&f(e,o)},r.render=function(){var e=this.props,t=(e.classNames,(0,i.default)(e,["classNames"]));return u.default.createElement(c.default,(0,n.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.default.Component);p.defaultProps={classNames:""},p.propTypes={};const d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1394);function i(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},(e,t,r)=>{"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}r.r(t),r.d(t,{default:()=>i})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{var n=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),d=Object.prototype.toString,h=Math.max,m=Math.min,g=function(){return p.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return n;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=s.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.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 new TypeError("Expected a function");function d(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;return void 0===u||r>=t||r<0||f&&e-c>=o}function _(){var e=g();if(b(e))return S(e);s=setTimeout(_,function(e){var r=t-(e-u);return f?m(r,o-(e-c)):r}(e))}function S(e){return s=void 0,p&&n?d(e):(n=i=void 0,a)}function E(){var e=g(),r=b(e);if(n=arguments,i=this,u=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(_,t),l?d(e):a}(u);if(f)return s=setTimeout(_,t),d(u)}return void 0===s&&(s=setTimeout(_,t)),a}return t=v(t)||0,y(r)&&(l=!!r.leading,o=(f="maxWait"in r)?h(v(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),E.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=u=i=s=void 0},E.flush=function(){return void 0===s?a:S(g())},E}},,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbstractSeries:()=>n.default,ArcSeries:()=>i.default,AreaSeries:()=>o.default,AxisUtils:()=>re.default,Borders:()=>a.default,ChartLabel:()=>s.default,CircularGridLines:()=>u.default,ContentClipPath:()=>ee.default,ContinuousColorLegend:()=>W.default,ContinuousSizeLegend:()=>V.default,ContourSeries:()=>c.default,Crosshair:()=>l.default,CustomSVGSeries:()=>f.default,DecorativeAxis:()=>p.default,DiscreteColorLegend:()=>G.default,FlexibleHeightXYPlot:()=>te.FlexibleHeightXYPlot,FlexibleWidthXYPlot:()=>te.FlexibleWidthXYPlot,FlexibleXYPlot:()=>te.FlexibleXYPlot,GradientDefs:()=>d.default,GridLines:()=>h.default,HeatmapSeries:()=>m.default,HexbinSeries:()=>g.default,Highlight:()=>y.default,Hint:()=>v.default,HorizontalBarSeries:()=>b.default,HorizontalBarSeriesCanvas:()=>_.default,HorizontalGridLines:()=>S.default,HorizontalRectSeries:()=>E.default,HorizontalRectSeriesCanvas:()=>w.default,LabelSeries:()=>O.default,LineMarkSeries:()=>x.default,LineMarkSeriesCanvas:()=>T.default,LineSeries:()=>k.default,LineSeriesCanvas:()=>C.default,MarkSeries:()=>I.default,MarkSeriesCanvas:()=>R.default,ParallelCoordinates:()=>K.default,PolygonSeries:()=>A.default,RadarChart:()=>Y.default,RadialChart:()=>Q.default,RectSeries:()=>B.default,RectSeriesCanvas:()=>F.default,Sankey:()=>X.default,ScaleUtils:()=>ne.default,SearchableDiscreteColorLegend:()=>$.default,Sunburst:()=>J.default,Treemap:()=>Z.default,VerticalBarSeries:()=>P.default,VerticalBarSeriesCanvas:()=>D.default,VerticalGridLines:()=>N.default,VerticalRectSeries:()=>M.default,VerticalRectSeriesCanvas:()=>L.default,Voronoi:()=>j.default,WhiskerSeries:()=>U.default,XAxis:()=>q.default,XYPlot:()=>H.default,YAxis:()=>z.default,makeHeightFlexible:()=>te.makeHeightFlexible,makeVisFlexible:()=>te.makeVisFlexible,makeWidthFlexible:()=>te.makeWidthFlexible});var n=r(1458),i=r(1559),o=r(1568),a=r(1625),s=r(1626),u=r(1627),c=r(1629),l=r(1655),f=r(1656),p=r(1657),d=r(1659),h=r(1660),m=r(1661),g=r(1662),y=r(1665),v=r(1666),b=r(1667),_=r(1669),S=r(1671),E=r(1672),w=r(1674),O=r(1676),x=r(1677),T=r(1680),k=r(1678),C=r(1682),I=r(1679),R=r(1681),A=r(1683),P=r(1684),D=r(1685),N=r(1686),M=r(1687),L=r(1688),j=r(1689),B=r(1673),F=r(1675),U=r(1690),H=r(1691),q=r(1711),z=r(1716),W=r(1717),V=r(1718),G=r(1719),$=r(1721),K=r(1722),Y=r(1723),Q=r(1724),X=r(1725),J=r(1741),Z=r(1760),ee=r(1777),te=r(1778),re=r(1628),ne=r(1499)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(272),i=r.n(n),o=r(1459),a=r(270),s=r(1469),u=r(1499);function c(e){return c="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},c(e)}function l(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return d(e)}(this,r)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=g(g(g(g(g(g({},(0,u.getScalePropTypesByAttribute)("x")),(0,u.getScalePropTypesByAttribute)("y")),(0,u.getScalePropTypesByAttribute)("size")),(0,u.getScalePropTypesByAttribute)("opacity")),(0,u.getScalePropTypesByAttribute)("color")),{},{width:i().number,height:i().number,data:i().arrayOf(i().oneOfType([i().object,i().array])),onValueMouseOver:i().func,onValueMouseOut:i().func,onValueClick:i().func,onValueRightClick:i().func,onSeriesMouseOver:i().func,onSeriesMouseOut:i().func,onSeriesClick:i().func,onSeriesRightClick:i().func,onNearestX:i().func,onNearestXY:i().func,style:i().object,animation:s.AnimationPropType,stack:i().bool}),b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,e);var t,r,n,i=p(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(d(e=i.call.apply(i,[this].concat(r))),"_seriesClickHandler",(function(t){var r=e.props.onSeriesClick;r&&r({event:t})})),y(d(e),"_seriesMouseOutHandler",(function(t){var r=e.props.onSeriesMouseOut;r&&r({event:t})})),y(d(e),"_seriesMouseOverHandler",(function(t){var r=e.props.onSeriesMouseOver;r&&r({event:t})})),y(d(e),"_seriesRightClickHandler",(function(t){var r=e.props.onSeriesRightClick;r&&r({event:t})})),y(d(e),"_valueClickHandler",(function(t,r){var n=e.props,i=n.onValueClick,o=n.onSeriesClick;i&&i(t,{event:r}),o&&o({event:r})})),y(d(e),"_valueMouseOutHandler",(function(t,r){var n=e.props,i=n.onValueMouseOut,o=n.onSeriesMouseOut;i&&i(t,{event:r}),o&&o({event:r})})),y(d(e),"_valueMouseOverHandler",(function(t,r){var n=e.props,i=n.onValueMouseOver,o=n.onSeriesMouseOver;i&&i(t,{event:r}),o&&o({event:r})})),y(d(e),"_valueRightClickHandler",(function(t,r){var n=e.props,i=n.onValueRightClick,o=n.onSeriesRightClick;i&&i(t,{event:r}),o&&o({event:r})})),e}return t=a,n=[{key:"getParentConfig",value:function(){return{}}},{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"onParentMouseMove",value:function(e){var t=this.props,r=t.onNearestX,n=t.onNearestXY,i=t.data;(r||n)&&i&&(n?this._handleNearestXY(e):this._handleNearestX(e))}},{key:"onParentTouchMove",value:function(e){e.preventDefault(),this.onParentMouseMove(e)}},{key:"onParentTouchStart",value:function(e){e.preventDefault()}},{key:"_getAttr0Functor",value:function(e){return(0,u.getAttr0Functor)(this.props,e)}},{key:"_getAttributeFunctor",value:function(e){return(0,u.getAttributeFunctor)(this.props,e)}},{key:"_getAttributeValue",value:function(e){return(0,u.getAttributeValue)(this.props,e)}},{key:"_getScaleDistance",value:function(e){var t=(0,u.getScaleObjectFromProps)(this.props,e);return t?t.distance:0}},{key:"_getXYCoordinateInContainer",value:function(e){var t=this.props,r=t.marginTop,n=void 0===r?0:r,i=t.marginLeft,o=void 0===i?0:i,a=e.nativeEvent,s=e.currentTarget,u=s.getBoundingClientRect(),c=a.clientX,l=a.clientY;return"touchmove"===a.type&&(c=a.touches[0].pageX,l=a.touches[0].pageY),{x:c-u.left-s.clientLeft-o,y:l-u.top-s.clientTop-n}}},{key:"_handleNearestX",value:function(e){var t=this.props,r=t.onNearestX,n=t.data,i=Number.POSITIVE_INFINITY,o=null,a=null,s=this._getXYCoordinateInContainer(e),u=this._getAttributeFunctor("x");n.forEach((function(e,t){var r=u(e),n=Math.abs(s.x-r);n<i&&(i=n,o=e,a=t)})),o&&r(o,{innerX:u(o),index:a,event:e.nativeEvent})}},{key:"_handleNearestXY",value:function(e){var t=this.props,r=t.onNearestXY,n=t.data,i=this._getXYCoordinateInContainer(e),a=this._getAttributeFunctor("x"),s=this._getAttributeFunctor("y"),u=(0,o.voronoi)().x(a).y(s)(n).find(i.x,i.y),c=u.data;c&&r(c,{innerX:u[0],innerY:u[1],index:u.index,event:e.nativeEvent})}}])&&l(t.prototype,r),n&&l(t,n),a}(a.PureComponent);b.displayName="AbstractSeries",b.propTypes=v,b.defaultProps={className:"",stack:!1,style:{}};const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{voronoi:()=>n.default});var n=r(1460)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1461),i=r(1462),o=r(1463);function a(){var e=i.x,t=i.y,r=null;function a(n){return new o.default(n.map((function(r,i){var a=[Math.round(e(r,i,n)/o.epsilon)*o.epsilon,Math.round(t(r,i,n)/o.epsilon)*o.epsilon];return a.index=i,a.data=r,a})),r)}return a.polygons=function(e){return a(e).polygons()},a.links=function(e){return a(e).links()},a.triangles=function(e){return a(e).triangles()},a.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),a):t},a.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],a):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},a.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],a):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},a}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{beaches:()=>n,cells:()=>i,circles:()=>o,default:()=>m,edges:()=>a,epsilon:()=>p,epsilon2:()=>d});var n,i,o,a,s=r(1464),u=r(1466),c=r(1468),l=r(1467),f=r(1465),p=1e-6,d=1e-12;function h(e,t){return t[1]-e[1]||t[0]-e[0]}function m(e,t){var r,p,d,m=e.sort(h).pop();for(a=[],i=new Array(e.length),n=new f.default,o=new f.default;;)if(d=c.firstCircle,m&&(!d||m[1]<d.y||m[1]===d.y&&m[0]<d.x))m[0]===r&&m[1]===p||((0,s.addBeach)(m),r=m[0],p=m[1]),m=e.pop();else{if(!d)break;(0,s.removeBeach)(d.arc)}if((0,u.sortCellHalfedges)(),t){var g=+t[0][0],y=+t[0][1],v=+t[1][0],b=+t[1][1];(0,l.clipEdges)(g,y,v,b),(0,u.clipCells)(g,y,v,b)}this.edges=a,this.cells=i,n=o=a=i=null}m.prototype={constructor:m,polygons:function(){var e=this.edges;return this.cells.map((function(t){var r=t.halfedges.map((function(r){return(0,u.cellHalfedgeStart)(t,e[r])}));return r.data=t.site.data,r}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(r,n){if(o=(i=r.halfedges).length)for(var i,o,a,s,u,c,l=r.site,f=-1,p=t[i[o-1]],d=p.left===l?p.right:p.left;++f<o;)a=d,d=(p=t[i[f]]).left===l?p.right:p.left,a&&d&&n<a.index&&n<d.index&&(u=a,c=d,((s=l)[0]-c[0])*(u[1]-s[1])-(s[0]-u[0])*(c[1]-s[1])<0)&&e.push([l.data,a.data,d.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,r){for(var n,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var u=e-i.site[0],c=t-i.site[1],l=u*u+c*c;do{i=o.cells[n=a],a=null,i.halfedges.forEach((function(r){var n=o.edges[r],s=n.left;if(s!==i.site&&s||(s=n.right)){var u=e-s[0],c=t-s[1],f=u*u+c*c;f<l&&(l=f,a=s.index)}}))}while(null!==a);return o._found=n,null==r||l<=r*r?i.site:null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBeach:()=>d,removeBeach:()=>p});var n=r(1465),i=r(1466),o=r(1468),a=r(1467),s=r(1463),u=[];function c(){(0,n.RedBlackNode)(this),this.edge=this.site=this.circle=null}function l(e){var t=u.pop()||new c;return t.site=e,t}function f(e){(0,o.detachCircle)(e),s.beaches.remove(e),u.push(e),(0,n.RedBlackNode)(e)}function p(e){var t=e.circle,r=t.x,n=t.cy,i=[r,n],u=e.P,c=e.N,l=[e];f(e);for(var p=u;p.circle&&Math.abs(r-p.circle.x)<s.epsilon&&Math.abs(n-p.circle.cy)<s.epsilon;)u=p.P,l.unshift(p),f(p),p=u;l.unshift(p),(0,o.detachCircle)(p);for(var d=c;d.circle&&Math.abs(r-d.circle.x)<s.epsilon&&Math.abs(n-d.circle.cy)<s.epsilon;)c=d.N,l.push(d),f(d),d=c;l.push(d),(0,o.detachCircle)(d);var h,m=l.length;for(h=1;h<m;++h)d=l[h],p=l[h-1],(0,a.setEdgeEnd)(d.edge,p.site,d.site,i);p=l[0],(d=l[m-1]).edge=(0,a.createEdge)(p.site,d.site,null,i),(0,o.attachCircle)(p),(0,o.attachCircle)(d)}function d(e){for(var t,r,n,u,c=e[0],f=e[1],p=s.beaches._;p;)if((n=h(p,f)-c)>s.epsilon)p=p.L;else{if(!((u=c-m(p,f))>s.epsilon)){n>-s.epsilon?(t=p.P,r=p):u>-s.epsilon?(t=p,r=p.N):t=r=p;break}if(!p.R){t=p;break}p=p.R}(0,i.createCell)(e);var d=l(e);if(s.beaches.insert(t,d),t||r){if(t===r)return(0,o.detachCircle)(t),r=l(t.site),s.beaches.insert(d,r),d.edge=r.edge=(0,a.createEdge)(t.site,d.site),(0,o.attachCircle)(t),void(0,o.attachCircle)(r);if(r){(0,o.detachCircle)(t),(0,o.detachCircle)(r);var g=t.site,y=g[0],v=g[1],b=e[0]-y,_=e[1]-v,S=r.site,E=S[0]-y,w=S[1]-v,O=2*(b*w-_*E),x=b*b+_*_,T=E*E+w*w,k=[(w*x-_*T)/O+y,(b*T-E*x)/O+v];(0,a.setEdgeEnd)(r.edge,g,S,k),d.edge=(0,a.createEdge)(g,e,null,k),r.edge=(0,a.createEdge)(e,S,null,k),(0,o.attachCircle)(t),(0,o.attachCircle)(r)}else d.edge=(0,a.createEdge)(t.site,d.site)}}function h(e,t){var r=e.site,n=r[0],i=r[1],o=i-t;if(!o)return n;var a=e.P;if(!a)return-1/0;var s=(r=a.site)[0],u=r[1],c=u-t;if(!c)return s;var l=s-n,f=1/o-1/c,p=l/c;return f?(-p+Math.sqrt(p*p-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+n:(n+s)/2}function m(e,t){var r=e.N;if(r)return h(r,t);var n=e.site;return n[1]===t?n[0]:1/0}},(e,t,r)=>{"use strict";function n(){this._=null}function i(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function o(e,t){var r=t,n=t.R,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function a(e,t){var r=t,n=t.L,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function s(e){for(;e.L;)e=e.L;return e}r.r(t),r.d(t,{RedBlackNode:()=>i,default:()=>u}),n.prototype={constructor:n,insert:function(e,t){var r,n,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=s(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.R&&(o(this,r),r=(e=r).U),r.C=!1,n.C=!0,a(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.L&&(a(this,r),r=(e=r).U),r.C=!1,n.C=!0,o(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,i=e.U,u=e.L,c=e.R;if(r=u?c?s(c):u:c,i?i.L===e?i.L=r:i.R=r:this._=r,u&&c?(n=r.C,r.C=e.C,r.L=u,u.U=r,r!==c?(i=r.U,r.U=e.U,e=r.R,i.L=e,r.R=c,c.U=r):(r.U=i,i=r,e=r.R)):(n=e.C,e=r),e&&(e.U=i),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,o(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,a(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,o(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,a(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,o(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,a(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};const u=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cellHalfedgeEnd:()=>u,cellHalfedgeStart:()=>s,clipCells:()=>l,createCell:()=>o,sortCellHalfedges:()=>c});var n=r(1467),i=r(1463);function o(e){return i.cells[e.index]={site:e,halfedges:[]}}function a(e,t){var r=e.site,n=t.left,i=t.right;return r===i&&(i=n,n=r),i?Math.atan2(i[1]-n[1],i[0]-n[0]):(r===n?(n=t[1],i=t[0]):(n=t[0],i=t[1]),Math.atan2(n[0]-i[0],i[1]-n[1]))}function s(e,t){return t[+(t.left!==e.site)]}function u(e,t){return t[+(t.left===e.site)]}function c(){for(var e,t,r,n,o=0,s=i.cells.length;o<s;++o)if((e=i.cells[o])&&(n=(t=e.halfedges).length)){var u=new Array(n),c=new Array(n);for(r=0;r<n;++r)u[r]=r,c[r]=a(e,i.edges[t[r]]);for(u.sort((function(e,t){return c[t]-c[e]})),r=0;r<n;++r)c[r]=t[u[r]];for(r=0;r<n;++r)t[r]=c[r]}}function l(e,t,r,o){var a,c,l,f,p,d,h,m,g,y,v,b,_=i.cells.length,S=!0;for(a=0;a<_;++a)if(c=i.cells[a]){for(l=c.site,f=(p=c.halfedges).length;f--;)i.edges[p[f]]||p.splice(f,1);for(f=0,d=p.length;f<d;)v=(y=u(c,i.edges[p[f]]))[0],b=y[1],m=(h=s(c,i.edges[p[++f%d]]))[0],g=h[1],(Math.abs(v-m)>i.epsilon||Math.abs(b-g)>i.epsilon)&&(p.splice(f,0,i.edges.push((0,n.createBorderEdge)(l,y,Math.abs(v-e)<i.epsilon&&o-b>i.epsilon?[e,Math.abs(m-e)<i.epsilon?g:o]:Math.abs(b-o)<i.epsilon&&r-v>i.epsilon?[Math.abs(g-o)<i.epsilon?m:r,o]:Math.abs(v-r)<i.epsilon&&b-t>i.epsilon?[r,Math.abs(m-r)<i.epsilon?g:t]:Math.abs(b-t)<i.epsilon&&v-e>i.epsilon?[Math.abs(g-t)<i.epsilon?m:e,t]:null))-1),++d);d&&(S=!1)}if(S){var E,w,O,x=1/0;for(a=0,S=null;a<_;++a)(c=i.cells[a])&&(O=(E=(l=c.site)[0]-e)*E+(w=l[1]-t)*w)<x&&(x=O,S=c);if(S){var T=[e,t],k=[e,o],C=[r,o],I=[r,t];S.halfedges.push(i.edges.push((0,n.createBorderEdge)(l=S.site,T,k))-1,i.edges.push((0,n.createBorderEdge)(l,k,C))-1,i.edges.push((0,n.createBorderEdge)(l,C,I))-1,i.edges.push((0,n.createBorderEdge)(l,I,T))-1)}}for(a=0;a<_;++a)(c=i.cells[a])&&(c.halfedges.length||delete i.cells[a])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clipEdges:()=>c,createBorderEdge:()=>o,createEdge:()=>i,setEdgeEnd:()=>a});var n=r(1463);function i(e,t,r,i){var o=[null,null],s=n.edges.push(o)-1;return o.left=e,o.right=t,r&&a(o,e,t,r),i&&a(o,t,e,i),n.cells[e.index].halfedges.push(s),n.cells[t.index].halfedges.push(s),o}function o(e,t,r){var n=[t,r];return n.left=e,n}function a(e,t,r,n){e[0]||e[1]?e.left===r?e[1]=n:e[0]=n:(e[0]=n,e.left=t,e.right=r)}function s(e,t,r,n,i){var o,a=e[0],s=e[1],u=a[0],c=a[1],l=0,f=1,p=s[0]-u,d=s[1]-c;if(o=t-u,p||!(o>0)){if(o/=p,p<0){if(o<l)return;o<f&&(f=o)}else if(p>0){if(o>f)return;o>l&&(l=o)}if(o=n-u,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>l&&(l=o)}else if(p>0){if(o<l)return;o<f&&(f=o)}if(o=r-c,d||!(o>0)){if(o/=d,d<0){if(o<l)return;o<f&&(f=o)}else if(d>0){if(o>f)return;o>l&&(l=o)}if(o=i-c,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o<l)return;o<f&&(f=o)}return!(l>0||f<1)||(l>0&&(e[0]=[u+l*p,c+l*d]),f<1&&(e[1]=[u+f*p,c+f*d]),!0)}}}}}function u(e,t,r,n,i){var o=e[1];if(o)return!0;var a,s,u=e[0],c=e.left,l=e.right,f=c[0],p=c[1],d=l[0],h=l[1],m=(f+d)/2,g=(p+h)/2;if(h===p){if(m<t||m>=n)return;if(f>d){if(u){if(u[1]>=i)return}else u=[m,r];o=[m,i]}else{if(u){if(u[1]<r)return}else u=[m,i];o=[m,r]}}else if(s=g-(a=(f-d)/(h-p))*m,a<-1||a>1)if(f>d){if(u){if(u[1]>=i)return}else u=[(r-s)/a,r];o=[(i-s)/a,i]}else{if(u){if(u[1]<r)return}else u=[(i-s)/a,i];o=[(r-s)/a,r]}else if(p<h){if(u){if(u[0]>=n)return}else u=[t,a*t+s];o=[n,a*n+s]}else{if(u){if(u[0]<t)return}else u=[n,a*n+s];o=[t,a*t+s]}return e[0]=u,e[1]=o,!0}function c(e,t,r,i){for(var o,a=n.edges.length;a--;)u(o=n.edges[a],e,t,r,i)&&s(o,e,t,r,i)&&(Math.abs(o[0][0]-o[1][0])>n.epsilon||Math.abs(o[0][1]-o[1][1])>n.epsilon)||delete n.edges[a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{attachCircle:()=>u,detachCircle:()=>c,firstCircle:()=>n});var n,i=r(1465),o=r(1463),a=[];function s(){(0,i.RedBlackNode)(this),this.x=this.y=this.arc=this.site=this.cy=null}function u(e){var t=e.P,r=e.N;if(t&&r){var i=t.site,u=e.site,c=r.site;if(i!==c){var l=u[0],f=u[1],p=i[0]-l,d=i[1]-f,h=c[0]-l,m=c[1]-f,g=2*(p*m-d*h);if(!(g>=-o.epsilon2)){var y=p*p+d*d,v=h*h+m*m,b=(m*y-d*v)/g,_=(p*v-h*y)/g,S=a.pop()||new s;S.arc=e,S.site=u,S.x=b+l,S.y=(S.cy=_+f)+Math.sqrt(b*b+_*_),e.circle=S;for(var E=null,w=o.circles._;w;)if(S.y<w.y||S.y===w.y&&S.x<=w.x){if(!w.L){E=w.P;break}w=w.L}else{if(!w.R){E=w;break}w=w.R}o.circles.insert(E,S),E||(n=S)}}}}function c(e){var t=e.circle;t&&(t.P||(n=t.N),o.circles.remove(t),a.push(t),(0,i.RedBlackNode)(t),e.circle=null)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationPropType:()=>O,default:()=>w,extractAnimatedPropValues:()=>S});var n=r(270),i=r(272),o=r.n(i),a=r(1485),s=r(1470);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},u(e)}function c(){return c=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},c.apply(this,arguments)}function l(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return d(e)}(this,r)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(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}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 y(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){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=o().oneOfType([o().string,o().shape({stiffness:o().number,nonAnimatedProps:o().arrayOf(o().string),damping:o().number}),o().bool]),_={animatedProps:o().arrayOf(o().string).isRequired,animation:b,onStart:o().func,onEnd:o().func};function S(e){var t=e.animatedProps,r=m(e,["animatedProps"]);return t.reduce((function(e,t){return Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]),e}),{})}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(u,e);var t,r,i,o=p(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),v(d(t=o.call(this,e)),"_motionEndHandler",(function(){t.props.onEnd&&t.props.onEnd()})),v(d(t),"_renderChildren",(function(e){var r=e.i,i=t.props.children,o=t._interpolator,a=n.default.Children.only(i),s=o?o(r):o,u=s&&s.data||null;return u&&a.props._data&&(u=u.map((function(e,t){var r=a.props._data[t];return y(y({},e),{},{parent:r.parent,children:r.children})}))),n.default.cloneElement(a,y(y(y({},a.props),s),{},{data:u||a.props.data||null,_animation:Math.random()}))})),t._updateInterpolator(e),t}return t=u,r=[{key:"UNSAFE_componentWillUpdate",value:function(e){this._updateInterpolator(this.props,e),e.onStart&&e.onStart()}},{key:"_updateInterpolator",value:function(e,t){this._interpolator=(0,a.default)(S(e),t?S(t):null)}},{key:"render",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.presets.noWobble;if("string"==typeof e)return s.presets[e]||s.presets.noWobble;var t=e.damping,r=e.stiffness;return y(y({},e),{},{damping:t||s.presets.noWobble.damping,stiffness:r||s.presets.noWobble.stiffness})}(this.props.animation),t={i:(0,s.spring)(1,e)},r=Math.random();return n.default.createElement(s.Motion,c({defaultStyle:{i:0},style:t,key:r},{onRest:this._motionEndHandler}),this._renderChildren)}}],r&&l(t.prototype,r),i&&l(t,i),u}(n.PureComponent);E.propTypes=_,E.displayName="Animation";const w=E;var O=b},(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var i=r(1471);t.Motion=n(i);var o=r(1479);t.StaggeredMotion=n(o);var a=r(1480);t.TransitionMotion=n(a);var s=r(1482);t.spring=n(s);var u=r(1483);t.presets=n(u);var c=r(1473);t.stripStyle=n(c);var l=r(1484);t.reorderKeys=n(l)},(e,t,r)=>{"use strict";t.__esModule=!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}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(1472)),s=o(r(1473)),u=o(r(1474)),c=o(r(1475)),l=o(r(1476)),f=o(r(1478)),p=o(r(270)),d=o(r(272)),h=1e3/60,m=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,r=i.state,o=r.currentStyle,a=r.currentVelocity,s=r.lastIdealStyle,u=r.lastIdealVelocity;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var l=e[c];"number"==typeof l&&(t||(t=!0,o=n({},o),a=n({},a),s=n({},s),u=n({},u)),o[c]=l,a[c]=0,s[c]=l,u[c]=0)}t&&i.setState({currentStyle:o,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:u})},this.startAnimationIfNecessary=function(){i.animationID=l.default((function(e){var t=i.props.style;if(f.default(i.state.currentStyle,t,i.state.currentVelocity))return i.wasAnimating&&i.props.onRest&&i.props.onRest(),i.animationID=null,i.wasAnimating=!1,void(i.accumulatedTime=0);i.wasAnimating=!0;var r=e||c.default(),n=r-i.prevTime;if(i.prevTime=r,i.accumulatedTime=i.accumulatedTime+n,i.accumulatedTime>10*h&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/h)*h)/h,a=Math.floor(i.accumulatedTime/h),s={},l={},p={},d={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"==typeof g)p[m]=g,d[m]=0,s[m]=g,l[m]=0;else{for(var y=i.state.lastIdealStyle[m],v=i.state.lastIdealVelocity[m],b=0;b<a;b++){var _=u.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision);y=_[0],v=_[1]}var S=u.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision),E=S[0],w=S[1];p[m]=y+(E-y)*o,d[m]=v+(w-v)*o,s[m]=y,l[m]=v}}i.animationID=null,i.accumulatedTime-=a*h,i.setState({currentStyle:p,currentVelocity:d,lastIdealStyle:s,lastIdealVelocity:l}),i.unreadPropStyle=null,i.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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,null,[{key:"propTypes",value:{defaultStyle:d.default.objectOf(d.default.number),style:d.default.objectOf(d.default.oneOfType([d.default.number,d.default.object])).isRequired,children:d.default.func.isRequired,onRest:d.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,r=e.style,n=t||s.default(r),i=a.default(n);return{currentStyle:n,currentVelocity:i,lastIdealStyle:n,lastIdealVelocity:i}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(l.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&p.default.Children.only(e)},t}(p.default.Component);t.default=m,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,i,o,a,s){var u=n+(-o*(t-i)+-a*n)*e,c=t+u*e;if(Math.abs(u)<s&&Math.abs(c-i)<s)return r[0]=i,r[1]=0,r;return r[0]=c,r[1]=u,r};var r=[0,0];e.exports=t.default},function(e){(function(){var t,r,n;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-n)/1e6},r=process.hrtime,n=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},(e,t,r)=>{for(var n=r(1477),i="undefined"==typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,p=[],d=1e3/60;s=function(e){if(0===p.length){var t=n(),r=Math.max(0,d-(t-l));l=r+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},function(e){(function(){var t,r,n,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var i="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==i)return!1}return!0},e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!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}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(1472)),s=o(r(1473)),u=o(r(1474)),c=o(r(1475)),l=o(r(1476)),f=o(r(1478)),p=o(r(270)),d=o(r(272)),h=1e3/60;var m=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=i.state,r=t.currentStyles,o=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,u=!1,c=0;c<e.length;c++){var l=e[c],f=!1;for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var d=l[p];"number"==typeof d&&(f||(f=!0,u=!0,r[c]=n({},r[c]),o[c]=n({},o[c]),a[c]=n({},a[c]),s[c]=n({},s[c])),r[c][p]=d,o[c][p]=0,a[c][p]=d,s[c][p]=0)}}u&&i.setState({currentStyles:r,currentVelocities:o,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){i.animationID=l.default((function(e){var t=i.props.styles(i.state.lastIdealStyles);if(function(e,t,r){for(var n=0;n<e.length;n++)if(!f.default(e[n],t[n],r[n]))return!1;return!0}(i.state.currentStyles,t,i.state.currentVelocities))return i.animationID=null,void(i.accumulatedTime=0);var r=e||c.default(),n=r-i.prevTime;if(i.prevTime=r,i.accumulatedTime=i.accumulatedTime+n,i.accumulatedTime>10*h&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/h)*h)/h,a=Math.floor(i.accumulatedTime/h),s=[],l=[],p=[],d=[],m=0;m<t.length;m++){var g=t[m],y={},v={},b={},_={};for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var E=g[S];if("number"==typeof E)y[S]=E,v[S]=0,b[S]=E,_[S]=0;else{for(var w=i.state.lastIdealStyles[m][S],O=i.state.lastIdealVelocities[m][S],x=0;x<a;x++){var T=u.default(h/1e3,w,O,E.val,E.stiffness,E.damping,E.precision);w=T[0],O=T[1]}var k=u.default(h/1e3,w,O,E.val,E.stiffness,E.damping,E.precision),C=k[0],I=k[1];y[S]=w+(C-w)*o,v[S]=O+(I-O)*o,b[S]=w,_[S]=O}}p[m]=y,d[m]=v,s[m]=b,l[m]=_}i.animationID=null,i.accumulatedTime-=a*h,i.setState({currentStyles:p,currentVelocities:d,lastIdealStyles:s,lastIdealVelocities:l}),i.unreadPropStyles=null,i.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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,null,[{key:"propTypes",value:{defaultStyles:d.default.arrayOf(d.default.objectOf(d.default.number)),styles:d.default.func.isRequired,children:d.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=t||r().map(s.default),i=n.map((function(e){return a.default(e)}));return{currentStyles:n,currentVelocities:i,lastIdealStyles:n,lastIdealVelocities:i}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(l.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&p.default.Children.only(e)},t}(p.default.Component);t.default=m,e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!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}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(1472)),s=o(r(1473)),u=o(r(1474)),c=o(r(1481)),l=o(r(1475)),f=o(r(1476)),p=o(r(1478)),d=o(r(270)),h=o(r(272)),m=1e3/60;function g(e,t,r){var n=t;return null==n?e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}})):e.map((function(e,t){for(var i=0;i<n.length;i++)if(n[i].key===e.key)return{key:n[i].key,data:n[i].data,style:r[t]};return{key:e.key,data:e.data,style:r[t]}}))}function y(e,t,r,n,i,o,s,u,l){for(var f=c.default(n,i,(function(e,n){var i=t(n);return null==i||p.default(o[e],i,s[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:i}})),d=[],h=[],m=[],g=[],y=0;y<f.length;y++){for(var v=f[y],b=null,_=0;_<n.length;_++)if(n[_].key===v.key){b=_;break}if(null==b){var S=e(v);d[y]=S,m[y]=S;var E=a.default(v.style);h[y]=E,g[y]=E}else d[y]=o[b],m[y]=u[b],h[y]=s[b],g[y]=l[b]}return[f,d,h,m,g]}var v=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,e,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),r=t[0],o=t[1],a=t[2],s=t[3],u=t[4],c=0;c<e.length;c++){var l=e[c].style,f=!1;for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var d=l[p];"number"==typeof d&&(f||(f=!0,o[c]=n({},o[c]),a[c]=n({},a[c]),s[c]=n({},s[c]),u[c]=n({},u[c]),r[c]={key:r[c].key,data:r[c].data,style:n({},r[c].style)}),o[c][p]=d,a[c][p]=0,s[c][p]=d,u[c][p]=0,r[c].style[p]=d)}}i.setState({currentStyles:o,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:u})},this.startAnimationIfNecessary=function(){i.unmounting||(i.animationID=f.default((function(e){if(!i.unmounting){var t=i.props.styles,r="function"==typeof t?t(g(i.state.mergedPropsStyles,i.unreadPropStyles,i.state.lastIdealStyles)):t;if(function(e,t,r,n){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(n[i].key!==t[i].key)return!1;for(i=0;i<n.length;i++)if(!p.default(e[i],t[i].style,r[i]))return!1;return!0}(i.state.currentStyles,r,i.state.currentVelocities,i.state.mergedPropsStyles))return i.animationID=null,void(i.accumulatedTime=0);var n=e||l.default(),o=n-i.prevTime;if(i.prevTime=n,i.accumulatedTime=i.accumulatedTime+o,i.accumulatedTime>10*m&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var a=(i.accumulatedTime-Math.floor(i.accumulatedTime/m)*m)/m,s=Math.floor(i.accumulatedTime/m),c=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,r,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),f=c[0],d=c[1],h=c[2],v=c[3],b=c[4],_=0;_<f.length;_++){var S=f[_].style,E={},w={},O={},x={};for(var T in S)if(Object.prototype.hasOwnProperty.call(S,T)){var k=S[T];if("number"==typeof k)E[T]=k,w[T]=0,O[T]=k,x[T]=0;else{for(var C=v[_][T],I=b[_][T],R=0;R<s;R++){var A=u.default(m/1e3,C,I,k.val,k.stiffness,k.damping,k.precision);C=A[0],I=A[1]}var P=u.default(m/1e3,C,I,k.val,k.stiffness,k.damping,k.precision),D=P[0],N=P[1];E[T]=C+(D-C)*a,w[T]=I+(N-I)*a,O[T]=C,x[T]=I}}v[_]=O,b[_]=x,d[_]=E,h[_]=w}i.animationID=null,i.accumulatedTime-=s*m,i.setState({currentStyles:d,currentVelocities:h,lastIdealStyles:v,lastIdealVelocities:b,mergedPropsStyles:f}),i.unreadPropStyles=null,i.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.number).isRequired})),styles:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired}))]).isRequired,children:h.default.func.isRequired,willEnter:h.default.func,willLeave:h.default.func,didLeave:h.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return s.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=e.willEnter,i=e.willLeave,o=e.didLeave,u="function"==typeof r?r(t):r,c=void 0;c=null==t?u:t.map((function(e){for(var t=0;t<u.length;t++)if(u[t].key===e.key)return u[t];return e}));var l=null==t?u.map((function(e){return s.default(e.style)})):t.map((function(e){return s.default(e.style)})),f=null==t?u.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),p=y(n,i,o,c,u,l,f,l,f),d=p[0];return{currentStyles:p[1],currentVelocities:p[2],lastIdealStyles:p[3],lastIdealVelocities:p[4],mergedPropsStyles:d}},t.prototype.componentDidMount=function(){this.prevTime=l.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=l.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(f.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&d.default.Children.only(t)},t}(d.default.Component);t.default=v,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},i=0;i<e.length;i++)n[e[i].key]=i;var o={};for(i=0;i<t.length;i++)o[t[i].key]=i;var a=[];for(i=0;i<t.length;i++)a[i]=t[i];for(i=0;i<e.length;i++)if(!Object.prototype.hasOwnProperty.call(o,e[i].key)){var s=r(i,e[i]);null!=s&&a.push(s)}return a.sort((function(e,r){var i=o[e.key],a=o[r.key],s=n[e.key],u=n[r.key];if(null!=i&&null!=a)return o[e.key]-o[r.key];if(null!=s&&null!=u)return n[e.key]-n[r.key];if(null!=i){for(var c=0;c<t.length;c++){var l=t[c].key;if(Object.prototype.hasOwnProperty.call(n,l)){if(i<o[l]&&u>n[l])return-1;if(i>o[l]&&u<n[l])return 1}}return 1}for(c=0;c<t.length;c++){l=t[c].key;if(Object.prototype.hasOwnProperty.call(n,l)){if(a<o[l]&&s>n[l])return 1;if(a>o[l]&&s<n[l])return-1}}return-1}))},e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!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};t.default=function(e,t){return n({},s,t,{val:e})};var i,o=r(1483),a=(i=o)&&i.__esModule?i:{default:i},s=n({},a.default.noWobble,{precision:.01});e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(1491),i=r(1486),o=r(1493),a=r(1495),s=r(1496),u=r(1497),c=r(1498),l=r(1490),f=r(1494);function p(e,t){var r,p=typeof t;return null==t||"boolean"===p?(0,l.default)(t):("number"===p?s.default:"string"===p?(r=(0,n.default)(t))?(t=r,i.default):c.default:t instanceof n.default?i.default:t instanceof Date?a.default:(0,f.isNumberArray)(t)?f.default:Array.isArray(t)?o.genericArray:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?u.default:s.default)(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,rgbBasis:()=>c,rgbBasisClosed:()=>l});var n=r(1491),i=r(1487),o=r(1488),a=r(1489);const s=function e(t){var r=(0,a.gamma)(t);function i(e,t){var i=r((e=(0,n.rgb)(e)).r,(t=(0,n.rgb)(t)).r),o=r(e.g,t.g),s=r(e.b,t.b),u=(0,a.default)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=u(t),e+""}}return i.gamma=e,i}(1);function u(e){return function(t){var r,i,o=t.length,a=new Array(o),s=new Array(o),u=new Array(o);for(r=0;r<o;++r)i=(0,n.rgb)(t[r]),a[r]=i.r||0,s[r]=i.g||0,u[r]=i.b||0;return a=e(a),s=e(s),u=e(u),i.opacity=1,function(e){return i.r=a(e),i.g=s(e),i.b=u(e),i+""}}}var c=u(i.default),l=u(o.default)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function i(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,u=i<t-1?e[i+2]:2*a-o;return n((r-i/t)*t,s,o,a,u)}}r.r(t),r.d(t,{basis:()=>n,default:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1487);function i(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),o=e[(i+t-1)%t],a=e[i%t],s=e[(i+1)%t],u=e[(i+2)%t];return(0,n.basis)((r-i/t)*t,o,a,s,u)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,gamma:()=>a,hue:()=>o});var n=r(1490);function i(e,t){return function(r){return e+r*t}}function o(e,t){var r=t-e;return r?i(e,r>180||r<-180?r-360*Math.round(r/360):r):(0,n.default)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):(0,n.default)(isNaN(t)?r:t)}}function s(e,t){var r=t-e;return r?i(e,r):(0,n.default)(isNaN(e)?t:e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>()=>e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Color:()=>i,Rgb:()=>x,brighter:()=>a,darker:()=>o,default:()=>_,hsl:()=>D,hslConvert:()=>P,rgb:()=>O,rgbConvert:()=>w});var n=r(1492);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),p=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),d=new RegExp(`^rgba\\(${s},${s},${s},${u}\\)$`),h=new RegExp(`^rgba\\(${c},${c},${c},${u}\\)$`),m=new RegExp(`^hsl\\(${u},${c},${c}\\)$`),g=new RegExp(`^hsla\\(${u},${c},${c},${u}\\)$`),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?S(t):3===r?new x(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=f.exec(e))?new x(t[1],t[2],t[3],1):(t=p.exec(e))?new x(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=d.exec(e))?E(t[1],t[2],t[3],t[4]):(t=h.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?A(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?A(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?S(y[e]):"transparent"===e?new x(NaN,NaN,NaN,0):null}function S(e){return new x(e>>16&255,e>>8&255,255&e,1)}function E(e,t,r,n){return n<=0&&(e=t=r=NaN),new x(e,t,r,n)}function w(e){return e instanceof i||(e=_(e)),e?new x((e=e.rgb()).r,e.g,e.b,e.opacity):new x}function O(e,t,r,n){return 1===arguments.length?w(e):new x(e,t,r,null==n?1:n)}function x(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function T(){return`#${R(this.r)}${R(this.g)}${R(this.b)}`}function k(){const e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${I(this.r)}, ${I(this.g)}, ${I(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function I(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function R(e){return((e=I(e))<16?"0":"")+e.toString(16)}function A(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new N(e,t,r,n)}function P(e){if(e instanceof N)return new N(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=_(e)),!e)return new N;if(e instanceof N)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,u=a-o,c=(a+o)/2;return u?(s=t===a?(r-n)/u+6*(r<n):r===a?(n-t)/u+2:(t-r)/u+4,u/=c<.5?a+o:2-a-o,s*=60):u=c>0&&c<1?0:s,new N(s,u,c,e.opacity)}function D(e,t,r,n){return 1===arguments.length?P(e):new N(e,t,r,null==n?1:n)}function N(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function M(e){return(e=(e||0)%360)<0?e+360:e}function L(e){return Math.max(0,Math.min(1,e||0))}function j(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,n.default)(i,_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return P(this).formatHsl()},formatRgb:b,toString:b}),(0,n.default)(x,O,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new x(I(this.r),I(this.g),I(this.b),C(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatHex8:function(){return`#${R(this.r)}${R(this.g)}${R(this.b)}${R(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:k,toString:k})),(0,n.default)(N,D,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new N(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new N(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new x(j(e>=240?e-240:e+120,i,n),j(e,i,n),j(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new N(M(this.h),L(this.s),L(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=C(this.opacity);return`${1===e?"hsl(":"hsla("}${M(this.h)}, ${100*L(this.s)}%, ${100*L(this.l)}%${1===e?")":`, ${e})`}`}}))},(e,t,r)=>{"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.r(t),r.d(t,{default:()=>n,extend:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,genericArray:()=>a});var n=r(1485),i=r(1494);function o(e,t){return((0,i.isNumberArray)(t)?i.default:a)(e,t)}function a(e,t){var r,i=t?t.length:0,o=e?Math.min(i,e.length):0,a=new Array(o),s=new Array(i);for(r=0;r<o;++r)a[r]=(0,n.default)(e[r],t[r]);for(;r<i;++r)s[r]=t[r];return function(e){for(r=0;r<o;++r)s[r]=a[r](e);return s}}},(e,t,r)=>{"use strict";function n(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function i(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}r.r(t),r.d(t,{default:()=>n,isNumberArray:()=>i})},(e,t,r)=>{"use strict";function n(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1485);function i(e,t){var r,i={},o={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?i[r]=(0,n.default)(e[r],t[r]):o[r]=t[r];return function(e){for(r in i)o[r]=i[r](e);return o}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1496),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(e,t){var r,a,s,u=i.lastIndex=o.lastIndex=0,c=-1,l=[],f=[];for(e+="",t+="";(r=i.exec(e))&&(a=o.exec(t));)(s=a.index)>u&&(s=t.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(r=r[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,f.push({i:c,x:(0,n.default)(r,a)})),u=o.lastIndex;return u<t.length&&(s=t.slice(u),l[c]?l[c]+=s:l[++c]=s),l.length<2?f[0]?function(e){return function(t){return e(t)+""}}(f[0].x):function(e){return function(){return e}}(t):(t=f.length,function(e){for(var r,n=0;n<t;++n)l[(r=f[n]).i]=r.x(e);return l.join("")})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_adjustCategoricalScale:()=>B,_getScaleDistanceAndAdjustedDomain:()=>j,_getSmallestDistanceIndex:()=>D,default:()=>ee,extractScalePropsFromProps:()=>$,getAttr0Functor:()=>W,getAttributeFunctor:()=>z,getAttributeScale:()=>U,getAttributeValue:()=>V,getDomainByAccessor:()=>M,getFontColorFromBackground:()=>Q,getMissingScaleProps:()=>K,getOptionalScaleProps:()=>Z,getScaleFnFromScaleObject:()=>N,getScaleObjectFromProps:()=>F,getScalePropTypesByAttribute:()=>G,getXYPlotValues:()=>X,literalScale:()=>Y});var n,i=r(1509),o=r(1537),a=r(1538),s=r(1541),u=r(1543),c=r(1557),l=r(1558),f=r(1500),p=r(1491),d=r(272),h=r.n(d),m=r(1507),g=r(1508);function y(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?y(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||S(e,t)||function(){throw new 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){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.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)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(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="linear",x="ordinal",T="category",k="literal",C="log",I="time",R=(w(n={},O,i.default),w(n,x,o.point),w(n,T,a.default),w(n,k,Y),w(n,C,s.default),w(n,I,u.default),w(n,"time-utc",c.default),n),A=["color","fill","opacity","stroke"];function P(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function D(e,t){var r=N(t),n=0;if(r)for(var i,o,a=r(e[0]),s=1/0,u=1;u<e.length;u++)i=r(e[u]),(o=Math.abs(i-a))<s&&(s=o,n=u),a=i;return n}function N(e){if(!e)return null;var t=e.type,r=e.domain,n=e.range,i=r[0]===r[1]?0===r[0]?[-1,0]:[-r[0],r[0]]:r;if(t===k)return Y(n[0]);var o=R[t]().domain(i).range(n);return t===x&&(o.padding(.5),function(e){e.invert||(e.invert=function(t){var r=_(e.range(),2),n=r[0],i=r[1],o=Math.min(n,i),a=Math.max(n,i);if(t<o+e.padding()*e.step())return e.domain()[0];if(t>a-e.padding()*e.step())return e.domain()[e.domain().length-1];var s=Math.floor((t-o-e.padding()*e.step())/e.step());return e.domain()[s]})}(o)),o}function M(e,t,r,n){var i=e.reduce((function(e,n){var i=t(n),o=r(n);return q(i)&&e.push(i),q(o)&&e.push(o),e}),[]);return i.length?n!==x&&n!==T?(0,l.default)(i):(0,f.set)(i).values():[]}function L(e,t,r,n,i){return r===k?{type:k,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:i}:void 0===t?null:{type:T,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:i}}function j(e,t){var r=t.domain,n=t.type,i=t.accessor,o=t.accessor0,a=function(e,t,r,n){return n===I&&1===t.length?[r(e[0])].concat(b(t)):t}(e,(0,g.getUniquePropertyValues)(e,i),o,n),s=D(a,t),u=[].concat(r);u[0]-=function(e){return e.length>1?(e[1]-e[0])/2:1===e.length?e[0]-.5:0}(a),u[r.length-1]+=function(e){return e.length>1?(e[e.length-1]-e[e.length-2])/2:1===e.length?e[0]-.5:0}(a),n===C&&r[0]<=0&&(u[0]=Math.min(r[1]/10,1));var c=function(e,t,r,n){if(e.length>1){var i=Math.max(r,1);return Math.abs(n(e[i])-n(e[i-1]))}return 1===e.length?Math.abs(n(t[1])-n(t[0])):0}(a,u,s,N(v(v({},t),{},{domain:u})));return{domain0:u[0],domainN:u[u.length-1],distance:c}}function B(e){var t=N(e),r=e.domain,n=e.range;return r.length>1?e.distance=Math.abs(t(r[1])-t(r[0])):e.distance=Math.abs(n[1]-n[0]),e}function F(e,t){var r=function(e,t){var r,n=e[t],i=e["_".concat(t,"Value")],o=e["".concat(t,"Range")],a=e["".concat(t,"Distance")],s=void 0===a?0:a,u=e["".concat(t,"BaseValue")],c=e["".concat(t,"Type")],l=void 0===c?O:c,f=e["".concat(t,"NoFallBack")],p=e["get".concat(P(t))],d=void 0===p?function(e){return e[t]}:p,h=e["get".concat(P(t),"0")],m=void 0===h?function(e){return e["".concat(t,"0")]}:h,y=e["".concat(t,"Domain")];return f||void 0===n?(void 0!==u&&(y=(0,g.addValueToArray)(y,u)),o&&y&&y.length?{domain:(r={domain:y,range:o,type:l,distance:s,attr:t,baseValue:u,accessor:d,accessor0:m}).domain,range:r.range,type:r.type,distance:r.distance,attr:r.attr,baseValue:r.baseValue,isValue:!1,accessor:r.accessor,accessor0:r.accessor0}:L(t,i,e["".concat(t,"Type")],d,m)):L(t,n,e["".concat(t,"Type")],d,m)}(e,t);if(!r)return null;if(!function(e,t){var r=t.attr,n=e._adjustBy,i=void 0===n?[]:n,o=e._adjustWhat;return(void 0===o?[]:o).length&&i.length&&-1!==i.indexOf(r)}(e,r))return r;var n=r.type;return n===x||n===T?B(r):function(e,t){var r=e._allData,n=e._adjustWhat,i=void 0===n?[]:n,o=t.domain.length,a=t.domain,s=a[0],u=a[o-1],c=t.distance;return r.forEach((function(e,r){if(-1!==i.indexOf(r)&&e&&e.length){var n=j(e,t),o=n.domain0,a=n.domainN,l=n.distance;s=Math.min(s,o),u=Math.max(u,a),c=Math.max(c,l)}})),t.domain=[s].concat(b(a.slice(1,-1)),[u]),t.distance=c,t}(e,r)}function U(e,t){return N(F(e,t))}function H(e,t){return t(e.data?e.data:e)}function q(e){return void 0!==e}function z(e,t){var r=F(e,t);if(r){var n=N(r);return function(e){return n(H(e,r.accessor))}}return null}function W(e,t){var r=F(e,t);if(r){var n=r.domain,i=r.baseValue,o=void 0===i?n[0]:i,a=N(r);return function(e){var t=H(e,r.accessor0);return a(q(t)?t:o)}}return null}function V(e,t){var r=F(e,t);return r?(r.isValue||void 0!==e["_".concat(t,"Value")]||(0,m.warning)("[React-vis] Cannot use data defined ".concat(t," for this ")+"series type. Using fallback value instead."),e["_".concat(t,"Value")]||r.range[0]):null}function G(e){var t;return w(t={},"_".concat(e,"Value"),h().any),w(t,"".concat(e,"Domain"),h().array),w(t,"get".concat(P(e)),h().func),w(t,"get".concat(P(e),"0"),h().func),w(t,"".concat(e,"Range"),h().array),w(t,"".concat(e,"Type"),h().oneOf(Object.keys(R))),w(t,"".concat(e,"Distance"),h().number),w(t,"".concat(e,"BaseValue"),h().any),t}function $(e,t){var r={};return Object.keys(e).forEach((function(n){t.find((function(e){var t=0===n.indexOf(e),r=0===n.indexOf("_".concat(e)),i=0===n.indexOf("get".concat(P(e)));return t||r||i}))&&(r[n]=e[n])})),r}function K(e,t,r){var n={};return r.forEach((function(r){e["get".concat(P(r))]||(n["get".concat(P(r))]=function(e){return e[r]}),e["get".concat(P(r),"0")]||(n["get".concat(P(r),"0")]=function(e){return e["".concat(r,"0")]}),e["".concat(r,"Domain")]||(n["".concat(r,"Domain")]=M(t,e["get".concat(P(r))]||n["get".concat(P(r))],e["get".concat(P(r),"0")]||n["get".concat(P(r),"0")],e["".concat(r,"Type")]),e["".concat(r,"Padding")]&&(n["".concat(r,"Domain")]=function(e,t){if(!e)return e;if(isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var r=_(e,2),n=r[0],i=r[1],o=.01*t*(i-n);return[n-o,i+o]}(n["".concat(r,"Domain")],e["".concat(r,"Padding")])))})),n}function Y(e){function t(t){return void 0===t?e:t}function r(){return t}return t.domain=r,t.range=r,t.unknown=r,t.copy=r,t}function Q(e){return e?(0,p.hsl)(e).l>.57?"#222":"#fff":null}function X(e,t){var r=A.reduce((function(t,r){var n=e["".concat(r,"Domain")],i=e["".concat(r,"Range")],o=e["".concat(r,"Type")];return n&&i&&o?v(v({},t),{},w({},r,R[o]().domain(n).range(i))):t}),{});return t.map((function(e){return A.reduce((function(t,n){if(e.props&&void 0!==e.props[n]){var i=e.props[n],o=r[n],a=o?o(i):i;return v(v({},t),{},w({},"_".concat(n,"Value"),a))}return t}),{})}))}var J=["Padding"].map((function(e){return new RegExp("".concat(e,"$"),"i")}));function Z(e){return Object.keys(e).reduce((function(t,r){return J.every((function(e){return!r.match(e)}))||(t[r]=e[r]),t}),{})}const ee={extractScalePropsFromProps:$,getAttributeScale:U,getAttributeFunctor:z,getAttr0Functor:W,getAttributeValue:V,getDomainByAccessor:M,getFontColorFromBackground:Q,getMissingScaleProps:K,getOptionalScaleProps:Z,getScaleObjectFromProps:F,getScalePropTypesByAttribute:G,getXYPlotValues:X,literalScale:Y}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{entries:()=>u.default,keys:()=>a.default,map:()=>o.default,nest:()=>n.default,set:()=>i.default,values:()=>s.default});var n=r(1501),i=r(1503),o=r(1502),a=r(1504),s=r(1505),u=r(1506)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1502);function i(){var e,t,r,i=[],c=[];function l(r,o,a,s){if(o>=i.length)return null!=e&&r.sort(e),null!=t?t(r):r;for(var u,c,f,p=-1,d=r.length,h=i[o++],m=(0,n.default)(),g=a();++p<d;)(f=m.get(u=h(c=r[p])+""))?f.push(c):m.set(u,[c]);return m.each((function(e,t){s(g,t,l(e,o,a,s))})),g}function f(e,r){if(++r>i.length)return e;var n,o=c[r-1];return null!=t&&r>=i.length?n=e.entries():(n=[],e.each((function(e,t){n.push({key:t,values:f(e,r)})}))),null!=o?n.sort((function(e,t){return o(e.key,t.key)})):n}return r={object:function(e){return l(e,0,o,a)},map:function(e){return l(e,0,s,u)},entries:function(e){return f(l(e,0,s,u),0)},key:function(e){return i.push(e),r},sortKeys:function(e){return c[i.length-1]=e,r},sortValues:function(t){return e=t,r},rollup:function(e){return t=e,r}}}function o(){return{}}function a(e,t,r){e[t]=r}function s(){return(0,n.default)()}function u(e,t,r){e.set(t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,prefix:()=>n});var n="$";function i(){}function o(e,t){var r=new i;if(e instanceof i)e.each((function(e,t){r.set(t,e)}));else if(Array.isArray(e)){var n,o=-1,a=e.length;if(null==t)for(;++o<a;)r.set(o,e[o]);else for(;++o<a;)r.set(t(n=e[o],o,e),n)}else if(e)for(var s in e)r.set(s,e[s]);return r}i.prototype=o.prototype={constructor:i,has:function(e){return n+e in this},get:function(e){return this[n+e]},set:function(e,t){return this[n+e]=t,this},remove:function(e){var t=n+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===n&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===n&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===n&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===n&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===n&&++e;return e},empty:function(){for(var e in this)if(e[0]===n)return!1;return!0},each:function(e){for(var t in this)t[0]===n&&e(this[t],t.slice(1),this)}};const a=o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(1502);function i(){}var o=n.default.prototype;function a(e,t){var r=new i;if(e instanceof i)e.each((function(e){r.add(e)}));else if(e){var n=-1,o=e.length;if(null==t)for(;++n<o;)r.add(e[n]);else for(;++n<o;)r.add(t(e[n],n,e))}return r}i.prototype=a.prototype={constructor:i,has:o.has,add:function(e){return e+="",this[n.prefix+e]=e,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each};const s=a},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push(r);return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push(e[r]);return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{getDOMNode:()=>p,isReactDOMSupported:()=>f,warnOnce:()=>g,warning:()=>m});var i,o,a=r(270).default.version.split("."),s=(o=2,function(e){if(Array.isArray(e))return e}(i=a)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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||null==s.return||s.return()}finally{if(i)throw o}}return r}}(i,o)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(i,o)||function(){throw new 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],l=Number(c)>13||Number(u)>13,f=function(){return l},p=function(e){return f()?e:e&&e.getDOMNode()},d={},h={test:!0,production:!0};function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.g.process&&h.production||t&&d[e]||(console.warn(e),d[e]=!0)}function g(e){m(e,!0)}},(e,t,r)=>{"use strict";function n(e,t){var r=new Set(e.map(t));return Array.from(r)}function i(e,t){var r=[].concat(e);return r[0]>t&&(r[0]=t),r[r.length-1]<t&&(r[r.length-1]=t),r}function o(e){return"[object Date]"===Object.prototype.toString.call(e)?e.toDateString():e}r.r(t),r.d(t,{addValueToArray:()=>i,getUniquePropertyValues:()=>n,transformValueToString:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,linearish:()=>s});var n=r(1521),i=r(1510),o=r(1519),a=r(1520);function s(e){var t=e.domain;return e.ticks=function(e){var r=t();return(0,n.default)(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return(0,a.default)(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var i,o,a=t(),s=0,u=a.length-1,c=a[s],l=a[u],f=10;for(l<c&&(o=c,c=l,l=o,o=s,s=u,u=o);f-- >0;){if((o=(0,n.tickIncrement)(c,l,r))===i)return a[s]=c,a[u]=l,t(a);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}i=o}return e},e}function u(){var e=(0,i.default)();return e.copy=function(){return(0,i.copy)(e,u())},o.initRange.apply(e,arguments),s(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{copy:()=>h,default:()=>g,identity:()=>l,transformer:()=>m});var n=r(1513),i=r(1485),o=r(1496),a=r(1518),s=r(1511),u=r(1512),c=[0,1];function l(e){return e}function f(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(0,s.default)(isNaN(t)?NaN:.5)}function p(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=f(i,n),o=r(a,o)):(n=f(n,i),o=r(o,a)),function(e){return o(n(e))}}function d(e,t,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=f(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var r=(0,n.default)(e,t,1,i)-1;return a[r](o[r](t))}}function h(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function m(){var e,t,r,n,s,f,h=c,m=c,g=i.default,y=l;function v(){var e,t,r,i=Math.min(h.length,m.length);return y!==l&&(e=h[0],t=h[i-1],e>t&&(r=e,e=t,t=r),y=function(r){return Math.max(e,Math.min(t,r))}),n=i>2?d:p,s=f=null,b}function b(t){return null==t||isNaN(t=+t)?r:(s||(s=n(h.map(e),m,g)))(e(y(t)))}return b.invert=function(r){return y(t((f||(f=n(m,h.map(e),o.default)))(r)))},b.domain=function(e){return arguments.length?(h=Array.from(e,u.default),v()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),v()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=a.default,v()},b.clamp=function(e){return arguments.length?(y=!!e||l,v()):y!==l},b.interpolate=function(e){return arguments.length?(g=e,v()):g},b.unknown=function(e){return arguments.length?(r=e,b):r},function(r,n){return e=r,t=n,v()}}function g(){return m()(l,l)}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return+e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bisectCenter:()=>c,bisectLeft:()=>u,bisectRight:()=>s,default:()=>l});var n=r(1514),i=r(1515),o=r(1517);const a=(0,i.default)(n.default),s=a.right,u=a.left,c=(0,i.default)(o.default).center,l=s},(e,t,r)=>{"use strict";function n(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1514),i=r(1516);function o(e){let t,r,o;function s(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=n.default,r=(t,r)=>(0,n.default)(e(t),r),o=(t,r)=>e(t)-r):(t=e===n.default||e===i.default?e:a,r=e,o=e),{left:s,center:function(e,t,r=0,n=e.length){const i=s(e,t,r,n-1);return i>r&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<=0?i=t+1:o=t}while(i<o)}return i}}}function a(){return 0}},(e,t,r)=>{"use strict";function n(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}r.r(t),r.d(t,{default:()=>n,numbers:()=>i})},(e,t,r)=>{"use strict";function n(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function i(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}r.r(t),r.d(t,{initInterpolator:()=>i,initRange:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(1521),i=r(1522),o=r(1523),a=r(1526),s=r(1535),u=r(1536);function c(e,t,r,c){var l,f=(0,n.tickStep)(e,t,r);switch((c=(0,i.default)(null==c?",f":c)).type){case"s":var p=Math.max(Math.abs(e),Math.abs(t));return null!=c.precision||isNaN(l=(0,o.default)(f,p))||(c.precision=l),(0,a.formatPrefix)(c,p);case"":case"e":case"g":case"p":case"r":null!=c.precision||isNaN(l=(0,s.default)(f,Math.max(Math.abs(e),Math.abs(t))))||(c.precision=l-("e"===c.type));break;case"f":case"%":null!=c.precision||isNaN(l=(0,u.default)(f))||(c.precision=l-2*("%"===c.type))}return(0,a.format)(c)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,tickIncrement:()=>u,tickStep:()=>c});const n=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,r){const s=(t-e)/Math.max(0,r),u=Math.floor(Math.log10(s)),c=s/Math.pow(10,u),l=c>=n?10:c>=i?5:c>=o?2:1;let f,p,d;return u<0?(d=Math.pow(10,-u)/l,f=Math.round(e*d),p=Math.round(t*d),f/d<e&&++f,p/d>t&&--p,d=-d):(d=Math.pow(10,u)*l,f=Math.round(e/d),p=Math.round(t/d),f*d<e&&++f,p*d>t&&--p),p<f&&.5<=r&&r<2?a(e,t,2*r):[f,p,d]}function s(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,o,s]=n?a(t,e,r):a(e,t,r);if(!(o>=i))return[];const u=o-i+1,c=new Array(u);if(n)if(s<0)for(let e=0;e<u;++e)c[e]=(o-e)/-s;else for(let e=0;e<u;++e)c[e]=(o-e)*s;else if(s<0)for(let e=0;e<u;++e)c[e]=(i+e)/-s;else for(let e=0;e<u;++e)c[e]=(i+e)*s;return c}function u(e,t,r){return a(e=+e,t=+t,r=+r)[2]}function c(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?u(t,e,r):u(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FormatSpecifier:()=>o,default:()=>i});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=n.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1524);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,n.default)(t)/3)))-(0,n.default)(Math.abs(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1525);function i(e){return(e=(0,n.formatDecimalParts)(Math.abs(e)))?e[1]:NaN}},(e,t,r)=>{"use strict";function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.r(t),r.d(t,{default:()=>n,formatDecimalParts:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,format:()=>i,formatPrefix:()=>o});var n,i,o,a=r(1527);function s(e){return n=(0,a.default)(e),i=n.format,o=n.formatPrefix,n}s({thousands:",",grouping:[3],currency:["$",""]})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1524),i=r(1528),o=r(1529),a=r(1522),s=r(1530),u=r(1531),c=r(1532),l=r(1534),f=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function d(e){var t=void 0===e.grouping||void 0===e.thousands?l.default:(0,i.default)(f.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",d=void 0===e.currency?"":e.currency[1]+"",h=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?l.default:(0,o.default)(f.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"−":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function b(e){var n=(e=(0,a.default)(e)).fill,i=e.align,o=e.sign,l=e.symbol,f=e.zero,b=e.width,_=e.comma,S=e.precision,E=e.trim,w=e.type;"n"===w?(_=!0,w="g"):u.default[w]||(void 0===S&&(S=12),E=!0,w="g"),(f||"0"===n&&"="===i)&&(f=!0,n="0",i="=");var O="$"===l?r:"#"===l&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",x="$"===l?d:/[%p]/.test(w)?g:"",T=u.default[w],k=/[defgprs%]/.test(w);function C(e){var r,a,u,l=O,d=x;if("c"===w)d=T(e)+d,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:T(Math.abs(e),S),E&&(e=(0,s.default)(e)),g&&0==+e&&"+"!==o&&(g=!1),l=(g?"("===o?o:y:"-"===o||"("===o?"":o)+l,d=("s"===w?p[8+c.prefixExponent/3]:"")+d+(g&&"("===o?")":""),k)for(r=-1,a=e.length;++r<a;)if(48>(u=e.charCodeAt(r))||u>57){d=(46===u?h+e.slice(r+1):e.slice(r))+d,e=e.slice(0,r);break}}_&&!f&&(e=t(e,1/0));var C=l.length+e.length+d.length,I=C<b?new Array(b-C+1).join(n):"";switch(_&&f&&(e=t(I+e,I.length?b-d.length:1/0),I=""),i){case"<":e=l+e+d+I;break;case"=":e=l+I+e+d;break;case"^":e=I.slice(0,C=I.length>>1)+l+e+d+I.slice(C);break;default:e=I+l+e+d}return m(e)}return S=void 0===S?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S)),C.toString=function(){return e+""},C}return{format:b,formatPrefix:function(e,t){var r=b(((e=(0,a.default)(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((0,n.default)(t)/3))),o=Math.pow(10,-i),s=p[8+i/3];return function(e){return r(o*e)+s}}}}},(e,t,r)=>{"use strict";function n(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),o.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1525),i=r(1532),o=r(1533);const a={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:n.default,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>(0,o.default)(100*e,t),r:o.default,s:i.default,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,prefixExponent:()=>n});var n,i=r(1525);function o(e,t){var r=(0,i.formatDecimalParts)(e,t);if(!r)return e+"";var o=r[0],a=r[1],s=a-(n=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,u=o.length;return s===u?o:s>u?o+new Array(s-u+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+(0,i.formatDecimalParts)(e,Math.max(0,t+s-1))[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1525);function i(e,t){var r=(0,n.formatDecimalParts)(e,t);if(!r)return e+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1524);function i(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,n.default)(t)-(0,n.default)(e))+1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1524);function i(e){return Math.max(0,-(0,n.default)(Math.abs(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,point:()=>u});var n=r(1540),i=r(1519),o=r(1538);function a(){var e,t,r=(0,o.default)().unknown(void 0),s=r.domain,u=r.range,c=0,l=1,f=!1,p=0,d=0,h=.5;function m(){var r=s().length,i=l<c,o=i?l:c,a=i?c:l;e=(a-o)/Math.max(1,r-p+2*d),f&&(e=Math.floor(e)),o+=(a-o-e*(r-p))*h,t=e*(1-p),f&&(o=Math.round(o),t=Math.round(t));var m=(0,n.default)(r).map((function(t){return o+e*t}));return u(i?m.reverse():m)}return delete r.unknown,r.domain=function(e){return arguments.length?(s(e),m()):s()},r.range=function(e){return arguments.length?([c,l]=e,c=+c,l=+l,m()):[c,l]},r.rangeRound=function(e){return[c,l]=e,c=+c,l=+l,f=!0,m()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(f=!!e,m()):f},r.padding=function(e){return arguments.length?(p=Math.min(1,d=+e),m()):p},r.paddingInner=function(e){return arguments.length?(p=Math.min(1,e),m()):p},r.paddingOuter=function(e){return arguments.length?(d=+e,m()):d},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),m()):h},r.copy=function(){return a(s(),[c,l]).round(f).paddingInner(p).paddingOuter(d).align(h)},i.initRange.apply(m(),arguments)}function s(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return s(t())},e}function u(){return s(a.apply(null,arguments).paddingInner(1))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,implicit:()=>o});var n=r(1539),i=r(1519);const o=Symbol("implicit");function a(){var e=new n.InternMap,t=[],r=[],s=o;function u(n){let i=e.get(n);if(void 0===i){if(s!==o)return s;e.set(n,i=t.push(n)-1)}return r[i%r.length]}return u.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new n.InternMap;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return u},u.range=function(e){return arguments.length?(r=Array.from(e),u):r.slice()},u.unknown=function(e){return arguments.length?(s=e,u):s},u.copy=function(){return a(t,r).unknown(s)},i.initRange.apply(u,arguments),u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InternMap:()=>n,InternSet:()=>i});class n extends Map{constructor(e,t=u){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class i extends Set{constructor(e,t=u){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(o(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function o({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function a({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function s({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function u(e){return null!==e&&"object"==typeof e?e.valueOf():e}},(e,t,r)=>{"use strict";function n(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g,loggish:()=>m});var n=r(1521),i=r(1522),o=r(1526),a=r(1542),s=r(1510),u=r(1519);function c(e){return Math.log(e)}function l(e){return Math.exp(e)}function f(e){return-Math.log(-e)}function p(e){return-Math.exp(-e)}function d(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return(t,r)=>-e(-t,r)}function m(e){const t=e(c,l),r=t.domain;let s,u,m=10;function g(){return s=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(m),u=function(e){return 10===e?d:e===Math.E?Math.exp:t=>Math.pow(e,t)}(m),r()[0]<0?(s=h(s),u=h(u),e(f,p)):e(c,l),t}return t.base=function(e){return arguments.length?(m=+e,g()):m},t.domain=function(e){return arguments.length?(r(e),g()):r()},t.ticks=e=>{const t=r();let i=t[0],o=t[t.length-1];const a=o<i;a&&([i,o]=[o,i]);let c,l,f=s(i),p=s(o);const d=null==e?10:+e;let h=[];if(!(m%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),i>0){for(;f<=p;++f)for(c=1;c<m;++c)if(l=f<0?c/u(-f):c*u(f),!(l<i)){if(l>o)break;h.push(l)}}else for(;f<=p;++f)for(c=m-1;c>=1;--c)if(l=f>0?c/u(-f):c*u(f),!(l<i)){if(l>o)break;h.push(l)}2*h.length<d&&(h=(0,n.default)(i,o,d))}else h=(0,n.default)(f,p,Math.min(p-f,d)).map(u);return a?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===m?"s":","),"function"!=typeof r&&(m%1||null!=(r=(0,i.default)(r)).precision||(r.trim=!0),r=(0,o.format)(r)),e===1/0)return r;const n=Math.max(1,m*e/t.ticks().length);return e=>{let t=e/u(Math.round(s(e)));return t*m<m-.5&&(t*=m),t<=n?r(e):""}},t.nice=()=>r((0,a.default)(r(),{floor:e=>u(Math.floor(s(e))),ceil:e=>u(Math.ceil(s(e)))})),t}function g(){const e=m((0,s.transformer)()).domain([1,10]);return e.copy=()=>(0,s.copy)(e,g()).base(e.base()),u.initRange.apply(e,arguments),e}},(e,t,r)=>{"use strict";function n(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calendar:()=>y,default:()=>v});var n=r(1544),i=r(1554),o=r(1553),a=r(1552),s=r(1551),u=r(1550),c=r(1549),l=r(1548),f=r(1555),p=r(1510),d=r(1519),h=r(1542);function m(e){return new Date(e)}function g(e){return e instanceof Date?+e:+new Date(+e)}function y(e,t,r,n,i,o,a,s,u,c){var l=(0,p.default)(),f=l.invert,d=l.domain,v=c(".%L"),b=c(":%S"),_=c("%I:%M"),S=c("%I %p"),E=c("%a %d"),w=c("%b %d"),O=c("%B"),x=c("%Y");function T(e){return(u(e)<e?v:s(e)<e?b:a(e)<e?_:o(e)<e?S:n(e)<e?i(e)<e?E:w:r(e)<e?O:x)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?d(Array.from(e,g)):d().map(m)},l.ticks=function(t){var r=d();return e(r[0],r[r.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?T:c(t)},l.nice=function(e){var r=d();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?d((0,h.default)(r,e)):l},l.copy=function(){return(0,p.copy)(l,y(e,t,r,n,i,o,a,s,u,c))},l}function v(){return d.initRange.apply(y(n.timeTicks,n.timeTickInterval,i.timeYear,o.timeMonth,a.timeSunday,s.timeDay,u.timeHour,c.timeMinute,l.second,f.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeTickInterval:()=>v,timeTicks:()=>y,utcTickInterval:()=>g,utcTicks:()=>m});var n=r(1515),i=r(1521),o=r(1545),a=r(1546),s=r(1548),u=r(1549),c=r(1550),l=r(1551),f=r(1552),p=r(1553),d=r(1554);function h(e,t,r,u,c,l){const f=[[s.second,1,o.durationSecond],[s.second,5,5*o.durationSecond],[s.second,15,15*o.durationSecond],[s.second,30,30*o.durationSecond],[l,1,o.durationMinute],[l,5,5*o.durationMinute],[l,15,15*o.durationMinute],[l,30,30*o.durationMinute],[c,1,o.durationHour],[c,3,3*o.durationHour],[c,6,6*o.durationHour],[c,12,12*o.durationHour],[u,1,o.durationDay],[u,2,2*o.durationDay],[r,1,o.durationWeek],[t,1,o.durationMonth],[t,3,3*o.durationMonth],[e,1,o.durationYear]];function p(t,r,s){const u=Math.abs(r-t)/s,c=(0,n.default)((([,,e])=>e)).right(f,u);if(c===f.length)return e.every((0,i.tickStep)(t/o.durationYear,r/o.durationYear,s));if(0===c)return a.millisecond.every(Math.max((0,i.tickStep)(t,r,s),1));const[l,p]=f[u/f[c-1][2]<f[c][2]/u?c-1:c];return l.every(p)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:p(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},p]}const[m,g]=h(d.utcYear,p.utcMonth,f.utcSunday,l.unixDay,c.utcHour,u.utcMinute),[y,v]=h(d.timeYear,p.timeMonth,f.timeSunday,l.timeDay,c.timeHour,u.timeMinute)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{durationDay:()=>a,durationHour:()=>o,durationMinute:()=>i,durationMonth:()=>u,durationSecond:()=>n,durationWeek:()=>s,durationYear:()=>c});const n=1e3,i=60*n,o=60*i,a=24*o,s=7*a,u=30*a,c=365*a},(e,t,r)=>{"use strict";r.r(t),r.d(t,{millisecond:()=>i,milliseconds:()=>o});var n=r(1547);const i=(0,n.timeInterval)((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,n.timeInterval)((t=>{t.setTime(Math.floor(t/e)*e)}),((t,r)=>{t.setTime(+t+r*e)}),((t,r)=>(r-t)/e)):i:null);const o=i.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeInterval:()=>o});const n=new Date,i=new Date;function o(e,t,r,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=t=>(e(t=new Date(+t)),t),s.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),s.round=e=>{const t=s(e),r=s.ceil(e);return e-t<r-e?t:r},s.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),s.range=(r,n,i)=>{const o=[];if(r=s.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return o;let a;do{o.push(a=new Date(+r)),t(r,i),e(r)}while(a<r&&r<n);return o},s.filter=r=>o((t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),((e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););})),r&&(s.count=(t,o)=>(n.setTime(+t),i.setTime(+o),e(n),e(i),Math.floor(r(n,i))),s.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?t=>a(t)%e==0:t=>s.count(0,t)%e==0):s:null)),s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{second:()=>o,seconds:()=>a});var n=r(1547),i=r(1545);const o=(0,n.timeInterval)((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*i.durationSecond)}),((e,t)=>(t-e)/i.durationSecond),(e=>e.getUTCSeconds())),a=o.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMinute:()=>o,timeMinutes:()=>a,utcMinute:()=>s,utcMinutes:()=>u});var n=r(1547),i=r(1545);const o=(0,n.timeInterval)((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.durationSecond)}),((e,t)=>{e.setTime(+e+t*i.durationMinute)}),((e,t)=>(t-e)/i.durationMinute),(e=>e.getMinutes())),a=o.range,s=(0,n.timeInterval)((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*i.durationMinute)}),((e,t)=>(t-e)/i.durationMinute),(e=>e.getUTCMinutes())),u=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeHour:()=>o,timeHours:()=>a,utcHour:()=>s,utcHours:()=>u});var n=r(1547),i=r(1545);const o=(0,n.timeInterval)((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.durationSecond-e.getMinutes()*i.durationMinute)}),((e,t)=>{e.setTime(+e+t*i.durationHour)}),((e,t)=>(t-e)/i.durationHour),(e=>e.getHours())),a=o.range,s=(0,n.timeInterval)((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*i.durationHour)}),((e,t)=>(t-e)/i.durationHour),(e=>e.getUTCHours())),u=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeDay:()=>o,timeDays:()=>a,unixDay:()=>c,unixDays:()=>l,utcDay:()=>s,utcDays:()=>u});var n=r(1547),i=r(1545);const o=(0,n.timeInterval)((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationDay),(e=>e.getDate()-1)),a=o.range,s=(0,n.timeInterval)((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/i.durationDay),(e=>e.getUTCDate()-1)),u=s.range,c=(0,n.timeInterval)((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/i.durationDay),(e=>Math.floor(e/i.durationDay))),l=c.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeFriday:()=>f,timeFridays:()=>v,timeMonday:()=>s,timeMondays:()=>h,timeSaturday:()=>p,timeSaturdays:()=>b,timeSunday:()=>a,timeSundays:()=>d,timeThursday:()=>l,timeThursdays:()=>y,timeTuesday:()=>u,timeTuesdays:()=>m,timeWednesday:()=>c,timeWednesdays:()=>g,utcFriday:()=>T,utcFridays:()=>D,utcMonday:()=>E,utcMondays:()=>I,utcSaturday:()=>k,utcSaturdays:()=>N,utcSunday:()=>S,utcSundays:()=>C,utcThursday:()=>x,utcThursdays:()=>P,utcTuesday:()=>w,utcTuesdays:()=>R,utcWednesday:()=>O,utcWednesdays:()=>A});var n=r(1547),i=r(1545);function o(e){return(0,n.timeInterval)((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek))}const a=o(0),s=o(1),u=o(2),c=o(3),l=o(4),f=o(5),p=o(6),d=a.range,h=s.range,m=u.range,g=c.range,y=l.range,v=f.range,b=p.range;function _(e){return(0,n.timeInterval)((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/i.durationWeek))}const S=_(0),E=_(1),w=_(2),O=_(3),x=_(4),T=_(5),k=_(6),C=S.range,I=E.range,R=w.range,A=O.range,P=x.range,D=T.range,N=k.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMonth:()=>i,timeMonths:()=>o,utcMonth:()=>a,utcMonths:()=>s});var n=r(1547);const i=(0,n.timeInterval)((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth())),o=i.range,a=(0,n.timeInterval)((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth())),s=a.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeYear:()=>i,timeYears:()=>o,utcYear:()=>a,utcYears:()=>s});var n=r(1547);const i=(0,n.timeInterval)((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));i.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,n.timeInterval)((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,r)=>{t.setFullYear(t.getFullYear()+r*e)})):null;const o=i.range,a=(0,n.timeInterval)((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));a.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,n.timeInterval)((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null;const s=a.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c,timeFormat:()=>i,timeParse:()=>o,utcFormat:()=>a,utcParse:()=>s});var n,i,o,a,s,u=r(1556);function c(e){return n=(0,u.default)(e),i=n.format,o=n.parse,a=n.utcFormat,s=n.utcParse,n}c({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(1552),i=r(1551),o=r(1554);function a(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function s(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function u(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function c(e){var t=e.dateTime,r=e.date,o=e.time,c=e.periods,f=e.days,p=e.shortDays,d=e.months,h=e.shortMonths,m=g(c),Y=y(c),me=g(f),ke=y(f),Ce=g(p),Ie=y(p),Re=g(d),Ae=y(d),Pe=g(h),De=y(h),Ne={a:function(e){return p[e.getDay()]},A:function(e){return f[e.getDay()]},b:function(e){return h[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:B,e:B,f:z,g:ee,G:re,H:F,I:U,j:H,L:q,m:W,M:V,p:function(e){return c[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:xe,s:Te,S:G,u:$,U:K,V:Q,w:X,W:J,x:null,X:null,y:Z,Y:te,Z:ne,"%":Oe},Me={a:function(e){return p[e.getUTCDay()]},A:function(e){return f[e.getUTCDay()]},b:function(e){return h[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:ie,e:ie,f:ce,g:_e,G:Ee,H:oe,I:ae,j:se,L:ue,m:le,M:fe,p:function(e){return c[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:xe,s:Te,S:pe,u:de,U:he,V:ge,w:ye,W:ve,x:null,X:null,y:be,Y:Se,Z:we,"%":Oe},Le={a:function(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.w=Ie.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=me.exec(t.slice(r));return n?(e.w=ke.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.m=De.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=Re.exec(t.slice(r));return n?(e.m=Ae.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return Fe(e,t,r,n)},d:C,e:C,f:N,g:O,G:w,H:R,I:R,j:I,L:D,m:k,M:A,p:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.p=Y.get(n[0].toLowerCase()),r+n[0].length):-1},q:T,Q:L,s:j,S:P,u:b,U:_,V:S,w:v,W:E,x:function(e,t,n){return Fe(e,r,t,n)},X:function(e,t,r){return Fe(e,o,t,r)},y:O,Y:w,Z:x,"%":M};function je(e,t){return function(r){var n,i,o,a=[],s=-1,u=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=l[n=e.charAt(++s)])?n=e.charAt(++s):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function Be(e,t){return function(r){var o,c,l=u(1900,void 0,1);if(Fe(l,e,r+="",0)!=r.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(1e3*l.s+("L"in l?l.L:0));if(t&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+12*l.p),void 0===l.m&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(c=(o=s(u(l.y,0,1))).getUTCDay(),o=c>4||0===c?n.utcMonday.ceil(o):(0,n.utcMonday)(o),o=i.utcDay.offset(o,7*(l.V-1)),l.y=o.getUTCFullYear(),l.m=o.getUTCMonth(),l.d=o.getUTCDate()+(l.w+6)%7):(c=(o=a(u(l.y,0,1))).getDay(),o=c>4||0===c?n.timeMonday.ceil(o):(0,n.timeMonday)(o),o=i.timeDay.offset(o,7*(l.V-1)),l.y=o.getFullYear(),l.m=o.getMonth(),l.d=o.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),c="Z"in l?s(u(l.y,0,1)).getUTCDay():a(u(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+7*l.W-(c+5)%7:l.w+7*l.U-(c+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,s(l)):a(l)}}function Fe(e,t,r,n){for(var i,o,a=0,s=t.length,u=r.length;a<s;){if(n>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=Le[i in l?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ne.x=je(r,Ne),Ne.X=je(o,Ne),Ne.c=je(t,Ne),Me.x=je(r,Me),Me.X=je(o,Me),Me.c=je(t,Me),{format:function(e){var t=je(e+="",Ne);return t.toString=function(){return e},t},parse:function(e){var t=Be(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=je(e+="",Me);return t.toString=function(){return e},t},utcParse:function(e){var t=Be(e+="",!0);return t.toString=function(){return e},t}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,p=/^%/,d=/[\\^$*+?|[\]().{}]/g;function h(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function m(e){return e.replace(d,"\\$&")}function g(e){return new RegExp("^(?:"+e.map(m).join("|")+")","i")}function y(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function v(e,t,r){var n=f.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function b(e,t,r){var n=f.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function _(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function E(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function w(e,t,r){var n=f.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function O(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function x(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function T(e,t,r){var n=f.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function k(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function C(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function I(e,t,r){var n=f.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function R(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function A(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function P(e,t,r){var n=f.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function D(e,t,r){var n=f.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function N(e,t,r){var n=f.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function M(e,t,r){var n=p.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function L(e,t,r){var n=f.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function j(e,t,r){var n=f.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function B(e,t){return h(e.getDate(),t,2)}function F(e,t){return h(e.getHours(),t,2)}function U(e,t){return h(e.getHours()%12||12,t,2)}function H(e,t){return h(1+i.timeDay.count((0,o.timeYear)(e),e),t,3)}function q(e,t){return h(e.getMilliseconds(),t,3)}function z(e,t){return q(e,t)+"000"}function W(e,t){return h(e.getMonth()+1,t,2)}function V(e,t){return h(e.getMinutes(),t,2)}function G(e,t){return h(e.getSeconds(),t,2)}function $(e){var t=e.getDay();return 0===t?7:t}function K(e,t){return h(n.timeSunday.count((0,o.timeYear)(e)-1,e),t,2)}function Y(e){var t=e.getDay();return t>=4||0===t?(0,n.timeThursday)(e):n.timeThursday.ceil(e)}function Q(e,t){return e=Y(e),h(n.timeThursday.count((0,o.timeYear)(e),e)+(4===(0,o.timeYear)(e).getDay()),t,2)}function X(e){return e.getDay()}function J(e,t){return h(n.timeMonday.count((0,o.timeYear)(e)-1,e),t,2)}function Z(e,t){return h(e.getFullYear()%100,t,2)}function ee(e,t){return h((e=Y(e)).getFullYear()%100,t,2)}function te(e,t){return h(e.getFullYear()%1e4,t,4)}function re(e,t){var r=e.getDay();return h((e=r>=4||0===r?(0,n.timeThursday)(e):n.timeThursday.ceil(e)).getFullYear()%1e4,t,4)}function ne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+h(t/60|0,"0",2)+h(t%60,"0",2)}function ie(e,t){return h(e.getUTCDate(),t,2)}function oe(e,t){return h(e.getUTCHours(),t,2)}function ae(e,t){return h(e.getUTCHours()%12||12,t,2)}function se(e,t){return h(1+i.utcDay.count((0,o.utcYear)(e),e),t,3)}function ue(e,t){return h(e.getUTCMilliseconds(),t,3)}function ce(e,t){return ue(e,t)+"000"}function le(e,t){return h(e.getUTCMonth()+1,t,2)}function fe(e,t){return h(e.getUTCMinutes(),t,2)}function pe(e,t){return h(e.getUTCSeconds(),t,2)}function de(e){var t=e.getUTCDay();return 0===t?7:t}function he(e,t){return h(n.utcSunday.count((0,o.utcYear)(e)-1,e),t,2)}function me(e){var t=e.getUTCDay();return t>=4||0===t?(0,n.utcThursday)(e):n.utcThursday.ceil(e)}function ge(e,t){return e=me(e),h(n.utcThursday.count((0,o.utcYear)(e),e)+(4===(0,o.utcYear)(e).getUTCDay()),t,2)}function ye(e){return e.getUTCDay()}function ve(e,t){return h(n.utcMonday.count((0,o.utcYear)(e)-1,e),t,2)}function be(e,t){return h(e.getUTCFullYear()%100,t,2)}function _e(e,t){return h((e=me(e)).getUTCFullYear()%100,t,2)}function Se(e,t){return h(e.getUTCFullYear()%1e4,t,4)}function Ee(e,t){var r=e.getUTCDay();return h((e=r>=4||0===r?(0,n.utcThursday)(e):n.utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function we(){return"+0000"}function Oe(){return"%"}function xe(e){return+e}function Te(e){return Math.floor(+e/1e3)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1544),i=r(1554),o=r(1553),a=r(1552),s=r(1551),u=r(1550),c=r(1549),l=r(1548),f=r(1555),p=r(1543),d=r(1519);function h(){return d.initRange.apply((0,p.calendar)(n.utcTicks,n.utcTickInterval,i.utcYear,o.utcMonth,a.utcSunday,s.utcDay,u.utcHour,c.utcMinute,l.second,f.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}},(e,t,r)=>{"use strict";function n(e,t){let r,n;if(void 0===t)for(const t of e)null!=t&&(void 0===r?t>=t&&(r=n=t):(r>t&&(r=t),n<t&&(n=t)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===r?o>=o&&(r=n=o):(r>o&&(r=o),n<o&&(n=o)))}return[r,n]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1563),u=r(1560),c=r(1458),l=r(1499),f=r(1562);function p(e){return p="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},p(e)}function d(){return d=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},d.apply(this,arguments)}function h(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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(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){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S="rv-xy-plot__series rv-xy-plot__series--arc",E=["radius","angle"],w=b(b({},c.default.defaultProps),{},{center:{x:0,y:0},arcClassName:"",className:"",style:{},padAngle:0});function O(e){var t=e.radius,r=e.angle,n=e.angle0,i=-1*r+Math.PI/2,o=-1*n+Math.PI/2;return b(b({},e),{},{x:t*Math.cos(i),y:t*Math.sin(i),angle:i,angle0:o})}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e);var t,r,i,o=g(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=(t=o.call(this,e))._getAllScaleProps(e);return t.state={scaleProps:r},t}return t=c,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({scaleProps:this._getAllScaleProps(e)})}},{key:"_getAllScaleProps",value:function(e){var t=this._getDefaultScaleProps(e),r=(0,l.extractScalePropsFromProps)(e,E),n=(0,l.getMissingScaleProps)(b(b({},t),r),e.data,E);return b(b(b({},t),r),n)}},{key:"_getDefaultScaleProps",value:function(e){var t=e.innerWidth,r=e.innerHeight,n=Math.min(t/2,r/2);return{radiusRange:[0,n],_radiusValue:n,angleType:"literal"}}},{key:"render",value:function(){var e=this,t=this.props,r=t.arcClassName,i=t.animation,o=t.className,p=t.center,h=t.data,m=t.disableSeries,g=t.hideSeries,y=t.marginLeft,v=t.marginTop,_=t.padAngle,E=t.style;if(!h)return null;if(i){var w=h.map((function(e){return b({},e)}));return n.default.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},n.default.createElement(a.default,d({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS,data:w}),n.default.createElement(c,d({},this.props,{animation:null,disableSeries:!0,data:w}))),n.default.createElement(c,d({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var x=this.state.scaleProps,T=x.radiusDomain,k=(0,l.getAttributeFunctor)(x,"radius"),C=(0,l.getAttr0Functor)(x,"radius"),I=(0,l.getAttributeFunctor)(x,"angle"),R=(0,l.getAttr0Functor)(x,"angle"),A=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),P=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),D=this._getAttributeFunctor("opacity"),N=this._getAttributeFunctor("x"),M=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,f.getCombinedClassName)(S,o),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,opacity:g?0:1,pointerEvents:m?"none":"all",transform:"translate(".concat(y+N(p),",").concat(v+M(p),")")},h.map((function(t,i){var o={innerRadius:T[1]===T[0]?0:C(t),outerRadius:k(t),startAngle:R(t)||0,endAngle:I(t)},a=(0,s.default)().padAngle(_),u=t.style||{},c=t.className||"";return n.default.createElement("path",{key:"path-".concat(i),style:b(b({opacity:D&&D(t),stroke:P&&P(t),fill:A&&A(t)},E),u),onClick:function(r){return e._valueClickHandler(O(t),r)},onContextMenu:function(r){return e._valueRightClickHandler(O(t),r)},onMouseOver:function(r){return e._valueMouseOverHandler(O(t),r)},onMouseOut:function(r){return e._valueMouseOutHandler(O(t),r)},className:"".concat(S,"-path ").concat(r," ").concat(c),d:a(o)})})))}}])&&h(t.prototype,r),i&&h(t,i),c}(c.default);x.propTypes=b(b(b(b({},c.default.propTypes),(0,l.getScalePropTypesByAttribute)("radius")),(0,l.getScalePropTypesByAttribute)("angle")),{},{center:o().shape({x:o().number,y:o().number}),arcClassName:o().string,padAngle:o().oneOfType([o().func,o().number])}),x.defaultProps=w,x.displayName="ArcSeries";const T=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANIMATED_SERIES_PROPS:()=>h,getRadialDomain:()=>d,getSeriesChildren:()=>l,getSeriesPropsFromChildren:()=>p,getStackParams:()=>m,getStackedData:()=>f,isSeriesChild:()=>c});var n=r(270),i=r(1458),o=r(1561);function a(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?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return e.type.prototype instanceof i.default}function l(e){return n.default.Children.toArray(e).filter((function(e){return e&&c(e)}))}function f(e,t){var r=e.some((function(e){return e&&e.props.stack})),n={};return e.reduce((function(e,i){if(!i)return e.push(null),e;var o=i.type.displayName,a=i.props,c=a.data,l=a.cluster,f=void 0===l?"default":l,p=a.stack,d=function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.some((function(e){return e.radius&&e.angle}))}(e)?e.map((function(e){return s(s({},e),{},{x:e.radius*Math.cos(e.angle),y:e.radius*Math.sin(e.angle)})})):e}(c);if(!t||!d||!d.length||r&&!p)return e.push(d),e;var h="".concat(t,"0"),m="y"===t?"x":"y";return e.push(d.map((function(e){var r,i;n[f]||(n[f]={}),n[f][o]||(n[f][o]={});var a,c=n[f][o][e[m]];if(!c)return n[f][o][e[m]]=(u(a={},h,e[h]),u(a,t,e[t]),a),s({},e);var l=s(s({},e),{},(u(r={},h,c[t]),u(r,t,c[t]+e[t]-(e[h]||0)),r));return n[f][o][e[m]]=(u(i={},h,l[h]),u(i,t,l[t]),i),l}))),e}),[])}function p(e){var t=[],r=function(e){var t={};return e.filter(c).forEach((function(e){var r=e.type.displayName,n=e.props.cluster;t[r]||(t[r]={sameTypeTotal:0,sameTypeIndex:0,clusters:new Set}),t[r].clusters.add(n),t[r].sameTypeTotal++})),t}(e),n=0,i=o.DEFAULT_OPACITY;return e.forEach((function(e){var a;if(c(e)){var u=r[e.type.displayName],l=o.DISCRETE_COLOR_RANGE[n%o.DISCRETE_COLOR_RANGE.length];a=s(s({},u),{},{seriesIndex:n,_colorValue:l,_opacityValue:i}),u.sameTypeIndex++,n++,e.props.cluster&&(a.cluster=e.props.cluster,a.clusters=Array.from(u.clusters),a.sameTypeTotal=a.clusters.length,a.sameTypeIndex=a.clusters.indexOf(e.props.cluster))}t.push(a)})),t}function d(e){return e.reduce((function(e,t){return Math.max(t.radius,e)}),0)}var h=["xRange","xDomain","x","yRange","yDomain","y","colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","strokeRange","strokeDomain","stroke","fillRange","fillDomain","fill","width","height","marginLeft","marginTop","marginRight","marginBottom","data","angleDomain","angleRange","angle","radiusDomain","radiusRange","radius","innerRadiusDomain","innerRadiusRange","innerRadius"];function m(e){var t=e._stackBy,r=e.valuePosAttr,n=e.cluster,i=e.sameTypeTotal,o=void 0===i?1:i,a=e.sameTypeIndex,s=void 0===a?0:a;return t!==r||n||(o=1,s=0),{sameTypeTotal:o,sameTypeIndex:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUOUS_COLOR_RANGE:()=>o,DEFAULT_COLOR:()=>f,DEFAULT_OPACITY:()=>c,DEFAULT_SIZE:()=>l,DEFAULT_TICK_SIZE:()=>p,DISCRETE_COLOR_RANGE:()=>n,EXTENDED_DISCRETE_COLOR_RANGE:()=>i,OPACITY_RANGE:()=>s,OPACITY_TYPE:()=>u,SIZE_RANGE:()=>a});var n=["#12939A","#79C7E3","#1A3177","#FF9833","#EF5D28"],i=["#19CDD7","#DDB27C","#88572C","#FF991F","#F15C17","#223F9A","#DA70BF","#125C77","#4DC19C","#776E57","#12939A","#17B8BE","#F6D18A","#B7885E","#FFCB99","#F89570","#829AE3","#E79FD5","#1E96BE","#89DAC1","#B3AD9E"],o=["#EF5D28","#FF9833"],a=[1,10],s=[.1,1],u="literal",c=1,l=5,f=n[0],p=7},(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((function(e){return e&&"string"==typeof e})).join(" ")}r.r(t),r.d(t,{getCombinedClassName:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(1564),i=r(1565),o=r(1566);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function u(e){return e.startAngle}function c(e){return e.endAngle}function l(e){return e&&e.padAngle}function f(e,t,r,n,o,a,s){var u=e-r,c=t-n,l=(s?a:-a)/(0,i.sqrt)(u*u+c*c),f=l*c,p=-l*u,d=e+f,h=t+p,m=r+f,g=n+p,y=(d+m)/2,v=(h+g)/2,b=m-d,_=g-h,S=b*b+_*_,E=o-a,w=d*g-m*h,O=(_<0?-1:1)*(0,i.sqrt)((0,i.max)(0,E*E*S-w*w)),x=(w*_-b*O)/S,T=(-w*b-_*O)/S,k=(w*_+b*O)/S,C=(-w*b+_*O)/S,I=x-y,R=T-v,A=k-y,P=C-v;return I*I+R*R>A*A+P*P&&(x=k,T=C),{cx:x,cy:T,x01:-f,y01:-p,x11:x*(o/E-1),y11:T*(o/E-1)}}function p(){var e=a,t=s,r=(0,n.default)(0),p=null,d=u,h=c,m=l,g=null,y=(0,o.withPath)(v);function v(){var n,o,a=+e.apply(this,arguments),s=+t.apply(this,arguments),u=d.apply(this,arguments)-i.halfPi,c=h.apply(this,arguments)-i.halfPi,l=(0,i.abs)(c-u),v=c>u;if(g||(g=n=y()),s<a&&(o=s,s=a,a=o),s>i.epsilon)if(l>i.tau-i.epsilon)g.moveTo(s*(0,i.cos)(u),s*(0,i.sin)(u)),g.arc(0,0,s,u,c,!v),a>i.epsilon&&(g.moveTo(a*(0,i.cos)(c),a*(0,i.sin)(c)),g.arc(0,0,a,c,u,v));else{var b,_,S=u,E=c,w=u,O=c,x=l,T=l,k=m.apply(this,arguments)/2,C=k>i.epsilon&&(p?+p.apply(this,arguments):(0,i.sqrt)(a*a+s*s)),I=(0,i.min)((0,i.abs)(s-a)/2,+r.apply(this,arguments)),R=I,A=I;if(C>i.epsilon){var P=(0,i.asin)(C/a*(0,i.sin)(k)),D=(0,i.asin)(C/s*(0,i.sin)(k));(x-=2*P)>i.epsilon?(w+=P*=v?1:-1,O-=P):(x=0,w=O=(u+c)/2),(T-=2*D)>i.epsilon?(S+=D*=v?1:-1,E-=D):(T=0,S=E=(u+c)/2)}var N=s*(0,i.cos)(S),M=s*(0,i.sin)(S),L=a*(0,i.cos)(O),j=a*(0,i.sin)(O);if(I>i.epsilon){var B,F=s*(0,i.cos)(E),U=s*(0,i.sin)(E),H=a*(0,i.cos)(w),q=a*(0,i.sin)(w);if(l<i.pi)if(B=function(e,t,r,n,o,a,s,u){var c=r-e,l=n-t,f=s-o,p=u-a,d=p*c-f*l;if(!(d*d<i.epsilon))return[e+(d=(f*(t-a)-p*(e-o))/d)*c,t+d*l]}(N,M,H,q,F,U,L,j)){var z=N-B[0],W=M-B[1],V=F-B[0],G=U-B[1],$=1/(0,i.sin)((0,i.acos)((z*V+W*G)/((0,i.sqrt)(z*z+W*W)*(0,i.sqrt)(V*V+G*G)))/2),K=(0,i.sqrt)(B[0]*B[0]+B[1]*B[1]);R=(0,i.min)(I,(a-K)/($-1)),A=(0,i.min)(I,(s-K)/($+1))}else R=A=0}T>i.epsilon?A>i.epsilon?(b=f(H,q,N,M,s,A,v),_=f(F,U,L,j,s,A,v),g.moveTo(b.cx+b.x01,b.cy+b.y01),A<I?g.arc(b.cx,b.cy,A,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,A,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(b.y11,b.x11),!v),g.arc(0,0,s,(0,i.atan2)(b.cy+b.y11,b.cx+b.x11),(0,i.atan2)(_.cy+_.y11,_.cx+_.x11),!v),g.arc(_.cx,_.cy,A,(0,i.atan2)(_.y11,_.x11),(0,i.atan2)(_.y01,_.x01),!v))):(g.moveTo(N,M),g.arc(0,0,s,S,E,!v)):g.moveTo(N,M),a>i.epsilon&&x>i.epsilon?R>i.epsilon?(b=f(L,j,F,U,a,-R,v),_=f(N,M,H,q,a,-R,v),g.lineTo(b.cx+b.x01,b.cy+b.y01),R<I?g.arc(b.cx,b.cy,R,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,R,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(b.y11,b.x11),!v),g.arc(0,0,a,(0,i.atan2)(b.cy+b.y11,b.cx+b.x11),(0,i.atan2)(_.cy+_.y11,_.cx+_.x11),v),g.arc(_.cx,_.cy,R,(0,i.atan2)(_.y11,_.x11),(0,i.atan2)(_.y01,_.x01),!v))):g.arc(0,0,a,O,w,v):g.lineTo(L,j)}else g.moveTo(0,0);if(g.closePath(),n)return g=null,n+""||null}return v.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+d.apply(this,arguments)+ +h.apply(this,arguments))/2-i.pi/2;return[(0,i.cos)(n)*r,(0,i.sin)(n)*r]},v.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),v):e},v.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),v):t},v.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:(0,n.default)(+e),v):r},v.padRadius=function(e){return arguments.length?(p=null==e?null:"function"==typeof e?e:(0,n.default)(+e),v):p},v.startAngle=function(e){return arguments.length?(d="function"==typeof e?e:(0,n.default)(+e),v):d},v.endAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,n.default)(+e),v):h},v.padAngle=function(e){return arguments.length?(m="function"==typeof e?e:(0,n.default)(+e),v):m},v.context=function(e){return arguments.length?(g=null==e?null:e,v):g},v}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>n,acos:()=>h,asin:()=>m,atan2:()=>i,cos:()=>o,epsilon:()=>l,halfPi:()=>p,max:()=>a,min:()=>s,pi:()=>f,sin:()=>u,sqrt:()=>c,tau:()=>d});const n=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,u=Math.sin,c=Math.sqrt,l=1e-12,f=Math.PI,p=f/2,d=2*f;function h(e){return e>1?0:e<-1?f:Math.acos(e)}function m(e){return e>=1?p:e<=-1?-p:Math.asin(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{withPath:()=>i});var n=r(1567);function i(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new n.Path(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Path:()=>u,path:()=>c,pathRound:()=>l});const n=Math.PI,i=2*n,o=1e-6,a=i-o;function s(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class u{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?s:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return s;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,o){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,r,i,a){if(e=+e,t=+t,r=+r,i=+i,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,u=this._y1,c=r-e,l=i-t,f=s-e,p=u-t,d=f*f+p*p;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>o)if(Math.abs(p*c-l*f)>o&&a){let h=r-s,m=i-u,g=c*c+l*l,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(d),_=a*Math.tan((n-Math.acos((g+d-y)/(2*v*b)))/2),S=_/b,E=_/v;Math.abs(S-1)>o&&this._append`L${e+S*f},${t+S*p}`,this._append`A${a},${a},0,0,${+(p*h>f*m)},${this._x1=e+E*c},${this._y1=t+E*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,s,u,c){if(e=+e,t=+t,c=!!c,(r=+r)<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(s),f=r*Math.sin(s),p=e+l,d=t+f,h=1^c,m=c?s-u:u-s;null===this._x1?this._append`M${p},${d}`:(Math.abs(this._x1-p)>o||Math.abs(this._y1-d)>o)&&this._append`L${p},${d}`,r&&(m<0&&(m=m%i+i),m>a?this._append`A${r},${r},0,1,${h},${e-l},${t-f}A${r},${r},0,1,${h},${this._x1=p},${this._y1=d}`:m>o&&this._append`A${r},${r},0,${+(m>=n)},${h},${this._x1=e+r*Math.cos(u)},${this._y1=t+r*Math.sin(u)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function c(){return new u}function l(e=3){return new u(+e)}c.prototype=u.prototype},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(270),i=r(272),o=r.n(i),a=r(1570),s=r(1569),u=r(1469),c=r(1561),l=r(1560),f=r(1507),p=r(1562),d=r(1458);function h(e){return h="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},h(e)}function m(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=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},v.apply(this,arguments)}function b(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 _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(d,e);var t,r,i,o=S(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),o.apply(this,arguments)}return t=d,(r=[{key:"_renderArea",value:function(e,t,r,n,i,o){var u=a.default();return null!==i&&("string"==typeof i&&s[i]?u=u.curve(s[i]):"function"==typeof i&&(u=u.curve(i))),(u=(u=u.defined(o)).x(t).y0(r).y1(n))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.curve,o=e.data,a=e.marginLeft,s=e.marginTop,h=e.style;if(this.props.nullAccessor&&(0,f.warning)("nullAccessor has been renamed to getNull",!0),!o)return null;if(t)return n.default.createElement(u.default,v({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),n.default.createElement(d,v({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),b=this._getAttr0Functor("y"),_=this._getAttributeValue("stroke")||this._getAttributeValue("color"),S=this._getAttributeValue("fill")||this._getAttributeValue("color"),E=this._getAttributeValue("opacity"),w=Number.isFinite(E)?E:c.DEFAULT_OPACITY,O=this.props.nullAccessor||this.props.getNull,x=this._renderArea(o,m,b,y,i,O);return n.default.createElement("path",{d:x,className:(0,p.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(a,",").concat(s,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:w,stroke:_,fill:S},h)})}}])&&b(t.prototype,r),i&&b(t,i),d}(d.default);w.displayName="AreaSeries",w.propTypes=g(g({},d.default.propTypes),{},{getNull:o().func}),w.defaultProps=g(g({},d.default.defaultProps),{},{getNull:function(){return!0}});const O=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arc:()=>n.default,area:()=>i.default,areaRadial:()=>s.default,curveBasis:()=>k.default,curveBasisClosed:()=>x.default,curveBasisOpen:()=>T.default,curveBumpX:()=>C.bumpX,curveBumpY:()=>C.bumpY,curveBundle:()=>I.default,curveCardinal:()=>P.default,curveCardinalClosed:()=>R.default,curveCardinalOpen:()=>A.default,curveCatmullRom:()=>M.default,curveCatmullRomClosed:()=>D.default,curveCatmullRomOpen:()=>N.default,curveLinear:()=>j.default,curveLinearClosed:()=>L.default,curveMonotoneX:()=>B.monotoneX,curveMonotoneY:()=>B.monotoneY,curveNatural:()=>F.default,curveStep:()=>U.default,curveStepAfter:()=>U.stepAfter,curveStepBefore:()=>U.stepBefore,line:()=>o.default,lineRadial:()=>u.default,link:()=>l.link,linkHorizontal:()=>l.linkHorizontal,linkRadial:()=>l.linkRadial,linkVertical:()=>l.linkVertical,pie:()=>a.default,pointRadial:()=>c.default,radialArea:()=>s.default,radialLine:()=>u.default,stack:()=>H.default,stackOffsetDiverging:()=>z.default,stackOffsetExpand:()=>q.default,stackOffsetNone:()=>W.default,stackOffsetSilhouette:()=>V.default,stackOffsetWiggle:()=>G.default,stackOrderAppearance:()=>$.default,stackOrderAscending:()=>K.default,stackOrderDescending:()=>Y.default,stackOrderInsideOut:()=>Q.default,stackOrderNone:()=>X.default,stackOrderReverse:()=>J.default,symbol:()=>f.default,symbolAsterisk:()=>p.default,symbolCircle:()=>d.default,symbolCross:()=>h.default,symbolDiamond:()=>m.default,symbolDiamond2:()=>g.default,symbolPlus:()=>y.default,symbolSquare:()=>v.default,symbolSquare2:()=>b.default,symbolStar:()=>_.default,symbolTimes:()=>O.default,symbolTriangle:()=>S.default,symbolTriangle2:()=>E.default,symbolWye:()=>w.default,symbolX:()=>O.default,symbols:()=>f.symbolsFill,symbolsFill:()=>f.symbolsFill,symbolsStroke:()=>f.symbolsStroke});var n=r(1563),i=r(1570),o=r(1573),a=r(1575),s=r(1578),u=r(1580),c=r(1581),l=r(1582),f=r(1584),p=r(1585),d=r(1586),h=r(1587),m=r(1588),g=r(1589),y=r(1590),v=r(1591),b=r(1592),_=r(1593),S=r(1594),E=r(1595),w=r(1596),O=r(1597),x=r(1598),T=r(1601),k=r(1600),C=r(1583),I=r(1602),R=r(1603),A=r(1605),P=r(1604),D=r(1606),N=r(1608),M=r(1607),L=r(1609),j=r(1572),B=r(1610),F=r(1611),U=r(1612),H=r(1613),q=r(1616),z=r(1617),W=r(1614),V=r(1618),G=r(1619),$=r(1620),K=r(1621),Y=r(1622),Q=r(1623),X=r(1615),J=r(1624)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(1571),i=r(1564),o=r(1572),a=r(1573),s=r(1566),u=r(1574);function c(e,t,r){var c=null,l=(0,i.default)(!0),f=null,p=o.default,d=null,h=(0,s.withPath)(m);function m(i){var o,a,s,u,m,g=(i=(0,n.default)(i)).length,y=!1,v=new Array(g),b=new Array(g);for(null==f&&(d=p(m=h())),o=0;o<=g;++o){if(!(o<g&&l(u=i[o],o,i))===y)if(y=!y)a=o,d.areaStart(),d.lineStart();else{for(d.lineEnd(),d.lineStart(),s=o-1;s>=a;--s)d.point(v[s],b[s]);d.lineEnd(),d.areaEnd()}y&&(v[o]=+e(u,o,i),b[o]=+t(u,o,i),d.point(c?+c(u,o,i):v[o],r?+r(u,o,i):b[o]))}if(m)return d=null,m+""||null}function g(){return(0,a.default)().defined(l).curve(p).context(f)}return e="function"==typeof e?e:void 0===e?u.x:(0,i.default)(+e),t="function"==typeof t?t:void 0===t?(0,i.default)(0):(0,i.default)(+t),r="function"==typeof r?r:void 0===r?u.y:(0,i.default)(+r),m.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),c=null,m):e},m.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),m):e},m.x1=function(e){return arguments.length?(c=null==e?null:"function"==typeof e?e:(0,i.default)(+e),m):c},m.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),r=null,m):t},m.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),m):t},m.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,i.default)(+e),m):r},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(r)},m.lineX1=function(){return g().x(c).y(t)},m.defined=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(!!e),m):l},m.curve=function(e){return arguments.length?(p=e,null!=f&&(d=p(f)),m):p},m.context=function(e){return arguments.length?(null==e?f=d=null:d=p(f=e),m):f},m}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,slice:()=>n});var n=Array.prototype.slice;function i(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}},(e,t,r)=>{"use strict";function n(e){this._context=e}function i(e){return new n(e)}r.r(t),r.d(t,{default:()=>i}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(1571),i=r(1564),o=r(1572),a=r(1566),s=r(1574);function u(e,t){var r=(0,i.default)(!0),u=null,c=o.default,l=null,f=(0,a.withPath)(p);function p(i){var o,a,s,p=(i=(0,n.default)(i)).length,d=!1;for(null==u&&(l=c(s=f())),o=0;o<=p;++o)!(o<p&&r(a=i[o],o,i))===d&&((d=!d)?l.lineStart():l.lineEnd()),d&&l.point(+e(a,o,i),+t(a,o,i));if(s)return l=null,s+""||null}return e="function"==typeof e?e:void 0===e?s.x:(0,i.default)(e),t="function"==typeof t?t:void 0===t?s.y:(0,i.default)(t),p.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),p):e},p.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),p):t},p.defined=function(e){return arguments.length?(r="function"==typeof e?e:(0,i.default)(!!e),p):r},p.curve=function(e){return arguments.length?(c=e,null!=u&&(l=c(u)),p):c},p.context=function(e){return arguments.length?(null==e?u=l=null:l=c(u=e),p):u},p}},(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(1571),i=r(1564),o=r(1576),a=r(1577),s=r(1565);function u(){var e=a.default,t=o.default,r=null,u=(0,i.default)(0),c=(0,i.default)(s.tau),l=(0,i.default)(0);function f(i){var o,a,f,p,d,h=(i=(0,n.default)(i)).length,m=0,g=new Array(h),y=new Array(h),v=+u.apply(this,arguments),b=Math.min(s.tau,Math.max(-s.tau,c.apply(this,arguments)-v)),_=Math.min(Math.abs(b)/h,l.apply(this,arguments)),S=_*(b<0?-1:1);for(o=0;o<h;++o)(d=y[g[o]=o]=+e(i[o],o,i))>0&&(m+=d);for(null!=t?g.sort((function(e,r){return t(y[e],y[r])})):null!=r&&g.sort((function(e,t){return r(i[e],i[t])})),o=0,f=m?(b-h*S)/m:0;o<h;++o,v=p)a=g[o],p=v+((d=y[a])>0?d*f:0)+S,y[a]={data:i[a],index:o,value:d,startAngle:v,endAngle:p,padAngle:_};return y}return f.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),f):e},f.sortValues=function(e){return arguments.length?(t=e,r=null,f):t},f.sort=function(e){return arguments.length?(r=e,t=null,f):r},f.startAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),f):u},f.endAngle=function(e){return arguments.length?(c="function"==typeof e?e:(0,i.default)(+e),f):c},f.padAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(+e),f):l},f}},(e,t,r)=>{"use strict";function n(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1579),i=r(1570),o=r(1580);function a(){var e=(0,i.default)().curve(n.curveRadialLinear),t=e.curve,r=e.lineX0,a=e.lineX1,s=e.lineY0,u=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,o.lineRadial)(r())},delete e.lineX0,e.lineEndAngle=function(){return(0,o.lineRadial)(a())},delete e.lineX1,e.lineInnerRadius=function(){return(0,o.lineRadial)(s())},delete e.lineY0,e.lineOuterRadius=function(){return(0,o.lineRadial)(u())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,n.default)(e)):t()._curve},e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{curveRadialLinear:()=>n,default:()=>o});var n=o(r(1572).default);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,lineRadial:()=>o});var n=r(1579),i=r(1573);function o(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t((0,n.default)(e)):t()._curve},e}function a(){return o((0,i.default)().curve(n.curveRadialLinear))}},(e,t,r)=>{"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{link:()=>l,linkHorizontal:()=>f,linkRadial:()=>d,linkVertical:()=>p});var n=r(1571),i=r(1564),o=r(1583),a=r(1566),s=r(1574);function u(e){return e.source}function c(e){return e.target}function l(e){let t=u,r=c,o=s.x,l=s.y,f=null,p=null,d=(0,a.withPath)(h);function h(){let i;const a=n.slice.call(arguments),s=t.apply(this,a),u=r.apply(this,a);if(null==f&&(p=e(i=d())),p.lineStart(),a[0]=s,p.point(+o.apply(this,a),+l.apply(this,a)),a[0]=u,p.point(+o.apply(this,a),+l.apply(this,a)),p.lineEnd(),i)return p=null,i+""||null}return h.source=function(e){return arguments.length?(t=e,h):t},h.target=function(e){return arguments.length?(r=e,h):r},h.x=function(e){return arguments.length?(o="function"==typeof e?e:(0,i.default)(+e),h):o},h.y=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(+e),h):l},h.context=function(t){return arguments.length?(null==t?f=p=null:p=e(f=t),h):f},h}function f(){return l(o.bumpX)}function p(){return l(o.bumpY)}function d(){const e=l(o.bumpRadial);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bumpRadial:()=>u,bumpX:()=>a,bumpY:()=>s});var n=r(1581);class i{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class o{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0===this._point)this._point=1;else{const r=(0,n.default)(this._x0,this._y0),i=(0,n.default)(this._x0,this._y0=(this._y0+t)/2),o=(0,n.default)(e,this._y0),a=(0,n.default)(e,t);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...a)}this._x0=e,this._y0=t}}function a(e){return new i(e,!0)}function s(e){return new i(e,!1)}function u(e){return new o(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_,symbolsFill:()=>v,symbolsStroke:()=>b});var n=r(1564),i=r(1566),o=r(1585),a=r(1586),s=r(1587),u=r(1588),c=r(1589),l=r(1590),f=r(1591),p=r(1592),d=r(1593),h=r(1594),m=r(1595),g=r(1596),y=r(1597);const v=[a.default,s.default,u.default,f.default,d.default,h.default,g.default],b=[a.default,l.default,y.default,m.default,o.default,p.default,c.default];function _(e,t){let r=null,o=(0,i.withPath)(s);function s(){let n;if(r||(r=n=o()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return e="function"==typeof e?e:(0,n.default)(e||a.default),t="function"==typeof t?t:(0,n.default)(void 0===t?64:+t),s.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(t),s):e},s.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),s):t},s.context=function(e){return arguments.length?(r=null==e?null:e,s):r},s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1565);const i=(0,n.sqrt)(3),o={draw(e,t){const r=.59436*(0,n.sqrt)(t+(0,n.min)(t/28,.75)),o=r/2,a=o*i;e.moveTo(0,r),e.lineTo(0,-r),e.moveTo(-a,-o),e.lineTo(a,o),e.moveTo(-a,o),e.lineTo(a,-o)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1565);const i={draw(e,t){const r=(0,n.sqrt)(t/n.pi);e.moveTo(r,0),e.arc(0,0,r,0,n.tau)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1565);const i={draw(e,t){const r=(0,n.sqrt)(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1565);const i=(0,n.sqrt)(1/3),o=2*i,a={draw(e,t){const r=(0,n.sqrt)(t/o),a=r*i;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1565);const i={draw(e,t){const r=.62625*(0,n.sqrt)(t);e.moveTo(0,-r),e.lineTo(r,0),e.lineTo(0,r),e.lineTo(-r,0),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1565);const i={draw(e,t){const r=.87559*(0,n.sqrt)(t-(0,n.min)(t/7,2));e.moveTo(-r,0),e.lineTo(r,0),e.moveTo(0,r),e.lineTo(0,-r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1565);const i={draw(e,t){const r=(0,n.sqrt)(t),i=-r/2;e.rect(i,i,r,r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1565);const i={draw(e,t){const r=.4431*(0,n.sqrt)(t);e.moveTo(r,r),e.lineTo(r,-r),e.lineTo(-r,-r),e.lineTo(-r,r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(1565);const i=(0,n.sin)(n.pi/10)/(0,n.sin)(7*n.pi/10),o=(0,n.sin)(n.tau/10)*i,a=-(0,n.cos)(n.tau/10)*i,s={draw(e,t){const r=(0,n.sqrt)(.8908130915292852*t),i=o*r,s=a*r;e.moveTo(0,-r),e.lineTo(i,s);for(let t=1;t<5;++t){const o=n.tau*t/5,a=(0,n.cos)(o),u=(0,n.sin)(o);e.lineTo(u*r,-a*r),e.lineTo(a*i-u*s,u*i+a*s)}e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1565);const i=(0,n.sqrt)(3),o={draw(e,t){const r=-(0,n.sqrt)(t/(3*i));e.moveTo(0,2*r),e.lineTo(-i*r,-r),e.lineTo(i*r,-r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1565);const i=(0,n.sqrt)(3),o={draw(e,t){const r=.6824*(0,n.sqrt)(t),o=r/2,a=r*i/2;e.moveTo(0,-r),e.lineTo(a,o),e.lineTo(-a,o),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(1565);const i=-.5,o=(0,n.sqrt)(3)/2,a=1/(0,n.sqrt)(12),s=3*(a/2+1),u={draw(e,t){const r=(0,n.sqrt)(t/s),u=r/2,c=r*a,l=u,f=r*a+r,p=-l,d=f;e.moveTo(u,c),e.lineTo(l,f),e.lineTo(p,d),e.lineTo(i*u-o*c,o*u+i*c),e.lineTo(i*l-o*f,o*l+i*f),e.lineTo(i*p-o*d,o*p+i*d),e.lineTo(i*u+o*c,i*c-o*u),e.lineTo(i*l+o*f,i*f-o*l),e.lineTo(i*p+o*d,i*d-o*p),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1565);const i={draw(e,t){const r=.6189*(0,n.sqrt)(t-(0,n.min)(t/6,1.7));e.moveTo(-r,-r),e.lineTo(r,r),e.moveTo(-r,r),e.lineTo(r,-r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1599),i=r(1600);function o(e){this._context=e}function a(e){return new o(e)}o.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:(0,i.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function i(e){this._context=e}function o(e){return new i(e)}r.r(t),r.d(t,{Basis:()=>i,default:()=>o,point:()=>n}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:n(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1600);function i(e){this._context=e}function o(e){return new i(e)}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:(0,n.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1600);function i(e,t){this._basis=new n.Basis(e),this._beta=t}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,i=e[0],o=t[0],a=e[r]-i,s=t[r]-o,u=-1;++u<=r;)n=u/r,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+n*a),this._beta*t[u]+(1-this._beta)*(o+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const o=function e(t){function r(e){return 1===t?new n.Basis(e):new i(e,t)}return r.beta=function(t){return e(+t)},r}(.85)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CardinalClosed:()=>o,default:()=>a});var n=r(1599),i=r(1604);function o(e,t){this._context=e,this._k=(1-t)/6}o.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,i.point)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a=function e(t){function r(e){return new o(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";function n(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}r.r(t),r.d(t,{Cardinal:()=>i,default:()=>o,point:()=>n}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:n(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:n(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const o=function e(t){function r(e){return new i(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CardinalOpen:()=>i,default:()=>o});var n=r(1604);function i(e,t){this._context=e,this._k=(1-t)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,n.point)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const o=function e(t){function r(e){return new i(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(1603),i=r(1599),o=r(1607);function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:i.default,areaEnd:i.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,o.point)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const s=function e(t){function r(e){return t?new a(e,t):new n.CardinalClosed(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,point:()=>o});var n=r(1565),i=r(1604);function o(e,t,r){var i=e._x1,o=e._y1,a=e._x2,s=e._y2;if(e._l01_a>n.epsilon){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>n.epsilon){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/f,s=(s*l+e._y1*e._l23_2a-r*e._l12_2a)/f}e._context.bezierCurveTo(i,o,a,s,e._x2,e._y2)}function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:o(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const s=function e(t){function r(e){return t?new a(e,t):new i.Cardinal(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1605),i=r(1607);function o(e,t){this._context=e,this._alpha=t}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,i.point)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a=function e(t){function r(e){return t?new o(e,t):new n.CardinalOpen(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1599);function i(e){this._context=e}function o(e){return new i(e)}i.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}},(e,t,r)=>{"use strict";function n(e){return e<0?-1:1}function i(e,t,r){var i=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(i||o<0&&-0),s=(r-e._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o);return(n(a)+n(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function o(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function a(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function s(e){this._context=e}function u(e){this._context=new c(e)}function c(e){this._context=e}function l(e){return new s(e)}function f(e){return new u(e)}r.r(t),r.d(t,{monotoneX:()=>l,monotoneY:()=>f}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,a(this,o(this,r=i(this,e,t)),r);break;default:a(this,this._t0,r=i(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(u.prototype=Object.create(s.prototype)).point=function(e,t){s.prototype.point.call(this,t,e)},c.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}}},(e,t,r)=>{"use strict";function n(e){this._context=e}function i(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function o(e){return new n(e)}r.r(t),r.d(t,{default:()=>o}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=i(e),o=i(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],o[0][a],n[1][a],o[1][a],e[s],t[s]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}},(e,t,r)=>{"use strict";function n(e,t){this._context=e,this._t=t}function i(e){return new n(e,.5)}function o(e){return new n(e,0)}function a(e){return new n(e,1)}r.r(t),r.d(t,{default:()=>i,stepAfter:()=>a,stepBefore:()=>o}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(1571),i=r(1564),o=r(1614),a=r(1615);function s(e,t){return e[t]}function u(e){const t=[];return t.key=e,t}function c(){var e=(0,i.default)([]),t=a.default,r=o.default,c=s;function l(i){var o,a,s=Array.from(e.apply(this,arguments),u),l=s.length,f=-1;for(const e of i)for(o=0,++f;o<l;++o)(s[o][f]=[0,+c(e,s[o].key,f,i)]).data=e;for(o=0,a=(0,n.default)(t(s));o<l;++o)s[a[o]].index=o;return r(s,a),s}return l.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(Array.from(t)),l):e},l.value=function(e){return arguments.length?(c="function"==typeof e?e:(0,i.default)(+e),l):c},l.order=function(e){return arguments.length?(t=null==e?a.default:"function"==typeof e?e:(0,i.default)(Array.from(e)),l):t},l.offset=function(e){return arguments.length?(r=null==e?o.default:e,l):r},l}},(e,t,r)=>{"use strict";function n(e,t){if((i=e.length)>1)for(var r,n,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1614);function i(e,t){if((i=e.length)>0){for(var r,i,o,a=0,s=e[0].length;a<s;++a){for(o=r=0;r<i;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<i;++r)e[r][a][1]/=o}(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";function n(e,t){if((s=e.length)>0)for(var r,n,i,o,a,s,u=0,c=e[t[0]].length;u<c;++u)for(o=a=0,r=0;r<s;++r)(i=(n=e[t[r]][u])[1]-n[0])>0?(n[0]=o,n[1]=o+=i):i<0?(n[1]=a,n[0]=a+=i):(n[0]=0,n[1]=i)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1614);function i(e,t){if((r=e.length)>0){for(var r,i=0,o=e[t[0]],a=o.length;i<a;++i){for(var s=0,u=0;s<r;++s)u+=e[s][i][1]||0;o[i][1]+=o[i][0]=-u/2}(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1614);function i(e,t){if((o=e.length)>0&&(i=(r=e[t[0]]).length)>0){for(var r,i,o,a=0,s=1;s<i;++s){for(var u=0,c=0,l=0;u<o;++u){for(var f=e[t[u]],p=f[s][1]||0,d=(p-(f[s-1][1]||0))/2,h=0;h<u;++h){var m=e[t[h]];d+=(m[s][1]||0)-(m[s-1][1]||0)}c+=p,l+=d*p}r[s-1][1]+=r[s-1][0]=a,c&&(a-=l/c)}r[s-1][1]+=r[s-1][0]=a,(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1615);function i(e){var t=e.map(o);return(0,n.default)(e).sort((function(e,r){return t[e]-t[r]}))}function o(e){for(var t,r=-1,n=0,i=e.length,o=-1/0;++r<i;)(t=+e[r][1])>o&&(o=t,n=r);return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,sum:()=>o});var n=r(1615);function i(e){var t=e.map(o);return(0,n.default)(e).sort((function(e,r){return t[e]-t[r]}))}function o(e){for(var t,r=0,n=-1,i=e.length;++n<i;)(t=+e[n][1])&&(r+=t);return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1621);function i(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1620),i=r(1621);function o(e){var t,r,o=e.length,a=e.map(i.sum),s=(0,n.default)(e),u=0,c=0,l=[],f=[];for(t=0;t<o;++t)r=s[t],u<c?(u+=a[r],l.push(r)):(c+=a[r],f.push(r));return f.reverse().concat(l)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1615);function i(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(270),i=r(272),o=r.n(i),a=r(1562);function s(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l={style:o().shape({bottom:o().object,left:o().object,right:o().object,top:o().object}),marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},f="rv-xy-plot__borders-bottom",p="rv-xy-plot__borders",d="rv-xy-plot__borders-left",h="rv-xy-plot__borders-right",m="rv-xy-plot__borders-top";function g(e){var t=e.marginTop,r=e.marginBottom,i=e.marginLeft,o=e.marginRight,s=e.innerWidth,c=e.innerHeight,l=e.style,g=e.className,y=c+t+r,v=s+i+o;return n.default.createElement("g",{className:(0,a.getCombinedClassName)(p,g)},n.default.createElement("rect",{className:(0,a.getCombinedClassName)(f,"".concat(g,"-bottom")),style:u(u({},l.all),l.bottom),x:0,y:y-r,width:v,height:r}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(d,"".concat(g,"-left")),style:u(u({},l.all),l.left),x:0,y:0,width:i,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(h,"".concat(g,"-right")),style:u(u({},l.all),l.right),x:v-o,y:0,width:o,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(m,"".concat(g,"-top")),style:u(u({},l.all),l.top),x:0,y:0,width:v,height:t}))}g.displayName="Borders",g.defaultProps={className:"",style:{all:{},bottom:{},left:{},right:{},top:{}}},g.propTypes=l,g.requiresSVG=!0;const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(270),i=r(272),o=r.n(i),a=r(1562);function s(e){return s="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},s(e)}function u(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,r,i,o=l(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,i=[{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"render",value:function(){var e=this.props,t=e.innerHeight,r=e.innerWidth,i=e.marginBottom,o=e.marginLeft,s=e.marginRight,u=e.marginTop,c=e.className,l=e.includeMargin,f=e.style,p=e.text,d=(r+(l?o+s:0))*e.xPercent+(l?0:o),h=(t+(l?u+i:0))*e.yPercent+(l?u:0);return n.default.createElement("g",{transform:"translate(".concat(d,", ").concat(h,")"),className:(0,a.getCombinedClassName)("rv-xy-plot__axis__title",c)},n.default.createElement("text",f,p))}}])&&u(t.prototype,r),i&&u(t,i),s}(n.default.PureComponent);p.displayName="ChartLabel",p.propTypes={className:o().string,includeMargin:o().bool,style:o().object,text:o().string.isRequired,xPercent:o().number.isRequired,yPercent:o().number.isRequired},p.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};const d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(270),i=r(272),o=r.n(i),a=r(1499),s=r(1469),u=r(1628);function c(e){return c="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},c(e)}function l(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){return d=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},d.apply(this,arguments)}function h(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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e);var t,r,i,o=g(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop;return{left:e.marginLeft,top:n,width:t,height:r,style:{},tickTotal:(0,u.getTicksTotalFromSize)(Math.min(t,r))}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.centerX,i=e.centerY;if(t)return n.default.createElement(s.default,d({},this.props,{animatedProps:v}),n.default.createElement(c,d({},this.props,{animation:null})));var o=f(f({},this._getDefaultProps()),this.props),l=o.tickTotal,p=o.tickValues,h=o.marginLeft,m=o.marginTop,g=o.rRange,y=o.style,b=(0,a.getAttributeScale)(o,"x"),_=(0,a.getAttributeScale)(o,"y"),S=(0,u.getTickValues)(b,l,p);return n.default.createElement("g",{transform:"translate(".concat(b(r)+h,",").concat(_(i)+m,")"),className:"rv-xy-plot__circular-grid-lines"},S.reduce((function(e,t,r){var i=b(t);return g&&(i<g[0]||i>g[1])?e:e.concat([n.default.createElement("circle",d({cx:0,cy:0,r:i},{key:r,className:"rv-xy-plot__circular-grid-lines__line",style:y}))])}),[]))}}])&&h(t.prototype,r),i&&h(t,i),c}(n.PureComponent);b.displayName="CircularGridLines",b.propTypes={centerX:o().number,centerY:o().number,width:o().number,height:o().number,top:o().number,left:o().number,rRange:o().arrayOf(o().number),style:o().object,tickValues:o().arrayOf(o().number),tickTotal:o().number,animation:s.AnimationPropType,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},b.defaultProps={centerX:0,centerY:0},b.requiresSVG=!0;const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DIRECTION:()=>a,ORIENTATION:()=>o,default:()=>p,generateFit:()=>c,generatePoints:()=>l,getAxisAngle:()=>f,getTickValues:()=>u,getTicksTotalFromSize:()=>s});var n=r(1540),i=r(1509),o={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",VERTICAL:"vertical",HORIZONTAL:"horizontal"},a={VERTICAL:"vertical",HORIZONTAL:"horizontal"};function s(e){return e<700?e>300?10:5:20}function u(e,t,r){return r||(e.ticks?e.ticks(t):e.domain())}function c(e,t){if(e.x===t.x)return{left:e.y,right:t.y,slope:0,offset:e.x};var r=(e.y-t.y)/(e.x-t.x);return{left:e.x,right:t.x,slope:r,offset:e.y-r*e.x}}function l(e){var t=e.axisStart,r=e.axisEnd,o=e.numberOfTicks,a=e.axisDomain,s=c(t,r),u=s.left,l=s.right,f=s.slope,p=s.offset,d=(l-u)/o,h=(0,i.default)().domain([u,l]).range(a),m=t.x===r.x;return{slope:m?1/0:f,points:(0,n.default)(u,l+d,d).map((function(e){return m?{y:e,x:f*e+p,text:h(e)}:{x:e,y:f*e+p,text:h(e)}})).slice(0,o+1)}}function f(e,t){return e.x===t.x?t.y>e.y?Math.PI/2:3*Math.PI/2:Math.atan((t.y-e.y)/(t.x-e.x))}const p={DIRECTION:a,ORIENTATION:o,getTicksTotalFromSize:s,getTickValues:u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(270),i=r(272),o=r.n(i),a=r(1630),s=r(1643),u=r(1509),c=r(1458),l=r(1469),f=r(1560),p=r(1562),d=r(1561);function h(e){return h="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},h(e)}function m(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=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},v.apply(this,arguments)}function b(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 _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(c,e);var t,r,i,o=S(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.bandwidth,i=e.className,o=e.colorRange,h=e.data,m=e.innerHeight,y=e.innerWidth,b=e.marginLeft,_=e.marginTop,S=e.style;if(!h||!y||!m)return null;if(t)return n.default.createElement(l.default,v({},this.props,{animatedProps:f.ANIMATED_SERIES_PROPS}),n.default.createElement(c,v({},this.props,{animation:null})));var E=this._getAttributeFunctor("x"),w=this._getAttributeFunctor("y"),O=(0,a.default)().x((function(e){return E(e)})).y((function(e){return w(e)})).size([y,m]).bandwidth(r)(h),x=(0,s.default)(),T=function(e){return e.reduce((function(e,t){return{min:Math.min(e.min,t.value),max:Math.max(e.max,t.value)}}),{min:1/0,max:-1/0})}(O),k=T.min,C=T.max,I=(0,u.default)().domain([k,C]).range(o||d.CONTINUOUS_COLOR_RANGE);return n.default.createElement("g",{className:(0,p.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--contour",i),transform:"translate(".concat(b,",").concat(_,")")},O.map((function(e,t){return n.default.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-".concat(t),d:x(e),style:g({fill:I(e.value)},S)})})))}}])&&b(t.prototype,r),i&&b(t,i),c}(c.default);w.propTypes=g(g({},c.default.propTypes),{},{animation:o().bool,bandwidth:o().number,className:o().string,marginLeft:o().number,marginTop:o().number,style:o().object}),w.defaultProps=g(g({},c.default.defaultProps),{},{bandwidth:40,style:{}});const O=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(1641),i=r(1521),o=r(1642),a=r(1631),s=r(1632),u=r(1633);function c(e){return e[0]}function l(e){return e[1]}function f(){return 1}function p(){var e=c,t=l,r=f,p=960,d=500,h=20,m=2,g=3*h,y=p+2*g>>m,v=d+2*g>>m,b=(0,s.default)(20);function _(i){var o=new Float32Array(y*v),a=Math.pow(2,-m),s=-1;for(const n of i){var u=(e(n,++s,i)+g)*a,c=(t(n,s,i)+g)*a,l=+r(n,s,i);if(l&&u>=0&&u<y&&c>=0&&c<v){var f=Math.floor(u),p=Math.floor(c),d=u-f-.5,b=c-p-.5;o[f+p*y]+=(1-d)*(1-b)*l,o[f+1+p*y]+=d*(1-b)*l,o[f+1+(p+1)*y]+=d*b*l,o[f+(p+1)*y]+=(1-d)*b*l}}return(0,n.blur2)({data:o,width:y,height:v},h*a),o}function S(e){var t=_(e),r=b(t),n=Math.pow(2,2*m);return Array.isArray(r)||(r=(0,i.default)(Number.MIN_VALUE,(0,o.default)(t)/n,r)),(0,u.default)().size([y,v]).thresholds(r.map((e=>e*n)))(t).map(((e,t)=>(e.value=+r[t],E(e))))}function E(e){return e.coordinates.forEach(w),e}function w(e){e.forEach(O)}function O(e){e.forEach(x)}function x(e){e[0]=e[0]*Math.pow(2,m)-g,e[1]=e[1]*Math.pow(2,m)-g}function T(){return y=p+2*(g=3*h)>>m,v=d+2*g>>m,S}return S.contours=function(e){var t=_(e),r=(0,u.default)().size([y,v]),n=Math.pow(2,2*m),i=e=>{e=+e;var i=E(r.contour(t,e*n));return i.value=e,i};return Object.defineProperty(i,"max",{get:()=>(0,o.default)(t)/n}),i},S.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.default)(+t),S):e},S.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.default)(+e),S):t},S.weight=function(e){return arguments.length?(r="function"==typeof e?e:(0,s.default)(+e),S):r},S.size=function(e){if(!arguments.length)return[p,d];var t=+e[0],r=+e[1];if(!(t>=0&&r>=0))throw new Error("invalid size");return p=t,d=r,T()},S.cellSize=function(e){if(!arguments.length)return 1<<m;if(!((e=+e)>=1))throw new Error("invalid cell size");return m=Math.floor(Math.log(e)/Math.LN2),T()},S.thresholds=function(e){return arguments.length?(b="function"==typeof e?e:Array.isArray(e)?(0,s.default)(a.slice.call(e)):(0,s.default)(e),S):b},S.bandwidth=function(e){if(!arguments.length)return Math.sqrt(h*(h+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return h=(Math.sqrt(4*e*e+1)-1)/2,T()},S}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{slice:()=>n});var n=Array.prototype.slice},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>()=>e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1638),i=r(1558),o=r(1521),a=r(1640),s=r(1631),u=r(1634),c=r(1635),l=r(1632),f=r(1636),p=r(1637),d=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function h(){var e=1,t=1,r=n.default,h=E;function b(e){var t=r(e);if(Array.isArray(t))t=t.slice().sort(u.default);else{const r=(0,i.default)(e,m);for(t=(0,o.default)(...(0,a.default)(r[0],r[1],t),t);t[t.length-1]>=r[1];)t.pop();for(;t[1]<r[0];)t.shift()}return t.map((t=>_(e,t)))}function _(r,n){const i=null==n?NaN:+n;if(isNaN(i))throw new Error(`invalid value: ${n}`);var o=[],a=[];return function(r,n,i){var o,a,s,u,c,l,f=new Array,p=new Array;o=a=-1,u=g(r[0],n),d[u<<1].forEach(h);for(;++o<e-1;)s=u,u=g(r[o+1],n),d[s|u<<1].forEach(h);d[u|0].forEach(h);for(;++a<t-1;){for(o=-1,u=g(r[a*e+e],n),c=g(r[a*e],n),d[u<<1|c<<2].forEach(h);++o<e-1;)s=u,u=g(r[a*e+e+o+1],n),l=c,c=g(r[a*e+o+1],n),d[s|u<<1|c<<2|l<<3].forEach(h);d[u|c<<3].forEach(h)}o=-1,c=r[a*e]>=n,d[c<<2].forEach(h);for(;++o<e-1;)l=c,c=g(r[a*e+o+1],n),d[c<<2|l<<3].forEach(h);function h(e){var t,r,n=[e[0][0]+o,e[0][1]+a],s=[e[1][0]+o,e[1][1]+a],u=S(n),c=S(s);(t=p[u])?(r=f[c])?(delete p[t.end],delete f[r.start],t===r?(t.ring.push(s),i(t.ring)):f[t.start]=p[r.end]={start:t.start,end:r.end,ring:t.ring.concat(r.ring)}):(delete p[t.end],t.ring.push(s),p[t.end=c]=t):(t=f[c])?(r=p[u])?(delete f[t.start],delete p[r.end],t===r?(t.ring.push(s),i(t.ring)):f[r.start]=p[t.end]={start:r.start,end:t.end,ring:r.ring.concat(t.ring)}):(delete f[t.start],t.ring.unshift(n),f[t.start=u]=t):f[u]=p[c]={start:u,end:c,ring:[n,s]}}d[c<<3].forEach(h)}(r,i,(function(e){h(e,r,i),(0,c.default)(e)>0?o.push([e]):a.push(e)})),a.forEach((function(e){for(var t,r=0,n=o.length;r<n;++r)if(-1!==(0,f.default)((t=o[r])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:n,coordinates:o}}function S(t){return 2*t[0]+t[1]*(e+1)*4}function E(r,n,i){r.forEach((function(r){var o=r[0],a=r[1],s=0|o,u=0|a,c=y(n[u*e+s]);o>0&&o<e&&s===o&&(r[0]=v(o,y(n[u*e+s-1]),c,i)),a>0&&a<t&&u===a&&(r[1]=v(a,y(n[(u-1)*e+s]),c,i))}))}return b.contour=_,b.size=function(r){if(!arguments.length)return[e,t];var n=Math.floor(r[0]),i=Math.floor(r[1]);if(!(n>=0&&i>=0))throw new Error("invalid size");return e=n,t=i,b},b.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:Array.isArray(e)?(0,l.default)(s.slice.call(e)):(0,l.default)(e),b):r},b.smooth=function(e){return arguments.length?(h=e?E:p.default,b):h===E},b}function m(e){return isFinite(e)?e:NaN}function g(e,t){return null!=e&&+e>=t}function y(e){return null==e||isNaN(e=+e)?-1/0:e}function v(e,t,r,n){const i=n-t,o=r-t,a=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(a)?e:e+a-.5}},(e,t,r)=>{"use strict";function n(e,t){return e-t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){for(var t=0,r=e.length,n=e[r-1][1]*e[0][0]-e[r-1][0]*e[0][1];++t<r;)n+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return n}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){for(var r,n=-1,o=t.length;++n<o;)if(r=i(e,t[n]))return r;return 0}function i(e,t){for(var r=t[0],n=t[1],i=-1,a=0,s=e.length,u=s-1;a<s;u=a++){var c=e[a],l=c[0],f=c[1],p=e[u],d=p[0],h=p[1];if(o(c,p,t))return 0;f>n!=h>n&&r<(d-l)*(n-f)/(h-f)+l&&(i=-i)}return i}function o(e,t,r){var n,i,o,a;return function(e,t,r){return(t[0]-e[0])*(r[1]-e[1])==(r[0]-e[0])*(t[1]-e[1])}(e,t,r)&&(i=e[n=+(e[0]===t[0])],o=r[n],a=t[n],i<=o&&o<=a||a<=o&&o<=i)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1639);function i(e){return Math.max(1,Math.ceil(Math.log((0,n.default)(e))/Math.LN2)+1)}},(e,t,r)=>{"use strict";function n(e,t){let r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++r;else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(i=+i)>=i&&++r}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1521);function i(e,t,r){let i;for(;;){const o=(0,n.tickIncrement)(e,t,r);if(o===i||0===o||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),i=o}}},(e,t,r)=>{"use strict";function n(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let r=e.length;if(!((r=Math.floor(r))>=0))throw new RangeError("invalid length");if(!r||!t)return e;const n=c(t),i=e.slice();return n(e,i,0,r,1),n(i,e,0,r,1),n(e,i,0,r,1),e}r.r(t),r.d(t,{blur:()=>n,blur2:()=>i,blurImage:()=>o});const i=a(c),o=a((function(e){const t=c(e);return(e,r,n,i,o)=>{t(e,r,(n<<=2)+0,(i<<=2)+0,o<<=2),t(e,r,n+1,i+1,o),t(e,r,n+2,i+2,o),t(e,r,n+3,i+3,o)}}));function a(e){return function(t,r,n=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((n=+n)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=t;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!r&&!n)return t;const c=r&&e(r),l=n&&e(n),f=i.slice();return c&&l?(s(c,f,i,o,a),s(c,i,f,o,a),s(c,f,i,o,a),u(l,i,f,o,a),u(l,f,i,o,a),u(l,i,f,o,a)):c?(s(c,i,f,o,a),s(c,f,i,o,a),s(c,i,f,o,a)):l&&(u(l,i,f,o,a),u(l,f,i,o,a),u(l,i,f,o,a)),t}}function s(e,t,r,n,i){for(let o=0,a=n*i;o<a;)e(t,r,o,o+=n,1)}function u(e,t,r,n,i){for(let o=0,a=n*i;o<n;++o)e(t,r,o,o+a,n)}function c(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(r,n,i,o,a)=>{if(!((o-=a)>=i))return;let s=e*n[i];const u=a*e;for(let e=i,t=i+u;e<t;e+=a)s+=n[Math.min(o,e)];for(let e=i,c=o;e<=c;e+=a)s+=n[Math.min(o,e+u)],r[e]=s/t,s-=n[Math.max(i,e-u)]}}(e);const r=e-t,n=2*e+1;return(e,i,o,a,s)=>{if(!((a-=s)>=o))return;let u=t*i[o];const c=s*t,l=c+s;for(let e=o,t=o+c;e<t;e+=s)u+=i[Math.min(a,e)];for(let t=o,f=a;t<=f;t+=s)u+=i[Math.min(a,t+c)],e[t]=(u+r*(i[Math.max(o,t-l)]+i[Math.min(a,t+l)]))/n,u-=i[Math.max(o,t-c)]}}},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(1644),i=r(1645),o=r(1646),a=r(1650),s=r(1651),u=r(1652),c=r(1653),l=r(1654);function f(e,t){let r,f,p=3,d=4.5;function h(e){return e&&("function"==typeof d&&f.pointRadius(+d.apply(this,arguments)),(0,i.default)(e,r(f))),f.result()}return h.area=function(e){return(0,i.default)(e,r(o.default)),o.default.result()},h.measure=function(e){return(0,i.default)(e,r(c.default)),c.default.result()},h.bounds=function(e){return(0,i.default)(e,r(a.default)),a.default.result()},h.centroid=function(e){return(0,i.default)(e,r(s.default)),s.default.result()},h.projection=function(t){return arguments.length?(r=null==t?(e=null,n.default):(e=t).stream,h):e},h.context=function(e){return arguments.length?(f=null==e?(t=null,new l.default(p)):new u.default(t=e),"function"!=typeof d&&f.pointRadius(d),h):t},h.pointRadius=function(e){return arguments.length?(d="function"==typeof e?e:(f.pointRadius(+e),+e),h):d},h.digits=function(e){if(!arguments.length)return p;if(null==e)p=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);p=t}return null===t&&(f=new l.default(p)),h},h.projection(e).digits(p).context(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>e},(e,t,r)=>{"use strict";function n(e,t){e&&o.hasOwnProperty(e.type)&&o[e.type](e,t)}r.r(t),r.d(t,{default:()=>u});var i={Feature:function(e,t){n(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,i=-1,o=r.length;++i<o;)n(r[i].geometry,t)}},o={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)a(r[n],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)s(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,i=-1,o=r.length;++i<o;)n(r[i],t)}};function a(e,t,r){var n,i=-1,o=e.length-r;for(t.lineStart();++i<o;)n=e[i],t.point(n[0],n[1],n[2]);t.lineEnd()}function s(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)a(e[r],t,1);t.polygonEnd()}function u(e,t){e&&i.hasOwnProperty(e.type)?i[e.type](e,t):n(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n,i,o,a,s=r(1649),u=r(1647),c=r(1648),l=new s.Adder,f=new s.Adder,p={point:c.default,lineStart:c.default,lineEnd:c.default,polygonStart:function(){p.lineStart=d,p.lineEnd=g},polygonEnd:function(){p.lineStart=p.lineEnd=p.point=c.default,l.add((0,u.abs)(f)),f=new s.Adder},result:function(){var e=l/2;return l=new s.Adder,e}};function d(){p.point=h}function h(e,t){p.point=m,n=o=e,i=a=t}function m(e,t){f.add(a*e-o*t),o=e,a=t}function g(){m(n,i)}const y=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>f,acos:()=>x,asin:()=>T,atan:()=>p,atan2:()=>d,ceil:()=>m,cos:()=>h,degrees:()=>c,epsilon:()=>n,epsilon2:()=>i,exp:()=>g,floor:()=>y,halfPi:()=>a,haversin:()=>k,hypot:()=>v,log:()=>b,pi:()=>o,pow:()=>_,quarterPi:()=>s,radians:()=>l,sign:()=>E,sin:()=>S,sqrt:()=>w,tan:()=>O,tau:()=>u});var n=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,u=2*o,c=180/o,l=o/180,f=Math.abs,p=Math.atan,d=Math.atan2,h=Math.cos,m=Math.ceil,g=Math.exp,y=Math.floor,v=Math.hypot,b=Math.log,_=Math.pow,S=Math.sin,E=Math.sign||function(e){return e>0?1:e<0?-1:0},w=Math.sqrt,O=Math.tan;function x(e){return e>1?0:e<-1?o:Math.acos(e)}function T(e){return e>1?a:e<-1?-a:Math.asin(e)}function k(e){return(e=S(e/2))*e}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Adder:()=>n,fcumsum:()=>o,fsum:()=>i});class n{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let r=0;for(let n=0;n<this._n&&n<32;n++){const i=t[n],o=e+i,a=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);a&&(t[r++]=a),e=o}return t[r]=e,this._n=r+1,this}valueOf(){const e=this._partials;let t,r,n,i=this._n,o=0;if(i>0){for(o=e[--i];i>0&&(t=o,r=e[--i],o=t+r,n=r-(o-t),!n););i>0&&(n<0&&e[i-1]<0||n>0&&e[i-1]>0)&&(r=2*n,t=o+r,r==t-o&&(o=t))}return o}}function i(e,t){const r=new n;if(void 0===t)for(let t of e)(t=+t)&&r.add(t);else{let n=-1;for(let i of e)(i=+t(i,++n,e))&&r.add(i)}return+r}function o(e,t){const r=new n;let i=-1;return Float64Array.from(e,void 0===t?e=>r.add(+e||0):n=>r.add(+t(n,++i,e)||0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(1648),i=1/0,o=i,a=-i,s=a;const u={point:function(e,t){e<i&&(i=e);e>a&&(a=e);t<o&&(o=t);t>s&&(s=t)},lineStart:n.default,lineEnd:n.default,polygonStart:n.default,polygonEnd:n.default,result:function(){var e=[[i,o],[a,s]];return a=s=-(o=i=1/0),e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n,i,o,a,s=r(1647),u=0,c=0,l=0,f=0,p=0,d=0,h=0,m=0,g=0,y={point:v,lineStart:b,lineEnd:E,polygonStart:function(){y.lineStart=w,y.lineEnd=O},polygonEnd:function(){y.point=v,y.lineStart=b,y.lineEnd=E},result:function(){var e=g?[h/g,m/g]:d?[f/d,p/d]:l?[u/l,c/l]:[NaN,NaN];return u=c=l=f=p=d=h=m=g=0,e}};function v(e,t){u+=e,c+=t,++l}function b(){y.point=_}function _(e,t){y.point=S,v(o=e,a=t)}function S(e,t){var r=e-o,n=t-a,i=(0,s.sqrt)(r*r+n*n);f+=i*(o+e)/2,p+=i*(a+t)/2,d+=i,v(o=e,a=t)}function E(){y.point=v}function w(){y.point=x}function O(){T(n,i)}function x(e,t){y.point=T,v(n=o=e,i=a=t)}function T(e,t){var r=e-o,n=t-a,i=(0,s.sqrt)(r*r+n*n);f+=i*(o+e)/2,p+=i*(a+t)/2,d+=i,h+=(i=a*e-o*t)*(o+e),m+=i*(a+t),g+=3*i,v(o=e,a=t)}const k=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1647),i=r(1648);function o(e){this._context=e}o.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,n.tau)}},result:i.default}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n,i,o,a,s,u=r(1649),c=r(1647),l=r(1648),f=new u.Adder,p={point:l.default,lineStart:function(){p.point=d},lineEnd:function(){n&&h(i,o),p.point=l.default},polygonStart:function(){n=!0},polygonEnd:function(){n=null},result:function(){var e=+f;return f=new u.Adder,e}};function d(e,t){p.point=h,i=a=e,o=s=t}function h(e,t){a-=e,s-=t,f.add((0,c.sqrt)(a*a+s*s)),a=e,s=t}const m=p},(e,t,r)=>{"use strict";let n,i,o,a;r.r(t),r.d(t,{default:()=>s});class s{constructor(e){this._append=null==e?u:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return u;if(t!==n){const e=10**t;n=t,i=function(t){let r=1;this._+=t[0];for(const n=t.length;r<n;++r)this._+=Math.round(arguments[r]*e)/e+t[r]}}return i}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==o||this._append!==i){const e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,o=e,i=this._append,a=this._,this._=t}this._+=a}}result(){const e=this._;return this._="",e.length?e:null}}function u(e){let t=1;this._+=e[0];for(const r=e.length;t<r;++t)this._+=arguments[t]+e[t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(270),i=r(272),o=r.n(i),a=r(1508),s=r(1499),u=r(1562);function c(e){return c="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},c(e)}function l(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e){var t=b(e);if(t)return{title:"x",value:(0,a.transformValueToString)(t.x)}}function v(e){return e.map((function(e,t){if(e)return{value:e.y,title:t}}))}function b(e){return(e||[]).find((function(e){return Boolean(e)}))}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,r,i,a=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,i=[{key:"defaultProps",get:function(){return{titleFormat:y,itemsFormat:v,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:o().string,values:o().arrayOf(o().oneOfType([o().number,o().string,o().object,o().bool])),series:o().object,innerWidth:o().number,innerHeight:o().number,marginLeft:o().number,marginTop:o().number,orientation:o().oneOf(["left","right"]),itemsFormat:o().func,titleFormat:o().func,style:o().shape({line:o().object,title:o().object,box:o().object})}}}],(r=[{key:"_renderCrosshairItems",value:function(){var e=this.props,t=e.values,r=(0,e.itemsFormat)(t);return r?r.filter((function(e){return e})).map((function(e,t){return n.default.createElement("div",{className:"rv-crosshair__item",key:"item".concat(t)},n.default.createElement("span",{className:"rv-crosshair__item__title"},e.title),": ",n.default.createElement("span",{className:"rv-crosshair__item__value"},e.value))})):null}},{key:"_renderCrosshairTitle",value:function(){var e=this.props,t=e.values,r=e.titleFormat,i=e.style,o=r(t);return o?n.default.createElement("div",{className:"rv-crosshair__title",key:"title",style:i.title},n.default.createElement("span",{className:"rv-crosshair__title__title"},o.title),": ",n.default.createElement("span",{className:"rv-crosshair__title__value"},o.value)):null}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,i=e.values,o=e.marginTop,a=e.marginLeft,c=e.innerWidth,l=e.innerHeight,p=e.style,d=b(i);if(!d)return null;var h=(0,s.getAttributeFunctor)(this.props,"x")(d),m=this.props.orientation,g=a+h,y=o,v="rv-crosshair__inner rv-crosshair__inner--".concat(void 0===m?h>c/2?"left":"right":m);return n.default.createElement("div",{className:(0,u.getCombinedClassName)("rv-crosshair",r),style:{left:"".concat(g,"px"),top:"".concat(y,"px")}},n.default.createElement("div",{className:"rv-crosshair__line",style:f({height:"".concat(l,"px")},p.line)}),n.default.createElement("div",{className:v},t||n.default.createElement("div",{className:"rv-crosshair__inner__content",style:p.box},n.default.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems()))))}}])&&d(t.prototype,r),i&&d(t,i),c}(n.PureComponent);_.displayName="Crosshair";const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(270),i=r(272),o=r.n(i),a=r(1458),s=r(1469),u=r(1560),c=r(1562);function l(e){return l="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},l(e)}function f(){return f=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},f.apply(this,arguments)}function p(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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(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 y(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){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S={stroke:"blue",fill:"blue"};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;switch(e){case"diamond":return n.default.createElement("polygon",{style:r,points:"0 0 ".concat(t/2," ").concat(t/2," 0 ").concat(t," ").concat(-t/2," ").concat(t/2," 0 0")});case"star":var i=b(new Array(5)).map((function(e,r){var n=r/5*Math.PI*2,i=n+Math.PI/10,o=n-Math.PI/10,a=t/2.61;return"\n        ".concat(Math.cos(o)*t," ").concat(Math.sin(o)*t,"\n        ").concat(Math.cos(i)*a," ").concat(Math.sin(i)*a,"\n      ")})).join(" ");return n.default.createElement("polygon",{points:i,x:"0",y:"0",height:t,width:t,style:r});case"square":return n.default.createElement("rect",{x:"".concat(-t/2),y:"".concat(-t/2),height:t,width:t,style:r});default:return n.default.createElement("circle",{cx:"0",cy:"0",r:t/2,style:r})}}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,r,i,o=h(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.customComponent,l=t.data,p=t.innerHeight,d=t.innerWidth,h=t.marginLeft,m=t.marginTop,g=t.style,v=t.size;if(!l||!d||!p)return null;if(r)return n.default.createElement(s.default,f({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(a,f({},this.props,{animation:!1})));var b=this._getAttributeFunctor("x"),_=this._getAttributeFunctor("y"),S=l.map((function(t,r){var i={x:b(t),y:_(t)},a=function(e){var t=e.customComponent,r=e.defaultType,n=e.positionInPixels,i=e.positionFunctions,o=e.style,a=e.propsSize,s=t.size,u=y(y({},o),t.style||{}),c=t.customComponent;return c||"string"!=typeof r?c?"string"==typeof c?E(c||r,s,u):c(t,n,u,i):r(t,n,u,i):E(r,s||a,u)}({customComponent:t,positionInPixels:i,defaultType:o,positionFunctions:{x:b,y:_},style:g,propsSize:v});return n.default.createElement("g",{className:"rv-xy-plot__series--custom-svg",key:"rv-xy-plot__series--custom-svg-".concat(r),transform:"translate(".concat(i.x,",").concat(i.y,")"),onMouseEnter:function(r){return e._valueMouseOverHandler(t,r)},onMouseLeave:function(r){return e._valueMouseOutHandler(t,r)}},a)}));return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--custom-svg-wrapper",i),transform:"translate(".concat(h,",").concat(m,")")},S)}}])&&p(t.prototype,r),i&&p(t,i),a}(a.default);w.propTypes={animation:o().bool,className:o().string,customComponent:o().oneOfType([o().string,o().func]),data:o().arrayOf(o().shape({x:o().oneOfType([o().string,o().number]).isRequired,y:o().oneOfType([o().string,o().number]).isRequired})).isRequired,marginLeft:o().number,marginTop:o().number,style:o().object,size:o().number,onValueMouseOver:o().func,onValueMouseOut:o().func},w.defaultProps=y(y({},a.default.defaultProps),{},{animation:!1,customComponent:"circle",style:{},size:2});const O=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(270),i=r(1526),o=r(272),a=r.n(o),s=r(1458),u=r(1658),c=r(1469),l=r(1562);function f(e){return f="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},f(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(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(){return m=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},m.apply(this,arguments)}function g(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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(a,e);var t,r,i,o=v(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.marginLeft,o=e.marginTop,s=e.axisStart,f=e.axisEnd,p=e.axisDomain,h=e.numberOfTicks,g=e.tickValue,y=e.tickSize,v=e.style;if(t)return n.default.createElement(c.default,m({},this.props,{animatedProps:_}),n.default.createElement(a,m({},this.props,{animation:null})));var b=this._getAttributeFunctor("x"),S=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-manipulable-axis rv-xy-plot__axis",r),transform:"translate(".concat(i,",").concat(o,")")},n.default.createElement("line",m({},d({x1:b({x:s.x}),x2:b({x:f.x}),y1:S({y:s.y}),y2:S({y:f.y})},v.line),{className:"rv-xy-plot__axis__line"})),n.default.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},(0,u.default)({axisDomain:p,axisEnd:{x:b(f),y:S(f)},axisStart:{x:b(s),y:S(s)},numberOfTicks:h,tickValue:g,tickSize:y,style:v})))}}])&&g(t.prototype,r),i&&g(t,i),a}(s.default),E=(0,i.format)(".2r");S.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return E(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},S.propTypes=d(d({},s.default.propTypes),{},{axisDomain:a().arrayOf(a().number).isRequired,axisEnd:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,axisStart:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,className:a().string,numberOfTicks:a().number,tickValue:a().func,tickSize:a().number,style:a().shape({line:a().object,ticks:a().object,text:a().object})}),S.displayName="DecorativeAxis";const w=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(270),i=r(1628);function o(){return 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},o.apply(this,arguments)}function a(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?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=e.axisDomain,r=e.numberOfTicks,a=e.axisStart,u=e.axisEnd,c=e.tickValue,l=e.tickSize,f=e.style,p=(0,i.generatePoints)({axisStart:a,axisEnd:u,numberOfTicks:r,axisDomain:t}).points,d=(0,i.getAxisAngle)(a,u)+Math.PI/2;return p.map((function(e,t){var r=s({x1:0,y1:0,x2:l*Math.cos(d),y2:l*Math.sin(d)},f.ticks),i=s({x:l*Math.cos(d),y:l*Math.sin(d),textAnchor:"start"},f.text);return n.default.createElement("g",{key:t,transform:"translate(".concat(e.x,", ").concat(e.y,")"),className:"rv-xy-plot__axis__tick"},n.default.createElement("line",o({},r,{className:"rv-xy-plot__axis__tick__line"})),n.default.createElement("text",o({},i,{className:"rv-xy-plot__axis__tick__text"}),c(e.text)))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(270),i=r(272),o=r.n(i),a=r(1562);function s(e){var t=e.className;return n.default.createElement("defs",{className:(0,a.getCombinedClassName)("rv-gradient-defs",t)},e.children)}s.displayName="GradientDefs",s.requiresSVG=!0,s.propTypes={className:o().string},s.defaultProps={className:""};const u=s},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(270),i=r(272),o=r.n(i),a=r(1499),s=r(1562),u=r(1469),c=r(1628);function l(e){return l="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},l(e)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=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},h.apply(this,arguments)}function m(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 g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=c.DIRECTION.VERTICAL,_=c.DIRECTION.HORIZONTAL,S={direction:o().oneOf([b,_]),attr:o().string.isRequired,width:o().number,height:o().number,top:o().number,left:o().number,style:o().object,tickValues:o().arrayOf(o().oneOfType([o().number,o().string])),tickTotal:o().number,animation:u.AnimationPropType,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},E={direction:b},w=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(l,e);var t,r,i,o=y(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.apply(this,arguments)}return t=l,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop,i=e.marginLeft,o=e.direction;return{left:i,top:n,width:t,height:r,tickTotal:(0,c.getTicksTotalFromSize)(o===b?t:r)}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className;if(t)return n.default.createElement(u.default,h({},this.props,{animatedProps:w}),n.default.createElement(l,h({},this.props,{animation:null})));var i=p(p({},this._getDefaultProps()),this.props),o=i.attr,f=i.direction,m=i.width,g=i.height,y=i.style,v=i.tickTotal,_=i.tickValues,S=i.top,E=i.left,O=f===b,x=O?"y":"x",T=O?"x":"y",k=O?g:m,C=(0,a.getAttributeScale)(i,o),I=(0,c.getTickValues)(C,v,_);return n.default.createElement("g",{transform:"translate(".concat(E,",").concat(S,")"),className:(0,s.getCombinedClassName)("rv-xy-plot__grid-lines",r)},I.map((function(e,t){var r,i=C(e),o=(d(r={},"".concat(T,"1"),i),d(r,"".concat(T,"2"),i),d(r,"".concat(x,"1"),0),d(r,"".concat(x,"2"),k),r);return n.default.createElement("line",h({},o,{key:t,className:"rv-xy-plot__grid-lines__line",style:y}))})))}}])&&m(t.prototype,r),i&&m(t,i),l}(n.PureComponent);O.displayName="GridLines",O.defaultProps=E,O.propTypes=S,O.requiresSVG=!0;const x=O},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(270),i=r(1469),o=r(1560),a=r(1562),s=r(1458);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},u(e)}function c(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return p=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},p.apply(this,arguments)}function d(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,r,s,u=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return t=c,s=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e||"y"===e}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.className,u=t.data,f=t.marginLeft,d=t.marginTop,h=t.style;if(!u)return null;if(r)return n.default.createElement(i.default,p({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(c,p({},this.props,{animation:null})));var m=l({rectStyle:{}},h).rectStyle,g=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),v=this._getAttributeFunctor("opacity"),b=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),_=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),S=this._getScaleDistance("x"),E=this._getScaleDistance("y");return n.default.createElement("g",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--heatmap",s),transform:"translate(".concat(f,",").concat(d,")")},u.map((function(t,r){var i=l(l({style:l({stroke:_&&_(t),fill:b&&b(t),opacity:v&&v(t)},h)},m),{},{x:g(t)-S/2,y:y(t)-E/2,width:S,height:E,onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}});return n.default.createElement("rect",p({key:r},i))})))}}])&&d(t.prototype,r),s&&d(t,s),c}(s.default);y.propTypes=l({},s.default.propTypes),y.displayName="HeatmapSeries";const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1663),u=r(1509),c=r(1560),l=r(1562),f=r(1561),p=r(1458);function d(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return g="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},g(e)}function y(){return y=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},y.apply(this,arguments)}function v(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 b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(f,e);var t,r,i,o=_(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o.apply(this,arguments)}return t=f,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.colorRange,p=t.data,d=t.innerHeight,h=t.innerWidth,m=t.marginLeft,g=t.marginTop,v=t.radius,b=t.sizeHexagonsWithCount,_=t.style,S=t.xOffset,w=t.yOffset;if(!p)return null;if(r)return n.default.createElement(a.default,y({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS}),n.default.createElement(f,y({},this.props,{animation:null})));var O=this._getAttributeFunctor("x"),x=this._getAttributeFunctor("y"),T=(0,s.hexbin)().x((function(e){return O(e)+S})).y((function(e){return x(e)+w})).radius(v).size([h,d]),k=T.hexagon(),C=T(p),I=function(e,t){var r=e.countDomain;return r||[0,Math.max.apply(Math,E(t.map((function(e){return e.length}))))]}(this.props,C),R=(0,u.default)().domain(I).range(o),A=(0,u.default)().domain(I).range([0,v]);return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--hexbin",i),transform:"translate(".concat(m,",").concat(g,")")},C.map((function(t,r){var i={style:_,d:b?T.hexagon(A(t.length)):k,fill:R(t.length),transform:"translate(".concat(t.x,", ").concat(t.y,")"),onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}};return n.default.createElement("path",y({key:String(r)},i))})))}}])&&v(t.prototype,r),i&&v(t,i),f}(p.default);O.propTypes=h(h({},p.default.propTypes),{},{radius:o().number}),O.defaultProps={radius:20,colorRange:f.CONTINUOUS_COLOR_RANGE,xOffset:0,yOffset:0},O.displayName="HexbinSeries";const x=O},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hexbin:()=>n.default});var n=r(1664)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=Math.PI/3,i=[0,n,2*n,3*n,4*n,5*n];function o(e){return e[0]}function a(e){return e[1]}function s(){var e,t,r,s=0,u=0,c=1,l=1,f=o,p=a;function d(e){var n,i={},o=[],a=e.length;for(n=0;n<a;++n)if(!isNaN(u=+f.call(null,s=e[n],n,e))&&!isNaN(c=+p.call(null,s,n,e))){var s,u,c,l=Math.round(c/=r),d=Math.round(u=u/t-(1&l)/2),h=c-l;if(3*Math.abs(h)>1){var m=u-d,g=d+(u<d?-1:1)/2,y=l+(c<l?-1:1),v=u-g,b=c-y;m*m+h*h>v*v+b*b&&(d=g+(1&l?1:-1)/2,l=y)}var _=d+"-"+l,S=i[_];S?S.push(s):(o.push(S=i[_]=[s]),S.x=(d+(1&l)/2)*t,S.y=l*r)}return o}function h(e){var t=0,r=0;return i.map((function(n){var i=Math.sin(n)*e,o=-Math.cos(n)*e,a=i-t,s=o-r;return t=i,r=o,[a,s]}))}return d.hexagon=function(t){return"m"+h(null==t?e:+t).join("l")+"z"},d.centers=function(){for(var n=[],i=Math.round(u/r),o=Math.round(s/t),a=i*r;a<l+e;a+=r,++i)for(var f=o*t+(1&i)*t/2;f<c+t/2;f+=t)n.push([f,a]);return n},d.mesh=function(){var t=h(e).slice(0,4).join("l");return d.centers().map((function(e){return"M"+e+"m"+t})).join("")},d.x=function(e){return arguments.length?(f=e,d):f},d.y=function(e){return arguments.length?(p=e,d):p},d.radius=function(i){return arguments.length?(t=2*(e=+i)*Math.sin(n),r=1.5*e,d):e},d.size=function(e){return arguments.length?(s=u=0,c=+e[0],l=+e[1],d):[c-s,l-u]},d.extent=function(e){return arguments.length?(s=+e[0][0],u=+e[0][1],c=+e[1][0],l=+e[1][1],d):[[s,u],[c,l]]},d.radius(1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(270),i=r(272),o=r.n(i),a=r(1458),s=r(1499),u=r(1562);function c(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){return f="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},f(e)}function p(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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return m(e)}(this,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return{xLoc:"touchstart"===e.type?e.pageX:e.offsetX,yLoc:"touchstart"===e.type?e.pageY:e.offsetY}}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,r,i,o=h(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(m(e=o.call.apply(o,[this].concat(r))),"state",{dragging:!1,brushArea:{top:0,right:0,bottom:0,left:0},brushing:!1,startLocX:0,startLocY:0,dragArea:null}),e}return t=a,(r=[{key:"_getDrawArea",value:function(e,t){var r=this.state,n=r.startLocX,i=r.startLocY,o=this.props,a=o.enableX,s=o.enableY,u=o.highlightWidth,c=o.highlightHeight,l=o.innerWidth,f=o.innerHeight,p=o.marginLeft,d=o.marginRight,h=o.marginBottom,m=o.marginTop,g=u||l+p+d,y=c||f+m+h;return{bottom:s?Math.max(i,t):y,right:a?Math.max(n,e):g,left:a?Math.min(e,n):0,top:s?Math.min(t,i):0}}},{key:"_getDragArea",value:function(e,t){var r=this.props,n=r.enableX,i=r.enableY,o=this.state,a=o.startLocX,s=o.startLocY,u=o.dragArea;return{bottom:u.bottom+(i?t-s:0),left:u.left+(n?e-a:0),right:u.right+(n?e-a:0),top:u.top+(i?t-s:0)}}},{key:"_clickedOutsideDrag",value:function(e,t){var r=this.props,n=r.enableX,i=r.enableY,o=this.state,a=o.dragArea,s=o.brushArea,u=s.left,c=s.right,l=s.top,f=s.bottom,p=a&&(e<u||e>c),d=a&&(t<l||t>f);return n&&i?p||d:n?p:!i||d}},{key:"_convertAreaToCoordinates",value:function(e){var t=this.props,r=t.enableX,n=t.enableY,i=t.marginLeft,o=t.marginTop,a=(0,s.getAttributeScale)(this.props,"x"),u=(0,s.getAttributeScale)(this.props,"y");return r&&n?{bottom:u.invert(e.bottom),left:a.invert(e.left-i),right:a.invert(e.right-i),top:u.invert(e.top)}:n?{bottom:u.invert(e.bottom-o),top:u.invert(e.top-o)}:r?{left:a.invert(e.left-i),right:a.invert(e.right-i)}:{}}},{key:"startBrushing",value:function(e){var t=this,r=this.props,n=r.onBrushStart,i=r.onDragStart,o=r.drag,a=this.state.dragArea,s=v(e.nativeEvent),u=s.xLoc,c=s.yLoc,l=function(e,r){var n={bottom:c,left:u,right:u,top:c};t.setState({dragging:e,brushArea:a&&!r?a:n,brushing:!e,startLocX:u,startLocY:c})},f=this._clickedOutsideDrag(u,c);if(o&&!a||!o||f)return l(!1,f),void(n&&n(e));o&&a&&(l(!0,f),i&&i(e))}},{key:"stopBrushing",value:function(){var e=this.state,t=e.brushing,r=e.dragging,n=e.brushArea;if(t||r){var i=this.props,o=i.onBrushEnd,a=i.onDragEnd,s=i.drag,u=Math.abs(n.right-n.left)<5,c=Math.abs(n.top-n.bottom)<5||u;this.setState({brushing:!1,dragging:!1,brushArea:s?n:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:s&&!c&&n}),t&&o&&o(c?null:this._convertAreaToCoordinates(n)),s&&a&&a(c?null:this._convertAreaToCoordinates(n))}}},{key:"onBrush",value:function(e){var t=this.props,r=t.onBrush,n=t.onDrag,i=t.drag,o=this.state,a=o.brushing,s=o.dragging,u=v(e.nativeEvent),c=u.xLoc,l=u.yLoc;if(a){var f=this._getDrawArea(c,l);this.setState({brushArea:f}),r&&r(this._convertAreaToCoordinates(f))}if(i&&s){var p=this._getDragArea(c,l);this.setState({brushArea:p}),n&&n(this._convertAreaToCoordinates(p))}}},{key:"render",value:function(){var e=this,t=this.props,r=t.color,i=t.className,o=t.highlightHeight,a=t.highlightWidth,c=t.highlightX,l=t.highlightY,f=t.innerWidth,p=t.innerHeight,d=t.marginLeft,h=t.marginRight,m=t.marginTop,g=t.marginBottom,y=t.opacity,v=this.state.brushArea,b=v.left,_=v.right,S=v.top,E=v.bottom,w=0;c&&(w=(0,s.getAttributeScale)(this.props,"x")(c));var O=0;l&&(O=(0,s.getAttributeScale)(this.props,"y")(l));var x=a||d+h+f,T=o||m+g+p;return n.default.createElement("g",{transform:"translate(".concat(w,", ").concat(O,")"),className:(0,u.getCombinedClassName)(i,"rv-highlight-container")},n.default.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(x,0),height:Math.max(T,0),onMouseDown:function(t){return e.startBrushing(t)},onMouseMove:function(t){return e.onBrush(t)},onMouseUp:function(t){return e.stopBrushing(t)},onMouseLeave:function(t){return e.stopBrushing(t)},onTouchEnd:function(t){t.preventDefault(),e.stopBrushing(t)},onTouchCancel:function(t){t.preventDefault(),e.stopBrushing(t)},onContextMenu:function(e){return e.preventDefault()},onContextMenuCapture:function(e){return e.preventDefault()}}),n.default.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:y,fill:r,x:b,y:S,width:Math.min(Math.max(0,_-b),x),height:Math.min(Math.max(0,E-S),T)}))}}])&&p(t.prototype,r),i&&p(t,i),a}(a.default);b.displayName="HighlightOverlay",b.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},b.propTypes=l(l({},a.default.propTypes),{},{enableX:o().bool,enableY:o().bool,highlightHeight:o().number,highlightWidth:o().number,highlightX:o().oneOfType([o().string,o().number]),highlightY:o().oneOfType([o().string,o().number]),onBrushStart:o().func,onDragStart:o().func,onBrush:o().func,onDrag:o().func,onBrushEnd:o().func,onDragEnd:o().func});const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(270),i=r(272),o=r.n(i),a=r(1508),s=r(1499),u=r(1562);function c(e){return c="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},c(e)}function l(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y={AUTO:"auto",LEFT:"left",RIGHT:"right",LEFT_EDGE:"leftEdge",RIGHT_EDGE:"rightEdge",BOTTOM:"bottom",TOP:"top",BOTTOM_EDGE:"bottomEdge",TOP_EDGE:"topEdge"},v={BOTTOM_LEFT:"bottomleft",BOTTOM_RIGHT:"bottomright",TOP_LEFT:"topleft",TOP_RIGHT:"topright"};function b(e){return Object.keys(e).map((function(t){return{title:t,value:(0,a.transformValueToString)(e[t])}}))}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,r,i,a=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,i=[{key:"defaultProps",get:function(){return{format:b,align:{horizontal:y.AUTO,vertical:y.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:o().number,marginLeft:o().number,innerWidth:o().number,innerHeight:o().number,scales:o().object,value:o().object,format:o().func,style:o().object,className:o().string,align:o().shape({horizontal:o().oneOf([y.AUTO,y.LEFT,y.RIGHT,y.LEFT_EDGE,y.RIGHT_EDGE]),vertical:o().oneOf([y.AUTO,y.BOTTOM,y.TOP,y.BOTTOM_EDGE,y.TOP_EDGE])}),getAlignStyle:o().func,orientation:o().oneOf([v.BOTTOM_LEFT,v.BOTTOM_RIGHT,v.TOP_LEFT,v.TOP_RIGHT])}}}],(r=[{key:"_getAlign",value:function(e,t){var r=this.props,n=r.innerWidth,i=r.innerHeight,o=r.orientation,a=r.align,s=a.horizontal,u=a.vertical,c=o?this._mapOrientationToAlign(o):{horizontal:s,vertical:u};return s===y.AUTO&&(c.horizontal=e>n/2?y.LEFT:y.RIGHT),u===y.AUTO&&(c.vertical=t>i/2?y.TOP:y.BOTTOM),c}},{key:"_getAlignClassNames",value:function(e){var t=this.props.orientation,r=t?"rv-hint--orientation-".concat(t):"";return"".concat(r," rv-hint--horizontalAlign-").concat(e.horizontal,"\n     rv-hint--verticalAlign-").concat(e.vertical)}},{key:"_getAlignStyle",value:function(e,t,r){return f(f({},this._getXCSS(e.horizontal,t)),this._getYCSS(e.vertical,r))}},{key:"_getCSSBottom",value:function(e){if(null==e)return{bottom:0};var t=this.props,r=t.innerHeight;return{bottom:t.marginBottom+r-e}}},{key:"_getCSSLeft",value:function(e){return null==e?{left:0}:{left:this.props.marginLeft+e}}},{key:"_getCSSRight",value:function(e){if(null==e)return{right:0};var t=this.props,r=t.innerWidth;return{right:t.marginRight+r-e}}},{key:"_getCSSTop",value:function(e){return null==e?{top:0}:{top:this.props.marginTop+e}}},{key:"_getPositionInfo",value:function(){var e=this.props,t=e.value,r=e.getAlignStyle,n=(0,s.getAttributeFunctor)(this.props,"x")(t),i=(0,s.getAttributeFunctor)(this.props,"y")(t),o=this._getAlign(n,i);return{position:r?r(o,n,i):this._getAlignStyle(o,n,i),positionClassName:this._getAlignClassNames(o)}}},{key:"_getXCSS",value:function(e,t){switch(e){case y.LEFT_EDGE:return this._getCSSLeft(null);case y.RIGHT_EDGE:return this._getCSSRight(null);case y.LEFT:return this._getCSSRight(t);default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case y.TOP_EDGE:return this._getCSSTop(null);case y.BOTTOM_EDGE:return this._getCSSBottom(null);case y.BOTTOM:return this._getCSSTop(t);default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case v.BOTTOM_LEFT:return{horizontal:y.LEFT,vertical:y.BOTTOM};case v.BOTTOM_RIGHT:return{horizontal:y.RIGHT,vertical:y.BOTTOM};case v.TOP_LEFT:return{horizontal:y.LEFT,vertical:y.TOP};case v.TOP_RIGHT:return{horizontal:y.RIGHT,vertical:y.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,r=e.format,i=e.children,o=e.style,a=e.className,s=this._getPositionInfo(),c=s.position,l=s.positionClassName;return n.default.createElement("div",{className:(0,u.getCombinedClassName)("rv-hint",l,a),style:f(f(f({},o),c),{},{position:"absolute"})},i||n.default.createElement("div",{className:"rv-hint__content",style:o.content},r(t).map((function(e,t){return n.default.createElement("div",{key:"rv-hint".concat(t),style:o.row},n.default.createElement("span",{className:"rv-hint__title",style:o.title},e.title),": ",n.default.createElement("span",{className:"rv-hint__value",style:o.value},e.value))}))))}}])&&d(t.prototype,r),i&&d(t,i),c}(n.PureComponent);_.displayName="Hint",_.ORIENTATION=v,_.ALIGN=y;const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(270),i=r(1458),o=r(1668);function a(e){return a="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},a(e)}function s(){return s=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},s.apply(this,arguments)}function u(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(f,e);var t,r,i,a=l(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),a.apply(this,arguments)}return t=f,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&u(t.prototype,r),i&&u(t,i),f}(i.default);p.displayName="HorizontalBarSeries";const d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1560),u=r(1562),c=r(1458);function l(e){return l="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},l(e)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=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},h.apply(this,arguments)}function m(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 g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,r,i,l=y(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return t=f,i=[{key:"propTypes",get:function(){return p(p({},c.default.propTypes),{},{linePosAttr:o().string,valuePosAttr:o().string,lineSizeAttr:o().string,valueSizeAttr:o().string,cluster:o().string,barWidth:o().number})}},{key:"defaultProps",get:function(){return{barWidth:.85}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,c=t.linePosAttr,l=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr,_=t.barWidth;if(!o)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(f,h({},this.props,{animation:null})));var S=(0,s.getStackParams)(this.props),E=S.sameTypeTotal,w=S.sameTypeIndex,O=this._getScaleDistance(c),x=this._getAttributeFunctor(c),T=this._getAttributeFunctor(v),k=this._getAttr0Functor(v),C=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),I=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),R=this._getAttributeFunctor("opacity"),A=O/2*_;return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--bar",i),transform:"translate(".concat(m,",").concat(g,")")},o.map((function(t,r){var i,o=2*A,a=x(t),s=o/E-(E-1)/E,u=a-A+s*w+w,f=(d(i={style:p({opacity:R&&R(t),stroke:I&&I(t),fill:C&&C(t)},y)},c,u),d(i,l,s),d(i,v,Math.min(k(t),T(t))),d(i,b,Math.abs(-k(t)+T(t))),d(i,"onClick",(function(r){return e._valueClickHandler(t,r)})),d(i,"onContextMenu",(function(r){return e._valueRightClickHandler(t,r)})),d(i,"onMouseOver",(function(r){return e._valueMouseOverHandler(t,r)})),d(i,"onMouseOut",(function(r){return e._valueMouseOutHandler(t,r)})),i);return n.default.createElement("rect",h({key:"".concat(r)},f))})))}}])&&m(t.prototype,r),i&&m(t,i),f}(c.default);b.displayName="BarSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1458),i=r(1670);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},o(e)}function a(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?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,r,n,o=f(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);d.displayName="HorizontalBarSeriesCanvas",d.propTypes=s({},n.default.propTypes);const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(272),i=r.n(n),o=r(1491),a=r(1561),s=r(1499),u=r(1560),c=r(1458);function l(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){return d="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},d(e)}function h(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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e);var t,r,n,i=g(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,i=e.lineSizeAttr,c=e.valuePosAttr,l=e.marginTop,f=e.marginBottom;if(r&&0!==r.length){var p=function(e,t){var r=(0,s.getScaleObjectFromProps)(e,t);return r?r.distance:0}(e,n),d=(0,s.getAttributeFunctor)(e,n),h=(0,s.getAttributeFunctor)(e,c),m=(0,s.getAttr0Functor)(e,c),g=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),v=(0,s.getAttributeFunctor)(e,"opacity"),b=p/2*.85,_=2*b,S=(0,u.getStackParams)(e),E=S.sameTypeTotal,w=S.sameTypeIndex;r.forEach((function(e){var r=d(e)-b,n=_/E-(E-1)/E,s=(0,o.rgb)(g(e)),u=(0,o.rgb)(y(e)),p=v(e)||a.DEFAULT_OPACITY,S=r+n*w+w,O=Math.min(m(e),h(e)),x="x"===c?O:S,T="y"===c?O:S,k=Math.abs(-m(e)+h(e)),C="height"===i?n:k,I="width"===i?n:k;t.beginPath(),t.rect(x+f,T+l,I,C),t.fillStyle="rgba(".concat(s.r,", ").concat(s.g,", ").concat(s.b,", ").concat(p,")"),t.fill(),t.strokeStyle="rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", ").concat(p,")"),t.stroke()}))}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&h(t.prototype,r),n&&h(t,n),c}(c.default);v.displayName="BarSeriesCanvas",v.defaultProps=f(f({},c.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),v.propTypes=f({},c.default.propTypes);const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(270),i=r(272),o=r.n(i),a=r(1628),s=r(1660);function u(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=a.DIRECTION.HORIZONTAL,p=c(c({},s.default.propTypes),{},{direction:o().oneOf([f])}),d={direction:f,attr:"y"};function h(e){return n.default.createElement(s.default,e)}h.displayName="HorizontalGridLines",h.propTypes=p,h.defaultProps=d,h.requiresSVG=!0;const m=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(270),i=r(1458),o=r(1673);function a(e){return a="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},a(e)}function s(){return s=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},s.apply(this,arguments)}function u(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(f,e);var t,r,i,a=l(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),a.apply(this,arguments)}return t=f,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&u(t.prototype,r),i&&u(t,i),f}(i.default);p.displayName="HorizontalRectSeries";const d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1560),u=r(1562),c=r(1458);function l(e){return l="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},l(e)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=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},h.apply(this,arguments)}function m(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 g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,r,i,l=y(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return t=f,i=[{key:"propTypes",get:function(){return p(p({},c.default.propTypes),{},{linePosAttr:o().string,valuePosAttr:o().string,lineSizeAttr:o().string,valueSizeAttr:o().string})}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,c=t.linePosAttr,l=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr;if(!o)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(f,h({},this.props,{animation:null})));var _=this._getAttributeFunctor(c),S=this._getAttr0Functor(c),E=this._getAttributeFunctor(v),w=this._getAttr0Functor(v),O=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),x=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),T=this._getAttributeFunctor("opacity");return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--rect",i),transform:"translate(".concat(m,",").concat(g,")")},o.map((function(t,r){var i,o=(d(i={style:p({opacity:T&&T(t),stroke:x&&x(t),fill:O&&O(t)},y)},c,S(t)),d(i,l,Math.abs(_(t)-S(t))),d(i,v,Math.min(w(t),E(t))),d(i,b,Math.abs(-w(t)+E(t))),d(i,"onClick",(function(r){return e._valueClickHandler(t,r)})),d(i,"onContextMenu",(function(r){return e._valueRightClickHandler(t,r)})),d(i,"onMouseOver",(function(r){return e._valueMouseOverHandler(t,r)})),d(i,"onMouseOut",(function(r){return e._valueMouseOutHandler(t,r)})),i);return n.default.createElement("rect",h({key:String(r)},o))})))}}])&&m(t.prototype,r),i&&m(t,i),f}(c.default);b.displayName="RectSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1458),i=r(1675);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},o(e)}function a(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?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,r,n,o=f(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);d.displayName="HorizontalRectSeriesCanvas",d.propTypes=s({},n.default.propTypes);const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(272),i=r.n(n),o=r(1491),a=r(1561),s=r(1499),u=r(1458);function c(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){return p="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},p(e)}function d(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,r,n,i=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return t=u,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,i=e.lineSizeAttr,u=e.marginLeft,c=e.marginTop,l=e.valuePosAttr;if(r&&0!==r.length){var f=(0,s.getAttributeFunctor)(e,n),p=(0,s.getAttr0Functor)(e,n),d=(0,s.getAttributeFunctor)(e,l),h=(0,s.getAttr0Functor)(e,l),m=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),g=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"opacity");r.forEach((function(e){var r=(0,o.rgb)(m(e)),n=(0,o.rgb)(g(e)),s=y(e)||a.DEFAULT_OPACITY,v=p(e),b=Math.min(h(e),d(e)),_="x"===l?b:v,S="y"===l?b:v,E=Math.abs(f(e)-p(e)),w=Math.abs(-h(e)+d(e)),O="height"===i?E:w,x="width"===i?E:w;t.beginPath(),t.rect(_+u,S+c,x,O),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(s,")"),t.fill(),t.strokeStyle="rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(s,")"),t.stroke()}))}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&d(t.prototype,r),n&&d(t,n),u}(u.default);y.displayName="RectSeriesCanvas",y.defaultProps=l(l({},u.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),y.propTypes=l({},u.default.propTypes);const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(270),i=r(272),o=r.n(i),a=r(1458),s=r(1469),u=r(1560),c=r(1562);function l(e){return l="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},l(e)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=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},h.apply(this,arguments)}function m(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 g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e,t){return e||(t?"start":"end")},_=function(e,t){return e||(t?"text-before-edge":"text-after-edge")},S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(a,e);var t,r,i,o=y(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.allowOffsetToBeReversed,o=t.className,l=t.data,f=t._data,d=t.getLabel,m=t.marginLeft,g=t.marginTop,y=t.rotation,v=t.style,S=t.xRange,E=t.yRange,w=t.labelAnchorX,O=t.labelAnchorY;if(!l)return null;if(r)return n.default.createElement(s.default,h({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(a,h({},this.props,{animation:null,_data:l})));var x=this._getAttributeFunctor("x"),T=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--label",o),transform:"translate(".concat(m,",").concat(g,")"),style:v},l.reduce((function(t,r,o){var a=r.style,s=r.xOffset,u=r.yOffset;if(!d(r))return t;var c=x(r),l=T(r),m=c<(S[1]-S[0])/2,g=l<Math.abs(E[1]-E[0])/2,v=c+(i&&m?-1:1)*(s||0),k=l+(i&&g?-1:1)*(u||0),C=0===r.rotation||r.rotation?r.rotation:y,I=p({dominantBaseline:_(O,g),className:"rv-xy-plot__series--label-text",onClick:function(t){return e._valueClickHandler(r,t)},onContextMenu:function(t){return e._valueRightClickHandler(r,t)},onMouseOver:function(t){return e._valueMouseOverHandler(r,t)},onMouseOut:function(t){return e._valueMouseOutHandler(r,t)},textAnchor:b(w,m),x:v,y:k,transform:"rotate(".concat(C,",").concat(v,",").concat(k,")")},a),R=d(f?f[o]:r);return t.concat([n.default.createElement("text",h({key:String(o)},I),R)])}),[]))}}])&&m(t.prototype,r),i&&m(t,i),a}(a.default);S.propTypes={animation:o().bool,allowOffsetToBeReversed:o().bool,className:o().string,data:o().arrayOf(o().shape({x:o().oneOfType([o().number,o().string]),y:o().oneOfType([o().number,o().string]),angle:o().number,radius:o().number,label:o().string,xOffset:o().number,yOffset:o().number,style:o().object})).isRequired,marginLeft:o().number,marginTop:o().number,rotation:o().number,style:o().object,xRange:o().arrayOf(o().number),yRange:o().arrayOf(o().number),labelAnchorX:o().string,labelAnchorY:o().string},S.defaultProps=p(p({},a.default.defaultProps),{},{animation:!1,rotation:0,getLabel:function(e){return e.label}}),S.displayName="LabelSeries";const E=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(270),i=r(272),o=r.n(i),a=r(1458),s=r(1678),u=r(1679);function c(e){return c="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},c(e)}function l(){return l=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},l.apply(this,arguments)}function f(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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=g(g({},s.default.propTypes),{},{lineStyle:o().object,markStyle:o().object}),b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,r,i,o=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,i=[{key:"defaultProps",get:function(){return g(g({},s.default.defaultProps),{},{lineStyle:{},markStyle:{}})}}],(r=[{key:"render",value:function(){var e=this.props,t=e.lineStyle,r=e.markStyle,i=e.style;return n.default.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--linemark"},n.default.createElement(s.default,l({},this.props,{style:g(g({},i),t)})),n.default.createElement(u.default,l({},this.props,{style:g(g({},i),r)})))}}])&&f(t.prototype,r),i&&f(t,i),a}(a.default);b.displayName="LineMarkSeries",b.propTypes=v;const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(270),i=r(272),o=r.n(i),a=r(1573),s=r(1569),u=r(1469),c=r(1561),l=r(1560),f=r(1507),p=r(1562),d=r(1458);function h(e){return h="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},h(e)}function m(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=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},v.apply(this,arguments)}function b(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 _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w={dashed:"6, 2",solid:null},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(d,e);var t,r,i,o=S(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),o.apply(this,arguments)}return t=d,(r=[{key:"_renderLine",value:function(e,t,r,n,i){var o=a.default();return null!==n&&("string"==typeof n&&s[n]?o=o.curve(s[n]):"function"==typeof n&&(o=o.curve(n))),(o=(o=o.defined(i)).x(t).y(r))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.data;if(this.props.nullAccessor&&(0,f.warning)("nullAccessor has been renamed to getNull",!0),!i)return null;if(t)return n.default.createElement(u.default,v({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),n.default.createElement(d,v({},this.props,{animation:null})));var o=this.props,a=o.curve,s=o.marginLeft,h=o.marginTop,m=o.strokeDasharray,y=o.strokeStyle,b=o.strokeWidth,_=o.style,S=this._getAttributeFunctor("x"),E=this._getAttributeFunctor("y"),O=this._getAttributeValue("stroke")||this._getAttributeValue("color"),x=this._getAttributeValue("opacity"),T=Number.isFinite(x)?x:c.DEFAULT_OPACITY,k=this.props.nullAccessor||this.props.getNull,C=this._renderLine(i,S,E,a,k);return n.default.createElement("path",{d:C,className:(0,p.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(s,",").concat(h,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:T,strokeDasharray:w[y]||m,strokeWidth:b,stroke:O},_)})}}])&&b(t.prototype,r),i&&b(t,i),d}(d.default);O.displayName="LineSeries",O.propTypes=g(g({},d.default.propTypes),{},{strokeStyle:o().oneOf(Object.keys(w)),curve:o().oneOfType([o().string,o().func]),getNull:o().func}),O.defaultProps=g(g({},d.default.defaultProps),{},{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});const x=O},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1560),u=r(1507),c=r(1562),l=r(1561),f=r(1458);function p(e){return p="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},p(e)}function d(){return d=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},d.apply(this,arguments)}function h(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(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 v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(f,e);var t,r,i,o=b(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o.apply(this,arguments)}return t=f,(r=[{key:"_renderCircle",value:function(e,t,r,i,o){var a=this,s=o.fill,u=o.opacity,c=o.size,f=o.stroke,p=o.x,d=o.y,h={r:c?c(e):l.DEFAULT_SIZE,cx:p(e),cy:d(e),style:m({opacity:u?u(e):l.DEFAULT_OPACITY,stroke:f&&f(e),fill:s&&s(e),strokeWidth:r||1},i),key:t,onClick:function(t){return a._valueClickHandler(e,t)},onContextMenu:function(t){return a._valueRightClickHandler(e,t)},onMouseOver:function(t){return a._valueMouseOverHandler(e,t)},onMouseOut:function(t){return a._valueMouseOutHandler(e,t)}};return n.default.createElement("circle",h)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,l=t.marginLeft,p=t.marginTop,h=t.strokeWidth,m=t.style;this.props.nullAccessor&&(0,u.warning)("nullAccessor has been renamed to getNull",!0);var g=this.props.nullAccessor||this.props.getNull;if(!o)return null;if(r)return n.default.createElement(a.default,d({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(f,d({},this.props,{animation:null})));var y={fill:this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),opacity:this._getAttributeFunctor("opacity"),size:this._getAttributeFunctor("size"),stroke:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),x:this._getAttributeFunctor("x"),y:this._getAttributeFunctor("y")};return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--mark",i),transform:"translate(".concat(l,",").concat(p,")")},o.map((function(t,r){return g(t)&&e._renderCircle(t,r,h,m,y)})))}}])&&y(t.prototype,r),i&&y(t,i),f}(f.default);S.displayName="MarkSeries",S.propTypes=m(m({},f.default.propTypes),{},{getNull:o().func,strokeWidth:o().number}),S.defaultProps={getNull:function(){return!0}};const E=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1458),i=r(1681),o=r(1682);function a(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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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},u(e)}function c(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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(s,e);var t,r,n,a=f(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,n=[{key:"renderLayer",value:function(e,t){o.default.renderLayer(e,t),i.default.renderLayer(e,t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),s}(n.default);d.displayName="LineMarkSeriesCanvas",d.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.default.propTypes);const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(1491),i=r(1561),o=r(1499),a=r(1458);function s(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 u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c="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},c(e)}function l(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(u,e);var t,r,a,s=p(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return t=u,a=[{key:"renderLayer",value:function(e,t){var r=e.data,a=e.marginLeft,s=e.marginTop,u=(0,o.getAttributeFunctor)(e,"x"),c=(0,o.getAttributeFunctor)(e,"y"),l=(0,o.getAttributeFunctor)(e,"size")||function(){return i.DEFAULT_SIZE},f=(0,o.getAttributeFunctor)(e,"fill")||(0,o.getAttributeFunctor)(e,"color"),p=(0,o.getAttributeFunctor)(e,"stroke")||(0,o.getAttributeFunctor)(e,"color"),d=(0,o.getAttributeFunctor)(e,"opacity");r.forEach((function(e){var r=(0,n.rgb)(f(e)),o=(0,n.rgb)(p(e)),h=d(e)||i.DEFAULT_OPACITY;t.beginPath(),t.arc(u(e)+a,c(e)+s,l(e),0,2*Math.PI),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(h,")"),t.fill(),t.strokeStyle="rgba(".concat(o.r,", ").concat(o.g,", ").concat(o.b,", ").concat(h,")"),t.stroke()}))}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&l(t.prototype,r),a&&l(t,a),u}(a.default);h.displayName="MarkSeriesCanvas",h.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},a.default.propTypes);const m=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(272),i=r.n(n),o=r(1491),a=r(1573),s=r(1569),u=r(270),c=r(1561),l=r(1499),f=r(1458);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(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return m="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},m(e)}function g(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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(f,e);var t,r,n,i=v(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),i.apply(this,arguments)}return t=f,n=[{key:"renderLayer",value:function(e,t){var r=e.curve,n=e.data,i=e.marginLeft,u=e.marginTop,f=e.strokeWidth,p=e.strokeDasharray;if(n&&0!==n.length){var d=(0,l.getAttributeFunctor)(e,"x"),h=(0,l.getAttributeFunctor)(e,"y"),m=(0,l.getAttributeValue)(e,"stroke")||(0,l.getAttributeValue)(e,"color"),g=(0,o.rgb)(m),y=(0,l.getAttributeValue)(e,"opacity"),v=Number.isFinite(y)?y:c.DEFAULT_OPACITY,b=a.default().x((function(e){return d(e)+i})).y((function(e){return h(e)+u}));"string"==typeof r&&s[r]?b=b.curve(s[r]):"function"==typeof r&&(b=b.curve(r)),t.beginPath(),t.strokeStyle="rgba(".concat(g.r,", ").concat(g.g,", ").concat(g.b,", ").concat(v,")"),t.lineWidth=f,p&&t.setLineDash(p),b.context(t)(n),t.stroke(),t.closePath(),t.lineWidth=1,t.setLineDash([])}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return u.default.createElement("div",null)}}])&&g(t.prototype,r),n&&g(t,n),f}(f.default);_.displayName="LineSeriesCanvas",_.defaultProps=d(d({},f.default.defaultProps),{},{strokeWidth:2}),_.propTypes=d(d({},f.default.propTypes),{},{strokeWidth:i().number});const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(270),i=r(1469),o=r(1560),a=r(1562),s=r(1458);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},u(e)}function c(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 l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=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},f.apply(this,arguments)}function p(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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e,t,r){return"".concat(e.reduce((function(e,n,i){return"".concat(e," ").concat(i?"L":"M").concat(t(n)," ").concat(r(n))}),"")," Z")},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(y,e);var t,r,u,m=h(y);function y(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),m.apply(this,arguments)}return t=y,u=[{key:"propTypes",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s.default.propTypes)}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.color,u=t.className,c=t.data,l=t.marginLeft,p=t.marginTop,d=t.style;if(!c)return null;if(r)return n.default.createElement(i.default,f({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(y,f({},this.props,{animation:null})));var h=this._getAttributeFunctor("x"),m=this._getAttributeFunctor("y");return n.default.createElement("path",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--polygon",u),onMouseOver:function(t){return e._seriesMouseOverHandler(c,t)},onMouseOut:function(t){return e._seriesMouseOutHandler(c,t)},onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,fill:s||"#12939A",style:d,d:g(c,h,m),transform:"translate(".concat(l,",").concat(p,")")})}}])&&p(t.prototype,r),u&&p(t,u),y}(s.default);y.displayName="PolygonSeries";const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(270),i=r(1458),o=r(1668);function a(e){return a="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},a(e)}function s(){return s=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},s.apply(this,arguments)}function u(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(f,e);var t,r,i,a=l(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),a.apply(this,arguments)}return t=f,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&u(t.prototype,r),i&&u(t,i),f}(i.default);p.displayName="VerticalBarSeries";const d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1458),i=r(1670);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},o(e)}function a(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?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,r,n,o=f(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);d.displayName="HorizontalBarSeriesCanvas",d.propTypes=s({},n.default.propTypes);const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(270),i=r(272),o=r.n(i),a=r(1660);function s(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=r(1628).DIRECTION.VERTICAL,f=u(u({},a.default.propTypes),{},{direction:o().oneOf([l])}),p={direction:l,attr:"x"};function d(e){return n.default.createElement(a.default,e)}d.displayName="VerticalGridLines",d.propTypes=f,d.defaultProps=p,d.requiresSVG=!0;const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(270),i=r(1458),o=r(1673);function a(e){return a="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},a(e)}function s(){return s=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},s.apply(this,arguments)}function u(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(f,e);var t,r,i,a=l(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),a.apply(this,arguments)}return t=f,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&u(t.prototype,r),i&&u(t,i),f}(i.default);p.displayName="VerticalRectSeries";const d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1458),i=r(1675);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},o(e)}function a(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?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,r,n,o=f(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);d.displayName="HorizontalRectSeriesCanvas",d.propTypes=s({},n.default.propTypes);const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(270),i=r(272),o=r.n(i),a=r(1459),s=r(1499),u=r(1562);function c(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=function(e){return e};function d(e){var t,r,i,o,c,f=e.className,p=e.extent,d=e.nodes,h=e.onBlur,m=e.onClick,g=e.onMouseUp,y=e.onMouseDown,v=e.onHover,b=e.polygonStyle,_=e.style,S=e.x,E=e.y,w=(0,a.voronoi)().x(S||(0,s.getAttributeFunctor)(e,"x")).y(E||(0,s.getAttributeFunctor)(e,"y")).extent(p||(r=(t=e).innerWidth,i=t.innerHeight,o=t.marginLeft,c=t.marginTop,[[o,c],[r+o,i+c]])).polygons(d),O=function(e){return function(t){t.preventDefault();var r=function(e){var t=e.nativeEvent,r=t.pageX,n=t.pageY,i=document.elementFromPoint(r,n);if(!i)return-1;var o=i.parentNode;return Array.prototype.indexOf.call(o.childNodes,i)}(t);if(r>-1&&r<w.length){var n=w[r];e(n.data)}}};return n.default.createElement("g",{className:(0,u.getCombinedClassName)(f,"rv-voronoi"),style:_,onTouchEnd:O(g),onTouchStart:O(y),onTouchMove:O(v),onTouchCancel:O(h)},w.map((function(e,t){return n.default.createElement("path",{className:"rv-voronoi__cell ".concat(e.data&&e.data.className||""),d:"M".concat(e.join("L"),"Z"),onClick:function(){return m(e.data)},onMouseUp:function(){return g(e.data)},onMouseDown:function(){return y(e.data)},onMouseOver:function(){return v(e.data)},onMouseOut:function(){return h(e.data)},fill:"none",style:l(l({pointerEvents:"all"},b),e.data&&e.data.style),key:t})})))}d.requiresSVG=!0,d.displayName="Voronoi",d.defaultProps={className:"",onBlur:p,onClick:p,onHover:p,onMouseDown:p,onMouseUp:p},d.propTypes={className:o().string,extent:o().arrayOf(o().arrayOf(o().number)),nodes:o().arrayOf(o().object).isRequired,onBlur:o().func,onClick:o().func,onHover:o().func,onMouseDown:o().func,onMouseUp:o().func,x:o().func,y:o().func};const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1560),u=r(1562),c=r(1561),l=r(1458);function f(e){return f="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},f(e)}function p(){return p=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},p.apply(this,arguments)}function d(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(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?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,e);var t,r,i,o=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.crossBarWidth,o=e.data,f=e.marginLeft,d=e.marginTop,h=e.strokeWidth,m=e.style;if(!o)return null;if(t)return n.default.createElement(a.default,p({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(l,p({},this.props,{animation:null})));var g={crossBarWidth:i,opacityFunctor:this._getAttributeFunctor("opacity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:h,style:m,xFunctor:this._getAttributeFunctor("x"),yFunctor:this._getAttributeFunctor("y"),valueClickHandler:this._valueClickHandler,valueRightClickHandler:this._valueRightClickHandler,valueMouseOverHandler:this._valueMouseOverHandler,valueMouseOutHandler:this._valueMouseOutHandler};return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--whisker",r),transform:"translate(".concat(f,",").concat(d,")")},o.map(function(e){return function(t,r){var i=e.crossBarWidth,o=e.opacityFunctor,a=e.sizeFunctor,s=e.strokeFunctor,u=e.strokeWidth,l=e.style,f=e.valueClickHandler,p=e.valueMouseOutHandler,d=e.valueMouseOverHandler,h=e.valueRightClickHandler,m=e.xFunctor,g=e.yFunctor,y=a?a(t):0,b=m(t),_=g(t),S=m({x:t.x+t.xVariance/2}),E=m({x:t.x-t.xVariance/2}),w=g({y:t.y+t.yVariance/2}),O=g({y:t.y-t.yVariance/2}),x=S&&b+y<S,T=w&&_-y>w;if(!x&&!T)return null;var k=v({opacity:o?o(t):c.DEFAULT_OPACITY,stroke:s&&s(t),strokeWidth:u||1},l),C=i/2,I={x1:b+y,y1:_,x2:S,y2:_,style:k},R={x1:b-y,y1:_,x2:E,y2:_,style:k},A={x1:S,y1:_-C,x2:S,y2:_+C,style:k},P={x1:E,y1:_-C,x2:E,y2:_+C,style:k},D={x1:b,y1:_-y,x2:b,y2:w,style:k},N={x1:b,y1:_+y,x2:b,y2:O,style:k},M={x1:b-C,y1:w,x2:b+C,y2:w,style:k},L={x1:b-C,y1:O,x2:b+C,y2:O,style:k};return n.default.createElement("g",{className:"mark-whiskers",key:r,onClick:function(e){return f(t,e)},onContextMenu:function(e){return h(t,e)},onMouseOver:function(e){return d(t,e)},onMouseOut:function(e){return p(t,e)}},x?n.default.createElement("g",{className:"x-whiskers"},n.default.createElement("line",I),n.default.createElement("line",R),n.default.createElement("line",A),n.default.createElement("line",P)):null,T?n.default.createElement("g",{className:"y-whiskers"},n.default.createElement("line",D),n.default.createElement("line",N),n.default.createElement("line",M),n.default.createElement("line",L)):null)}}(g)))}}])&&d(t.prototype,r),i&&d(t,i),l}(l.default);_.displayName="WhiskerSeries",_.propTypes=v(v({},l.default.propTypes),{},{strokeWidth:o().number}),_.defaultProps=v(v({},l.default.defaultProps),{},{crossBarWidth:6,size:0,strokeWidth:1});const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(270),i=r(272),o=r.n(i),a=r(1692),s=r.n(a),u=r(1562),c=r(1499),l=r(1560),f=r(1709),p=r(1469),d=r(1561),h=r(1710);function m(e){return m="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},m(e)}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(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 b(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(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 x(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){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k=["x","y","radius","angle","color","fill","stroke","opacity","size"];function C(e){return e.map((function(e){return Array.isArray(e)?e.map((function(e){return x(x({},e),{},{parent:null})})):e}))}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(r,e);var t=S(r);function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),T(E(n=t.call(this,e)),"_clickHandler",(function(e){var t=n.props.onClick;t&&t(e)})),T(E(n),"_doubleClickHandler",(function(e){var t=n.props.onDoubleClick;t&&t(e)})),T(E(n),"_mouseDownHandler",(function(e){var t=n.props,r=t.onMouseDown,i=t.children;r&&r(e),(0,l.getSeriesChildren)(i).forEach((function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseDown&&i.onParentMouseDown(e)}))})),T(E(n),"_mouseEnterHandler",(function(e){var t=n.props,r=t.onMouseEnter,i=t.children;r&&r(e),(0,l.getSeriesChildren)(i).forEach((function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseEnter&&i.onParentMouseEnter(e)}))})),T(E(n),"_mouseLeaveHandler",(function(e){var t=n.props,r=t.onMouseLeave,i=t.children;r&&r(e),(0,l.getSeriesChildren)(i).forEach((function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseLeave&&i.onParentMouseLeave(e)}))})),T(E(n),"_mouseMoveHandler",(function(e){var t=n.props,r=t.onMouseMove,i=t.children;r&&r(e),(0,l.getSeriesChildren)(i).forEach((function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseMove&&i.onParentMouseMove(e)}))})),T(E(n),"_mouseUpHandler",(function(e){var t=n.props,r=t.onMouseUp,i=t.children;r&&r(e),(0,l.getSeriesChildren)(i).forEach((function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseUp&&i.onParentMouseUp(e)}))})),T(E(n),"_touchCancelHandler",(function(e){var t=n.props.onTouchCancel;t&&t(e)})),T(E(n),"_touchEndHandler",(function(e){var t=n.props.onTouchEnd;t&&t(e)})),T(E(n),"_touchMoveHandler",(function(e){var t=n.props,r=t.onTouchMove,i=t.children;r&&r(e),(0,l.getSeriesChildren)(i).forEach((function(t,r){var i=n["series".concat(r)];i&&i.onParentTouchMove&&i.onParentTouchMove(e)}))})),T(E(n),"_touchStartHandler",(function(e){var t=n.props,r=t.onTouchStart,i=t.children;r&&r(e),(0,l.getSeriesChildren)(i).forEach((function(t,r){var i=n["series".concat(r)];i&&i.onParentTouchStart&&i.onParentTouchStart(e)}))}));var i=e.stackBy,o=(0,l.getSeriesChildren)(e.children),a=(0,l.getStackedData)(o,i);return n.state={scaleMixins:n._getScaleMixins(a,e),data:a},n}return b(r,null,[{key:"defaultProps",get:function(){return{className:""}}},{key:"propTypes",get:function(){return{animation:p.AnimationPropType,className:o().string,dontCheckIfEmpty:o().bool,height:o().number.isRequired,margin:f.MarginPropType,onClick:o().func,onDoubleClick:o().func,onMouseDown:o().func,onMouseUp:o().func,onMouseEnter:o().func,onMouseLeave:o().func,onMouseMove:o().func,onTouchStart:o().func,onTouchMove:o().func,onTouchEnd:o().func,onTouchCancel:o().func,onWheel:o().func,stackBy:o().oneOf(k),style:o().object,width:o().number.isRequired}}}]),b(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=(0,l.getSeriesChildren)(e.children),r=(0,l.getStackedData)(t,e.stackBy),n=this.state.scaleMixins,i=this._getScaleMixins(r,e);(function(e,t,r){var n=x(x({},e),{},{_allData:r?C(e._allData):e._allData}),i=x(x({},t),{},{_allData:r?C(t._allData):t._allData});return s()(n,i)})(i,n,e.hasTreeStructure)||this.setState({scaleMixins:i,data:r})}},{key:"_getClonedChildComponents",value:function(){var e=this,t=this.props,r=this.props.animation,i=this.state,o=i.scaleMixins,a=i.data,s=(0,f.getInnerDimensions)(this.props,f.DEFAULT_MARGINS),u=n.default.Children.toArray(this.props.children),p=(0,l.getSeriesPropsFromChildren)(u),d=(0,c.getXYPlotValues)(t,u);return u.map((function(t,i){var u=null;if(p[i]){var c=p[i].seriesIndex;u={data:a[c]}}return n.default.cloneElement(t,x(x(x(x(x(x(x({},s),{},{animation:r},u&&t.type.prototype&&t.type.prototype.render?{ref:function(t){return e["series".concat(p[i].seriesIndex)]=t}}:{}),p[i]),o),t.props),d[i]),u))}))}},{key:"_getDefaultScaleProps",value:function(e){var t=(0,f.getInnerDimensions)(e,f.DEFAULT_MARGINS),r=t.innerWidth,n=t.innerHeight,i=["color","fill","stroke"].reduce((function(t,r){var n="category"===e["".concat(r,"Type")]?d.EXTENDED_DISCRETE_COLOR_RANGE:d.CONTINUOUS_COLOR_RANGE;return x(x({},t),{},T({},"".concat(r,"Range"),n))}),{});return x(x({xRange:[0,r],yRange:[n,0]},i),{},{opacityType:d.OPACITY_TYPE,sizeRange:d.SIZE_RANGE})}},{key:"_getScaleMixins",value:function(e,t){var r,n=e.filter((function(e){return e})),i=(r=[]).concat.apply(r,g(n)),o=this._getDefaultScaleProps(t),a=(0,c.getOptionalScaleProps)(t),s=(0,c.extractScalePropsFromProps)(t,k),u=(0,c.getMissingScaleProps)(x(x(x({},o),a),s),i,k),f=(0,l.getSeriesChildren)(t.children),p={},d=new Set,h=new Set;return f.forEach((function(r,n){r&&e[n]&&k.forEach((function(e){var i=r.type.getParentConfig(e,r.props),o=i.isDomainAdjustmentNeeded,a=i.zeroBaseValue;if(o&&(d.add(e),h.add(n)),a){var s=t["".concat(e,"Domain")];p["".concat(e,"BaseValue")]=s?s[0]:0}}))})),x(x(x(x(x({},o),p),s),u),{},{_allData:e,_adjustBy:Array.from(d),_adjustWhat:Array.from(h),_stackBy:t.stackBy})}},{key:"_isPlotEmpty",value:function(){var e=this.state.data;return!e||!e.length||!e.some((function(e){return e&&e.some((function(e){return e}))}))}},{key:"renderCanvasComponents",value:function(e){var t=e.filter((function(e){return e&&!e.type.requiresSVG&&e.type.isCanvas}));if(0===t.length)return null;var r=t[0].props,i=r.marginLeft,o=r.marginTop,a=r.marginBottom,s=r.marginRight,u=r.innerHeight,c=r.innerWidth;return n.default.createElement(h.default,{innerHeight:u,innerWidth:c,marginLeft:i,marginTop:o,marginBottom:a,marginRight:s},t)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.dontCheckIfEmpty,i=e.style,o=e.width,a=e.height,s=e.onWheel;if(!r&&this._isPlotEmpty())return n.default.createElement("div",{className:(0,u.getCombinedClassName)("rv-xy-plot",t),style:x({width:"".concat(o,"px"),height:"".concat(a,"px")},this.props.style)});var c=this._getClonedChildComponents();return n.default.createElement("div",{style:{width:"".concat(o,"px"),height:"".concat(a,"px")},className:(0,u.getCombinedClassName)("rv-xy-plot",t)},n.default.createElement("svg",{className:"rv-xy-plot__inner",width:o,height:a,style:i,onClick:this._clickHandler,onDoubleClick:this._doubleClickHandler,onMouseDown:this._mouseDownHandler,onMouseUp:this._mouseUpHandler,onMouseMove:this._mouseMoveHandler,onMouseLeave:this._mouseLeaveHandler,onMouseEnter:this._mouseEnterHandler,onTouchStart:this._mouseDownHandler,onTouchMove:this._touchMoveHandler,onTouchEnd:this._touchEndHandler,onTouchCancel:this._touchCancelHandler,onWheel:s},c.filter((function(e){return e&&e.type.requiresSVG}))),this.renderCanvasComponents(c),c.filter((function(e){return e&&!e.type.requiresSVG&&!e.type.isCanvas})))}}]),r}(n.default.Component);I.displayName="XYPlot";const R=I},(e,t,r)=>{var n=r(1693),i=r(161),o=r(1696),a=r(1701),s=r(1702),u=r(1708),c=Date.prototype.getTime;function l(e,t,r){var d=r||{};return!!(d.strict?o(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?d.strict?o(e,t):e==t:function(e,t,r){var o,d;if(typeof e!=typeof t)return!1;if(f(e)||f(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var h=a(e),m=a(t);if(h!==m)return!1;if(h||m)return e.source===t.source&&s(e)===s(t);if(u(e)&&u(t))return c.call(e)===c.call(t);var g=p(e),y=p(t);if(g!==y)return!1;if(g||y){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!=typeof t)return!1;try{var v=n(e),b=n(t)}catch(e){return!1}if(v.length!==b.length)return!1;for(v.sort(),b.sort(),o=v.length-1;o>=0;o--)if(v[o]!=b[o])return!1;for(o=v.length-1;o>=0;o--)if(!l(e[d=v[o]],t[d],r))return!1;return!0}(e,t,d))}function f(e){return null==e}function p(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=l},(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(1694),o=Object.keys,a=o?function(e){return o(e)}:r(1695),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},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}},(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1694),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}();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),p=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var h=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)p.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)p.push(String(g));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||p.push(String(y));if(u)for(var v=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)v&&"constructor"===l[b]||!i.call(e,l[b])||p.push(l[b]);return p}}e.exports=n},(e,t,r)=>{"use strict";var n=r(1697),i=r(178),o=r(1698),a=r(1699),s=r(1700),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},(e,t,r)=>{"use strict";var n=r(1693),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(180),u=r(183)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;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},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))}},(e,t,r)=>{"use strict";var n=r(1698);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},(e,t,r)=>{"use strict";var n=r(1699),i=r(1697);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},(e,t,r)=>{"use strict";var n,i,o,a,s=r(164),u=r(162)();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)}},(e,t,r)=>{"use strict";var n=r(1697),i=r(178),o=r(1703),a=r(1706),s=r(1707),u=i(a());n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},(e,t,r)=>{"use strict";var n=r(1704),i=r(171),o=Object;e.exports=n((function(){if(null==this||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)},(e,t,r)=>{"use strict";var n=r(180),i=r(183)(),o=r(1705).functionsHaveConfigurableNames(),a=r(171);e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(i?n(e,"name",t,!0,!0):n(e,"name",t)),e}},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},(e,t,r)=>{"use strict";var n=r(1703),i=r(1697).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.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}},(e,t,r)=>{"use strict";var n=r(1697).supportsDescriptors,i=r(1706),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}},(e,t,r)=>{"use strict";var n=Date.prototype.getDay,i=Object.prototype.toString,o=r(162)();e.exports=function(e){return"object"==typeof e&&null!==e&&(o?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===i.call(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_MARGINS:()=>f,MarginPropType:()=>l,getInnerDimensions:()=>u,getRadialLayoutMargin:()=>c});var n=r(272),i=r.n(n);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){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){var r=e.margin,n=e.width,i=e.height,o=a(a({},t),"number"==typeof r?{left:r,right:r,top:r,bottom:r}:r),s=o.left,u=void 0===s?0:s,c=o.top,l=void 0===c?0:c,f=o.right,p=void 0===f?0:f,d=o.bottom,h=void 0===d?0:d;return{marginLeft:u,marginTop:l,marginRight:p,marginBottom:h,innerHeight:i-h-l,innerWidth:n-u-p}}function c(e,t,r){var n=e/2-r,i=t/2-r;return{bottom:i,left:n,right:n,top:i}}var l=i().oneOfType([i().shape({left:i().number,top:i().number,right:i().number,bottom:i().number}),i().number]),f={left:40,right:10,top:10,bottom:40}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(270),i=r(272),o=r.n(i),a=r(1485),s=r(1469),u=r(1560);function c(e){return c="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},c(e)}function l(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=30;function v(e,t,r,n,i){e.clearRect(0,0,r,t),n.forEach((function(t){var r=t.interpolator,n=t.newProps,o=t.animation?r?r(i/y):r:function(){return{}};t.renderLayer(m(m({},n),o),e)}))}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(c,e);var t,r,i,o=p(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,i=[{key:"defaultProps",get:function(){return{pixelRatio:window&&window.devicePixelRatio||1}}}],(r=[{key:"componentDidMount",value:function(){var e=this.canvas.getContext("2d");if(e){var t=this.props.pixelRatio;e&&(e.scale(t,t),this.drawChildren(null,this.props,e))}}},{key:"componentDidUpdate",value:function(e){this.drawChildren(e,this.props,this.canvas.getContext("2d"))}},{key:"drawChildren",value:function(e,t,r){var n=t.children,i=t.innerHeight,o=t.innerWidth,c=t.marginBottom,l=t.marginLeft,f=t.marginRight,p=t.marginTop;if(r){var d,h,g=n.find((function(e){return e.props.animation})),b=i+p+c,_=o+l+f,S=(d=t.children,h=e?e.children:[],d.map((function(e,t){var r=h[t]?h[t].props:{},n=e.props,i=(0,s.extractAnimatedPropValues)(m(m({},r),{},{animatedProps:u.ANIMATED_SERIES_PROPS})),o=n?(0,s.extractAnimatedPropValues)(m(m({},n),{},{animatedProps:u.ANIMATED_SERIES_PROPS})):null,c=(0,a.default)(i,o);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:c}})));g?function(e,t,r,n){var i=0,o=setInterval((function(){e?(v(e,t,r,n,i),i>y&&clearInterval(o),i+=1):clearInterval(o)}),1)}(r,b,_,S):v(r,b,_,S)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.innerHeight,i=t.innerWidth,o=t.marginBottom,a=t.marginLeft,s=t.marginRight,u=t.marginTop,c=t.pixelRatio,l=r+u+o,f=i+a+s;return n.default.createElement("div",{style:{left:0,top:0},className:"rv-xy-canvas"},n.default.createElement("canvas",{className:"rv-xy-canvas-element",height:l*c,width:f*c,style:{height:"".concat(l,"px"),width:"".concat(f,"px")},ref:function(t){return e.canvas=t}}),this.props.children)}}])&&l(t.prototype,r),i&&l(t,i),c}(n.Component);b.displayName="CanvasWrapper",b.propTypes={marginBottom:o().number.isRequired,marginLeft:o().number.isRequired,marginRight:o().number.isRequired,marginTop:o().number.isRequired,innerHeight:o().number.isRequired,innerWidth:o().number.isRequired,pixelRatio:o().number.isRequired};const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(270),i=r(272),o=r.n(i),a=r(1628),s=r(1712);function u(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=a.ORIENTATION.TOP,p=a.ORIENTATION.BOTTOM,d=c(c({},s.default.propTypes),{},{orientation:o().oneOf([f,p])}),h={orientation:p,attr:"x",attrAxis:"y"};function m(e){return n.default.createElement(s.default,e)}m.displayName="XAxis",m.propTypes=d,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1628),u=r(1499),c=r(1562),l=r(1713),f=r(1714),p=r(1715);function d(e){return d="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},d(e)}function h(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(){return y=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},y.apply(this,arguments)}function v(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 b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var E=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],w=s.ORIENTATION.LEFT,O=s.ORIENTATION.RIGHT,x=s.ORIENTATION.TOP,T=s.ORIENTATION.BOTTOM,k={orientation:o().oneOf([w,O,x,T]),attr:o().string.isRequired,attrAxis:o().string,width:o().number,height:o().number,top:o().number,left:o().number,title:o().string,style:o().object,className:o().string,hideTicks:o().bool,hideLine:o().bool,on0:o().bool,tickLabelAngle:o().number,tickSize:o().number,tickSizeInner:o().number,tickSizeOuter:o().number,tickPadding:o().number,tickValues:o().arrayOf(o().oneOfType([o().number,o().string])),tickFormat:o().func,tickTotal:o().number,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},C={className:"",on0:!1,style:{},tickSize:6,tickPadding:8,orientation:T},I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(d,e);var t,r,i,o=_(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),o.apply(this,arguments)}return t=d,(r=[{key:"_getDefaultAxisProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop,i=e.marginBottom,o=e.marginLeft,a=e.marginRight,u=e.orientation;return u===T?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:r+n,left:o,width:t,height:i}:u===x?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:0,left:o,width:t,height:n}:u===w?{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:0,width:o,height:r}:{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:o+t,width:a,height:r}}},{key:"render",value:function(){var e=this.props.animation;if(e){var t=e.nonAnimatedProps?E.filter((function(t){return e.nonAnimatedProps.indexOf(t)<0})):E;return n.default.createElement(a.default,y({},this.props,{animatedProps:t}),n.default.createElement(d,y({},this.props,{animation:null})))}var r=m(m({},this._getDefaultAxisProps()),this.props),i=r.attrAxis,o=r.className,s=r.height,h=r.hideLine,g=r.hideTicks,v=r.left,b=r.marginTop,_=r.on0,S=r.orientation,x=r.position,T=r.style,k=r.title,C=r.top,I=r.width,R=[w,O].indexOf(S)>-1,A=R?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",P=v,D=C;if(_){var N=(0,u.getAttributeScale)(r,i);R?P=N(0):D=b+N(0)}return n.default.createElement("g",{transform:"translate(".concat(P,",").concat(D,")"),className:(0,c.getCombinedClassName)("rv-xy-plot__axis",A,o),style:T},!h&&n.default.createElement(l.default,{height:s,width:I,orientation:S,style:m(m({},T),T.line)}),!g&&n.default.createElement(f.default,y({},r,{style:m(m({},T),T.ticks)})),k?n.default.createElement(p.default,{position:x,title:k,height:s,width:I,style:m(m({},T),T.title),orientation:S}):null)}}])&&v(t.prototype,r),i&&v(t,i),d}(n.PureComponent);I.displayName="Axis",I.propTypes=k,I.defaultProps=C,I.requiresSVG=!0;const R=I},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(270),i=r(272),o=r.n(i),a=r(1628);function s(){return s=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},s.apply(this,arguments)}var u=a.ORIENTATION.LEFT,c=a.ORIENTATION.RIGHT,l=a.ORIENTATION.TOP,f=a.ORIENTATION.BOTTOM,p={height:o().number.isRequired,style:o().object,orientation:o().oneOf([u,c,l,f]).isRequired,width:o().number.isRequired};function d(e){var t,r=e.orientation,i=e.width,o=e.height,a=e.style;return t=r===u?{x1:i,x2:i,y1:0,y2:o}:r===c?{x1:0,x2:0,y1:0,y2:o}:r===l?{x1:0,x2:i,y1:o,y2:o}:{x1:0,x2:i,y1:0,y2:0},n.default.createElement("line",s({},t,{className:"rv-xy-plot__axis__line",style:a}))}d.defaultProps={style:{}},d.displayName="AxisLine",d.propTypes=p;const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(270),i=r(272),o=r.n(i),a=r(1628),s=r(1499);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},u(e)}function c(){return c=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},c.apply(this,arguments)}function l(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=a.ORIENTATION.LEFT,v=a.ORIENTATION.RIGHT,b=a.ORIENTATION.TOP,_=a.ORIENTATION.BOTTOM,S={height:o().number.isRequired,orientation:o().oneOf([y,v,b,_]).isRequired,style:o().object,width:o().number.isRequired};var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,r,i,o=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return t=u,(r=[{key:"_areTicksWrapped",value:function(){var e=this.props.orientation;return e===y||e===b}},{key:"_getTickContainerPropsGetterFn",value:function(){return this._isAxisVertical()?function(e){return{transform:"translate(0, ".concat(e,")")}}:function(e){return{transform:"translate(".concat(e,", 0)")}}}},{key:"_getTickLabelProps",value:function(){var e,t=this.props,r=t.orientation,n=t.tickLabelAngle,i=t.tickSize,o=t.tickSizeOuter,a=void 0===o?i:o,s=t.tickPadding,u=void 0===s?i:s;e=r===y||r===_&&n?"end":r===v||r===b&&n?"start":"middle";var c=this._isAxisVertical(),l=(this._areTicksWrapped()?-1:1)*(a+u),f=(c?"translate(".concat(l,", 0)"):"translate(0, ".concat(l,")"))+(n?" rotate(".concat(n,")"):"");return{textAnchor:e,dy:r===b||n?"0":r===_?"0.72em":"0.32em",transform:f}}},{key:"_getTickLineProps",value:function(){var e,t=this.props,r=t.tickSize,n=t.tickSizeOuter,i=void 0===n?r:n,o=t.tickSizeInner,a=void 0===o?r:o,s=this._isAxisVertical(),u=s?"y":"x",c=s?"x":"y",l=this._areTicksWrapped()?-1:1;return p(e={},"".concat(u,"1"),0),p(e,"".concat(u,"2"),0),p(e,"".concat(c,"1"),-l*a),p(e,"".concat(c,"2"),l*i),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===y||e===v}},{key:"render",value:function(){var e=this.props,t=e.attr,r=e.orientation,i=e.width,o=e.height,u=e.style,l=e.tickFormat,p=e.tickTotal,d=e.tickValues,h=r===y?i:0,m=r===b?o:0,g=(0,s.getAttributeScale)(this.props,t),v=(0,a.getTickValues)(g,p,d),_=function(e,t,r){return r||(e.tickFormat?e.tickFormat(t):function(e){return e})}(g,p,l),S=this._getTickContainerPropsGetterFn(),E=this._getTickLineProps(),w=this._getTickLabelProps(),O=v.map((function(e,t){var r=g(e),o=_(e,t,g,p),a=n.default.isValidElement(o)&&!["tspan","textPath"].includes(o.type),s=o&&"string"!=typeof o.type;return n.default.createElement("g",c({key:t},S(r,0),{className:"rv-xy-plot__axis__tick",style:u}),n.default.createElement("line",c({},E,{className:"rv-xy-plot__axis__tick__line",style:f(f({},u),u.line)})),a?n.default.cloneElement(o,s?f(f({},w),{},{containerWidth:i,tickCount:v.length}):void 0):n.default.createElement("text",c({},w,{className:"rv-xy-plot__axis__tick__text",style:f(f({},u),u.text)}),o))}));return n.default.createElement("g",{transform:"translate(".concat(h,", ").concat(m,")"),className:"rv-xy-plot__axis__ticks"},O)}}])&&d(t.prototype,r),i&&d(t,i),u}(n.default.Component);E.defaultProps={style:{}},E.displayName="AxisTicks",E.propTypes=S,E.requiresSVG=!0;const w=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(270),i=r(272),o=r.n(i),a=r(1628);function s(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=16,f=a.ORIENTATION.LEFT,p=a.ORIENTATION.RIGHT,d=a.ORIENTATION.TOP,h=a.ORIENTATION.BOTTOM,m={width:o().number.isRequired,height:o().number.isRequired,orientation:o().oneOf([f,p,d,h]).isRequired,style:o().object,title:o().string.isRequired};function g(e){var t=e.orientation,r=e.position,i=e.width,o=e.height,a=e.style,s=e.title,m=t===d?o:0,g="translate(".concat(t===f?i:0,", ").concat(m,")"),y=function(e,t){var r;return c(r={},f,{end:{x:l,y:6,rotation:-90,textAnchor:"end"},middle:{x:l,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:l,y:t-6,rotation:-90,textAnchor:"start"}}),c(r,p,{end:{x:-8,y:6,rotation:-90,textAnchor:"end"},middle:{x:-8,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:-8,y:t-6,rotation:-90,textAnchor:"start"}}),c(r,d,{start:{x:6,y:l,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:l,rotation:0,textAnchor:"middle"},end:{x:e-6,y:l,rotation:0,textAnchor:"end"}}),c(r,h,{start:{x:6,y:-6,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:-6,rotation:0,textAnchor:"middle"},end:{x:e-6,y:-6,rotation:0,textAnchor:"end"}}),r}(i,o)[t][r],v=y.x,b=y.y,_=y.rotation,S=y.textAnchor,E="translate(".concat(v,", ").concat(b,") rotate(").concat(_,")");return n.default.createElement("g",{transform:g,className:"rv-xy-plot__axis__title"},n.default.createElement("g",{style:u({textAnchor:S},a),transform:E},n.default.createElement("text",{style:a},s)))}g.displayName="AxisTitle",g.propTypes=m,g.defaultProps={position:"end"};const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(270),i=r(272),o=r.n(i),a=r(1628),s=r(1712);function u(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=a.ORIENTATION.LEFT,p=a.ORIENTATION.RIGHT,d=c(c({},s.default.propTypes),{},{orientation:o().oneOf([f,p])}),h={orientation:f,attr:"y",attrAxis:"x"};function m(e){return n.default.createElement(s.default,e)}m.displayName="YAxis",m.propTypes=d,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(270),i=r(272),o=r.n(i),a=r(1561),s=r(1562),u={className:o().string,height:o().number,endColor:o().string,endTitle:o().oneOfType([o().number,o().string]).isRequired,midColor:o().string,midTitle:o().oneOfType([o().number,o().string]),startColor:o().string,startTitle:o().oneOfType([o().number,o().string]).isRequired,width:o().number},c={className:"",startColor:a.CONTINUOUS_COLOR_RANGE[0],endColor:a.CONTINUOUS_COLOR_RANGE[1]};function l(e){var t=e.startColor,r=e.midColor,i=e.endColor,o=e.startTitle,a=e.midTitle,u=e.endTitle,c=e.height,l=e.width,f=e.className,p=[t];return r&&p.push(r),p.push(i),n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-continuous-color-legend",f),style:{width:l,height:c}},n.default.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, ".concat(p.join(","),")")}}),n.default.createElement("div",{className:"rv-legend-titles"},n.default.createElement("span",{className:"rv-legend-titles__left"},o),n.default.createElement("span",{className:"rv-legend-titles__right"},u),a?n.default.createElement("span",{className:"rv-legend-titles__center"},a):null))}l.displayName="ContinuousColorLegend",l.propTypes=u,l.defaultProps=c;const f=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(270),i=r(272),o=r.n(i),a=r(1562),s={className:o().string,circlesTotal:o().number,endSize:o().number,endTitle:o().oneOfType([o().number,o().string]).isRequired,height:o().number,startSize:o().number,startTitle:o().oneOfType([o().number,o().string]).isRequired,width:o().number};function u(e){for(var t=e.startTitle,r=e.endTitle,i=e.startSize,o=e.endSize,s=e.circlesTotal,u=e.height,c=e.width,l=e.className,f=[],p=(o-i)/(s-1),d=0;d<s;d++){var h=p*d+i;f.push(n.default.createElement("div",{key:d,className:"rv-bubble",style:{width:h,height:h,borderRadius:h/2}})),f.push(" ")}return n.default.createElement("div",{className:(0,a.getCombinedClassName)("rv-continuous-size-legend",l),style:{width:c,height:u}},n.default.createElement("div",{className:"rv-bubbles",style:{height:o}},f,n.default.createElement("div",{className:"rv-spacer"})),n.default.createElement("div",{className:"rv-legend-titles"},n.default.createElement("span",{className:"rv-legend-titles__left"},t),n.default.createElement("span",{className:"rv-legend-titles__right"},r)))}u.displayName="ContinuousSizeLegend",u.propTypes=s,u.defaultProps={circlesTotal:10,className:"",endSize:20,startSize:2};const c=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(270),i=r(272),o=r.n(i),a=r(1720),s=r(1561),u=r(1562);function c(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=e.className,r=e.colors,i=e.height,o=e.items,s=e.onItemClick,c=e.onItemMouseEnter,f=e.onItemMouseLeave,p=e.orientation,d=e.style,h=e.width;return n.default.createElement("div",{className:(0,u.getCombinedClassName)("rv-discrete-color-legend",p,t),style:l({width:h,height:i},d)},o.map((function(e,t){return n.default.createElement(a.default,{title:e.title?e.title:e,color:e.color?e.color:r[t%r.length],strokeDasharray:e.strokeDasharray,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth,disabled:Boolean(e.disabled),orientation:p,key:t,onClick:s?function(r){return s(e,t,r)}:null,onMouseEnter:c?function(r){return c(e,t,r)}:null,onMouseLeave:c?function(r){return f(e,t,r)}:null})})))}p.displayName="DiscreteColorLegendItem",p.propTypes={className:o().string,items:o().arrayOf(o().oneOfType([o().shape({title:o().oneOfType([o().string,o().element]).isRequired,color:o().string,disabled:o().bool}),o().string.isRequired,o().element])).isRequired,onItemClick:o().func,onItemMouseEnter:o().func,onItemMouseLeave:o().func,height:o().number,width:o().number,orientation:o().oneOf(["vertical","horizontal"])},p.defaultProps={className:"",colors:s.DISCRETE_COLOR_RANGE,orientation:"vertical"};const d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(270),i=r(272),o=r.n(i);function a(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?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={dashed:"6, 2",solid:null};function l(e){var t=e.color,r=e.strokeDasharray,i=e.strokeStyle,o=e.strokeWidth,a=e.disabled,u=e.onClick,l=e.orientation,f=e.onMouseEnter,p=e.onMouseLeave,d=e.title,h="rv-discrete-color-legend-item ".concat(l);a&&(h+=" disabled"),u&&(h+=" clickable");var m=c[i]||r;return n.default.createElement("div",{className:h,onClick:u,onMouseEnter:f,onMouseLeave:p},n.default.createElement("svg",{className:"rv-discrete-color-legend-item__color",height:2,width:14},n.default.createElement("path",{className:"rv-discrete-color-legend-item__color__path",d:"M 0, 1 L 14, 1",style:s(s(s({},o?{strokeWidth:o}:{}),m?{strokeDasharray:m}:{}),{},{stroke:a?null:t})})),n.default.createElement("span",{className:"rv-discrete-color-legend-item__title"},d))}l.propTypes={color:o().string.isRequired,disabled:o().bool,title:o().oneOfType([o().string,o().element]).isRequired,onClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func,orientation:o().oneOf(["vertical","horizontal"]).isRequired,strokeDasharray:o().string,strokeWidth:o().number,strokeStyle:o().oneOf(Object.keys(c))},l.defaultProps={disabled:!1,strokeStyle:"solid"},l.displayName="DiscreteColorLegendItem";const f=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(270),i=r(272),o=r.n(i),a=r(1719),s=r(1562);function u(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=c(c({},a.default.propTypes),{},{searchText:o().string,onSearchChange:o().func,searchPlaceholder:o().string,searchFn:o().func}),p={className:"",searchText:"",searchFn:function(e,t){return e.filter((function(e){return-1!==String(e.title||e).toLowerCase().indexOf(t)}))}};function d(e){var t=e.className,r=e.colors,i=e.height,o=e.items,u=e.onItemClick,c=e.onItemMouseEnter,l=e.onItemMouseLeave,f=e.onSearchChange,p=e.orientation,d=e.searchFn,h=e.searchPlaceholder,m=e.searchText,g=e.width,y=f?function(e){var t=e.target.value;return f(t)}:null,v=d(o,m);return n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-search-wrapper",t),style:{width:g,height:i}},n.default.createElement("form",{className:"rv-search-wrapper__form"},n.default.createElement("input",{type:"search",placeholder:h,className:"rv-search-wrapper__form__input",value:m,onChange:y})),n.default.createElement("div",{className:"rv-search-wrapper__contents"},n.default.createElement(a.default,{colors:r,items:v,onItemClick:u,onItemMouseEnter:c,onItemMouseLeave:l,orientation:p})))}d.propTypes=f,d.defaultProps=p,d.displayName="SearchableDiscreteColorLegend";const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>A});var n=r(270),i=r(272),o=r.n(i),a=r(1509),s=r(1526),u=r(1469),c=r(1691),l=r(1561),f=r(1709),p=r(1562),d=r(1678),h=r(1677),m=r(1676),g=r(1657),y=r(1665);function v(e){return v="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},v(e)}function b(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 _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(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 x(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){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k="rv-parallel-coordinates-chart",C=(0,s.format)(".2r");function I(e){var t=e.domains,r=e.style;return t.map((function(e){return{x:e.name,y:1.1,label:e.name,style:r}}))}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(s,e);var t,r,i,o=S(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(E(e=o.call.apply(o,[this].concat(r))),"state",{brushFilters:{}}),e}return t=s,(r=[{key:"render",value:function(){var e=this,t=this.state.brushFilters,r=this.props,i=r.animation,o=r.brushing,s=r.className,u=r.children,l=r.colorRange,v=r.data,b=r.domains,_=r.height,S=r.hideInnerMostValues,E=r.margin,w=r.onMouseLeave,O=r.onMouseEnter,C=r.showMarks,R=r.style,A=r.tickFormat,P=r.width,D=function(e){var t=e.animation,r=e.domains,i=e.style,o=e.tickFormat;return r.map((function(e,r){var a=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(r,"-axis"),axisStart:{x:e.name,y:0},axisEnd:{x:e.name,y:1},axisDomain:a,numberOfTicks:5,tickValue:function(t){return e.tickFormat?e.tickFormat(t):o(t)},style:i.axes})}))}({domains:b,animation:i,hideInnerMostValues:S,style:R,tickFormat:A}),N=function(e){var t=e.animation,r=e.brushFilters,i=e.colorRange,o=e.domains,s=e.data,u=e.style,c=e.showMarks,l=o.reduce((function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e}),{});return s.map((function(e,a){var s=!0,f=o.map((function(t){var n=t.getValue,i=t.name,o=l[i](n?n(e):e[i]),a=r[i];return a&&(o<a.min||o>a.max)&&(s=!1),{x:i,y:o}})),p="".concat(k,"-line"),m="".concat(p," ").concat(k,"-line-unselected"),g={animation:t,className:s?p:m,key:"".concat(a,"-polygon"),data:f,color:e.color||i[a%i.length],style:x(x({},u.lines),e.style||{})};return s||(g.style=x(x({},g.style),u.deselectedLineStyle)),c?n.default.createElement(h.default,g):n.default.createElement(d.default,g)}))}({animation:i,brushFilters:t,colorRange:l,domains:b,data:v,showMarks:C,style:R}),M=n.default.createElement(m.default,{animation:!0,key:s,className:"".concat(k,"-label"),data:I({domains:b,style:R.labels})}),L=(0,f.getInnerDimensions)(this.props,f.DEFAULT_MARGINS),j=L.marginLeft,B=L.marginRight;return n.default.createElement(c.default,{height:_,width:P,margin:E,dontCheckIfEmpty:!0,className:(0,p.getCombinedClassName)(s,k),onMouseLeave:w,onMouseEnter:O,xType:"ordinal",yDomain:[0,1]},u,D.concat(N).concat(M),o&&b.map((function(r){var i=function(n){e.setState({brushFilters:x(x({},t),{},T({},r.name,n?{min:n.bottom,max:n.top}:null))})};return n.default.createElement(y.default,{key:r.name,drag:!0,highlightX:r.name,onBrushEnd:i,onDragEnd:i,highlightWidth:(P-j-B)/b.length,enableX:!1})})))}}])&&b(t.prototype,r),i&&b(t,i),s}(n.Component);R.displayName="ParallelCoordinates",R.propTypes={animation:u.AnimationPropType,brushing:o().bool,className:o().string,colorType:o().string,colorRange:o().arrayOf(o().string),data:o().arrayOf(o().object).isRequired,domains:o().arrayOf(o().shape({name:o().string.isRequired,domain:o().arrayOf(o().number).isRequired,tickFormat:o().func})).isRequired,height:o().number.isRequired,margin:f.MarginPropType,style:o().shape({axes:o().object,labels:o().object,lines:o().object}),showMarks:o().bool,tickFormat:o().func,width:o().number.isRequired},R.defaultProps={className:"",colorType:"category",colorRange:l.DISCRETE_COLOR_RANGE,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},lines:{strokeWidth:1,strokeOpacity:1},deselectedLineStyle:{strokeOpacity:.1}},tickFormat:C};const A=R},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(270),i=r(272),o=r.n(i),a=r(1509),s=r(1526),u=r(1469),c=r(1691),l=r(1561),f=r(1709),p=r(1562),d=r(1679),h=r(1683),m=r(1676),g=r(1657);function y(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?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-radar-chart",S=(0,s.format)(".2r");function E(e){var t=1e-12;return Math.abs(e)<=t?e=0:e>0?Math.abs(e-.5)<=t&&(e=.5):e<0&&Math.abs(e+.5)<=t&&(e=-.5),e}function w(e){var t=e.domains,r=e.startingAngle,n=e.style;return t.map((function(e,i){var o=e.name,a=i/t.length*Math.PI*2+r;return{x:1.2*Math.cos(a),y:1.2*Math.sin(a),label:o,style:n}}))}function O(e){var t=e.animation,r=e.className,i=e.children,o=e.colorRange,s=e.data,u=e.domains,l=e.height,f=e.hideInnerMostValues,y=e.margin,b=e.onMouseLeave,S=e.onMouseEnter,O=e.startingAngle,x=e.style,T=e.tickFormat,k=e.width,C=e.renderAxesOverPolygons,I=e.onValueMouseOver,R=e.onValueMouseOut,A=e.onSeriesMouseOver,P=e.onSeriesMouseOut,D=function(e){var t=e.animation,r=e.domains,i=e.startingAngle,o=e.style,a=e.tickFormat,s=e.hideInnerMostValues;return r.map((function(e,u){var c=u/r.length*Math.PI*2+i,l=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(u,"-axis"),axisStart:{x:0,y:0},axisEnd:{x:E(Math.cos(c)),y:E(Math.sin(c))},axisDomain:l,numberOfTicks:5,tickValue:function(t){return s&&t===l[0]?"":e.tickFormat?e.tickFormat(t):a(t)},style:o.axes})}))}({domains:u,animation:t,hideInnerMostValues:f,startingAngle:O,style:x,tickFormat:T}),N=function(e){var t=e.animation,r=e.colorRange,i=e.domains,o=e.data,s=e.style,u=e.startingAngle,c=e.onSeriesMouseOver,l=e.onSeriesMouseOut,f=i.reduce((function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e}),{});return o.map((function(e,o){var a=i.map((function(t,r){var n=t.name,o=t.getValue,a=o?o(e):e[n],s=r/i.length*Math.PI*2+u,c=Math.max(f[n](a),0);return{x:c*Math.cos(s),y:c*Math.sin(s),name:e.name}}));return n.default.createElement(h.default,{animation:t,className:"".concat(_,"-polygon"),key:"".concat(o,"-polygon"),data:a,style:v({stroke:e.color||e.stroke||r[o%r.length],fill:e.color||e.fill||r[o%r.length]},s.polygons),onSeriesMouseOver:c,onSeriesMouseOut:l})}))}({animation:t,colorRange:o,domains:u,data:s,startingAngle:O,style:x,onSeriesMouseOver:A,onSeriesMouseOut:P}),M=function(e){var t=e.animation,r=e.domains,i=e.data,o=e.startingAngle,s=e.style,u=e.onValueMouseOver,c=e.onValueMouseOut;if(u){var l=r.reduce((function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e}),{});return i.map((function(e,i){var a=r.map((function(t,n){var i=t.name,a=t.getValue,s=a?a(e):e[i],u=n/r.length*Math.PI*2+o,c=Math.max(l[i](s),0);return{x:c*Math.cos(u),y:c*Math.sin(u),domain:i,value:s,dataName:e.name}}));return n.default.createElement(d.default,{animation:t,className:"".concat(_,"-polygonPoint"),key:"".concat(i,"-polygonPoint"),data:a,size:10,style:v(v({},s.polygons),{},{fill:"transparent",stroke:"transparent"}),onValueMouseOver:u,onValueMouseOut:c})}))}}({animation:t,colorRange:o,domains:u,data:s,startingAngle:O,style:x,onValueMouseOver:I,onValueMouseOut:R}),L=n.default.createElement(m.default,{animation:t,key:r,className:"".concat(_,"-label"),data:w({domains:u,style:x.labels,startingAngle:O})});return n.default.createElement(c.default,{height:l,width:k,margin:y,dontCheckIfEmpty:!0,className:(0,p.getCombinedClassName)(r,_),onMouseLeave:b,onMouseEnter:S,xDomain:[-1,1],yDomain:[-1,1]},i,!C&&D.concat(N).concat(L).concat(M),C&&N.concat(L).concat(D).concat(M))}O.displayName="RadarChart",O.propTypes={animation:u.AnimationPropType,className:o().string,colorType:o().string,colorRange:o().arrayOf(o().string),data:o().arrayOf(o().object).isRequired,domains:o().arrayOf(o().shape({name:o().string.isRequired,domain:o().arrayOf(o().number).isRequired,tickFormat:o().func})).isRequired,height:o().number.isRequired,hideInnerMostValues:o().bool,margin:f.MarginPropType,startingAngle:o().number,style:o().shape({axes:o().object,labels:o().object,polygons:o().object}),tickFormat:o().func,width:o().number.isRequired,renderAxesOverPolygons:o().bool,onValueMouseOver:o().func,onValueMouseOut:o().func,onSeriesMouseOver:o().func,onSeriesMouseOut:o().func},O.defaultProps={className:"",colorType:"category",colorRange:l.DISCRETE_COLOR_RANGE,hideInnerMostValues:!0,startingAngle:Math.PI/2,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},polygons:{strokeWidth:.5,strokeOpacity:1,fillOpacity:.1}},tickFormat:S,renderAxesOverPolygons:!1};const x=O},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(270),i=r(272),o=r.n(i),a=r(1575),s=r(1469),u=r(1559),c=r(1676),l=r(1691),f=r(1561),p=r(1709),d=r(1560),h=r(1562);function m(){return m=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},m.apply(this,arguments)}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 y(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){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=15;function _(e){var t=e.animation,r=e.className,i=e.children,o=e.colorType,s=e.data,f=e.getAngle,g=e.getLabel,v=e.getSubLabel,_=e.height,S=e.hideRootNode,E=e.innerRadius,w=e.labelsAboveChildren,O=e.labelsRadiusMultiplier,x=e.labelsStyle,T=e.margin,k=e.onMouseLeave,C=e.onMouseEnter,I=e.radius,R=e.showLabels,A=e.style,P=e.width,D=function(e){var t=e.data,r=e.getAngle;return(0,a.default)().sort(null).value(r)(t).reverse().map((function(e,t){return y(y({},e.data),{},{angle0:e.startAngle,angle:e.endAngle,radius0:e.data.innerRadius||0,radius:e.data.radius||1,color:e.data.color||t})}))}({data:s,height:_,hideRootNode:S,width:P,getAngle:f}),N=(0,d.getRadialDomain)(D),M=y(y({colorType:o},e),{},{animation:t,radiusDomain:[0,N],data:D,radiusNoFallBack:!0,style:A,arcClassName:"rv-radial-chart__series--pie__slice"});I&&(M.radiusDomain=[0,1],M.radiusRange=[E||0,I],M.radiusType="linear");var L=I||function(e,t){return Math.min(e,t)/2-b}(P,_),j=(0,p.getRadialLayoutMargin)(P,_,L),B=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.1,n=t.getLabel,i=t.getSubLabel;return e.reduce((function(e,t){var o=t.angle,a=t.angle0,s=t.radius,u=(o+a)/2*-1+Math.PI/2,c=[];return n(t)&&c.push({angle:u,radius:s*r,label:n(t)}),i(t)&&c.push({angle:u,radius:s*r,label:i(t),style:{fontSize:10},yOffset:12}),e.concat(c)}),[])}(D,{getLabel:g,getSubLabel:v},O);return n.default.createElement(l.default,{height:_,width:P,margin:y(y({},j),T),className:(0,h.getCombinedClassName)(r,"rv-radial-chart"),onMouseLeave:k,onMouseEnter:C,xDomain:[-N,N],yDomain:[-N,N]},n.default.createElement(u.default,m({},M,{getAngle:function(e){return e.angle}})),R&&!w&&n.default.createElement(c.default,{data:B,style:x}),i,R&&w&&n.default.createElement(c.default,{data:B,style:x}))}_.displayName="RadialChart",_.propTypes={animation:s.AnimationPropType,className:o().string,colorType:o().string,data:o().arrayOf(o().shape({angle:o().number,className:o().string,label:o().string,radius:o().number,style:o().object})).isRequired,getAngle:o().func,getAngle0:o().func,padAngle:o().oneOfType([o().func,o().number]),getRadius:o().func,getRadius0:o().func,getLabel:o().func,height:o().number.isRequired,labelsAboveChildren:o().bool,labelsStyle:o().object,margin:p.MarginPropType,onValueClick:o().func,onValueMouseOver:o().func,onValueMouseOut:o().func,showLabels:o().bool,style:o().object,subLabel:o().func,width:o().number.isRequired},_.defaultProps={className:"",colorType:"category",colorRange:f.DISCRETE_COLOR_RANGE,padAngle:0,getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},getRadius:function(e){return e.radius},getRadius0:function(e){return e.radius0},getLabel:function(e){return e.label},getSubLabel:function(e){return e.subLabel}};const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(270),i=r(272),o=r.n(i),a=r(1726),s=r(1691),u=r(1709),c=r(1562),l=r(1687),f=r(1676),p=r(1689),d=r(1561),h=r(1740);function m(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(){return _=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 S=function(e){return e},E={justify:a.sankeyJustify,center:a.sankeyCenter,left:a.sankeyLeft,right:a.sankeyRight},w={top:20,left:20,right:20,bottom:20};function O(e){var t=e.align,r=e.animation,i=e.children,o=e.className,m=e.hasVoronoi,y=e.height,b=e.hideLabels,S=e.labelRotation,O=e.layout,x=e.links,T=e.linkOpacity,k=e.margin,C=e.nodePadding,I=e.nodes,R=e.nodeWidth,A=e.onValueClick,P=e.onValueMouseOver,D=e.onValueMouseOut,N=e.onLinkClick,M=e.onLinkMouseOver,L=e.onLinkMouseOut,j=e.style,B=e.width;if(0===I.length)return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",o)}));var F=v(new Array(I.length)).map((function(e,t){return g({},I[t])})),U=v(new Array(x.length)).map((function(e,t){return g({},x[t])})),H=(0,u.getInnerDimensions)({margin:k,height:y,width:B},w),q=H.marginLeft,z=H.marginTop,W=H.marginRight,V=H.marginBottom,G=(0,a.sankey)().extent([[q,z],[B-W,y-V-z]]).nodeWidth(R).nodePadding(C).nodes(F).links(U).nodeAlign(E[t]).iterations(O);G(F);var $=G.nodeWidth(),K=(0,a.sankeyLinkHorizontal)();return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",o)}),U.map((function(e,t){return n.default.createElement(h.default,{style:j.links,data:K(e),opacity:e.opacity||T,color:e.color,onLinkClick:N,onLinkMouseOver:M,onLinkMouseOut:L,strokeWidth:Math.max(e.width,1),node:e,nWidth:$,key:"link-".concat(t)})})),n.default.createElement(l.default,{animation:r,className:(0,c.getCombinedClassName)(o,"rv-sankey__node"),data:F.map((function(e){return g(g({},e),{},{y:e.y1-z,y0:e.y0-z,x:e.x1,x0:e.x0,color:e.color||d.DISCRETE_COLOR_RANGE[0],sourceLinks:null,targetLinks:null})})),style:j.rects,onValueClick:A,onValueMouseOver:P,onValueMouseOut:D,colorType:"literal"}),!b&&n.default.createElement(f.default,{animation:r,className:o,rotation:S,labelAnchorY:"text-before-edge",data:F.map((function(e,t){return g({x:e.x0+(e.x0<B/2?$+10:-10),y:(e.y0+e.y1)/2-z,label:e.name,style:g({textAnchor:e.x0<B/2?"start":"end",dy:"-.5em"},j.labels)},I[t])}))}),m&&n.default.createElement(p.default,{className:"rv-sankey__voronoi",extent:[[-q,-z],[B+W,y+V]],nodes:F,onClick:A,onHover:P,onBlur:D,x:function(e){return e.x0+(e.x1-e.x0)/2},y:function(e){return e.y0+(e.y1-e.y0)/2}}),i)}O.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:w,nodePadding:10,nodeWidth:10,onValueMouseOver:S,onValueClick:S,onValueMouseOut:S,onLinkClick:S,onLinkMouseOver:S,onLinkMouseOut:S,style:{links:{},rects:{},labels:{}}},O.propTypes={align:o().oneOf(["justify","left","right","center"]),className:o().string,hasVoronoi:o().bool,height:o().number.isRequired,hideLabels:o().bool,labelRotation:o().number,layout:o().number,links:o().arrayOf(o().shape({source:o().oneOfType([o().number,o().object]).isRequired,target:o().oneOfType([o().number,o().object]).isRequired})).isRequired,margin:u.MarginPropType,nodePadding:o().number,nodes:o().arrayOf(o().object).isRequired,nodeWidth:o().number,onValueMouseOver:o().func,onValueClick:o().func,onValueMouseOut:o().func,onLinkClick:o().func,onLinkMouseOver:o().func,onLinkMouseOut:o().func,style:o().shape({links:o().object,rects:o().object,labels:o().object}),width:o().number.isRequired};const x=O},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sankey:()=>n.default,sankeyCenter:()=>i.center,sankeyJustify:()=>i.justify,sankeyLeft:()=>i.left,sankeyLinkHorizontal:()=>o.default,sankeyRight:()=>i.right});var n=r(1727),i=r(1728),o=r(1733)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(1731),i=r(1732),o=r(1729),a=r(1728),s=r(1730);function u(e,t){return l(e.source,t.source)||e.index-t.index}function c(e,t){return l(e.target,t.target)||e.index-t.index}function l(e,t){return e.y0-t.y0}function f(e){return e.value}function p(e){return e.index}function d(e){return e.nodes}function h(e){return e.links}function m(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function g({nodes:e}){for(const t of e){let e=t.y0,r=e;for(const r of t.sourceLinks)r.y0=e+r.width/2,e+=r.width;for(const e of t.targetLinks)e.y1=r+e.width/2,r+=e.width}}function y(){let e,t,r,y=0,v=0,b=1,_=1,S=24,E=8,w=p,O=a.justify,x=d,T=h,k=6;function C(){const a={nodes:x.apply(null,arguments),links:T.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,r]of e.entries())r.index=t,r.sourceLinks=[],r.targetLinks=[];const n=new Map(e.map(((t,r)=>[w(t,r,e),t])));for(const[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;"object"!=typeof t&&(t=r.source=m(n,t)),"object"!=typeof i&&(i=r.target=m(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(null!=r)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(r),n.sort(r)}(a),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max((0,n.default)(t.sourceLinks,f),(0,n.default)(t.targetLinks,f)):t.fixedValue}(a),function({nodes:e}){const t=e.length;let r=new Set(e),n=new Set,i=0;for(;r.size;){for(const e of r){e.depth=i;for(const{target:t}of e.sourceLinks)n.add(t)}if(++i>t)throw new Error("circular link");r=n,n=new Set}}(a),function({nodes:e}){const t=e.length;let r=new Set(e),n=new Set,i=0;for(;r.size;){for(const e of r){e.height=i;for(const{source:t}of e.targetLinks)n.add(t)}if(++i>t)throw new Error("circular link");r=n,n=new Set}}(a),function(r){const a=function({nodes:e}){const r=(0,i.default)(e,(e=>e.depth))+1,n=(b-y-S)/(r-1),o=new Array(r);for(const t of e){const e=Math.max(0,Math.min(r-1,Math.floor(O.call(null,t,r))));t.layer=e,t.x0=y+e*n,t.x1=t.x0+S,o[e]?o[e].push(t):o[e]=[t]}if(t)for(const e of o)e.sort(t);return o}(r);e=Math.min(E,(_-v)/((0,i.default)(a,(e=>e.length))-1)),function(t){const r=(0,o.default)(t,(t=>(_-v-(t.length-1)*e)/(0,n.default)(t,f)));for(const n of t){let t=v;for(const i of n){i.y0=t,i.y1=t+i.value*r,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*r}t=(_-t+e)/(n.length+1);for(let e=0;e<n.length;++e){const r=n[e];r.y0+=t*(e+1),r.y1+=t*(e+1)}M(n)}}(a);for(let e=0;e<k;++e){const t=Math.pow(.99,e),r=Math.max(1-t,(e+1)/k);R(a,t,r),I(a,t,r)}}(a),g(a),a}function I(e,r,n){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,n=0;for(const{source:r,value:i}of e.targetLinks){let o=i*(e.layer-r.layer);t+=L(r,e)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,N(e)}void 0===t&&o.sort(l),A(o,n)}}function R(e,r,n){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,n=0;for(const{target:r,value:i}of e.sourceLinks){let o=i*(r.layer-e.layer);t+=j(e,r)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,N(e)}void 0===t&&o.sort(l),A(o,n)}}function A(t,r){const n=t.length>>1,i=t[n];D(t,i.y0-e,n-1,r),P(t,i.y1+e,n+1,r),D(t,_,t.length-1,r),P(t,v,0,r)}function P(t,r,n,i){for(;n<t.length;++n){const o=t[n],a=(r-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),r=o.y1+e}}function D(t,r,n,i){for(;n>=0;--n){const o=t[n],a=(o.y1-r)*i;a>1e-6&&(o.y0-=a,o.y1-=a),r=o.y0-e}}function N({sourceLinks:e,targetLinks:t}){if(void 0===r){for(const{source:{sourceLinks:e}}of t)e.sort(c);for(const{target:{targetLinks:t}}of e)t.sort(u)}}function M(e){if(void 0===r)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(c),r.sort(u)}function L(t,r){let n=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===r)break;n+=o+e}for(const{source:e,width:i}of r.targetLinks){if(e===t)break;n-=i}return n}function j(t,r){let n=r.y0-(r.targetLinks.length-1)*e/2;for(const{source:i,width:o}of r.targetLinks){if(i===t)break;n+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===r)break;n-=i}return n}return C.update=function(e){return g(e),e},C.nodeId=function(e){return arguments.length?(w="function"==typeof e?e:(0,s.default)(e),C):w},C.nodeAlign=function(e){return arguments.length?(O="function"==typeof e?e:(0,s.default)(e),C):O},C.nodeSort=function(e){return arguments.length?(t=e,C):t},C.nodeWidth=function(e){return arguments.length?(S=+e,C):S},C.nodePadding=function(t){return arguments.length?(E=e=+t,C):E},C.nodes=function(e){return arguments.length?(x="function"==typeof e?e:(0,s.default)(e),C):x},C.links=function(e){return arguments.length?(T="function"==typeof e?e:(0,s.default)(e),C):T},C.linkSort=function(e){return arguments.length?(r=e,C):r},C.size=function(e){return arguments.length?(y=v=0,b=+e[0],_=+e[1],C):[b-y,_-v]},C.extent=function(e){return arguments.length?(y=+e[0][0],b=+e[1][0],v=+e[0][1],_=+e[1][1],C):[[y,v],[b,_]]},C.iterations=function(e){return arguments.length?(k=+e,C):k},C}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{center:()=>u,justify:()=>s,left:()=>o,right:()=>a});var n=r(1729);function i(e){return e.target.depth}function o(e){return e.depth}function a(e,t){return t-1-e.height}function s(e,t){return e.sourceLinks.length?e.depth:t-1}function u(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,n.default)(e.sourceLinks,i)-1:0}},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r=0;if(void 0===t)for(let t of e)(t=+t)&&(r+=t);else{let n=-1;for(let i of e)(i=+t(i,++n,e))&&(r+=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1734);function i(e){return[e.source.x1,e.y0]}function o(e){return[e.target.x0,e.y1]}function a(){return(0,n.linkHorizontal)().source(i).target(o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkHorizontal:()=>h,linkRadial:()=>g,linkVertical:()=>m});var n=r(1739),i=r(1735),o=r(1736),a=r(1737),s=r(1738);function u(e){return e.source}function c(e){return e.target}function l(e){var t=u,r=c,s=a.x,l=a.y,f=null;function p(){var o,a=i.slice.call(arguments),u=t.apply(this,a),c=r.apply(this,a);if(f||(f=o=(0,n.default)()),e(f,+s.apply(this,(a[0]=u,a)),+l.apply(this,a),+s.apply(this,(a[0]=c,a)),+l.apply(this,a)),o)return f=null,o+""||null}return p.source=function(e){return arguments.length?(t=e,p):t},p.target=function(e){return arguments.length?(r=e,p):r},p.x=function(e){return arguments.length?(s="function"==typeof e?e:(0,o.default)(+e),p):s},p.y=function(e){return arguments.length?(l="function"==typeof e?e:(0,o.default)(+e),p):l},p.context=function(e){return arguments.length?(f=null==e?null:e,p):f},p}function f(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function p(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t,r=(r+i)/2,n,r,n,i)}function d(e,t,r,n,i){var o=(0,s.default)(t,r),a=(0,s.default)(t,r=(r+i)/2),u=(0,s.default)(n,r),c=(0,s.default)(n,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function h(){return l(f)}function m(){return l(p)}function g(){var e=l(d);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{slice:()=>n});var n=Array.prototype.slice},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>i})},(e,t,r)=>{"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=Math.PI,i=2*n,o=1e-6,a=i-o;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new s}s.prototype=u.prototype={constructor:s,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,i,a){e=+e,t=+t,r=+r,i=+i,a=+a;var s=this._x1,u=this._y1,c=r-e,l=i-t,f=s-e,p=u-t,d=f*f+p*p;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>o)if(Math.abs(p*c-l*f)>o&&a){var h=r-s,m=i-u,g=c*c+l*l,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(d),_=a*Math.tan((n-Math.acos((g+d-y)/(2*v*b)))/2),S=_/b,E=_/v;Math.abs(S-1)>o&&(this._+="L"+(e+S*f)+","+(t+S*p)),this._+="A"+a+","+a+",0,0,"+ +(p*h>f*m)+","+(this._x1=e+E*c)+","+(this._y1=t+E*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,s,u,c){e=+e,t=+t,c=!!c;var l=(r=+r)*Math.cos(s),f=r*Math.sin(s),p=e+l,d=t+f,h=1^c,m=c?s-u:u-s;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+p+","+d:(Math.abs(this._x1-p)>o||Math.abs(this._y1-d)>o)&&(this._+="L"+p+","+d),r&&(m<0&&(m=m%i+i),m>a?this._+="A"+r+","+r+",0,1,"+h+","+(e-l)+","+(t-f)+"A"+r+","+r+",0,1,"+h+","+(this._x1=p)+","+(this._y1=d):m>o&&(this._+="A"+r+","+r+",0,"+ +(m>=n)+","+h+","+(this._x1=e+r*Math.cos(u))+","+(this._y1=t+r*Math.sin(u))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};const c=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(270),i=r(1561),o=r(1469),a=r(1560);function s(){return s=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},s.apply(this,arguments)}var u=i.DISCRETE_COLOR_RANGE[1];function c(e){var t=e.animation,r=e.data,i=e.node,l=e.opacity,f=e.color,p=e.strokeWidth,d=e.style,h=e.onLinkClick,m=e.onLinkMouseOver,g=e.onLinkMouseOut;return t?n.default.createElement(o.default,s({},e,{animatedProps:a.ANIMATED_SERIES_PROPS}),n.default.createElement(c,s({},e,{animation:null}))):n.default.createElement("path",s({d:r},d,{className:"rv-sankey__link",opacity:Number.isFinite(l)?l:.7,stroke:f||u,onClick:function(e){return h(i,e)},onMouseOver:function(e){return m(i,e)},onMouseOut:function(e){return g(i,e)},strokeWidth:p,fill:"none"}))}c.displayName="SankeyLink",c.requiresSVG=!0;const l=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(270),i=r(272),o=r.n(i),a=r(1742),s=r(1745),u=r(1509),c=r(1759),l=r(1469),f=r(1676),p=r(1559),d=r(1691),h=r(1560),m=r(1709),g=r(1562);function y(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?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-sunburst",S=["onValueMouseOver","onValueMouseOut","onValueClick","onValueRightClick","onSeriesMouseOver","onSeriesMouseOut","onSeriesClick","onSeriesRightClick"];var E=function(){};function w(e){var t=e.getAngle,r=e.getAngle0,i=e.animation,o=e.className,l=e.children,y=e.data,b=e.height,w=e.hideRootNode,O=e.getLabel,x=e.width,T=e.getSize,k=e.colorType,C=function(e){var t=e.data,r=e.height,n=e.hideRootNode,i=e.width,o=e.getSize,l=(0,a.default)(),f=(0,s.default)(t).sum(o),p=Math.min(i,r)/2-10,d=(0,u.default)().range([0,2*Math.PI]),h=(0,c.sqrt)().range([0,p]);return l(f).descendants().reduce((function(e,t,r){return n&&0===r?e:e.concat([v({angle0:Math.max(0,Math.min(2*Math.PI,d(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,d(t.x1))),radius0:Math.max(0,h(t.y0)),radius:Math.max(0,h(t.y1)),depth:t.depth,parent:t.parent},t.data)])}),[])}({data:y,height:b,hideRootNode:w,width:x,getSize:T}),I=(0,h.getRadialDomain)(C),R=(0,m.getRadialLayoutMargin)(x,b,I),A=function(e,t){var r=t.getAngle,n=t.getAngle0,i=t.getLabel,o=t.getRadius0;return e.filter(i).map((function(e){var t=-1*r(e)+Math.PI/2,i=(-1*n(e)+Math.PI/2+t)/2,a=!e.dontRotateLabel,s=-i/(2*Math.PI)*360;return v(v({},e),{},{children:null,angle:null,radius:null,x:o(e)*Math.cos(i),y:o(e)*Math.sin(i),style:v({textAnchor:s>90?"end":"start"},e.labelStyle),rotation:a?s>90?s+180:90===s?90:s:null})}))}(C,{getAngle:t,getAngle0:r,getLabel:O,getRadius0:function(e){return e.radius0}});return n.default.createElement(d.default,{height:b,hasTreeStructure:!0,width:x,className:(0,g.getCombinedClassName)(_,o),margin:R,xDomain:[-I,I],yDomain:[-I,I]},n.default.createElement(p.default,v(v({colorType:k},e),{},{animation:i,radiusDomain:[0,I],data:i?C.map((function(e,t){return v(v({},e),{},{parent:null,children:null,index:t})})):C,_data:i?C:null,arcClassName:"".concat(_,"__series--radial__arc")},S.reduce((function(t,r){var n,o=e[r];return t[r]=i?(n=o,function(e,t){return n?n(C[e.index],t):E}):o,t}),{}))),A.length>0&&n.default.createElement(f.default,{data:A,getLabel:O}),l)}w.displayName="Sunburst",w.propTypes={animation:l.AnimationPropType,getAngle:o().func,getAngle0:o().func,className:o().string,colorType:o().string,data:o().object.isRequired,height:o().number.isRequired,hideRootNode:o().bool,getLabel:o().func,onValueClick:o().func,onValueMouseOver:o().func,onValueMouseOut:o().func,getSize:o().func,width:o().number.isRequired,padAngle:o().oneOfType([o().func,o().number])},w.defaultProps={getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},className:"",colorType:"literal",getColor:function(e){return e.color},hideRootNode:!1,getLabel:function(e){return e.label},getSize:function(e){return e.size},padAngle:0};const O=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1743),i=r(1744);function o(){var e=1,t=1,r=0,o=!1;function a(a){var s=a.height+1;return a.x0=a.y0=r,a.x1=e,a.y1=t/s,a.eachBefore(function(e,t){return function(n){n.children&&(0,i.default)(n,n.x0,e*(n.depth+1)/t,n.x1,e*(n.depth+2)/t);var o=n.x0,a=n.y0,s=n.x1-r,u=n.y1-r;s<o&&(o=s=(o+s)/2),u<a&&(a=u=(a+u)/2),n.x0=o,n.y0=a,n.x1=s,n.y1=u}}(t,s)),o&&a.eachBefore(n.default),a}return a.round=function(e){return arguments.length?(o=!!e,a):o},a.size=function(r){return arguments.length?(e=+r[0],t=+r[1],a):[e,t]},a.padding=function(e){return arguments.length?(r=+e,a):r},a}},(e,t,r)=>{"use strict";function n(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r,n,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(n-t)/e.value;++s<u;)(o=a[s]).y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Node:()=>S,computeHeight:()=>_,default:()=>g});var n=r(1746),i=r(1747),o=r(1748),a=r(1749),s=r(1750),u=r(1751),c=r(1752),l=r(1753),f=r(1754),p=r(1755),d=r(1756),h=r(1757),m=r(1758);function g(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=y);for(var r,n,i,o,a,s=new S(e),u=[s];r=u.pop();)if((i=t(r.data))&&(a=(i=Array.from(i)).length))for(r.children=i,o=a-1;o>=0;--o)u.push(n=i[o]=new S(i[o])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(_)}function y(e){return e.children}function v(e){return Array.isArray(e)?e[1]:null}function b(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function S(e){this.data=e,this.depth=this.height=0,this.parent=null}S.prototype=g.prototype={constructor:S,count:n.default,each:i.default,eachAfter:a.default,eachBefore:o.default,find:s.default,sum:u.default,sort:c.default,path:l.default,ancestors:f.default,descendants:p.default,leaves:d.default,links:h.default,copy:function(){return g(this).eachBefore(b)},[Symbol.iterator]:m.default}},(e,t,r)=>{"use strict";function n(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function i(){return this.eachAfter(n)}r.r(t),r.d(t,{default:()=>i})},(e,t,r)=>{"use strict";function n(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){for(var r,n,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),r=i.children)for(n=r.length-1;n>=0;--n)o.push(r[n]);return this}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){for(var r,n,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),r=o.children)for(n=0,i=r.length;n<i;++n)a.push(r[n]);for(;o=s.pop();)e.call(t,o,++u,this);return this}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r}))}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;e=r.pop(),t=n.pop();for(;e===t;)i=e,e=r.pop(),t=n.pop();return i}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){return Array.from(this)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function*n(){var e,t,r,n,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(r=0,n=t.length;r<n;++r)o.push(t[r])}while(o.length)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,powish:()=>c,sqrt:()=>f});var n=r(1509),i=r(1510),o=r(1519);function a(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function s(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function u(e){return e<0?-e*e:e*e}function c(e){var t=e(i.identity,i.identity),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(i.identity,i.identity):.5===r?e(s,u):e(a(r),a(1/r)):r},(0,n.linearish)(t)}function l(){var e=c((0,i.transformer)());return e.copy=function(){return(0,i.copy)(e,l()).exponent(e.exponent())},o.initRange.apply(e,arguments),e}function f(){return l.apply(null,arguments).exponent(.5)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(270),i=r(272),o=r.n(i),a=r(1764),s=r(1766),u=r(1765),c=r(1744),l=r(1767),f=r(1768),p=r(1742),d=r(1745),h=r(1769),m=r(1776),g=r(1561),y=r(1469),v=r(1499),b=r(1709),_=r(1761),S=r(1763);function E(){return E=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},E.apply(this,arguments)}function w(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?w(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T={squarify:a.default,resquarify:s.default,slice:u.default,dice:c.default,slicedice:l.default,binary:f.default},k=function(e){return e},C=["opacity","color"];function I(e){var t=function(e){var t=e.data.children||[],r=O(O(O({},e),(0,v.getMissingScaleProps)(e,t,C)),{},{_allData:t});return{opacity:(0,v.getAttributeFunctor)(r,"opacity"),color:(0,v.getAttributeFunctor)(r,"color")}}(e),r=(0,b.getInnerDimensions)(e,e.margin);var i=e.renderMode,o=function(){var t=r.innerWidth,n=r.innerHeight,i=e.data,o=e.mode,a=e.padding,s=e.sortFunction,u=e.getSize;if(!i)return[];if("partition"===o||"partition-pivot"===o){var c=(0,p.default)().size("partition-pivot"===o?[n,t]:[t,n]).padding(a)((0,d.default)(i).sum(u).sort((function(e,t){return s(e,t,u)}))).descendants();return"partition-pivot"===o?c.map((function(e){return O(O({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})})):c}if("circlePack"===o)return(0,h.default)().size([t,n]).padding(a)((0,d.default)(i).sum(u).sort((function(e,t){return s(e,t,u)}))).descendants();var l=T[o];return(0,m.default)(l).tile(l).size([t,n]).padding(a)((0,d.default)(i).sum(u).sort((function(e,t){return s(e,t,u)}))).descendants()}(),a="SVG"===i?S.default:_.default;return n.default.createElement(a,E({},e,{nodes:o,scales:t}))}I.displayName="Treemap",I.propTypes={animation:y.AnimationPropType,className:o().string,data:o().object.isRequired,height:o().number.isRequired,hideRootNode:o().bool,margin:b.MarginPropType,mode:o().oneOf(Object.keys(T).concat(["circlePack","partition","partition-pivot"])),onLeafClick:o().func,onLeafMouseOver:o().func,onLeafMouseOut:o().func,useCirclePacking:o().bool,padding:o().number.isRequired,sortFunction:o().func,width:o().number.isRequired,getSize:o().func,getColor:o().func},I.defaultProps={className:"",colorRange:g.CONTINUOUS_COLOR_RANGE,_colorValue:g.DEFAULT_COLOR,data:{children:[]},hideRootNode:!1,margin:{left:40,right:10,top:10,bottom:40},mode:"squarify",onLeafClick:k,onLeafMouseOver:k,onLeafMouseOut:k,opacityType:g.OPACITY_TYPE,_opacityValue:g.DEFAULT_OPACITY,padding:1,sortFunction:function(e,t,r){return r?r(e)-r(t):0},getSize:function(e){return e.size},getColor:function(e){return e.color},getLabel:function(e){return e.title}};const R=I},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(270),i=r(1762),o=r(1562);function a(){return a=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.apply(this,arguments)}function s(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=e.animation,r=e.className,s=e.height,c=e.hideRootNode,l=e.getLabel,f=e.mode,p=e.nodes,d=e.width,h=e.scales,m=e.style,g="circlePack"===f;return n.default.createElement("div",{className:(0,o.getCombinedClassName)("rv-treemap",g&&"rv-treemap-circle-paked",r),style:{height:s,width:d}},p.map((function(r,o){if(c&&!o)return null;var s=u(u({animation:t,node:r,getLabel:l},e),{},{x0:g?r.x:r.x0,x1:g?r.x:r.x1,y0:g?r.y:r.y0,y1:g?r.y:r.y1,r:g?r.r:1,scales:h,style:m});return n.default.createElement(i.default,a({},s,{key:"leaf-".concat(o)}))})))}l.displayName="TreemapDOM";const f=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(270),i=r(272),o=r.n(i),a=r(1469),s=r(1499);function u(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=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},f.apply(this,arguments)}var p=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function d(e){var t=e.animation,r=e.getLabel,i=e.mode,o=e.node,u=e.onLeafClick,l=e.onLeafMouseOver,h=e.onLeafMouseOut,m=e.r,g=e.scales,y=e.x0,v=e.x1,b=e.y0,_=e.y1,S=e.style;if(t)return n.default.createElement(a.default,f({},e,{animatedProps:p}),n.default.createElement(d,f({},e,{animation:null})));var E="circlePack"===i,w=g.color(o),O=g.opacity(o),x=(0,s.getFontColorFromBackground)(w),T=r(o.data),k=c(c({top:E?b-m:b,left:E?y-m:y,width:E?2*m:v-y,height:E?2*m:_-b,background:w,opacity:O,color:x},S),o.data.style);return n.default.createElement("div",{className:"rv-treemap__leaf ".concat(E?"rv-treemap__leaf--circle":""),onMouseEnter:function(e){return l(o,e)},onMouseLeave:function(e){return h(o,e)},onClick:function(e){return u(o,e)},style:k},n.default.createElement("div",{className:"rv-treemap__leaf__content"},T))}d.propTypes={animation:a.AnimationPropType,height:o().number.isRequired,mode:o().string,node:o().object.isRequired,onLeafClick:o().func,onLeafMouseOver:o().func,onLeafMouseOut:o().func,scales:o().object.isRequired,width:o().number.isRequired,r:o().number.isRequired,x0:o().number.isRequired,x1:o().number.isRequired,y0:o().number.isRequired,y1:o().number.isRequired};const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(270),i=r(1691),o=r(1683),a=r(1679),s=r(1676),u=r(1562);function c(e){return c="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},c(e)}function l(){return l=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},l.apply(this,arguments)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(d,e);var t,r,c,f=g(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),f.apply(this,arguments)}return t=d,(r=[{key:"getCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,i=e.nodes,o=e.onLeafMouseOver,s=e.onLeafMouseOut,u=e.onLeafClick,c=e.scales,l=e.style,f=i.reduce((function(e,t,n){if(!n&&r)return e;var i=t.x,o=t.y,a=t.r;return{maxY:Math.max(o+a,e.maxY),minY:Math.min(o-a,e.minY),maxX:Math.max(i+1.2*a,e.maxX),minX:Math.min(i-1.2*a,e.minX),rows:e.rows.concat([{x:i,y:o,size:a,color:c.color(t)}])}}),{rows:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0}),p=f.rows,d=f.minY,h=f.maxY,m=f.minX,g=f.maxX;return{updatedNodes:n.default.createElement(a.default,{animation:t,className:"rv-treemap__leaf rv-treemap__leaf--circle",onSeriesMouseEnter:o,onSeriesMouseLeave:s,onSeriesClick:u,data:p,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:l}),minY:d,maxY:h,minX:m,maxX:g}}},{key:"getNonCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,i=e.nodes,a=e.onLeafMouseOver,s=e.onLeafMouseOut,u=e.onLeafClick,c=e.scales,l=e.style,f=c.color;return i.reduce((function(e,i,c){if(!c&&r)return e;var d=i.x0,h=i.x1,m=i.y1,g=i.y0,y=d,v=g,b=m-g,_=h-d;e.maxY=Math.max(v+b,e.maxY),e.minY=Math.min(v,e.minY),e.maxX=Math.max(y+_,e.maxX),e.minX=Math.min(y,e.minX);var S=[{x:y,y:v},{x:y,y:v+b},{x:y+_,y:v+b},{x:y+_,y:v}];return e.updatedNodes=e.updatedNodes.concat([n.default.createElement(o.default,{animation:t,className:"rv-treemap__leaf",key:c,color:f(i),type:"literal",onSeriesMouseEnter:a,onSeriesMouseLeave:s,onSeriesClick:u,data:S,style:p(p({},l),i.style)})]),e}),{updatedNodes:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.height,o=e.mode,a=e.nodes,c=e.width,f="circlePack"===o,d=f?this.getCircularNodes():this.getNonCircularNodes(),h=d.minY,m=d.maxY,g=d.minX,y=d.maxX,v=d.updatedNodes,b=a.reduce((function(e,t){return t.data.title?e.concat(p(p({},t.data),{},{x:t.x0||t.x,y:t.y0||t.y,label:"".concat(t.data.title)})):e}),[]);return n.default.createElement(i.default,l({className:(0,u.getCombinedClassName)("rv-treemap",f&&"rv-treemap-circle-paked",t),width:c,height:r,yDomain:[m,h],xDomain:[g,y],colorType:"literal",hasTreeStructure:!0},this.props),v,n.default.createElement(s.default,{data:b}))}}])&&h(t.prototype,r),c&&h(t,c),d}(n.default.Component);v.displayName="TreemapSVG";const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,phi:()=>o,squarifyRatio:()=>a});var n=r(1744),i=r(1765),o=(1+Math.sqrt(5))/2;function a(e,t,r,o,a,s){for(var u,c,l,f,p,d,h,m,g,y,v,b=[],_=t.children,S=0,E=0,w=_.length,O=t.value;S<w;){l=a-r,f=s-o;do{p=_[E++].value}while(!p&&E<w);for(d=h=p,v=p*p*(y=Math.max(f/l,l/f)/(O*e)),g=Math.max(h/v,v/d);E<w;++E){if(p+=c=_[E].value,c<d&&(d=c),c>h&&(h=c),v=p*p*y,(m=Math.max(h/v,v/d))>g){p-=c;break}g=m}b.push(u={value:p,dice:l<f,children:_.slice(S,E)}),u.dice?(0,n.default)(u,r,o,a,O?o+=f*p/O:s):(0,i.default)(u,r,o,O?r+=l*p/O:a,s),O-=p,S=E}return b}const s=function e(t){function r(e,r,n,i,o){a(t,e,r,n,i,o)}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(o)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(i-r)/e.value;++s<u;)(o=a[s]).x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1744),i=r(1765),o=r(1764);const a=function e(t){function r(e,r,a,s,u){if((c=e._squarify)&&c.ratio===t)for(var c,l,f,p,d,h=-1,m=c.length,g=e.value;++h<m;){for(f=(l=c[h]).children,p=l.value=0,d=f.length;p<d;++p)l.value+=f[p].value;l.dice?(0,n.default)(l,r,a,s,g?a+=(u-a)*l.value/g:u):(0,i.default)(l,r,a,g?r+=(s-r)*l.value/g:s,u),g-=l.value}else e._squarify=c=(0,o.squarifyRatio)(t,e,r,a,s,u),c.ratio=t}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(o.phi)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1744),i=r(1765);function o(e,t,r,o,a){(1&e.depth?i.default:n.default)(e,t,r,o,a)}},(e,t,r)=>{"use strict";function n(e,t,r,n,i){var o,a,s=e.children,u=s.length,c=new Array(u+1);for(c[0]=a=o=0;o<u;++o)c[o+1]=a+=s[o].value;!function e(t,r,n,i,o,a,u){if(t>=r-1){var l=s[t];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=u)}var f=c[t],p=n/2+f,d=t+1,h=r-1;for(;d<h;){var m=d+h>>>1;c[m]<p?d=m+1:h=m}p-c[d-1]<c[d]-p&&t+1<d&&--d;var g=c[d]-f,y=n-g;if(a-i>u-o){var v=n?(i*y+a*g)/n:a;e(t,d,g,i,o,v,u),e(d,r,y,v,o,a,u)}else{var b=n?(o*y+u*g)/n:u;e(t,d,g,i,o,a,b),e(d,r,y,i,b,a,u)}}(0,u,e.value,t,r,n,i)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(1770),i=r(1771),o=r(1772),a=r(1773);function s(e){return Math.sqrt(e.value)}function u(){var e=null,t=1,r=1,a=i.constantZero;function u(n){const u=(0,o.default)();return n.x=t/2,n.y=r/2,e?n.eachBefore(c(e)).eachAfter(l(a,.5,u)).eachBefore(f(1)):n.eachBefore(c(s)).eachAfter(l(i.constantZero,1,u)).eachAfter(l(a,n.r/Math.min(t,r),u)).eachBefore(f(Math.min(t,r)/(2*n.r))),n}return u.radius=function(t){return arguments.length?(e=(0,n.optional)(t),u):e},u.size=function(e){return arguments.length?(t=+e[0],r=+e[1],u):[t,r]},u.padding=function(e){return arguments.length?(a="function"==typeof e?e:(0,i.default)(+e),u):a},u}function c(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function l(e,t,r){return function(n){if(i=n.children){var i,o,s,u=i.length,c=e(n)*t||0;if(c)for(o=0;o<u;++o)i[o].r+=c;if(s=(0,a.packSiblingsRandom)(i,r),c)for(o=0;o<u;++o)i[o].r-=c;n.r=s+c}}}function f(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}},(e,t,r)=>{"use strict";function n(e){return null==e?null:i(e)}function i(e){if("function"!=typeof e)throw new Error;return e}r.r(t),r.d(t,{optional:()=>n,required:()=>i})},(e,t,r)=>{"use strict";function n(){return 0}function i(e){return function(){return e}}r.r(t),r.d(t,{constantZero:()=>n,default:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});const n=1664525,i=1013904223,o=4294967296;function a(){let e=1;return()=>(e=(n*e+i)%o)/o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f,packSiblingsRandom:()=>l});var n=r(1774),i=r(1772),o=r(1775);function a(e,t,r){var n,i,o,a,s=e.x-t.x,u=e.y-t.y,c=s*s+u*u;c?(i=t.r+r.r,i*=i,a=e.r+r.r,i>(a*=a)?(n=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-n*n)),r.x=e.x-n*s-o*u,r.y=e.y-n*u+o*s):(n=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-n*n)),r.x=t.x+n*s-o*u,r.y=t.y+n*u+o*s)):(r.x=t.x+r.r,r.y=t.y)}function s(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function u(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,o=(t.y*r.r+r.y*t.r)/n;return i*i+o*o}function c(e){this._=e,this.next=null,this.previous=null}function l(e,t){if(!(f=(e=(0,n.default)(e)).length))return 0;var r,i,l,f,p,d,h,m,g,y,v;if((r=e[0]).x=0,r.y=0,!(f>1))return r.r;if(i=e[1],r.x=-i.r,i.x=r.r,i.y=0,!(f>2))return r.r+i.r;a(i,r,l=e[2]),r=new c(r),i=new c(i),l=new c(l),r.next=l.previous=i,i.next=r.previous=l,l.next=i.previous=r;e:for(h=3;h<f;++h){a(r._,i._,l=e[h]),l=new c(l),m=i.next,g=r.previous,y=i._.r,v=r._.r;do{if(y<=v){if(s(m._,l._)){i=m,r.next=i,i.previous=r,--h;continue e}y+=m._.r,m=m.next}else{if(s(g._,l._)){(r=g).next=i,i.previous=r,--h;continue e}v+=g._.r,g=g.previous}}while(m!==g.next);for(l.previous=r,l.next=i,r.next=i.previous=i=l,p=u(r);(l=l.next)!==i;)(d=u(l))<p&&(r=l,p=d);i=r.next}for(r=[i._],l=i;(l=l.next)!==i;)r.push(l._);for(l=(0,o.packEncloseRandom)(r,t),h=0;h<f;++h)(r=e[h]).x-=l.x,r.y-=l.y;return l.r}function f(e){return l(e,(0,i.default)()),e}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function i(e,t){let r,n,i=e.length;for(;i;)n=t()*i--|0,r=e[i],e[i]=e[n],e[n]=r;return e}r.r(t),r.d(t,{default:()=>n,shuffle:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,packEncloseRandom:()=>a});var n=r(1774),i=r(1772);function o(e){return a(e,(0,i.default)())}function a(e,t){for(var r,i,o=0,a=(e=(0,n.shuffle)(Array.from(e),t)).length,u=[];o<a;)r=e[o],i&&c(i,r)?++o:(i=f(u=s(u,r)),o=0);return i}function s(e,t){var r,n;if(l(t,e))return[t];for(r=0;r<e.length;++r)if(u(t,e[r])&&l(p(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(u(p(e[r],e[n]),t)&&u(p(e[r],t),e[n])&&u(p(e[n],t),e[r])&&l(d(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function u(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function c(e,t){var r=e.r-t.r+1e-9*Math.max(e.r,t.r,1),n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function l(e,t){for(var r=0;r<t.length;++r)if(!c(e,t[r]))return!1;return!0}function f(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return p(e[0],e[1]);case 3:return d(e[0],e[1],e[2])}var t}function p(e,t){var r=e.x,n=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-r,c=a-n,l=s-i,f=Math.sqrt(u*u+c*c);return{x:(r+o+u/f*l)/2,y:(n+a+c/f*l)/2,r:(f+i+s)/2}}function d(e,t,r){var n=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,c=r.x,l=r.y,f=r.r,p=n-a,d=n-c,h=i-s,m=i-l,g=u-o,y=f-o,v=n*n+i*i-o*o,b=v-a*a-s*s+u*u,_=v-c*c-l*l+f*f,S=d*h-p*m,E=(h*_-m*b)/(2*S)-n,w=(m*g-h*y)/S,O=(d*b-p*_)/(2*S)-i,x=(p*y-d*g)/S,T=w*w+x*x-1,k=2*(o+E*w+O*x),C=E*E+O*O-o*o,I=-(Math.abs(T)>1e-6?(k+Math.sqrt(k*k-4*T*C))/(2*T):C/k);return{x:n+E+w*I,y:i+O+x*I,r:I}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(1743),i=r(1764),o=r(1770),a=r(1771);function s(){var e=i.default,t=!1,r=1,s=1,u=[0],c=a.constantZero,l=a.constantZero,f=a.constantZero,p=a.constantZero,d=a.constantZero;function h(e){return e.x0=e.y0=0,e.x1=r,e.y1=s,e.eachBefore(m),u=[0],t&&e.eachBefore(n.default),e}function m(t){var r=u[t.depth],n=t.x0+r,i=t.y0+r,o=t.x1-r,a=t.y1-r;o<n&&(n=o=(n+o)/2),a<i&&(i=a=(i+a)/2),t.x0=n,t.y0=i,t.x1=o,t.y1=a,t.children&&(r=u[t.depth+1]=c(t)/2,n+=d(t)-r,i+=l(t)-r,(o-=f(t)-r)<n&&(n=o=(n+o)/2),(a-=p(t)-r)<i&&(i=a=(i+a)/2),e(t,n,i,o,a))}return h.round=function(e){return arguments.length?(t=!!e,h):t},h.size=function(e){return arguments.length?(r=+e[0],s=+e[1],h):[r,s]},h.tile=function(t){return arguments.length?(e=(0,o.required)(t),h):e},h.padding=function(e){return arguments.length?h.paddingInner(e).paddingOuter(e):h.paddingInner()},h.paddingInner=function(e){return arguments.length?(c="function"==typeof e?e:(0,a.default)(+e),h):c},h.paddingOuter=function(e){return arguments.length?h.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):h.paddingTop()},h.paddingTop=function(e){return arguments.length?(l="function"==typeof e?e:(0,a.default)(+e),h):l},h.paddingRight=function(e){return arguments.length?(f="function"==typeof e?e:(0,a.default)(+e),h):f},h.paddingBottom=function(e){return arguments.length?(p="function"==typeof e?e:(0,a.default)(+e),h):p},h.paddingLeft=function(e){return arguments.length?(d="function"==typeof e?e:(0,a.default)(+e),h):d},h}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(270);function i(e){var t=e.id,r=void 0===t?"content-area":t,i=e.innerWidth,o=e.innerHeight;return n.default.createElement("defs",null,n.default.createElement("clipPath",{id:r},n.default.createElement("rect",{x:0,y:0,width:i,height:o})))}i.requiresSVG=!0,i.displayName="ContentClipPath"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FlexibleHeightXYPlot:()=>P,FlexibleWidthXYPlot:()=>A,FlexibleXYPlot:()=>D,makeHeightFlexible:()=>C,makeVisFlexible:()=>I,makeWidthFlexible:()=>R});var n=r(270),i=r(1779),o=r.n(i),a=r(1691),s=r(1507);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},u(e)}function c(){return c=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},c.apply(this,arguments)}function l(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(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}function d(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 h(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return y(e)}(this,r)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="container",S=[],E=100,w=null;function O(){o().clearTimeout(w),w=o().setTimeout(x,E)}function x(){S.forEach((function(e){return e()}))}function T(e){return S.push(e),1===S.length&&o().addEventListener("resize",O),function(){!function(e){var t=S.indexOf(e);t>-1&&S.splice(t,1)}(e),0===S.length&&(o().clearTimeout(w),o().removeEventListener("resize",O))}}function k(e,t,r){var i,o=(i=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(a,i);var o=g(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),b(y(t=o.call(this,e)),"_onResize",(function(){var e=(0,s.getDOMNode)(t[_]),r=e.offsetHeight,n=e.offsetWidth,i=t.state.height===r?{}:{height:r},o=t.state.width===n?{}:{width:n};t.setState(f(f({},i),o))})),t.state={height:0,width:0},t}return h(a,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return p(t,["height","width"])}}]),h(a,[{key:"componentDidMount",value:function(){this._onResize(),this.cancelSubscription=T(this._onResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this._onResize()}},{key:"componentWillUnmount",value:function(){this.cancelSubscription()}},{key:"render",value:function(){var i=this,o=this.state,a=o.height,s=o.width,u=f(f({},this.props),{},{animation:0===a&&0===s?null:this.props.animation}),l=f(f({},r?{height:a}:{}),t?{width:s}:{});return n.default.createElement("div",{ref:function(e){return i[_]=e},style:{width:"100%",height:"100%"}},n.default.createElement(e,c({},l,u)))}}]),a}(n.default.Component),i);return o.displayName="Flexible".concat(function(e){return e.displayName||e.name||"Component"}(e)),o}function C(e){return k(e,!1,!0)}function I(e){return k(e,!0,!0)}function R(e){return k(e,!0,!1)}var A=R(a.default),P=C(a.default),D=I(a.default)},(e,t,r)=>{var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},e.exports=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useLazyQuery:()=>c});var n=r(103),i=r(325),o=r(458),a=r(586),s=r(588),u=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function c(e,t){var r,c=i.useRef(),l=i.useRef(),f=i.useRef(),p=(0,o.mergeOptions)(t,c.current||{}),d=null!==(r=null==p?void 0:p.query)&&void 0!==r?r:e;l.current=t,f.current=d;var h=(0,a.useInternalState)((0,s.useApolloClient)(t&&t.client),d),m=h.useQuery((0,n.__assign)((0,n.__assign)({},p),{skip:!c.current})),g=m.observable.options.initialFetchPolicy||h.getDefaultFetchPolicy(),y=h.forceUpdateState,v=h.obsQueryFields,b=i.useMemo((function(){for(var e={},t=function(t){var r=v[t];e[t]=function(){return c.current||(c.current=Object.create(null),y()),r.apply(this,arguments)}},r=0,n=u;r<n.length;r++){t(n[r])}return e}),[y,v]),_=!!c.current,S=i.useMemo((function(){return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},m),b),{called:_})}),[m,b,_]),E=i.useCallback((function(e){c.current=e?(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:e.fetchPolicy||g}):{fetchPolicy:g};var t=(0,o.mergeOptions)(l.current,(0,n.__assign)({query:f.current},c.current)),r=h.executeQuery((0,n.__assign)((0,n.__assign)({},t),{skip:!1})).then((function(e){return Object.assign(e,b)}));return r.catch((function(){})),r}),[b,g,h]);return[E,S]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{compareVersions:()=>i});var n=r(2054);const i=(e,t)=>{const r=(0,n.validateAndParse)(e),i=(0,n.validateAndParse)(t),o=r.pop(),a=i.pop(),s=(0,n.compareSegments)(r,i);return 0!==s?s:o&&a?(0,n.compareSegments)(o.split("."),a.split(".")):o||a?o?-1:1:0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{compareSegments:()=>u,semver:()=>n,validateAndParse:()=>i});const n=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,i=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(n);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},o=e=>"*"===e||"x"===e||"X"===e,a=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},s=(e,t)=>{if(o(e)||o(t))return 0;const[r,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(a(e),a(t));return r>n?1:r<n?-1:0},u=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=s(e[r]||"0",t[r]||"0");if(0!==n)return n}return 0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{DragDropContext:()=>Ln,Draggable:()=>bi,Droppable:()=>Oi,resetServerContext:()=>Mn,useKeyboardSensor:()=>pn,useMouseSensor:()=>un,useTouchSensor:()=>gn});var n=r(270),i=r(678),o=r(1389),a=r(2234),s=r(2236),u=r(2266),c=r(2267),l=r(2269),f=r(2270);function p(e,t){}p.bind(null,"warn"),p.bind(null,"error");function d(){}function h(e,t,r){var n=t.map((function(t){var n=function(e,t){return(0,o.default)({},e,{},t)}(r,t.options);return e.addEventListener(t.eventName,t.fn,n),function(){e.removeEventListener(t.eventName,t.fn,n)}}));return function(){n.forEach((function(e){e()}))}}var m=!0,g="Invariant failed";function y(e){this.message=e}function v(e,t){if(!e)throw new y(m?g:g+": "+(t||""))}y.prototype.toString=function(){return this.message};var b=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).callbacks=null,t.unbind=d,t.onWindowError=function(e){var r=t.getCallbacks();r.isDragging()&&r.tryAbort(),e.error instanceof y&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,i.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=h(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(e){if(!(e instanceof y))throw e;this.setState({})},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(n.default.Component),_=function(e){return e+1},S=function(e,t){var r=e.droppableId===t.droppableId,n=_(e.index),i=_(t.index);return r?"\n      You have moved the item from position "+n+"\n      to position "+i+"\n    ":"\n    You have moved the item from position "+n+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+i+"\n  "},E=function(e,t,r){return t.droppableId===r.droppableId?"\n      The item "+e+"\n      has been combined with "+r.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+r.draggableId+"\n      in list "+r.droppableId+"\n    "},w=function(e){return"\n  The item has returned to its starting position\n  of "+_(e.index)+"\n"},O={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n  You have lifted an item in position "+_(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return S(e.source,t);var r=e.combine;return r?E(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+w(e.source)+"\n    ";var t=e.destination,r=e.combine;return t?"\n      You have dropped the item.\n      "+S(e.source,t)+"\n    ":r?"\n      You have dropped the item.\n      "+E(e.draggableId,e.source,r)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+w(e.source)+"\n  "}},x={x:0,y:0},T=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},k=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},C=function(e,t){return e.x===t.x&&e.y===t.y},I=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},R=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},A=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},P=function(e,t){return Math.min.apply(Math,t.map((function(t){return A(e,t)})))},D=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},N=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},M=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},L=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=(0,c.getRect)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):(0,c.getRect)(e)},j=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=function(e,t){return t?N(e,t.scroll.diff.displacement):e}(t.marginBox,i),s=function(e,t,r){var n;return r&&r.increasedBy?(0,o.default)({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(a,n,r);return{page:t,withPlaceholder:r,active:L(s,i)}},B=function(e,t){e.frame||v(!1);var r=e.frame,n=k(t,r.scroll.initial),i=I(n),a=(0,o.default)({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),s=j({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,o.default)({},e,{frame:a,subject:s})};function F(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function U(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function H(e,t){if(e.find)return e.find(t);var r=U(e,t);return-1!==r?e[r]:void 0}function q(e){return Array.prototype.slice.call(e)}var z=(0,l.default)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),W=(0,l.default)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),V=(0,l.default)((function(e){return F(e)})),G=(0,l.default)((function(e){return F(e)})),$=(0,l.default)((function(e,t){var r=G(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return r}));function K(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Y(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Q=(0,l.default)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),X=function(e,t){return e.descriptor.droppableId===t.descriptor.id},J={point:x,value:0},Z={invisible:{},visible:{},all:[]},ee={displaced:Z,displacedBy:J,at:null},te=function(e,t){return function(r){return e<=r&&r<=t}},re=function(e){var t=te(e.top,e.bottom),r=te(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var i=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right);if(i&&o)return!0;var a=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;return!(!a||!s)||(a&&o||s&&i)}},ne=function(e){var t=te(e.top,e.bottom),r=te(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},ie={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},oe={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ae=function(e){var t=e.target,r=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:x;return N(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(a,r,o)&&function(e,t,r){return r(t)(e)}(a,n,o)},se=function(e){return ae((0,o.default)({},e,{isVisibleThroughFrameFn:re}))},ue=function(e){return ae((0,o.default)({},e,{isVisibleThroughFrameFn:ne}))},ce=function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,i=t.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate};function le(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,c.getRect)((0,c.expand)(r,n))}(t,n),u=t.descriptor.id;if(e.all.push(u),!se({target:s,destination:r,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l={draggableId:u,shouldAnimate:ce(u,a,o)};return e.visible[u]=l,e}),{all:[],visible:{},invisible:{}})}function fe(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:Z,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function pe(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,u=e.forceShouldAnimate,c=X(t,n);if(null==s)return fe({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var l=H(r,(function(e){return e.descriptor.index===s}));if(!l)return fe({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var f=Q(t,r),p=r.indexOf(l);return{displaced:le({afterDragging:f.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:u}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:s}}}}function de(e,t){return Boolean(t.effected[e])}var he=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,u=e.viewport,c=e.afterCritical,l=s.at;if(l||v(!1),"REORDER"===l.type){var f=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=t?o+1:o-1,s=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a<s||a>(r?u:u+1)?null:a}({isMovingForward:t,isInHomeList:r,location:l.destination,insideDestination:a});return null==f?null:pe({draggable:n,insideDestination:a,destination:o,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:f})}var p=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!r.isCombineEnabled)return null;var a=i.draggableId,s=n[a].descriptor.index;return de(a,o)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:l.combine,afterCritical:c});return null==p?null:pe({draggable:n,insideDestination:a,destination:o,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:p})},me=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=Y(r);i||v(!1);var o=i.draggableId,a=n[o].page.borderBox.center,s=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[n]||t.invisible[n]);return de(n,r)?o?x:I(i.point):o?i.point:x}({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return T(a,s)},ge=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ye=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},ve=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return R(t.line,r.marginBox[t.end]+ge(t,n),ye(t,r.marginBox,n))},be=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return R(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),ye(t,r.marginBox,n))},_e=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=$(i.descriptor.id,n),s=r.page,u=i.axis;if(!a.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return R(t.line,r.contentBox[t.start]+ge(t,n),ye(t,r.contentBox,n))}({axis:u,moveInto:i.page,isMoving:s});var l=t.displaced,f=t.displacedBy,p=l.all[0];if(p){var d=n[p];if(de(p,o))return be({axis:u,moveRelativeTo:d.page,isMoving:s});var h=(0,c.offset)(d.page,f.point);return be({axis:u,moveRelativeTo:h,isMoving:s})}var m=a[a.length-1];if(m.descriptor.id===r.descriptor.id)return s.borderBox.center;if(de(m.descriptor.id,o)){var g=(0,c.offset)(m.page,I(o.displacedBy.point));return ve({axis:u,moveRelativeTo:g,isMoving:s})}return ve({axis:u,moveRelativeTo:m.page,isMoving:s})},Se=function(e,t){var r=e.frame;return r?T(t,r.scroll.diff.displacement):t},Ee=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=r.page.borderBox.center,s=t.at;return n&&s?"REORDER"===s.type?_e({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o}):me({impact:t,draggables:i,afterCritical:o}):a}(e),r=e.droppable;return r?Se(r,t):t},we=function(e,t){var r=k(t,e.scroll.initial),n=I(r);return{frame:(0,c.getRect)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function Oe(e,t){return e.map((function(e){return t[e]}))}var xe=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return T(e.scroll.diff.displacement,t)}(e.viewport,t),i=k(n,r.page.borderBox.center);return T(r.client.borderBox.center,i)},Te=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,u=void 0!==s&&s,c=k(n,t.page.borderBox.center),l={target:N(t.page.borderBox,c),destination:r,withDroppableDisplacement:a,viewport:i};return u?function(e){return ae((0,o.default)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=te(e.top,e.bottom),n=te(e.left,e.right);return function(e){return t===ie?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(l):ue(l)},ke=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,a=e.previousImpact,s=e.viewport,u=e.previousPageBorderBoxCenter,c=e.previousClientSelection,l=e.afterCritical;if(!n.isEnabled)return null;var f=$(n.descriptor.id,i),p=X(r,n),d=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,a=e.previousImpact;if(!n.isCombineEnabled)return null;if(!K(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return(0,o.default)({},a,{at:t})}var u=a.displaced.all,c=u.length?u[0]:null;if(t)return c?s(c):null;var l=Q(r,i);if(!c)return l.length?s(l[l.length-1].descriptor.id):null;var f=U(l,(function(e){return e.descriptor.id===c}));-1===f&&v(!1);var p=f-1;return p<0?null:s(l[p].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:f,previousImpact:a})||he({isMovingForward:t,isInHomeList:p,draggable:r,draggables:i,destination:n,insideDestination:f,previousImpact:a,viewport:s,afterCritical:l});if(!d)return null;var h=Ee({impact:d,draggable:r,droppable:n,draggables:i,afterCritical:l});if(Te({draggable:r,destination:n,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:xe({pageBorderBoxCenter:h,draggable:r,viewport:s}),impact:d,scrollJumpRequest:null};var m=k(h,u),g=function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,a=e.maxScrollChange,s=we(r,T(r.scroll.current,a)),u=n.frame?B(n,T(n.frame.scroll.current,a)):n,c=t.displaced,l=le({afterDragging:Oe(c.all,i),destination:n,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),f=le({afterDragging:Oe(c.all,i),destination:u,displacedBy:t.displacedBy,viewport:r.frame,last:c,forceShouldAnimate:!1}),p={},d={},h=[c,l,f];return c.all.forEach((function(e){var t=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,h);t?d[e]=t:p[e]=!0})),(0,o.default)({},t,{displaced:{all:c.all,invisible:p,visible:d}})}({impact:d,viewport:s,destination:n,draggables:i,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},Ce=function(e){var t=e.subject.active;return t||v(!1),t},Ie=function(e,t){var r=e.page.borderBox.center;return de(e.descriptor.id,t)?k(r,t.displacedBy.point):r},Re=function(e,t){var r=e.page.borderBox;return de(e.descriptor.id,t)?N(r,I(t.displacedBy.point)):r},Ae=(0,l.default)((function(e,t){var r=t[e.line];return{value:r,point:R(e.line,r)}})),Pe=function(e,t){return(0,o.default)({},e,{scroll:(0,o.default)({},e.scroll,{max:t})})},De=function(e,t,r){var n=e.frame;X(t,e)&&v(!1),e.subject.withPlaceholder&&v(!1);var i=Ae(e.axis,t.displaceBy).point,a=function(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return R(n.line,t[n.line]);var i=e.subject.page.contentBox[n.size],o=$(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-i;return o<=0?null:R(n.line,o)}(e,i,r),s={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var u=j({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,o.default)({},e,{subject:u})}var c=a?T(n.scroll.max,a):n.scroll.max,l=Pe(n,c),f=j({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:l});return(0,o.default)({},e,{subject:f,frame:l})},Ne=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,u=e.afterCritical,c=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var s=n.axis,u=te(a[s.start],a[s.end]),c=V(i).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return re(o.frame)(Ce(e))})).filter((function(e){var r=Ce(e);return t?a[s.crossAxisEnd]<r[s.crossAxisEnd]:r[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Ce(e),r=te(t[s.start],t[s.end]);return u(t[s.start])||u(t[s.end])||r(a[s.start])||r(a[s.end])})).sort((function(e,r){var n=Ce(e)[s.crossAxisStart],i=Ce(r)[s.crossAxisStart];return t?n-i:i-n})).filter((function(e,t,r){return Ce(e)[s.crossAxisStart]===Ce(r[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var l=c.filter((function(e){return te(Ce(e)[s.start],Ce(e)[s.end])(r[s.line])}));return 1===l.length?l[0]:l.length>1?l.sort((function(e,t){return Ce(e)[s.start]-Ce(t)[s.start]}))[0]:c.sort((function(e,t){var n=P(r,M(Ce(e))),i=P(r,M(Ce(t)));return n!==i?n-i:Ce(e)[s.start]-Ce(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:a,viewport:s});if(!c)return null;var l=$(c.descriptor.id,o),f=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return ue({target:Re(e,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var i=A(t,Se(n,Ie(e,o))),a=A(t,Se(n,Ie(r,o)));return i<a?-1:a<i?1:e.descriptor.index-r.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:r,viewport:s,destination:c,insideDestination:l,afterCritical:u}),p=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,u=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:Z,displacedBy:J,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},l=Ee({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:u}),f=X(i,a)?a:De(a,i,o);return Te({draggable:i,destination:f,newPageBorderBoxCenter:l,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,d=Boolean(t[a.axis.line]<=r.page.borderBox.center[a.axis.line]),h=(p=r.descriptor.index,r.descriptor.id===i.descriptor.id||d?p:p+1),m=Ae(a.axis,i.displaceBy);return pe({draggable:i,insideDestination:n,destination:a,viewport:s,displacedBy:m,last:Z,index:h})}({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:o,moveRelativeTo:f,insideDestination:l,viewport:s,afterCritical:u});if(!p)return null;var d=Ee({impact:p,draggable:n,droppable:c,draggables:o,afterCritical:u});return{clientSelection:xe({pageBorderBoxCenter:d,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null}},Me=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Le=function(e){var t=e.state,r=e.type,n=function(e,t){var r=Me(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),i=Boolean(n),o=t.dimensions.droppables[t.critical.droppable.id],a=n||o,s=a.axis.direction,u="vertical"===s&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===s&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(u&&!i)return null;var c="MOVE_DOWN"===r||"MOVE_RIGHT"===r,l=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,p=t.dimensions,d=p.draggables,h=p.droppables;return u?ke({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:l,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ne({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:l,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function je(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Be(e){var t=te(e.top,e.bottom),r=te(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function Fe(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=V(n).filter((function(e){if(!e.isEnabled)return!1;var r,n,i=e.subject.active;if(!i)return!1;if(n=i,!((r=t).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(Be(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],s=t[o.crossAxisStart],u=t[o.crossAxisEnd],c=te(i[o.crossAxisStart],i[o.crossAxisEnd]),l=c(s),f=c(u);return!l&&!f||(l?s<a:u>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,o=n.map((function(e){var r=e.axis,n=R(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:A(i,n)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:r,candidates:i}):null}var Ue=function(e,t){return(0,c.getRect)(N(e,t))};function He(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var qe=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,u=Ue(r.page.borderBox,t),c=Fe({pageBorderBox:u,draggable:r,droppables:i});if(!c)return ee;var l=i[c],f=$(l.descriptor.id,n),p=function(e,t){var r=e.frame;return r?Ue(t,r.scroll.diff.value):t}(l,u);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,u=Ae(i.axis,t.displaceBy),c=u.value,l=r[s.start],f=r[s.end],p=H(Q(t,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox,i=r[s.size]/4,o=de(t,a),u=He({displaced:n.displaced,id:t});return o?u?f>r[s.start]+i&&f<r[s.end]-i:l>r[s.start]-c+i&&l<r[s.end]-c-i:u?f>r[s.start]+c+i&&f<r[s.end]+c-i:l>r[s.start]+i&&l<r[s.end]-i}));return p?{displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:o,destination:l,insideDestination:f,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,u=n.axis,c=Ae(n.axis,r.displaceBy),l=c.value,f=t[u.start],p=t[u.end],d=function(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:H(Q(r,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[u.line],n=de(t,s),i=He({displaced:o,id:t});return n?i?p<=r:f<r-l:i?p<=r+l:f<r})),inHomeList:X(r,n)});return pe({draggable:r,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:c,index:d})}({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:l,insideDestination:f,last:o.displaced,viewport:a,afterCritical:s})},ze=function(e,t){var r;return(0,o.default)({},e,((r={})[t.descriptor.id]=t,r))},We=function(e){var t=e.previousImpact,r=e.impact,n=e.droppables,i=Me(t),a=Me(r);if(!i)return n;if(i===a)return n;var s=n[i];if(!s.subject.withPlaceholder)return n;var u=function(e){var t=e.subject.withPlaceholder;t||v(!1);var r=e.frame;if(!r){var n=j({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,o.default)({},e,{subject:n})}var i=t.oldFrameMaxScroll;i||v(!1);var a=Pe(r,i),s=j({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,o.default)({},e,{subject:s,frame:a})}(s);return ze(n,u)},Ve=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,a=e.impact,s=e.scrollJumpRequest,u=i||t.viewport,c=n||t.dimensions,l=r||t.current.client.selection,f=k(l,t.initial.client.selection),p={offset:f,selection:l,borderBoxCenter:T(t.initial.client.borderBoxCenter,f)},d={selection:T(p.selection,u.scroll.current),borderBoxCenter:T(p.borderBoxCenter,u.scroll.current),offset:T(p.offset,u.scroll.diff.value)},h={client:p,page:d};if("COLLECTING"===t.phase)return(0,o.default)({phase:"COLLECTING"},t,{dimensions:c,viewport:u,current:h});var m=c.draggables[t.critical.draggable.id],g=a||qe({pageOffset:d.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),y=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=We({previousImpact:i,impact:o,droppables:n}),s=Me(o);if(!s)return a;var u=n[s];if(X(t,u))return a;if(u.subject.withPlaceholder)return a;var c=De(u,t,r);return ze(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,o.default)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:y},impact:g,viewport:u,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var Ge=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,a=e.forceShouldAnimate,s=t.displaced,u=function(e,t){return e.map((function(e){return t[e]}))}(s.all,n),c=le({afterDragging:u,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:a,last:s});return(0,o.default)({},t,{displaced:c})},$e=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=Ee({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a});return xe({pageBorderBoxCenter:s,draggable:r,viewport:o})},Ke=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&v(!1);var i=t.impact,o=n||t.viewport,a=r||t.dimensions,s=a.draggables,u=a.droppables,c=s[t.critical.draggable.id],l=Me(i);l||v(!1);var f=u[l],p=Ge({impact:i,viewport:o,destination:f,draggables:s}),d=$e({impact:p,draggable:c,droppable:f,draggables:s,viewport:o,afterCritical:t.afterCritical});return Ve({impact:p,clientSelection:d,state:t,dimensions:a,viewport:o})},Ye=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,o=Ae(r.axis,t.displaceBy),a=$(r.descriptor.id,n),s=a.indexOf(t);-1===s&&v(!1);var u,c=a.slice(s+1),l=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:o,effected:l};return{impact:{displaced:le({afterDragging:c,destination:r,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},Qe=function(e){0},Xe=function(e){0},Je=function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||v(!1),t}(r[t]),s=a.scroll.diff.value,u=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=(0,c.offset)(t.client,r),a=(0,c.withScroll)(i,n);return(0,o.default)({},t,{placeholder:(0,o.default)({},t.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:T(i,s),initialWindowScroll:n.scroll.initial});return u}))},Ze=function(e){return"SNAP"===e.movementMode},et=function(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:ze(e.droppables,t)}}(e.dimensions,t);return!Ze(e)||r?Ve({state:e,dimensions:n}):Ke({state:e,dimensions:n})};function tt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,o.default)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var rt={phase:"IDLE",completed:null,shouldFlush:!1},nt=function(e,t){if(void 0===e&&(e=rt),"FLUSH"===t.type)return(0,o.default)({},rt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&v(!1);var r=t.payload,n=r.critical,i=r.clientSelection,a=r.viewport,s=r.dimensions,u=r.movementMode,c=s.draggables[n.draggable.id],l=s.droppables[n.droppable.id],f={selection:i,borderBoxCenter:c.client.borderBox.center,offset:x},p={client:f,page:{selection:T(f.selection,a.scroll.initial),borderBoxCenter:T(f.selection,a.scroll.initial),offset:T(f.selection,a.scroll.diff.value)}},d=V(s.droppables).every((function(e){return!e.isFixedOnPage})),h=Ye({draggable:c,home:l,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:s,initial:p,current:p,isWindowScrollAllowed:d,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&v(!1),(0,o.default)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&v(!1),function(e){var t=e.state,r=e.published;Qe();var n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return B(r,e.scroll)})),i=(0,o.default)({},t.dimensions.droppables,{},z(n)),a=W(Je({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),s=(0,o.default)({},t.dimensions.draggables,{},a);r.removals.forEach((function(e){delete s[e]}));var u={droppables:i,draggables:s},c=Me(t.impact),l=c?u.droppables[c]:null,f=u.draggables[t.critical.draggable.id],p=u.droppables[t.critical.droppable.id],d=Ye({draggable:f,home:p,draggables:s,viewport:t.viewport}),h=d.impact,m=d.afterCritical,g=l&&l.isCombineEnabled?t.impact:h,y=qe({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});Xe();var v=(0,o.default)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:y,onLiftImpact:h,dimensions:u,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,o.default)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;je(e)||v(!1);var g=t.payload.client;return C(g,e.current.client.selection)?e:Ve({state:e,clientSelection:g,impact:Ze(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return tt(e);if("COLLECTING"===e.phase)return tt(e);je(e)||v(!1);var y=t.payload,b=y.id,_=y.newScroll,S=e.dimensions.droppables[b];if(!S)return e;var E=B(S,_);return et(e,E,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;je(e)||v(!1);var w=t.payload,O=w.id,k=w.isEnabled,I=e.dimensions.droppables[O];I||v(!1),I.isEnabled===k&&v(!1);var R=(0,o.default)({},I,{isEnabled:k});return et(e,R,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;je(e)||v(!1);var A=t.payload,P=A.id,D=A.isCombineEnabled,N=e.dimensions.droppables[P];N||v(!1),N.isCombineEnabled===D&&v(!1);var M=(0,o.default)({},N,{isCombineEnabled:D});return et(e,M,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;je(e)||v(!1),e.isWindowScrollAllowed||v(!1);var L=t.payload.newScroll;if(C(e.viewport.scroll.current,L))return tt(e);var j=we(e.viewport,L);return Ze(e)?Ke({state:e,viewport:j}):Ve({state:e,viewport:j})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!je(e))return e;var F=t.payload.maxScroll;if(C(F,e.viewport.scroll.max))return e;var U=(0,o.default)({},e.viewport,{scroll:(0,o.default)({},e.viewport.scroll,{max:F})});return(0,o.default)({phase:"DRAGGING"},e,{viewport:U})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&v(!1);var H=Le({state:e,type:t.type});return H?Ve({state:e,impact:H.impact,clientSelection:H.clientSelection,scrollJumpRequest:H.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var q=t.payload.reason;return"COLLECTING"!==e.phase&&v(!1),(0,o.default)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:q})}if("DROP_ANIMATE"===t.type){var G=t.payload,$=G.completed,K=G.dropDuration,Y=G.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&v(!1),{phase:"DROP_ANIMATING",completed:$,dropDuration:K,newHomeClientOffset:Y,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},it=function(e){return{type:"LIFT",payload:e}},ot=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},at=function(){return{type:"COLLECTION_STARTING",payload:null}},st=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},ut=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},ct=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},lt=function(e){return{type:"MOVE",payload:e}},ft=function(){return{type:"MOVE_UP",payload:null}},pt=function(){return{type:"MOVE_DOWN",payload:null}},dt=function(){return{type:"MOVE_RIGHT",payload:null}},ht=function(){return{type:"MOVE_LEFT",payload:null}},mt=function(){return{type:"FLUSH",payload:null}},gt=function(e){return{type:"DROP_COMPLETE",payload:e}},yt=function(e){return{type:"DROP",payload:e}},vt=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var bt="cubic-bezier(.2,1,.1,1)",_t={drop:0,combining:.7},St={drop:.75},Et=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",wt={fluid:"opacity "+Et,snap:"transform "+Et+", opacity "+Et,drop:function(e){var t=e+"s "+bt;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Et,placeholder:"height "+Et+", width "+Et+", margin "+Et},Ot=function(e){return C(e,x)?null:"translate("+e.x+"px, "+e.y+"px)"},xt={moveTo:Ot,drop:function(e,t){var r=Ot(e);return r?t?r+" scale("+St.drop+")":r:null}},Tt=.33,kt=.55,Ct=kt-Tt,It=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=t(),a=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&v(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&v(!1);var s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],l=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,a=e.viewport,s=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:(0,o.default)({},n,{displaced:Z}),didDropInsideDroppable:!0}:{impact:Ge({draggables:t,impact:s,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),f=l.impact,p=l.didDropInsideDroppable,d=p?K(f):null,h=p?Y(f):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:i.movementMode,destination:d,combine:h},y=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,s=n.droppables,u=Me(t),c=u?s[u]:null,l=s[r.descriptor.droppableId],f=$e({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:c||l,viewport:i});return k(f,r.client.borderBox.center)}({impact:f,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),b={critical:i.critical,afterCritical:i.afterCritical,result:g,impact:f};if(!C(i.current.client.offset,y)||Boolean(g.combine)){var _=function(e){var t=e.current,r=e.destination,n=e.reason,i=A(t,r);if(i<=0)return Tt;if(i>=1500)return kt;var o=Tt+Ct*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:y,reason:a});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:y,dropDuration:_,completed:b}))}else r(gt({completed:b}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(n)}}},Rt=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function At(e){var t=e.onWindowScroll;var r=(0,f.default)((function(){t(Rt())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(r),i=d;function o(){return i!==d}return{start:function(){o()&&v(!1),i=h(window,[n])},stop:function(){o()||v(!1),r.cancel(),i(),i=d},isActive:o}}var Pt=function(e){var t=At({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},Dt=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=U(e,(function(e){return e.timerId===t}));-1===r&&v(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Nt=function(e,t){Qe(),t(),Xe()},Mt=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Lt=function(e,t,r,n){if(e){var i=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),i=function(i){t||r||(t=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return t},i}(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}else r(n(t))},jt=function(e,t){var r=function(e,t){var r=Dt(),n=null,i=function(r){n||v(!1),n=null,Nt(0,(function(){return Lt(e().onDragEnd,r,t,O.onDragEnd)}))};return{beforeCapture:function(t,r){n&&v(!1),Nt(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&v(!1),Nt(0,(function(){var n=e().onBeforeDragStart;n&&n(Mt(t,r))}))},start:function(i,o){n&&v(!1);var a=Mt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add((function(){Nt(0,(function(){return Lt(e().onDragStart,a,t,O.onDragStart)}))}))},update:function(i,a){var s=K(a),u=Y(a);n||v(!1);var c=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(i,n.lastCritical);c&&(n.lastCritical=i);var l,f,p=(f=s,!(null==(l=n.lastLocation)&&null==f||null!=l&&null!=f&&l.droppableId===f.droppableId&&l.index===f.index));p&&(n.lastLocation=s);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(n.lastCombine,u);if(d&&(n.lastCombine=u),c||p||d){var h=(0,o.default)({},Mt(i,n.mode),{combine:u,destination:s});r.add((function(){Nt(0,(function(){return Lt(e().onDragUpdate,h,t,O.onDragUpdate)}))}))}},flush:function(){n||v(!1),r.flush()},drop:i,abort:function(){if(n){var e=(0,o.default)({},Mt(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return r.beforeStart(i,n.payload.movementMode),t(n),void r.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return r.flush(),t(n),void r.drop(o)}if(t(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Bt=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&v(!1),e.dispatch(gt({completed:n.completed}))}else t(r)}}},Ft=function(e){var t=null,r=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=h(window,[o])}))}}}},Ut=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(yt({reason:n.reason})))}}}},Ht=a.compose,qt=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,s=e.announce,u=e.autoScroller;return(0,a.createStore)(nt,Ht((0,a.applyMiddleware)((t=i,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,s=o.clientSelection,u=o.movementMode,c=r();"DROP_ANIMATING"===c.phase&&n(gt({completed:c.completed})),"IDLE"!==r().phase&&v(!1),n(mt()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var l={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(l),p=f.critical,d=f.dimensions,h=f.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:d,clientSelection:s,movementMode:u,viewport:h}})}else t(i)}}}}(r),It,Bt,Ft,Ut,function(e){return function(t){return function(r){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var i=t.getState();return"DRAGGING"!==i.phase&&v(!1),void e.start(i)}r(n),e.scroll(t.getState())}}}}(u),Pt,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),jt(o,s))))};var zt=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,o=k({x:r,y:t},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},Wt=function(){var e=document.documentElement;return e||v(!1),e},Vt=function(){var e=Wt();return zt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Gt=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry;Qe();var i=function(){var e=Rt(),t=Vt(),r=e.y,n=e.x,i=Wt(),o=n+i.clientWidth,a=r+i.clientHeight;return{frame:(0,c.getRect)({top:r,left:n,right:o,bottom:a}),scroll:{initial:e,current:e,max:t,diff:{value:x,displacement:x}}}}(),o=i.scroll.current,a=t.droppable,s=n.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,r)})),u=n.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),l={draggables:W(u),droppables:z(s)};return Xe(),{dimensions:l,critical:t,viewport:i}};function $t(e,t,r){return r.descriptor.id!==t.id&&(r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)}var Kt,Yt,Qt=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(r.collectionStarting(),i=requestAnimationFrame((function(){i=null,Qe();var e=n,o=e.additions,a=e.removals,s=e.modified,u=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(x)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),l={additions:u,removals:Object.keys(a),modified:c};n={additions:{},removals:{},modified:{}},Xe(),r.publish(l)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){r||v(!1);var i=r.critical.draggable;"ADDITION"===t.type&&$t(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&$t(e,i,t.value)&&n.remove(t.value)},o={updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||v(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){r&&(e.droppable.exists(n)||v(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,i){r&&(e.droppable.exists(n)||v(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(t){r&&v(!1);var n=e.draggable.getById(t.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},s=e.subscribe(i);return r={critical:a,unsubscribe:s},Gt({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}};return o},Xt=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Jt=function(e){window.scrollBy(e.x,e.y)},Zt=(0,l.default)((function(e){return V(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),er=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}var o=function(e,t){var r=H(Zt(t),(function(t){return t.frame||v(!1),Be(t.frame.pageMarginBox)(e)}));return r}(t,n);return o},tr=.25,rr=.05,nr=28,ir=function(e){return Math.pow(e,2)},or={stopDampeningAt:1200,accelerateAt:360},ar=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;return 0===i?0:(n-t)/i},sr=or.accelerateAt,ur=or.stopDampeningAt,cr=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return nr;if(e===t.startScrollingFrom)return 1;var r=ar({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=nr*ir(1-r);return Math.ceil(n)}(t,r);return 0===o?0:i?Math.max(function(e,t){var r=t,n=ur,i=Date.now()-r;if(i>=ur)return e;if(i<sr)return 1;var o=ar({startOfRange:sr,endOfRange:n,current:i}),a=e*ir(o);return Math.ceil(a)}(o,n),1):o},lr=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*tr,maxScrollValueAt:e[t.size]*rr}}(t,i);return r[i.end]<r[i.start]?cr({distanceToEdge:r[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*cr({distanceToEdge:r[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})},fr=D((function(e){return 0===e?0:e})),pr=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},s=lr({container:r,distanceToEdges:a,dragStartTime:t,axis:ie,shouldUseTimeDampening:o}),u=lr({container:r,distanceToEdges:a,dragStartTime:t,axis:oe,shouldUseTimeDampening:o}),c=fr({x:u,y:s});if(C(c,x))return null;var l=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,o=r.width>t.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return l?C(l,x)?null:l:null},dr=D((function(e){return 0===e?0:e>0?1:-1})),hr=(Kt=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,i=T(t,n),o={x:Kt(i.x,r.x),y:Kt(i.y,r.y)};return C(o,x)?null:o}),mr=function(e){var t=e.max,r=e.current,n=e.change,i={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=dr(n),a=hr({max:i,current:r,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},gr=function(e,t){return mr({current:e.scroll.current,max:e.scroll.max,change:t})},yr=function(e,t){var r=e.frame;return!!r&&mr({current:r.scroll.current,max:r.scroll.max,change:t})},vr=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=pr({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return a&&gr(t,a)?a:null}({dragStartTime:r,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:n});if(u)return void i(u)}var c=er({center:a,destination:Me(t.impact),droppables:t.dimensions.droppables});if(c){var l=function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=pr({dragStartTime:i,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:o});return s&&yr(t,s)?s:null}({dragStartTime:r,droppable:c,subject:s,center:a,shouldUseTimeDampening:n});l&&o(c.descriptor.id,l)}},br=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(e,t){if(!yr(e,t))return t;var n=function(e,t){var r=e.frame;return r&&yr(e,t)?hr({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var i=k(t,n);return r(e.descriptor.id,i),k(t,i)},o=function(e,t,r){if(!e)return r;if(!gr(t,r))return r;var i=function(e,t){if(!gr(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return hr({current:n,max:r,change:t})}(t,r);if(!i)return n(r),null;var o=k(r,i);return n(o),k(r,o)};return function(e){var r=e.scrollJumpRequest;if(r){var n=Me(e.impact);n||v(!1);var a=i(e.dimensions.droppables[n],r);if(a){var s=e.viewport,u=o(e.isWindowScrollAllowed,s,a);u&&function(e,r){var n=T(e.current.client.selection,r);t({client:n})}(e,u)}}}},_r=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=(0,f.default)(t),i=(0,f.default)(r),o=null,a=function(e){o||v(!1);var t=o,r=t.shouldUseTimeDampening,a=t.dragStartTime;vr({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:r})};return{start:function(e){Qe(),o&&v(!1);var t=Date.now(),r=!1,n=function(){r=!0};vr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:t,shouldUseTimeDampening:r},Xe(),r&&a(e)},stop:function(){o&&(n.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:r,scrollDroppable:t}),o=br({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},Sr="data-rbd",Er={base:Yt=Sr+"-drag-handle",draggableId:Yt+"-draggable-id",contextId:Yt+"-context-id"},wr=function(){var e=Sr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Or=function(){var e=Sr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr={contextId:Sr+"-scroll-container-context-id"},Tr=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},kr=function(e){var t,r,n,i=(t=e,function(e){return"["+e+'="'+t+'"]'}),o=(r="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:i(Er.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),a=[(n="\n      transition: "+wt.outOfTheWay+";\n    ",{selector:i(wr.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:i(Or.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:Tr(a,"always"),resting:Tr(a,"resting"),dragging:Tr(a,"dragging"),dropAnimating:Tr(a,"dropAnimating"),userCancel:Tr(a,"userCancel")}},Cr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Ir=function(){var e=document.querySelector("head");return e||v(!1),e},Rr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Ar=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Pr(e){return e instanceof Ar(e).HTMLElement}function Dr(e,t){var r="["+Er.contextId+'="'+e+'"]',n=q(document.querySelectorAll(r));if(!n.length)return null;var i=H(n,(function(e){return e.getAttribute(Er.draggableId)===t}));return i&&Pr(i)?i:null}function Nr(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=n(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||v(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return F(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=i(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||v(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return F(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Mr=n.default.createContext(null),Lr=function(){var e=document.body;return e||v(!1),e},jr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Br=function(e){return"rbd-announcement-"+e};var Fr=0,Ur={separator:"::"};function Hr(e,t){return void 0===t&&(t=Ur),(0,u.useMemo)((function(){return""+e+t.separator+Fr++}),[t.separator,e])}var qr=n.default.createContext(null);function zr(e){0}function Wr(e,t){zr()}function Vr(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),t}var Gr,$r=27,Kr=32,Yr=37,Qr=38,Xr=39,Jr=40,Zr=((Gr={})[13]=!0,Gr[9]=!0,Gr),en=function(e){Zr[e.keyCode]&&e.preventDefault()},tn=function(){var e="visibilitychange";return"undefined"==typeof document?e:H([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),rn=0,nn=5;var on,an={type:"IDLE"};function sn(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,o=e.clientY;if(t===rn){var a={x:r,y:o},s=n();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&v(!1);var u=s.point;if(c=u,l=a,Math.abs(l.x-c.x)>=nn||Math.abs(l.y-c.y)>=nn){var c,l;e.preventDefault();var f=s.actions.fluidLift(a);i({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return e.keyCode===$r?(e.preventDefault(),void t()):void en(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&v(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:tn,fn:t}]}function un(e){var t=(0,n.useRef)(an),r=(0,n.useRef)(d),i=(0,u.useMemo)((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===rn&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,s,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};r.current(),f(i,o)}}}}}}),[e]),o=(0,u.useMemo)((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),a=(0,u.useCallback)((function(){r.current=h(window,[o,i],{passive:!1,capture:!0})}),[o,i]),s=(0,u.useCallback)((function(){"IDLE"!==t.current.type&&(t.current=an,r.current(),a())}),[a]),c=(0,u.useCallback)((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),l=(0,u.useCallback)((function(){var e=sn({cancel:c,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=h(window,e,{capture:!0,passive:!1})}),[c,s]),f=(0,u.useCallback)((function(e,r){"IDLE"!==t.current.type&&v(!1),t.current={type:"PENDING",point:r,actions:e},l()}),[l]);Cr((function(){return a(),function(){r.current()}}),[a])}function cn(){}var ln=((on={})[34]=!0,on[33]=!0,on[36]=!0,on[35]=!0,on);function fn(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return n.keyCode===$r?(n.preventDefault(),void r()):n.keyCode===Kr?(n.preventDefault(),t(),void e.drop()):n.keyCode===Jr?(n.preventDefault(),void e.moveDown()):n.keyCode===Qr?(n.preventDefault(),void e.moveUp()):n.keyCode===Xr?(n.preventDefault(),void e.moveRight()):n.keyCode===Yr?(n.preventDefault(),void e.moveLeft()):void(ln[n.keyCode]?n.preventDefault():en(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:tn,fn:r}]}function pn(e){var t=(0,n.useRef)(cn),r=(0,u.useMemo)((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&r.keyCode===Kr){var n=e.findClosestDraggableId(r);if(n){var o=e.tryGetLock(n,u,{sourceEvent:r});if(o){r.preventDefault();var a=!0,s=o.snapLift();t.current(),t.current=h(window,fn(s,u),{capture:!0,passive:!1})}}}function u(){a||v(!1),a=!1,t.current(),i()}}}}),[e]),i=(0,u.useCallback)((function(){t.current=h(window,[r],{passive:!1,capture:!0})}),[r]);Cr((function(){return i(),function(){t.current()}}),[i])}var dn={type:"IDLE"},hn=120,mn=.15;function gn(e){var t=(0,n.useRef)(dn),r=(0,n.useRef)(d),i=(0,u.useCallback)((function(){return t.current}),[]),o=(0,u.useCallback)((function(e){t.current=e}),[]),a=(0,u.useMemo)((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,c,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};r.current(),m(i,a)}}}}}}),[e]),s=(0,u.useCallback)((function(){r.current=h(window,[a],{capture:!0,passive:!1})}),[a]),c=(0,u.useCallback)((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(dn),r.current(),s())}),[s,o]),l=(0,u.useCallback)((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),f=(0,u.useCallback)((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:c,getPhase:i},n=h(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),r.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&v(!1);var i=e.touches[0];if(i&&i.force>=mn){var o=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return o?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:tn,fn:t}]}(t),e),o=h(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(e.keyCode===$r&&e.preventDefault(),t()):t()}},{eventName:tn,fn:t}]}(t),e);r.current=function(){n(),o()}}),[l,i,c]),p=(0,u.useCallback)((function(){var e=i();"PENDING"!==e.type&&v(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),m=(0,u.useCallback)((function(e,t){"IDLE"!==i().type&&v(!1);var r=setTimeout(p,hn);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),f()}),[f,i,o,p]);Cr((function(){return s(),function(){r.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(dn))}}),[i,s,o]),Cr((function(){return h(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var yn={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function vn(e,t){if(null==t)return!1;if(Boolean(yn[t.tagName.toLowerCase()]))return!0;var r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&vn(e,t.parentElement)}function bn(e,t){var r=t.target;return!!Pr(r)&&vn(e,r)}var _n=function(e){return(0,c.getRect)(e.getBoundingClientRect()).center};var Sn=function(){var e="matches";return"undefined"==typeof document?e:H([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function En(e,t){return null==e?null:e[Sn](t)?e:En(e.parentElement,t)}function wn(e,t){return e.closest?e.closest(t):En(e,t)}function On(e,t){var r,n=t.target;if(!((r=n)instanceof Ar(r).Element))return null;var i=function(e){return"["+Er.contextId+'="'+e+'"]'}(e),o=wn(n,i);return o&&Pr(o)?o:null}function xn(e){e.preventDefault()}function Tn(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function kn(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!Xt(r.getState(),i))}function Cn(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,a=e.draggableId,s=e.forceSensorStop,u=e.sourceEvent;if(!kn({lockAPI:t,store:n,registry:i,draggableId:a}))return null;var c=i.draggable.getById(a),l=function(e,t){var r="["+wr.contextId+'="'+e+'"]',n=H(q(document.querySelectorAll(r)),(function(e){return e.getAttribute(wr.id)===t}));return n&&Pr(n)?n:null}(r,c.descriptor.id);if(!l)return null;if(u&&!c.options.canDragInteractiveElements&&bn(l,u))return null;var p=t.claim(s||d),m="PRE_DRAG";function g(){return c.options.shouldRespectForcePress}function y(){return t.isActive(p)}var b=function(e,t){Tn({expected:e,phase:m,isLockActive:y,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function _(e){function r(){t.release(),m="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=h(window,[{eventName:"click",fn:xn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}r(),n.dispatch(yt({reason:t}))}return"PRE_DRAG"!==m&&(r(),"PRE_DRAG"!==m&&v(!1)),n.dispatch(it(e.liftActionArgs)),m="DRAGGING",(0,o.default)({isActive:function(){return Tn({expected:"DRAGGING",phase:m,isLockActive:y,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return Tn({expected:"PRE_DRAG",phase:m,isLockActive:y,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:function(e){var t=(0,f.default)((function(e){b((function(){return lt({client:e})}))})),r=_({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,o.default)({},r,{move:t})},snapLift:function(){var e={moveUp:function(){return b(ft)},moveRight:function(){return b(dt)},moveDown:function(){return b(pt)},moveLeft:function(){return b(ht)}};return _({liftActionArgs:{id:a,clientSelection:_n(l),movementMode:"SNAP"},cleanup:d,actions:e})},abort:function(){Tn({expected:"PRE_DRAG",phase:m,isLockActive:y,shouldWarn:!0})&&t.release()}}}var In=[un,pn,gn];function Rn(e){var t=e.contextId,r=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?In:[],o||[]),c=(0,n.useState)((function(){return function(){var e=null;function t(){e||v(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&v(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=(0,u.useCallback)((function(e,t){e.isDragging&&!t.isDragging&&c.tryAbandon()}),[c]);Cr((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();l(e,t),e=t}))}),[c,r,l]),Cr((function(){return c.tryAbandon}),[c.tryAbandon]);var f=(0,u.useCallback)((function(e){return kn({lockAPI:c,registry:i,store:r,draggableId:e})}),[c,i,r]),p=(0,u.useCallback)((function(e,n,o){return Cn({lockAPI:c,registry:i,contextId:t,store:r,draggableId:e,forceSensorStop:n,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,c,i,r]),d=(0,u.useCallback)((function(e){return function(e,t){var r=On(e,t);return r?r.getAttribute(Er.draggableId):null}(t,e)}),[t]),h=(0,u.useCallback)((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),m=(0,u.useCallback)((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(mt()))}),[c,r]),g=(0,u.useCallback)(c.isClaimed,[c]),y=(0,u.useMemo)((function(){return{canGetLock:f,tryGetLock:p,findClosestDraggableId:d,findOptionsForDraggable:h,tryReleaseLock:m,isLockClaimed:g}}),[f,p,d,h,m,g]);zr();for(var b=0;b<s.length;b++)s[b](y)}var An=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function Pn(e){return e.current||v(!1),e.current}function Dn(e){var t=e.contextId,r=e.setCallbacks,i=e.sensors,c=e.nonce,f=e.dragHandleUsageInstructions,p=(0,n.useRef)(null);Wr();var d=Vr(e),h=(0,u.useCallback)((function(){return An(d.current)}),[d]),m=function(e){var t=(0,u.useMemo)((function(){return Br(e)}),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,o.default)(e.style,jr),Lr().appendChild(e),function(){setTimeout((function(){var t=Lr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),(0,u.useCallback)((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),g=function(e){var t=e.contextId,r=e.text,i=Hr("hidden-text",{separator:"-"}),o=(0,u.useMemo)((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return(0,n.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=r,e.style.display="none",Lr().appendChild(e),function(){var t=Lr();t.contains(e)&&t.removeChild(e)}}),[o,r]),o}({contextId:t,text:f}),y=function(e,t){var r=(0,u.useMemo)((function(){return kr(e)}),[e]),i=(0,n.useRef)(null),o=(0,n.useRef)(null),a=(0,u.useCallback)((0,l.default)((function(e){var t=o.current;t||v(!1),t.textContent=e})),[]),s=(0,u.useCallback)((function(e){var t=i.current;t||v(!1),t.textContent=e}),[]);Cr((function(){(i.current||o.current)&&v(!1);var n=Rr(t),u=Rr(t);return i.current=n,o.current=u,n.setAttribute(Sr+"-always",e),u.setAttribute(Sr+"-dynamic",e),Ir().appendChild(n),Ir().appendChild(u),s(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||v(!1),Ir().removeChild(t),e.current=null};e(i),e(o)}}),[t,s,a,r.always,r.resting,e]);var c=(0,u.useCallback)((function(){return a(r.dragging)}),[a,r.dragging]),f=(0,u.useCallback)((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),p=(0,u.useCallback)((function(){o.current&&a(r.resting)}),[a,r.resting]);return(0,u.useMemo)((function(){return{dragging:c,dropping:f,resting:p}}),[c,f,p])}(t,c),b=(0,u.useCallback)((function(e){Pn(p).dispatch(e)}),[]),_=(0,u.useMemo)((function(){return(0,a.bindActionCreators)({publishWhileDragging:ot,updateDroppableScroll:st,updateDroppableIsEnabled:ut,updateDroppableIsCombineEnabled:ct,collectionStarting:at},b)}),[b]),S=function(){var e=(0,u.useMemo)(Nr,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),E=(0,u.useMemo)((function(){return Qt(S,_)}),[S,_]),w=(0,u.useMemo)((function(){return _r((0,o.default)({scrollWindow:Jt,scrollDroppable:E.scrollDroppable},(0,a.bindActionCreators)({move:lt},b)))}),[E.scrollDroppable,b]),O=function(e){var t=(0,n.useRef)({}),r=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(!1),a=(0,u.useCallback)((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),s=(0,u.useCallback)((function(t){var r=Dr(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),c=(0,u.useCallback)((function(e,t){r.current===e&&(r.current=t)}),[]),l=(0,u.useCallback)((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=r.current;e&&s(e)})))}),[s]),f=(0,u.useCallback)((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(Er.draggableId)===e&&(r.current=e)}),[]);return Cr((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),(0,u.useMemo)((function(){return{register:a,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:c}}),[a,f,l,c])}(t),x=(0,u.useMemo)((function(){return qt({announce:m,autoScroller:w,dimensionMarshal:E,focusMarshal:O,getResponders:h,styleMarshal:y})}),[m,w,E,O,h,y]);p.current=x;var T=(0,u.useCallback)((function(){var e=Pn(p);"IDLE"!==e.getState().phase&&e.dispatch(mt())}),[]),k=(0,u.useCallback)((function(){var e=Pn(p).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r((0,u.useMemo)((function(){return{isDragging:k,tryAbort:T}}),[k,T]));var C=(0,u.useCallback)((function(e){return Xt(Pn(p).getState(),e)}),[]),I=(0,u.useCallback)((function(){return je(Pn(p).getState())}),[]),R=(0,u.useMemo)((function(){return{marshal:E,focus:O,contextId:t,canLift:C,isMovementAllowed:I,dragHandleUsageInstructionsId:g,registry:S}}),[t,E,g,O,C,I,S]);return Rn({contextId:t,store:x,registry:S,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return T}),[T]),n.default.createElement(qr.Provider,{value:R},n.default.createElement(s.Provider,{context:Mr,store:x},e.children))}var Nn=0;function Mn(){Nn=0,Fr=0}function Ln(e){var t=(0,u.useMemo)((function(){return""+Nn++}),[]),r=e.dragHandleUsageInstructions||O.dragHandleUsageInstructions;return n.default.createElement(b,null,(function(i){return n.default.createElement(Dn,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var jn=function(e){return function(t){return e===t}},Bn=jn("scroll"),Fn=jn("auto"),Un=(jn("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Hn=function(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return Un(r,Bn)||Un(r,Fn)},qn=function e(t){return null==t||t===document.body||t===document.documentElement?null:Hn(t)?t:e(t.parentElement)},zn=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Wn=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Vn=function(e){return{closestScrollable:qn(e),isFixedOnPage:Wn(e)}},Gn=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,u=e.shouldClipSubject,l=n.closestScrollable,f=function(e,t){var r=(0,c.getBox)(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,o=n+t.scrollHeight,a={top:n,right:i+t.scrollWidth,bottom:o,left:i},s=(0,c.expand)(a,r.border);return(0,c.createBox)({borderBox:s,margin:r.margin,border:r.border,padding:r.padding})}(t,l),p=(0,c.withScroll)(f,i),d=function(){if(!l)return null;var e=(0,c.getBox)(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:(0,c.withScroll)(e,i),scroll:zn(l),scrollSize:t,shouldClipSubject:u}}(),h=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,u=e.closest,c=function(){if(!u)return null;var e=u.scrollSize,t=u.client,r=zt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:r,diff:{value:x,displacement:x}}}}(),l="vertical"===o?ie:oe;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:l,isEnabled:r,client:a,page:s,frame:c,subject:j({page:s,withPlaceholder:null,axis:l,frame:c})}}({descriptor:r,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:n.isFixedOnPage,direction:o,client:f,page:p,closest:d});return h},$n={passive:!1},Kn={passive:!0},Yn=function(e){return e.shouldPublishImmediately?$n:Kn};function Qn(e){var t=(0,n.useContext)(e);return t||v(!1),t}var Xn=function(e){return e&&e.env.closestScrollable||null};function Jn(){}var Zn={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},ei=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate;return t||"close"===n?Zn:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?wt.placeholder:null}};var ti=n.default.memo((function(e){var t=(0,n.useRef)(null),r=(0,u.useCallback)((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,s=e.contextId,c=(0,n.useState)("open"===e.animate),l=c[0],f=c[1];(0,n.useEffect)((function(){return l?"open"!==i?(r(),f(!1),Jn):t.current?Jn:(t.current=setTimeout((function(){t.current=null,f(!1)})),r):Jn}),[i,l,r]);var p=(0,u.useCallback)((function(e){"height"===e.propertyName&&(o(),"close"===i&&a())}),[i,a,o]),d=ei({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return n.default.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":s,onTransitionEnd:p,ref:e.innerRef})})),ri=n.default.createContext(null);var ni=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(n.default.PureComponent),ii={dragging:5e3,dropAnimating:4500},oi=function(e,t){return t?wt.drop(t.duration):e?wt.snap:wt.fluid},ai=function(e,t){return e?t?_t.drop:_t.combining:null},si=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function ui(e){return"DRAGGING"===e.type?(n=(r=e).dimension.client,i=r.offset,o=r.combineWith,a=r.dropping,s=Boolean(o),u=si(r),c=Boolean(a),l=c?xt.drop(i,s):xt.moveTo(i),{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:oi(u,a),transform:l,opacity:ai(s,c),zIndex:c?ii.dropAnimating:ii.dragging,pointerEvents:"none"}):(t=e,{transform:xt.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t,r,n,i,o,a,s,u,c,l}function ci(e){var t=Hr("draggable"),r=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,f=(0,u.useMemo)((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),p=(0,u.useCallback)((function(e){var t=o();return t||v(!1),function(e,t,r){void 0===r&&(r=x);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=(0,c.calculateBox)(i,n),a=(0,c.withScroll)(o,r);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(r,t,e)}),[r,o]),d=(0,u.useMemo)((function(){return{uniqueId:t,descriptor:r,options:f,getDimension:p}}),[r,p,f,t]),h=(0,n.useRef)(d),m=(0,n.useRef)(!0);Cr((function(){return i.draggable.register(h.current),function(){return i.draggable.unregister(h.current)}}),[i.draggable]),Cr((function(){if(m.current)m.current=!1;else{var e=h.current;h.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function li(e,t,r){Wr()}function fi(e){e.preventDefault()}var pi=function(e,t){return e===t},di=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function hi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var mi={mapped:{type:"SECONDARY",offset:x,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:hi(null)}};var gi={dropAnimationFinished:vt},yi=(0,s.connect)((function(){var e,t,r,n=(e=(0,l.default)((function(e,t){return{x:e,y:t}})),t=(0,l.default)((function(e,t,r,n,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=(0,l.default)((function(e,r,n,i,o,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:s,snapshot:t(r,i,o,a,null)}}})),function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var o=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],s=Me(n.impact),u=(l=n.impact).at&&"COMBINE"===l.at.type?l.at.combine.draggableId:null,c=n.forceShouldAnimate;return r(e(o.x,o.y),n.movementMode,a,i.isClone,s,u,c)}var l;if("DROP_ANIMATING"===n.phase){var f=n.completed;if(f.result.draggableId!==i.draggableId)return null;var p=i.isClone,d=n.dimensions.draggables[i.draggableId],h=f.result,m=h.mode,g=di(h),y=function(e){return e.combine?e.combine.draggableId:null}(h),v={duration:n.dropDuration,curve:bt,moveTo:n.newHomeClientOffset,opacity:y?_t.drop:null,scale:y?St.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:d,dropping:v,draggingOver:g,combineWith:y,mode:m,forceShouldAnimate:null,snapshot:t(m,p,g,y,v)}}}return null}),i=function(){var e=(0,l.default)((function(e,t){return{x:e,y:t}})),t=(0,l.default)(hi),r=(0,l.default)((function(e,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}})),n=function(e){return e?r(x,e,!0):null},i=function(t,i,o,a){var s=o.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),c=Y(o),l=c&&c.draggableId===t?i:null;if(!s){if(!u)return n(l);if(o.displaced.invisible[t])return null;var f=I(a.displacedBy.point),p=e(f.x,f.y);return r(p,l,!0)}if(u)return n(l);var d=o.displacedBy.point,h=e(d.x,d.y);return r(h,l,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(e,t){return n(e,t)||i(e,t)||mi}}),gi,null,{context:Mr,pure:!0,areStatePropsEqual:pi})((function(e){var t=(0,n.useRef)(null),r=(0,u.useCallback)((function(e){t.current=e}),[]),i=(0,u.useCallback)((function(){return t.current}),[]),o=Qn(qr),a=o.contextId,s=o.dragHandleUsageInstructionsId,c=o.registry,l=Qn(ri),f=l.type,p=l.droppableId,d=(0,u.useMemo)((function(){return{id:e.draggableId,index:e.index,type:f,droppableId:p}}),[e.draggableId,e.index,f,p]),h=e.children,m=e.draggableId,g=e.isEnabled,y=e.shouldRespectForcePress,v=e.canDragInteractiveElements,b=e.isClone,_=e.mapped,S=e.dropAnimationFinished;li(),zr(),b||ci((0,u.useMemo)((function(){return{descriptor:d,registry:c,getDraggableRef:i,canDragInteractiveElements:v,shouldRespectForcePress:y,isEnabled:g}}),[d,c,i,v,y,g]));var E=(0,u.useMemo)((function(){return g?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:fi}:null}),[a,s,m,g]),w=(0,u.useCallback)((function(e){"DRAGGING"===_.type&&_.dropping&&"transform"===e.propertyName&&S()}),[S,_]),O=(0,u.useMemo)((function(){var e=ui(_),t="DRAGGING"===_.type&&_.dropping?w:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:E}}),[a,E,m,_,w,r]),x=(0,u.useMemo)((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return h(O,_.snapshot,x)}));function vi(e){return Qn(ri).isUsingCloneFor!==e.draggableId||e.isClone?n.default.createElement(yi,e):null}function bi(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return n.default.createElement(vi,(0,o.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}var _i=function(e,t){return e===t.droppable.type},Si=function(e,t){return t.draggables[e.draggable.id]},Ei={updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}};var wi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||v(!1),document.body}},Oi=(0,s.connect)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,o.default)({},e,{shouldAnimatePlaceholder:!1}),r=(0,l.default)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=(0,l.default)((function(n,i,o,a,s,u){var c=s.descriptor.id;if(s.descriptor.droppableId===n){var l=u?{render:u,dragging:r(s.descriptor)}:null,f={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:l}}if(!i)return t;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(r,i){var o=i.droppableId,a=i.type,s=!i.isDropDisabled,u=i.renderClone;if(r.isDragging){var c=r.critical;if(!_i(a,c))return t;var l=Si(c,r.dimensions),f=Me(r.impact)===o;return n(o,s,f,f,l,u)}if("DROP_ANIMATING"===r.phase){var p=r.completed;if(!_i(a,p.critical))return t;var d=Si(p.critical,r.dimensions);return n(o,s,di(p.result)===o,Me(p.impact)===o,d,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var h=r.completed;if(!_i(a,h.critical))return t;var m=Me(h.impact)===o,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),y=h.critical.droppable.id===o;return m?g?e:t:y?e:t}return t}}),Ei,null,{context:Mr,pure:!0,areStatePropsEqual:pi})((function(e){var t=(0,n.useContext)(qr);t||v(!1);var r=t.contextId,i=t.isMovementAllowed,o=(0,n.useRef)(null),a=(0,n.useRef)(null),s=e.children,c=e.droppableId,p=e.type,d=e.mode,h=e.direction,m=e.ignoreContainerClipping,g=e.isDropDisabled,y=e.isCombineEnabled,b=e.snapshot,_=e.useClone,S=e.updateViewportMaxScroll,E=e.getContainerForClone,w=(0,u.useCallback)((function(){return o.current}),[]),O=(0,u.useCallback)((function(e){o.current=e}),[]),T=((0,u.useCallback)((function(){return a.current}),[]),(0,u.useCallback)((function(e){a.current=e}),[]));Wr();var k=(0,u.useCallback)((function(){i()&&S({maxScroll:Vt()})}),[i,S]);!function(e){var t=(0,n.useRef)(null),r=Qn(qr),i=Hr("droppable"),o=r.registry,a=r.marshal,s=Vr(e),c=(0,u.useMemo)((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),p=(0,n.useRef)(c),d=(0,u.useMemo)((function(){return(0,l.default)((function(e,r){t.current||v(!1);var n={x:e,y:r};a.updateDroppableScroll(c.id,n)}))}),[c.id,a]),h=(0,u.useCallback)((function(){var e=t.current;return e&&e.env.closestScrollable?zn(e.env.closestScrollable):x}),[]),m=(0,u.useCallback)((function(){var e=h();d(e.x,e.y)}),[h,d]),g=(0,u.useMemo)((function(){return(0,f.default)(m)}),[m]),y=(0,u.useCallback)((function(){var e=t.current,r=Xn(e);e&&r||v(!1),e.scrollOptions.shouldPublishImmediately?m():g()}),[g,m]),b=(0,u.useCallback)((function(e,n){t.current&&v(!1);var i=s.current,o=i.getDroppableRef();o||v(!1);var a=Vn(o),u={ref:o,descriptor:c,env:a,scrollOptions:n};t.current=u;var l=Gn({ref:o,descriptor:c,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(xr.contextId,r.contextId),f.addEventListener("scroll",y,Yn(u.scrollOptions))),l}),[r.contextId,c,y,s]),_=(0,u.useCallback)((function(){var e=t.current,r=Xn(e);return e&&r||v(!1),zn(r)}),[]),S=(0,u.useCallback)((function(){var e=t.current;e||v(!1);var r=Xn(e);t.current=null,r&&(g.cancel(),r.removeAttribute(xr.contextId),r.removeEventListener("scroll",y,Yn(e.scrollOptions)))}),[y,g]),E=(0,u.useCallback)((function(e){var r=t.current;r||v(!1);var n=Xn(r);n||v(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),w=(0,u.useMemo)((function(){return{getDimensionAndWatchScroll:b,getScrollWhileDragging:_,dragStopped:S,scroll:E}}),[S,b,_,E]),O=(0,u.useMemo)((function(){return{uniqueId:i,descriptor:c,callbacks:w}}),[w,c,i]);Cr((function(){return p.current=O.descriptor,o.droppable.register(O),function(){t.current&&S(),o.droppable.unregister(O)}}),[w,c,S,O,a,o.droppable]),Cr((function(){t.current&&a.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Cr((function(){t.current&&a.updateDroppableIsCombineEnabled(p.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:c,type:p,mode:d,direction:h,isDropDisabled:g,isCombineEnabled:y,ignoreContainerClipping:m,getDroppableRef:w});var C=n.default.createElement(ni,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,i=e.data,o=e.animate;return n.default.createElement(ti,{placeholder:i,onClose:t,innerRef:T,animate:o,contextId:r,onTransitionEnd:k})})),I=(0,u.useMemo)((function(){return{innerRef:O,placeholder:C,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":r}}}),[r,c,C,O]),R=_?_.dragging.draggableId:null,A=(0,u.useMemo)((function(){return{droppableId:c,type:p,isUsingCloneFor:R}}),[c,R,p]);return n.default.createElement(ri.Provider,{value:A},s(I,b),function(){if(!_)return null;var e=_.dragging,t=_.render,r=n.default.createElement(vi,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return n.default.createPortal(r,E())}())}));Oi.defaultProps=wi},(e,t,r)=>{"use strict";r.r(t),r.d(t,{__DO_NOT_USE__ActionTypes:()=>s,applyMiddleware:()=>m,bindActionCreators:()=>d,combineReducers:()=>f,compose:()=>h,createStore:()=>c,legacy_createStore:()=>l});var n=r(2235);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(i(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(i(1));return r(c)(e,t)}if("function"!=typeof e)throw new Error(i(2));var a=e,l=t,f=[],p=f,d=!1;function h(){p===f&&(p=f.slice())}function m(){if(d)throw new Error(i(3));return l}function g(e){if("function"!=typeof e)throw new Error(i(4));if(d)throw new Error(i(5));var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error(i(6));t=!1,h();var r=p.indexOf(e);p.splice(r,1),f=null}}}function y(e){if(!u(e))throw new Error(i(7));if(void 0===e.type)throw new Error(i(8));if(d)throw new Error(i(9));try{d=!0,l=a(l,e)}finally{d=!1}for(var t=f=p,r=0;r<t.length;r++){(0,t[r])()}return e}return y({type:s.INIT}),(n={dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(i(10));a=e,y({type:s.REPLACE})}})[o]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(i(11));function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[o]=function(){return this},e},n}var l=c;function f(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}var a,u=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:s.INIT}))throw new Error(i(12));if(void 0===r(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(i(13))}))}(r)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},s=0;s<u.length;s++){var c=u[s],l=r[c],f=e[c],p=l(f,t);if(void 0===p){t&&t.type;throw new Error(i(14))}o[c]=p,n=n||p!==f}return(n=n||u.length!==Object.keys(e).length)?o:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(i(16));var r={};for(var n in e){var o=e[n];"function"==typeof o&&(r[n]=p(o,t))}return r}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),o=function(){throw new Error(i(15))},a={getState:r.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map((function(e){return e(a)}));return o=h.apply(void 0,s)(r.dispatch),(0,n.default)((0,n.default)({},r),{},{dispatch:o})}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(93);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){(0,n.default)(e,t,r[t])})):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,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>n.Provider,ReactReduxContext:()=>n.ReactReduxContext,batch:()=>i.unstable_batchedUpdates,connect:()=>n.connect,connectAdvanced:()=>n.connectAdvanced,createDispatchHook:()=>n.createDispatchHook,createSelectorHook:()=>n.createSelectorHook,createStoreHook:()=>n.createStoreHook,shallowEqual:()=>n.shallowEqual,useDispatch:()=>n.useDispatch,useSelector:()=>n.useSelector,useStore:()=>n.useStore});var n=r(2237),i=r(2265);(0,r(2241).setBatch)(i.unstable_batchedUpdates)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>n.default,ReactReduxContext:()=>o.ReactReduxContext,connect:()=>a.default,connectAdvanced:()=>i.default,createDispatchHook:()=>s.createDispatchHook,createSelectorHook:()=>u.createSelectorHook,createStoreHook:()=>c.createStoreHook,shallowEqual:()=>l.default,useDispatch:()=>s.useDispatch,useSelector:()=>u.useSelector,useStore:()=>c.useStore});var n=r(2238),i=r(2243),o=r(2239),a=r(2249),s=r(2261),u=r(2264),c=r(2262),l=r(2250)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(270),i=r(2239),o=r(2240),a=r(2242);const s=function(e){var t=e.store,r=e.context,s=e.children,u=(0,n.useMemo)((function(){var e=(0,o.createSubscription)(t);return{store:t,subscription:e}}),[t]),c=(0,n.useMemo)((function(){return t.getState()}),[t]);(0,a.useIsomorphicLayoutEffect)((function(){var e=u.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[u,c]);var l=r||i.ReactReduxContext;return n.default.createElement(l.Provider,{value:u},s)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ReactReduxContext:()=>n,default:()=>i});var n=r(270).default.createContext(null);const i=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createSubscription:()=>o});var n=r(2241);var i={notify:function(){},get:function(){return[]}};function o(e,t){var r,o=i;function a(){u.onStateChange&&u.onStateChange()}function s(){var i,s,u;r||(r=t?t.addNestedSub(a):e.subscribe(a),i=(0,n.getBatch)(),s=null,u=null,o={clear:function(){s=null,u=null},notify:function(){i((function(){for(var e=s;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=s;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,r=u={callback:e,next:null,prev:u};return r.prev?r.prev.next=r:s=r,function(){t&&null!==s&&(t=!1,r.next?r.next.prev=r.prev:u=r.prev,r.prev?r.prev.next=r.next:s=r.next)}}})}var u={addNestedSub:function(e){return s(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(r)},trySubscribe:s,tryUnsubscribe:function(){r&&(r(),r=void 0,o.clear(),o=i)},getListeners:function(){return o}};return u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBatch:()=>o,setBatch:()=>i});var n=function(e){e()},i=function(e){return n=e},o=function(){return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useIsomorphicLayoutEffect:()=>i});var n=r(270),i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(1389),i=r(677),o=r(2244),a=r.n(o),s=r(270),u=r(2247),c=r(2240),l=r(2242),f=r(2239),p=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],d=["reactReduxForwardedRef"],h=[],m=[null,null];function g(e,t){var r=e[1];return[t.payload,r+1]}function y(e,t,r){(0,l.useIsomorphicLayoutEffect)((function(){return e.apply(void 0,t)}),r)}function v(e,t,r,n,i,o,a){e.current=n,t.current=i,r.current=!1,o.current&&(o.current=null,a())}function b(e,t,r,n,i,o,a,s,u,c){if(e){var l=!1,f=null,p=function(){if(!l){var e,r,p=t.getState();try{e=n(p,i.current)}catch(e){r=e,f=e}r||(f=null),e===o.current?a.current||u():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=p,r.trySubscribe(),p();return function(){if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}}var _=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var r=t,o=r.getDisplayName,l=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,S=r.methodName,E=void 0===S?"connectAdvanced":S,w=r.renderCountProp,O=void 0===w?void 0:w,x=r.shouldHandleStateChanges,T=void 0===x||x,k=r.storeKey,C=void 0===k?"store":k,I=(r.withRef,r.forwardRef),R=void 0!==I&&I,A=r.context,P=void 0===A?f.ReactReduxContext:A,D=(0,i.default)(r,p),N=P;return function(t){var r=t.displayName||t.name||"Component",o=l(r),f=(0,n.default)({},D,{getDisplayName:l,methodName:E,renderCountProp:O,shouldHandleStateChanges:T,storeKey:C,displayName:o,wrappedComponentName:r,WrappedComponent:t}),p=D.pure;var S=p?s.useMemo:function(e){return e()};function w(r){var o=(0,s.useMemo)((function(){var e=r.reactReduxForwardedRef,t=(0,i.default)(r,d);return[r.context,e,t]}),[r]),a=o[0],l=o[1],p=o[2],E=(0,s.useMemo)((function(){return a&&a.Consumer&&(0,u.isContextConsumer)(s.default.createElement(a.Consumer,null))?a:N}),[a,N]),w=(0,s.useContext)(E),O=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(w)&&Boolean(w.store);var x=O?r.store:w.store,k=(0,s.useMemo)((function(){return function(t){return e(t.dispatch,f)}(x)}),[x]),C=(0,s.useMemo)((function(){if(!T)return m;var e=(0,c.createSubscription)(x,O?null:w.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[x,O,w]),I=C[0],R=C[1],A=(0,s.useMemo)((function(){return O?w:(0,n.default)({},w,{subscription:I})}),[O,w,I]),P=(0,s.useReducer)(g,h,_),D=P[0][0],M=P[1];if(D&&D.error)throw D.error;var L=(0,s.useRef)(),j=(0,s.useRef)(p),B=(0,s.useRef)(),F=(0,s.useRef)(!1),U=S((function(){return B.current&&p===j.current?B.current:k(x.getState(),p)}),[x,D,p]);y(v,[j,L,F,p,U,B,R]),y(b,[T,x,I,k,j,L,F,B,R,M],[x,I,k]);var H=(0,s.useMemo)((function(){return s.default.createElement(t,(0,n.default)({},U,{ref:l}))}),[l,t,U]);return(0,s.useMemo)((function(){return T?s.default.createElement(E.Provider,{value:A},H):H}),[E,H,A])}var x=p?s.default.memo(w):w;if(x.WrappedComponent=t,x.displayName=w.displayName=o,R){var k=s.default.forwardRef((function(e,t){return s.default.createElement(x,(0,n.default)({},e,{reactReduxForwardedRef:t}))}));return k.displayName=o,k.WrappedComponent=t,a()(k,t)}return a()(x,t)}}},(e,t,r)=>{"use strict";var n=r(2245),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),m=u(r),g=0;g<a.length;++g){var y=a[g];if(!(o[y]||n&&n[y]||m&&m[y]||s&&s[y])){var v=p(r,y);try{c(t,y,v)}catch(e){}}}}return t}},(e,t,r)=>{"use strict";e.exports=r(2246)},(e,t)=>{"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case o:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case u:return e;default:return t}}case i:return t}}}function E(e){return S(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||S(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=S},(e,t,r)=>{"use strict";e.exports=r(2248)},(e,t)=>{"use strict";
/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=60103,n=60106,i=60107,o=60108,a=60114,s=60109,u=60110,c=60112,l=60113,f=60120,p=60115,d=60116,h=60121,m=60122,g=60117,y=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),c=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),p=b("react.memo"),d=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case l:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case p:case s:return e;default:return t}}case n:return t}}}var S=s,E=r,w=c,O=i,x=d,T=p,k=n,C=a,I=o,R=l;t.ContextConsumer=u,t.ContextProvider=S,t.Element=E,t.ForwardRef=w,t.Fragment=O,t.Lazy=x,t.Memo=T,t.Portal=k,t.Profiler=C,t.StrictMode=I,t.Suspense=R,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===c},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===d},t.isMemo=function(e){return _(e)===p},t.isPortal=function(e){return _(e)===n},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===l},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===y||e===o||e===l||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===g||e.$$typeof===h||e[0]===m)},t.typeOf=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConnect:()=>h,default:()=>m});var n=r(1389),i=r(677),o=r(2243),a=r(2250),s=r(2251),u=r(2257),c=r(2258),l=r(2259),f=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function p(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function d(e,t){return e===t}function h(e){var t=void 0===e?{}:e,r=t.connectHOC,h=void 0===r?o.default:r,m=t.mapStateToPropsFactories,g=void 0===m?u.default:m,y=t.mapDispatchToPropsFactories,v=void 0===y?s.default:y,b=t.mergePropsFactories,_=void 0===b?c.default:b,S=t.selectorFactory,E=void 0===S?l.default:S;return function(e,t,r,o){void 0===o&&(o={});var s=o,u=s.pure,c=void 0===u||u,l=s.areStatesEqual,m=void 0===l?d:l,y=s.areOwnPropsEqual,b=void 0===y?a.default:y,S=s.areStatePropsEqual,w=void 0===S?a.default:S,O=s.areMergedPropsEqual,x=void 0===O?a.default:O,T=(0,i.default)(s,f),k=p(e,g,"mapStateToProps"),C=p(t,v,"mapDispatchToProps"),I=p(r,_,"mergeProps");return h(E,(0,n.default)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:C,initMergeProps:I,pure:c,areStatesEqual:m,areOwnPropsEqual:b,areStatePropsEqual:w,areMergedPropsEqual:x},T))}}const m=h()},(e,t,r)=>{"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!n(e[r[o]],t[r[o]]))return!1;return!0}r.r(t),r.d(t,{default:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,whenMapDispatchToPropsIsFunction:()=>o,whenMapDispatchToPropsIsMissing:()=>a,whenMapDispatchToPropsIsObject:()=>s});var n=r(2252),i=r(2253);function o(e){return"function"==typeof e?(0,i.wrapMapToPropsFunc)(e,"mapDispatchToProps"):void 0}function a(e){return e?void 0:(0,i.wrapMapToPropsConstant)((function(e){return{dispatch:e}}))}function s(e){return e&&"object"==typeof e?(0,i.wrapMapToPropsConstant)((function(t){return(0,n.default)(e,t)})):void 0}const u=[o,a,s]},(e,t,r)=>{"use strict";function n(e,t){var r={},n=function(n){var i=e[n];"function"==typeof i&&(r[n]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)n(i);return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDependsOnOwnProps:()=>i,wrapMapToPropsConstant:()=>n,wrapMapToPropsFunc:()=>o});r(2254);function n(e){return function(t,r){var n=e(t,r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function i(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=i(e);var o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=i(o),o=n(t,r)),o},n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2255),i=r(2256);function o(e,t,r){(0,n.default)(e)||(0,i.default)(r+"() in "+t+" must return a plain object. Instead received "+e+".")}},(e,t,r)=>{"use strict";function n(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var r=t;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return t===r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,whenMapStateToPropsIsFunction:()=>i,whenMapStateToPropsIsMissing:()=>o});var n=r(2253);function i(e){return"function"==typeof e?(0,n.wrapMapToPropsFunc)(e,"mapStateToProps"):void 0}function o(e){return e?void 0:(0,n.wrapMapToPropsConstant)((function(){return{}}))}const a=[i,o]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,defaultMergeProps:()=>i,whenMergePropsIsFunction:()=>a,whenMergePropsIsOmitted:()=>s,wrapMergePropsFunc:()=>o});var n=r(1389);r(2254);function i(e,t,r){return(0,n.default)({},r,e,t)}function o(e){return function(t,r){r.displayName;var n,i=r.pure,o=r.areMergedPropsEqual,a=!1;return function(t,r,s){var u=e(t,r,s);return a?i&&o(u,n)||(n=u):(a=!0,n=u),n}}}function a(e){return"function"==typeof e?o(e):void 0}function s(e){return e?void 0:function(){return i}}const u=[a,s]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,impureFinalPropsSelectorFactory:()=>o,pureFinalPropsSelectorFactory:()=>a});var n=r(677),i=(r(2260),["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);function o(e,t,r,n){return function(i,o){return r(e(i,o),t(n,o),o)}}function a(e,t,r,n,i){var o,a,s,u,c,l=i.areStatesEqual,f=i.areOwnPropsEqual,p=i.areStatePropsEqual,d=!1;function h(i,d){var h,m,g=!f(d,a),y=!l(i,o,d,a);return o=i,a=d,g&&y?(s=e(o,a),t.dependsOnOwnProps&&(u=t(n,a)),c=r(s,u,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(u=t(n,a)),c=r(s,u,a)):y?(h=e(o,a),m=!p(h,s),s=h,m&&(c=r(s,u,a)),c):c}return function(i,l){return d?h(i,l):(s=e(o=i,a=l),u=t(n,a),c=r(s,u,a),d=!0,c)}}function s(e,t){var r=t.initMapStateToProps,s=t.initMapDispatchToProps,u=t.initMergeProps,c=(0,n.default)(t,i),l=r(e,c),f=s(e,c),p=u(e,c);return(c.pure?a:o)(l,f,p,e,c)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2256);function i(e,t,r){if(!e)throw new Error("Unexpected value for "+t+" in "+r+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||(0,n.default)("The selector for "+t+" of "+r+" did not specify a value for dependsOnOwnProps.")}function o(e,t,r,n){i(e,"mapStateToProps",n),i(t,"mapDispatchToProps",n),i(r,"mergeProps",n)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createDispatchHook:()=>o,useDispatch:()=>a});var n=r(2239),i=r(2262);function o(e){void 0===e&&(e=n.ReactReduxContext);var t=e===n.ReactReduxContext?i.useStore:(0,i.createStoreHook)(e);return function(){return t().dispatch}}var a=o()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStoreHook:()=>a,useStore:()=>s});var n=r(270),i=r(2239),o=r(2263);function a(e){void 0===e&&(e=i.ReactReduxContext);var t=e===i.ReactReduxContext?o.useReduxContext:function(){return(0,n.useContext)(e)};return function(){return t().store}}var s=a()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useReduxContext:()=>o});var n=r(270),i=r(2239);function o(){return(0,n.useContext)(i.ReactReduxContext)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createSelectorHook:()=>c,useSelector:()=>l});var n=r(270),i=r(2263),o=r(2240),a=r(2242),s=r(2239),u=function(e,t){return e===t};function c(e){void 0===e&&(e=s.ReactReduxContext);var t=e===s.ReactReduxContext?i.useReduxContext:function(){return(0,n.useContext)(e)};return function(e,r){void 0===r&&(r=u);var i=t(),s=function(e,t,r,i){var s,u=(0,n.useReducer)((function(e){return e+1}),0)[1],c=(0,n.useMemo)((function(){return(0,o.createSubscription)(r,i)}),[r,i]),l=(0,n.useRef)(),f=(0,n.useRef)(),p=(0,n.useRef)(),d=(0,n.useRef)(),h=r.getState();try{if(e!==f.current||h!==p.current||l.current){var m=e(h);s=void 0!==d.current&&t(m,d.current)?d.current:m}else s=d.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return(0,a.useIsomorphicLayoutEffect)((function(){f.current=e,p.current=h,d.current=s,l.current=void 0})),(0,a.useIsomorphicLayoutEffect)((function(){function e(){try{var e=r.getState();if(e===p.current)return;var n=f.current(e);if(t(n,d.current))return;d.current=n,p.current=e}catch(e){l.current=e}u()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[r,c]),s}(e,r,i.store,i.subscription);return(0,n.useDebugValue)(s),s}}var l=c()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{unstable_batchedUpdates:()=>n.unstable_batchedUpdates});var n=r(270)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useCallback:()=>s,useCallbackOne:()=>o,useMemo:()=>a,useMemoOne:()=>i});var n=r(270);function i(e,t){var r=(0,n.useState)((function(){return{inputs:t,result:e()}}))[0],i=(0,n.useRef)(!0),o=(0,n.useRef)(r),a=i.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,n.useEffect)((function(){i.current=!1,o.current=a}),[a]),a.result}function o(e,t){return i((function(){return e}),t)}var a=i,s=o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calculateBox:()=>p,createBox:()=>u,expand:()=>o,getBox:()=>d,getRect:()=>i,offset:()=>l,shrink:()=>a,withScroll:()=>f});var n=r(2268),i=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},u=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,u=e.border,c=void 0===u?s:u,l=e.padding,f=void 0===l?s:l,p=i(o(t,n)),d=i(a(t,c)),h=i(a(d,f));return{marginBox:p,borderBox:i(t),paddingBox:d,contentBox:h,margin:n,border:c,padding:f}},c=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.default)(!1),r},l=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,c=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return u({borderBox:c,border:o,margin:a,padding:s})},f=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),l(e,t)},p=function(e,t){var r={top:c(t.marginTop),right:c(t.marginRight),bottom:c(t.marginBottom),left:c(t.marginLeft)},n={top:c(t.paddingTop),right:c(t.paddingRight),bottom:c(t.paddingBottom),left:c(t.paddingLeft)},i={top:c(t.borderTopWidth),right:c(t.borderRightWidth),bottom:c(t.borderBottomWidth),left:c(t.borderLeftWidth)};return u({borderBox:e,margin:r,padding:n,border:i})},d=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return p(t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=!0,i="Invariant failed";function o(e,t){if(!e){if(n)throw new Error(i);var r="function"==typeof t?t():t,o=r?"".concat(i,": ").concat(r):i;throw new Error(o)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(i=e[r],o=t[r],!(i===o||n(i)&&n(o)))return!1;var i,o;return!0}const o=function(e,t){var r;void 0===t&&(t=i);var n,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&r===this&&t(i,o)||(n=e.apply(this,i),a=!0,r=this,o=i),n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t=i,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n}}]]);
//# sourceMappingURL=vendors.js.map